//web pages - image thumbnails
var lastID = 0;
function SelectImg(id) {
if (lastID > 0) {
document.getElementById(lastID).className = "thumbNormal";
}
document.getElementById(id).className = "thumbSelected";
document.getElementById(0).src = document.getElementById(id).src;
lastID = id;
}
function LoadTrigger() {
SelectImg(1);
}
//web pages - image thumbnails end


//cursor functionality
function over(id, cursorVal)
{
	document.getElementById(id).style.cursor = cursorVal;
}

function out(id)
{
	document.getElementById(id).style.cursor = 'default';
}
//cursor functionality end


//goBack functionality

// initialise goBack object
function goBack() {
	this.text = '<< Back';
	this.type = 'link';
	this.write = goBack_write;
	this.form = true;
}

// write method
function goBack_write() {
	if (! window.history) return;
	if (window.history.length == 0)return;

	this.type = this.type.toLowerCase();
	if (this.type == 'button') {
		if (this.form)
			document.write('<FORM>');
		document.write('<INPUT TYPE=BUTTON onClick="history.back(-1)" VALUE="', this.text, '"');
		if (this.otheratts) document.write(' ', this.otheratts);
		document.write('>');
		if (this.form)document.write('<\/FORM>');
	} else {
		document.write('<A HREF="javascript:history.back(-1)"');
		if (this.otheratts)
			document.write(' ', this.otheratts);
		document.write('>');
		if (this.type == 'image' || this.type == 'img') {
			document.write('<img SRC="', this.src, '" ALT="', this.text, '"');
			if (this.width) document.write(' WIDTH=', this.width);
			if (this.height) document.write(' HEIGHT=', this.height);
			if (this.otherimgatts) document.write(' ', this.otherimgatts);
			document.write(' BORDER=0 />');
		}
		else
			document.write(this.text);
		document.write('<\/A>');
	}
}
//goBack functionality end

//menu functionality

//editable section:-

