$(document).ready(function () {
    
    function showMenu() {
     var menu = $(this);
     menu.children(".menu_body").stop().animate({opacity: 1, height: "100%"}, 300); 
     menu.children(".menu_body").css("z-index","99");
   }
  
   function hideMenu() { 
     var menu = $(this);
     menu.children(".menu_body").stop().animate({opacity: 0, height: 0}, 300); 
   }
   
    $(".menu").hoverIntent({
     sensitivity: 1, 	// number = sensitivity threshold (must be 1 or higher)
     interval: 10,   	// number = milliseconds for onMouseOver polling interval
     over: showMenu,    // function = onMouseOver callback (required)
     timeout: 50,   	// number = milliseconds delay before onMouseOut
     out: hideMenu      // function = onMouseOut callback (required)
   });
		
	$(".module").mouseover(function(){
	    $(this).stop().animate({backgroundColor: "#eaeaea"}, 300, function(){$('.rounded').corner("5px");});
	    
	});
	
	$(".module").mouseout(function(){
	    $(this).stop().animate({backgroundColor: "#f4f4f4"}, 300, function(){$('.rounded').corner("5px");});
	});


});