// JavaScript Document

var nbElem = 5;
var timer;

function display(elemId) {
	clearTimeout(timer);
    if (document.getElementById) {
		for (i = 1; i <= nbElem; i++) {
			tab = "menu" + i;
			document.getElementById(tab).style.visibility = (i == elemId) ? 'visible' : 'hidden';
		}
	}
}

function hide() {
    if (document.getElementById) {
		for (i = 1; i <= nbElem; i++) {
			tab = "menu" + i;
			document.getElementById(tab).style.visibility = 'hidden';
		}
	}
}

function hideCountDown() {
	timer = setTimeout("hide()", 1000);
}