(function ($) {
// VERTICALLY ALIGN FUNCTION
$.fn.vAlign = function() {
	
	var wH=parseFloat($(window).height());
	var myH=parseFloat((this).height());
	
	if(myH < wH){
			//alert("smaller than window: "+myH+" < "+wH);
			var ah = $(this).height();
			var ph = $(this).parent().height();
			var mh = (ph - ah) / 2;
			$(this).css('padding-top', mh);
		}else{		
			//alert("larger than window: "+myH+" > "+wH );		
			$(this).css('padding-top', 30);
			}
	
	return this.each(function(i){
	});
};
})(jQuery);
