var scrollerdelay='500' //delay between msg scrolls. 3000=3 seconds.
var scrollerwidth='130'
var scrollerheight='800'
var scrollerbgcolor='#FAF3E4'
//set below to '' if you don't wish to use a background image
var scrollerbackground=''

//configure the below variable to change the contents of the scroller

///////Do not edit pass this line///////////////////////

var ie=document.all
var dom=document.getElementById
var timer1


if (messages.length>3)
i=6
else
i=0
function move_div() {
	move(first2_obj)
	move(second2_obj)
	move(third2_obj)
	move(fourth2_obj)
	move(fifth2_obj)
	move(sixth2_obj)
	
	timer1=setTimeout("move_div()",25)
}
function move(whichdiv){
tdiv=eval(whichdiv)
if (parseInt(tdiv.style.top)>=tdiv.offsetHeight*-1){
tdiv.style.top=parseInt(tdiv.style.top)-1+"px"
}
else
{
tdiv.style.top=parseInt(scrollerheight)+"px"
tdiv.innerHTML=messages[i]
if (i==messages.length-1)
i=0
else
i++
}
return
}


function startscroll(){
first2_obj=ie? first2 : document.getElementById("first2")
second2_obj=ie? second2 : document.getElementById("second2")
third2_obj=ie? third2 : document.getElementById("third2")
fourth2_obj=ie? fourth2 : document.getElementById("fourth2")
fifth2_obj=ie? fifth2 : document.getElementById("fifth2")
sixth2_obj=ie? sixth2 : document.getElementById("sixth2")
second2_obj.style.top=160
second2_obj.style.visibility='visible'
third2_obj.style.top=320
third2_obj.style.visibility='visible'
fourth2_obj.style.top=480
fourth2_obj.style.visibility='visible'
fifth2_obj.style.top=640
fifth2_obj.style.visibility='visible'
sixth2_obj.style.top=800
sixth2_obj.style.visibility='visible'

move_div()
}

if (ie||dom){
document.writeln('<div id="main2" style="position:relative;width:'+scrollerwidth+';height:'+scrollerheight+';overflow:hidden;background-color:'+scrollerbgcolor+' ;background-image:url('+scrollerbackground+')">')
document.writeln('<div style="position:absolute;width:'+scrollerwidth+';height:'+scrollerheight+';clip:rect(0 '+scrollerwidth+' '+scrollerheight+' 0);left:0px;top:0px">')
document.writeln('<div id="first2" style="position:absolute;width:'+scrollerwidth+';left:0px;top:1px;height:150px">')
document.write(messages[0])
document.writeln('</div>')
document.writeln('<div id="second2" style="position:absolute;width:'+scrollerwidth+';left:0px;top:0px;visibility:hidden;height:150px">')
document.write(messages[dyndetermine=(messages.length==1)? 0 : 1])
document.writeln('</div>')
document.writeln('<div id="third2" style="position:absolute;width:'+scrollerwidth+';left:0px;top:0px;visibility:hidden;height:150px">')
document.write(messages[dyndetermine=(messages.length==1)? 0 : 2])
document.writeln('</div>')
document.writeln('<div id="fourth2" style="position:absolute;width:'+scrollerwidth+';left:0px;top:0px;visibility:hidden;height:150px">')
document.write(messages[dyndetermine=(messages.length==1)? 0 : 3])
document.writeln('</div>')
document.writeln('<div id="fifth2" style="position:absolute;width:'+scrollerwidth+';left:0px;top:0px;visibility:hidden;height:150px">')
document.write(messages[dyndetermine=(messages.length==1)? 0 : 4])
document.writeln('</div>')
document.writeln('<div id="sixth2" style="position:absolute;width:'+scrollerwidth+';left:0px;top:0px;visibility:hidden;height:150px">')
document.write(messages[dyndetermine=(messages.length==1)? 0 : 5])
document.writeln('</div>')
document.writeln('</div>')

document.writeln('</div>')
document.writeln('</div>')
}

if (window.addEventListener)
window.addEventListener("load", startscroll, false)
else if (window.attachEvent)
window.attachEvent("onload", startscroll)
else if (ie||dom)
window.onload=startscroll

