var vcoul;
var openf=0;


var nbmetier=19;
var tabback1=new Array();
var tabback2=new Array();
var taball=new Array();
taball[0]='c180';
taball[1]='vt1';
taball[2]='sergea';
taball[3]='cv47';
taball[4]='croiset';
taball[5]='cv82';
taball[6]='cc320';
taball[7]='kgf';
taball[8]='bkt';
taball[9]='m60';
taball[10]='cb8707';
taball[11]='cb8808';
taball[12]='raider';
taball[13]='s250';
taball[14]='s300';
taball[15]='supermaine';
taball[16]='alpha';
taball[17]='cb26';
taball[18]='velys';
taball[19]='s310';
taball[20]='c330';
taball[21]='secuM54';
taball[22]='c360';
taball[23]='fluo30085';
taball[24]='fluo270';
taball[25]='fluo30045';
taball[26]='velyshv';
taball[27]='kermel';

taball[28]='PPeC145';
taball[29]='CCP190';
taball[30]='CR220C';
taball[31]='ChCle210';
taball[32]='SCPe270';
taball[33]='ChCPe285';
taball[34]='cc3202';
taball[35]='SCPe320';
//taball[36]='reps350';

//taball[37]='flash';
taball[36]='sc310';
//taball[39]='virginie';
taball[37]='m54';
taball[38]='pop180';
taball[39]='atlanta';
taball[40]='rp32';
taball[41]='phenix';
taball[42]='s250';
taball[43]='luxor';
taball[44]='fashion';
taball[45]='highlands';



var prof1=new Array();
prof1[0]=0;
prof1[1]=6;
prof1[2]=10;
prof1[3]=15;
prof1[4]=18;
prof1[5]=19;
prof1[6]=20;
prof1[7]=27;
prof1[8]=28;
prof1[9]=29;
prof1[10]=30;
prof1[11]=31;
prof1[12]=32;
prof1[13]=33;
prof1[14]=34;
prof1[15]=35;
prof1[16]=43;

var prof2=new Array();
prof2[0]=12;
prof2[1]=13;
prof2[2]=14;
prof2[3]=15;
prof2[4]=16;
prof2[5]=18;
prof2[6]=19;
prof2[7]=20;
prof2[8]=22;
prof2[9]=23;
prof2[10]=24;
prof2[11]=25;
prof2[12]=26;
prof2[13]=27;
prof2[14]=38;
prof2[15]=43;
prof2[16]=44;
prof2[17]=45;

var prof3=new Array();
prof3[0]=0;
prof3[1]=1;
prof3[2]=2;
prof3[3]=3;
prof3[4]=4;
prof3[5]=6;
prof3[6]=7;
prof3[7]=9;
prof3[8]=12;
prof3[9]=13;
prof3[10]=14;
prof3[11]=15;
prof3[12]=16;
prof3[13]=18;
prof3[14]=37;
prof3[15]=38;
prof3[16]=39;
prof3[17]=40;
prof3[18]=41;
prof3[19]=44;
prof3[20]=45;

var prof4=new Array();
prof4[0]=0;
prof4[1]=1;
prof4[2]=2;
prof4[3]=6;
prof4[4]=10;
prof4[5]=11;
prof4[6]=12;
prof4[7]=13;
prof4[8]=17;
prof4[9]=43;
prof4[10]=45;

var prof5=new Array();
prof5[0]=1;
prof5[1]=2;
prof5[2]=3;
prof5[3]=4;
prof5[4]=5;
prof5[5]=6;
prof5[6]=7;
prof5[7]=9;
prof5[8]=12;
prof5[9]=13;
prof5[10]=14;
prof5[11]=15;
prof5[12]=16;
prof5[13]=18;
prof5[14]=19;
prof5[15]=20;
prof5[16]=21;
prof5[17]=22;
prof5[18]=23;
prof5[19]=24;
prof5[20]=25;
prof5[21]=26;
prof5[22]=27;
prof5[23]=36;
prof5[24]=38;
prof5[25]=39;
prof5[26]=40;
prof5[27]=41;
prof5[28]=43;
prof5[29]=44;
prof5[30]=45;

var prof6=new Array();
prof6[0]=2;
prof6[1]=3;
prof6[2]=4;
prof6[3]=5;
prof6[4]=6;
prof6[5]=7;
prof6[6]=9;
prof6[7]=12;
prof6[8]=14;
prof6[9]=15;
prof6[10]=16;
prof6[11]=23;
prof6[12]=24;
prof6[13]=25;
prof6[14]=26;
prof6[15]=36;
prof6[16]=37;
prof6[17]=38;
prof6[18]=44;
prof6[19]=45;

