(function($) {
$(function() {
  $("#cssmenu li").each(function() {
    $("<div class='round left'></div><div class='round right'></div>").appendTo(this);
  });
  
  $("#cssmenu > li").hover(function() {
    $(this).addClass("hover");
  }, function() {
    $(this).removeClass("hover");
  });
  
  $(".pic-submenu").hover(function() {
    var $this = $(this);
	$this.find(".pic-hover").show();
	$this.find(".pic-normal").hide();
	//alert($this.html());
  }, function() {
    var $this = $(this);
	$this.find(".pic-normal").show();
	$this.find(".pic-hover").hide();
  });
  
  /*$(".with-submenu").mouseenter(function() {
    $(this).find("#submenu").show();
  }).mouseleave( function() {
    $(this).find("#submenu").hide();
  });*/
  
  if ($.browser.opera) {
    $("body").addClass("opera");
  }
  if ($.browser.mozilla) {
    $("body").addClass("mozilla");
  }
       if ($.browser.msie) {
     $(".cal_bat").hover(function() {
       $(this).addClass("contact-form-hover");
     }, function() {
       $(this).removeClass("contact-form-hover");
     });
	 
	$(".reset_cal").hover(function() {
       $(this).addClass("contact-form-hover-reset");
     }, function() {
       $(this).removeClass("contact-form-hover-reset");
     });
   }
});
})(jQuery);



