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

function createTicker(){
	//set the quotes array
	tickerItems = new Array(
	'"Our Holiday to Peru was exceptional. Having undertaken a considerable amount of travel to many different countries we all found Peru to be totally amazing. Our itinerary gave us so many different experiences where every day was (to use a cliché) something different!" <br/>Kevan Fridlington & party', 
	'"Thank you very much for putting together such a wonderful, thoughtful package. We had a wonderful time! The service was punctual and of first class. Your representatives for the most part were fantastic as were the accommodation... many thanks for all you did to create such a magical experience."<br/>Debra Stein & Jo Carruthers',
	
	'"If there is anyone in doubt about booking a trip through Peruvian Secrets – then cast those doubts away!" <br/>The Wilde Family', 
	
	'"Just had to let you know we had a fantastic time. All the arrangements went like clockwork. The hotels and locations were good, the guides very knowledgable and nothing was too much trouble. After a few days some of the guides felt more like friends."<br/>Roger and Carole Westacott',
	
	'"Despite our heads still buzzing from everything we have seen over the last two weeks, we just had to send you a note to show our appreciation for everything you and your team did for us in arranging and delivering what can only be described as our holiday of a lifetime."<br/>Paul Grover & Rachel Morgan',
	'"Thank you so much for organising our holiday in Peru. We had such an amazing time, even better than expected! Everything was taken care of throughout every stage of the trip which made it easier for us to just enjoy our time away."<br/>Caroline Wild & Damien Jones'
	
	);
	i = 0;
	tickerIt();
}

function tickerIt(){
	if( i == tickerItems.length ){
		i = 0;
	}
	//change without effect
	//$('#ticker').html(tickerItems[i]);

	//change with effect
	$('#ticker').fadeOut("slow", function(){
		$(this).html(tickerItems[i]).fadeIn("slow");
		i++;
	});
	
	//repeat - change 5000 - time interval
	setTimeout("tickerIt()", 9000);
}
