var d = null;
var delais = 500;
var timeOut = null;
function montre(id) {
	annulerCache();
	if(d){
		cacheMenu();
	}
	d = document.getElementById(id);
	if(d){
		set_hover(d.parentNode.getElementsByTagName('dt')[0], 1);
		d.style.display = 'block';
	}
}

function cacheDelais(id){
	timeOut = setTimeout(cacheMenu, delais);
}

function cacheMenu(){
	if(d){
		d.style.display='none';
		clear_hover(d.parentNode.getElementsByTagName('dt')[0], 1);
	}
}

function annulerCache(){
	if(timeOut){
		clearTimeout(timeOut);
	}
}

function clear_hover(html_obj, indice){
	html_obj.className = 'niv'+indice ;
}

function set_hover(html_obj, indice){
	html_obj.className = 'niv'+indice+' niv'+indice+'_on' ;
}

function clic_hover(html_obj){
	table_html_a = html_obj.getElementsByTagName("a");
	window.location.replace(table_html_a[0].getAttribute("href"));
};
