// JavaScript Document
/*
SCRIPT TROUVE SUR L'EDITEUR JAVASCRIPT
http://www.editeurjavascript.com
*/

/* A REGLER MANUELLEMENT SI LE CADRE EST TROP PETIT */
hauteurcadre = 20;

xmenu = new Array;
xlien = new Array;

xmenu[0] = 'Accueil';
xmenu[1] = 'Le Rallycross, Son parcours';
xmenu[2] = 'Hommage à Mikaël';
xmenu[3] = 'Le Trophée Mikaël Pailler';
xmenu[4] = 'Contact';


xlien[0] = ''
xlien[1] = ''
xlien[2] = ''
xlien[3] = ''
xlien[4] = ''
xlien[0] += '<A HREF="http://www.mikael-pailler.com" CLASS=menudyn3>Retour à la page d\'accueil</A>';
xlien[1] += '<A HREF="http://www.mikael-pailler.com/rallycross/tout.html" CLASS=menudyn3>Tout sur Mikaël</A>';
xlien[1] += ' | '
xlien[1] += '<A HREF="http://www.mikael-pailler.com/rallycross/team.html" CLASS=menudyn3>L\'Equipe</A>';
xlien[1] += ' | '
xlien[1] += '<A HREF="http://www.mikael-pailler.com/rallycross/voiture.html" CLASS=menudyn3>La Voiture</A>';
xlien[1] += ' | '
xlien[1] += '<A HREF="http://www.mikael-pailler.com/rallycross/resultats.html" CLASS=menudyn3>Les Résultats</A>';
xlien[1] += ' | '
xlien[1] += '<A HREF="http://www.mikael-pailler.com/rallycross/galerie.html" CLASS=menudyn3>La Galerie</A>';
xlien[1] += ' | '
xlien[1] += '<A HREF="http://www.mikael-pailler.com/rallycross/partenaires.html" CLASS=menudyn3>Les Partenaires</A>';
xlien[1] += ' | '
xlien[1] += '<A HREF="http://www.mikael-pailler.com/rallycross/liens.html" CLASS=menudyn3>Les Liens</A>';
xlien[2] += '<A HREF="http://www.mikael-pailler.com/hommages/hommages.html" CLASS=menudyn3>Les Hommages</A>';
xlien[2] += ' | '
xlien[2] += '<A HREF="http://www.mikael-pailler.com/hommages/livredor.html" CLASS=menudyn3>Le Livre d\'Or</A>';
xlien[3] += '<A HREF="http://www.mikael-pailler.com/trophee/presentation.html" CLASS=menudyn3>Présentation</A>';
xlien[3] += ' | '
xlien[3] += '<A HREF="http://www.mikael-pailler.com/trophee/Saison2007.html" CLASS=menudyn3>Saison 2007</A>';
xlien[3] += ' | '
xlien[3] += '<A HREF="http://www.mikael-pailler.com/trophee/Saison2008/Saison2008.html" CLASS=menudyn3>Saison 2008</A>';
xlien[3] += ' | '
xlien[3] += '<A HREF="http://www.mikael-pailler.com/trophee/partenaires.html" CLASS=menudyn3>Les Partenaires</A>';
xlien[3] += ' | '
xlien[3] += '<A HREF="http://www.mikael-pailler.com/trophee/forum.html" CLASS=menudyn3>Le forum</A>';
xlien[3] += ' | '
xlien[3] += '<A HREF="http://www.mikael-pailler.com/trophee/budget.html" CLASS=menudyn3>Le Budget</A>';
xlien[4] += '<A HREF="mailto:lesitedemikael@tiscali.fr" CLASS=menudyn3>Mail</A>';
document.write('<STYLE TYPE="text/css">\nA.menudyn3 {color:#000000; text-decoration:none;}\nA:hover.menudyn3 {color:#FFFFFF;text-decoration:none;}\n</STYLE>');

document.write('<TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0 WIDTH='+(xlien.length*160)+' BGCOLOR=#000000>  <TR><TD><TABLE CELLPADDING=2 CELLSPACING=1 BORDER=0 WIDTH=100%>  <TR>');

for(i=0;i<xlien.length;i++)

{
	document.write('<TD BGCOLOR=#FF9900 onMouseOver="javascript:colorIt(this);MajMenu('+i+')" ALIGN=center ID=td'+i+'><FONT SIZE=1 FACE="Tahoma"><A HREF="#" onClick="return(false)" onMouseOver="MajMenu('+i+')" CLASS=menudyn3>'+xmenu[i]+'</A></FONT></TD>');
	}
document.write('</TR>  <TR>    <TD COLSPAN='+(xlien.length)+' BGCOLOR=#B6B6B6 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='#FF9900';
	document.all.td1.style.background='#FF9900';
	document.all.td2.style.background='#FF9900';
	document.all.td3.style.background='#FF9900';
	document.all.td4.style.background='#FF9900';
		tditem.style.background='#B6B6B6';
		}
else if(document.getElementById)
	{
			document.getElementById("td0").style.background='#FF9900';
	document.getElementById("td1").style.background='#FF9900';
	document.getElementById("td2").style.background='#FF9900';
	document.getElementById("td3").style.background='#FF9900';
	document.getElementById("td4").style.background='#FF9900';
tditem.style.background='#B6B6B6';
	}
}

function MajMenu(menu)
	{
	which = xlien[menu];
if (document.layers){
	document.dynamenu31.document.dynamenu32.document.write('<FONT SIZE=1 FACE="Verdana">'+which+'</FONT>')
	document.dynamenu31.document.dynamenu32.document.close()
	}
else if (document.getElementById)
			{
			document.getElementById("dynamenu33").innerHTML = '<CENTER><FONT SIZE=1 FACE="Verdana, Arial"><B>'+which+'</B></FONT></CENTER>';
			}
else 	if (document.all){
	dynamenu33.innerHTML='&nbsp;'
	dynamenu33.innerHTML='<FONT SIZE=1 FACE="Verdana">'+which+'</FONT>';
	}
}
if (document.getElementById)
	colorIt(document.getElementById("td0"));
else if (document.all){
	colorIt(document.all.td0);
	}
MajMenu(0);
