// Make all blocks (divs) on one page the same height as the tallest one (when faux columns can't be used)

function getHeights(){
	//check for standards compliance
	if(!document.getElementById) return;
	if(!document.getElementsByTagName) return;
	var primaryContent = document.getElementById("primarycontent");
	var pcHeight = primaryContent.offsetHeight;
	
	setHeights(pcHeight); // run the setHeights function
}

// make all divs the same height in pixels. must be run on window resize, text increase/decrease. (a ballache basically.)
function setHeights(height){
	var subnav = document.getElementById("subnav");
	height -= 27;
	subnav.style.minHeight = height+'px'; // set min-height

}


addEvent(window,"load",getHeights);