$(document).ready(function(){
	
	$("#doe").click(function () { 
		location.href = 'http://www.doe.cl/cgi-bin/calendar/calendar1.cgi';
    });
	
	$("#doh").click(function () { 
		location.href = 'http://www.doe.cl/cgi-bin/calendar/calendar.cgi?d=1&amp;m=03&amp;y=1877';
    });
	
	$("#bd").click(function () { 
			location.href = 'http://productos.doe.cl';
    });
	
	$("#busley").click(function () { 
		location.href = 'http://www.doe.cl/indice/';
    });
	
	$("#bile").click(function () { 
		location.href = 'http://www.doe.cl/indice/bitacora_doe.php';
    });
	
	$("#radio").click(function () { 
		ventanaSecundaria('http://www.doe.cl/radio/iclassic.html');
    });
	
	
});

function ventanaSecundaria (URL){
   window.open(URL,"Diario","width=300,height=220,scrollbars=NO")
}


function hoy(){
var fecha=new Date();
var diames=fecha.getDate();
var diasemana=fecha.getDay();
var mes=fecha.getMonth() +1 ;
var ano=fecha.getFullYear();

var textosemana = new Array (7); 
  textosemana[0]="Domingo";
  textosemana[1]="Lunes";
  textosemana[2]="Martes";
  textosemana[3]="Miércoles";
  textosemana[4]="Jueves";
  textosemana[5]="Viernes";
  textosemana[6]="Sábado";

var textomes = new Array (12);
  textomes[1]="enero";
  textomes[2]="febrero";
  textomes[3]="marzo";
  textomes[4]="abril";
  textomes[5]="mayo";
  textomes[6]="junio";
  textomes[7]="julio";
  textomes[8]="agosto";
  textomes[9]="septiembre";
  textomes[10]="octubre";
  textomes[11]="noviembre";
  textomes[12]="diciembre";

	$("#fechaTitulo").html(textosemana[diasemana] + ", " + diames + " de " + textomes[mes] + " de " + ano+"  ");
	$("#indicadores").load("getindicadores.asp");
}
// JavaScript Document
