$(document).ready(function ($) {
		// VERTICALLY ALIGN FUNCTION
		$.fn.vAlign = function() {
			return this.each(function(i){
			var ah = $(this).height();
			var ph = $(window).height();
			var mh = (ph - ah) / 2;
			if(mh>0) {
			$(this).css('margin-top', mh);
			} else {
			$(this).css('margin-top', 0);
			}
		});
	};
	
		$("#content").vAlign();
		
	})(jQuery);
	
	
$(window).bind('resize', function(){
        $("#content").vAlign();
})
