var ie=(document.all)?1:0; 
var a = new Image() ; //a.src = lang+"nav/img/home.gif"
var ieMac4=(navigator.appVersion.indexOf("MSIE 4.5")!=-1 && navigator.appVersion.indexOf("Mac")!=-1)? true:false;
var ieMac5=(navigator.appVersion.indexOf("MSIE 5")!=-1 && navigator.appVersion.indexOf("Mac")!=-1)? true:false;
oke=0
function Lyr(LyrNme, param, valeur){
	var ie=(document.all)?1:0; 
	param=param.toLowerCase();lecture=(valeur || valeur>-1 || valeur=="")? false:true;
	if (param=="zindex") param="zIndex";
	if (ie) IeCase=param.substring(0,1).toUpperCase()+param.substring(1)
	way=(ie)? 'document.all.'+LyrNme:'document.layers.'+LyrNme;
	way+=(ie)? (lecture)? (param=="left" || param=="top")? '.style.pixel'+IeCase:'.offset'+IeCase:'.style.'+param:(param=="height" || param=="width")?'.document.'+param:'.'+param;
	Integer=(param=="zindex" || param=="height" || param=="width")? true:false;
		
	if (lecture) return (Integer)? parseInt(eval(way)):eval(way);
	else {eval(way+'="'+valeur+'"');
		return true;
		}	
}
function montre(num){
		for (i=1; i<7; i++) Lyr("rub"+i, "visibility", "hidden");
		Lyr("rub"+num, "visibility", "visible");
		active=num;	
		Lyr("rub6", "visibility", "visible");
}

var active=0;
function cache(){
	Lyr("rub6", "visibility", "hidden");
	Lyr("rub"+active, "visibility", "hidden");
}

function backhome(nameimg){
	if(document.images){
		if(document.images[nameimg].src.indexOf('arc') >= 0) {
	       // document.images[nameimg].src = lang+"_en/_ww/include/nav/img/home.gif";
		}
		else{
			document.images[nameimg].src= lang+"_en/_ww/include/nav/img/arcencielNav.gif";
		}
	}	
}

// CACHER POUR MINISITE :

