 $(document).ready(function(){
 	//initialize variables for timer and array
 	var quoteArr = [];
 	var currentCount = 0;
 	var timerDelay = 7500;
 
 	//initialize by getting the number of quotes and starting the timer
 	$("#testimonial_content").children(".quote-block").each(function(index){
 		quoteArr.push($(this));
 		if(index != 0){ $(this).hide(); }
 		
 		//start timer on last quote. timer calls switch function after set delay
 		if(index == ($("#testimonial_content").children(".quote-block").size() - 1)){
 			setTimeout(swtch, timerDelay);
 		}
 		
 	});
 	
 	//called initially by function above
 	function swtch(){
 		quoteArr[currentCount].fadeOut('slow', function(){
 			currentCount < quoteArr.length-1 ? currentCount++ : currentCount = 0;
 			quoteArr[currentCount].fadeIn('slow');
 			setTimeout(swtch, timerDelay);
 		});
 	}
 	
 	var successArr = [];
 	var successCount = 0;
 	
 	//initialize by getting the number of quotes and starting the timer
 	$("#client_successes").children("li").each(function(index){
 		successArr.push($(this));
 		if(index != 0){ $(this).hide(); }
 		
 		//start timer on last quote. timer calls switch function after set delay
 		if(index == ($("#client_successes").children("li").size() - 1)){
 			setTimeout(swtch2, timerDelay);
 		}
 		
 	});
 	
 	//called initially by function above
 	function swtch2(){
 		successArr[successCount].fadeOut('slow', function(){
 			successCount < successArr.length-1 ? successCount++ : successCount = 0;
 			successArr[successCount].fadeIn('slow');
 			setTimeout(swtch2, timerDelay);
 		});
 	}
 	
 	
 });
