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