/* DevDude News Ticker */
//scroller width
var swidth=175;

//scroller height
var sheight=175;

//background color
var sbcolor='E44541';

//scroller's speed
var sspeed=3;

var msg=''

//Your messages go below:


// msg +=
//
//    '<ul><li><a href="http://" target="_blank" title=""></a></li>'+
//    '<li>Beach Tennis USA... entry one. Want more info? <a href="#">More</a></li>'+
//    '<li> </li></ul>'+                     
//'';


// Message content contained in secure/controls/RightColumnNav.ascx
msg = document.getElementById('news').innerHTML;

//End of your messages
// Begin the ticker code

//window.onload = function(){
	start()
//}

var resumesspeed=sspeed
function start() {
        if (document.all) iemarquee(news);
        else if (document.getElementById)
                ns6marquee(document.getElementById('news'));
}

function iemarquee(whichdiv){
        iediv=eval(whichdiv)
       sheight += 50;
       iediv.style.pixelTop=sheight
		iediv.style.display='' // shows scroller content after initially hiding it prior to script initialization
        iediv.innerHTML=msg 
        sizeup=iediv.offsetHeight
        ieslide()
}

function ieslide(){
        if (iediv.style.pixelTop>=sizeup*(-1)){
                iediv.style.pixelTop-=sspeed
                setTimeout("ieslide()",100)
        }
        else{
                iediv.style.pixelTop=sheight
                ieslide()
        }
}

function ns6marquee(whichdiv){
        ns6div=eval(whichdiv)
        sheight += 50;
        ns6div.style.top=sheight + "px";
		ns6div.style.display='' // shows scroller content after initially hiding it prior to script initialization
        ns6div.innerHTML=msg
        sizeup=ns6div.offsetHeight
        ns6slide()
}
function ns6slide(){
        if (parseInt(ns6div.style.top)>=sizeup*(-1)){
                theTop = parseInt(ns6div.style.top)-sspeed
                ns6div.style.top = theTop + "px";
                setTimeout("ns6slide()",100)
        }
        else {
                ns6div.style.top = sheight + "px";
                ns6slide()
        }
}
