/*
Cross browser marquee script- 
© Dynamic Drive (www.dynamicdrive.com)
For full source code, installation instructions,
100's more DHTML scripts, and Terms Of
Use, visit dynamicdrive.com
*/


//Specify the marquee's width (in pixels)
var marqueewidth=530
//Specify the marquee's height (in pixels, pertains only to NS)
var marqueeheight=17
//Specify the marquee's scroll speed (larger is faster)
var speed=3
//Specify the marquee contents
var marqueecontents='<FONT FACE="Arial" STYLE="font-size: 11px;color: white"><B>Maintenance</B> <B><FONT STYLE="font-size: 14px; color: #33AD33">7</FONT></B>/7 days a Week <B><FONT STYLE="font-size: 14px; color: #33AD33">24</FONT></B>/24h a Day</FONT>'

if (document.all)
document.write('<marquee scrollAmount='+speed+' style="width:'+marqueewidth+'">'+marqueecontents+'</marquee>')

function regenerate(){
window.location.reload()
}
function regenerate2(){
if (document.layers){
setTimeout("window.onresize=regenerate",450)
intializemarquee()
}
}

function intializemarquee(){
document.cmarquee01.document.cmarquee02.document.write('<nobr>'+marqueecontents+'</nobr>')
document.cmarquee01.document.cmarquee02.document.close()
thelength=document.cmarquee01.document.cmarquee02.document.width
scrollit()
}

function scrollit(){
if (document.cmarquee01.document.cmarquee02.left>=thelength*(-1)){
document.cmarquee01.document.cmarquee02.left-=speed
setTimeout("scrollit()",100)
}
else{
document.cmarquee01.document.cmarquee02.left=marqueewidth
scrollit()
}
}

window.onload=regenerate2