// 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; 
if (timeNow < 5 || timeNow > 20) { 
img = 'time4.jpg'; //night  
} else if (timeNow < 9) { 
img = 'time1.jpg';  //morning
} else if (timeNow < 17) { 
img = 'time2.jpg'; //afternoon
} else { 
img = 'time3.jpg'; //evening
}
document.write('<img src="'+img+'" width="432" height="432" title="Fishies!" />');
}
                    
