//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");  
 var lHeight = xHeight("sidebar-a");  
 var rHeight = xHeight("sidebar-b");  
 
 // Find the maximum height  
 var maxHeight =  
   Math.max(cHeight, Math.max(lHeight, rHeight));  
 
 // 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);  
 adjustLayout();  
}  
