/***********************************************
* Cross browser Marquee II- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/

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

////NO NEED TO EDIT BELOW THIS LINE////////////

var copyspeed_news=marqueespeed_news
var pausespeed_news=(pauseit_news==0)? copyspeed_news: 0
var actualheight_news=''

function scrollmarquee_news(){
    if (parseInt(cross_marquee_news.style.top)>(actualheight_news*(-1)+8)){ 
    	//if scroller hasn't reached the end of its height
        cross_marquee_news.style.top=parseInt(cross_marquee_news.style.top)-copyspeed_news+"px" //move scroller upwards
    }
    else{ //else, reset to below position cross_marquee2
        cross_marquee_news.style.top=parseInt(cross_marquee2_news.style.top)+actualheight_news+8+"px"
    }
    
    if (parseInt(cross_marquee2_news.style.top)>(actualheight_news*(-1)+8)){ 
    	//if scroller hasn't reached the end of its height
        cross_marquee2_news.style.top=parseInt(cross_marquee2_news.style.top)-copyspeed_news+"px" //move scroller upwards
    }
    else{ //else, reset to below position cross_marquee2
        cross_marquee2_news.style.top=parseInt(cross_marquee_news.style.top)+actualheight_news+8+"px"
    }
}

function initializemarquee_news(){
    cross_marquee_news=document.getElementById("news1")
    cross_marquee_news.style.top=0
    marqueeheight_news=document.getElementById("news_scroller").offsetHeight
    actualheight_news=cross_marquee_news.offsetHeight //height of marquee content (much of which is hidden from view)
    cross_marquee2_news=document.getElementById("news2")
    cross_marquee2_news.style.top=actualheight_news+"px"
    if (actualheight_news <= marqueeheight_news){
        cross_marquee2_news.style.top=actualheight_news*2+"px"
    	return
    }
    	
    if (window.opera || navigator.userAgent.indexOf("Netscape/7")!=-1){ //if Opera or Netscape 7x, add scrollbars to scroll and exit
        cross_marquee_news.style.height=marqueeheight_news+"px"
        cross_marquee_news.style.overflow="scroll"
        return
    }
    setTimeout('lefttime=setInterval("scrollmarquee_news()",60)', delayb4scroll_news)
}

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



