
   if(!dbugScripts("ces",["ces2010.tron.global.js"])) {
   /*	ces2010.tron.global.js - packed	*/
       if(!window.UniversalPlayer){var UniversalPlayer={};UniversalPlayer.manager={playerIds:[],players:[],getId:function(){return this.addPlayerId("player"+this.playerIds.length);},addPlayerId:function(A){return this.playerIds[this.playerIds.push(A)-1];},addPlayer:function(A){return this.players[this.players.push(A)-1];}};var loadUniversalPlayer=function(A){if(document.location.search.contains("autoplay=true")){A=$merge((A||{}),{autoPlay:(document.location.search.contains("autoplay=true"))});}var B=function(C){UniversalPlayer.manager.addPlayer(new UniversalPlayer.Player(C));};if(A.parentElement){UniversalPlayer.manager.players.push(A.parentElement);if($(A.parentElement)){B(A);}else{window.addEvent("domready",B(A));}}else{A.parentElement=UniversalPlayer.manager.getId();document.write('<div id="'+A.parentElement+'"></div>');B(A);}};UniversalPlayer.Player=new Class({Implements:Options,options:{parentElement:"",playerType:"Universal",playerTitle:"Cnet Universal Player",autoPlay:false,externalPlayer:false,watchedVideoRotation:false,wrapperFloat:"left",localTest:false,lumiereQueryType:"orderBy",lumiereQueryValue:"productionDate+desc",startVolume:30,expandTabs:false,showVideoInfo:false,hideBkg:false,hideTabs:false,hideLeftTab:false,hideHeader:false,useCurrentPageUrl:false,userAutoplay:false,displayMuteBtn:false,reviewsVideoOnly:false,hideEmailBtn:false,playOverlayText:"PLAY CNET VIDEO",adInterval:2,preRollAd:false,firstVideoPostAd:true,contentPostRollAd:false,adTest:false,relatedVideo:true,externalLinks:false,vendorVideo:false,siteId:PageVars.get("siteId"),pageType:PageVars.get("pageType"),nodeId:PageVars.get("nodeId"),oid:PageVars.getOid(),editionId:PageVars.get("editionId"),brandId:PageVars.get("brandId"),userIP:PageVars.get("userIP"),ncat:PageVars.get("breadcrumb"),userAgent:escape(navigator.userAgent),channelId:PageVars.get("channelId"),assetId:PageVars.get("assetId"),guid:PageVars.get("guid"),dvarMfg:"",refreshMpuEnabled:false,ePartner:"",cpnModule:"",refDomain:"",videoTitle:null,productionDate:null,lengthSecs:null,videoId:null,description:null,embedable:true,primaryNodeId:null,primaryNodePath:PageVars.get("breadcrumb"),externalItemId:null,externalVideoType:null,downloadable:null,isTranscriptAvailable:null,siteId:PageVars.get("siteId"),image53x40:null,image106x80:null,image320x240:null,relatedLinkUrls:null,relatedLinks:null,relatedLinkTexts:null,deliveryUrl:null,downloadUrl:null,initObject:window,initAction:"load"},initialize:function(A){this.setOptions(A);this.processPlayerData();this.setAutoPlayProperties();this.makeDiv();},processPlayerData:function(){if(this.options.useCurrentPageUrl){this.options.useCurrentPageUrl=document.URL;}if(Cookie.get("userVolume")!=null){this.options.startVolume=Cookie.get("userVolume");}},setAutoPlayProperties:function(){if(Cookie.get("userAutoPlay")=="disabled"){this.options.autoPlay=false;}},makeDiv:function(){var G=(this.options.playerType=="Widget")?"http://i.i.com.com/cnwk.1d/i/vid/uPlayerWidgetLoader.gif":"http://i.i.com.com/cnwk.1d/i/vid/uPlayerLoader.gif";if(this.options.playerType=="Widget"){var E=300;var H=250;var F="universalWidget";var B="0px";}else{if(this.options.playerType=="small"){var E=364;var H=280;var F="universalSmall";var B="0px";}else{if(this.options.playerType=="ces2010-large"){var E=640;var H=408;var F="ces2010/ces-large";var B="0px";}else{if(this.options.playerType=="ces2010-small"){var E=386;var H=262;var F="ces2010/ces-small";var B="0px";}else{if(this.options.playerType=="ces2010-live"){var E=460;var H=322;var F="ces2010/ces-live";var B="0px";}else{if(this.options.hideTabs==true){var E=460;var H=322;}else{var E=460;var H=342;}var D="http://i.i.com.com/cnwk.1d/i/vid/uPlayerBG.gif";var B="61px 0px 0px 8px";var F="universal";}}}}}var A=new Element("div",{id:"universalVideoWrapper"+UniversalPlayer.manager.players.length,"class":"float"+this.options.wrapperFloat,styles:{width:E,height:H,position:"relative",zIndex:"90","float":this.options.wrapperFloat}});if(this.options.hideTabs==true){if(this.options.pageType==4505){A.setStyle("borderBottom","#ffffff solid 2px");}else{A.setStyle("borderBottom","#cbcbcb solid 1px");}}A.inject(this.options.parentElement);var C=new Element("img",{id:"universalLoaderImg"+UniversalPlayer.manager.players.length,src:G,styles:{position:"absolute",zIndex:"100",margin:B}});this.checkFlashVersion(A,E,H,F,C,B);},checkFlashVersion:function(D,A,I,F,K,B){var E=8;var G;if(navigator.plugins&&navigator.mimeTypes.length){G=navigator.plugins["Shockwave Flash"];if(G&&G.description){G=G.description;}}else{if(Browser.Engine.trident){G=$try(function(){return new ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version");});}}pluginVersion=(typeof G=="string")?parseInt(G.match(/\d+/)[0]):0;var J=pluginVersion>=E;if(!J){D.set("html","We&rsquo;ve detected that you need to upgrade or install Flash "+E+' or later to view our library of thousands of tech videos. Installing Flash is fast, free, and easy! Simply follow the instructions from your browser, or <a href="http://www.adobe.com/go/getflashplayer" id="flashVidErrorLink">click here to install/upgrade the free Flash player</a>.<br />&nbsp;<br />Thanks,<br />The CNET TV Team');D.setStyles({font:"normal 14px Arial, Helvetica, San Serif",lineHeight:"18px",color:"#000",margin:B,padding:"8px",width:A-16,height:I-16});}else{var H=this;if(this.options.initAction==false){H.makeSwf(D,A,I,F);}else{var C=$(this.options.initObject)||$$(this.options.initObject);C.addEvent(this.options.initAction,function(){H.makeSwf(D,A,I,F);});}}},makeSwf:function(K,J,Q,C){if(this.options.watchedVideoRotation==true){if(Cookie.get("cnetWatchedVideos")!=false){var G=Cookie.get("cnetWatchedVideos").split(",");for(r=0;r<G.length;r++){if(G.length>5){G.splice(0,1);}}var H=this.options.lumiereQueryValue.split(",");for(var N=0;N<G.length;N++){var D=G[N];for(var O=0;O<H.length;O++){if(D==H[O]){H.splice(O,1);H.push(D);var M=true;}}}var E=(M==true)?H:escape(this.options.lumiereQueryValue);}else{var E=escape(this.options.lumiereQueryValue);}}else{var E=escape(this.options.lumiereQueryValue);}var L=document.URL;if((L.contains(".com:")==true&&L.contains("uat")==false)||L.contains("preview1.")==true||L.contains("dev-server-test.dev.sub.classes")==true){var A=false;}else{var A=true;}if(this.options.adTest==true){var R="http://www.cnet.com/av/video/flv/universalPlayer/"+C+".swf";}else{if(L.contains("i.i.com.com/cnwk.1d")==true||L.contains("localhost")==true){var R="http://www.cnet.com/av/video/flv/universalPlayer/"+C+".swf";}else{if(L.contains("ssadev")==true){var R="http://publish.cnet.com:8100/av/video/flv/universalPlayer/"+C+".swf";}else{if(L.contains("proxy/preview.html?type=")==true){var R="http://cnettv.cnet.com/av/video/flv/universalPlayer/"+C+".swf";}else{var R="/av/video/flv/universalPlayer/"+C+".swf";}}}}if(this.options.localTest==true){var R="http://publish.cnet.com:8100/av/video/flv/universalPlayer/tests/"+C+".swf";}if(window.location.href.indexOf("playerVersion")>0){var F=Browser.getQueryStringValues().playerVersion;var R="/av/video/flv/universalPlayer/"+F+"/"+C+".swf";}if(this.options.playerType=="Reviews"){if(this.options.image53x40.contains("http://www.download.com")){this.options.image53x40=this.options.image53x40.split("http://www.download.com")[1];}if(this.options.image106x80.contains("http://www.download.com")){this.options.image106x80=this.options.image106x80.split("http://www.download.com")[1];}if(this.options.image320x240.contains("http://www.download.com")){this.options.image320x240=this.options.image320x240.split("http://www.download.com")[1];}}var P=K.getProperty("id").split("universalVideoWrapper")[1];var B=this.options.parentElement;var I=new Swiff(R,{id:"universalPlayer"+P,width:J,height:Q,container:K,params:{wMode:"transparent",bgcolor:"#EDEDED",scale:"noscale",salign:"lt",swLiveConnect:"true",allowScriptAccess:"always",allowFullScreen:"true"},vars:{ddom:Browser.getHost(),parent:true,live:A,parentElement:B,playerIteration:P,playerType:this.options.playerType,name:this.options.playerTitle,autoplay:this.options.autoPlay,externalPlayer:this.options.externalPlayer,type:this.options.lumiereQueryType,value:E,startVolume:this.options.startVolume,expandTabs:this.options.expandTabs,showVideoInfo:this.options.showVideoInfo,hideLeftTab:this.options.hideLeftTab,hideHeader:this.options.hideHeader,copyUrl:this.options.useCurrentPageUrl,userAutoplay:this.options.userAutoplay,displayMuteBtn:this.options.displayMuteBtn,hideTabs:this.options.hideTabs,reviewsVideoOnly:this.options.reviewsVideoOnly,hideBkg:this.options.hideBkg,hideEmailBtn:this.options.hideEmailBtn,playOverlayText:this.options.playOverlayText,adInterval:this.options.adInterval,firstVideoPreRoll:this.options.preRollAd,firstVideoPostRoll:this.options.firstVideoPostAd,contentPostRoll:this.options.contentPostRollAd,adTest:this.options.adTest,relatedVideo:this.options.relatedVideo,externalLinks:this.options.externalLinks,vendorVideo:this.options.vendorVideo,si:this.options.siteId,br:this.options.brandId,ip:this.options.userIP,ua:this.options.userAgent,cid:this.options.assetId,oid:this.options.oid,edid:this.options.editionId,nd:this.options.nodeId,pt:this.options.pageType,ncat:this.options.ncat,guid:this.options.guid,dvarMfg:this.options.dvarMfg,refreshMpuEnabled:this.options.refreshMpuEnabled,ePartner:this.options.ePartner,cpnModule:this.options.cpnModule,refDomain:this.options.refDomain,videoTitle:this.options.videoTitle,productionDate:this.options.productionDate,lengthSecs:this.options.lengthSecs,videoId:this.options.videoId,description:this.options.description,embedable:this.options.embedable,primaryNodeId:this.options.primaryNodeId,primaryNodePath:this.options.primaryNodeId,externalItemId:this.options.externalItemId,externalVideoType:this.options.externalVideoType,downloadable:this.options.downloadable,isTranscriptAvailable:this.options.isTranscriptAvailable,siteId:this.options.siteId,image53x40:this.options.image53x40,image106x80:this.options.image106x80,image320x240:this.options.image320x240,relatedLinkUrls:this.options.relatedLinkUrls,relatedLinks:this.options.relatedLinks,relatedLinkTexts:this.options.relatedLinkTexts,deliveryUrl:this.options.deliveryUrl,downloadUrl:this.options.downloadUrl}});}});var trackEvent=function(B){B=escape(B);var A="http://dw.com.com/redir?destUrl="+escape("http://i.i.com.com/cnwk.1d/b.gif?"+Math.floor(Math.random()*1000));A+="&edid="+this.options.edid;A+="&oid="+this.options.oid;A+="&onid="+this.options.nd;A+="&siteid="+this.options.si;A+="&ptid="+this.options.pt;A+="&ctype=event";A+="&cval="+B;var C=new Image;C.src=A;dbug.log("trackEvent: &cval="+B);};var checkCookie=function(A){return Number(new Cookie(A).read().toString());};var setCookie=function(C,B,A){new Cookie(C).write(B,A);};var Swiff=new Class({Implements:[Options],options:{id:null,height:1,width:1,container:null,properties:{},params:{quality:"high",allowScriptAccess:"always",wMode:"transparent",swLiveConnect:true},callBacks:{},vars:{}},toElement:function(){return this.object;},initialize:function(L,M){this.instance="Swiff_"+$time();this.setOptions(M);M=this.options;var B=this.id=M.id||this.instance;var A=$(M.container);Swiff.CallBacks[this.instance]={};var E=M.params,G=M.vars,F=M.callBacks;var H=$extend({height:M.height,width:M.width},M.properties);var K=this;for(var D in F){Swiff.CallBacks[this.instance][D]=(function(N){return function(){return N.apply(K.object,arguments);};})(F[D]);G[D]="Swiff.CallBacks."+this.instance+"."+D;}E.flashVars=Hash.toQueryString(G);if(Browser.Engine.trident){H.classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000";E.movie=L;}else{H.type="application/x-shockwave-flash";H.data=L;}var J='<object id="'+B+'"';for(var I in H){J+=" "+I+'="'+H[I]+'"';}J+=">";for(var C in E){if(E[C]){J+='<param name="'+C+'" value="'+E[C]+'" />';}}J+="</object>";this.object=((A)?A.empty():new Element("div")).set("html",J).firstChild;},replaces:function(A){A=$(A,true);A.parentNode.replaceChild(this.toElement(),A);return this;},inject:function(A){$(A,true).appendChild(this.toElement());return this;},remote:function(){return Swiff.remote.apply(Swiff,[this.toElement()].extend(arguments));}});Swiff.CallBacks={};Swiff.remote=function(obj,fn){var rs=obj.CallFunction('<invoke name="'+fn+'" returntype="javascript">'+__flash__argumentsToXML(arguments,2)+"</invoke>");return eval(rs);};}var ThumbScroller=new Class({Extends:Fx.Scroll,scrollOptions:{thumbs:".box",axis:"x",thumbContainer:null,nav:{},startIndex:0,tolerance:0},initialize:function(A,B){if($(A).retrieve("thumbscroller")){return false;}this.parent(A,$merge(this.scrollOptions,B));this.element.store("thumbscroller",this);this.element.setStyle("overflow","hidden");this.computeDimensions();this.initNav();this.toIndex(this.options.startIndex);this.lastScroll=null;this.fireEvent("onInitialize");return this;},computeDimensions:function(){this.thumbs=this.element.getElements(this.options.thumbs);this.setParentSize();this.positions=this.getLocations();return this;},isAtEnd:function(A){A=A||this.getRange();var B=A[A.length-1];return(B.index==this.thumbs.length-1&&(B.type!="partial"||B.tolerated));},isAtStart:function(A){A=A||this.getRange();var B=A[0];return(B.index==0&&(B.type!="partial"||B.tolerated));},getLocations:function(){return this.thumbs.map(function(B){var C=B.getComputedSize()[this.getDir("total")];var A=B.getPosition(B.getParent())[this.getDir("xy")];return{size:C,start:A,end:C+A};},this);},initNav:function(){$$(this.options.nav.next).addEvent("click",this.toNextScreen.bind(this));$$(this.options.nav.previous).addEvent("click",this.toPreviousScreen.bind(this));$$(this.options.nav.start).addEvent("click",this.toStart.bind(this));$$(this.options.nav.end).addEvent("click",this.toEnd.bind(this));},getDir:function(A){switch(A){case"total":if(this.options.axis=="y"){return"totalHeight";}return"totalWidth";case"dir":if(this.options.axis=="y"){return"height";}return"width";case"xy":default:if(this.options.axis=="y"){return"y";}return"x";}},getStart:function(A){if(this.options.axis=="y"){return[0,A];}return[A,0];},getStartPx:function(A){if(!A){return 0;}return this.positions[A].start-(this.positions[A].start-this.positions[A-1].end);},setParentSize:function(){var A=(this.options.thumbContainer)?this.element.getElement(this.options.thumbContainer):this.element.getElement(this.options.thumbs).getParent();var B=0;$each(this.thumbs,function(C){B+=C.getComputedSize({styles:["padding","border","margin"]})[this.getDir("total")];},this);A.setStyle(this.getDir("dir"),B);},getRange:function(E){E=E||this.element.getScroll()[this.getDir("xy")];var D=this.element.getComputedSize({styles:["padding"]})[this.getDir("total")];var C=[];for(var A=0;A<this.positions.length;A++){var B=this.withinRange(this.positions[A],E,E+D);if(B){C.push($merge(B,{index:A}));if(B.where=="end"){break;}}}return C;},withinRange:function(C,B,A){if(C.end>B&&C.end<=A){if(C.start>=B){return{type:"full"};}else{return{type:"partial",where:"start",tolerated:((B-C.start)<=this.options.tolerance)};}}else{if(C.start>=B&&C.start<A){return{type:"partial",where:"end",tolerated:((C.start-A)<this.options.tolerance)};}else{if(C.start<B&&C.end>A){return{type:"full"};}}}return false;},toNextScreen:function(){var A=this.getRange();if(A.getLast().type=="partial"&&!A.getLast().tolerated&&A.length>1){this.start.run(this.getStart(this.getStartPx(A.getLast().index)),this);}else{if($(this.thumbs[A.getLast().index+1])){this.start.run(this.getStart(this.getStartPx(A.getLast().index+1)),this);}else{this.toEnd();}}this.lastScroll="next";},toPreviousScreen:function(){var A=this.getRange();var C=(A[0].type=="partial"&&!A[0].tolerated&&A.length>1)?A[0].index:A[0].index-1;if(!this.positions[C]){this.toStart();return ;}var B=this.positions[C].end-this.element.getComputedSize({styles:["padding"]})[this.getDir("total")];var E=this.getRange(B);var D=(E[0].type=="partial"&&E.length>1)?E[0].index+1:E[0].index;this.start.run(this.getStart(this.getStartPx(D)),this);this.lastScroll="previous";},toIndex:function(A){this.start.run(this.getStart(this.getStartPx(parseInt(A))),this);},toStart:function(){if(this.options.axis=="y"){this.toTop();}else{this.toLeft();}},toEnd:function(){if(this.options.axis=="y"){this.toBottom();}else{this.toRight();}}});var CES2010Videos=new Class({Implements:[Options,Events],flashEvents:{},initialize:function(B,A){this.elem=$(B);this.setOptions(A);this.setInstance();this.setElems();this.poller=this.options.poller||false;this.addFlashEvent("onAdStart_cbsi",this.adStart.bind(this));},addFlashEvent:function(B,A){this.registerFlashEvent(B);this.addEvent(B,A);},whenPlayerReady:function(A){this.addEvent("onPlayerReady",A);},registerFlashEvent:function(A){if(!this.flashEvents[A]){this.flashEvents[A]=function(){this.fireEvent(A,this.getVideoInfo());}.bind(this);this.whenPlayerReady(function(){this.getPlayer().addEventJSCallback(A,"CES2010Videos.videos."+this.instanceName+".flashEvents."+A);}.bind(this));}},getVideoInfo:function(){return this.getPlayer().getVideoInfo();},getPlayer:function(){return(window[this.elem.id]||document[this.elem.id]);},setElems:function(){this.elems={mpu:$("metaMpu"),onDemand:$$("img.onDemandCallout"),onAir:$$("onAirCallout"),title:$("episodeTitle"),switchToLive:$("switchToLive")};},setInstance:function(){var A=CES2010Videos.videos.push(this)-1;this.instanceName=this.options.instanceName||"p"+A;CES2010Videos.videos[this.instanceName]=this;},adStart:function(){this.videoAdStarted=true;this.refreshCESMpu();},getMadUrl:function(){var B,A=window.location.host;if(!this.madUrl){B="http://";B+=((A.contains("dev")||A.contains("tron")||A.contains("uat"))?"madstage":"mads")+".";B+=((PageVars.get("siteId","number")==53)?"cnettv":"cnet");B+=".com/mac-ad";this.madUrl=new Link(B).setQueryString({CELT:"ifc",BRAND:PageVars.get("brandId"),SITE:PageVars.get("siteId"),SP:16,POS:100,PTYPE:PageVars.get("pageType")});}return this.madUrl;},refreshCESMpu:function(A){A=A||getAdNcat();window.addEvent("domready",function(){this.elems.mpu.empty();new Element("iframe",{"class":"madison_ad",id:"madison_mpu",src:this.getMadUrl().setQuery("NCAT",A).get("href"),width:"300",height:"260",marginwidth:"0",marginheight:"0",hspace:"0",vspace:"0",frameborder:"0",scrolling:"no",allowtransparency:"true","background-color":"transparent"}).inject(this.elems.mpu);}.bind(this));},updateTitle:function(A){if(this.elems.title){this.elems.title.set("html",A);}}});CES2010Videos.videos=[];var isJSReady=function(){return Browser.loaded||false;};var setAdNcat=function(A){CES2010Videos.ncat=A;};var getAdNcat=function(){return CES2010Videos.ncat;};function onCBSIPlayerReady(){CES2010Videos.videos.each(function(A){A.fireEvent.run("onPlayerReady",A);});}var CBSCarousel=new Class({Implements:[Options,Events],options:{slide$$:"li.carouselSlide",slideInterval:6000,transitionDuration:"short",startIndex:0,indicatorActiveClass:"selected",indicatorInactiveClass:"off",rotateAction:"mouseenter",rotateActionDuration:100,autoplay:true,useIndicators:true,indicatorContainerClass:"indicators",indicator$$:null,nextButtonClass:"carouselNext",prevButtonClass:"carouselPrev",pauseOnHover:true,pauseOnBlur:true},initialize:function(A,B){A=$(A);if(A.retrieve("carousel")){return false;}this.container=A;this.container.store("carousel",this);this.setOptions(B);this.slides=this.setSlides();if(this.options.useIndicators){this.setIndicators();}this.showSlide(this.options.startIndex);this.setButtons();if(this.options.pauseOnHover&&this.options.autoplay){this.setHoverPausing();}if(this.options.pauseOnBlur&&this.options.autoplay){this.setWindowPausing();}if(this.options.autoplay){this.autoplay();}this.fireEvent("onInitialize");return this;},setHoverPausing:function(){this.setBindings();this.container.addEvents({mouseenter:this.bound.stop,mouseleave:this.bound.autoplay});this.addEvent("onActiveSelect",this.bound.clearPausing);},setWindowPausing:function(){if(!this.bound){this.setBindings();}window.addEvents({blur:this.bound.stop,focus:this.bound.autoplay});},clearPausing:function(){this.container.removeEvent("mouseenter",this.bound.stop);this.container.removeEvent("mouseleave",this.bound.autoplay);window.removeEvent("blur",this.bound.stop);window.removeEvent("focus",this.bound.autoplay);this.removeEvent("onActiveSelect",this.bound.clearPausing);},setBindings:function(){this.bound={autoplay:this.autoplay.bind(this),stop:this.stop.bind(this),clearPausing:this.clearPausing.bind(this)};},setSlides:function(){slides=this.container.getElements(this.options.slide$$);slides.each(function(A,B){A.set("tween",{duration:this.options.transitionDuration,onStart:function(){if(A.getStyle("opacity")<0.1){A.setStyle("display","block");}},onComplete:function(){if(A.getStyle("opacity")<1){A.setStyle("display","none");}}});A.setStyles({display:(B==this.options.startIndex)?"block":"none",opacity:(B==this.options.startIndex)?1:0});}.bind(this));return slides;},setIndicators:function(){this.indicators=(this.options.indicator$$)?this.container.getElements(this.options.indicator$$):this.createIndicators();this.indicators.each(function(A,B){A.addEvent(this.options.rotateAction,this.activeSelect.bind(this,B));},this);},createIndicators:function(){var A=new Element("ul",{"class":this.options.indicatorContainerClass}).inject(this.container);var C=[];for(var B=0;B<this.slides.length;B++){C.push(new Element("li",{text:B}).inject(A));}return C;},setButtons:function(){this.container.getElements("."+this.options.nextButtonClass).removeProperties("onclick","href").addEvent("click",this.activeSelect.bind(this,"next"));this.container.getElements("."+this.options.prevButtonClass).removeProperties("onclick","href").addEvent("click",this.activeSelect.bind(this,"prev"));},activeSelect:function(A){if($type(A)!="number"){A=this.getToIndex(A);}if(this.slideshowInt){this.stop();}this.showSlide(A);this.fireEvent("onActiveSelect");},getToIndex:function(A){if(A=="next"){return(this.currentIndex==this.slides.length-1)?0:this.currentIndex+1;}return((this.currentIndex==0)?this.slides.length:this.currentIndex)-1;},showSlide:function(A){if(A==this.currentIndex){return this;}$each(this.slides,function(B,C){if(C==A){if(this.options.useIndicators){this.indicators[C].swapClass(this.options.indicatorInactiveClass,this.options.indicatorActiveClass);}B.fade("in");}else{if(this.options.useIndicators){this.indicators[C].swapClass(this.options.indicatorActiveClass,this.options.indicatorInactiveClass);}B.fade("out");}}.bind(this));this.fireEvent("onShowSlide",[A,this.currentIndex]);this.currentIndex=A;return this;},autoplay:function(){if(this.slideshowInt){return this;}this.slideshowInt=this.rotate.periodical(this.options.slideInterval,this);this.fireEvent("onAutoPlay");return this;},stop:function(){this.slideshowInt=$clear(this.slideshowInt);this.fireEvent("onStop");return this;},rotate:function(){var B=this.currentIndex;var A=(B+1>=this.slides.length)?0:B+1;this.showSlide(A);this.fireEvent("onRotate",[A,B]);return this;},toElement:function(){return this.container;}});var cesVideo=new Class({initialize:function(){var A=$("videoHub"),B=A.getProperty("videoIds");this.videoArea=A.getElement(".videoPlayer");this.initVideo(B,A.getProperty("autoPlay"));this.player=A.getElement("object");this.player=window[this.player.id]||document[this.player.id];this.thumbs=A.getElements(".videoThumbs .thumb");this.thumbs.each(function(C){C.addEvent("click",function(){this.userClick(C.getProperty("videoId"));}.bind(this));},this);this.setCurrentVid(B.split(",")[0]);},userClick:function(A){this.player.showClipsFromPage(null,"videoId",A);this.setCurrentVid(A);},initVideo:function(B,A){this.videoArea.empty();loadUniversalPlayer({parentElement:this.videoArea,playerType:$("videoHub").getProperty("playerType"),lumiereQueryType:"id",lumiereQueryValue:B,autoPlay:A,preRollAd:true,firstVideoPostAd:false,contentPostRollAd:true,externalLinks:true,hideBkg:false,relatedVideo:false,hideTabs:true,hideEmailBtn:true,initObject:null,initAction:false});},setCurrentVid:function(A){this.thumbs.each(function(B){B[((B.getProperty("videoId")==A)?"add":"remove")+"Class"]("currentVid");});}});window.addEvent("domready",function(){var C,A,B=$("videoHub");if(B){new cesVideo();C=B.getElement("object");if(C){A=new CES2010Videos(C);A.addFlashEvent("onContentStart_cbsi",function(D){if(!this.videoAdStarted&&!this.mpuRefreshed){this.refreshCESMpu(PageVars.get("breadcrumb"));this.mpuRefreshed=true;}this.updateTitle(D.title);if(D.isLiveStream){this.setOnAirButton();}else{this.setOnDemandButton();}});}}if($("vidThumbContainer")){new ThumbScroller("vidThumbContainer",{axis:"x",thumbs:".thumb",nav:{next:$$(".vidThumbs .scrollArrows .next"),previous:$$(".vidThumbs .scrollArrows .previous")}}).addEvent("onComplete",function(){$$(this.options.nav.previous).setStyle("opacity",((this.isAtStart())?".3":"1"));$$(this.options.nav.next).setStyle("opacity",((this.isAtEnd())?".3":"1"));}).fireEvent("onComplete");(function(){var D=$$("#vidThumbContainer .thumb");D.each(function(E){var F=E.getElement("img");E.store("tip:title",F.getProperty("alt"));F.erase("alt");});cnetToolTips.attach(D);})();}if($("imgThumbContainer")){new ThumbScroller("imgThumbContainer",{axis:"y",thumbs:".thumb",nav:{next:$$(".thumbScroller .scrollingArrows .next"),previous:$$(".thumbScroller .scrollingArrows .previous")}}).addEvent("onComplete",function(){$$(this.options.nav.previous).setStyle("opacity",((this.isAtStart())?".3":"1"));$$(this.options.nav.next).setStyle("opacity",((this.isAtEnd())?".3":"1"));}).fireEvent("onComplete");}if($("contentBody").getElement("#hiliteContainer")){new CBSCarousel($$("#contentBody .headlineScroller")[0],{slide$$:".heds",slideInterval:3500,autoplay:true,transitionDuration:500,indicatorContainerClass:null,indicator$$:null,useIndicators:false,nextButtonClass:"next",prevButtonClass:"previous"});}else{if($("contentMain").getElement("#hiliteContainer")){new ThumbScroller("hiliteContainer",{axis:"x",thumbs:".heds",nav:{next:$$(".headlineScroller .scrollingArrows .next"),previous:$$(".headlineScroller .scrollingArrows .previous")}}).addEvent("onComplete",function(){$$(this.options.nav.previous).setStyle("opacity",((this.isAtStart())?".3":"1"));$$(this.options.nav.next).setStyle("opacity",((this.isAtEnd())?".3":"1"));}).fireEvent("onComplete");}}});
   }
       
