/* UI BUILD: Wednesday, Feb  5 2014 at  1:01:50 PM */
/* MD5: 8201c6895fd086b2e580eaa5f178802f */

function lcGetAdtagUrl(e){var t="http://pubads.g.doubleclick.net/gampad/ads?iu=/6011/"+e.site+"/"+e.zone+"&gdfp_req=1&env=vp&impl=s&output=xml_vast2&sz=5x5&ciu_szs"+"&prev_ius=/6011/"+e.site+"/"+e.zone+"&prev_iu_szs=5x5unviewed_position_start=1";return t}function initLiveclickerGadget(e){("undefined"==typeof e.queryLevel||null===e.queryLevel)&&(e.queryLevel=1),e.kind&&e.div_id&&e.link&&("undefined"!=typeof e.account_id&&parseInt(e.account_id)>0&&(lc.account_id=parseInt(e.account_id)),"main"==e.kind?lc.mainPageGadget(e):"category"==e.kind?lc.categoryPageGadget(e):"videodetail"==e.kind&&lc.relatedMediaGadget(e))}function BBYOnPage(){BBYOnPage.baseConstructor.call(this),this.cLog.tag+=": BBYOnPage";var e="constructor";this.debug&&this.cLog.wr(e),this.init()}var BBYVideo,BBYMedExpVideo;("undefined"==typeof bbyjsoop||null===bbyjsoop)&&(bbyjsoop={},bbyjsoop.extend=function(e,t){function i(){}i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=e,t.baseConstructor=e,t.superClass=e.prototype}),eval(function(e,t,i,a,d,n){if(d=function(e){return(t>e?"":d(parseInt(e/t)))+((e%=t)>35?String.fromCharCode(e+29):e.toString(36))},!"".replace(/^/,String)){for(;i--;)n[d(i)]=a[i]||d(i);a=[function(e){return n[e]}],d=function(){return"\\w+"},i=1}for(;i--;)a[i]&&(e=e.replace(new RegExp("\\b"+d(i)+"\\b","g"),a[i]));return e}("7(!6.W){6.W={}}(8(){\"4h 4i\";8 f(n){q n<10?'0'+n:n}7(G 2P.y.1a!=='8'){2P.y.1a=8(a){q 2Q(6.2R())?6.4j()+'-'+f(6.4k()+1)+'-'+f(6.4l())+'T'+f(6.4m())+':'+f(6.4n())+':'+f(6.4o())+'Z':K};1t.y.1a=4p.y.1a=4q.y.1a=8(a){q 6.2R()}}9 e=/[\\4r\\2S\\2T-\\2U\\2V\\2W\\2X\\2Y-\\2Z\\30-\\31\\32-\\33\\34\\35-\\36]/g,1P=/[\\\\\\\"\\4s-\\4t\\4u-\\4v\\2S\\2T-\\2U\\2V\\2W\\2X\\2Y-\\2Z\\30-\\31\\32-\\33\\34\\35-\\36]/g,N,1u,37={'\\b':'\\\\b','\\t':'\\\\t','\\n':'\\\\n','\\f':'\\\\f','\\r':'\\\\r','\"':'\\\\\"','\\\\':'\\\\\\\\'},19;8 1Q(b){1P.38=0;q 1P.2e(b)?'\"'+b.1g(1P,8(a){9 c=37[a];q G c==='1v'?c:'\\\\u'+('39'+a.3a(0).1h(16)).3b(-4)})+'\"':'\"'+b+'\"'}8 1w(a,b){9 i,k,v,A,1x=N,U,C=b[a];7(C&&G C==='1b'&&G C.1a==='8'){C=C.1a(a)}7(G 19==='8'){C=19.1c(b,a,C)}4w(G C){1y'1v':q 1Q(C);1y'2f':q 2Q(C)?1t(C):'K';1y'4x':1y'K':q 1t(C);1y'1b':7(!C){q'K'}N+=1u;U=[];7(1d.y.1h.3c(C)==='[1b O]'){A=C.A;I(i=0;i<A;i+=1){U[i]=1w(i,C)||'K'}v=U.A===0?'[]':N?'[\\n'+N+U.Y(',\\n'+N)+'\\n'+1x+']':'['+U.Y(',')+']';N=1x;q v}7(19&&G 19==='1b'){A=19.A;I(i=0;i<A;i+=1){k=19[i];7(G k==='1v'){v=1w(k,C);7(v){U.1e(1Q(k)+(N?': ':':')+v)}}}}D{I(k S C){7(1d.2g.1c(C,k)){v=1w(k,C);7(v){U.1e(1Q(k)+(N?': ':':')+v)}}}}v=U.A===0?'{}':N?'{\\n'+N+U.Y(',\\n'+N)+'\\n'+1x+'}':'{'+U.Y(',')+'}';N=1x;q v}}7(G W.1z!=='8'){W.1z=8(a,b,c){9 i;N='';1u='';7(G c==='2f'){I(i=0;i<c;i+=1){1u+=' '}}D 7(G c==='1v'){1u=c}19=b;7(b&&G b!=='8'&&(G b!=='1b'||G b.A!=='2f')){3d E 4y('W.1z');}q 1w('',{'':a})}}7(G W.2h!=='8'){W.2h=8(c,d){9 j;8 2i(a,b){9 k,v,C=a[b];7(C&&G C==='1b'){I(k S C){7(1d.2g.1c(C,k)){v=2i(C,k);7(v!==B){C[k]=v}D{2j C[k]}}}}q d.1c(a,b,C)}c=1t(c);e.38=0;7(e.2e(c)){c=c.1g(e,8(a){q'\\\\u'+('39'+a.3a(0).1h(16)).3b(-4)})}7(/^[\\],:{}\\s]*$/.2e(c.1g(/\\\\(?:[\"\\\\\\/4z]|u[0-4A-4B-F]{4})/g,'@').1g(/\"[^\"\\\\\\n\\r]*\"|3e|3f|K|-?\\d+(?:\\.\\d*)?(?:[4C][+\\-]?\\d+)?/g,']').1g(/(?:^|:|,)(?:\\s*\\[)+/g,''))){j=4D('('+c+')');q G d==='8'?2i({'':j},''):j}3d E 4E('W.2h');}}}());8 3g(o){9 c=8(b){9 a=[],t;I(9 p S b){7(b.2g(p)){t=b[p];7(G(t)==\"1b\"){a[a.A]=\"{\"+2k.4F(t).Y(\", \")+\"}\"}D 7(G(t)!=\"8\"){a[a.A]=[\"'\"+p+\"' : '\"+t.1h()+\"'\"]}}};q a};q\"[\"+c(o).Y(\", \")+\"]\"}7(!11.w)11.w={};w.1i=E O();w.1j=8(){7(z.P&&z.P.1A)q z.P.1A;D 7(z.1A)q z.1A;D q 0};8 2l(){q 11.4G.4H=='3h:'}8 2m(){7(!z.1k)z.1k=\"4I.w.3i\";q z.1k}8 3j(){7(!z.1k)z.1k=\"4J.w.3k\";q z.1k}8 1l(){9 a=w.1m();9 b;7(a==2m())b=\"3h://\";D b=\"4K://\";q b}w.1m=8(){9 a;7(2l()){a=2m()}D{a=\"4L.w.3i\"}7(z.P&&z.P.1R){q z.P.1R}D 7(z.1R){q z.1R}D{q a}};w.3l=8(){7(2l()){q 3j()}D 7(z.P&&z.P.3m){q z.P.3m}D{q\"3n.w.3k\"}};w.3o=8(a,b){7(a.1n('3p=3q')<0){a+='&3p=3q'}a+='&9=w.1i['+b.2n+']';9 c=12.1B('1S');c.13=a;c.1T='1U/1V';12.1W('1X')[0].1Y(c);7(w.1o==B){w.1o=E O()}w.1o[b.2n]=b;1C(\"w.2o()\",50)};w.2o=8(){9 a=1;7(11.w.1i){I(9 b S 11.w.1i){7(3r(b).1h()!=b)14;w.1o[b].3s(11.w.1i[b]);2j 11.w.1i[b];2j w.1o[b];I(9 c S w.1o){a=0}}}7(a)1C(\"w.2o()\",50)};w.2p=8(a,b){7(G a!=B){9 c=a.1Z();7((c.2q>0&&c.2r>0)&&((c.2q>0.4M*c.2r)||(c.2q>(c.2r-0.3)))){7(G b!=B){b(a)}}D{11.1C(8(){w.2p(a,b)},4N)}}};w.4O=8(a,b){w.2p(a,b)};w.3t=8(){7(w.20==B){w.20=0}D{w.20++}q w.20};w.15=E O();w.3u=8(a){w.15[w.15.A]=a;7(w.15.A==1){1C(\"w.2s(0)\",50)}};w.2s=8(a){7(a!=0)q;9 b=0;I(9 i=0;i<w.15.A;i++){9 c=w.15[i];7(c==K)14;9 a=w.2t(c.H);7(a==B){b++;14}w.15[i]=K;4P{a.Q(c.3v,c.3w,c.3x,c.3y,c.3z)}4Q(3A){w.15[i]=c;b++}}7(b>0){1C(\"w.2s(0)\",50)}D{w.15=E O()}};w.3B=8(a){7(a.21(\"3C\").21(\"3D\").A==0){q B}9 b=a.21(\"3C\").21(\"3D\")[0];q b};w.4R=8(a){9 p=w.3B(a);7(p==B)q B;9 b=2u();I(9 i=0;i<b.A;i++){9 c=b[i];7(c==K)14;7(c.1Z==B)14;7(c.22==B){14}7(c==p){q c}}q B};w.23=8(a){9 b=a.1Z().R.1h();9 c=b.1n('4S');7(c>0){b=b.3E(c+1)}q b};w.2t=8(a){7(11.2u==B){q B}9 b=2u();I(9 i=0;i<b.A;i++){9 c=b[i];7(c==K)14;7(c.1Z==B)14;7(c.22==B){c.22='1';q B}7(w.23(c)==a){q c}}q B};8 2v(a,b){6.13=a;6.24=b}8 1D(a){6.H=a;6.X=1l()+w.1m()+\"/25/4T?2w=\"+w.1j()+\"&H=\"+6.H}1D.y.4U=8(a,b){6.X=6.X+'&'+a+'='+b};1D.y.2x=8(a){6.X=6.X+'&'+a};1D.y.4V=8(a){9 b=12.1B('1S');b.1p('1T','1U/1V');I(9 i S a){7(6.X.1n(i)>1){6.X=6.X.2y(\"&\"+i).Y(\"&3F\"+i)}7((i!=\"R\"))6.X+=\"&\"+i+\"=\"+a[i]}b.1p('13',6.X+'&2z='+a.R);12.1W(\"1X\")[0].1Y(b);q M(\"#\"+a.R)};8 2v(a,b){6.13=a;6.24=b}8 L(a){6.H=a;6.J=1l()+w.1m()+\"/25/4W?2w=\"+w.1j()+\"&H=\"+6.H}L.y.26=8(a,b){6.J=6.J+'&'+a+'='+b};L.y.2x=8(a){6.J=6.J+'&'+a};L.y.3G=8(a){6.J=6.J+'&3H='+1q(a);q 6};L.y.Q=8(a,b,c,d,e){9 f=w.2t(6.H);7(f!=B){f.Q(a,b,c,d,e)}D{w.3u({'H':6.H,'3v':a,'3w':b,'3x':c,'3y':d,'3z':e})}};L.y.3I=8(){6.Q('3I')};L.y.3J=8(){6.Q('3J')};L.y.3K=8(){6.Q('3K')};L.y.3L=8(){6.Q('3L')};L.y.3M=8(){6.Q('3M')};L.y.3N=8(){6.Q('3N')};L.y.3O=8(){6.Q('3O')};L.y.3P=8(a){6.Q('3P',a)};L.y.3Q=8(a){6.Q('3Q',a)};L.y.3R=8(a,b,c,d){6.Q('3R',a,b,c,d)};L.y.4X=8(a){9 b=12.1B('1S');b.1p('1T','1U/1V');I(9 i S a){7(6.J.1n(i)>1){6.J=6.J.2y(\"&\"+i).Y(\"&3F\"+i)}7((i!=\"1f\")&&(i!=\"R\"))6.J+=\"&\"+i+\"=\"+a[i]}7((6.J.1n(\"27\")>1)&&(a.1f>0)){6.J=6.J.2y(\"&27\").Y(\"&4Y\")}b.1p('13',6.J+'&2z='+a.R+(a.1f?'&27='+a.1f:''));12.1W(\"1X\")[0].1Y(b);q M(\"#\"+a.R)};8 1E(a,b){7(a.28){w.4Z=3f}6.J=1l()+w.1m()+\"/25/51?2w=\"+w.1j()+\"&52=\"+a.3S+\"&2A=\"+b+(a.28?'&28='+a.28:'')}1E.y.3T=8(a){9 b=12.1B('1S');b.1p('1T','1U/1V');b.1p('13',6.J+'&2z='+a.R);12.1W(\"1X\")[0].1Y(b);q M(\"#\"+a.R)};1E.y.53=8(b){9 c=b.R;9 d=\"54\"+3U.55(3U.56()*57);M(\"58\").3V(\"<3W R=\\\"\"+d+\"\\\" 59=\\\"5a:5b;\\\"></3W>\");6.3T({'R':d});M(\"#\"+c).3X(8(){9 a=M('a:5c','#'+d);a.3X()});q 6};1E.y.3G=8(a){6.J=6.J+'&3H='+1q(a);q 6};8 1F(d){6.2B=d.2B;6.2C=d.2C;6.3Y=d.3Y;6.3Z=d.3Z;6.40=d.40;9 e=[];M.1G(6.2C.5d,8(j,a){9 b=23(a.2D);9 c;7(b>0){c=E 2E(a,b)}D{c=E 2F(a)}e.1e(c)});6.29=e}1F.y.5e=8(){q 6.29.A};1F.y.5f=8(a){7(a<=0||a>6.29.A){q K}q 6.29[a-1]};8 23(a){9 b=0;9 c=a.3E(a.5g('/')+1);7(c.5h(0)==\"-\"){b=0-3r(c)}q b}1F.y.5i=8(a){9 b=6.J=1l()+w.3l()+\"/3n/5/?5j=\"+6.5k+\"-\"+w.1j()+\"-\"+6.2B;9 c=12.1B('5l');c.13=b;c.5m=0;c.5n=\"5o\";c.17=a.17!=B?a.17:5p;c.18=a.18!=B?a.18:5q;9 d=M(\"#\"+a.R);d.3V(c);q d};8 1H(b){7(!b)q;6.5r=b.5s;6.41=b.41;6.42=b.42;9 c=[];M.1G(b.2G.43,8(j,a){c.1e(a)});6.5t=c}8 2E(a,b){1H.1c(6,a);6.H=b}2E.y=E 1H;8 2F(a){1H.1c(6,a);6.2D=a.2D}2F.y=E 1H;9 z=8(a){7(a.V){q a}q E z.2a.2H(a)};z.2I=8(a,b,c){w.3o(1l()+w.1m()+\"/25/5u?5v=\"+a+\"&1A=\"+w.1j()+\"&\"+c,b)};z.44=8(a,b,c){7(2k.A===2){7(G b===\"1v\"){c=a;a=c[b];b=B}D 7(b&&!M.5w(b)){c=b;b=B}}7(!b&&a){b=8(){q a.3c(c||6,2k)}}7(a){b.1I=a.1I=a.1I||b.1I||M.1I++}q b};8 2J(){6.a='';6.1J=8(o){7(o.1r==O)6.a+='';7(o.1r==1d)6.a+='';I(9 i S o){7(o[i]==K)14;7((G o[i]!=='8')&&(i!='2b')&&(i!=='2A')&&(i!=='P')&&(i!=='45')&&(i!=='2c')&&(i!=='2d')){7(o.1r!=O){6.a+=i+'=';7(o[i].1r==1d){6.1J(o[i])}D 7(o[i].1r==O){6.1J(o[i])}D 7(o[i].1r==1t){6.a+=o[i]+'&'}D{6.a+=o[i]+'&'}}}}q 6.a.5x(0,6.a.A-1)}}z.2a=z.y={2H:8(a){6.2n=w.3t();6.V=E O();6.5y=E O();6.1K=E O();6.1L=a;7(a.2K){b='5z=3e';9 r=E 2J();b+=\"&\"+r.1J(a);z.2I('w.2K.46',6,b);q}9 b='';7(a.H){7(a.1M&&a.1M==\"5A\"){b='&H='+a.H}D{b='&2A='+a.H}}D 7(a.2b){9 c=\"{\\\"2b\\\":\"+3g(a.2b)+\"}\";b=\"47=\"+1q(c)}7(a.45){b+='&47='+1q(W.1z(a))}7(a.2c){b+='&2c='+1q(a.2c)}7(a.2d){b+='&2d='+1q(W.1z(a.2d))}9 r=E 2J();b+=\"&\"+r.1J(a);7(!a.48){b+='&48=5B'}7(z.P&&z.P.49){b+='&5C='+z.P.49}z.2I('w.4a.46',6,b);q 6},A:-1,5D:8(i){7(i<0||i>=6.V.A){q K}q 6.V[i]},5E:8(a){7(a==B){q K}D{9 b=0;9 c;9 i=0;4b(i<6.V.A){7(6.V[i].H==a){b=1;c=6.V[i]}i++}7(b==1){q c}D{q K}}},5F:8(a){7(a&&a.3S){9 b=E O();I(9 i=0;i<6.V.A;i++){b[i]=6.V[i].H}q E 1E(a,b)}q K},3s:8(l){9 m=6.V;7(l.3A){}D 7(l.4c){M.1G(l.4c.2K,8(j,a){9 b=E 1F(a);m.1e(b)})}D 7(l.4d){7(l.2L){6.2L=l.2L}M.1G(l.4d.4a,8(j,h){9 k=E 1d();k=h;k.1N=E 2v(h.1N,h.5G);k.1O=E O();7(h.2G!=B){M.1G(h.2G.43,8(i,a){9 b=E 1d();I(9 i S a)b[i]=a[i];k.1O.1e(b)})}k.5H=k.1O.A;k.5I=8(i){7(i<0||i>=k.1O.A){q K}q k.1O[i]};k.5J=8(a){9 b=\"\";7(a){7(a.17!=B){b=b+\" 17='\"+a.17+\"'\"}7(a.18!=B){b=b+\" 18='\"+a.18+\"'\"}}9 c=a.5K&&6.1N.24?6.1N.24:6.1N.13;c=6.4e(c,a);q M(\"<5L 5M='\"+j+\"' H='\"+k.H+\"' 13='\"+c+\"' \"+b+\">\")};k.2M={'5N':[[5O,5P],[4f,5Q],[5R,5S],[5T,2N]],'5U':[[4f,5V],[5W,5X],[5Y,2N]],'5Z':[[61,62],[63,64],[65,2N]]};k.4e=8(a,b){7(b.17==B||b.18==B){q a}9 c=b.17*b.18;I(9 d S 6.2M){7(a.1n(d)>=0){9 e=6.2M[d];I(9 i=0;i<e.A;i++){9 f=e[i];9 g=f[0]*f[1];7(g>=c||i==e.A-1){7(b.17<=66&&b.18<=60){q k.67}D q a.1g(d,f[0]+'x'+f[1])}}}}q a};k.1s=E L(k.H);k.68=8(a){7(a){I(9 i S a){7((i!=\"1f\")&&(i!=\"2O\"))6.1s.26(i,a[i])}7(a.1f!=B){6.1s.26('27',a.1f)}7(a.2O!=B){6.1s.2x(a.2O)}}q 6.1s};k.4g=E 1D(k.H);k.69=8(a){I(9 i S a){6.1s.26(i,a[i])}q 6.4g};m.1e(k)});7(6.1L&&(6.1L.1M)&&(G(6.1L.1M)=='8')){m.6a(6.1L.1M)}}6.A=6.V.A;7(6.1K){9 n,i=0;4b((n=6.1K[i++])){9 o=z.44(n,6);o.1c()}6.1K=[]}},22:8(a){6.1K=O(a)}};z.2a.2H.y=z.2a;",62,383,"||||||this|if|function|var|||||||||||||||||return||||||liveclicker||prototype|lc|length|undefined|value|else|new||typeof|widget_id|for|scriptSrc|null|lcPlayer|jQuery|gap|Array|settings|sendEvent|id|in||partial|widgetList|JSON|scriptSrcDynamic|join|||window|document|src|continue|pending||width|height|rep|toJSON|object|call|Object|push|player_id|replace|toString|api_res|getAccountId|secure_domain|getHttp|getDomain|indexOf|lcCallbackObjects|setAttribute|escape|constructor|player|String|indent|string|str|mind|case|stringify|account_id|createElement|setTimeout|lcDynamicThumbnail|lcBanner|lcSlideshow|each|lcSlide|guid|createURL|readyList|lcOptions|order|thumbnail|products|escapable|quote|domain|script|type|text|javascript|getElementsByTagName|head|appendChild|getSettings|objectCount|children|isReady|getWidgetId|srcNormalized|service|assignPlayerOption|player_custom_id|overlay_autostart|slide_list|fn|or|extra_priority|extra_options|test|number|hasOwnProperty|parse|walk|delete|arguments|isSecure|getSecureDomain|objectId|lcCheckReadyObject|detectEndPlayback|playTime|totalTime|checkPending|findPlayerByWidgetId|getLCPlayers|lcThumbnail|client_id|addInternalParams|split|div_id|widget_list|slideshow_id|slides|photo_location|lcWidgetSlide|lcImageSlide|product_links|init|request|print_JS|slideshow|cdn_prefix|thumbnailMap|720|internal_params|Date|isFinite|valueOf|u00ad|u0600|u0604|u070f|u17b4|u17b5|u200c|u200f|u2028|u202f|u2060|u206f|ufeff|ufff0|uffff|meta|lastIndex|0000|charCodeAt|slice|apply|throw|true|false|logicalRuleToString|https|net|getSecureAppDomain|com|getAppDomain|app_domain|apps|callAPIObject|format|json|parseInt|callback|newObjectId|setPending|event|p1|p2|p3|p4|error|getPlayerFromJquery|div|embed|substring|deleted_|setPrerollAdtag|preroll_adtag_url|play|pause|playpause|stop|rewind|mute|forcedownload|volume|seek|resize|banner_id|appendBannerTo|Math|append|span|click|title|views|rating|description|link|product_link|proxy|dimension_order|getList|options|status|user_id|widget|while|slideshows|widgets|resizeThumbnail|320|dynamicTh|use|strict|getUTCFullYear|getUTCMonth|getUTCDate|getUTCHours|getUTCMinutes|getUTCSeconds|Number|Boolean|u0000|x00|x1f|x7f|x9f|switch|boolean|Error|bfnrt|9a|fA|eE|eval|SyntaxError|callee|location|protocol|sc|vms|http|sv|98|100|callbackOnPlaybackCompleted|try|catch|findPlayerByJquery|_|getDynamicEmbed|assignDynamicThumbnailOption|appendDynamicThumbnailTo|getEmbed|appendPlayerTo|deleted_player_custom_id|oa||getComponent|component_id|showOverlayOnClick|lcs|floor|random|100000|body|style|display|none|first|slide|getLength|getSlide|lastIndexOf|charAt|appendMediaSlideshowTo|app_data|version|iframe|frameBorder|scrolling|no|945|815|slide_number|photo_number|product_list|api|method|isFunction|substr|initializationParameters|include_slides|related|online|set_user|getByIndex|getByWidgetId|getBanner|thumbnail_normalized|productsLength|getProductsByIndex|getThumbnail|normalized|img|index|320x240|160|120|240|640|480|960|320x180|180|512|288|1280|300x200||300|200|600|400|1080|80|mini_thumbnail|getPlayer|getDynamicThumbnail|sort".split("|"),0,{})),lcPlayer.prototype.setSiteAndZone=function(e){var t=lcGetAdtagUrl(e);return this.scriptSrc+="&preroll_adtag_url="+escape(t),this},lcBanner.prototype.setSiteAndZone=function(e){var t=lcGetAdtagUrl(e);return this.scriptSrc+="&preroll_adtag_url="+escape(t),this},lc.account_id=1937,lc.mainPageGadget=function(e){e.slideshow_id&&(lc.mainPageAddCode(e),lc.mainPagePopulate(e))},lc.mainPageAddCode=function(e){var t,i,a,d,n='<style type="text/css">/* DEAL-OF-THE-DAY STYLING */#bbyon {margin-bottom: 0 !important;}</style>',o='<div class="bbyonMod"><div class="modHeader"><h2 class="modTitle">Best Buy Video</h2><div class="bbyonLink"><a href="https://deals.bestbuy.com/latesttech">More at Best Buy On <span class="rasquo"></span></a></div></div><div class="modPoster"></div><!-- end body of .modPoster --><div class="modBody">',r="";for(t=0;4>t;t++)i='<a style="display:none;" class="item item'+t+'" onclick="trackEvent.event(\'event.link\',{video:\'video launch\'})" href="" title="">'+'<img class="itemThumb" alt="">'+'<div class="itemCaption">'+'<h3 class="itemTitle"></h3>'+'<div class="itemDesc">'+"</div>"+"</div>"+"</a>",r+=i;a='</div><!-- end .modBody --><div class="bbyonLink"><a href="https://deals.bestbuy.com/latesttech">More at Best Buy On<span class="rasquo"></span></a></div></div><!-- end .bbyonMod -->',d=n+o+r+a,$("#"+e.div_id).html(d)},lc.getWidgetId=function(e){var t=0,i=e.substring(e.lastIndexOf("/")+1);return"-"==i.charAt(0)&&(t=0-parseInt(i)),t},lc.mainPagePopulate=function(e){lc({slideshow_id:e.slideshow_id,slideshow:!0,extra_options:{include_extra_images:"true",include_description:"true"}}).isReady(function(){var t,i,a,d,n;lc(this).length,t=lc(this).length,lc(this),i=0,a=4,t>0&&(d=lc(this).getByIndex(0),i=d.slides.slide.length),n=lc.generateWidgetIdListWithABTestIds(d,lc,i,a),e.abTestIds=n.abTestIds,lc.getPlayListData(n.widgetIdList,e)})},lc.getPlayListData=function(e,t){lc({widget_id:e,extra_options:{include_extra_images:"true",include_description:"true"}}).isReady(function(){for(var i,a,d,n,o,r=0,c=0,s=lc(this).length,l=new Array,u=[];4>=c&&s>r;)u=lc(this).getByIndex(r),i=u.widget_id,l[i]=u,r++;for(a=e.split(","),d=0;a.length>d;d++)i=a[d],u=l[i],"undefined"!=typeof u&&"undefined"!=typeof u.extra_image_medium&&u.extra_image_medium.length>0&&(n=t.link,o="","abTestIds"in t&&"undefined"!=typeof t.abTestIds[c]&&t.abTestIds[c].length>0&&(o="&abtest_id="+t.abTestIds[c]),lc.showDataInBody(u,c,n,o),c++)})},lc.categoryPageGadget=function(e){(e.category||e.slideshow_id)&&(lc.categoryPageAddCode(e),lc.categoryPagePopulate(e),$("#bbyon").addClass("modFormat0"),$("#bbyon").show())},lc.categoryPageAddCode=function(e){var t,i,a,d,n='<div id="on-loading"><div class="bbyonMod"><div class="modPoster"><a class="posterLink" onclick="trackEvent.event(\'event.link\',{video:\'video launch\'})"><!-- Poster link --><img><!-- Poster image --><div></div></a></div><div class="modBody">',o="";for(t=0;3>t;t++)i='<a style="display:none;" class="item item'+t+" active\" onclick=\"trackEvent.event('event.link',{video:'video launch'})\">"+'<img class="itemThumb">'+'<div class="itemCaption">'+'<h3 class="itemTitle"></h3>'+'<div class="itemDesc"></div>'+"</div>"+"</a>",o+=i;a='</div><div class="bbyonLink"><a href="https://deals.bestbuy.com/latesttech">See more videos<span class="rasquo"></span></a></div></div></div>',d=n+o+a,$("#"+e.div_id).replaceWith(d)},lc.categoryPageFillOutSpotsOnPage=function(e,t){var i,a,d,n,o,r;for(0===e.widgetList.length&&(1===t.queryLevel?(t.queryLevel++,"undefined"==typeof track.parentCatName||null===track.parentCatName?(t.queryLevel++,t.category="ANY",initLiveclickerGadget(t)):(t.category=TaxonomyTag.encode(track.parentCatName),initLiveclickerGadget(t))):2===t.queryLevel&&(t.category="ANY",initLiveclickerGadget(t))),_lcDataStructure=[],_lcDataStructure[0]=[],_lcDataStructure[1]=[],_lcDataStructure[2]=[],i=0,a=0,d=0,n=e.length,o=[],r=t.link;3>=d&&n>i;)"abTestIds"in t&&"undefined"!=typeof t.abTestIds[d]&&t.abTestIds[d].length>0&&(r+="&abtest_id="+t.abTestIds[d]),o=e.getByIndex(i),o.extra_image_medium.length>0&&(0==a?(lc.showDataInPoster(o,r),lc.showDataInBody(o,d,r,""),a=1):lc.showDataInBody(o,d,r,""),_lcDataStructure[d]=o,d++),i++;$(".modBody a.item").mouseover(function(){$(this).hasClass("item0")?lc.showDataInPoster(_lcDataStructure[0],r):$(this).hasClass("item1")?lc.showDataInPoster(_lcDataStructure[1],r):$(this).hasClass("item2")&&lc.showDataInPoster(_lcDataStructure[2],r)}),1==n&&jQuery(".modBody").hide()},lc.categoryPagePopulate=function(e){"undefined"!=typeof e.slideshow_id&&e.slideshow_id>0?lc({slideshow_id:e.slideshow_id,slideshow:!0,extra_options:{include_extra_images:"true",include_description:"true"}}).isReady(function(){var t,i,a,d,n;lc(this).length,t=lc(this).length,lc(this),i=0,a=4,t>0&&(d=lc(this).getByIndex(0),i=d.slides.slide.length),n=lc.generateWidgetIdListWithABTestIds(d,lc,i,a),e.abTestIds=n.abTestIds,e.slideshow_id=0,e.forceWidgetIdList=1,e.widgetIdList=n.widgetIdList,lc.categoryPagePopulate(e)}):"undefined"!=typeof e.forceWidgetIdList&&1==e.forceWidgetIdList?lc({widget_id:e.widgetIdList,extra_options:{include_extra_images:"true",include_description:"true"}}).isReady(function(){lc.categoryPageFillOutSpotsOnPage(lc(this),e)}):"ANY"===e.category?lc({order:lc.sortByAscPriority,extra_options:{return_dimensions:"7",include_extra_images:"true",include_description:"true"},limit:10}).isReady(function(){lc.categoryPageFillOutSpotsOnPage(lc(this),e)}):lc({dim5:e.category,order:lc.sortByAscPriority,extra_options:{return_dimensions:"7",include_extra_images:"true",include_description:"true"},limit:10}).isReady(function(){lc.categoryPageFillOutSpotsOnPage(lc(this),e)})},lc.relatedMediaGadget=function(e){e.widget_id&&(lc.relatedMediaAddCode(e),lc.relatedMediaPopulate(e))},lc.relatedMediaAddCode=function(e){var t='<div id=\'relatedMedia\'><h3>Related Media</h3><div id="relatedMediaBody"><p class="hide" id="relatedMedia_loading">Loading</p><!-- here goes the dynamically loaded content from Liveclicker--></div><!-- end #relatedMediaBody --><a id="relatedMedia_seeMore" class="" href="https://deals.bestbuy.com/latesttech">See more videos.<span class="rasquo"></span></a><noscript><a href="http://www.bestbuyon.com"><img src="http://images.bestbuy.com/BestBuy_US/en_US/images/global/on-default.gif"></a><div></div></noscript></div>';$("#"+e.div_id).replaceWith(t)},lc.relatedMediaPopulate=function(e){lc({widget_id:e.widget_id,extra_options:{include_extra_images:"true",include_description:"true",only_extra_images:"small"},order:"related",limit:3}).isReady(function(){for(var t=0,i=0,a=lc(this).length,d=[],n=e.link;3>=i&&a>t;)d=lc(this).getByIndex(t),$("#relatedMediaBody").append(lc.buildRelatedMediaItemHTML(d,t,n)),t++;$("#relatedMedia_loading").hide()})},lc.showDataInPoster=function(e,t){$(".modPoster .posterLink").attr("href",t+"&wid="+e.widget_id),$(".modPoster .posterLink").attr("title",e.title),$(".modPoster img").attr("src",e.extra_image_medium),$(".modPoster img").attr("alt",e.title),$(".modPoster div").text(e.description)},lc.showDataInBody=function(e,t,i,a){$("a.item"+t).attr("href",i+"&wid="+e.widget_id+a).show(),$("a.item"+t).attr("title",e.title),$("a.item"+t+" .itemThumb").attr("src",e.extra_image_small),$("a.item"+t+" h3.itemTitle").text(e.title),$("a.item"+t+" .itemDesc").text(e.description)},lc.sortByAscPriority=function(e,t){var i,a=e.dim7,d=0,n=t.dim7,o=0;for(i in a)i>d&&(d=i);for(i in n)i>o&&(o=i);return d>o?1:0},lc.buildRelatedMediaItemHTML=function(e,t,i){var a="";return a+='<a class="relatedMediaItem" href="'+i+"&wid="+e.widget_id+'">',a+='<div id="lcThumbnail'+t+'"><img src="'+e.extra_image_small+'" width="123" height="69"></div>',a+='<div class="caption">',a+='<h4 title="'+e.title+'">'+e.title+"</h4>",a+='<p title="'+e.description+'">',a+=e.description,a+="</p>",a+="</div></a>"},lc.generateWidgetIdListWithABTestIds=function(e,t,i,a){for(var d,n,o=0,r=0,c=new Array,s=new Array,l="",u="",p="",g=0,b=0,y="";i>o;)d=e.slides.slide[o],p=d.description,g=t.getWidgetId(d.photo_location),-1!==p.indexOf("abtest_id=")?(u=p.replace("abtest_id=",""),"undefined"!=typeof c[b]&&u==l?c[b].push(""+g):u!=l?(""!=l&&b++,c[b]=new Array(""+g),s[b]=new Array(""+u)):(c[b]=new Array(""+g),s[b]=new Array(""+u)),l=u):(""!=l&&b++,c[b]=new Array(""+g),s[b]=new Array(""),b++,l=""),o++;for(o=0;c.length>o&&a>=r;)1==c[o].length?y+=c[o][0]+",":(n=Math.floor(Math.random()*c[o].length),y+=c[o][n]+","),o++;return y=y.substr(0,y.length-1),{widgetIdList:y,abTestIds:s}},bbyjsoop.extend(BBYOn,BBYOnPage),BBYOnPage.prototype.init=function(){var e=jQuery.urlParam("id",null),t=jQuery.urlParam("wid",null),i=function(){function e(e,t){var i,a,d="",n=e,o=MP.getCookie("mnprp");return o=new String(o),i=o.indexOf(n),a=o.indexOf(t,i+n.length),d=o.substring(i+n.length,a)}var t={},i=e("&doubleclick.adTagUrl=http://ad.doubleclick.net/pfadx/","/"),a=e("&zone=","&");return t.site=i,t.zone=a,t}(),a=new BBYVideo;"undefined"!=typeof a.loadBBYONWidget&&"undefined"!=typeof t&&null!==t&&(a.loadBBYONWidget({contentItem:{},playOnLoad:!0,videoWidth:"640",videoHeight:"357",wid:t,site:i.site,zone:i.zone}),"pcmcat249300050019"===e&&initLiveclickerGadget({kind:"videodetail",widget_id:t,div_id:"relatedMedia",link:"http://www.bestbuy.com/site/Entertainment-Offers/null/pcmcat249300050019.c?id=pcmcat249300050019&nid="}))},BBYOnPage.prototype.relProductsFetch=function(e){var t,i,a,d="relProductsFetch";this.debug&&this.cLog.wr(d+"("+e+")"),e=e.constructor==Array?e.join():e,this.debug&&(t=(new Date).getTime().toString().substr(6),e+=",11"+t),i="http://api.bbyremix.bestbuy.com/v1/products(sku in("+e+"))",a="show=sku,name,modelNumber,url,salePrice,planPrice,shortDescription,thumbnailImage,mediumImage,customerReviewCount,customerReviewAverage&format=json&pageSize=20&apiKey=kn767dbfkf5fefnq8gasu83w",this.jsonpReq({url:i,query:a,cbSuccess:"relProductsFetchCB"})},BBYOnPage.prototype.relProductsFetchCB=function(e){var t,i,a,d,n,o;if(this.vars.starImcSrcBase="http://images.bestbuy.com/BestBuy_US/images/global/misc/ratings_star_",t="relProductsFetchCB",i="(product data (jsonp): "+objectToString(e)+")",this.debug&&this.cLog.wr(t+i),this.jsonp.cStop[t]&&0!=this.jsonp.cStop[t])this.debug&&this.cLog.wr(t+": redundant data response - aborting");else if(e.hasOwnProperty("total")&&e.total>0){this.jsonp.cStop[t]=!0,a=e.products,this.content.relProds=e.products;try{for(d in a)n=Number(a[d].customerReviewAverage).toFixed(1).toString(),n&&(a[d].customerReviewAverageImg=this.vars.starImcSrcBase+n.replace(".","_")+".gif"),a[d].customerReviewAverage=n,a[d].customerReviewCount=Number(a[d].customerReviewCount),this.debug&&this.cLog.wr(t+": sku "+a[d].sku+" saved with ratingImg: "+a[d].customerReviewAverageImg),o=a[d].mediumImage,(!o||o.indexOf("nonsku")>-1)&&(o=a[d].thumbnailImage),a[d].prodImg=o,isNaN(parseFloat(a[d].planPrice))?(a[d].price=a[d].salePrice,a[d].legal=""):(i=a[d].planPrice,a[d].price=a[d].planPrice+"*",a[d].legal="*With new 2-year contract",this.debug&&this.cLog.wr(t+": using planPrice: "+i));this.relProductsRender(a)}catch(r){this.debug&&this.cLog.wr(t+": failed with error: "+r.description)}}else this.debug&&this.cLog.wr(t+": empty data set recieved - skipping related products render.")},BBYOnPage.prototype.relProductsRender=function(e){var t,i,a,d="relProductsRender";this.debug&&this.cLog.wr(d+"(products: "+objectToString(e)+")"),t='<li>	<div class="relProdThumbHolder">		<img class="relProdThumb" src="{prodImg}" alt="{name}" />	</div>	<dl>		<dt><h4><a href="{url}">{name}</a></h4></dt>		<dd class="model">Model: {modelNumber}</dd>		<dd class="sku">sku: {sku}</dd>		<dd class="custReview">			<span><img class="score" src="{customerReviewAverageImg}" alt="" /></span>			<span class="scoreOf">{customerReviewAverage} of 5</span>			<span><a class="reviews" href="{url}#tabbed-customerreviews">({customerReviewCount} reviews)</a></span>		</dd>		<dd class="salePrice">Sale: {price}</dd>		<dd class="legal"><strong>{legal}</strong></dd>	</dl></li>',i="";try{for(a in e)i+=this.loadSnippetData(t,e[a])}catch(n){return this.debug&&this.cLog.wr(d+": failed to load products into html template with error: "+n.description),!1}try{$("#bbyon_primary").append('<div id="bbyonRelProds"><h3>Related Products</h3><ul></ul></div>'),$("#bbyonRelProds ul").append(i)}catch(n){return this.debug&&this.cLog(d+": failed rendering related products list"),!1}},BBYVideo=function(e){this._accountId,this._videoPlayerId,this._videoPlayer,"undefined"!=typeof e&&null!==e?("undefined"!=typeof e.accountId&&null!==e.accountId&&(this._accountId=e.accountId),"undefined"!=typeof e.playerId&&null!==e.playerId&&(this._videoPlayerId=e.playerId)):(this._accountId=1937,this._videoPlayerId=1696);var t=jQuery.urlParam("lcplyrid",0);t=parseInt(t),isNaN(t)||0===t||(this._videoPlayerId=t)},BBYVideo.prototype.loadBanner=function(e){var t;"undefined"!=typeof e.lcBannerId&&"undefined"!=typeof e.bannerDomId&&(t=e,lc.settings={account_id:80},lc({dim3:"banner"}).isReady(function(){var e;e=lc(this).getBanner({banner_id:t.lcBannerId}),e.appendBannerTo({id:t.bannerDomId})}))},BBYVideo.prototype.loadBBYONWidget=function(e){var t,i,a,d,n="bbyon_video",o="<div id='lc_video' class='container'></div><p id='videoDescription'></p>",r="lc_video";$("#"+n).html(o),i=e.contentItem.ss_liveclicker_widgetId||"",""===i&&(i=e.wid),t=i,lc.account_id=this._accountId,"undefined"!=typeof e.accountId&&null!==e.accountId&&(lc.account_id=e.accountId),a=e,d=this,lc({widget_id:t,extra_options:{return_dimensions:"1",include_description:"true"},limit:3}).isReady(function(){var i,o,c,s,l=[],u=a.playOnLoad;if(("undefined"==typeof u||null===u)&&(u=!1),c=lc(this).getByWidgetId(t),"undefined"!=typeof c&&null!==c){o=c.dim1||{};for(s in o)o.hasOwnProperty(s)&&l.push(s);bbyonPage.relProductsFetch(l),i=c.getPlayer({player_id:d._videoPlayerId,width:e.videoWidth,height:e.videoHeight}),"undefined"!=typeof i&&null!==i&&(i.setSiteAndZone({site:a.site,zone:a.zone}),i.appendPlayerTo({id:r}).show(),$("#"+n).removeClass("hide"),$("#videoDescription").html(e.contentItem.ss_feature_desc),"undefined"!=typeof c.title&&null!==c.title&&$("#primaryTitle").html(c.title),"undefined"!=typeof c.description&&null!==c.description&&$("#videoDescription").html(c.description),u&&i.play())}})},BBYVideo.prototype.loadWidget=function(e){var t,i,a;"string"==typeof e.rootDomId&&"string"==typeof e.innerHtml&&"string"==typeof e.videoDomId&&$("#"+e.rootDomId).html(e.innerHtml),i=e.wid,lc.account_id=this._accountId,"undefined"!=typeof e.accountId&&null!==e.accountId&&(lc.account_id=e.accountId),t=e,a=this,lc({widget_id:i}).isReady(function(){var e,d,n=t.playOnLoad;("undefined"==typeof n||null===n)&&(n=!1),e=lc(this).getByWidgetId(i),d=e.getPlayer({player_id:a._videoPlayerId,width:t.videoWidth,height:t.videoHeight}),d.appendPlayerTo({id:t.videoDomId}).show(),$("#"+t.rootDomId).removeClass("hide"),$("#videoDescription").html(t.contentItem.ss_feature_desc),n&&d.play()})},BBYVideo.prototype.loadWidgetIdToDomId=function(e){var t,i;lc.account_id=this._accountId,"undefined"!=typeof e.accountId&&null!==e.accountId&&(lc.account_id=e.accountId),t=e,i=this,lc({widget_id:e.widgetId}).isReady(function(){var e,a=t.playOnLoad;("undefined"==typeof a||null===a)&&(a=!1),e=lc(this).getByWidgetId(t.widgetId),"undefined"!=typeof e&&null!==e&&(i._videoPlayer=e.getPlayer({player_id:i._videoPlayerId,width:t.width,height:t.height}),"undefined"!=typeof i._videoPlayer&&null!==i._videoPlayer&&(i._videoPlayer.appendPlayerTo({id:t.domId}).show(),a?i._videoPlayer.play():i._videoPlayer.sendEvent("stop")))})},BBYVideo.prototype.stopPlayer=function(){this._videoPlayer.sendEvent("stop")},BBYMedExpVideo=function(e){this._accountId,this._videoPlayerId,"undefined"!=typeof e&&null!==e?"undefined"!=typeof e.accountId&&null!==e.accountId&&(this._accountId=e.accountId):this._accountId=80,this._videoPlayerId=1313},BBYMedExpVideo.prototype.loadWidgetIdToDomId=function(e){var t,i;lc.account_id=this._accountId,"undefined"!=typeof e.accountId&&null!==e.accountId&&(lc.account_id=e.accountId),t=e,i=this,lc({widget_id:e.widgetId}).isReady(function(){var e,a,d=t.playOnLoad;("undefined"==typeof d||null===d)&&(d=!1),e=lc(this).getByWidgetId(t.widgetId),"undefined"!=typeof e&&null!==e&&(a=e.getPlayer({player_id:i._videoPlayerId,width:t.width,height:t.height}),"undefined"!=typeof a&&null!==a&&(a.appendPlayerTo({id:t.domId}).show(),d&&a.play()))})},jQuery(document).ready(function(){jQuery.ajaxSetup({error:function(){}}),bbyonPage=new BBYOnPage});