var menu = [
            ["Accueil","top.location.href='index.php';"],
            ["Contact","top.location.href='contact.htm';"],
            //["Accessoires","top.location.href='index.htm';"],
	    	//["Tuning Quad Power","top.location.href='index.htm';"],
			["Accessoires","window.open('http://www.reaction-parts.ch/','','');"],
            ["Sports/Loisirs","top.location.href='quad_sport.php';"],
            ["Utilitaires","top.location.href='quad_utilitaire.php';"]
            ];

document.writeln("<table cellpadding='0' cellspacing='0' height='10' id='menu'><tr>");

for(i=0;i<menu.length;i++){
    if(document.title.toString().toLowerCase().indexOf(menu[i][0].toString().toLowerCase()) > 0){
        document.writeln("<td style='border-left:1px solid #000000;'><img src='img/_onglet_A_L.jpg' width='8' height='25'/></td>");
        document.writeln("<td class='menuActive' background='img/_onglet_A_F.jpg' onclick=\""+menu[i][1]+"\">"+menu[i][0]+"</td>");
        document.writeln("<td><img src='img/_onglet_A_R.jpg' width='8' height='25'/></td>");
    }else{
        document.writeln("<td style='border-left:1px solid #000000;'><img src='img/_onglet_D_L.jpg' width='8' height='25'/></td>");
        document.writeln("<td class='menuNotActive' background='img/_onglet_D_F.jpg' onclick=\""+menu[i][1]+"\">"+menu[i][0]+"</td>");
        document.writeln("<td><img src='img/_onglet_D_R.jpg' width='8' height='25'/></td>");
    }
    
}
document.writeln("</tr></table>");

/************************************************************************************************/

function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

