browsername = navigator.appName;
browserversion = navigator.appVersion;
browsermajor = browserversion;
browserminor = browsermajor;
browserversion = parseFloat(browserversion.substring(browserversion.lastIndexOf(".")-1,browserversion.length));
browserminor = browserversion.toString();
browsermajor = browserversion.toString();
browsermajor = browsermajor.substring(0,browsermajor.lastIndexOf("."))
browserminor = browserminor.substring(browserminor.lastIndexOf(".")+1,browserminor.length)
//==============================================================================
function MapPopUp(strURL){
//==============================================================================
var winleft=50;
var winUp=50;
var wWidth=860;
var wHeight=650;
var scroll = 'no';
var Name = 'Map';
winProp = 'width='+wWidth+',height='+wHeight+',left='+winleft+',top='+winUp+',scrollbars='+scroll;
Win = window.open(strURL, Name, winProp);
if (parseInt(navigator.appVersion) >= 4) { 
Win.window.focus(); 
}
}
//==============================================================================
function double_quote()
//==============================================================================
{
document.write('"')
}
//==============================================================================
function MapButton(strURL){
//==============================================================================
//document.write("<FORM>");
document.write("<INPUT TYPE='BUTTON' VALUE='MAP' ");
strOnClick = "onclick='MapPopUp(" + '"' + strURL + '"' + ")'"
document.write(strOnClick);
document.write(">");
//document.write("</FORM>");
}
//==============================================================================
function MakeArray(n){
//==============================================================================
this.length = n;
for (var i = 1; i<=n; i++) {
this[i] = "_";
}
return this
}
//==============================================================================
function suggestions()
//==============================================================================
{
document.write("<TABLE WIDTH=90%>");
document.write("<TR>");
document.write("<TD>");
document.write("<FONT FACE=ARIAL SIZE=3>");
document.write("<P>If you have any suggestions for inclusion, or if any of the links are out of date, please <A HREF=http://www.bagnall.co.uk/contact_info/contact_info.html TARGET=_new>contact us</A>.</P>");
document.write("</FONT>");
document.write("</TD>");
document.write("<TD ALIGN=right WIDTH=1>");
contact_button();
document.write("</TD>");
document.write("</TR>");
document.write("</TABLE>");
document.write("<BR>");
}
//==============================================================================
function oz_thumbnail( image_name, low_image_name, alt_string, width, height, style, shadow, colour, border )
//==============================================================================
{
if (colour == "yellow"){
bordercolor="#FFFF00"
bordercolorlight="#FFFFB2"
bordercolordark="#8D8D00"
}
if (colour == "blue"){
bordercolor="#0000FF"
bordercolorlight="#7f7fff"
bordercolordark="#0000B3"
}
if (colour == "red"){
bordercolor="#FF0000"
bordercolorlight="#FF8C8C"
bordercolordark="#AD0000"
}
if (colour == "orange"){
bordercolor="#EF8208"
bordercolorlight="#ffcf9c"
bordercolordark="#945100"
}
if (colour == "pink"){
bordercolor="#FF9999"
bordercolorlight="#FFDADA"
bordercolordark="#995C5C"
}
if (colour == "grey"){
bordercolor="#C0C0C0"
bordercolorlight="#c6c6c6"
bordercolordark="#848484"
}
if (colour == "green"){
bordercolor="#009600"
bordercolorlight="#00C800"
bordercolordark="#006400"
}
if (colour == "black"){
bordercolor="#111111"
bordercolorlight="#444444"
bordercolordark="#111111"
}
document.write("<!Start of picture_frame.doc>")
document.write("<TABLE border=0 width=10% cellpadding=0 cellspacing=0 width=0 >")
document.write("	<TR height=0 >")
document.write("		<TD width=90% colspan=2 rowspan=2>")
document.write("			<TABLE border=")
document.write(border)
document.write(" BORDERCOLOR=")
document.write(bordercolor)
document.write(" BORDERCOLORLIGHT=")
document.write(bordercolorlight)
document.write(" BORDERCOLORDARK=")
document.write(bordercolordark)
document.write(" CELLPADDING=0 CELLSPACING=0>")
document.write("				<TR>")
document.write("					<TD >")
document.write("<A HREF=");
document.write(image_name);
document.write(" TARGET=blank>");
image(low_image_name,low_image_name,alt_string,width,height)
document.write("</A>");
document.write("</TD>")
document.write("				</TR>")
document.write("			</TABLE>")
document.write("		</TD>")
document.write("		<TD width=0 >")
transparent_space(16,8)
document.write("<BR>")
document.write("		</TD>")
document.write("	</TR>")
document.write("	<TR height=0 >")
document.write("		<TD colspan=1 width=0 bgcolor=#000000>")
transparent_space(16,height)
//document.write("	<IMG SRC=hspace1.gif HSPACE=0 VSPACE=0 WIDTH=16 HEIGHT=")
//document.write(height)
//document.write(" BORDER=0><BR>")
document.write("<BR>")
//document.write("			<IMG SRC=hspace1.gif HSPACE=0 VSPACE=0 WIDTH=16 HEIGHT=169 BORDER=0><BR>")
document.write("		</TD>")
document.write("	</TR>")
document.write("	<TR height=1>")
document.write("		<TD colspan=1 width=0  >")
transparent_space(16,8)
document.write("<BR>")
//document.write("			<IMG SRC=hspace1.gif HSPACE=0 VSPACE=0 WIDTH=16 HEIGHT=8 BORDER=0><BR>")
document.write("		</TD>")
document.write("		<TD colspan=1 width=0  bgcolor=#000000>")
transparent_space(width-16,8)
//document.write("			<IMG SRC=hspace1.gif HSPACE=0 VSPACE=0 WIDTH=")
//document.write(width-16)
document.write("<BR>")
//document.write(" HEIGHT=8 BORDER=0><BR>")
//document.write("			<IMG SRC=hspace1.gif HSPACE=0 VSPACE=0 WIDTH=200 HEIGHT=8 BORDER=0><BR>")
document.write("		</TD>")
document.write("		<TD colspan=1 width=0  bgcolor=#000000>")
transparent_space(16,8)
document.write("<BR>")
//document.write("			<IMG SRC=hspace1.gif HSPACE=0 VSPACE=0 WIDTH=16 HEIGHT=8 BORDER=0><BR>")
document.write("		</TD>")
document.write("	</TR>")
document.write("</TABLE><!End of picture_frame.doc>")
}
//==============================================================================
function thumbnail( image_name, low_image_name, alt_string, width, height, style, shadow, colour, border )
//==============================================================================
{
if (colour == undefined )colour = "blue";
//CurvedThumbNail(low_image_name,image_name,alt_string,width,height,0,0,colour);
CurvedThumbNail( image_name, low_image_name, alt_string, width, height, colour);
//curved_picture_frame_begin();
/*if ( colour == undefined){
colour = "blue"
}
document.write("<A HREF=");
document.write(image_name);
document.write(" TARGET=_new>");
curved_picture_frame(low_image_name,image_name,alt_string,width,height,0,0,colour,image_name)*/
//	image(low_image_name,low_image_name,alt_string,width,height)
//	document.write("</A>");
}
//==============================================================================
function transparent_space(x,y)
//==============================================================================
{
//document.write("TRANSPARENT");
document.write("<IMG SRC="+commongraphics+"transparent_pixel.gif");
document.write(" VSPACE=0 HSPACE=0 WIDTH=");
document.write(x);
document.write(" HEIGHT=");
document.write(y);
document.write(" BORDER=0>");
}
//==============================================================================
function black_space(x,y)
//==============================================================================
{
//document.write("TRANSPARENT");
document.write("<IMG SRC="+commongraphics+"black_pixel.gif");
document.write(" VSPACE=0 HSPACE=0 WIDTH=");
document.write(x);
document.write(" HEIGHT=");
document.write(y);
document.write(" BORDER=0>");
}
//==============================================================================
function wallpaper()
//==============================================================================
{
document.write("<TABLE WIDTH=90%>");
document.write("<TR>");
document.write("<TD>");
document.write("<FONT FACE=ARIAL SIZE=3>");
document.write("<P>Download <A HREF=http://www.bagnall.co.uk/wallpaper.zip>Bagnall Software Consultants Ltd wallpaper</A>.</P>");
document.write("</FONT>");
document.write("</TD>");
document.write("<TD ALIGN=right WIDTH=1>");
document.write("<TABLE WIDTH=100 HEIGHT=38 CELLPADDING=0 CELLSPACING=0 BORDER=4 BORDERCOLOR=#FFFF00 BORDERCOLORDARK=#8D8D00 BORDERCOLORLIGHT=#FFFFB2 BGCOLOR=#FFFFB6 >");
document.write("<TR>");
document.write("<TD VALIGN=middle ALIGN=center>");
document.write("<A HREF=http://www.bagnall.co.uk/wallpaper.zip><IMG LOWSRC=wallpaper_button_lr.gif SRC=wallpaper_button.gif BORDER=0 ALT='Download Wallpaper' ALIGN=middle WIDTH=90 HEIGHT=32 VSPACE=0 HSPACE=0></A><BR CLEAR=ALL>");
document.write("</TD>");
document.write("</TR>");
document.write("</TABLE>");
document.write("</TD>");
document.write("</TR>");
document.write("</TABLE>");
document.write("<BR>");
}
//==============================================================================
function footer()
//==============================================================================
{
document.write("<TABLE BORDER=0 WIDTH=100% COLS=2><TR><TD>")
document.write("<P><B>&copy; <SCRIPT LANGUAGE=JavaScript>year();</script> ")
document.write("<A HREF='http://www.bagnall.co.uk' TARGET='blank'  >Bagnall Software Consultants Ltd</A></B></P>")
document.write("</TD></TR></TABLE>")
}
//==============================================================================
function contact_button()
//==============================================================================
{
//document.write("<TABLE WIDTH=100 HEIGHT=38 CELLPADDING=0 CELLSPACING=0 BORDER=4 BORDERCOLOR=#FFFF00 BORDERCOLORDARK=#8D8D00 BORDERCOLORLIGHT=#FFFFB2 BGCOLOR=#FFFFB6 >");
//document.write("<TR>");
//document.write("<TD VALIGN=middle ALIGN=center>");
//document.write("<A HREF=contact_info.html TARGET="blank"><IMG LOWSRC=contact_lr.gif  SRC=contact.gif BORDER=0 ALT='Contact' ALIGN=middle WIDTH=90 HEIGHT=32 VSPACE=0 HSPACE=0></A>");
//document.write("</TD>");
//document.write("</TR>");
//document.write("</TABLE>");
document.write("<TABLE BORDER=0>");
button("<IMG LOWSRC="+commongraphics+"contact_lr.gif  SRC="+commongraphics+"contact.gif BORDER=0 ALT='Contact' ALIGN=middle WIDTH=90 HEIGHT=32 VSPACE=0 HSPACE=0>","../contact_info/contact_info.html","blank")
document.write("</TABLE>");
}
//==============================================================================
function minimum_table()
//==============================================================================
{
if (browsername != "Netscape" ) {
document.write("0")
}else{
document.write("1")
}
}
//==============================================================================
function browser_info()
//==============================================================================
{
document.write("<P>browsername: ")
document.write(browsername,"</P>")
document.write("<P>browserversion: ")
document.write(browserversion,"</P>")
document.write("<P>browsermajor: ")
document.write(browsermajor,"</P>")
document.write("<P>browserminor: ")
document.write(browserminor,"</P>")
document.write("<P>",navigator.appVersion,"</P>")
}
//==============================================================================
function strImage(image_name,low_image_name,alt_string,width,height)
//==============================================================================
{
strOut = "<IMG SRC='" + image_name + "' ";
if (browsername == "Netscape" && low_image_name != image_name)strOut = strOut + "LOWSRC='" + low_image_name +"' ";
strOut = strOut + " HSPACE=0 VSPACE=0 ALT='" + alt_string + "' WIDTH='" + width + "' HEIGHT='" + height + "' BORDER=0 >";
return strOut;
}
//==============================================================================
function image(image_name,low_image_name,alt_string,width,height)
//==============================================================================
{
//document.write(strImage(image.arguments));
//return;
document.write("<IMG SRC=")
// Image Name
document.write(image_name)
// Low Resolution Image?
if (browsername == "Netscape" && low_image_name != image_name){
//document.write("<P>Lowsrc!</P>")
document.write(" LOWSRC=")
document.write(low_image_name)
}
document.write(" HSPACE=0 VSPACE=0 ALT=")
double_quote()
// Alternative String
document.write( alt_string ) 
double_quote()
// Width
document.write(" WIDTH=")
document.write(width)
//Height
document.write(" HEIGHT=")
document.write(height)
document.write(" BORDER=0 >")
}
//==============================================================================
function sphere(n)
//==============================================================================
{
document.write("<IMG SRC="+commongraphics+"sphere")
document.write(n)
document.write(".gif ALIGN=middle HSPACE=15 border=0>")
}
//==============================================================================
function blank_line(n)
//==============================================================================
{
var i;
if ( n >0 ){
for (i = 1 ; i <= n ; i++)
document.write("<PRE> </PRE>")
}else{
document.write("<PRE> </PRE>")
}
}
//==============================================================================
function bsc_logo()
//==============================================================================
{
document.write("<A HREF=http://www.bagnall.co.uk TARGET=_top>")
document.write("<IMG SRC=")
document.write(commongraphics+"bsc_logo_animated.gif ")
document.write("LOWSRC="+commongraphics+"bsc_logo_unanimated.gif ")
document.write("BORDER=0></A>")
//document.write("WIDTH=88 HEIGHT=128 BORDER=0></A>")
}
//==============================================================================
function year()
//==============================================================================
{
//	document.write("2005")
var d = new Date()
document.write(d.getFullYear())
}
//==============================================================================
function key(strText, strTargetPage, strTargetFrame, strName,indent )
//==============================================================================
{
document.write("<TR>")
if ( indent > 0 ){
for (i = 1 ; i <= indent ; i++){
document.write("<TD ALIGN=left>")
transparent_space(7,1)
document.write("</TD>")
}
document.write("<TD ALIGN=left COLSPAN=")
document.write(3-indent)
document.write(">")
}else{
document.write("<TD ALIGN=LEFT COLSPAN=3>")
}
button(strText, strTargetPage, strTargetFrame, strName)	
if ( indent > 0 ){
}else{
//document.write("</TD><TD ALIGN=LEFT >")
}
document.write("</TD>")
document.write("</TR>")
}
//==============================================================================
function button( strText, strTargetPage, strTargetFrame, strName )
//==============================================================================
{
picture_frame_begin("blue", "#000099", 4 , 0 ,0)
document.write("<FONT FACE=ARIAL SIZE=1><A HREF= ")
double_quote()
document.write(strTargetPage)
double_quote()
document.write(" TARGET=")
double_quote()
document.write(strTargetFrame)
double_quote()
if ( strName != ""){
document.write(" NAME=")
double_quote()
document.write(strName)
double_quote()
}
document.write("><B><CENTER>")
document.write(strText)
document.write("</CENTER></B></A></FONT>")
transparent_space(90,1)
picture_frame_end()
}
//==============================================================================
function map_key(zoomout)
//==============================================================================
{
curved_picture_frame_begin("blue")
document.write("<TABLE BORDER=1 BORDERCOLOR=#0000ff CELLPADDING=4 CELLSPACING=0>")
document.write("	<TR>")
document.write("		<TD ALIGN=CENTER BGCOLOR=#33CC33>")
document.write("			<IMG SRC="+commongraphics+"zoominkey.gif BORDER=0 VSPACE=0 HSPACE=0 ALT=\"Zoomin\"><BR><FONT FACE=ARIAL COLOR=#FFFFFF><!WIDTH & HEIGTH TO GO IN!><B>Zoom In</FONT>")
document.write("		</TD>")
document.write("		<TD BGCOLOR=#005500>	")
document.write("			<FONT FACE=ARIAL COLOR=#FFFFFF>Click in a rectangle on the map to zoom in on region</FONT>")
document.write("		</TD>")
document.write("	</TR>")
document.write("	<TR>")
document.write("		<TD ALIGN=CENTER BGCOLOR=#33CC33>")
document.write("			<IMG SRC="+commongraphics+"citykey.gif BORDER=0 VSPACE=0 HSPACE=0 ALT=\"City\"><BR><FONT FACE=ARIAL COLOR=#FFFFFF><B>Town or City</FONT>")
document.write("		</TD>")
document.write("		<TD BGCOLOR=#005500>	")
document.write("			<FONT FACE=ARIAL COLOR=#FFFFFF>Click to view information if available</FONT>")
document.write("		</TD>")
document.write("	</TR>")
//document.write("	<TR>")
//document.write("		<TD ALIGN=CENTER BGCOLOR=#33CC33>")
//document.write("			<IMG SRC="+commongraphics+"webcamkey.gif BORDER=0 VSPACE=0 HSPACE=0 ALT=\"Web Camera\"><BR><FONT FACE=ARIAL COLOR=#FFFFFF><B>Web Camera</FONT>")
//document.write("		</TD>")
//document.write("		<TD BGCOLOR=#005500>	")
//document.write("			<FONT FACE=ARIAL COLOR=#FFFFFF>Click to view scene from web camera</FONT>")
//document.write("		</TD>")
//document.write("	</TR>")
if ( zoomout != "" ){
document.write("	<TR>")
document.write("		<TD ALIGN=CENTER BGCOLOR=#33CC33>")
document.write("			<A HREF=\"../")
document.write(zoomout)
document.write(".html\"><IMG SRC="+commongraphics+"zoomout.gif ALT=\"ZOOMOUT\" BORDER=0 ALIGN=left></A><BR>")
document.write("		</TD>")
document.write("		<TD BGCOLOR=#005500>	")
document.write("			<FONT FACE=ARIAL COLOR=#FFFFFF>Click here to zoom out</FONT>")
document.write("		</TD>")
document.write("	</TR>")
}
document.write("</TABLE>")
curved_picture_frame_end("blue")
}