// JavaScript Document

function addLoadEvent(func) {
	var oldonload = window.onload;
	if (typeof window.onload != 'function') {
		window.onload = func;
	} else {
		window.onload = function() {
			oldonload();
			func();
		}
	}
}


startList = function() {
	if (!document.getElementById("navigation")) return false;
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("navigation");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}

addLoadEvent(startList);

function initDate() {
if (!document.getElementById) return false;	
if (!document.getElementById("dateField")) return false;
var dayName = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
var monName = new Array("January","February","March","April","May","June","July","August","September","October","November","December");

var now = new Date();
var thisMonth = now.getMonth() + 1;

var dateString = dayName[now.getDay()] + ", " + monName[now.getMonth()] + " " + now.getDate() + ", " + now.getFullYear();

document.getElementById("dateField").innerHTML = dateString;

}

addLoadEvent(initDate);
