
   if(!dbugScripts("download",["download.tron.techtracker.js"])) {
   /*	download.tron.techtracker.js - packed	*/
       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){}})();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 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");}})});function $get(C,A){var D="";var B="";if(arguments.length<2){A=location.href;}if(arguments.length>0&&C!=""){if(C=="#"){D=new RegExp("[#]([^$]*)");}else{if(C=="?"){D=new RegExp("[?]([^#$]*)");}else{D=new RegExp("[?&]"+C+"=([^&#]*)");}}B=D.exec(A);return(B===null)?"":B[1];}else{A=A.split("?");B={};if(A.length>1){A=A[1].split("#");if(A.length>1){B.hash=A[1];}A[0].split("&").each(function(F,E){F=F.split("=");B[F[0]]=F[1];});}return B;}}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 CommMarketingPopup=new Class({Extends:GlobalModal,Implements:[Options,Events],options:{content:$("generalPopup"),popupType:"generalPopup",sequence:0},initialize:function(A){this.setOptions(A);this.parent({content:$(this.options.content)});this.popupType=this.options.popupType;this.sequence=this.options.sequence;var B="TT_"+this.popupType;if(Cookie.read(B)===null){Cookie.write(B,(this.sequence),{path:"/",domain:".cnet.com",duration:1825});}$(this.popupType).getElements("a.closeSticky").addEvent("click",function(){Cookie.write(B,(this.sequence+1),{path:"/",domain:".cnet.com",duration:1825});}.bind(this));},checkCookies:function(A,C){var B="TT_"+A;if(Cookie.read(B)==C){this.show();}else{return ;}}});var WelcomePopup=new Class({Extends:GlobalModal,Implements:[Options,Events],options:{content:$("welcomePopup")},initialize:function(A){this.setOptions(A);this.parent({content:$(this.options.content)});$("welcomeCloseBtn").addEvent("click",function(){Cookie.write("tt_welcomeComplete","true",{path:"/",domain:".cnet.com",duration:1825});});$$("#welcomePopup .closeModal").addEvent("click",function(){Cookie.write("tt_welcomeComplete","true",{path:"/",domain:".cnet.com",duration:1825});});}});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 AlertHandler=new Class({Implements:Options,options:{triggers:{popup:"moreOptions",allAlerts:".allAlerts",singleAlert:".singleAlert"},action:{setSingle:"setSingleAlert",setAll:"setAllAlerts"},content:"alertPrefs",pingUrl:"/3452-1_1-0.html"},initialize:function(){dbug.log("AlertHandler initializing...");var A=new GlobalModal({content:$(this.options.content),onInit:this.updateGlobalPrefs()});this.triggerPop=$(this.options.triggers.popup);this.triggerPop.addEvent("change",function(){if(this.triggerPop.get("value")=="alertPreferences"){A.show();this.triggerPop.set("value","moreOptions");}}.bind(this));this.triggerAll=$$(this.options.triggers.allAlerts);this.triggerAll.each(function(B){B.addEvent("click",this.updateAllAlerts.pass(B,this));}.bind(this));this.triggerSingle=$$(this.options.triggers.singleAlert);this.triggerSingle.each(function(B){B.addEvent("click",this.updateSingleAlert.pass(B,this));}.bind(this));},updateSingleAlert:function(C){this.updateGlobalPrefs();var D=C.getParent("div.product").getProperty("entry");var B=(C.value=="YES_ALERT")?"turnOn":"turnOff";var A=new Link(this.options.pingUrl).setQueryString({nomesh:"true",action:this.options.action.setSingle,onOffSelector:B,entryId:D}).get("href");this.pingForAlerts(A);},updateGlobalPrefs:function(){var A=$E(".settingsRadio input[value=YES_ALERT]").checked;var B=true;$$(".settingsRadio input[value=YES_ALERT]").each(function(C){if(C.checked!=A){B=false;}});if(B&&A){$("allAlertsOn").checked=true;}else{if(B&&!A){$("allAlertsOff").checked=true;}else{$("allAlertsManual").checked=true;}}},updateAllAlerts:function(F){var D=F.get("value");if(D!="MANUAL"){var B=(D=="YES_ALL");var C=B?"YES_ALERT":"NO_ALERT";var E=$E("div.softwareListHead").getProperty("mid");$$(".settingsRadio input[value="+C+"]").each(function(G){G.checked=true;});var A=new Link(this.options.pingUrl).setQueryString({nomesh:"true",action:this.options.action.setAll,machineId:E,alertAllSelector:B}).get("href");this.pingForAlerts(A);}},pingForAlerts:function(A){new Request({method:"get",url:A}).send();}});var AutoDownloadHandler=new Class({Implements:Options,options:{triggers:{singleAlert:".singleAuto"},action:{setSingle:"autoUpdate"},pingUrl:"/3452-1_1-0.html"},initialize:function(){dbug.log("AutoDownloadHandler initializing...");this.triggerSingle=$$(this.options.triggers.singleAlert);this.triggerSingle.each(function(A){A.addEvent("click",this.updateSingleAlert.pass(A,this));}.bind(this));},updateSingleAlert:function(B){var D=B.getParent("div.product").getProperty("entry");var C=B.getProperty("value");var A=new Link(this.options.pingUrl).setQueryString({setting:C,nomesh:"true",action:this.options.action.setSingle,entryId:D}).get("href");this.pingForAlerts(A);},pingForAlerts:function(A){new Request({method:"get",url:A}).send();}});var ChangeCompHandler=new Class({Implements:Options,options:{modalContent:{init:"changeComp",conf:"changeCompConf",done:"changeCompDone"},triggers:{initial:"moreOptions",removeComp$$:".rmComp",removeCompYes:"rmCompYes"},confMsgs:{remMsg:"#changeCompConf p.remMsg",changeSure:"#changeCompConf p.changeSure",confLoc:"rmCompWrap",doneMsg:"#changeCompDone p.doneMsg"},pingUrl:"/3452-1_1-0.html",action:"removeComputer",cookies:{machine:"TT_DefaultMachine",trialSid:"TT_TrialSid",trialMid:"TT_TrialMid"}},initialize:function(){dbug.log("ChangeCompHandler initializing...");this.changeCompPopup=new GlobalModal({content:$(this.options.modalContent.init),onInit:this.initCompRemoval()});this.triggerPop=$(this.options.triggers.initial);this.triggerPop.addEvent("change",function(){if(this.triggerPop.get("value")=="manageComputers"){this.changeCompPopup.show();this.triggerPop.set("value","moreOptions");}}.bind(this));},initCompRemoval:function(){$$(this.options.triggers.removeComp$$).each(function(A){A.addEvent("click",this.createConfPopup.pass(A,this));}.bind(this));},createConfPopup:function(C){var B=C.getProperty("rmid");var A=C.getProperty("rmname");this.changeCompPopup.hide();this.confPopup=new GlobalModal({content:$(this.options.modalContent.conf),onInit:this.buildConfMsg(A,B)}).show();},buildConfMsg:function(A,B){if($E(this.options.confMsgs.remMsg)){$E(this.options.confMsgs.remMsg).dispose();}if($E(this.options.confMsgs.changeSure)){$E(this.options.confMsgs.changeSure).dispose();}new Element("p",{"class":"remMsg",html:'Removing "'+A+'" from TechTracker means your system will no longer be scanned by TechTracker.  <b>The software for this computer will no longer be tracked.</b>'}).inject($(this.options.confMsgs.confLoc),"before");new Element("p",{"class":"changeSure",html:'Are you sure you wish to remove "'+A+'"?'}).inject($(this.options.confMsgs.confLoc),"before");$(this.options.triggers.removeCompYes).addEvent("click",this.execRemoveComp.pass([A,B],this));},execRemoveComp:function(B,C){var A=new Link(this.options.pingUrl).setQueryString({action:this.options.action,machineId:C}).get("href");new Request({method:"post",url:A,onRequest:this.confPopup.hide(),onSuccess:this.buildDoneMsg(B)}).send();},buildDoneMsg:function(F){if($defined($$(this.options.confMsgs.doneMsg))){$$(this.options.confMsgs.doneMsg).dispose();}new Element("p",{"class":"doneMsg",html:'<b>"'+F+'"</b> has been successfully removed from TechTracker.'}).inject($("returnTo"),"before");try{var B=$E(".loggedIn a.techtracker");if(B){B=B.retrieve("techtrackheader");}if(B){B.removeCookie.apply(B);}var D=this.options.cookies.machine;var E=this.options.cookies.trialSid;var A=this.options.cookies.trialMid;var C=document.location.hostname.split(".");C=C[C.length-2]+"."+C[C.length-1];this.deleteOldCookies(D,C);this.deleteOldCookies(E,C);this.deleteOldCookies(A,C);this.deleteOldCookies("TT_DefaultMachine",C);}catch(G){dbug.log("TechTracker cookie removal issue: %o",G);}new GlobalModal({content:$(this.options.modalContent.done)}).show();},deleteOldCookies:function(B,C){var A=new Cookie(B);if(A.read()!==null){A.dispose();}A=new Cookie(B,{domain:C});if(A.read()!==null){A.dispose();}A=new Cookie(B,{path:"/"});if(A.read()!==null){A.dispose();}A=new Cookie(B,{domain:C,path:"/"});if(A.read()!==null){A.dispose();}}});var RemoveCompHandler=new Class({Implements:Options,options:{modalContent:{init:"removeComp",conf:"removeCompConf",done:"removeCompDone"},triggers:{removeComp$$:".rmComp",removeCompYes:"rmCompYes2",removeCompNo:"rmCompNo2"},confMsgs:{remMsg:"#removeCompConf p.remMsg",changeSure:"#removeCompConf p.changeSure",confLoc:"rmCompWrap2",doneMsg:"#removeCompDone p.doneMsg"},pingUrl:"/3452-1_1-0.html",action:"removeComputer",cookies:{machine:"TT_DefaultMachine",trialSid:"TT_TrialSid",trialMid:"TT_TrialMid"}},initialize:function(){dbug.log("RemoveCompHandler initializing...");this.removeCompPopup=new GlobalModal({content:$(this.options.modalContent.init),onInit:this.initCompRemoval()}).show();},initCompRemoval:function(){$$(this.options.triggers.removeComp$$).each(function(A){A.addEvent("click",this.createConfPopup.pass(A,this));}.bind(this));},createConfPopup:function(C){var B=C.getProperty("rmid");var A=C.getProperty("rmname");this.removeCompPopup.hide();this.execRemoveComp(A,B,this);},buildConfMsg:function(A,B){if($defined($$(this.options.confMsgs.changeSure))){$$(this.options.confMsgs.changeSure).dispose();}new Element("p",{"class":"changeSure",html:'Remove "'+A+'"?'}).inject($(this.options.confMsgs.confLoc),"before");$(this.options.triggers.removeCompYes).addEvent("click",this.execRemoveComp.pass([A,B],this));},execRemoveComp:function(B,C){var A=new Link(this.options.pingUrl).setQueryString({action:this.options.action,machineId:C}).get("href");new Request({method:"post",url:A,onSuccess:this.buildDoneMsg(B,C)}).send();},buildDoneMsg:function(F,H){if($defined($$(this.options.confMsgs.doneMsg))){$$(this.options.confMsgs.doneMsg).dispose();}new Element("p",{"class":"doneMsg",html:'<b>"'+F+'"</b> has been successfully removed from TechTracker.'}).inject($("returnTo2"),"before");try{var B=$E(".loggedIn a.techtracker");if(B){B=B.retrieve("techtrackheader");}if(B){B.removeCookie.apply(B);}var D=this.options.cookies.machine;var E=this.options.cookies.trialSid;var A=this.options.cookies.trialMid;var C=document.location.hostname.split(".");C=C[C.length-2]+"."+C[C.length-1];if(Cookie.read(D)===H){this.deleteOldCookies(D,C);}this.deleteOldCookies(E,C);this.deleteOldCookies(A,C);this.deleteOldCookies("TT_DefaultMachine",C);}catch(G){dbug.log("TechTracker cookie removal issue: %o",G);}new GlobalModal({content:$(this.options.modalContent.done)}).show();},deleteOldCookies:function(B,C){var A=new Cookie(B);if(A.read()!==null){A.dispose();}A=new Cookie(B,{domain:C});if(A.read()!==null){A.dispose();}A=new Cookie(B,{path:"/"});if(A.read()!==null){A.dispose();}A=new Cookie(B,{domain:C,path:"/"});if(A.read()!==null){A.dispose();}}});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();}
