var listeanes=new CreerListeanes("     Click ----->    ","_blank",2,"English","Español","");
// CreerListe (titre, destination, nb boutons, bouton1, bouton2, bouton3)
// destination vaut "" pour rester dans la meme frame, "nomframe" ou "_blank" pour une nouvelle fenetre
listeanes.Add("Accomodation-Alojamiento","hebergementan2009.htm","hebergementes2009.htm");
listeanes.Add("Score-Patitura","partitionsan2009.htm","partitionses2009.htm");
listeanes.Add("Sound files-Archivos sonidos","fichiersmidisan.htm","fichiersmidises.htm");
// liste.Add("AMD","http://www.amd.com/france","http://www.amd.com");

function CreerListeanes(titreanes,target,nbBouton,boutonanes1,boutonanes2,boutonanes3,boutonanes4) {
	this.titreanes=titreanes;
	this.target=target;
	this.nbBouton=nbBouton;
	this.nb=0;
	var button=new Array(boutonanes1,boutonanes2,boutonanes3,boutonanes4);
	this.boutonanes=button;
	this.Add=AddLigneanes;
	this.Print=PrintCombo;
}

function AddLigneanes(libelleanes,b1,b2,b3,b4) {
	var t=new Array(b1,b2,b3,b4);
	var Ligneanes=new Object;
		Ligneanes.libelleanes=libelleanes;
		Ligneanes.tab=t;
	this[this.nb]=Ligneanes;
	this.nb++;
}

function PrintCombo() {
	var Z="<SELECT name='accesanes' size=1> ";
	Z+="<OPTION value='-1'>"+this.titreanes+"</OPTION>";
	for (var i=0;i<this.nb;i++) {
		Z+="<OPTION value="+i+">"+this[i].libelleanes+"</OPTION>";
	}
	Z+="</SELECT><br>";
	for (var i=0;i<this.nbBouton;i++) {
		Z+="&nbsp;<INPUT Type='button' value='"+this.boutonanes[i]+"' onclick='GoAccesanes(this.form,"+i+")'>&nbsp;";
	}
	document.write(Z);
}

function GoAccesanes(f,no) {
	var index=f.accesanes.selectedIndex-1;
	if (index>=0) {
		if (listeanes.target=="_blank") {
			window.open(listeanes[index].tab[no],'popup','width=790,height=550,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes');
		}
		if (listeanes.target=="") {
			window.location=listeanes[index].tab[no];
		}
		if ((listeanes.target!="")&&(listeanes.target!="_blank")) {
			parent.frames[listeanes.target].location=listeanes[index].tab[no];
		}
	} else {
		alert("Choose an option. Haga una selección."); f.accesanes.focus();
	}
}

