// open new window for external links
window.onload = function() {
  if (!document.getElementsByTagName) return false;
  var lnks = document.getElementsByTagName("a");
  for (var i=0; i<lnks.length; i++) {
    if (lnks[i].getAttribute("class") == "ext") {
      lnks[i].onclick = function()
			{
				open(this.href);
				return false;
      }
    }
  }
}

// E-mail Obfuscator
/*function view_address() {
	var address_to_replace=document.getElementById("e").firstChild;
	var real_address=address_to_replace.nodeValue.replace("[at]", "@");
	address_to_replace.nodeValue=real_address; 
	address_to_replace.parentNode.setAttribute("href", "mailto:"+real_address); 
}
window.onload = function() { view_address(); }
*/
// e-mail obfu - take 2
/*function view_address() {
	if (document.getElementsByTagName) {
		var a = document.getElementsByTagName("a");
		var i;
		for (i = 0; i = 0) {
			var address_to_replace = a[i].firstChild;
			var real_address = address_to_replace.nodeValue.replace("[at]", "@");
			address_to_replace.nodeValue = real_address;
			address_to_replace.parentNode.setAttribute("href", "mailto:" + real_address);
		}
		}
	}
}
*/
//window.onload = function() { view_address(); }
// use it like this: user[at]server.com
