Hello everyone,

I am attempting to put a delay effect on hiding the drop-down menu when the user's mouse leaves the drop-down menu on my home page. The following code is inverting the behavior of the menu, as you can tell.

Code JavaScript:
	  var timer = false;
	  $("#pMenu div, #bMenu div").hover(function(){
	  	clearTimeout(timer);
		$("#pMenu div, #bMenu div").show();
	  },
	  function(){
		setTimeout(function(){
			$("#pMenu div, #bMenu div").hide();
		}, 400);
	  });