﻿/*-------------------------------
	Copyright (c) 2004 Eira inc.
	http://www.origano.com
	revision 2004-12-05
-------------------------------*/
var debug=false;
var xTxtSignature;
var xTxtCompte;
var xTxtSessCon;
var xTxtSessFrm;
var xTxtLangueAlt;
var xUrlLangueAlt="";
var xTxtConMenu;
var xTxtAffMenu;
var xm=null;
var xo=new Array(4);
var xp=new Array(4);
var xMenuOuvert=true;
var xMenuOuvertTampon=0;
var xMenuFermeTampon=8;
var xRoot='';
var xCoulTxtDim;
var xCoulTxtAct;
var xCoulTxtSel;
var xCoulBrdNv1;
var xCoulBrdNv2;
var xCoulFondPg;
var xVariFondPg;
var	xCoulCsdAct;
var	xCoulCsdSvl;
var xImgFlcHaut=null;
var xImgFlcBas=null;
var xModeSelAuto=true;
var xHorlogeMen=null;
var xHorlogeAni=null;
var xAppelInterne=false;
function geckoRv(){
if(navigator.product!='Gecko'){
return -1;
}
var valeurRv=0;
var ua=navigator.userAgent.toLowerCase();
var rvDeb=ua.indexOf('rv:');if(rvDeb==-1)return -1;
var rvFin=ua.indexOf(')',rvDeb);
var rv=ua.substring(rvDeb+3,rvFin);
var rvElm=rv.split('.');
var exp=1;
for(var i=0;i<rvElm.length;i++){
var val=parseInt(rvElm[i]);
valeurRv+=val/exp;
exp *=100;
}
return valeurRv;
}
function xInfoHote() {
var ua=navigator.userAgent.toLowerCase();
this.navSafari=(ua.indexOf("safari/")!=-1);
this.navKonqueror=(ua.indexOf("konqueror")!=-1);
this.navOpera=(ua.indexOf("opera")!=-1);
this.navIE=((ua.indexOf("msie ")!=-1)&&(!this.navOpera)&&(ua.indexOf("webtv")==-1));
this.navGecko=(ua.indexOf("gecko/")!=-1);
this.navGeckoRv	=geckoRv();
this.navGeckoDate=this.navGecko?navigator.productSub:'';
this.navFirebird=(this.navGecko && ua.indexOf("firebird/")!=-1);
if(this.navIE){
this.navVersion=parseFloat(ua.substr(ua.indexOf("msie ")+5));
}
else if(this.navGecko){
this.navVersion=parseFloat(ua.substr(ua.indexOf('rv:')+3));
}
else if(this.navSafari){
this.navVersion=parseFloat(ua.substr(ua.indexOf("safari/")+7));
}
else if(this.navOpera){
this.navVersion=parseFloat(ua.substr(ua.indexOf("opera")+6));
}
if(document.getElementById)
this.navDOM1=true;
else
this.navDOM1=false;
this.modeCompat=document.compatMode?document.compatMode:'BackCompat';
this.envWin=(ua.indexOf("windows")!=-1);
this.envUnix=(ua.indexOf("unix")!=-1||ua.indexOf('linux')!=-1||ua.indexOf('sunos')!=-1||ua.indexOf('bsd')!=-1||ua.indexOf('x11')!=-1);
this.envMac=(ua.indexOf("mac")!=-1);
this.navGk139ea=(this.navGecko && this.navGeckoRv<1.04);
this.navGk149ea=(this.navGecko && this.navGeckoRv<1.05);
this.navOP721ea=(this.navOpera && this.navVersion<7.22);
this.navOP722eu=(this.navOpera && this.navVersion>=7.22);
this.navIE549ea=(this.navIE && this.navVersion<5.5);
this.navIE599ea=(this.navIE && this.navVersion<6.0);
this.navIE550eu=(this.navIE && this.navVersion>=5.5);
}
var xHote=new xInfoHote();
if(top.location!=self.location){
top.location=self.location;
}
if((top.location.href.indexOf("f.aspx")!=-1)||
(top.location.href.indexOf("f.htm") !=-1) ||
(top.location.href.indexOf("default.aspx") !=-1))
var lg="f";
else
var lg="a";
if((xHote.navIE549ea)||(!xHote.navDOM1)||
(xHote.navOP721ea)||(xHote.navGk139ea)){
top.location.href="http://www.origano.com/sos/oops_navig_"+lg+".htm";
}
function xCookieValeurDe(nom){
var cookieValeur="";
var recherche=nom+"=";
var posValeur=-1;
var posPointVirgule=-1;
if(document.cookie.length>0){ 
posValeur=document.cookie.indexOf(recherche);
if(posValeur!=-1){ 
posValeur+=recherche.length;
posPointVirgule=document.cookie.indexOf(";", posValeur);
if(posPointVirgule==-1) posPointVirgule=document.cookie.length;
cookieValeur=unescape(document.cookie.substring(posValeur,posPointVirgule));
}
}
return cookieValeur;
}
function xCookieAssigner(nom, valeur, heures){
var expire="";
if(heures!=null){
expire=new Date((new Date()).getTime()+heures*3600000);
expire="; expires="+expire.toGMTString();
}
document.cookie=nom+"="+escape(valeur)+expire;
}
function xFlashPlugInsVersion(){ // Shockwave Flash 6.0 r79
var iVersion=0;
var dsc=null,v=0,pos=-1;
try{
dsc=navigator.plugins["Shockwave Flash"].description.toLowerCase( );
}
catch(e){
return iVersion;
}
pos=dsc.indexOf("shockwave flash");
if(pos>-1){
v=parseInt(dsc.substr(15));
if(!isNaN(v)){
iVersion=v;	
}
}
return iVersion;
}
function xFlashActiveXVersion(){
var phv=8; 	//	plus haute version de flash + 1 
var iVersion=0;
var objFlash=null;
for(var i=phv;i>4;i--){
try{
objFlash=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+i);
iVersion=i;
break;
}
catch(e){
objFlash=null;
}
}
return iVersion;
}
function xFlashOK(verMaj){
var v=0;
if(xHote.navIE550eu){
v=xFlashActiveXVersion();
}
else{
v=xFlashPlugInsVersion();
}
return (v>=verMaj);
}
function xFlashOops(){
window.location=xRoot+'sos/oops_flash_'+xm.nom+'.htm';
}
function xFlashChnPourInnerHTML(idFls,larg,haut,coulFond,nomFichier,verMaj){
return (
'<object id="'+idFls+'" '+
'	classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" '+
'	codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+verMaj+',0,0,0" '+
'	width="'+larg+'" '+
'	height="'+haut+'" '+
'	align="middle">'+
'<param name="allowScriptAccess" value="sameDomain" />'+
'<param name="movie" value="'+nomFichier+'" />'+
'<param name="loop" value="false" />'+
'<param name="menu" value="false" />'+ 
'<param name="wmode" value="transparent" />'+ 
'<param name="quality" value="high" />'+
'<param name="bgcolor" value="'+coulFond+'" />'+
'<embed src="'+nomFichier+'" '+
'	loop="false" '+
'	menu="false" '+
'	wmode="transparent" '+
'	quality="high" '+
'	bgcolor="'+coulFond+'" '+ 
'	width="'+larg+'" '+
'	height="'+haut+'" '+
'	name="'+idFls+'" '+ 
'	swLiveConnect="true" '+
'	align="middle" '+
'	allowScriptAccess="sameDomain" '+
'	type="application/x-shockwave-flash" '+
'	pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" />'+
'</object>');
}
function xFlashBienCharge(idDiv,idFls,larg,haut,coulFond,nomFichier,verMaj,rediriger){
if(xFlashOK(verMaj)){
if(typeof(idDiv)=="string")
document.getElementById(idDiv).innerHTML=xFlashChnPourInnerHTML(idFls,larg,haut,coulFond,nomFichier,verMaj);
else
idDiv.innerHTML=xFlashChnPourInnerHTML(idFls,larg,haut,coulFond,nomFichier,verMaj);
return true;
}
else{
if(rediriger)xFlashOops();
return false;
}
}
function xFlashSupprimerContenuDe(idDiv){
document.getElementById(idDiv).innerHTML='';
}
function xChnInversee(chn){
if(!chn)return '';
var chnInv='';
for(i=chn.length-1;i>=0;i--)
chnInv+=chn.charAt(i);
return chnInv;
}
function xDocDefilement(){
var defil={h:0,v:0};
if(xHote.navGecko){
defil.h=window.pageXOffset;
defil.v=window.pageYOffset;
}
else if(document.documentElement && document.documentElement.scrollTop){
defil.h=document.documentElement.scrollLeft;
defil.v=document.documentElement.scrollTop;
}
else if(document.body){
defil.h=document.body.scrollLeft;
defil.v=document.body.scrollTop;
}
return defil;
}
function xDocPosSouris(e){
var point={x:0,y:0};
if(!e)var e=window.event;
if(e.pageX){
point.x=e.pageX;
point.y=e.pageY;
}
else if(document.documentElement && document.documentElement.scrollLeft){
point.x=e.clientX+document.documentElement.scrollLeft;
point.y=e.clientY+document.documentElement.scrollTop;
}
else if(document.body){
point.x=e.clientX+document.body.scrollLeft;
point.y=e.clientY+document.body.scrollTop;
}
else{
alert('xDocPosSouris : nowhere !');
}
return point;
}
function xFenPosSouris(e){
var point={x:0,y:0};
if(!e)var e=window.event;
if(document.documentElement||document.body){
point.x=e.clientX;
point.y=e.clientY;
}
else{
alert('xFenPosSouris : nowhere !');
}
return point;
}
function xClientLargeur(){
var larg=0;
if(document.documentElement && document.documentElement.clientWidth){
larg=document.documentElement.clientWidth;
if(xHote.navOP722eu){
larg=document.body.clientWidth;
}
}
else if(document.body && document.body.clientWidth){
larg=document.body.clientWidth;
}
else{
larg=window.innerWidth;
}
return larg;
}
function xClientHauteur(){
var haut=0;
if(document.documentElement && document.documentElement.clientHeight){
haut=document.documentElement.clientHeight;
if(xHote.navOP722eu){
haut=document.body.clientHeight;
}
}
else if(document.body && document.body.clientHeight){
haut=document.body.clientHeight;
}
else{
haut=window.innerHeight;
}
return haut;
}
function xReDim(){
var cltL=xClientLargeur();
var cltH=xClientHauteur();
var menActH=parseInt(document.getElementById('xMenAct').style.height);
var menInaH=parseInt(document.getElementById('xLigneSup').style.top)+parseInt(document.getElementById('xLigneSup').style.height);
var largMin=750;
if(xUrlLangueAlt.length>0)largMin+=50;
if(document.getElementById("xCptPse").style.display=="inline")largMin+=100;
if(cltL<largMin){
document.getElementById('xSignature').style.visibility='hidden';
if(cltL<550){
document.getElementById('xMenAct').style.left='-134px';
document.getElementById('xLogoSimple').style.visibility='visible';
}
else{
document.getElementById('xMenAct').style.left='0px';
document.getElementById('xLogoSimple').style.visibility=xMenuOuvert?'hidden':'visible';
}
}
else{
document.getElementById('xSignature').style.visibility='visible';
document.getElementById('xMenAct').style.left='0px';
document.getElementById('xLogoSimple').style.visibility=xMenuOuvert?'hidden':'visible';
}
with(document.getElementById('divxMenu').style){	
if(xMenuOuvert)
height="99px";
else height="23px";
}
xCentrerScene();
}
function xCentrerHorObj(id){
var largeur=xClientLargeur();
with(document.getElementById(id).style){
left=(largeur-parseInt(width))/2+"px";
if(parseInt(left)<0)left="0px";
}
}
function xCentrerVerObj(id){
var hauteur=xClientHauteur()-(xMenuOuvert? 99: 23);
with(document.getElementById(id).style){
top=(hauteur-parseInt(height))/2+"px";
if(parseInt(top)<0)top="0px";
}
}
function xCentrerHorVerObj(id){
xCentrerHorObj(id);
xCentrerVerObj(id);
}
function xNoeudToutBlanc(noeud){
return !(/[^\t\n\r ]/.test(noeud.data));
}
function xNoeudInutile(noeud){
return (noeud.nodeType==8)||
((noeud.nodeType==3) && xNoeudToutBlanc(noeud));
}
function xPreviousSibling(sib){
while((sib=sib.previousSibling)){
if(!xNoeudInutile(sib))return sib;
}
return null;
}
function xNextSibling(sib){
while((sib=sib.nextSibling)){
if (!xNoeudInutile(sib))return sib;
}
return null;
}
function xLastChild(par){
var res=par.lastChild;
while(res){
if(!xNoeudInutile(res))return res;
res=res.previousSibling;
}
return null;
}
function xFirstChild(par){
var res=par.firstChild;
while(res){
if(!xNoeudInutile(res))return res;
res=res.nextSibling;
}
return null;
}
function xData(txt){
var data=txt.data;
data=data.replace(/[\t\n\r ]+/g, " ");
if(data.charAt(0)==" ")
data=data.substring(1,data.length);
if(data.charAt(data.length-1)==" ")
data=data.substring(0,data.length-1);

return data;
}
function xElementDeEven(e){
var elem=null;
if (!e) var e=window.event;
if(e){
if(e.target){
elem=(e.target.nodeType==3)?e.target.parentNode:e.target;
}
else{
elem=e.srcElement;
}
}
return elem;
}
function xMenu(nom,url){
this.nom=nom;
this.url=url;
this.enfNbr=0;
this.enf=new Array();
this.ajouterEnfants=xAjouterEnfants;
}
function xAjouterEnfants(){
var i=0;
this.enfNbr=arguments.length;
if(this.enfNbr>0){
for(i=0;i<this.enfNbr;i++)
this.enf[i]=arguments[i];
}
else alert("xAjouterEnfants : aucun !?");
}
function xAfficherEnfantsDe(niv,num){
var nbrEnf=0;
var chn='';
var i=0;
if(niv==1){
nbrEnf=xm.enf[num].enfNbr;
if(nbrEnf>0){
for(i=0;i<nbrEnf;i++){
chn+='<div id="xMen2'+i+'" class="xMen" ';
chn+='style="color: '+((xModeSelAuto)?xCoulTxtDim:xCoulTxtAct)+'; ';
chn+='border-bottom: solid 1px '+xCoulBrdNv2+'" ';
chn+='onmouseover="xSvlDeb(2,'+i+')" onmouseout="xSvlFin(2,'+i+')" onclick="xClk(2,'+i+')">';
chn+=xm.enf[num].enf[i].nom+'</div>';
}
with(document.getElementById("xNiv2")){
innerHTML=chn;
style.visibility='visible';
}
}
else{
with(document.getElementById("xNiv2")){
innerHTML="";
style.visibility='visible';
}
}
}
else if(niv==2){
nbrEnf=xm.enf[xo[1]].enf[num].enfNbr;
if(nbrEnf>0){
for(i=0;i<nbrEnf;i++){
chn+='<div id="xMen3'+i+'" class="xMen" ';
chn+='style="color: '+((xModeSelAuto)?xCoulTxtDim:xCoulTxtAct)+'; ';
chn+='border-bottom: solid 1px '+xCoulFondPg+'" ';
chn+='onmouseover="xSvlDeb(3,'+i+')" onmouseout="xSvlFin(3,'+i+')" onclick="xClk(3,'+i+')">';
chn+=xm.enf[xo[1]].enf[num].enf[i].nom+'</div>';
}
with(document.getElementById("xNiv3")){
innerHTML=chn;
style.visibility='visible';
}
}
else{
with(document.getElementById("xNiv3")){
innerHTML="";
style.visibility='visible';	
}
}
}
else{
}
}
function xMenNor(niv,num){
with(document.getElementById("xMen"+niv+num).style){
color=xModeSelAuto?xCoulTxtDim:xCoulTxtAct;
if(debug)fontWeight='normal';
borderTop='solid 1px '+xCoulFondPg;
borderRight='none 1px '+xCoulFondPg;
borderLeft='none 1px '+xCoulFondPg;
textDecoration='none';
switch(niv){
case 1:
borderBottom='solid 1px '+xCoulBrdNv1;
break;
case 2:
borderBottom='solid 1px '+xCoulBrdNv2;
}
}
}
function xMenSel(niv,num){
with(document.getElementById("xMen"+niv+num).style){
color=xCoulTxtSel;
if(debug)fontWeight='bold';
borderBottom='solid 1px '+xCoulFondPg;
switch(niv){
case 1:
borderTop='solid 1px '+xCoulBrdNv1;
borderRight='solid 1px '+xCoulBrdNv1;
borderLeft='solid 1px '+xCoulBrdNv1;
if(xModeSelAuto)
textDecoration='none';
else
textDecoration=(xm.enf[num].enfNbr==0)?'underline':'none';
break;
case 2:
borderTop='solid 1px '+xCoulBrdNv2;
borderRight='solid 1px '+xCoulBrdNv2;
borderLeft='solid 1px '+xCoulBrdNv2;
if(xModeSelAuto)
textDecoration='none';
else
textDecoration=(xm.enf[xo[1]].enf[num].enfNbr==0)?'underline':'none';
break;
case 3:
textDecoration=xModeSelAuto?'none':'underline';
}
}
}
function xSvlDeb(niv,num){
switch(niv){
case 1:
if(xo[1]!=-1){
xMenNor(1,xo[1]);
document.getElementById("xNiv3").style.visibility='hidden';
}
xo[1]=num;
xo[2]=-1;
xo[3]=-1;
break;
case 2:
if(xo[2]!=-1)xMenNor(2,xo[2]);
xo[2]=num;
xo[3]=-1;
break;
case 3:
if(xo[3]!=-1)xMenNor(3,xo[3]);
xo[3]=num;
}
xMenSel(niv,num);
if(!xAppelInterne)		
xMenuSurvol(true);
if(niv<3)xAfficherEnfantsDe(niv,num);
}
function xAfficherSelonModeSelAuto(){
var i;
xAppelInterne=true;
for(i=0;i<7;i++){
document.getElementById("xMen1"+i).style.color=xModeSelAuto?xCoulTxtDim:xCoulTxtAct;
}
if(xp[1]!=-1) xSvlDeb(1,xp[1]);
if(xp[2]!=-1) xSvlDeb(2,xp[2]);
if(xp[3]!=-1) xSvlDeb(3,xp[3]);
xAppelInterne=false;
}
function xRemettreEnModeSelAuto(){
xModeSelAuto=true;
xAfficherSelonModeSelAuto();
xHorlogeMen=null;
xMenuSurvol(false);
}
function xSvlMenusFin(){
if(xHorlogeMen==null)
xHorlogeMen=window.setTimeout("xRemettreEnModeSelAuto()",2000);
}
function xSvlMenusDeb(){
if(xHorlogeMen!=null){
window.clearTimeout(xHorlogeMen);
xHorlogeMen=null;
}
if(!xModeSelAuto)return;
xModeSelAuto=false;
xAfficherSelonModeSelAuto();	
}
function xSvlFin(niv,num){
}
function xClk(niv,num){
var adrURL='';
switch(niv){
case 1:
if(xm.enf[num].enfNbr==0)
adrURL=xm.enf[num].url;
break;
case 2:
if(xm.enf[xo[1]].enf[num].enfNbr==0)
adrURL=xm.enf[xo[1]].enf[num].url;
break;
case 3:
if(xm.enf[xo[1]].enf[xo[2]].enf[num].enfNbr==0)
adrURL=xm.enf[xo[1]].enf[xo[2]].enf[num].url;
}
if(adrURL.length>0)
window.location=xRoot+adrURL;
}
function xMenAnimation(versHaut){
var posy;
if(xHorlogeAni==null)return;
if(versHaut && xMenuOuvert){
with(document.getElementById("xMenAct").style){
posy=parseInt(top);
posy-=20;
top=posy+"px";
if(posy<=-124){
window.clearInterval(xHorlogeAni);
xHorlogeAni=null;
top="-124px";
document.getElementById("xLogoSimple").style.visibility="visible";
document.getElementById("xMenTxt").innerHTML=xTxtAffMenu;
document.getElementById("xMenImg").src=xImgFlcBas.act.src;
xMenuOuvert=false;
xReDim();
}
}
}
else if(!versHaut && !xMenuOuvert){
with(document.getElementById("xMenAct").style){
posy=parseInt(top);
posy+=20;
top=posy+"px";
if(posy>=0){
window.clearInterval(xHorlogeAni);
xHorlogeAni=null;
top="0px";

document.getElementById("xMenTxt").innerHTML=xTxtConMenu;
document.getElementById("xMenImg").src=xImgFlcHaut.act.src;
xMenuOuvert=true;
xReDim();
}
}
}
}
function xLogoClick_Clk(){
if(xm.nom=="f")
window.location=xRoot+"default.aspx";
else
window.location=xRoot+"default_a.aspx";
}
function xNavVers(adr,fen){
}
function xcsdSvlDeb(obj){
with(obj){
style.color=xCoulCsdSvl;
style.textDecoration="underline";
}
}
function xcsdSvlFin(obj){
with(obj){
style.color=xCoulCsdAct;
style.textDecoration="none";
}
}
function xcsdMenSvlDeb(){
with(document.getElementById("xMenTxt").style){
color=xCoulCsdSvl;
textDecoration="underline";
}
if(xMenuOuvert)
document.getElementById("xMenImg").src=xImgFlcHaut.svl.src;
else
document.getElementById("xMenImg").src=xImgFlcBas.svl.src;
}
function xcsdMenSvlFin(){
with(document.getElementById("xMenTxt").style){
color=xCoulCsdAct;
textDecoration="none";
}
if(xMenuOuvert)
document.getElementById("xMenImg").src=xImgFlcHaut.act.src;
else
document.getElementById("xMenImg").src=xImgFlcBas.act.src;
}
function xcsdMenClk(){
if(xHorlogeAni!=null)return;
if(xMenuOuvert){
if(xHorlogeAni!=null){
window.clearInterval(xHorlogeAni);
xHorlogeAni=null;
}
xHorlogeAni=window.setInterval("xMenAnimation(true)", 50);
}
else{
if(xHorlogeAni!=null){
window.clearInterval(xHorlogeAni);
xHorlogeAni=null;
}
document.getElementById("xLogoSimple").style.visibility="hidden";
xHorlogeAni=window.setInterval("xMenAnimation(false)", 50);
}
}
function xcsdLanClk(){
window.location=xRoot+xUrlLangueAlt;
}
function xcsdSesClk(){
var libelle=document.getElementById("xCptSes").innerHTML;
if(libelle.indexOf('connexion')>-1){
window.location=xRoot+"cpt/cptCon_f.aspx";
}
if(libelle.indexOf('login')>-1){
window.location=xRoot+"cpt/cptCon_a.aspx";
}
if(libelle.indexOf('fermer')>-1){
window.location=xRoot+"cpt/cptFrm_f.aspx";
}
if(libelle.indexOf('logout')>-1){
window.location=xRoot+"cpt/cptFrm_a.aspx";
}
}
function xcsdCptClk(){
var libelle=document.getElementById("xCptCpt").innerHTML;
if(libelle.indexOf('compte')>-1){
window.location=xRoot+"cpt/cptMod_f.aspx";
}
if(libelle.indexOf('account')>-1){
window.location=xRoot+"cpt/cptMod_a.aspx";
}
}
function xImg2etats(act,svl){
this.act=act==''?null:new Image();if(this.act)this.act.src=act;
this.svl=svl==''?null:new Image();if(this.svl)this.svl.src=svl;
}
function xImg3etats(act,svl,clk){
this.act=act==''?null:new Image();if(this.act)this.act.src=act;
this.svl=svl==''?null:new Image();if(this.svl)this.svl.src=svl;
this.clk=clk==''?null:new Image();if(this.clk)this.clk.src=clk;
}
function xcsdInit(urlLangueAlternative){
var pseudo;
document.getElementById("xCSD").style.color=xCoulCsdAct;
if(urlLangueAlternative.length>0){
with(document.getElementById("xLanAlt")){
innerHTML=xTxtLangueAlt;
style.display="inline";
}
document.getElementById("xLanSep").style.display="inline";
xUrlLangueAlt=urlLangueAlternative;
}
else{
document.getElementById("xLanAlt").style.display="none";
document.getElementById("xLanSep").style.display="none";	
}
document.getElementById("xCptCpt").innerHTML=xTxtCompte;
document.getElementById("xMenTxt").innerHTML=xTxtConMenu;
try{
pseudo=xChnInversee(document.getElementById("edtZ").value);
}
catch(e){
pseudo="";
}
if(pseudo==""){
pseudo=xChnInversee(xCookieValeurDe("pseudo"));
}
if(pseudo==""){
document.getElementById("xCptPse").style.display="none";
document.getElementById("xCptSes").innerHTML=xTxtSessCon;	
}
else{
with(document.getElementById("xCptPse")){
innerHTML=pseudo+"&nbsp;:&nbsp;";
style.display="inline";
}
document.getElementById("xCptSes").innerHTML=xTxtSessFrm;
}
}
function xInitMenPage(){
var nbrNiv=arguments.length;
var nom='';
var i=0;
if(nbrNiv==0)return;
nom=arguments[0].toLowerCase();
for(i=0;i<xm.enfNbr;i++){
if(xm.enf[i].nom.toLowerCase()==nom){
xp[1]=i;
break;
}
}
if(nbrNiv>1){
nom=arguments[1].toLowerCase();
if(xm.enf[xp[1]].enfNbr>0){
for(i=0;i<xm.enf[xp[1]].enfNbr;i++){
if(xm.enf[xp[1]].enf[i].nom.toLowerCase()==nom){
xp[2]=i;
break;
}
}
}
}
if(nbrNiv>2 && xp[2]!=-1){
nom=arguments[2].toLowerCase();
if(xm.enf[xp[1]].enf[xp[2]].enfNbr>0){
for(i=0;i<xm.enf[xp[1]].enf[xp[2]].enfNbr;i++){
if(xm.enf[xp[1]].enf[xp[2]].enf[i].nom.toLowerCase()==nom){
xp[3]=i;
break;
}
}
}
}
xAfficherSelonModeSelAuto();
xReDim();
}
function xHarmoniserPourIE5xPC(){
if(xHote.navIE599ea){
with(document.getElementById('xLigneSup').style){
height='20px';
}
}
}
function xAssignerLangue(){
switch(xm.nom){
case 'f':
xTxtSignature="une odyssée transsibérienne de l'esprit";
xTxtCompte='votre compte';
xTxtSessCon='connexion';
xTxtSessFrm='fermer session';
xTxtLangueAlt='english';
xTxtConMenu='contracter menu';
xTxtAffMenu='afficher menu';
break;
case 'a':
xTxtSignature='an eclectic journey through the mind';
xTxtCompte='your account';
xTxtSessCon='login';
xTxtSessFrm='logout';
xTxtLangueAlt='français';
xTxtConMenu='contract menu';
xTxtAffMenu='show menu';
break;
default:
alert('langue non trouvée !');
}
}
function xInsererMenu(root,variFondPg,coulTxtDim,coulTxtAct,coulTxtSel,coulBrdNv1,coulBrdNv2,coulFondPg,coulCsdAct,coulCsdSvl,urlLangueAlternative){
var nbrMen=0;
var i=0;
var aller="";
xo[1]=-1;xo[2]=-1;xo[3]=-1;
xp[1]=-1;xp[2]=-1;xp[3]=-1;
xInitMenNoms();
xCoulTxtDim=coulTxtDim;
xCoulTxtAct=coulTxtAct;
xCoulTxtSel=coulTxtSel;
xCoulBrdNv1=coulBrdNv1;
xCoulBrdNv2=coulBrdNv2;
xCoulFondPg=coulFondPg;
xCoulCsdAct=coulCsdAct;
xCoulCsdSvl=coulCsdSvl;
xVariFondPg=variFondPg;
xRoot=root;
xImgFlcHaut=new xImg2etats(xRoot+"art/fh"+xCoulCsdAct.substr(1,6)+".gif",
xRoot+"art/fh"+xCoulCsdSvl.substr(1,6)+".gif");
xImgFlcBas=new xImg2etats(xRoot+"art/fb"+xCoulCsdAct.substr(1,6)+".gif",
xRoot+"art/fb"+xCoulCsdSvl.substr(1,6)+".gif");
xAssignerLangue();
if(xm.nom=="f")
aller="aller à la page d\'accueil";
else
aller="go to home page";
with(document){	
writeln('<div id="divxMenu" style="position:relative; height:99px; margin:0px; width:100%; top:0px; left:0px">');
writeln('<img id="xLogoSimple" title="'+aller+'" onClick="xLogoClick_Clk()" src="'+xRoot+'art/lp'+xCoulFondPg.substr(1,6)+xVariFondPg+'.gif" />'); 
writeln('<div id="xSignature"><span id="xorigaNo">origaNo - </span>'+xTxtSignature+'</div>'); 
writeln('<div id="xLigneSup" style="top: 3px; height: 19px"></div>'); 
writeln('<div id="xMenAct" onmouseover="xSvlMenusDeb()" onmouseout="xSvlMenusFin()" style="top:0px;height:99px">'); 
writeln('<div id="xLogoClick" title="'+aller+'" onClick="xLogoClick_Clk()"></div>');
writeln('<img id="xLogoNormal" title="" src="'+xRoot+'art/lg'+xCoulFondPg.substr(1,6)+xVariFondPg+'.gif" />');  
writeln('<!-- niveau 1 -->');
writeln('<div id="xNiv1">');
nbrMen=xm.enfNbr;
for(i=0;i<nbrMen;i++)
writeln('<div id="xMen1'+i+'" class="xMen" onmouseover=xSvlDeb(1,'+i+') onclick=xClk(1,'+i+') onmouseout=xSvlFin(1,'+i+')>'+xm.enf[i].nom+'</div>');
writeln('</div>');
writeln('<!-- niveau 2 -->');
writeln('<div id="xNiv2"></div>');
writeln('<!-- niveau 3 -->');
writeln('<div id="xNiv3"></div>');
writeln('</div>');
writeln('<div id="xCSD" style="position:absolute;right:24px;width:500px;top:5px;height:14px;z-index:203">');
writeln('<div id="xMenConAff" class="xClsCoinSD" style="cursor:pointer;cursor:hand" onmouseover="xcsdMenSvlDeb()" onmouseout="xcsdMenSvlFin()" onclick="xcsdMenClk()">');
writeln('<span id="xMenTxt">contracter menu</span>');
writeln('<img id="xMenImg" title="" src="'+xRoot+'art/fh'+xCoulCsdAct.substr(1,6)+'.gif" width="9" height="5" />');
writeln('</div>');
writeln('<div id="xLanSep" class="xClsCoinSD" style="display:inline">&nbsp;|&nbsp;</div>');
writeln('<div id="xLanAlt" class="xClsCoinSD" style="display:inline;cursor:pointer;cursor:hand" onmouseover="xcsdSvlDeb(this)" onmouseout="xcsdSvlFin(this)" onclick="xcsdLanClk()">english</div>');
writeln('<div id="xCptFin" class="xClsCoinSD" style="width:30px">&nbsp;]</div>');
writeln('<div id="xCptSes" class="xClsCoinSD" style="cursor:pointer;cursor:hand" onmouseover="xcsdSvlDeb(this)" onmouseout="xcsdSvlFin(this)" onclick="xcsdSesClk()">fermer session</div>');
writeln('<div id="xCptSep" class="xClsCoinSD">&nbsp;|&nbsp;</div>');
writeln('<div id="xCptCpt" class="xClsCoinSD" style="cursor:pointer;cursor:hand" onmouseover="xcsdSvlDeb(this)" onmouseout="xcsdSvlFin(this)" onclick="xcsdCptClk()">votre compte</div>');
writeln('<div id="xCptPse" class="xClsCoinSD" style="display:inline">&nbsp;:&nbsp;</div>');
writeln('<div id="xCptDeb" class="xClsCoinSD">[&nbsp;</div>');
writeln('</div>');
writeln('</div>');
}
if((window.location.toString().toLowerCase().indexOf('default.aspx')!=-1)||
(window.location.toString().toLowerCase().indexOf('default_a.aspx')!=-1)){
document.getElementById("xLogoClick").style.visibility='hidden';
document.getElementById("xLogoSimple").style.cursor='default';
document.getElementById("xLogoSimple").onclick=null;
document.getElementById("xLogoSimple").title="";
}
else{
document.getElementById("xLogoClick").style.background='url('+xRoot+'art/unpix-tr.gif) repeat';
}
xcsdInit(urlLangueAlternative);
xHarmoniserPourIE5xPC();
}
