// ===================================================
// Copyright: 2004 by ZCT Internet
// Source:    pokerXL.com
// Author:    Chris Healey
// Updated:   20 MAR 2004
// Purpose:   Insert date into document in the 
// following format - Day, Month XXth, Year
// ===================================================
// This program may not be distributed, modified or
// used on a website without prior written permission.
// v1.0 - Logic used to pick date suffix
// v2.0 - Optimized for size by using array
// v2.1 - Corrected array reading
// ===================================================
// There are only 10 types of people in this world:
// those that understand binary and those that do not
// ===================================================
var now = new Date();
var days = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
var months = new Array('January','February','March','April','May','June','July','August','September','October','November','December');
var suffix = new Array('st','nd','rd','th','th','th','th','th','th','th','th','th','th','th','th','th','th','th','th','th','st','nd','rd','th','th','th','th','th','th','th','st');
var date = now.getDate();
function fourdigits(number)	{return (number < 1000) ? number + 1900 : number};
today = days[now.getDay()] + ", " + months[now.getMonth()] + " " + date + "<SUP>" + suffix[date-1] + "</SUP>, " + (fourdigits(now.getYear())) ;
document.write(today);
