/* javascript to display quotes from the array below */

//--------------------
// Only handles quotes 0-9
//---------------------

/* Used on Antarctica nd Tanz/Kenya pages only */

var antarcticaQuoteAuthor = new Array();
antarcticaQuoteAuthor = [
	/*0*/"Vicky Cooper, Antarctica 2009-10",
	/*1*/"Rocky Rothrock, Antarctica 2008-09",
	/*2*/"Nicky Butler, Antarctica 2008-09",
	/*3*/"Steve Gould and Mary Marshall, Antarctica 2009-10",
	/*4*/"Nancy &amp; Val Ascencio, Antarctica 2009-10",
	/*5*/"Anne Anseeuw, Antarctica 2008-09",
	/*6*/"Terry Stokes, Antarctica 2009-10",
	/*7*/"Mea Suringh, Antarctica 2008-09",
	/*8*/"Dennis Spriggs, Antarctica 2008-09",
	/*9*/"Ushi Engel, Antarctica 2008-09"
	];

var antarcticaQuoteText = new Array();
antarcticaQuoteText = [
	/*0*/"\"We are so excited to go again. We love the Cheesemans. And we LOVE Antarctica. It is all I can think about. I want to go every year.\"",
	/*1*/"\"Your guides well exceeded my expectations. Their knowledge, skills, and experience made all the difference in the world.\"",
	/*2*/"\"Cheesemans gave me everything I wanted for a trip like this, that other companies didn\'t offer.\"",
	/*3*/"\"Nobody else would likely do so much with such friendliness and enthusiasm. Eeryone on the Cheesemans\' staff was unbelievable.\"",
	/*4*/"\"This was our first Cheesemans tour, but it will not be our last. As seasoned travelers, all of our expectiations were not only met, but exceeded!\"",
	/*5*/"\"You put your heart in everything you organize, which gives us another dimension that other cruises to Antarctica don't offer.\"",
	/*6*/"\"I loved the intimate contact with nature and the freedom allowed to explore while maintaining respect and care for the overall ecology of the sites.\"",
	/*7*/"\"I especially like Ted\'s way in handling things. An exceptionally good expedition leader!\"",
	/*8*/"\"Amazing, amazing, amazing. Great destination and great job by the Cheesemans. I enjoyed the art classes, landings, and maximum time on shore.\"",
	/*9*/"\"Zodiac team was incredible - going through such tough conditions in order to make safe landings possible - I have a lot of respect for each of them. Thank you!\""
	];

/*All these should be Tanz/Kenya only*/
var africaQuoteAuthor = new Array();
africaQuoteAuthor = [
	/*0*/"Jane Borchers &amp; Steve Zamek, Botswana/Zambia 2009",
	/*1*/"Jean Staats, Africa 2006",
	/*2*/"Howard Horner, Tanzania/Kenya 2006",
	/*3*/"Jane Borchers &amp; Steve Zamek, Botswana/Zambia 2009",
	/*4*/"Eleanor Swainson, Botswana/Zambia 2008",
	/*5*/"Paula Beckman, Tanzania/Kenya 2007",
	/*6*/"Margie Robinson, Tanzania/Kenya 2007",
	/*7*/"Brenda Young, Tanzania/Kenya 2006",
	/*8*/"Pat Carney, Tanzania/Kenya 2007",
	/*9*/"Brenda Young, Tanzania/Kenya 2006"
	];

var africaQuoteText = new Array();
africaQuoteText = [
	/*0*/"\"Grant Reed was fantastic. Extremely knowledgeable, personable, accommodating, and capable. His extensive knowledge of birds and photography was an added bonus.\"",
	/*1*/"\"My investment in Cheesemans' Ecology Safaris was rewarded with the best up close and personal experience with  animals and landscape, the best safari drivers and vehicles, and the very best personal attention to my needs.\"",
	/*2*/"\"The staff and crew were great in organizing excellent game drives, spotting African animals and explaining their behaviors.\"",
	/*3*/"\"We liked the feeling of immersion in the environment that camping provided. The daily routine of waking early and looking for wildlife with an expert just cannot be beat.\"",
	/*4*/"\"There were so many favorites that I can't isolate the most prized one: elephants coming through the mist in wonderful light in the early morning, the leopard who came through the grass and right past our vehicle to go to a waterhole to drink... And on and on.\"",
	/*5*/"\"You exceeded my expectations a thousand fold. Your enthusiasm 24/7 made this trip, for me, the trip of a lifetime.\"",
	/*6*/"\"I have nothing but compliments for Gail and Doug Cheeseman as leaders and organizers of a truly outstanding safari.\"",
	/*7*/"\"The bonds that form from the shared experience of deeply moving wildlife interactions really does seem to form a &quot;Cheeseman family of travelers&quot;.\"",
	/*8*/"\"I really liked having only four participants to one vehicle.  Everyone could see and move around and I never felt like I was with a big group.\"",
	/*9*/"What I liked most? \"the ability to be so intimate with so many species of wonderful animals and habitats.\""
	];




