 ns4 = (document.layers)? true:false 
 ie4 = ((document.all)&&!(document.getElementById ))? true:false 
 dom= (document.getElementById)? true:false
 
  if(ns4)document.write("<link rel='stylesheet' href='/ES/style/es/corp/ns.css' type='text/css'>")
  if(ie4 || dom) document.write("<link rel='stylesheet' href='/ES/style/es/corp/ie.css' type='text/css'>")
	//funcion rollover
	function enciende(numero,action){
	if (dom){
	eval("nav"+numero+".src='/ES/images/es/consumer/flecha_"+action+".gif'")
	}
	if (ns4){
	eval("document.nav"+numero+".src='/ES/images/es/consume/flecha_"+action+".gif'")
	}
	}

dia= new Date()


function myClock(lay){	
	this.createSpanishDate = createSpanishDate;
	this.lay=lay;
	this.update = update;
	this.createSpanishDate();
}

function createSpanishDate(){
        var zeros = "00";
        var today = new Date();
	var dias = new Array ("Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado");
	dateStr = dias [today.getDay()];
	dateStr += ", ";	
	dateStr += today.getDate() + " de ";
	var m = 0; m = today.getMonth();
	mes= new Array ("enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre")
	dateStr += mes[m];
	dateStr += " de " + today.getFullYear()
	this.display = dateStr;
}

function update(){
	this.createSpanishDate();
	
        fecha=this.display
		
		
		
		
}



  
	if(document.layers){
		aClock = new myClock(document.layers["reloj"])  // Netscape syntax
		aClock.update();
	} else {
		aClock = new myClock(document.all["watch"])  // IE syntax
		aClock.update();
	}
	
	function AbrirVentana (url,title,ancho,alto)
{window.open(url,title,'width='+ancho+',height='+alto)}
