// encoding: utf-8
// $.fn.linkify 1.0 - MIT/GPL Licensed - More info: http://github.com/maranomynet/linkify/
(function(b){var v=/(^|["'(]|&lt;|\s)(www\..+?\..+?)(([:?]|\.+)?(\s|$)|&gt;|[)"',])/g,w=/(^|["'(]|&lt;|\s)(((https?|ftp):\/\/|mailto:).+?)(([:?]|\.+)?(\s|$)|&gt;|[)"',])/g,x=function(h){return h.replace(v,'$1<a href="<``>://$2">$2</a>$3').replace(w,'$1<a href="$2">$2</a>$5').replace(/"<``>/g,'"http')},q=b.fn.linkify=function(e){e=e||{};if(typeof e=='string'){e={use:e}}var c=e.use,k=q.plugins||{},l=[x],f;if(c){c=b.isArray(c)?c:b.trim(c).split(/ *, */);var m,i;for(var n=0,y=c.length;n<y;n++){i=c[n];m=k[i];if(m){l.push(m)}}}else{for(var i in k){l.push(k[i])}}return this.each(function(){var h=this.childNodes,r=h.length;while(r--){var d=h[r];if(d.nodeType==3){var a=d.nodeValue;if(a.length>1&&/\S/.test(a)){var o,p;f=f||b('<div/>')[0];f.innerHTML='';f.appendChild(d.cloneNode(false));var s=f.childNodes;for(var t=0,g;(g=l[t]);t++){var u=s.length,j;while(u--){j=s[u];if(j.nodeType==3){a=j.nodeValue;if(a.length>1&&/\S/.test(a)){p=a;a=a.replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;');a=b.isFunction(g)?g(a):a.replace(g.re,g.tmpl);o=o||p!=a;p!=a&&b(j).after(a).remove()}}}}a=f.innerHTML;o&&b(d).after(a).remove()}}else if(d.nodeType==1&&!/^(a|button|textarea)$/i.test(d.tagName)){arguments.callee.call(d)}}})};q.plugins={}})(jQuery);

