jQuery.fn.highlight=function(n){function t(n,i){var o=0,e,u,r;if(n.nodeType==3){if(e=n.data.toUpperCase().indexOf(i),e>=0){u=document.createElement("span");u.className="highlight";var f=n.splitText(e),h=f.splitText(i.length),s=f.cloneNode(!0);u.appendChild(s);f.parentNode.replaceChild(u,f);o=1}}else if(n.nodeType==1&&n.childNodes&&!/(script|style)/i.test(n.tagName))for(r=0;r<n.childNodes.length;++r)r+=t(n.childNodes[r],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.highlight").each(function(){this.parentNode.firstChild.nodeName;with(this.parentNode)replaceChild(this.firstChild,this),normalize()}).end()};$(document).ready(function(){Nelis.Search.highlightSearchText()});Nelis.Search={highlightSearchText:function(){var n=$(".search-region:visible .searchTextBox").val();n&&$(".search-region").highlight(n)},clearHighlight:function(){$(".search-region").removeHighlight()}}