$(function(){
	// Lien nouvelle fenêtre
	$('a.newWindow, area.newWindow').click(function(){ window.open(this.href); return false; });
	
	
	
	// popupMentions
	$('.popupMentions').click(function(){
		var hauteur = 500;
		var largeur = 500;
		var top = (screen.height-hauteur)/2;
		var left = (screen.width-largeur)/2;
		window.open('mentions-legales.html', '', 'top='+top+',left='+left+',width='+largeur+',height='+hauteur+',menubar=no,scrollbars=no,statusbar=no');
		return false;
	});
	


	$('#Nav > 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
	});
});
var obj = null;
function checkHover() {
	if (obj) {
		obj.find('ul').fadeOut('fast');	
	} //if
} //checkHover

