function LeMenu(cible,target){ 
	this.cible = cible; 
	this.target = target;
} 

function Menu(nbChoix,fonction,cible){
	this.nbChoix = nbChoix;
	this.listeChoix = new Array(nbChoix); 
	this.Fonction = fonction + '.GoMenu()';
	this.haveFrames = (parent.frames.length > 0);
	this.cible = cible;
	this.AddMenu = Add;
	this.GoMenu = Go;
}

function Add(pos,cible,target){
	this.listeChoix[pos] = new LeMenu(cible,target);
} 

function Go(){
	this.Choix = this.cible.selectedIndex;
	if (this.listeChoix[this.Choix].cible != "_separ_") 
		if (this.haveFrames) parent.frames[this.listeChoix[this.Choix].target].location.href = this.listeChoix[this.Choix].cible;
		else window.location.href = this.listeChoix[this.Choix].cible; 
} 
