var scrollDelay=1000 //Specify initial delay before marquee starts to scroll on page (2000=2 seconds)
var scrool_speed=1 //Specify marquee scroll speed (larger is faster 1-10)
var pause_time=1 //Pause marquee onMousever (0=no. 1=yes)?


var copy_speed=scrool_speed
var pause_speed=(pause_time==0)? copy_speed: 0
var actualheight=''

function scroll_box(){
if (parseInt(cross_box.style.top)>(actualheight*(-1)+8))
cross_box.style.top=parseInt(cross_box.style.top)-copy_speed+"px"
else
cross_box.style.top=parseInt(boxheight)+110+"px"
}

function initialize_box(){
    cross_box=document.getElementById("scrolling_text");
    if (cross_box!=undefined){
    cross_box.style.top=0;
    boxheight=document.getElementById("scrolling_container").offsetHeight
    actualheight=cross_box.offsetHeight
    if (window.opera || navigator.userAgent.indexOf("Netscape/7")!=-1){ //if Opera or Netscape 7x, add scrollbars to scroll and exit
    cross_box.style.height=boxheight+"px"
    cross_box.style.overflow="scroll"

    return true;
    }
   setTimeout('lefttime=setInterval("scroll_box()",30)', scrollDelay);

  }
  else return false;
}

    if (window.addEventListener)
    window.addEventListener("load", initialize_box, false)
    else if (window.attachEvent)
    window.attachEvent("onload", initialize_box)
    else if (document.getElementById)
    window.onload=initialize_box
