// JavaScript Document

function adjustLayout()
{
  // Get natural heights
  var lHeight = xHeight("side-a");
  var rHeight = xHeight("side-b");

  // Find the maximum height
  //var maxHeight = Math.max(lHeight, rHeight); 
  var maxHeight = Math.max(lHeight, rHeight);
 

  // Assign maximum height to all columns
  xHeight("side-a", maxHeight);
  xHeight("side-b", maxHeight);

}

xAddEventListener:

window.onload = function()
{
  xAddEventListener(window, "resize",
    adjustLayout, false);
  adjustLayout();
}

