
   if(!dbugScripts("cbsnews",["cbsnews.a2.door.js"])) {
   /*	cbsnews.a2.door.js - packed	*/
       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.slides.length>1){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.slides.length>1){this.indicators[C].swapClass(this.options.indicatorInactiveClass,this.options.indicatorActiveClass);}B.fade("in");}else{if(this.options.useIndicators&&this.slides.length>1){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 ThumbScroller=new Class({Extends:Fx.Scroll,scrollOptions:{thumbs:".box",axis:"x",thumbContainer:null,nav:{},startIndex:0,tolerance:0},initialize:function(A,B){if(typeof (A)=="string"){if($(A).retrieve("thumbscroller")){return false;}}else{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(){try{if(typeof (this.options.nav.next)=="string"){$$(this.options.nav.next).addEvent("click",this.toNextScreen.bind(this));}else{if(this.options.nav.next instanceof Array){this.options.nav.next[0].addEvent("click",this.toNextScreen.bind(this));}else{this.options.nav.next.addEvent("click",this.toNextScreen.bind(this));}}if(typeof (this.options.nav.previous)=="string"){$$(this.options.nav.previous).addEvent("click",this.toPreviousScreen.bind(this));}else{if(this.options.nav.previous instanceof Array){this.options.nav.previous[0].addEvent("click",this.toPreviousScreen.bind(this));}else{this.options.nav.previous.addEvent("click",this.toPreviousScreen.bind(this));}}if(typeof (this.options.nav.start)=="string"){$$(this.options.nav.start).addEvent("click",this.toStart.bind(this));}else{if(this.options.nav.start instanceof Array){this.options.nav.start[0].addEvent("click",this.toStart.bind(this));}else{this.options.nav.start.addEvent("click",this.toStart.bind(this));}}if(typeof (this.options.nav.end)=="string"){$$(this.options.nav.end).addEvent("click",this.toEnd.bind(this));}else{if(this.options.nav.end instanceof Array){this.options.nav.end[0].addEvent("click",this.toEnd.bind(this));}else{this.options.nav.end.addEvent("click",this.toEnd.bind(this));}}}catch(A){}},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 ImgDoorRollOver=new Class({initialize:function(A){A=$$(A);this.element=A;this.initRoll(A);return this;},initRoll:function(A){$$(A).addEvent("mouseenter",this.onMouseEnter.bind(this));$$(A).addEvent("mouseleave",this.onMouseLeave.bind(this));},onMouseLeave:function(A){this.element.getElement("div").set({styles:{width:"118px",height:"50px",bottom:"20px",left:"20px"}});this.element.getElement(".mnPhotoTextWrapper").set({styles:{bottom:"30px","margin-right":"0"}});this.element.getElement(".mnPhotoName").hide();this.element.getElement(".mnPhotoTextOverlay").hide();},onMouseEnter:function(A){this.element.getElement("div").set({styles:{width:"260px",height:"272px",bottom:"20px",left:"20px"}});this.element.getElement(".mnPhotoName").show();this.element.getElement(".mnPhotoTextOverlay").show();this.element.getElement(".mnPhotoTextWrapper").set({styles:{bottom:"20px","margin-right":"20px"}});}});var ScrollLock=new Class({Implements:[Options,Events],options:{elementlock:null},initialize:function(A){this.setOptions(A);this.element=$(this.options.elementlock);this.eleCoords=this.element.getCoordinates();this.attachScroll();},attachScrollEvent:function(){var A=window.getScroll();var D=$("cbsFooterWrap").offsetHeight;var C=$("contentBody").offsetHeight;var B=this.element.getSize();if((A.y>this.eleCoords.top)&&(A.y<(C-D))){this.element.setStyles({width:"300px",left:"auto",position:"fixed",top:"0"});}else{if(A.y>=(C-D)){this.element.setStyles({width:"300px",position:"absolute",top:(C-B.y)+"px"});}else{if(A.y<(C-B.y)){this.element.setStyles({position:"static",top:"0"});}}}},attachScroll:function(){var A=this.attachScrollEvent.bind(this);window.addEvent("scroll",A);}});window.addEvent("load",function(){if(PageVars.get("channelId")=="505263"&&(PageVars.get("pageType")=="2001")){if(navigator.userAgent.match(/MSIE 7.0/i)==null){var A=new ScrollLock({elementlock:"twitterModuleCBSThisMorning"});}}});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);}}});}});var ThisMorningStream=new Class({country:null,timeZone:null,currentDay:null,coastalFeed:null,initialize:function(){var A=new CbsLocalization({cache:false});A.addEvent("hasLocale",function(B){this.country=B.country;this.timeZone=B.timezone;this.currentDay=B.day;var C=B.time;this.setTimeInfo(C);}.bind(this));A.init();return ;},bucketTZ:function(){switch(this.timeZone){case"-500":return"east";break;case"-600":return"central";break;case"-700":return"mtn";break;case"-800":return"west";break;default:return null;}},setTimeInfo:function(C){this.coastalFeed=this.bucketTZ();var A=new Date(C*1000);var B=A.getUTCHours()+":"+((A.getUTCMinutes()<10)?"0":"")+A.getUTCMinutes();this.isShowTime(B);},noShowOverride:function(){if(typeof killShow!="undefined"){return true;}else{return false;}},buildModule:function(){if(!this.noShowOverride()){$("heroLeadStory").empty();$("heroLeadStory").setStyles({"border-bottom":"none",padding:"0"});var F=new Element("div",{id:"thisMorningLiveVideoId","class":"thisMorningLiveVideo"});var E=new Element("div",{"class":"thisMorningVideoHolder",id:"thisMorningVideoHolderId"});var B=new Element("div",{"class":"thisMorningVideoAux",id:"thisMorningVideoAuxId"});var A=new Element("div",{"class":"thisMorningDropShadow"});var D=new Element("img",{width:"600",id:"ctmLiveSlate",height:"339",border:"0",src:"http://i.i.com.com/cnwk.1d/i/cbs/morningNews/thisMorning_liveSlate.jpg"});F.injectAfter($("breakingNewsBanner"));E.injectInside($("thisMorningLiveVideoId"));B.injectInside($("thisMorningLiveVideoId"));D.injectInside($("thisMorningVideoHolderId"));A.injectAfter($("thisMorningLiveVideoId"));$("ctmLiveSlate").addEvent("click",function(H){var G=new Element("div",{id:"flashvideocontent"});G.injectAfter($("ctmLiveSlate"));$("ctmLiveSlate").dispose();$("topMPU").empty();CBSVideo.setNewData({playerWidth:"600",playerHeight:"339",vidWidth:"600",vidHeight:"327",controlsDisplay:"over"});CBSVideo.setPlayerResize(339,600);CBSVideo.setVideoId(this.getStreamIds(this.coastalFeed));}.bind(this));var C=new Request({method:"get",url:"/2033-100_162-1083.html?nomesh",data:{"do":"1"},onComplete:function(G){$("thisMorningVideoAuxId").set("html",G);}}).send();}},compareZuluTime:function(C,A,B){if((C<=B)&&(B<=A)){this.buildModule();}else{dbug.log("No Morning Show");}},getStreamIds:function(A){switch(A){case"east":return"50115012";break;case"central":return"50115319";break;case"mtn":return"50115012";break;case"west":return"50115319";break;default:return"50071423";}},isShowTime:function(B){if(this.country=="usa"){var A=["Monday","Tuesday","Wednesday","Thursday","Friday"];if(A.contains(this.currentDay)){dbug.log("Air Day");if(this.coastalFeed=="east"){this.compareZuluTime("11:45","14:00",B);}else{if(this.coastalFeed=="central"){this.compareZuluTime("12:45","15:00",B);}else{if(this.coastalFeed=="mtn"){this.compareZuluTime("13:45","16:00",B);}else{if(this.coastalFeed=="west"){this.compareZuluTime("14:45","17:00",B);}else{dbug.log("Major failure");}}}}}else{dbug.log("Not an air day");}}else{dbug.log("Sacrebleu! internationale d'utilisateurs");}}});window.addEvent("domready",function(){if(PageVars.get("nodeId")=="505263"&&(PageVars.get("pageType")=="2001")){var A=new ThisMorningStream();}});Element.implement("cbsNodeIndex",function(){var A=0;elem=this;while(elem.previousSibling){if(elem.previousSibling.nodeName=="#text"){elem=elem.previousSibling;}else{A++;elem=elem.previousSibling;}}return A;});var SixtyMinsCarousel=new Class({initialize:function(){dbug.log("SixtyMinsCarousel");return new CBSCarousel("cbsCarousel",{indicator$$:"li.carouselListItem"});}});var CrimeSiderCarousel=new Class({initialize:function(){return new CBSCarousel("cbsCarousel",{indicator$$:"li.carouselListItem"});}});var CBSDoorCarousel=new Class({initialize:function(){var A=new CBSCarousel("cbsCarousel",{indicatorActiveClass:"active",rotateAction:"click",slideInterval:8000});new Jlogger({tag:"carousel",ctype:"button",cval:"prev",element:$$("#cbsCarousel .carouselPrev")[0],event:"click"});new Jlogger({tag:"carousel",ctype:"button",cval:"next",element:$$("#cbsCarousel .carouselNext")[0],event:"click"});$$("#cbsCarousel .carouselLink, #cbsCarousel .carouselCaption a").addEvent("click",function(){new Jlogger({tag:"carousel",ctype:"action;pane",cval:"click;"+($("cbsCarousel").retrieve("carousel").currentIndex+1)}).ping();});return A;}});var cbsCarouselGallery=new Class({initialize:function(){var A=new CBSCarousel("cbsCarouselGallery",{indicatorActiveClass:"active",rotateAction:"click",indicatorDisplayStart:1,slideInterval:6000,onInitialize:function(){this.myindicate=this.indicators[0].getParent("ul");this.myindicate.inject(this.slides[0].getElement(".num_display"));},onRotate:function(B){this.myindicate.inject(this.slides[B].getElement(".num_display"));},onActiveSelect:function(){this.myindicate.inject(this.slides[this.currentIndex].getElement(".num_display"));}});new Jlogger({tag:"carousel",ctype:"button",cval:"prev",element:$$("#cbsCarouselGallery .carouselPrev")[0],event:"click"});new Jlogger({tag:"carousel",ctype:"button",cval:"next",element:$$("#cbsCarouselGallery .carouselNext")[0],event:"click"});$$("#cbsCarouselGallery .carouselLink, #cbsCarouselGallery .carouselCaption a").addEvent("click",function(){new Jlogger({tag:"carousel",ctype:"action;pane",cval:"click;"+($("cbsCarouselGallery").retrieve("carousel").currentIndex+1)}).ping();});return A;}});var CBSDoorCarouselMoreNews=new Class({initialize:function(){var A=new CBSCarousel("cbsCarouselMoreNews",{indicatorActiveClass:"active",rotateAction:"click",autoplay:false});$$("#cbsCarouselMoreNews .carouselLink, #cbsCarouselMoreNews .carouselCaption a").addEvent("click",function(){new Jlogger({tag:"carousel",ctype:"action;pane",cval:"click;"+($("cbsCarouselMoreNews").retrieve("carousel").currentIndex+1)}).ping();});return A;}});var CBSDoorCarouselVideoFD=new Class({initialize:function(){var A=new CBSCarousel("cbsCarouselVideoFD",{indicatorActiveClass:"active",rotateAction:"click",autoplay:false});$$("#cbsCarouselVideoFD .carouselLink, #cbsCarouselVideoFD .carouselCaption a").addEvent("click",function(){new Jlogger({tag:"carousel",ctype:"action;pane",cval:"click;"+($("cbsCarouselVideoFD").retrieve("carousel").currentIndex+1)}).ping();});return A;}});var CBSDoorCarouselPhotoFD=new Class({initialize:function(){var A=new CBSCarousel("cbsCarouselPhotoFD",{indicatorActiveClass:"active",rotateAction:"click",autoplay:false});$$("#cbsCarouselPhotoFD .carouselLink, #cbsCarouselPhotoFD .carouselCaption a").addEvent("click",function(){new Jlogger({tag:"carousel",ctype:"action;pane",cval:"click;"+($("cbsCarouselPhotoFD").retrieve("carousel").currentIndex+1)}).ping();});return A;}});var fdInnerGalleryCarousel=new Class({initialize:function(){$("cbsCarouselPhotoFD").getElements(".cbsCarouselPhotoInner").each(function(A){return new CBSCarousel(A,{indicator$$:"li.carouselListItem",slide$$:"li.carouselSlideInner",autoplay:false});});}});var fdInnerPhotoGallery=new Class({initialize:function(){$("cbsPhotoGalleryFD").getElements(".cbsPhotoGalleryInner").each(function(A){return new CBSCarousel(A,{indicator$$:"li.carouselListItem",slide$$:"li.carouselSlideInner",autoplay:false});});}});window.addEvent("domready",function(){if($("webmdDoorModule")){new Jlogger({tag:"webmd",ctype:"module_impression",cval:"module_a",element:$("webmdDoorModule").getElement(".doorsWebMDPromo")}).ping();$$("#webmdDoorModule .doorsWebMDPromo .webmdDoor .webmdFeed1 a").addEvent("click",function(){new Jlogger({tag:"webmd",ctype:"module_a",cval:"module_click:quiz"}).ping();});$$("#webmdDoorModule .doorsWebMDPromo .webmdDoor .webmdFeed2 a").addEvent("click",function(){new Jlogger({tag:"webmd",ctype:"module_a",cval:"module_click;drugdatabase"}).ping();});$$("#webmdDoorModule .doorsWebMDPromo .webmdDoorRight a").addEvent("click",function(){new Jlogger({tag:"webmd",ctype:"module_a",cval:"module_click;drugdatabaseImage"}).ping();});}$$(".sideScroller").each(function(A){if(!A.retrieve("thumbscroller")&&!A.retrieve("carousel")){new CBSThumbScroller(A);var B=A.get("id");if(!B){if(A.get("class").indexOf("storyScroller")!=-1){B="storyScroller";}else{if(A.getElements(".sideScrollerTitle span").get("text")=="Latest Video"){B="videoScroller";}else{return ;}}}new Jlogger({tag:B,ctype:"button",cval:"prev",element:$ES(".arrowLeft",A)[0],event:"click"});new Jlogger({tag:B,ctype:"button",cval:"next",element:$ES(".arrowRight",A)[0],event:"click"});$ES("a",A).each(function(D){if(D.getParent(".promoBox")){var C=D.getParent(".promoBox").cbsNodeIndex()+1;if(B=="videoScroller"){C=Math.ceil(C/3);}new Jlogger({tag:B,ctype:"action;pane",cval:"click;"+C,element:D,event:"click"});}});}});if(PageVars.get("channelId")=="505263"){$("twitterModuleCBSThisMorning").addEvent("click",function(B){var A=$(B.target);if(A.get("tag")!="a"){A=A.getParent("a");}if(A&&A.getProperty("href")){A.set("target","new");}});}if($("healthCenterLeadID")){if($("videoLargeID")){$$(".playStoryVid").addEvent("click",function(C){var A=new Element("div",{id:"flashvideocontent"});var B=$("videoLargeID").get("videoid");A.injectAfter($("videoLargeID"));$$(".playStoryVid").dispose();$("topMPU").empty();CBSVideo.setNewData({playerWidth:"408",vidWidth:"408",vidHeight:"291",playerHeight:"291",controlsDisplay:"over"});CBSVideo.setPlayerResize(291,408);CBSVideo.setVideoId(B);});}}if($("videoShellId")){$$(".playStoryVid").addEvent("click",function(C){var A=new Element("div",{id:"flashvideocontent"});var B=$("videoLargeID").get("videoid");A.injectAfter($("videoLargeID"));$$(".playStoryVid").dispose();$("topMPU").empty();CBSVideo.setNewData({playerWidth:"630",vidWidth:"630",vidHeight:"378",playerHeight:"390",controlsDisplay:"below"});CBSVideo.setPlayerResize(413,630);CBSVideo.setVideoId(B);});}$$(".playVid").addEvent("click",function(A){A.stop();$("thumb").dispose();$("flashvideocontent").getChildren("a").setStyle("display","none");CBSVideo.setNewData({playerWidth:"390",playerHeight:"235",vidWidth:"390",vidHeight:"222",controlsDisplay:"over",shareUrl:linkUrl,adPreroll:"false"});CBSVideo.setPlayerResize(235,390);CBSVideo.setVideoId(lumID);});$$(".mnPhotoBg").each(function(A){new ImgDoorRollOver(A);});});window.addEvent("domready",function(){if(PageVars.get("nodeId")==505263){var A=Cookie.read("test_group")||"NOCOOKIE";if($("bottomMPU")){new JlScroller({tag:A,ctype:"cbs_scroller",cval:"bottomMPU",fireOnce:true,event:"scrollTo",scrollTo:{top:"bottomMPU"}});}if($("cbsFooterWrap")){new JlScroller({tag:A,ctype:"cbs_scroller",cval:"footer",fireOnce:true,event:"scrollTo",scrollTo:{top:"cbsFooterWrap"}});}new Jlogger({tag:A,ctype:"cbs_scroller",cval:"scroll",fireOnce:true,element:window,event:"scroll"});}});
   }
       
