function theRotator() {
	$('div#rotator div').css({opacity: 0.0});
	$('div#rotator div:first').css({opacity: 1.0});
	setInterval('rotate()',6000);
}

function rotate() {	
	var current = ($('div#rotator div.show')?  $('div#rotator div.show') : $('div#rotator div:first'));
	var next = ((current.next().length) ? ((current.next().hasClass('show')) ? $('div#rotator div:first') :current.next()) : $('div#rotator div:first'));	
	next.css({opacity: 0.0})
	.addClass('show')
	.animate({opacity: 1.0}, 1000);
	current.animate({opacity: 0.0}, 1000).removeClass('show');
	
};

$(document).ready(function() {		
	theRotator();
});
