/* popstuff function to automatically add popup window calls to each link with a target, and add close window links to the popups. */ function mangle() { if (!document.getElementsByTagName && !document.createElement && !document.createTextNode) return; var nodes = document.getElementsByTagName("span"); for(var i=nodes.length-1;i>=0;i--) { if (nodes[i].className=="hidden_email") { var at = / at /; var dot = / dot /g; var node = document.createElement("a"); var address = nodes[i].firstChild.nodeValue; address = address.replace(at, "@"); address = address.replace(dot, "."); address = address.replace(at, "@"); address = address.replace(dot, "."); node.setAttribute("href", "mailto:"+address); node.appendChild(document.createTextNode(address)); var prnt = nodes[i].parentNode; for(var j=0;j