function adjustLayout()
{
  // Get natural heights
  // alert("test");
  var cHeight = xHeight("center");
  var lHeight = xHeight("left");
  var rHeight = xHeight("right");

  // Find the maximum height
  var maxHeight = Math.max(cHeight, Math.max(lHeight, rHeight));

  // Assign maximum height to all columns
  xHeight("center", maxHeight);
  xHeight("left", maxHeight);
  xHeight("right", maxHeight);
  xHeight("center_content", maxHeight);
  xHeight("center_left", maxHeight);
}

window.onload = function()
{
	// alert("test");
	xAddEventListener(window, "resize", adjustLayout, false);
	adjustLayout();
	preloadImages();
}
