posYmenu =0;
bgcolor='#D9D9D9';
bgcolor2='#787878';
arrow_sub='<span class="arrow">&nbsp;&nbsp;-></span>'
needcenter =false;
if(!needcenter)
posXmenu = 0;
else
{ if (document.all)
posXmenu = (document.body.clientWidth/2)-(500/2);
else
posXmenu = (window.innerWidth/2)-(500/2); 
}
document.write('<style type="text/css">');
document.write('.popper { POSITION: absolute; VISIBILITY: hidden; z-index:16; }')
document.write('.arrow{font-family: Webdings;font-size:8pt;}')
document.write('#topgauche { position:absolute; top:'+posYmenu+'px; left:'+posXmenu+'px; z-index:15; }')
document.write('A:hover.ejsmenu {color:#FFFFFF; text-decoration:none;width: 90%;}')
document.write('A.ejsmenu {color:#2A3342;font-weight:normal; text-decoration:none;width: 90%;}')

document.write('</style>')
document.write('<DIV class=popper id=topdeck></DIV>');
document.write('<DIV class=popper id=topdeck2></DIV>');
/*lien sous menu*/

/*LIENS*/

zlien = new Array;
zlien[0] = new Array;
zlien[1] = new Array;
zlien[2] = new Array;
zlien[3] = new Array;
zlien[4] = new Array;
zlien[5] = new Array;
zlien[6] = new Array;

zlien_sub_cnc_autres=new Array;
zlien_sub_cnc_autres[0] = new Array;



/*Sous menu cnc*/

zlien[1][0] = '<A HREF="siemens.htm" CLASS=ejsmenu onMouseOver="pop_sub(0,0,0)">Siemens</A>';
zlien[1][1] = '<A HREF="prototrak.htm" CLASS=ejsmenu onMouseOver="pop_sub(0,0,0)">Prototrak</A>';
zlien[1][2] = '<A HREF="fanuc.htm" CLASS=ejsmenu onMouseOver="pop_sub(0,0,0)">Fanuc</A>';
zlien[1][3] = '<A HREF="fao.htm" CLASS=ejsmenu onMouseOver="pop_sub(0,0,0)">FAO</A>';

/*Sous menu machines*/
zlien[2][0] = '<A HREF="fraiseusesxyz.htm" CLASS=ejsmenu onMouseOver="pop_sub(0,0,0)">Fraiseuses XYZ</A>';
zlien[2][1] = '<A HREF="fraiseuses.htm" CLASS=ejsmenu onMouseOver="pop_sub(0,0,0)">Fraiseuses</A>';
zlien[2][2] = '<A HREF="toursxyz.htm" CLASS=ejsmenu onMouseOver="pop_sub(0,0,0)">Tours XYZ</A>';
zlien[2][3] = '<A HREF="tours.htm" CLASS=ejsmenu onMouseOver="pop_sub(0,0,0)">Tours</A>';
zlien[2][4] = '<A HREF="centresxyz.htm" CLASS=ejsmenu onMouseOver="pop_sub(0,0,0)">Centres XYZ</A>';
zlien[2][5] = '<A HREF="centres.htm" CLASS=ejsmenu onMouseOver="pop_sub(0,0,0)">Centres</A>';
zlien[2][6] = '<A HREF="table.htm" CLASS=ejsmenu onMouseOver="pop_sub(0,0,0)">Table croisée à CNC</A>';

/*Sous menu formation*/

zlien[3][0] = '<A HREF="financement.htm" CLASS=ejsmenu onMouseOver="pop_sub(0,0,0)">Financement</A>';
zlien[3][1] = '<A HREF="#" CLASS=ejsmenu onMouseOver="pop_sub(zlien_sub_cnc_autres[0],311,39)">SAV CNC</A>';
zlien[3][2] = '<A HREF="occasions.htm" CLASS=ejsmenu onMouseOver="pop_sub(0,311,39)">Occasions</A>';

