var obj = null;

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

$(document).ready(function() {
	$('.topmenu > li, .topmenu2 > li').hover(function() {
		if (obj) {
			obj.find('ul').fadeOut('fast');
			obj = null;
		}
		
		$(this).find('ul').fadeIn('fast');
	}, function() {
		obj = $(this);
		setTimeout("checkHover()",0); // si vous souhaitez retarder la disparition, c'est ici
	});
});
