
var core = 0
var currentdate = 0

function StringArray (n) {
  this.length = n;
  for (var i =1; i <= n; i++) {
    this[i] = ' '

  }
}

quote = new StringArray(3)
quote[0] = "You were under the impression that when you were walking forward, you'd end up further onward. But things ain't quite that simple."
quote[1] = "Who Dares, Wins"
quote[2] = "Glory is fleeting, but obscurity is forever."
quote[3] = "Victory goes to the player who makes the next-to-last mistake."
quote[4] = "If a man does his best, what else is there?"
quote[5] = "Only two things are infinite, the universe and human stupidity, and I'm not sure about the former."
quote[6] = "Whether you think that you can, or that you can't, you are usually right."
quote[7] = "The only difference between me and a madman is that I'm not mad."
quote[8] = "Never interrupt your enemy when he is making a mistake."
quote[9] = "If you are going through hell, keep going."
quote[10] = "You can observe a lot just by watching."
quote[11] = "Do, or do not. There is no 'try'."
quote[12] = "The object of war is not to die for your country but to make the other bastard die for his."
quote[13] = "Show me a sane man and I will cure him for you."
quote[14] = "The gods too are fond of a joke."
quote[15] = "How can I lose to such an idiot?"
quote[16] = "Never mistake motion for action."
quote[17] = "It's not the size of the dog in the fight, it's the size of the fight in the dog."
quote[18] = "You gotta strike when the moment is right without thinking."
quote[19] = "If everything's under control, you're going too slow."
quote[20] = "We made too many wrong mistakes. "
quote[21] = "You will never find time for anything. If you want time you must make it."
quote[22] = "Opportunity does not knock, it presents itself when you beat down the door."
quote[23] = "To hell with circumstances. I create opportunities."
quote[24] = "Do not let what you cannot do interfere with what you can do."
quote[25] = "Every action is either strong or weak, and when every action is strong we are successful."
quote[26] = "We're Knights of the Round Table.<br>We dance whene'er we're able.<br>We do routines and chorus scenes<br>With <b>Footwork Impeccable</b>." 
quote[27] = "I used to be with it, but then they changed what <i>it</i> was. Now, what I'm with isn't <i>it</i>, and what's <i>it</i> seems weird and scary to me." 
quote[28] = "You know we've told you before<br>But you didn't hear us then<br>So you still question why<br>No, you didn't listen again!<br><b>Wha Oh...</b>"
quote[29] = "You live you learn<br>You love you learn<br>You cry you learn<br>You lose you learn<br>You bleed you learn<br>You scream you learn"
quote[30] = "There's a picture opposite me<br>Of my primitive ancestry<br>Which stood on rocky shores and kept the beaches shipwreck free<br>Though I respect that a lot<br>I'd be fired if that were my job<br>After killing Jason off and countless screaming Argonauts<br>Bluebird of friendliness<br>Like guardian angels its always near"
quote[31] = "We are advancing constantly, and we're not interested in holding onto anything except the enemy. We're going to hold onto him by the nose, and we're going to kick him in the ass."
quote[32] = "The point of the journey is not to arrive."
quote[33] = "Untutored courage is useless in the face of educated bullets."
quote[34] = "What's the deal? Spin the wheel.<br>If the dice are hot -- take a shot.<br>Play your cards. Show us what you got<br>What you're holding.<br>If the cards are cold,<br>Don't go folding.<br>Lady Luck is golden<br>She favours the bold. That's cold<br>Stop throwing stones<br>The night has a thousand saxophones. So get out there and rock,<br>And roll the bones.<br><i>Get busy!</i>"
quote[35] = "Slip kid, slip kid, slip out of trouble<br>Slip over here and set me free<br>Slip kid, slip kid, second generation<br>Now you're slidin down the hill like me<br>No easy way to be free"

author = new StringArray(36)
author[0] = "Pete Townsend"
author[1] = "Motto of the Special Air Service"
author[2] = "Napoleon Bonaparte"
author[3] = "Chessmaster Savielly Grigorievitch Tartakower"
author[4] = "General George S. Patton"
author[5] = "Albert Einstein"
author[6] = "Henry Ford"
author[7] = "Salvador Dali"
author[8] = "Napoleon Bonaparte"
author[9] = "Sir Winston Churchill"
author[10] = "Yogi Berra"
author[11] = "Yoda"
author[12] = "General George S. Patton"
author[13] = "Carl Gustav Jung"
author[14] = "Aristotle"
author[15] = "chessmaster Aaron Nimzovich"
author[16] = "Ernest Hemingway"
author[17] = "Mark Twain"
author[18] = "Roger Waters, of Pink Floyd"
author[19] = "Mario Andretti"
author[20] = "Yogi Berra"
author[21] = "Charles Buxton"
author[22] = "Kyle Chandler"
author[23] = "Bruce Lee"
author[24] = "John Wooden"
author[25] = "Wallace D. Wattles"
author[26] = "The Monty Python Crew"
author[27] = "Abe Simpson, from Homerpalooza"
author[28] = "Neil Pert"
author[29] = "Alanis Morissette"
author[30] = "They Might Be Giants"
author[31] = "General George S. Patton, 3rd Army Speach, May 31st, 1944"
author[32] = "Neil Pert - <I>Anything can happen</I>"
author[33] = "General George S. Patton"
author[34] = "Neil Pert"
author[35] = "Pete Townsend - Slip Kid!"

var ran = 60/quote.length

currentdate = new Date()
core = currentdate.getSeconds()
adcore = Math.floor(core/ran)
core = adcore

var thequote = quote[core]
var theauthor = author[core]
var thebreak = ' - '
var theq = '"'
var theend = '.'

var entireQuote = theq + thequote + theq + thebreak + theauthor + theend

function getQuote()
{
	if (document.all)
		document.all.Quotes.innerHTML=entireQuote 
	else if (document.getElementById)
		document.getElementById("Quotes").innerHTML=entireQuote 
	else
		document.write(Quotes)
}

function goforit()
{
//	getQuote();
//	if ( document.all || document.getElementById )
//		getQuote();
		
	document.getElementById("Quotes").innerHTML = entireQuote;
}