if(document.all && !document.getElementById) {
      document.getElementById = function(id) {
           return document.all[id];
      }
}
var inmenu=false;
var lastmenu=0;
var lastsubmenu=0;
var LastLingua=0;
var LastArea=0;
var LastCapitolo=0;
function OverAll(lingua,area,capitolo,sezione) {
   totale=document.getElementById("Contenitore");
   testa=document.getElementById("Testa");
   contenitore=document.getElementById("MenBox");
   side=document.getElementById("MiniSide");
   VoLingua=document.getElementById("Vo" + lingua);
   BoLingua=document.getElementById("Bo" + lingua);
	 if (LastLingua){
	 (LastLingua == BoLingua)? window.clearTimeout(ViaLingua) : LastLingua.style.visibility="hidden";
	 }
	 VoLingua.style.backgroundColor="#0000ff";
		 if (!BoLingua) return;
		 if (navigator.appName == 'Microsoft Internet Explorer')
		 {
		 BoLingua.style.top= VoLingua.offsetTop + VoLingua.offsetHeight + testa.offsetHeight;
		 BoLingua.style.left= VoLingua.offsetLeft + totale.offsetLeft;
		 }
		 else {
		 BoLingua.style.top= VoLingua.offsetTop + VoLingua.offsetHeight/* + testa.offsetTop*/;
		 BoLingua.style.left= VoLingua.offsetLeft/* + totale.offsetLeft*/;
		 }
		 BoLingua.style.visibility="visible";
		 if (area) {
			 VoArea=document.getElementById("Vo" + area);
			 BoArea=document.getElementById("Bo" + area);
			 if (LastArea){
			 (LastArea == BoArea)? window.clearTimeout(ViaArea) : LastArea.style.visibility="hidden";
			 }
			 VoArea.style.backgroundColor="#0000ff";
			 if (!BoArea) return;
			 BoArea.style.top= VoArea.offsetTop + 5;
			 BoArea.style.left= VoArea.offsetLeft + VoArea.offsetWidth - 5;
			 BoArea.style.visibility="visible";
			 if (capitolo) {
				 VoCapitolo=document.getElementById("Vo" + capitolo);
				 BoCapitolo=document.getElementById("Bo" + capitolo);
				 if (LastCapitolo){
				 (LastCapitolo == BoCapitolo)? window.clearTimeout(ViaCapitolo) : LastCapitolo.style.visibility="hidden";
				 }
				 VoCapitolo.style.backgroundColor="#0000ff";
				 if (!BoCapitolo) return;
				 BoCapitolo.style.top= VoCapitolo.offsetTop + 5;
				 BoCapitolo.style.left= VoCapitolo.offsetLeft + VoCapitolo.offsetWidth - 5;
				 BoCapitolo.style.visibility="visible";
							 if (sezione) {
								 VoSezione=document.getElementById("Vo" + sezione);
								 BoSezione=document.getElementById("Bo" + sezione);
								 VoSezione.style.backgroundColor="#0000ff";
								 if (!BoSezione) return;
								 BoSezione.style.top= VoSezione.offsetTop + 5;
								 BoSezione.style.left= VoSezione.offsetLeft + VoSezione.offsetWidth - 5;
								 BoSezione.style.visibility="visible";
								}
					}
			}
}
function OutAll(lingua,area,capitolo,sezione) {
   if (lingua) {
   VoLingua=document.getElementById("Vo" + lingua);
   BoLingua=document.getElementById("Bo" + lingua);
   VoLingua.style.backgroundColor="#000099";
		 if (!BoLingua) return;
   ViaLingua = window.setTimeout('LastLingua.style.visibility="hidden";',500);
	 LastLingua=BoLingua;
	 }
   if (area) {
		 VoArea=document.getElementById("Vo" + area);
		 BoArea=document.getElementById("Bo" + area);
		 VoArea.style.backgroundColor="#000099";
		 if (!BoArea) return;
		 ViaArea = window.setTimeout('LastArea.style.visibility="hidden";',500);
		 LastArea=BoArea;
		}
   if (capitolo) {
		 VoCapitolo=document.getElementById("Vo" + capitolo);
		 BoCapitolo=document.getElementById("Bo" + capitolo);
		 VoCapitolo.style.backgroundColor="#000099";
		 if (!BoCapitolo) return;
		 ViaCapitolo = window.setTimeout('LastCapitolo.style.visibility="hidden";',500);
		 LastCapitolo=BoCapitolo;
		}
   if (sezione) {
		 VoSezione=document.getElementById("Vo" + sezione);
		 BoSezione=document.getElementById("Bo" + sezione);
		 VoSezione.style.backgroundColor="#000099";
		 if (!BoSezione) return;
		 BoSezione.style.visibility="hidden";
		}
}
