var obj = null;

function checkHover() {
	if (obj) {
		obj.find('ul').fadeOut('fast');	
	} //if
} //checkHover

$(document).ready(function() {
	$('#Nav > li').hover(function() {
		if (obj) {
			obj.find('ul').fadeOut('fast');
			obj = null;
		} //if
		
		$(this).find('ul').fadeIn('fast');
		$(this).css('background-color','#315F47');
	}, function() {
		obj = $(this);
		setTimeout(
			"checkHover()",
			400);
			$(this).css('background-color','#619E5B');
	});
});
