function wS(text)
{
window.status=text
return true
}
function evFont()
{
document.write('<FONT FACE="arial,helvetica,courier,*" SIZE="-1">')
}
function evEndFont()
{
document.write('</FONT>')
}
viTabStr = new Array("home",
"location",
"what\'s on",
"directory",
"times past",
"leisure",
"links",
"about us")
viLinkStr = new Array(8)
viLinkStr[0] = "index.htm"
viLinkStr[1] = "location.htm"
viLinkStr[2] = "whatsonthismonth.htm"
viLinkStr[3] = "directory.htm"
viLinkStr[4] = "timespast.htm"
viLinkStr[5] = "leisure.htm"
viLinkStr[6] = "links.htm"
viLinkStr[7] = "about.htm"
viMouseOver = new Array(8)
viMouseOver[0] = "Gargrave Home Page"
viMouseOver[1] = "Gargrave on the map"
viMouseOver[2] = "Gargrave events"
viMouseOver[3] = "Local services"
viMouseOver[4] = "Local History"
viMouseOver[5] = "Gargrave leisure"
viMouseOver[6] = "Links to other sites"
viMouseOver[7] = "Information about the site"
viMouseOut = new Array(8)
viMouseOut[0] = ""
viMouseOut[1] = ""
viMouseOut[2] = ""
viMouseOut[3] = ""
viMouseOut[4] = ""
viMouseOut[5] = ""
viMouseOut[6] = ""
viMouseOut[7] = ""
viBgColour = "#9900FF"
viFgColour = "#00ccff"
viFontFace = "arial,helvetica,courier,*"
viFontColour = "#000000"
function viHeader(viTabNo)
{
viTabNo--;
document.write('<CENTER><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0">')
document.write('<TR>')
for(i=0; i<viTabStr.length; i++)
{
if(i==viTabNo)
{
viColour = viBgColour
}
else
{
viColour = viFgColour
}
if(i!=viTabNo)
{
document.write('<TD ALIGN="CENTER" BGCOLOR="'+viColour+'" VALIGN="MIDDLE"><A HREF="'+viLinkStr[i]+'" ONMOUSEOVER="return wS(\''+viMouseOver[i]+'\')" ONMOUSEOUT="return wS(\''+viMouseOut[i]+'\')"><FONT FACE="'+viFontFace+'" COLOR="'+viFontColour+'" SIZE="-1">'+viTabStr[i]+'</FONT></A></TD>')
}
else
{
document.write('<TD ALIGN="CENTER" BGCOLOR="'+viColour+'" VALIGN="MIDDLE"><FONT FACE="'+viFontFace+'" COLOR="#ffffff" SIZE="-1">'+viTabStr[i]+'</FONT></TD>')
}
document.write('<TD BGCOLOR="#ffffff" VALIGN="top"><IMG BORDER="0" HEIGHT="20" SRC="transdot.gif" WIDTH="1"></TD>')
}
document.write('</TR><TR>')
for(i=0; i<viTabStr.length; i++)
{
if(i!=viTabNo)
{
document.write('<TD ALIGN="CENTER"><IMG BORDER="0" HEIGHT="8" width="8" SRC="bottomleftblue.gif"><IMG BORDER="0" HEIGHT="8" width="49" SRC="bluedot.gif"><IMG BORDER="0" HEIGHT="8" width="8" SRC="bottomrightblue.gif"></TD>')
}
else
{
document.write('<TD ALIGN="CENTER"><IMG BORDER="0" HEIGHT="8" width="8" SRC="bottomleftpurple.gif"><IMG BORDER="0" HEIGHT="8" width="49" SRC="purpledot.gif"><IMG BORDER="0" HEIGHT="8" width="8" SRC="bottomrightpurple.gif"></TD>')
}
document.write('<TD BGCOLOR="#ffffff" VALIGN="top"><IMG BORDER="0" HEIGHT="8" SRC="transdot.gif" WIDTH="1"></TD>')
}
document.write('</TR>')
document.write('</TABLE></CENTER>')
}
vBgColour = "#000000"
vFgColour = "#ff0000"
vFontFace = "arial,helvetica,courier,*"
function vFooter(viTabNo)
{
viTabNo--;
document.write('<CENTER><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0"><TR><TD ALIGN="CENTER">')
for(i=0; i<viTabStr.length; i++)
{
if(i == viTabNo)
{
vFontColour = vFgColour;
}
else
{
vFontColour = vBgColour;
}
if(i != viTabNo)
{
document.write('<A HREF="'+viLinkStr[i]+'" ONMOUSEOVER="return wS(\''+viMouseOver[i]+'\')" ONMOUSEOUT="return wS(\''+viMouseOut[i]+'\')">')
document.write('<FONT FACE="'+vFontFace+'" COLOR="'+vFontColour+'" SIZE="-1">'+viTabStr[i]+'</FONT>')
document.write('</A>')
}
else
{
document.write('<FONT FACE="'+vFontFace+'" COLOR="'+vFontColour+'" SIZE="-1">'+viTabStr[i]+'</FONT>')
}
if((i+1) < viTabStr.length)
{
document.write('<IMG SRC="blackdot.gif" WIDTH="1" HEIGHT="14" ALT="" ALIGN="MIDDLE" HSPACE="5">')
}
}
document.write('</TD></TR></TABLE></CENTER>')
document.write('')
}
vniTabStr = new Array("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" )
vniTabLinkStr = new Array("whatsonjanuary.htm",
"whatsonfebruary.htm",
"whatsonmarch.htm",
"whatsonapril.htm",
"whatsonmay.htm",
"whatsonjune.htm",
"whatsonjuly.htm",
"whatsonaugust.htm",
"whatsonseptember.htm",
"whatsonoctober.htm",
"whatsonnovember.htm",
"whatsondecember.htm")
vniTabMouseOver = new Array("Events in January",
"Events in February",
"Events in March",
"Events in April",
"Events in May",
"Events in June",
"Events in July",
"Events in August",
"Events in September",
"Events in October",
"Events in November",
"Events in ")
vniBgColour = "#9900FF"
vniFgColour = "#00ccff"
vniFontFace = "arial,helvetica,courier,*"
vniFontColour = "#000000"
function vniHeader(item)
{
colour = vniFgColour
document.write('<CENTER><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" CLASS="submenu">')
document.write('<TR>')
for(i=0; i<vniTabStr.length; i++)
{
document.write('<TD ALIGN="CENTER" WIDTH="40" BGCOLOR="#ffffff">')
if(i != item)
{
document.write('<IMG BORDER="0" HEIGHT="8" width="8" SRC="topleftblue.gif"><IMG BORDER="0" HEIGHT="8" width="24" SRC="bluedot.gif"><IMG BORDER="0" HEIGHT="8" width="8" SRC="toprightblue.gif">')
}
else
{
document.write('<IMG BORDER="0" HEIGHT="8" width="8" SRC="topleftpurple.gif"><IMG BORDER="0" HEIGHT="8" width="24" SRC="purpledot.gif"><IMG BORDER="0" HEIGHT="8" width="8" SRC="toprightpurple.gif">')
}
document.write('</TD>')
document.write('<TD BGCOLOR="#ffffff" VALIGN="top"><IMG BORDER="0" HEIGHT="8" SRC="transdot.gif" WIDTH="1"></TD>')
}
document.write('</TR>')
document.write('<TR>')
for(i=0; i<vniTabStr.length; i++)
{
if(i==item)
{
colour = vniBgColour
}
else
{
colour = vniFgColour
}
document.write('<TD ALIGN="CENTER" WIDTH="40" BGCOLOR="'+colour+'">')
if(i != item)
{
document.write('<A HREF="'+vniTabLinkStr[i]+'" ONMOUSEOVER="return wS(\''+vniTabMouseOver[i]+'\')" ONMOUSEOUT="return wS(\'\')" CLASS="submenu">')
document.write(vniTabStr[i]+'</A>')
}
else
{
document.write(vniTabStr[i])
}
document.write('</TD>')
document.write('<TD BGCOLOR="#ffffff" VALIGN="top"><IMG BORDER="0" HEIGHT="19" SRC="transdot.gif" WIDTH="1"></TD>')
}
document.write('</TR></TABLE></CENTER>')
document.write('<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="500">')
document.write('<TR>')
document.write('   <TD BGCOLOR="'+vniFgColour+'"><IMG BORDER="0" HEIGHT="3" SRC="transdot.gif" WIDTH="50"></TD>')
document.write('</TR>')
document.write('<TR>')
document.write('   <TD BGCOLOR="'+vniBgColour+'"><IMG BORDER="0" HEIGHT="3" SRC="transdot.gif" WIDTH="50"></TD>')
document.write('</TR>')
document.write('<TR>')
document.write('   <TD BGCOLOR="'+vniFgColour+'"><IMG BORDER="0" HEIGHT="3" SRC="transdot.gif" WIDTH="50"></TD>')
document.write('</TR>')
document.write('<TR>')
document.write('   <TD BGCOLOR="#ffffff"><IMG BORDER="0" HEIGHT="3" SRC="transdot.gif" WIDTH="50"></TD>')
document.write('</TR>')
document.write('</TABLE>')
}
function subMenuTop(colour)
{
document.write('<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="90">')
document.write('<TBODY>')
document.write('<TR><TD BGCOLOR="#ffffff"><IMG BORDER="0" HEIGHT="8" width="8" SRC="topleftblue.gif"><IMG BORDER="0" HEIGHT="8" width="74" SRC="bluedot.gif"><IMG BORDER="0" HEIGHT="8" width="8" SRC="toprightblue.gif"></TD></TR>')
document.write('  <TR><TD ALIGN="CENTER" BGCOLOR="'+colour+'" VALIGN="TOP" CLASS="submenu">')
}
function subMenuBottom(colour)
{
document.write('  </TD>')
document.write('</TR>')
document.write('<TR><TD BGCOLOR="#ffffff"><IMG BORDER="0" HEIGHT="8" width="8" SRC="bottomleftblue.gif"><IMG BORDER="0" HEIGHT="8" width="74" SRC="bluedot.gif"><IMG BORDER="0" HEIGHT="8" width="8" SRC="bottomrightblue.gif"></TD></TR>')
document.write('</TBODY></TABLE>')
}
smTpStr = new Array("Times Past",
"Tom Airton",
"Bostocks",
"Slide Show",
"Tree Nails",
"Directory 1853",
"Golf Club",
"Good Wife",
"Yorkshire Birdman",
"Invasion",
"Wooding",
"Tree Nails II",
"Fire Drill",
"Gargrave fair 1849",
"Rice Caravans",
"Local Transport",
"River Aire",
"Gargrave Witch",
"Scottish Raiders")
smTpLinkStr = new Array("timespast.htm",
"tom_airton.htm",
"bostocks.htm",
"slideshow1.htm",
"treenails.htm",
"directory1853.htm",
"golfclub.htm",
"goodhousekeeping.htm",
"birdman.htm",
"the_manchester_regiment.htm",
"wooding.htm",
"wrecker.htm",
"fire_drill.htm",
"gargrave_fair_1849.htm",
"rice_caravans.htm",
"local_transport.htm",
"river_aire.htm",
"gargravewitch.htm",
"scottish-raiders.htm")
smTpMouseOver = new Array("Times Past home page",
"A short biography of Tom Airton",
"Bostock and Wombwells Menagerie",
"Some pictures of Old Gargrave",
"Description of tree nails used on the railways",
"The directory of gargrave trades people in 1853",
"Gargrave once had a golf club",
"Advice from 1955 on being a good wife",
"A man who flew with leather wings, a daredevil before his time.",
"Lancashire invades Yorkshire.",
"A memory of wood collection around WW2",
"More on tree nails used on the railways.",
"The Gargrave House fire drill duties.",
"An account of the Great Cattle Fair in 1849",
"A breif description of Rice Caravans of Goffa Mill",
"A short history of local transport in Gargrave",
"A recent history of river Aire management in Gargrave",
"A brief account of the witch trial in Gargrave",
"A collection of information describing the Scottish Raiders that reached the Gargrave area")
smTpColour = "#00ccff"
function subMenuTimesPast(item)
{
subMenuTop(smTpColour)
for(i=0; i<smTpStr.length; i++)
{
if(i != item)
{
document.write('<A HREF="'+smTpLinkStr[i]+'" ONMOUSEOVER="return wS(\''+smTpMouseOver[i]+'\')" ONMOUSEOUT="return wS(\'Times Past in Gargrave\')" CLASS="submenu">')
document.write(smTpStr[i]+'</A><BR>')
}
else
{
document.write(smTpStr[i]+'<BR>')
}
}
subMenuBottom(smTpColour)
}
smWonStr = new Array("News", "Church", "Events", "Rail", "Council", "Dales Bus")
smWonLinkStr = new Array("whatson.htm", "whatsonchurch.htm", "whatsonthismonth.htm", "whatsonrail.htm", "whatsoncouncil.htm", "whatsonbus.htm" )
smWonMouseOver = new Array("Local news", "St Andrews Church Gargrave", "Local Events", "Localised rail times", "Parish Council events", "Dales bus timetables" )
smWonColour = "#00ccff"
function subMenuWhatsOn(item)
{
subMenuTop(smWonColour)
for(i=0; i<smWonStr.length; i++)
{
if(i != item)
{
document.write('<A HREF="'+smWonLinkStr[i]+'" ONMOUSEOVER="return wS(\''+smWonMouseOver[i]+'\')" ONMOUSEOUT="return wS(\'\')" CLASS="submenu">')
document.write(smWonStr[i]+'</A><BR>')
}
else
{
document.write(smWonStr[i]+'<BR>')
}
}
subMenuBottom(smWonColour)
}
smWoStr = new Array("January",
"February",
"March",
"April",
"May",
"June",
"July",
"August",
"September",
"October",
"November",
"December")
smWoLinkStr = new Array("whatsonjanuary.htm",
"whatsonfebruary.htm",
"whatsonmarch.htm",
"whatsonapril.htm",
"whatsonmay.htm",
"whatsonjune.htm",
"whatsonjuly.htm",
"whatsonaugust.htm",
"whatsonseptember.htm",
"whatsonoctober.htm",
"whatsonnovember.htm",
"whatsondecember.htm")
smWoMouseOver = new Array("Events in January",
"Events in February",
"Events in March",
"Events in April",
"Events in May",
"Events in June",
"Events in July",
"Events in August",
"Events in September",
"Events in October",
"Events in November",
"Events in ")
smWoColour = "#00ccff"
function subMenuWhatsOff(item)
{
subMenuTop(smWoColour)
for(i=0; i<smWoStr.length; i++)
{
if(i != item)
{
document.write('<A HREF="'+smWoLinkStr[i]+'" ONMOUSEOVER="return wS(\''+smWoMouseOver[i]+'\')" ONMOUSEOUT="return wS(\'\')" CLASS="submenu">')
document.write(smWoStr[i]+'</A><BR>')
}
else
{
document.write(smWoStr[i]+'<BR>')
}
}
subMenuBottom(smWoColour)
}
smAbStr = new Array("About",
"Contact Us",
"Credits")
smAbLinkStr = new Array("about.htm",
"contact.htm",
"credits.htm")
smAbMouseOver = new Array("What gargrave.org.uk is all about",
"Get in touch",
"Other people whose work helped")
smAbColour = "#00ccff"
function subMenuAbout(item)
{
subMenuTop(smAbColour)
for(i=0; i<smAbStr.length; i++)
{
if(i != item)
{
document.write('<A HREF="'+smAbLinkStr[i]+'" ONMOUSEOVER="return wS(\''+smAbMouseOver[i]+'\')" ONMOUSEOUT="return wS(\'\')" CLASS="submenu">')
document.write(smAbStr[i]+'</A><BR>')
}
else
{
document.write(smAbStr[i]+'<BR>')
}
}
subMenuBottom(smWoColour)
}
smDirStr = new Array("Local",
"Internet")
smDirLinkStr = new Array("directory.htm",
"online-shopping.htm")
smDirMouseOver = new Array("Local directory of trades people",
"Internet directory")
smDirColour = "#00ccff"
function subMenuDirectory(item)
{
subMenuTop(smDirColour)
for(i=0; i<smDirStr.length; i++)
{
if(i != item)
{
document.write('<A HREF="'+smDirLinkStr[i]+'" ONMOUSEOVER="return wS(\''+smDirMouseOver[i]+'\')" ONMOUSEOUT="return wS(\'\')" CLASS="submenu">')
document.write(smDirStr[i]+'</A><BR>')
}
else
{
document.write(smDirStr[i]+'<BR>')
}
}
subMenuBottom(smWoColour)
}
smLeisStr = new Array("Clubs",
"Conundrum",
"Restoring Photos",
"Walks",
"Slide Walk 1",
"Slide Walk 2")
smLeisLinkStr = new Array("leisure.htm",
"conundrum.htm",
"mendingpictures.htm",
"leisurewalks.htm",
"walkslides1.htm",
"walkslides2.htm")
smLeisMouseOver = new Array("Clubs, societies and other leisure organisations",
"A geographical puzzle based in the village",
"Some techniques for restoring photographs using a PC",
"Some walks around Gargrave",
"Slideshow of short winter walk",
"Slideshow of short summer walk")
smLeisColour = "#00ccff"
function subMenuLeisure(item)
{
subMenuTop(smLeisColour)
for(i=0; i<smLeisStr.length; i++)
{
if(i != item)
{
document.write('<A HREF="'+smLeisLinkStr[i]+'" ONMOUSEOVER="return wS(\''+smLeisMouseOver[i]+'\')" ONMOUSEOUT="return wS(\'\')" CLASS="submenu">')
document.write(smLeisStr[i]+'</A><BR>')
}
else
{
document.write(smLeisStr[i]+'<BR>')
}
}
subMenuBottom(smLeisColour)
}
// Example use :  
// <script language="JavaScript">emailLink("info", "gargrave", "org.uk", "get in touch with us")</script><noscript class="smalllink">Enable Javascript to access link</noscript>
function emailLink(name, site, siteType, text)
{
document.write('<a href="mailto:'+name+'&#64;'+site+'.'+siteType+'" class="smalllink">'+text+'</a>');
}

// <script language="JavaScript">websiteLink("adlmotors", "co.uk", "Web Site")</script><noscript class="smalllink">Enable Javascript to access link</noscript>
function websiteLink(site, siteType, text)
{
document.write('<a href="http://www.'+site+'.'+siteType+'" class="smalllink" target="_blank">'+text+'</a>');
}

