/*
Scrolling Text script- 
Distributed by http://www.hypergurl.com
*/


//Change script's width (in pixels)
var marqueewidth=400
//Change script's height (in pixels, pertains only to NS)
var marqueeheight=20
//Change script's scroll speed (larger is faster)
var speed=5
//Change script's contents
var marqueecontents='<font face="Arial" font size="2" font color="#FFFFFF">I was hopeless, but couldn’t bring myself to admit I had a problem... <a href="http://www.nationalinterventionreferral.org/testimonials.htm" class="nav">-click to read- </a>&nbsp;&nbsp;Life has truly taken on new meaning, today my sobriety is more important... <a href="http://www.nationalinterventionreferral.org/testimonials.htm" class="nav">-click to read-</a>&nbsp;&nbsp;I watched my son spiral down for years and tried everything in my power to help... <a href="http://www.nationalinterventionreferral.org/testimonials.htm" class="nav">-click to read-</a>&nbsp;&nbsp;I called NIR because it was my last resort... <a href="http://www.nationalinterventionreferral.org/testimonials.htm" class="nav">-click to read-</a></font><background color="#00080">'


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

