function hilite(calStr, evtStr)
{
	elem = document.getElementById("cal"+calStr);
	color=elem.style.color;
	if (color != "rgb(255, 255, 255)") {		// Already highlighted
		elem.style.backgroundColor=color;
		elem.style.color="#FFFFFF";
	} else {
		color = elem.style.backgroundColor;
	}

	elem = document.getElementById("evt"+evtStr);
	elem.style.borderStyle="solid";
	elem.style.borderColor=color;
	elem.style.backgroundColor="#FFFFFF";
	elem.style.borderWidth="2px";
	elem.style.margin="0px";
}

function unhilite(calStr, evtStr)
{
	elem = document.getElementById("cal"+calStr);
	color=elem.style.color;
	if (color == "rgb(255, 255, 255)") {		// Already highlighted
		color=elem.style.backgroundColor;
		elem.style.color=color;
		elem.style.backgroundColor="transparent";
	}

	elem = document.getElementById("evt"+evtStr);
	elem.style.borderStyle="none";
	elem.style.backgroundColor="transparent";
	elem.style.borderWidth="0px";
	elem.style.margin="2px";
}

function loadEvents()
{
	var which = $("#which-meetings").attr("title");
	$("#archives-container").load(which, function() { $(this).show("slow"); });
}

$(document).ready(loadEvents);

