//
var numQuotes = 36;  // <=== Adjust the number of quotations here
var qt = null;

function initQuotes() {
qt = new initArray(numQuotes);
qt[1] = "He made for the cellar door, and presently reappeared, somewhat dusty, with a bottle of beer in each paw and another under each arm. <br>&quot;Self-indulgent beggar you seem to be, Mole.&quot; he observed, &quot;Deny yourself nothing.&quot; he replied.<br><span style='font-size:8pt;'><b><i>Wind in the Willows.</i></b></span>";
qt[2] = "Always do sober what you said you'd do drunk. That will teach you to keep your mouth shut.<br><span style='font-size:8pt;'><b><i>Ernest Hemmingway</i></b></span>";
qt[3] = "Always remember that I have taken more out of alcohol than alcohol has taken out of me.<br><span style='font-size:8pt;'><b><i>Winston Churchill</i></b></span>";
qt[4] = "He was a wise man who invented beer.<br><span style='font-size:8pt;'><b><i>Plato</i></b></span>";
qt[5] = "Time is never wasted when you're wasted all the time.<br><span style='font-size:8pt;'><b><i>Catherine Zandonella</i></b></span>";
qt[6] = "A woman drove me to drink and I didn't even have the decency to thank her.<br><span style='font-size:8pt;'><b><i>W.C. Fields</i></b></span>";
qt[7] = 'Lady Astor to Winston Churchill: "Sir, if you were my husband, I would poison your drink."<br>His reply: "Madam, if you were my wife, I would drink it."'
qt[8] = "If God had not intended us to drink beer, He would not have given us stomachs.<br><span style='font-size:8pt;'><b><i>David Daye</i></b></span>";
qt[9] = "Work is the curse of the drinking class.<br><span style='font-size:8pt;'><b><i>Oscar Wilde</i></b></span>";
qt[10] = "When I read about the evils of drinking, I gave up reading.<br><span style='font-size:8pt;'><b><i>Henny Youngman</i></b></span>";
qt[11] = "Beer is proof that God loves us and wants us to be happy.<br><span style='font-size:8pt;'><b><i>Benjamin Franklin</i></b></span>";
qt[12] = "If you ever reach total enlightenment while drinking beer, I bet it makes beer shoot out your nose.<br><span style='font-size:8pt;'><b><i>Deep Thoughts, by Jack Handy</i></b></span>";
qt[13] = "Without question, the greatest invention in the history of mankind is beer. Oh, I grant you that the wheel was also a fine invention, but the wheel does not go nearly as well with pizza.<br><span style='font-size:8pt;'><b><i>Dave Barry</i></b></span>";
qt[14] = "The problem with the world is that everyone is a few drinks behind.<br><span style='font-size:8pt;'><b><i>Humphrey Bogart</i></b></span>";
qt[15] = "Why is American beer served cold? So you can tell it from urine.<br><span style='font-size:8pt;'><b><i>David Moulton</i></b></span>";
qt[16] = "People who drink light beer don't like the taste of beer; they just like to pee a lot.<br><span style='font-size:8pt;'><b><i>Capital Brewery, Middleton, WI</i></b></span>";
qt[17] = "Give me a woman who loves beer and I will conquer the world.<br><span style='font-size:8pt;'><b><i>Kaiser Wilhelm</i></b></span>";
qt[18] = "I would kill everyone in this room for a drop of sweet beer.<br><span style='font-size:8pt;'><b><i>Homer Simpson</i></b></span>";
qt[19] = "Not all chemicals are bad. Without chemicals such as hydrogen and oxygen, for example, there would be no way to make water, a vital ingredient in beer.<br><span style='font-size:8pt;'><b><i>Dave Barry</i></b></span>";
qt[20] = "I drink to make other people interesting.<br><span style='font-size:8pt;'><b><i>George Jean Nathan</i></b></span>";
qt[21] = "They who drink beer will think beer.<br><span style='font-size:8pt;'><b><i>Washington Irving</i></b></span>";
qt[22] = "An intelligent man is sometimes forced to be drunk to spend time with fools.<br><span style='font-size:8pt;'><b><i>For Whom the Bell Tolls, Ernest Hemmingway</i></b></span>";
qt[23] = "You're not drunk if you can lie on the floor without holding on.<br><span style='font-size:8pt;'><b><i>Dean Martin</i></b></span>";
qt[24] = "All right, brain, I don't like you and you don't like me - so let's just do this and I'll get back to killing you with beer.<br><span style='font-size:8pt;'><b><i>Homer Simpson</i></b></span>";
qt[25] = "Homer: &quot;Thanks for comming to my party...Wow, you brought a whole beer keg!&quot;<br>Barney: &quot;Yeah. Where can I fill it up ?&quot"; 
qt[26] = "&quot;What is the taste of 1 IBU?&quot;<br><span style='font-size:8pt;'><b><i>Zen Judging</i></b></span>";
qt[27] = "&quot;In brewing it is the not the beer that matters, but the journey.&quot;<br><span style='font-size:8pt;'><b><i>Zen Brewing</i></b></span>";
qt[28] = "&quot;Not every beer will win, but every beer MAY win.&quot;<br><span style='font-size:8pt;'><b><i>Zen Judging</i></b></span>";
qt[29] = "&quot;It is the empty space within a glass which makes it useful.&quot;<br><span style='font-size:8pt;'><b><i>Zen Brewing</i></b></span>"; 
qt[30] = "&quot;When the brewer is ready, the judge will come.&quot;<br><span style='font-size:8pt;'><b><i>Zen Judging</i></b></span>";
qt[31] = "&quot;He who completely masters triple decoction mashing, understands everything.&quot;<br><span style='font-size:8pt;'><b><i>Zen Brewing</i></b></span>";
qt[32] = "&quot;Of doctors and medicines we have in plenty more than enough... what you may send, for the Love of God, is some large quantity of beer..&quot;<br><span style='font-size:8pt;'><b><i>Dispatch from the Colony, New South Wales, 1854</i></b></span>";
qt[33] = "In wine there is wisdom. In beer there is strength<br>In water there is bacteria.<br><span style='font-size:8pt;'><b><i>German Proverb</i></b></span>";
qt[34] = "You can only drink thirty or forty glasses of beer a day, no matter how rich you are.<br><span style='font-size:8pt;'><b><i>Adolphus Busch</i></b></span>";
qt[35] = "With beer the spirit is kept in balance with the livers and blood.<br><span style='font-size:8pt;'><b><i>Egyptian Medical Book</i></b></span>";
qt[36] = "Bread is the staff of life, but beer is life itself.<br><span style='font-size:8pt;'><b><i>Anonymous</i></b></span>";
}

function getRandomNumber(n) {
//Returns a pseudorandom number between 1 and n
  var today = new Date();
  var bigNum = today.getSeconds() * today.getTime() * Math.sqrt(today.getMinutes());
  var randNum = (bigNum % n) + 1;
  return Math.floor(randNum);
}

function initArray(n) {
  this.length = n;
  for(var i = 1; i <= n; i++) {
    this[i] = "";
    }
  return this;
}


function getRandomQuote() {
  var idx = getRandomNumber(numQuotes);
  return qt[idx];
}

function loadQuote() {
  var theQuote = getRandomQuote();
  document.write(theQuote);
}

initQuotes();

document.write("  <div class=history>");
document.write("    <b>Quote of the day</b>");
document.write("    <br/><script type='text/javascript'>loadQuote()</script>");
document.write("  </div>");

