﻿// JScript File

//scroller width
        var swidth=500;
 
        //scroller height
        var sheight=50; //300
 
        //background color
        var sbcolor='#ffffff';
 
        //scroller's speed
        var sspeed=2;
 
        var msg=''
 
        //Your messages go below:
 
 
        msg +=
        
//            '<ul><li>President\'s Day February 15, 2010</li>'+
//            '<li><a href="ski.html">Soaring Eagle Open House</a></li>'+
//            '<hr />'+
//            
//            '<ul><li>February 21, 2010</li>'+
//            '<li><a href="ski_clinic.html">Soaring Eagle Ski Clinic</a></li>'+
//            '<hr />'+
            
            '<ul><li>August 15, 2010</li>'+
            '<li><a href="run.html">Fishhook Challenge</a></li>'+
            '<hr />'+
            
            '<ul><li>September 25, 2010</li>'+
            '<li><a href="bike.html">Headwaters 100</a></li>'+            
            '<hr />'+
            
            '<ul><li>Itascatur in the Enterprise</li>'+
            '<li><a href="http://www.parkrapidsenterprise.com/event/image/id/9725/" target="_blank" title="">Itascatur news</a></li>'+
            '<li> </li></ul>'+ 
            
 
        '';
 
        //End of your messages
        // Begin the ticker code
 
        var resumesspeed=sspeed
        function start() {
                if (document.all) iemarquee(ticker);
                else if (document.getElementById)
                        ns6marquee(document.getElementById('ticker'));
        }
        
        function iemarquee(whichdiv){
                iediv=eval(whichdiv)
                sheight += 50;
                iediv.style.pixelTop=sheight
                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.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()
                }
        }

