// -- adjust layout so columns have equal height 
//  uses functions in x.js DHTML library
function adjustLayout()
{
  // Get natural heights
  var cHeight = xHeight("content");
  var lHeight = xHeight("navBar");
//  var rHeight = xHeight("rightcontent");

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

  // Assign maximum height to all columns
  xHeight("content", maxHeight);
  xHeight("navBar", maxHeight);
//  xHeight("right", maxHeight);

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

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