<script>
function checkIt(string)
{
  place = detect.indexOf(string) + 1;
  thestring = string;
  return place;
}

function adjustLayout()
{
  // Get natural heights                                                                                                                                     
  var lHeight = xHeight("interiorColumn1");
  var cHeight = xHeight("interiorColumn2");
  var rHeight = xHeight("mainColumn3");

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

  // Assign maximum height to all columns                                                                                                                    
  xHeight("interiorColumn1", maxHeight);
  xHeight("interiorColumn2", maxHeight);
  xHeight("mainColumn3", maxHeight);

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

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