/*********************************************
*  MENU PRINCIPALE DEROULEMENT				 *
*  DE FORMATION   (format.js)				 *
*  © Tony Martinez - wwwind@urbanet.ch		 *
*  Lausanne le 03.08.2003                    *
*                      modifié le 13.06.05 *
*********************************************/

// Nombre de lignes dans le menu
nbmenu = 19;
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("Menu principale","format.html","corps");
champs[2] = new LesMenus("Bibliothèques","divers/divers7.html","corps");
champs[3] = new LesMenus("Brevet fédéral","format/format13.html","corps");
champs[4] = new LesMenus("Coatching, Conseil, bilan","format/format12.html","corps");
champs[5] = new LesMenus("Divers écoles privées","format/format3.html","corps");
champs[6] = new LesMenus("Ecoles techniques","format/format1.html","corps");
champs[7] = new LesMenus("Ecoles commerciales","format/format1.html","corps");
champs[8] = new LesMenus("Ecoles managements","format/format2.html","corps");
champs[9] = new LesMenus("Ecoles secondaires I/II","format/format5.html","corps");
champs[10] = new LesMenus("Ecoles primaires privées","format/format6.html","corps");
champs[11]= new LesMenus("E-learning, Cours online","format/format7.html","corps");  
champs[12]= new LesMenus("Ecoles Polytechniques","format/format10.html","corps");   
champs[13]= new LesMenus("Ecoles Polytechniques UE","inter/inter15.html","corps");   
champs[14] = new LesMenus("Hautes Ecoles Spécifiés","format/format8.html","corps");  
champs[15] = new LesMenus("Orientation scolaire et professionnelle ","format/format11.html","corps");  
champs[16] = new LesMenus("Postgrade","format/format9.html","corps");  
champs[17] = new LesMenus("Universités","format/format4.html","corps");     
champs[18] = new LesMenus("Universités UE","inter/inter16.html","corps");     
champs[19] = 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>');
}
