var listefral=new CreerListefral("     Click ----->    ","_blank",2,"Français","Deutsch","");
// CreerListe (titre, destination, nb boutons, bouton1, bouton2, bouton3)
// destination vaut "" pour rester dans la meme frame, "nomframe" ou "_blank" pour une nouvelle fenetre
listefral.Add("Hébergement-Unterkunfts","hebergement2009.htm","hebergemental2009.htm");
listefral.Add("Partition-Partitur","partitions2009.htm","partitionsal2009.htm");
listefral.Add("Fichiers son-Dateien Ton","fichiersmidis.htm","fichiersmidisal.htm");
// liste.Add("AMD","http://www.amd.com/france","http://www.amd.com");

function CreerListefral(titrefral,target,nbBouton,boutonfral1,boutonfral2,boutonfral3,boutonfral4) {
	this.titrefral=titrefral;
	this.target=target;
	this.nbBouton=nbBouton;
	this.nb=0;
	var button=new Array(boutonfral1,boutonfral2,boutonfral3,boutonfral4);
	this.boutonfral=button;
	this.Add=AddLignefral;
	this.Print=PrintCombo;
}

function AddLignefral(libellefral,b1,b2,b3,b4) {
	var t=new Array(b1,b2,b3,b4);
	var Lignefral=new Object;
		Lignefral.libellefral=libellefral;
		Lignefral.tab=t;
	this[this.nb]=Lignefral;
	this.nb++;
}

function PrintCombo() {
	var Z="<SELECT name='accesfral' size=1> ";
	Z+="<OPTION value='-1'>"+this.titrefral+"</OPTION>";
	for (var i=0;i<this.nb;i++) {
		Z+="<OPTION value="+i+">"+this[i].libellefral+"</OPTION>";
	}
	Z+="</SELECT><br>";
	for (var i=0;i<this.nbBouton;i++) {
		Z+="&nbsp;<INPUT Type='button' value='"+this.boutonfral[i]+"' onclick='GoAccesfral(this.form,"+i+")'>&nbsp;";
	}
	document.write(Z);
}

function GoAccesfral(f,no) {
	var index=f.accesfral.selectedIndex-1;
	if (index>=0) {
		if (listefral.target=="_blank") {
			window.open(listefral[index].tab[no],'popup','width=790,height=550,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes');
		}
		if (listefral.target=="") {
			window.location=listefral[index].tab[no];
		}
		if ((listefral.target!="")&&(listefral.target!="_blank")) {
			parent.frames[listefral.target].location=listefral[index].tab[no];
		}
	} else {
		alert("Faites un choix. Choose an option"); f.accesfral.focus();
	}
}

