sfHover = function() {
	var sfEls = document.getElementById("menu").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

// fonction laetis
nav = navigator.appName.substring(0,3);
ver = navigator.appVersion.substring(0,1);

function printAll()
	{
	if (navigator.platform.substring(0,3)=="Win")
		{
		window.self.print();
		}
	else
		{
		window.alert("Appuyez sur Pomme + P, pour imprimer cette page");
		}
	}

function ajouterFavoris()
	{
	if (nav == "Mic" && ver >= 4 && navigator.platform.substring(0,3)=="Win")
		{
		url_site=window.self.location.href;
		titre_site = window.document.title;
		window.external.AddFavorite(url_site, titre_site);
		}
	else
		{
		if (navigator.platform.substring(0,3)=="Win")
			{
			window.alert("Appuyez sur Ctrl + D, pour ajouter ce site à vos favoris");
			}
		else
			{
			window.alert("Appuyez sur Pomme + D, pour ajouter ce site à vos favoris");
			}
		}
	} // FIN function ajouterFavoris()


function envoyerPageAmiFr()
	{	
	lienHrefAmi="/fr/popup/envoi_ami.php?titreAmi=" + window.document.title + "&urlAmi=" + window.document.location.href;
	winAmi=window.open(lienHrefAmi,'envoiAmi','scrollbars=yes,resizable=yes,status=yes,width=527,height=550');	
	winAmi.opener = self;
	winAmi.focus();	
	}

function openPlanDuSiteFr()
	{
	winPlan=window.open('/fr/popup/plan_du_site.php','plandusite','height=500,width=527,toolbar=0,menubar=no,scrollbars=yes,Status=yes');
	winPlan.opener = self;
	winPlan.focus();
	}

function openContactFr()
	{
	winCont=window.open('/fr/popup/contact.php','contact','height=500,width=527,toolbar=0,menubar=no,scrollbars=yes,Status=yes');
	winCont.opener = self;
	winCont.focus();
	}

function openAccesFr()
	{
	winAcces=window.open('/fr/popup/situation-acces.php','acces','height=500,width=527,toolbar=0,menubar=no,scrollbars=yes,Status=yes');
	winAcces.opener = self;
	winAcces.focus();
	}

function openBrochureFr()
	{
	winBroc=window.open('/fr/popup/brochures.php','galeriephoto','height=500,width=527,toolbar=0,menubar=no,scrollbars=yes,Status=yes');
	winBroc.opener = self;
	winBroc.focus();
	}

function openMentionsLegalesFr()
	{
	winML=window.open('/fr/popup/mentions_legales.php','mentionslegales','height=500,width=527,toolbar=0,menubar=no,scrollbars=yes,Status=yes');
	winML.opener = self;
	winML.focus();
	}

function openLiensFr()
	{
	winML=window.open('/fr/popup/liens.php','liens','height=500,width=527,toolbar=0,menubar=no,scrollbars=yes,Status=yes');
	winML.opener = self;
	winML.focus();
	}
function lancerRecherche(motCle)
	{
	if ((motCle!='')&&(motCle!='rechercher...'))
		{
		document.search.submit();
		return false;
		}
	else
		{
		alert('Veuillez entrer votre recherche.');
		}		
	}
function detectionPlateforme ()
{
	if (navigator.userAgent.indexOf("Netscape")!=-1)
	{
		document.write('<link href="../styles/netscape.css" rel="stylesheet" type="text/css" />');
	}
		
}