﻿/**
 * jQuery.sameheight - set passed elements to same height
 * Written by Israel Alvarez (is AT metrob DOT us)
 * Licensed under the WTFPL (http://sam.zoy.org/wtfpl/).
 * Date: 05/18/2009
 *
 * @author Israel Alvarez
 * @version 1.0.0
 *
 **/

jQuery.fn.sameheight = function() {
	var max = 0;
	this.each(function() {
		cur = $("#"+this.id).height();
		if(cur > max) { max = cur; }
	});
	this.each(function() {
		$("#"+this.id).height(max);
	});
	return(max);
};