var obj = null;

function checkHover() {
	if (obj) {
		obj.find('ul').fadeOut(1);	
	} //if
} //checkHover

$(document).ready(function() {
	$('#nav > li').hover(function() {
		if (obj) {
			obj.find('ul').slideUp(1);
			obj = null;
		} //if
		
		$(this).find('ul').slideDown(1);
	}, 
		function() {
		obj = $(this);
		setTimeout("checkHover()",0); // si vous souhaitez retarder la disparition, c'est ici
	});
});