<!--Begin


//Display my age
function myAge()
{
	var date = new Date()
	var year = date.getFullYear()
	var month = date.getMonth()
	var day = date.getDate()
	var hour = date.getHours()
	var minute = date.getMinutes()
	var second = date.getSeconds()
	var months = new Array("JAN", "FEB", "MAR", "APR", "MAY", "JUN", "JUL", "AUG", "SEP", "OCT", "NOV", "DEC")
	var monthname = months[month]
	<!-- set up varibles for my birthday in order to start timer-->
	daysMonth=30.4375 //roughly the average days per month
	var birthDate= new Date("jan 24, 1972 21:06")
	years=(date-birthDate)/(1000*60*60*24*365.25)
	birthSecs=Math.round((date-birthDate)/1000)
	seconds=Math.floor((date-birthDate)/(1000))
	
	
	if (minute < 10) {
	minute = "0" + minute
	}
	
	if (second < 10) {
	second = "0" + second
	}
	
	document.title = "Welcome to the Allan Welsh Rant Site " + monthname + " " + day + ", " + year + " - " + hour + ":" + minute + ":" + second 
	
	
	window.status="I am " + years.toFixed(8) + " years or " + seconds +" seconds old!! Roughly speaking" 
	
	
	setTimeout("myAge()", 1000)
}

//display site map as given by site robot
function siteMap()
{
	document.write('<A HREF="http://search.freefind.com/find.html?id=40486273&w=0&p=0" target="_blank" title="View the site map as provided by FreeFind">Site Map</a>');
}

//last modified date for page
function lastModified()
{
	var days = new Array(8);
	days[1] = "Sunday";
	days[2] = "Monday";
	days[3] = "Tuesday";
	days[4] = "Wednesday";
	days[5] = "Thursday";
	days[6] = "Friday";
	days[7] = "Saturday";
	var months = new Array(13);
	months[1] = "January";
	months[2] = "February";
	months[3] = "March";
	months[4] = "April";
	months[5] = "May";
	months[6] = "June";
	months[7] = "July";
	months[8] = "August";
	months[9] = "September";
	months[10] = "October";
	months[11] = "November";
	months[12] = "December";
	var dateObj = new Date(document.lastModified);
	var wday = days[dateObj.getDay() + 1];
	var lmonth = months[dateObj.getMonth() + 1];
	var date = dateObj.getDate();
	var fyear = dateObj.getYear();
	//if (fyear < 2000) ;
	//fyear = fyear + 1900;
	//document.write('Last modified on ',wday + ", " + lmonth + " " + date + ", " + fyear);
}

//created date for page
function FirstCreated()
{
	var days = new Array(8);
	days[1] = "Sunday";
	days[2] = "Monday";
	days[3] = "Tuesday";
	days[4] = "Wednesday";
	days[5] = "Thursday";
	days[6] = "Friday";
	days[7] = "Saturday";
	var months = new Array(13);
	months[1] = "January";
	months[2] = "February";
	months[3] = "March";
	months[4] = "April";
	months[5] = "May";
	months[6] = "June";
	months[7] = "July";
	months[8] = "August";
	months[9] = "September";
	months[10] = "October";
	months[11] = "November";
	months[12] = "December";
	var dateObj = new Date(document.fileCreatedDate);
	var wday = days[dateObj.getDay() + 1];
	var lmonth = months[dateObj.getMonth() + 1];
	var date = dateObj.getDate();
	var fyear = dateObj.getYear();
	//if (fyear < 2000) ;
	//fyear = fyear + 1900;
	document.write(document.fileCreatedDate)
	document.write('Created on ',wday + ", " + lmonth + " " + date + ", " + fyear);
}


//display copyright dates
function copyright()
{
	var date= new Date();
	var year= date.getFullYear();
	
	document.write('&copy; Allan Welsh 2002 - '+ year);
	
}

function time()
{
	function MakeArrayday(size) {
		this.length = size;
		for(var i = 1; i <= size; i++) {
			this[i] = "";
		}
		return this;
	}
	function MakeArraymonth(size) {
		this.length = size;
		for(var i = 1; i <= size; i++) {
			this[i] = "";
		}
		return this;
	}
	function funClock() {
		if (!document.layers && !document.all)
			return;
		var runTime = new Date();
		var hours = runTime.getHours();
		var minutes = runTime.getMinutes();
		var seconds = runTime.getSeconds();
		var dn = "AM";
 	
	//if (hours >= 12) {
		//dn = "PM";
		//hours = hours - 12;
		//}
	//if (hours == 0) {
		//hours = 12;
	//}
	//commented out above to keep 24 hour clock
	//added below to give double digit hour read out
		if(hours<=9){
			hours="0" + hours;
		}
		if (minutes <= 9) {
			minutes = "0" + minutes;
		}
		if (seconds <= 9) {
		seconds = "0" + seconds;
		}
//movingtime = hours + ":" + minutes + ":" + seconds + " " + dn ;
	movingtime = " Current time is " +  hours + ":" + minutes + ":" + seconds +" and counting. Your life is ticking away. Don't waste it ";
		if (document.layers) {
			document.layers.clock.document.write(movingtime);
			document.layers.clock.document.close();
		}
		else if (document.all) {
			clock.innerHTML = movingtime;
		}
		setTimeout("funClock()", 1000)
	}
 window.onload = funClock;
}
-->
