// JavaScript de un reloj digital
function muestraReloj()
{
if (!document.layers && !document.all && !document.getElementById) return;
var fechacompleta = new Date() ;
var horas = fechacompleta. getHours() ;
var minutos = fechacompleta. getMinutes() ;
var segundos = fechacompleta. getSeconds() ;
var mt ="AM";
if (horas > 12) {
mt ="PM";
horas = horas - 12;
}
if (horas == 0) horas = 12;
if (minutos <= 9) minutos = "0" + minutos;
if (segundos <= 9) segundos = "0" + segundos;

fuikasreloj = " <font class='reloj'>" + horas + ":" + minutos + ":" + " " + mt + "- GTM Lima</font> ";
if (document.layers) {
document.layers.spanreloj.document.write(fuikasreloj);
document.layers.spanreloj.document.close();
}
else if (document.all) spanreloj.innerHTML = fuikasreloj;
else if (document.getElementById)
document.getElementById("spanreloj").innerHTML = fuikasreloj;
setTimeout ("muestraReloj()", 1000);
}

// El siguiente Scrips es para la Fecha------------------------------------

// Array de los meses
var monthNames = new makeArray(12);
monthNames[0] = "Enero";
monthNames[1] = "Febrero";
monthNames[2] = "Marzo";
monthNames[3] = "Abril";
monthNames[4] = "Mayo";
monthNames[5] = "Junio";
monthNames[6] = "Julio";
monthNames[7] = "Agosto";
monthNames[8] = "Septiembre";
monthNames[9] = "Octubre";
monthNames[10] = "Noviembre";
monthNames[11] = "Diciembre";

// Array de los días

var dayNames = new makeArray(7);
dayNames[0] = "DOMINGO";
dayNames[1] = "LUNES";
dayNames[2] = "MARTES";
dayNames[3] = "MIERCOLES";
dayNames[4] = "JUEVES";
dayNames[5] = "VIERNES";
dayNames[6] = "SABADO";

var now = new Date();
var year = now.getYear();

if (year < 2000) year = year + 1900;
/* Funcion de Pestañas en Portada */
function makeArray(len)
{
for (var i = 0; i < len; i++) this[i] = null;
this.length = len;
}


//Menus Despegables

navHover = function() {
	var lis = document.getElementById("navmenu-h").getElementsByTagName("LI");
	for (var i=0; i<lis.length; i++) {
		lis[i].onmouseover=function() {
			this.className+=" iehover";
		}
		lis[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" iehover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", navHover);