  
var initialDelay = 1000 //initial delay (1000=1 seconds)
var marqueeCopySpeed = 1 //Marquee scroll speed (1-10 10 is faster)
var pauseit = 1 //Pause onMousever (0:1, 1=yes)?
     
var copyspeed = marqueeCopySpeed
var pausespeed = (pauseit == 0) ? copyspeed : 0
var actualheight = ''

function StartScroll() {
    if (parseInt(crossScroll.style.top) > (actualheight * (-1) + 1)) //if scroller hasn't reached the end of its height
        crossScroll.style.top = parseInt(crossScroll.style.top) - copyspeed + "px" //move scroller upwards
    else {//else, reset to original position
        crossScroll.style.top = parseInt(marqueeheight) + 1 + "px"
    }
}

function initializemarquee() {
    crossScroll = document.getElementById("divScrollContent")
    crossScroll.style.top = 0
    marqueeheight = document.getElementById("DivScroller").offsetHeight
    actualheight = crossScroll.offsetHeight //height of marquee content (much of which is hidden from view)
    if (window.opera || navigator.userAgent.indexOf("Netscape/7") != -1) { //if Opera or Netscape 7x, add scrollbars to scroll and exit
        crossScroll.style.height = marqueeheight + "px"
        crossScroll.style.overflow = "scroll"
        return
    }
    setTimeout('lefttime=setInterval("StartScroll()",50)', initialDelay)
}

if (window.addEventListener) {
    window.addEventListener("load", initializemarquee, false)
}
else if (window.attachEvent) {
    window.attachEvent("onload", initializemarquee)
}
else if (document.getElementById) {
    window.onload = initializemarquee
}


