//works with x.js to ensure the footer is always at the correct position
  function adjustLayout()
  {
    // Get natural heights
    var cHeight = xHeight("centercontent");	
    var cHeight = xHeight("centercontentright");
    var lHeight = xHeight("leftcontent");
    var rHeight = xHeight("rightcontent");
  
    // Find the maximum height
    var maxHeight = Math.max(cHeight, Math.max(lHeight, rHeight));
  
    // Assign maximum height to all columns
	xHeight("center", maxHeight);
    xHeight("centerright", maxHeight);
    xHeight("left", maxHeight);
    xHeight("right", maxHeight);
  
    // Show the footer
    xShow("footer");
    }
  function theLoader()
   {
   xAddEventListener(window, "resize", adjustLayout, false);
   adjustLayout();
   }
