
// Array of day names
var dayNames = new Array("Sunday","Monday","Tuesday","Wednesday",
				"Thursday","Friday","Saturday");

// Array of month Names
var monthNames = new Array(
"January","February","March","April","May","June","July",
"August","September","October","November","December");

var now = new Date();
/*
document.write(dayNames[now.getDay()] + ", " + 
monthNames[now.getMonth()] + " " + 
now.getDate() + ", " + now.getFullYear());
*/


function swapLogo(){
	var thisLogo = "images/";
	if((now.getMonth() == 5 ) && (now.getDate() >= 20) && (now.getDate() <= 26)){
		// Display Summer Logo :: June 20 - 26
		thisLogo += "logo_summer.gif";
	}else if(now.getMonth() == 9){
		// Display Halloween Logo :: All October
		thisLogo += "logo_halloween.gif";
	}else if((now.getMonth() == 11) && (now.getDate() <= 26)){
		// Display Christmas Logo :: All December, last day on Dec 26
		thisLogo += "logo_xmas.gif";
	}else if((now.getMonth() == 11 && now.getDate() >= 27) || (now.getMonth() == 0 && now.getDate() <= 6)){
		// Display New Years Logo :: Dec 27 thru Jan 6
		thisLogo += "logo_newyear.gif";
	}else if((now.getMonth() == 1 ) && (now.getDate() == 1)){
		// AF&A Birthday Logo
		thisLogo += "logo_bday.gif";
	}else{
		// Otherwise, Standard Logo
		thisLogo += "logo1.gif";
	}
	
	return thisLogo;
}

window.onload = function(){
	document.getElementById('swapLogos').src = swapLogo();
}