// questa funzione carica i video nel player di youtube e DEVE stare fuori da document.ready
function onYouTubePlayerReady(playerId) {
	ytplayer = document.getElementById("ytPlayer");
	//Load an initial video into the player
	ytplayer.cueVideoById("LloLYZmjGAA");
	setInterval("updateTime();",1000);//aggiorna il contatore del minutaggio
	setInterval("updateProgbar();",500);//fa avanzare la progress bar	
}

$(document).ready(function(){
	scrollVerb.init();
	getTwitter();
	
   /*  if($(".col7").is("div")){
		getTwitter();
	} */
	if ($("#layout").is("div")){
		handleTab($("#social #commands li a"));
		//imgFlip();
		//carousel();
		//doMasonry();
    }
	/* if($("body").hasClass("news")){
		filterNews($("#social ul li a"));
	}
	if($("body").hasClass("who")){
		handleYoutubeThumb();//gestisce le thumb e il video nella sezione who
		handleControls();//gestisce i controlli dei video
		youtubePlayer();//gestisce le API di youtube
	} */
});




