	//var hauteur_maxi = 50;
	var largeur_maxi = 160;
	function zoom_image(indice) {
		var src = document.images["mini_" + indice].src;
		var alt = document.images["mini_" + indice].alt;
		var height = document.images["img_zoom"].height;
		var width = document.images["img_zoom"].width;
		
		document.images["mini_" + indice].src = document.images["img_zoom"].src;
		document.images["mini_" + indice].alt = document.images["img_zoom"].alt;
		document.images["img_zoom"].src = src;
		document.images["img_zoom"].alt = alt;


		if(width > largeur_maxi) {
			document.images["mini_" + indice].height = Math.round(height * largeur_maxi / width);
			document.images["mini_" + indice].width = largeur_maxi;
		} else {
			document.images["mini_" + indice].width = width;
			document.images["mini_" + indice].height = height;
		}
	}

	function infos() {
		parent.parent.document.location = "../informations.php";
	}
	
	var old_fiche_id = null;
	
	function over(id,name, type, path) {
		var d = document.getElementById("link_" + id);
		if(typeof(d.image_initiale) != "undefined" && d.image_initiale != null) {
			document.images[name].src= d.image_over;
		} else if(typeof(d.deroule) == "undefined" || d.deroule == null|| (typeof(d.deroule) != "undefined" && d.deroule != null && !d.deroule)) {
			document.images[name].src= '../medias/produits/' + path + '/fleche_' + type  +'.gif';
		} else {
			document.images[name].src= '../medias/produits/' + path + '/fleche_' + type + '.gif';
		}
	}
	
	function out(id,name, type, path) {
		var d = document.getElementById("link_" + id);
		if(typeof(d.image_initiale) != "undefined" && d.image_initiale != null) {
			document.images[name].src= d.image_initiale;
		} else if(typeof(d.deroule) == "undefined" || d.deroule == null|| (typeof(d.deroule) != "undefined" && d.deroule != null && !d.deroule)) {
			document.images[name].src= '../medias/produits/' + path + '/fleche_' + type  +'.gif';
		} else {
			document.images[name].src= '../medias/produits/' + path + '/fleche_' + type + '.gif';
		}
	}
	
	function arbo(id, on, path, partie, isEnfant) {
		var d = document.getElementById("link_" + id);
		if(document.getElementById) {			
			if(typeof(d.deroule) == "undefined" || d.deroule == null|| (typeof(d.deroule) != "undefined" && d.deroule != null && !d.deroule)) {
				document.images["img_" + id].src= "../medias/produits/" + path + "/fleche_droite_off.gif";
				
				if(on == "on" && (typeof(isEnfant) == "undefined" || isEnfant == null  || (typeof(isEnfant) != "undefined" && isEnfant != null && !isEnfant))) {
					d.className="familletop_" + partie + "_on";
				} else if(typeof(isEnfant) != "undefined" && isEnfant != null && isEnfant) {
					d.className="famille_" + partie + "_on";
				}
				for(var i = 0 ; i < array_ss_familles[id].length ; i++) {
					var div = document.getElementById("ss_" + array_ss_familles[id][i]);
					display(div,"block");
				}

				d.deroule = true;
				d.image_over = "../medias/produits/" + path + "/fleche_droite_" + ((on == "on")?"off":"on") + ".gif";
				d.image_initiale = "../medias/produits/" + path + "/fleche_bas_" + on + ".gif";
			} else {
				document.images["img_" + id].src= "../medias/produits/" + path + "/fleche_bas_" + on + ".gif";
				if(on == "on" && (typeof(isEnfant) == "undefined" || isEnfant == null  || (typeof(isEnfant) != "undefined" && isEnfant != null && !isEnfant))) {
					d.className="familletop_" + partie + "_off";
				} else if(typeof(isEnfant) != "undefined" && isEnfant != null && isEnfant) {
					d.className="famille_" + partie + "_off";
				}
				
				enroule(id, path);

				d.deroule = false;
				d.image_initiale = "../medias/produits/" + path + "/fleche_droite_" + ((on == "on")?"off":"on") + ".gif";
				d.image_over = "../medias/produits/" + path + "/fleche_bas_" + on + ".gif";
			}
		} else {
			alert("Votre navigateur n'est pas compatible avec la gestion de ce site. Essayez un navigateur plus récent");
		}
	}
	
	function display(div, value) {
		div.style.display = value;
	}
	
	function enroule(id, path) {
		if(typeof(array_ss_familles[id]) != "undefined" && array_ss_familles[id] != null && array_ss_familles[id].length != 0) {
			for(var i = 0 ; i < array_ss_familles[id].length ; i++) {
				var div = document.getElementById("ss_" + array_ss_familles[id][i]);
				var d = document.getElementById("link_" + id);

				display(div,"none");
				d.deroule = false;
				d.image_initiale = "../medias/produits/" + path + "/fleche_droite_off.gif";
				d.image_over = "../medias/produits/" + path + "/fleche_bas_off.gif";
				enroule(array_ss_familles[id][i]);
			}
		}
	}
	
	function valid_search() {
		if(document.forms[0].search.value == "") {
			alert("Vous n'avez rien saisi pour la recherche");
			document.forms[0].search.focus();
			return false;
		}
		return true;
	}
	
	function change_img(id, path) {
		document.images["img_" + id].src= "../medias/produits/" + path + "/fleche_bas_on.gif";
	}
