//Function used to set column displays to equal heights
// see http://www.sitepoint.com/print/1213
function adjustLayout()  
{  
 // Get natural heights  
 var cHeight = xHeight("content");
  
   //alert('content height='+cHeight) 
 var lHeight = xHeight("sidebar-a");  
   //alert('sidebar-a height='+lHeight)
   //if (!cHeigtOrig)
   //{
   //    var cHeightOrig = lHeight;
   //    alert('1st cHeightOrig='+cHeightOrig)
   //} 
 var rHeight = xHeight("sidebar-b"); 
   //alert('sidebar-b height='+rHeight)  
 
 // Find the maximum height  
 var maxHeight =  Math.max(cHeight, Math.max(lHeight, rHeight));  
 //alert('maxHeight='+maxHeight)
 // Assign maximum height to all columns  
 xHeight("content", maxHeight);  
 xHeight("sidebar-a", maxHeight);  
 xHeight("sidebar-b", maxHeight);  
 
 
 
 
 // Show the footer  
 xShow("footer");  
}

function adjustColumns()  
{  
 xAddEventListener(window, "resize", adjustLayout, false); 
 //alert('xAddEventListener') 
 adjustLayout();  
}  
