if(!String.prototype.lTrim){String.prototype.lTrim=function(){return this.replace(/^\s*/,"")}}if(!String.prototype.rTrim){String.prototype.rTrim=function(){return this.replace(/\s*$/,"")}}if(!String.prototype.trim){String.prototype.trim=function(){return this.lTrim().rTrim()}}Event.observe(window,"load",page_loaded,false);function page_loaded(a){var d=$$("#helpList dd");for(var c=0;c<d.length;c++){d[c].hide()}$("helpRollOut").show();$("helpRollIn").show();$("helpFormDiv").show();$("helpRollOut").observe("click",helpRollOutClick);$("helpRollIn").observe("click",helpRollInClick);$("helpForm").observe("submit",helpSearch);var b=$$("#helpList dt");for(var c=0;c<b.length;c++){Event.observe(b[c],"click",helpListDtClick,false)}Event.stop(a)}function helpListDtClick(a){$(this).toggleClassName("active").next().toggle()}function helpRollOutClick(a){a.stop();var d=$$("#helpList dd");var b=$$("#helpList dt");for(var c=0;c<d.length;c++){d[c].show()}for(var c=0;c<b.length;c++){b[c].addClassName("active")}return false}function helpRollInClick(a){a.stop();var d=$$("#helpList dd");var b=$$("#helpList dt");for(var c=0;c<d.length;c++){d[c].hide()}for(var c=0;c<b.length;c++){b[c].removeClassName("active")}return false}function helpSearch(k){var b=$$("#helpList dd");var g=$$("#helpList dt");var c=$("searchInfo");for(var e=0;e<b.length;e++){b[e].hide()}for(var e=0;e<g.length;e++){g[e].removeClassName("active")}if(c){c.remove()}searchString=$F("helpInput");searchString=searchString.trim();searchString=searchString.replace(/[,.]/g,"");searchString=searchString.split(" ");if(searchString!=""){var a=0;var f=$$("#helpList dd dd");for(var e=0;e<f.length;e++){text=f[e].previous().innerHTML+f[e].innerHTML;var h=false;for(var d=0;d<searchString.length;d++){myregexp=new RegExp(searchString[d],"gim");if(text.search(myregexp)==-1){h=true}}if(h==true){}else{f[e].show().addClassName("active");f[e].previous("dt").show().addClassName("active");f[e].up("dd").show().previous("dt").show().addClassName("active");a++}}if(a){$("searchInfoNo").hide();if(a==1){$("searchInfoOne").show();$("searchInfoMany").hide()}else{$("searchInfoOne").hide();$("searchInfoMany").show();$("findCount").innerHTML=a}}else{$("searchInfoNo").show();$("searchInfoOne").hide();$("searchInfoMany").hide()}}Event.stop(k)};
