var bcaimages=[]

bcaimages[0] = 'IMAGES/scavenger1.gif'
bcaimages[1] = 'IMAGES/scavenger1answer.gif'
bcaimages[2] = 'IMAGES/scavenger2.gif'
bcaimages[3] = 'IMAGES/scavenger2answer.gif'
bcaimages[4] = 'IMAGES/scavenger3.gif'
bcaimages[5] = 'IMAGES/scavenger3answer.gif'
bcaimages[6] = 'IMAGES/scavenger4.gif'
bcaimages[7] = 'IMAGES/scavenger4answer.gif'
bcaimages[8] = 'IMAGES/scavenger5.gif'
bcaimages[9] = 'IMAGES/scavenger5answer.gif'
bcaimages[10] = 'IMAGES/scavenger6.gif'
bcaimages[11] = 'IMAGES/scavenger6answer.gif'
bcaimages[12] = 'IMAGES/scavenger7.gif'
bcaimages[13] = 'IMAGES/scavenger7answer.gif'
bcaimages[14] = 'IMAGES/scavenger8.gif'
bcaimages[15] = 'IMAGES/scavenger8answer.gif'
bcaimages[16] = 'IMAGES/scavenger9.gif'
bcaimages[17] = 'IMAGES/scavenger9answer.gif'
bcaimages[18] = 'IMAGES/scavenger10.gif'
bcaimages[19] = 'IMAGES/scavenger10answer.gif'
bcaimages[20] = 'IMAGES/scavenger11.gif'
bcaimages[21] = 'IMAGES/scavenger11answer.gif'
bcaimages[22] = 'IMAGES/scavenger12.gif'
bcaimages[23] = 'IMAGES/scavenger12answer.gif'
bcaimages[24] = 'IMAGES/scavenger13.gif'
bcaimages[25] = 'IMAGES/scavenger13answer.gif'
bcaimages[26] = 'IMAGES/scavenger14.gif'
bcaimages[27] = 'IMAGES/scavenger14answer.gif'
bcaimages[28] = 'IMAGES/scavenger15.gif'
bcaimages[29] = 'IMAGES/scavenger15answer.gif'
bcaimages[30] = 'IMAGES/scavenger16.gif'
bcaimages[31] = 'IMAGES/scavenger16answer.gif'
bcaimages[32] = 'IMAGES/scavenger17.gif'
bcaimages[33] = 'IMAGES/scavenger17answer.gif'
bcaimages[34] = 'IMAGES/scavengeranswermap.gif'
bcaimages[35] = 'IMAGES/scavengermapblank.gif'

function preloadimgs()
{
var preload = []
for(var i=0; i <bcaimages.length; i++){
   preload[i] = new Image();
   preload[i].src = bcaimages[i];
   }
}

function changecontent(indexno)
{

newcontent = newrightcontent[indexno];
document.getElementById('contentright').innerHTML = newcontent;

noindexes = newrightcontent[0].noindex;
for(var i = 1; i < noindexes + 1; i++)
      {
      allindexref = 'I' + i.toString();
      document.getElementById(allindexref).className = "activeindex";
      }

if(noindexes>=indexno) 
   {
   newindexref = 'I' + indexno.toString();
   document.getElementById(newindexref).className = "currentindex";
   }

}




function emailcontactform()
{

alert('this is a temporary message.\n' + 'A contact email address is needed to complete this form.')
}


function emaillinkform()
{

alert('this is a temporary message.\n' + 'A contact email address is needed to complete this form.');

}




function changestatutes(slang)
{

if(slang=='1')
   {

   newstatutes = statutestext[0];
   document.getElementById('statutes').innerHTML = newstatutes;
   document.getElementById('flaguk').style.borderColor = '#ffffff';
   document.getElementById('flaggermany').style.borderColor = '#0087ac';

   }else{

   newstatutes = statutestext[1];
   document.getElementById('statutes').innerHTML = newstatutes;
   document.getElementById('flaggermany').style.borderColor = '#ffffff';
   document.getElementById('flaguk').style.borderColor = '#0087ac';

   }

}





function changejoinform(changeref)
{
var newform = []

newform[0] = ""

newform[1] = "<DIV class='labels text'>Type:</DIV>\n" +
"<DIV class='radios text'>single <INPUT type='radio' value='single' name='Membership_Type'  checked=checked></INPUT><SPAN style='margin-left:10px;'>family <INPUT type='radio' value='family' name='Membership_Type'></INPUT></SPAN></DIV>\n" +
"<DIV class='dividers'> </DIV>\n" +
"<DIV class='labels text'>address:</DIV>\n" +
"<TEXTAREA name='My_Address' class='inserts' style='height:66px;'></TEXTAREA>\n" +
"<DIV class='dividers'> </DIV>\n" +
"<DIV class='radios text'>I hold a British Passport <INPUT name='British_Passport_Holder' type='checkbox' checked=checked onclick='showalert();'></INPUT></DIV>\n" +
"<DIV ID='passportalert' class='inserts smalltext' style='color:red; border:0px;'></DIV>\n" +
"<DIV class='dividers' style='border-bottom:1px #cccccc solid;'> </DIV>\n" +
"<DIV class='dividers'> </DIV>"; 

newhtml = newform[changeref];
document.getElementById('expandform').innerHTML = newhtml;
}


function showalert()
{
if(joinform.confirmpassport.checked==false){alert('Sorry, membership is only open to British Passport holders')}
}

function sendjoinform()
{
alert('this is a temporary message.\n' + 'a contact email address is required to complete this function')
}




function showtips()
{
tipswitchon.style.visibility = 'hidden';
usefultips.style.visibility = 'visible';
usefultips.className = 'bodyall';
}

function hidetips()
{
tipswitchon.style.visibility = 'visible';
usefultips.style.visibility = 'hidden';
usefultips.className = 'bodyhide';
}



