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 = ""

hasSub[0] = true;
hasSub[4] = true;



texte[0] = "<img src=img/puce.gif width=70 height=20 border=0>"; lien[0]="index.php";  w[0] = "";hasSub[0] = false;left[0] = 39+((W_contenu-780)/2);top1[0] = 111;width1[0]=70;height[1]=24;


texte[1] = "<img src=img/puce.gif width=80 height=24 border=0>"; lien[1]="#";  w[1] = "";hasSub[1] = true;left[1] = 131+((W_contenu-780)/2);top1[1] = 107;width1[1]=80;height[1]=24;


texte[2] = "<img src=img/puce.gif width=150 height=46 border=0>"; lien[2]="#";  w[2] = "";hasSub[2] = true;left[2] = 237+((W_contenu-780)/2);top1[2] = 75;width1[2]=150;height[2]=46;


texte[3] = "<img src=img/puce.gif width=78 height=45 border=0>"; lien[3]="#";  w[3] = "";hasSub[3] = true;left[3] = 418+((W_contenu-780)/2);top1[3] = 42;width1[3]=78;height[3]=35;


texte[4] = "<img src=img/puce.gif width=38 height=32 border=0>"; lien[4]="liens.php";  w[4] = "";hasSub[4] = false;left[4] = 532+((W_contenu-780)/2);top1[4] = 10;width1[4]=38;height[3]=32;


// 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()
{
	
	sub1.style.visibility = "hidden";
	sub2.style.visibility = "hidden";
	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";
}






submenu1 = '<table cellpadding=0 cellspacing=0 border=0 class=table1 width=154 height=200 background=img/m_fond.gif style=\'background-repeat: no-repeat\'><tr><td HEIGHT=29 class=table1 ><a class=l2 href=lampes_fofolles.php><IMG SRC=img/m_lampes_fofolles.gif WIDTH=129 HEIGHT=19 BORDER=0></a></td></tr><tr><td HEIGHT=29  class=table1 ><a class=l2 href=lampes_3_fleurs.php><IMG SRC=img/m_lampes_3_fleurs.gif WIDTH=130 HEIGHT=19 BORDER=0></a></td></tr><tr><td HEIGHT=29  class=table1 ><a class=l2 href=lampes_liseuses.php><IMG SRC=img/m_lampes_liseuses.gif WIDTH=119 HEIGHT=19 BORDER=0></a></td></tr><tr><td HEIGHT=29  class=table1 ><a class=l2 href=bougeoirs.php><IMG SRC=img/m_bougeoirs.gif WIDTH=67 HEIGHT=19 BORDER=0></a></td></tr><tr><td HEIGHT=29  class=table1><a class=l2 href=lampes_crinolines.php><IMG SRC=img/m_lampes_crinolines.gif WIDTH=129 HEIGHT=19 BORDER=0></a></td></tr><tr><td HEIGHT=29  class=table1 ><a class=l2 href=suspensions.php><IMG SRC=img/m_suspensions.gif WIDTH=84 HEIGHT=19 BORDER=0></a></td></tr><tr><td HEIGHT=29  class=table1 ><a class=l2 href=lampes_meduses.php><IMG SRC=img/m_lampes_meduses.gif WIDTH=122 HEIGHT=19 BORDER=0></a></td></tr></table>';


submenu2 = '<table cellpadding=0 cellspacing=0 border=0 class=table1 width=227 height=56 background=img/m1_fond.gif style=\'background-repeat: no-repeat\'><tr><td HEIGHT=29 class=table1 ><a class=l2 href=artiste.php><IMG SRC=img/m_artiste.gif WIDTH=200 HEIGHT=14 BORDER=0></a></td></tr><tr><td HEIGHT=29  class=table1 ><a class=l2 href=contact.php><IMG SRC=img/m_contact.gif WIDTH=146 HEIGHT=14 BORDER=0></a></td></tr></table>';


submenu3 = '<table cellpadding=0 cellspacing=0 border=0 class=table1 width=154 height=57 background=img/m2_fond.gif style=\'background-repeat: no-repeat\'><tr><td HEIGHT=29 class=table1 ><a class=l2 href=actualites.php><IMG SRC=img/m_pointdevente.gif WIDTH=103 HEIGHT=14 BORDER=0></a></td></tr><tr><td HEIGHT=29 class=table1 ><a class=l2 href=medias.php><IMG SRC=img/m_medias.gif WIDTH=55 HEIGHT=15 BORDER=0></a></td></tr><tr><td HEIGHT=29 class=table1 ><a class=l2 href=lieux_de_vie.php><IMG SRC=img/m_lieux.gif WIDTH=81 HEIGHT=14 BORDER=0></a></td></tr></table>';


function affiche_menu()
{

for (i=0; i < 5; i++) { 
	if (texte[i] != "no") 
	{
		if (hasSub[i] == true) { overplus = '; goHideAllSub(); goShowSub(sub'+i+')'; outplus = '; goHideSub(sub'+i+')' } else { overplus = '; goHideAllSub()'; outplus = '' }
		document.write('<div style=\"position: absolute;left: '+left[i]+';top: '+top1[i]+';width: '+width1[i]+';height: '+height[i]+';border-style: none\"><a class=l2 style=\'cursor: default\' href='+lien[i]+' onmouseover="'+overplus+'" onmouseout="'+outplus+'">'+texte[i]+'</a></div>')
		if (hasSub[i] == false) {
		document.write('<div style=\"position: absolute;left: '+left[i]+';top: '+top1[i]+';height: '+height[i]+';border-style: none\"><a class=l2 href='+lien[i]+' onmouseover="'+overplus+'" onmouseout="'+outplus+'">'+texte[i]+'</a></div>')
		} 
	}

}
}








left5 = 115+((W_contenu-780)/2)
document.write('<div id=sub1 style="position: absolute;  top: 137; left: '+ left5 +'; z-index:70; visibility: hidden">'+submenu1+'</div>');


left5 = 230+((W_contenu-780)/2)
document.write('<div id=sub2 style="position: absolute;  top: 128; left: '+ left5 +'; z-index:70; visibility: hidden">'+submenu2+'</div>');

left5 = 420+((W_contenu-780)/2)
document.write('<div id=sub3 style="position: absolute;  top: 88; left: '+ left5 +'; z-index:70; visibility: hidden">'+submenu3+'</div>');



affiche_menu()





