﻿(function ($, window, undefined) {

    // Set all elements selected to be the same height as the tallest element;
    $.fn.equalHeight = function () {
        var tallest = 0;
        this.each(function () {
            var h = $(this).addClass("plugin equalheight").height();
            tallest = h > tallest ? h : tallest;
        });
        this.height(tallest);
        return this;
    };

})(jQuery, window, undefined);
