/* UI BUILD: Friday, Dec 13 2013 at 11:29:28 AM */
/* MD5: 6f789826c21cfd7b6d22f01f70dbabd3 */

var testLoader,enableMonetate,monetateT;(function(){"undefined"==typeof bby&&(bby={}),"undefined"!=typeof track&&null!=track.sysDate?bby.sysdate=new Date(track.sysDate):"undefined"!=typeof sysdt&&null!==sysdt?bby.sysdate=new Date(sysdt):(bby.sysdate=new Date,bby.sysdate.setHours(0,0,0,0));var e={baseUrl:"",nsList:{},delay:{queue:[],fired:!1},debug:/debug=yes/.test(window.location.search),init:function(){e.baseUrl=("undefined"==typeof imgServer?"":imgServer)+"js/"},logError:function(t){e.debug&&("undefined"!=typeof console&&"undefined"!=typeof console.log?console.log(t):alert(t))},mergeObjects:function(t,a){for(field in t)switch(typeof t[field]){case"object":"undefined"==typeof a[field]?a[field]=t[field]:e.mergeObjects(t[field],a[field]);break;case"undefined":break;default:a[field]=t[field]}},addToNSList:function(t,a){("undefined"==typeof a||null==a)&&(a=!1);try{t in e.nsList||(e.nsList[t]={callbacks:[],loaded:!1,inprocess:a})}catch(n){e.logError(n)}},addCallback:function(t,a){try{this.addToNSList(t),this.nsList[t].callbacks.push(a)}catch(n){e.logError(n)}},fireCallbacks:function(t){var a,n;try{if(t in this.nsList)for(a=this.nsList[t].callbacks;a.length>0;)n=a.shift(),"function"==typeof n&&n()}catch(r){e.logError(r)}},isLoaded:function(t){if("undefined"==typeof t||null==t||""==t)return!0;try{if(t in e.nsList)return e.nsList[t].loaded}catch(a){e.logError(a)}return!1},isInProcess:function(t){try{if(t in this.nsList)return this.nsList[t].inprocess}catch(a){e.logError(a)}return!1},rInitNS:function(t,a,n,r){try{var i=a[n];n>=a.length-1?("undefined"!=typeof t[i]&&e.mergeObjects(t[i],r),t[i]=r):("object"!=typeof t[i]&&(t[i]={}),this.rInitNS(t[i],a,n+1,r))}catch(o){e.logError(o)}},initNS:function(t,a){try{e.rInitNS(window,String(t).split(/\./),0,a),e.addToNSList(t),e.nsList[t].loaded=!0,e.nsList[t].inprocess=!0,e.fireCallbacks(t)}catch(n){e.logError(n)}},loadNS:function(t,a){var n,r;try{"undefined"==typeof a?a={baseUrl:this.baseUrl}:"undefined"==typeof a.baseUrl&&(a.baseUrl=this.baseUrl),n=this.nsList[t],n.inprocess||(n.inprocess=!0,r=function(){var n=document.createElement("script"),r=a.baseUrl+String(t).replace(/\./g,"/")+(a.minified&&!e.debug?"-min":"")+".js";"version"in a&&(r+="?v="+a.version),n.src=r,document.getElementsByTagName("head")[0].appendChild(n)},!0===a.delayed&&!1===e.delay.fired?e.addToDelayedQueue(r):r())}catch(i){e.logError(i)}},addToDelayedQueue:function(t){e.delay.queue.push(t)},fireDelayedQueue:function(){try{if(!e.delay.fired){e.delay.fired=!0;for(var t;e.delay.queue.length>0;)t=e.delay.queue.shift(),"function"==typeof t&&t()}}catch(a){e.logError(a)}},allLoaded:function(t){var a,n=!0;if(t.constructor==Array){for(a=0;t.length>a;a++)if(!e.isLoaded(t[a])){n=!1;break}}else n=e.isLoaded(t);return n},requires:function(t,a,n){var r,i;try{if("undefined"==typeof n&&(n={}),"minified"in n||(n.minified=!0),"delayed"in n||(n.delayed=!0),"baseUrl"in n||(n.baseUrl=e.baseUrl),t.constructor==Array)if(t.length>0&&!e.allLoaded(t))for(r=function(){e.allLoaded(t)&&"function"==typeof a&&a()},i=0;t.length>i;i++)this.requires(t[i],r,n);else"function"==typeof a&&a();else e.isLoaded(t)?"function"==typeof a&&a():("function"==typeof a?e.addCallback(t,a):e.addToNSList(t),e.loadNS(t,n))}catch(o){e.logError(o)}}};e.init(),bby.initNS=e.initNS,bby.requires=e.requires,bby.isLoaded=e.isLoaded,bby.addToNSList=e.addToNSList,bby.addToDelayedQueue=e.addToDelayedQueue,bby.fireDelayedQueue=e.fireDelayedQueue,bby.logError=e.logError,bby.mergeObjects=e.mergeObjects,jQuery&&!track.isCloud&&jQuery(document).ready(function(){bby.fireDelayedQueue()})})(),function(){bby.addToNSList("bby.parseUrl",!0);var e=function(){var e,t,a,n;try{for(t=[],a=window.location.href.slice(window.location.href.indexOf("?")+1).split("&"),n=0;a.length>n;n++)e=a[n].split("="),t.push(e[0]),t[e[0]]=e[1];return t}catch(r){bby.logError(r)}}();bby.initNS("bby.parseUrl",e)}(),function(){function e(){var e,t=!1;try{if(null!==document.getElementById("listView"))return!0;e=document.getElementsByName("pagetype"),e.length>0?_.each(e,function(e){return/^list/i.test(e.value)?(t=!0,void 0):void 0}):$("head").contents().filter(function(){return 8===this.nodeType&&-1!=this.nodeValue.indexOf("Listing Page")?(t=!0,void 0):void 0})}catch(a){return bby.logError(a),!1}return t}var t,a;bby.addToNSList("bby.page",!0),t=$("#analytics-data"),a={isPDP:!1,isList:!1,isCart:!1,isCategory:!1,isCloud:!1,isDepartment:!1,hasFacets:!1,catId:"",pcatId:"",templateName:""};try{a.isPDP="undefined"!=typeof product&&"undefined"!=typeof productType?!0:!1,a.isList=e()?!0:!1,a.catId=bby.parseUrl.id;try{"undefined"!=typeof catid&&(a.catId=catid)}catch(n){bby.logError(n)}try{"undefined"!=typeof parent&&"undefined"!=typeof parent.catid&&(a.pcatId=parent.catid)}catch(n){bby.logError(n)}try{"undefined"!=typeof templateName&&(a.isCategory=/(A|M)BCH|WABCA/.test(templateName)?!0:!1,a.isDepartment=/(A|M)BDH/.test(templateName)?!0:!1,a.isCart=/CRT/.test(templateName)?!0:!1,a.isPDP=/^PD/.test(templateName),a.templateName=templateName)}catch(n){bby.logError(n)}if("undefined"!=typeof track){try{"undefined"!=typeof track.isCloud&&(a.isCloud=track.isCloud)}catch(n){bby.logError(n)}try{"undefined"!=typeof track.catId&&(a.catId=track.catId)}catch(n){bby.logError(n)}try{"undefined"!=typeof track.parentCatId&&(a.pcatId=track.parentCatId)}catch(n){bby.logError(n)}try{"undefined"!=typeof track.templateName&&(a.templateName=track.templateName,a.isCategory=/(A|M)BCH|WABCA/.test(track.templateName)?!0:!1,a.isDepartment=/(A|M)BDH/.test(track.templateName)?!0:!1,a.isCart=/CRT/.test(track.templateName)?!0:!1,a.isPDP=/^PD/.test(track.templateName))}catch(n){bby.logError(n)}}if("undefined"!=typeof t&&t.length){try{"undefined"!=typeof t.data("is-cloud")&&(a.isCloud=!0)}catch(n){bby.logError(n)}try{"undefined"!=typeof t.data("cat-id")&&(a.catId=t.data("cat-id"))}catch(n){bby.logError(n)}try{"undefined"!=typeof t.data("template-name")&&(a.templateName=t.data("template-name"),a.isCart=/^CRT/.test(t.data("template-name")))}catch(n){}}a.hasFacets=null!==document.getElementById("searchnav")?!0:!1}catch(n){bby.logError(n)}bby.initNS("bby.page",a)}(),function(){var e={read:function(e){var t,a,n=e+"=",r=document.cookie.split(";");for(t=0;r.length>t;t++)if(a=r[t],a=a.replace(/^\s+/g,""),0==a.indexOf(n))return a.substring(n.length,a.length);return null},write:function(e,t,a){var n;try{"undefined"!=typeof a?a instanceof Date?n=a:(n=new Date,n.setDate(n.getDate()+parseInt(a)),"Invalid Date"==n&&(n=new Date,n.setDate(n.getDate()+bby.testCookies.expiration)),n=n.toGMTString()):n=-1}catch(r){bby.logError(r),n=-1}document.cookie=e+"="+escape(t)+";expires="+n+";domain=.bestbuy.com;path=/;"},deleteCookie:function(e){this.write(e,"deleted",new Date("01/01/1970"))}};bby.initNS("bby.cookie",e)}(),function(){bby.addToNSList("bby.supportedBrowser",!0);var e={list:function(){try{return _list=new Object,_list.msie="8+",_list.chrome="23+",_list.firefox="17+",_list.safari="5.1.7+",_list}catch(e){bby.logError(e)}}(),sayswho:function(){var e,t,a,n;try{return t=navigator.appName,a=navigator.userAgent,n=a.match(/(opera|chrome|safari|firefox|msie)\/?\s*(\.?\d+(\.\d+)*)/i),n&&null!=(e=a.match(/version\/([\.\d]+)/i))&&(n[2]=e[1]),n=n?[n[1],n[2]]:[t,navigator.appVersion,"-?"]}catch(r){bby.logError(r)}}(),isSupported:function(){var t,a;try{if(t=e.list[e.sayswho[0].toString().toLowerCase()],!t)return!1;if(a=t[t.length-1],t=t.slice(0,-1),"+"===a)return t>e.sayswho[1]?!1:!0;if("-"===a)return e.sayswho[1]>=t?!1:!0;if("="===a)return t===e.sayswho[1]?!0:!1}catch(n){return bby.logError(n),!1}}};bby.initNS("bby.supportedBrowser",e)}(),function(){bby.addToNSList("bby.inDepartment",!0);var e=function(e){var t,a,n,r,i;try{if(n=document.getElementById("analytics-data")){if(t=n.getAttribute("data-department"),a=n.getAttribute("data-class"),e&&e.length>0){for(r=0;e.length>r;r++)if(e[r].dept===t){if(!(e[r].subClass.length>=0))return!0;for(i=0;e[r].subClass.length>i;i++)if(e[r].subClass[i]===a)return!0}return!1}return"Department:"+t+" Class:"+a}return!1}catch(o){return bby.logError(o),!1}};bby.initNS("bby.inDepartment",e)}(),function(){try{EventManager.on("abt.test.viewed",function(e,t,a){var n,r,i,o;try{if(n=!0,r=[],"undefined"==typeof e&&(n=!1,r.trackKey="undefined"),"undefined"==typeof t&&(n=!1,r.trackValue="undefined"),"undefined"==typeof a&&(n=!1,r.testVersion="undefined"),n){switch(i={},o=t+" _ "+a,e){case"abTest68":i.abTest68=o;break;case"abTest66":i.abTest66=o;break;case"abTest67":i.abTest67=o}"undefined"!=typeof trackEvent&&"undefined"!=typeof trackEvent.api&&trackEvent.api.trackABTestView(i,"a string"),EventManager.on("dio.trackEvent.ready",function(){trackEvent.api.trackABTestView(i,"string")},[i])}else bby.logError("Event:abt.test.viewed, Reason:"+JSON.stringify(r))}catch(s){bby.logError(s)}})}catch(e){bby.logError(e)}}(),function(){function e(){this.hacks=[],_.bindAll(this)}try{_.extend(e.prototype,{extendProperty:function(e,t,a){var n,r=e.prototype[t],i=_.isFunction(r),o=i?r:_.clone(r),s=this;i?e.prototype[t]=this._genExtendProperty(r,a):_.isFunction(a)?_.extend(e.prototype[t],a()):_.extend(e.prototype[t],a),n={type:"extendProperty",constructor:e,property:t},n.undo=function(){i?e.prototype[t]=o:(_.extend(r,o),s._deletePropertyDiffs(r,o)),s._removeHack(n)},this.hacks.push(n)},injectBackboneEvents:function(e,t){this.extendProperty(e,"events",t)},prototypeHook:function(e,t,a,n){var r=e.prototype[t],i=this,o={type:"prototypeHook",constructor:e,originalMethod:r,methodName:t};o.undo=function(){e.prototype[t]=r,i._removeHack(o)},this.hacks.push(o),e.prototype[t]=this._genPrototypeHook(r,a,n)},overrideDustTemplate:function(e,t){var a,n=dust.cache[e],r=this;dust.cache[e]=_.isFunction(t)?t:dust.cache[t],a={type:"overrideDustTemplate",originalTemplateName:e},a.undo=function(){dust.cache[e]=n,r._removeHack(a)},this.hacks.push(a)},overrideDustTemplateByUrl:function(e,t){throw"not implemented"},_deletePropertyDiffs:function(e,t){_.each(e,function(a,n){_.has(t,n)||delete e[n]})},_genExtendProperty:function(e,t){return function(){var a;return a=_.isFunction(t)?t.apply(this,arguments):t,_.extend(e.apply(this,arguments),a)}},_genPrototypeHook:function(e,t,a){return function(){if("function"==typeof a)try{a.apply(this,arguments)}catch(n){EventManager.error(n.stack||n.message||n)}if(e.apply(this,arguments),"function"==typeof t)try{t.apply(this,arguments)}catch(n){EventManager.error(n.stack||n.message||n)}}},_removeHack:function(){}}),bby.initNS("bby.utils",new e)}catch(t){bby.logError(t)}}(),bby.bestbuyon=!0,bby.bSurvey=!0,bby.lmlite=!1,testLoader={enableRedirect:!1,init:function(){/cloud-test/.test(window.location.href)||bby.requires("bby.testCookies",function(){var e,t;testLoader.enableRedirect,EventManager.on("bby.page.ready",function(){});try{if(("c_and_m"===bby.parseUrl.abtest||/site\/Electronics\/Clearance\/pcmcat142300050026.c/.test(window.location.pathname))&&bby.sysdate>=new Date("12/06/2013")&&bby.sysdate<=new Date("12/14/2013")&&bby.testCookies.inGroup(["5","6","7","8","9","10","11"])&&(e={cookie:"testVersion3-2",trackKey:"abTest67",trackValue:"20131209_c_and_m"},t=bby.testCookies.getTestVersion_new(e),bby.testCookies.sendTrackEvent(e,t),"c_and_m"!==bby.parseUrl.abtest))switch(t){case"a":$(window).load(function(){$.each($("#main a"),function(){void 0!==$(this).attr("data-lid")?$(this).attr("data-lid",$(this).attr("data-lid")+"_a"):void 0!==$(this).attr("name")&&$(this).attr("name",$(this).attr("name")+"_a")})});break;case"b":$("body").hide(),window.location.href="/site/Electronics/Clearance/pcmcat287900050010.c?id=pcmcat287900050010&abtest=c_and_m";break;case"c":$("body").hide(),window.location.href="/site/Electronics/Clearance/pcmcat287900050011.c?id=pcmcat287900050011&abtest=c_and_m"}}catch(a){bby.logError(a)}bby.requires("bby.abt")},{delayed:"false"})}},testLoader.init(),enableMonetate=!0,enableMonetate&&(monetateT=(new Date).getTime(),function(){var e,t=document.location.protocol,a=document.createElement("script");a.type="text/javascript",a.async=!0,a.src=("https:"==t?"https://s":"http://")+"b.monetate.net/js/1/a-09ac03c2/p/bestbuy.com/"+Math.floor((monetateT+268098)/36e5)+"/g",e=document.getElementsByTagName("script")[0],e.parentNode.insertBefore(a,e);try{EventManager.trigger("abt.loader.monetate.loaded")}catch(n){bby.logError(n)}}()),("undefined"==typeof track.isCloud||0==track.isCloud)&&bby.requires(["bby.inno"]),function(){"object"==typeof track&&track.isCloud===!0&&document.write("<style>.date-checker a[href*='pcat17007'] { display: none; !important }</style>"),"object"==typeof track&&track.isPLCart===!0&&document.write("<style>.checkDates { display: none; !important }</style>"),"SRCL"===templateName&&document.write("<style>a[href*='pcat17007'] { display: none; !important }</style>")}();