/* encrypted email for each class "encryptedEmailLink" */
(function($) {
$.fn.yasp = function () {
	$(this).each(function () {
		var textAsASCII = '&#'+$(this).text().replace(/[,]+/g, ";&#")+';';
		if (this.href=='mailto:') 
			$(this).replaceWith('<a href="mailto:'+textAsASCII+'">'+textAsASCII+'</a>');
		else
			$(this).replaceWith(textAsASCII);
	});	
};
})(jQuery);

$(document).ready(function() {
	
	// emails verschluesselt ausgeben
	$('.encryptedEmailLink').yasp();
	
});

