/*
	AUTHOR: Corey Birkholz 07/17/08
	PURPOSE: Script to adjust heights of columns to get the background color of the left column to line-up properly. 
	REVISIONS: 
*/

/* Set variables for the containers used to compare/set heights
	There are 2 styles for container2; the if statement below is testing to see which is present and assigning it to the c2 variable
*/

var c1, c2, intNewHeight;

c1 = document.getElementById('container1');

if (document.getElementById('container2')) {
	c2 = document.getElementById('container2');
}
else if (document.getElementById('container2b')) {
	c2 = document.getElementById('container2b');
}

// Set the height of the left column to that of the main column
if(c2.offsetHeight){
	if (c2.offsetHeight > 500) {
		c1.style.height = c2.offsetHeight;
	}
}	
else if(c2.style.pixelHeight){	
	if (c2.style.pixelHeight > 500) {
		c1.style.height = c2.style.pixelHeight;	
	}
}
