function get_gr(map_ref,return_gr)
  {
  landr_ref = map_ref.substr(0,2)
  j = 0
  var mapping=new Array("SV","01","02","03","04","05","06","NL","NF","NA","SW","SR","SM","13","14","NW","NR","NM","NG","NB","SX","SS","SN","SH","SC","NX","NS","NN","NH","NC","SY","ST","SO","SJ","SD","NY","NT","NO","NJ","ND","SZ","SU","SP","SK","SE","NZ","NU","47","NK","49","TV","TQ","TL","TF","TA","OV","56","57","58","59","60","TR","TM","TG","64","65")
  while (mapping[j] != landr_ref){j++}
  if (return_gr == 1)
    return("<a href='http://www.multimap.com/p/browse.cgi?pc=&GridE=" + Math.floor(j/10) + map_ref.substr(2,3) + "00&GridN=" + j%10 + map_ref.substr(5,3) + "00&scale=25000&title=&cat=h'>" + map_ref + "<\/a>")
  else
    document.write("<a href='http://www.multimap.com/p/browse.cgi?pc=&GridE=" + Math.floor(j/10) + map_ref.substr(2,3) + "00&GridN=" + j%10 + map_ref.substr(5,3) + "00&scale=25000&title=&cat=h'>" + map_ref + "<\/a>")
  }

function get_gr2(map_ref)
  {
  landr_ref = map_ref.substr(0,2)
  i = 0
  var mapping=new Array("SV","01","02","03","04","05","06","NL","NF","NA","SW","SR","SM","13","14","NW","NR","NM","NG","NB","SX","SS","SN","SH","SC","NX","NS","NN","NH","NC","SY","ST","SO","SJ","SD","NY","NT","NO","NJ","ND","SZ","SU","SP","SK","SE","NZ","NU","47","NK","49","TV","TQ","TL","TF","TA","OV","56","57","58","59","60","TR","TM","TG","64","65")
  while (mapping[i] != landr_ref){i++}
    document.write("<a href='http://www.multimap.com/p/browse.cgi?pc=&GridE=" + Math.floor(i/10) + map_ref.substr(2,3) + "00&GridN=" + i%10 + map_ref.substr(5,3) + "00&scale=25000&title=&cat=h'>" + map_ref + "<\/a>")
  }

