var speed=3 //Specify marquee scroll speed (larger is faster 1-10)
var actualheight=''
var scrolling;
if(navigator.userAgent.search('Firefox')!=-1)
speed=4;
function scroll(direction)
{
    if(direction=='up')
    sp=speed;
    else if(direction=='down')
    sp=-speed;
    scrolling = window.setInterval('scrollmarquee(sp)', 30);
}
function scrollmarquee(sp){
    if(sp>1)
    {
        if (parseInt(cross_marquee.style.top)>(-(actualheight-marqueeheight)))
           cross_marquee.style.top=(parseInt(cross_marquee.style.top)-sp)+"px"
   }
   else if(sp<1)
   {
           if (parseInt(cross_marquee.style.top)<0)
           cross_marquee.style.top=(parseInt(cross_marquee.style.top)-sp)+"px"
   }
}
function stopscrolling()
{
    window.clearInterval(scrolling)
}
function goToBottom()
{
    cross_marquee.style.top="0px"
}
function goToTop()
{
    cross_marquee.style.top=(-(actualheight-marqueeheight))+"px"
}

function initializemarquee(){
cross_marquee=document.getElementById("vmarquee")
if(!cross_marquee)
cross_marquee=document.getElementById("Homevmarquee")
cross_marquee.style.top=0
marqueeheight=document.getElementById("marqueecontainer")
if(!marqueeheight)
marqueeheight=document.getElementById("Homemarqueecontainer")
marqueeheight=marqueeheight.offsetHeight

actualheight=cross_marquee.offsetHeight
if (window.opera || navigator.userAgent.indexOf("Netscape/7")!=-1){ //if Opera or Netscape 7x, add scrollbars to scroll and exit
cross_marquee.style.height=marqueeheight+"px"
cross_marquee.style.overflow="scroll"
return
}
}

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

