/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Anonymous | http://musikimiz.googlepages.comLicensed under: Creative Commons License
 */

function pixTimeChange() {
  var t=new Date();
  var h = t.getHours();
  var r1="http://nowcomms.com/bgroundandspacers/timeofdaypics/coffeecup.jpg";
  var r2="http://nowcomms.com/bgroundandspacers/timeofdaypics/dice.jpg";
  var r3="http://nowcomms.com/bgroundandspacers/timeofdaypics/diary.jpg";
  var r4="http://nowcomms.com/bgroundandspacers/timeofdaypics/newstracker.jpg";
  var el=document.getElementById('myimage');

  // See the time below. Note: The time is in 24 hour format.
  // In the example here, "7" = 7 AM; "17" =5PM.
el.src = (h>=5 && h<12) ? r1 : (h>=12 && h<14) ? r2 : (h>=14 && h<18?r3:r4);
}

// Multiple onload function created by: Simon Willison
// http://simonwillison.net/2004/May/26/addLoadEvent/
function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}

addLoadEvent(function() {
  pixTimeChange();
});

addLoadEvent(function() {
pixTimeChange();
showHot=true;self.focus();
});