NAME = new Array(400);
ADDRESS=new Array(400);
COMMENT=new Array(400);
menun=0;
loc=location.href;
section=0;

function enlargeimages()
{
   for(x=0;x<document.images.length;x++)
   {
      i=document.images[x].src
      if((       i.indexOf("files/")>0       )   &&     ((  i.indexOf("jpg")>0)||  (i.indexOf("gif")>0)))
      {
         ii=document.images[x].src.split("/");
//alert(ii[0]+"//"+ii[2] + "/" +ii[3] + "large/" + ii[4]);
        document.images[x].src=ii[0]+"//"+ii[2] + "/" +ii[3] + "large/" + ii[4];
        if(document.images[x].width==300){document.images[x].width=800;}
      }
   }
}   
   
function embedsound(soundfile)
{
document.write("<embed src='http://www.odeo.com/flash/audio_player_standard_gray.swf' ");
document.write("quality='low' width='300' height='52' allowScriptAccess='always' wmode='transparent' ");
document.write("type='application/x-shockwave-flash' flashvars='valid_sample_rate=true&external_url="+soundfile+"' " );
document.write("pluginspage='http://www.macromedia.com/go/getflashplayer'> </embed>");
document.close();
}

function index(name,address,comment)
{
   NAME[menun]=name;
   ADDRESS[menun]=address;
   COMMENT[menun]=comment; if(comment==null){ COMMENT[menun]=name;}
   if(loc.search(address)!=-1){section=menun;}
   menun++; 
};

