jQuery(document).ready(function($){

var timer;
var active;

$(".menu ul li").mouseenter(function() {

	if (active) $("div.nav" + active).css("display", "none");

	var id = $(this).attr("id").replace("Nav", "");

	active = id;

	$("div.nav" + id).css("display", "none");

	if(timer) { 
			clearTimeout(timer); 
			timer = null 
	} 

	timer = setTimeout(function() {
		$("div.nav" + id).css("display", "block");

	}, 400)
	
	return;

});


$(".menu ul li").mouseleave(function() {

	if (active) $("div.nav" + active).css("display", "none");

	if(timer) { 
			clearTimeout(timer); 
			timer = null 
	}
	
	return;
});


});
