var empezar = false
var anclas = new Array ("menu1","menu2")
var capas = new Array("sub1","sub2")
var retardo
var ocultar

function muestra(capa){
xShow(capa);
}
function oculta(capa){
xHide(capa);
}
function posiciona (){
for (i=0;i<capas.length;i++){
posx= xOffsetLeft(anclas[i])- 105
posy= xOffsetTop (anclas[i]) - 6
xMoveTo(capas[i],posx,posy+20)
}
}

window.onload = function() {
posiciona()
empezar = true
}
window.onresize = function() {
posiciona()
}

function muestra_coloca(capa){
if (empezar){
for (i=0;i<capas.length;i++){
if (capas[i] != capa) xHide(capas[i])
}
clearTimeout(retardo)
xShow(capa)
}
}

function oculta_retarda(capa){
if (empezar){
ocultar =capa
clearTimeout(retardo)
retardo = setTimeout("xHide('" + ocultar + "')",1000)
}
}

function muestra_retarda(ind){
if (empezar){
clearTimeout(retardo)
}
} 

/* JAVASCRIPT VERSION A LIST APART */

/*startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("nav");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace»
	(" over", "");
   }
   }
  }
 }
}
window.onload=startList;*/