<!--
/*----thisfile, droplist, endlinks, toplinks--------------*/
/*var gnetstr="http:\/\/homepage.ntlworld.com\/scrumpy\/5pp\/";*/
var gnetstr="";
var numpages=9;
var mainpage=new Array(numpages);
mainpage[0]="famain";
mainpage[1]="fabooks";
mainpage[2]="farecs";
mainpage[3]="facds";
mainpage[4]="faprogs";
mainpage[5]="fabrew";
mainpage[6]="facloth";
mainpage[7]="faother";
mainpage[8]="fafaq";
var optdesc=new Array(numpages);
optdesc[0]="Force Ale Main Page";
optdesc[1]="Books";
optdesc[2]="Vinyl Records";
optdesc[3]="CDs";
optdesc[4]="Football Programmes";
optdesc[5]="Breweriana";
optdesc[6]="Clothing";
optdesc[7]="Other Stuff";
optdesc[8]="FAQ: About Us; Ordering; P&amp;P; etc.";
var shortdes=new Array(numpages);
shortdes[0]="Main Page";
shortdes[1]="Books";
shortdes[2]="Records";
shortdes[3]="CDs";
shortdes[4]="Football Programmes";
shortdes[5]="Breweriana";
shortdes[6]="Clothing";
shortdes[7]="Other Stuff For Sale";
shortdes[8]="FAQ/ordering/P&amp;P/etc.";
/*-------get name of this file--------*/
function thisfile(){//get name of this file
fileurl=document.URL; //get filename url
//fileurl="http://www.force-ale.co.uk/";//debug
urlength=fileurl.length; //no. of chars in URL
//document.write("<br \/>url="+fileurl+"<br \/>length="+urlength+"<br \/><br \/>"); //debug
var slashch="/"; //slash character
//var bslashch=String.fromCharCode(92); //backslash character
var bslashch="\\"; //backslash character
var dotch="."; //dot character
var slashpos=-1; //init last slash position
//scan url string to find last slash or backslash
i=0; //init loop counter to first char of url string
while (i < urlength){//loop to end of string
	nextchar=fileurl.substr(i,1); //get next char
//	document.write(nextchar); // debug
	if ((nextchar==slashch)||(nextchar==bslashch)){// look for slash or backslash
		slashpos=i; //note position of last slash or backslash
	};//endif
	i++; // inc loop counter
};//endloop
//document.write("<br \/>slashpos="+slashpos+"<br \/>"); //debug
filename=fileurl.substring(slashpos+1,urlength); // extract filename.type
filength=filename.length; // length of filename.type
//document.write("<br \/>filename="+filename+"<br \/>"); //debug
//document.write("<br \/>filength="+filength+"<br \/>"); //debug
//find dot
var dotpos=-1; //init dot position
i = 0;//init loop counter to first char of filename.type
while (i < filength){//loop to end of filename.type
	nextchar=filename.substr(i,1); //get next char
	if (nextchar==dotch){//look for dot
		dotpos=i; //note position of dot
		break; //dot found, stop looking (assumes only 1 dot)
	};//endif
	i++; //inc loop counter
};//endloop
//document.write("<br \/>dotpos="+dotpos+"<br \/>"); //debug
if (dotpos<0){//if no dot found
	filename="index.html";//assume index file
	dotpos=5;
};
filename=filename.substring(0,dotpos); // extract filename
filength=filename.length;//filename length
//document.write("<br \/>filename="+filename+"<br \/>"); //debug
//document.write("filength="+filength+"<br \/>"); //debug
mpagefl=-1; //init not a main page
for (i=0; i<numpages; i++){//for each main page
	if (filename==mainpage[i]){//if this file is a main page
		mpagefl=i;//note which one
	};//endif
//document.write(i+"<br \/>"); //debug
}//endfor
if (mpagefl<0){//if not a main page
//document.write("<br \/>filename="+filename+"<br \/>"); //debug
//document.write("filength="+filength+"<br \/>"); //debug
	if (filength==8){//if it could be a song file
//		document.write(filename.substring(0,7)+"<br \/>");//debug
		if (filename.substring(0,7)=="5ppsong"){//if a song file
			filename="5ppsong";//song file
		}
		else{//not a song file
			filename="5ppxxx";//assume record
		};//endif
	}
	else{//not a song file (name too short/long)
		filename="5ppxxx";//assume record
	};//endif
};//endif
//document.write("filename="+filename+"<br \/><br \/>"); //debug
return filename;
}//endfn
/*-------------droplist---------*/
function droplist(choice){// select a page from drop down list
var pageurl, urlvalue;
urlvalue = choice.options[choice.selectedIndex].value;
if(urlvalue){
   if(choice.form.target)pageurl = parent[choice.form.target];
   else pageurl = window;
   if (! pageurl) return true;
   pageurl.location = urlvalue;
};//endif
return false;
}//endfn
/*--------write end links-------------------------*/
function endlinks(p1){
for (i=1; i<numpages; i++){//for each main page
barflag=1;//init bar separator flag to "yes"
if ((p1!=mainpage[i])&&(!((p1=="5ppxxx")&&(i==1)))&&(!((p1=="5ppsong")&&(i==6)))){//if this isn't the page then write the link
	document.write("<a href=\""+gnetstr+mainpage[i]+".html\">"+shortdes[i]+"<\/a>");
	}
else{
	barflag=0; //no bar separator
};
if ((p1==mainpage[i])||(i==numpages-1)){//if this page or last, no bar
	barflag=0; //no bar separator
};

if ((barflag>0)&&((i!=numpages-2)||(p1!=mainpage[numpages-1]))){
	document.write(" &nbsp;<b>&#124;</b>&nbsp; ");//write bar separator
};
//document.write(i+"<br \/>"); //debug
}//endfor
}
/*--------write all top links and dropdown list-----*/
function toplinks(p1){
document.write("<b><i>Links To Other Pages<\/i><\/b><br \/>");
if (p1==mainpage[0]){
	document.write("<span class=\"herefont\">"+shortdes[0]+"<\/span>");
	}
else{
	document.write("<a href=\""+gnetstr+mainpage[0]+".html\">Back To "+shortdes[0]+"<\/a>");
};
document.write("<br \/>");
for (i=1; i<numpages; i++){ //loop for each link
desctext=shortdes[i];
if ((p1=="5ppxxx")&&(i==1)){
	desctext="Back To "+desctext+"<br \/>";
};
if (p1==mainpage[i]){
	document.write("<span class=\"herefont\">"+desctext+"<\/span>");
	}
else{
	document.write("<a href=\""+gnetstr+mainpage[i]+".html\">"+desctext+"<\/a>");
};
if ((i==2)||(i==5)){
	document.write(" &nbsp;<b>&#124;</b>&nbsp; ");
	}
else{
	document.write("<br \/>");
};
//document.write(i+"<br \/>"); //debug
}//endfor
document.write("<br \/><form action=\"\" method=\"post\" onSubmit=\"return droplist(this.selurl)\">");
document.write("<select class=\"selstyle\" name=\"selurl\" size=\"1\"");
document.write(" onSubmit=\"if(options[selectedIndex].value)");
document.write("window.location.href= (options[selectedIndex].value)\">");
document.write("<option class=\"dropfrst\" value=\"\">Site Index: choose a page... &amp; go!<\/option>");
for (i=0; i<numpages; i++)
{
	document.write("<option class=\"");
	if (p1==mainpage[i])
		{
		document.write("curropt\" value=\"");
		}
	else
		{
		document.write("droption\" value=\""+gnetstr+mainpage[i]+".html");
	}
	document.write("\">"+optdesc[i]+"<\/option>");
//document.write(i+"<br \/>"); //debug
}//endfor
document.write("<\/select><input type=\"submit\" value=\"Go!\" \/><\/form>");
}//endfunc
function imgchg(pname,pimage,pimtype) {
document[pname].src='images/menu/'+pimage+'.'+pimtype;
}//eofn
var p1 = "&#102;&#111;&#114;&#99;&#101;&#45;&#97;&#108;&#101;";
var p2 = p1;
var p3 = "&#99;&#111;";
var p4 = "&#117;&#107;";
function emailink() {
document.write("<a href=\"&#109;&#97;&#105;&#108;&#116;&#111;&#58;" + p1 +  "&#64;");
/*document.write("&#58;" + p1 + "&#64;");*/
document.write(p2 + "&#46;" + p3 + "&#46;" + p4 + "\">" + "&#101;&#109;&#97;&#105;&#108;&#32;&#102;&#111;&#114;&#99;&#101;&#45;&#97;&#108;&#101;" + "<\/a>");
}
//-->