<!--
var ImageMenuPage = new Array();
		ImageMenuPage = ["bt_beaute","bt_minceur","bt_sante","bt_tonus","bt_sport","bt_serenite","bt_philo","bt_gam","bt_plante","bt_actu","bt_presse","bt_contact"];
		
function MakeMenu(nomImage,table,repertoire){
	this.BaseNomImage = nomImage;
	this.BaseNomVariable = "v"+this.BaseNomImage;
	this.Lieu = repertoire;
	this.allImage = table;
	this.setImage = rollMenu1d;
	this.setImageAll = rollMenuAll;
}
function rollMenu1d(index){
	if(typeof(eval("document.images."+this.BaseNomImage+index)) != "undefined"){
		var objImg = eval("document.images."+this.BaseNomImage+index);
		if(typeof(eval("window."+this.BaseNomVariable+index)) != "undefined"){
			var valeur = eval("window."+this.BaseNomVariable+index+".src");
			if((objImg.src).indexOf(valeur.toString()) != -1){valeur = eval("window."+this.BaseNomVariable+index+"_r.src");}
			objImg.src = valeur;
		}
	}
}

function rollMenuAll(Action){
	var type = (Action)? "":"_r";
	for(var i=0;i<this.allImage.length;i++){
		if(typeof(eval("document.images."+this.BaseNomImage+i)) != "undefined"){
			eval("document.images."+this.BaseNomImage+i+".src =  window."+this.BaseNomVariable+i+type+".src");
		}
	}
}

function initMenu(){
	for(var i=0;i<this.allImage.length;i++){
		eval("window."+this.BaseNomVariable+i+" = new Image();")
		eval("window."+this.BaseNomVariable+i+".src = \"images/"+this.Lieu+this.allImage[i]+".gif\";");
		eval("window."+this.BaseNomVariable+i+"_r = new Image();")
		eval("window."+this.BaseNomVariable+i+"_r.src = \"images/"+this.Lieu+this.allImage[i]+"_r.gif\";")
	}
}
/* Associer au constructeur */
MakeMenu.prototype.Init = initMenu;

var menu_haut = new MakeMenu("bouton_haut",ImageMenuPage,"general/");
function testajout(){
	var paramettre = window.location.search+"";
	if(paramettre != "" && paramettre.indexOf("Destination=ajouteCaddie")!=-1){
		paramettre= (window.location.search+"").substring(1);
	  var variable =paramettre.split("&");
	  
	 	 for(var i = 0; i < variable.length; i++) {
			var  temp = variable[i].split("=");
			 if(temp[0]=="qte0" && temp[1]>0){
				 alert("vous avez ajouté "+temp[1]+" produit(s)");
				 break;
			 }
		}
	}
}
window.onload = testajout();
//-->