var obj = null;

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

function checkHoverdiv() {
	if (obj) {
		$('#tag').fadeOut('fast');			
	} //if
} //checkHover
function checkHoverdivbis() {
	if (obj) {
		$('#ref').fadeOut('fast');			
	} //if
} //checkHover

$(document).ready(function() {
						   
	$('#Nav > li').hover(function() {
		/*if (obj) {
			obj.find('ul').slideUp('fast');
			obj = null;
		} */
		//if
		
		$(this).find('ul').slideDown('fast');
	}, function() {
		obj = $(this);
		setTimeout(
			"checkHover()",
			2); // si vous souhaitez retarder la disparition, c'est ici
	});
	$('#tags').hover(function(){
		$('#tag').fadeIn('fast');						
	}, function() {
		obj = $('#tags');
		setTimeout("checkHoverdiv()", 0); // si vous souhaitez retarder la disparition, c'est ici
	});
	
	$('#refs').hover(function(){
		$('#ref').fadeIn('fast');						
	}, function() {
		obj = $('#refs');
		setTimeout("checkHoverdivbis()", 0); // si vous souhaitez retarder la disparition, c'est ici
	});	


});


