// Menu deroulant dans PopDown
var menu=new CreerMenu("Accès direct ...","self","-> ");
// CreerMenu(Titre de la liste déroulante,target,carac)
//   target=nom de la frame ou "self" si c'est la fenetre elle meme, "new" pour une nouvelle fenêtre
//   carac=caracteres à afficher devant les lignes ayant un lien
// Pour ajouter les liens dans les listes, utiliser menu.Add
// Menu.Add(profondeur d'arborescence, texte, page à charger)
menu.Add(1,"Informations générales","");
	menu.Add(2,"Le club","../LeClub.htm");
	menu.Add(2,"Votre licence","../InfosP/LaLicence.htm");
	menu.Add(2,"Le materiel","../Technique/index.htm");
	menu.Add(2,"Les règles de base","../Articles/Regles.htm");
	menu.Add(2,"Les catégories","../Articles/Categories.htm");
	menu.Add(2,"Les droits de piste","../InfosP/DroitsPiste.htm");
	menu.Add(2,"La piste de St Laurent","../InfosP/LesCircuits.htm");
	menu.Add(2,"Les pistes de la région","../Ligue/Circuits.htm");
	menu.Add(2,"Les professionels","../InfosP/LesPros.htm");
	menu.Add(2,"Les pilotes","../InfosP/LesPilotes.htm");
menu.Add(1," ","");
menu.Add(1,"Les Fédérations","");
	menu.Add(2,"La FFSA","http://www.ffsa.org");
	menu.Add(2,"La Commision Internationale","http://www.fia.com/CIK/homepage-f.htm");
menu.Add(1," ","");
menu.Add(1,"Les sites Karting","");
	menu.Add(2,"Karting-News: les infos, le forum","http://www.karting-news.com/fr/index.asp");
	menu.Add(2,"Mondial Karting: les resultats","http://www.mondial-karting.com/resulta/courses.htm");
	menu.Add(2,"Planete Karting: les infos, le   forum","http://www.planete-karting.com");

function CreerMenu(titre,target,carac) {
	this.nb=0;this.titre=titre;this.target=target;this.carac=carac;
	this.Add=AddObjet;
	this.Aff=AffMenu;
}
function AddObjet(deep,txt,page) {
	var rub = new Object;
	rub.deep=deep;
	rub.txt=txt;
	rub.page=page;
	this[this.nb]=rub;
	this.nb++;
}
function space(i) {var Z="";for (var j=1;j<i;j++){Z+="&nbsp;&nbsp;&nbsp;&nbsp;";}return Z}
function AffMenu() {
	var Z="<FORM name='mf'>";var z="";
	Z+="<SELECT size=1 name='tjs' class=Comic1R onChange='Clic(this.form);'><OPTION>"+this.titre+"</OPTION>";
	for (var i=0;i<this.nb;i++) {
		z=""; if ((this[i].page!="")&&(this[i].page!=null)) {z=this.carac}
		Z+="<OPTION value='"+this[i].page+"'>"+space(this[i].deep)+z+this[i].txt+"</OPTION>"
	}
	Z+="</SELECT>";
	Z+="</FORM>";
	document.write(Z);
}
function Clic(f){
	var i=f.elements["tjs"].selectedIndex-1;
	if (i>=0) {
		var page=menu[i].page;
		if ((page!="")&&(page!=null)) {
			if (menu.target=="self") {window.location=page}
			else if (menu.target=="new") {window.open(page,'newf','scrollbars=yes menubar=no toolbar=no status=no resizable=yes')}
			else {parent.frames[menu.target].window.location=page}
		}
	}
}
