//Specify scroller contents
var line=new Array()
line[1]="                                                         In July 2003 We did it"
line[2]="                                        and now it is here again!  Meet Jesus 2005"
line[3]="                  This web-site will be constantly updated before and during the event"
line[4]="   Delegate forms now available on-line!  Please click 'getinvolved' to download and print"
line[5]="                                  23-26 June 2005  Bournemouth Football Stadium"
line[6]="               Be a delegate at 'Meet Jesus' for only £30, or £15 for unwaged persons!"

var longestmessage=1
for (i=2;i<line.length;i++){
if (line[i].length>line[longestmessage].length)
longestmessage=i
}

//Auto set scroller width
var tscroller_width=line[longestmessage].length-7

lines=line.length-1 //--Number of lines

//if IE 4+ or NS6
if (document.all||document.getElementById){
document.write('<form name="bannerform" id="bannerform">')>
//document.write('<p align="center">')

document.write('<input type="text" name="banner" size="'+tscroller_width+'"')
// 
document.write(' style="margin-top: 0px; margin-left: 1%; margin-right: 1% padding:0; font-size: 16pt; color: #FFFFFF; background-color: #3962FF; text-align: left";  class="ticker" onfocus="blur()">')
//document.write('</p>')
document.write('</form>')
}

temp=""
nextchar=-1;
nextline=1;
cursor="\\"
function animate(){
if (temp==line[nextline] & temp.length==line[nextline].length & nextline!=lines){
nextline++;
nextchar=-1;
document.bannerform.banner.value=temp;
temp="";
setTimeout("nextstep()",4000)}
else if (nextline==lines & temp==line[nextline] & temp.length==line[nextline].length){
nextline=1;
nextchar=-1;
document.bannerform.banner.value=temp;
temp="";
setTimeout("nextstep()",2000)}
else{
nextstep()}}

function nextstep(){

if (cursor=="\\"){
cursor="|"}
else if (cursor=="|"){
cursor="/"}
else if (cursor=="/"){
cursor="-"}
else if (cursor=="-"){
cursor="\\"}


nextchar++;
temp+=line[nextline].charAt(nextchar);
document.bannerform.banner.value=temp+cursor
setTimeout("animate()",50)}

//if IE 4+ or NS6
if (document.all||document.getElementById)
window.onload=animate
