$(document).ready(function () {

    function HoverOver() {
        $(this) .find(".subMenu").stop().slideDown("fast").show();
    }

    function HoverOut() {
         $(this).find(".subMenu").stop().slideUp("slow", function() {
		  $(this).hide(); 
	  });
    }
	
	function HoverOversub() {
        $(this).find(".subMenuRight").stop().slideDown("fast").show();
    }

    function HoverOutsub() {
         $(this).find(".subMenuRight").stop().slideUp("slow", function() {
		  $(this).hide(); 
	  });
    }

    var config = {
        sensitivity: 2,
        interval:  200,
        over: HoverOver,
        timeout:100,
        out: HoverOut
    };
	
	   var configsub = {
        sensitivity: 2,
        interval:  150,
        over: HoverOversub,
        timeout:100,
        out: HoverOutsub
    };

    $("#standardMenu .rootMenu > li.haschild").hoverIntent(config);
	$("#standardMenu .subMenu li.haschild").hoverIntent(configsub);

});
