var palette_header = '<table width="1" cellspacing="0" cellpadding="0" border="0"><tr height="9"><td width="28" height="14" valign="bottom"><div style="width:23px; height:9px; background-color:#A0A2A5; position:absolute; margin-left:5px; margin-top:5px;"><a name="" id=""></a></div><img src="images/L1C1.png" id="L1C1" /></td><td height="14" style="background-image:url(images/L1C3.png);" id="L1C3" class="tra"><img src="images/L1C2.png" id="L1C2" /></td><td width="33" height="14" valign="bottom"><img src="images/L1C4.png" id="L1C4" /></td></tr><tr><td width="28" valign="top" style="background-image:url(images/L2C1b.png);" class="tra" id="L2C1b"><img src="images/L2C1.png" id="L2C1" /></td><td bgcolor="#FFFFFF"><div align="right">';

var palette_footer = '<img src="images/spacer.png" width="1" height="15" /><br /></div></div></td><td width="21" valign="top" style="background-image:url(images/L2C4.png); background-repeat:repeat-y;" class="tra" id="L2C4"><img src="images/L2C4f.png" id="L2C4f" /></td></tr><tr><tr height="10"><td width="28" height="21" valign="top"><img src="images/L3C1.png" id="L3C1" /></td><td height="21" style="background-image:url(images/L3C3.png); background-repeat:repeat-x;" valign="top" class="tra" id="L3C3"><img src="images/L3C2.png" id="L3C2" /></td><td width="33" height="21"><div style="width:23px; height:9px; background-color:#A0A2A5; position:absolute;"><a name="" id=""></a></div><img src="images/L3C4.png" id="L3C4" /></td></tr></table>';

var msg_ = '<a href="javascript:fad(\'\');" style="color:#FFFFFF;" onfocus="this.blur();"><img src="images/close.jpg" border="0" /></a><br /><div align="left" style="padding-left:20px; padding-right:20px; position:relative;"><font style="font-size:11px; color:#727069; font-family:Arial, Helvetica, sans-serif; font-weight:bold;"><img src="images/spacer.gif" width="230" height="1">';

var _msg = '</font>';


function fad(){
fio_anticlic('');
fio_boinfo('');
}

// JavaScript Document
function retard(){
setTimeout("affiche_compte('')",5000);
}

function retard2(){
setTimeout("affiche_locale('')",3000);
}

function affiche_compte(){
alias.getElementById('mon_compte').style.display = 'block';
fade('mon_compte','100');
}

function affiche_locale(){
alias.getElementById('locale').style.display = 'block';
fade('locale','100');
}

function alerte(m){
	alias.getElementById('alerte').innerHTML = m;
}

function msg(m,c){

if(c != ""){

palette_header = palette_header.replace("A0A2A5",c);
palette_footer = palette_footer.replace("A0A2A5",c);

}

switch(m){
	case "deja" :
alias.getElementById('boinfo').style.top = eval((alias.documentElement.scrollHeight/2)+90)+'px';
alias.getElementById('boinfo').innerHTML = palette_header+msg_+'<center>Votre e-mail est déjà enregistré<br>Your e-mail is already registered</center>'+_msg+palette_footer; 
	break;
	case "enre" :
alias.getElementById('boinfo').style.top = (alias.documentElement.scrollHeight/2)+'px';
alias.getElementById('boinfo').innerHTML = palette_header+msg_+'<center>Votre adresse e-mail a bien été enregistrée. La Fondation d\'entreprise Hermès vous remercie et vous informera du lancement de son site Internet.<br><br>Your e-mail address has been saved. You will be informed about the opening of the Fondation d\'entreprise Herm&egrave;s web site.</center>'+_msg+palette_footer; 
	break;
	case "mail" :
alias.getElementById('boinfo').style.top = eval((alias.documentElement.scrollHeight/2)+90)+'px';
alias.getElementById('boinfo').innerHTML = palette_header+msg_+'<center>Veuillez saisir votre e-mail<br>Please fill out your e-mail address</center>'+_msg+palette_footer;
	break;
	case "recherche" :
alias.getElementById('boinfo').style.top = '90px';	
alias.getElementById('boinfo').innerHTML = palette_header+msg_+alias.getElementById('recherche').innerHTML+_msg+palette_footer;
	break;
	default :

if(isNaN(m)){
alias.getElementById('boinfo').innerHTML = palette_header+msg_+m+_msg+palette_footer; 
}else{
if(m == 0) alias.getElementById('boinfo').style.top = '90px';
alias.getElementById('boinfo').innerHTML = palette_header+msg_+alias.getElementById('contenu_'+m).innerHTML+_msg+palette_footer; 
}

break;
}
 fadin();
}