var prof7=new Array();
prof7[0]=0;
prof7[1]=1;
prof7[2]=2;
prof7[3]=3;
prof7[4]=4;
prof7[5]=6;
prof7[6]=7;
prof7[7]=9;
prof7[8]=12;
prof7[9]=13;
prof7[10]=14;
prof7[11]=15;
prof7[12]=16;
prof7[13]=18;
prof7[14]=36;
prof7[15]=38;
prof7[16]=39;
prof7[17]=40;
prof7[18]=41;
prof7[19]=44;

var prof8=new Array();
prof8[0]=0;
prof8[1]=1;
prof8[2]=2;
prof8[3]=3;
prof8[4]=4;
prof8[5]=5;
prof8[6]=6;
prof8[7]=7;
prof8[8]=9;
prof8[9]=12;
prof8[10]=13;
prof8[11]=14;
prof8[12]=15;
prof8[13]=16;
prof8[14]=18;
prof8[15]=19;
prof8[16]=20;
prof8[17]=21;
prof8[18]=22;
prof8[19]=27;
prof8[20]=36;
prof8[21]=38;
prof8[22]=39;
prof8[23]=40;
prof8[24]=41;
prof8[25]=43;
prof8[26]=44;
prof8[27]=45;

var prof9=new Array();
prof9[0]=0;
prof9[1]=1;
prof9[2]=2;
prof9[3]=3;
prof9[4]=4;
prof9[5]=6;
prof9[6]=7;
prof9[7]=9;
prof9[8]=13;
prof9[9]=14;
prof9[10]=15;
prof9[11]=16;
prof9[12]=19;
prof9[13]=20;
prof9[14]=21;
prof9[15]=22;
prof9[16]=27;
prof9[17]=36;
prof9[18]=38;
prof9[19]=39;
prof9[20]=40;
prof9[21]=41;
prof9[22]=44;

var prof10=new Array();
prof10[0]=4;
prof10[1]=5;
prof10[2]=7;
prof10[3]=9;
prof10[4]=14;
prof10[5]=15;
prof10[6]=16;
prof10[7]=19;
prof10[8]=20;
prof10[9]=21;
prof10[10]=22;
prof10[11]=27;
prof10[12]=37;

var prof11=new Array();
prof11[0]=0;
prof11[1]=1;
prof11[2]=10;
prof11[3]=11;
prof11[4]=12;
prof11[5]=13;
prof11[6]=17;
prof11[7]=18;
prof11[8]=38;
prof11[9]=43;

var prof12=new Array();
prof12[0]=2;
prof12[1]=3;
prof12[2]=4;
prof12[3]=5;
prof12[4]=6;
prof12[5]=7;
prof12[6]=8;
prof12[7]=9;
prof12[8]=12;
prof12[9]=13;
prof12[10]=14;
prof12[11]=15;
prof12[12]=16;
prof12[13]=19;
prof12[14]=20;
prof12[15]=21;
prof12[16]=22;
prof12[17]=27;
prof12[18]=36;
prof12[19]=37;
prof12[20]=38;
prof12[21]=39;
prof12[22]=40;
prof12[23]=41;
prof12[24]=44;

var prof13=new Array();
prof13[0]=5;
prof13[1]=9;
prof13[2]=19;
prof13[3]=20;
prof13[4]=21;
prof13[5]=22;
prof13[6]=27;

var prof14=new Array();
prof14[0]=19;
prof14[1]=20;
prof14[2]=21;
prof14[3]=22;
prof14[4]=27;

var prof15=new Array();
prof15[0]=0;
prof15[1]=1;
prof15[2]=12;
prof15[3]=13;
prof15[4]=43;
prof15[5]=45;

var prof16=new Array();
prof16[0]=1;
prof16[1]=2;
prof16[2]=3;
prof16[3]=4;
prof16[4]=6;
prof16[5]=12;
prof16[6]=13;
prof16[7]=14;
prof16[8]=15;
prof16[9]=16;
prof16[10]=18;
prof16[11]=23;
prof16[12]=24;
prof16[13]=25;
prof16[14]=26;
prof16[15]=38;
prof16[16]=39;
prof16[17]=40;
prof16[18]=41;
prof16[19]=43;
prof16[20]=44;
prof16[21]=45;

var prof17=new Array();
prof17[0]=7;
prof17[1]=8;


var prof18=new Array();
prof18[0]=1;
prof18[1]=2;
prof18[2]=6;
prof18[3]=12;
prof18[4]=13;
prof18[5]=14;
prof18[6]=15;
prof18[7]=16;
prof18[8]=18;
prof18[9]=36;
prof18[10]=38;
prof18[11]=39;
prof18[12]=40;
prof18[13]=41;
prof18[14]=44;