/* zlien[3][0] = '<A HREF="formation.htm" CLASS=ejsmenu onMouseOver="pop_sub(0,0,0)">Formation</A>';
zlien[3][1] = '<A HREF="sav.htm" CLASS=ejsmenu onMouseOver="pop_sub(0,0,0)">SAV</A>';
zlien[3][2] = '<A HREF="retrofit.htm" CLASS=ejsmenu onMouseOver="pop_sub(0,0,0)">Retrofit</A>';
zlien[3][4] = '<A HREF="demonstration.htm" CLASS=ejsmenu onMouseOver="pop_sub(0,0,0)">Démonstration</A>';*/

/*Sous menu contacts*/
zlien[5][0] = '<A HREF="plan.htm" CLASS=ejsmenu onMouseOver="pop_sub(0,0,0)">Plan</A>';

/*sous menu Niveau 1*/

zlien_sub_cnc_autres[0][0] = '<A HREF="anilam.htm" CLASS=ejsmenu >Anilam</A>';
zlien_sub_cnc_autres[0][1] = '<A HREF="centroid.htm" CLASS=ejsmenu >Centroïd</A>';

var nava = (document.layers);
var dom = (document.getElementById);
var iex = (document.all);

if (nava) {
   skn = document.topdeck;
   skn_sub=document.topdeck2;
}
else if (dom){
     skn = document.getElementById("topdeck").style;
     skn_sub = document.getElementById("topdeck2").style;
}
else if (iex) {
     skn = topdeck.style;
     skn_sub = topdeck2.style;
}

skn.top = posYmenu+22;

function pop(msg,pos)
{
skn_sub.visibility = "hidden";
skn.visibility = "hidden";
a=true
skn.left = posXmenu+pos;
var content ="<TABLE CELLPADDING=0 CELLSPACING=0 BGCOLOR=#2A3342 WIDTH=110 ><TR><TD><TABLE WIDTH=100% CELLPADDING=0 CELLSPACING=1 >";
pass = 0
while (pass < msg.length)
{
content += "<TR><TD  BGCOLOR="+bgcolor+" onMouseOver=\"this.style.background='"+bgcolor2+"'\" onMouseOut=\"this.style.background='"+bgcolor+"'\" HEIGHT=15 ><FONT SIZE=1 FACE=\"Verdana\"><B>&nbsp;&nbsp;"+msg[pass]+"</B></FONT></TD></TR>";
pass++;
}
content += "</TABLE></TD></TR></TABLE>";
if (nava)
  {
    skn.document.write(content);
  skn.document.close();
  skn.visibility = "visible";
  }
    else if (dom)
  {
  document.getElementById("topdeck").innerHTML = content;
  skn.visibility = "visible";
  }
    else if (iex)
  {
  document.all("topdeck").innerHTML = content;
  skn.visibility = "visible";
  }
}

/*sous menu Niveau 2*/

function pop_sub(msg,posx,posy)
{
skn_sub.visibility = "hidden";
a=true
skn_sub.left = posXmenu+posx;
skn_sub.top = posYmenu+posy;
var content ="<TABLE CELLPADDING=0 CELLSPACING=0 BGCOLOR=#2A3342 WIDTH=110 ><TR><TD><TABLE WIDTH=100% CELLPADDING=0 CELLSPACING=1 >";
pass = 0
while (pass < msg.length)
{
content += "<TR><TD  BGCOLOR="+bgcolor+" onMouseOver=\"this.style.background='"+bgcolor2+"'\" onMouseOut=\"this.style.background='"+bgcolor+"'\" HEIGHT=15 ><FONT SIZE=1 FACE=\"Verdana\"><B>&nbsp;&nbsp;"+msg[pass]+"</B></FONT></TD></TR>";
pass++;
}
content += "</TABLE></TD></TR></TABLE>";
if (nava)
  {
    skn_sub.document.write(content);
  skn_sub.document.close();
  skn_sub.visibility = "visible";
  }
    else if (dom)
  {
  document.getElementById("topdeck2").innerHTML = content;
  skn_sub.visibility = "visible";
  }
    else if (iex)
  {
  document.all("topdeck2").innerHTML = content;
  skn_sub.visibility = "visible";
  }
}


