window.onload = function() {
	var elts, i, span, email, a;
	elts = document.getElementsByTagName("span");
	i = elts.length;
	while (i > 0) {
		span = elts.item(--i);
		if (/\bobfuscated-email\b/.test(span.className)) {
			span.normalize();
			email = span.firstChild.nodeValue;
			email = email.replace(/\s+POINT\s+/g, ".").replace(/\s+PLUS\s+/g, "+").replace(/\s+AT\s+/g, "@");
			a = document.createElement("a");
			a.setAttribute("class", "email");
			a.setAttribute("href", "mailto:" + email);
			a.appendChild(document.createTextNode(email));
			span.replaceChild(a, span.firstChild);
		}
	}
}
