function sortArray(a,b)
{
return a.getCoordinates().bottom - b.getCoordinates().bottom;
}

loaded = false;
window.addEvent("load" , function(){			  
	setHeight()	;
});


function setHeight(){
	$each($$('.rows') , function(ele,index){
								 
		cols = new Array();
		
		$each(ele.getElements('.cols') , function(ele2){								  
			obj =	ele2.getElements('.content')[ele2.getElements('.content').length-1];					  
			cols.push(obj);
		});	
		
		cols = cols.sort(sortArray);
		tallestCol =cols[cols.length-1] //cols.pop();
		
		//alert(tallestCol.getCoordinates().bottom);
		$each(cols , function(ele2){	  
							  
			if(ele2.getCoordinates().bottom <=tallestCol.getCoordinates().bottom){
				//alert(parseInt(ele2.getStyle('border-top-width')));
				ele2.setStyle('height' , parseInt(ele2.getCoordinates().height) + ((parseInt(tallestCol.getCoordinates().bottom)-parseInt(ele2.getCoordinates().bottom)) < 0 ? 0 :(parseInt(tallestCol.getCoordinates().bottom)-parseInt(ele2.getCoordinates().bottom))) - parseInt(ele2.getStyle('border-top-width')));
				//alert(ele2.getCoordinates().bottom);
				//ele2.obj.dispose();
			}
		});
			
		
	});	
	if(loaded==false){
		loaded=true;
		setHeight();
	}
}