$.fn.equalheights = function() {
	var max = 0;
	this.each(function(){
		max = Math.max(max, $(this).height());
	});
	this.height(max); 
	return this;
};
