

// these first two functions are using fixed parameters for the names

// and number of columns, these can be used for a layout where 

function getLongest_1() {

	colLength = new Array(4);

	colLength[0] = document.getElementById("column_1").offsetHeight;

	colLength[1] = document.getElementById("column_2").offsetHeight;

	colLength[2] = document.getElementById("column_3").offsetHeight;

	colLength[3] = document.getElementById("column_4").offsetHeight;





	colLength.sort(sortNumeric);

	colLength.reverse();

	return colLength[0];

}

function setLongest() {

	divLen = getLongest_1();

	document.getElementById("column_1").style.height = divLen+"px";

	document.getElementById("column_2").style.height = divLen+"px";

	document.getElementById("column_3").style.height = divLen+"px";

	document.getElementById("column_4").style.height = divLen+"px";



	

}

function sortNumeric(a,b)

{

return a - b

}

function startall() {
  setLongest();
  startList();
}

window.onload = startall;



