function luz() { // función que echa a andar las funciones de inicio
argos = String(navigator.appName) // argos para determinar el browser
macana = "zero"
setVariables()
checkLocation()
if (argos.indexOf("Internet Explorer") != -1) { contenido = document.all.tags("DIV")["esto"].all.tags("TD")[1].innerHTML ;document.all.tags("DIV")["esto"].style.left = "84%";}
elgo()
}

// algo() y esto() encienden y apagan el layer con el menú flotante

function algo() { 
if (argos.indexOf("Netscape") != -1) {
  document.layers['esto'].clip.left = "-80" 
  document.layers['esto'].clip.top = "0" 
  document.layers['esto'].clip.right = "20" 
  document.layers['esto'].clip.bottom = "400"
  }
else {
 document.all.tags("DIV")["esto"].all.tags("TD")[1].style.background = "url(../mnf.gif)"
 document.all.tags("DIV")["esto"].all.tags("TD")[1].innerHTML = contenido
 }
} 

function elgo() {
if (argos.indexOf("Netscape") != -1) {
  document.layers['esto'].clip.left = "0" 
  document.layers['esto'].clip.top = "0" 
  document.layers['esto'].clip.right = "20" 
  document.layers['esto'].clip.bottom = "20"
  }
else { 
 document.all.tags("DIV")["esto"].all.tags("TD")[1].style.background = ""
 document.all.tags("DIV")["esto"].all.tags("TD")[1].innerHTML = ""
 }
}


// Luego de definir como va a funcionar, este paquete de funciones hace flotar al menú flotante

function setVariables() { 
if (navigator.appName == "Netscape") { 
v=".top="; 
dS="document."; 
sD=""; 
y="window.pageYOffset + 20"; 
} 
else { 
v=".pixelTop="; 
dS=""; 
sD=".style"; 
y="document.body.scrollTop + 20"; 
} 
} 
function checkLocation() { 
object="esto"; 
yy=eval(y); 
eval(dS+object+sD+v+yy); 
setTimeout("checkLocation()",10); 
} 

// complex() se basa en la variable macana para encender o apagar el menú flotante a través de algo() y elgo()



function complex() { 
if (macana == "zero") { algo(); macana = "one"; } 
else if (macana == "one") { elgo(); macana = "zero" } 
} 


// jum(), en Netscape, evalúa si el layer aludido está encendido o apagado y apaga o enciende respectivamente. Pero también revisa si se está usando IE, y si así es, abre una ventana nueva.

function jum(text) {
 if (argos.indexOf("Internet Explorer") !== -1) {
 window.open(text.charAt(0)+text.charAt(1)+"-"+text.charAt(2)+text.charAt(3)+text.charAt(4)+text.charAt(5)+".html","popup","width=320,height=380")
 }
 else {
  if (document.layers[text].visibility == "hide") {document.layers[text].visibility = "inherit"}
  else if (document.layers[text].visibility == "inherit") {document.layers[text].visibility = "hide"}
 }
}