index("SEVEN SPRINGS","s02390.htm","from Cricklade to the Seven Springs (Churn) Source")
index("THAMES HEAD","s02380.htm","from Cricklade to the Thames Head Source")
index("SOURCE?","s02370.htm","There are at least two sources")
index("Cricklade","s02360.htm","A419 to Cricklade Bridge")
index("A419 Br","s02350.htm","from A419 Bridge, Cricklade to Cricklade High Street Bridge")
index("Marston Meysey","s02340.htm","Marston Meysey to below A419 Bridge")
index("Castle Eaton Br","s02330.htm","Castle Eaton Bridge to below Marston Meysey")
index("Kempsford","s02320.htm","Kempsford to below Castle Eaton")
index("Hannington Br","s02310.htm","Hannington Bridge to below Kempsford")
index("Inglesham","s02300.htm","Inglesham to below Hannington Bridge")
index("LIMIT","s02290.htm","the Limit of Navigation")
index("Marina Slip","s02280.htm","Lechlade Marina Slipway")
index("Halfpenny Br","s02270.htm","Lechlade Halfpenny Bridge")
index("ST JOHNS LOCK","s02260.htm","St Johns Lock, Lechlade")
index("St Johns Br","s02250.htm","St Johns Bridge, Lechlade")
index("Trout Inn","s02240.htm","The Trout Inn, Lechlade")
index("Bloomers Hole Fb","s02230.htm","Bloomers Hole Footbridge, Lechlade")
index("BUSCOT LOCK","s02220.htm","Buscot Lock")
index("Eaton Fb","s02210.htm","Eaton Footbridge")
index("Kelmscott","s02200.htm","Kelmscott")
index("Eaton Hastings","s02190.htm","Eaton Hastings")
index("GRAFTON LOCK","s02180.htm","Grafton Lock")
index("Radcot Old Br","s02170.htm","Radcot Old Bridge")
index("Radcot New Br","s02160.htm","Radcot New Bridge")
index("Swan Inn","s02150.htm","The Swan Inn, Radcot")
index("Radcot Cradle Fb","s02140.htm","Radcot Cradle Footbridge")
index("RADCOT LOCK","s02130.htm","Radcot Lock")
index("Old Mans Fb","s02120.htm","Old Mans Footbridge")
index("RUSHEY LOCK","s02110.htm","Rushey Lock")
index("Tadpole Br","s02100.htm","Tadpole Bridge")
index("Trout Inn","s02090.htm","The Trout Inn, Tadpole")
index("Tenfoot Fb","s02080.htm","Tenfoot Footbridge")
index("Shifford Fb","s02070.htm","Shifford Footbridge")
index("SHIFFORD LOCK","s02060.htm","Shifford Lock")
index("below Shifford","s02050.htm","below Shifford Lock")
index("River Windrush","s02040.htm","River Windrush at Newbridge")
index("NewBr","s02010.htm","Newbridge")
index("Harts Fb","s02000.htm","Harts Footbridge")
index("NORTHMOOR LOCK","s01990.htm","Northmoor Lock")
index("Arks Weir Site","s01980.htm","Site of Arks Weir")
index("Bablock Hythe Slip","s01970.htm","Bablock Hythe Slipway")
index("Stanton Harcourt","s01960.htm","Stanton Harcourt")
index("Farmoor Reservoir","s01950.htm","Farmoor Reservoir")
index("PINKHILL LOCK","s01940.htm","Pinkhill Lock")
index("Oxford Cruisers","s01930.htm","Oxford Cruisers Boatyard")
index("Swinford Br","s01920.htm","Swinford Bridge (Eynsham)")
index("EYNSHAM LOCK","s01910.htm","Eynsham Lock")
index("River Evenlode","s01900.htm","River Evenlode")
index("KINGS LOCK","s01890.htm","Kings Lock")
index("Thames Br","s01880.htm","Thames Bridge")
index("Godstow Br","s01870.htm","Godstow Bridge")
index("Godstow Nunnery","s01860.htm","Godstow Nunnery")
index("GODSTOW LOCK","s01850.htm","Godstow Lock")
index("Trout Inn","s01840.htm","The Trout Inn Godstow")
index("Perch Inn","s01830.htm","The Perch Inn, Binsey")
index("Bossoms Boatyard","s01820.htm","Bossoms Boatyard, Medley")
index("Medley Fb","s01810.htm","Medley Footbridge")
index("Medley Weir Site","s01800.htm","Medley Weir Site")
index("OXFORD CANAL","s02440.htm","Oxford Canal Round Trip from Folly Bridge up Canal and across to Kings Lock and back via Godstow")
index("OXFORD OLD RIVER","s01790.htm","Various puntable Oxford rivers")
index("Four Rivers","s01780.htm","Four rivers - a river crossroads")
index("Osney Br","s01770.htm","Osney Road Bridge")
index("OSNEY LOCK","s01760.htm","Osney Lock")
index("Osney Marina","s01750.htm","Osney Marina")
index("Bullstake Stream","s02400.htm","Bullstake Stream from the River towards Hinksey")
index("Osney R Br","s01740.htm","Osney Railway Bridges")
index("Castle Weir stream","s01730.htm","Castle Weir Stream")
index("Osney Fb","s01720.htm","Osney Footbridge (was Gasworks Bridge")
index("Oxford Fb","s01710.htm","Oxford Footbridge")
index("Bacons Folly","s01700.htm","Site of Bacons Folly, Roger Bacon")
index("Folly Br","s01690.htm","Folly Bridge")
index("Oxford Rowing","s01630.htm","Oxford Rowing - prints and history")
index("Punting","s01675.htm","Punting, where and how")
index("Salters Steamers","s01681.htm","Salters Steamers")
index("Head of River","s01680.htm","The Head of the River pub, Oxford")
index("Islip","s02430.htm","Victoria Arms to Islip (punt limit on the Cherwell)")
index("Bardwell Rd to Victoria Arms","s02420.htm","Bardwell Rd to Victoria Arms on the Cherwell")
index("Rollers to Bardwell Rd","s02414.htm","Boat Rollers to below Bardwell Rd on the River Cherwell")
index("Mesopotamia","s02413.htm","Above Magdalen Bridge. Magdalen Water to the boat rollers on the River Cherwell")
index("Magdalen Bridge","s02412.htm","Magdalen Bridge on the River Cherwell")
index("Lower Cherwell","s02410.htm","River Cherwell from the boathouses on the Isis to below Magdalen Bridge")
index("Oxford Boathouses","s01670.htm","Oxford Boathouses on the Isis")
index("Riverside Slip","s01660.htm","Riverside Slipway below Donnington Road Bridge")
index("Donnington Br","s01650.htm","Donnington Road Bridge")
index("Isis Inn","s01640.htm","Isis Inn and the Oxford Academicals Boathouse")
index("IFFLEY LOCK","s01620.htm","Iffley Lock")
index("Iffley Mill","s01610.htm","Iffley Mill")
index("Isis Br","s01600.htm","Isis Bridge")
index("Kennington R Br","s01590.htm","Kennington Railway Bridge")
index("Rose Island","s01580.htm","Rose Island")
index("SANDFORD LOCK","s01570.htm","Sandford Lock")
index("Sandford Lasher","s01569.htm","Sandford Lasher (Weir)")
index("Radley Boats","s01560.htm","Radley College Boathouses")
index("Nuneham Park","s01550.htm","Nuneham Park")
index("Nuneham","s01540.htm","Nuneham")
index("Nuneham R Br","s01530.htm","Nuneham Railway Bridge")
index("ABINGDON LOCK","s01520.htm","Abingdon Lock")
index("Abingdon Br","s01510.htm","Abingdon Bridge")
index("Abingdon","s01500.htm","Abingdon")
index("Abingdon Slip","s01490.htm","Abingdon Marina Slipway")
index("Culham Cut Fb","s01480.htm","Culham Cut Footbridge - restored canal and proposed reservoir")
index("CULHAM LOCK","s01470.htm","Culham Lock")
index("Sutton Br","s01460.htm","Sutton Bridge")
index("Sutton Courtenay","s01450.htm","Sutton Courtenay")
index("Appleford R Br","s01440.htm","Appleford Railway Bridge")
index("CLIFTON LOCK","s01430.htm","Clifton Lock")
index("Long Wittenham","s01420.htm","Long Wittenham")
index("Barley Mow Inn","s01410.htm","The Barley Mow Inn")
index("Clifton Hampden Br","s01400.htm","Clifton Hampden Bridge")
index("Clifton Hampden Church","s01390.htm","Clifton Hampden Church")
index("Clifton Hampden","s01380.htm","Clifton Hampden")
index("Burcot","s01375.htm","Burcot")
index("DAYS LOCK","s01370.htm","Days Lock")
index("R.Thame","s01360.htm","River Thame")
index("Shillingford Br","s01350.htm","Shillingford Bridge")
index("BENSON LOCK","s01340.htm","Benson Lock")
index("Wallingford Br","s01330.htm","Wallingford Bridge")
index("Winterbrook Br","s01320.htm","Winterbrook Bridge")
index("Papist Way Slip","s01310.htm","Papist Way Slipway")
index("Moulsford R Br","s01300.htm","Moulsford Railway Bridge")
index("Moulsford","s01290.htm","Moulsford, The Beetle and Wedge Inn")
index("CLEEVE LOCK","s01280.htm","Cleeve Lock")
index("Swan Inn","s01271.htm","The Swan Inn at Streatley")
index("GORING LOCK","s01270.htm","Goring Lock")
index("Goring Br","s01260.htm","Goring Bridge (to Streatley)")
index("Goring Gap","s01250.htm","The Goring Gap")
index("Gatehampton R Br","s01240.htm","Gatehampton Railway Bridge")
index("Hartswood Reach","s01230.htm","Hartswood Reach")
index("WHITCHURCH LOCK","s01220.htm","Whitchurch Lock")
index("Whitchurch Br","s01210.htm","Whitchurch Bridge (to Pangbourne)")
index("Hardwick House","s01200.htm","Hardwick House")
index("MAPLEDURHAM LOCK","s01190.htm","Mapledurham Lock and House")
index("Purley","s01180.htm","Purley")
index("Reading Slip","s01170.htm","Reading Slipway below Caversham Bridge")
index("Caversham Br","s01160.htm","Caversham Bridge")
index("Reading Br","s01150.htm","Reading Bridge")
index("CAVERSHAM LOCK","s01140.htm","Caversham Lock")
index("K&A Canal","s01130.htm","Kennet & Avon Canal, Reading")
index("Dreadnought Reach","s01120.htm","Dreadnought Reach, Reading")
index("SONNING LOCK","s01110.htm","Sonning Lock")
index("Sonning Br","s01100.htm","Sonning Bridge")
index("SHIPLAKE LOCK","s01090.htm","Shiplake Lock")
index("R.Loddon","s01080.htm","River Loddon and St Patricks Stream")
index("Shiplake R Br","s01070.htm","Shiplake Railway Bridge") 
index("Wargrave","s01060.htm","Wargrave and the George and Dragon Inn")
index("Bolney","s01050.htm","Bolney")
index("Hennerton Backwater","s01040.htm","Hennerton Backwater")
index("MARSH LOCK","s01030.htm","Marsh Lock")
index("Rowing Museum","s01020.htm","Site of Hobbs slipway, Henley Rowing Museum")
index("Hobbs Boatyard","s01010.htm","Hobbs Boatyard Henley")
index("Henley Public Landing","s01000.htm","Henley Public Landing")
index("Angel on Br","s00990.htm","The Angel on the Bridge at Henley")
index("Henley Br","s00980.htm","Henley Bridge")
index("Red Lion Inn","s00970.htm","The Red Lion at Henley")
index("Leander Club","s00960.htm","The Leander Club, Henley")
index("Henley Slip","s00950.htm","Henley Slipway")
index("Phyllis Court","s00940.htm","Phyllis Court private club")
index("Henley Royal Regatta","s00930.htm","Henley Royal Regatta - short history")
index("Remenham","s00920.htm","Remenham")
index("Fawley Court","s00910.htm","Fawley Court")
index("Temple Island","s00900.htm","Temple Island, Henley")
index("HAMBLEDEN LOCK","s00890.htm","Hambleden Lock")
index("Aston Slip","s00880.htm","Aston Slipway (both sides)")
index("Culham Court","s00870.htm","Culham Court")
index("Medmenham","s00860.htm","Medmenham Abbey")
index("HURLEY LOCK","s00850.htm","Hurley Lock")
index("TEMPLE LOCK","s00840.htm","Temple Lock")
index("Bisham","s00830.htm","Bisham Church and Abbey")
index("Marlow Br","s00820.htm","Marlow Suspension Bridge")
index("MARLOW LOCK","s00810.htm","Marlow Lock")
index("A404 Br","s00800.htm","A404 Bridge, Marlow")
index("Quarry Woods","s00795.htm","Quarry Woods belwo Marlow")
index("Bourne End R  & Fb","s00790.htm","Bourne End Railway and footbridge")
index("Cookham Br","s00780.htm","Cookham Bridge")
index("Cookham Slip","s00770.htm","The Ferry Inn and Slipway, Cookham")
index("COOKHAM LOCK","s00760.htm","Cookham Lock")
index("Hedsor","s00751.htm","Hedsor (above Cookham Lock)")
index("Cliveden House & Reach","s00750.htm","Cliveden House and Reach")
index("BOULTERS LOCK","s00740.htm","Boulters Lock")
index("Below Boulters","s00730.htm","below Boulters Lock, Boulters Restaurant")
index("Maidenhead Br","s00720.htm","Maidenhead Bridge")
index("Maidenhead R Br","s00710.htm","Maidenhead Railway Bridge")
index("BRay Slip","s00700.htm","Bray Slipway")
index("BRAY LOCK","s00690.htm","Bray Lock")
index("New Thames Br","s00680.htm","New Thames Bridge")
index("Monkey Island","s00670.htm","Monkey Island")
index("Summerleaze Fb","s00660.htm","Summerleaze Footbridge")
index("York Cut","s00655.htm","York Cut (waterways around Maidenhead)")
index("Dorney Lake","s00650.htm","Dorney Lake - the Olympic Rowing Course")
index("BOVENEY LOCK","s00640.htm","Boveney Lock")
index("Elizabeth Br","s00630.htm","Elizabeth Bridge, Windsor")
index("Windsor Slip","s00620.htm","Windsor Slipway just below Elizabeth Bridge Windsor")
index("Windsor R Br","s00610.htm","Windsor Railway Bridge")
index("Windsor Br","s00600.htm","Windsor Bridge")
index("Eton","s00590.htm","Eton College")
index("ROMNEY LOCK","s00580.htm","Romney Lock")
index("Black Potts R Br","s00570.htm","Black Potts Railway Bridge")
index("Victoria Br","s00560.htm","Victoria Bridge")
index("Datchet","s00550.htm","Datchet")
index("Albert Br","s00540.htm","Albert Bridge")
index("OLD WINDSOR LOCK","s00530.htm","Old Windsor Lock")
index("Magna Carta Island","s00520.htm","Magna Carta Island and Runnymede")
index("BELL WEIR LOCK","s00510.htm","Bell Weir Lock")
index("Runnymede Br","s00500.htm","Runnymede Bridge")
index("Staines Br","s00490.htm","Staines Bridge")
index("Staines R Br","s00480.htm","Staines Railway Bridge")
index("PENTON HOOK LOCK","s00470.htm","Penton Hook Lock")
index("Laleham Slip","s00460.htm","Laleham Slipway")
index("M3 Br","s00450.htm","M3 Bridge")
index("CHERTSEY LOCK","s00440.htm","Chertsey Lock")
index("Chertsey Br","s00430.htm","Chertsey Bridge")
index("SHEPPERTON LOCK","s00420.htm","Shepperton Lock")
index("Desborough Cut","s00410.htm")
index("Walton Br","s00400.htm")
index("SUNBURY LOCK","s00390.htm")
index("MOLESEY LOCK","s00380.htm")
index("Hampton Br","s00370.htm")
index("Ditton Slipway","s00360.htm")
index("Kingston Br","s00350.htm")
index("Kingston R Br","s00340.htm")
index("TEDDINGTON LOCKS","s00330.htm")
index("Richmond Br","s00320.htm")
index("Richmond R Br","s00310.htm")
index("Twickenham Br","s00300.htm")
index("RICHMOND LOCK","s00290.htm")
index("Kew Br","s00280.htm")
index("Kew R Br","s00270.htm")
index("Chiswick Br","s00260.htm")
index("Barnes R Br","s00250.htm")
index("Chiswick Eyot","s00241.htm")
index("Hammersmith Br","s00240.htm")
index("Boatrace 2010s","s00231r.htm")
index("Boatrace 2000s","s00231q.htm")
index("Boatrace 1990s","s00231p.htm")
index("Boatrace 1980s","s00231o.htm")
index("Boatrace 1970s","s00231n.htm")
index("Boatrace 1960s","s00231m.htm")
index("Boatrace 1950s","s00231l.htm")
index("Boatrace 1940s","s00231k.htm")
index("Boatrace 1930s","s00231j.htm")
index("Boatrace 1920s","s00231i.htm")
index("Boatrace 1910s","s00231h.htm")
index("Boatrace 1900s","s00231g.htm")
index("Boatrace 1890s","s00231f.htm")
index("Boatrace 1880s","s00231e.htm")
index("Boatrace 1870s","s00231d.htm")
index("Boatrace 1860s","s00231c.htm")
index("Boatrace 1850s","s00231b.htm")
index("Boatrace 1845-49","s00231a3.htm")
index("Boatrace 1836-42","s00231a2.htm")
index("Boatrace 1829","s00231a.htm")
index("Putney Br","s00230.htm")
index("Fulham R Br","s00220.htm")
index("Wandsworth Br","s00210.htm")
index("Battersea R Br","s00200.htm")
index("Battersea Br","s00190.htm")
index("Albert Br","s00180.htm")
index("Chelsea Br","s00170.htm")
index("Victoria R Br","s00160.htm")
index("Vauxhall Br","s00150.htm")
index("Lambeth Br","s00140.htm")
index("Westminster Br","s00130.htm")
index("Charing Cross R Br","s00120.htm")
index("Waterloo Br","s00110.htm")
index("Blackfriars Br","s00100.htm")
index("Blackfriars R Br","s00090.htm")
index("Millenium Fb","s00080.htm")
index("Southwark Br","s00070.htm","")
index("The Great Stink","s00065.htm","The Great Stink, Victorian (and earlier Pollution")
index("Cannon St R Br","s00060.htm","Cannon Street Railway Bridge")
index("Frost Fairs","s00051.htm","Frost Fairs on the frozen river")
index("Doggetts","s00049L.htm","Doggett's Coat and Badge Race")
index("Great River Race","s00049I.htm","The Great River Race")
index("London Br 1967-","s00049e.htm","London Bridge since 1967")
index("London Br 1825-1967","s00049d.htm","London Bridge 1825-1967")
index("London Br 1666-1825","s00049c.htm","London Bridge 1666-1825")
index("London Br Fire 1666","s00049b.htm","London Bridge fire in 1666")
index("London Br -1666","s00049a.htm","London Bridge before 1666")
index("Custom House","s00048.htm","The Custom House")
index("Tower Br","s00040.htm","From Tower Bridge to below Custom House")
index("Woolwich","s00032.htm","From Barrier to below Tower Bridge")
index("Barrier","s00031.htm","The Thames Barrier")
index("TIDES","s00030.htm","Live Thames Tides & Barrier Calculations")
index("GRAPHS","barriercontrol.htm","Graphs for barrier (opens new page)")
index("GBTIDES","gbtides.htm","Live Tides of Great Britain (USE INTERNET EXPLORER ONLY! opens on a new page)")
index("Shipping","s00029.htm","Live Shipping Maps from AIS")
index("QEII Br","s00020.htm","QEII Bridge to Barrier")
index("PLA","s00015.htm","Port of London Authority below QEII Bridge")
index("Estuary","s00010.htm","Thames Estuary")
index("Introduction","index.htm","Introduction to this site")
//alert(INDEX[100][1]+" "+INDEX[100][2])
menun--
currentsection=section

