if(typeof(facet_url)=="undefined"){alert("SLI Critical Javascript Error, facet_url is not defined.\nFacet functions will not work properly\nPlease check the top of your header template")}function st(a){window.status=a.getAttribute("title");return true}function nost(){window.status=""}function sfocus(){if(typeof(document.searchform.w)!="undefined"){document.searchform.w.focus()}}function getQueryVariable(a){var c=facet_url;var d=c.split("&");for(var b=0;b<d.length;b++){var e=d[b].split("=");if(e[0]==a){return e[1]}}return""}function processfacets2(a,d,h,f,e,g){var b=facet_url+a;b=b.replace(/%20/g," ");b=b.replace(/%3a/g,":");var i=b;removeSection=function(p,n){i=i.replace(new RegExp(p+":"+n+"[^ ^+^&]* ?","g"),"");if(f){if(!e){e=10}var o=p;o=o.replace(/[\d]*$/,"");var j=f+1;if(n){n+="_"}for(var k=j;k<e;k++){var m=o+k+":"+n+"[^ ^+^&]* ?";var l=new RegExp(m,"g");i=i.replace(l,"")}}};var c=new RegExp(d+":"+h);if(c.test(b)){removeSection(d,h)}else{if(!g){removeSection(d,"")}if(getQueryVariable("af")==""){i=i.replace(/af=/i,"af="+d+":"+h)}else{i=i.replace(/af=/i,"af="+d+":"+h+" ")}}document.location=i}function removefacets2(a,c,g){var b=facet_url+a;b=b.replace(/%20/g," ");b=b.replace(/%3a/g,":");var i=b;var d=new RegExp(/af=([^&]+)/i);var f=d.exec(b);if(f!=null){if(g==null){g=""}var e=new RegExp(c+":"+g+"[^&]*");var h=e.exec(f[1]);if(h!=null){i=b.replace(d,"af="+h[0])}}document.location=i}function resetfacets2(b){var a=facet_url+b;document.location=a.replace(new RegExp(/af=[^&]+[&]*/),"")};
