//Specify the marquee's width (in pixels)
var marqueewidth=500
//Specify the marquee's height
var marqueeheight=70
//Specify the marquee's scroll speed (larger is faster)
var speed=2
//Specify the marquee contents
var marqueecontents='<font class="news" color="FFFFF"><b>Latest Update</b></font><br><font class="news" color="FFFFF">"Travel made easy"<br>For bus and train service information, call Transitlink Hotline at 1800-2255663</font><br><br><br><br><font class="news" color="FFFFF">SMRT Taxis Vocational License E-Learning is now available online.<a href="http://taxisvl.tibs.com.sg/website/vl/indexvl.htm"> <font class="news" color="FFFFF">Click Here to register</a></font><br><br><br><br><font class="news" color="FFFFF">From Sunday, 16 November 2003, take SMRT Buses New Service 966 for a direct, faster and cheaper link between Woodlands and Marine Parade </font>'

if (document.all){
//document.write('<marquee direction="up" scrollAmount='+speed+' style="width:'+marqueewidth+';height:'+marqueeheight+'">'+marqueecontents+'</marquee>')
//dynamically write out the marquee tag
document.write('<marquee id="ieslider" direction="up" scrollAmount=0 style="width:'+marqueewidth+';height:'+marqueeheight+'">'+marqueecontents+'</marquee>')
//stop marquee when mouse is over it
ieslider.onmouseover=new Function("ieslider.scrollAmount=0")
//re-enable marquee when mouse is out
ieslider.onmouseout=new Function("if (document.readyState=='complete') ieslider.scrollAmount=speed")
}

function regenerate(){
window.location.reload()
}
function regenerate2(){
if (document.layers){
setTimeout("window.onresize=regenerate",450)
intializemarquee()
}
if (document.all)
ieslider.scrollAmount=speed
}

function intializemarquee(){
document.cmarquee01.document.cmarquee02.document.write(marqueecontents)
document.cmarquee01.document.cmarquee02.document.close()
thelength=document.cmarquee01.document.cmarquee02.document.height
scrollit()
}

function scrollit(){
if (document.cmarquee01.document.cmarquee02.top>=thelength*(-1)){
document.cmarquee01.document.cmarquee02.top-=speed
setTimeout("scrollit()",100)
}
else{
document.cmarquee01.document.cmarquee02.top=marqueeheight
scrollit()
}
}


            
            
         