
function globalAttachEvent(oElt, sEvt, fFct) {
	if ( typeof(oElt)=='object' && sEvt.length ) {
		if (document.all) {
			oElt.attachEvent(sEvt, fFct);
		} else {
			sEvt = sEvt.replace(/^on/, '') ;
			oElt.addEventListener(sEvt, fFct, false);
		}
	}
}

var d = null;
var niv1 = null;
var delais = 500;
var timeOut = null;
function montre(id,id_niv1) {
	annulerCache();
	if (d) {d.style.display='none';}
	if (niv1) {niv1.className='off';}
	d = document.getElementById(id);
	niv1 = document.getElementById(id_niv1);
	if (d) {d.style.display='block';}
	if (niv1) {niv1.className='on';}
}
function cacheDelais(id){
	timeOut = setTimeout('cacheMenu()', delais);
}
function cacheMenu(){
	if (d) {d.style.display='none';}
	if (niv1) {niv1.className='off';}
}
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+'_on' ;
}
function clic_hover(html_obj){
	table_html_a = html_obj.getElementsByTagName("a");
	window.location.replace(table_html_a[0].getAttribute("href"));
}
