<!--
// random welcome page header picture generator
function randomheadpic()
{
var splashImage=new Array()
// location of images in this array
splashImage[1]="./images/MarchHeadpic.jpg"
splashImage[2]="./images/SpringHeadpic.jpg"
splashImage[3]="./images/winterHEADPIC.jpg"
splashImage[4]="./images/autumn.jpg"
splashImage[5]="./images/FebHeadpic.jpg"

var splashText=new Array()
// text for pics goes here
splashText[1]="From over the road."
splashText[2]="From the chip shop."
splashText[3]="Winter's here."
splashText[4]="Autumn leaves."
splashText[5]="From across the road."

var getRan=Math.floor(Math.random()*splashImage.length)
if (getRan==0)
getRan=1

document.write('<p><img src=\"'+splashImage[getRan]+'" alt=\"A random photograph.\" width=\"300\"  height=\"225\" border=\"0\" \/><\/p>')

document.write('<p>'+splashText[getRan]+'<\/p>')
}
//Swap Image
function swapPhoto(photoSRC) {
    document.images.imgPhoto.src = "./JavaLibrary/assets/" + photoSRC;
}
function NoteWindow(NotePage) {
	NoteWin = window.open(NotePage, "NoteHtm", "width=500,height=300")
	NoteWin.focus()
}
//Variables for a countdown
now = new Date
yrnow = now.getYear()
if (yrnow < 1900) {
	yrnow = yrnow+1900
	}
yrnext = yrnow + 1
// the actual dates to be counted down to
// Not all of them may be in use
//Note that the date is year,month,day
//and that the months start at 0 for January
CountDown1 = new Date(yrnow,8,11)
if(CountDown1.getTime() < now.getTime()){
	CountDown1.setYear(yrnext)
}
CountDown2 = new Date(yrnow,6,4)
if(CountDown2.getTime() < now.getTime()){
	CountDown2.setYear(yrnext)
}
CountDown3 = new Date(yrnow,10,30)
if(CountDown3.getTime() < now.getTime()){
	CountDown3.setYear(yrnext)
}
MayFair = new Date(yrnow,4,30)
if(MayFair.getTime() < now.getTime()){
	MayFair.setYear(yrnext)
}
StrawTea = new Date(yrnow,6,24)
if(StrawTea.getTime() < now.getTime()){
	StrawTea.setYear(yrnext)
}
CoachOut = new Date(yrnow,8,5)
if(CoachOut.getTime() < now.getTime()){
	CoachOut.setYear(yrnext)
}
HarvestSupper = new Date(yrnow,10,30)
if(HarvestSupper.getTime() < now.getTime()){
	HarvestSupper.setYear(yrnext)
}
function dayToDays(inTime) {
	return (inTime.getTime() / (1000 * 60 * 60 * 24))
}
function daysTill(inDate) {
	return (Math.ceil(dayToDays(inDate) - dayToDays(now)))
}
//xxxxxxxxxxxxxxxxxxCollapsible box functions xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
	function toggleBox(id){
		if(!document.getElementById) return;
		var box = document.getElementById(id);
		if(box.className == 'boxhidden') box.className = 'boxvisible';
		else box.className = 'boxhidden';
	}

-->