

function StringArray (n) {
  this.length = n;
  for (var i =1; i <= n; i++) {
    this[i] = ' '

  }
}

quote = new StringArray(35)
quote[0] = "Thinking is the hardest work there is, which is probably the reason why so few engage in it."
quote[1] = "Vision is the art of seeing things invisible."
quote[2] = "Glory is fleeting, but obscurity is forever."
quote[3] = "Businessmen are the symbol of a free society."
quote[4] = "Good hours, excellent pay, fun place to work, paid training, mean boss. Oh well, four out of five isn't bad. "
quote[5] = "Victory goes to the player who makes the next-to-last mistake."
quote[6] = "If a man does his best, what else is there?"
quote[7] = "Not everything that can be counted counts, and not everything that counts can be counted."
quote[8] = "Only two things are infinite, the universe and human stupidity, and I'm not sure about the former."
quote[9] = "In theory, there is no difference between theory and practice. But, in practice, there is." 
quote[10] = "I find that the harder I work, the more luck I seem to have." 
quote[11] = "Each problem that I solved became a rule which served afterwards to solve other problems."
quote[12] = "Whether you think that you can, or that you can't, you are usually right."
quote[13] = "A mathematician is a device for turning coffee into theorems."
quote[14] = "The power of accurate observation is frequently called cynicism by those who don't have it."
quote[15] = "The use of COBOL cripples the mind; its teaching should, therefore, be regarded as a criminal offense."
quote[16] = "C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away your whole leg."
quote[17] = "Human history becomes more and more a race between education and catastrophe."
quote[18] = "Talent does what it can; genius does what it must."
quote[19] = "Facts are the enemy of truth."
quote[20] = "Research is what I'm doing when I don't know what I'm doing."
quote[21] = "There are only two ways to live your life. One is as though nothing is a miracle. The other is as though everything is a miracle."
quote[22] = "The mistakes are all waiting to be made."
quote[23] = "It is unbecoming for young men to utter maxims."
quote[24] = "Reality is merely an illusion, albeit a very persistent one."
quote[25] = "One of the symptoms of an approaching nervous breakdown is the belief that one's work is terribly important."
quote[26] = "A little inaccuracy sometimes saves a ton of explanation."
quote[27] = "Make everything as simple as possible, but not simpler."
quote[28] = "Three o'clock is always too late or too early for anything you want to do."
quote[29] = "Logic is in the eye of the logician."
quote[30] = "Everything has been figured out, except how to live."
quote[31] = "When ideas fail, words come in very handy."
quote[32] = "You can pretend to be serious; you can't pretend to be witty."
quote[33] = "Too many pieces of music finish too long after the end."
quote[34] = "Show me a sane man and I will cure him for you."
quote[35] = "The cynics are right nine times out of ten." 

author = new StringArray(35)
author[0] = "Henry Ford"
author[1] = "Jonathan Swift"
author[2] = "Napoleon Bonaparte (1769-1821) "
author[3] = "Ayn Rand"
author[4] = "Help Wanted Ad, PA newspaper, 1994"
author[5] = "Chessmaster Savielly Grigorievitch Tartakower (1887-1956)"
author[6] = "General George S. Patton (1885-1945)"
author[7] = "Albert Einstein (1879-1955)"
author[8] = "Albert Einstein (1879-1955)"
author[9] = "Jan L.A. van de Snepscheut"
author[10] = "Thomas Jefferson (1743-1826)"
author[11] = "Rene Descartes (1596-1650)"
author[12] = "Henry Ford (1863-1947)"
author[13] = "Paul Erdos"  
author[14] = "George Bernard Shaw (1856-1950)"
author[15] = "Edsgar Dijkstra"
author[16] = "Bjarne Stroustrup"
author[17] = "H. G. Wells (1866-1946)"
author[18] = "Edward George Bulwer-Lytton (1803-1873)"
author[19] = "Don Quixote - Man of La Mancha"
author[20] = "Wernher Von Braun (1912-1977)"
author[21] = "Albert Einstein (1879-1955)"
author[22] = "chessmaster Savielly Grigorievitch Tartakower (1887-1956)"
author[23] = "Aristotle (384-322 B.C.)"
author[24] = "Albert Einstein (1879-1955)"
author[25] = "Bertrand Russell (1872-1970)"
author[26] = "H. H. Munro (Saki) (1870-1916)"
author[27] = "Albert Einstein (1879-1955)"
author[28] = "Jean-Paul Sartre (1905-1980)"
author[29] = "Gloria Steinem"
author[30] = "Jean-Paul Sartre (1905-1980)"
author[31] = "Goethe (1749-1832)" 
author[32] = "Sacha Guitry (1885-1957)"
author[33] = "Igor Stravinsky (1882-1971)" 
author[34] = "Carl Gustav Jung (1875-1961)"
author[35] = "Henry Louis Mencken (1880-1956)"

function writeQuote()
{
var now = new Date()
var sec = now.getSeconds()
var core = sec % quote.length

var thequote = quote[core]
var theauthor = author[core]
var theq = '&quot;'
var theend = ''


document.write( '<i>' + theq + thequote + theq + " " + theauthor + '</i>'  )
}


