var timers=new Array();


function subOn(numero){
  document.getElementById("submnu"+numero).style.visibility="visible";
  document.getElementById("mnu"+numero).style.visibility="visible";
  if(timers[numero-1])
	timers[numero-1]=setTimeout("subOff("+(numero-1)+")",1);
  if(timers[numero+1])
	timers[numero+1]=setTimeout("subOff("+(numero+1)+")",1);
};


function subOff(numero){
  document.getElementById("submnu"+numero).style.visibility="hidden";
  document.getElementById("mnu"+numero).style.visibility="hidden";
};


function killSub(numero){
  timers[numero]=setTimeout("subOff("+numero+")",100);
};


function saveSub(numero){
  if(timers[numero])clearTimeout(timers[numero]);
};




function plOn(numero){
  document.getElementById("map20").style.backgroundPosition="0 "+(-289*numero)+"px";
  document.getElementById("pl"+numero).style.display="block";
  
};


function plOff(numero){
  document.getElementById("map20").style.backgroundPosition="0 0";
  document.getElementById("pl"+numero).style.display="none";  
};
