//note this is a mixture of jquery and x.js
function adjustLayout()
{
	jQuery('#center-content, #left-content, #right-content').removeAttr('style'); 
	// Get natural heights
	var cHeight = xHeight("center-content");
	var lHeight = xHeight("left-content");
	var rHeight = xHeight("right-content");
	
	// Find the maximum height
	var maxHeight = Math.max(cHeight, Math.max(lHeight, rHeight));
	
	// Assign maximum height to all columns
	xHeight("center-content", maxHeight);
	xHeight("left-content", maxHeight);
	xHeight("right-content", maxHeight);
	
	// Show the footer
	xShow("footer");
}


jQuery(window).load(function(){
	adjustLayout();
});

/*window.onload = function()
{
	xAddEventListener(window, "resize", adjustLayout, false);
	adjustLayout(); 
}*/
