<!-- Hide script from old browsers
//
// Pic of the day script
// By Mike Anderson aka "Gumby"
// (c) 2001, 2002 by Mike Anderson.
//
// Images rotate with the day of the month.
// Supports thumbnails.
// Support for captions being added.
// - Gumby
// If you dont have enough images you can just repeat some, till you do.
//
// Add the script to the HEAD section and call it as follows:
// <script>Pic_of_the_day();</script>
//

// This is it. Call this function from your page where you want the pic to appear.
function Pic_of_the_day(){
// Declare Local Variables
   var dateobj = new Date();
   var dayofthemonth;
   var thumbs = new Array(31);
   var pics = new Array(31);

// Image Thumbnails. usually 120x90 (case Matters!!)
thumbs[1]="/potd/potd_1.gif";
thumbs[2]="/potd/potd_2.gif";
thumbs[3]="/potd/potd_3.gif";
thumbs[4]="/potd/potd_4.gif";
thumbs[5]="/potd/potd_5.gif";
thumbs[6]="/potd/potd_6.gif";
thumbs[7]="/potd/potd_7.gif";
thumbs[8]="/potd/potd_8.gif";
thumbs[9]="/potd/potd_9.gif";
thumbs[10]="/potd/potd_10.gif";
thumbs[11]="/potd/potd_11.gif";
thumbs[12]="/potd/potd_12.gif";
thumbs[13]="/potd/potd_13.gif";
thumbs[14]="/potd/potd_14.gif";
thumbs[15]="/potd/potd_15.gif";
thumbs[16]="/potd/potd_16.gif";
thumbs[17]="/potd/potd_17.gif";
thumbs[18]="/potd/potd_18.gif";
thumbs[19]="/potd/potd_19.gif";
thumbs[20]="/potd/potd_20.gif";
thumbs[21]="/potd/potd_21.gif";
thumbs[22]="/potd/potd_22.gif";
thumbs[23]="/potd/potd_23.gif";
thumbs[24]="/potd/potd_24.gif";
thumbs[25]="/potd/potd_25.gif";
thumbs[26]="/potd/potd_26.gif";
thumbs[27]="/potd/potd_27.gif";
thumbs[28]="/potd/potd_28.gif";
thumbs[29]="/potd/potd_29.gif";
thumbs[30]="/potd/potd_30.gif";
thumbs[31]="/potd/potd_31.gif";

// Full sized Images (case matters!!)
pics[1]="/potd/potd_1.jpg";

pics[2]="/potd/potd_2.jpg";

pics[3]="/potd/potd_3.jpg";

pics[4]="/potd/potd_4.jpg";

pics[5]="/potd/potd_5.jpg";

pics[6]="/potd/potd_6.jpg";

pics[7]="/potd/potd_7.jpg";

pics[8]="/potd/potd_8.jpg";

pics[9]="/potd/potd_9.jpg";

pics[10]="/potd/potd_10.jpg";

pics[11]="/potd/potd_11.jpg";

pics[12]="/potd/potd_12.jpg";

pics[13]="/potd/potd_13.jpg";

pics[14]="/potd/potd_14.jpg";

pics[15]="/potd/potd_15.jpg";

pics[16]="/potd/potd_16.jpg";

pics[17]="/potd/potd_17.jpg";

pics[18]="/potd/potd_18.jpg";

pics[19]="/potd/potd_19.jpg";

pics[20]="/potd/potd_20.jpg";

pics[21]="/potd/potd_21.jpg";

pics[22]="/potd/potd_22.jpg";

pics[23]="/potd/potd_23.jpg";

pics[24]="/potd/potd_24.jpg";

pics[25]="/potd/potd_25.jpg";

pics[26]="/potd/potd_26.jpg";

pics[27]="/potd/potd_27.jpg";

pics[28]="/potd/potd_28.jpg";

pics[29]="/potd/potd_29.jpg";

pics[30]="/potd/potd_30.jpg";

pics[31]="/potd/potd_31.jpg";

// get the date
dayofthemonth = dateobj.getDate();
// Do it!!
document.write('<a href="',pics[dayofthemonth],'" target="_blank"><img src="',thumbs[dayofthemonth],'" width="112" height="90" border="0"></a>');
}
// Done hiding -->