/* EVWeb::Site Support */

function $(obj) { return document.getElementById(obj); }

/* Nav Menu Handler */
navHover = function() {
	var lis = document.getElementById("navmenu").getElementsByTagName("LI");
	for (var i=0; i<lis.length; i++) {
		lis[i].onmouseover=function() {
			this.className+=" iehover";
		}
		lis[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" iehover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", navHover);

/* This function will write a mailto link to the current location.  This should
	make it a little bit harder for spam spiders to harvest the email address
 */
function emailLink(user, domain) {

	/* Calculate Mail Link in a way that doesn't resemble an email address much */
	var str = '<a href="mail';
	str += 'to:';
	str += user;
	str += '@';
	str += domain;
	str += '">';
	str += user + "@" + domain;
	str += "</a>";
	document.write(str);

}//end function