


jQuery(document).ready(function($){// --------------------------	START - DOCUMENT READY

	var faders = $('.rotator');
	
	faders.each(function(){
		var e = $(this);
		var children = e.children();
		var baseIndex = 999;
		children.each(function(){
			$(this).css({
				'z-index': baseIndex	
			});	
			baseIndex --;
		});		
	});
	
	setTimeout(function(){
		
		setInterval(function(){
		
			faders.each(function(){
				var e = $(this);
				var children = e.children();
				
				children.first().animate({opacity:0},900,'swing',function(){
					
					var toMove = $(this).detach().appendTo(e);
					children = e.children();
					
					var baseIndex = 999;
					
					children.each(function(){
						$(this).css({
							'z-index': baseIndex	
						});	
						baseIndex --;
						toMove.css({opacity:1});
					});		
				});
			});
			
		},5000);
		
	},5000);
	
	
	



}); // ---------------------------------------------------------	END - DOCUMENT READY
