var days = new Array(7)
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(12)
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 today = new Date()
var day = days[today.getDay() + 1]
var month = months[today.getMonth() + 1]
var date = today.getDate()
var year = today.getFullYear()
var hours = today.getHours();
                if (hours<7)  greeting = 'Good Morning! (up early,eh?)';
                if (hours<12 && hours>7)  greeting = 'Good Morning!';
	if (hours<18 && hours>11)  greeting = 'Good Afternoon!';
	if (hours<20 && hours>17)  greeting = 'Good Evening!';
	if (hours>19)  greeting = 'Good Evening! (working late?)';
hour = (hours>12) ? (hours-12) : hours;
halfDay = (hours>11 && hours<24) ? 'PM' : 'AM';
minutes = today.getMinutes();
dayStr =  day+ ', ' +month+ '&nbsp;' +date+ ',&nbsp;' +year;
timeStr = (minutes<10) ? hour+ ':0' +minutes+ ' ' +halfDay : hour+ ':' +minutes+ ' ' +halfDay;

var lastmodall = document.lastModified
lastmoddate = lastmodall.split(" ")

splitdate = lastmoddate[0].split("/")
var mookie = splitdate[0] - 0

var tdate = new Array(3)
tdate[0] = today.getMonth()+1
tdate[1] = today.getDate()
tdate[2] = year
ydate = tdate[1] - 1
timeStr = (minutes<10) ? hour+ ':0' +minutes+ ' ' +halfDay : hour+ ':' +minutes+ ' ' +halfDay;
if (tdate[1] == splitdate[1])
	var prints = "Today"
else var prints = "Yesterday"
if (tdate[0] == splitdate[0] && tdate[1] == splitdate[1] || ydate == splitdate[1])
	output_last_mod = "This page was last modified: " + prints
else
	output_last_mod = "This site was last modified: "+ months[mookie] + " " + splitdate[1] + ", " + splitdate[2]