Event.observe(window, "load", handlePageLoad);

function handlePageLoad() {
	//Equalize height of columns
	var columns = new Array($("navMenu"), $("content"), $("states"));
	var maxHeight = 0;
	//Determine max height
	columns.each(function(column) {
		if (column.getHeight() > maxHeight) maxHeight = column.getHeight();
	});
	//Set all heights the same
	columns.each(function(column) {
		column.style.height = maxHeight +"px";
	});
	
	//Highlight the anchor corresponding to the current page in nav menu(s)
	//This occurs when the id in the body tag matches a classname in an anchor
	var pageId = $$("body").first().id;
	if (pageId != "")
		$$(".navMenu a."+ pageId).invoke("addClassName", "currentPage");
}