// equalizeCols2
jQuery.fn.equalizeCols2=function(){var max_height=0;jQuery(this).each(function(){max_height=Math.max(jQuery(this).height(),max_height);});jQuery(this).filter(function(){return jQuery(this).find(".auto_fill").length==0;}).each(function(){jQuery(this).append(jQuery("<div style='width: 1px;' class='auto_fill'></div>").height(0));}).css("height","auto");jQuery(this).each(function(){var self=jQuery(this);var height=self.height()-self.find(".auto_fill").height();self.find(".auto_fill").height(max_height-height);});};

// vCenter
(function($){$.fn.vCenter=function(){return this.each(function(i){var ah=$(this).eq(i).height();var ph=$(this).eq(i).parent().height();var mh=(ph-ah)/2;$(this).eq(i).css('margin-top',mh);});};})(jQuery);

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