jq(document).ready(function(){if(browser.isIE6x){jq("#glossary-searchform input.s").mouseover(function(){jq(this).addClass("s-hovered");}).mouseout(function(){jq(this).removeClass("s-hovered");});}if(typeof gIsHome=="undefined"){fnInitAutoComplete(_data,"glossary-searchform-query",10,function(){jq("#search-button").val("Searching");jq("#glossary-searchform").submit();});}});function fnCropDefinitions(){var _otxt,_txt1,_txt2,_ftxt,_prt;jq("#glossary-content-termresult .term-definition").each(function(){_otxt=this.innerHTML;if(new RegExp("</?([a-zA-Z][a-zA-Z0-9]*)\\b[^>]*>").test(_otxt)){return;}if(_otxt.length>50){_txt1=_otxt.substring(0,50);_txt2=_otxt.substring(50);_ftxt=_txt1+"<span class=\"hiddentext\">"+_txt2+"</span> <span class=\"moretext\">. . . <a href=\"javascript:void(0);\">more</a></span>";this.innerHTML=_ftxt;}});jq("#glossary-content-termresult .term-definition .moretext a").click(function(){if(browser.isIE6x){fnFixFooter();}var _prt=jq(this).parent().parent();jq(this).parent().remove();_otxt=_prt.html().replace(/<\/?[^>]+>/gi,"");_prt.html(_otxt);});};function fnCropSynonyms(){var _otxt,_oarr;jq(".glossary-content-termdefinition .term-synonyms").each(function(){_otxt=this.innerHTML;_oarr=_otxt.split(",");if(_oarr.length>3){_oarr[2]=_oarr[2]+"<span class=\"hiddentext\">";_otxt=_oarr.join(",")+"</span> <span class=\"moretext\">. . . [<a href=\"javascript:void(0);\">more</a>]</span>";this.innerHTML=_otxt;}});jq(".glossary-content-termdefinition .term-synonyms .moretext a").click(function(){if(browser.isIE6x){fnFixFooter();}var _prt=jq(this).parent().parent();jq(this).parent().remove();_otxt=_prt.html().replace(/<\/?[^>]+>/gi,"");_prt.html(_otxt);});}
