//Builds a date string which is saved in current_date
NS = document.layers ? 1 : 0;

var current_date;
// buildArray
 
	function buildArray(len) 
	{	for (var i = 0; i < len; i++)
		{	this[i] = null
		}
		this.length = len
	}


// day names
	var nday = new buildArray(7)
	nday[0] = "Sunday"
	nday[1] = "Monday"
	nday[2] = "Tuesday"
	nday[3] = "Wednesday"
	nday[4] = "Thursday"
	nday[5] = "Friday"
	nday[6] = "Saturday"
	

// month names
	var nmonth = new buildArray(12)
	nmonth[0] = "January"
	nmonth[1] = "February"
	nmonth[2] = "March"
	nmonth[3] = "April"
	nmonth[4] = "May"
	nmonth[5] = "June"
	nmonth[6] = "July"
	nmonth[7] = "August"
	nmonth[8] = "September"
	nmonth[9] = "October"
	nmonth[10] = "November"
	nmonth[11] = "December"


// date variables
	var now = new Date()
	var day = now.getDay()
	var month = now.getMonth()
	var year = now.getYear()
	var date = now.getDate()
	var hour = now.getHours()
	var minutes = now.getMinutes()
	var seconds = now.getSeconds()
	
	
	
// write date

	function showDate()
	{	
		var datestr = "" + nday[day] + "<br>" + nmonth[month] + " "+date+", "
		if (year < 2000)
		{
			year = 1900 + year
		}
		datestr += year
/*
		datestr += " &nbsp; "
		if(hour<10)
		{
			datestr += "0"
		}
		datestr += ( hour +":" )
		
		if(minutes<10)
		{
			datestr += "0"
		}
		datestr += minutes 
*/
		current_date = datestr;

	//	document.write(datestr)
	}
showDate();