

function StringArray (n) {
  this.length = n;
  for (var i =1; i <= n; i++) {
    this[i] = ' '

  }
}

quote = new StringArray(26)
quote[0] = "The Lord is gracious and compassionate, slow to anger and rich in love."
quote[1] = "I tell you the truth, he who believes has everlasting life."
quote[2] = "Skate not to where the puck is but to where the puck is going to be."
quote[3] = "He who gives to the poor will lack nothing, but he who closes his eyes to them receives many curses."
quote[4] = "A generous man will himself be blessed, for he shares his food with the poor."
quote[5] = "They replied, 'Believe in the Lord Jesus, and you will be saved -- you and your household.'"
quote[6] = "If opportunity doesn’t knock, build a door."
quote[7] = "If a man is doing his best, what else is there?"
quote[8] = "The true measure of a man is how he treats someone who can do him absolutely no good."
quote[9] =  "No matter how hard you try, you can't baptize cats!"
quote[10] =  "The best place to be when you are sad is Grandpa's lap."
quote[11] =  "Raising teenagers is like nailing Jello to a tree."
quote[12] =  "Families are like fudge...mostly sweet, with a few nuts."
quote[13] =  "Today's mighty oak is just yesterday's nut that held its ground."
quote[14] =  "Time may be a great healer, but it's a lousy beautician."
quote[15] =  "Four stages of life: You believe in Santa Clause, you don't believe in Santa Clause, you ARE Santa Clause, you look like Santa Clause."
quote[16] = "All your sons will be taught by the Lord, and great will by your children's peace."
quote[17] = "Honor your father and mother."
quote[18] = "Come to Me, all you who are weary and burdened, and I will give you rest."
quote[19] = "Wait for the Lord; be strong and take heart and wait for the Lord."
quote[20] = "Trust in the Lord and do good; dwell in the land and enjoy safe pasture."
quote[21] = "Be strong and take heart, all you who hope in the Lord."
quote[22] = "That everyone who believes in Him may have eternal life."
quote[23] = "I tell you truth, if anyone keeps My word, he will never see death."
quote[24] = "The idea is not that we do work for God, but that we are so faithful to Him that He can do His work through us."
quote[25] = "The whole trouble is that we will not let God help us."

author = new StringArray(25)
author[0] = "Psalm 145:8"
author[1] = "John 6:47"
author[2] = "Anon"
author[3] = "Proverbs 28:27"
author[4] = "Proverbs 22:9"
author[5] = "Acts 16:31"
author[6] = "Milton Berle"
author[7] = "George S. Patton"
author[8] = "Samuel Johnson"
author[9] = "Author Unknown"
author[10] = "Author Unknown"
author[11] = "Author Unknown"
author[12] = "Author Unknown"
author[13] = "Author Unknown"
author[14] = "Author Unknown"
author[15] = "Author Unknown"
author[16] = "Isaiah 54:13"
author[17] = "Luke 18:20"
author[18] = "Matthew 11:28"
author[19] = "Psalm 27:14"
author[20] = "Psalm 37:3"
author[21] = "Psalm 31:24"
author[22] = "John 3:15"
author[23] = "John 8:51"
author[24] = "Oswald Chambers"
author[25] = "George McDonald"


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>'  )
}