function movesection(ms)
{
   var csms=currentsection+ms; if(csms<0){csms=0;};if(csms>menun){csms=menun};
   document.location=ADDRESS[csms]
}

function finder(f,sought)
{
   csf=currentsection+f 
   if(f==-1)
   {  for(var i=csf; i>0; i--){if(NAME[i].search(sought)!=-1){document.location=ADDRESS[i];break;}}
   }else
    {  for(var i=csf; i<menun; i++){if(NAME[i].search(sought)!=-1){document.location=ADDRESS[i];break;}}
   }  
}

function river()
{
   var R=new Array(3,12,36,70,148,189,216,270,278);
   var N=new Array("Cricklade","Lechlade","Newbridge","Oxford","Henley","Windsor","Teddington","London","Estuary")
   line="";
   for ( var r=0; r<R.length; r++ )
   {
      line+="<a href='"+ADDRESS[R[r]]+"'>"+N[r]+"  "
   }
document.getElementById("menu").innerHTML=line
}




function r1(r)
{
   section=r;menu(0);
}

function menu(i) 
{
   section=section+i;//i may be negative
   if(section<=0){section=4;}
   if(section>=menun){section=menun-4;}
   var m1=section-4;
   if(m1<0){m1=0}
   var m2=m1+8;if(m2>menun){m2=menun;m1=menun-8}
   var line="";
   for ( var i=m1; i <=m2; i++ )
   {
      line+="<font size=2><a title='"+COMMENT[i]+"' ";
      if(ADDRESS[i]=="gbtides.htm") { line+="target='tides' ";}
      if(ADDRESS[i]=="barriercontrol.htm") { line+="target='graphs' ";}
      if(NAME[i]=="Shipping") { line+="target='shipping' ";}
      
      
      line+="href='"+ADDRESS[i]+"'>"+NAME[i]+"</a>        "
   }
line+=currentsection
line+="<br>next upstream: "
if(currentsection>13){ line+="<span onclick='finder(-1,\"LOCK\")'><u>LOCK</u></span>;  ";}
line+="<span onclick='finder(-1,\"Br\")'><u>BRIDGE</u></span>;  "
line+="<span onclick='movesection(-1)'><u>SECTION</u></span>.  "
line+="<span onclick='menu(-1000)'><img title='Move menu upstream to Source.  Key left for upstream, Key right for downstream' src='LLL.GIF' width=20px height=20px></span>  "
line+="<span onclick='menu(-8)'><img title='Move menu upstream 8 sections.  Key left for upstream, Key right for downstream' src='LL.GIF' width=20px height=20px></span>  "
line+="<span onclick='menu(-1)'><img title='Move menu upstream 1 section.  Key left for upstream, Key right for downstream' src='L.GIF' width=20px height=20px></span>  "
line+="<span onclick='river()'><img title='Show whole river menu.  Key left for upstream, Key right for downstream' src='faviconT.jpg' width=20px height=20px></span>  "
line+="<span onclick='menu(1)'><img title='Move menu downstream 1 section.  Key left for upstream, Key right for downstream' src='R.GIF' width=20px height=20px></span>  "
line+="<span onclick='menu(8)'><img title='Move menu downstream 8 sections.  Key left for upstream, Key right for downstream' src='RR.GIF' width=20px height=20px></span>   "
line+="<span onclick='menu(1000)'><img title='Move menu downstream to Estuary.  Key left for upstream, Key right for downstream' src='RRR.GIF' width=20px height=20px></span>   "
line+="next downstream: "
line+="<span onclick='movesection(1)'><u>SECTION</u></span>;  "
line+="<span onclick='finder(1,\"Br\")'><u>BRIDGE</u></span>;  "
if(currentsection<220){ line+="<span onclick='finder(1,\"LOCK\")'><u>LOCK</u></span>  ";}else{line+="<a href='s00030.htm'>Online Thames Tides</a>   "}

document.getElementById("menu").innerHTML=line
}

document.onkeyup = KeyCheck;  
function KeyCheck(e){var KeyID = (window.event) ? event.keyCode : e.keyCode;
//alert(KeyID)// a=65 and A=65  leftarrow=37  right arrow=39
//if((KeyID>64)&&(KeyID<91)){document.location="ref.htm#"+AZ.charAt(KeyID-65) };
if(KeyID==37){menu(-8);};
if(KeyID==39){menu(8);};
};