﻿        //scroller width
        var swidth=190;

        //scroller height
        var sheight=140;

        //background color
        var sbcolor='#F3F3EB';

        //scroller's speed
        var sspeed=1;

        var msg=''

        //Your messages go below:


        msg +=
        
            '<ul><b><a href="news.htm" title="">May 28,  2010</a></b>'+
            '<p>Childrens House Picnic at Maple Avenue Fields, Shrewsbury.</p>'+
            '</ul>'+                     
        
            '<ul><b><a href="news.htm" title="">June 04,  2010</a></b>'+
            '<p>Elementary Students Field Day at Maple Avenue Fields</p>'+
            '</ul>'+                     

            '<ul><b><a href="news.htm" title="">June 02,  2010</a></b>'+
            '<p>Year End PTO meeting at 8:45am to be held in the SMS PTO Room</p>'+
            '</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()",35)
                }
                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()",35)
                }
                else {
                        ns6div.style.top = sheight + "px";
                        ns6slide()
                }
        }
