function setTall() {
	if (document.getElementById) {
		// the divs array contains references to each column's div element
		var divs = new Array(document.getElementById('navibar'), document.getElementById('corps'), document.getElementById('rightColumn'));
		var content = document.getElementById('content');

		// determine the maximum height out of all columns specified
		var maxHeight = 0;
		var index = -1;
		for (var i = 0; i < divs.length; i++) {
			if (divs[i].offsetHeight > maxHeight) {
			  maxHeight = divs[i].offsetHeight;
			  index = i;
			}
		}
		if(content.offsetHeight > maxHeight) {
      maxHeight = content.offsetHeight;
      index = 1;
		}

		// set all columns to maximum height
		for (var i = 0; i < divs.length; i++) {
		  if(i == 1) {
		    continue;
		  }
			divs[i].style.height = maxHeight + 'px';

			// if the browser's working in standards-compliant mode, the height property
			// sets the height excluding padding, so we figure the padding out by subtracting the
			// old maxHeight from the new offsetHeight, and compensate!
			if (divs[i].offsetHeight > maxHeight) {
				divs[i].style.height = (maxHeight - (divs[i].offsetHeight - maxHeight)) + 'px';
			}
		}
		/*switch(index) {
		  case 0:
		    //divs[1].style.height = maxHeight + 'px';
		    divs[2].style.height = maxHeight + 'px';
		    break;
		  case 1:
		    divs[0].style.height = maxHeight + 'px';
		    divs[2].style.height = maxHeight + 'px';
		    break;
		  case 2:
		    divs[0].style.height = maxHeight + 'px';
		    //divs[1].style.height = maxHeight + 'px';
		    break;
		  case -1:
		  default:
		    break;
		}*/
	}
}

/*window.onload = function() {
	setTall();
}

window.onresize = function() {
	setTall();
}*/
window.addEvent('load', function() {
  setTall();
});