jQuery.fn.equalize = function() {
    var maxHeight = 0;
    $(this).each(function(){
        if (this.offsetHeight > maxHeight)
        {
            maxHeight = this.offsetHeight;
        }
    });
    if (maxHeight > 0)
    {
        $(this).each(function(){
            $(this).css("height", maxHeight + "px");
        });
    }
}
