
////////////////////////////////////////////////////////////////
//
//	What day is it? Graphically speaking.
//
//	Copyright © The Sacramento Bee
//	Created by the New Media Department
//	Designer: Seth Van Booven
//	Created: July 12, 2000 (sv)  /  Last update: 08/17/00 (sv)
//
////////////////////////////////////////////////////////////////

var months=new Array(13);
months[1]="<img src='images/dateimgs/january.gif' width='64' height='18' alt='January' border='0'>";
months[2]="<img src='images/dateimgs/february.gif' width='67' height='18' alt='February' border='0'>";
months[3]="<img src='images/dateimgs/march.gif' width='49' height='18' alt='March' border='0'>";
months[4]="<img src='images/dateimgs/april.gif' width='40' height='18' alt='April' border='0'>";
months[5]="<img src='images/dateimgs/may.gif' width='35' height='18' alt='May' border='0'>";
months[6]="<img src='images/dateimgs/june.gif' width='35' height='18' alt='June' border='0'>";
months[7]="<img src='images/dateimgs/july.gif' width='36' height='18' alt='July' border='0'>";
months[8]="<img src='images/dateimgs/august.gif' width='52' height='18' alt='August' border='0'>";
months[9]="<img src='images/dateimgs/september.gif' width='74' height='18' alt='September' border='0'>";
months[10]="<img src='images/dateimgs/october.gif' width='57' height='18' alt='October' border='0'>";
months[11]="<img src='images/dateimgs/november.gif' width='70' height='18' alt='November' border='0'>";
months[12]="<img src='images/dateimgs/december.gif' width='67' height='18' alt='December' border='0'>";

var days=new Array(8);
days[1]="<img src='images/dateimgs/sunday.gif' width='53' height='18' alt='Sunday' border='0'>";
days[2]="<img src='images/dateimgs/monday.gif' width='56' height='18' alt='Monday' border='0'>";
days[3]="<img src='images/dateimgs/tuesday.gif' width='58' height='18' alt='Tuesday' border='0'>";
days[4]="<img src='images/dateimgs/wednesday.gif' width='79' height='18' alt='Wednesday' border='0'>";
days[5]="<img src='images/dateimgs/thursday.gif' width='67' height='18' alt='Thursday' border='0'>";
days[6]="<img src='images/dateimgs/friday.gif' width='47' height='18' alt='Friday' border='0'>";
days[7]="<img src='images/dateimgs/saturday.gif' width='69' height='18' alt='Saturday' border='0'>";

var dates=new Array(32);
dates[1]="<img src='images/dateimgs/01.gif' width='16' height='18' alt='01' border='0'>";
dates[2]="<img src='images/dateimgs/02.gif' width='18' height='18' alt='02' border='0'>";
dates[3]="<img src='images/dateimgs/03.gif' width='18' height='18' alt='03' border='0'>";
dates[4]="<img src='images/dateimgs/04.gif' width='19' height='18' alt='04' border='0'>";
dates[5]="<img src='images/dateimgs/05.gif' width='18' height='18' alt='05' border='0'>";
dates[6]="<img src='images/dateimgs/06.gif' width='18' height='18' alt='06' border='0'>";
dates[7]="<img src='images/dateimgs/07.gif' width='18' height='18' alt='07' border='0'>";
dates[8]="<img src='images/dateimgs/08.gif' width='18' height='18' alt='08' border='0'>";
dates[9]="<img src='images/dateimgs/09.gif' width='18' height='18' alt='09' border='0'>";
dates[10]="<img src='images/dateimgs/10.gif' width='15' height='18' alt='10' border='0'>";
dates[11]="<img src='images/dateimgs/11.gif' width='13' height='18' alt='11' border='0'>";
dates[12]="<img src='images/dateimgs/12.gif' width='15' height='18' alt='12' border='0'>";
dates[13]="<img src='images/dateimgs/13.gif' width='15' height='18' alt='13' border='0'>";
dates[14]="<img src='images/dateimgs/14.gif' width='16' height='18' alt='14' border='0'>";
dates[15]="<img src='images/dateimgs/15.gif' width='15' height='18' alt='15' border='0'>";
dates[16]="<img src='images/dateimgs/16.gif' width='15' height='18' alt='16' border='0'>";
dates[17]="<img src='images/dateimgs/17.gif' width='15' height='18' alt='17' border='0'>";
dates[18]="<img src='images/dateimgs/18.gif' width='15' height='18' alt='18' border='0'>";
dates[19]="<img src='images/dateimgs/19.gif' width='15' height='18' alt='19' border='0'>";
dates[20]="<img src='images/dateimgs/20.gif' width='18' height='18' alt='20' border='0'>";
dates[21]="<img src='images/dateimgs/21.gif' width='15' height='18' alt='21' border='0'>";
dates[22]="<img src='images/dateimgs/22.gif' width='17' height='18' alt='22' border='0'>";
dates[23]="<img src='images/dateimgs/23.gif' width='17' height='18' alt='23' border='0'>";
dates[24]="<img src='images/dateimgs/24.gif' width='19' height='18' alt='24' border='0'>";
dates[25]="<img src='images/dateimgs/25.gif' width='17' height='18' alt='25' border='0'>";
dates[26]="<img src='images/dateimgs/26.gif' width='17' height='18' alt='26' border='0'>";
dates[27]="<img src='images/dateimgs/27.gif' width='17' height='18' alt='27' border='0'>";
dates[28]="<img src='images/dateimgs/28.gif' width='17' height='18' alt='28' border='0'>";
dates[29]="<img src='images/dateimgs/29.gif' width='17' height='18' alt='29' border='0'>";
dates[30]="<img src='images/dateimgs/30.gif' width='18' height='18' alt='30' border='0'>";
dates[31]="<img src='images/dateimgs/31.gif' width='15' height='18' alt='31' border='0'>";

var time = new Date();
var month = months [ time.getMonth() + 1 ];
var day = days [ time.getDay() + 1 ];
var date = dates [ time.getDate() ];
var year=time.getYear();

if (year < 2000) {
	year = year + 1900;
}

document.write( day +  month + date );
