function detectseason(){var x=new Date()var m=x.getMonth()var Month=new Array(12)Month[0]="January"Month[1]="February"Month[2]="March"Month[3]="April"Month[4]="May"Month[5]="June"Month[6]="July"Month[7]="August"Month[8]="September"Month[9]="October"Month[10]="November"Month[11]="December"var Season=new Array(12)Season[0]="Winter"Season[1]="Winter"Season[2]="Spring"Season[3]="Spring"Season[4]="Spring"Season[5]="Spring"Season[6]="Summer"Season[7]="Fall"Season[8]="Fall"Season[9]="Fall"Season[10]="Fall"Season[11]="Winter"var springheader=new Array(2)springheader[0]="url(http://www.saint-bernard.com/images/indexheader/athletics_spring.jpg)"springheader[1]="url(http://www.saint-bernard.com/images/indexheader/athletics_spring1.jpg)"springheader[2]="url(http://www.saint-bernard.com/images/indexheader/athletics_spring2.jpg)"var winterheader=new Array(2)winterheader[0]="url(http://www.saint-bernard.com/images/indexheader/athletics_spring.jpg)"winterheader[1]="url(http://www.saint-bernard.com/images/indexheader/academics.jpg)"winterheader[2]="url(http://www.saint-bernard.com/images/indexheader/global_header.jpg)"var fallheader=new Array(0)fallheader[0]="url(http://www.saint-bernard.com/images/indexheader/athletics_fall1.jpg)"		//Generates random number for the different header choices	//var ranNum=Math.floor(Math.random()*3);	//--------------------------------------------------------		var seasonGen = Season[m]            switch(seasonGen)           			{                        case "Spring":                                    //document.write("You can not drive now.")
                                    //alert('spring');
                                    ranNum=Math.floor(Math.random()*springheader.length);									document.getElementById("indexheader").style.backgroundImage = springheader[ranNum];                                    break;                        case "Winter":                                    //document.write("You can drive if you want.")
                                    //alert('winter');
                                    ranNum=Math.floor(Math.random()*winterheader.length);                                    document.getElementById("indexheader").style.backgroundImage = winterheader[ranNum];                                    break;                        case "Fall":                                    //document.write("You can drive now.")
                                    ranNum=Math.floor(Math.random()*fallheader.length);                                    document.getElementById("indexheader").style.backgroundImage = fallheader[ranNum];                                    //alert('fall'+fallheader[ranNum]);
                                    break;                        default:                                    //document.write("Light is not working...")                                    document.getElementById("indexheader").style.backgroundImage = "url(http://www.saint-bernard.com/images/indexheader/global_header.jpg)";           			}			//document.getElementById("indexheader").style.backgroundImage = springheader[ranNum];		//document.write("This month is " + Month[m] + " and the Season is " + Season[m] + " image header #" + ranNum)	}	//Code for programmers troubleshooting	//document.getElementById("contentinner").write("This month is " + Month[m] + " and the Season is " + Season[m] + " image header #" + ranNum)		//------------------------------------