function prechargerNav()
{
	i1 = new Image(171,26)
	i1.src = "images/menu_01_bis.png";
	i2 = new Image(196,26)
	i2.src = "images/menu_02_bis.png";
	i3 = new Image(200,26)
	i3.src = "images/menu_03_bis.png";
	i4 = new Image(198,26)
	i4.src = "images/menu_04_bis.png";
	i5 = new Image(197,26)
	i5.src = "images/menu_05_bis.png";
}

function MyRollOver(img,newSrc)
{
	if(newSrc.complete == true) document.images[img].src=newSrc.src;
} 

function montre_calque(nom_calque)
{
	if(document.all){eval('document.all.'+nom_calque).style.visibility='visible';}                     //Internet Explorer
	else if (document.layers){eval('document.'+nom_calque).visibility='show';}                         //Netscape 4.5 et 4.7
	else if (document.getElementById){document.getElementById(nom_calque).style.visibility='visible';} //Netscape 6
}

function cache_calque(nom_calque)
{
	if(document.all){eval('document.all.'+nom_calque).style.visibility='hidden';}                     //Internet Explorer
	else if (document.layers){eval('document.'+nom_calque).visibility='hidden';}                      //Netscape 4.5 et 4.7
	else if (document.getElementById){document.getElementById(nom_calque).style.visibility='hidden';} //Netscape 6
}

//Ouverture d'une pop up
function ouvreFenetre(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);}

function confirmation(URL,MSG)
{
	if(confirm(MSG))
	{
		document.location.href=URL;
	}
}

function NoSpam(adresse,delimiteur)
{
	tabMail = adresse.split(delimiteur)
	adresse_modif = tabMail[0]+tabMail[1];
	document.location.href='mailto:'+adresse_modif;
}