jQuery.fn.verticalmiddle = function(){

	return this.each(function(){
		var _this = jQuery(this);
		_this.load(function(){
   			var ch = _this.height() / 2;
	                var ph = _this.parent().height() / 2;
        	        var oh = ph - ch;
			_this.css("top", oh + "px");
			_this.attr("alt", "ch: " + ch + " ph: " + ph + " oh: " + oh);
		});
		this.src = this.src;
	});
}

