function menuchang(num,num2,num3,num4,num5) {
				var option =  option = document.getElementById('m' + num);
				var option2 = document.getElementById('m' + num2);
				var option3 = document.getElementById('m' + num3);
				var option4 = document.getElementById('m' + num4);
				var option5 = document.getElementById('m' + num5);
  
				isIE = (document.all)
				isGek = (!isIE) && (document.getElementById)
  
					if (isIE) option = document.all['m' + num]; if (isIE) option2 = document.all['m' + num2]; if (isIE) option3 = document.all['m' + num3]; if (isIE) option4 = document.all['m' + num4]; if (isIE) option5 = document.all['m' + num5];
					if (isGek) option = document.getElementById('m' + num); if (isGek)option2 = document.getElementById('m' + num2); if (isGek) option3 = document.getElementById('m' + num3); if (isGek) option4 = document.getElementById('m' + num4); if (isGek) option5 = document.getElementById('m' + num5);
  
			if (option.style.display == "none") {
				option.style.display = "";
				option2.style.display = "none";
				option3.style.display = "none";
				option4.style.display = "none";
				option5.style.display = "none"
			} else {
				option.style.display = "";
				}
			}

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}
userAgent = window.navigator.userAgent;
browserVers = parseInt(userAgent.charAt(userAgent.indexOf("/")+1),10);
mustInitImg = true;
function initImgID() {di = document.images; if (mustInitImg && di) { for (var i=0; i<di.length; i++) { if (!di[i].id) di[i].id=di[i].name; } mustInitImg = false;}}
function findElement(n,ly) {
	d = document;
	if (browserVers < 4)		return d[n];
	if ((browserVers >= 6) && (d.getElementById)) {initImgID; return(d.getElementById(n))}; 
	var cd = ly ? ly.document : d;
	var elem = cd[n];
	if (!elem) {
		for (var i=0;i<cd.layers.length;i++) {
			elem = findElement(n,cd.layers[i]);
			if (elem) return elem;
		}
	}
	return elem;
}
function changeImages() {
	d = document;
	if (d.images) {
		var img;
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			img = null;
			if (d.layers) {img = findElement(changeImages.arguments[i],0);}
			else {img = d.images[changeImages.arguments[i]];}
			if (img) {img.src = changeImages.arguments[i+1];}
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		over_boxes_off = newImage(/*URL*/'../imgs/boutons/boxes-over.png');
		over_equip_boxe_off = newImage(/*URL*/'../imgs/boutons/equip-boxe-over.png');
		over_abris_clotures_off = newImage(/*URL*/'../imgs/boutons/abris-clotures-over.png');
		over_obstacles_cso_off = newImage(/*URL*/'../imgs/boutons/obstacles-cso-over.png');
		over_tout_catalogue_off = newImage(/*URL*/'../imgs/boutons/tout-catalogue-over.png');
		preloadFlag = true;
	}
}

function minmax(id) {
		var option =  document.getElementById(id);

			isIE = (document.all)
			isGek = (!isIE) && (document.getElementById)
  
			if (isIE) option = document.all[id];
			if (isGek) option = document.getElementById(id);
  
			if (option.style.height == "1em") {
			option.style.height = "auto";
			option.style.backgroundImage=('url(http://www.renault-equestre.com/imgs/ico-moins.png)');
			}
			else {
			option.style.height = "1em";
			option.style.backgroundImage=('url(http://www.renault-equestre.com/imgs/ico-plus.png)');
			}
		}
		
function Pop(url, nom, larg, haut) {
			var midWidth=(((window.top.screen.width)/2)-larg/2);
			var midHeight=(((window.top.screen.height)/2)-haut/2);
			var win_param=("left=" + midWidth + ",top=" + midHeight +",toolbar=no,location=no,directories=no,status=yes,alwaysRaised=yes,dependant=no,menubar=no,scrollbars=yes,resizable=yes,width=" + larg + ",height=" + haut + "");
			window.open(url, nom, win_param);
			}
