//Column resize common site script

//Takes the height of a div with an id of "text_box" and if it is larger than the height of a div with an id of "container" then makes "container" the height of "text_box".  Also repeats on window resize.

//To be used with x.js:

/* x.js compiled from X 4.0 with XC 0.27b. Distributed by GNU LGPL. For copyrights, license, documentation and more visit Cross-Browser.com 
globals, Copyright 2001-2005 Michael Foster (Cross-Browser.com)
Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL */

function adjustLayout()  
{  
 // Get natural heights  
 var cHeight = xHeight("container");  
 var tHeight = xHeight("text_box");  
 
 if (tHeight > cHeight) {
	 xHeight("container", tHeight);
 }

}

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