
	var aTimer = null;
	
	function menu_show(zap, nb) {
		if (document.getElementById) {
			var abra = document.getElementById(zap).style;
			if (abra.visibility == "hidden") {
				// Hide others
				for(var i=1;i<nb+1;i++) {
					var other = document.getElementById('menulink'+i.toString());
					if (other != null) {
						if (zap != other.id) {
							other.style.visibility = "hidden";
							other.style.display = "none";
						}
					}
				}
				// Show this
				abra.visibility = "visible";
				//abra.display = "block";
				abra.display = "inline";				
			}
			return false;
		} else {
			return true;
		}
	}
	
	function menu_hide(zap) {
		if (document.getElementById) {
			var abra = document.getElementById(zap).style;
			if (abra.visibility == "visible") {
				abra.visibility = "hidden";
			}
			return false;
		} else {
			return true;
		}
	}
	
	function deleteTimer() {
		if (aTimer != null) {
			window.clearTimeout(aTimer);
			aTimer = null;
		}
		return false;
	}
	
	function hide_all(nb) {
		if (document.getElementById) {
			for(var i=1;i<nb+1;i++) {
				var allmenu = document.getElementById('menulink'+i.toString());
				if (allmenu != null) {
					allmenu.style.visibility = "hidden";
					allmenu.style.display = "none";
				}
			}
		}

		deleteTimer();
	}

	function setTimer(nb) {
		if (aTimer == null) {
			aTimer = window.setTimeout("hide_all("+nb+")",4000);
		}
		return false;
	}

	function MM_openBrWindow(theURL,winName,winFeatures) { //v2.0
		window.open(theURL,winName,winFeatures);
	}

	function displayWindow(theURL,winName,width,height,features) { //v3.1
		var window_width = width;
		var window_height = height;
		var newfeatures= features;
		var window_top = (screen.height-window_height)/2;
		var window_left = (screen.width-window_width)/2;
		newWindow=window.open(''+ theURL + '',''+ winName + '','width=' + window_width + ',height=' + window_height + ',top=' + window_top + ',left=' + window_left + ',features=' + newfeatures + '');
		newWindow.focus();
	}
	
	function fullscreen(url) {
		var larg_ecran = screen.availWidth - 10;
		var altez_ecran = screen.availHeight - 30;
		window.open(url, "WindowName", "width=" + larg_ecran + ",height=" + altez_ecran + ",top=0,left=0");
	}		