/**
* jQuery Plugin Function
*
* Make all elements same height according to “tallest” one found smile
* Original code : http://codesnipp.it/code/441
*/
jQuery.fn.equalHeights = function() {
return this.height(Math.max.apply(null,
this.map(function() {
return jQuery(this).height()
}).get()
));
};

function equalHeight(group1, group2) {
    var tallest = 0;
    group1.each(function() {
	var thisHeight = $(this).height();
	if(thisHeight > tallest) {
	    tallest = thisHeight;
        }
    });
    group2.height(tallest);
}
