var strQuote;
var strPerson;

function writeQuote() {
   var randText = new Array();
   var randPerson = new Array();
   var intCnt = 0

   randText[intCnt] = "Glory is fleeting, but obscurity is forever.";
   randPerson[intCnt] = "Napoleon Bonaparte";
   intCnt = intCnt + 1;

   randText[intCnt] = "Make everything as simple as possible, but not simpler.";
   randPerson[intCnt] = "Albert Einstein";
   intCnt = intCnt + 1;


   randText[intCnt] = "It's not the size of the dog in the fight, it's the size of the fight in the dog.";
   randPerson[intCnt] = "Albert Einstein";
   intCnt = intCnt + 1;

   randText[intCnt] = "It's not the size of the dog in the fight, it's the size of the fight in the dog.";
   randPerson[intCnt] = "Mark Twain";
   intCnt = intCnt + 1;

   randText[intCnt] = "All animals are equal but some animals are more equal than others.";
   randPerson[intCnt] = "George Orwell";
   intCnt = intCnt + 1;

   randText[intCnt] = "I've had a perfectly wonderful evening. But this wasn't it.";
   randPerson[intCnt] = "Groucho Marx";
   intCnt = intCnt + 1;

   randText[intCnt] = "Smoking is one of the leading causes of statistics.";
   randPerson[intCnt] = "Fletcher Knebel";
   intCnt = intCnt + 1;

   randText[intCnt] = "By all means marry; if you get a good wife, you'll be happy. If you get a bad one, you'll become a philosopher.";
   randPerson[intCnt] = "Socrates";
   intCnt = intCnt + 1;

   randText[intCnt] = "They called me mad, and I called them mad, and damn them, they outvoted me.";
   randPerson[intCnt] = "Nathaniel Lee";
   intCnt = intCnt + 1;

   randText[intCnt] = "Life is a comedy for those who think and a tragedy for those who feel.";
   randPerson[intCnt] = "Horace Walpole";
   intCnt = intCnt + 1;

   randText[intCnt] = "But who will guard the guardians?";
   randPerson[intCnt] = "Juvenal";
   intCnt = intCnt + 1;

   randText[intCnt] = "The time you enjoy wasting is not wasted time.";
   randPerson[intCnt] = "Bertrand Russell";
   intCnt = intCnt + 1;

   randText[intCnt] = "Peace cannot be kept by force. It can only be achieved by understanding.";
   randPerson[intCnt] = "Albert Einstein";
   intCnt = intCnt + 1;

   randText[intCnt] = "Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.";
   randPerson[intCnt] = "Albert Einstein";
   intCnt = intCnt + 1;

   randText[intCnt] = "I love deadlines. I love the whooshing sound they make as they fly by.";
   randPerson[intCnt] = "Douglas Adams";
   intCnt = intCnt + 1;

   randText[intCnt] = "Rules are made for people who aren't willing to make up their own.";
   randPerson[intCnt] = "Chuck Yeager";
   intCnt = intCnt + 1;

   randText[intCnt] = "Failure? I never encoutered it. All I ever met were temporary setbacks.";
   randPerson[intCnt] = "Dottie Walters";
   intCnt = intCnt + 1;

   randText[intCnt] = "The most pathetic person in the world is someone who has sight but has no vision.";
   randPerson[intCnt] = "Helen Keller";
   intCnt = intCnt + 1;

   randText[intCnt] = "Better to remain silent and be thought a fool, than to speak and remove all doubt.";
   randPerson[intCnt] = "Abraham Lincoln";
   intCnt = intCnt + 1;

   randText[intCnt] = "Let him who wishes for peace prepare for war.";
   randPerson[intCnt] = "Vegetius";
   intCnt = intCnt + 1;

   randText[intCnt] = "Blessed is he who expects nothing, for he shall never be disappointed.";
   randPerson[intCnt] = "Jonathan Swift";
   intCnt = intCnt + 1;

   randText[intCnt] = "There's no such thing as a tough child. If you parboil them first for seven hours, they always come out tender.";
   randPerson[intCnt] = "W. C. Fields";
   intCnt = intCnt + 1;

   randText[intCnt] = "Science gives man what he needs, but magic gives man what he wants.";
   randPerson[intCnt] = "Tom Robbins";
   intCnt = intCnt + 1;

   randText[intCnt] = "Don't be afraid to take a big step when one is indicated. You can't cross a chasm in two small jumps.";
   randPerson[intCnt] = "David Lloyd George";
   intCnt = intCnt + 1;

   randText[intCnt] = "We are what we repeatedly do. Excellence, then, is not an act, but a habit.";
   randPerson[intCnt] = "Aristotle";
   intCnt = intCnt + 1;

   var randNum = Math.floor(Math.random()*randText.length);
   strQuote = randText[randNum];
   strPerson = randPerson[randNum];
   
   strQuote = strQuote + '<p class="quotesAuthor">- ' + strPerson + '</p>';

   document.getElementById("lyQuotesText").innerHTML = strQuote;

}

function writeQuoteFull() {
   theHtml=strQuote + "<br /><span style='float: right'><b>- " + strPerson + "</b></span>"

   popWin=window.open('','quoteWindow','left=100,top=100,scrollbars=yes,width=250,height=150')
   popWin.document.open();
   popWin.document.write('<html><head><title>Quote Viewer</title></head>');
   popWin.document.write('<body><p style="font-family: Tahoma; color: black; font-size: 10pt">');
   popWin.document.write(theHtml);
   popWin.document.write('<br /><br /><a href="javascript:window.close();">Close Window</a></p></body></html>');
   popWin.document.close();
}