//Display default status message in IE and Netscape
var now = new Date()
if (now.getDay() == "0") {
	window.defaultStatus="A colonial reenactor is at the Wayside Inn today!"
}
if (now.getDay() == "1") {
	window.defaultStatus="Join the Sudbury Militia today!"
}
if (now.getDay() == "2") {
	window.defaultStatus="Sudbury Militia: Colonial Reenactors"
}
if (now.getDay() == "3") {
	window.defaultStatus="Visit us at one of our fun events!"
}
if (now.getDay() == "4") {
	window.defaultStatus="Welcome from the Sudbury Companies of Militia and Minute."
}
if (now.getDay() == "5") {
	window.defaultStatus="Free this weekend? Visit us at one of our fun events!"
}
if (now.getDay() == "6") {
	window.defaultStatus="Join the Sudbury Militia today!"
}

function WindowStatus(TheString) {
	if (navigator.appName != "Microsoft Internet Explorer") {
		window.status = TheString
	}
}
//END create a window.status rollover

// Change color upon mouseover
function rollWhite() {
	if (navigator.appName == "Microsoft Internet Explorer") {
		what = window.event.srcElement;
		what.style.color="#ffffff";
	}
	else {
		what = window.event.target;
		what.style.color="#ffffff";
	}
}

function rollYellow() {
	if (navigator.appName == "Microsoft Internet Explorer") {
		what = window.event.srcElement;
		what.style.color="yellow"
	}
	else {
		what = window.event.target;
		what.style.color="yellow"
	}
}

function rollRed() {
	if (navigator.appName == "Microsoft Internet Explorer") {
		what = window.event.srcElement;
		what.style.color="#7F1E02";
		//what.style.color="#3385AD"
	}
	else {
		what = window.event.target;
		what.style.color="#7F1E02";
		//what.style.color="#3385AD"
	}
}
//END Change link colors on left hand side to CSS color on mouseover

//Change link colors on left hand side to CSS color on mouseout
function rollOff() {
	if (navigator.appName == "Microsoft Internet Explorer") {
		what = window.event.srcElement;
		what.style.color="";
	}
	else {
		what = window.event.target;
		what.style.color="";
	}
}
//END Change link colors on left hand side to CSS color on mouseout


//ROLL-OVER IMAGES Function rolls images
function ChangeMyImages(nameImg,numImg) {
	if (document.images) {
		document[nameImg].src = TheImages[numImg].src;
	}
}
//ROLL-OVER IMAGES  End Image roll function

//Random image for Homepage
Minutia = now.getSeconds()

if (Minutia >= 0 && Minutia <= 5) {
	UpperRightPhoto = "<img src='./graphics/photo_one.gif' width=249 height=75 alt='' border=0>"
}

if (Minutia >= 5 && Minutia <= 15) {
	UpperRightPhoto = "<img src='./graphics/photo_two.gif' width=249 height=75 alt='' border=0>"
}

if (Minutia >= 15 && Minutia < 26) {
	UpperRightPhoto = "<img src='./graphics/photo_three.gif' width=249 height=75 alt='' border=0>"
}

if (Minutia >= 26 && Minutia < 34) {
	UpperRightPhoto = "<img src='./graphics/photo_four.gif' width=249 height=75 alt='' border=0>"
}

if (Minutia >= 34 && Minutia < 46) {
	UpperRightPhoto = "<img src='./graphics/photo_six.gif' width=249 height=75 alt='' border=0>"
}

if (Minutia >= 46 && Minutia < 54) {
	UpperRightPhoto = "<img src='./graphics/photo_seven.gif' width=249 height=75 alt='' border=0>"
}

if (Minutia >= 54 && Minutia < 61) {
	UpperRightPhoto = "<img src='./graphics/photo_eight.gif' width=249 height=75 alt='' border=0>"
}
if (Minutia >= 0 && Minutia <= 5) {
	MainPhoto = "<img src='./graphics/photo_one.gif' width=249 height=75 alt='' border=0>"
}

if (Minutia >= 5 && Minutia <= 15) {
	MainPhoto = "<img src='./graphics/photo_two.gif' width=249 height=75 alt='' border=0>"
}

if (Minutia >= 15 && Minutia < 26) {
	MainPhoto = "<img src='graphics/MainImage_0293.gif' width=249 height=75 alt='' border=0>"
}

if (Minutia >= 26 && Minutia < 34) {
	MainPhoto = "<img src='graphics/MainImage_0294.gif' width=249 height=75 alt='' border=0>"
}

if (Minutia >= 34 && Minutia < 46) {
	MainPhoto = "<img src='graphics/MainImage_0295.gif' width=249 height=75 alt='' border=0>"
}

if (Minutia >= 46 && Minutia < 54) {
	MainPhoto = "<img src='graphics/MainImage_0311.gif' width=249 height=75 alt='' border=0>"
}

if (Minutia >= 54 && Minutia < 61) {
	MainPhoto = "<img src='graphics/MainImage_0315.gif' width=249 height=75 alt='' border=0>"
}
//END Random image for Homepage
