var at_currentDiv = new Object();
at_currentDiv.currentDivId = "";
at_currentDiv.shallBeHidden=true;


function at_displayCurrentDiv(){
	if (at_currentDiv.currentDivId!=""){
		showDiv("t" + at_currentDiv.currentDivId);
	}
}
	
function at_hideCurrentDiv(){
	if (at_currentDiv.currentDivId!=""){
		hideDiv(at_currentDiv.currentDivId);
	}
}	

function at_monthClicked(id, numberOfMonths){
	if ((id != at_currentDiv.currentDivId)&&(at_currentDiv.shallBeHidden)){
		at_hideAllDivs(numberOfMonths, "t");
		at_currentDiv.currentDivId = id;
		at_displayCurrentDiv();
		at_setDivArrowToDown(id);
	}
}

function at_setDivArrowToDown(divId){
	//document.getElementById("ddArrow" + divId).setAttribute("class", "on");
	document.getElementById("ddArrow" + divId).className="on";
}

function at_setDivArrowToSide(divId){
	document.getElementById(divId).className="";
}

function at_hideAllDivs(numberOfMonths, prefix){
	for (var i = 0; i < numberOfMonths; i++){
		hideDiv(prefix + i);
		at_setDivArrowToSide('ddArrow' + i);
	}
}

function at_setFooterContent (){
	var content = document.getElementById("footerContent").innerHTML;
	document.getElementById("archiveFooterContent").innerHTML = content;
}
