/*
Typing Scroller
Submitted by bengaliboy00@hotmail.com (hp: http://www.angelfire.com/nt/bengaliboy/)
With modifications by Dynamicdrive.com
For full source code, usage terms, and 100s more scripts, visit http://dynamicdrive.com
*/

//Secify scroller contents
var line=new Array()
//line[1]="Make sure you book your place on the second Apex Extreme." 
//line[2]="There is only space for 70 teams so enter early."
//line[3]="Once all the places have gone we will have to close the event."
//line[4]="We're travelling further North for this event than ever before."
//line[5]="You'll spend a weekend of adventure on Ilkley Moor, West Yorks."
//line[6]="All sorts of new and exciting activities are planned."
//line[7]="Log on to our new MySpace and Facebook pages."
//line[8]="You'll be able to get in touch with other teams on there."
//line[9]="Apex Challenge ... Join the Adventure."
//line[10]="It's just £90 per team of four - a bargain for a whole weekend."
line[1]="LATEST TEAMS ON CONFIRMED LIST..."
line[2]="Aire Valley 3 (West Yorkshire)"
line[3]="Aire Valley 2 (West Yorkshire)"
line[4]="Aire Valley 1 (West Yorkshire)"
line[5]="Alpha Wolf Squadron (South Yorkshire)"
line[6]="Shy Teds (Derbyshire)"
line[7]="LATEST TEAMS ON PROVISIONAL LIST..."
line[8]="Brew Crew (South Yorkshire)"
line[9]="Kiss My Donkey (South Yorkshire)"
line[10]="Vikings (Hampshire)"
line[11]="SOUTHERN STARS (Dorset)"
line[12]="Mad Cow 2 (West Yorkshire)"
line[13]="THERE ARE JUST 28 MORE PLACES AVAILABLE."
line[14]="It's just £90 per team of four."


//Specify font size for scoller
var ts_fontsize="12px"

//--Don't edit below this line

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

lines=line.length-1 //--Number of lines

//if IE 4+ or NS6
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: #90bdf9; color: '+document.body.text+'; font-family: tahoma, verdana, arial, helvetica, sans-serif; font-size: '+ts_fontsize+'; font-weight:bold; border: medium none" 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()",1000)}
else if (nextline==lines & temp==line[nextline] & temp.length==line[nextline].length){
nextline=1;
nextchar=-1;
document.bannerform.banner.value=temp;
temp="";
setTimeout("nextstep()",1000)}
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()",25)}

//if IE 4+ or NS6
if (document.all||document.getElementById)
window.onload=animate
// -->