function load_arrays()
{
myarea[0]  = new Area ('Ampthill Park'       ,'Ampthill'      ,'TL024382','1:5000'         ,'A4'  ,'maps/ampthill.gif'  ,452,508,'Countoured parkland on the Greensand Ridge with some areas of runnable woodland.<BR>Suitable for Ltd District events.');
myarea[1]  = new Area ('Bar Hill/Dry Drayton','Cambridge'     ,'TL379634','1:10000'        ,'A4'  ,'maps/barhill.gif'   ,667,366,'Street map of Bar Hill and Dry Drayton.<BR>Suitable for small events and Street-O.');
myarea[2]  = new Area ('Bedford Park'        ,'Bedford'       ,'TL050510','1:5000'         ,'A4'  ,'maps/bedford.gif'   ,476,434,'Town parkland.<BR>Suitable for small events.');
myarea[3]  = new Area ('Brandon CP'          ,'Brandon'       ,'TL785853','1:15000/1:10000','A3/4','maps/brandon.gif'   ,896,238,'Block coniferous woodland in Therford Forest.<BR>Suitable for events up to Regional.<BR>Shared area within EAOA.');
myarea[4]  = new Area ('Bush Heath Wood'     ,'Mildenhall'    ,'TL726754','1:10000'        ,'A4'  ,'maps/bush.gif'      ,867,284,'CUOC area.<BR>Coniferous woodland with clearings in the northern part.<BR>Suitable for District events.');
myarea[5]  = new Area ('Cherry Hinton Hall'  ,'Cambridge'     ,'TL480564','1:3000'         ,'A5'  ,'maps/cherry.gif'    ,725,401,'Small parkland area suitable for small events.');
myarea[6]  = new Area ('Chicksands Wood'     ,'Shefford'      ,'TL106411','1:10000'        ,'A4'  ,'maps/chicksands.gif',500,502,'Wooded area of variable runnability');
myarea[7]  = new Area ('Coe Fen'             ,'Cambridge'     ,'TL446574','1:5000'         ,'A4'  ,'maps/coefen.gif'    ,706,393,'CUOC area.<BR>Mostly open fenland with scattered trees.<BR>Suitable for small events.');
myarea[8]  = new Area ('Coldhams Common'     ,'Cambridge'     ,'TL473589','1:5000'         ,'A4'  ,'maps/coldham.gif'   ,720,386,'CUOC area.<BR>Mainly open land with a few trees.<BR>Suitable for small events.');
myarea[9]  = new Area ('Croxton Heath'       ,'Thetford'      ,'TL877894','1:15000'        ,'A3'  ,'maps/croxton.gif'   ,967,214,'New area.<BR>Block coniferous woodland in Thetford Forest.');
myarea[10] = new Area ('Fairlands Valley'    ,'Stevenage'     ,'TL255238','1:10000'        ,'A4'  ,'maps/fairlands.gif' ,594,598,'Mainly open parkland.  Suffers from vandalism.');
myarea[11] = new Area ('Ferry Meadows'       ,'Peterborough'  ,'TL148974','1:10000'        ,'A4'  ,'maps/ferry.gif'     ,527,159,'Country Park to the West of Peterborough.<BR>Suitable for small events.');
myarea[12] = new Area ('Harlton Clunch Pits' ,'Cambridge'     ,'TL390520','1:2500'         ,'A4'  ,'maps/harlton.gif'   ,673,428,'Small area with some contour details.  Suitable for small events.');
myarea[13] = new Area ('High Ash'            ,'Munford'       ,'TL813968','1:15000/1:10000','A3/4','maps/highash.gif'   ,913,159,'Mainly coniferous woodland with some areas of beech.<BR>Suitable for events up to Regional.');
myarea[14] = new Area ('High Lodge'          ,'Brandon'       ,'TL811852','1:15000'        ,'A3'  ,'maps/highlodge.gif' ,917,238,'CUOC area.<BR>Block coniferous woodland in Therford Forest.<BR>Suitable for events up to Regional.');
myarea[15] = new Area ('Hinchingbrooke CP'   ,'Huntingdon'    ,'TL222719','1:7500'         ,'A4'  ,'maps/hinching.gif'  ,571,316,'Parkland with some wooded areas.<BR>Suitable for small events.');
myarea[16] = new Area ('Maulden Woods'       ,'Clophill'      ,'TL074392','1:10000'        ,'A4'  ,'maps/maulden.gif'   ,482,507,'Varied contoured woodland on the Greensands Ridge.<BR>Suitable for District events.');
myarea[17] = new Area ('Mildenhall North'    ,'Mildenhall'    ,'TL735752','1:10000'        ,'A4'  ,'maps/milden_n.gif'  ,880,287,'Runnable coniferous woodland of varying ages.  Seperated from Mildenhall South by the A11.<BR>Suitable for events up to Regional.');
myarea[18] = new Area ('Mildenhall South'    ,'Mildenhall'    ,'TL745740','1:10000'        ,'A4'  ,'maps/milden_s.gif'  ,883,297,'Runnable coniferous woodland and heathland with some contour detail.  Seperated from Mildenhall North by the A11.<BR>Suitable for Ltd District events.');
myarea[19] = new Area ('Milton CP'           ,'Cambridge'     ,'TL476621','1:5000'         ,'A5'  ,'maps/milton.gif'    ,725,367,'Parkland north of Cambridge with plenty of water.<BR>Suitable for small events.');
myarea[20] = new Area ('Morkery Wood'        ,'Castle Bytham' ,'SK950185','1:10000'        ,'A4'  ,'maps/morkery.gif'   ,415, 33,'Not currently used due to extensive felling.');
myarea[21] = new Area ('Portholme'           ,'Huntingdon'    ,'TL238714','1:7500'         ,'A4'  ,'maps/portholme.gif' ,587,310,'At 257 acres it is the largest meadow in England.<BR>Suitable for small events.');
myarea[22] = new Area ('Priory Park'         ,'Bedford'       ,'TL071494','1:7500'         ,'A4'  ,'maps/priory.gif'    ,486,445,'Parkland with a large lake and canoe slalom.<BR>Suitable for small events.');
myarea[23] = new Area ('Rowney Warren'       ,'Shefford'      ,'TL123403','1:10000'        ,'A4'  ,'maps/rowney.gif'    ,514,498,'Well contoured and varied coniferous woodland.  Used for the WRE and UKCup MiddleRace in 2006.<BR>Suitable for events up to District.');
myarea[24] = new Area ('Rowney Wood'         ,'Saffron Walden','TL567344','1:7500'         ,'A4'  ,'maps/rowneywood.gif',782,536,'Small wooded area of variable runnability.<BR>Suitable for small events.');
myarea[25] = new Area ('Santon Downham'      ,'Brandon'       ,'TL816876','1:15000'        ,'A4'  ,'maps/santond.gif'   ,926,221,'CUOC area.<BR>Block coniferous woodland in Therford Forest.<BR>When combined with Warren Wood can support a Regional event.');
myarea[26] = new Area ('Therfield Heath'     ,'Royston'       ,'TL348406','1:10000'        ,'A4'  ,'maps/therfield.gif' ,642,501,'Contoured heathland with some wooded areas.  Area shared by many sports including golf and archery.<BR>Suitable for Ltd District events.');
myarea[27] = new Area ('Thetford Warren'     ,'Thetford'      ,'TL839842','1:15000'        ,'A4'  ,'maps/thetford.gif'  ,932,240,'Block coniferous woodland in Therford Forest.<BR>When combined with High Lodge can support a Regional event.');
myarea[28] = new Area ('Wandlebury CP'       ,'Cambridge'     ,'TL492533','1:7500'         ,'A4'  ,'maps/wandlebury.gif',733,413,'Parkland with some wooded areas.<BR>Suitable for small events.<BR>Has a permanent course, maps available from the on-site centre. <a href="http://www.cpswandlebury.org/page2.html">Wandlebury CP</a>');
myarea[29] = new Area ('Warden Warren'       ,'Old Warden'    ,'TL138441','1:7500'         ,'A4'  ,'maps/warden.gif'    ,529,477,'Well contoured, runnable wood and parkland in the grounds of Shuttleworth College.');
myarea[30] = new Area ('Warren Wood'         ,'Thetford'      ,'TL834854','1:15000'        ,'A4'  ,'maps/warren.gif'    ,942,230,'Block coniferous woodland in Therford Forest.<BR>When combined with Santon Downham can support a Regional event.');
myarea[31] = new Area ('Wimpole Hall'        ,'Royston'       ,'TL343511','1:10000'        ,'A4'  ,'maps/wimpole.gif'   ,640,432,'Contoured parkland in the grounds of Wimpole Hall.<BR>Suitable for Ltd District events.');
myarea[32] = new Area ('zzzz'                ,''              ,''        ,''               ,''    ,''                   ,'' ,'' ,'');

months[1]  = "Jan";
months[2]  = "Feb";
months[3]  = "Mar";
months[4]  = "Apr";
months[5]  = "May";
months[6]  = "Jun";
months[7]  = "Jul";
months[8]  = "Aug";
months[9]  = "Sep";
months[10] = "Oct";
months[11] = "Nov";
months[12] = "Dec";

myevents[0]  = new Events ('ADb7','High Ash'         ,'District & EAGAL'        ,'2007','2' ,'24','next_highash.htm');
myevents[1]  = new Events ('AOb7','Wandlebury CP'    ,'Taster'                  ,'2007','3' ,'10','');
myevents[2]  = new Events ('ASb7','Coe Fen'          ,'SMILE'                   ,'2007','4' ,'21','');
myevents[3]  = new Events ('AOb7','Warren Wood'      ,'Chasing Sprint'          ,'2007','4' ,'29','');
myevents[4]  = new Events ('ASb7','Wandlebury CP'    ,'SMILE'                   ,'2007','5' ,'13','');
myevents[5]  = new Events ('ASb7','Therfield Heath'  ,'SMILE'                   ,'2007','6' ,'3' ,'');
myevents[6]  = new Events ('ASb7','Milton CP'        ,'SMILE'                   ,'2007','6' ,'16','');
myevents[7]  = new Events ('ASb7','Wimpole Hall'     ,'SMILE'                   ,'2007','7' ,'1' ,'');
myevents[8]  = new Events ('AOb7','Hinchingbrooke CP','Try-O'                   ,'2007','9' ,'16','');
myevents[9]  = new Events ('ADb7','Mildenhall North' ,'District & YBT Qualifier','2007','10','21','');
myevents[10] = new Events ('ADb7','Rowney Warren'    ,'District'                ,'2007','11','18','');
myevents[11] = new Events ('ADb7','Maulden Woods'    ,'District'                ,'2007','12','16','');
myevents[12] = new Events ('','zzzz','','2007','','','');
myevents[13] = new Events ('','','','2007','','','');
myevents[14] = new Events ('','','','2007','','','');
myevents[15] = new Events ('','','','2007','','','');
myevents[16] = new Events ('','','','2007','','','');
myevents[17] = new Events ('','zzzz','zzzz','2000','1','1','');
}
