cms_tt = {};

cms_tt.resize_rows = function(table){
	var rows = getElementsByTagAndClassName('tr', 'cms_table_bubble_text_row', table);
	forEach(rows, function(row){
		var max_height = 0;
		var max_width = 0;
		cols = getElementsByTagAndClassName('td', 'cms_table_bubble_text_cell', row);
		forEach(cols, function(col){
			dim = getElementDimensions(col);
			if (max_height < dim.h){
				max_height = dim.h;
			}
			if (max_width < dim.w){
				max_width = dim.w;
			}
		});
		
		forEach(cols, function(col){
			setElementDimensions(col, {w:max_width, h:max_height});
		});
	});
}

addLoadEvent(function(){
	var elems = getElementsByTagAndClassName('div', 'cms_table_bubble_text');
	forEach(elems, function(elem){
		cms_tt.resize_rows(elem);
	});
});