function visibilite(thingId)
{
var targetElement;
targetElement = document.getElementById(thingId) ;
if (targetElement.style.display == "none")
{
targetElement.style.display = "" ;
} else {
targetElement.style.display = "none" ;
}
}

function masque_div(thingId)
{
var targetElement;
targetElement = document.getElementById(thingId) ;
targetElement.style.display = "none" ;
}

function affiche_div(thingId)
{
var targetElement;
targetElement = document.getElementById(thingId) ;
targetElement.style.display = "" ;
}

function masque(nb_total){
var targetElement;
	for (i=1; i<=nb_total; i++) {
		thingId='sous_menu_'+i;
		targetElement = document.getElementById(thingId) ;
		targetElement.style.display = "none" ;
	}
}

function affiche(thingId,nb_total){
var targetElement;
var alertTimerId = 0;
for (i=1; i<=nb_total; i++) {
		nthingId='sous_menu_'+i;
		targetElement = document.getElementById(nthingId) ;
			if (thingId==i){
			targetElement.style.display = "" ;
			}else{
			targetElement.style.display = "none" ;
			}
	}
window.clearTimeout(window.alertTimerId);
window.alertTimerId=setTimeout("masque("+nb_total+");",6000);
}