/* javascript to display quotes from the array below */
/* Last updated quotes in November 2010 */

//--------------------
// Only handles quotes 0-9
// Used on regional pages and testimonial page only
//--------------------


var antarcticaQuoteAuthor = new Array();
antarcticaQuoteAuthor = [
	/*0*/"Vicky Cooper, Antarctica 2009-10",
	/*1*/"Skip &amp; Gayle Stokes, Antarctica 2009-10",
	/*2*/"Charles Bergman &amp; Susan Mann, South Georgia 2009",
	/*3*/"Mark Rente, Antarctica 2009-10",
	/*4*/"Ben Cranke, South Georgia 2009",
 	/*5*/"Steve Gould and Mary Marshall, Antarctica 2009-10",
 	/*6*/"Nancy &amp; Val Ascencio, Antarctica 2009-10",
	/*7*/"Ray McGahern, Antarctica 2009-10",
	/*8*/"Karen Ireland, South Georgia 2009",
	/*9*/"Leen Brans and Jos Permentier, South Georgia 2009",
	];

var antarcticaQuoteText = new Array();
antarcticaQuoteText = [
	/*0*/"\"This, our second, Antarctic trip with Cheesemans\' created an even deeper spiritual experience. I felt pure joy walking with penguins, watching albatross from my cabin, and hiking in Shakleton\'s footsteps. Complete relaxation!\"",
	/*1*/"\"I am hard pressed to find adequate words to convey our admiration for Cheesemans\'! Your concern for the enjoyment and welfare of your clients throughout the trip greatly exceeded any reasonably expected standards.\"",
	/*2*/"\"Crucial to the great experience is the famous &quot;Cheeseman flexibility&quot; - early landings, long days, relative freedom to enjoy, commune and be moved.\"",
	/*3*/"\"Extraordinary staff and comprehensive itinerary make this the best polar expedition on earth.\"",
	/*4*/"\"A fantastic journey exploring my number one destination in the world to see and experience its splendor.\"",
	/*5*/"\"Nobody else would likely do so much with such friendliness and enthusiasm. Eeryone on the Cheesemans\' staff was unbelievable.\"",
	/*6*/"\"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!\"",
	/*7*/"\"I most enjoyed the unremitting commitment of the Cheesemans\' team to maximizing shore time for passengers.\"",
	/*8*/"\"Ted is the best expedition leader ever (of all the trips with any company that I\'ve ever done). His flexibility is a great asset and the team was superb.\"",
	/*9*/"\"We filled memory cards with lots of good pictures to share with others, but these pictures can not compare with the fine memories we will keep in our minds.\""
	];




var africaQuoteAuthor = new Array();
africaQuoteAuthor = [
	/*0*/"Dick Daniel, Tanzania/Kenya 2010",
	/*1*/"Therese Faller, Tanzania/Kenya 2011",
	/*2*/"Bill &amp; Peggy Bechtell, Tanzania/Kenya 2009",
	/*3*/"Jane Borchers &amp; Steve Zamek, Botswana/Zambia 2009",
	/*4*/"T. Hardy Jackson, Tanzania/Kenya 2011",
	/*5*/"Steve Zamek, Botswana/Zambia 2009",
	/*6*/"Steven L. Housel, Tanzania 2010",
	/*7*/"Steve Zamek, Botswana/Zambia 2009",
	/*8*/"Jerry and Ginny Kaminski, Tanzania/Kenya 2011",
	/*9*/"Marge Robinson, Tanzania/Kenya 2007"
	];

var africaQuoteText = new Array();
africaQuoteText = [
	/*0*/"\"Again the Cheesemans\' exceeded my expectations on every level, I saw more, learned more, made more friends, and enjoyed everything more than I expected.\"",
	/*1*/"\"The guides were wonderful - very knowledgeable and personable.  They always seemed to be in the right place at the right time and positioned perfectly for the best viewing and photography.\"",
	/*2*/"\"The best part was having the time and freedom to stay with the animals as long as we wanted.\"",
	/*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*/"\"A great trip made possible by two great leaders, Gail and Doug.\"",
	/*5*/"\"When I look at the photos, I still can't believe all that we saw. It was certainly the  trip of a lifetime for me (although I hope to do it again).\"",
	/*6*/"\"It was a real joy to be with Doug and Gail on this trip; their knowledge and expertise made it such an enjoyable time. We would highly recommend Cheesemans\' to anyone.\"",
	/*7*/"\"I know that I saw and experienced more by traveling with Cheesemans\' - the places they chose, the drivers they arranged, the time in the field they provided and the long experience they applied. It all paid off.\"",
	/*8*/"\"The arrangements were great, it was very enjoyable to see the variety of lodges.\"",
	/*9*/"I have nothing but compliments for Gail and Doug as leaders and organizers of a truly outstanding safari. \""
	];




// 5 Only used on Testimonial page:

var generalQuoteAuthor = new Array();
generalQuoteAuthor = [
	/*0*/"Connie Adler, 2011",
	/*1*/"Bob Cossins, 2010",
	/*2*/"Gordon Kilgore, 2011",
	/*3*/"Janet Whitmer, 2010",
	/*4*/"Ron Calderoni, 2011",
	/*5*/"Debbie &amp; Duncan Armour, 2009",
	/*6*/"Rox Granzow, 2011",
	/*7*/"Mike O'Connor, 2010",
	/*8*/"Doug &amp; Ulai Kirwin, 2010",
	/*9*/"Becky Clark-Thomas, 2010"
	];

var generalQuoteText = new Array();
generalQuoteText = [
	/*0*/"\"Cheesemans\' chooses excellent locations, plans well, attracts fabulous and interesting people and has superb leaders.\"",
	/*1*/"\"It was a typical outstanding Cheesemans\' trip.\"",
	/*2*/"\"Cheesemans\' is a company small enough to take a personal interest in each trip.\"",
	/*3*/"\"We so appreciate high Cheesemans\' standards - well organized, chock full of information, lots of time in the field, and so much fun.\"",
	/*4*/"\"Cheesemans\' takes a very personal interest in its tours and participants which is repaid through a high level of repeat business, us included.\"",
	/*5*/"\"It\'s that kind of thoughtful detail that makes traveling with Cheesemans\' so much more personal.\"",
	/*6*/"\"It seems every trip I go on with Cheesemans is a 10, and I\'m not just saying that to get on their good side! I truly mean it!\"",
	/*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>');
	}

}


