
   if(!dbugScripts("cbsnews",["cbsnews.a2.segment.js"])) {
   /*	cbsnews.a2.segment.js - packed	*/
       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){if(isNaN(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 CBSThumbScroller=new Class({Extends:ThumbScroller,cbsOptions:{thumbs:"li.promoBox",nav:{next:".arrowRight",previous:".arrowLeft"},setArrowClasses:false,onInitialize:function(){this.addEvent("onStart",this.startEvent);},onComplete:function(){var B=this.getRange(),A;this.setArrows.run([B],this);if(!this.imagesLoaded){A=B.map(function(C){return this.thumbs[C.index];},this);this.loadImages.run(A);}}},initialize:function(C,A){this.outerShell=$(C);var B=$merge(this.cbsOptions,A);if(B.nav){$each(B.nav,function(F,E,D){D[E]=this.outerShell.getElements(F);}.bind(this));}this.parent(this.outerShell.getElement(".scrollShell"),B);},loadImages:function(){$A(arguments).each(function(A){var C=A.getElement(".assetThumb img");var B=(C)?C.getProperty("loadsrc"):null;if(C&&B){if(C.getProperty("src")!=B){C.setProperty("src",B);}}});},setArrows:function(A){if(this.options.setArrowClasses){if(this.isAtStart(A)){$$(this.options.nav.previous).removeClass("arrowsOn").addClass("arrowsOff");}else{$$(this.options.nav.previous).removeClass("arrowsOff").addClass("arrowsOn");}if(this.isAtEnd(A)){$$(this.options.nav.next).removeClass("arrowsOn").addClass("arrowsOff");}else{$$(this.options.nav.next).removeClass("arrowsOff").addClass("arrowsOn");}}else{$$(this.options.nav.previous).morph({opacity:(this.isAtStart(A))?0.3:1});$$(this.options.nav.next).morph({opacity:(this.isAtEnd(A))?0.3:1});}},startEvent:function(){this.loadImages.run(this.thumbs);this.imagesLoaded=true;this.removeEvent("onStart",this.startEvent);},initNav:function(){this.parent();$$(this.options.nav.next,this.options.nav.previous).set("morph",{duration:"short"});}});var CBSCarousel=new Class({Implements:[Options,Events],options:{slide$$:"li.carouselSlide",slideInterval:6000,transitionDuration:"short",startIndex:0,indicatorActiveClass:"selected",indicatorInactiveClass:"off",indicatorDisplayStart:0,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 C=this.options,A=new Element("ul",{"class":C.indicatorContainerClass}).inject(this.container);var D=[];for(var B=0;B<this.slides.length;B++){D.push(new Element("li",{text:B+(C.indicatorDisplayStart||0)}).inject(A));}return D;},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 FormRecycler={Base:new Class({Implements:[Options,Events],options:{clone:false,findLocalData:$lambda({}),resetOnMove:true,resetOnHide:false},initialize:function(B,A){this.setOptions(A);this.shell=(this.options.clone)?$(B).clone():$(B);this.form=(this.shell.get("tag")=="form")?this.shell:this.shell.getElement("form");if(!this.form){return null;}this.findLocalData=this.options.findLocalData;this.form.store("mobileForm",this);this.fireEvent("onInitialize");return this;},relocateForm:function(A){this.removeLocalParams();if(this.options.resetOnMove){this.form.reset();this.fireEvent("onReset");}this.setLocalData(this.findLocalData(A));this.fireEvent("onRelocate",A);},removeLocalParams:function(){this.form.getElements("input").each(function(A){if(A.getProperty("local")){A.dispose();}});},setLocalData:function(A){if(!A||$type(A)!="object"){return null;}$each(A,function(C,B){new Element("input",{type:"hidden",name:B,value:C,local:"true"}).inject(this.form);},this);},move:function(A){A=$(A);if(!A){return false;}this.relocateForm(A);return A;},toElement:function(){return this.shell;}})};$extend(FormRecycler,{Inline:new Class({Extends:FormRecycler.Base,Implements:Chain,options:{hideFormsInParent:true,revealOptions:{},firstParent:null},initialize:function(B,A){A=$merge(this.options,A||{});this.parent(B,A);if(!this.form){return null;}this.form.store("mobileForm",this);this.currentParent=$(this.options.firstParent)||null;this.shell.set("reveal",$merge(this.options.revealOptions,{onComplete:this.callChain.bind(this)}));return this;},relocateForm:function(A){this.parent(A);A.adopt(this.shell);this.currentParent=A;this.callChain();},move:function(A){this.clearChain();A=$(A);if(!A){return ;}if(this.currentParent==A){if(this.options.hideFormsInParent){this.hideOthers();}this.shell.get("reveal").toggle();return ;}this.chain(this.relocateForm.pass(A,this),this.show.bind(this));this.hide();},show:function(){if(this.shell.get("reveal").hiding){this.show.delay(10,this);return ;}if(this.options.hideFormsInParent){this.hideOthers();}this.shell.reveal();this.fireEvent("onShow");},hideOthers:function(){this.currentParent.getElements("form").each(function(A){try{if(A!=this.form){A.retrieve("mobileForm").toElement().dissolve();}}catch(B){dbug.log(B);}});},hide:function(){this.shell.dissolve();this.fireEvent("onHide");}}),GlobalModal:new Class({Extends:FormRecycler.Base,options:{modalOptions:{}},initialize:function(B,A){A=$merge(this.options,A||{});this.parent(B,A);try{this.modal=new GlobalModal($merge(this.options.modalOptions||{},{content:this.shell}));}catch(C){dbug.log("Modal failure: %o",C);}},move:function(A){A=this.parent(A);if(!A){return false;}this.show();},show:function(){this.modal.show();this.fireEvent("onShow");},hide:function(){this.modal.hide();this.fireEvent("onHide");}})});var CommentForm=new Class({Extends:FormRecycler.Inline,commentOptions:{submitElems:false,closeElems:false,useValidator:true,validatorOptions:{},useTextFieldCounter:true,submissionType:null},initialize:function(B,A){this.parent(B,$merge(this.commentOptions,A));try{this.validator=(this.options.useValidator)?new FormValidator(this.form,this.options.validatorOptions):false;}catch(C){dbug.log("Validator addition failed: %o",C);this.validator=false;}this.waiter=false;this.form.set("send",{onRequest:function(){if(!this.waiter){this.waiter=new Waiter(this.form);}this.waiter.start();}.bind(this),onComplete:function(){if(this.waiter){this.waiter.stop();}}.bind(this),onSuccess:this.handlePostResponse.bind(this),onFailure:this.handleFailure.bind(this)});if(this.options.useTextFieldCounter&&window.TextFieldCounter){this.textCounters=new TextFieldCounter(this.form);}if(this.options.submitElems){this.form.getElements(this.options.submitElems).addEvent("click",this.doSubmit.bind(this));}if(this.options.closeElems){this.form.getElements(this.options.closeElems).addEvent("click",this.hide.bind(this));}this.form.addEvent("submit",function(D){D.stop();this.doSubmit();}.bind(this));},doSubmit:function(){if(!UserVars.isLoggedIn()){return false;}this.form.getElements("input[type=text], textarea").each(function(A){A.set("value",A.get("value").trim());});if(this.validator&&!this.validator.validate()){return false;}this.form.send();},hide:function(){this.parent();if(this.validator){this.chain(function(){this.validator.reset();if(this.options.useTextFieldCounter){this.textCounters.resetAllCounters();}this.fireEvent("onReset");this.callChain();}.bind(this));}},handlePostResponse:function(E){this.hide();var A=(PageVars.get("siteId")==162)?UserVars.get("userName"):'<a href="http://www.cnet.com/profile/'+UserVars.get("userName").replace(" ","+")+'">'+UserVars.get("userName")+"</a>";var D=(PageVars.get("siteId")==162)?"CBS'":"CNET's";this.responseObj={"delete":{fail:"There was a problem deleting this comment, please try again.",success:"This comment has been deleted.",pending:"This comment will be deleted shortly."},rop:{fail:"There was a problem submitting this form, please try again.",success:"Your message has been submitted and will be reviewed by our staff. Thank you, "+A+", for helping us maintain "+D+" great community!",pending:"Your message will be submitted shortly and reviewed by our staff. Thank you, "+A+", for helping us maintain "+D+" great community!"},comment:{fail:"There was a problem submitting your comment, please try again.",success:"Thanks for your comment, "+A+".",pending:"Thanks for your comment, "+A+". It will be posted to our site shortly."},edit:{fail:"There was a problem updating your comment, please try again.",success:"This comment has been successfully updated.",pending:"This comment will be updated shortly."},email:{fail:"There was a problem submitting this email, please try again.",success:"Thank you, "+A+". Your email has been sent.",pending:"Thank you, "+A+". Your email will be sent shortly."}};this.thanks=new Element("div",{"class":"userReviewForm thankyou"}).inject(this.shell,"before");if(E.match("<status>failure</status>")){var C=this.responseObj[this.options.submissionType].fail;}else{if(E.match("<status>pending</status>")){var C=this.responseObj[this.options.submissionType].pending;}else{var C=this.responseObj[this.options.submissionType].success;}}var B=new Element("h2",{html:'<span class="thanks">'+C+"</span>"}).inject(this.thanks);new Element("a",{"class":"closeConfirm",text:"close",events:{click:function(){this.thanks.dissolve();}.bind(this)}}).inject(B);if(E.match("<status>success</status>")&&this.options.submissionType=="comment"){var F=E.match(/name="assetId"\ value="(\d+)"/)[1].toInt();if(PageVars.get("siteId")!=162){new Element("a",{href:new Link("/8618-"+PageVars.get("nodeId")+"_"+PageVars.get("siteId")+"-"+PageVars.get("assetId")+".html").mergeQueryString({communityId:this.form.getElement("input[name=communityId]").get("value"),targetCommunityId:this.form.getElement("input[name=targetCommunityId]").get("value"),assetTypeId:this.form.getElement("input[name=assetTypeId]").get("value"),blogId:PageVars.get("pageNumber"),messageId:F}).get("href"),text:"Click here to view your comment","class":"readMore"}).inject(B,"after");}else{new Element("a",{href:new Link("/8618-"+PageVars.get("nodeId")+"_"+PageVars.get("siteId")+"-"+PageVars.get("assetId")+".html").mergeQueryString({assetTypeId:this.form.getElement("input[name=assetTypeId]").value,messageId:F}).get("href"),text:"Click here to view your comment","class":"readMore"}).inject(B,"after");}}this.fireEvent("onCommentSuccess",arguments);},handleFailure:function(){this.writeMessage('This action was not completed. Please try again, or notify us at our <a href="http://cnet.custhelp.com/">Help Center</a>.');},writeMessage:function(A){new Element("div",{html:A}).inject(this.shell,"before");}});var commentsForms={findMessageId:function(C){var B=null;var A=C;do{B=A.getProperty("messageId");}while(!B&&(A=A.getParent("dl")));if(!B){return false;}return{commentId:B};},findParentMessageId:function(C){var B=null;var A=C;do{B=A.getProperty("messageId");}while(!B&&(A=A.getParent("dl")));if(!B){return false;}return{parentCommentId:B};}};var initializeComments=new Class({initialize:function(){if(!$("fixedCommentBox")){return false;}$("fixedCommentBox").getElement("dl.addcommentform").setStyle("display","block");this.setUpComments();this.initLinks();},setUpComments:function(){commentsForms.reply=new CommentForm("replyArea",{findLocalData:commentsForms.findParentMessageId,resetOnHide:false,submitElems:".addcomment a",submissionType:"comment",closeElems:".cancel a",useTextFieldCounter:false,onCommentSuccess:function(I){new Jlogger({tag:"submitReply"}).ping();Cookie.write("cachebypass","true",{duration:0.01,path:"/"});try{I=JSON.decode(I);var H=this.thanks.getElement("div a");if(I.commentId&&H.get("text").contains("Click here to view")){H.setProperty("href",PageVars.getPath({pageType:"8618",pageNumber:false})+"?assetTypeId=41&messageId="+I.commentId);}}catch(J){dbug.log("Failed to ammend the reply link: %o",J);}},onRelocate:function(){if(this.form.getElement("input[name=post_fb]")){this.form.getElement("input[name=post_fb]").checked=true;}}});CURS.Manager.addEvent("onLogin",function(){if(CURS.Social.fb.isUser()){commentsForms.reply.addEvent("onCommentSuccess",function(){var M=$E("h1");var K=M.getElement("a");var J=((K)?K:M).get("text");dbug.log("Story title: "+J);dbug.log("Reply summary: "+CURS.Social.fb.getParsedText($("replyArea").getElement("textarea[name=body]").get("value"),4999,false));var H=((K)?"http://news.cnet.com"+K.get("href"):new Link(window.location.href).mergeQueryString({jsdebug:false,tag:false}).get("href"));var N=this.thanks.getElement("a.readMore");var I=[{text:"Read this comment",href:(N.get("href").contains("http://"+document.domain))?N.get("href"):"http://"+document.domain+N.get("href")}];try{CURS.Social.fb.ensureInit(function(){FB.Connect.streamPublish("",{name:J,href:H,caption:"{*actor*} replied to a CBS News member's comment on this story.",description:CURS.Social.fb.getParsedText($("replyArea").getElement("textarea[name=body]").get("value"),4999,false)},I);},true);}catch(L){CURS.Social.fb.ensureActiveSession(function(){FB.ui({method:"stream.publish",display:"dialog",message:"",attachment:{name:J,href:H,caption:"{*actor*} replied to a CBS News member's comment on this story.",description:CURS.Social.fb.getParsedText($("replyArea").getElement("textarea[name=body]").get("value"),4999,false)},action_links:I,user_message_prompt:""});});}});}});commentsForms.offensive=new CommentForm("offensiveArea",{findLocalData:commentsForms.findMessageId,resetOnHide:false,submitElems:".submit.send a.button",submissionType:"rop",closeElems:".cancel a",useTextFieldCounter:false,onRelocate:function(){var I=this.form.getElement("input[name=permalink]");var H=new Link(I.get("value")).mergeQueryString({messageId:this.form.getElement("input[name=commentId]").get("value")});H=H.get("href").replace("http://"+document.domain,"");I.set("value",H);},onCommentSuccess:function(){new Jlogger({tag:"submitOffensive"}).ping();}});commentsForms.emailAFriend=new CommentForm("emailAFriendArea",{findLocalData:commentsForms.findMessageId,resetOnHide:false,submissionType:"email",submitElems:".submit.send a.button",closeElems:".cancel a",useTextFieldCounter:false,onRelocate:function(){var I=this.form.getElement("input[name=permalink]");var H=new Link(I.get("value")).mergeQueryString({messageId:this.form.getElement("input[name=commentId]").get("value")});H=H.get("href").replace("http://"+document.domain,"");I.set("value",H);},onCommentSuccess:function(){new Jlogger({tag:"emailComment"}).ping();}});var C=function(){commentsForms.newComment=new CommentForm("newCommentForm",{submitElems:".submit.addcomment a.button",clone:false,submissionType:"comment",useTextFieldCounter:false,onCommentSuccess:function(K){Cookie.write("cachebypass","true",{duration:0.01,path:"/",domain:CURS.Manager.getCookieHost()});new Jlogger({tag:"submitComment"}).ping();var J="opt_out";if($("newCommentForm").getElement("#subscribeComments").checked){J="opt_in";}if(typeof abvar=="undefined"){abvar="";}new Jlogger({ctype:"comment_opt",cval:J,tag:abvar}).ping();try{this.thanks.inject($("fixedCommentBox"),"before");$("fixedCommentBox").setStyle("display","none");K=JSON.decode(K);var I=this.thanks.getElement("div a");if(K.commentId&&I.get("text").contains("Click here to view")){I.setProperty("href",PageVars.getPath({pageType:"8618",pageNumber:false})+"?assetTypeId=41&messageId="+K.commentId);}}catch(L){dbug.log("Thanks replacement fail: %o",L);}}});if(CURS.Social.fb.isUser()){commentsForms.newComment.addEvent("onCommentSuccess",function(){var N=$E("h1");var L=N.getElement("a");var K=((L)?L:N).get("text");var I=((L)?"http://news.cnet.com"+L.get("href"):new Link(window.location.href).mergeQueryString({jsdebug:false,tag:false}).get("href"));var O=this.thanks.getElement("a.readMore");dbug.log("Story title: "+K);dbug.log("Comment summary: "+CURS.Social.fb.getParsedText($("newCommentForm").getElement("textarea[name=body]").get("value"),4999,false));var J=[{text:"Read this comment",href:(O.get("href").contains("http://"+document.domain))?O.get("href"):"http://"+document.domain+O.get("href")}];try{CURS.Social.fb.ensureInit(function(){FB.Connect.streamPublish("",{name:K,href:I,caption:"{*actor*} commented on this story on CBS News.",description:CURS.Social.fb.getParsedText($("newCommentForm").getElement("textarea[name=body]").get("value"),4999,false)},J);},true);}catch(M){CURS.Social.fb.ensureActiveSession(function(){FB.ui({method:"stream.publish",display:"dialog",message:"",attachment:{name:K,href:I,caption:"{*actor*} replied to a CBS News member's comment on this story.",description:CURS.Social.fb.getParsedText($("newCommentForm").getElement("textarea[name=body]").get("value"),4999,false)},action_links:J,user_message_prompt:""});});}});}var H=commentsForms.newComment.form.getElement("input[name=body]");if(H){H.addClass("maxLength").setProperty("validatorprops","{minLength:2, maxLength: 4999}");}};var G=function(L){var K="<a class='login'>Log in or create an account</a> to post a comment.";K+='<span class="fbButton"> OR';K+='<span class="fbConnectInvite" style="text-align:center;">Quickly sign in with: </span>';L=L||K;var H=$E("dd.invite")||(new Element("dd",{"class":"status invite",html:'<p class="message"></p>'}).inject($("fixedCommentBox").getElement(".addcommentform dt.hed"),"after"));var J=H.getElement("p.message");J.empty();J.set("html",L);D(J);var I;if((dbug.enabled||Browser.qs.jsdebug)&&CBSi.jsdebug){if(CBSi.jsdebug=="true"){I="http://publish.cnet.com:8100/html/rb/js/tron/oreo.login.js";}else{if(PageVars.get("siteId")==162){I="http://publish.cnet.com:8100/html/rb/js/~dev/"+CBSi.jsdebug+"/cbsnews/oreo.a2.cbsnews.login.js";}else{I="http://publish.cnet.com:8100/html/rb/js/~dev/"+CBSi.jsdebug+"/oreo.login.js";}}}else{I="http://i.i.com.com/cnwk.1d/html/rb/js/tron/oreo.login.compressed.js";}if(!CURS.Process){new Asset.javascript(I,{id:"oreoLogin",onload:function(){CURS.Social.fb.init();$$(".connect2fbButton").addEvent("click",CURS.Social.fb.triggerLogin.pass(CURS.Social.fb.startSession));}});}else{CURS.Social.fb.init();$$(".connect2fbButton").addEvent("click",CURS.Social.fb.triggerLogin.pass(CURS.Social.fb.startSession));}D(J);};var B=function(){var H=$("fixedCommentBox").getElement("dd.invite");if(!$("fixedCommentBox").getElement("dd.welcome")){var I=new Element("dd",{"class":"status welcome",html:'<p>You are logged in as <span class="cnetUserName"></span>. Please leave a comment.'});if(H){I.replaces(H);}else{I.inject($("fixedCommentBox").getElement(".addcommentform dt.hed"),"after");}}CURS.Manager.writeUserNames(I);};var D=function(H){if(!E){return false;}E=E.filter(function(J){return !!$(J);});var I=$(H).getElements("a");I=I.filter(function(J){return !E.contains(J);});I.addEvent("click",F);E.combine(I);};G();var A=function(){if(!UserVars.isLoggedIn()){G();}else{if(!UserVars.hasFullAccess()){G("Your account is not yet confirmed. <a>Click here to confirm your account.</a>");}else{if(!$chk(UserVars.get("userName"))){G("You'll need a CBS News username in order to submit a review. <a>Click here to create a username.</a>");}else{B();if(!commentsForms.newComment){C();}}}}};CURS.Manager.addEvent("onLogin",function(){A();CURS.Manager.addEvent("onStateChange",function(){A();});});var E=$("fixedCommentBox").getElements(".status a.login, #new-body, #subComment");var F=function(H){var I={registerHed:"Join CBS News to comment on this story",loginHed:"Log in to CBS News to comment on this story",appId:"189",nextAction:function(){if(commentsForms.newComment){E.removeEvent("click",F);CURS.Manager.removeEvents("onStateChange");}}};CURS.Manager.checkLogin(I);};E.addEvent("click",F);window.addEvent("domready",function(){if(!UserVars.isLoggedIn()){var H;if((dbug.enabled||Browser.qs.jsdebug)&&CBSi.jsdebug){if(CBSi.jsdebug=="true"){H="http://publish.cnet.com:8100/html/rb/js/tron/cbsnews/oreo.a2.cbsnews.login.js";}else{H="http://publish.cnet.com:8100/html/rb/js/~dev/"+CBSi.jsdebug+"/cbsnews/oreo.a2.cbsnews.login.js";}}else{H="http://i.i.com.com/cnwk.1d/html/rb/js/tron/cbsnews/oreo.a2.cbsnews.login.compressed.js";}if(!CURS.Process){new Asset.javascript(H,{id:"oreoLogin",onload:function(){CURS.Social.fb.init();$$(".connect2fbButton").addEvent("click",CURS.Social.fb.triggerLogin.pass(CURS.Social.fb.startSession));}});}else{CURS.Social.fb.init();$$(".connect2fbButton").addEvent("click",CURS.Social.fb.triggerLogin.pass(CURS.Social.fb.startSession));}}});},initLinks:function(A){A=$(A)||$(document.body).getElement(".userComments");A.getElements("a.reply").addEvent("click",function(B){CURS.Manager.checkLogin({registerHed:"Join CBS News to reply to this comment",loginHed:"Log in to CBS News to reply to this comment",appId:"189",nextAction:function(){commentsForms.reply.move($(B.target).getParent("dl").getElement(".toolstretch"));}});});A.getElements("a.repo").addEvent("click",function(B){CURS.Manager.checkLogin({registerHed:"Join CBS News to report this comment",loginHed:"Log in to CBS News to report to this comment",appId:"189",nextAction:function(){commentsForms.offensive.move($(B.target).getParent("dl").getElement(".toolstretch"));}});});A.getElements("a.mail").addEvent("click",function(B){CURS.Manager.checkLogin({registerHed:"Join CBS News to e-mail this comment to a friend",loginHed:"Log in to CBS News to e-mail this comment to a friend",appId:"189",nextAction:function(){commentsForms.emailAFriend.move($(B.target).getParent("dl").getElement(".toolstretch"));}});});this.initLike();},initLike:function(){$$(".userComments a.like, .userComments a.unlike").addEvent("click",function(A){this.likeWaiter=new Waiter(A.target,{baseHref:"http://i.i.com.com/cnwk.1d/i/cbs/",img:{src:"commentsLikeLoader.gif",styles:{width:16,height:16,background:"#EDEDED"}},layer:{styles:{background:"#EDEDED"}}});CURS.Manager.checkLogin({registerHed:"Join CBSNews.com to like this comment",loginHed:"Log in to CBSNews.com to like this comment",appId:220,cval:"assetrating",nextAction:function(){this.likeWaiter.start();this.sendLikeUnlikeRequest(A.target);}.bind(this)});}.bind(this));},sendLikeUnlikeRequest:function(B){var A=(B.hasClass("like"))?"8679":"8680";if(!B.hasClass("likethankyou")){new Request.JSON({url:"/"+A+"-4_"+PageVars.get("siteId")+"-0.html",data:{assetId:(B.getProperty("assetId"))?B.getProperty("assetId"):null,assetTypeId:77,viewType:"json",assetVoteId:(B.hasClass("like"))?null:B.getProperty("assetVoteId")},onSuccess:function(E){if(E){E=E.response;if(E.status["$"]=="success"){new Jlogger({tag:(B.hasClass("like"))?"likeComment%":"unlikeComment%"}).ping();var F;E.data.datum.each(function(H){if(H["@name"]=="assetTypeId"){F=H["@value"];}if(H["@name"]=="assetVoteId"){assetVoteId=H["@value"];}});if(!B.getProperty("assetVoteId")){B.setProperty("assetVoteId",F);}B.set("text","Thank you!");B.addClass("likethankyou");this.likeWaiter.stop();this.setVoteNum(B,(B.hasClass("like"))?"like":"unlike");this.toggleLike.delay(3000,this,B);}else{if(E.errors.error["@name"]=="ALREADY_VOTED"){var C=new StickyWinFx({content:"You have already liked this comment",relativeTo:B,className:"alreadyVotedMsg",position:"upperLeft",fadeDuration:500}).show();this.toggleLike(B);this.likeWaiter.stop();C.hide.delay(4000,C);}else{if(E.errors.error["@name"]=="REMOVE_PROBLEM"){var D=new StickyWinFx({content:"<b>Error: </b>There was a problem removing your vote. Please try again.",relativeTo:B,className:"removeProblemMsg",position:"upperLeft",fadeDuration:500}).show();this.likeWaiter.stop();D.hide.delay(4000,D);}else{if(E.errors.error["@name"]=="SUBMIT_PROBLEM"){var G=new StickyWinFx({content:"<b>Error: </b>There was a problem submitting your vote. Please try again.",relativeTo:B,className:"submitProblemMsg",position:"upperLeft",fadeDuration:500}).show();this.likeWaiter.stop();G.hide.delay(4000,G);}else{if(E.errors.error["@name"]=="NOT_OWNER"){var D=new StickyWinFx({content:"<b>Error: </b>You do not have a vote registered for this comment.",relativeTo:B,className:"removeProblemMsg",position:"upperLeft",fadeDuration:500}).show();this.likeWaiter.stop();this.toggleLike(B);D.hide.delay(4000,D);}}}}}}}.bind(this)}).send();}else{this.likeWaiter.stop();}},toggleLike:function(A){A.removeClass("likethankyou");if(A.hasClass("like")){A.set("text","Unlike this");}else{A.set("text","Like this");}A.toggleClass("like");A.toggleClass("unlike");},setVoteNum:function(C,B){if(C.getParent().getElement("span.liked")){var E=C.getParent().getElement("span.liked");var A=E.getElement("b").get("text").toInt();var D;if(B=="like"){if(A==1){D="people like";}else{D="people";}A+=1;}else{if(A==1){D="people like";}else{if(A>1){D="person likes";}}A-=1;}E.set("html","<b>"+A+"</b> "+D+" this comment");}else{if(B="like"){new Element("span",{"class":"liked"}).set("html","<b>1</b> person likes this comment").inject(C.getParent(),"bottom");}}}});window.addEvent("domready",function(){commentsForms.initialize=new initializeComments();});var CBSPostCarousel=new Class({initialize:function(){new Jlogger({tag:"galleryStrip",ctype:"button",cval:"arrowRight",element:$$("#cbsPostCarousel .arrowRight")[0],event:"click"});new Jlogger({tag:"galleryStrip",ctype:"button",cval:"arrowLeft",element:$$("#cbsPostCarousel .arrowLeft")[0],event:"click"});return new CBSPhotoCarousel("cbsPostCarousel",{autoplay:false,indicatorActiveClass:"active",rotateAction:"click",indicatorContainerClass:"indicatorNum",nextButtonClass:"arrowRight",prevButtonClass:"arrowLeft",indicatorDisplayStart:1});}});var CBSPhotoCarousel=new Class({Extends:CBSCarousel,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.loadImages.run(this.container.getElements(this.options.slide$$));this.fireEvent("onInitialize");return this;},createIndicators:function(){var C=this.options,A=new Element("div",{"class":C.indicatorContainerClass}).inject($("indicatorPhotoNum"));var D=[];for(var B=0;B<this.slides.length;B++){D.push(new Element("span",{"class":"scrollingNum",text:B+(C.indicatorDisplayStart||0)}).inject(A));}return D;},loadImages:function(){$A(arguments).each(function(A){var C=A.getElement(".assetThumb img");var B=(C)?C.getProperty("loadsrc"):null;if(C&&B){if(C.getProperty("src")!=B){C.setProperty("src",B);}}});}});window.addEvent("domready",function(){$$("#contentBody .sideScroller").each(function(B){if(!B.retrieve("thumbscroller")){new CBSThumbScroller(B);}});var A=$("videoInteract");if(A){$$("a.linkIcon").set("target","new");}});
   }
       
