var nDate = "";
var months=new Array(13);
var time=new Date();
var date=time.getDate();
var year=time.getYear();

function changeImage(ll){
	var topmen2img = new Image;
	var topmen2img_ov = new Image;
	var temp = "";
	
	topmen2img.src = "./images/topmen2.gif";
	topmen2img_ov.src = "./images/topmen2ov.gif";
	
	for (var x=0;x<ll.childNodes.length;x++) {
		temp = ll.childNodes[x].nodeName;
		if (temp.toUpperCase() == "IMG") {
			temp = ll.childNodes[x].src;
			if(temp.indexOf("ov.gif") != -1){ 
				temp = temp.replace("ov.gif", ".gif");
			}
			else{
				temp = temp.replace(".gif", "ov.gif");
			}
			ll.childNodes[x].src = temp;
		}
	}
}


function changeLeftNavStyle(wch){
		var temp = "leftNav";
		var n = 1;
		for(n = 1; document.getElementById(temp + n); n++){
			document.getElementById(temp + n).className = "divNoSelected";
			if(n == wch){
				document.getElementById(temp + n).className = "divSelected";
			}
		}
}

function getCurrentDate(){
months[1]="Enero";
months[2]="Febrero";
months[3]="Marzo";
months[4]="Abril";
months[5]="Mayo";
months[6]="Junio";
months[7]="Julio";
months[8]="Agosto";
months[9]="Septiembre";
months[10]="Octubre";
months[11]="Noviembre";
months[12]="Diciembre";
var lmonth=months[time.getMonth() + 1];
if (year < 2000){
	year = year + 1900;
}
nDate = "" + date + " de " + lmonth + " de " + year;
return nDate;
}