
// <![CDATA[
var dailyPhotos;
var today, img;
 
dailyPhotos = function() {
 
   today = new Date();
   weekday = today.getDay();
   showImages = [ ];
   myPhotos = [ "quotes/quote_1.jpg", "quotes/quote_2.jpg", "quotes/quote_3.jpg", "quotes/quote_4.jpg", "quotes/quote_1.jpg", "quotes/quote_2.jpg", "quotes/quote_3.jpg" ]; // You must specify the path or file name of your images that will be loaded in a weekday basis.
 
    if ( document.images ) {
       for ( var x = 0; x < myPhotos.length; x++ ) { 
       showImages[ x ] = new Image();
       showImages[ x ].src = myPhotos[ x ];          
     } img = (( document.getElementById ) ? document.getElementById("yourImageId") : document.images.yourImageId ); // Specify the id of the image that will get raplaced daily.
        img.src = showImages[ weekday ].src;
        img.alt = myPhotos[ weekday ];         
   } return false; // If the browser can't display images, then EXIT FUNCTION.
};
   window.onload = dailyPhotos;
// ]]>