//Menu 1 Contents
var menu1=new Array()
//Places-Summary.htm
//menu1[0]='<a href="Places-Anglesey.htm">Anglesey</a>'
//menu1[1]='<a href="Places-Angus.htm">Angus</a>'
//menu1[2]='<a href="Places-Argyllshire.htm">Argyllshire</a>'
//menu1[3]='<a href="Places-Ayrshire.htm">Ayrshire</a>'
//menu1[4]='<a href="Places-Bedfordshire.htm">Bedfordshire</a>'
//menu1[5]='<a href="Places-Berkshire.htm">Berkshire</a>'
//menu1[6]='<a href="Places-BordersRegion.htm">Borders Region</a>'
//menu1[7]='<a href="Places-Bristol.htm">Bristol</a>'
//menu1[8]='<a href="Places-Buckinghamshire.htm">Buckinghamshire</a>'
//menu1[9]='<a href="Places-Caithness.htm">Caithness</a>'
//menu1[10]='<a href="Places-Cambridgeshire.htm">Cambridgeshire</a>'
//menu1[11]='<a href="Places-Cardiff.htm">Cardiff</a>'
//menu1[12]='<a href="Places-Carmarthenshire.htm">Carmarthenshire</a>'
//menu1[13]='<a href="Places-CentralRegion.htm">Central Region</a>'
//menu1[14]='<a href="Places-Ceredigion.htm">Ceredigion</a>'
//menu1[15]='<a href="Places-Cheshire.htm">Cheshire</a>'
//menu1[16]='<a href="Places-Cornwall.htm">Cornwall</a>'
//menu1[17]='<a href="Places-Cromartyshire.htm">Cromartyshire</a>'
//menu1[18]='<a href="Places-Cumbria.htm">Cumbria</a>'
//menu1[19]='<a href="Places-Denbighshire.htm">Denbighshire</a>'
//menu1[20]='<a href="Places-Derbyshire.htm">Derbyshire</a>'
//menu1[21]='<a href="Places-Devon.htm">Devon</a>'
//menu1[22]='<a href="Places-Dorset.htm">Dorset</a>'
//menu1[23]='<a href="Places-DumfriesAndGallowayRegion.htm">Dumfries &amp; Galloway</a>'
//menu1[24]='<a href="Places-Dunbartonshire.htm">Dunbartonshire</a>'
//menu1[25]='<a href="Places-Durham.htm">Durham</a>'
//menu1[26]='<a href="Places-Essex.htm">Essex</a>'
//menu1[27]='<a href="Places-FifeRegion.htm">Fife Region</a>'
//menu1[28]='<a href="Places-Flintshire.htm">Flintshire</a>'
//menu1[29]='<a href="Places-Glamorgan.htm">Glamorgan</a>'
//menu1[30]='<a href="Places-Gloucestershire.htm">Gloucestershire</a>'
//menu1[31]='<a href="Places-GrampianRegion.htm">Grampian Region</a>'
//menu1[32]='<a href="Places-Gwent.htm">Gwent</a>'
//menu1[33]='<a href="Places-Gwynedd.htm">Gwynedd</a>'
//menu1[34]='<a href="Places-Hampshire.htm">Hampshire</a>'
//menu1[35]='<a href="Places-Herefordshire.htm">Herefordshire</a>'
//menu1[36]='<a href="Places-Hertfordshire.htm">Hertfordshire</a>'
//menu1[37]='<a href="Places-Inverness-shire.htm">Inverness-shire</a>'
//menu1[38]='<a href="Places-IsleofSkye.htm">Isle of Skye</a>'
//menu1[39]='<a href="Places-IsleofWight.htm">Isle of Wight</a>'
//menu1[40]='<a href="Places-Kent.htm">Kent</a>'
//menu1[41]='<a href="Places-Lancashire.htm">Lancashire</a>'
//menu1[42]='<a href="Places-Leicestershire.htm">Leicestershire</a>'
//menu1[43]='<a href="Places-Lincolnshire.htm">Lincolnshire</a>'
//menu1[44]='<a href="Places-London.htm">London</a>'
//menu1[45]='<a href="Places-LothianRegion.htm">Lothian Region</a>'
//menu1[46]='<a href="Places-Norfolk.htm">Norfolk</a>'
//menu1[47]='<a href="Places-Northamptonshire.htm">Northamptonshire</a>'
//menu1[48]='<a href="Places-Northumberland.htm">Northumberland</a>'
//menu1[49]='<a href="Places-Nottinghamshire.htm">Nottinghamshire</a>'
//menu1[50]='<a href="Places-Oxfordshire.htm">Oxfordshire</a>'
//menu1[51]='<a href="Places-Pembrokeshire.htm">Pembrokeshire</a>'
//menu1[52]='<a href="Places-Perthshire.htm">Perthshire</a>'
//menu1[53]='<a href="Places-Powys.htm">Powys</a>'
//menu1[54]='<a href="Places-Ross-shire.htm">Ross-shire</a>'
//menu1[55]='<a href="Places-Shetland.htm">Shetland</a>'
//menu1[56]='<a href="Places-Shropshire.htm">Shropshire</a>'
//menu1[57]='<a href="Places-Somerset.htm">Somerset</a>'
//menu1[58]='<a href="Places-Staffordshire.htm">Staffordshire</a>'
//menu1[59]='<a href="Places-Stirlingshire.htm">Stirlingshire</a>'
//menu1[60]='<a href="Places-Suffolk.htm">Suffolk</a>'
//menu1[61]='<a href="Places-Surrey.htm">Surrey</a>'
//menu1[62]='<a href="Places-Sussex.htm">Sussex</a>'
//menu1[63]='<a href="Places-Sutherland.htm">Sutherland</a>'
//menu1[64]='<a href="Places-Warwickshire.htm">Warwickshire</a>'
//menu1[65]='<a href="Places-WestMidlands.htm">West Midlands</a>'
//menu1[66]='<a href="Places-Wiltshire.htm">Wiltshire</a>'
//menu1[67]='<a href="Places-Worcestershire.htm">Worcestershire</a>'
//menu1[68]='<a href="Places-Yorkshire.htm">Yorkshire</a>'

var menu5=new Array()
menu5[0]='<a href="FindSpecificBoatTrip.htm">Specific Boat Trip</a>'
menu5[1]='<a href="Boat-XmasNewYear.htm">Christmas/New Years Venues</a>'
menu5[2]='<a href="Boat-HenAndStag.htm">Hen And Stag Parties</a>'
menu5[3]='<a href="Boat-ScatteringAshes.htm">Scattering Ashes</a>'		
menu5[4]='<a href="Boat-Wedding.htm">Wedding Reception Venues</a>'
menu5[5]='<a href="Boat-Winter.htm">Boats Operating Through Winter</a>'
menu5[6]='<a href="EventCalendar.htm">Event Calendar</a>'
menu5[7]='<a href="Noticeboard.htm">Noticeboard</a>'
menu5[8]='<a href="Ideas.htm">Ideas (Photo Gallery)</a>'
menu5[9]='<a href="ExternalLinks.htm">Supplies (Diving, Fishing, Sailing)</a>'
menu5[10]='<a href="ExternalLinks-Clubs.htm">Sailing Clubs</a>'
menu5[11]='<a href="ExternalLinks-Fishing.htm">Fishing Lakes</a>'
menu5[12]='<a href="ExternalLinks.htm">External Links</a>'

