// JavaScript Document

function adjustLayout()
{
  // Get natural heights
  var cHeight = xHeight("container");
  var lHeight = xHeight("sidebar");
  

  // Find the maximum height
  var maxHeight =
    Math.max(cHeight,lHeight);

  // Assign maximum height to all columns
  xHeight("container", maxHeight);
  xHeight("sidebar", maxHeight);


  // Show the footer
  xShow("footer");
}

window.onload = function()
{
  xAddEventListener(window, "resize",
    adjustLayout, false);
  adjustLayout();
}
