function Dia_de_Semana (d1,d2,d3,d4,d5,d6,d7) {
this[0]=d1;
this[1]=d2;
this[2]=d3;
this[3]=d4;
this[4]=d5;
this[5]=d6;
this[6]=d7;
	}

function Mes_del_Anio (d1,d2,d3,d4,d5,d6,d7,d8,d9,d10,d11,d12) {
this[0]=d1;
this[1]=d2;
this[2]=d3;
this[3]=d4;
this[4]=d5;
this[5]=d6;
this[6]=d7;
this[7]=d8;
this[8]=d9;
this[9]=d10;
this[10]=d11;
this[11]=d12;
	}

Semana = new Dia_de_Semana ("Domingo","Lunes","Martes","Mi&eacute;rcoles","Jueves","Viernes","S&aacute;bado");

Mes = new Mes_del_Anio ("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre");

var today = new Date();
diahoy    = today.getDay();
fechahoy  = today.getDate();
meshoy    = today.getMonth();
anio      = today.getYear(); 
if (anio < 2000)                                                                            
  	anio = anio + 1900                                                                         
       
function dia () {
<!-- document.write ('Madrid, ');//Pon aquí el nombre de tu ciudad -->
document.write (Semana[diahoy]+' '+fechahoy);
document.write (' de '+Mes[meshoy]+'&#160;del&#160;'+anio);
document.write ("<BR>");
}

//FECHA ULTIMA ACTUALIZACION
//Autor: Iván Nieto Pérez
//Este script y otros muchos pueden
//descarse on-line de forma gratuita
//en El Código: www.elcodigo.net

function UltimaActualizacion() {

  var cfecha = document.lastModified;
  var fecha = new Date(Date.parse(cfecha)); 
  //var fecha = new Date( document.lastModified )

  document.write("<p>Ultima actualización: <b>")
  MostrarFecha( fecha )
  document.write("</b></p>")
}

function MostrarFecha( fecha ) {
   var nombres_dias = new Array("Domingo", "Lunes", "Martes", "Miércoles", "Jueves", "Viernes", "Sábado")
   var nombres_meses = new Array("Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre")

   dia_mes = fecha.getDate()		//dia del mes
   dia_semana = fecha.getDay()		//dia de la semana
   mes = fecha.getMonth() + 1
   anio = fecha.getYear()

   if (anio < 100)					//pasa el año a 4 digitos
      anio = '19' + anio
   else if ( ( anio > 100 ) && ( anio < 999 ) ) {	//efecto 2000
      var cadena_anio = new String(anio)
      anio = '20' + cadena_anio.substring(1,3)
   }

   //escribe en pagina
   document.write(nombres_dias[dia_semana] + ", " + dia_mes + " de " + nombres_meses[mes - 1] + " de " + anio)
}

// 2010-04-23 tscroll_init

var Tscroll_path_to_files = 'ts_files/'

// please, don't change anything below this line
function Tscroll_init (id) {
	document.write ('<iframe id="Tscr' + id + '" scrolling=no frameborder=no src="' + Tscroll_path_to_files + 'scroll.htm?' + id + '" width="1" height="1"></iframe>');
}

