function prechargerNav()
{
	i1 = new Image;
	i1.src = "images/presentation_bis.gif";
	i2 = new Image;
	i2.src = "images/programmes_bis.gif";
	i3 = new Image;
	i3.src = "images/agence_bis.gif";
	i4 = new Image;
	i4.src = "images/liens_bis.gif";
	i5 = new Image;
	i5.src = "images/references_bis.gif";
	i6 = new Image;
	i6.src = "images/gestion_locative_bis.gif";
	i7 = new Image;
	i7.src = "images/contact_bis.gif";
}

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;
}