// D'autres scripts et des tutoriaux sur http://www.toutjavascript.com	
// Script gratuit à condition de laisser ce commentaire 

function CreerMenu(police,ColFerme,ColOuvert,imgO,imgF,imgOption,imgOptionFin,hauteur,target,mode,imgMail) {
	this.nb_rub=0;
	this.police=police;
	this.colF=ColFerme;
	this.colO=ColOuvert;
	this.imgO=imgO;
	this.imgF=imgF;
	this.imgMail=imgMail;
	this.imgOpt=imgOption;
	this.imgOptFin=imgOptionFin;
	this.hauteur=hauteur;
	this.target=target;
	this.mode=mode;
	this.AddRub=AddRubrique;
	this.AddLien=AddLink;
	this.AddMail=AddMail;
}

function AddRubrique(txt,aff,page,txtferme) {
	var rub = new Object;
	rub.txt=txt;
	rub.txtferme=txtferme;
	rub.aff=aff;
	rub.page=page;
	rub.nb_lien=0;
	this[this.nb_rub]=rub;
	this.nb_rub++;
}
function AddLink(txt,page,target,bulle) {
	var no_rub = this.nb_rub-1;
	var no_lien= this[no_rub].nb_lien;
	var lien = new Object;
		lien.txt=txt;
		lien.page=page;
		lien.target="";
		lien.bulle=txt
		if ((target!=null)&&(target!="")) {lien.target=target;}
		if (bulle) {lien.bulle=bulle;}
	this[no_rub][no_lien]=lien;
	this[no_rub].nb_lien++;
}
function AddMail(txt,page){
	var rub = new Object;
	rub.txt=txt;
	rub.aff="O";
	rub.page=page;
	rub.mail=1;
	rub.nb_lien=0;
	this[this.nb_rub]=rub;
	this.nb_rub++;
}

