﻿function loadQuote() {
  var quote = new Array(3);
  var quoteAuthor = new Array(3);
 

  quote[0] = "Herbalife never ceases to amaze me with the outstanding experience of an Extravaganza to train and entertain. It was fantastic to experience everything from the leadership training to the Black Tie Dinner and inspirational stories on stage throughout the entire weekend. This event made it crystal clear to everyone that your wildest dreams can come true!! Let’s take action together. The products & Business Opportunity is truly Proven & Powerful! NOW IS THE TIME!! Thanks, Team Herbalife.";
 quoteAuthor[0] = "Chondelle Bell, Millionaire Team <br><i>Australia</i>";
 
  quote[1] = "The TAB Team meeting validated what I have always known about Herbalife: that I am with the right company, the right people and I have the right timing! Michael O. Johnson gives Distributors the confidence they need to be strong in the business, while Des Walsh assures us of the security we have with Herbalife. Guillermo and Carola were amazing in sharing their own strategy on building and keeping their organization strong and growing. Truly, Herbalife is Proven and Powerful and NOW IS THE RIGHT TIME. Being at this event makes me want to work harder and touch more people’s lives.";
  quoteAuthor[1] = "Mabelle Gianan – Millionaire Team<br><i>Philippines</i>";
  
 
 
  quote[2] = "We were so excited to attend the Extravaganza as newly qualified President's Team Members. The President’s Team cocktail reception is a very good occasion for President's Team to enjoy the good food, to socialize together and share successful experiences & stories with each other, the President’s Team cocktail reception is indeed a prefect arrangement.";
  quoteAuthor[2] = "Lin Li-Chu & Shih Hsi-Hsun - President’s Team<br><i>Taiwan</i>";

  //calculate a random index
  index = Math.floor(Math.random() * quote.length);
   
  //display the quotation
  if (document.getElementById("quote")) {
	document.getElementById("quote").innerHTML = '<p>"' + quote[index] + '"</p>';
	document.getElementById("quote").innerHTML += '<p class="quoteBy">' + quoteAuthor[index] + '</p>';
	
  }
  
}

window.onload = function() {
	loadQuote();
	selectCurrentLanguage();
}
