posYmenu =0;
bgcolor='#ffffff';
bgcolor2='#691745';
arrow_sub='<span class="arrow">&nbsp;&nbsp;-></span>'
needcenter =false;
if(!needcenter)
posXmenu = 0;
else
{ if (document.all)
posXmenu = (document.body.clientWidth/2)-(960/2);
else
posXmenu = (window.innerWidth/2)-(960/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:9pt;}')
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:#1C82CC;font-weight:bold; 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 applications*/

zlien[1][0] = '<A HREF="metiers.htm" CLASS=ejsmenu onMouseOver="pop_sub(0,0,0)">Métiers</A>';
zlien[1][1] = '<A HREF="logistique.htm" CLASS=ejsmenu onMouseOver="pop_sub(0,0,0)">Logistique</A>';



/*Sous menu exemples*/
/*zlien[2][0] = '<A HREF="decoupe.htm" CLASS=ejsmenu onMouseOver="pop_sub(0,0,0)">Découpe fromage</A>';
zlien[2][1] = '<A HREF="geniecivil.htm" CLASS=ejsmenu onMouseOver="pop_sub(0,0,0)">Génie civil</A>';
zlien[2][2] = '<A HREF="guidage.htm" CLASS=ejsmenu onMouseOver="pop_sub(0,0,0)">Robotique</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="commercial.htm" CLASS=ejsmenu onMouseOver="pop_sub(0,0,0)">Commerciaux</A>';
zlien[3][1] = '<A HREF="depots.htm" CLASS=ejsmenu onMouseOver="pop_sub(0,0,0)">Dépots</A>';
*/

/*Sous menu contacts*/
zlien[4][0] = '<A HREF="legal.htm" CLASS=ejsmenu onMouseOver="pop_sub(0,0,0)">Infos legales</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+20;

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=120 ><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=960 ><TR><TD><TABLE CELLPADING=0 CELLSPACING=1 WIDTH=100% HEIGHT=20><TR>')

document.write('<TD WIDTH=160 ALIGN=center BGCOLOR='+bgcolor+' onMouseOver="this.style.background=\''+bgcolor2+'\';"kill()" onMouseOut="this.style.background=\''+bgcolor+'\'" ><A onClick="return(true)" onMouseOver="kill()" href="histoire.htm" CLASS=ejsmenu><FONT SIZE=2 FACE="Verdana">Histoire</FONT></a></TD>')

document.write('<TD WIDTH=160 ALIGN=center BGCOLOR='+bgcolor+' onMouseOver="this.style.background=\''+bgcolor2+'\';"kill()" onMouseOut="this.style.background=\''+bgcolor+'\'"><A onClick="return(true)" onMouseOver="pop(zlien[1],137)" href="societe.htm" CLASS=ejsmenu><FONT SIZE=2 FACE="Verdana">Société</FONT></a></TD>')

document.write('<TD WIDTH=160 ALIGN=center BGCOLOR='+bgcolor+' onMouseOver="this.style.background=\''+bgcolor2+'\';"kill()" onMouseOut="this.style.background=\''+bgcolor+'\'"><A onClick="return(true)" onMouseOver="pop(zlien[2],175)" href="produits.htm" CLASS=ejsmenu><FONT SIZE=2 FACE="Verdana">Produits</FONT></a></TD>')

document.write('<TD WIDTH=160 ALIGN=center BGCOLOR='+bgcolor+' onMouseOver="this.style.background=\''+bgcolor2+'\';"kill()" onMouseOut="this.style.background=\''+bgcolor+'\'"><A onClick="return(true)" onMouseOver="pop(zlien[3],480)" href="news.htm" CLASS=ejsmenu><FONT SIZE=2 FACE="Verdana">News</FONT></a></TD>')

document.write('<TD WIDTH=160 ALIGN=center BGCOLOR='+bgcolor+' onMouseOver="this.style.background=\''+bgcolor2+'\';"kill()" onMouseOut="this.style.background=\''+bgcolor+'\'"><A onClick="return(true)" onMouseOver="pop(zlien[4],543)" href="contacts.htm" CLASS=ejsmenu><FONT SIZE=2 FACE="Verdana">Contacts</FONT></a></TD>')

document.write('<TD WIDTH=160 ALIGN=center BGCOLOR='+bgcolor+' onMouseOver="this.style.background=\''+bgcolor2+'\';"kill()" onMouseOut="this.style.background=\''+bgcolor+'\'"><A onClick="return(true)" onMouseOver="kill()" href="http://www.cevam.com/catalfra/index.php" target="blank" CLASS=ejsmenu><FONT SIZE=2 FACE="Verdana">Commander</FONT></a></TD>')

document.write('<TD WIDTH=160 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=2 FACE="Verdana">Accueil</FONT></a></TD>')

