
	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;
		}
	}
	
	function addlisteners(){
		if(!document.getElementsByTagName) return;
		ClearField.init();
        startList();
        subnavList();
	}

	/************************************************
	* Used in conjunction with the Sarissa library
	************************************************/
	startList = function() {
		if (document.all&&document.getElementById) {
			navRoot = document.getElementById("topnav");
			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", "");
					}
				}
			}
		}
	}
	subnavList = function() {
		if (document.all&&document.getElementById) {
			navRoot = document.getElementById("subnav");
			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", "");
					}
				}
			}
		}
	}
	addEvent(window, 'load', addlisteners, false);