/*
	Slimbox v1.71 - The ultimate lightweight Lightbox clone
	(c) 2007-2009 Christophe Beyls <http://www.digitalia.be>
	MIT-style license.
*/
var Slimbox=(function(){var f=window,N=Browser.Engine.trident4,U,G,g=-1,O,W,e,V,Y,m,S,M={},T=new Image(),k=new Image(),i,A,H,Q,j,E,h,C,a,l,X,I,D,c;f.addEvent("domready",function(){$(document.body).adopt($$(i=new Element("div",{id:"lbOverlay",events:{click:d}}),A=new Element("div",{id:"lbCenter"}),h=new Element("div",{id:"lbBottomContainer"})).setStyle("display","none"));H=new Element("div",{id:"lbImage"}).injectInside(A).adopt(Q=new Element("div",{styles:{position:"relative"}}).adopt(j=new Element("a",{id:"lbPrevLink",href:"#",events:{click:b}}),E=new Element("a",{id:"lbNextLink",href:"#",events:{click:F}})));C=new Element("div",{id:"lbBottom"}).injectInside(h).adopt(new Element("a",{id:"lbCloseLink",href:"#",events:{click:d}}),a=new Element("div",{id:"lbCaption"}),l=new Element("div",{id:"lbNumber"}),new Element("div",{styles:{clear:"both"}}));});function Z(){var n=f.getScroll(),o=f.getSize();$$(A,h).setStyle("left",n.x+(o.x/2));if(V){i.setStyles({left:n.x,top:n.y,width:o.x,height:o.y});}}function L(n){["object",N?"select":"embed"].forEach(function(p){Array.forEach(document.getElementsByTagName(p),function(q){if(n){q._slimbox=q.style.visibility;}q.style.visibility=n?"hidden":q._slimbox;});});i.style.display=n?"":"none";var o=n?"addEvent":"removeEvent";f[o]("scroll",Z)[o]("resize",Z);document[o]("keydown",P);}function P(o){var n=o.code;return U.closeKeys.contains(n)?d():U.nextKeys.contains(n)?F():U.previousKeys.contains(n)?b():false;}function b(){return B(W);}function F(){return B(e);}function B(n){if(n>=0){g=n;O=G[n][0];W=(g||(U.loop?G.length:0))-1;e=((g+1)%G.length)||(U.loop?0:-1);R();A.className="lbLoading";M=new Image();M.onload=K;M.src=O;}return false;}function K(){A.className="";D.set(0);H.setStyles({backgroundImage:"url("+O+")",display:""});Q.setStyle("width",M.width);$$(Q,j,E).setStyle("height",M.height);a.set("html",G[g][1]||"");l.set("html",(((G.length>1)&&U.counterText)||"").replace(/{x}/,g+1).replace(/{y}/,G.length));if(W>=0){T.src=G[W][0];}if(e>=0){k.src=G[e][0];}m=H.offsetWidth;S=H.offsetHeight;var p=Math.max(0,Y-(S/2)),n=0,o;if(A.offsetHeight!=S){n=I.start({height:S,top:p});}if(A.offsetWidth!=m){n=I.start({width:m,marginLeft:-m/2});}o=function(){h.setStyles({width:m,top:p+S,marginLeft:-m/2,visibility:"hidden",display:""});D.start(1);};if(n){I.chain(o);}else{o();}}function J(){if(W>=0){j.style.display="";}if(e>=0){E.style.display="";}c.set(-C.offsetHeight).start(0);h.style.visibility="";}function R(){M.onload=$empty;M.src=T.src=k.src=O;I.cancel();D.cancel();c.cancel();$$(j,E,H,h).setStyle("display","none");}function d(){if(g>=0){R();g=W=e=-1;A.style.display="none";X.cancel().chain(L).start(0);}return false;}Element.implement({slimbox:function(n,o){$$(this).slimbox(n,o);return this;}});Elements.implement({slimbox:function(n,q,p){q=q||function(r){return[r.href,r.title];};p=p||function(){return true;};var o=this;o.removeEvents("click").addEvent("click",function(){var r=o.filter(p,this);return Slimbox.open(r.map(q),r.indexOf(this),n);});return o;}});return{open:function(p,o,n){U=$extend({loop:false,overlayOpacity:0.8,overlayFadeDuration:400,resizeDuration:400,resizeTransition:false,initialWidth:250,initialHeight:250,imageFadeDuration:400,captionAnimationDuration:400,counterText:"Image {x} of {y}",closeKeys:[27,88,67],previousKeys:[37,80],nextKeys:[39,78]},n||{});X=new Fx.Tween(i,{property:"opacity",duration:U.overlayFadeDuration});I=new Fx.Morph(A,$extend({duration:U.resizeDuration,link:"chain"},U.resizeTransition?{transition:U.resizeTransition}:{}));D=new Fx.Tween(H,{property:"opacity",duration:U.imageFadeDuration,onComplete:J});c=new Fx.Tween(C,{property:"margin-top",duration:U.captionAnimationDuration});if(typeof p=="string"){p=[[p,o]];o=0;}Y=f.getScrollTop()+(f.getHeight()/2);m=U.initialWidth;S=U.initialHeight;A.setStyles({top:Math.max(0,Y-(S/2)),width:m,height:S,marginLeft:-m/2,display:""});V=N||(i.currentStyle&&(i.currentStyle.position!="fixed"));if(V){i.style.position="absolute";}X.set(0).start(U.overlayOpacity);Z();L(1);G=p;U.loop=U.loop&&(G.length>1);return B(o);}};})();window.addEvent("domready",function(){Slimbox.scanPage=function(){$$("a").filter(function(A){return A.rel&&A.rel.test(/^lightbox/i);}).slimbox({},null,function(A){return(this==A)||((this.rel.length>8)&&(this.rel==A.rel));});};Slimbox.scanPage();});var trialUserFlag=false;if(!UserVars.isLoggedIn()){CURS.Manager.addEvent("onLogin",function(){window.location.href=CURS.getRefreshPath();});}function onImgError(A){A.src="http://i.i.com.com/cnwk.1d/i/tron/download/blank.gif";A.width="32";A.height="32";A.onerror="";return true;}function hide(A){A=$(A);if(A.getStyle("display")=="block"){A.setStyle("display","none");}}var contactForm;if(PageVars.get("pageType")=="3451"){if(Browser.Engine.trident4){location.href="/3457-19874_1-0.html?pagename=browserinfo";}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";}}}var cTrialUserSid="TT_TrialUserSid";var cDefaultMachine="TT_DefaultMachine";function removeCookies(B,C){var A=new Cookie(B);if(A.read()!==null){A.dispose();}A=new Cookie(B,{domain:C});if(A.read()!==null){A.dispose();}A=new Cookie(B,{path:"/"});if(A.read()!==null){A.dispose();}A=new Cookie(B,{domain:C,path:"/"});if(A.read()!==null){A.dispose();}}if(PageVars.get("pageType")=="3451"&&!UserVars.isLoggedIn()&&Cookie.read(cTrialUserSid)!==null){if(Browser.getQueryStringValue("sid")!=Cookie.read(cTrialUserSid)){location.href=CURS.getRefreshPath({sid:Cookie.read(cTrialUserSid)});}}if(PageVars.get("pageType")=="3451"||PageVars.get("pageType")=="3460"){if(UserVars.isLoggedIn()&&!Browser.getQueryStringValue("ms")){if(Cookie.read(cTrialUserSid)===null){if(Browser.getQueryStringValue("mid")){if(Cookie.read(cDefaultMachine)===null||Cookie.read(cDefaultMachine)!=Browser.getQueryStringValue("mid")){var host=document.location.hostname.split(".");host=host[host.length-2]+"."+host[host.length-1];removeCookies(cDefaultMachine,host);Cookie.write(cDefaultMachine,Browser.getQueryStringValue("mid"),{duration:9999,domain:host,path:"/"});}}if(!Browser.getQueryStringValue("mid")&&!Browser.getQueryStringValue("sid")&&Cookie.read(cDefaultMachine)!==null){location.href=CURS.getRefreshPath({mid:Cookie.read(cDefaultMachine)});}}else{new Request({url:"/3452-1_1-0.html?action=getScanStatus&scanId="+Cookie.read(cTrialUserSid)+"&nomesh&a="+$time(),method:"get",onSuccess:function(B){if(B.contains("COMPLETE")){var A=document.location.hostname.split(".");A=A[A.length-2]+"."+A[A.length-1];removeCookies(cTrialUserSid,A);}}}).send();}}else{if(!Browser.getQueryStringValue("mid")){location.href=CURS.getRefreshPath({mid:Cookie.read(cDefaultMachine)});}else{new Request({url:"/3452-1_1-0.html?action=getScanStatus&scanId="+Cookie.read(cTrialUserSid)+"&nomesh&a="+$time(),method:"get",onSuccess:function(B){if(B.contains("COMPLETE")){var A=document.location.hostname.split(".");A=A[A.length-2]+"."+A[A.length-1];removeCookies(cTrialUserSid,A);}}}).send();}}}window.addEvent("domready",function(){if($defined($$(".trialNoDownload"))){$$(".trialNoDownload").addEvent("click",function(d){d.stop();CURS.Manager.checkLogin({ursForm:"login",appId:200});});}if($defined($("registerTTLink"))){$("registerTTLink").addEvent("click",function(d){d.stop();CURS.Manager.checkLogin({ursForm:"register",appId:200});});}if($defined($("loginTTLink"))){$("loginTTLink").addEvent("click",function(d){d.stop();CURS.Manager.checkLogin({ursForm:"login",appId:200});});}if(!UserVars.isLoggedIn()){trialUserFlag=true;}if(trialUserFlag==true){$$(".trialUserDLLinkNoticeLink, .expandomatic, .specialOfferLink").addEvent("click",function(d){d.stop();CURS.Manager.checkLogin({ursForm:"register",appId:200});});}var D="TT_ExpandTab";var L=$$(".machineName")[0].get("machine");if($defined($("feedbackForm"))){contactForm=new FormRecycler.GlobalModal("feedbackForm",{findLocalData:function(d){var e={};e.entryId=d.getParent("div.product").getProperty("entry");return e;},onShow:function(){cnetToolTips.hide();var e=this.form.getElement(".errorMsg");var d=this.form.getElement(".errorMsgDesc");if(e){e.hide();}if(d){d.hide();}},onRelocate:function(f){var d=f.getParent("div.product");var e="Submit a problem report for ";e+=d.getElement(".productTitle a").get("text");e+=" ";e+=d.getElement(".versionLatest p").get("text");var g=this.shell.getElement("h2");},onInitialize:function(){$("submitFeedback").addEvent("click",function(i){i.stop();var h=this.form.getElement(".errorMsg");var f=this.form.getElement(".errorMsgDesc");if(h){h.hide();}if(f){f.hide();}var d=true;var g=false;$$("#feedbackForm input[type=radio]").each(function(e){if(e.checked){d=false;if(e.value=="OTHER"&&$("feedbackDescription").value==""){g=true;}}});if(d&&h){h.setStyles({opacity:"0",display:"block"});h.morph({opacity:"1"});}else{if(g&&f){f.setStyles({opacity:"0",display:"block"});f.morph({opacity:"1"});}else{this.hide();new Request.HTML({onSuccess:function(){new GlobalModal({content:$("feedbackFormDone")}).show();}.bind(this)}).post("/3452-1_1-0.html?"+this.form.toQueryString());}}}.bind(this));}});$$(".feedback a").addEvent("click",function(d){d.stop();if(trialUserFlag==true){}else{contactForm.move(d.target);}});}$$(".singleHidden").addEvent("change",function(){var e=this.getParent("div.product").getProperty("entry");var d=this.value;new Request({method:"post",url:"3452-1_1-0.html?action=setSingleHidden&entryId="+e+"&setting="+d}).send();});$$(".hideProdButton").addEvent("click",function(g){g.stop();V.show();var f=this.getParent("div.product").getProperty("entry");var d=this.getParent("div.expandHideProducts").getProperty("alert");new Request({method:"post",url:"3452-1_1-0.html?action=setSingleHidden&entryId="+f+"&setting=IGNORE",onSuccess:function(){if(d=="true"){new Request({method:"post",url:"3452-1_1-0.html?action=setSingleAlert&onOffSelector=turnOff&entryId="+f}).send();}window.location.href=/techtracker/;}}).send();});$$(".skipProdButton").addEvent("click",function(g){g.stop();var f=this.getParent("div.product").getProperty("entry");var d=this.getParent("div.expandHideProducts").getProperty("alert");new Request({method:"post",url:"3452-1_1-0.html?action=setSingleHidden&entryId="+f+"&setting=SKIP_VERSION",onSuccess:function(){if(d=="true"){new Request({method:"post",url:"3452-1_1-0.html?action=setSingleAlert&onOffSelector=turnOff&entryId="+f}).send();}window.location.href=CURS.getRefreshPath();}}).send();});$$(".unhideProdButton").addEvent("click",function(f){f.stop();V.show();var d=this.getParent("div.product").getProperty("entry");new Request({method:"post",url:"3452-1_1-0.html?action=setSingleHidden&entryId="+d+"&setting=NORMAL",onSuccess:function(){window.location.href=CURS.getRefreshPath();}}).send();});$$(".unhideAllLink").addEvent("click",function(d){d.stop();G.show();$$("#unhideAllPopup #yesButtonUnhide").addEvent("click",function(g){g.stop();V.show();var f=document.getElement("div.softwareListHead").getProperty("mid");new Request({method:"post",url:"3452-1_1-0.html?action=setAllHidden&machineId="+f,onSuccess:function(){window.location.href=CURS.getRefreshPath();}}).send();});});if($defined($("unconfirmedAccount"))){var X=new GlobalModal({content:$("unconfirmedAccount")});X.show();}if($defined($("specPopupLink"))){var Y=new GlobalModal({content:$("fullSpecs")});$("specPopupLink").addEvent("click",Y.show.bind(Y));}if($defined($("machineSelect"))){var B=$("machineSelect");B.addEvent("change",function(){var g=this.get("value");var e="";this.getElements("option").each(function(h){if(h.get("value")==g){e=h.getProperty("mid");}});var f=new Link(location.href);f.mergeQueryString({mid:e,ms:"true"});var d=f.getHrefObj();if(!$chk(d.hash)){f.set("hash","software");}location.href=f.get("href");});}var E=new AutoDownloadHandler();function N(){var d=0;$$(".batchActionBox input").each(function(e){if(e.checked){d+=1;e.getParent(".product").getElement(".downloadNowOld").setStyle("display","none");e.getParent(".product").getElement(".productSelected").setStyle("display","block");}else{d-=0;e.getParent(".product").getElement(".downloadNowOld").setStyle("display","block");e.getParent(".product").getElement(".productSelected").setStyle("display","none");}});if(d>=1){$$(".batchActivities").each(function(e){e.disabled=false;});return ;}else{if(d<=0){$$(".batchActivities").each(function(e){e.disabled=true;});}else{return ;}}}$$(".batchActionBox input").addEvent("click",function(){N();});N();$$(".goBtn").addEvent("click",function(){var d=false;var e=false;$$(".batchActivities").each(function(f){if($(f).get("value")=="downloadItems"){$(f).set("value","activities");K();}else{if($(f).get("value")=="smartInstall"){$(f).set("value","activities");$$(".batchActionBox input:checked").each(function(h){if(Cookie.read("tt_installPopup")===null||Cookie.read("tt_installPopup")==="true"){d=true;}});if(d){$$("#smartInstallListItems li").dispose();M.show();$$(".batchActionBox input:checked").each(function(i){var k=$(i).get("id");var j=$(i).get("value");var h=new Element("li",{id:k,html:j});h.inject("smartInstallListItems");});}else{a();}}else{if($(f).get("value")=="standardInstall"){$(f).set("value","activities");A();}else{if($(f).get("value")=="uninstallItems"){$(f).set("value","activities");$$(".batchActionBox input:checked").each(function(h){if(Cookie.read("tt_uninstallPopup")===null||Cookie.read("tt_uninstallPopup")==="true"){e=true;}});if(e){$$("#uninstallListItems li").dispose();R.show();$$(".batchActionBox input:checked").each(function(i){var k=$(i).get("id");var j=$(i).get("value");var h=new Element("li",{id:k,html:j});h.inject("uninstallListItems");});}else{Q();}}else{if($(f).get("value")=="addToList"){$(f).set("value","activities");var g=[];$$(".batchActionBox input").each(function(h){if(h.checked){g.push($(h).getParent(".product"));}});$$(".batchActionBox input").each(function(h){h.checked=false;});N();UserLists.Manager.getUserListModal("AddToList",g);}}}}}});});$$(".downloadAllBtn").addEvent("click",function(){O();});function O(){var d="";$$(".outOfDateProducts").each(function(f){var e=$(f).get("id");d+="&ids="+e;});ttAjaxCall(d,"DL","performPlusOperation",L,1);}if($defined($("newVersionDownload"))){var J=new GlobalModal({content:$("newVersionDownload")});J.show();}if($defined($("marketingPopup"))){var W=new CommMarketingPopup({content:$("marketingPopup"),popupType:"marketingPopup",sequence:1});var I=new Date();var F=new Date(2010,4,14,10,0);var U=new Date(2010,4,21,12,0);var P=I.getTime()+(I.getTimezoneOffset()*60000);var b=F.getTime()+(F.getTimezoneOffset()*60000);var T=U.getTime()+(U.getTimezoneOffset()*60000);if(P>b&&P<T){W.checkCookies(W.popupType,W.sequence);}}if($defined($("errorPopup"))){var S=new ErrorPopup({content:$("errorPopup")});}if($defined($("loadingPopup"))){var V=new ErrorPopup({content:$("loadingPopup")});}if($defined($("removeComp"))){var Z=new RemoveCompHandler();}if($defined($("outOfDateClient"))){var C=new ErrorPopup({content:$("outOfDateClient")});C.show();}if($defined($("unhideAllPopup"))){var G=new ConfirmPopup({content:$("unhideAllPopup")});}if($defined($("installPopup"))){var M=new ConfirmPopup({content:$("installPopup")});$$("#installPopup #yesButtonInstall").addEvent("click",function(){a();});$$("#installPopup #downButton").addEvent("click",function(){A();});function a(){var d="";if(M.triggerID!==undefined){d="&ids="+M.triggerID;M.triggerID=undefined;}else{$$(".batchActionBox input.SINOW").each(function(g){if(g.checked){var f=$(g).get("id");d+="&ids="+f;}});}if(d==""){$$("#errorPopup h2").set("text","Unable to Smart Install selected Products");var e="This action cannot be performed on the selected products.";$$("#errorPopup p.errorMsg").set("text",e);S.show();}else{ttAjaxCall(d,"DLNINST","performPlusOperation",L,1);}$$(".batchActionBox input").each(function(f){f.checked=false;});N();}function K(){var d="";if(M.triggerID!==undefined){d="&ids="+M.triggerID;M.triggerID=undefined;}else{$$(".batchActionBox input.DLNOW").each(function(g){if(g.checked){var f=$(g).get("id");d+="&ids="+f;}});}if(d==""){$$("#errorPopup h2").set("text","Unable to Download selected Products");var e="This action cannot be performed on the selected products.";$$("#errorPopup p.errorMsg").set("text",e);S.show();}else{ttAjaxCall(d,"DL","performPlusOperation",L,1);}$$(".batchActionBox input").each(function(f){f.checked=false;});N();}function A(){var d="";if(M.triggerID!==undefined){d="&ids="+M.triggerID;M.triggerID=undefined;}else{$$(".batchActionBox input.SINOW").each(function(g){if(g.checked){var f=$(g).get("id");d+="&ids="+f;}});}if(d==""){$$("#errorPopup h2").set("text","Unable to Download and Open selected Products");var e="This action cannot be performed on the selected products.";$$("#errorPopup p.errorMsg").set("text",e);S.show();}else{ttAjaxCall(d,"DLNOPEN","performPlusOperation",L,1);}$$(".batchActionBox input").each(function(f){f.checked=false;});N();}}if($defined($("uninstallPopup"))){var R=new ConfirmPopup({content:$("uninstallPopup")});$$("#uninstallPopup #yesButtonUninstall").addEvent("click",function(){Q();});function Q(){var d="";if(R.triggerID!==undefined){d="&ids="+R.triggerID;R.triggerID=undefined;}else{$$(".batchActionBox input.UINOW").each(function(g){if(g.checked){var f=$(g).get("entry");d+="&ids="+f;}});}if(d==""){$$("#errorPopup h2").set("text","Unable to Uninstall selected Products");var e="This action cannot be performed on the selected products.";$$("#errorPopup p.errorMsg").set("text",e);S.show();}else{ttAjaxCall(d,"UNINST","performPlusOperation",L,1);}$$(".batchActionBox input").each(function(f){f.checked=false;});d="";N();}}if($defined($$(".moreInfoButton"))){function H(){this.getParent(".product").setStyles({padding:"10px 0 0 0",height:"227px"});}function c(){this.getParent(".product").setStyles({padding:"10px 0",height:"42px"});}$$(".moreInfoButton").addEvent("click",function(){if(trialUserFlag==true){}else{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");var e=c.bind(this);e();}else{this.setStyle("background-position","right -12px");this.getParent(".moreInfo").addClass("blueButton");this.getParent(".productInfoFullWrap").getParent(".product").getElement(".moreInfoExpanded").setStyle("display","block");var d=H.bind(this);d();}}});}$$(".expandomatic").addEvent("click",function(d){d.stop();if(trialUserFlag==true){}else{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 & Settings");$$(".dlAllOption").setStyle("margin-left","58px");$$(".productInfoFullWrap").each(function(e){e.getElement(".moreInfo").addClass("blueButton");e.getElement(".moreInfoButton").setStyle("background-position","right -12px");e.getParent(".product").getElement(".moreInfoExpanded").setStyle("display","block");var f=H.bind(e);f();});}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 & Settings");$$(".dlAllOption").setStyle("margin-left","50px");$$(".productInfoFullWrap").each(function(e){e.getElement(".moreInfoButton").setStyle("background-position","right 0px");e.getElement(".moreInfo").removeClass("blueButton");e.getParent(".product").getElement(".moreInfoExpanded").setStyle("display","none");var f=c.bind(e);f();});}}});$$(".contractMoreInfoBox").addEvent("click",function(f){f.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");var d=c.bind(this);d();});$$(".clickToViewAll").addEvent("click",function(){if($("hiddenWrap").hasClass("collapsed")){$$(".clickToViewAll").set("text","Close list");$("hiddenWrap").removeClass("collapsed");$("hiddenWrap").addClass("expanded");$("hiddenWrap").setStyle("display","block");}else{$$(".clickToViewAll").set("text","Open list");$("hiddenWrap").removeClass("expanded");$("hiddenWrap").addClass("collapsed");$("hiddenWrap").setStyle("display","none");}});$$(".closeHiddenList").addEvent("click",function(){$$(".clickToViewAll").set("text","Open list");$("hiddenWrap").removeClass("expanded");$("hiddenWrap").addClass("collapsed");$("hiddenWrap").setStyle("display","none");});$$("ul.downloadNowOld a.paidAction").addEvent("click",function(l){var d=this.getProperty("name");var h=this.getProperty("id");var j=this.getProperty("class");switch(j){case"paidDownloadNow paidAction":if(Cookie.read("tt_dlmEnabled")==="true"){l.stop();ttAjaxCall("&ids="+h,"DL","performPlusOperation",L,1);}break;case"paidSmartInstall paidAction":l.stop();if(Cookie.read("tt_installPopup")===null||Cookie.read("tt_installPopup")==="true"){$$("#smartInstallListItems li").dispose();M.triggerID=h;M.show();var k=h;var i=d;var f=new Element("li",{id:k,html:i});f.inject("smartInstallListItems");}else{ttAjaxCall("&ids="+h,"DLNINST","performPlusOperation",L,1);}break;case"paidStandardInstall paidAction":l.stop();ttAjaxCall("&ids="+h,"DLNOPEN","performPlusOperation",L,1);break;case"paidUninstall paidAction":l.stop();if(Cookie.read("tt_uninstallPopup")===null||Cookie.read("tt_uninstallPopup")==="true"){$$("#uninstallListItems li").dispose();R.triggerID=h;R.show();var k=h;var i=d;var f=new Element("li",{id:k,html:i});f.inject("uninstallListItems");}else{ttAjaxCall("&ids="+h,"UNINST","performPlusOperation",L,1);}break;case"paidAddToList paidAction":l.stop();var g=this.getParent(".product");UserLists.Manager.getUserListModal("AddToList",g);break;}});if(Cookie.read(D)==="true"){$$(".expandomatic").getElement("span").removeClass("expandable");$$(".expandomatic").getElement("span").addClass("collapsable");$$(".expandomatic").getElement("span").set("text","Close All Info & Settings");$$(".dlAllOption").setStyle("margin-left","58px");$$(".productInfoFullWrap").each(function(d){d.getElement(".moreInfo").addClass("blueButton");d.getElement(".moreInfoButton").setStyle("background-position","right -12px");d.getParent(".product").getElement(".moreInfoExpanded").setStyle("display","block");var e=H.bind(d);e();});}});
   }
       
