// Automatic random quote generator for JavaScript 1.1
// Written by Andrew Humphries.

// Create a new list of quotes called myQuotes
myQuotes = new Array();
myQuoters = new Array();
 
// Fill the list - not bothering with final full-stop
// List must be continuous, begin at 0, with no gaps or repetitions of the index number
myQuotes[0] = "Nothing should be prized more highly than the value of each day";
myQuoters[0] = "Goethe";

myQuotes[1] = "Be good to yourself. If you don't look after your body, where will you live";
myQuoters[1] = "Kobi Yamada";

myQuotes[2] = "Due to a shortage of robots some of our staff are human and may behave inappropriately if rushed or abused";
myQuoters[2] = "Anon";

myQuotes[3] = "No one ever has it all together. That's like eating once and for all";
myQuoters[3] = "Marilyn Grey";

myQuotes[4] = "Next week there can't be any crisis, my schedule is already full";
myQuoters[4] = "Henry Kissenger";

myQuotes[5] = "He who cannot rest, cannot work; He who cannot let go, cannot hold on; He who cannot find footing, cannot go forward";
myQuoters[5] = "Harry Emerson Fosdick";

myQuotes[6] = "Never confuse motion with action";
myQuoters[6] = "Ernest Hemingway";

myQuotes[7] = "One of the symptoms of the approaching nervous breakdown is the belief that one's work is terribly important, and that to take a holiday would bring all kinds of disaster";
myQuoters[7] = "Bertrand Russell";

myQuotes[8] = "The great secret of success is to go through life as a man who never gets used up";
myQuoters[8] = "Albert Schweitzer";

myQuotes[9] = "To do great work a man must be very idle as well as very industrious";
myQuoters[9] = "Samuel Butler";

myQuotes[10] = "Run, if you like, but try to keep your breath; Work like a man, but don't be worked to death";
myQuoters[10] = "Dr. Oliver Wendell Holmes, Sr";

myQuotes[11] = "Four out of five people are more in need of rest than exercise";
myQuoters[11] = "Dr Logan Clendening";

myQuotes[12] = "One's action ought to come out of an achieved stillness; not to be a mere rushing on";
myQuoters[12] = "D.H. Lawrence";

// Pick a random quote from the list above
myQuoteNum = Math.round(Math.random()*(myQuotes.length-0.5));

// Display the quote in a table: " + quote + ."
document.writeln('<table width="240" vspace="12" hspace="12" border="1" align="Right" cellpadding="5" cellspacing="0"><tr><th align="Left" valign="Top">');
document.writeln('<font face="Roman"><i>\"' + myQuotes[myQuoteNum] + '.\"</i><br>');
document.writeln('<div align="Right">-- ' + myQuoters[myQuoteNum] + '</font></div>');
document.writeln("</th></tr></table>");
