// script to randomly display a quote
// can be placed in the document head, or after the quote container element
// (c) 2006 eightize

// id of text container
textId = "rQuote";

// array of the different quotes
// add a quote by using the next array number
//   the contents of the string is html.
// format is:
//quotes[nextnumber]="html text";
quotes = new Array();
quotes[0] = "A truly wonderful trip. The scenery was spectacular, the weather worked to our favor. As to the companionship, it was everything I had hoped for.  Frank (another client) was kind, considerate, and always pleasant.  As to our guide, simply the best. This was probably my 10th guided trip, you were at least the equal of any guide I&#146;ve ever been lucky to be with.  Thank you so much for everything.<p>- Bob L. (Chicago, IL)</p>";
quotes[1] = "Amazing. One word that definitely sums up my experience on our canoe trip. I learned a lot about myself and my environment. Knowledge I plan to utilize to the fullest extent.  Thank you, Randy, for everything you shared. Your love of and oneness with nature is inspiring. If there were more people like you around our world would be a better place.<p>- Suzzane C.<br>(diabetic adult on diabetic teen trip - Claremont, CA)</p>"; 
quotes[2] = "Getting back from our 5 days hike up the Anaktuvuk River I can conclude:  It was worth coming here. Accompanied by a friend rather than a guide I had the opportunity to experience, kissed by the sun, the wilderness of the Brooks Range. I had my birthday with Randy observing a grizzly and caribou, after having seen our first grizzly and a fox the days before. Randy taught me to read the animals tracks as far as it is possible in such a short time, and the Alaskan plants too.  My plane is leaving now, before I&#146;m ready and I leave a friend to whom I wish the best.<p>- Uli H.  (Germany)</p>"; 
quotes[3] = "This trip was a lot of fun. I learned so much. Such as canoeing skills, nature skills, and exploring my heart! Thanks for a great trip!<p>- G.P.  (teen trip, from Fullerton, CA)</p>"; 
quotes[4] = "I had a great time. The highlights were the company, everyone&#146;s flexibility and sense of humor.  We really appreciated all you did for us &#150; you expend an extrordinate effort to make sure we are satisfied and happy. Words cannot describe the wildlife and scenery &#150; memories we&#146;ll share.<BR>Thanks for helping me share one of my &#147;dreams&#148; of a lifetime &#150; to pass through the Gates on a raft trip.  Yes, there were days that rivaled East Asia for control of the title, &#147;home of the mosquito 500&#148;, but that too is a part of the dream that became a reality.  I cannot conceive a better trip.  We were very fortunate with the weather and big game sightings &#150; brother were we fortunate!  Once you learn to make coffee that has as much water as grounds, call and we&#146;ll set up another adventure. Thanks again for all.<p>- Chuck and Kathy M, 2nd trip with Isuma (Manhattan, NY)</p>"; 
quotes[5] = "After a long travel and a big jet-lag, we try to acclimatize.  Now at home doing daily things, I&#146;m realizing what an exceptional time we had during the days in the Brooks Range in your company.  We&#146;ll miss both!<BR>We thank you again for the trust you had and the feeling we got.  Randy I&#146;ll hope we can do it next year, so we can meet again.  Photos and video keep the memory warm. We will meet again!<p>- Liesbeth (Netherlands) and Michael (Germany) from the first of their 3 trips with Isuma</p>"; 
quotes[6] = "This was truly wonderful trip &#150; you&#146;re a very special person with great sensitivity, as well as intimate knowledge o the outdoors and the natural order of things. I suppose it&#146;s possible that other&#146;s have greater expertise (that&#146;s what you said, at any rate), but you gave something very personal and very unusual to this trip that no one else could have given. I will never forget having known you these 10 days.<p>- J.S.  (San Francisco, CA)</p>"; 
quotes[7] = "Here&#146;s to a superb guide. Always helpful, gracious, an unusually capable cook &#150; we&#146;ve seen no equal. The guiding was most informational on wildlife, flowers. This was the outstanding trip of my life &#150; the sense of being in an endless wilderness was breathtaking.  I have never been in such an environment before where mountains circle one on all sides.  Randy, we enjoyed you immensely. Your steady temperament, thoughtfulness and humor were a wonderful accompaniment to your skill, strength and willingness to put forth unstinting effort to make thinks work and keep us happy and comfortable. Your readiness to always &#147;carry the load&#148; was special. We hope we can see you again.<p>- Joan and Maurice Lorr (ages 73 and 77, Takoma Park, MD)</p>"; 
quotes[8] = "What a great holiday and thank you for everything you did to make my stay so wonderful. Thank you for a wonderful 8 days &#150; good food, good adventure, good leadership. I would love to do it again.Just Great!<p>- Mick Alsey (Cornwall, England)</p>";

// check if the document element is available. 
//   If the script is called from a head, then it won't and will need to set up an onload event.
if (D(textId)) {
	setText();
} else {
	addLoadEvent(setText);
}

// set write the quote into the page
// globals:
//		quotes[], textId
function setText() {
	var qNo = Math.floor(Math.random()*quotes.length);
	// insert text
	D(textId).innerHTML = quotes[qNo];
}
	
// less typing
function D(id){return document.getElementById(id);}

// add onload event handler
// from http://simon.incutio.com/archive/2004/05/26/addLoadEvent 
function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      oldonload();
      func();
    }
  }
}