function fadin(){
//alert(alias.getElementById('anticlic').style.zIndex);
fio_anticlic('');
fio_boinfo('');

}

function fio_anticlic(ifnext){
if(eval(alias.getElementById('anticlic_lod').value) == 0){
	alias.getElementById('anticlic').style.zIndex ='1000'; 
fade('anticlic','80');}
if(eval(alias.getElementById('anticlic_lod').value) < 80){
setTimeout("fio_anticlic('"+ifnext+"')", 33);
return;
}else{alias.getElementById('anticlic_lod').value = 0;
//alias.getElementById('loader').value = ifnext;
loding= ifnext;

if(alias.getElementById('anticlic').FadeState == -2){
	alias.getElementById('anticlic').style.zIndex ='1';
}

return;}}


function fio_boinfo(ifnext){
if(eval(alias.getElementById('boinfo_lod').value) == 0){
	alias.getElementById('boinfo').style.display ='block'; 

if(BrowserDetect.browser == 'Explorer' && BrowserDetect.OS == 'Windows') {
alias.getElementById('L1C1').src = 'images/L1C1.gif';
alias.getElementById('L1C3').style.backgroundImage = 'url(images/L1C3.gif)';
//alias.getElementById('L1C3').background = 'images/L1C3.gif';
alias.getElementById('L1C2').src = 'images/L1C2.gif';
alias.getElementById('L1C4').src = 'images/L1C4.gif';
alias.getElementById('L2C1b').style.backgroundImage = 'url(images/L2C1b.gif)';
//alias.getElementById('L2C1b').background = 'images/L2C1b.gif';
alias.getElementById('L2C1').src = 'images/L2C1.gif';
alias.getElementById('L2C4').style.backgroundImage = 'url(images/L2C4.gif)';
//alias.getElementById('L2C4').background = 'images/L2C4.gif';
alias.getElementById('L3C1').src = 'images/L3C1.gif';
alias.getElementById('L3C3').style.backgroundImage = 'url(images/L3C3.gif)';
//alias.getElementById('L3C3').background = 'images/L3C3.gif';
alias.getElementById('L3C2').src = 'images/L3C2.gif';
alias.getElementById('L3C4').src = 'images/L3C4.gif';}

fade('boinfo','100');}
if(eval(alias.getElementById('boinfo_lod').value) < 100){
setTimeout("fio_boinfo('"+ifnext+"')", 33);
return;
}else{alias.getElementById('boinfo_lod').value = 0;
//alias.getElementById('loader').value = ifnext;
loding= ifnext;

if(alias.getElementById('boinfo').FadeState == -2){
	alias.getElementById('boinfo').style.display ='none'; 

//alias.body.style.overflow = 'none';
//alias.getElementById('html').style.overflow = 'none';
}

if(BrowserDetect.browser == 'Explorer' && BrowserDetect.OS == 'Windows') {
if(alias.getElementById('boinfo').FadeState != -2) alias.getElementById('boinfo').style.filter = '';
alias.getElementById('L1C1').src = 'images/L1C1.png';
alias.getElementById('L1C3').style.backgroundImage = 'url(images/L1C3.png)';
//alias.getElementById('L1C3').background = 'images/L1C3.png';
alias.getElementById('L1C2').src = 'images/L1C2.png';
alias.getElementById('L1C4').src = 'images/L1C4.png';
alias.getElementById('L2C1b').style.backgroundImage = 'url(images/L2C1b.png)';
//alias.getElementById('L2C1b').background = 'images/L2C1b.png';
alias.getElementById('L2C1').src = 'images/L2C1.png';
alias.getElementById('L2C4').style.backgroundImage = 'url(images/L2C4.png)';
//alias.getElementById('L2C4').background = 'images/L2C4.png';
alias.getElementById('L3C1').src = 'images/L3C1.png';
alias.getElementById('L3C3').style.backgroundImage = 'url(images/L3C3.png)';
//alias.getElementById('L3C3').background = 'images/L3C3.png';
alias.getElementById('L3C2').src = 'images/L3C2.png';
alias.getElementById('L3C4').src = 'images/L3C4.png';}

alias.body.style.overflow = 'auto';
alias.getElementById('html').style.overflow = 'auto';

return;}}

function rollo(div,color){
alias.getElementById('A_'+div).style.backgroundColor = '#'+color;
alias.getElementById('B_'+div).style.backgroundColor = '#'+color;
alias.getElementById('C_'+div).style.backgroundColor = '#'+color;
}