var menu4=new Array()
menu4[0]='<a href="ContactUs.htm">Contact Us</a>'
menu4[1]='<a href="LinkToUs.htm">Link To Us</a>'
menu4[2]='<a href="SiteMap.htm">Site Map</a>'
menu4[3]='<a href="Search.htm">Search All Of BoatDistrict</a>'
menu4[4]='<a href="Advertising.htm">Advertising</a>'


var menu6=new Array()
menu6[0]='<a href="AddToDirectory.htm">Join Directory (Free Listing)</a>'
menu6[1]='<a href="FindSpecificBoatTrip.htm">Find Your Listing</a>'
menu6[2]='<a href="Members-Change.htm">Change Your Listing</a>'
menu6[3]='<a href="Members.htm">Being A Directory Member</a>'
menu6[4]='<a href="Members-Comments.htm">Directory Member Comments</a>'
menu6[5]='<a href="Members-WebPage.htm">Get A Web Page</a>'
menu6[6]='<a href="Advertising.htm">Advertising</a>'

//var menu3=new Array()
//menu3[0]='<a href="Boat-Glossary.htm">Glossary</a>'
//menu3[1]='<a href="Experiences.htm">Trip Experiences</a>'
//menu3[2]='<a href="Boat-BoatTrip.htm">Boat Trip Summary</a>'
//menu3[3]='<a href="Boat-Types.htm">Types Of Boat</a>'
//menu3[4]='<a href="Boat-Safety.htm">Boating Safety</a>'
//menu3[5]='<a href="Boat-Driving.htm">Boating Tips</a>'
//menu3[6]='<a href="Boat-How.htm">How They Work</a>'
//menu3[7]='<a href="Boat-Media.htm">Boats &amp; The Media</a>'
//menu3[8]='<a href="Boat-Charter.htm">Chartering Sailboats</a>'
//menu3[9]='<a href="Boat-Buying.htm">Buying Sailboats</a>'
//menu3[10]='<a href="Boat-LearnToSail.htm">Learn To Sail</a>'
//menu3[11]='<a href="Boat-Building.htm">Boat Building</a>'
//menu3[12]='<a href="Boat-CanalSummary.htm">Canal Summary</a>'
//menu3[13]='<a href="Boat-CanalBoatHolidays.htm">Canal Boat Holidays</a>'
//menu3[14]='<a href="Boat-CanalMooring.htm">Canal Mooring</a>'
//menu3[15]='<a href="Boat-CanalBoatOperation.htm">Canal Boat Operation</a>'
//menu3[16]='<a href="Boat-Harbour.htm">The Harbour</a>'

//var menu2=new Array()
//menu2[0]='<a href="Wildlife-Dolphins.htm">Dolphins</a>'
//menu2[1]='<a href="Wildlife-Seals.htm">Seals</a>'
//menu2[2]='<a href="Wildlife-Sharks.htm">Sharks</a>'
//menu2[3]='<a href="Wildlife-Whales.htm">Whales</a>'

var menuwidth='165px'
var menubgcolor='#0E0E0E'
var hidedelay=250
var hidemenu_onclick="yes"

//non editable section:-

var IE4=document.all
var NS6=document.getElementById&&!document.all