// 5 Only used on Testimonial page:

var generalQuoteAuthor = new Array();
generalQuoteAuthor = [
	/*0*/"Lynne Aldrich &amp; Peter Gottschling 2008",
	/*1*/"Wolfgang Gunther 2009",
	/*2*/"Clare Pearson 2008",
	/*3*/"Bill &amp; Joan Page 2007",
	/*4*/"Graham Fleming 2008",
	/*5*/"Debbie and Duncan Armour 2009",
	/*6*/"Raphael and Pnina Klein 2009",
	/*7*/"Mike O'Connor 2010",
	/*8*/"Doug and Ulai Kirwin 2010",
	/*9*/"Becky Clark-Thomas 2010"
	];

var generalQuoteText = new Array();
generalQuoteText = [
	/*0*/"\"Top notch with customer satisfaction of the highest priority.  We love traveling with you guys and you always find the very best guides in foreign destinations.\"",
	/*1*/"\"Some travel organizations came close but none matched Cheesemans' unique combination of finely honed itineraries, great guiding, and personal attention.\"",
	/*2*/"\"Our guides were incredible. Top rate! They were all great naturalists and teachers of not only birds, but critters, spiders, bugs, history and geology.\"",
	/*3*/"\"Fantastic! This was one of those very special trips where the people, the timing, the weather, and the wildlife combined with excellent leaders to make it extra memorable.\"",
	/*4*/"\"I could not imagine how any trip could be any better.\"",
	/*5*/"\"It's that kind of thoughtful detail that makes traveling with you so much more personal.\"",
	/*6*/"\"Outstanding! Exceeded our high expectations!\"",
	/*7*/"\"Cheesemans' provides extraordinary attention to detail.\"",
	/*8*/"\"We would travel with you anywhere!\"",
	/*9*/"\"I enjoyed meeting like-minded individuals who were thrilled to be exploring this part of the world together.\""
	];





var pickQuote = 0;

// Generate a random number, 0-9.
function getRandomNumber()
{
	var randomNum = Math.floor(Math.random() * 9);
	//alert ("randomNum =" + randomNum);
	return randomNum;
}


// Pick the quote and display the author. Need the same random number for both title and text.
// pickQuote is global - it has to be in the first function called to be used by the second function.
// Display the random quote in a foated box - see CSS.

function displayQuoteText(region)
{
	pickQuote = getRandomNumber();
	
	switch (region) {
		case "antarctica":
			document.write(antarcticaQuoteText[pickQuote]);
			break;
		case "africa":
			document.write(africaQuoteText[pickQuote]);
			break;
		case "general":
			document.write(generalQuoteText[pickQuote]);
			break;
	}

}

function displayQuoteAuthor(region)
{
	//alert ("pickQuote =" + pickQuote)
	
	switch (region) {
		case "antarctica":
			document.write(antarcticaQuoteAuthor[pickQuote]);
			break;
		case "africa":
			document.write(africaQuoteAuthor[pickQuote]);
			break;
		case "general":
			document.write(generalQuoteAuthor[pickQuote]);
			break;
	}

}

// Display the specified number of quotes on a simple page

function displayAll()
{
	var i = 0;
	numDisplay = 4; // display 0-4 quotes of each array

for (i=0; i<=numDisplay; i++) {
		document.write("<p>" + antarcticaQuoteText[i] + "<br>");
		document.write('<span style="margin-left:30px;">&mdash; ' + antarcticaQuoteAuthor[i] + '</span></p>');
	}
for (i=0; i<=numDisplay; i++) {
		document.write("<p>" + africaQuoteText[i] + "<br>");
		document.write('<span style="margin-left:30px;">&mdash; ' + africaQuoteAuthor[i] + '</span></p>');
	}
for (i=0; i<=numDisplay; i++) {
		document.write("<p>" + generalQuoteText[i] + "<br>");
		document.write('<span style="margin-left:30px;">&mdash; ' + generalQuoteAuthor[i] + '</span></p>');
	}

}

