texte = new Array
lien = new Array
w = new Array
hasSub = new Array
var currentSub = ""

texte[0] = "<img src=img/m1.gif width=40 height=9 border=0>"; lien[0] = "index_flash.php"; w[0] = ""; hasSub[1] = false;
texte[1] = "<img src=img/m2.gif width=60 height=9 border=0>"; lien[1] = "index.php"; w[1] = ""; hasSub[1] = false;
texte[2] = "<img src=img/m3.gif width=102 height=9 border=0>"; lien[2] = "presentation.php?cat=8"; w[2] = "";
texte[3] = "<img src=img/m4.gif width=57 height=9 border=0>";lien[3]="presentation.php?cat=1";  w[3] = "";hasSub[3] = true;
texte[4] = "<img src=img/m5.gif width=48 height=9 border=0>"; lien[4] = "emploi.php";w[4] = "";
texte[5] = "<img src=img/m6.gif width=38 height=9 border=0>"; lien[5] = "utile.php";w[5] = ""; 
texte[6] = "<img src=img/m7.gif width=52 height=9 border=0>"; lien[6] = "reseau.php";w[6] = "";
texte[7] = "<img src=img/m8.gif width=66 height=9 border=0>"; lien[7] = "contact.php?cat=8";w[7] = "";



// 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 goSelect()
{
	source = event.srcElement;
	while (source.tagName != "TR") { source = source.parentElement; }
	source.style.backgroundColor='#014C7F';



}
function goUnselect()
{
	source = event.srcElement;
	while (source.tagName != "TR") { source = source.parentElement; }
	source.style.backgroundColor='#2B6091';

}

function goHideAllSub()
{
	
	sub3.style.visibility = "hidden";
}
function goShowSub(obj)
{
	obj.style.visibility = "visible";
}
function goHideSub(obj)
{
	pause = 6000
	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";
}






submenu3 = '<table cellpadding=0 cellspacing=0 border=0 class=table1 bgcolor=#2B6091 width=620><tr><td height=25 class=table1 ><a class=l2 href=presentation.php?cat=1>Agro-industrie</a></td><td class=table0  background=img/tr1.gif WIDTH=1 height=14 BORDER=0></td><td height=25  class=table1 ><a class=l2 href=presentation.php?cat=2>Inter-entreprise</a></td><td class=table0  background=img/tr1.gif WIDTH=1 height=14 BORDER=0></td><td height=25  class=table1 ><a class=l2 href=presentation.php?cat=3>Canalplast</a></td><td class=table0  background=img/tr1.gif WIDTH=1 height=14 BORDER=0></td><td height=25  class=table1 ><a class=l2 href=presentation.php?cat=4>Agrodeel</a></td><td class=table0  background=img/tr1.gif WIDTH=1 height=14 BORDER=0></td><td height=25  class=table1><a class=l2 href="http://www.aquatec-dz.com" target="_blank">Aquatec</a></td><td class=table0  background=img/tr1.gif WIDTH=1 height=14 BORDER=0></td><td height=25  class=table1 ><a class=l2 href=presentation.php?cat=5>ElAlf</a></td><td class=table0  background=img/tr1.gif WIDTH=1 height=14 BORDER=0></td><td height=25  class=table1 ><a class=l2 href=presentation.php?cat=6>CGM Maghnia</a></td></tr></table>';


function affiche_menu()
{

for (i=0; i < texte.length; i++) { 
	if (texte[i] != "no") 
	{
		if (hasSub[i] == true) { overplus = '; goHideAllSub(); goShowSub(sub'+i+')'; outplus = '; goHideSub(sub'+i+')' } else { overplus = '; goHideAllSub()'; outplus = '' }
		document.write('<td valign=middle><center><a class=l2 href='+lien[i]+' onmouseover="'+overplus+'" onmouseout="'+outplus+'">'+texte[i]+'</a></center></td>')
			if (i < texte.length-1 )
			{
				document.write('<td valign=middle><center><img src=img/t1.gif width=2 1 border=0></center></td>')
			}
	}
	else 
	{
		document.write('<table border=0 cellpadding=0 cellspacing=0><tr valign=baseline><td class=table2>&nbsp;</td></tr></table>')
	}

}
}






document.write('<div id=sub3 style="position: absolute; z-index: 5; top: 45; left: 140; visibility: hidden">'+submenu3+'</div>');

document.write('<div class=table2 style="position: absolute; z-index: 30; left: 166;top: 32;"><table cellspacing=0 cellpadding=0 border=0 width=605><tr>');
affiche_menu()
document.write('</tr></table></div>');





