﻿// getLongest returns the height of each div defined
function getLongest_1() {
	colLength = new Array(2);
	colLength[0] = document.getElementById("newsLayer").offsetHeight;
	colLength[1] = document.getElementById("featureLayer").offsetHeight;
	colLength.sort(sortNumeric);
	colLength.reverse();
	return colLength[0];
}

// setLongest sets all the divs defined below to the div with the tallest height
function setLongest() {
	document.getElementById("newsLayer").style.height = "auto";
	document.getElementById("featureLayer").style.height = "auto";
	divLen = getLongest_1();
	document.getElementById("newsLayer").style.height = divLen+"px";
	document.getElementById("featureLayer").style.height = divLen+"px";
}
function sortNumeric(a,b)
{
return a - b
}