

function sameHeight(items, shift)
{
	var max = 0;
	var idx = 0;

	if (!items || items.length == 0) return;

	items.each(function(item) { 
//	console.log(item);
		height = item.offsetHeight - shift[idx];
//	console.log(height);
		if (max < height) max = height;
		idx += 1;
	});
	
	idx=0;
	items.each(function(item) {
		item.style.height = (max + shift[idx]) + "px";
		idx += 1;
	});
}


function init() {
  $left = $('inlay_left_col');
  $center = $('inlay_center_col');
  $right = $('inlay_right_col');
  sameHeight([$left, $center, $right], [10,0,130]);
}

Event.observe(window, 'load', init);
