
   if(!dbugScripts("techtracker",["techtracker.tron.userlists.publiclist.js"])) {
   /*	techtracker.tron.userlists.publiclist.js - packed	*/
       var ModalForm=new Class({Implements:Options,options:{modalId:"",popupContents:"default",counterFields:null,resetOnClose:false,clearOnReset:false,useCaptcha:false,onFormSubmitSuccess:"",onFormSubmitFail:"",requireLogin:false,captchaURL:"/8708-5_1-0.html?CAPTCHA=id&nomesh&refresh="},initialize:function(B,A){this.setOptions(A);this.element=$$(B);this.initModalForm();},initModalForm:function(){dbug.log("init modal");this.modalForm=new GlobalModal({id:this.options.modalId,content:$(this.options.popupContents).toggleClass("globalModal"),onClose:function(){if(this.options.resetOnClose){this.resetForm();}}.bind(this)});this.form=$(this.options.modalId).getElement("form");this.modalFormValidator=new ModalFormValidator(this.form,{evaluateFieldsOnBlur:false,evaluateFieldsOnChange:false,evaluateOnSubmit:false});this.form.addEvent("submit",function(A){A.stop();if(!this.modalFormValidator.validate()){return ;}new ModalFormRequest({url:this.form.get("action"),data:this.form.toQueryString(),onSuccess:this.options.onFormSubmitSuccess.bind(this),onFailure:this.options.onFormSubmitFail.bind(this)}).send();}.bind(this));if(this.options.counterFields!=null){this.options.counterFields.field.each(function(B,A){this.fieldCounter(this.form.getElement(B),this.form.getElement(this.options.counterFields.counter[A]));}.bind(this));}$$(this.element).addEvent("click",function(){dbug.log("click");if(this.options.requireLogin){if(!UserVars.isLoggedIn()){CURS.Manager.checkLogin({loginHed:"Log in to CNET to report this profile",registerHed:"Join CNET to report this profile",appId:103,nextAction:function(){new Jlogger({tag:"ropProfile",element:false,ctype:"overlay;source",cval:"login;rop"}).ping();this.showModalForm.bind(this);}.bind(this)});}else{this.showModalForm();}}else{this.showModalForm();}}.bind(this));},showModalForm:function(){if(this.options.useCaptcha){this.getCaptcha();}this.modalForm.show();},resetForm:function(){this.modalFormValidator.reset();this.modalFormValidator.paused=false;this.form.setStyle("display","block");this.form.getParent().getElements(".emailSuccess, .emailFail").dispose();if(this.form.getElement("p span")){this.form.getElement("p span").set("text","0");this.form.getElement("p span").removeClass("validation-advice");}if(this.options.clearOnReset){this.form.reset();}},getCaptcha:function(){new Request({method:"get",url:this.options.captchaURL+new Date().getTime(),onComplete:function(A){if(A){var B=A.trim();$exec(B);var C=new Element("a",{href:"javascript:void(0);","class":"refreshCaptcha",id:"getCaptchaCode"}).set("text","Try a new code");C.addEvent("click",function(){this.getCaptcha();}.bind(this));C.inject($$("#captcha input")[0],"after");$("captcha").getElement("input[name=CAPTCHA_RESPONSE]").addClass("required");}}.bind(this)}).send();},fieldCounter:function(A,C){var B=A.get("validatorProps");if(!B){return ;}B=JSON.decode(B);if(!B&&!B.maxLength){return ;}this.updateCounter(A,B,C);A.addEvent("keyup",function(){this.updateCounter(A,B,C);}.bind(this));},updateCounter:function(B,C,D){var A=B.value.trim().length;D.set("text",A);if((A<(C.minLength||0))||(A>C.maxLength)){D.addClass("validation-advice");}else{D.removeClass("validation-advice");}}});var ModalFormRequest=new Class({Extends:Request,processScripts:function(A){if(this.options.evalResponse){return $exec(A);}return A.stripScripts(this.options.evalScripts);}});var ModalFormValidator=new Class({Extends:FormValidator,makeAdvice:function(D,F,C,G){var E=(G)?this.options.warningPrefix:this.options.errorPrefix;E+=(this.options.useTitles)?F.title||C:C;var B=this.getAdvice(D,F);if(!B){var A=(G)?"warning-advice":"validation-advice";B=new Element("div",{text:E,styles:{display:"none"},id:"advice-"+D+"-"+this.getFieldId(F)}).addClass(A);}else{B.set("text",E);}return B;}});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 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 ;}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 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 CommentForm=new Class({Extends:FormRecycler.Inline,commentOptions:{submitElems:false,closeElems:false,useValidator:true,validatorOptions:{},useTextFieldCounter:true,submissionType:null,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(E){this.hide();var A=(PageVars.get("siteId")==162)?UserVars.get("userName"):'<a href="http://www.cnet.com/profile/'+UserVars.get("userName").replace(" ","+")+'">'+UserVars.get("userName")+"</a>";var D=(PageVars.get("siteId")==162)?"CBS'":"CNET's";this.responseObj={"delete":{fail:"There was a problem deleting this comment, please try again.",success:"This comment has been deleted.",pending:"This comment will be deleted shortly."},rop:{fail:"There was a problem submitting this form, please try again.",success:"Your message has been submitted and will be reviewed by our staff. Thank you, "+A+", for helping us maintain "+D+" great community!",pending:"Your message will be submitted shortly and reviewed by our staff. Thank you, "+A+", for helping us maintain "+D+" great community!"},comment:{fail:"There was a problem submitting your comment, please try again.",success:"Thanks for your comment, "+A+".",pending:"Thanks for your comment, "+A+". It will be posted to our site shortly."},edit:{fail:"There was a problem updating your comment, please try again.",success:"This comment has been successfully updated.",pending:"This comment will be updated shortly."},email:{fail:"There was a problem submitting this email, please try again.",success:"Thank you, "+A+". Your email has been sent.",pending:"Thank you, "+A+". Your email will be sent shortly."}};this.thanks=new Element("div",{"class":"userReviewForm thankyou"}).inject(this.shell,"before");if(E.match("<status>failure</status>")){var C=this.responseObj[this.options.submissionType].fail;}else{if(E.match("<status>pending</status>")){var C=this.responseObj[this.options.submissionType].pending;}else{var C=this.responseObj[this.options.submissionType].success;}}var B=new Element("h2",{html:'<span class="thanks">'+C+"</span>"}).inject(this.thanks);new Element("a",{"class":"closeConfirm",text:"close [x]",events:{click:function(){this.thanks.dissolve();}.bind(this)}}).inject(B,"after");if(E.match("<status>success</status>")&&this.options.submissionType=="comment"){var F=E.match(/name="assetId"\ value="(\d+)"/)[1].toInt();new Element("p",{"class":"spacer",text:"or"}).inject(B,"after");if(PageVars.get("siteId")!=162){new Element("a",{href:new Link("/8618-"+PageVars.get("nodeId")+"_"+PageVars.get("siteId")+"-"+PageVars.get("assetId")+".html").mergeQueryString({communityId:this.form.getElement("input[name=communityId]").get("value"),targetCommunityId:this.form.getElement("input[name=targetCommunityId]").get("value"),assetTypeId:this.form.getElement("input[name=assetTypeId]").get("value"),blogId:PageVars.get("pageNumber"),messageId:F}).get("href"),text:"view comment","class":"readMore"}).inject(B,"after");}else{new Element("a",{href:new Link("/8618-"+PageVars.get("nodeId")+"_"+PageVars.get("siteId")+"-"+PageVars.get("assetId")+".html").mergeQueryString({assetTypeId:this.form.getElement("input[name=assetTypeId]").value,messageId:F}).get("href"),text:"view comment","class":"readMore"}).inject(B,"after");}}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 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();}}});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 Replyer=new Class({options:{repliesId:"",processId:"",hideReplyId:"",nodeId:null,assetId:null,communityId:null,targetCommunityId:null,commentId:null,pageNum:null,isModerator:null,showReplyId:null},init:function(A){this.options.repliesId=A.repliesId;this.options.processId=A.processId;this.options.hideReplyId=A.hideReplyId;},showReplies:function(A){this.init(A);$("show_replies_"+A.commentId).set("text","Refresh replies");$(A.processId).setStyle("display","block");$(this.options.repliesId).setStyle("display","none");var B="/"+PageVars.getOid({pageType:"8617",pageNumber:null})+".html";var C="communityId="+A.communityId+"&targetCommunityId="+A.targetCommunityId+"&commentId="+A.commentId+"&pageNum="+A.pageNum+"&isModerator="+A.isModerator+"&nomesh";new Request({url:B,method:"get",onSuccess:this.finish.bind(this)}).send(C);},finish:function(A){$(this.options.repliesId).set("html",A);$(this.options.processId).setStyle("display","none");try{$(this.options.repliesId).reveal();}catch(B){$(this.options.repliesId).setStyles({display:"block",height:"auto"});}$(this.options.hideReplyId).setStyle("display","block");try{commentsForms.initialize.initLinks(this.options.repliesId);}catch(B){dbug.log(B);}},hideReplies:function(A){$(A.hideReplyId).setStyle("display","none");try{$(A.repliesId).dissolve();}catch(B){$(A.repliesId).setStyle("display","none");}$(A.showReplyId).set("text","Show replies");}});var commentsForms={findMessageId:function(C){var B=null;var A=C;do{B=A.getProperty("messageId");}while(!B&&(A=A.getParent("dl")));if(!B){return false;}return{commentId:B};},findParentMessageId:function(C){var B=null;var A=C;do{B=A.getProperty("messageId");}while(!B&&(A=A.getParent("dl")));if(!B){return false;}return{parentCommentId:B};}};var initializeComments=new Class({initialize:function(){if(!$("fixedCommentBox")){return false;}$$("#fixedCommentBox.addcommentform").setStyle("display","block");this.setUpComments();this.initLinks();},setUpComments:function(){commentsForms.reply=new CommentForm("replyArea",{findLocalData:commentsForms.findParentMessageId,resetOnHide:false,submitElems:".addcomment a",closeElems:".cancel a",submissionType:"comment",onCommentSuccess:function(I){new Jlogger({tag:"submitReply"}).ping();try{var H;if(I.match("<status>success</status>")){H=this.thanks.getElements("div a");H.each(function(K){if(K.get("text").contains("Click here to view")){K.setProperty("href",K.getProperty("href").replace("/8601-","/8618-")+"&messageId="+I.commentId);}});}}catch(J){dbug.log("Failed to ammend the reply link: %o",J);}},onRelocate:function(){if(this.form.getElement("input[name=post_fb]")){this.form.getElement("input[name=post_fb]").checked=true;}}});CURS.Manager.addEvent("onLogin",function(){if(CURS.Social.fb.isUser()){commentsForms.reply.addEvent("onCommentSuccess",function(I){var L=$E("h1");var M=(PageVars.get("pageType")=="4505")?location.href:L.getElement("a");var P=(PageVars.get("pageType")=="4505")?L.getElement("span").get("text"):((M)?M:L).get("text");var N=(PageVars.get("pageType")=="4505")?M:((M)?"http://news.cnet.com"+M.get("href"):new Link(window.location.href).mergeQueryString({jsdebug:false,tag:false}).get("href"));var J=this.thanks.getElement("a.readMore");var H=(I.match("<status>success</status>"))?[{text:"Read this comment",href:(J.get("href").contains("http://"+document.domain))?J.get("href"):"http://"+document.domain+J.get("href")}]:null;var O="{*actor*} replied to a CNET member's comment on this ";O+=(PageVars.get("pageType")==8301)?"blog post.":"story.";if(!Cookie.read("cnet_noFbPublish")){try{CURS.Social.fb.ensureInit(function(){FB.Connect.streamPublish("",{name:P,href:N,caption:O,description:CURS.Social.fb.getParsedText($("replyArea").getElement("textarea[name=body]").get("value"),4999,false)},H);},true);}catch(K){CURS.Social.fb.ensureActiveSession(function(){FB.ui({method:"stream.publish",display:"dialog",message:"",attachment:{name:P,href:N,caption:O,description:CURS.Social.fb.getParsedText($("replyArea").getElement("textarea[name=body]").get("value"),4999,false)},action_links:H,user_message_prompt:""});});}}});}});commentsForms.offensive=new CommentForm("offensiveArea",{findLocalData:commentsForms.findMessageId,resetOnHide:false,submissionType:"rop",submitElems:".submit.send a.button",closeElems:".cancel a"});commentsForms.offensive.addEvent("onRelocate",function(){var I=this.form.getElement("input[name=permalink]");var H=new Link(I.get("value")).mergeQueryString({messageId:this.form.getElement("input[name=commentId]").get("value")});H=H.get("href").replace("http://"+document.domain,"");I.set("value",H);});commentsForms.emailAFriend=new CommentForm("emailAFriendArea",{findLocalData:commentsForms.findMessageId,resetOnHide:false,submitElems:".submit.send a.button",submissionType:"email",closeElems:".cancel a",onCommentSuccess:function(){new Jlogger({tag:"emailComment"}).ping();}});commentsForms.emailAFriend.addEvent("onRelocate",function(){var I=this.form.getElement("input[name=permalink]");var H=new Link(I.get("value")).mergeQueryString({messageId:this.form.getElement("input[name=commentId]").get("value")});H=H.get("href").replace("http://"+document.domain,"");I.set("value",H);});if($("deleteArea")){commentsForms.adminDelete=new CommentForm("deleteArea",{findLocalData:commentsForms.findMessageId,submissionType:"delete",submitElems:".submit.delete a.button",closeElems:".cancel a"});}var C=function(){commentsForms.newComment=new CommentForm("newCommentForm",{submitElems:".submit.addcomment a.button, #subComment",clone:false,submissionType:"comment",onCommentSuccess:function(J){new Jlogger({tag:"submitComment"}).ping();try{var I;if(J.match("<status>success</status>")){I=this.thanks.getElements("div a");I.each(function(L){if(L.get("text").contains("Click here to view")){L.setProperty("href",L.getProperty("href").replace("/8601-","/8618-")+"&messageId="+J.commentId);}});}}catch(K){dbug.log("Thanks links fail: %o",K);}}});var H=commentsForms.newComment.form.getElement("input[name=body]");if(H){H.addClass("maxLength").setProperty("validatorprops","{minLength:2, maxLength: 4999}");}if(CURS.Social.fb.isUser()){commentsForms.newComment.addEvent("onCommentSuccess",function(){var O=$E("h1");var M=(PageVars.get("pageType")=="4505")?location.href:O.getElement("a");var L=(PageVars.get("pageType")=="4505")?O.getElement("span").get("text"):((M)?M:O).get("text");var I=(PageVars.get("pageType")=="4505")?M:((M)?"http://news.cnet.com"+M.get("href"):new Link(window.location.href).mergeQueryString({jsdebug:false,tag:false}).get("href"));var P=this.thanks.getElement("a.readMore");dbug.log("Story title: "+L);dbug.log("Comment summary: "+CURS.Social.fb.getParsedText($("newCommentForm").getElement("textarea[name=body]").get("value"),120,false));var K=(response.match("<status>success</status>"))?[{text:"Read this comment",href:(P.get("href").contains("http://"+document.domain))?P.get("href"):"http://"+document.domain+P.get("href")}]:null;var J="{*actor*} commented on this ";J+=(PageVars.get("pageType")==8301)?"blog post on CNET.":"story on CNET.";if(!Cookie.read("cnet_noFbPublish")){try{CURS.Social.fb.ensureInit(function(){FB.Connect.streamPublish("",{name:L,href:I,caption:J,description:CURS.Social.fb.getParsedText($("newCommentForm").getElement("textarea[name=body]").get("value"),4999,false)},K);},true);}catch(N){CURS.Social.fb.ensureActiveSession(function(){FB.ui({method:"stream.publish",display:"dialog",message:"",attachment:{name:L,href:I,caption:J,description:CURS.Social.fb.getParsedText($("newCommentForm").getElement("textarea[name=body]").get("value"),4999,false)},action_links:K,user_message_prompt:""});});}}});}};var G=function(K){K=K||'<span class="cnetInvite"><span><a>Log in or create an account</a> to post a comment</span></span>';if(!UserVars.isLoggedIn()){K+='<span class="or">, or </span><span class="fbConnectInvite" style="text-align:center;">quickly sign in with:<span id="gigyaComment" class="small gigyaWidget"></span></span>';}else{K+=".";}var H=$E("dd.invite")||(new Element("dd",{"class":"status invite reg",html:'<p class="message"></p>'}).inject($("addContainer").getElement("h3"),"after"));var J=H.getElement("p.message");J.empty();J.set("html",K);CURS.Social.gigya.init();D(J);var I;if((dbug.enabled||Browser.qs.jsdebug)&&CBSi.jsdebug){if(CBSi.jsdebug=="true"){I="http://publish.cnet.com:8100/html/rb/js/tron/oreo.login.js";}else{I="http://publish.cnet.com:8100/html/rb/js/~dev/"+CBSi.jsdebug+"/oreo.login.js";}}else{I="http://i.i.com.com/cnwk.1d/html/rb/js/tron/oreo.login.compressed.js";}if(!CURS.Process){new Asset.javascript(I,{id:"oreoLogin",onload:function(){CURS.Social.fb.init();$$(".connect2fbButton").addEvent("click",CURS.Social.fb.triggerLogin.pass(CURS.Social.fb.startSession));}});}else{CURS.Social.fb.init();$$(".connect2fbButton").addEvent("click",CURS.Social.fb.triggerLogin.pass(CURS.Social.fb.startSession));}};var B=function(){var H=$("fixedCommentBox").getElement("dd.invite");if(!$("fixedCommentBox").getElement("dd.welcome")){var I=new Element("dd",{"class":"status welcome",html:'<p>You are logged in as <span class="cnetUserName"></span>. Please leave a comment.'});if(H){I.replaces(H);}else{I.inject($("addContainer").getElement("h3"),"after");}}CURS.Manager.writeUserNames(I);};var D=function(H){if(!E){return false;}E=E.filter(function(J){return !!$(J);});var I=$(H).getElements("a");I=I.filter(function(J){return !E.contains(J);});I.addEvent("click",F);E.combine(I);};G();var A=function(){if(!UserVars.isLoggedIn()){G();}else{if(!UserVars.hasFullAccess()){G("Your account is not yet confirmed. <a>Click here to confirm your account.</a>");}else{if(!$chk(UserVars.get("userName"))){G("You'll need a CNET username in order to submit a review. <a>Click here to create a username.</a>");}else{B();if(!commentsForms.newComment){C();}}}}};CURS.Manager.addEvent("onLogin",function(){A();CURS.Manager.addEvent("onStateChange",function(){A();});});var E=$("fixedCommentBox").getElements(".status a, #new-body, #subComment");var F=function(H){var I={registerHed:"Join CNET to comment on this story",loginHed:"Log in to CNET to comment on this story",appId:"36",nextAction:function(){if(commentsForms.newComment){E.removeEvent("click",F);CURS.Manager.removeEvents("onStateChange");}}};if($(H.target).hasClass("fbConnectLink")||$(H.target).getParent(".fbConnectLink")){I.ursForm="fbconnect";}if(!$(H.target).hasClass("connect2fbButton")&&!$(H.target).getParent().hasClass("connect2fbButton")){CURS.Manager.checkLogin(I);}};E.addEvent("click",F);},initLinks:function(B){try{var C=(Browser.Engine.name=="trident");B=$(B)||$$(".commentwrapper")[0];B.getElements("a.reply").addEvent("click",function(E){CURS.Manager.checkLogin({registerHed:"Join CNET to reply to this comment",loginHed:"Log in to CNET to reply to this comment",appId:"36",nextAction:function(){commentsForms.reply.move($(E.target).getParent("dl").getElement(".toolstretch"));}});});if(!C){B.getElements("a.repo").store("tip:title","Report offensive content");var A=new Tips(B.getElements("a.repo"),{fixed:true,showDelay:1000,hideDelay:250,className:"tipWrap"});B.getElements("a.mail").store("tip:title","E-mail to a friend");var A=new Tips(B.getElements("a.mail"),{fixed:true,showDelay:1000,hideDelay:250,className:"tipWrap"});B.getElements("a.link").store("tip:title","Permalink to this comment");var A=new Tips(B.getElements("a.link"),{fixed:true,showDelay:1000,hideDelay:250,text:null,className:"tipWrap"});B.getElements("a.edit").store("tip:title","Edit message");var A=new Tips(B.getElements("a.edit"),{fixed:true,showDelay:1000,hideDelay:250,className:"tipWrap"});B.getElements("a.delete").store("tip:title","Delete message");var A=new Tips(B.getElements("a.delete"),{fixed:true,showDelay:1000,hideDelay:250,className:"tipWrap"});}else{B.getElements("a.repo").set("title","Report offensive content");B.getElements("a.mail").set("title","E-mail to a friend");B.getElements("a.link").set("title","Permalink to this comment");B.getElements("a.edit").set("title","Edit message");B.getElements("a.delete").set("title","Delete message");}B.getElements("a.repo").addEvent("click",function(E){CURS.Manager.checkLogin({registerHed:"Join CNET to report this comment",loginHed:"Log in to CNET to report to this comment",appId:"36",nextAction:function(){commentsForms.offensive.move($(E.target).getParent("dl").getElement(".toolstretch"));}});});B.getElements("a.mail").addEvent("click",function(E){CURS.Manager.checkLogin({registerHed:"Join CNET to e-mail this comment to a friend",loginHed:"Log in to CNET to e-mail this comment to a friend",appId:"36",nextAction:function(){commentsForms.emailAFriend.move($(E.target).getParent("dl").getElement(".toolstretch"));}});});this.initLike(B);B.getElements(".editForm").each(function(E){new CommentForm(E,{clone:false,submitElems:".submit.edit a.button",submissionType:"edit",closeElems:".submit.cancel a.close",firstParent:E.getParent(".toolstretch")});});B.getElements("a.edit").addEvent("click",function(F){var E=$(F.target).getParent("dl").getElement(".editForm").getElement("textarea").get("html");if(E){E=E.replace(/\n/g,"");$(F.target).getParent("dl").getElement(".editForm").getElement("textarea").set("value",E.replace(/&lt;br \/&gt;/g,"\n"));}$(F.target).getParent("dl").getElement(".editForm").retrieve("mobileForm").show();});B.getElements("a.delete").addEvent("click",function(E){commentsForms.adminDelete.move($(E.target).getParent("dl").getElement(".toolstretch"));});}catch(D){dbug.log("Error: "+D);}},initLike:function(B){this.pendingVotes=[];var C=(Browser.Engine.name=="trident");dbug.log("bad browser: ",C);if(Cookie.read("cnetPendingCommentVotes")){this.pendingVotes=Cookie.read("cnetPendingCommentVotes").split(",");}if(!C){B.getElements("a.like").store("tip:title","Click to like this comment");B.getElements("a.unlike").store("tip:title","Click to unlike this comment");var A=new Tips(B.getElements("a.like, a.unlike"),{fixed:true,showDelay:1000,hideDelay:250,className:"tipWrap"});}else{B.getElements("a.like").set("title","Click to like this comment");B.getElements("a.unlike").set("title","Click to unlike this comment");}B.getElements("a.like, a.unlike").addEvent("click",function(D){if(this.likeWaiter){this.likeWaiter.stop();}this.likeWaiter=new Waiter(D.target,{baseHref:"http://i.i.com.com/cnwk.1d/i/News/",img:{src:"commentsLikeLoader.gif",styles:{width:16,height:16}}});CURS.Manager.checkLogin({registerHed:"Join CNET to like this comment",loginHed:"Log in to CNET to like this comment",appId:221,cval:"assetrating",nextAction:function(){this.likeWaiter.start();this.sendLikeUnlikeRequest(D.target);}.bind(this)});}.bind(this));},sendLikeUnlikeRequest:function(E){var B=(E.hasClass("like"))?"8679":"8680";var D=E.getProperty("assetId");if(!E.hasClass("likethankyou")){var C=new Request.JSON({url:"/"+B+"-4_"+PageVars.get("siteId")+"-0.html",data:{assetId:(E.getProperty("assetId"))?D:null,assetTypeId:77,viewType:"json",assetVoteId:(E.hasClass("like"))?null:E.getProperty("assetVoteId")},onSuccess:function(J){if(J){J=J.response;if(J.status["$"]=="success"){new Jlogger({tag:(E.hasClass("like"))?"likeComment%":"unlikeComment%"}).ping();var K;var M;var I;J.data.datum.each(function(O){if(O["@name"]=="assetTypeId"){K=O["@value"];}if(O["@name"]=="assetVoteId"){M=O["@value"];}if(O["@name"]=="totalVotes"){I=O["@value"];}});E.setProperty("assetVoteId",M);E.set("text","Thank you!");E.addClass("likethankyou");this.likeWaiter.stop();this.setVoteNum(E,I);this.toggleLike.delay(3000,this,E);}else{if(J.errors.error["@name"]=="ALREADY_VOTED"){var G=new StickyWinFx({content:"You have already liked this comment",relativeTo:E,id:"alreadyVotedMsg",className:"voteResponse",position:"upperLeft",fadeDuration:500}).show();this.toggleLike(E);this.likeWaiter.stop();G.hide.delay(4000,G);}else{if(J.errors.error["@name"]=="REMOVE_PROBLEM"){var H=new StickyWinFx({content:"<b>Error: </b>There was a problem removing your vote. Please try again.",relativeTo:E,id:"removeProblemMsg",className:"voteResponse",position:"upperLeft",fadeDuration:500}).show();this.likeWaiter.stop();H.hide.delay(4000,H);}else{if(J.errors.error["@name"]=="SUBMIT_PROBLEM"){var L=new StickyWinFx({content:"<b>Error: </b>There was a problem submitting your vote. Please try again.",relativeTo:E,id:"submitProblemMsg",className:"voteResponse",position:"upperLeft",fadeDuration:500}).show();this.likeWaiter.stop();L.hide.delay(4000,L);}else{if(J.errors.error["@name"]=="NOT_OWNER"){var H=new StickyWinFx({content:"<b>Error: </b>You do not have a vote registered for this comment.",relativeTo:E,id:"removeProblemMsg",className:"voteResponse",position:"upperLeft",fadeDuration:500}).show();this.likeWaiter.stop();this.toggleLike(E);H.hide.delay(4000,H);}else{if(J.errors.error["@name"]=="REQUEST_PENDING"){var N=new StickyWinFx({content:"Thank you. Your vote will be posted to the website shortly.",relativeTo:E,id:"pendingMsg",className:"voteResponse",position:"upperLeft",fadeDuration:500}).show();this.pendingVotes.push(D);Cookie.write("cnetPendingCommentVotes",this.pendingVotes,{domain:".cnet.com",path:"/"});this.likeWaiter.stop();E.set("text","Thank you!");E.addClass("likethankyou");N.hide.delay(4000,N);}}}}}}}}.bind(this),onFailure:function(){var G=new StickyWinFx({content:"<b>Error: </b>There was a problem submitting your vote. Please try again.",relativeTo:E,id:"submitProblemMsg",className:"voteResponse",position:"upperLeft",fadeDuration:500}).show();this.likeWaiter.stop();G.hide.delay(4000,G);}.bind(this)});if(!Cookie.read("cnetPendingCommentVotes")){C.send();}else{var A=Cookie.read("cnetPendingCommentVotes");A=A.split(",");if(A.indexOf(D)==-1){C.send();}else{var F=new StickyWinFx({content:"Thank you. Your vote will be posted to the website shortly.",relativeTo:E,id:"pendingMsg",className:"voteResponse",position:"upperLeft",fadeDuration:500}).show();this.likeWaiter.stop();E.set("text","Thank you!");E.addClass("likethankyou");F.hide.delay(4000,F);}}}else{this.likeWaiter.stop();}},toggleLike:function(A){A.removeClass("likethankyou");if(A.hasClass("like")){A.set("html",'Unlike <span class="liked">'+A.getElement(".liked").get("text")+"</span>");A.store("tip:title","Click to unlike this comment");}else{A.set("html",'Like <span class="liked">'+A.getElement(".liked").get("text")+"</span>");A.store("tip:title","Click to like this comment");}A.toggleClass("like");A.toggleClass("unlike");},setVoteNum:function(B,A){if(A>0){B.adopt(new Element("span",{"class":"liked"}).set("html","("+A+")"));}}});function postInitializeComments(){$$("a.ajaxreplies").addEvent("click",function(C){var B=this;var A=$(C.target).hasClass("community");new ContentUpdater("commentsRepliesUpdater",{".commentsInlineRepliesAllAjax":{element:$(B).getParent("dd").getPrevious("dd.replieswrapper"),insert:"append",onRequest:function(){if(!this.waiter){this.waiter=new Waiter($(B));}this.waiter.start();},onComplete:function(){if(this.waiter){this.waiter.stop();}},onSuccess:function(){$(B).getParent().dispose();commentsForms.initialize=new initializeComments();}}},{url:PageVars.getPath({pageType:(A?8614:8618),pageNumber:false}),data:(A?{assetTypeId:$(B).getParent("dl").getPrevious("a").get("assetTypeId"),messageId:$(B).getParent("dl").getPrevious("a").get("name"),orderBy:"creationDate",start:(PageVars.get("siteId")==7)?0:10}:{targetCommunityId:$(B).getParent("dl").getPrevious("a").get("targetCommunity"),messageId:$(B).getParent("dl").getPrevious("a").get("name"),orderBy:"creationDate",start:(PageVars.get("siteId")==7)?0:10})}).send();});}window.addEvent("domready",function(){if(!$$(".postTalkback")[0]||$$(".postTalkback")[0].get("html").trim()){commentsForms.initialize=new initializeComments();postInitializeComments();}else{new Request({url:PageVars.getPath({pageType:8614,pageNumber:false})+"?assetTypeId="+(PageVars.get("pageType")=="1606"?"14":"12")+"&nomesh"+(PageVars.get("communityId")?"&formCommunityId="+PageVars.get("communityId"):"")+(PageVars.get("targetCommunityId")?"&formTargetCommunityId="+PageVars.get("targetCommunityId"):""),onSuccess:function(A){$$(".postTalkback").set("html",A);commentsForms.initialize=new initializeComments();postInitializeComments();}}).send();}});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");});if(Browser.Engine.trident4){location.href="/3457-19874_1-0.html?pagename=browserinfo_mylists";}if(/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)){var ffversion=new Number(RegExp.$1);if(ffversion<=2){location.href="/3457-19874_1-0.html?pagename=browserinfo_mylists";}}window.addEvent("domready",function(){$$(".addToList").each(function(S){S.addEvent("click",function(){UserLists.Manager.getUserListModal("AddToList",S);});});new UserListPublic();new AssetRatings({voteButtons:".socialLinks a.like, .socialLinks a.unlike"});var K=function(){var S=$("overviewHead").getElement(".byline").get("text");if(S.contains("Recommendations List")){return"Recommendations List";}else{if(S.contains("Wish List")){return"Wish List";}else{if(S.contains("Research List")){return"Research List";}else{return"list";}}}};$$(".contentTools a.share").each(function(S){S.addEvent("mouseenter",PageTools.openShare.bind(PageTools));});$$(".contentTools a.print").each(function(S){S.addEvent("click",function(W){W.stop();if(!Browser.Engine.trident){var U;if(!$("printIframe")){U=new Element("iframe",{src:"/3463-1_1-"+PageVars.get("assetId")+".html?nomesh",style:"margin-left:-3000px;visibility:hidden;",id:"printIframe",name:"printIframe"}).inject(document.body);}var T=function V(){if($("printIframe").contentWindow.document.body&&$("printIframe").contentWindow.document.body.innerHTML!=""){dbug.log("print!");window.frames.printIframe.focus();if(!Browser.Engine.webkit){window.frames.printIframe.print();}}else{setTimeout(T,100);}};T();}else{window.open("/3463-1_1-"+PageVars.get("assetId")+".html?nomesh");}});});if($defined($("installPopup"))){var I=new ConfirmPopup({content:$("installPopup")});}if($defined($("errorPopup"))){var J=new ErrorPopup({content:$("errorPopup")});}if($defined($("loadingPopup"))){var N=new ErrorPopup({content:$("loadingPopup")});}$$(".batchActionBox input").addEvent("click",function(){var S=0;$$(".batchActionBox input").each(function(T){if(T.checked){S+=1;T.getParent(".product").getElement("ul.downloadNow").setStyle("display","none");T.getParent(".product").getElement(".productSelected").setStyle("display","block");}else{S-=0;T.getParent(".product").getElement("ul.downloadNow").setStyle("display","block");T.getParent(".product").getElement(".productSelected").setStyle("display","none");}});if(S>=1){$$(".batchActivities").each(function(T){T.disabled=false;});return ;}else{if(S<=0){$$(".batchActivities").each(function(T){T.disabled=true;});}else{return ;}}});var H=Cookie.read("TT_DefaultMachine");var O=Cookie.read("TT_DefaultMachinePlatform");$$(".goBtn").addEvent("click",function(){var S=false;$$(".batchActivities").each(function(T){if($(T).get("value")=="downloadItems"){$(T).set("value","activities");G();}else{if($(T).get("value")=="smartInstall"){$(T).set("value","activities");$$(".batchActionBox input:checked").each(function(V){if(Cookie.read("tt_installPopup")===null||Cookie.read("tt_installPopup")==="true"){S=true;}});if(S){$$("#smartInstallListItems li").dispose();I.show();$$(".batchActionBox input:checked").each(function(W){var Y=$(W).get("id");var X=$(W).get("value");var V=new Element("li",{id:Y,html:X});V.inject("smartInstallListItems");});}else{P();}}else{if($(T).get("value")=="addToList"){$(T).set("value","activities");var U=[];$$(".batchActionBox input").each(function(V){if(V.checked){U.push($(V).getParent(".product"));}});UserLists.Manager.getUserListModal("AddToList",U);}}}});});if($defined($("installPopup"))){var I=new ConfirmPopup({content:$("installPopup")});$$("#installPopup #yesButtonInstall").addEvent("click",function(){P();});$$("#installPopup #downButton").addEvent("click",function(){B();});function P(){var S="";if(I.triggerID!==undefined){S="&ids="+I.triggerID;}else{$$(".batchActionBox input").each(function(V){if(V.checked){var U=$(V).get("id");S+="&ids="+U;}});}if(S==""){$$("#errorPopup h2").set("text","Unable to Smart Install selected Products");var T="This action cannot be performed on the selected products.";$$("#errorPopup p.errorMsg").set("text",T);J.show();}else{ttAjaxCall(S,"DLNINST","performPlusOperation",H,1);}$$(".batchActionBox input").each(function(U){U.checked=false;});checkRadioButtons();}function G(){var S="";if(I.triggerID!==undefined){S="&ids="+I.triggerID;}else{$$(".batchActionBox input").each(function(V){if(V.checked){var U=$(V).get("id");S+="&ids="+U;}});}if(S==""){$$("#errorPopup h2").set("text","Unable to Download selected Products");var T="This action cannot be performed on the selected products.";$$("#errorPopup p.errorMsg").set("text",T);J.show();}else{ttAjaxCall(S,"DL","performPlusOperation",H,1);}$$(".batchActionBox input").each(function(U){U.checked=false;});checkRadioButtons();}function B(){var S="";if(I.triggerID!==undefined){S="&ids="+I.triggerID;}else{$$(".batchActionBox input").each(function(V){if(V.checked){var U=$(V).get("id");S+="&ids="+U;}});}if(S==""){$$("#errorPopup h2").set("text","Unable to Download and Open selected Products");var T="This action cannot be performed on the selected products.";$$("#errorPopup p.errorMsg").set("text",T);J.show();}else{ttAjaxCall(S,"DLNOPEN","performPlusOperation",H,1);}$$(".batchActionBox input").each(function(U){U.checked=false;});checkRadioButtons();}}$$("ul.downloadNow a.paidAction").addEvent("click",function(Y){Y.stop();var S=this.getProperty("name");var U=this.getProperty("id");var W=this.getProperty("class");switch(W){case"paidDownloadNow paidAction":ttAjaxCall("&ids="+U,"DL","performPlusOperation",H,1);break;case"paidSmartInstall paidAction":if(Cookie.read("tt_installPopup")===null||Cookie.read("tt_installPopup")==="true"){$$("#smartInstallListItems li").dispose();I.triggerID=U;I.show();var X=U;var V=S;var T=new Element("li",{id:X,html:V});T.inject("smartInstallListItems");}else{ttAjaxCall("&ids="+U,"DLNINST","performPlusOperation",H,1);}break;}});function L(Y){var X="";var U="&ids="+$$(Y).getProperty("id");var T=$$(Y).getProperty("version");var W=$$(Y).getProperty("platform");var S="/3452-1_1-0.html?action=isProductInstalled&nomesh&machineId="+H+U;var V=new Request.JSON({method:"get",async:true,url:S,onRequest:function(){},onSuccess:function(Z){var a=Z.result.CNETResponse.HasSoftwareReport.User.UseTtAsDlmPreference;if((Cookie.read("tt_dlmEnabled")==="true")||(a==="true")){$$(Y).addEvent("click",function(f){f.stop();var d="&ids="+this.getParent(".ttPlusDownloadNow").getProperty("id");ttAjaxCall(d,"DL","performPlusOperation",H,4);});}var b=Z.result.CNETResponse.HasSoftwareReport.Machine;if(b){var c=Z.result.CNETResponse.HasSoftwareReport.Machine.Software.Product.outOfDate;if(c==="false"){$$(Y).getParent(".downloadNow").getElement(".showSmartInstall").setStyle("display","none");$$(Y).getParent(".downloadNow").getElement(".showInstalled").setStyle("display","block");}else{}}else{if(O==W){}else{$$(Y).getParent(".downloadNow").getElement(".showSmartInstall").setStyle("display","none");$$(Y).getParent(".downloadNow").getElement(".notInstallable").setStyle("display","block");}}},onFailure:function(Z){X="Unknown Failure Error "+Z;}}).send();}if((UserVars.isLoggedIn()&&Cookie.read("TT_isPaidUser")==="true")||(UserVars.isLoggedIn()&&Cookie.read("TT_isPaidUser")==="false")){$$(".showBasic").setStyle("display","none");$$(".showPlus").setStyle("display","block");$$(".batchActionsDiv").setStyle("display","inline");$$(".expandOptions").addClass("left");$$(".paidDownloadNow").each(function(S){L(S);});}else{$$(".showPlus").setStyle("display","none");$$(".showBasic").setStyle("display","block");}var D="ML_ExpandTab";function F(){this.getParent(".product").setStyles({padding:"10px 0 0 0",height:"auto"});}function R(){this.getParent(".product").setStyles({padding:"10px 0",height:"50px"});}$$(".moreInfoButton").addEvent("click",function(){if(this.getParent(".moreInfo").hasClass("blueButton")){this.setStyle("background-position","right 0px");this.getParent(".moreInfo").removeClass("blueButton");this.getParent(".productInfoFullWrap").getParent(".product").getElement(".moreInfoExpanded").setStyle("display","none");this.getParent(".productInfoFullWrap").getElement(".imageTitleWrap").setStyles({padding:"0 0 0 0"});var T=R.bind(this);T();}else{this.setStyle("background-position","right -12px");this.getParent(".moreInfo").addClass("blueButton");this.getParent(".productInfoFullWrap").getParent(".product").getElement(".moreInfoExpanded").setStyle("display","block");this.getParent(".productInfoFullWrap").getElement(".imageTitleWrap").setStyles({padding:"0 0 10px 0"});var S=F.bind(this);S();}});$$(".expandomatic").addEvent("click",function(S){S.stop();if($("expandomatic").getElement("span").hasClass("expandable")){Cookie.write(D,"true",{path:"/",domain:".cnet.com"});$$(".expandomatic").getElement("span").removeClass("expandable");$$(".expandomatic").getElement("span").addClass("collapsable");$$(".expandomatic").getElement("span").set("text","Close All Info & Specs");$$(".expandOptions").setStyle("margin-left","135px");$$(".productInfoFullWrap").each(function(T){T.getElement(".moreInfo").addClass("blueButton");T.getElement(".moreInfoButton").setStyle("background-position","right -12px");T.getParent(".product").getElement(".moreInfoExpanded").setStyle("display","block");T.getElement(".imageTitleWrap").setStyles({padding:"0 0 10px 0"});var U=F.bind(T);U();});}else{Cookie.write(D,"false",{path:"/",domain:".cnet.com"});$$(".expandomatic").getElement("span").removeClass("collapsable");$$(".expandomatic").getElement("span").addClass("expandable");$$(".expandomatic").getElement("span").set("text","Expand All Info & Specs");$$(".expandOptions").setStyle("margin-left","128px");$$(".productInfoFullWrap").each(function(T){T.getElement(".moreInfoButton").setStyle("background-position","right 0px");T.getElement(".moreInfo").removeClass("blueButton");T.getParent(".product").getElement(".moreInfoExpanded").setStyle("display","none");T.getElement(".imageTitleWrap").setStyles({padding:"0 0 0 0"});var U=R.bind(T);U();});}});$$(".contractMoreInfoBox").addEvent("click",function(T){T.stop();this.getParent(".product").getElement(".moreInfo").removeClass("blueButton");this.getParent(".product").getElement(".moreInfoButton").setStyle("background-position","right 0px");this.getParent(".product").getElement(".moreInfoExpanded").setStyle("display","none");this.getParent(".product").getElement(".imageTitleWrap").setStyles({padding:"0 0 0 0"});var S=R.bind(this);S();});var A=new Jlogger({ontid:"4",siteId:"1",ptId:"3461",tag:"loadCommentsList",element:window,event:"load",fireOnce:true});var C=new Jlogger({ontid:"4",siteId:"1",ptId:"3461",tag:"submitReply",element:"subReply",event:"click"});var Q=new Jlogger({ontid:"4",siteId:"1",ptId:"3461",tag:"submitEdit",element:"subEdit",event:"click"});var M=new Jlogger({ontid:"4",siteId:"1",ptId:"3461",tag:"submitDelete",element:"subDelete",event:"click"});var E=new Replyer();$$(".toolTipElement2").each(function(T){var S=T.get("title");S=(S)?S.split("::"):null;if(S){T.store("tip:title",S[0]);if(S[1]){T.store("tip:text",S[1]);}}});new Tips(".toolTipElement2",{className:"cnetTip"});});var UserListPublic=new Class({Implements:Options,options:{listItemProdInfo:{prodInfoWrap$$:".prodExpandedInfo",prodInfoTabs$$:".prodExpandedInfoTabs li",prodInfoTabActiveClass:"active",prodInfoExpandedClass:"expanded",prodInfoCloseBtn$$:".closeInfo"},listItems$$:"#productList .listItem"},initialize:function(A){this.setOptions(A);if(this.options.listItemProdInfo!=null){$$(this.options.listItems$$).each(function(B){this.initListItemProdInfo(B.getElement(this.options.listItemProdInfo.prodInfoWrap$$),B.getElements(this.options.listItemProdInfo.prodInfoTabs$$));}.bind(this));}if($("userListEmailForm")){this.initEmailForm();}},initListItemProdInfo:function(B,A){var C=new Fx.Reveal(B,{duration:500,mode:"vertical"});A.each(function(D){D.addEvent("click",this.expandProdInfo.bind(this,[D,B,C]));}.bind(this));B.getElement(this.options.listItemProdInfo.prodInfoCloseBtn$$).addEvent("click",function(D){this.hideProdInfo(D.target,B,C);}.bind(this));},initEmailForm:function(){dbug.log("email form");new ModalForm(".email",{reauthenticate:false,counterFields:{field:["textarea[name=message]"],counter:[".bodyCount"]},popupContents:$("userListEmailForm"),modalId:"emailUserList",resetOnClose:true,clearOnReset:true,useCaptcha:false,onFormSubmitSuccess:function(B){if(B){var D=JSON.decode(B).response;if(D.result["$"]=="failure"){if($$(".emailFail").length>0){var C=$$(".emailFail")[0];}else{var C=new Element("div",{"class":"validation-advice emailFail"});}C.set("html","<b>Error: </b>"+D.message["$"]);if(D.message["$"]=="You did not successfully enter the characters in the verification box."){C.inject($("captcha"),"before");}else{C.inject($("emailUserList").getElement("form"),"before");}}else{if(D.result["$"]=="success"){var A=new Element("div",{"class":"emailSuccess"}).set("html","Thank you. "+D.message["$"]);A.inject($("emailUserList").getElement("form"),"before");if($$(".emailFail").length>0){$$(".emailFail").dispose();}$("emailUserList").getElement("form").setStyle("display","none");this.modalForm.hide.delay(4000,this.modalForm);}}}},onFormSubmitFail:function(){dbug.log("form not sent");}});},expandProdInfo:function(D,A,C){dbug.log("expand product info");var B=D.getParent(".listItem");if(!B.hasClass(this.options.listItemProdInfo.prodInfoExpandedClass)){D.getParent(".listItem").addClass(this.options.listItemProdInfo.prodInfoExpandedClass);}D.getParent("ul").getChildren().removeClass(this.options.listItemProdInfo.prodInfoTabActiveClass);A.getChildren().setStyle("display","none");A.getElement(this.options.listItemProdInfo.prodInfoCloseBtn$$).setStyle("display","block");A.getElement("."+D.getProperty("class")).setStyle("display","block");D.addClass(this.options.listItemProdInfo.prodInfoTabActiveClass);if(Browser.Engine.trident4){A.setStyle("display","inline-block");$$(this.listItems,".premiereBrand").setStyle("position","static");$$(this.listItems,".premiereBrand").setStyle("position","relative");}else{C.reveal();}},hideProdInfo:function(D,A,C){var B=D.getParent(".listItem");B.removeClass(this.options.listItemProdInfo.prodInfoExpandedClass);D.removeClass(this.options.listItemProdInfo.prodInfoTabActiveClass);if(!Browser.Engine.trident4){C.dissolve();}else{A.setStyle("display","none");}this.listItems.setStyle("position","static");this.listItems.setStyle("position","relative");}});var AssetRatings=new Class({Implements:Options,options:{voteButtons:""},initialize:function(A){this.setOptions(A);this.voteButtons=$$(this.options.voteButtons);this.voteButtons.addEvent("click",function(B){if(this.likeWaiter){this.likeWaiter.stop();}this.likeWaiter=new Waiter(B.target,{baseHref:"http://i.i.com.com/cnwk.1d/i/News/",img:{src:"commentsLikeLoader.gif",styles:{width:16,height:16}}});CURS.Manager.checkLogin({registerHed:"Join CNET to like this list",loginHed:"Log in to CNET to like this list",appId:221,cval:"assetrating",nextAction:function(){this.likeWaiter.start();this.sendLikeUnlikeRequest(B.target);}.bind(this)});}.bind(this));},sendLikeUnlikeRequest:function(E){var B=(E.hasClass("like"))?"8679":"8680";var D=E.getProperty("assetId");if(!E.hasClass("likethankyou")){var C=new Request.JSON({url:"/"+B+"-4_"+PageVars.get("siteId")+"-0.html",data:{assetId:(E.getProperty("assetId"))?D:null,assetTypeId:78,viewType:"json",assetVoteId:(E.hasClass("like"))?null:E.getProperty("assetVoteId")},onSuccess:function(F){if(F){F=F.response;if(F.status["$"]=="success"){this.submitSuccess(E,F);}else{switch(F.errors.error["@name"]){case"ALREADY_VOTED":this.submitFailure(E,"You have already liked this list");break;case"REMOVE_PROBLEM":this.submitFailure(E,"<b>Error: </b>There was a problem removing your vote. Please try again.");break;case"SUBMIT_PROBLEM":this.submitFailure(E,"<b>Error: </b>There was a problem submitting your vote. Please try again.");break;case"NOT_OWNER":this.submitFailure(E,"<b>Error: </b>You do not have a vote registered for this comment.");break;case"REQUEST_PENDING":this.submitFailure(E,"Thank you. Your vote will be posted to the website shortly.");this.pendingVotes.push(D);Cookie.write("cnetPendingCommentVotes",this.pendingVotes,{domain:".cnet.com",path:"/"});E.set("text","Thank you!");E.addClass("likethankyou");break;}}}}.bind(this),onFailure:function(){this.submitFailure(E,"<b>Error: </b>There was a problem submitting your vote. Please try again.");}.bind(this)});if(!Cookie.read("cnetPendingCommentVotes")){C.send();}else{var A=Cookie.read("cnetPendingCommentVotes");A=A.split(",");if(A.indexOf(D)==-1){C.send();}else{this.submitFailure(E,"Thank you. Your vote will be posted to the website shortly.");E.set("text","Thank you!");E.addClass("likethankyou");}}}else{this.likeWaiter.stop();}},submitSuccess:function(E,B){new Jlogger({tag:(E.hasClass("like"))?"likeUserList":"unlikeUserList"}).ping();var C;var D;var A;B.data.datum.each(function(F){if(F["@name"]=="assetTypeId"){C=F["@value"];}if(F["@name"]=="assetVoteId"){D=F["@value"];}if(F["@name"]=="totalVotes"){A=F["@value"];}});E.setProperty("assetVoteId",D);E.set("text","Thank you!");E.addClass("likethankyou");this.likeWaiter.stop();this.setVoteNum(E,A);this.toggleLike.delay(3000,this,E);},submitFailure:function(B,A){var C=new StickyWinFx({content:A,relativeTo:B,id:"assetVoteFail",className:"voteResponse",position:"upperLeft",fadeDuration:500}).show();this.toggleLike(B);this.likeWaiter.stop();C.hide.delay(4000,C);C.destroy.delay(5000,C);},toggleLike:function(A){A.removeClass("likethankyou");if(A.hasClass("like")){A.set("text","Unlike this");A.store("tip:title","Click to unlike this list");}else{A.set("text","Like this");A.store("tip:title","Click to like this list");}A.toggleClass("like");A.toggleClass("unlike");},setVoteNum:function(B,A){if(B.getParent().getElement("span.liked")){var D="people like";var C=B.getParent().getElement("span.liked");if(A==1){D="person likes";}C.set("html","<b>"+A+"</b> "+D+" this list");}else{new Element("span",{"class":"liked"}).set("html","<b>1</b> person likes this list").inject(B.getParent(),"bottom");}}});
   }
       
