// Adjust Layout

function adjustLayout()
{
  // Get natural heights and widths
  var lHeight = xHeight("leftcolumn");
  var nHeight = xHeight("navcolumn");
  var cHeight = xHeight("contentcolumn");
  var rHeight = xHeight("rightcolumn");
  var tsWidth = xWidth("rightcolumn");


  
  // Find the maximum height of the nav columns
  var maxHeight =
    Math.max(lHeight,Math.max(rHeight, Math.max(nHeight, cHeight)));

	
  // Assign maximum height to all columns
  xHeight("leftcolumn", (maxHeight+20));
  xHeight("navcolumn", maxHeight+20);
  xHeight("contentcolumn", maxHeight+20);
  xHeight("rightcolumn", maxHeight+20);
  
  // Adjust width
  xWidth("topstrip", tsWidth+710);


  // Show the footer
  xShow("footer");
}

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