	var mydo = new Date(); // creates a js date object with current date
	
	// var mydo = new Date(2007, 11, 31); // uncomment this line to test different dates
	// note that months are 0-based January is 0, etc
	
	
	var myyr = mydo.getFullYear(); // gets the year based on mydo
	
	
	// Here we tell the JS when the first Sunday is for each year.

	if (myyr == '2004') {
		var firstSunday = new Date(2004, 0, 4);
	} else if (myyr == '2005') {
		var firstSunday = new Date(2005, 0, 2);
	} else if (myyr == '2006') {
		var firstSunday = new Date(2006, 0, 1);
	} else if (myyr == '2007') {
		var firstSunday = new Date(2006, 11, 31);
	} else if (myyr == '2008') {
		var firstSunday = new Date(2007, 11, 30);
	} else if (myyr == '2009') {
		var firstSunday = new Date(2009, 0, 4);
	} else if (myyr == '2010') {
		var firstSunday = new Date(2010, 0, 3);
	} else if (myyr == '2011') {
		var firstSunday = new Date(2011, 0, 2);
	} else if (myyr == '2012') {
		var firstSunday = new Date(2012, 0, 1);
	} else {
	    // If year is not listed,
	    // we hard code variables as though it is first day in 2005
	    var mydo = new Date(2005, 0, 1); 
		var firstSunday = new Date(2005, 0, 2); 
	    alert('In order to get weekly messages, please be sure to set the date on your computer.');
	}

	
	// Below we subtract the current date from the date 
	// of the first Sunday.
	// That returns milliseconds that occurred between the dates.
	// Then we divide and increment to get the week number.

	
	var WeekNumber = parseInt((mydo - firstSunday) / (1000 * 60 * 60 * 24 * 7));
	WeekNumber++
	
	// For years like 2007 we might want to use a Sunday in the previous year
	// as the first Sunday for the calculation. So we need to make sure the last 
	// few days of the year are counted as week 1, not week 53.
	
	if (WeekNumber > 52) {
	
	    var WeekNumber = 1;
	
	}
	
	
	// Below, we set the variables that are set in the weekly files
	// just in case weekly file is not found.
	
	// These settings can be used as an error message or as a default:
	
	
	var WeekQuote = new String("Default Message:");
	var WeekSource = new String("Have a Great Day!");
	
	// if you need more variables for each week's entry:
	// 1. add a default for each new variable above
	// 2. set the variables in the weekly files
	// 3. use the new variables in the body of the page however you like

	// Below we include only the file for this week.
	// This saves the trouble of loading all 52 each time.
	// The variables above get reset in the file included below.
	
	// If you want to change where the weekly files are
	// stored compared to where this script is, 
	// you can change the path below:
	
	document.write('<script src="/wps/media/objects/1714/1755641/script/weekly/' + WeekNumber + '.js\" language="javascript\" type="text/javascript\"><\/script>');

	// WeekNumber will be between 1 and 52, so each implementation
	// should have 1.js through 52.js
