$(document).ready(function () {
    function HoverOver() { $(this).addClass('hov'); }
    function HoverOut() { $(this).removeClass('hov'); }
    var config = {
        sensitivity: 2,
        interval: 200,
        over: HoverOver,
        timeout: 500,
        out: HoverOut
    };
//    $("#dnnMenu .topLevel > li.haschild").hoverIntent(config);
    $(".NavBox li").hover(HoverOver, HoverOut);
    
    $('.NavBox li.root').hover(
    	function() { $('.subLevel', this).css('height','auto').stop().slideDown(250); },
		function() { $('.subLevel', this).stop().slideUp(100); }
	);    
    $('.NavBox .subLevel .haschild').hover(
    	function() { $('.subLevelRight', this)
    		.stop()
    		.css({
    			'height':'auto',
    			'left':$(this).parent().css('width')
    		})
    		.slideDown(250) },
		function() { $('.subLevelRight', this).stop().slideUp(100, function(){ $(this).css('left',0); }) }
	);
});
