var date=new Date(); // Gets the full date!
var day=date.getHours(); // Gets the hours!

if(day<=11) {
document.write('<img src="/images/morning.gif" alt="Good Morning and welcome to Sutton Bonington Hall" />'); // If it's before 12 PM then display this!
} else if(day<18){
document.write('<img src="/images/afternoon.gif" alt="Good Afternoon and welcome to Sutton Bonington Hall" />'); // After 12 PM display this!
} else {
document.write('<img src="/images/evening.gif" alt="Good Evening and welcome to Sutton Bonington Hall" />'); // After 6 PM display this!
}