var weekday = ['Sunday','Monday','Tuesday','Wednesday','Thrsday','Friday','Saturday'];
var ImgURL = 'http://autopartsbylou.com/images/products/';
 
var ImgList = [
  ['supportclosed.jpg'],
  ["callforsupport.jpg"]      // Note: no comma at end of list
];
 
function pixTimeChange() {
  var t=new Date();
       
// See the time below. Note: The time is in 24 hour format.
// In the example here, "7" = 7 AM; "17" =5PM.
  var h = t.getUTCHours(); 
  var m = t.getUTCMinutes()
  var d = t.getUTCDay();
   
  
	   
  var el=document.getElementById('myimage');
      el.src = ImgURL+ImgList[0]; 
      el.alt = ImgList[0];
  switch (d) {
       
    case 1 : // Mon
    case 2 : // Tue
    case 3 : // Wed
    case 4 : // Thu
	case 5 : // Fri
	if ((h >= 16) && (h < 23))  { el.src = ImgURL+ImgList[1];  el.alt = ImgList[1]; }
        break;
  	  }
	}
	 
	// 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(); } );

