// cross navigator functions

var isDOM = (document.getElementById ? true : false);
var isIE4 = ((document.all && !isDOM) ? true : false);
var isNS4 = (document.layers ? true : false);
var isDyn = (isDOM || isIE4 || isNS4);

function getTag(id) {
  if (isDOM) return document.getElementById(id);
  if (isIE4) return document.all[id];
  if (isNS4) return document.layers[id];
}

function getTagStyle(id) {
  return (isNS4 ? getTag(id) : getTag(id).style);
}

//*****************************************************************
// pour afficher les div "projets / langues"
//*****************************************************************
var a_l_ecran_actuellement = 0;

function efface() {

    if (a_l_ecran_actuellement == 1) {
	getTagStyle("subnav").display = "none";
	}

    if (a_l_ecran_actuellement == 10) {
	getTagStyle("en").display = "none";
    getTagStyle("fr").display = "block";
	}

    if (a_l_ecran_actuellement == 11) {
	getTagStyle("fr").display = "none";
    getTagStyle("en").display = "block";
	}
	a_l_ecran_actuellement == 0;

}

function affiche(projets) {

   if (projets == 1 && getTagStyle("subnav").display != "block") {
	    efface();
    	getTagStyle("subnav").display = "block";
    	a_l_ecran_actuellement = 1;
		return;
	}

   if (projets == 10 && getTagStyle("en").display != "block") {
	    efface();
    	getTagStyle("en").display = "block";
    	getTagStyle("fr").display = "none";
    	a_l_ecran_actuellement = 10;
		return;
	}

   if (projets == 11 && getTagStyle("fr").display != "block") {
	    efface();
    	getTagStyle("fr").display = "block";
    	getTagStyle("en").display = "none";
    	a_l_ecran_actuellement = 11;
		return;
	}

  return;
}
//*************************************************************