// Time of Day Image Script
// copyright Stephen Chapman, 20th Jan 2005
// you may copy this script but please keep the copyright notice as well
function timeOfDayImage() {
var now = new Date;
var timeNow = now.getHours();
var img = null; var mess = '';
if (timeNow < 4 || timeNow > 20) {
img = 'night.swf'; mess = 'night';
} else if (timeNow < 6) {
img = 'night.swf'; mess = 'dawn';
} else if (timeNow < 8) {
img = 'morning'; mess = 'early morning';
} else if (timeNow < 11) {
img = 'morning.swf'; mess = 'morning';
} else if (timeNow < 13) {
img = 'afternoon.swf'; mess = 'noon';
} else if (timeNow < 16) {
img = 'afternoon.swf'; mess = 'afternoon';
} else if (timeNow < 18) {
img = 'afternoon.swf'; mess = 'late afternoon';
} else {
img = 'night.swf'; mess = 'sunset';
}
//document.write('<img src="'+img+'" width="200" height="80" alt="'+mess+'"title="'+mess+'" />');
//}


//document.write('<a href="#">blah blah<\/a>');
//}


document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http:\/\/download.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=6\,0\,0\,0" height="35" width="640"><param name="movie" value="'+img+'" \/><param name="quality" value="best" \/><param name="play" value="true" \/><embed height="35" pluginspage="http:\/\/www.macromedia.com\/go\/getflashplayer" src="'+img+'" type="application\/x-shockwave-flash" width="640" quality="best" play="true"><\/embed> <\/object>');
}