// <script type="text/javascript">

function hx_validate() {
	var test = /^target\s*[:=]\s*(\w+)\s*$/ig;
	var anchors = document.getElementsByTagName('a');
	var a, m, i, r;
	for(i=0;i<anchors.length;i++) {
		a = anchors[i];
		if(a.getAttribute('rel')) if(m=a.getAttribute('rel').match(test)) a.target=m[1];
	}
	restoreEmails(document.documentElement);
}
function restoreEmails(obj) {
	var e=obj.childNodes;
	var f=/\.email\.\d{5}\.at\./g;
	for(var i=0;i<e.length;i++) {
		if(e[i].nodeType==3) e[i].nodeValue=e[i].nodeValue.replace(f,'@');
		if(e[i].nodeName.match(/^a$/i)) e[i].setAttribute('href',e[i].getAttribute('href').replace(f,'@'));
		if(e[i].nodeType==1) restoreEmails(e[i]);
	}
}
if(typeof window.onload != 'function') window.onload=hx_validate;
else { var o = window.onload; window.onload=function() { o(); hx_validate(); } }

// </script>
