function slloadPopup(n,t){return $("#"+n).show(),$("#"+t).show(),$("#"+t).click(function(){return slclosePopup(n,t),!1}),!1}function slclosePopup(n,t){return $("#"+t).hide(),$("#"+n).empty(),$("#"+n).hide(),!1}function slcenterPopup(n){var t,i;self.pageYOffset?(t=self.pageXOffset,i=self.pageYOffset):document.documentElement&&document.documentElement.scrollTop?(t=document.documentElement.scrollLeft,i=document.documentElement.scrollTop):document.body&&(t=document.body.scrollLeft,i=document.body.scrollTop);var r=document.documentElement.clientWidth,u=document.documentElement.clientHeight,f=t+(r-$("#"+n).width())/2,e=i+(u-$("#"+n).height())/2;return $("#"+n).css({position:"absolute",top:e+"px",left:f+"px"}),!1}function showStoreLocatorPopup(n,t){return slcenterPopup(n),slloadPopup(n,t),$(document).keypress(function(i){i.keyCode==27&&slclosePopup(n,t)}),!1}function displayStoreLocatorOverlay(n){return $("#dialogstorefindercontainer").empty(),$.ajax({url:n,contentType:"application/json; charset=utf-8",dataType:"html",success:function(n){displayOverlay(n);attachAnalytics()},error:function(){}}),!1}function displayOverlay(n){$("#dialogstorefindercontainer").html(n);$("#dialog_storefinder_close").click(function(){return slclosePopup("dialogstorefindercontainer","dialogstorefinderbackground"),!1});showStoreLocatorPopup("dialogstorefindercontainer","dialogstorefinderbackground");try{analyticsUpdateStoreFinder();omnitureStoreFinder_s.eVar25="default";omnitureStoreFinder_s.tl(this,"o","storeLocator")}catch(t){}}function attachAnalytics(){var n=document.getElementById("storeSearchButton");n&&(n.onclick=function(){typeof analyticsUpdateStoreFinder=="function"&&(analyticsUpdateStoreFinder(),omnitureStoreFinder_s.tl(this,"o","storeLocator"))})}function checkOmnitureClientUpdates(){var n,i,t,r,u;omnitureStoreFinder_s&&(omnitureStoreFinder_s.eVar25="",n=document.getElementById("sszipCode"),n&&(n.value!=""?omnitureStoreFinder_s.eVar25=n.value:(i=document.getElementById("sscity"),t=document.getElementById("ssState"),i&&t&&(r=i.value,u=t.options[t.selectedIndex].text,omnitureStoreFinder_s.eVar25=r+", "+u))))}function attachAnalyticsToSearchResults(){var u=document.getElementById("searchResultList"),i,t,r;if(u){i=u.getElementsByTagName("li");try{for(t=0;t<i.length;t++){var f="",n="",e=i[t].getElementsByTagName("input");e&&(f=e[0].id.replace("store",""));r=i[t].getElementsByTagName("a");r&&(n=r[0].innerText);n=n.replace(/\&\w+;|%\d{2}|[^A-Za-z0-9\s.&]/gi,"");n=n.replace(/&/gi,"and");n=n.toLowerCase();r[0].onclick=function(n,t){return function(){return omnitureStoreFinder_s.eVar25="IP: "+n+" "+t,omnitureStoreFinder_s.tl(this,"o","storeLocator"),!0}}(f,n)}}catch(o){}return}}var JSON,Header;jQuery.migrateMute===void 0&&(jQuery.migrateMute=!0),function(n,t,i){function r(i){var r=t.console;o[i]||(o[i]=!0,n.migrateWarnings.push(i),r&&r.warn&&!n.migrateMute&&(r.warn("JQMIGRATE: "+i),n.migrateTrace&&r.trace&&r.trace()))}function e(t,u,f,e){if(Object.defineProperty)try{return Object.defineProperty(t,u,{configurable:!0,enumerable:!0,get:function(){return r(e),f},set:function(n){r(e);f=n}}),i}catch(o){}n._definePropertyBroken=!0;t[u]=f}var o={},l,a,v;n.migrateWarnings=[];!n.migrateMute&&t.console&&t.console.log&&t.console.log("JQMIGRATE: Logging is active");n.migrateTrace===i&&(n.migrateTrace=!0);n.migrateReset=function(){o={};n.migrateWarnings.length=0};"BackCompat"===document.compatMode&&r("jQuery is not compatible with Quirks Mode");var s=n("<input/>",{size:1}).attr("size")&&n.attrFn,h=n.attr,g=n.attrHooks.value&&n.attrHooks.value.get||function(){return null},nt=n.attrHooks.value&&n.attrHooks.value.set||function(){return i},tt=/^(?:input|button)$/i,it=/^[238]$/,rt=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,ut=/^(?:checked|selected)$/i;e(n,"attrFn",s||{},"jQuery.attrFn is deprecated");n.attr=function(t,u,f,e){var o=u.toLowerCase(),c=t&&t.nodeType;return e&&(4>h.length&&r("jQuery.fn.attr( props, pass ) is deprecated"),t&&!it.test(c)&&(s?u in s:n.isFunction(n.fn[u])))?n(t)[u](f):("type"===u&&f!==i&&tt.test(t.nodeName)&&t.parentNode&&r("Can't change the 'type' of an input or button in IE 6/7/8"),!n.attrHooks[o]&&rt.test(o)&&(n.attrHooks[o]={get:function(t,r){var u,f=n.prop(t,r);return f===!0||"boolean"!=typeof f&&(u=t.getAttributeNode(r))&&u.nodeValue!==!1?r.toLowerCase():i},set:function(t,i,r){var u;return i===!1?n.removeAttr(t,r):(u=n.propFix[r]||r,u in t&&(t[u]=!0),t.setAttribute(r,r.toLowerCase())),r}},ut.test(o)&&r("jQuery.fn.attr('"+o+"') may use property instead of attribute")),h.call(n,t,u,f))};n.attrHooks.value={get:function(n,t){var i=(n.nodeName||"").toLowerCase();return"button"===i?g.apply(this,arguments):("input"!==i&&"option"!==i&&r("jQuery.fn.attr('value') no longer gets properties"),t in n?n.value:null)},set:function(n,t){var u=(n.nodeName||"").toLowerCase();return"button"===u?nt.apply(this,arguments):("input"!==u&&"option"!==u&&r("jQuery.fn.attr('value', val) no longer sets properties"),n.value=t,i)}};var f,u,c=n.fn.init,ft=n.parseJSON,et=/^([^<]*)(<[\w\W]+>)([^>]*)$/;n.fn.init=function(t,i,u){var f;return t&&"string"==typeof t&&!n.isPlainObject(i)&&(f=et.exec(n.trim(t)))&&f[0]&&("<"!==t.charAt(0)&&r("$(html) HTML strings must start with '<' character"),f[3]&&r("$(html) HTML text after last tag is ignored"),"#"===f[0].charAt(0)&&(r("HTML string cannot start with a '#' character"),n.error("JQMIGRATE: Invalid selector string (XSS)")),i&&i.context&&(i=i.context),n.parseHTML)?c.call(this,n.parseHTML(f[2],i,!0),i,u):c.apply(this,arguments)};n.fn.init.prototype=n.fn;n.parseJSON=function(n){return n||null===n?ft.apply(this,arguments):(r("jQuery.parseJSON requires a valid JSON string"),null)};n.uaMatch=function(n){n=n.toLowerCase();var t=/(chrome)[ \/]([\w.]+)/.exec(n)||/(webkit)[ \/]([\w.]+)/.exec(n)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(n)||/(msie) ([\w.]+)/.exec(n)||0>n.indexOf("compatible")&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(n)||[];return{browser:t[1]||"",version:t[2]||"0"}};n.browser||(f=n.uaMatch(navigator.userAgent),u={},f.browser&&(u[f.browser]=!0,u.version=f.version),u.chrome?u.webkit=!0:u.webkit&&(u.safari=!0),n.browser=u);e(n,"browser",n.browser,"jQuery.browser is deprecated");n.sub=function(){function t(n,i){return new t.fn.init(n,i)}n.extend(!0,t,this);t.superclass=this;t.fn=t.prototype=this();t.fn.constructor=t;t.sub=this.sub;t.fn.init=function(r,u){return u&&u instanceof n&&!(u instanceof t)&&(u=t(u)),n.fn.init.call(this,r,u,i)};t.fn.init.prototype=t.fn;var i=t(document);return r("jQuery.sub() is deprecated"),t};n.ajaxSetup({converters:{"text json":n.parseJSON}});l=n.fn.data;n.fn.data=function(t){var f,u,e=this[0];return!e||"events"!==t||1!==arguments.length||(f=n.data(e,t),u=n._data(e,t),f!==i&&f!==u||u===i)?l.apply(this,arguments):(r("Use of jQuery.fn.data('events') is deprecated"),u)};a=/\/(java|ecma)script/i;v=n.fn.andSelf||n.fn.addBack;n.fn.andSelf=function(){return r("jQuery.fn.andSelf() replaced by jQuery.fn.addBack()"),v.apply(this,arguments)};n.clean||(n.clean=function(t,u,f,e){u=u||document;u=!u.nodeType&&u[0]||u;u=u.ownerDocument||u;r("jQuery.clean() is deprecated");var s,o,c,l,h=[];if(n.merge(h,n.buildFragment(t,u).childNodes),f)for(c=function(n){return!n.type||a.test(n.type)?e?e.push(n.parentNode?n.parentNode.removeChild(n):n):f.appendChild(n):i},s=0;null!=(o=h[s]);s++)n.nodeName(o,"script")&&c(o)||(f.appendChild(o),o.getElementsByTagName!==i&&(l=n.grep(n.merge([],o.getElementsByTagName("script")),c),h.splice.apply(h,[s+1,0].concat(l)),s+=l.length));return h});var ot=n.event.add,st=n.event.remove,ht=n.event.trigger,ct=n.fn.toggle,y=n.fn.live,p=n.fn.die,w="ajaxStart|ajaxStop|ajaxSend|ajaxComplete|ajaxError|ajaxSuccess",b=RegExp("\\b(?:"+w+")\\b"),k=/(?:^|\s)hover(\.\S+|)\b/,d=function(t){return"string"!=typeof t||n.event.special.hover?t:(k.test(t)&&r("'hover' pseudo-event is deprecated, use 'mouseenter mouseleave'"),t&&t.replace(k,"mouseenter$1 mouseleave$1"))};n.event.props&&"attrChange"!==n.event.props[0]&&n.event.props.unshift("attrChange","attrName","relatedNode","srcElement");n.event.dispatch&&e(n.event,"handle",n.event.dispatch,"jQuery.event.handle is undocumented and deprecated");n.event.add=function(n,t,i,u,f){n!==document&&b.test(t)&&r("AJAX events should be attached to document: "+t);ot.call(this,n,d(t||""),i,u,f)};n.event.remove=function(n,t,i,r,u){st.call(this,n,d(t)||"",i,r,u)};n.fn.error=function(){var n=Array.prototype.slice.call(arguments,0);return r("jQuery.fn.error() is deprecated"),n.splice(0,0,"error"),arguments.length?this.bind.apply(this,n):(this.triggerHandler.apply(this,n),this)};n.fn.toggle=function(t,i){if(!n.isFunction(t)||!n.isFunction(i))return ct.apply(this,arguments);r("jQuery.fn.toggle(handler, handler...) is deprecated");var u=arguments,e=t.guid||n.guid++,f=0,o=function(i){var r=(n._data(this,"lastToggle"+t.guid)||0)%f;return n._data(this,"lastToggle"+t.guid,r+1),i.preventDefault(),u[r].apply(this,arguments)||!1};for(o.guid=e;u.length>f;)u[f++].guid=e;return this.click(o)};n.fn.live=function(t,i,u){return r("jQuery.fn.live() is deprecated"),y?y.apply(this,arguments):(n(this.context).on(t,this.selector,i,u),this)};n.fn.die=function(t,i){return r("jQuery.fn.die() is deprecated"),p?p.apply(this,arguments):(n(this.context).off(t,this.selector||"**",i),this)};n.event.trigger=function(n,t,i,u){return i||b.test(n)||r("Global events are undocumented and deprecated"),ht.call(this,n,t,i||document,u)};n.each(w.split("|"),function(t,i){n.event.special[i]={setup:function(){var t=this;return t!==document&&(n.event.add(document,i+"."+n.guid,function(){n.event.trigger(i,null,t,!0)}),n._data(this,i,n.guid++)),!1},teardown:function(){return this!==document&&n.event.remove(document,i+"."+n._data(this,i)),!1}}})}(jQuery,window),function(){this.Version="unknown";this.Resources=[];this.load=function(){this.Resources&&setTimeout(function(){for(var t=null,i=null,n=0;n<this.Resources.length;n++)t=document.createElement(this.Resources[n].Type),this.Resources[n].Type=="script"?(t.type="text/javascript",t.async=!0,t.src=this.Resources[n].Path+(this.Resources[n].Path.indexOf("?")>=0?"&":"?")+"version="+this.Version,this.Resources[n].Properties&&this.Resources[n].Properties.Defer&&(t.defer=this.Resources[n].Properties.Defer)):this.Resources[n].Type=="img"&&(t.height=this.Resources[n].Properties&&this.Resources[n].Properties.Height?this.Resources[n].Properties.Height:1,t.width=this.Resources[n].Properties&&this.Resources[n].Properties.Width?this.Resources[n].Properties.Width:1,t.alt=this.Resources[n].Properties&&this.Resources[n].Properties.Alt?this.Resources[n].Properties.Alt:"",this.Resources[n].Properties&&this.Resources[n].Properties.Align&&(t.align=this.Resources[n].Properties.Align),this.Resources[n].Properties&&this.Resources[n].Properties.Border&&(t.border=this.Resources[n].Properties.Border),t.src=this.Resources[n].Path),i=this.Resources[n].Properties&&this.Resources[n].Properties.PlaceholderId?document.getElementById(this.Resources[n].Properties.PlaceholderId):document.getElementsByTagName(this.Resources[n].Type)[0],i.parentNode.insertBefore(t,i)},0)};this.add=function(n,t,i){return n?(t&&t!=""||(t="script"),this.Resources&&this.Resources.length!=0?this.Resources[this.Resources.length]={Path:n,Type:t,Properties:i}:this.Resources=new Array({Path:n,Type:t,Properties:i}),!0):!1};ResourceBootstrapper=this}();JSON||(JSON={}),function(){function r(i,e){var s,l,h,a,v=n,c,o=e[i];o&&typeof o=="object"&&typeof o.toJSON=="function"&&(o=o.toJSON(i));typeof t=="function"&&(o=t.call(e,i,o));switch(typeof o){case"string":return f(o);case"number":return isFinite(o)?String(o):"null";case"boolean":case"null":return String(o);case"object":if(!o)return"null";if(n+=u,c=[],Object.prototype.toString.apply(o)==="[object Array]"){for(a=o.length,s=0;s<a;s+=1)c[s]=r(s,o)||"null";return h=c.length===0?"[]":n?"[\n"+n+c.join(",\n"+n)+"\n"+v+"]":"["+c.join(",")+"]",n=v,h}if(t&&typeof t=="object")for(a=t.length,s=0;s<a;s+=1)typeof t[s]=="string"&&(l=t[s],h=r(l,o),h&&c.push(f(l)+(n?": ":":")+h));else for(l in o)Object.prototype.hasOwnProperty.call(o,l)&&(h=r(l,o),h&&c.push(f(l)+(n?": ":":")+h));return h=c.length===0?"{}":n?"{\n"+n+c.join(",\n"+n)+"\n"+v+"}":"{"+c.join(",")+"}",n=v,h}}function f(n){return o.lastIndex=0,o.test(n)?'"'+n.replace(o,function(n){var t=s[n];return typeof t=="string"?t:"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+n+'"'}function i(n){return n<10?"0"+n:n}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+i(this.getUTCMonth()+1)+"-"+i(this.getUTCDate())+"T"+i(this.getUTCHours())+":"+i(this.getUTCMinutes())+":"+i(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()});var e=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,o=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,n,u,s={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},t;typeof JSON.stringify!="function"&&(JSON.stringify=function(i,f,e){var o;if(n="",u="",typeof e=="number")for(o=0;o<e;o+=1)u+=" ";else typeof e=="string"&&(u=e);if(t=f,f&&typeof f!="function"&&(typeof f!="object"||typeof f.length!="number"))throw new Error("JSON.stringify");return r("",{"":i})});typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){function walk(n,t){var r,u,i=n[t];if(i&&typeof i=="object")for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(u=walk(i,r),u!==undefined?i[r]=u:delete i[r]);return reviver.call(n,t,i)}var j;if(text=String(text),e.lastIndex=0,e.test(text)&&(text=text.replace(e,function(n){return"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)})),/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse");})}();typeof bsn=="undefined"&&(_b=bsn={});typeof _b.Autosuggest=="undefined"&&(_b.Autosuggest={});_b.AutoSuggest=function(n,t){var r,u,i;if(!document.getElementById||(this.fld=_b.DOM.gE(n),!this.fld))return 0;this.sInp="";this.nInpC=0;this.aSug=[];this.aSugCache={};this.iHigh=0;r={minchars:2,meth:"POST",varname:"input",className:"autosuggest",timeout:7e3,delay:50,offsety:1,shownoresults:!1,noresults:"",maxheight:250,cache:!0,maxentries:15,url:"",methodName:"GetSuggestionList",xmlNameSpace:"http://jbecker.com/AutoComplete",siteId:"0",boxHeaderText:"Suggestions...",widthModifier:80,submitOnClick:"true",useHeader:!1,useSectionHeaders:!0};this.oP=$.extend({},r,t);u={brands:{id:1,text:"Brands"},categories:{id:2,text:"Categories"},products:{id:3,text:"Products"},popularSearches:{id:4,text:"Popular Searches"}};this.oS=u;i=this;this.fld.onkeypress=function(n){return i.onKeyPress(n)};this.fld.onkeyup=function(n){return i.onKeyUp(n)};this.fld.onkeydown=function(n){return i.onKeyDown(n)};this.fld.setAttribute("autocomplete","off")};typeof _b.Utility=="undefined"&&(_b.Utility={});_b.Utility.fireEvent=function(n,t){var r=n,i;r&&(document.createEvent?(i=document.createEvent("MouseEvents"),i&&(i.initEvent(t,!0,!1),r.dispatchEvent(i))):document.createEventObject&&r.fireEvent("on"+t))};_b.Utility.fireEvent2=function(n,t){var i;return document.createEventObject?(i=document.createEventObject(),n.fireEvent("on"+t,i)):(i=document.createEvent("HTMLEvents"),i.initEvent(t,!0,!0),!n.dispatchEvent(i))};_b.AutoSuggest.prototype.onKeyPress=function(n){var f=window.event?window.event.keyCode:n.keyCode,i,u,t,r;switch(f){case 13:if(i=_b.DOM.gE("as_ul"),i&&(u=null,i.childNodes&&(u=i.childNodes[this.iHigh-1]),u))return t=document.getElementById("as_item_"+this.iHigh),t&&(r="",t.href&&(r=$.trim(t.href)),r==""||/#$/.test(r)?(this.setHighlightedValue(),this.oP&&this.oP.submitOnClick!=null&&this.oP.submitOnClick=="true"&&this.submitForm(this.fld)):window.location.href=t.href),!1;break;case 27:this.clearSuggestions()}return 1};_b.AutoSuggest.prototype.onKeyDown=function(){clearTimeout(this.keyPressDelayTimeout)};_b.AutoSuggest.prototype.onKeyUp=function(n){var t=window.event?window.event.keyCode:n.keyCode,r=this,i=1;switch(t){case 38:this.changeHighlight(t);i=0;break;case 40:this.changeHighlight(t);i=0;break;default:this.keyPressDelayTimeout=setTimeout(function(){r.getSuggestions(r.fld.value)},200)}return i};_b.AutoSuggest.prototype.getSuggestions=function(n){var u,i,r,t,f,e;if(n==this.sInp)return 0;if(_b.DOM.remE(this.idAs),_b.DOM.remE(this.idAsFrame),this.sInp=n,$.trim(n).length<this.oP.minchars)return this.aSug=[],this.nInpC=n.length,0;if(u=this.nInpC,this.nInpC=n.length?n.length:0,i=this.aSug.length,this.nInpC>u&&i&&i<this.oP.maxentries&&this.oP.cache){for(r=[],t=0;t<i;t++)this.aSug&&this.aSug[t]&&this.aSug[t].value.substr(0,n.length).toLowerCase()==n.toLowerCase()&&r.push(this.aSug[t]);return this.aSug=r,this.createList(this.aSug),!1}return this.aSugCache[n]?(this.aSug=this.aSugCache[n].slice(0),this.createList(this.aSug)):(f=this,e=this.sInp,clearTimeout(this.ajID),this.ajID=setTimeout(function(){f.doAjaxRequest(e)},this.oP.delay)),!1};_b.AutoSuggest.prototype.doAjaxRequest=function(n){if(n==this.fld.value){var i=this.oP.url+"/"+this.oP.methodName,t=this;$.ajax({url:i,type:"POST",data:{prefixText:n,count:this.oP.maxentries,site:this.oP.siteid},success:function(responseXml){var json=$(responseXml).text(),data;json&&(data=eval("("+json+")"),t.setSuggestions(data,t.sInp))}})}};_b.AutoSuggest.prototype.setSuggestions=function(n,t){t==this.fld.value&&(this.aSug=n,this.idAs="as_"+this.fld.id,this.idAsFrame="as_frame_"+this.fld.id,this.aSugCache[t]=this.aSug.slice(0),this.createList(this.aSug))};_b.AutoSuggest.prototype.createList=function(n){var r=this,i,d,h,nt,s,t,k;if(_b.DOM.remE(this.idAs),_b.DOM.remE(this.idAsFrame),this.killTimeout(),n.length==0&&!this.oP.shownoresults)return!1;i=_b.DOM.cE("div",{id:this.idAs,className:this.oP.className});this.oP.useHeader&&(d=_b.DOM.cE("div",{className:"as_corner"}),h=_b.DOM.cE("div",{className:"as_header"}),h.innerHTML=this.oP.boxHeaderText,h.appendChild(d),i.appendChild(h));var c=_b.DOM.cE("ul",{id:"as_ul"}),p=0,f="",e="",g=0,o=[];for(t=0;t<n.length;t++){if(this.oP.useSectionHeaders&&this.oS&&p!=n[t].typeid){p=n[t].typeid;switch(p){case 1:f=this.oS.brands.text;e="section_header_brands";break;case 2:f=this.oS.categories.text;e="section_header_categories";break;case 3:f=this.oS.products.text;e="section_header_products";break;case 4:f=this.oS.popularSearches.text;e="section_header_popular_searches";break;default:f="";e=""}if(f!=""){var rt=_b.DOM.cE("span",{},'<em class="autosuggest_em">'+f+"<\/em>",!0),l=_b.DOM.cE("a",{}),ut=_b.DOM.cE("span",{className:"tl"}," "),ft=_b.DOM.cE("span",{className:"tr"}," ");l.appendChild(ut);l.appendChild(ft);l.appendChild(rt);nt=_b.DOM.cE("li",{id:e,className:"as_section_header"},l);c.appendChild(nt);g++;o.push(t)}}var a=n[t].value,v=a.toLowerCase().indexOf(this.sInp.toLowerCase()),et=a.substring(0,v),ot=a.substring(v,v+this.sInp.length),st=a.substring(v+this.sInp.length),y=$("<b/>"),tt=$("<b/>");y.append(tt.text(et).html());y.append($('<em class="autosuggest_em"/>').text(ot));y.append(tt.text(st).html());var ht=_b.DOM.cE("span",{},y.html(),!0),w="#",it="";n[t].url&&n[t].url!=""&&(w=n[t].url,it=n[t].value);var u=_b.DOM.cE("a",{href:w,title:it}),ct=_b.DOM.cE("span",{className:"tl"}," "),lt=_b.DOM.cE("span",{className:"tr"}," ");u.appendChild(ct);u.appendChild(lt);u.appendChild(ht);u.name=t+1+g;u.id="as_item_"+u.name;w!="#"||(u.onclick=this.oP&&this.oP.submitOnClick!=null&&this.oP.submitOnClick=="true"?function(){return r.setHighlightedValue(),r.submitForm(r.fld),!1}:function(){return r.setHighlightedValue(),!1});u.onmouseover=function(){r.setHighlight(this.name)};s=_b.DOM.cE("li",{},u);c.appendChild(s)}if(n.length==0&&this.oP.shownoresults&&(s=_b.DOM.cE("li",{className:"as_warning"},this.oP.noresults),c.appendChild(s)),o&&o.length>0)for(t=0;t<o.length;t++)this.aSug.splice(o[t],0,null);i.appendChild(c);var at=_b.DOM.cE("div",{className:"as_corner"}),vt=_b.DOM.cE("div",{className:"as_bar"}),b=_b.DOM.cE("div",{className:"as_footer"});b.appendChild(at);b.appendChild(vt);i.appendChild(b);k=_b.DOM.getPos(this.fld);i.style.left=k.x+"px";i.style.top=k.y+this.fld.offsetHeight+this.oP.offsety+"px";i.style.width=this.fld.offsetWidth+this.oP.widthModifier+"px";i.onmouseover=function(){r.killTimeout()};i.onmouseout=function(){r.resetTimeout()};i.style.zIndex=i.style.zIndex+1e8;document.getElementsByTagName("body")[0].appendChild(i);this.iHigh=0;r=this;this.toID=setTimeout(function(){r.clearSuggestions()},this.oP.timeout)};_b.AutoSuggest.prototype.changeHighlight=function(n){var i=_b.DOM.gE("as_ul"),t,r,u;if(!i)return!1;r=1;n==40?t=this.iHigh+1:n==38&&(t=this.iHigh-1,r=-1);u=i.childNodes[t-1];u&&(u.id.lastIndexOf("section_header_")||(t=t+r));t>i.childNodes.length&&(t=i.childNodes.length);t<1&&(t=1,this.clearHighlight());this.setHighlight(t)};_b.AutoSuggest.prototype.setHighlight=function(n){var t=_b.DOM.gE("as_ul");if(!t)return!1;this.iHigh>0&&this.clearHighlight();this.iHigh=Number(n);n!=1&&(t.childNodes[this.iHigh-1].className="as_highlight");this.killTimeout()};_b.AutoSuggest.prototype.clearHighlight=function(){var t=_b.DOM.gE("as_ul"),n;if(!t)return!1;this.iHigh>0&&(n=t.childNodes[this.iHigh-1],n&&(n.className=n.id.lastIndexOf("section_header_")?"":"as_section_header"),this.iHigh=0)};_b.AutoSuggest.prototype.setHighlightedValue=function(){var t,n,i,r,u;return this.iHigh?this.aSug[this.iHigh-1]?(t=this.fld.form,t&&(n=document.getElementById("acukd"),n||(n=document.createElement("input"),n.setAttribute("name","acukd"),n.setAttribute("id","acukd"),n.setAttribute("type","hidden"),t.appendChild(n)),n.setAttribute("value",this.fld.value)),i=this.fld.value=this.aSug[this.iHigh-1].value,r=$("#SearchFilter ul li.selected").attr("searchtext"),typeof r!="undefined"?(u=r.replace("{0}",i),$("#header-search-input-hidden").val(u)):this.sInp=i,this.fld.focus(),this.fld.selectionStart&&this.fld.setSelectionRange(this.sInp.length,this.sInp.length),this.clearSuggestions(),typeof this.oP.callback=="function"&&this.oP.callback(this.aSug[this.iHigh-1]),!0):!1:!1};_b.AutoSuggest.prototype.killTimeout=function(){clearTimeout(this.toID)};_b.AutoSuggest.prototype.resetTimeout=function(){clearTimeout(this.toID);var n=this;this.toID=setTimeout(function(){n.clearSuggestions()},1e3)};_b.AutoSuggest.prototype.clearSuggestions=function(){var r,u;this.killTimeout();var n=_b.DOM.gE(this.idAs),t=_b.DOM.gE(this.idAsFrame),i=this;n&&(r=new _b.Fader(n,1,0,250,function(){_b.DOM.remE(i.idAs)}));t&&(u=new _b.Fader(t,1,0,250,function(){_b.DOM.remE(i.idAsFrame)}))};_b.AutoSuggest.prototype.submitForm=function(n){n&&n.form&&n.form.submit()};typeof _b.DOM=="undefined"&&(_b.DOM={});_b.DOM.cE=function(n,t,i,r){var u=document.createElement(n),e,f;if(!u)return 0;for(e in t)u[e]=t[e];return f=typeof i,f!="string"||r?f=="string"&&r?u.innerHTML=i:f=="object"&&u.appendChild(i):u.appendChild(document.createTextNode(i)),u};_b.DOM.gE=function(n){var i=typeof n,t;return i=="undefined"?0:i=="string"?(t=document.getElementById(n),t?typeof t.appendChild!="undefined"?t:0:0):typeof n.appendChild!="undefined"?n:0};_b.DOM.remE=function(n){var t=this.gE(n);return t?t.parentNode.removeChild(t)?!0:0:0};_b.DOM.getPos=function(n){var n=this.gE(n),t=n,r=0,i;if(t.offsetParent)while(t.offsetParent)r+=t.offsetLeft,t=t.offsetParent;else t.x&&(r+=t.x);if(t=n,i=0,t.offsetParent)while(t.offsetParent)i+=t.offsetTop,t=t.offsetParent;else t.y&&(i+=t.y);return{x:r,y:i}};typeof _b.Fader=="undefined"&&(_b.Fader={});_b.Fader=function(n,t,i,r,u){if(!n)return 0;this.e=n;this.from=t;this.to=i;this.cb=u;this.nDur=r;this.nInt=50;this.nTime=0;var f=this;this.nID=setInterval(function(){f._fade()},this.nInt)};_b.Fader.prototype._fade=function(){this.nTime+=this.nInt;var n=Math.round(this._tween(this.nTime,this.from,this.to,this.nDur)*100),t=n/100;if(this.e.filters)try{this.e.filters.item("DXImageTransform.Microsoft.Alpha").opacity=n}catch(i){this.e.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity="+n+")"}else this.e.style.opacity=t;this.nTime==this.nDur&&(clearInterval(this.nID),this.cb!=undefined&&this.cb())};_b.Fader.prototype._tween=function(n,t,i,r){return t+(i-t)*(n/r)};$(function(){Header.ReplaceTokens();Header.BindKeywordTextBoxEvents()});Header=new function(){var r={Id:0,Title:"All",SearchText:"{0}"},t=null,n=null,i="header-search-input";return{GetAvailableSearchFilters:function(){return t==null&&$.ajax({url:"/Home/GetSearchFilterJson",type:"POST",async:!1,dataType:"json",success:function(n){n!=null&&(t=n)}}),t},GetSelectedSearchFilter:function(){return n},SetSelectedSearchFilter:function(t){n=r;$.each(this.GetAvailableSearchFilters(),function(i,r){t==r.Id&&(n=r)})},PerformSearch:function(){var u=$.trim($("#"+i).val()),f,t;if(u==null||u.length==0||u=="Keywords...."){alert("Please enter a keyword to Search.");return}f=encodeURIComponent(u);n==null&&(n=r);t="?internal=1&browser=&fsrc="+f+"&src="+f;switch(n.Id){case 110:location.href="/Used-Gear.gc"+t;break;case 130:location.href="/Featured-Platinum.gc"+t;break;case 140:location.href="/Featured-Clearance.gc"+t;break;case 120:location.href="/Condition-Vintage.gc"+t;break;case 100:location.href="/New-Gear.gc"+t;break;default:location.href="/Search/Default.aspx"+t}},ReplaceTokens:function(){$.ajax({url:"/Home/GetTokens",type:"POST",async:!1,dataType:"json",success:function(n){var t,i,r,u;n!=null&&(t=$("#headerContentContainer"),t.length>0&&(i=t.html(),$.each(n,function(n,t){i=i.replace(n,t)}),t.html(i)),r=$("#footerContentContainer"),r.length>0&&(u=r.html(),$.each(n,function(n,t){u=u.replace(n,t)}),r.html(u)),$(".tokenContainer").show())}})},LinkRedirect:function(n,t){n&&(n.preventDefault?n.preventDefault():n.returnValue=!1);var i=t.attr("data-linkUrl");i!=null&&i!=""&&(location.href=i)},OpenFeedbackOverlay:function(){$("#contactusbtn").each(function(){$(this).overlay({color:"#000",mask:{color:"#000",loadSpeed:200,opacity:.8},oneInstance:!1,onClose:function(){},onBeforeLoad:function(){$("#contactiframe").attr("src","http://www.gci-csat.com/html/contactus.html?iframe=true&width=760&height=620").attr("height","620").attr("width","760")},closeOnClick:!0,load:!0}).load()})},BindKeywordTextBoxEvents:function(){var n=$("#"+i),t,r;if(n&&n.length!=0&&n.is("input")&&n.attr("id")!=""){"placeholder"in document.createElement("input")||n.val("Keywords....");$("body").on("click","#"+n.attr("id"),function(){"placeholder"in document.createElement("input")||$(this).val()!="Keywords...."||$(this).val("")});$("body").on("blur","#"+n.attr("id"),function(){var n=$(this).val();"placeholder"in document.createElement("input")||n!=""&&n!="Keywords...."||$(this).val("Keywords....")});$("body").on("keyup","#"+n.attr("id"),function(n){var t=n.keyCode?n.keyCode:n.which?n.which:n.charCode;t==13&&($(this).blur(),Header.PerformSearch(n,$(this).val()))});t={url:"/Ajax/Search/AutoComplete.asmx",maxentries:10,siteid:"8",timeout:8e3,widthModifier:80,submitOnClick:"true"};r=new bsn.AutoSuggest(i,t)}}}}