
	    jQuery(document).ready( function() {

			// placeholder meta for input fieldss
			if(!Modernizr.input.placeholder){

				$('[placeholder]').focus(function() {
				  var input = $(this);
				  if (input.val() == input.attr('placeholder')) {
					input.val('');
					input.removeClass('placeholder');
				  }
				}).blur(function() {
				  var input = $(this);
				  if (input.val() == '' || input.val() == input.attr('placeholder')) {
					input.addClass('placeholder');
					input.val(input.attr('placeholder'));
				  }
				}).blur();
				$('[placeholder]').parents('form').submit(function() {
				  $(this).find('[placeholder]').each(function() {
					var input = $(this);
					if (input.val() == input.attr('placeholder')) {
					  input.val('');
					}
				  })
				});

			}
			
			// page footer twitter entries
			/*
			$("#twitter-updates").tweet({
				username: "seaofclouds",
				count: 5,
				loading_text: "Loading tweets..."
			});
			*/

			// back-to-top button hide/show
			jQuery('#back-top').hide();
			jQuery(window).scroll(function () {
				if (jQuery(this).scrollTop() > 100) {
					jQuery('#back-top').fadeIn(300);
				} else {
					jQuery('#back-top').fadeOut(300);
				}
			});

			// scroll body to 0px on click
			jQuery('#back-top a').click(function () {
				jQuery('html, body').animate({
					scrollTop: 0
				}, 800);
				return false;
			});

		});

		// gTranslate
		function googleTranslateElementInit() {
			new google.translate.TranslateElement({
				pageLanguage: 'it',
				layout: google.translate.TranslateElement.InlineLayout.SIMPLE
			}, 'google_translate_element');
		}

