jQuery.fn.highlight=function(n){function t(n,i){var o=0,r,f,u;if(n.nodeType==3){if(r=n.data.toUpperCase().indexOf(i),r-=n.data.substr(0,r).toUpperCase().length-n.data.substr(0,r).length,r>=0){f=document.createElement("span");f.className="highlightCustom";var e=n.splitText(r),h=e.splitText(i.length),s=e.cloneNode(!0);f.appendChild(s);e.parentNode.replaceChild(f,e);o=1}}else if(n.nodeType==1&&n.childNodes&&!/(script|style)/i.test(n.tagName))for(u=0;u<n.childNodes.length;++u)u+=t(n.childNodes[u],i);return o}return this.length&&n&&n.length?this.each(function(){t(this,n.toUpperCase())}):this};jQuery.fn.removeHighlight=function(){return this.find("span.highlightCustom").each(function(){this.parentNode.firstChild.nodeName;with(this.parentNode)replaceChild(this.firstChild,this),normalize()}).end()}