// JavaScript Document
<!-- Original:  Mark McCain (sub235k@worldnet.att.net) -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

var today = new Date();
var day = today.getDate();
var month = today.getMonth() + 1;
var year = today.getYear();
if (year < 2000)
year = year + 1900;
var offset = today.getDay();
var week;
var msg;
var weekandnames;
var index;

if(offset != 0) {
day = day - offset;
if ( day < 1) {
if ( month == 1) day = 31 + day;
if (month == 2) day = 31 + day;
if (month == 3) {
if (( year == 00) || ( year == 04)) {
day = 29 + day;
}
else {
day = 28 + day;
   }
}
if (month == 4) day = 31 + day;
if (month == 5) day = 30 + day;
if (month == 6) day = 31 + day;
if (month == 7) day = 30 + day;
if (month == 8) day = 31 + day;
if (month == 9) day = 31 + day;
if (month == 10) day = 30 + day;
if (month == 11) day = 31 + day;
if (month == 12) day = 30 + day;
if (month == 1) {
month = 12;
year = year - 1;
}
else {
month = month - 1;
      }
   }
}
/* Array of randomly chosen names
/* If you want to add a new name, modify the random.js file and then run the test.html page
/* Copy the array list and replace it below
*/

var thinkingabout = new Array();
thinkingabout[0]="Josh Weir";
thinkingabout[1]="Steve Morales";
thinkingabout[2]="Dan Liguori";
thinkingabout[3]="Adam Katzenmeier";
thinkingabout[4]="Heather Weir";
thinkingabout[5]="Betty Bloom";
thinkingabout[6]="Joe Fear";
thinkingabout[7]="Steve Rausch";
thinkingabout[8]="Joanna Heath";
thinkingabout[9]="Joey Hernandez";
thinkingabout[10]="Jon Delano";
thinkingabout[11]="Catherine Liguori";
thinkingabout[12]="Lisa Liguori";
thinkingabout[13]="Dan Liguori";
thinkingabout[14]="Tom Liguori";
thinkingabout[15]="Matt Jenson";
thinkingabout[16]="Brittany Rausch";
thinkingabout[17]="Geoff Horn";
thinkingabout[18]="Kristen Carlson";
thinkingabout[19]="Corrie Rausch";
thinkingabout[20]="George Morales";
thinkingabout[21]="Doug Kyle";
thinkingabout[22]="Paul Gostanian";
thinkingabout[23]="Steve Morales";
thinkingabout[24]="Robbie Morales";
thinkingabout[25]="Sam Levine";
thinkingabout[26]="Jeremiah Heath";
thinkingabout[27]="Adam Katzenmeier";
thinkingabout[28]="Todd McGovern";
thinkingabout[29]="Kelly Le";
thinkingabout[30]="Juan Lalinde";
thinkingabout[31]="Jeremiah Heath";
thinkingabout[32]="Heather Weir";
thinkingabout[33]="David Wold";
thinkingabout[34]="Art Levine";
thinkingabout[35]="Ryan Throop";
thinkingabout[36]="Juan Lalinde";
thinkingabout[37]="Josh Weir";
thinkingabout[38]="Gerry DeOcampo";
thinkingabout[39]="Bill McCreery";
thinkingabout[40]="Mike French";
thinkingabout[41]="Catherine Liguori";
thinkingabout[42]="Adam Weatherby";
thinkingabout[43]="Greg Rochfort";
thinkingabout[44]="Lisa Liguori";
thinkingabout[45]="Jeremiah Heath";
thinkingabout[46]="Arlene Paraiso";
thinkingabout[47]="Nathan Maldonado";
thinkingabout[48]="Antonio Ramirez";
thinkingabout[49]="Kelly Le";
thinkingabout[50]="David Wold";
thinkingabout[51]="Paul Gostanian";
thinkingabout[52]="Cameron Rausch";
/* thinking bout 52  equals the last name of the year while you update this file...the current name
*/


/* No need to mess with this code until 2010, then just update to the Sunday number date
*/
week = month + "-" + day + "-" + year; // i.e. 10-31-99
if (week == "1-3-2010") {msg = 0;}
if (week == "1-10-2010") {msg = 1;}
if (week == "1-17-2010") {msg = 2;}
if (week == "1-24-2010") {msg = 3;}
if (week == "1-31-2010") {msg = 4;}
if (week == "2-7-2010") {msg = 5;}
if (week == "2-14-2010") {msg = 6;}
if (week == "2-21-2010") {msg = 7;}
if (week == "2-28-2010") {msg = 8;}
if (week == "3-7-2010") {msg = 9;}
if (week == "3-14-2010") {msg = 10;}
if (week == "3-21-2010") {msg = 11;}
if (week == "3-28-2010") {msg = 12;}
if (week == "4-4-2010") {msg = 13;}
if (week == "4-11-2010") {msg = 14;}
if (week == "4-18-2010") {msg = 15;}
if (week == "4-25-2010") {msg = 16;}
if (week == "5-2-2010") {msg = 17;}
if (week == "5-9-2010") {msg = 18;}
if (week == "5-16-2010") {msg = 19;}
if (week == "5-23-2010") {msg = 20;}
if (week == "5-30-2010") {msg = 21;}
if (week == "6-6-2010") {msg = 22;}
if (week == "6-13-2010") {msg = 23;}
if (week == "6-20-2010") {msg = 24;}
if (week == "6-27-2010") {msg = 25;}
if (week == "7-4-2010") {msg = 26;}
if (week == "7-11-2010") {msg = 27;}
if (week == "7-18-2010") {msg = 28;}
if (week == "7-25-2010") {msg = 29;}
if (week == "8-1-2010") {msg = 30;}
if (week == "8-8-2010") {msg = 31;}
if (week == "8-15-2010") {msg = 32;}
if (week == "8-22-2010") {msg = 33;}
if (week == "8-29-2010") {msg = 34;}
if (week == "9-5-2010") {msg = 35;}
if (week == "9-12-2010") {msg = 36;}
if (week == "9-19-2010") {msg = 37;}
if (week == "9-26-2010") {msg = 38;}
if (week == "10-3-2010") {msg = 39;}
if (week == "10-10-2010") {msg = 40;}
if (week == "10-17-2010") {msg = 41;}
if (week == "10-24-2010") {msg = 42;}
if (week == "10-31-2010") {msg = 43;}
if (week == "11-7-2010") {msg = 44;}
if (week == "11-14-2010") {msg = 45;}
if (week == "11-21-2010") {msg = 46;}
if (week == "11-28-2010") {msg = 47;}
if (week == "12-5-2010") {msg = 48;}
if (week == "12-12-2010") {msg = 49;}
if (week == "12-19-2010") {msg = 50;}
if (week == "12-26-2010") {msg = 51;}
if (week == "12-27-2009") {msg = 52;}
/* msg 52  equals the last sunday of the year while you update this file...the current name
*/
