// This script compares the height of the left side (banners) with the height of the main content area.
// If the left side is longer in height than the main content area, this script adds a height property to a spacer div in the main content area.

function adjustHeight() {
	try {
		var leftsideheight = document.getElementById("leftside").offsetHeight;
		var contentareaheight = document.getElementById("content2col").offsetHeight;

		maxheight = Math.max( leftsideheight, contentareaheight )

		if (maxheight > contentareaheight){
			paddingheight = maxheight - contentareaheight;
			document.getElementById("spacerdiv").style.height = paddingheight+"px";
		}
	} catch( ex ) {
	
	}
}

adjustHeight();

//In case the left side loading is slower than right side, the maxHeight
//may not be correct. So the timeout is set here to ensure both left side
//and right side have been loaded.
setTimeout("adjustHeight()", 200);



