//this script controls the div heights for the homepage
function columnAdjust(column1, column2, column3, column4){
	//start off assigning the variables
	var maxHeight, colHeight_1, colHeight_2, colHeight_3, colHeight_4;
	//get the height of the two columns
	colHeight_1 = document.getElementById(column1).offsetHeight;
	colHeight_2 = document.getElementById(column2).offsetHeight;
	colHeight_3 = document.getElementById(column3).offsetHeight;
	colHeight_4 = document.getElementById(column4).offsetHeight;
	//determine the max height for the two columns
	maxHeight = 0;
	if(colHeight_2 <= (colHeight_3)){
		maxHeight = colHeight_3;
	}else{
		maxHeight = colHeight_2;
	}
	if(maxHeight <= colHeight_4){
		maxHeight = colHeight_4;
	}else{
		maxHeight = maxHeight;
	}
	maxHeight = maxHeight + 20;
	//resize the main content column if necessary
	document.getElementById(column1).style.height=maxHeight+"px";
	document.getElementById(column2).style.height=maxHeight+"px";
	document.getElementById(column3).style.height=maxHeight+"px";
	document.getElementById(column4).style.height=maxHeight+"px";
}

window.onload=function(){
	columnAdjust('tripleContainer', 'resourceCenter', 'productsList', 'dealerFinder');
}