// links and quotes for the flash bit on the home page

var readExcerptURL="/strategies/ebuster.php";
var buyNowURL="/store/index.php?main_page=index&cPath=1";
var strategiesURL="/strategies/";
var readersRoomURL="/readersroom/"
var quizURL = "/readersroom/quiz.php";
var pressURL="/press/";
var meetAuthorsURL="/meettheauthors/";


// with the quotes, format each line of the array like this:
// "The quote is first | The author | Their title"
// note the pipe that separates these 3 variables. 

var quotes=[
"The Elephant doesn't have to trample on your strategies anymore.  Learn proven tools and techniques to improve office productivity, morale and your bottom line, and get rid of that pachyderm for good!|Scott Friedman|CSP, Motivational Humorist",
"A groundbreaking illustration of teamwork, culture and why it changes the game. | Dr. Stephen R. Covey | Author, The 7 Habits of Highly Effective People and The 8th Habit: From Effectiveness to Greatness",
"A National Institutes of Health study showed that more than 30 percent of adults in the US experience enough stress in their daily lives to hinder their performance either at home or at work. | James Rippe, MD | Author of High Performance Health",
"This book bridges the gap from ideas to implementation. This is not the typical 'airline book.' These ideas deserve study and reflection and, most importantly, they compel readers to action. | Douglas B. Reeves, Ph.D | Founder, The Leadership and Learning Center",
"The desire to fulfill our own potential is as natural as wanting to breathe. | Vannoy and Ross | Stomp the Elephant in the Office",
"People in their natural state are motivated. It is the job of every person within the culture to create an environment that allows people to nurture and build that inner motivation. |  Vannoy and Ross | Stomp the Elephant in the Office",
"An estimated 20 percent of Americans have anger levels high enough to present clear risk factors for disease; another 40 to 50 percent have enough anger to make their lives less satisfying and productive and potentially to harm their health. | James Rippe, MD | Author of High Performance Health",
"Finally the 'how' to lasting change Ð the most important book since Good to Great. | Rich Crawford | President Global Glass, Owens-Illinois",
"Results are the priority.  People and culture are the strategies to achieve the priority: to deliver results. | Vannoy and Ross| Stomp the Elephant in the Office",
"A Wellness Culture creates ownership: a step above buy-in and two steps beyond engagement. Ownership leads to long-term execution and results. | Vannoy and Ross| Stomp the Elephant in the Office",
"The most important strategy an organization can develop is the strategy that determines how people lead others and themselves. | Vannoy and Ross| Stomp the Elephant in the Office",
"People are not flawedÑit is the approach to the process of change that is flawed. People do not resist change; they resist being changed. | Vannoy and Ross| Stomp the Elephant in the Office",
"Successful organizations avoid the high costs of employee attrition because they realize their company is just as responsible as the rest of society for helping others realize their potential. | Vannoy and Ross| Stomp the Elephant in the Office"
];


// Don't touch this stuff

var qassembled="";

function randomize ( myArray ) {
  var i = myArray.length;
  if ( i == 0 ) return false;
  while ( --i ) {
     var j = Math.floor( Math.random() * ( i + 1 ) );
     var tempi = myArray[i];
     var tempj = myArray[j];
     myArray[i] = tempj;
     myArray[j] = tempi;
   }
}
randomize(quotes);

for(r=0;r<quotes.length;r++){
	var tmpq = quotes[r].split("|")
	qassembled+="q"+r+"="+tmpq[0]+"&a"+r+"="+tmpq[1]+"&t"+r+"="+tmpq[2]+"&";
}

var o = ["readExcerptURL","buyNowURL","strategiesURL","readersRoomURL","quizURL","pressURL","meetAuthorsURL"];
for (r=0;r<o.length;r++){
	qassembled+=o[r]+"="+this[o[r]]+"&";
}