function kill(){
	 skn.visibility = "hidden";
	 skn_sub.visibility = "hidden";
}
document.onclick = kill;
document.write('<DIV ID=topgauche><TABLE CELLPADDING=0 CELLSPACING=0 BGCOLOR=#2A3342 WIDTH=501 ><TR><TD><TABLE CELLPADING=0 CELLSPACING=1 WIDTH=100% HEIGHT=15><TR>')

document.write('<TD WIDTH=103 ALIGN=center BGCOLOR='+bgcolor+' onMouseOver="this.style.background=\''+bgcolor2+'\';"kill()" onMouseOut="this.style.background=\''+bgcolor+'\'" ><A onClick="return(true)" onMouseOver="kill()" href="societe.htm" CLASS=ejsmenu><FONT SIZE=1 FACE="Verdana">Société</FONT></a></TD>')
document.write('<TD WIDTH=103 ALIGN=center BGCOLOR='+bgcolor+' onMouseOver="this.style.background=\''+bgcolor2+'\';pop(zlien[1],70)" onMouseOut="this.style.background=\''+bgcolor+'\'"><A onClick="return(true)" onMouseOver="pop(zlien[1],70)" href="cnc.htm" CLASS=ejsmenu><FONT SIZE=1 FACE="Verdana">C N C</FONT></a></TD>')
document.write('<TD WIDTH=103 ALIGN=center BGCOLOR='+bgcolor+' onMouseOver="this.style.background=\''+bgcolor2+'\';pop(zlien[2],124)" onMouseOut="this.style.background=\''+bgcolor+'\'"><A onClick="return(true)" onMouseOver="pop(zlien[2],124)" href="machines.htm" CLASS=ejsmenu><FONT SIZE=1 FACE="Verdana">Machines</FONT></a></TD>')
document.write('<TD WIDTH=103 ALIGN=center BGCOLOR='+bgcolor+' onMouseOver="this.style.background=\''+bgcolor2+'\';pop(zlien[3],202)" onMouseOut="this.style.background=\''+bgcolor+'\'"><A onClick="return(true)" onMouseOver="pop(zlien[3],202)" href="services.htm" CLASS=ejsmenu><FONT SIZE=1 FACE="Verdana">Services</FONT></a></TD>')
document.write('<TD WIDTH=103 ALIGN=center BGCOLOR='+bgcolor+' onMouseOver="this.style.background=\''+bgcolor2+'\';"kill()" onMouseOut="this.style.background=\''+bgcolor+'\'"><A onClick="return(true)" onMouseOver="kill()" href="export.htm" CLASS=ejsmenu><FONT SIZE=1 FACE="Verdana">Export</FONT></a></TD>')
document.write('<TD WIDTH=103 ALIGN=center BGCOLOR='+bgcolor+' onMouseOver="this.style.background=\''+bgcolor2+'\';pop(zlien[5],356)" onMouseOut="this.style.background=\''+bgcolor+'\'"><A onClick="return(true)" onMouseOver="pop(zlien[5],356)" href="contact.htm" CLASS=ejsmenu><FONT SIZE=1 FACE="Verdana">Contact</FONT></a></TD>')
document.write('<TD WIDTH=103 ALIGN=center BGCOLOR='+bgcolor+' onMouseOver="this.style.background=\''+bgcolor2+'\';"kill()" onMouseOut="this.style.background=\''+bgcolor+'\'"><A onClick="return(true)" onMouseOver="kill()" href="index.htm" CLASS=ejsmenu><FONT SIZE=1 FACE="Verdana">Accueil</FONT></a></TD>')

