
 //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/tron/cbsnews/",["cbsnews.a2.48door.js"])) {
 /*	cbsnews.a2.48door.js - packed	*/
       var BackgroundRotator=new Class({Implements:[Options],options:{background$$:".background",rotatePeriod:6000,transitionDuration:3500,preload:true,autoplay:true},initialize:function(B,A){B=$(B);if(B.retrieve("backgroundrotator")){return false;}this.element=B;this.setOptions(A);this.backgrounds=this.element.getElements(this.options.background$$);this.initBackgrounds();if(!this.backgrounds.length){return false;}this.show(0,true);if(this.options.autoplay&&this.backgrounds.length>1){this.autoPlay();}this.element.store("backgroundrotator",this);},initBackgrounds:function(){this.backgrounds.each(function(B,A){if(A){B.setStyles({opacity:0,display:"block"});}B.set("tween",{duration:this.options.transitionDuration});},this);},show:function(B,A){if(A){this.backgrounds[B].setStyle("opacity",1);}else{this.backgrounds[B].fade("in");}this.currentIndex=B;if(this.options.preload&&!this.onceThrough&&this.getNextIndex()){this.preloadNext(this.getNextIndex());}},hide:function(B,A){if(A){this.backgrounds[B].setStyle("opacity",0);}else{this.backgrounds[B].fade("out");}},rotate:function(){this.hide(this.currentIndex);this.show(this.getNextIndex());},getNextIndex:function(){if(this.currentIndex==this.backgrounds.length-1){this.onceThrough=true;return 0;}return this.currentIndex+1;},autoPlay:function(){if(!this.playing){this.playing=this.rotate.periodical(this.options.rotatePeriod,this);}},stopAutoPlay:function(){this.playing=$clear(this.playing);},preloadNext:function(A){var B=this.backgrounds[A].getStyle("backgroundImage");B=B.replace("url(","").replace(")","");new Image().src=B;}});window.addEvent("domready",function(){$$(".episodeList li.promoBox").each(function(A){A.addEvents({mouseenter:A.addClass.pass("active",A),mouseleave:A.removeClass.pass("active",A)});});window.addEvent("domready",function(){new BackgroundRotator($("contentBody").getElement(".leadStory"));});});
 /* end packed code */
 }
       
