var obj = null;
function checkHover() {
	if (document.getElementById('header')) {
		if (obj) {
			obj.find('ul').fadeOut('fast');	
		} //if
	}
} //checkHover

$(document).ready(function() {
	if (document.getElementById('header')) {
		$('.menu > li').hover(function() {
			if (obj) {
				obj.find('ul').fadeOut('fast');
				obj = null;
			} //if
				
			$(this).find('ul').fadeIn('fast');
		}, function() {
			obj = $(this);
			setTimeout(
			"checkHover()",
			0); // si vous souhaitez retarder la disparition, c'est ici
		});
	}
});
	
// Fonction pour fermer une fenêtre 
function exit(){
	close();
	}
//************************************************************************
//***********************  POP  UP ***************************************
//************************************************************************

// Création d'un objet 
var o = {}; 
// Propriétés Popup de l'objet 
o.Popup = {    
// Initialisation de l'objet    
__Init__: function()     {       
	if( !document.getElementsByTagName ) return false; 
	return o.Popup.__Manager__();    
	},   
// Gestionnaire de l'évènement onclick sur les liens possédant la classe 'popup'.   
__Manager__: function()     {         
	var oLink = document.getElementsByTagName( 'a' ),     
	a = oLink.length - 1;      
	for( a ; a >= 0 ; a-- )         { 
		if( oLink[a].getAttribute('id') == 'popup') {
				oLink[a].onclick = o.Popup.__Open__;   
			}
		}
	}, 
// Méthode d'ouverture de la popup    
__Open__: function()     {     
	window.open( this.href , '' , 'top=200 , left=300 , width=470 , height=200 , resizable=no , scrollbars=no' ); 
	return false;    
	}
// Méthode d'ouverture de la popup    
};
// Chargement de l'objet au lancement de la page.
window.onload = o.Popup.__Init__; 
//*********************** FIN POP  UP ***************************************
//************************************************************************