// JavaScript Document
function mangle() {
	if (!document.getElementsByTagName || !document.createElement || !document.createTextNode || !document.replaceChild) {
		return;
	}
	var nodes = document.getElementsByTagName("span");
	for(var i=nodes.length-1; i>=0; i--) {
		if (nodes[i].className.indexOf("email_mangle") > -1) {
			var node = document.createElement("a");
			var address = nodes[i].firstChild.nodeValue;
			address = address.replace(/ at /, "@");
			address = address.replace(/ dot /g, ".");
			node.setAttribute("href", "mailto:"+address);
			node.appendChild(document.createTextNode(address));
			nodes[i].appendChild(node);
			nodes[i].removeChild(nodes[i].firstChild);
		}
	}
}