$(function(){
	$('span.email').each(function(){
		var at = / at /;
		var dot = / dot /g;
		var addr = $(this).text().replace(at,"@").replace(dot,".");
		$(this).after('<a href="mailto:'+addr+'" title="Send an email">'+addr+'</a>')
			.hover(function(){window.status="Send an email";},function(){window.status="";});
		$(this).remove();
	});
	$('a.bookmark').click(function(){//, a[@rel="bookmark"]
		return Bookmark.add(this);
	});
});
var Bookmark = {
	title   : document.title,
	url     : document.location,
	add : function (anchor){
		if (document.all) {
			window.external.AddFavorite(this.url, this.title);
		} else if (window.sidebar){
			window.sidebar.addPanel(this.title, this.url, '');
		} else if (window.opera) {
			anchor.rel = 'sidebar';
			anchor.href = '';
			return true;
		} else {
			alert('Unfortunately your browser doesn\'t support this feature. In order to bookmark this site please do so manually through your browser.');
		}
		return false;
	}
};
