// JavaScript Document

//SITE LGC

function retMakeNewCal(oRet){
	//alert(oRet);
	$GEBId("bloco-calendario").innerHTML = trimStr(oRet);	
}
	
function makeNewCal(oDay, oYear, oMonth, oMode){	
	ajax("supportAjax/makeCalendar.php", retMakeNewCal, "dia="+oDay+"&mes="+oMonth+"&ano="+oYear+"&mode="+oMode, "POST");	
}

////////////////////////////////////////

function retEventos(oRet){
//alert(oRet);
	var temp = oRet.split("#");
	if(temp[1] < 1) temp[1] = 0;
	$GEBId("eventos").innerHTML = temp[0];	
	$GEBId("evenBannerImg").src = "img/eventos/imgeventos_"+temp[1]+".jpg";
	
}

function setEventos(dataIni){
	ajax("supportAjax/setEventos.php", retEventos, "ini="+dataIni, "POST");
}	

function setEventosAnteriores(){
	ajax("supportAjax/setEventos.php", retEventos, "anteriores=1", "POST");
}