/* VBT: Unobtrusive JS to resize blocks and cols */

window.addEvent('domready', function() {
	if ($('boxes')) {
		var max = 0;
		var bc = $$('#boxes .box_content')
		bc.each(function(item) {
			if (item.getSize().size.y > max)
				max = item.getSize().size.y;
		});
		bc.each(function(item) {
			item.setStyle('height', (max+15)+'px');
		});
	}
	if ($('results')) {
		var rch = $('results_content').getSize().size.y;
		var rrh = $('results_refine').getSize().size.y;
		if (rch > rrh) {
			$('results_refine').setStyle('height', (rch-2)+'px');
		}
	}
});
