/*
* jQuery.fn.mailProtect( options );
*
* Protect your mail:
*
* USAGE:
* $('.element').mailProtect({ user: 'user', domain: 'domain.com', link: [true/false] });
*
* Version 0.9.9
* www.labs.skengdon.com/mailProtect/
* www.labs.skengdon.com/mailProtect/js/mailProtect.min.js
*/
;(function($){$.fn.mailProtect=function(options){var mail=options.user+'@'+options.domain;var href='mailto:'+mail;return this.each(function(){var text=($(this).text())?$(this).text():mail;$(this).empty();if(options.link){var a=document.createElement('a');$(this).append(a);$(a).attr('href',href);$(a).text(text);}else{$(this).text(mail);}});};}(jQuery));
