$.fn.matchHeight = function() {
	if (typeof Array.prototype['max'] == 'undefined') {
		Array.prototype.max = function() {
			return Math.max.apply({}, this);
		}
	}

	var items = $(this);

	var tallest  = $.map(items, function(item) {
		return $(item).height();
	}).max();

	items.each(function() {
		$(this).height(tallest);
	});
}