jQuery.fn.thumbCenter = function(){
	return this.each(function(){
			var $self;
			$self = jQuery(this);
			
			imgH = $self.height();
			parentH = $self.parent().height();

			$self.parent().css({
				position: "relative"
			});
			$self.css({
				position:"relative"
			});
			
			
			if(imgH < parentH){
				bottomSpace = parentH - imgH;
				$self.css({
					top: bottomSpace / 2
				});
			}else{
				overSpace = imgH - parentH;
				$self.css({
					top: -(overSpace / 2)
				});
			}
			
			
	});
}
