
   if(!dbugScripts("download",["download.tron.listings.js"])) {
   /*	download.tron.listings.js - packed	*/
       function setSearchType(A){if(A){var B=A.form.getElement("input[name=searchtype]");if(B){B.setProperty("value",$(A[A.selectedIndex]).get("searchType")||"");}}}function setFilter(A){if(A){var C=A.form.getElement("input[name=filter]");var B=A.form.getElement("input[name=filterName]");if(C){C.setProperty("value",$(A[A.selectedIndex]).get("filter")||"");}if(B){B.setProperty("value",$(A[A.selectedIndex]).get("filter")||"");}}}if(window.HandangoCart){HandangoCart.CartAdder=new Class({Implements:Options,options:{addClassName:"handangoAddToCart",cookieName:"handangoCart",cookieDuration:30,cookieDomain:window.location.hostname},initialize:function(A){this.setOptions(A);this.setLinks();},setLinks:function(){$$("."+this.options.addClassName).addEvent("click",this.addCart.bind(this));},addCart:function(A){this.addCookie();},addCookie:function(){Cookie.set(HandangoCart.cookieName,"true",{path:"/",duration:this.options.cookieDuration});}});}else{var HandangoCart={};HandangoCart.CartAdder=new Class({});}(function(){if(!window.HandangoCart){window.HandangoCart={};}})();HandangoCart.Devicer=new Class({Implements:Options,options:{modalUrl:"/html/rb/js/tron/download/handangoDevicer.html",directoryShell:"directoryShell"},directories:{},initialize:function(A){this.setOptions(A);this.getModal();},showTopLevel:function(C){var B=($type(C)=="event")?$(C.target):$(C);var A=B.getProperty("type");this.showDirectory(B);$("pickerByBrand")[((A=="allManufacturers")?"add":"remove")+"Class"]("selected");$("pickerByPlatform")[((A=="allPlatforms")?"add":"remove")+"Class"]("selected");},showDirectory:function(C,A){A=A||{};var B=$(($type(C)=="event")?C.target:C);var D=B.getProperty("lookupId");D=B.getProperty("type")+(D||"");if(this.directories[D]){if(this.activeDirectory){this.activeDirectory.hide();}this.directories[D].show();}else{if(this.activeDirectory){A.onShow=this.activeDirectory.hide.bind(this.activeDirectory);}this.directories[D]=new HandangoCart.Directory(B,this,A);}this.activeDirectory=this.directories[D];},getModal:function(){var A=new Element("div",{styles:{display:"none"}}).inject(document.body);new Request.HTML({url:this.options.modalUrl,method:"get",update:A,onSuccess:function(){this.modal=new GlobalModal({showNow:true,content:A.getElement(".globalModal"),position:"centerTop",edge:"centerTop",useIframeShim:Browser.Engine.trident4});this.initModal();}.bind(this)}).send();},initModal:function(){$("pickerByBrand").addEvent("click",this.showTopLevel.bind(this));$("pickerByPlatform").addEvent("click",this.showTopLevel.bind(this));this.waiter=new Waiter("devicePickerContent",{layer:{styles:{zIndex:99999}}});this.tips=new Tips(null,{className:"devicePickerTips"});this.shell=$(this.options.directoryShell);this.showTopLevel("pickerByBrand");},addDirectory:function(A){this.shell.adopt(A);},show:function(){if(!this.modal){this.modal="loading";this.getModal();}else{if(this.modal=="loading"){return false;}this.modal.show();}return this;},hide:function(){this.modal.hide();}});$extend(HandangoCart,{Directory:new Class({Implements:Options,options:{itemsPerPage:50,colsPerPage:3,selectedClass:"selected",pickerUrl:"/3018-20_4-0.html",listingUrl:"/mobile/3150-"+((PageVars.get("pageType","number")==2000)?20:PageVars.get("nodeId"))+"_4-0.html?filter=device=",pageClass:"page",shellClass:"directory",title:true,trackingTag:"devicePicker",type:null},initialize:function(C,B,A){this.setOptions(A);this.target=$(C);this.devicer=B;this.makeRequest(this.buildDirectory.bind(this));return this;},getData:function(){var A=this.target.get("type");var C=(["brand","platform"].contains(A))?"devices":A;var B={nomesh:true,action:C};if(B.action=="devices"){B[(A=="brand")?"mId":"pId"]=this.target.getProperty("lookupId");}return B;},makeRequest:function(A){new Request.JSON({method:"get",url:this.options.pickerUrl,onRequest:function(){if(this.devicer.waiter){this.devicer.waiter.start();}}.bind(this),onComplete:function(){if(this.devicer.waiter){this.devicer.waiter.stop();}}.bind(this),data:this.getData(),onSuccess:A||$empty}).send();},buildDirectory:function(F){this.createShell();var H=F.length;var B=Math.ceil(H/this.options.itemsPerPage);var A=Math.ceil((H/B)/this.options.colsPerPage)*3;var J=Math.ceil(A/this.options.colsPerPage);if(B>1){this.paginate=new HandangoCart.Pagination(this);this.injectPoint=this.injectElem(this.paginate.element);}var D=0,E=0,G=0,C=0,I,K;while(F[D]){if(!G){I=this.injectElem(new Element("div",{"class":this.options.pageClass}));if(this.paginate){this.paginate.addPage(E,I);}if(!E){this.activePage=I;this.show(I,true);}else{this.hide(I);}E++;if(H-D<A){J=Math.ceil((H-D)/this.options.colsPerPage);}}if(!C){K=new Element("ul",{"class":"itemList"}).inject(I);}new Element("li").adopt(this.getListingLink(F[D])).inject(K);D++,G++,C++;if(G==A){G=0;}if(C==J){C=0;}}if(["brand","platform"].contains(this.target.getProperty("type"))&&this.devicer.tips){this.devicer.tips.attach(this.element.getElements("a[lookupId]"));}if(this.options.onShow){this.options.onShow();}this.show();},showPage:function(A){if(this.activePage){this.hide(this.activePage);}this.activePage=A;this.show(this.activePage);},createShell:function(){this.element=new Element("div",{"class":this.options.shellClass,styles:{opacity:0,display:"none"}});if(!["allManufacturers","allPlatforms"].contains(this.target.getProperty("type"))){new Element("h3",{text:this.target.get("text")}).inject(this.element);}this.injectPoint=new Element("br",{styles:{clear:"both"}}).inject(this.element);this.devicer.addDirectory(this.element);},getListingLink:function(B){var A=new Element("a",{text:B.name,lookupId:B.id});if(["allManufacturers","allPlatforms"].contains(this.target.get("type"))){A.addEvent("click",this.devicer.showDirectory.bind(this.devicer,A));A.setProperty("type",(this.target.get("type")=="allManufacturers")?"brand":"platform");}else{A.setProperty("href",this.getListingHref(B));if(B.imagePath){if(B.imagePath.contains("/null")){A.store("tip:text","Photo not available.");}else{A.store("tip:text",'<img src="'+B.imagePath+'" alt="Loading."/>');}}}return A;},getListingHref:function(D){var A,B,C;if(PageVars.get("pageType","number")=="2000"){A="/mobile/3150-20_4-0.html";}else{if(PageVars.get("pageType","number")=="3150"){A="/mobile/3150-"+PageVars.get("nodeId")+"_4-0.html";}else{if(PageVars.get("pageType","number")=="1770"){A=window.location.href;}}}C=new Link(A);C.removeQuery("filter").removeQuery("filterName").removeQuery("forgetDevice");C.setQuery("filter",encodeURIComponent("device="+D.id+"|platform=Mobile"));C.setQuery("filterName",encodeURIComponent("device=Mobile+Device|platform=Mobile"));return C.get("href");},injectElem:function(A){return $(A).injectBefore(this.injectPoint);},show:function(B,A){B=$(B)||this.element;B.addClass(this.options.selectedClass);B.setStyle("display","block");if(A){B.setStyle("opacity",1);}else{B.fade("in");}if(this.devicer.modal.shim){this.devicer.modal.shim.position();}return this;},hide:function(A){A=$(A)||this.element;if(A){A.removeClass(this.options.selectedClass).setStyles({display:"none",opacity:0});}return this;}}),Pagination:new Class({Implements:Options,options:{selectedClass:"youAreHere"},initialize:function(A,B){this.directory=A;this.setOptions(B);this.element=new Element("ul",{"class":"pagination"});this.buttons=[];return this;},addPage:function(C,B){var A=new Element("li");this.buttons.push(new Element("a",{text:C+1,events:{click:this.showPage.bind(this)}}).inject(A));A.inject(this.element);this.buttons.getLast().store("page",B);if(this.buttons.length==1){this.activeButton=this.buttons[0].addClass(this.options.selectedClass);}},getButton:function(A){return(A.get("tag")=="a")?A:A.getParent("a");},showPage:function(A){this.activeButton.removeClass(this.options.selectedClass);this.activeButton=$(A.target).addClass(this.options.selectedClass);this.directory.showPage(this.activeButton.retrieve("page"));}})});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 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 listingAjaxFunctions=new Class({initComponents:function(){$$("#filterByAjaxWrap a").each(function(B,A){B.addEvent("click",function(C){C.stop();loadAjax(B.href);}.bind(this));},this);$("howManySelect").addEvent("change",function(I){I.stop();var J=$("dropDownForm").getProperty("action");var L="";if(Modernizr.historymanagement){var F=gup("filter");var H=gup("filterName");var E=gup("rpp");var M=$("sortSelect").get("value");var G=gup("tag");L=J+"?tag="+G+"&filter="+F+"&filterName="+H+"&rpp="+E+"&sort="+M;}else{var C=[];$$("#dropDownForm input").each(function(O,N){var P="&"+O.name+"="+O.value;C.push(P);});var B=C.toString();var K=B.replace(",","");var A=K.replace(",","");var D=$("howManySelect").get("value");L=J+"?"+A+"&rpp="+D;}loadAjax(L);}.bind(this));$("sortSelect").addEvent("change",function(H){H.stop();var I=$("dropDownForm").getProperty("action");var K="";if(Modernizr.historymanagement){var E=gup("filter");var G=gup("filterName");var D=gup("rpp");var M=$("sortSelect").get("value");var F=gup("tag");K=I+"?tag="+F+"&filter="+E+"&filterName="+G+"&rpp="+D+"&sort="+M;}else{var C=[];$$("#dropDownForm input").each(function(O,N){var P="&"+O.name+"="+O.value;C.push(P);});var B=C.toString();var J=B.replace(",","");var A=J.replace(",","");var L=$("sortSelect").get("value");K=I+"?"+A+"&sort="+L;}loadAjax(K);}.bind(this));$$("ul.pagination a.pageItem").each(function(B,A){B.addEvent("click",function(C){C.stop();loadAjax(B.href);}.bind(this));},this);}});function loadAjax(F){var I=new listingAjaxFunctions;if(Modernizr.historymanagement){var D={test:"success"};if(history.state==null){history.pushState(D,"",F);}else{history.replaceState(D,"",F);}}var E=F.split("?");var H=E[0];var J=E[1].split("&");var G=F;var A=$("catListingAjaxWrap").retrieve("waiter",new Waiter($("catListingAjaxWrap")));var B=$("filterByAjaxWrap").retrieve("waiter",new Waiter($("filterByAjaxWrap")));var M=$("pagAjaxWrap").retrieve("waiter",new Waiter($("pagAjaxWrap")));var N=null;var K=null;var L=null;var C=null;N=new ContentUpdater("catListingsUpdater",{listingConfig:{element:"configAjaxWrap",onRequest:function(){A.start();},onSuccess:function(){I.initComponents();},onComplete:function(){A.stop();}}},{url:G,onTimeout:function(){A.stop();},onFailure:function(){A.stop();},timeout:15000});K=new ContentUpdater("catListingsUpdater",{dlCategoryProductListing:{element:"catListingAjaxWrap",onRequest:function(){A.start();},onSuccess:function(){I.initComponents();},onComplete:function(){A.stop();}}},{url:G,onTimeout:function(){A.stop();},onFailure:function(){A.stop();},timeout:15000});L=new ContentUpdater("catListingsUpdater",{filterBy:{element:"filterByAjaxWrap",onRequest:function(){B.start();},onSuccess:function(){I.initComponents();},onComplete:function(){B.stop();}}},{url:G,onTimeout:function(){B.stop();},onFailure:function(){B.stop();},timeout:15000});C=new ContentUpdater("catListingsUpdater",{fancyPagination:{element:"pagAjaxWrap",onRequest:function(){M.start();},onSuccess:function(){I.initComponents();},onComplete:function(){M.stop();}}},{url:G,onTimeout:function(){M.stop();},onFailure:function(){M.stop();},timeout:15000});N.send();K.send();L.send();C.send();cbsiGetDeferredAds();}function gup(B){B=B.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var A="[\\?&]"+B+"=([^&#]*)";var D=new RegExp(A);var C=D.exec(window.location.href);if(C==null){return"";}else{return C[1];}}(function(){var A=this.Keyboard=new Class({Extends:Events,Implements:[Options],options:{defaultEventType:"keydown",active:false,manager:null,events:{},nonParsedEvents:["activate","deactivate","onactivate","ondeactivate","changed","onchanged"]},initialize:function(F){if(F&&F.manager){this._manager=F.manager;delete F.manager;}this.setOptions(F);this._setup();},addEvent:function(H,G,F){return this.parent(A.parse(H,this.options.defaultEventType,this.options.nonParsedEvents),G,F);},removeEvent:function(G,F){return this.parent(A.parse(G,this.options.defaultEventType,this.options.nonParsedEvents),F);},toggleActive:function(){return this[this.isActive()?"deactivate":"activate"]();},activate:function(F){if(F){if(F.isActive()){return this;}if(this._activeKB&&F!=this._activeKB){this.previous=this._activeKB;this.previous.fireEvent("deactivate");}this._activeKB=F.fireEvent("activate");A.manager.fireEvent("changed");}else{if(this._manager){this._manager.activate(this);}}return this;},isActive:function(){return this._manager?(this._manager._activeKB==this):(A.manager==this);},deactivate:function(F){if(F){if(F===this._activeKB){this._activeKB=null;F.fireEvent("deactivate");A.manager.fireEvent("changed");}}else{if(this._manager){this._manager.deactivate(this);}}return this;},relinquish:function(){if(this.isActive()&&this._manager&&this._manager.previous){this._manager.activate(this._manager.previous);}else{this.deactivate();}return this;},manage:function(F){if(F._manager){F._manager.drop(F);}this._instances.push(F);F._manager=this;if(!this._activeKB){this.activate(F);}return this;},drop:function(F){F.relinquish();this._instances.erase(F);if(this._activeKB==F){if(this.previous&&this._instances.contains(this.previous)){this.activate(this.previous);}else{this._activeKB=this._instances[0];}}return this;},trace:function(){A.trace(this);},each:function(F){A.each(this,F);},_instances:[],_disable:function(F){if(this._activeKB==F){this._activeKB=null;}},_setup:function(){this.addEvents(this.options.events);if(A.manager&&!this._manager){A.manager.manage(this);}if(this.options.active){this.activate();}else{this.relinquish();}},_handle:function(H,G){if(H.preventKeyboardPropagation){return ;}var F=!!this._manager;if(F&&this._activeKB){this._activeKB._handle(H,G);if(H.preventKeyboardPropagation){return ;}}this.fireEvent(G,H);if(!F&&this._activeKB){this._activeKB._handle(H,G);}}});var B={};var C=["shift","control","alt","meta"];var E=/^(?:shift|control|ctrl|alt|meta)$/;A.parse=function(H,G,K){if(K&&K.contains(H.toLowerCase())){return H;}H=H.toLowerCase().replace(/^(keyup|keydown):/,function(M,L){G=L;return"";});if(!B[H]){var F,J={};H.split("+").each(function(L){if(E.test(L)){J[L]=true;}else{F=L;}});J.control=J.control||J.ctrl;var I=[];C.each(function(L){if(J[L]){I.push(L);}});if(F){I.push(F);}B[H]=I.join("+");}return G+":keys("+B[H]+")";};A.each=function(F,G){var H=F||A.manager;while(H){G.run(H);H=H._activeKB;}};A.stop=function(F){F.preventKeyboardPropagation=true;};A.manager=new A({active:true});A.trace=function(F){F=F||A.manager;var G=window.console&&console.log;if(G){console.log("the following items have focus: ");}A.each(F,function(H){if(G){console.log(document.id(H.widget)||H.wiget||H);}});};var D=function(G){var F=[];C.each(function(H){if(G[H]){F.push(H);}});if(!E.test(G.key)){F.push(G.key);}A.manager._handle(G,G.type+":keys("+F.join("+")+")");};document.addEvents({keyup:D,keydown:D});})();function checkIfInstalled(H){var G="";var E;var D;var F;var A;var B=Cookie.read("TT_DefaultMachine");var C=Cookie.read("tt_dlmEnabled");A=$(H).getParent(".ttPlus3000");A.setStyle("display","block");E="&ids="+$(H).getProperty("id");D="/3452-20_4-0.html?action=isProductInstalled&nomesh&machineId="+B+E;F=new Request.JSON({method:"get",async:true,url:D,onRequest:function(){},onSuccess:function(J){var K=J.result.CNETResponse.HasSoftwareReport.User.UseTtAsDlmPreference;var L=J.result.CNETResponse.HasSoftwareReport.Machine;var I=J.result.CNETResponse.HasSoftwareReport.Products.Product.Installable;if(L){var M=J.result.CNETResponse.HasSoftwareReport.Machine.Software.Product.outOfDate;var O=J.result.CNETResponse.HasSoftwareReport.Machine.ClientVersion.braveheartCompat;if((C==="true"||K==="true")&&(O==="true")){$(H).getParent(".ttPlus3000").getPrevious(".downloadNow").addEvent("click",function(P){P.stop();ttAjaxCall(E,"DL","performPlusOperation",B,4);});}if(M==="false"){$(H).getPrevious("p").setStyle("display","block");$(H).setStyle("display","none");}else{if((I==="true")&&(O==="true")){$$(".ttPlus3000").setStyle("display","block");$(H).addEvent("click",function(P){P.stop();runTTInstall(H,E);});}else{$(H).dispose();$(H).getPrevious("p").set("html","No Install");$(H).getPrevious("p").setStyle("display","block");}}}else{var N=J.result.CNETResponse.HasSoftwareReport.TargetMachine.ClientVersion.braveheartCompat;if((I==="true")&&(N==="true")){$$(".ttPlus3000").setStyle("display","block");$(H).addEvent("click",function(P){P.stop();runTTInstall(H,E);});}else{$(H).dispose();$(H).getPrevious("p").set("html","No Install");$(H).getPrevious("p").setStyle("display","block");}if((C==="true"||K==="true")&&(N==="true")){$(H).getParent(".ttPlus3000").getPrevious(".downloadNow").addEvent("click",function(P){P.stop();ttAjaxCall(E,"DL","performPlusOperation",B,4);});}}},onFailure:function(I){G="Unknown Failure Error "+I;}}).send();}function runTTInstall(K,A){var B=Cookie.read("TT_DefaultMachine");var H=new ConfirmPopup({content:$("installPopup")});$$("#smartInstallListItems li").dispose();H.show();var C=$(K).getProperty("id");var E=$(K).getProperty("name");var D=new Element("li",{id:C,html:E});D.inject("smartInstallListItems");function F(){I();}function J(){G();}$$("#installPopup #yesButtonInstall").addEvent("click",F);$$("#installPopup #downButton").addEvent("click",J);function I(){ttAjaxCall(A,"DLNINST","performPlusOperation",B,4);$$("#installPopup #yesButtonInstall").removeEvent("click",F);$$("#installPopup #downButton").removeEvent("click",J);}function G(){ttAjaxCall(A,"DLNOPEN","performPlusOperation",B,4);$$("#installPopup #yesButtonInstall").removeEvent("click",F);$$("#installPopup #downButton").removeEvent("click",J);}}window.addEvent("domready",function(){new HandangoCart.CartAdder();try{$$(".hdgoDevicePicker").addEvent("click",function(B){B.stop();if(!HandangoCart.devicePicker){HandangoCart.devicePicker=new HandangoCart.Devicer();}else{HandangoCart.devicePicker.show();}});}catch(A){dbug.log("Devicer implementation failed: %o",A);}$$(".addToList").each(function(B){B.addEvent("click",function(){UserLists.Manager.getUserListModal("AddToList",B);});});if(PageVars.get("pageType")==1770){if($("contentSearch")){new JlScroller({tag:"contentSearchTop",event:"scrollTo",fireOnce:true,scrollTo:{top:"contentSearch"}});}}if((UserVars.isLoggedIn()&&Cookie.read("TT_isPaidUser")==="true")||(UserVars.isLoggedIn()&&Cookie.read("TT_isPaidUser")==="false")){$$(".smartInstall").each(function(D){var B=Cookie.read("TT_DefaultMachinePlatform");var C=$(D).getProperty("prodPlatform");if(B.contains("Windows")){if(C.contains(B)){checkIfInstalled(D);}}else{if(B.contains("Mac")){if(C.contains("Mac")){checkIfInstalled(D);}}}});}else{$$(".ttPlus3000").setStyle("display","none");}$$("#contentBody .product").each(function(D){var B;var E;var C=D.getElement(".title a");var G=D.getElement(".infoPopup");C.addEvent("mouseenter",function(){G.setPosition({relativeTo:C,position:"upperRight",offset:{x:10}});G.setStyle("opacity",0);G.setStyle("display","block");G.fade("in");});D.addEvent("mouseleave",function(){B=setTimeout(F,400);});G.addEvent("mouseenter",function(){clearTimeout(B);});G.addEvent("mouseleave",function(){E=setTimeout(F,300);});function F(){G.setStyle("opacity",1);G.fade("out");G.setStyle("display","none");}});});
   }
       
