
<!--
/***PARAMETRAGE***/
largTable=780;// largeur du tableau principal principal
Vspace=1;// décalage vertical des sousmenus du menu principal
Hspace=1 ;// décalage horizontal des sousmenus des autres sousmenus

typo="Verdana, Arial, Helvetica, sans-serif";

smHauteur=20;
smTaille=10;
smIndentation=15;
smColorNorm='#000000';
smColorSurv='#000000';
smBackColorNorm='none';
smBackColorSurv='none';

smIntercale=false;
smIntercaleColor='#FFFFFF';
/***FIN DE PARAMETRAGE***/
/**/
if(document.layers) smHauteur-=4;
/**/
strStyle="<style type='text/css'>\n<!--\n"
 +".sm {\n"
 +"font-size:"+smTaille+"px;"
 +"color:"+smColorNorm+";"
 +"text-decoration:none;"
 +"font-family:"+typo+";"
 +"line-height:"+smHauteur+"px;"
 +"text-indent:"+smIndentation+"px;"
 +"display:block;"
 +"width:auto;\n";
  if(!document.layers)strStyle+="background-color:"+smBackColorNorm+";";
   if(!document.layers && smIntercale){
   strStyle+="\nborder-top-width:0px;border-left-width:0px;border-right-width:0px;border-bottom-width:1px;\n"
   +"border-top-style:solid;border-left-style:solid;border-right-style:solid;border-bottom-style:solid;\n"
   +"border-top-color:#000000;border-left-color:#000000;border-right-color:#000000;"
   +"border-bottom-color:"+smIntercaleColor+";" ;
   }
 strStyle+="}\n-->\n</style>\n";
document.write(strStyle);

function findObj(n, d) { 
var i,x;  if(!d) d=document;
if(!(x=d[n])&&d.all) x=d.all[n];
//for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n);
x.css=(d.layers)?x:x.style;
return x;
}

function bg(obj,evt,img,s){
var flip=s?"'norm','surv'":"'surv','norm'";
if(img){
document[obj].src=eval("document['"+obj+"'].src.replace("+flip+")");
return
}
/* EVITER POUR LAISSER LES STYLE CSS ATTRIBUES PAR #MSn
if(document.layers) return;
obj.style.color=eval(obj.className+"Color"+evt);
obj.style.background=eval(obj.className+"BackColor"+evt);*/
}

function getBounds(obj,level){
var bounds=[0,0,0,0];// x y witdh height
/**/
if(document.layers){
 if(level==0){
 bounds[0]=obj.x;
 bounds[1]=obj.y;
 bounds[3]=document[obj.img].height;
 }else{
 bounds[0]=findObj(moteur[level-1][1]).x+obj.x;
 bounds[1]=findObj(moteur[level-1][1]).y+obj.y;
 bounds[2]=findObj(moteur[level-1][1]).clip.width;
 bounds[3]=smHauteur;
 }
return bounds	
}
/**/
bounds[2]=obj.offsetWidth;
bounds[3]=obj.offsetHeight;
  while(obj.tagName!='BODY'){
  bounds[0]+=obj.offsetLeft;
  bounds[1]+=obj.offsetTop;
	if(!obj.offsetParent) break;
  obj=obj.offsetParent;
  }
return bounds
}

var moteur=[[,""],[,""],[,""]], Tx=0;
viz=document.layers?"show":"visible"; hid=document.layers?"hide":"hidden";

function eOver(obj,level,SM,img){
clearTimeout(Tx);
var argImg="";
if(img){obj.img=img; argImg=",'"+img+"'";}
  for (i=moteur.length-1;i>=level;i--){
	  if(moteur[i][0] && moteur[i][0]!=obj) { i==0?bg(moteur[i][0].img,'Surv','img'):bg(moteur[i][0],'Norm')}
    if(moteur[i][1] && moteur[i][1]!="" && i>=level) {var Zero=findObj(moteur[i][1]).css;Zero.visibility=hid;Zero.top=0;Zero.left=0}
  }
if(!obj) return;
img?bg(obj.img,'Surv',img,'s'):bg(obj,'Surv');
Wdoc=window.innerWidth||document.body.clientWidth;
Wdoc=(Wdoc<largTable)?largTable:Wdoc;
moteur[level][0]=obj;
  if(SM!=""){
 moteur[level][1]=SM;
 var kalc=findObj(SM), B=getBounds(obj,level,SM), dif, Larg, decal=-10;
	/**/
 Larg=kalc.offsetWidth||kalc.clip.width;
 if(document.layers) kalc.document.bgColor=smBackColorNorm;
 dif=Wdoc-(B[0]+Larg);
	/**/
 if(level==0 && dif<0)decal=dif;
 if(level>0 && (dif-B[2])<0)decal=((B[2]+Larg)*(-1));
 level==0?B[1]+=B[3]+Hspace:B[0]+=(B[2]+Vspace);
 kalc.css.top=B[1]; kalc.css.left=(B[0]+decal);
 kalc.css.visibility=viz;
	}
if(!obj.onmouseout)obj.onmouseout=Function("Tx=setTimeout(\"eOver(false,0,''"+argImg+")\", 600)");
}
//-->