if (IE4||NS6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="menuClearHide()" onMouseout="dynamHide(event)"></div>')

function getOffsetPos(what, offsettype){
var offsetTotal=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentElement=what.offsetParent;
while (parentElement!=null){
offsetTotal=(offsettype=="left")? offsetTotal+parentElement.offsetLeft : offsetTotal+parentElement.offsetTop;
parentElement=parentElement.offsetParent;
}
return offsetTotal;
}

function showhide(obj, e, visible, hidden, menuwidth){
if (IE4||NS6)
menuObject.style.left=menuObject.style.top="-500px"
if (menuwidth!=""){
menuObject.widthobj=menuObject.style
menuObject.widthobj.width=menuwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function ieCompatibility(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearEdge(obj, whichedge){
var offsetEdge=0
if (whichedge=="rightedge"){
var windowedge=IE4 && !window.opera? ieCompatibility().scrollLeft+ieCompatibility().clientWidth-15 : window.pageXOffset+window.innerWidth-15
menuObject.contentmeasure=menuObject.offsetWidth
if (windowedge-menuObject.x < menuObject.contentmeasure)
offsetEdge=menuObject.contentmeasure-obj.offsetWidth
}
else{
var topedge=IE4 && !window.opera? ieCompatibility().scrollTop : window.pageYOffset
var windowedge=IE4 && !window.opera? ieCompatibility().scrollTop+ieCompatibility().clientHeight-15 : window.pageYOffset+window.innerHeight-18
menuObject.contentmeasure=menuObject.offsetHeight
if (windowedge-menuObject.y < menuObject.contentmeasure){ 
offsetEdge=menuObject.contentmeasure+obj.offsetHeight
if ((menuObject.y-topedge)<menuObject.contentmeasure) 
offsetEdge=menuObject.y+obj.offsetHeight-topedge
}
}
return offsetEdge
}

function menuPopulate(what){
if (IE4||NS6)
menuObject.innerHTML=what.join("")
}


function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
menuClearHide()
menuObject=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
menuPopulate(menucontents)

if (IE4||NS6){
showhide(menuObject.style, e, "visible", "hidden", menuwidth)
menuObject.x=getOffsetPos(obj, "left")
menuObject.y=getOffsetPos(obj, "top")
menuObject.style.left=menuObject.x-clearEdge(obj, "rightedge")+"px"
menuObject.style.top=menuObject.y-clearEdge(obj, "bottomedge")+obj.offsetHeight+"px"
}

return returnValueClick()
}

function returnValueClick(){
if (IE4||NS6) return false
else return true
}

function contain_NS6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamHide(e){
if (IE4&&!menuObject.contains(e.toElement))
delayhidemenu()
else if (NS6&&e.currentTarget!= e.relatedTarget&& !contain_NS6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof menuObject!="undefined"){
if (IE4||NS6)
menuObject.style.visibility="hidden"
}
}

function delayhidemenu(){
if (IE4||NS6)
delayhide=setTimeout("hidemenu()",hidedelay)
}

function menuClearHide(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu
//menu functionality end



// html menu
function htmlMenu_limit(a,b){ //v1.1.2 by PVII-www.projectseven.com
 document.htmlMenulimit=a;document.htmlMenumin=b;
 if(document.getElementById&&navigator.appVersion.indexOf("MSIE")>-1&&!window.opera){
 if(window.attachEvent){window.attachEvent("onresize",htmlMenu_setMinWidth);
 window.attachEvent("onload",htmlMenu_setMinWidth);}else{onload=htmlMenu_setMinWidth;
 onresize=htmlMenu_setMinWidth;}}}htmlMenu_limit('outer',960);

function htmlMenu_setMinWidth(){ //v1.1.2 by PVII-www.projectseven.com
 var cw,w,pl,pr,ml,mr,br,bl,ad,theDiv=document.htmlMenulimit;
 var g=document.getElementById(theDiv);w=parseInt(document.htmlMenumin);
 if(g&&document.body&&document.body.clientWidth){gs=g.currentStyle;
 cw=parseInt(document.body.clientWidth);pl=parseInt(gs.paddingLeft);
 pr=parseInt(gs.paddingRight);ml=parseInt(gs.marginLeft);mr=parseInt(gs.marginRight);
 bl=parseInt(gs.borderLeftWidth);br=parseInt(gs.borderRightWidth);ml=ml?ml:0;
 mr=mr?mr:0;pl=pl?pl:0;pr=pr?pr:0;bl=bl?bl:0;br=br?br:0;ad=pl+pr+ml+mr+bl+br;
 if(cw<=w){w-=ad;g.style.width=w+"px";}else{g.style.width="auto";}}
}

function htmlMenu_Swap(){ //v1.4 by PVII
 var i,x,tB,j=0,tA=new Array(),arg=htmlMenu_Swap.arguments;
 if(document.getElementsByTagName){for(i=4;i<arg.length;i++){tB=document.getElementsByTagName(arg[i]);
  for(x=0;x<tB.length;x++){tA[j]=tB[x];j++;}}for(i=0;i<tA.length;i++){
  if(tA[i].className){if(tA[i].id==arg[1]){if(arg[0]==1){
  tA[i].className=(tA[i].className==arg[3])?arg[2]:arg[3];}else{tA[i].className=arg[2];}
  }else if(arg[0]==1 && arg[1]=='none'){if(tA[i].className==arg[2] || tA[i].className==arg[3]){
  tA[i].className=(tA[i].className==arg[3])?arg[2]:arg[3];}
  }else if(tA[i].className==arg[2]){tA[i].className=arg[3];}}}}
}

function htmlMenu_writeStyles(op,a){ //v1.5 by PVII
if(op==0||document.getElementById){var tS="<sty"+"le type=\"text/css\">";
tS+=a+"<"+"/sty"+"le>";document.write(tS);document.close();}
}
htmlMenu_writeStyles(1,'.closed ul{ display:none;}.open ul{ display:block;}');

//html menu end