// Array of day names
var dayNames = new Array("Sun","Mon","Tue","Wed",
				"Thu","Fri","Sat");

// Array of month Names
var monthNames = new Array("Jan","Feb","Mar","Apr","May","June","July","Aug","Sept","Oct","Nov","Dec");

var now = new Date();
var tod = "st";

var lsm = new Date;
var lso = new Date;
lsm.setMonth(2); // March
lsm.setDate(31);
var day = lsm.getDay();// day of week of 31st
lsm.setDate(31-day); // last Sunday
lso.setMonth(9); // October
lso.setDate(31);
day = lso.getDay();
lso.setDate(31-day);

if (now.getDate() == 1)
	tod = "st";
else if (now.getDate() == 2)
	tod = "nd";
else if (now.getDate() == 3)
	tod = "rd";
else if (now.getDate() > 3 && now.getDate() < 21)
	tod = "th";
else if (now.getDate() == 21)
	tod = "st";
else if (now.getDate() == 22)
	tod = "nd";
else if (now.getDate() == 23)
	tod = "rd";
else if (now.getDate() > 23 && now.getDate() < 31)
	tod = "th";
else if (now.getDate() == 31)
	tod = "st";

document.write("<img src=\"/images/site/icon_clock.gif\" width=\"9\" height=\"10\">&nbsp;" + dayNames[now.getDay()] + ", " + monthNames[now.getMonth()] + " " + now.getDate() + tod + ", " + now.getFullYear());
