// neue Subnavi
$(document).ready(function() {
//On Hover Over
function megaHoverOver(){
    $(this).children("div").stop().fadeTo('slow', 1).show(); //Find sub and fade it in
}
//On Hover Out
function megaHoverOut(){
  $(this).children("div").stop().fadeTo('slow', 0, function() { //Fade to 0 opactiy
      $(this).hide();  //after fading, hide it
  });
}

//Set custom configurations
var config = {
     sensitivity: 2, // number = sensitivity threshold (must be 1 or higher)
     interval: 100, // number = milliseconds for onMouseOver polling interval
     over: megaHoverOver, // function = onMouseOver callback (REQUIRED)
     timeout: 300, // number = milliseconds delay before onMouseOut
     out: megaHoverOut // function = onMouseOut callback (REQUIRED)
};

$("ul.navi > li").hoverIntent(config); //Trigger Hover intent with custom configurations

});









// ALTE SUBNAV
////$(document).ready(function(){
//	$('.DropMenu').mouseover(function(){
//		var containerID = '#'+$('div:first-child', this).attr('id');
//		$(containerID).stop().animate({ width:"250px" }, 300, 'easeOutCubic', function(){
//			$('.scroll-pane').jScrollPane({scrollbarWidth:14,dragMaxHeight:25,dragMinHeight:25,arrowSize:10});
//		});
//	});
//
//	$('.DropMenu').mouseout(function(){
//		var containerID = '#'+$('div:first-child', this).attr('id');
//		$(containerID).stop().animate({ width:0 },{ queue:false, duration:300, easing: 'easeOutCubic' });
//	});
//});
