
/*FRAMEBUSTER*/
if (top.frames.length!=0) {
	top.location=self.document.location;
}

/***** This is the Code to get today's date ******/

Date.prototype.getFullYear = getFullYear;
Date.prototype.getActualMonth = getActualMonth;
Date.prototype.getActualDay = getActualDay;
Date.prototype.getCalendarDay = getCalendarDay;
Date.prototype.getCalendarMonth = getCalendarMonth;
Date.prototype.getCalendarDayEsp = getCalendarDayEsp;
Date.prototype.getCalendarMonthEsp = getCalendarMonthEsp;

	function getFullYear() {
		var n = this.getYear();
		if (n < 2000) { n += 1900;}
		return n;
	}

	function getActualMonth() {
		var n = this.getMonth();
		n += 1;
		return n;
	}

	function getActualDay() {
		var n = this.getDay();
		n += 1;
		return n;
	}

	function getCalendarDay() {
		var n = this.getDay();
		var dow = new Array(7);
		dow[0] = "Sunday";
		dow[1] = "Monday";
		dow[2] = "Tuesday";
		dow[3] = "Wednesday";
		dow[4] = "Thursday";
		dow[5] = "Friday";
		dow[6] = "Saturday";
		return dow[n];
	}

	function getCalendarDayEsp() {
		var n = this.getDay();
		var dow = new Array(7);
		dow[0] = "Domingo";
		dow[1] = "Lunes";
		dow[2] = "Martes";
		dow[3] = "Mi&eacute;rcoles";
		dow[4] = "Jueves";
		dow[5] = "Viernes";
		dow[6] = "S&aacutelbado";
		return dow[n];
	}

	function getCalendarMonth() {
		var n = this.getMonth();
		var moy = new Array(12);
		moy[0] = "January";
		moy[1] = "February";
		moy[2] = "March";
		moy[3] = "April";
		moy[4] = "May";
		moy[5] = "June";
		moy[6] = "July";
		moy[7] = "August";
		moy[8] = "September";
		moy[9] = "October";
		moy[10] = "November";
		moy[11] = "December";
		return moy[n];
	}

	function getCalendarMonthEsp() {
		var n = this.getMonth();
		var moy = new Array(12);
		moy[0] = "Enero";
		moy[1] = "Febrero";
		moy[2] = "Marcha";
		moy[3] = "Abril";
		moy[4] = "Mayo";
		moy[5] = "Junio";
		moy[6] = "Julio";
		moy[7] = "Agosto";
		moy[8] = "Septiembre";
		moy[9] = "Octubre";
		moy[10] = "Noviembre";
		moy[11] = "Diciembre";
		return moy[n];
	}

var today = new Date();
var fullDate = today.getCalendarDay() + ", " + today.getCalendarMonth() + " " + today.getDate() + ", " + today.getFullYear();

var fullDateEsp = today.getCalendarDayEsp() + ", " + today.getCalendarMonthEsp() + " " + today.getDate() + ", " + today.getFullYear();

/********** Date code ends ***********/


/* NETSCAPE RESIZE FIX */
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
	document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function espanol() {
	loc=document.location.href;
	var z = 0
	for (i=0;i<loc.length;i++) {
		if (loc.charAt(i)=="/") z=i;
	}
	firstHalf = loc.substring(0,z) + "_esp/";
	secondHalf = loc.substring(z+1,loc.length);
	loc = firstHalf + secondHalf;
	document.location.href = loc;
}

function english() {
	loc=document.location.href;
	var z = 0
	for (i=0;i<loc.length;i++) {
		if (loc.charAt(i)=="/") z=i;
	}
	firstHalf = loc.substring(0,z-4) + "/";
	secondHalf = loc.substring(z+1,loc.length);
	loc = firstHalf + secondHalf;
	document.location.href = loc;
}
