var objAct = null;
var objSoc = null;
 
function checkHover() {//fonction de disparition
	if (objAct) {
		objAct.children('ul').fadeOut('fast');	
	} 
	if (objSoc) {
		objSoc.children('ul').fadeOut('fast');	
	} 
} //checkHover
 
$(document).ready(function() {
	$('#menu > #societe').hover(function() {
		if (objSoc) {
			//obj.children('ul').fadeOut('fast');
			objSoc = null;
		}
 
		$(this).children('ul').fadeIn('fast');
 
	}, function() {
		objSoc = $(this);
		setTimeout(
			"checkHover()",
			50);
	});
	
	$('#menu > #activite').hover(function() {
		if (objAct) {
			//obj.children('ul').fadeOut('fast');
			objAct = null;
		} 
 
		$(this).children('ul').fadeIn('fast');
 
	}, function() { 
		objAct = $(this);
		setTimeout(
			"checkHover()",
			50); 
	})
	
});
