// JavaScript Document
var delayb4scroll=0000 //Specify initial delay before marquee starts to scroll on page (2000=2 seconds)
var marqueespeed=1 //Specify marquee scroll speed (larger is faster 1-10)
var pauseit=1 //Pause marquee onMousever (0=no. 1=yes)?

var copyspeed=marqueespeed
var pausespeed=(pauseit==0)? copyspeed: 0
var actualheightnews=''
var actualheighttender=''
var actualheightpubl=''

function scrollmarqueenews()
{
if (parseInt(cross_marquee_news.style.top)>(actualheightnews*(-1)+8)) //if scroller hasn't reached the end of its height
    cross_marquee_news.style.top=parseInt(cross_marquee_news.style.top)-copyspeed+"px"; //move scroller upwards
    
else //else, reset to original position
    cross_marquee_news.style.top=parseInt(marqueeheight)+8+"px";
}

function scrollmarqueetender()
{
if (parseInt(cross_marquee_tender.style.top)>(actualheighttender*(-1)+8)) //if scroller hasn't reached the end of its height
    cross_marquee_tender.style.top=parseInt(cross_marquee_tender.style.top)-copyspeed+"px"; //move scroller upwards
    
else //else, reset to original position
    cross_marquee_tender.style.top=parseInt(marqueeheight)+8+"px";
}

function scrollmarqueepubl()
{
if (parseInt(cross_marquee_publ.style.top)>(actualheightpubl*(-1)+8)) //if scroller hasn't reached the end of its height
    cross_marquee_publ.style.top=parseInt(cross_marquee_publ.style.top)-copyspeed+"px"; //move scroller upwards
    
else //else, reset to original position
    cross_marquee_publ.style.top=parseInt(marqueeheight)+8+"px";
}

function initializemarqueetender()
{
    cross_marquee_tender=document.getElementById("vmarquee_tender");
    if ( cross_marquee_tender == null ) return false;
    marqueeheight=document.getElementById("marqueecontainer_tender").offsetHeight
    actualheighttender=cross_marquee_tender.offsetHeight //height of marquee content (much of which is hidden from view)
    setTimeout('lefttime=setInterval("scrollmarqueetender()",30)', delayb4scroll)
}

function initializemarqueenews()
{
    cross_marquee_news=document.getElementById("vmarquee_news");
    if ( cross_marquee_news == null ) return false;
    marqueeheight=document.getElementById("marqueecontainer_news").offsetHeight
    actualheightnews=cross_marquee_news.offsetHeight //height of marquee content (much of which is hidden from view)
    setTimeout('lefttime=setInterval("scrollmarqueenews()",30)', delayb4scroll)
}

function initializemarqueepubl()
{
    cross_marquee_publ=document.getElementById("vmarquee_publ");
    if ( cross_marquee_publ == null ) return false;
    marqueeheight=document.getElementById("marqueecontainer_publ").offsetHeight
    actualheightpubl=cross_marquee_publ.offsetHeight //height of marquee content (much of which is hidden from view)
    setTimeout('lefttime=setInterval("scrollmarqueepubl()",30)', delayb4scroll)
}

function initializemarqueeAll()
{
    initializemarqueenews()
    initializemarqueetender()
    initializemarqueepubl()
}
if (window.addEventListener)
    {
        window.addEventListener("load", initializemarqueeAll, false)
    }
else if (window.attachEvent)
    {
        window.attachEvent("onload", initializemarqueeAll)
    }
else if (document.getElementById)
    {
        window.onload=initializemarqueeAll
    }
