function resaltaElemento(c,a,b){pn=c.parentNode;if(pn.className!=b&&pn.className=="highlight"){nodeVal=c.nodeValue;if(a==""){return}expreg=new RegExp(a,"i");if(nodeVal.match(expreg)!=null){textMatch=RegExp.$1;posMatch=nodeVal.search(expreg);if(posMatch>0){before=document.createTextNode(nodeVal.substr(0,posMatch));after=document.createTextNode(nodeVal.substr(posMatch+textMatch.length));hiwordtext=document.createTextNode(textMatch);hiword=document.createElement("span");hiword.className=b;hiword.appendChild(hiwordtext);pn.insertBefore(before,c);pn.insertBefore(hiword,c);pn.insertBefore(after,c);pn.removeChild(c)}else{after=document.createTextNode(nodeVal.substr(textMatch.length));hiwordtext=document.createTextNode(textMatch);hiword=document.createElement("span");hiword.className=b;hiword.appendChild(hiwordtext);pn.insertBefore(hiword,c);pn.insertBefore(after,c);pn.removeChild(c)}}}}function resaltaPalabra(c,d,a){if(!c){return}if(c.hasChildNodes()){var b;for(b=0;b<c.childNodes.length;b++){if(c.style.background!=""){bBackgroundBlanc=false}resaltaPalabra(c.childNodes[b],d,a)}}if(c.nodeType==3){resaltaElemento(c,d,a)}}function getColor(d,c){var e="fosfo,fosfocyan,fosfoverd2,fosfolila,fosfogold,fosfoblau".split(",");var b=c.split(",");for(var a=0;a<b.length;a++){if(d==b[a]){return e[a%e.length]}}return e[0]};