document.write('<STYLE TYPE="text/css">\nA.menudyn3 {color:#FFFFFF; text-decoration:none;}\nA:hover.menudyn3 {colorgold;text-decoration:none;}\n</STYLE>');

document.write('<TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0 WIDTH='+largeurcadre+' BGCOLOR=black>  <TR><TD><TABLE CELLPADDING=2 CELLSPACING=1 BORDER=0 WIDTH=100%>  <TR>');

for(i=1;i<xlien.length;i++)

{
	document.write('<TD BGCOLOR=#008000 onMouseOver="javascript:colorIt(this);MajMenu('+i+')" ALIGN=center ID=td'+i+'><FONT SIZE=2 FACE="Comic Sans MS"><A HREF="#" onClick="return(false)" onMouseOver="MajMenu('+i+')" CLASS=menudyn3>'+xmenu[i]+'</A></FONT></TD>');
	}
document.write('</TR>  <TR>    <TD COLSPAN='+(xlien.length)+' BGCOLOR=#0000cd HEIGHT='+hauteurcadre+' VALIGN=top><ilayer id="dynamenu31" width=100% height='+hauteurcadre+'><layer id="dynamenu32" width=100% height='+hauteurcadre+'><div id="dynamenu33">&nbsp;</div></layer></ilayer></TD>  </TR></TABLE></TD></TR></TABLE>');

function colorIt(tditem)
	{
	if(document.all)
		{
			document.all.td0.style.background='#008000';
	document.all.td1.style.background='#008000';
	document.all.td2.style.background='#008000';
	document.all.td3.style.background='#008000';
	document.all.td4.style.background='#008000';
	document.all.td5.style.background='#008000';
	document.all.td6.style.background='#008000';

		tditem.style.background='#0000cd';
		}
else if(document.getElementById)
	{
			document.getElementById("td0").style.background='#008000';
	document.getElementById("td1").style.background='#008000';
	document.getElementById("td2").style.background='#008000';
	document.getElementById("td3").style.background='#008000';
	document.getElementById("td4").style.background='#008000';
	document.getElementById("td5").style.background='#008000';
	document.getElementById("td6").style.background='#008000';

tditem.style.background='#0000cd';
	}
}

function MajMenu(menu)
	{
	which = xlien[menu];
if (document.layers){
	document.dynamenu31.document.dynamenu32.document.write('<FONT SIZE=2 FACE="Comic Sans MS">'+which+'</FONT>')
	document.dynamenu31.document.dynamenu32.document.close()
	}
else if (document.getElementById)
			{
			document.getElementById("dynamenu33").innerHTML = '<CENTER><FONT SIZE=2 FACE="Comic Sans MS, Comic Sans MS"><B>'+which+'</B></FONT></CENTER>';
			}
else 	if (document.all){
	dynamenu33.innerHTML='&nbsp;'
	dynamenu33.innerHTML='<FONT SIZE=1 FACE="Comic Sans MS">'+which+'</FONT>';
	}
}
if (document.getElementById)
	colorIt(document.getElementById("td0"));
else if (document.all){
	colorIt(document.all.td0);
	}
MajMenu(0);
