function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		boutonclient_on = newImage("/images/bouton_client-on.gif");
		boutonqualite_on = newImage("/images/bouton_qualite-on.gif");
		boutonprofil_on = newImage("/images/bouton_profil-on.gif");
		preloadFlag = true;
	}
}

function cache(tabactif) {

  boutonservices = "url(/images/bouton_services.gif)";
  document.getElementById("servicestd").style.backgroundImage = boutonservices;
  document.getElementById("mservices").style.visibility = "hidden";

  boutonqualite = "url(/images/bouton_qualite.gif)";
  document.getElementById("qualitetd").style.backgroundImage = boutonqualite;
  document.getElementById("mqualite").style.visibility = "hidden";

  boutonclient = "url(/images/bouton_client.gif)";
  document.getElementById("clienttd").style.backgroundImage = boutonclient;
  document.getElementById("mclient").style.visibility = "hidden";

  boutonprofil = "url(/images/bouton_profil.gif)";
  document.getElementById("profiltd").style.backgroundImage = boutonprofil;
  document.getElementById("mprofil").style.visibility = "hidden";
} 

function deroule(couche) {
  cache();
  switch (couche) {
    case "services" :
    document.getElementById("mservices").style.visibility = "visible";
    break;
  
    case "qualite" :
    document.getElementById("mqualite").style.visibility = "visible";
    boutonqualiteon = "url(/images/bouton_qualite-on.gif)";
    document.getElementById('qualitetd').style.backgroundImage = boutonqualiteon;
    break;

    case "client" :
    document.getElementById("mclient").style.visibility = "visible";
    boutonclienton = "url(/images/bouton_client-on.gif)";
    document.getElementById('clienttd').style.backgroundImage = boutonclienton;
    break;

    case "profil" :
    document.getElementById("mprofil").style.visibility = "visible";
    boutonprofil = "url(/images/bouton_profil-on.gif)";
	document.getElementById('profiltd').style.backgroundImage = boutonprofil;
	break;

    default :
      cache();
  }
  
}

function addbookmark(cettePage) {
  if (document.all)

    window.external.AddFavorite(location.href,document.title)
}

