<!--

/* John Baillie's BOOTS Website JavaScript Library */

/*  Contains Functions for:-
	menu button manipulation, opening a new window to display a picture, accessing maps

						***************

Two-state radio button-handling JavaScript library, (C) Paul Stephens 1999

Tested with Netscape Navigator 4.01 and Microsoft Internet Explorer 4.72 (SP1)

To use these functions, you have to set up the relevant images and objects
in your page. See PC Plus issue 150, or http://www.bigfoot.com/~pstephens for details.

*/

// object definitions for button group 'bg'
bg = new Image(120, 30); bg.curselected = 0
bg1off = new Image(120, 30); bg1off.src = 'Images/Common/unlb1.gif';
bg1on = new Image(120, 30); bg1on.src = 'Images/Common/litb1.gif';

bg2off = new Image(120, 30); bg2off.src = 'Images/Common/unlb2.gif';
bg2on = new Image(120, 30); bg2on.src = 'Images/Common/litb2.gif';

bg3off = new Image(120, 30); bg3off.src = 'Images/Common/unlb3.gif';
bg3on = new Image(120, 30); bg3on.src = 'Images/Common/litb3.gif';

bg4off = new Image(120, 30); bg4off.src = 'Images/Common/unlb4.gif';
bg4on = new Image(120, 30); bg4on.src = 'Images/Common/litb4.gif';


function radclick (groupname, butnum) {
// point object variable at group object containing curselected property

var groupobj = eval(groupname)

// ignore if re-click on currently-selected button

if (groupobj.curselected != butnum) {

  // unindent previously-selected button, if not zero
  if (groupobj.curselected != 0) {
  radchangepic(groupname+groupobj.curselected, 'off') }

  // indent the newly-selected button
  radchangepic(groupname+butnum, "on"); 
  // set group's currently-selected button property to new button number
  groupobj.curselected = butnum
  } // end of reclick-protect if()
} // end of function


function radchangepic (imgname, status) {
// alert(imgname)
if (document.images) {
  document.images[imgname].src = eval(imgname+status+".src")
  }
} // end of function

/* 				*****************				 */

PicWindow=new Object ; PicWindow.closed=true

var PicName=""
var descript=""

function ShowPic(PicName,descript) {
	if (!PicWindow.closed) {
		PicWindow.close()
		}
	PicWindow=window.open('Enlarge.htm','BigPic','toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,top=10,left=0,width=1000,height=580')
	PicWindow.document.write("<html><head><title>Show Picture</title></head>")
	PicWindow.document.write("<body bgcolor='#000000' text='#FFFFFF'><center>")
	PicWindow.document.write("<img src='"+PicName+"'>")
	PicWindow.document.write("<br><font size=5><b>"+descript+"</b></font></center></body></html>")
	PicWindow.document.close()
	}


var Digit=5

function SetList(Digit) {
	parent.lists.document.location.href="BootsList"+Digit+".htm"
	}


/* 				*****************				 */

myMsg="Stalking now until 20th October, except Sundays......Glen Shee - ring 01250 885288......Glen Callater, Glen Clunie - ring 013397 41997.......Stalking now until 20th October, except Sundays......Invercauld, north - ring 013397 41911........Lochnagar - ring 013397 55532........"

i=0

function scrollMsg() {
	frontPart=myMsg.substring(i,myMsg.length)
	backPart=myMsg.substring(0,i)
	window.status=frontPart+backPart
	if(i<myMsg.length){
		i++
	}
	else{
		i=0
	}
	setTimeout("scrollMsg()",100)
	} // end of function


// -->