var today = new Date()

var dayOfWeek = today.toLocaleString()
dayLocate = dayOfWeek.indexOf(" ")
weekDay = dayOfWeek.substring(0, dayLocate)
newDay = dayOfWeek.substring(dayLocate)
dateLocate = newDay.indexOf(",")
monthDate = newDay.substring(0, dateLocate+1)
yearLocate = dayOfWeek.indexOf("2009")
year = dayOfWeek.substr(yearLocate, 4)

var endOfSummer = new Date("May 11, 2009")
var milliSecToGo = endOfSummer.getTime()-today.getTime()
var daysToGo = Math.ceil(milliSecToGo/(1000*60*60*24))

function displayMainDate() {
	document.write("<strong style='color:blue'>Today is " + weekDay + " " + monthDate + " " + year + "</strong> - ")
	document.writeln("<strong><font style='color=red'>" + daysToGo + " " + "days</font> left before the end of this semester</strong>")
}

function scrollMainColor(){
	document.body.style.scrollbarFaceColor="#0099CC"
	document.body.style.scrollbarTrackColor="#C5E1EF"
	document.body.style.scrollbarArrowColor="#101C58"
}
function lastUpdated () {
	document.write("<i>This webpage was last updated<strong> " + document.lastModified + " </strong>by Brother Jc Mande</i>")
}