function startList() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("nav");
		if (navRoot) {
			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", "");
					}
				}
			}
		}
	}
}

var _POPUP_FEATURES =
	'location=0,' +
	'statusbar=0,' +
	'menubar=0,' +
	'width=700,' + 
	'height=500';

function raw_popup(url, target, features) {
	if (isUndefined(features)) {
		features = _POPUP_FEATURES;
	}
	if (isUndefined(target)) {
		target = '_blank';
	}
	var theWindow =
		window.open(url, target, features);
	theWindow.focus();
	return theWindow;
}

function link_popup(src, features) {
	if (raw_popup(src.getAttribute('href'),
		src.getAttribute('target') || '_blank',
		features)) {
		
		return false;
	} else {
		return true;
	}
}

function isUndefined(v) {
    var undef;
    return v===undef;
}

window.onload = 
	function() {
		startList();
	}
