//funzione di Alberto per il carousel delle riviste in home page
var foto = new Array("c1","c2","c3","c4","c5","c6","c7","c8","c9");
var fotoL = foto.length-1;
var i=0;
function carousel() {
	
	
	i = i+1;
	if(i==9) {
		i=0;
		for(var j=1; j<=fotoL; j++) {
		$(foto[j]).effect('opacity').start(1,0);
		}
	}
	$(foto[i]).effect('opacity').start(0,1);			
}

//inizializzazione
	window.onload = function() {
	
	//carousel
	$('c1').effect('opacity').start(0,1);
	setInterval(carousel,4000);
	}