function findPos(obj){
	var curleft = curtop = 0;
	if (obj.offsetParent) {
		curleft = obj.offsetLeft
		curtop = obj.offsetTop
		while (obj = obj.offsetParent) {
			curleft += obj.offsetLeft
			curtop += obj.offsetTop
		}
	}
	return [curleft,curtop];
}

function affiche(elt){
		EcranHaut = screen.height;
    EcranLarg = screen.width;
    Ecran = EcranLarg + " x " + EcranHaut;
    document.getElementById(elt).style.display = 'block';
		//document.getElementById(elt).innerHTML = Ecran;
		if(window.ActiveXObject) {
      //il s'agit d'IE on calcule dynamiquement la position du div à afficher
      var parent= document.getElementById(elt).parentElement;
      var coord = findPos(parent);
      //document.getElementById(elt).innerHTML = "Left : " + coord[0] +" Top : " +coord[1];
      if (document.getElementById(elt).id == 'menu_accueil_indiv_actu'){
        document.getElementById(elt).style.left= coord[0]-128;
      } else {
        document.getElementById(elt).style.left= coord[0];
      }
      document.getElementById(elt).style.Top= coord[1];
      //document.getElementById(elt).style.zIndex = '2';
    }
}

function cache(elt){
		document.getElementById(elt).style.display = 'none';
		//document.getElementById(elt).style.zIndex = '1';
}

function cacheAllMenus() {
  //cache tous les menus de la page courante (appelé dans 2 <table avec onmouseover...)
   
   cache('menu_accueil_ent_notre-approche');
   cache('menu_accueil_ent_savoirfaire');
   cache('menu_accueil_ent_ref');
   cache('menu_accueil_ent_apropos-ditv');
   
}

