/* Deals with the placement and display of the footer. */
	var headerOffset = 150;
	//hasHeader defines if the page has a featureimg. set on load...
	var hasHeader;

	function adjustLayout(){
		//get heights of each column from the bottom of the secondaryimg
		var lHeight = xHeight("left");// - headerOffset;
		var cHeight = xHeight("center");
		var cfHeight = xHeight("center-full");
		var rHeight = xHeight("right");

		//alert(lHeight+" "+cHeight+" "+rHeight);

		var maxHeight = Math.max(cHeight, Math.max(lHeight, Math.max(cfHeight, rHeight)));
		//alert(maxHeight);

		//set all the column heights to the largest height
		xHeight("left", maxHeight + headerOffset);
		xHeight("center", maxHeight);// + (!hasHeader * headerOffset));
		xHeight("center-full", maxHeight);// + (!hasHeader * headerOffset));
		xHeight("right", maxHeight);
		xShow("footer");
	}

	window.onload = function(){
		if(xGetElementById("featureimg"))
			hasHeader = true;
		else
			hasHeader = false;
		adjustLayout();
	}