
/*script type="text/javascript"*/
/* this script will adjust the menu div height to expand the length of the pageCell when used with x.js*/



function adjustLayout()
{
  // Get natural heights
  var cHeight = xHeight("pageCell");
  var lHeight = xHeight("menu");
  var rHeight = xHeight("mainContent");

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

  // Assign maximum height to all columns
  xHeight("pageCell", maxHeight);
  xHeight("menu", maxHeight);
  xHeight("mainContent", maxHeight);

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

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