var carouselDivs;
var showedDiv = 0;

jQuery(document).ready(function() {
	carouselDivs = jQuery('.rotated'); 
	hideCarousel();
	rotateDiv();
	setInterval(rotateDiv, 5000);
	jQuery('#fulltext').hide();
});

function rotateDiv(){
	hideCarousel();
	$(carouselDivs[showedDiv]).show();
	//$(carouselDivs[showedDiv]).fadeIn(50);
	showedDiv ++;
	if (showedDiv >= carouselDivs.length){
		showedDiv = 0;
	}
}

function hideCarousel(){
	$.each(carouselDivs, function(i, val){
		$(val).hide();
		//$(val).fadeOut(50);
	});
}