var couleurFond = ""
var couleurTypo = ""
function content(LyrNme,valeur)
{
	if(document.getElementById){
	var contenu="<table border=0 cellpadding=0 cellspacing=0 width=760 height=15>";
		contenu+="<tr><td width=760 bgcolor="+couleurFond+"><IMG SRC=/_en/_ww/include/nav/img/dot.gif width=10 height=1><font color="+couleurTypo+">"+valeur+"</font></td>";
		contenu+="</tr></table>";
								}
	else {
	var contenu="<table border=0 cellpadding=0 cellspacing=0 width=760 height=15>";
		contenu+="<tr><td width=760 HEIGHT=15 bgcolor="+couleurFond+"><IMG SRC=/_en/_ww/include/nav/img/dot.gif width=10 height=1><font color="+couleurTypo+">"+valeur+"</font></td>";
		contenu+="</tr></table>";
		}	
		
	if(document.getElementById){ // AJOUT V3 DOM
	//alert(LyrNme);
		document.getElementById(LyrNme).innerHTML=contenu;
	}
}
bonneNav("666");
function bonneNav(rub){
	oke = 1
	//if(rub=="666") rub = parent.page.location.href;
	if(rub=="666") rub = this.location.href;	
	if (!rub) rub = "career";
	if(rub.indexOf("passion")>=0){
		logo="news";
		couleurFond="#a3106c";
		couleurTypo="#FFFFFF";
	}
	/*else if(rub.indexOf("sitemap")>=0){
		logo="sitemap";
		couleurFond="#E4C776";
		couleurTypo="#595958";
	}*/
	
	else if(rub.indexOf("brands")>=0){
		logo="brands";
		couleurFond="#9E2F59";
		couleurTypo="#FFFFFF";
	}
	
	else if(rub.indexOf("press-room")>=0){
		logo="pressroom";
		couleurFond="#434463";
		couleurTypo="#FFFFFF";
	}
	else if(rub.indexOf("news")>=0){
		logo="news";
		couleurFond="#990100";
		couleurTypo="#FFFFFF";
	}
	else if((rub.indexOf("research")>=0) || (rub.indexOf("recherche")>=0)|| (rub.indexOf("partners")>=0)){
		logo="research";
		couleurFond="#CEE700";
		couleurTypo="#003163";
	}
	else if((rub.indexOf("career")>=0) || (rub.indexOf("carriere")>=0) || (rub.indexOf("/cv/")>=0)){
		logo="careers";
		couleurFond="#356395";
		couleurTypo="#FFFFFF";
	}
	else if(rub.indexOf("finance")>=0){
		logo="finance";
		couleurFond="#5A8BB4";
		couleurTypo="#ffffff";
	}
	else if(rub.indexOf("group")>=0){
		logo="group";
		couleurFond="#803C3D";
		couleurTypo="#ffffff";
	}
	else if((rub.indexOf("tools")>=0) || (rub.indexOf("outils")>=0)){
		logo="contact";
		couleurFond="#AE0F0F";
		couleurTypo="#ffffff";
	}
	else if(rub.indexOf("tools/sitemap")>=0){
		logo="sitemap";
		couleurFond="#FF6600";
		couleurTypo="#ffffff";
	}
	else if(rub.indexOf("women-in")>=0){
		logo="miniwomen";
		couleurFond="#9B6F11";
		couleurTypo="#ffffff";
	}	
	else if(rub.indexOf("bilan00")>=0){
		logo="focus";
		couleurFond="#780630";
		couleurTypo="#ffffff";
	}
	else if(rub.indexOf("hair-science")>=0){
		logo="minihairscience";
		couleurFond="#F5C31D";
		couleurTypo="#AA010B";
	}		
	else if(rub.indexOf("skin-science")>=0){
		logo="miniskinscience";
		couleurFond="#8781B9";
		couleurTypo="#FFFFFF";
	}
	// Section Developpement durable
	else if(rub.indexOf("dd_home")>=0){
		logo="dd_home";
		couleurFond="#000000";
		couleurTypo="#FFFFFF";
	}
	else if(rub.indexOf("dd_dev")>=0){
		logo="dd_developpement";
		couleurFond="#003366";
		couleurTypo="#FFFFFF";
	}	
	else if(rub.indexOf("dd_bienvenue")>=0){
		logo="dd_bienvenue";
		couleurFond="#003366";
		couleurTypo="#FFFFFF";
	}
	else if(rub.indexOf("-versailles")>=0){
		logo="chateau_versailles";
		couleurFond="#E4C776";
		couleurTypo="#595958";
	}	
	else if(rub.indexOf("loreal-art-science")>=0){
		logo="miniartscience";
		couleurFond="#E4C776";
		couleurTypo="#595958";
	}
	
	else{
		logo="blanc";
		couleurFond="#000000";
		couleurTypo="#ffffff";
	}
	//document.bgColor=couleurFond;
// CACHER POUR MINISITE : content("historik","&nbsp;")
	//setTimeout('document.images["leLogo"].src = lang+"_en/_ww/images_v3/nav_logo_"+logo+".gif"',3000);
}

function placeHisto(){
	if(ieMac5)Lyr("historik","top","116")
}

function sitemap(){
	var haut = (document.all) ? 485 : 485
	eval('regalMap = window.open("'+lang+'_en/_ww/sitemap/index.aspx","sitemap","width=360,height='+haut+',top=0,left=0,status=1")')
}

function rollOver(ImgNme)
{
    obj=document.images[ImgNme];
    obj.src=(obj.src.lastIndexOf('_on')!=-1)? obj.src.replace(/_on/gi,"_off"):obj.src.replace(/_off/gi,"_on");
}