function $() {
	var elements = new Array();
	for (var i = 0; i < arguments.length; i++) {
		var element = arguments[i];
		if (typeof element == 'string')
			element = document.getElementById(element);
		if (arguments.length == 1)
			return element;
		elements.push(element);
	}
	return elements;

}

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

function makeHoverList(id){
	var list = $(id);
	if(document.all && list){
		for(i=0; i<list.childNodes.length; i++){
			var node = list.childNodes[i];
			if(node.nodeName=="LI"){
				node.onmouseover=function(){ this.className+=" hover"; }
				node.onmouseout=function(){ this.className=this.className.replace(new RegExp(" hover\\b"),""); }
			}
		}
	}
}

function transcendeInit(){
	makeHoverList('navList');	
}

addLoadEvent(transcendeInit);