var SSE = {
	OBF_CALLBACK : '/obfuscate.php',

	obfuscateEmail : function() {
		$.ajax({
			type: "POST",
			url:SSE.OBF_CALLBACK,
			dataType:"json",
			data: "ajax=true",
			success:function(data) {
				$('span.obfs').each(function(){
					var id = $(this).attr('id');
					if (typeof data[id] == 'string') {
						$(this).before("<a href=\"mailto:"+data[id]+"\">"+data[id]+"</a> ");
						$(this).remove();
				 	}
				});
			}
		});
	}
};

$(document).ready(function(){
	SSE.obfuscateEmail();
});