	
	/**************************************************
	* Adds event triggers to html elements unobtrusivly
	**************************************************/
	function addEvent(elm, evType, fn, useCapture){
		if(elm.addEventListener){
			elm.addEventListener(evType, fn, useCapture);
			return true;
		} else if(elm.attachEvent){
			elm['on' + evType] = fn;
		}
	}

	/************************************************
	* Place 
	************************************************/
	function addlisteners(){
		if(!document.getElementsByTagName || !document.getElementById) return;
		//addEvent({OBJ}, '{EVENT}', {SOMEFUNCTION}, false);
		var ann = document.getElementById('announcements');
		if ( ann && typeof ann != 'undefined' ){
			Announcements.init();
		}
	}

	/************************************************
	* Used in conjunction with the Sarissa library
	************************************************/
	startList = function() {
		if (document.all&&document.getElementById) {
			navRoot = document.getElementById("sitenav");
			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", "");
					}
				}
			}
		}
	}

	// Add listeners on page load
	addEvent(window, 'load', addlisteners, false);

	
	function jumpPage(newLoc) {
		newPage = newLoc.options[newLoc.selectedIndex].value
		if (newPage != ""){
			window.location = newPage
		}
	}

	
	//=================================================== //
	function newWindow(newContent) { 
		winContent = window.open(newContent, 'nextWin', 'left=50, top=50, width=700, height=550, toolbar=no,scrollbars=yes, resizable=no'); 
	}
	function smallWindow(newContent) { 
		winContent = window.open(newContent, 'nextWin', 'left=200, top=50, width=200, height=200, toolbar=no,scrollbars=no, resizable=no'); 
	}
	function eventWindow(newContent) { 
		winContent = window.open(newContent, 'nextWin', 'left=50, top=50, width=550, height=400, toolbar=no,scrollbars=yes, resizable=no'); 
	}

	var Opra  = ( navigator.userAgent.indexOf("Opera") >= 0 ) ? 1 : 0;
	var ns6   = ( (document.getElementById && !document.all) || ( navigator.userAgent.indexOf("Gecko") >= 0)) ? 1 : 0;
	var dom   = ( document.getElementById && !document.all ) ? 1 : 0;
	var gecko = ( navigator.userAgent.indexOf("Gecko") >= 0 || navigator.product=='Gecko') ? 1 : 0;
	var x,y;

	function showEvents(evnt,num){
		var top = (document.layers || ns6) ? 144 : 79 ;
		var lft = (document.layers || ns6) ? 174 : 2 ;
		var evnt = document.getElementById(evnt).style;
		var row = Math.floor(num / 7);
		evnt.top = (row*56)+top+'px';
		evnt.left = lft+'px';
		evnt.display = (evnt.display == 'block') ? 'none' : 'block';	
	}	

