function montre(id) {
	cache_tout();
	reset_clock(); 	
	
	if (document.all && !window.XMLHttpRequest) cacher_selects();
	
	var d = document.getElementById(id);
	
	if (d) {		
	d.style.visibility	= 'visible';		
	}
}

function cache(id) {
var d = document.getElementById(id);
	
	if (d) {
	d.style.visibility	= 'hidden';
	}
}

function cache_tout() {
var n=1;

	while (document.getElementById('sous_menu'+n)) {
	cache('sous_menu'+n);	
	n++;
	}
	
	if (document.all && !window.XMLHttpRequest) afficher_selects();
}

var clock_hide;

function do_hide_all() {
	if (clock_hide) reset_clock();
	clock_hide = setTimeout("cache_tout()",500);
}

function reset_clock() {
	if (clock_hide) {
	clearTimeout(clock_hide);
	clock_hide=null;
	}
}

function cacher_selects() {
	var selectbox = document.getElementsByTagName('select');
	
	if (selectbox && selectbox.length > 0) {
		for (var i=0; i<selectbox.length; i++) {
		/*selectbox[i].style.display='none';*/ selectbox[i].style.visibility='hidden'; 
		}
	}	
}

function afficher_selects() {
	var selectbox = document.getElementsByTagName('select');
	if (selectbox && selectbox.length > 0) {
		for (var i=0; i<selectbox.length; i++) {
		/*selectbox[i].style.display='block';*/ selectbox[i].style.visibility='visible'; 
		}
	}
}

window.js_loaded=true;


///** swap **/
//
//function Swap( div_){
//  var Obj = document.getElementById( div_);
//  if( Obj){
//    if( Obj.style.display=="")
//      Obj.style.display="none";
//    else
//      Obj.style.display="";
//  }
//}
