function adjustLayout() {
  // Get natural heights
  var cHeight = xHeight("cvr_leftcontent");
  var lHeight = xHeight("cvr_content");
  var rHeight = xHeight("cvr_rightcontent");

  // Find the maximum height
  var maxHeight = Math.max(cHeight, Math.max(lHeight, rHeight));
    
   if (maxHeight < 400) {
		maxHeight = 400;
   }

  // Assign maximum height to all columns
  xHeight("cvrleft", maxHeight);
  xHeight("cvrcontent", maxHeight);
  xHeight("cvrright", maxHeight);

  // Show the footer
  //xShow("footer");
  
  //xShow("cvrbtmright");
  //xShow("cvrbtmleft");
  //xShow("cvrbtmcontent");
}

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