// cf p.6 Designing w/ JavaScript, heinle -----------------------------------

// this code will set background and accordingly state evening, afternoon, morning, very
// early morning
/* this is suppressed because the background/foreground colors are affecting
my time setting 

var now = new Date()
var hour = now.getHours()

// document.write(hour)

if (hour < 24) {
	partofday = "evening" 
	document.bgColor = "#000000" // black background
	document.fgColor = "#FFFFFF" // white text
}

if (hour < 18) {
	partofday = "afternoon" 
	document.bgColor = "#FFFFFF" // white background
	document.fgColor = "#000000" // black text
}

if (hour < 12) {
	partofday = "morning" 
	document.bgColor = "#FFFFFF" // white background
	document.fgColor = "#000000" // black text
}

if (hour < 6) {
	partofday = "very early morning" 
	document.bgColor = "#000000" // black background
	document.fgColor = "#FFFFFF" // white text
}


// document.write (bgColor)

document.write ("Good ")
document.write (partofday)

// need to verify *on* web server, if cached copy is read, or if fresh date is 
// obtained each time. if cached, then sentence below will work out quite well.

document.write(". The first time you viewed this page today was on ")
document.write(customdatestring(new Date()))
//             Thursday, October 22, 1998

// cf Java Bible book ---------------------------------------------------------

// startDate = new Date()
started = now.toGMTString()

document.write()
document.write("<P>The date and time in London at first viewing was ")
document.write(started)

*/

