
   if(!dbugScripts("download",["download.tron.title.detail2.js"])) {
   /*	download.tron.title.detail2.js - packed	*/
       (function(){var A=Fx.prototype.initialize;Fx.prototype.initialize=function(B){A.call(this,B);var C=this.options.transition;if(typeof C=="string"&&(C=C.split(":"))){var D=Fx.Transitions;D=D[C[0]]||D[C[0].capitalize()];if(C[1]){D=D["ease"+C[1].capitalize()+(C[2]?C[2].capitalize():"")];}this.options.transition=D;}};})();Fx.Transition=function(B,A){A=$splat(A);return $extend(B,{easeIn:function(C){return B(C,A);},easeOut:function(C){return 1-B(1-C,A);},easeInOut:function(C){return(C<=0.5)?B(2*C,A)/2:(2-B(2*(1-C),A))/2;}});};Fx.Transitions=new Hash({linear:$arguments(0)});Fx.Transitions.extend=function(A){for(var B in A){Fx.Transitions[B]=new Fx.Transition(A[B]);}};Fx.Transitions.extend({Pow:function(B,A){return Math.pow(B,A[0]||6);},Expo:function(A){return Math.pow(2,8*(A-1));},Circ:function(A){return 1-Math.sin(Math.acos(A));},Sine:function(A){return 1-Math.sin((1-A)*Math.PI/2);},Back:function(B,A){A=A[0]||1.618;return Math.pow(B,2)*((A+1)*B-A);},Bounce:function(D){var C;for(var B=0,A=1;1;B+=A,A/=2){if(D>=(7-4*B)/11){C=-Math.pow((11-6*B-11*D)/4,2)+A*A;break;}}return C;},Elastic:function(B,A){return Math.pow(2,10*--B)*Math.cos(20*B*Math.PI*(A[0]||1)/3);}});["Quad","Cubic","Quart","Quint"].each(function(B,A){Fx.Transitions[B]=new Fx.Transition(function(C){return Math.pow(C,[A+2]);});});var Modalizer=new Class({defaultModalStyle:{display:"block",position:"fixed",top:0,left:0,"z-index":5000,"background-color":"#333",opacity:0.8},setModalOptions:function(A){this.modalOptions=$merge({width:(window.getScrollSize().x+300),height:(window.getScrollSize().y+300),elementsToHide:"select",hideOnClick:true,modalStyle:{},updateOnResize:true,layerId:"modalOverlay",onModalHide:$empty,onModalShow:$empty},this.modalOptions,A);return this;},toElement:function(){if(!this.modalOptions.layerId){this.setModalOptions();}return $(this.modalOptions.layerId)||new Element("div",{id:this.modalOptions.layerId}).inject(document.body);},resize:function(){if($(this)){$(this).setStyles({width:(window.getScrollSize().x+300),height:(window.getScrollSize().y+300)});}},setModalStyle:function(A){this.modalOptions.modalStyle=A;this.modalStyle=$merge(this.defaultModalStyle,{width:this.modalOptions.width,height:this.modalOptions.height},A);if($(this)){$(this).setStyles(this.modalStyle);}return(this.modalStyle);},modalShow:function(A){this.setModalOptions(A);$(this).setStyles(this.setModalStyle(this.modalOptions.modalStyle));if(Browser.Engine.trident4){$(this).setStyle("position","absolute");}$(this).removeEvents("click").addEvent("click",function(){this.modalHide(this.modalOptions.hideOnClick);}.bind(this));this.bound=this.bound||{};if(!this.bound.resize&&this.modalOptions.updateOnResize){this.bound.resize=this.resize.bind(this);window.addEvent("resize",this.bound.resize);}if($type(this.modalOptions.onModalShow)=="function"){this.modalOptions.onModalShow();}this.togglePopThroughElements(0);$(this).setStyle("display","block");return this;},modalHide:function(A){if(A===false){return false;}this.togglePopThroughElements(1);if($type(this.modalOptions.onModalHide)=="function"){this.modalOptions.onModalHide();}$(this).setStyle("display","none");if(this.modalOptions.updateOnResize){this.bound=this.bound||{};if(!this.bound.resize){this.bound.resize=this.resize.bind(this);}window.removeEvent("resize",this.bound.resize);}return this;},togglePopThroughElements:function(A){if(Browser.Engine.trident4||(Browser.Engine.gecko&&Browser.Platform.mac)){$$(this.modalOptions.elementsToHide).each(function(B){B.setStyle("opacity",A);});}}});var StickyWinFx=new Class({Extends:StickyWin,options:{fade:true,fadeDuration:150,draggable:false,dragOptions:{},dragHandleSelector:".dragHandle",resizable:false,resizeOptions:{},resizeHandleSelector:""},setContent:function(A){this.parent(A);if(this.options.draggable){this.makeDraggable();}if(this.options.resizable){this.makeResizable();}return this;},hideWin:function(){if(this.options.fade){this.fade(0);}else{this.parent();}},showWin:function(){if(this.options.fade){this.fade(1);}else{this.parent();}},fade:function(B){if(!this.fadeFx){this.win.setStyles({opacity:0,display:"block"});var A={property:"opacity",duration:this.options.fadeDuration};if(this.options.fadeTransition){A.transition=this.options.fadeTransition;}this.fadeFx=new Fx.Tween(this.win,A);}if(B>0){this.win.setStyle("display","block");this.position();}this.fadeFx.clearChain();this.fadeFx.start(B).chain(function(){if(B==0){this.win.setStyle("display","none");}}.bind(this));return this;},makeDraggable:function(){dbug.log("you must include Drag.js, cannot make draggable");},makeResizable:function(){dbug.log("you must include Drag.js, cannot make resizable");}});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 FormRecycler={Base:new Class({Implements:[Options,Events],options:{clone:false,findLocalData:$lambda({}),resetOnMove:true,resetOnHide:false},initialize:function(B,A){this.setOptions(A);this.shell=(this.options.clone)?$(B).clone():$(B);this.form=(this.shell.get("tag")=="form")?this.shell:this.shell.getElement("form");if(!this.form){return null;}this.findLocalData=this.options.findLocalData;this.form.store("mobileForm",this);this.fireEvent("onInitialize");return this;},relocateForm:function(A){this.removeLocalParams();if(this.options.resetOnMove){this.form.reset();this.fireEvent("onReset");}this.setLocalData(this.findLocalData(A));this.fireEvent("onRelocate",A);},removeLocalParams:function(){this.form.getElements("input").each(function(A){if(A.getProperty("local")){A.dispose();}});},setLocalData:function(A){if(!A||$type(A)!="object"){return null;}$each(A,function(C,B){new Element("input",{type:"hidden",name:B,value:C,local:"true"}).inject(this.form);},this);},move:function(A){A=$(A);if(!A){return false;}this.relocateForm(A);return A;},toElement:function(){return this.shell;}})};$extend(FormRecycler,{Inline:new Class({Extends:FormRecycler.Base,Implements:Chain,options:{hideFormsInParent:true,revealOptions:{},firstParent:null},initialize:function(B,A){A=$merge(this.options,A||{});this.parent(B,A);if(!this.form){return null;}this.form.store("mobileForm",this);this.currentParent=$(this.options.firstParent)||null;this.shell.set("reveal",$merge(this.options.revealOptions,{onComplete:this.callChain.bind(this)}));return this;},relocateForm:function(A){this.parent(A);A.adopt(this.shell);this.currentParent=A;this.callChain();},move:function(A){this.clearChain();A=$(A);if(!A){return ;}if(this.currentParent==A){if(this.options.hideFormsInParent){this.hideOthers();}this.shell.get("reveal").toggle();return ;}this.chain(this.relocateForm.pass(A,this),this.show.bind(this));this.hide();},show:function(){if(this.shell.get("reveal").hiding){this.show.delay(10,this);return ;}if(this.options.hideFormsInParent){this.hideOthers();}this.shell.reveal();this.fireEvent("onShow");},hideOthers:function(){this.currentParent.getElements("form").each(function(A){try{if(A!=this.form){A.retrieve("mobileForm").toElement().dissolve();}}catch(B){dbug.log(B);}});},hide:function(){this.shell.dissolve();this.fireEvent("onHide");}}),GlobalModal:new Class({Extends:FormRecycler.Base,options:{modalOptions:{}},initialize:function(B,A){A=$merge(this.options,A||{});this.parent(B,A);try{this.modal=new GlobalModal($merge(this.options.modalOptions||{},{content:this.shell}));}catch(C){dbug.log("Modal failure: %o",C);}},move:function(A){A=this.parent(A);if(!A){return false;}this.show();},show:function(){this.modal.show();this.fireEvent("onShow");},hide:function(){this.modal.hide();this.fireEvent("onHide");}})});var TextFieldCounter=new Class({Implements:[Options,Events],options:{countUpdateSelector:".cnt",fieldSelector:"textarea",commonParentSelector:"dd",errorClass:"validation-advice",findCounter:function(A){return A.getParent(this.options.commonParentSelector).getElement(this.options.countUpdateSelector);}},initialize:function(B,A){this.setOptions(A);this.form=$(B);this.findCounter=this.options.findCounter;this.form.getElements(this.options.fieldSelector).each(this.setFieldValidation.bind(this));this.fireEvent("onInit");},setFieldValidation:function(D){var B=D.get("validatorProps");if(!B){return ;}if(window.MooTools&&MooTools.version=="1.2dev"){if($type(B)!="object"){B=JSON.decode(B);}else{if(typeOf(B)!="object"){B=JSON.decode(B);}}}if(!B&&!B.maxLength){return ;}try{var A=this.findCounter(D);}catch(C){var A=null;}if(!A){return ;}D.addEvent("keyup",function(){var E=D.value.trim().length;A.set("text",E);if((E<(B.minLength||0))||(E>B.maxLength)){A.addClass(this.options.errorClass);}else{A.removeClass(this.options.errorClass);}}.bind(this));},resetCounter:function(B){var A=this.findCounter(B);if(!A){return ;}A.set("text","0").removeClass(this.options.errorClass);},resetAllCounters:function(){this.form.getElements(this.options.fieldSelector).each(this.resetCounter.bind(this));}});var CommentForm=new Class({Extends:FormRecycler.Inline,commentOptions:{submitElems:false,closeElems:false,useValidator:true,validatorOptions:{},useTextFieldCounter:true,textFieldCounterOptions:{}},initialize:function(B,A){this.parent(B,$merge(this.commentOptions,A));try{this.validator=(this.options.useValidator)?new FormValidator(this.form,this.options.validatorOptions):false;}catch(C){dbug.log("Validator addition failed: %o",C);this.validator=false;}this.waiter=false;this.form.set("send",{onRequest:function(){if(!this.waiter){this.waiter=new Waiter(this.form);}this.waiter.start();}.bind(this),onComplete:function(){if(this.waiter){this.waiter.stop();}}.bind(this),onSuccess:this.handlePostResponse.bind(this),onFailure:this.handleFailure.bind(this)});if(this.options.useTextFieldCounter&&window.TextFieldCounter){this.textCounters=new TextFieldCounter(this.form,this.options.textFieldCounterOptions);}if(this.options.submitElems){this.form.getElements(this.options.submitElems).addEvent("click",this.doSubmit.bind(this));}if(this.options.closeElems){this.form.getElements(this.options.closeElems).addEvent("click",this.hide.bind(this));}this.form.addEvent("submit",function(D){D.stop();this.doSubmit();}.bind(this));},doSubmit:function(){if(!UserVars.isLoggedIn()){return false;}this.form.getElements("input[type=text], textarea").each(function(A){A.set("value",A.get("value").trim());});if(this.validator&&!this.validator.validate()){return false;}this.form.send();},hide:function(){this.parent();if(this.validator){this.chain(function(){this.validator.reset();if(this.options.useTextFieldCounter){this.textCounters.resetAllCounters();}this.fireEvent("onReset");this.callChain();}.bind(this));}},handlePostResponse:function(F){var E=JSON.decode(F);this.hide();this.thanks=new Element("div",{id:"thankYou","class":"userSubmit userReviewForm thankyou"}).inject(this.shell,"before");if(E.responseMessages){new Element("h4",{html:E.responseMessages[0].replace(", !",", "+UserVars.getDisplayName()+"!")}).inject(this.thanks);if(E.responseMessages.length>1){for(var D=1;D<E.responseMessages.length;D++){new Element("span",{"class":"pleaseSubmit",html:E.responseMessages[D]}).inject(this.thanks);}}}if(E.links){var C=new Element("ul",{"class":"viewLinks"}).inject(this.thanks);var B=function(H,G){C.adopt(new Element("li").adopt(new Element("a",{href:G,text:H,"class":"readMoreLinks"})));};if(E.links.READ_YOUR_REVIEW){this.reviewLink=E.links.READ_YOUR_REVIEW;B("Read your review",this.reviewLink);}if(E.links.READ_YOUR_UPDATE){B("Read your update",E.links.READ_YOUR_UPDATE);}if(E.links.READ_YOUR_REPLY){this.replyLink=E.links.READ_YOUR_REPLY;B("Read your reply",this.replyLink);}if(E.links.READ_MORE_USER_REVIEWS){B("Read more user reviews",E.links.READ_MORE_USER_REVIEWS);}if(E.links.BACK_TO_PRODUCT_REVIEW){this.overviewLink=E.links.BACK_TO_PRODUCT_REVIEW;B("Back to product review",this.overviewLink);}}var A=new Element("p",{"class":"closeButton"}).inject(this.thanks);A.adopt(new Element("a",{"class":"flexButton black",text:"Close",events:{click:function(){this.thanks.dissolve();}.bind(this)}}));this.fireEvent("onCommentSuccess",arguments);},handleFailure:function(){this.writeMessage('This action was not completed. Please try again, or notify us at our <a href="http://cnet.custhelp.com/">Help Center</a>.');},writeMessage:function(A){new Element("div",{html:A}).inject(this.shell,"before");}});var HelpfulVote=new Class({launchElem:null,Implements:[Options],options:{responseKey:"response",responseSuccess:1},initialize:function(C,A){C.stop();this.setOptions(A);var B=$(C.target);this.launchElem=(B.getProperty("href"))?B:B.getParent("a[href]");if(this.errorDiv){this.errorDiv.empty();}if(!CURS.Manager.checkLogin({loginHed:"Log in to CNET to vote for this review",registerHed:"Join CNET to vote for this review",appId:12,nextAction:this.makeRequest.bind(this),cval:"helpful"})){return false;}},makeRequest:function(){new Request({url:this.launchElem.get("href"),method:"get",onComplete:function(A){A=JSON.decode(A);this[(A&&A.status==this.options.responseSuccess)?"success":"failure"](A);}.bind(this)}).send();new Jlogger({tag:"submitHelpful"}).ping();},success:function(A){if(A[this.options.responseKey]){var B=A[this.options.responseKey];if($type(B)=="array"){B=B[0];}this.findParent().set("html",B);}},failure:function(A){if(A&&A.errors){$each(A.errors,function(B){this.getErrorDiv().appendText(B.message);}.bind(this));}else{this.getErrorDiv().set("html",'We\'re sorry, but an error has occurred. Please try again or contact our <a href="http://cnet.custhelp.com/" target="_new">Help Center</a>.');}},findParent:function(){return(this.launchElem.hasClass("rateUR"))?this.launchElem:this.launchElem.getParent(".rateUR");},getErrorDiv:function(){if(!this.errorDiv){this.errorDiv=this.findParent().getElement("div.error")||new Element("div",{"class":"error"}).inject(this.findParent(),"top");}return this.errorDiv;}});var StarPower=new Class({Extends:Tips,options:{timeOut:700,maxTitleChars:50,maxOpacity:0.9,offsets:{x:-14,y:24},starTips:{"0.5":"Abysmal::0.5 star out of 5","1":"Terrible::1 star out of 5","1.5":"Poor::1.5 stars out of 5","2":"Mediocre::2 stars out of 5","2.5":"OK::2.5 stars out of 5","3":"Good::3 stars out of 5","3.5":"Very good::3.5 stars out of 5","4":"Excellent::4 stars out of 5","4.5":"Outstanding::4.5 stars out of 5","5":"Spectacular::5 stars out of 5"},clickToRateString:"Click to rate this product",removeUserRating:true,userRatingDuration:3000,useHalfStars:true,onRate:function(A){}},initialize:function(C,A){this.elements=$$(C);if(A.starTips){this.options.starTips=A.starTips;}if($defined(A.useHalfStars)){this.options.useHalfStars=A.useHalfStars;}var B=new MobileChecker();this.isTouchy=B.isTouch();if(this.isTouchy){this.bound={click:this.hoverStars.bind(this)};}else{this.bound={mousemove:this.hoverStars.bind(this),mouseleave:this.hoverStars.bind(this),click:this.hoverStars.bind(this)};}this.parent(this.elements,A);if(this.options.className){this.tip.set("class",this.options.className);}},attach:function(A){A.each(function(B){B.store("defaultClass",B.get("class"));B.addEvents(this.bound);},this);},detach:function(A){A.each(function(B){B.removeEvents(this.bound);},this);},getTarget:function(B){if(this.elements.contains(B)){return B;}var A;this.elements.each(function(C){if(C.hasChild(B)){A=C;}});return A;},hoverStars:function(F){var C=this.getTarget(F.target);switch(F.type){case"mousemove":var A=this.convert(C,this.calc(F),true).toString();if(A=="0"||A>"5"){break;}var E=this.options.starTips[A];C.store("tip:title",E.split("::")[0]);C.store("tip:text",this.options.clickToRateString+" "+E.split("::")[1]);this.elementEnter(F,C);C.set("class",C.get("class").replace(/userRate medium s\d\w?/,this.convert(C,this.calc(F))));C.addClass("userStars");break;case"mouseout":this.elementLeave.bindWithEvent(this,C)(F);C.set("class",C.retrieve("defaultClass"));break;case"click":var B=this.convert(C,this.calc(F),true);var D=this.convert(C,this.calc(F));C.store("rating",B);C.store("defaultClass",C.get("class"));if(this.isTouchy){this.addUserRating(C,F);}this.fireEvent("onRate",[B,D]);break;}},show:function(){this.fireEvent("onShow",this.tip);},hide:function(){this.fireEvent("onHide",this.tip);},addUserRating:function(C,E){var A=this.options.starTips[this.convert(C,this.calc(E),true).toString()].split("::");var B=C.getParent();var D=(!B.getElement(".user_rating"))?this.injectUserRating(B):B.getElement(".user_rating");this.updateUserRating(D,A);},injectUserRating:function(B){var D=new Element("div",{"class":"user_rating",style:"position: relative; left: 105px; top: -17px;height:0px;"});var A=new Element("span",{"class":"user_title_rating"});var C=new Element("span",{"class":"user_text_rating"});D.grab(A);D.grab(C);B.grab(D);return D;},updateUserRating:function(C,A){C.getElement(".user_title_rating").set("html",A[0]);C.getElement(".user_text_rating").set("html"," "+A[1]);if(this.options.removeUserRating){if(this.ur_timer){clearTimeout(this.ur_timer);}var D=new Fx.Tween(C,{onComplete:function(){C.destroy();}.bind(this)});var B=function(){D.start("opacity",0);}.bind(this);this.ur_timer=B.delay(this.options.userRatingDuration,this);}},calc:function(B){var C=$(B.target).getPosition().x;var A=B.page.x-C;return A;},convert:function(C,F,E){var G="userRate medium s";var B=Math.round(C.getSize().x/5);var A=(F/B).toInt();var D=F/B-A;if(this.options.useHalfStars){if(D>0.5){A++;}G+=A;if(D<=0.5){G+="h";A+=0.5;}}else{if(D){A++;}G+=A;}return E?A:G;}});if(window.HandangoCart){HandangoCart.CartAdder=new Class({Implements:Options,options:{addClassName:"handangoAddToCart",cookieName:"handangoCart",cookieDuration:30,cookieDomain:window.location.hostname},initialize:function(A){this.setOptions(A);this.setLinks();},setLinks:function(){$$("."+this.options.addClassName).addEvent("click",this.addCart.bind(this));},addCart:function(A){this.addCookie();},addCookie:function(){Cookie.set(HandangoCart.cookieName,"true",{path:"/",duration:this.options.cookieDuration});}});}else{var HandangoCart={};HandangoCart.CartAdder=new Class({});}if(!UserLists){var UserLists={};UserLists.Manager={listForms:new Hash({}),getUserListModal:function(B,A){CURS.Manager.checkLogin({loginHed:"Log in to CNET to add this product to a list",registerHed:"Join CNET to add this product to a list",appId:222,cval:"userlist",nextAction:function(){if(B=="AddToList"||B=="CreateList"){UserLists.Manager.initListAssetData(A);}UserLists.Manager.getUserListFiles(B);}.bind(UserLists)});},getUserListFiles:function(A){var B;if(dbug.enabled||(Browser.qs&&Browser.qs.jsdebug)){if(CBSi.jsdebug){if(CBSi.jsdebug=="true"){B="http://publish.cnet.com:8100/html/rb/js/tron/techtracker/techtracker.tron.userlists.process.js";}else{B="http://publish.cnet.com:8100/html/rb/js/~dev/"+CBSi.jsdebug+"/techtracker/techtracker.tron.userlists.process.js";}}else{B="http://i.i.com.com/cnwk.1d/html/rb/js/tron/techtracker/techtracker.tron.userlists.process.compressed.js";}}else{B="http://i.i.com.com/cnwk.1d/html/rb/js/tron/techtracker/techtracker.tron.userlists.process.compressed.js";}if(!UserLists.Process){new Asset.javascript(B,{id:"userListsProcess",onload:(!A)?function(){}:this.getUserListModalHtml.bind(this,A)});}else{if(A){this.getUserListModalHtml(A);}}},startProcess:function(A){dbug.log("start user list process");if(UserLists.Process&&$("userListShell")){UserLists.Process.showUserListForm(A);}},getUserListModalHtml:function(B){var A=new Hash();UserLists.UserListData.listItemsToAdd.each(function(C){if(C.assetTypeId==2){A.extend({techProductId:true});}else{if(C.assetTypeId==24){A.extend({softwareProductId:true});}}});if(!document.body.getElement(".globalModal.userList")){new Element("div",{id:"userListShell",styles:{display:"none"}}).inject(document.body);new Request({url:"/8690-4_"+PageVars.get("siteId")+"-0.html?nomesh&"+$time(),data:A,method:"get",onSuccess:function(C){$("userListShell").set("html",C);if($("userHasLists")){UserLists.Manager.userHasLists=true;}UserLists.Process.showUserListForm(B);}.bind(UserLists)}).send();}else{UserLists.Process.showUserListForm(B);}},initFormValidator:function(A){UserLists.Manager.listForms[A].validator=new UserListFormValidator($(A).getElement("form"),{evaluateFieldsOnBlur:false,evaluateFieldsOnChange:false,evaluateOnSubmit:false,errorPrefix:""});},initListAssetData:function(A){UserLists.UserListData.listItemsToAdd.empty();UserLists.Manager.cvalTarget=(!$$(A).getParent(".contentTools"))?"button":"link";dbug.log(A);if(!A.length){A=[A];}A.each(function(C){var B={assetId:C.getProperty("productid").toInt(),assetTypeId:C.getProperty("producttype").toInt(),name:C.getProperty("productname"),image:C.getProperty("productimage")};dbug.log(B);if(C.getProperty("productSetId")){B.productSetId=C.getProperty("productsetid").toInt();}UserLists.UserListData.listItemsToAdd.push(B);});},pingDW:function(A,B,C){new Jlogger({asId:(UserLists.UserListData.listItemsToAdd.length>0)?UserLists.UserListData.listItemsToAdd[0].assetId:PageVars.get("assetId"),tag:A,element:false,ctype:B,cval:C}).ping();}};UserLists.ListItem={getItemAssetId:function(A){if(UserLists.ListItem.assetId){return UserLists.ListItem.assetId;}else{if(A){return A;}}},getItemAssetTypeId:function(A){if(UserLists.ListItem.assetTypeId){return UserLists.ListItem.assetTypeId;}else{if(A){return A;}}},getItemName:function(A){if(UserLists.ListItem.assetName){return UserLists.ListItem.assetName;}else{if(A){return A;}}},getDownloadProductSetId:function(A){if(UserLists.ListItem.productSetId){return UserLists.ListItem.productSetId;}else{if(A){return A;}}},getItemImage:function(A){if(UserLists.ListItem.assetImage){return UserLists.ListItem.assetImage;}else{if(A){return A;}}}};UserLists.UserListData={userListDataObj:new Hash(),addToListLaunchTarget:new Hash(),listItemsToAdd:[],listsAddedTo:[],addToDataObj:function(B,A){UserLists.UserListData.userListDataObj.extend({field:decodeURIComponent(A)});},getListId:function(){if(PageVars.get("pageType")==3460){if(PageVars.get("assetId")!=0){return PageVars.get("assetId");}else{return $("editList").getElement("input[name=listId]").get("value");}}}};}window.addEvent("domready",function(){$$("a.linkIcon.addToList").setStyle("visibility","visible");});var ModalImageViewer=new Class({Implements:[Options,Events],options:{viewerClass:"modalImageViewer",captionClass:"caption",imageClass:"slideImage",navContainerClass:"navContainer",slide$$:"li.carouselSlide",transitionDuration:"short",startIndex:0,indicatorContainerClass:"pagination",nextButtonClass:"carouselNext",prevButtonClass:"carouselPrev",maxScale:1.1},initialize:function(A,B){this.setOptions(B);A=$splat(A);this.createViewer();this.modal=new StickyWinModal({content:this.viewer,showNow:false,modalStyles:{"z-index":7000}});this.loadImages(A);},loadImages:function(A){A.each(function(B,C,D){B.image=new Element("img",{src:B.src,events:{load:function(){if(B.image.width==1&&B.image.size==1){D.erase(image);}else{B.width=B.image.width;B.height=B.image.height;B.loaded=true;}this.vetImages(D);}.bind(this)}});},this);},vetImages:function(A){if(A.length){if(!A.filter(function(B){return !B.loaded;}).length){this.addImages(A);this.singleton=(this.images.length==1);if(!this.singleton){this.addNavigation();}this.showSlide(this.options.startIndex);this.fireEvent("onInitialize");this.viewer.setStyle("display","block");this.show();}}},addImages:function(A){if(!this.images){this.images=[];}A.each(function(D,C){if(D.src){var B=new this.Slide(D,C,this.options);this.images.push(B);B.slide.inject(this.slideContainer);}},this);},createViewer:function(){this.viewer=new Element("div",{"class":this.options.viewerClass}).inject(document.body);this.slideContainer=new Element("ul",{styles:{position:"relative"}}).inject(this.viewer);new Element("a",{"class":"closeSticky",title:"Close"}).inject(this.viewer);},addNavigation:function(){this.navContainer=new Element("div",{"class":this.options.navContainerClass}).inject(this.viewer);new Element("a",{"class":this.options.prevButtonClass,text:"previous",title:"previous",events:{click:this.showSlide.bind(this,"prev")}}).inject(this.navContainer);this.countContainer=new Element("div",{"class":this.options.indicatorContainerClass,text:"image "}).inject(this.navContainer);this.currentCount=new Element("span",{text:"1"}).inject(this.countContainer);this.countContainer.appendText(" of "+this.images.length);new Element("a",{"class":this.options.nextButtonClass,text:"next",title:"next",events:{click:this.showSlide.bind(this,"next")}}).inject(this.navContainer);},setModalSize:function(){var A=window.getSize(),C,B=0;if(!this.maxSizes){if(this.images){this.maxSizes={width:0,height:0};}this.images.map(function(E){var D=this.maxSizes;if(E.data.get("width")*this.options.maxScale>D.width){D.width=E.data.get("width")*this.options.maxScale;}if(E.data.get("height")*this.options.maxScale>D.height){D.height=E.data.get("height")*this.options.maxScale;}},this);}$each(this.viewer.getStyles("padding-top","padding-bottom"),function(D){B+=D.toInt();});this.modalSize={width:Math.floor(A.x*0.9).limit(250,1280),height:(Math.floor(A.y*0.9)-B).limit(190,768)};C=this.getScale(this.maxSizes);this.modalSize.width=this.maxSizes.width*C;this.modalSize.height=this.maxSizes.height*C;},getScale:function(D){var C=this.modalSize.width/D.width,A=this.modalSize.height/D.height,B=1;if(C<B||A<B){B=(C<A)?C:A;}return B;},sizeAll:function(){this.setModalSize();this.images.each(function(A){A.setImageSize(this.modalSize,this.getScale(A.data.getClean()));},this);this.viewer.setStyles({width:this.modalSize.width,height:this.modalSize.height});if(!this.singleton){this.navContainer.setStyle("left",Math.floor((this.modalSize.width/2)-(this.navContainer.getStyle("width").toInt()/2)));}},updateCount:function(A){if(!this.singleton){this.currentCount.set("text",A);}},show:function(){this.sizeAll();this.modal.position();this.modal.show();},hide:function(){this.modal.hide();},getToIndex:function(A){if(A=="next"){return(this.currentIndex==this.images.length-1)?0:this.currentIndex+1;}return((this.currentIndex==0)?this.images.length:this.currentIndex)-1;},showSlide:function(A){if($type(A)!="number"){A=this.getToIndex(A);}if(A==this.currentIndex){return this;}$each(this.images,function(C,B){C.slide.fade((B==A)?"in":"out");}.bind(this));this.fireEvent("onShowSlide",[A,this.currentIndex]);this.currentIndex=A;return this;},Slide:new Class({Implements:Options,initialize:function(C,B,A){this.data=new Hash(C);this.image=this.data.get("image");this.data.erase("image");this.data.erase("src");this.setOptions(A);this.createSlide(B);return this;},createSlide:function(A){this.slide=new Element("li",{"class":"slide",styles:{display:(A==this.options.startIndex)?"block":"none",opacity:(A==this.options.startIndex)?1:0}});this.slide.adopt(this.image.set($merge(this.data.getClean(),{"class":this.options.imageClass})));if(this.data.get("alt")){this.caption=new Element("p",{"class":this.options.captionClass,text:""}).inject(this.slide);}this.slide.set("tween",{duration:this.options.transitionDuration,onStart:function(){if(this.slide.getStyle("opacity")<0.1){this.slide.setStyle("display","block");}}.bind(this),onComplete:function(){if(this.slide.getStyle("opacity")<1){this.slide.setStyle("display","none");}}.bind(this)});},setImageSize:function(B,C){var A={width:Math.floor(this.data.get("width")*C),height:Math.floor(this.data.get("height")*C)};A["margin-top"]=Math.floor((B.height-A.height)/2);this.image.setStyles(A);}})});var ConfirmPopup=new Class({Extends:GlobalModal,Implements:[Options,Events],options:{content:$("confirmPopup")},initialize:function(A){this.setOptions(A);this.parent({content:$(this.options.content)});}});var ErrorPopup=new Class({Extends:GlobalModal,Implements:[Options,Events],options:{content:$("errorPopup")},initialize:function(A){this.setOptions(A);this.parent({content:$(this.options.content)});}});function ttAjaxCall(A,G,D,E,B){if($defined($("errorPopup"))){var F=new ErrorPopup({content:$("errorPopup")});}if($defined($("loadingPopup"))){var L=new ErrorPopup({content:$("loadingPopup")});}var I="";var J="&action="+D+"&op="+G+"&machineId="+E+A;var H;if(B===1){H="3452-1_1-0";}else{if(B===4){H="3452-20_4-0";}}var C="/"+H+".html?nomesh"+J;var K=new Request.JSON({method:"get",async:true,url:C,onRequest:function(){L.show();},onSuccess:function(M){L.hide();if(M.status=="success"){clientURL="cbsitt://"+M.key;window.location=clientURL;}else{if(M.status=="failure"){I="Failure: "+M.result;$$("#errorPopup p.errorMsg").set("text",I);F.show();}else{I="Unknown Error ";$$("#errorPopup p.errorMsg").set("text",I);F.show();}}},onFailure:function(M){L.hide();I="Unknown Error";$$("#errorPopup p.errorMsg").set("text",I);F.show();}}).send();}var Fixation=new Class({Implements:Options,options:{inset:20,widthOffset:0},initialize:function(C,A,B){this.setOptions(B);this.element=$(C);this.container=$(A);this.coords=this.container.getCoordinates();this.container.size=this.container.getSize();this.defaults=this.element.getStyles("left","top");this.element.size=this.element.getSize();this.options.inset=!isNaN(this.options.inset.toInt())?this.options.inset.toInt():0;this.options.widthOffset=!isNaN(this.options.widthOffset.toInt())?this.options.widthOffset.toInt():0;if(window.MooTools&&MooTools.version=="1.2dev"){this.defaults=new Hash(this.defaults);this.defaults.each(function(E,D){this[D]=!isNaN(E.toInt())?E.toInt():0;}.bind(this.defaults));}else{Object.each(this.defaults,function(E,D){this[D]=!isNaN(E.toInt())?E.toInt():0;}.bind(this.defaults));}this.max={top:this.coords.top-this.options.inset+this.defaults.top,bottom:this.coords.bottom-this.options.inset,colBottom:this.container.size.y-this.element.size.y};this.fixed=false;this.pos={position:"absolute",top:this.defaults.top,left:this.defaults.left};if(!Browser.Engine.trident4&&(this.element.size.y+this.options.inset<window.getSize().y)){this.attachScroll();this.attachResize();}},attachScrollEvent:function(){var B=this.container.getSize().y-this.options.inset;if(this.max==null){return false;}else{if(this.max.bottom!=(B+this.max.top)){this.max.bottom=B+this.max.top;this.max.colBottom=this.container.getSize().y-this.element.getSize().y;}}var A=window.getScroll();if(this.fixed&&A.y<this.max.top){this.pos={position:"absolute",top:this.defaults.top,left:(this.defaults.left-this.options.widthOffset)};this.setPosition();this.fixed=false;}else{if(this.fixed&&(A.y+this.element.size.y)>this.max.bottom){this.pos={position:"absolute",top:this.max.colBottom,left:(this.defaults.left-this.options.widthOffset)};this.setPosition();this.fixed=false;}else{if(!this.fixed&&(A.y>this.max.top)&&(A.y+this.element.size.y<this.max.bottom)){this.pos={position:"fixed",top:this.options.inset,left:(this.coords.left+this.options.widthOffset)};this.setPosition();this.fixed=true;}}}},attachScroll:function(){boundAttachScrollEvent=this.attachScrollEvent.bind(this);window.addEvent("scroll",boundAttachScrollEvent);},detatchScroll:function(){window.removeEvent("scroll",boundAttachScrollEvent);},attachResizeEvent:function(){this.coords=this.container.getCoordinates();if(this.fixed){this.pos.left=this.coords.left+this.options.widthOffset;this.setPosition();}},attachResize:function(){boundAttachResizeEvent=this.attachResizeEvent.bind(this);window.addEvent("resize",boundAttachResizeEvent);},detatchResize:function(){window.removeEvent("resize",boundAttachResizeEvent);},setPosition:function(){this.element.setStyles({position:this.pos.position,top:this.pos.top,left:this.pos.left});}});var ShareBar=new Class({Extends:Fixation,Implements:[Options,Events],options:{defaultView:"side",enableToggle:true,barId:"shareBar",shareBarResourceId:false,levtEnabled:true,shortenerCallback:false,views:{side:{id:"contentBody",element:"#contentBody",position:"bottom"},inline:{element:"#contentBody header",position:"bottom"}},data:{commentCount:"#postComments .countNumber"},adSkin:{regex:/^url\((\")?http:\/\/i\.i\.com\.com\/cnwk.1d\/Ads.*$/gi,element$$:".rb_skin, #rb_skin"}},loaded:{side:false,inline:false},thirdPartyLoading:{google:false,linkedIn:false,twitter:false},initialize:function(A){this.setOptions(A);this.shortURL=this.shareURL;this.processingRequest=false;this.gotShortUrl=false;this.commentCount="0";this.initValues();var B=$$(this.options.adSkin.element$$)[0];B=B!=null?B.getStyle("background-image"):B;if(B!=null&&B.match(this.options.adSkin.regex)!=null){this.options.enableToggle=false;this.requestShareBar("inline");}else{if(!$$(".inline-sharebar")[0]&&document.body.offsetWidth<1200){this.requestShareBar("inline");}else{if(!$(this.options.barId)){this.requestShareBar(this.options.defaultView);}else{this.parent("shareBar",this.options.views.side.id);this.initLevtTracking();if(this.options.enableToggle){this.attachWidthResize();}}}}},initLevtTracking:function(){if(!this.options.levtEnabled){return ;}try{if(twttr){twttr.events.bind("tweet",function(B){this.pingLEVT("twitter","socialbutton");}.bind(this));}$$(".shareContent li .linkIcon").each(function(B){B.addEvent("click",function(){if(B.hasClass("facebook")){this.pingLEVT("facebook","sharelink");}else{if(B.hasClass("twitter")){this.pingLEVT("twitter","sharelink");}else{if(B.hasClass("linkedin")){this.pingLEVT("linkedin","sharelink");}else{if(B.hasClass("digg")){this.pingLEVT("digg","sharelink");}else{if(B.hasClass("delicious")){this.pingLEVT("delicious","sharelink");}else{if(B.hasClass("reddit")){this.pingLEVT("reddit","sharelink");}else{if(B.hasClass("stumble")){this.pingLEVT("stumbleupon","sharelink");}else{if(B.hasClass("google")){this.pingLEVT("google","sharelink");}}}}}}}}}.bind(this));}.bind(this));}catch(A){dbug.log("LEVT tracking failed to initialize!");}},loadScript:function(A,B){if(B){new Asset.javascript(A,{onload:B});}else{new Asset.javascript(A);}},attachWidthResizeEvent:function(){if(document.body.offsetWidth<1200){if(this.loaded.inline||$$(".inline-sharebar")[0]){this.toggleShareBars("inline");}else{this.requestShareBar("inline");}}else{if(this.loaded.side||$$(".side-sharebar")[0]){this.toggleShareBars("side");}else{this.requestShareBar("side");}}},shareBarLocation:function(A){if(PageVars.get("siteId")==162){var B="http://"+document.location.host+"/html/cbs/shareBar/";B+=(Browser.qs&&Browser.qs.htmldebug?"dev-":"");if(this.options.shareBarResourceId!=false){B+=this.options.shareBarResourceId+"-";}B+=A;B+="-sharebar.html";return B;}if(PageVars.get("siteId")==4){var B="http://"+document.location.host+"/html/rb/cnet/download/";B+=(Browser.qs&&Browser.qs.htmldebug?"dev-":"");if(this.options.shareBarResourceId!=false){B+=this.options.shareBarResourceId+"-";}B+=A;B+="-sharebar.html";return B;}return"http://"+document.location.host+"/html/rb/cnet/"+(Browser.qs&&Browser.qs.htmldebug?"dev-":"")+A+"-sharebar.html";},requestShareBar:function(A){if(!this.processingRequest){this.processingRequest=true;new Request({method:"get",url:this.shareBarLocation(A),onSuccess:function(B){if(!this.gotShortUrl){if(typeof this.options.shortenerCallback=="function"){this.shortURL=this.options.shortenerCallback(this.shareURL);this.injectShareBar(A,B);this.gotShortUrl=true;}else{new Request({method:"get",url:"http://"+document.location.host+"/posidn/rest/v1.0/shareBarUrlShortener?longUrl="+this.shareURL,onSuccess:function(C,E){try{if(E!=null&&E.getElement("CNETResponse")!=null&&E.getElement("CNETResponse").getElement("cnetCoUrl")!=null&&E.getElement("CNETResponse").getElement("cnetCoUrl").getElement("shortUrl")!=null){this.shortURL=E.getElement("CNETResponse").getElement("cnetCoUrl").getElement("shortUrl").get("text");}else{this.shortURL=this.shareURL;}}catch(D){this.shortURL=this.shareURL;}this.injectShareBar(A,B);this.gotShortUrl=true;}.bind(this),onFailure:function(){this.shortURL=this.shareURL;this.injectShareBar(A,B);}.bind(this)}).send();}}else{this.injectShareBar(A,B);}this.processingRequest=false;}.bind(this)}).send();}},injectShareBar:function(A,C){var B=new Element("div",{html:this.replacePlaceholders(C)});B.getChildren()[0].inject($$(this.options.views[A].element)[0],this.options.views[A].position);$$("."+A+"-sharebar .linkedInShareBtn").each(function(D){if(D.get("html")==""&&A=="side"){D.adopt(new Element("script",{type:"IN/Share","data-url":this.shareURL,"data-counter":"top","data-onsuccess":"shareSuccess"}));}else{if(D.get("html")==""&&A=="inline"){D.adopt(new Element("script",{type:"IN/Share","data-url":this.shareURL,"data-counter":"right","data-onsuccess":"shareSuccess"}));}}}.bind(this));this.initializeSocialButtons(A);this.loaded[A]=true;this.fireEvent("loaded",A);if(A=="side"){new Fixation("shareBar",this.options.views.side.id);}this.initLevtTracking();if(this.options.enableToggle){this.attachWidthResize();}this.toggleShareBars(A);},initValues:function(){var C=(document.URL.contains("?"))?document.URL.substring(0,document.URL.indexOf("?")):document.URL;this.shareURL=(this.options.data.shareURL!=null)?this.options.data.shareURL:C;this.tagPrefix=(this.shareURL.contains("&tag=")||this.shareURL.contains("?tag="))?";":"?tag=";this.shareDescription=this.options.data.shareDescription;if(PageVars.get("siteId")==162){this.shareTitle=(this.options.data.shareTitle!=null)?this.options.data.shareTitle:document.title.split("- CBS News")[0].trim();this.shareTitle=this.shareTitle.replace(/'/g,"");var A={500395:"business",207:"entertainment",205:"technology",204:"science",250:"politics",501370:"offbeat",400:"sports"};if(A[PageVars.get("channelId")]){this.diggTopic=A[PageVars.get("channelId")];}else{this.diggTopic="world_news";}this.shareSource="CBSNEWS";}else{this.shareTitle=(this.options.data.shareTitle!=null)?this.options.data.shareTitle:document.title.split("|")[0].trim();this.shareTitle=this.shareTitle.replace(/'/g,"");this.shareSource="CNET";this.diggTopic=(PageVars.get("pageType")=="2100")?"tech_news":"gadgets";}var B=setInterval(function(){setTimeout(function(){if($$(this.options.data.commentCount)[0]){this.commentCount=parseFloat($$(this.options.data.commentCount)[0].get("text"));if(this.commentCount<0){$$("li.commentTeaser").hide();}$$(".commentTeaser .countNumber").set("text",this.commentCount);clearInterval(B);}}.bind(this),"200");}.bind(this),"200");},replacePlaceholders:function(A){if(this.shortURL===undefined){this.shortURL=this.shareURL;}A=A.replace(/{{shareUrl}}/g,this.shareURL);A=A.replace(/{{shortUrl}}/g,this.shortURL);A=A.replace(/{{shareTitle}}/g,this.shareTitle);A=A.replace(/{{eShareUrl}}/g,encodeURIComponent(this.shareURL));A=A.replace(/{{eShortUrl}}/g,encodeURIComponent(this.shortURL));A=A.replace(/{{eTagPrefix}}/g,encodeURIComponent(this.tagPrefix));A=A.replace(/{{eShareTitle}}/g,encodeURIComponent(this.shareTitle));A=A.replace(/{{eShareDescription}}/g,encodeURIComponent(this.shareDescription));A=A.replace(/{{eShareSource}}/g,encodeURIComponent(this.shareSource));A=A.replace(/{{eDiggTopic}}/g,encodeURIComponent(this.diggTopic));A=A.replace(/{{commentCount}}/g,this.commentCount);return A;},toggleShareBars:function(A){if(A=="inline"){$$(".side-sharebar").setStyle("display","none");$$(".inline-sharebar").setStyle("display","block");}else{if(A=="side"){$$(".side-sharebar").setStyle("display","block");$$(".inline-sharebar").setStyle("display","none");}}},pingLEVT:function(A,B){new JloggerLEVT.Social.Share({applicationTags:{eventt:"socialsite",tasid:PageVars.get("assetId"),tastid:(DW.pageParams.astId)?DW.pageParams.astId:0,ssite:A,wd:B,wdloc:"sharebar"}}).ping();},initializeSocialButtons:function(A){try{$$(".shareBar a.email").each(function(C){C.removeEvents();C.addEvent("click",PageTools.email);});$$(".shareBar a.print").each(function(C){C.removeEvents();C.addEvent("click",PageTools.print);});if(window.FB&&$$(".facebookShareBtn").length>0){FB.XFBML.parse();}if((typeof twttr==="undefined"||typeof twttr.widgets==="undefined")&&!this.thirdPartyLoading.twitter&&$$(".twitterShareBtn").length>0){this.thirdPartyLoading.twitter=true;this.loadScript("http://platform.twitter.com/widgets.js",function(){twttr.widgets.load();});}else{twttr.widgets.load();}if(typeof gapi==="undefined"&&!this.thirdPartyLoading.google&&$$(".googlePlusOneShareBtn").length>0){this.thirdPartyLoading.google=true;this.loadScript("https://apis.google.com/js/plusone.js",function(){gapi.plusone.go();});}else{gapi.plusone.go();}if(typeof IN==="undefined"&&!this.thirdPartyLoading.linkedIn&&$$(".linkedInShareBtn").length>0){this.thirdPartyLoading.linkedIn=true;this.loadScript("https://platform.linkedin.com/in.js?async=true",function(){IN.init();});}else{IN.init();}}catch(B){dbug.log("Uh-oh one of the buttons didn't parse correctly",B);}},attachWidthResize:function(){boundAttachResizeEvent=this.attachWidthResizeEvent.bind(this);window.addEvent("resize",boundAttachResizeEvent);}});var ThumbScroller=new Class({Extends:Fx.Scroll,scrollOptions:{thumbs:".box",axis:"x",thumbContainer:null,nav:{},startIndex:0,tolerance:0},initialize:function(A,B){if(typeof (A)=="string"){if($(A).retrieve("thumbscroller")){return false;}}else{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();var B=A[A.length-1];return(B.index==this.thumbs.length-1&&(B.type!="partial"||B.tolerated));},isAtStart:function(A){A=A||this.getRange();var B=A[0];return(B.index==0&&(B.type!="partial"||B.tolerated));},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(){try{if(typeof (this.options.nav.next)=="string"){$$(this.options.nav.next).addEvent("click",this.toNextScreen.bind(this));}else{if(this.options.nav.next instanceof Array){this.options.nav.next[0].addEvent("click",this.toNextScreen.bind(this));}else{this.options.nav.next.addEvent("click",this.toNextScreen.bind(this));}}if(typeof (this.options.nav.previous)=="string"){$$(this.options.nav.previous).addEvent("click",this.toPreviousScreen.bind(this));}else{if(this.options.nav.previous instanceof Array){this.options.nav.previous[0].addEvent("click",this.toPreviousScreen.bind(this));}else{this.options.nav.previous.addEvent("click",this.toPreviousScreen.bind(this));}}if(typeof (this.options.nav.start)=="string"){$$(this.options.nav.start).addEvent("click",this.toStart.bind(this));}else{if(this.options.nav.start instanceof Array){this.options.nav.start[0].addEvent("click",this.toStart.bind(this));}else{this.options.nav.start.addEvent("click",this.toStart.bind(this));}}if(typeof (this.options.nav.end)=="string"){$$(this.options.nav.end).addEvent("click",this.toEnd.bind(this));}else{if(this.options.nav.end instanceof Array){this.options.nav.end[0].addEvent("click",this.toEnd.bind(this));}else{this.options.nav.end.addEvent("click",this.toEnd.bind(this));}}}catch(A){}},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){if(isNaN(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",tolerated:((B-C.start)<=this.options.tolerance)};}}else{if(C.start>=B&&C.start<A){return{type:"partial",where:"end",tolerated:((C.start-A)<this.options.tolerance)};}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.getLast().tolerated&&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[0].tolerated&&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();}}});FormValidator.implement({test:function(C,E,F){E=$(E);if(E.hasClass("ignoreValidation")){return true;}F=$pick(F,false);if(E.hasClass("warnOnly")){F=true;}var D=true;if(E){var B=this.getValidator(C);if(B){D=B.test(E);if(!D&&B.getError(E)){if(F){E.addClass("warning");}var A=this.makeAdvice(C,E,B.getError(E),F);this.insertAdvice(A,E);this.showAdvice(C,E);}else{this.hideAdvice(C,E);}this.fireEvent("onElementValidate",[D,E]);}}if(F){return true;}return D;}});var commentsForms={findMessageId:function(C){var B=null;var A=C;do{B=A.getProperty("messageId");}while(!B&&(A=A.getParent("li")));if(!B){return false;}var D={messageID:B};if(A.get("commentId")){D.commentId=A.get("commentId");}return D;},removeUserRating:function(){elms=$("userOpinions").getElements(".myRate").concat($("summaryList").getElements(".seeAll"));elms.each(function(A){if(A.getElement(".flexButton")){A.getElement(".flexButton").destroy();}if(A.getElement(".notratedMessage")){A.getElement(".notratedMessage").destroy();}}.bind(this));},initSubmitForm:function(){var A=!!($("submitReview").getElement("#prodUpdateReview"));commentsForms.submit=new CommentForm("submitReview",{clone:false,resetOnHide:false,submitElems:".submit a",onCommentSuccess:function(){try{new Fx.Scroll(window).toElement(this.thanks);}catch(D){}var C=this.thanks.getElement("a.updateReview");if(C){C.addEvent("click",function(){window.location=CURS.getRefreshPath();});return ;}commentsForms.removeUserRating();new Jlogger({tag:(A)?"updateReview":"submitNew"}).ping();},validatorOptions:{evaluateFieldsOnBlur:false,evaluateFieldsOnChange:false,evaluateOnSubmit:false},textFieldCounterOptions:{commonParentSelector:"label"}});$$(".userStars").each(function(C){new StarPower(C,{onRate:function(E,D){$("rating").set("value",E*2);$$(".userStars").each(function(F){if(!F.hasClass(D)){var G=F.get("class").match(/userRate medium s\d+h*/)[0];F.removeClass(G);F.addClass(D);F.store("rating",E);F.store("defaultClass",D);}});}});});if($("rating")&&$("rating").get("value")!="-1"){$("rating").set("value","-1");}commentsForms.submit.validator.addAllThese([["starsvalidation",{errorMsg:"Please select a star rating.",test:function(C){return C.get("value")!="-1";}}],["validate-opt-length",{errorMsg:"Please enter at least 10 characters.",test:function(E,D){var C=E.value.length;return(!C||(C>=D.minLength&&C<=D.maxLength));}}]]);if(CURS.Social.fb.isUser()&&commentsForms.submit&&!A){try{commentsForms.submit.addEvent("onCommentSuccess",function(){var H=this.overviewLink;var D=this.reviewLink;var E=$E("h1").get("text").replace("User Reviews","");var G={name:E,description:CURS.Social.fb.getParsedText($("prodSubmitReview").getElement("textarea[name=shortSummary]").get("value"),55),userRate:parseInt($("prodSubmitReview").getElement("input[name=rating]").get("value"))/2,href:"http://download.cnet.com"+H,caption:"{*actor*} reviewed this product on CNET.",properties:{Rating:{text:parseInt($("prodSubmitReview").getElement("input[name=rating]").get("value"))/2+" out of 5 stars",href:"http://download.cnet.com"+D}}};var C=[{text:"Read this review",href:"http://download.cnet.com"+D}];dbug.log("Product name: %o",G.prodName);dbug.log("Comment summary: %o",G.prodSummary);dbug.log("Sending to Facebook");dbug.log(Cookie.read("cnet_noFbPublish"));if(!Cookie.read("cnet_noFbPublish")){try{CURS.Social.fb.ensureInit(function(){FB.Connect.streamPublish("",G,C);},true);}catch(F){CURS.Social.fb.ensureActiveSession(function(){FB.ui({method:"stream.publish",display:"dialog",message:"",attachment:G,action_links:C,user_message_prompt:""});});}}dbug.log("Facebook Feed post requested");});}catch(B){dbug.log("Failed adding feed posting: %o",B);}}}};var initializeComments=new Class({initialize:function(){this.setUpComments();this.initLinks();},setUpComments:function(){try{commentsForms.reply=new CommentForm("replyReview",{findLocalData:commentsForms.findMessageId,resetOnHide:false,submitElems:".submit a",closeElems:".cancel a",validatorOptions:{evaluateFieldsOnBlur:false,evaluateFieldsOnChange:false,evaluateOnSubmit:false},textFieldCounterOptions:{commonParentSelector:"label"},onCommentSuccess:function(){new Jlogger({tag:"replyReview"}).ping();}});if(!UserVars.isLoggedIn()){$$(".status .fbConnectInvite").set("html",'Quickly sign in with:<div id="gigyaUserReview" class="small gigyaWidget"></div>');CURS.Social.gigya.init();}CURS.Manager.addEvent("onLogin",function(){if(CURS.Social.fb.isUser()){try{commentsForms.reply.addEvent("onCommentSuccess",function(){var L=this.overviewLink;var K=this.thanks.getElements("a.readMore")[0].get("href");var H=$E("h1").get("text").replace("User Reviews","");dbug.log("Product name: %o",$E("h1").get("text"));dbug.log("Comment summary: %o",CURS.Social.fb.getParsedText($("prodReplyReview").getElement("textarea[name=body]").get("value"),1000,true));dbug.log("Sending to Facebook");var J={name:H,description:CURS.Social.fb.getParsedText($("prodReplyReview").getElement("textarea[name=body]").get("value"),1000,true),href:"http://download.cnet.com"+L,caption:"{*actor*} commented on a CNET member's review of this product."};var G=[{text:"Read this comment",href:(K.contains("http://"+document.domain))?K:"http://"+document.domain+K}];if(!Cookie.read("cnet_noFbPublish")){try{CURS.Social.fb.ensureInit(function(){FB.Connect.streamPublish("",J,G);},true);}catch(I){CURS.Social.fb.ensureActiveSession(function(){FB.ui({method:"stream.publish",display:"dialog",message:"",attachment:J,action_links:G,user_message_prompt:""});});}}});}catch(F){dbug.log("Failed adding feed posting: %o",F);}}});}catch(E){dbug.log("Reply form initialization failed: %o",E);}try{commentsForms.offensive=new CommentForm("ropReview",{findLocalData:commentsForms.findMessageId,resetOnHide:false,submitElems:".submit. a",closeElems:".cancel a",useValidator:false,textFieldCounterOptions:{commonParentSelector:"label"},onCommentSuccess:function(){new Jlogger({tag:"ropReview"}).ping();}});}catch(E){dbug.log("Offensive form initialization failed: %o",E);}try{commentsForms.email=new CommentForm("emailReview",{findLocalData:commentsForms.findMessageId,resetOnHide:false,submitElems:".submit a",closeElems:".cancel a",validatorOptions:{evaluateFieldsOnBlur:false,evaluateFieldsOnChange:false,evaluateOnSubmit:false},textFieldCounterOptions:{commonParentSelector:"label"},onCommentSuccess:function(){new Jlogger({tag:"emailReview"}).ping();}});}catch(E){dbug.log("E-mail form initialization failed: %o",E);}try{if($("submitReview")){var B=function(F){if(C=="undefined"||!C.length){return false;}C=C.filter(function(H){return !!$(H);});var G=$(F).getElements("a");G=G.filter(function(H){return !C.contains(H);});G.addEvent("click",D);C.combine(G);};var A=function(){var F=$("submitReview").getElement(".invite");if(!UserVars.isLoggedIn()){return ;}else{if(!UserVars.hasFullAccess()){F.set("html",'<p class="loginStatus">Your account is not yet confirmed. <a>Click here to see how to confirm your account.</a></p>');B(F);}else{if(!$chk(UserVars.get("userName"))){F.set("html",'<p class="loginStatus">You\'ll need a CNET username in order to submit a review. <a>Click here to create a username.</a></p>');B(F);}else{if(F){F.setStyle("display","none");$("submitReview").getElement("div.loggedin").setStyle("display","block");}if(!commentsForms.submit){commentsForms.initSubmitForm();}}}}};var C=$("submitReview").getElements(".invite a, textarea, .userStars, .submit a");var D=function(F){var G={registerHed:"Join CNET to submit your review",loginHed:"Log in to CNET to submit your review",appId:"12",cval:"userreview",nextAction:function(){if(commentsForms.submit){C.removeEvent("click",D);CURS.Manager.removeEvents("onStateChange");}}};if($(F.target).hasClass("fbConnectLink")||$(F.target).getParent(".fbConnectLink")){G.ursForm="fbconnect";}if(!$(F.target).hasClass("connect2fbButton")&&!$(F.target).getParent().hasClass("connect2fbButton")){CURS.Manager.checkLogin(G);}};C.addEvent("click",D);CURS.Manager.addEvent("onLogin",function(){A();CURS.Manager.addEvent("onStateChange",A);});if(!UserVars.isLoggedIn()){CURS.Manager.addEvent("onLogin",function(){new Request({url:new Link(window.location.href).mergeQueryString({tag:false,_tilename_:".userReviewUpdate",nomesh:null}).get("href"),onComplete:function(F){if(!F.match(/no update form/)){window.location.href=PageVars.getRefreshPath();}}}).send();});}}}catch(E){dbug.log("Submission/Update form initialization failed: %o",E);}},initLinks:function(A){A=$(A)||$(document.body);A.getElements(".replyUR a.reply").addEvent("click",function(B){CURS.Manager.checkLogin({registerHed:"Join CNET to reply to this review",loginHed:"Log in to CNET to reply to this review",appId:"12",nextAction:function(){commentsForms.reply.move($(B.target).getParent("li"));},cval:"reply"});});A.getElements(".postTools a.report").addEvent("click",function(B){CURS.Manager.checkLogin({registerHed:"Join CNET to report this comment",loginHed:"Log in to CNET to report this comment",appId:"12",nextAction:function(){commentsForms.offensive.move($(B.target).getParent("li"));},cval:"rop"});});A.getElements(".postTools a.email").addEvent("click",function(B){CURS.Manager.checkLogin({registerHed:"Join CNET to e-mail this to a friend",loginHed:"Log in to CNET to e-mail this to a friend",appId:"12",nextAction:function(){commentsForms.email.move($(B.target).getParent("li"));},cval:"emailfriend"});});A.getElements("p.rateUR a").addEvent("click",function(B){new HelpfulVote(B,{responseKey:"responseMessages",responseSuccess:"success"});});}});window.addEvent("domready",function(){$$("#deleteReview, .deleteComment").each(function(B){var A=new CommentForm(B,{clone:false,resetOnHide:false,submitElems:"a.submitButton",closeElems:".cancel a",useValidator:false,firstParent:B.getParent("li")});B.getParent("li").getElement(".admin .delete").addEvent("click",function(C){A.show();});});$$("#editReview, .editComment").each(function(B){var A=new CommentForm(B,{clone:false,resetOnHide:false,submitElems:"a.submitButton",closeElems:".cancel a",useValidator:false,firstParent:B.getParent("li")});B.getParent("li").getElement(".admin .edit").addEvent("click",function(C){A.show();});});});var ScreenViewer=new Class({Implements:StyleWriter,initialize:function(A){this.images=A;if(!$type(A)=="array"||!A.length){return ;}$$("#productScreenshots a").each(function(B){B.removeProperty("href").addEvent("click",function(){try{if(!this.viewer){this.initViewer();}else{this.viewer.show();}}catch(C){dbug.log("Viewer initiailization failed: %o",C);}return false;}.bind(this));},this);},initViewer:function(){this.viewer=new ModalImageViewer(this.images,{onShowSlide:function(A){this.updateCount(A+1);}});this.resize=this.viewer.show.bind(this.viewer);this.checkResize=this.resizer.bind(this);this.viewer.modal.addEvents({onDisplay:function(){if(!this.viewer.modal.visible){window.addEvent("resize",this.checkResize);}}.bind(this),onClose:window.removeEvent.pass(["resize",this.checkResize])});},resizer:function(){if(this.viewer.modal.visible){$clear(this.resizing);this.resizing=this.resize.delay(10);}}});function checkIfInstalled(){var F="";var A=Cookie.read("TT_DefaultMachine");var B=Cookie.read("tt_dlmEnabled");var D="&ids="+$$(".smartInstall")[0].getProperty("id");var C="/3452-20_4-0.html?action=isProductInstalled&nomesh&machineId="+A+D;var E=new Request.JSON({method:"get",async:true,url:C,onRequest:function(){},onSuccess:function(H){var I=H.result.CNETResponse.HasSoftwareReport.User.UseTtAsDlmPreference;var J=H.result.CNETResponse.HasSoftwareReport.Machine;var G=H.result.CNETResponse.HasSoftwareReport.Products.Product.Installable;if(J){var K=H.result.CNETResponse.HasSoftwareReport.Machine.Software.Product.outOfDate;var M=H.result.CNETResponse.HasSoftwareReport.Machine.ClientVersion.braveheartCompat;if((B==="true"||I==="true")&&(M==="true")){$$(".downloadNow a").addEvent("click",function(P){P.stop();var N=Cookie.read("TT_DefaultMachine");var O="&ids="+$$(".ttPlus3000").getProperty("productId");ttAjaxCall(O,"DL","performPlusOperation",N,4);});}if(K==="false"){$$(".ttPlus3000").setStyle("display","block");$$(".ttPlus3000 a").setStyle("display","none");$$(".ttPlus3000 p").setStyle("display","block");$$(".ttPlus3000 p").set("html","Installed");}else{if((G==="true")&&(M==="true")){$$(".ttPlus3000").setStyle("display","block");$$(".smartInstall").addEvent("click",function(N){N.stop();runTTInstall(this);});}else{$$(".ttPlus3000").setStyle("display","none");}}}else{var L=H.result.CNETResponse.HasSoftwareReport.TargetMachine.ClientVersion.braveheartCompat;if((G==="true")&&(L==="true")){$$(".ttPlus3000").setStyle("display","block");$$(".smartInstall").addEvent("click",function(N){N.stop();runTTInstall(this);});}else{$$(".ttPlus3000").setStyle("display","none");}if((B==="true"||I==="true")&&(L==="true")){$$(".downloadNow a").addEvent("click",function(P){P.stop();var N=Cookie.read("TT_DefaultMachine");var O="&ids="+$$(".ttPlus3000").getProperty("productId");ttAjaxCall(O,"DL","performPlusOperation",N,4);});}}},onFailure:function(G){F="Unknown Failure Error "+G;}}).send();}function runTTInstall(I){var B=Cookie.read("TT_DefaultMachine");var G=new ConfirmPopup({content:$("installPopup")});$$("#installPopup #yesButtonInstall").addEvent("click",function(){H(I);});$$("#installPopup #downButton").addEvent("click",function(){F(I);});function H(K){var J="&ids="+K.getProperty("id");ttAjaxCall(J,"DLNINST","performPlusOperation",B,4);}function F(K){var J="&ids="+K.getProperty("id");ttAjaxCall(J,"DLNOPEN","performPlusOperation",B,4);}if(Cookie.read("tt_installPopup")===null||Cookie.read("tt_installPopup")==="true"){$$("#smartInstallListItems li").dispose();G.show();var C=$(I).get("id");var E=$(I).get("name");var D=new Element("li",{id:C,html:E});D.inject("smartInstallListItems");}else{var A="&ids="+I.getProperty("id");ttAjaxCall(A,"DLNINST","performPlusOperation",B,4);}}window.addEvent("domready",function(){var K="std";var D="win";if(navigator.appVersion.indexOf("Mac")!=-1){D="mac";}else{D="win";}if(UserVars.isLoggedIn()){var C=Cookie.read("TT_isPaidUser");if(C==="true"){K="ttplus";}else{if(C==="false"){K="tt";}}}else{K="std";}var F=PageVars.get("pageType");var B=PageVars.get("nodeId");var A=PageVars.get("siteId");var E="http://rok.com.com/rok-get?app_handle=techtrack2&unit_sp=63&pool_handle="+K+"&size=300x250&ptype="+F+"&cnet-ontology-node-id="+B+"&site="+A+"&platform="+D;$$(".rev_square_side_door iframe").setProperty("src",E);new HandangoCart.CartAdder();new initializeComments();if($$(".productVideo").length>0){var G=$$(".productVideo").getProperty("videoId").toString();var P=$$(".productVideo").getProperty("id").toString();$lazy(window.GeckoVideoPlayer,CBSi.lazy.videoPlayer,function(){loadGeckoVideoPlayer({parentElement:P,flashVars:{contentType:"videoId",contentValue:G}},"download");});}$$(".addToList").each(function(Q){Q.addEvent("click",function(){UserLists.Manager.getUserListModal("AddToList",Q);});});if($defined($$(".smartInstall")[0])){if((UserVars.isLoggedIn()&&Cookie.read("TT_isPaidUser")==="true")||(UserVars.isLoggedIn()&&Cookie.read("TT_isPaidUser")==="false")){var I=Cookie.read("TT_DefaultMachinePlatform");var O=$$(".smartInstall").getProperty("prodPlatform");if(I.contains("Windows")){if(O.contains(I)){checkIfInstalled();}}else{if(I.contains("Mac")){if(O.contains(I)){checkIfInstalled();}}}}else{$$(".ttPlus3000").setStyle("display","none");}}var J=new intializeUO;J.intializeUOpagination();J.intializeUOSelection();new Request({url:"/8713-4_"+PageVars.get("siteId")+"-0.html?nomesh&assetId="+PageVars.get("assetId")+"&refresh="+new Date().getTime(),onSuccess:function(R){if(R&&R.trim()){try{var S,Q;S=JSON.decode(R);if(S.userVote){if(S.userVote.AssetVoteValue==1){Q=$$(".gwhTools a.gotIt");}else{if(S.userVote.AssetVoteValue==2){Q=$$(".gwhTools a.wantIt");}else{if(S.userVote.AssetVoteValue==3){Q=$$(".gwhTools a.hadIt");}}}Q.removeClass("like");Q.addClass("unlike");Q.setProperty("assetVoteId",S.userVote.AssetVoteId);}if(S.productVoteSum){$$(".gwhTools a.gotIt").getElement("b").set("text",S.productVoteSum.gotItSum);$$(".gwhTools a.wantIt").getElement("b").set("text",S.productVoteSum.wantItSum);$$(".gwhTools a.hadIt").getElement("b").set("text",S.productVoteSum.hadItSum);}}catch(T){dbug.log("invalid response %o",T);}}else{dbug.log("no user vote data for product "+PageVars.get("assetId"));}}}).send();var N;if($defined($("feedbackForm"))){N=new FormRecycler.GlobalModal("feedbackForm",{onShow:function(){var R=this.form.getElement(".errorMsg");var Q=this.form.getElement(".errorMsgDesc");if(R){R.hide();}if(Q){Q.hide();}},onInitialize:function(){$("submitFeedback").addEvent("click",function(U){U.stop();var T=this.form.getElement(".errorMsg");var R=this.form.getElement(".errorMsgDesc");if(T){T.hide();}if(R){R.hide();}var Q=true;var S=false;$$("#feedbackForm input[type=radio]").each(function(V){if(V.checked){Q=false;if(V.value=="OTHER"&&$("feedbackDescription").value==""){S=true;}}});if(Q&&T){T.setStyles({opacity:"0",display:"block"});T.morph({opacity:"1"});}else{if(S&&R){R.setStyles({opacity:"0",display:"block"});R.morph({opacity:"1"});}else{this.hide();new Request.HTML({onSuccess:function(){new GlobalModal({content:$("feedbackFormDone")}).show();}.bind(this)}).post("/3025-20_4-0.html?"+this.form.toQueryString());}}}.bind(this));}});$$(".feedback a").addEvent("click",function(Q){Q.stop();if(UserVars.isLoggedIn()){N.move(Q.target);}else{CURS.Manager.checkLogin({ursForm:"login"});}});}if($$(".inline-slideshow").length>0){var M=$$(".inline-slideshow");for(var H=0;H<M.length;H++){var L=$("inline-slideShow"+H);$$(".inline-slideshow")[H].getElement(".galleryBody").set("id","inline-slideShow"+H);new ThumbScroller("inline-slideShow"+H,{thumbs:".slides li",nav:{next:$("inline-slideShow"+H).getParent().getElement(".scrollingArrows .arrowRight"),previous:$("inline-slideShow"+H).getParent().getElement(".scrollingArrows .arrowLeft")}}).addEvent("onComplete",function(R){dbug.log($(R));var Q=$(R).getParent().getElement(".galleryCount .currentlyViewing").get("text").split("-");if(!this.isAtEnd()&&!this.isAtStart()){if(this.lastScroll=="previous"){$(R).getParent().getElement(".galleryCount .currentlyViewing").set("html",(parseInt(Q[0])-1)+"-"+(parseInt(Q[1])-1));}else{$(R).getParent().getElement(".galleryCount .currentlyViewing").set("html",(parseInt(Q[0])+2)+"-"+(parseInt(Q[1])+2));}}else{if(this.isAtEnd()){$(R).getParent().getElement(".galleryCount .currentlyViewing").set("html",(parseInt($(R).getParent().getElement(".galleryCount .totalCount").get("text"))-1)+"-"+(parseInt($(R).getParent().getElement(".galleryCount .totalCount").get("text"))));}else{if(this.isAtStart()&&this.to[0]==0){$(R).getParent().getElement(".galleryCount .currentlyViewing").set("html","1-2");}}}$(R).getParent().getElement(".scrollingArrows .arrowLeft").morph({opacity:((this.isAtStart())?0.3:1)});$(R).getParent().getElement(".scrollingArrows .arrowRight").morph({opacity:((this.isAtEnd())?0.3:1)});}).fireEvent("onComplete","inline-slideShow"+H);}}if(!$("contentBody").hasClass("crapBro")){new ShareBar();}});var intializeUO=new Class({prePostPrepUO:function(){try{commentsForms.email.hide();commentsForms.offensive.hide();commentsForms.reply.hide();commentsForms.email.relocateForm($("userReviews"));commentsForms.reply.relocateForm($("userReviews"));commentsForms.offensive.relocateForm($("userReviews"));}catch(A){dbug.log("intializeUOpagination initialization failed: %o",A);}},initializePostReq:function(){try{this.toolTipsStuff();this.intializeUOpagination();this.intializeUOSelection();commentsForms.initSubmitForm();var A=$(document.body);A.getElements(".replyUR a.reply").addEvent("click",function(C){CURS.Manager.checkLogin({registerHed:"Join CNET to reply to this review",loginHed:"Log in to CNET to reply to this review",appId:"12",nextAction:function(){commentsForms.reply.move($(C.target).getParent("li"));},cval:"reply"});});A.getElements(".postTools a.report").addEvent("click",function(C){CURS.Manager.checkLogin({registerHed:"Join CNET to report this comment",loginHed:"Log in to CNET to report this comment",appId:"12",nextAction:function(){commentsForms.offensive.move($(C.target).getParent("li"));},cval:"rop"});});A.getElements(".postTools a.email").addEvent("click",function(C){CURS.Manager.checkLogin({registerHed:"Join CNET to e-mail this to a friend",loginHed:"Log in to CNET to e-mail this to a friend",appId:"12",nextAction:function(){commentsForms.email.move($(C.target).getParent("li"));},cval:"emailfriend"});});A.getElements("p.rateUR a").addEvent("click",function(C){new HelpfulVote(C,{responseKey:"responseMessages",responseSuccess:"success"});});}catch(B){dbug.log("toolTipsStuff, comment,offensive post, or email to friend re-initialization failed: %o",B);}},toolTipsStuff:function(){try{$$(".toolTipElement").each(function(C){var B=C.get("title");B=(B)?B.split("::"):null;if(B){C.store("tip:title",B[0]);if(B[1]){C.store("tip:text",B[1]);}}});cnetToolTips=new Tips(".toolTipElement",{className:"cnetTip"});}catch(A){dbug.log("toolTipsStuff initialization failed: %o",A);}},intializeUOpagination:function(){try{$$("ul.pagination a.pageItem").each(function(C,B){C.addEvent("click",function(){try{new Fx.Scroll(window).toElement("userOpinions");reqUO(C.href);}catch(D){dbug.log("Viewer initiailization failed: %o",D);}return false;}.bind(this));},this);}catch(A){dbug.log("intializeUOpagination initialization failed: %o",A);}},intializeUOSelection:function(){try{if($("selectUrVersion")){$("selectUrVersion").addEvent("change",function(){try{reqUO($("selectUrVersion").value);}catch(B){dbug.log("Viewer initiailization failed: %o",B);}return false;}.bind(this));}if($("sortByUo")){$("sortByUo").addEvent("change",function(){try{reqUO($("sortByUo").value);}catch(B){dbug.log("Viewer initiailization failed: %o",B);}return false;}.bind(this));}}catch(A){dbug.log("intializeUOpagination initialization failed: %o",A);}}});function reqUO(B){var A=new intializeUO;A.prePostPrepUO();var E=$("ratingsNav").retrieve("waiter",new Waiter($("ratingsNav")));var C=$("summaryList").retrieve("waiter",new Waiter($("summaryList")));var D=null;D=new ContentUpdater("riauserreviews",{"ria-ugc-reviews-component":{element:"userOpinions",onRequest:function(){if(E){E.start();}if(C){C.start();}},onSuccess:function(){A.initializePostReq();},onComplete:function(){if(E){E.stop();}if(C){C.stop();}}}},{url:B,onTimeout:function(){if(E){E.stop();}if(C){C.stop();}},onFailure:function(){if(E){E.stop();}if(C){C.stop();}},timeout:15000});D.send();}
   }
       
