// JavaScript Document
var todaysDate = new Date();
todaysDate.getTime();
var firstOfYear = new Date("January 1, 2010");
var intDay = (firstOfYear - todaysDate);
intDay = Math.abs(Math.floor(intDay / (1000 * 60 * 60 * 24)));
var theColor;

// last update = jan 30, 2008
function getColor(){
	// blue
	if(intDay >= 333 && intDay <= 354){
		theColor = "0033CC";
	} 
	// purple
	else if(intDay >= 56 && intDay <= 88){
		theColor = "6600CC";
	}	
	// red
	else if (intDay = 95 || intDay = 137 || intDay = 151 || intDay = 298){
		theColor = "990000";
	}	
	// green
	else if ((intDay >= 18 && intDay <= 46) || (intDay >= 165 && intDay <= 291) || (intDay >= 312 && intDay <= 319)){
		theColor = "009933";
	}	// black - default 
	else {
		theColor = "000000";
	}	
	return theColor;
}
	
function changeColor(){
	theColor = getColor();
	document.write('<div style="color: #' + theColor + '">');
}