function selectMenu(){
	if (this.parentNode != null)
		$(this.parentNode).addClass('hover');
}

function unselectMenu(){
	if (this.parentNode != null)
		$(this.parentNode).removeClass('hover');
}

function doMenu(){
	if ($('#leftNav') != null){
		var currLoc = location.href;
		if (!document.all)
			currLoc = currLoc.replace(/^http:\/\/[a-z0-4\.]+\//i,'/');
		var theLI = $('#leftNav li');
		if (theLI != null){
			for (var foo=0;foo<theLI.length;foo++){
				var theA = $('a',theLI[foo]);
				if (theA[0] != null){
					theA = theA[0];
					var tempLoc = $(theA).attr('href');
					if (currLoc == tempLoc){
						$(theLI[foo]).addClass('selected');
						$(theA).unbind('mouseover',selectMenu(this));
						$(theA).unbind('mouseout',unselectMenu(this));
					} else {
						$(theLI[foo]).removeClass('selected');
						$(theA).mouseover(selectMenu);
						$(theA).mouseout(unselectMenu);
					}
				}
			}
		}
	} // if leftNav
}

