jQuery.fn.mailto = function() {
	return this.each(function(){
	    if($(this).attr("href") != null && $(this).attr("href").indexOf("[hjá]") != -1)
	    {	    
	    var email = $(this).attr("href").replace(/\s*\[punktur+\]\s*/, ".");
		email = email.replace(/\s*\[.+\]\s*/, "@");
		var text = $(this).html();
		$(this).before('<a href="mailto:' + email + '" rel="nofollow" title="Senda t&ouml;lvup&oacute;st til ' + email + '">' + text + '</a>').remove();
		}
	});
};