// message.js

function statusMessageObject(p, d)
    {
    this.msg = myMessage
    this.out = " "
    this.pos = myPosition
    this.delay = myDelay
    this.i     = 0
    this.reset = clearMessage
    }

function clearMessage()
    {
    this.pos = myPosition
    }

var myPosition = 100
var myDelay    = 50
var mySalute   = ""
day = new Date( )
hr  = day.getHours( )

if (( hr >= 0 ) && (hr <= 5 ))
    mySalute = "Goedenacht... "
if (( hr >= 6 ) && (hr <= 11 ))
    mySalute = "Goedemorgen... "
if (( hr >= 12 ) && (hr <= 17 ))
    mySalute = "Goedemiddag... "
if (( hr >= 18 ) && (hr <= 23 ))
    mySalute = "Goedenavond... "

var myMessage = mySalute + "Welkom !!! Op de homepage van Harmonie “Unisono” Velp....."
var scroll = new statusMessageObject()

function scroller()
    {
    for (scroll.i = 0; scroll.i < scroll.pos; scroll.i++)
        scroll.out += " "

    if (scroll.pos >= 0)
        scroll.out += scroll.msg
    else 
        scroll.out = scroll.msg.substring(-scroll.pos,scroll.msg.length)

    window.status = scroll.out
    scroll.out = " "
    scroll.pos--

    if (scroll.pos < -(scroll.msg.length))
        scroll.reset()

    setTimeout ("scroller()", scroll.delay)
    }

