jQuery.fn.highlight=function(b){function a(b,f){var g=0;if(b.nodeType==3){var h=b.data.toUpperCase().indexOf(f);if(h>=0){var e=document.createElement("span");e.className="highlight";var c=b.splitText(h),j=c.splitText(f.length),i=c.cloneNode(true);e.appendChild(i);c.parentNode.replaceChild(e,c);g=1}}else if(b.nodeType==1&&b.childNodes&&!/(script|style)/i.test(b.tagName))for(var d=0;d<b.childNodes.length;++d)d+=a(b.childNodes[d],f);return g}return this.each(function(){a(this,b.toUpperCase())})};jQuery.fn.removeHighlight=function(){return this.find("span.highlight").each(function(){this.parentNode.firstChild.nodeName;with(this.parentNode){replaceChild(this.firstChild,this);normalize()}}).end()}
