// JavaScript Document

function get_weekday(current_date) {
	var this_day = current_date.getDay();
	switch(this_day) {
		case 0: return "Domingo";
		case 1: return "Lunes";
		case 2: return "Martes";
		case 3: return "Mi&eacute;rcoles";
		case 4: return "Jueves";
		case 5: return "Viernes";
    	case 6: return "S&aacute;bado";
	}
}

function get_month(current_date) {
	var month = current_date.getMonth();
	switch(month) {
		case 0: return "Enero";
		case 1: return "Febrero";
		case 2: return "Marzo";
		case 3: return "Abril";
		case 4: return "Mayo";
		case 5: return "Junio";
		case 6: return "Julio";
		case 7: return "Agosto";
		case 8: return "Septiembre";
		case 9: return "Octubre";
		case 10: return "Noviembre";
		case 11: return "Diciembre";
		return "";
	 }
}

function get_day(current_date) {
	return current_date.getDate();
}

function get_greeting(current_date) {
	var hour = current_date.getHours();
	if ((hour >= 12) && (hour <= 17))
		return "Buenas Tardes";
	else if ((hour >= 18) || (hour <= 3))
		return "Buenas Noches";
	else
		return "Buenos D&iacute;as";
}

function get_year(current_date) {
	var yr = current_date.getYear()
	//For Netscape compliance
	if(yr < 2000) { 
   		return (1900 + yr);
	} 
	return yr;
}

function mOvr(src,clrOver) {
	src.style.backgroundColor = clrOver;
}

function mOut(src,clrIn) {
	src.style.backgroundColor = clrIn;
}

function HM_NavBarClick(src,url) {
	src.style.backgroundColor = '#9FD3D7';
	window.location.href = url;
	/*if(event.srcElement.tagName=='TD' || event.srcElement.tagName=='td'){
	  src.children.tags('A')[0].click();
	}*/
}






