(function (jQuery) {
	// VERTICALLY ALIGN FUNCTION
	jQuery.fn.vAlign = function( pCssproperty ) {
		var __Cssproperty = 'margin';
		if ( pCssproperty != undefined ) {
			__Cssproperty = pCssproperty;
		}
		return this.each( function(i) {
			var $this = jQuery(this);
			var ah = $this.height();
			var ph = $this.parent().height();
			var mh = (ph - ah) / 2;
			$this.css( __Cssproperty + '-top', mh );
		});
	};
})(jQuery);
