var swidth=200;
var sheight=300;
var sbcolor='fff';
var sspeed=4;
var msg='';
msg += '<div class="element"><a href="#"><span class="date">Wednesday 24th March</span>Year 4 Residential to Edale</a></div>';
msg += '<div class="element"><a href="#"><span class="date">Friday 26th March</span>Year 4 return from Edale</a></div>';
msg += '<div class="element"><a href="#"><span class="date">Tuesday 30th March</span>Year 2/3 Production </a></div>';
msg += '<div class="element"><a href="#"><span class="date">Wednesday 31st March</span>Break Up After School Easter </a></div>';
msg += '<div class="element"><a href="#"><span class="date">Thursday 1st April</span>Training Day </a></div>';
msg += '<div class="element"><a href="#"><span class="date">Monday 19th April</span>Back to School </a></div>';
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 += 2;
       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 += 2;
       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()
       }
}
