function Querystring(A){this.params={};if(A==null){A=location.search.substring(1,location.search.length)}if(A.length==0){return }A=A.replace(/\+/g," ");var C=A.split("&");for(var D=0;D0){facetSrch="&f="+facetSrch}location.href=A+"?s="+sr+"&ss="+escape(B.stext.value)+"&n="+random_num+facetSrch}function searchOnFacet(A){if(facetSrch.length>0){facetSrch+=";"}facetSrch+=A;dosearch(document.search2,srchType,srchUrl)}function unSearchFacet(C){var E=facetSrch.split(";");var A="";for(si=0;siA.label){return 1}}function iterCollection(A){var B=this.list;var D=this.isSearchedOn;A+='
'+this.name+'
';if(D){var C="'"+this.varname+"'";A+='"}if(B.length==1){D=true}A+="
    ";for(j=0;j
";return A}function displayFacet(A,C){if(!C){C=this.isSearchedOn}A+="
  • ";if(!C){var B="'"+this.srch+"'";A+=''}A+=this.label;if(!C){A+=" ("+this.count+")"}A+="
  • ";return A}function SrchFacetCollection(B,A){this.name=B;this.varname=A;this.list=new Array();this.display=iterCollection;this.isSearchedOn=false}function SrchFacet(A){this.label=A;this.count=count;this.type=type;this.id=id;this.displayFacet=displayFacet;this.srch=this.type+":"+this.id;this.isSearchedOn=true}function SrchFacet(A,C,B,D){this.label=A;this.count=C;this.type=B;this.id=D;this.displayFacet=displayFacet;this.srch=this.type+":"+this.id;this.isSearchedOn=false}var priceRanges=[{l:"0.00",r:"24"},{l:"25",r:"49"},{l:"50",r:"99"},{l:"100",r:"199"},{l:"200",r:"499"},{l:"500",r:"999"},{l:"1,000",r:"1,999"},{l:"2,000",r:"4,999"},{l:"5,000",r:"9,999"},{l:"10,000",r:"above"}];function PriceFacet(A){this.id=A;this.displayFacet=displayFacet;this.label=currency+priceRanges[A].l+"-"+currency+priceRanges[A].r;this.isSearchedOn=true;this.srch=this.type+":"+this.id}function PriceFacet(A,B){this.count=A;this.type="p";this.id=B;this.displayFacet=displayFacet;this.label=currency+priceRanges[B].l+"-"+currency+priceRanges[B].r;this.srch=this.type+":"+this.id}PriceFacet.prototype=SrchFacet;var facets=new Array();var facetCat=new SrchFacetCollection("Categories","c");facets[0]=facetCat;var facetPrice=new SrchFacetCollection("Prices","p");facets[1]=facetPrice;function srchDisplayFacets(){var A=new Querystring();facetSrch=A.get("f","");facetCat.list.sort(catSort);var B="";for(var D=0;D