function addEvent (elm, evType, fn, useCapture){
	if (elm.addEventListener){
		elm.addEventListener(evType, fn, useCapture);
		return true;
	} else if (elm.attachEvent) {
		var r = elm.attachEvent('on' + evType, fn);
		return r;
	} else {
		elm['on' + evType] = fn;
	}
}

sfHover = function () {
	// adapted from Son of Suckerfish Dropdowns by Patrick Griffiths & Dan Webb
	// http://www.htmldog.com/articles/suckerfish/dropdowns/
	var sfEls = document.getElementById("mainMenuNav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
};
if (window.attachEvent) window.attachEvent("onload", sfHover);
