<!-- begin hiding from old browsers
//
// written by Debbi McDaniel mailto:mdnitecreepr@earthlink.net
//
// This JavaScript function will create a text variable indicating
// the last time your page was modified.  It includes the day of 
// the week, name of the month, day, year, and time (in a 12 hour 
// clock format).
//
function LastUpdate()
{
	var Days = new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");           //Day Names array
	var Months = new Array("January", "February", "March","April", "May", "June", "July","August","September", "October","November", "December"); //Month Names array
	var Updated = new Date(document.lastModified);   //last modified date
	var dName   = Days[Updated.getDay()];            //name of the day of the week
	var mName   = Months[Updated.getMonth()];        //name of the month
	var d       = Updated.getDate();                 //date
	var dSuf    = "th";                              //date suffix
	if (d == 1 || d == 21 || d == 31) dSuf="st";     //change date suffix for 1s
	if (d == 2 || d == 22) dSuf = "nd";              //change date suffix for 2s
	if (d == 3 || d == 23) dSuf = "rd";              //change date suffix for 3s
	var y       = Updated.getFullYear();             //year
	var h       = Updated.getHours();                //hour
	var ampm    = "am"                               //AM
	if (h >=12) ampm = "pm";                         //change am to pm, if after noon
	if (h > 12) h -= 12;                             //change pm to 12 hour clock
	if (h == 0) h = 12;                              //change 0 to midnight
	var m       = Updated.getMinutes();              //minutes
	if (m < 10) m = "0" + m;                         //2-digit minutes
	var UpdateText="Last updated" + " on " + dName + " " + mName + " " +  d + "<sup>" + dSuf + "</sup>" + ", " + y + " at " + h + ":" + m + ampm + ".";   //The Last Updated Statement
	return UpdateText
}
// end hiding from old browsers -->
