
function makeLIlinks(list){
	var j = 0;
	for( var i=0; i<list.childNodes.length; i++ ){
		if (list.childNodes[i].tagName == "LI"){
			
			list.childNodes[i].onclick = followLink;
			list.childNodes[i].onmouseover = mouseover;
			list.childNodes[i].onmouseout = mouseout;
			list.childNodes[i].style.cursor = 'pointer';
			
			for( var j=0; j<list.childNodes[i].childNodes.length; j++ ){
				if (list.childNodes[i].childNodes[j].tagName == "UL"){
						 makeLIlinks(list.childNodes[i].childNodes[j]);
				}
			}
		}
	}
}

function followLink(e){

	if(!e) var e = window.event;
	
	if (this.firstChild.href)
		window.location = this.firstChild.href;
	
	e.cancelBubble = true;
	e.returnValue = false;
}

function mouseover(){

		this.className = this.className.replace(/\w?over/g, '');
		this.className = this.className + ' over';
}

function mouseout(){
		this.className = this.className.replace(/over/g, '');

}