var proftous=new Array();

function ligne(ligne, md) {
if (md == 0) {
	vcoul = ligne.className;
	ligne.className = 'ligneOver';
} else {
	ligne.className = vcoul;
}
}

function ligne2(tab) {
	for (i=0;i<=tabback1.length-1;i++){
		eval(taball[tabback2[i]]).className = tabback1[i];
	}
	tabback1=new Array();
	for (i=0;i<=tab.length-1;i++){
		tabback1[i] = eval(taball[tab[i]]).className;
		tabback2[i] = tab[i];
		eval(taball[tab[i]]).className = 'ligneSel';
	}
}

function coulligne(l){
	for (i=1;i<=nbmetier;i++){
	eval("m"+i).className='menu';
	}
	l.className='menuh';
}

function popup(page,largeur,hauteur,option) {
  var top=(screen.height-hauteur)/2;
  var left=(screen.width-largeur)/2;
  if (openf==1){
	  fen.close();
	  fen=window.open(page,"","top="+top+",left="+left+",width="+largeur+",height="+hauteur+","+option);
  }else{  
	  fen=window.open(page,"","top="+top+",left="+left+",width="+largeur+",height="+hauteur+","+option);
	  openf=1;
  }
}

var bulleStyle=null;
if (!document.layers && !document.all && !document.getElementById)
   event="chut";  //pour apaiser NN3 et autres antiquites


function bullepop(idd,evt){
 
    
 var xfenetre,yfenetre,xpage,ypage,element=null;
 var offset= 10;           // decalage par defaut
 var bulleWidth=200;       // largeur par defaut 
 var hauteur=50;           // hauteur par defaut
 bulleStyle=null;
 
  if (document.layers) {
    bulleStyle=document.layers[idd];
    xpage = evt.pageX ; ypage  = evt.pageY;
    xfenetre = xpage ;yfenetre = ypage ;		
  } else if (document.all) {
    element=document.all[idd]
    xfenetre = evt.x ;yfenetre = evt.y ;
    xpage=xfenetre ; ypage=yfenetre	;	
    if (document.body.scrollLeft) xpage = xfenetre + document.body.scrollLeft ; 
    if (document.body.scrollTop) ypage = yfenetre + document.body.scrollTop;
  } else if (document.getElementById) {
	  element=document.getElementById(idd)
     
    xfenetre = evt.clientX ; yfenetre = evt.clientY ;
    xpage=xfenetre ; ypage=yfenetre	;	
    if(evt.pageX) xpage = evt.pageX ;
    if(evt.pageY) ypage  = evt.pageY ;
  }
    
  if(element)  bulleStyle=element.style;
		 	
  if(bulleStyle) {
   
     var yp0=ypage;
		 var yf0=yfenetre;
		 

     /* tests incongrus à cause d'Opera5 */
     if(bulleStyle.width) bulleWidth = parseFloat(bulleStyle.width);
     if(bulleStyle.height) hauteur = parseFloat(bulleStyle.height);

		 
     /* on met la bulle à gauche du pointeur (si c'est possible) 
        et en haut du pointeur si on est assez bas dans l'écran */
				
     if (xfenetre > bulleWidth+offset) xpage=xpage-bulleWidth-offset;
     else {
         if (xfenetre >0.5*bulleWidth+offset) xpage=xpage-0.5*bulleWidth-offset;
				 else xpage=xpage+15;}
     if ( yfenetre > hauteur+offset ) ypage=ypage-hauteur-offset
		 else ypage=ypage+offset;
		 
		/* a cause des debilites d'Opera5 il faut rectifier 'ypage' pour eviter
		   que la bulle ne s'ouvre par-dessus la souris. La bulle s'ouvrira
			 TOUJOURS en bas avec Opera5. Derniere vacherie : il faut faire le test sur
			 bulleStyle.width pour se proteger des distraits qui n'auront pas
			 rempli bulleStyle.height */
			 
		 if (!bulleStyle.width)	ypage=yfenetre+offset;
		 if(typeof(bulleStyle.left)=='string') {
				 bulleStyle.left=xpage+'px'; bulleStyle.top=ypage+'px';  
		} else {
				bulleStyle.left=xpage     ; bulleStyle.top=ypage ; }
     bulleStyle.visibility="visible"; 
     bulleStyle.zIndex="99";}
}

function couic(){
  if(bulleStyle)  bulleStyle.visibility="hidden";
}