/* * Template Version: 2.1 * */
/* * Date: 2006-11-14 * */
/* * Author: Jonas Hartmann code A_T jonas DASH hartmann DOT c0m * */
/* * XHTML 1.0 Valid, CSS 2.1 Valid * */

/* sets height of multiple html elements to the height of the highest/largest one */
function setColumnsHeight() {
	// alert("Hack: EqualColumnHeights active!");

	topHeight = document.getElementById("header").offsetHeight + document.getElementById("extra_menu_box").offsetHeight;
	columnHeights = new Array((document.body.offsetHeight - topHeight),
	                          document.getElementById("main").offsetHeight,
	                          document.getElementById("menu").offsetHeight,
	                          document.getElementById("content").offsetHeight,
	                          document.getElementById("context").offsetHeight
	);
	var maxHeight = 0;
	for (i = 0; i < columnHeights.length; i++) {
		if (columnHeights[i] > maxHeight) {
			maxHeight = columnHeights[i];
		}
	}
	document.getElementById("menu").style.height = maxHeight + "px";
	document.getElementById("content").style.height = maxHeight + "px";
	document.getElementById("context").style.height = maxHeight + "px";
}

window.onload = function () {
	// alert("Hack: Hackloader...");
	setColumnsHeight();
}

