var slides;
var currentActive = 0;
$(document).ready(function() {
		slides = $('#transition li').get();
		currentActive = Math.floor(Math.random() * slides.length);
		$('#rotate div').html($(slides[currentActive]).html());
		window.setInterval(doTransition, 10000);
		currentActive++;
	});
	
function doTransition()
{
	$('#rotate div').fadeOut("normal", function() {
			$('#rotate div').html($(slides[(++currentActive + 1) % slides.length]).html());
			$('#rotate div').fadeIn("normal");
		});
}