// random words
// ----------------------------------------
function GetRandomWords() {
    tNumOfWords  = 6
    tWordsList    = new MakeArray(tNumOfWords)
    tWordsList[0] = "It's been a hard climb<br>I try to keep my head up high<br>but my feet are on the ground<br>as my mind is in the clouds<br><br><a href='words/anthem.html'>Anthem</a>"

	tWordsList[1] = "Break me from my narrow mind<br>and kiss my eyes wide open to the sky<br><br><a href='words/letter_told_in_dying.html'>Letter Told In Dying</a>"
	
	tWordsList[2] = "Waiting leads to hesitating<br>and in some cases i'm wasting away<br>waiting for someone to drive me<br>half way around the world<br><br><a href='words/the_morning_after.html'>The Morning After</a>"
	
	tWordsList[3] = "The details cost extra<br>just like the sex does<br>try to clean this mess up<br>but the dirt is on the inside<br><br><a href='words/stuck_on_you.html'>Stuck On You Like A Four-Letter Word</a>"

	tWordsList[4] = "The light inside it's burning you down<br>the closest I've come to being around<br><br><a href='words/before_our_birth.html'>Before Our Birth</a>"
	
	tWordsList[5] = "We are the sun<br>we are the shine<br><br><a href='words/kansas_in_the_meantime.html'>Kansas In The Meantime</a>"

    tRandomNum    = RandomNumber(tNumOfWords)
    tRandomWords  = tWordsList[tRandomNum]
    return(tRandomWords)
}

function MakeArray(n) 
 {
    this.length = n;   
        for (i = 1; i < n+1; i++)
          {
            this[ i ] = 0  
          }
    return this;
 }

function RandomNumber(n)
  {
    myDate     = new Date()
    milliSecs  = myDate.getTime()
    seed       = ( milliSecs * 1103515245 ) + 12345

    seed       = ( seed/65536 ) % 32768
    randNumber = ( seed * n ) / 32768

    randNumber = Math.floor(randNumber)
    return randNumber
  }