function onLoad() {
	var thisDate = new Date();
	var dayOfWeek = getDayOfWeek(thisDate.getDay());
	var dateOfMonth = getDateOfMonth(thisDate.getDate());
	var monthOfYear = getMonthOfYear(thisDate.getMonth());	
	if (e("current-date")){
		e("current-date").innerHTML = dayOfWeek + " " + dateOfMonth + " " + monthOfYear + " " + thisDate.getFullYear();
	}
}

function getDayOfWeek(theDay) {
	switch (theDay) {
		case 0: return "Sunday";
		case 1: return "Monday";
		case 2: return "Tuesday";
		case 3: return "Wednesday";
		case 4: return "Thursday";
		case 5: return "Friday";
		case 6: return "Saturday";
	}
}

function getDateOfMonth(theDate) {
	if (theDate == 1) {
		return theDate + "st";
	} else if (theDate < 3) {
		return theDate + "nd";
	} else {
		return theDate + "th";
	}
}

function getMonthOfYear(theMonth) {
	switch (theMonth) {
		case 0: return "January";
		case 1: return "February";
		case 2: return "March";
		case 3: return "April";
		case 4: return "May";
		case 5: return "June";
		case 6: return "July";
		case 7: return "August";
		case 8: return "September";
		case 9: return "October";
		case 10: return "November";
		case 11: return "December";
	}
}


function onRollOver(img_obj){
	img_obj.src = img_obj.src.split("-off").join("-on");
}

function onRollOut(img_obj){
	img_obj.src = img_obj.src.split("-on").join("-off");	
}  
// onMouseOver="onRollOver(this);" onMouseOut="onRollOut(this)"

function e(id){return document.getElementById(id);}
