texte = new Array
lien = new Array
w = new Array
hasSub = new Array
width1 = new Array
left = new Array
height = new Array

top1 = new Array

var currentSub = ""




texte[0] = "Accueil"; lien[0]="index.php";  w[0] = "";hasSub[0] = false;left[0] = 42;top1[0] = 0;


texte[1] = "L'entreprise"; lien[1]="#";  w[1] = "";hasSub[1] = true;left[1] = 169;top1[1] = 0;


texte[2] = "Marques"; lien[2]="#";  w[2] = "";hasSub[2] = true;left[2] = 295;top1[2] = 0;


texte[3] = "Actualités"; lien[3]="?rub=n";  w[3] = "";hasSub[3] = false;left[3] = 422;top1[3] = 0;


texte[4] = "Nous recrutons"; lien[4]="#";  w[4] = "";hasSub[4] = true;left[4] = 550;top1[4] = 0;

texte[5] = "Contact"; lien[5]="?rub=c";  w[5] = "";hasSub[5] = false;left[5] = 677;top1[5] = 0;

// chargement de la puce dans le cache
rnd_off = new Image();
rnd_on = new Image();
rnd_off.src = "img/rnd2.gif"
rnd_on.src = "img/rnd3.gif"



function Change(id, Mode) { 
	var Etat = document.getElementById("TR"+id).className; 
	switch(Mode) { 
 		case "Over": 
  			if(Etat!="TR_Clique") 
   				document.getElementById("TR"+id).className="TR_Survol"; 
  				break; 
 		case "Out": 
  			if(Etat!="TR_Clique") 
   				document.getElementById("TR"+id).className="TR_Normal"; 
  				break; 
 		case "Click": 
  			if(Etat=="TR_Clique") 
   				document.getElementById("TR"+id).className="TR_Survol"; 
  			else 
   				document.getElementById("TR"+id).className="TR_Survol"; 
  				break; 
	} 

} 


function goHideAllSub()
{
	
	sub1.style.visibility = "hidden";
	sub2.style.visibility = "hidden";
	sub4.style.visibility = "hidden";
}
function goShowSub(obj)
{
	obj.style.visibility = "visible";
}
function goHideSub(obj)
{
	pause = 5000
	currentSub = obj.id
	timer= setTimeout('goHideSub_timedOut('+currentSub+')',pause)
}
function goHideSub_timedOut(obj)
{
	obj.style.visibility = "hidden";
}

function goLed(obj)
{
//	goHideSub_timedOut(sub2); goHideSub_timedOut(sub6); 
	//obj.src = rnd_on.src //"img/rnd3.gif";
}
function goUnLed(obj)
{
	//obj.src = rnd_off.src //"img/rnd2.gif";
}




submenu1 = "<table cellpadding=0 cellspacing=1 border=0 width=124><tr  height=18><td  id=TR1 class=TR_Normal onMouseOver=\"Change(1,\'Over\');\" onMouseOut=\"Change(1,\'Out\');\" onClick=\"window.location=\'?rub=p&id=1\';\"> Présentation</td></tr><tr  height=18><td  id=TR2 class=TR_Normal onMouseOver=\"Change(2,\'Over\');\" onMouseOut=\"Change(2,\'Out\');\" onClick=\"window.location=\'?rub=p&id=2\';\"> Chiffres</td></tr><tr  height=18><td  id=TR3 class=TR_Normal onMouseOver=\"Change(3,\'Over\');\" onMouseOut=\"Change(3,\'Out\');\" onClick=\"window.location=\'?rub=p&id=3\';\"> Perspectives</td></tr></table>"



submenu2 = "<table cellpadding=0 cellspacing=1 border=0 width=105><tr  height=18><td  id=TR5 class=TR_Normal onMouseOver=\"Change(5,\'Over\');\" onMouseOut=\"Change(5,\'Out\');\" onClick=\"window.location=\'caterpillar/\';\"> Caterpillar</td></tr><tr  height=18><td  id=TR6 class=TR_Normal onMouseOver=\"Change(6,\'Over\');\" onMouseOut=\"Change(6,\'Out\');\" onClick=\"window.location=\'mercedes-benz/\';\"> Mercedes-Benz</td></tr><tr  height=18><td  id=TR7 class=TR_Normal onMouseOver=\"Change(7,\'Over\');\" onMouseOut=\"Change(7,\'Out\');\" onClick=\"window.location=\'eneria/\';\"> Eneria</td></tr><tr  height=18><td  id=TR8 class=TR_Normal onMouseOver=\"Change(8,\'Over\');\" onMouseOut=\"Change(8,\'Out\');\" onClick=\"window.location=\'hyster/\';\"> Hyster</td></tr><tr  height=18><td  id=TR9 class=TR_Normal onMouseOver=\"Change(9,\'Over\');\" onMouseOut=\"Change(9,\'Out\');\" onClick=\"window.location=\'sem/\';\"> Sem</td></tr></table>"

//submenu4 = "<table cellpadding=0 cellspacing=1 border=0 width=152><tr  height=18><td  id=TR10 class=TR_Normal onMouseOver=\"Change(10,\'Over\');\" onMouseOut=\"Change(10,\'Out\');\" onClick=\"window.location=\'?rub=o&id=cv\';\"> Déposer votre CV</td></tr><tr  height=18><td  id=TR11 class=TR_Normal onMouseOver=\"Change(11,\'Over\');\" onMouseOut=\"Change(11,\'Out\');\" onClick=\"window.location=\'?rub=o&id=2\';\"> Nos offres</td></tr></table>"


submenu4 = "<table cellpadding=0 cellspacing=1 border=0 width=152><tr  height=18><td  id=TR10 class=TR_Normal onMouseOver=\"Change(10,\'Over\');\" onMouseOut=\"Change(10,\'Out\');\" onClick=\"window.location=\'?rub=o&id=cv\';\"> Déposer votre CV</td></tr><tr  height=18><td  id=TR11 class=TR_Normal onMouseOver=\"Change(11,\'Over\');\" onMouseOut=\"Change(11,\'Out\');\" onClick=\"window.open(\'http://www.emploitic.com/candidats/Recherche_offre/prs/bergerat/offre-bergerat-algerie.php\', \'_blank\');\" > Nos offres</td></tr></table>"