this.oldmenu="false";
this.oldbouton="false";



function entre(nom){
	document.images[nom].src=chemin+nom+"_F2.gif";
	this.oldbouton=nom;
}

function sort(){
if (document.getElementById("formulaire")){hideit(false,"formulaire")};

	if(this.oldbouton!="false"){
		document.images[oldbouton].src=chemin+oldbouton+".gif";
		this.bouton="false";
	}
}

function change(nom,lien)
{document.images[nom].src=lien;}

function hideit(action,nom_layer) {
  if (document.layers) {
    // Netscape 4 stuff
    var cible = document.layers[nom_layer];
  } else if (document.getElementById) {
    // IE 5 and Netscape 6
    var cible = document.getElementById(nom_layer);
  } else if (document.all) {
    // IE 4 ??
    var cible = document.all(nom_layer);
  } else {
    alert("Probl&egrave;me avec votre navigateur");
  }

  if (cible.style)
  {
    // IE4 ??, IE5, Netscape 6

    if (action) { cible.style.visibility = "hidden"; }
	else { cible.style.visibility = "visible"; }
  }
  else {
    // Netscape 4
    if (action) { cible.visibility = "hide";}
	else { cible.visibility = "show"; }
  }
}

function hideall() {
	hideit(true,"lactualite1");
	hideit(true,"lactualite2");
	hideit(true,"lactualite3");
}




function montre(nomlayer)
{
hideit(false,nomlayer);
//hideit(false,"zone1");
//hideit(false,"zone2");
if (document.getElementById("formulaire")){hideit(true,"formulaire")};
this.oldmenu=nomlayer;

}


function cache(){
	//hideit(true,"zone1");
//	hideit(true,"zone2");
if (document.getElementById("formulaire")){hideit(false,"formulaire")};
	if(this.oldmenu!="false"){
		hideit(true,oldmenu);
		this.oldmenu="false";
	}
}
