/*********************************************
*  MENU PRINCIPALE DEROULEMENT				 *
*  DE INFORMATIQUE   (informat.js)			 *
*  © Tony Martinez - wwwind@urbanet.ch		 *
*  Lausanne le 03.08.2003                    *
*                      modifié le 27.05.2003 *
*********************************************/

// Nombre de lignes dans le menu
nbmenu = 14;
champs = new Array(nbmenu + 1);
haveFrames = false;

// Vous donnez le nom du menu, le lien associé et la fenêtre de destination
function LesMenus(titre,cible,target)
{
	this.titre = titre;
	this.cible = cible;
	this.target = target;
}
		
// Définition des menus
champs[0] = new LesMenus("Votre choix","","");
champs[1] = new LesMenus("Chat","info/inform8.html","corps");
champs[2] = new LesMenus("Configurations","info/inform7.html","corps");
champs[3] = new LesMenus("Hardware","info/inform4.html","corps");
champs[4] = new LesMenus("Languages","info/inform3.html","corps");
champs[5] = new LesMenus("LDAP","info/inform10.html","corps");
champs[6] = new LesMenus("Linux","info/inform12.html","corps");
champs[7] = new LesMenus("Informations","info/inform1.html","corps");
champs[8] = new LesMenus("Internet","info/inform6.html","corps");
champs[9] = new LesMenus("Normes ISO","divers/divers24.html","corps");
champs[10] = new LesMenus("Protocoles","info/inform11.html","corps");
champs[11] = new LesMenus("Serveurs","info/inform9.html","corps");
champs[12] = new LesMenus("Software","info/inform5.html","corps");
champs[13] = new LesMenus("Méthodes","info/inform2.html","corps");
champs[14] = new LesMenus("Map du site","nouv/global.html","corps");		                                                           
function GoMenu() 
{
	Choix = document.MENU.MenuList.selectedIndex;
	if (Choix > 0)
		if (haveFrames)
					parent.frames[champs[Choix].target].location.href = champs[Choix].cible;
		else
					window.location.href = champs[Choix].cible;
}
		
function Menu()
{
	haveFrames = (window.frames.length > 0);
	document.write('<FORM NAME="MENU">');
	document.write('<SELECT NAME="MenuList" onChange="GoMenu();">');
	document.write('<OPTION VALUE="0" SELECTED>' + champs[0].titre);
	for (var x = 1; x <= nbmenu; x++)
	document.write('<OPTION VALUE="' + x + '">' + champs[x].titre);
	document.write('</SELECT>');
	document.write('</FORM>');
}
