var searchhi_string="";function stripVowelAccent(c){var b="áäčďéíľĺňóôŕšťúýžÁČĎÉÍĽĹŇÓŠŤÚÝŽ";var a="aacdeillnoorstuyzACDEILLNOSTUYZ";var d="";for(i=0;i<c.length;i++){if(b.indexOf(c.charAt(i))!=-1){d+=a.charAt(b.indexOf(c.charAt(i)))}else{d+=c.charAt(i)}}return d}function highlightWord(b,d,c){c=typeof(c)!="undefined"?c:document;if(b.hasChildNodes){var a;for(a=0;a<b.childNodes.length;a++){highlightWord(b.childNodes[a],d,c)}}if(b.nodeType==3){tempNodeVal=stripVowelAccent(b.nodeValue.toLowerCase());tempWordVal=stripVowelAccent(d.toLowerCase());if(tempNodeVal.indexOf(tempWordVal)!=-1){pn=b.parentNode;if(pn.className!="searchword"){nv=b.nodeValue;ni=tempNodeVal.indexOf(tempWordVal);before=c.createTextNode(nv.substr(0,ni));docWordVal=nv.substr(ni,d.length);after=c.createTextNode(nv.substr(ni+d.length));hiwordtext=c.createTextNode(docWordVal);hiword=c.createElement("span");hiword.className="searchword";hiword.appendChild(hiwordtext);pn.insertBefore(before,b);pn.insertBefore(hiword,b);pn.insertBefore(after,b);pn.removeChild(b)}}}}function unhighlightWord(b,d,c){c=typeof(c)!="undefined"?c:document;if(b.hasChildNodes){var a;for(a=0;a<b.childNodes.length;a++){highlightWord(b.childNodes[a],d,c)}}if(b.nodeType==3){tempNodeVal=b.nodeValue.toLowerCase();tempWordVal=d.toLowerCase();if(tempNodeVal.indexOf(tempWordVal)!=-1){pn=b.parentNode;if(pn.className=="searchword"){prevSib=pn.previousSibling;nextSib=pn.nextSibling;nextSib.nodeValue=prevSib.nodeValue+b.nodeValue+nextSib.nodeValue;prevSib.nodeValue="";b.nodeValue=""}}}}function unhighlight(b){if(b.hasChildNodes){var a;for(a=0;a<b.childNodes.length;a++){unhighlight(b.childNodes[a])}}if(b.nodeType==3){pn=b.parentNode;if(pn.className=="searchword"){prevSib=pn.previousSibling;nextSib=pn.nextSibling;nextSib.nodeValue=prevSib.nodeValue+b.nodeValue+nextSib.nodeValue;prevSib.nodeValue="";b.nodeValue=""}}}function googleSearchHighlight(a){a=typeof(a)!="undefined"?a:document;if(!a.createElement){return}ref=a.referrer;ref=ref.replace(/\/search\/web\//,"?search&q=");if(ref.indexOf("?")==-1){return}qs=ref.substr(ref.indexOf("?")+1);qsa=qs.split("#");qs=qsa[0];qs=qs.replace(/(^|&)p=Q&ts=e&/,"&");qs=qs.replace(/(^|&)query=/,"&q=");qs=qs.replace(/(^|&)key=/,"&q=");qs=qs.replace(/(^|&)keywords=/i,"&q=");qs=qs.replace(/(^|&)searchfor=/,"&q=");qs=qs.replace(/(^|&)SearchText=/,"&q=");qs=qs.replace(/(^|&)qt=/,"&q=");qs=qs.replace(/(^|&)s=/,"&q=");qsa=qs.split("&");for(i=0;i<qsa.length;i++){qsip=qsa[i].split("=");if(qsip.length==1){continue}if(qsip[0]=="q"||qsip[0]=="p"||qsip[0]=="w"){qsip[1]=decodeURI(qsip[1]).replace(/^\s+|\s+$/g,"");if(qsip[1]==""){continue}phrases=qsip[1].replace(/\+/g," ").split(/\"/);for(p=0;p<phrases.length;p++){phrases[p]=unescape(phrases[p]).replace(/^\s+|\s+$/g,"");if(phrases[p]==""){continue}if(p%2==0){words=phrases[p].replace(/([+,()]|%(29|28)|\W+(AND|OR)\W+)/g," ").split(/\s+/)}else{words=Array(1);words[0]=phrases[p]}for(w=0;w<words.length;w++){if(words[w]==""){continue}highlightWord(a.getElementById("center-container-sub"),words[w],a);if(p%2==0){searchhi_string=searchhi_string+" "+words[w]}else{searchhi_string=searchhi_string+' "'+words[w]+'"'}}}}}}function localSearchHighlight(a,b,c){b=typeof(b)!="undefined"?b:0;c=typeof(c)!="undefined"?c:document;if(!c.createElement){return}if(a==""){return}if(a.indexOf("?")==-1){qs=a.substr(0)}else{qs=a.substr(1)}qsa=qs.split("&");for(i=0;i<qsa.length;i++){qsip=qsa[i].split("=");if(qsip.length==1){continue}if(qsip[0]=="h"||(b&&(qsip[0]=="q"||qsip[0]=="p"||qsip[0]=="searchtext"))){qsip[1]=unescape(qsip[1]).replace(/^\s+|\s+$/g,"");if(qsip[1]==""){continue}phrases=qsip[1].replace(/\+/g," ").split(/\"/);for(p=0;p<phrases.length;p++){phrases[p]=unescape(phrases[p]).replace(/^\s+|\s+$/g,"");if(phrases[p]==""){continue}if(p%2==0){words=phrases[p].replace(/([+,()]|%(29|28)|\W+(AND|OR)\W+)/g," ").split(/\s+/)}else{words=Array(1);words[0]=phrases[p]}for(w=0;w<words.length;w++){if(words[w]==""){continue}highlightWord(c.getElementById("center-container-sub"),words[w],c);if(p%2==0){searchhi_string=searchhi_string+" "+words[w]}else{searchhi_string=searchhi_string+' "'+words[w]+'"'}}}}}}function postSearchHighlight(a){a=typeof(a)!="undefined"?a:document;searchhi_string=searchhi_string.replace(/^\s+|\s+$/g,"");if(a.location.hash.length>1){a.location.hash=a.location.hash}}function SearchHighlight(d,e){d=typeof(d)!="undefined"?d:document;e=typeof(e)!="undefined"?e:d.location;if(d.createElement){var c=d.referrer.split("?",2);var b=e.href.split("?",1);if((c[0].toUpperCase()!=b[0].toUpperCase())&&((c[1]&&c[1].match(/(^|&)(p=Q&ts=e&|query=|key=|keywords=|searchfor=|SearchText=|qt=|q=)/))||d.referrer.match(/\/search\/web\//))){googleSearchHighlight(d);localSearchHighlight(e.search,0,d)}else{var a=e.search;if(a.indexOf("?")==-1){a=a.replace(/\/search\//,"?search&q=")}localSearchHighlight(e.search,1,d)}postSearchHighlight(d)}}function SmartHighlight(g,d){g=typeof(g)!="undefined"?g:document;d=typeof(d)!="undefined"?d:g.location;var e=new Date();var b=e.getUTCSeconds();var a=g.cookie;var k=a.split("; ");for(var c=0;c<k.length;c++){var h=k[c].split("=");if(h[0].toString()=="SHTS"){var j=parseInt(h[1])}else{if(h[0].toString()=="SHTSP"){var f=h[1]}}}if(f&&j&&f==escape(d.href)&&Math.abs(b-j)<5){searchhi_unl=0}else{SearchHighlight(g)}}function SmartHLUnload(c){c=typeof(c)!="undefined"?c:document;if(searchhi_unl>0){var a=new Date();var b=a.getUTCSeconds();c.cookie="SHTS="+b+";";c.cookie="SHTSP="+escape(loc.href)+";"}else{c.cookie="SHTS=;";c.cookie="SHTSP=;"}}function NotRefreshHL(){searchhi_unl=0;return true}var searchhi_unl=1;
