
   if(!dbugScripts("commerce",["commerce.tron.catdoor.js"])) {
   /*	commerce.tron.catdoor.js - packed	*/
       var StickyWinModal,StickyWinFxModal;(function(){var A=function(C){return{Extends:C,initialize:function(D){D=D||{};this.setModalOptions($merge(D.modalOptions||{},{onModalHide:function(){this.hide(false);}.bind(this)}));this.parent(D);},show:function(D){if($pick(D,true)){this.modalShow();this.win.getElements(this.modalOptions.elementsToHide).setStyle("opacity",1);}this.parent();},hide:function(D){if($pick(D,true)){this.modalHide();}this.parent($pick(D,true));}};};StickyWinModal=new Class(A(StickyWin));StickyWinModal.implement(new Modalizer);StickyWinFxModal=(typeof StickyWinFx!="undefined")?new Class(A(StickyWinFx)):$empty;try{StickyWinFxModal.implement(new Modalizer());}catch(B){}})();var PromoModal=new Class({Implements:[Options,Events],options:{promoPath:"/html/cnet/reviews/idleMsg.html",timeout:300000,activityReset:true,activityActions:["click","scroll","mousemove","keypress"],testSuccess:function(){return true;}},timer:false,initialize:function(A){this.setOptions(A);this.bound={timerReset:this.resetTimer.bind(this)};this.setTimer();return this;},getContent:function(){this.container=this.container||new Element("div",{id:"promoModal",styles:{display:"none",position:"absolute"}}).inject(document.body);new Request({url:this.options.promoPath,onSuccess:this.success.bind(this),onFailure:this.failure.bind(this),onComplete:this.complete.bind(this)}).send();},success:function(){if(this.options.testSuccess.run(arguments,this)){this.loadPromo.run(arguments,this);this.fireEvent("onSuccess",arguments);}else{this.failure.run(arguments);}},failure:function(){this.fireEvent("onFailure",arguments);},complete:function(){this.fireEvent("onComplete",arguments);},loadPromo:function(A){if(A){this.container.set("html",A);this.promo=new StickyWinModal({content:this.container.get("html"),closeClassName:"closeModal",allowMultiple:false,onClose:function(){this.fireEvent("onClose");}.bind(this)});this.fireEvent("onDisplay");}else{dbug.log("Response text failure");}if(this.options.activityReset&&this.options.activityActions.length){this.options.activityActions.each(function(B){window.removeEvent(B,this.bound.timerReset);},this);}},setTimer:function(){this.startTimer();if(this.options.activityReset&&this.options.activityActions.length){this.options.activityActions.each(function(A){window.addEvent(A,this.bound.timerReset);},this);}},startTimer:function(){this.timer=this.getContent.delay(this.options.timeout,this);},resetTimer:function(){if(this.timer){$clear(this.timer);this.startTimer();}}});PromoModal.GlobalModal=new Class({Extends:PromoModal,loadPromo:function(A){if(A){this.container.set("html",A);this.promo=new GlobalModal({content:this.container.get("html")});this.promo.show();}else{dbug.log("Response text failure");}if(this.options.activityReset&&this.options.activityActions.length){this.options.activityActions.each(function(B){window.removeEvent(B,this.bound.timerReset);},this);}}});var ThumbScroller=new Class({Extends:Fx.Scroll,scrollOptions:{thumbs:".box",axis:"x",thumbContainer:null,nav:{},startIndex:0},initialize:function(A,B){if($(A).retrieve("thumbscroller")){return false;}this.parent(A,$merge(this.scrollOptions,B));this.element.store("thumbscroller",this);this.element.setStyle("overflow","hidden");this.computeDimensions();this.initNav();this.toIndex(this.options.startIndex);this.lastScroll=null;this.fireEvent("onInitialize");return this;},computeDimensions:function(){this.thumbs=this.element.getElements(this.options.thumbs);this.setParentSize();this.positions=this.getLocations();return this;},isAtEnd:function(A){A=A||this.getRange();return(A[A.length-1].index==this.thumbs.length-1&&A[A.length-1].type!="partial");},isAtStart:function(A){A=A||this.getRange();return(A[0].index==0&&A[0].type!="partial");},getLocations:function(){return this.thumbs.map(function(B){var C=B.getComputedSize()[this.getDir("total")];var A=B.getPosition(B.getParent())[this.getDir("xy")];return{size:C,start:A,end:C+A};},this);},initNav:function(){$$(this.options.nav.next).addEvent("click",this.toNextScreen.bind(this));$$(this.options.nav.previous).addEvent("click",this.toPreviousScreen.bind(this));$$(this.options.nav.start).addEvent("click",this.toStart.bind(this));$$(this.options.nav.end).addEvent("click",this.toEnd.bind(this));},getDir:function(A){switch(A){case"total":if(this.options.axis=="y"){return"totalHeight";}return"totalWidth";case"dir":if(this.options.axis=="y"){return"height";}return"width";case"xy":default:if(this.options.axis=="y"){return"y";}return"x";}},getStart:function(A){if(this.options.axis=="y"){return[0,A];}return[A,0];},getStartPx:function(A){if(!A){return 0;}return this.positions[A].start-(this.positions[A].start-this.positions[A-1].end);},setParentSize:function(){var A=(this.options.thumbContainer)?this.element.getElement(this.options.thumbContainer):this.element.getElement(this.options.thumbs).getParent();var B=0;$each(this.thumbs,function(C){B+=C.getComputedSize({styles:["padding","border","margin"]})[this.getDir("total")];},this);A.setStyle(this.getDir("dir"),B);},getRange:function(E){E=E||this.element.getScroll()[this.getDir("xy")];var D=this.element.getComputedSize({styles:["padding"]})[this.getDir("total")];var C=[];for(var A=0;A<this.positions.length;A++){var B=this.withinRange(this.positions[A],E,E+D);if(B){C.push($merge(B,{index:A}));if(B.where=="end"){break;}}}return C;},withinRange:function(C,B,A){if(C.end>B&&C.end<=A){if(C.start>=B){return{type:"full"};}else{return{type:"partial",where:"start"};}}else{if(C.start>=B&&C.start<A){return{type:"partial",where:"end"};}else{if(C.start<B&&C.end>A){return{type:"full"};}}}return false;},toNextScreen:function(){var A=this.getRange();if(A.getLast().type=="partial"&&A.length>1){this.start.run(this.getStart(this.getStartPx(A.getLast().index)),this);}else{if($(this.thumbs[A.getLast().index+1])){this.start.run(this.getStart(this.getStartPx(A.getLast().index+1)),this);}else{this.toEnd();}}this.lastScroll="next";},toPreviousScreen:function(){var A=this.getRange();var C=(A[0].type=="partial"&&A.length>1)?A[0].index:A[0].index-1;if(!this.positions[C]){this.toStart();return ;}var B=this.positions[C].end-this.element.getComputedSize({styles:["padding"]})[this.getDir("total")];var E=this.getRange(B);var D=(E[0].type=="partial"&&E.length>1)?E[0].index+1:E[0].index;this.start.run(this.getStart(this.getStartPx(D)),this);this.lastScroll="previous";},toIndex:function(A){this.start.run(this.getStart(this.getStartPx(parseInt(A))),this);},toStart:function(){if(this.options.axis=="y"){this.toTop();}else{this.toLeft();}},toEnd:function(){if(this.options.axis=="y"){this.toBottom();}else{this.toRight();}}});var VideoScroller=new Class({Extends:ThumbScroller,options:{displayOverlay:false,preRollAd:false,adInterval:0,getAdditionalVids:false},initialize:function(B,A){this.parent(B,$merge(this.options,A));this.numPlayed=0;this.playAd=false;this.lastIndex=this.options.startIndex;this.addEvent("onComplete",function(){var C=this.getRange();this.lastIndex=this.currIndex||0;this.currIndex=C.filter(function(D){return D.type=="full";})[0].index;this.setCurrentVideo();}.bind(this));if(this.options.displayOverlay){this.addOverlay(this.thumbs);}$$(this.options.nav.next,this.options.nav.previous).addEvent("click",this.destroyPopup.bind(this));},setNavStyle:function(A){(this.isAtStart(A))?$$(this.options.nav.previous).addClass("inactiveLeft"):$$(this.options.nav.previous).removeClass("inactiveLeft");(this.isAtEnd(A))?$$(this.options.nav.next).addClass("inactiveRight"):$$(this.options.nav.next).removeClass("inactiveRight");},setCurrentVideo:function(){this.thumbs[this.lastIndex].morph({opacity:0.25});this.thumbs[this.currIndex].morph({opacity:1,duration:"long"});},addOverlay:function(A){A.each(function(C,B){if(!C.getElement(".overlay")){new Element("div",{"class":"overlay"}).inject(C.getElement(".videoStill"),"after").addEvent("click",function(){this.displayPlayer(C,B);}.bind(this));new Element("a",{"class":"playBtn"}).inject(C.getElement(".overlay"),"after").addEvent("click",function(){this.displayPlayer(C,B);}.bind(this));}}.bind(this));},writePlayer:function(A){var C=A.get("videoId");try{loadUniversalPlayer({parentElement:A.getElement(".stickyVideo"),playerType:"small",lumiereQueryType:"id",lumiereQueryValue:C,firstVideoPostAd:false,preRollAd:this.playAd,contentPostRollAd:false,hideTabs:true,initObject:window,initAction:false,autoPlay:true});this.playAd=false;}catch(B){}},displayPlayer:function(C,A){if(this.currIndex==A){this.numPlayed+=1;if(this.numPlayed==1&&this.options.preRollAd==true){this.playAd=true;this.numPlayed=0;this.options.preRollAd=false;}if(this.numPlayed==this.options.adInterval&&this.options.adInterval!=0){this.playAd=true;this.numPlayed=0;}var B=new StickyWin({width:364,height:280,position:"upperLeft",className:"stickyVideo",relativeTo:C,inject:{target:C},onDisplay:this.writePlayer.delay(10,this,C),useIframeShim:false},this);}else{this.destroyPopup();(this.currIndex<A)?this.toNextScreen():this.toPreviousScreen();}},destroyPopup:function(){if(this.thumbs[this.currIndex].getElement(".stickyVideo")){this.thumbs[this.currIndex].getElement(".stickyVideo").destroy();}if(this.thumbs[this.currIndex].getElement(".iframeShim")){this.thumbs[this.currIndex].getElement(".iframeShim").destroy();}}});var ContentUpdater=new Class({Extends:Request,options:{url:window.location.href,method:"get"},handlers:{},initialize:function(C,A,B){if(!C){return false;}this.addElemHandlers(A);this.parent(B);this.options.data=$merge(this.options.data||{},{activityname:C,nomesh:true});return this;},addElemHandlers:function(A){$each(A||{},this.addHandler,this);},addHandler:function(B,A){if(!this.handlers[A]){this.handlers[A]=new this.ElementHandler(A,this,B);}},send:function(A){if(!this.check(arguments.callee,A)){return this;}$each(this.handlers,function(B){B.fireEvent("onRequest");});return this.parent(A);},success:function(F,C){var A=C.getElementsByTagName("pageElement"),E=0,B,D;for(E;E<A.length;E++){B=A[E].getElementsByTagName("name")[0].firstChild.nodeValue;D=A[E].getElementsByTagName("html")[0].firstChild.nodeValue;if(!this.handlers[B]){this.addHandler({},B);}this.handlers[B].updateElem(D);B=D=null;}this.parent(F,C);},failure:function(){$each(this.handlers,function(A){A.fireEvent("onComplete").fireEvent("onFailure");});this.parent();},ElementHandler:new Class({Implements:[Options,Events],options:{},initialize:function(B,C,A){this.options.element="pe-"+B;this.setOptions(A);this.name=B;this.updater=C;this.element=$(this.options.element);return this;},updateElem:function(B){var A=new Element("div",{html:B});this.fireEvent("onComplete",[A,B]);if(!this.element){dbug.log("Element %o not found.",this.name);this.fireEvent("onFailure",B);return false;}switch(this.options.insert){case"prepend":A.inject(this.element,"top");break;case"append":A.inject(this.element);break;default:this.element.empty();A.inject(this.element);}try{this.fireEvent("onSuccess",[A,B]);}catch(C){dbug.log("ContentUpdater onSuccess error for %o: %o",this.name,C);}A.getChildren().inject(A,"before");A.dispose();}})});window.addEvent("domready",function(){var C=function(D){var E=D.getParent("li").getElement("ul.data");if(E){D.store("tip:text",E.getParent().get("html"));}else{D.store("tip:text","Product summary not available");}};$$(".edRate a.toolTipElement").each(C);if($("scrollNav")){new VideoScroller("thumbContainer",{nav:{next:"#scrollNav .next",previous:"#scrollNav .previous"},offset:{x:-103},displayOverlay:true,preRollAd:true,adInterval:1});}if($$(".imageGalleries a").length){$$(".imageGalleries a").each(function(D){new Element("div",{"class":"imageOverlay",html:D.getElement("img").get("alt")}).inject(D);D.addEvents({mouseenter:function(){D.getElement(".imageOverlay").setStyle("display","block");},mouseleave:function(){D.getElement(".imageOverlay").setStyle("display","none");}});});}if((PageVars.get("siteId","number")==7)&&[3504].contains(PageVars.get("nodeId","number"))){new PromoModal({promoPath:PageVars.getPath({pageType:"2798",assetId:"0"})+"?byNode=true&findNearest=true&type=backdoorOverlay&nomesh",timeout:360000});}if((PageVars.get("siteId","number")==7)&&[3121,3935,3118].contains(PageVars.get("nodeId","number"))){if($("pe-sponsoredEditorsBingo-riaTile")){if(!$("madisonBingoMfrAttrValueId")){if($("pe-sponsoredEditorsBingo-riaTile")){$("productEditorSponsored_1_").setStyle("display","block");$("topFeaturesTabs").getElements(".dBlingo").setStyle("display","block");$("pe-sponsoredEditorsBingo-riaTile").getParent().setStyle("display","none");}}else{var A=function(E){var D=E.getElements("a.toolTipElement");D.each(function(F){C(F);F.addClass("cnetTip");cnetToolTips.attach(F);});};var B=PageVars.get("nodeId");if(B==3935){B=3121;}new ContentUpdater("doorsponsoredbingo",{"sponsoredEditorsBingo-riaTile":{onSuccess:function(){A;$("topFeaturesTabs").getElement(".doorBingoBox").addClass("bingoBlingo");}}},{url:"4623-"+B+"_"+PageVars.get("siteId")+"-0.html",data:{madisonBingoMfrAttrValueId:$("madisonBingoMfrAttrValueId").get("value"),excludedPids:$("topFeaturesTabs").getElements("input[name=id]").get("value").toString(),editorsBingoUnitType:"1",popBingoUnitType:"2"},onFailure:function(){if($("pe-sponsoredEditorsBingo-riaTile")){$("productEditorSponsored_1_").setStyle("display","block");$("topFeaturesTabs").getElements(".dBlingo").setStyle("display","block");$("pe-sponsoredEditorsBingo-riaTile").getParent().setStyle("display","none");}},timeout:4000}).send();}}}});
   }
       