$(document).ready(function ($) {
	// VERTICALLY ALIGN FUNCTION
	$.fn.vAlign = function() {
		return this.each(function(i){
		var altezza_box = $(this).height();
		var altezza_body = $('body').height();
		var differenza = (altezza_body - altezza_box) / 2;
		if (differenza >= 0) {
			$('body').css('padding-top', differenza-6); /* -6px valore del bordo del box */
			$('body, html').css('overflow', 'hidden');
		} else {
			$('body').css('padding-top', '0px');
			$('body').css('overflow', 'auto');
			$('html').css('overflow', 'hidden');
			$(this).css('margin-top', '60px'); 
		}
	});
};
});