var inmenu=false;
var lastmenu=0;
function mostra(current,im,img) {
   if (!document.getElementById) return;
   inmenu=true;
   oldmenu=lastmenu;
   lastmenu=current;
   if (oldmenu) Erase(oldmenu);
   m=document.getElementById("menu-" + current);
   box=document.getElementById(current);
   pulsanteOn=document.getElementById(im);
   box.style.visibility="visible";
   pulsanteOn.src="/images/"+img+"_on.gif";
   //pulsanteOn.src="/domoticadesign.it/images/"+img+"_on.gif";
   }
function Erase(current,im) {
   if (!document.getElementById) return;
   if (inmenu && lastmenu==current) {
	  return;
   }
   m=document.getElementById("menu-" + current);
   box=document.getElementById(current);
   box.style.visibility="hidden";
   }
function timeout(current,im, img) {
   inmenu=false;
   pulsanteOff=document.getElementById(im);
   pulsanteOff.src="/images/"+img+".gif";
   //pulsanteOff.src="/domoticadesign.it/images/"+img+".gif";
   window.setTimeout("Erase('"+current+"','"+im+"');",250);
}