//JOSE MONZON MELIAN
//Compatible con: IE (todas las versiones), NETSCAPE (a partir de la 6), OPERA (a partir de la 6), MOZILLA (todas)
//Creado con MS Notepad

contenidoMenu = new Array();
colorTabla = "#000000" //Por defecto.

//Inserta elementos en un LINK
function meter(destinoEnlace, V, I, nombreLink, nombreURL, estado){
	var izq, der
	if (alineacion == "right"){ izq = ""; der = "&nbsp;"}
	else { izq = "&nbsp;"; der = ""}
	
	if(estado == null) estado = nombreLink
	if(destinoEnlace == "mete"){
		contenidoMenu[V] = contenidoMenu[V] + '<ACRONYM TITLE="'+estado+'"><TR><TD id="ID'+V+I+'" align="' + alineacion + '" onMouseover="window.status=' + "'" + estado + "'" + '; mOver(\'ID'+V+I+'\', ' +
		"'"+ resalte+"'"+ '); if(!netscape6) return true" onMouseout="window.status=' + "mensaje" + '; mOut(\'ID'+V+I+'\', ' +"'"+ colorTabla+"'" + ');if(!netscape6) return true" height="18" class="estilot'+ V +'" onclick="window.location=' + "'" + nombreURL+ "'" + '" valign="middle">' + 
		'<A target="'+ destino + '" HREF="'+ nombreURL +'" class="menu" class="menu" onFocus="this.blur()" onMouseout="window.status='+ "mensaje" + '; if(!netscape6) return true" onMouseover="window.status=' + "'" + estado + "'" + ';if(!netscape6) return true"><ACRONYM TITLE="'+estado+'">'+ izq + nombreLink+ der +'</ACRONYM></A></TD></TR></ACRONYM>'}
	else { 
		contenidoMenu[V] = '<ACRONYM TITLE="'+estado+'"><TR><TD id="ID'+V+I+'" align="' + alineacion + '" onMouseover="window.status=' + "'" + estado + "'" + '; mOver(\'ID'+V+I+'\', ' +
		"'"+ resalte+"'"+ '); if(!netscape6) return true" onMouseout="window.status=' + "mensaje" + '; mOut(\'ID'+V+I+'\', ' +"'"+ colorTabla+"'" + ');if(!netscape6) return true" height="18" class="estilo2t'+ V +'" onclick="window.location=' + "'" + nombreURL+ "'" + '" valign="middle">' + 
		'<A target="'+ destino + '" HREF="'+ nombreURL +'" class="menu" class="menu" onFocus="this.blur()" onMouseout="window.status='+ "mensaje" + '; if(!netscape6) return true" onMouseover="window.status=' + "'" + estado + "'" + ';if(!netscape6) return true"><ACRONYM TITLE="'+estado+'">'+ izq + nombreLink+ der +'</ACRONYM></A></TD></TR></ACRONYM>'
	}
}

//MouseOver, compatible con la mayoria de navegadores web.
function mOver(elem, clr){
	document.getElementById(elem).style.backgroundColor = clr;
}

//MouseOut, compatible con la mayoria de navegadores web.
function mOut(elem, clr){
	document.getElementById(elem).style.backgroundColor = clr;
}

//Crea un menu.
function crearMenu(V, img, color, ancho, borde){	

	//Estilo de las tablas. Se compatible CSS para que funcione correctamente en TODOS los navegadores.
	document.write("<style> \n.estilot" + V + " {border-bottom: "+ borde +" 2px solid;\nborder-left: "+ borde +" 2px solid;\nborder-right: "+ borde +" 2px solid\n}\n</style>\n");
	document.write("<style> \n.estilo2t" + V + " {border-top: "+ borde +" 2px solid;\nborder-left: "+ borde +" 2px solid;\nborder-right: "+ borde +" 2px solid;\nborder-bottom: "+ borde +" 2px solid\n}\n</style>\n");

	if ((navigator.appName == 'Netscape')&&(parseInt(navigator.appVersion) < 5)) {
		document.write('<table width="' +ancho+ '" border="1" cellspacing="0" cellpadding="0" background=' + img + ' class="menu">',
	      contenidoMenu[V], '</table>')
	}else{
		document.write('<table width="' +ancho+ '" border="0" cellspacing="0" cellpadding="0" bgcolor='+color+' class="menu">',
         	contenidoMenu[V], '</table>')
	}
}


//Fin del menu.