/*************************************************************
 *  1MoreDynMenu 1.0
 *  script de uso livre. divirta-se!
 *  mas lembre que foi o Lourenzo Dias que fez!
 *************************************************************/
var delay=25;
var hide=new Array(null,false,false,false);
var count=new Array(null,delay,delay,delay);
//var coordX=140;
var timer=new Array();
function highlight(o,on){
	if (on==1){o.style.background="#FFFFFF";}
	else if (on==0){o.style.background="ButtonFace";}
	return false;
}
function findObj(n){
	if(document.layers)
		return eval("document.item"+n);
	if(document.all)
		return eval("document.all.item"+n+".style");
	return document.getElementById("item"+n).style;
}
function showMenu(n){
  for(i=1;i<count.length;i++){realHide(i);}
  obj=findObj(n);
  obj.visibility="visible";
  obj.left=coordX[n]+"px";
  obj.top=coordY[n]+"px";
  clearTimeout(timer[n]);
  count[n]=delay;
}
function realHide(n){
  obj=findObj(n);
  obj.visibility="hidden";
  hide[n]=false;
  obj.top="-1000px";
  obj.left="-1000px";
  clearTimeout(timer[n]);
  count[n]=delay;
}
function hideCountDown(n){
  if (hide[n]){
    if (count[n]==0){
      realHide(n);
      count[n]=delay;
	}
    count[n]--;
    timer[n]=setTimeout("hideCountDown("+n+")", 10);
  }
}
function mantain(n){
  hide[n]=false;
  count[n]=delay;
}
function hideMenu(n){
  hide[n]=true;
  hideCountDown(n);
}