jQuery(document).ready(function(){

	jQuery('.fade').innerfade({
		speed: 1000,
		timeout: 5000
	});
	
	jQuery('#talkshow').innerfade({
		speed: 1000,
		timeout: 5000	
	});
	
	jQuery('#newsbut').mouseover(function(){
		jQuery('#tweet').slideToggle();
	});
	jQuery('#newsbut').mouseout(function(){
		jQuery('#tweet').slideToggle("slow");
	});

	jQuery('#mycarousel').jcarousel({
	     visible: 4
	 });
	 
	jQuery('.talk_show_carousel').jcarousel({
	     wrap: 'last',
	     visible: 3,
	     scroll: 1,
	     animation: "slow"
	 });
	  
	jQuery('.cat-item-8 a').hover(
	 	function(){jQuery(this).text('Photos');},
		function(){jQuery(this).text('Foto');}
	);
	
	jQuery('.cat-item-4 a').hover(
	 	function(){jQuery(this).text('Magazines');},
		function(){jQuery(this).text('Giornali');}
	);
	
	jQuery('.cat-item-5 a').hover(
	 	function(){jQuery(this).text('Books');},
		function(){jQuery(this).text('Libri');}
	);
	
	jQuery('.cat-item-27 a').hover(
	 	function(){jQuery(this).text('Biography');},
		function(){jQuery(this).text('Biografia');}
	);
	jQuery('#ritratti a').hover(
	 	function(){jQuery(this).text('Portraits');},
		function(){jQuery(this).text('Ritratti');}
	);
	
	jQuery.getJSON("http://twitter.com/statuses/user_timeline/AntoBoralevi.json?callback=?", 
	function(data) {
	     jQuery("#tweet").html(data[0].text);
	});
});
