

function button_on ( imgName )
{
    butOn = eval ( imgName + "_on.src" );
    document [imgName].src = butOn;
}

function button_off ( imgName )
  {
    butOff = eval ( imgName + "_off.src" );
    document [imgName].src = butOff;
}
function popup(URL, width, height,scrollbars) {
	if(!scrollbars){
		window.open(URL,'pop596','scrollbars=yes,status=no,width='+width+',height='+height);
	}else{
		window.open(URL,'pop2987','scrollbars=no,status=no,width='+width+',height='+height);
	}
}
function masquer(vue,test,pleft){
	
	var winW=0;
	var winH=0;
	
	if (parseInt(navigator.appVersion)>3) {
	 if (navigator.appName=="Netscape") {
	  winW = window.innerWidth/2-16;
	  winH = window.innerHeight/2-16;
	 }
	 if (navigator.appName.indexOf("Microsoft")!=-1) {
	  winW = document.body.offsetWidth/2-20;
	  winH = document.body.offsetHeight/2-20;
	 }
	}
		var curtableau=document.getElementById(vue+"Div");
		var cur_btn=document.getElementById("btn_"+vue);		
		var x=winW-475+pleft;
				
		if (test){
				//On rend visible le sous menu
				
				curtableau.style.display = 'block';
				curtableau.style.left=x+'px';
				curtableau.style.visibility = 'visible';
				//On affiche la couleur du bouton
				cur_btn.style.backgroundColor = couleur_menu;
		}else{
			//On rend invisible le sous menu
			curtableau.style.display = 'none';
			curtableau.style.visibility = 'hidden';
			//Si ce n'est pas le menu de la page alors on enlève le fond du btn
			if(site_page_nom!=vue){
				cur_btn.style.backgroundColor = '';
			}
		}	
		
}

