// JavaScript Document

//configure below variable for menu width, position on page
var menuwidth=180
var offsetleft=85
var offsettop=160

var ns4=document.layers?1:0
var ie4=document.all?1:0
var ns6=document.getElementById&&!document.all?1:0

function makeStatic() {
if (ie4) {object1.style.pixelTop=document.body.scrollTop+offsettop}
else if (ns6) {document.getElementById("object1").style.top=window.pageYOffset+offsettop}
else if (ns4) {eval(document.object1.top=eval(window.pageYOffset+offsettop));}
setTimeout("makeStatic()",0);
}

if (ie4||ns6) {document.write('<span ALIGN="CENTER" ID="object1" STYLE="Position:absolute; Top:20; Left:'+offsetleft+'; Z-Index:5;cursor:hand;"><TABLE BORDER="0" width="'+menuwidth+'" CELLPADDING="0" CELLSPACING="0" BORDERCOLOR="black" class="tablita">')}
else if (ns4){ document.write('<LAYER top="20" name="object1" left="'+offsetleft+'"><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="1"><TR><TD><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" width="'+menuwidth+'">')}


var menui = new Array();
var menul = new Array();

//configure below for menu items. Extend list as desired

menui[0]="Inicio";
menui[1]="Colecciones";
menui[2]="Historia";
menui[3]="Turismo Comunitario";
menui[4]="Certificacion de Origen";
menui[5]="Noticias";
menui[6]="Quienes Somos";
menui[7]="Contactenos";
menui[8]="Enlaces";

menul[0]="index.html";
menul[1]="bolsas.html";
menul[2]="historia3.html";
menul[3]="paisajes.html";
menul[4]="certificado.html";
menul[5]="noticiasmenu.html";
menul[6]="quienessomos.html";
menul[7]="contacto.html";
menul[8]="enlaces.html";

for (i=0;i<=menui.length-1;i++)
if (ie4||ns6) {document.write('<TR><TD class="prueba" ONCLICK="location=\''+menul[i]+'\'" style="cursor: pointer; cursor: hand;" onmouseover="className=\'menuh\'" onMouseout="className=\'prueba\'"><FONT>'+menui[i]+'</FONT></TD></TR>')}
else if (ns4){document.write('<TR><TD class="prueba"><ILAYER><LAYER width="'+menuwidth+'" onmouseover="bgColor=\'yellow\'" onmouseout="className=\'prueba\'"><A HREF="'+menul[i]+'" class=menulinks>'+menui[i]+'</A></LAYER></ILAYER></TD></TR>')}

if (ie4||ns6) {document.write('</TABLE></span>')}
else if (ns4){document.write('</TABLE></TD></TR></TABLE></LAYER>')}

function menu3(){
if (ns6||ie4||ns4)
makeStatic()
}

window.onload=menu3


