// JavaScript Document
$(document).ready(setHeights);
function setHeights(){
	cols = 3;
	callouts = $(".callout");
	numCallouts = $(".callout").size();
	tallest = 0;
	rowStart = 0;
	
	callouts.each( 
		function (i) {
			if ( tallest < this.offsetHeight ) {
				tallest = this.offsetHeight;
			}//endif
			
			if ( ((i+1)% cols ) == 0 ) {
				for ( j = rowStart; j <= i; j++  ){
					callouts.get(j).style.height = (tallest)+"px";
				}
				rowStart = i+1;
				tallest = 0;
			}//endif

			if ( (i+1) == numCallouts ) {
				for ( j = rowStart; j <= i; j++  ){
					callouts.get(j).style.height = (tallest)+"px";
				}	
			}//endif
		}			  
	);//each
}
