
// IE is stupid.  It does not properly implement CSS hovers, therefore it
// requires this silliness.  
function DoIEhovers(elementid) {
	navRoot = document.getElementById(elementid);
	if (!navRoot) return;
	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", "");
			}
		}
	}
}
startList = function() {
	if (document.all&&document.getElementById) {
		DoIEhovers("nav");
		DoIEhovers("subnav");
	}
}
window.onload=startList;

// My beloved is deluged with spam.  It is best NOT to put a naked email
// address on a website, where it can be harvested.
function obfuscateEmail(text) {
	var email = 'ass' + 'ist' + 'ance' + '@' + 'icfn' + 'ycchapt' + 'er.o' + 'rg';
	if (!text) text = email;
	document.write('<a href="mailto:' + email + '">' + text + '</a>');
}
