/*
 * Use: 
 * 
 * Change all emails from <a href mailto:whate@asdf.com > whae@asdf.com </a>
 * TO
 * <span class="safeMail">whae at asdf dot com</span>
 * The script then searches through and replaces the words out, and will only occur if javascript
 * is on! win.
 * 
 */
$(function(){
	
		var spt = $('span.safeMail');
		var at = / at /;
		var dot = / dot /g;
		
		$(spt).each(function(){
			var addr = $(this).text().replace(at,"@").replace(dot,".");
			$(this).after('<a href="mailto:'+addr+'" title="E-Mail Enquiries">'+ addr +'</a>')
			.hover(function(){window.status="Send us an email";}, function(){window.status="";});
			$(this).remove();
		});
});