// JavaScript Quotes

function getQuote(){
	//quote array
	quoteList = new Array();
	
	// list your quotes here
	quoteList[0] = "\"Money doesn't make you happy. I now have $50 million, but I was just as happy when I had $48 million.\" - Arnold 			Schwarzenegger";
	quoteList[1] = "\"Whenever you find a man who says he doesn't believe in a real Right and Wrong, you will find the same man going back on this a moment later.\" - C.S. Lewis";
	quoteList[2] = "\"We humans do not need to leave Earth to get to a hostile, deadly, alien environment; we already have Miami.\" - Dave Barry";
	quoteList[3] = "\"An education isn't how much you have committed to memory, or even how much you know. It's being able to differentiate between what you know and what you don't.\" - Malcolm Forbes";
	quoteList[4] = "\"Would I rather be feared or loved? Um... Easy, both. I want people to be afraid of how much they love me.\" - Michael on <i>The Office</i>";
	quoteList[5] = "\"A coach is someone who can give correction without causing resentment.\" - John Wooden";
	quoteList[6] = "\"We contend that for a nation to try to tax itself into prosperity is like a man standing in a bucket and trying to lift himself up by the handle.\" - Winston Churchill";
	quoteList[7] = "\"The tree of liberty must be refreshed from time to time with the blood of patriots and tyrants.\" - Thomas Jefferson";
	quoteList[8] = "\"The more I study science, the more I believe in God.\" - Albert Einstein";
	quoteList[9] = "\"If they ever come up with a swashbuckling school, I think one of the courses should be laughing, then jumping off something.\" - Deep Thoughts by Jack Handy";
	quoteList[10] = "\"No arsenal, or no weapon in the arsenals of the world, is so formidable as the will and moral courage of free men and women.\" - Ronald Reagan";
	quoteList[11] = "\"It takes 20 years to build a reputation and five minutes to ruin it. If you think about that, you'll do things differently.\" - Warren Buffett";
	quoteList[12] = "\"I have not failed. I've just found 10,000 ways that won't work.\" - Thomas Edison";
	quoteList[13] = "\"Obstacles are those frightful things you see when you take your eyes off your goal.\" - Henry Ford";
	quoteList[14] = "\"Tragedy is when I cut my finger. Comedy is when you walk into an open sewer and die.\" - Mel Brooks";
	quoteList[15] = "\"To find out a girl's faults, praise her to her girl friends.\" - Benjamin Franklin";
	quoteList[16] = "\"If we desire to avoid insult, we must be able to repel it; if we desire to secure peace, one of the most powerful instruments of our rising prosperity, it must be known, that we are at all times ready for War.\" - George Washington";
	quoteList[17] = "\"Reason is our soul's left hand, Faith her right.\" - John Donne";
	quoteList[18] = "\"If I have seen further, it is by standing on the shoulders of giants.\" - Isaac Newton";
	quoteList[19] = "\"The only kind of seafood I trust is the fish stick, a totally featureless fish that doesn't have eyeballs or fins.\" - Dave Barry";
	quoteList[20] = "\"Newman!\" - Jerry Seinfeld";
	quoteList[21] = "\"Never explain -- your friends do not need it, and your enemies will not believe you anyway.\" - Elbert Hubbard";
	quoteList[22] = "\"Most human beings have an infinite capacity for taking things for granted.\" - Aldous Huxley";
	quoteList[23] = "\"Familiarity breeds contempt and children.\" - Mark Twain";
	quoteList[24] = "\"We must believe in luck. For how else can we explain the success of those we don't like?\" - Jean Cocteau";
	quoteList[25] = "\"Computers in the future may weigh no more than 1.5 tons.\" - Popular Mechanics (1949)";
	quoteList[26] = "\"This 'telephone' has too many shortcomings to be seriously considered as a means of communication. The device is inherently of no value to us.\" - Western Union (1876)";
	quoteList[27] = "\"They say golf is like life, but don't believe them.  Golf is more complicated than that.\" - Gardner Dickinson";
	quoteList[28] = "\"Two roads diverged in a wood, and I--I took the one less traveled by, And that has made all the difference.\" - Robert Frost";
	quoteList[29] = "\"Cinderella story.  Outta nowhere.  A former greenskeeper, now, about to  become the Masters champion.  It looks like a mirac...It's in the hole!  It's in the hole!  It's in the hole!\" - Caddyshack";
	quoteList[30] = "\"The reason why truth is so much stranger than fiction is that there is no requirement for it to be consistent.\" - Mark Twain";
	quoteList[31] = "\"Mr. Pibb + Red Vines = CRAZY DELICIOUS!\" - Adam Sandberg";
	quoteList[32] = "\"When I was in the 6th grade I was a finalist in our school spelling bee. It was me against Raj Patel. I misspelled, in front of the entire school, the word 'failure'.\" - Dwight Schrute on <i>The Office</i>";


	//randomization
	var intRand = getRandomNumber(quoteList.length);
	
	// return quote
	return quoteList[intRand]		
}

function getRandomNumber(intMax){
	var now = new Date();
	var secs = now.getSeconds();
	var raw_random_number = Math.random(secs);
	var random_number = Math.round(raw_random_number * (intMax));
	
	if (random_number == intMax)
		return 0
	else
		return random_number
	
}

function writeQuote(){
	document.getElementById('RandomQuote').innerHTML=getQuote();
}


