var line=new Array()
line[1]="Bring a friend - Help keep live music alive!"
line[2]="Support your local live music venue - Use it or lose it"
line[3]="Live music at the Clowne Community Centre"
line[4]="Sunday Nights starting at 8:30pm - Doors open 7:45pm"
line[5]="Cheap (subsidised) drinks"

var longestmessage=2
for (i=2;i<line.length;i++){
if (line[i].length>line[longestmessage].length)
longestmessage=i
}

var tscroller_width=line[longestmessage].length

lines=line.length-1

if (document.all||document.getElementById){
document.write('<form name="bannerform">')
document.write('<input type="text" name="banner" size="'+tscroller_width+'"')
document.write(' style="background-color: transparent; font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: normal; color: #ffffff;border: 0px solid #ffffff; width: 350px;" onfocus="blur()">')
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()",3000)}
else if (nextline==lines & temp==line[nextline] & temp.length==line[nextline].length){
nextline=1;
nextchar=-1;
document.bannerform.banner.value=temp;
temp="";
setTimeout("nextstep()",3000)}

else{nextstep()}}
function nextstep(){
if (cursor==""){cursor=""}

nextchar++;
temp+=line[nextline].charAt(nextchar);
document.bannerform.banner.value=temp+cursor
setTimeout("animate()",30)}

if (document.all||document.getElementById)
window.onload=animate
//
