﻿(function (jQuery) {
	// VERTICALLY ALIGN FUNCTION in window height
	jQuery.fn.vAlign = function(height) {
		var ah = height;//jQuery(this).height();
		var ph = jQuery(window).height();//jQuery(this).parent().height();
		var mh = (ph - ah) / 2;
		if(mh < 0){
			mh = 0;
		}
		jQuery(this).css('margin-top', mh);
	};
})(jQuery);
