$.fn.equaliseHeights = function() {
    $(this).each(function(){
        var max = 0;
        $('.equalheight', this).each(function() {
            if($(this).outerHeight() > max) { 
                max = $(this).outerHeight(); 
            }
        });
        $('.equalheight', this).each(function() {
            var diff = max - $(this).outerHeight();
            if(diff > 0) {
                if($('.expandable', this).length) {
                    var node = $('.expandable', this);
                } else {
                    var node = $(this);
                }
                if($.browser.msie && $.browser.version == 6.0) { 
                    node.css({ 'height': diff + node.height()});
                } else {
                    node.css({ 'min-height': diff + node.height()});
                }
            }
        });
    });
}

