document.addEvent("domready", function(){
	
	var url = document.location.protocol+"//"+document.location.host;
	$$("a[href]").each(function(a){ 
		if (!a.href.match(new RegExp("^"+url)) && !a.href.match(new RegExp("^mailto"))) a.addEvent("click", 
			function(e) {e.stop();  window.open(this.href); }); });
	
})
