$(document).ready(function(){
	$("#rotatedImageDiv a:first").addClass("active");
	$("#rotatedImageDiv a").everyTime(5000, function(i) {
		var $active = $('#rotatedImageDiv .active');
		var $next = ($('#rotatedImageDiv .active').next().length > 0) ? $('#rotatedImageDiv .active').next() : $('#rotatedImageDiv a:first'); 
		$active.fadeOut(function() {
			 $active.removeClass('active');
			 $next.fadeIn().addClass('active');
		});
	});
});
