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[-1] = "BMA"; lien[-1]="../index.php";  w[-1] = "";hasSub[-1] = false;left[-1] = 42;top1[-1] = 0;

texte[0] = "Accueil"; lien[0]="index.php";  w[0] = "";hasSub[0] = false;left[0] = 42;top1[0] = 0;


texte[1] = "Qui sommes nous ?"; lien[1]="?rub=p&id=1";  w[1] = "";hasSub[1] = false;left[1] = 169;top1[1] = 0;


texte[2] = "Vos métiers"; lien[2]="?rub=m";  w[2] = "";hasSub[2] = false;left[2] = 295;top1[2] = 0;


texte[3] = "Nos produits"; lien[3]="?rub=produit";  w[3] = "";hasSub[3] = false;left[3] = 422;top1[3] = 0;


texte[4] = "Pièces et Services"; lien[4]="?rub=service";  w[4] = "";hasSub[4] = false;left[4] = 550;top1[4] = 0;

//texte[5] = "Nous recrutons"; lien[5]="../index.php?rub=o&id=2";  w[5] = "";hasSub[5] = false;left[5] = 677;top1[5] = 0;
texte[5] = "Nous recrutons"; lien[5]="http://www.emploitic.com/candidats/Recherche_offre/prs/bergerat/offre-bergerat-algerie.php";  w[5] = "";hasSub[5] = false;left[5] = 677;top1[5] = 0;



texte[6] = "Actualités"; lien[6]="?rub=n";  w[6] = "";hasSub[6] = false;left[6] = 677;top1[6] = 0;

texte[7] = "Contact"; lien[7]="?rub=c";  w[7] = "";hasSub[7] = false;left[7] = 677;top1[7] = 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_caterpillar"; 
  				break; 
 		case "Out": 
  			if(Etat!="TR_Clique") 
   				document.getElementById("TR"+id).className="TR_Normal_caterpillar"; 
  				break; 
 		case "Click": 
  			if(Etat=="TR_Clique") 
   				document.getElementById("TR"+id).className="TR_Survol_caterpillar"; 
  			else 
   				document.getElementById("TR"+id).className="TR_Survol_caterpillar"; 
  				break; 
	} 

} 


function goHideAllSub()
{
	
}
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";
}



