// JavaScript Document
// AY Online javascript scroller
var delayOnStart = 3000;
var tickerSpeed = 1;
var pauseOnMouseOver = true;
var roller_one;
var roller_two;
var roller_three;
var copyspeed = tickerSpeed;
var pausespeed = (pauseOnMouseOver==0) ? copyspeed : 0;
var actualheight = '';
var lefttimeONE;
var lefttimeTWO;
var lefttimeTHREE;




function scrollTicker(){
if (parseInt(cross_marquee.style.top)>(actualheight*(-1)+8))
cross_marquee.style.top=parseInt(cross_marquee.style.top)-copyspeed+"px"
else
cross_marquee.style.top=parseInt(marqueeheight)+8+"px"
}

function initializemarquee(){
cross_marquee=document.getElementById("tickerID")
cross_marquee.style.top=0
marqueeheight=document.getElementById("newsTabHeadlines").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
}
roller_one = setTimeout('lefttimeONE=setInterval("scrollTicker()",35)', delayOnStart);
}

function stopScroll_ONE(){
//clearTimeout(setTimeout_variable)	
clearTimeout(roller_one);
clearTimeout(lefttimeONE);
}


// roller umber 2

var delayOnStart22 = 3000;
var tickerSpeed22 = 1;
var pauseOnMouseOver22 = true;

var copyspeed22 = tickerSpeed22;
var pausespeed22 = (pauseOnMouseOver22==0) ? copyspeed22 : 0;
var actualheight22 = '';

function scrollTicker22(){
if (parseInt(cross_marquee22.style.top)>(actualheight22*(-1)+8))
cross_marquee22.style.top=parseInt(cross_marquee22.style.top)-copyspeed22+"px"
else
cross_marquee22.style.top=parseInt(marqueeheight22)+8+"px"
}

function initializemarquee22(){
cross_marquee22=document.getElementById("tickerID22")
cross_marquee22.style.top=0
marqueeheight22=document.getElementById("newsTabHeadlines22").offsetHeight
actualheight22=cross_marquee22.offsetHeight
if (window.opera || navigator.userAgent.indexOf("Netscape/7")!=-1){ //if Opera or Netscape 7x, add scrollbars to scroll and exit
cross_marquee22.style.height=marqueeheight22+"px"
cross_marquee22.style.overflow="scroll"
return
}
roller_two = setTimeout('lefttimeTWO=setInterval("scrollTicker22()",35)', delayOnStart);
}

function stopScroll_TWO(){
//clearTimeout(setTimeout_variable)	
clearTimeout(roller_two);
clearTimeout(lefttimeTWO);
}

// roller number 3


var delayOnStart33 = 3000;
var tickerSpeed33 = 1;
var pauseOnMouseOver33 = true;

var copyspeed33 = tickerSpeed33;
var pausespeed33 = (pauseOnMouseOver33==0) ? copyspeed33 : 0;
var actualheight33 = '';

function scrollTicker33(){
if (parseInt(cross_marquee33.style.top)>(actualheight33*(-1)+8))
cross_marquee33.style.top=parseInt(cross_marquee33.style.top)-copyspeed33+"px"
else
cross_marquee33.style.top=parseInt(marqueeheight33)+8+"px"
}

function initializemarquee33(){
cross_marquee33=document.getElementById("tickerID33")
cross_marquee33.style.top=0
marqueeheight33=document.getElementById("newsTabHeadlines33").offsetHeight
actualheight33=cross_marquee33.offsetHeight
if (window.opera || navigator.userAgent.indexOf("Netscape/7")!=-1){ //if Opera or Netscape 7x, add scrollbars to scroll and exit
cross_marquee33.style.height=marqueeheight33+"px"
cross_marquee33.style.overflow="scroll"
return
}
roller_three = setTimeout('lefttimeTHREE=setInterval("scrollTicker33()",35)', delayOnStart);
}

function stopScroll_THREE(){
//clearTimeout(setTimeout_variable)	
clearTimeout(roller_three);
clearTimeout(lefttimeTHREE);
}
