<!--// random welcome page header picture generatorfunction randomheadpic(){var splashImage=new Array()splashImage[1]="./images/Homeview.jpg"splashImage[2]="./images/exmth.jpg"splashImage[3]="./images/Harbourjuly03.jpg"splashImage[4]="./images/HomeDawn.jpg"var splashText=new Array()// text for pics goes heresplashText[1]="The Kent connection."splashText[2]="The Devon Connection."splashText[3]="From the Balcony."splashText[4]="Dawn in Kent."var getRan=Math.floor(Math.random()*splashImage.length)if (getRan==0)getRan=1var strlink="javascript:bigpicture(\'"+splashImage[getRan]+"\')"document.write('<p><a href=\"'+strlink+'\"><img src=\"'+splashImage[getRan]+'" alt=\"A random photograph.\" width=\"300\"  height=\"225\" border=\"0\" \/><\/a><\/p>')document.write('<p>'+splashText[getRan]+'<\/p>')}//Swap Imagefunction swapPhoto(photoSRC) {    document.images.imgPhoto.src = "./JavaLibrary/assets/" + photoSRC;}					function arrayOfDayNames() {        this[0] = "SUNDAY";        this[1] = "MONDAY";        this[2] = "TUESDAY";        this[3] = "WEDNESDAY";        this[4] = "THURSDAY";        this[5] = "FRIDAY";        this[6] = "SATURDAY";}function dayNames(dayName) {        var dayNames = new arrayOfDayNames();        return dayNames[dayName];}function arrayOfMonthNames() {        this[0] = "January";        this[1] = "February";        this[2] = "March";        this[3] = "April";        this[4] = "May";        this[5] = "June";        this[6] = "July";        this[7] = "August";        this[8] = "September";        this[9] = "October";        this[10]        = "November";        this[11]        = "December";}function monthNames(month) {        var monthNames = new arrayOfMonthNames();        return monthNames[month];}var strMyDate = "";function getFullYear(d){    var y = d.getYear();    if (y < 1000) y += 1900;    return y;}function myDate(){        var d = new Date();        var dayname = dayNames(d.getDay());        var daynumber = d.getDate();        var month = monthNames(d.getMonth());        var year = getFullYear(d);                strMyDate =  month + " " + daynumber + " | " + year;}mailsys="Netscape mail";function mailsome1(){	who=prompt("Enter a friend's email address: "," .com");	what=" You might like to view";		parent.location.href='mailto:'+who+'?subject='+what+'&body=This website may be of help. It is at '+window.location+'  and is worth a look.';}// Open a non browser window to display additional information contained in a basic html filefunction NoteWindow(NotePage) {//First check the screen height and width	if (screen){		leftpos=screen.width-550		toppos=screen.height-200	}	NoteWin = window.open(NotePage, "NoteHtm", "width=500,height=100,left="+leftpos+",top="+toppos)	NoteWin.focus()}//Close the child windowfunction CloseNoteWindow() {	if (NoteHtm && !NoteHtm.closed) {		NoteHtm.close()	}}//Display a random text linefunction myThought2(textarray){var mynumber = Math.random();mynumber = mynumber * textarray.length;mynumber = mynumber - .5;mynumber = Math.round(mynumber);document.write('<FONT COLOR="RED">' +textarray[mynumber]) +'</FONT>'}//Expand a picture in a separate windowfunction bigpicture(picfile) {		 bigpicwindow = window.open(picfile, "picwin", "width=650,height=500")		 bigpicwindow.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concertNext = new Date(yrnow,9,12)if(concertNext.getTime() < now.getTime()){	concertNext.setYear(yrnext)}christmas = new Date(yrnow,11,25)if(christmas.getTime() < now.getTime()){	christmas.setYear(yrnext)}// End of the date definitions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';	}	//xxxxxxxxxxxxxxxxxx Some standalone cookie functions xxxxxxxxxxxxxxxxxxxxxx// First Set a Cookiefunction setBigCookie(name,value,expires,path,domain,secure){document.cookie=name	+"="+escape(value)	+((expires)?"; expires=" +expires.toGMTString():"")	+((path)?"; path="+path:"")	+((domain)?"; domain="+domain:"")	+((secure)?"; secure="+secure:"")}function setCookie(){document.cookie = "userName="+userName}// Then Get a cookiefunction getCookie(name){	var cookieArg=name+"=";	var argLength=cookieArg.length;	var cookieLength=document.cookie.length;	var i=0	while(i<cookieLength)	{		var j=i+argLength;		if(document.cookie.substring(i,j)==cookieArg)			return getCookieVal(j);		i=document.cookie.indexOf(" ",i)+i;		if(!i)break;	}	return null;}// The subfunction that returns the value of the first parameter in the cookiefunction getCookieVal(offset){	var end=document.cookie.indexOf(";" ,offset);	id(end==-1)		end=document.cookie.lenght;	return unescape(document.cookie.substring(offset,end));}// Delete a cookiefunction deleteCookie(name){	if(getCookie(name))	{	var killDate=new Date();	killDate.setTime(killDate.getTime ()- 10*365*24*60*60);	setCookie(name,"",killDate);	}}//xxxxxxxxxxxxxxxxxx End of the cookie functions xxxxxxxxxxxxxxxxxxxxxxxxxxx-->