
	$(document).ready( function(){
	
		var clients = [];
		
		$('.clients .testimonial').each( function(){
		
			clients.push( $(this) );
			
			$(this)
			.css({opacity:0})
			.hover(
				function(){
					$(this).animate({opacity: 1});
				},
				function(){
					$(this).animate({opacity: 0.3});
				}
			);
		} );
		
		function showClient()
		{
			//var key = Math.floor( Math.random() * clients.length );
			var key = 0;
			
			$(clients[key])
				.animate({opacity:1})
				.animate({opacity:0.3})
				
			clients.splice( key, 1 );
			
			if( clients.length > 0 )
			{
				setTimeout( showClient, 50 );
			}
		}
		
		setTimeout( showClient, 1000 );
	
	});