(function(jQuery){
	jQuery.fn.vjustify=function() {
	    var maxHeight=0;
	    this.each(function(){
	        if (this.offsetHeight>maxHeight) {maxHeight=this.offsetHeight;}
	    });

	    this.each(function(){
	        jQuery(this).height(maxHeight + "px");
	        if (this.offsetHeight>maxHeight) {
	            jQuery(this).height((maxHeight-(this.offsetHeight-maxHeight))+"px");
	        }
	    });
			if (typeof maxVerticalHeight != "undefined"){
				maxVerticalHeight = maxHeight;
			}
	};
})(cmg.query);
