/*
 * Go through each row of boxes on the homepage and set the height so
 * they are all the same
 */

Event.observe(window, 'load', function() {
	$$('.content-box-row').each( function(el) {
		var maxHeight = 0;
		
		el.getElementsBySelector('.content-box-container').each(function(el2) {
			var thisHeight = el2.getHeight();
			
			if(thisHeight > maxHeight) {
				maxHeight = thisHeight;
			}
		});
		
		if(maxHeight > 0)
		{
			el.getElementsBySelector('.content-box-container').each(function(el2) {
				el2.style.height = '' + maxHeight + 'px';
			});
		}
	});
});