// Adjust page layout according to highest column
function adjustLayout()  
{  
 // Get natural heights  
 var cHeight = xHeight("centerCol");
 var lHeight = xHeight("leftCol");  
 var rHeight = xHeight("rightCol");
 
 // Find the maximum height  
 var maxHeight = Math.max(cHeight, Math.max(lHeight, rHeight));
 
 // Assign maximum height to all columns  
 xHeight("centercol", maxHeight);  
 xHeight("leftcol", maxHeight);  
 xHeight("rightcol", maxHeight);
 
 // Work out the height required for the bottom div
 // in the center column
 var tHeight = xHeight("top"); 
 var footerTop = xOffsetTop("footer");
 var cColBottomDivTop = xOffsetTop("centerColBottomDiv");
 //Not sure where this 13 is coming from ?
 var fudge = 13;
 var cColBottomDivNewHeight = footerTop - cColBottomDivTop - tHeight - fudge;
 xHeight("centerColBottomDiv",cColBottomDivNewHeight);

 // Show the footer  
 //xShow("footer");  
}

//listen for when the adjustment should be made
window.onload = function()  
{
	/*	Only add this event handler if you require the contents
		to be resized if the windows is resized !
	*/
	//xAddEventListener(window, "resize",adjustLayout, false);  
	adjustLayout();  
}  