//dbugScripts - will include non-compressed versions of this code if jsdebug=true is in the url of this page,
//otherwise it will execute this code.
if(!dbugScripts("http://publish.cnet.com:8100/html/rb/js/tiburon/download/",["download.global.framework.js"])) {
/*	download.global.framework.js - packed	*/
Cookie.set=function(B,C,A){return new Cookie(B,A).write(C)};Cookie.get=function(A){return new Cookie(A).read()};Cookie.remove=function(B,A){return new Cookie(B,A).dispose()};Browser.set("Popup",new Class({Implements:[Options,Events],options:{width:500,height:300,x:50,y:50,toolbar:0,location:0,directories:0,status:0,scrollbars:"auto",resizable:1,name:"popup"},initialize:function(B,A){this.url=B||false;this.setOptions(A);if(this.url){this.openWin()}},openWin:function(B){B=B||this.url;var A="toolbar="+this.options.toolbar+",location="+this.options.location+",directories="+this.options.directories+",status="+this.options.status+",scrollbars="+this.options.scrollbars+",resizable="+this.options.resizable+",width="+this.options.width+",height="+this.options.height+",top="+this.options.y+",left="+this.options.x;this.window=window.open(B,this.options.name,A);this.focus.delay(100,this);return this},focus:function(){if(this.window){this.window.focus()}else{if(this.focusTries<10){this.focus.delay(100,this)}else{this.blocked=true;this.fireEvent("onBlock")}}return this},focusTries:0,blocked:null,close:function(){this.window.close();return this}}));var MultipleOpenAccordion=new Class({Implements:[Options,Events,Chain],options:{togglers:[],elements:[],openAll:true,firstElementsOpen:[0],fixedHeight:false,fixedWidth:false,height:true,opacity:true,width:false},togglers:[],elements:[],initialize:function(A,B){this.setOptions(B);this.container=$(A);elements=$$(B.elements);$$(B.togglers).each(function(D,C){this.addSection(D,elements[C],C)},this);if(this.togglers.length){if(this.options.openAll){this.showAll()}else{this.openSections(this.options.firstElementsOpen)}}},addSection:function(D,C,G){D=$(D);C=$(C);var F=this.togglers.contains(D);var B=this.togglers.length;this.togglers.include(D);this.elements.include(C);if(B&&(!F||G)){dbug.log(G);G=$pick(G-1,B-1);dbug.log(G);D.inject(this.elements[G],"after");C.inject(D,"after")}else{if(this.container&&!F){D.inject(this.container);C.inject(this.container)}}var A=this.togglers.indexOf(D);D.addEvent("click",this.toggleSection.bind(this,A));var E;if(this.options.height&&this.options.width){E="both"}else{E=(this.options.height)?"vertical":"horizontal"}C.store("reveal",new Fx.Reveal(C,{transitionOpacity:this.options.opacity,mode:E,heightOverride:this.options.fixedHeight,widthOverride:this.options.fixedWidth}));return this},onComplete:function(A,B){this.fireEvent(this.elements[A].isVisible()?"onActive":"onBackground",[this.togglers[A],this.elements[A]]);this.callChain();return this},showSection:function(A,B){this.toggleSection(A,B,true)},hideSection:function(A,B){this.toggleSection(A,B,false)},toggleSection:function(A,C,B,D){var E=B?"reveal":$chk(B)?"disolve":"toggle";D=$pick(D,true);if($pick(C,true)){this.elements[A].retrieve("reveal")[E]().chain(this.onComplete.bind(this,[A,D]))}else{if(E=="toggle"){el.togglek()}else{el[E=="reveal"?"show":"hide"]()}this.onComplete(A,D)}return this},toggleAll:function(B,A){var D=A?"reveal":$chk(A)?"disolve":"toggle";var C=this.elements.getLast();this.elements.each(function(F,E){this.toggleSection(E,B,A,F==C)},this);return this},toggleSections:function(C,B,A){last=C.getLast();this.elements.each(function(E,D){this.toggleSection(D,B,C.contains(D),D==last)},this);return this},openSections:function(B,A){this.toggleSections(B,A,true)},closeSections:function(B,A){this.toggleSections(B,A,false)},showAll:function(A){return this.toggleAll(A,true)},hideAll:function(A){return this.toggleAll(A,false)}});Element.implement({setPosition:function(M){$each(M,function(P,N){if(!$defined(P)){delete M[N]}});M=$merge({relativeTo:document.body,position:{x:"center",y:"center"},edge:false,offset:{x:0,y:0},returnPos:false,relFixedPosition:false,ignoreMargins:false},M);var A={x:0,y:0};var E=false;if(this.getParent()!=document.body){var J=this.getParent();while(J!=document.body&&J.getStyle("position")=="static"){J=J.getParent()}if(J!=document.body){A=J.getPosition();E=true}M.offset.x=M.offset.x-A.x;M.offset.y=M.offset.y-A.y}function L(N){if($type(N)!="string"){return N}N=N.toLowerCase();var P={};if(N.test("left")){P.x="left"}else{if(N.test("right")){P.x="right"}else{P.x="center"}}if(N.test("upper")||N.test("top")){P.y="top"}else{if(N.test("bottom")){P.y="bottom"}else{P.y="center"}}return P}M.edge=L(M.edge);M.position=L(M.position);if(!M.edge){if(M.position.x=="center"&&M.position.y=="center"){M.edge={x:"center",y:"center"}}else{M.edge={x:"left",y:"top"}}}this.setStyle("position","absolute");var K=$(M.relativeTo)||document.body;var I=(K==document.body)?window.getScroll().y:K.getTop();var D=(K==document.body)?window.getScroll().x:K.getLeft();if(I<0){I=0}if(D<0){D=0}var F=this.getDimensions({computeSize:true,styles:["padding","border","margin"]});if(M.ignoreMargins){M.offset.x+=((M.edge&&M.edge.x=="right")?F["margin-right"]:-F["margin-left"]);M.offset.y+=((M.edge&&M.edge.y=="bottom")?F["margin-bottom"]:-F["margin-top"])}var H={};var B=M.offset.y.toInt();var C=M.offset.x.toInt();switch(M.position.x){case"left":H.x=D+C;break;case"right":H.x=D+C+K.offsetWidth;break;default:H.x=D+(((K==document.body)?window.getSize().x:K.offsetWidth)/2)+C;break}switch(M.position.y){case"top":H.y=I+B;break;case"bottom":H.y=I+B+K.offsetHeight;break;default:H.y=I+(((K==document.body)?window.getSize().y:K.offsetHeight)/2)+B;break}if(M.edge){var G={};switch(M.edge.x){case"left":G.x=0;break;case"right":G.x=-F.x-F.computedRight-F.computedLeft;break;default:G.x=-(F.x/2);break}switch(M.edge.y){case"top":G.y=0;break;case"bottom":G.y=-F.y-F.computedTop-F.computedBottom;break;default:G.y=-(F.y/2);break}H.x=H.x+G.x;H.y=H.y+G.y}H={left:((H.x>=0||E)?H.x:0).toInt(),top:((H.y>=0||E)?H.y:0).toInt()};if(K.getStyle("position")=="fixed"||M.relFixedPosition){H.top=H.top.toInt()+window.getScroll().y;H.left=H.left.toInt()+window.getScroll().x}if(M.returnPos){return H}else{this.setStyles(H)}return this}});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",onModalHide:$empty,onModalShow:$empty,hideOnClick:true,modalStyle:{},updateOnResize:true},this.modalOptions,A);return this},toElement:function(){return $("modalOverlay")},resize:function(){if($("modalOverlay")){$("modalOverlay").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($("modalOverlay")){$("modalOverlay").setStyles(this.modalStyle)}return(this.modalStyle)},modalShow:function(B){this.setModalOptions(B);var A=null;if($("modalOverlay")){A=$("modalOverlay")}if(!A){A=new Element("div",{id:"modalOverlay"}).inject(document.body)}A.setStyles(this.setModalStyle(this.modalOptions.modalStyle));if(Browser.Engine.trident4){A.setStyle("position","absolute")}$("modalOverlay").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);A.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()}if($("modalOverlay")){$("modalOverlay").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 StyleWriter=new Class({createStyle:function(A,B){window.addEvent("domready",function(){try{if($(B)&&B){return }var C=new Element("style",{id:B||""}).inject($$("head")[0]);if(Browser.Engine.trident){C.styleSheet.cssText=A}else{C.set("text",A)}}catch(D){dbug.log("error: %s",D)}}.bind(this))}});var RBDL={};$extend(RBDL,{downloadNow:function(A,B,C){if(Browser.Engine.trident&&(C==0||C=="0")){window.open(A,"_blank","width=0,height=0");window.location.href=B+encodeURIComponent(((B.test(/destUrl\=.*?\%3F/))?"&":"?")+"idl=n")}else{window.location.href=B}return false},dlComplete:function(A){if(document.readyState=="loading"){RBDL.dlComplete.pass(A).delay(100)}else{window.location.href=A}},downloadTitle:function(A,B,C){if(C==0||C=="0"){window.open(A,"_blank","width=1,height=1,top=0,left=0,location=no,menubar=no,resizable=no,scrollbars=no,titlebar=no,toolbar=no");window.location.href=B+encodeURIComponent(((B.test(/destUrl\=.*?\%3F/))?"&":"?")+"idl=n")}else{window.location.href=B}return false}});Cookie.implement({myDownloadsCookie:function(){this.key="dwnlds";var C={count:0,pidString:"",rndToken:Math.floor(Math.random()*101),mdViewed:0};var B=this.read();if(null!=B&&""!=B){var A=B.split("|");$extend(C,{count:(A.length>0)?A[0]:C.count,pidString:(A.length>1)?A[1]:C.pidString,rndToken:(A.length>2)?A[2]:C.rndToken,mdViewed:(A.length>3)?A[3]:C.mdViewed})}return C},setMyDownloadsCookie:function(B){this.key="dwnlds";var A=B.count+"|"+B.pidString+"|"+B.rndToken+"|"+B.mdViewed;this.write(A,{duration:3650})}});Cookie.myDownloadsCookie=function(){return new Cookie().myDownloadsCookie()};Cookie.setMyDownloadsCookie=function(A){return new Cookie().myDownloadsCookie(A)};var watchList={setAutoCookie:function(){$$(".autoCookie").each(function(B){if(B.type=="checkbox"){if(new Cookie(B.name).read()=="true"){B.checked=true}else{if(new Cookie(B.name).read()=="false"){B.checked=false}}$(B).addEvent("click",function(){new Cookie(this.name).write(this.checked,{duration:9999});if($($(B).id+"Msg")){watchList.showMsg($(this.id+"Msg"))}return true})}if(B.type=="select-one"){if(typeof new Cookie(B.name).read()!="undefined"&&new Cookie(B.name).read()!="null"){var A=B.options;$A(A).each(function(C){if(A[numOptions].set("value",new Cookie(B.name).read())){A[numOptions].selected=true}})}$(B).addEvent("click",function(){var C=B.options[B.selectedIndex].get("value");new Cookie(this.name).write(C,{duration:9999});if($($(B).id+"Msg")){watchList.showMsg($($(B).id+"Msg"))}})}})},getHTML:function(A,C,E,B){var D=new Request({url:"http://"+document.location.host+C+"?"+E,update:A,method:"get",evalScripts:true,onFailure:B.bind(this),onComplete:function(F){$(A).set("html",F)}}).send()},openWatchListFAQ:function(){var B=escape(parent.location.href);var A="http://www.download.com/1200-20_4-5155971.html?path="+B;new Browser.Popup(A,{name:"wl_faq",width:500,height:481,scrollbars:true});window.self.name="cnetParent"},showMsg:function(E,D){D=$pick(D,true);var A=$empty;var B=$empty;var C=null;if(D){$(E).set("tween",{duration:500});A=function(){$(E).tween("opacity",1)};B=function(){$(E).tween("opacity",0)}}else{A=function(){$(E).show()};B=function(){$(E).hide()}}A.delay(500);B.delay(2000)},parseQSParms:function(){return Browser.qs},defaultErrorHandler:$empty,jsNodeId:PageVars.get("nodeId"),jsSiteId:PageVars.get("siteId"),registerJSDefaults:function(C,B,A){this.registerJSPageDefaults(C,B,"","",A)},registerJSPageDefaults:function(E,D,B,C,A){this.jsNodeId=E;this.jsSiteId=D;this.jsPageType=B;this.jsOID=C;this.defaultErrorHandler=A||$empty},filterWatchList:function(A,C,F,B,E){$(A).tween("opacity",0);var D="/3350-"+this.jsNodeId+"_"+this.jsSiteId+"-0.html";var G="viewName="+F+"&component&daysSinceEvent="+C+"&filtered=1";this.getHTML.delay(400,this,[A,D,G,this.getErrorHandler(E)]);$(A).tween.delay(800,$(A),["opacity",1])},showAddOrWatchItemLink:function(A,C,F,E,B,D){((Browser.qs["addWatchItem"]!=null)?this.addWatchItem.bind(this):this.showWatchItemLink.bind(this))(A,C,F,E,B,D)},showWatchItemLink:function(A,D,H,F,C,E){this.showWaitingGif(A,C,"Loading...");var B="/3351-"+this.jsNodeId+"_"+this.jsSiteId+"-0.html";var G="referencedType="+D+"&referencedId="+H+"&viewName="+F+"&component";this.getHTML(A,B,G,this.getErrorHandler(E))},viewWatchItem:function(B,A,F,D,E){this.showWaitingGif(B,D,"Loading...");var C="/3352-"+this.jsNodeId+"_"+this.jsSiteId+"-0.html";var G="viewName="+F+"&listItemId="+A+"&component";this.getHTML(B,C,G,this.getErrorHandler(E));return true},syncWatchItemByItemId:function(B,A,G,C,F){this.showWaitingGif(B,C,"Loading...");var E="/3352-"+this.jsNodeId+"_"+this.jsSiteId+"-0.html";var D="syncListItem";var H="cmd="+D+"&assetType=listItem&listItemId="+A+"&viewName="+G+"&component";this.getHTML(B,E,H,this.getErrorHandler(F))},syncWatchItemByRefId:function(J,G,B,I,E,F){this.showWaitingGif(J,E,"Loading...");var D="/3353-"+this.jsNodeId+"_"+this.jsSiteId+"-0.html";var C="syncIfWatchItemExists";var A="cmd="+C+"&referencedType="+G+"&referencedId="+B+"&eventTypes=1&eventTypes=4";var H=new Cookie("DLWatchlistAutoAdd-SW_PS-PostDlAlert").read();switch(B){case 10045910:case 10320142:case 10208565:case 10028984:case 10047473:case 10251792:case 10007677:case 10003164:case 10029188:case 10039884:case 10051892:case 10296306:case 10057840:case 10021962:case 10155605:case 10411076:case 10265538:case 10122137:case 10019223:case 10590188:if((location.href!=null&&location.href.indexOf("also-dwnld")<0)&&H!="false"){A+="&eventTypes=2"}}A+="&viewName="+I+"&component";this.getHTML(J,D,A,this.getErrorHandler(F))},addWatchItem:function(I,G,B,H,E,F){this.showWaitingGif(I,E,"Adding...");var D="/3353-"+this.jsNodeId+"_"+this.jsSiteId+"-0.html";var C="addWatchItem";var A="cmd="+C+"&referencedType="+G+"&referencedId="+B+"&viewName="+H+"&component";this.getHTML(I,D,A,this.getErrorHandler(F))},addWatchItemPostDL:this.addWatchItem,removeWatchItem:function(K,B,I,C,J,F,G){try{this.showWaitingGif(K,F,"Removing...");var E="/3353-"+this.jsNodeId+"_"+this.jsSiteId+"-0.html";var D="removeListItem";var A="cmd="+D+"&listItemId="+B;if(I!=""&C!=""){A+="&referencedType="+I+"&referencedId="+C}A+="&viewName="+J+"&component"}catch(H){dbug.log("error removing watch item: %o",H)}try{new Image().src="http://dw.com.com/redir?usraction=86&oId="+this.jsOID+"&siteId="+jsSiteId+"&destURL=http%3A%2F%2Fwww.download.com%2Fb.gif"}catch(H){dbug.log("tracking error: ",H)}this.getHTML(K,E,A,this.getErrorHandler(G))},updateEmailPreference:function(A,F,C,E){var B="/3353-"+this.jsNodeId+"_"+this.jsSiteId+"-0.html";var D="editEmailDays";var G="cmd="+D+"&emailDays="+A;if(C){G+="&eventTypes="+C}G+="&component";this.getHTML(null,B,G,this.getErrorHandler(E))},getErrorHandler:function(A){if($type(A)=="function"){return A}else{return this.defaultErrorHandler}},getAuthIdForQS:function(){var A=this.getAuthId();if(A!=null){return"&authId="+A}return""},getAuthId:function(){return Browser.getQueryStringValue("authId")},showWaitingGif:function(A,B,C){try{C=$pick(C,"");if($pick(B,false)){if(B=="small"){$(A).set("html",this.getSmallWaitingHTML(C))}else{if(B=="large"){$(A).set("html",this.getLargeWaitingHTML())}}}}catch(D){dbug.log("error showing waiting gif %o",D)}},getSmallWaitingHTML:function(A){return'<div class="searching"><img src="http://i.d.com.com/i/dl/watchlist/icon_small_waiting.gif" class="icon-waiting-sm" width="13" height="13" border="0">'+A+"</div>"},getLargeWaitingHTML:function(){return'<div class="loading"><img src="http://i.d.com.com/i/dl/watchlist/waiting.gif" class="icon-waiting-lg" width="150" height="54" border="0"></div>'}};window.addEvent("domready",watchList.setAutoCookie);Browser.extend({getQueryStringValue:function(B,A){try{return Browser.getQueryStringValues(A)[B]}catch(C){return null}}});var mboxCopyright="Copyright 2003-2006 Offermatica Corporation. All Rights Reserved.";mboxCreate=function(B){if(!mboxEnv.isSupported()){return }var A=new Array();A[0]="mbox="+B;for(var D=1;D<arguments.length;D++){A[D]=arguments[D]}A[A.length]="mboxCount="+ ++mboxCount;var C=new mbox(B,A);C.put();return C};mbox=function mbox(B,A){this.f=mboxBuildURL(A);this.g=null;this.h=0;this.i=null;this.j=new mboxOfferContent();this.k=this.show;this.error=null;this.l=new Object();this.m=0;if(mboxs[B]){var C="multiple mboxes called: '"+B+'"';this.setError(C);mboxs[B].setError(C);B=B+"-dup-"+Math.floor(Math.random()*999999)}this.e=B;mboxs[B]=this};mbox.prototype.getName=function(){return this.e};mbox.prototype.parameters=function(){return mboxGetParamsFromQueryString(this.f)};mbox.prototype.setError=function(A){this.error=A;this.o=this.putNothing;this.k=this.hide};mbox.prototype.put=function(){if(mboxEnv.isEnabled()){this.setEventTime("put.start");document.write('<div id="'+this.getMarkerName()+'" style="visibility:hidden;display:none"><script language="JavaScript">mboxs["'+this.e+'"].startTimeout(15000);<\/script><script src="'+this.f+'" language="JavaScript"><\/script></div>');this.setEventTime("put.end")}else{document.write('<div id="'+this.getMarkerName()+'"></div>')}};mbox.prototype.putNothing=function(){document.write('<div id="'+this.getMarkerName()+'"></div>')};mbox.prototype.activate=function(){if(this.h){return this.h}this.setEventTime("activate"+ ++this.m+".start");if(this.k()){this.cancelTimeout();this.h=1}this.setEventTime("activate"+this.m+".end");return this.h};mbox.prototype.isActivated=function(){return this.h};mbox.prototype.setActivateAction=function(A){this.k=A};mbox.prototype.setOffer=function(A){this.j=A};mbox.prototype.getOffer=function(){return this.j};mbox.prototype.show=function(){this.setEventTime("show.start");var A=this.j.show(this);this.setEventTime(A==1?"show.end.ok":"show.end");return A};mbox.prototype.showContent=function(C){if(C==null){return 0}var B=this.getDefaultDiv();if(B!=null&&B.parentNode.replaceChild){B.parentNode.replaceChild(C,B)}else{var A=document.getElementById(this.getMarkerName());if(A==null){return 0}if(B!=null){mboxMakeDivInvisible(B)}mboxMakeDivVisible(A)}mboxMakeDivVisible(C);return 1};mbox.prototype.hide=function(){this.setEventTime("hide.start");var A=document.getElementById(this.getMarkerName());if(A!=null){A.style.visibility="hidden";A.style.display="none"}var B=this.getDefaultDiv();if(B!=null){B.style.visibility="visible";B.style.display="block";this.setEventTime("hide.end.ok");return 1}this.setEventTime("hide.end.fail");return 0};mbox.prototype.finalize=function(){this.setEventTime("finalize.start");this.cancelTimeout();if(!this.activate()){this.hide();this.setEventTime("finalize.end.hide")}this.setEventTime("finalize.end.ok")};mbox.prototype.startTimeout=function(A){this.g=setTimeout('mboxCheckTimeoutById("'+this.e+'")',A)};mbox.prototype.cancelTimeout=function(){if(this.g!=null){clearTimeout(this.g)}};mbox.prototype.getImportDiv=function(){return document.getElementById(this.getImportName())};mbox.prototype.getDefaultDiv=function(){if(this.i!=null){return this.i}var A=document.getElementById(this.getMarkerName());while(A!=null){if((A.nodeType==1)&&(A.nodeName=="DIV")){if(A.className.indexOf("mboxMarker-")>0){return null}else{if(A.className=="mboxDefault"){this.i=A;return A}}}A=A.previousSibling}return null};mbox.prototype.setActivateAction=function(A){this.k=A};mbox.prototype.getMarkerName=function(){return"mboxMarker-"+this.e};mbox.prototype.getImportName=function(){return"mboxImported-"+this.e};mbox.prototype.setEventTime=function(A){this.l[A]=(new Date()).getTime()};mbox.prototype.getEventTimes=function(){return this.l};mbox.prototype.getURL=function(){return this.f};mboxMakeDivVisible=function(A){A.style.visibility="visible";A.style.display="block"};mboxMakeDivInvisible=function(A){A.style.visibility="hidden";A.style.display="none"};mboxGetParamsFromQueryString=function(E){var J=new Object();var G=E.indexOf("?");if(G==-1||G==(E.length-1)){return J}var D=E.substring(G+1);var I=D.split("&");for(var H=0;H<I.length;H++){var F=I[H].split("=");if(F.length<2||F[0]==""||F[1]==""){continue}else{J[F[0]]=F[1]}}return J};mboxOfferContent=function(){};mboxOfferContent.prototype.show=function(B){var A=B.getImportDiv();return B.showContent(A)};mboxOfferDefault=function(){};mboxOfferDefault.prototype.show=function(A){return A.hide()};mboxParametersClient=function(){return""};mboxBuildURL=function(A){var C=mboxServerURL;C+="?"+A[0];for(var D=1;D<A.length;D++){C+="&"+A[D]}if(document.location.protocol=="https:"){C=C.replace("http:","https:")}C+="&mboxHost="+document.location.hostname;if(C.indexOf("mboxSession")==-1){C+="&mboxSession="+mboxSessionId.getId()}C+="&mboxPC="+mboxPCId.getId();C+="&mboxPage="+mboxPageId;C+="&mboxXDomain=enabled";C+="&mboxURL="+escape(document.location);var B=escape(document.referrer);if(C.length+B.length<2000){C+="&mboxReferrer="+B}return C+"&mboxVersion="+mboxVersion};mboxIsSupported=function(){return true};mboxEnvironment=function(A){this.G=mboxIsSupported()&&document.getElementById&&(window.attachEvent||document.addEventListener||window.addEventListener);this.H=this.G;if(mboxGetPageParameter(A)!=null){this.H=false}if(!mboxCookies.isEnabled()){this.H=false}if(mboxCookies.getCookie("disable")=="true"){this.H=false}if(this.isAdmin()){this.enable()}};mboxEnvironment.prototype.isEnabled=function(){return this.H};mboxEnvironment.prototype.isSupported=function(){return this.G};mboxEnvironment.prototype.disable=function(A){if(typeof duration=="undefined"){A=60*60}if(!this.isAdmin()){this.H=false;mboxCookies.setCookie("disable","true",A)}};mboxEnvironment.prototype.enable=function(){this.H=true;mboxCookies.deleteCookie("disable")};mboxEnvironment.prototype.isAdmin=function(){return document.location.href.indexOf("mboxEnv")!=-1};mboxEnvironment.prototype.limitTraffic=function(C,B){if(C==100){return }var A=false;if(mboxCookies.getCookie("traffic")=="true"){A=true}if(this.isAdmin()){A=true;mboxCookies.setCookie("level",C,B);mboxCookies.setCookie("traffic",A,B)}else{if(parseInt(mboxCookies.getCookie("level"))!=C){A=(Math.random()*100)<=C;mboxCookies.setCookie("level",C,B);mboxCookies.setCookie("traffic",A,B)}}if(A){this.enable()}else{this.disable()}};mboxCookieManager=function mboxCookieManager(B,A){this.K=B;if(A.indexOf(".")==-1){A=""}this.L=A==""?"":";domain="+A;this.loadCookies()};mboxCookieManager.prototype.isEnabled=function(){this.setCookie("check","true",60);this.loadCookies();return this.getCookie("check")=="true"};mboxCookieManager.prototype.setCookie=function(A,C,B){if(typeof A!="undefined"&&typeof C!="undefined"&&typeof B!="undefined"){this.N[A]={name:A,value:escape(C),expireOn:Math.ceil(B+new Date().getTime()/1000)};this.saveCookies()}};mboxCookieManager.prototype.getCookie=function(A){var B=this.N[A];if(typeof B=="undefined"||B==null){return null}return unescape(B.value)};mboxCookieManager.prototype.deleteCookie=function(A){var B=new Object();for(O in this.N){if(O!=A){B[O]=this.N[O]}}this.N=B;this.saveCookies()};mboxCookieManager.prototype.getCookieNames=function(B){var A=new Object();for(O in this.N){if(O.indexOf(B)==0){A[A.length]=O}}return A};mboxCookieManager.prototype.saveCookies=function(){var C=new Array();var B=0;for(O in this.N){if(this.N[O]!=null){C[C.length]=this.N[O].name+"#"+this.N[O].value+"#"+this.N[O].expireOn;if(B<this.N[O].expireOn){B=this.N[O].expireOn}}}var A=new Date(B*1000);document.cookie=this.K+"="+C.join("|")+";expires="+A.toGMTString()+";path=/"+this.L};mboxCookieManager.prototype.loadCookies=function(){this.N=new Object();var B=document.cookie.indexOf(this.K+"=");if(B!=-1){var A=document.cookie.indexOf(";",B);if(A==-1){A=document.cookie.indexOf(",",B);if(A==-1){A=document.cookie.length}}var F=document.cookie.substring(B+this.K.length+1,A).split("|");var D=Math.ceil(new Date().getTime()/1000);for(var E=0;E<F.length;E++){var C=F[E].split("#");if(D<=C[2]){this.N[C[0]]={name:C[0],value:C[1],expireOn:C[2]}}}}};mboxSetCookie=function(A,C,B){mboxCookies.setCookie(A,C,B)};mboxGetCookie=function(A){return mboxCookies.getCookie(A)};mboxActivateById=function(A){mboxs[A].activate()};mboxCheckTimeoutById=function(A){mboxs[A].activate();if(!mboxs[A].isActivated()){mboxEnv.disable();window.location.reload(false)}};mboxCheckAll=function(){for(var A in mboxs){mboxs[A].finalize()}};mboxSetupSignal=function(C,B){var A=new Array();for(var D=1;D<arguments.length;D++){A[D-1]=arguments[D]}mboxCookies.setCookie("signal-"+C,A.join("&"),45*60)};mboxSignal=function(){var D=mboxCookies.getCookieNames("signal-");for(ab in D){var E=mboxCookies.getCookie(D[ab]);var B=E.split("&");var C=B[0];B[0]="mbox="+C;B[B.length]="mboxCount="+ --mboxSignalCount;var A=new mbox(C,B);A.put();mboxCookies.deleteCookie(D[ab])}};mboxDefaultContentDisplayNone=function(){document.write("<style>.mboxDefault {visibility:hidden;}</style>")};mboxSession=function(A,B,C,D){this.eb=B;this.fb=C;this.gb=D;this.hb=false;this.e=mboxGetPageParameter(this.eb);if(this.e==null||this.e.length==0){this.e=mboxCookies.getCookie("session");if(this.e==null||this.e.length==0){this.e=A;this.hb=true}}mboxCookies.setCookie("session",this.e,D)};mboxSession.prototype.getId=function(){return this.e};mboxPC=function(A,B,C){this.fb=B;this.gb=C;this.e=mboxCookies.getCookie(this.fb);if(this.e==null||this.e.length==0){this.e=A}};mboxPC.prototype.getId=function(){mboxCookies.setCookie("PC",this.e,this.gb);return this.e};mboxPC.prototype.forceId=function(A){if(this.e!=A){this.e=A;mboxCookies.setCookie(this.fb,this.e,this.gb);return true}return false};mboxGenerateId=function(){return(new Date()).getTime()+"-"+Math.floor(Math.random()*999999)};mboxGetPageParameter=function(A){var D=null;var B=new RegExp(A+"=([^&]*)");var C=B.exec(document.location);if(C!=null&&C.length>=2){D=C[1]}return D};mboxCookieIsEnabled=function(){mboxCookies.setCookie("check","true",60);return mboxCookies.getCookie("check")=="true"};mboxSafeBodyOnload=function(A){if(window.addEventListener){window.addEventListener("load",A,false)}else{if(document.addEventListener){document.addEventListener("load",A,false)}else{if(document.attachEvent){window.attachEvent("onload",A)}}}};mboxCookiePageDomain=function(){var A=(/([^:]*)(:[0-9]{0,5})?/).exec(document.location.host)[1];var B=/[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/;if(!B.exec(A)){var C=(/([^\.]+\.[^\.]{3}|[^\.]+\.[^\.]+\.[^\.]{2})$/).exec(A);if(C){A=C[0]}}return A?A:""};mboxCookieDomain=function(){return mboxCookiePageDomain()};if(typeof mboxVersion=="undefined"){var mboxVersion=22;var mboxServerURL="http://mbox4.offermatica.com/m2/cnet/mbox/standard";var mboxCookies=new mboxCookieManager("mbox",mboxCookieDomain());var mboxPageId=mboxGenerateId();var mboxSessionId=new mboxSession(mboxPageId,"mboxSession","session",31*60);var mboxPCId=new mboxPC(mboxPageId,"PC",63072000);var mboxs=new Object();var mboxCount=0;var mboxSignalCount=0;var mboxEnv=new mboxEnvironment("mboxDisable");var mboxPageStartTime=new Date().getTime();var mboxPageEndTime=mboxPageStartTime;mboxSafeBodyOnload(new Function("mboxPageEndTime = new Date().getTime()"));if(mboxEnv.isSupported()){mboxSafeBodyOnload(mboxCheckAll);mboxEnv.limitTraffic(100,10368000);if(mboxEnv.isEnabled()){mboxSignal();mboxDefaultContentDisplayNone()}}}mboxDisplayDebugInfo=function(){mboxDebugger.show()};mboxDebug=function(A,B,C){this.qb=A;this.p=null;var D=mboxGetPageParameter(B);if(D==null){D=mboxCookies.getCookie(this.qb)}if(D!=null){if(D.indexOf("x")==0){this.p=new mboxDebugActionNone();document.write('<script language="Javascript1.2" src="http://admin4.offermatica.com/admin/mbox/mbox_debug_'+D+'.jsp"><\/script>')}else{if(D.indexOf("log")==0){this.p=new mboxDebugActionLog(D)}else{if(D=="reset"){D=null}else{this.p=new mboxDebugActionDefault()}}}}if(this.p!=null){if(C.isSupported()){mboxSafeBodyOnload(mboxDisplayDebugInfo)}else{alert("mbox functionality is not supported on this browser");this.disable()}}if(D!=null){mboxCookies.setCookie(this.qb,D,45*60)}else{this.disable()}};mboxDebug.prototype.isEnabled=function(){return this.p!=null};mboxDebug.prototype.disable=function(){mboxCookies.deleteCookie(this.qb)};mboxDebug.prototype.setShowAction=function(A){this.p=A};mboxDebug.prototype.show=function(){if(this.p!=null){this.p.show()}};mboxDebugActionLog=function(A){this.rb=A;this.sb=(new Date()).getTime()};mboxDebugActionLog.prototype.show=function(){var A=(new Date()).getTime();var B=new mboxDebugWindow("Debug Log");B.putPageStart();B.put("<img src='http://mbox4.offermatica.com/admin/images/spacer.gif?mboxDebug="+this.rb+"&mboxClient=cnet&mboxPageLoadTime="+(A-this.sb)+"&mboxCount="+mboxCount+"&mboxSignalCount="+mboxSignalCount+"'>");B.put("<br />");B.putCloseButton();B.putPageEnd()};mboxDebugActionNone=function(){};mboxDebugActionNone.prototype.show=function(){alert("Debug mode not defined\n('x-mode' not supported when debug is remote in mbox.js)")};mboxDebugActionDefault=function(){};mboxDebugActionDefault.prototype.show=function(){var B=new mboxDebugWindow("Debug");B.putPageStart();B.put("  <b>Mbox Debug Window (version:"+mboxVersion+")</b></br>");B.put("<p/>");B.put("<b>Page</b>: "+document.location);B.put(" <ul>");if(mboxEnv.isEnabled()){B.put("  <li>Enabled: true</li>")}else{B.put('  <li>Enabled: <span style="color:red"><b>false</b></span></li>')}B.put("  <li>Cookies enabled: "+mboxCookieIsEnabled()+"</li>");B.put("  <li>Page URL: '"+document.location+"'</li>");B.put("  <li>Cookies: '"+document.cookie+"'</li>");for(a in mboxs){B.put("  <li>mbox: '"+a+"'");B.put("   <ul>");if(mboxs[a].error!=null){B.put('   <li><span style="color: red"><b>Error: '+mboxs[a].error+"</b></span></li>")}var A=document.getElementById(mboxs[a].getMarkerName());if(A==null){B.put('    <li><span style="color: red"><b>Error: can not find mbox in dom</b></span></li>')}else{B.put("    <li>has mboxDefault content div tags: "+(mboxs[a].getDefaultDiv()!=null)+"</li>")}B.put('    <li><a href="'+mboxs[a].getURL()+'">'+mboxs[a].getURL()+"</a></li>");B.put("   </ul>");B.put("  </li>")}B.put(" </ul>");B.putCloseButton();B.putPageEnd()};mboxDebugWindow=function(A){this.K=A+" "+document.location.hostname;var B=/\W/g;var C=this.K.replace(B,"_");this.ub=window.open("","mboxDebugWindow"+C,"width=600,height=300,resizable,scrollbars=yes,toolbar=yes");if(this.ub==null){alert("Unable to open Offermatica's mboxDebugWindow Window.\nAre you blocking popups?\n");return }};mboxDebugWindow.prototype.put=function(A){if(this.ub==null){return }try{this.ub.document.writeln(A);this.ub.scrollBy(0,1000)}catch(B){alert("Unable to write to the current mboxDebug window.\nPlease close any open debug window");this.ub=null}};mboxDebugWindow.prototype.putCloseButton=function(){this.put('<a href="javascript:mboxDebugWindowClose()">click here to close debug window</a>')};mboxDebugWindow.prototype.putPageStart=function(){this.put("<html><head> <title>"+this.K+"</title>  <script>   function mboxDebugWindowClose() {     try {       window.opener.mboxDebugger.disable();     } catch(e) {       alert('Could not disable debug mode.\\n'         + 'Browse to a page containing an mbox and\\n'         + 'click on close link.');     }     window.close();   }  <\/script> </head> <body>")};mboxDebugWindow.prototype.putPageEnd=function(){this.put("</body></html>");if(this.ub!=null){this.ub.document.close()}};if(typeof mboxDebugger=="undefined"){mboxDebugger=new mboxDebug("debug","mboxDebug",mboxEnv)}
/* end packed code */
}
