
 //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.widget.livefeed.js"])) {
 /*	cbsnews.widget.livefeed.js - packed	*/
       if(!window.BNT){var BNT={};}BNT.TickerAnimation=new Class({Implements:[Options,Events],options:{delayInterval:800,frameInterval:10000},tickerIndex:0,items:null,animationLoopId:null,animationIntervalId:null,initialize:function(B,A){this.setOptions(A);this.items=$$(B.getElements("ul li"));if(this.items.length>1){this.startAnimation(B);}},startAnimation:function(B){dbug.log("ANIMATION: multiple items... starting");this.items[0].morph({display:"block",opacity:1});dbug.log("ANIMATION: showing 0");this.tickerIndex++;var A=function(){this.items.set("morph",{onComplete:function(){if(this.element.getStyle("opacity").toInt()==0){this.element.setStyle("display","none");}}});this.items.morph({opacity:0});var C=function(){this.items[this.tickerIndex].morph({display:"block",opacity:1});dbug.log("ANIMATION: showing "+this.tickerIndex);this.tickerIndex++;if(this.tickerIndex>this.items.length-1){this.fireEvent("onAnimationSequenceEnd");this.tickerIndex=0;}};this.animationIntervalId=C.delay(this.options.delayInterval,this);};this.animationLoopId=A.periodical(this.options.frameInterval,this);},stopAnimation:function(){dbug.log("ANIMATION: stop");$clear(this.animationLoopId);$clear(this.animationIntervalId);}});window.addEvent("domready",function(){externalLinks();var C=new BNT.TickerAnimation($$("#headlineContainer"));loadFeed(100);$$("#headlineSelector a").addEvent("click",function(){C.stopAnimation();var D=this.get("href");D=D.substring(D.indexOf("#")+1,D.length);loadFeed(D);return false;});try{var A=new Request.JSON({url:"/feedfiles/livefeed.json",onComplete:function(D){if(D.liveNow){$$("#liveNow h2").appendText(D.liveNow);}if(D.feed.feedItem.length>0){var F="";var E=D.feed.feedItem;for(i=0;i<E.length;i++){F+="<dt>"+E[i].time+"</dt>";F+="<dd>"+E[i].text+"</dd>";}$$("#headlineStack").set("html","<dl>"+F+"</dl>");}}}).get();}catch(B){dbug.log("Feed Loading failed:",B);}});function externalLinks(){if(!document.getElementsByTagName){return ;}var C=document.getElementsByTagName("a");for(var B=0;B<C.length;B++){var A=C[B];if(A.getAttribute("href")&&A.getAttribute("rel")=="external"){A.target="_blank";}}}function loadFeed(B){var A="/common/newsQuery/livefeed.sphp?id="+B;new Request({url:A,onSuccess:function(C){$("headlineContainer").set("html",C);var D=new BNT.TickerAnimation($$("#headlineContainer"));externalLinks();}}).send();}
 /* end packed code */
 }
       