‘);$vidEndSlate.removeClass(‘video__end-slate–inactive’).addClass(‘video__end-slate–active’);}};CNN.autoPlayVideoExist = (CNN.autoPlayVideoExist === true) ? true : false;var configObj = {thumb: ‘none’,video: ‘health/2016/05/05/opioids-addiction-orig-nws.cnn’,width: ‘100%’,height: ‘100%’,section: ‘domestic’,profile: ‘expansion’,network: ‘cnn’,markupId: ‘large-media_0’,adsection: ‘const-video-leaf’,frameWidth: ‘100%’,frameHeight: ‘100%’,posterImageOverride: {“mini”:{“height”:124,”width”:220,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/160505183221-opioids-addiction-orig-nws-00000613-small-169.jpg”},”xsmall”:{“height”:173,”width”:307,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/160505183221-opioids-addiction-orig-nws-00000613-medium-plus-169.jpg”},”small”:{“height”:259,”width”:460,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/160505183221-opioids-addiction-orig-nws-00000613-large-169.jpg”},”medium”:{“height”:438,”width”:780,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/160505183221-opioids-addiction-orig-nws-00000613-exlarge-169.jpg”},”large”:{“height”:619,”width”:1100,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/160505183221-opioids-addiction-orig-nws-00000613-super-169.jpg”},”full16x9″:{“height”:900,”width”:1600,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/160505183221-opioids-addiction-orig-nws-00000613-full-169.jpg”},”mini1x1″:{“height”:120,”width”:120,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/160505183221-opioids-addiction-orig-nws-00000613-small-11.jpg”}}},autoStartVideo = false,callbackObj,containerEl,currentVideoCollection = [{“videoCMSUrl”:”/video/data/3.0/video/health/2016/05/05/opioids-addiction-orig-nws.cnn/index.xml”,”videoId”:”health/2016/05/05/opioids-addiction-orig-nws.cnn”,”videoUrl”:”/videos/health/2016/05/05/opioids-addiction-orig-nws.cnn/video/playlists/heroin-epidemic/”},{“videoCMSUrl”:”/video/data/3.0/video/health/2014/08/26/orig-am-animation-brain-on-heroin-sanjay-gupta.cnn/index.xml”,”videoId”:”health/2014/08/26/orig-am-animation-brain-on-heroin-sanjay-gupta.cnn”,”videoUrl”:”/videos/health/2014/08/26/orig-am-animation-brain-on-heroin-sanjay-gupta.cnn/video/playlists/heroin-epidemic/”},{“videoCMSUrl”:”/video/data/3.0/video/us/2016/09/14/heroin-video-surfaces-in-milwaukee-jpm-orig.cnn/index.xml”,”videoId”:”us/2016/09/14/heroin-video-surfaces-in-milwaukee-jpm-orig.cnn”,”videoUrl”:”/videos/us/2016/09/14/heroin-video-surfaces-in-milwaukee-jpm-orig.cnn/video/playlists/heroin-epidemic/”},{“videoCMSUrl”:”/video/data/3.0/video/politics/2016/05/20/ithaca-new-york-heroin-supervised-injection-site-origwx-allee.cnn/index.xml”,”videoId”:”politics/2016/05/20/ithaca-new-york-heroin-supervised-injection-site-origwx-allee.cnn”,”videoUrl”:”/videos/politics/2016/05/20/ithaca-new-york-heroin-supervised-injection-site-origwx-allee.cnn/video/playlists/heroin-epidemic/”},{“videoCMSUrl”:”/video/data/3.0/video/politics/2015/12/21/inside-new-hampshire-opioid-epidemic-origwx-js.cnn/index.xml”,”videoId”:”politics/2015/12/21/inside-new-hampshire-opioid-epidemic-origwx-js.cnn”,”videoUrl”:”/videos/politics/2015/12/21/inside-new-hampshire-opioid-epidemic-origwx-js.cnn/video/playlists/heroin-epidemic/”},{“videoCMSUrl”:”/video/data/3.0/video/us/2014/11/06/here-and-there-bourdain-massachusetts-ts-orig-heroin.cnn/index.xml”,”videoId”:”us/2014/11/06/here-and-there-bourdain-massachusetts-ts-orig-heroin.cnn”,”videoUrl”:”/videos/us/2014/11/06/here-and-there-bourdain-massachusetts-ts-orig-heroin.cnn/video/playlists/heroin-epidemic/”},{“videoCMSUrl”:”/video/data/3.0/video/us/2017/02/12/overdoses-spike-in-louisville-nr-crane-dnt.cnn/index.xml”,”videoId”:”us/2017/02/12/overdoses-spike-in-louisville-nr-crane-dnt.cnn”,”videoUrl”:”/videos/us/2017/02/12/overdoses-spike-in-louisville-nr-crane-dnt.cnn/video/playlists/heroin-epidemic/”}],currentVideoCollectionId = ”,isLivePlayer = false,moveToNextTimeout,mutePlayerEnabled = false,nextVideoId = ”,nextVideoUrl = ”,turnOnFlashMessaging = false,videoPinner,videoEndSlateImpl;if (CNN.autoPlayVideoExist === false) {autoStartVideo = true;if (autoStartVideo === true) {if (turnOnFlashMessaging === true) {autoStartVideo = false;containerEl = jQuery(document.getElementById(configObj.markupId));CNN.VideoPlayer.showFlashSlate(containerEl);} else {CNN.autoPlayVideoExist = true;}}}configObj.autostart = autoStartVideo;CNN.VideoPlayer.setPlayerProperties(configObj.markupId, autoStartVideo, isLivePlayer, mutePlayerEnabled);CNN.VideoPlayer.setFirstVideoInCollection(currentVideoCollection, configObj.markupId);var embedLinkHandler = {},videoPinner,embedCodeCopy;function onVideoCarouselItemClicked(evt) {‘use strict’;var videoId,articleElem,videoPlayer,thumbImageElem,thumbImageLargeSource,overrides = {videoCollection: this.videoCollection,autostart: false},shouldStartVideo = false,playerInstance;try {articleElem = jQuery(evt.currentTarget).find(‘article’);thumbImageElem = jQuery(articleElem).find(‘.media__image’);videoId = articleElem.data().videoId;if (CNN.VideoPlayer.getLibraryName(configObj.markupId) === ‘fave’) {playerInstance = FAVE.player.getInstance(configObj.markupId);if (CNN.Utils.existsObject(playerInstance) &&typeof playerInstance.getVideoData === ‘function’ &&playerInstance.getVideoData().id !== videoId) {/* Remove videoobject metadata script.If the user click other than initial loaded video */jQuery(articleElem).closest(‘.cn-carousel-medium-strip’).parent().find(‘script[name=”metaScript”]’).remove();playerInstance.play(videoId, overrides);}} else {videoPlayer = CNNVIDEOAPI.CNNVideoManager.getInstance().getPlayerByContainer(configObj.markupId);if (videoPlayer && videoPlayer.videoInstance) {/** if videoPlayer.videoInstance.cvp is null that means it’s not initialized yet so* pass in the thumbnail, too.*/if (!videoPlayer.videoInstance.cvp) {if (typeof thumbImageElem !== ‘undefined’ && thumbImageElem !== null) {thumbImageLargeSource = thumbImageElem.data() && thumbImageElem.data().srcLarge ? thumbImageElem.data().srcLarge : ‘none’;}overrides.thumb = thumbImageLargeSource ? thumbImageLargeSource : ‘none’;shouldStartVideo = true;}if (videoPlayer.videoInstance.config) {if (videoPlayer.videoInstance.config.video !== videoId) {/* Remove videoobject metadata script.If the user click other than initial loaded video */jQuery(articleElem).closest(‘.cn-carousel-medium-strip’).parent().find(‘script[name=”metaScript”]’).remove();CNNVIDEOAPI.CNNVideoManager.getInstance().playVideo(configObj.markupId, videoId, overrides);}/* Video player isn’t autoplay, so init itif (shouldStartVideo && this.carouselClickAutostartsVideo) {try {videoPlayer.videoInstance.start();} catch (startError) {console.log(“error in initializing video player” + startError);}}*/}}}} catch (error) {console.log(“error in initializing video player” + error);}}function setInitialVideoEmbed() {}function initialize(){var carousel = jQuery(document.getElementById(‘cn-current_video_collection’)).find(‘.js-owl-carousel’),owl;if (carousel) {carousel.find(‘.cn__column.carousel__content__item’).find(‘a’).removeAttr(‘href’);jQuery(carousel).on(‘click’, ‘.cn__column.carousel__content__item’, onVideoCarouselItemClicked);}}if (CNN.VideoPlayer.getLibraryName(configObj.markupId) === ‘videoLoader’) {window.CNNVideoAPILoadCompleteHandlers = window.CNNVideoAPILoadCompleteHandlers ? window.CNNVideoAPILoadCompleteHandlers : [];window.CNNVideoAPILoadCompleteHandlers.push(initialize);window.CNNVideoAPILoadCompleteHandlers.push(setInitialVideoEmbed);} else {initialize();}CNN.INJECTOR.executeFeature(‘videx’).done(function () {var initMeta = {id:”health/2016/05/05/opioids-addiction-orig-nws.cnn”, isEmbeddable: “yes”};CNN.Videx.EmbedButton.updateCode(initMeta);}).fail(function () {throw ‘Unable to fetch the videx bundle.’;});function updateCurrentlyPlaying(videoId) {var videoCollectionId = ‘current_video_collection’,videocardContents = getCurrentVideoCardContents(videoId),carousel = jQuery(document.getElementById(‘cn-current_video_collection’)).find(‘.js-owl-carousel’),domain = CNN.Host.domain || (document.location.protocol + ‘//’ + document.location.hostname),owl,$owlFirstItem,$owlPrevItem,showDetailsSpanContent = ”,gigyaShareElement,showIndex,whatsappShareElement,$carouselContentItems = jQuery(‘.carousel__content__item’, document.getElementById(‘cn-current_video_collection’));gigyaShareElement = jQuery(‘div.js-gigya-sharebar’);if (typeof gigyaShareElement !== ‘undefined’) {jQuery(gigyaShareElement).attr(‘data-title’, videocardContents.headlinePlainText || ”);jQuery(gigyaShareElement).attr(‘data-description’, videocardContents.descriptionPlainText || ”);jQuery(gigyaShareElement).attr(‘data-link’, domain + videocardContents.url || ”);jQuery(gigyaShareElement).attr(‘data-image-src’, videocardContents.media.elementContents.imageUrl || ”);}whatsappShareElement = jQuery(‘div.share-bar-whatsapp-container’);if (typeof whatsappShareElement !== ‘undefined’) {jQuery(whatsappShareElement).attr(‘data-title’, videocardContents.headlinePlainText || ”);jQuery(whatsappShareElement).attr(‘data-storyurl’, domain + videocardContents.url || ”);}if (carousel && currentVideoCollectionContainsId(videoId)) {owl = carousel.data(‘owl.carousel’) || {};showIndex = getCurrentVideoIndex(videoId);if (typeof owl.to === ‘function’) {owl.to(showIndex);}$owlPrevItem = CNN.Utils.exists(owl.$element) ? owl.$element.find(‘.cd.cd–active’) : $carouselContentItems.find(‘.cd.cd–active’);$owlPrevItem.removeClass(‘cd–active’);$owlPrevItem.find(‘.media__over-text’).remove();$owlPrevItem.find(‘.media__icon’).show();$owlFirstItem = CNN.Utils.exists(owl._items) ? jQuery(owl._items[showIndex]) : $carouselContentItems.eq(showIndex);$owlFirstItem.find(‘.cd’).addClass(‘cd–active’);$owlFirstItem.find(‘.media a:first-child’).append(‘
Now Playing
‘);if (Modernizr && !Modernizr.phone) {$owlFirstItem.find(‘.media__icon’).hide();}}CNN.Videx.Metadata.init({dateCreated: videocardContents.dateCreated,descriptionText: videocardContents.descriptionText,duration: videocardContents.duration,sourceLink: videocardContents.sourceLink,sourceName: videocardContents.sourceName,title: videocardContents.headlineText},{videoCollectionDivId: ‘cn-k6x8ea’,videoDescriptionDivId: ‘js-video_description-k6x8ea’,videoDurationDivId: ‘js-video_duration-k6x8ea’,videoTitleDivId: ‘js-leaf-video_headline-k6x8ea’,videoSourceDivId: ‘js-video_sourceName-k6x8ea’});if (CNN.Utils.exists(videocardContents.showName)) {if (CNN.Utils.exists(videocardContents.showUrl)) {showDetailsSpanContent = ‘‘ + videocardContents.showName + ‘ | ‘;} else {showDetailsSpanContent = videocardContents.showName + ‘ | ‘;}}fastdom.measure(function getShowInfo() {var $show = jQuery(‘.metadata__show’),$isShowDetailsSpanExists = $show.find(‘span’).hasClass(‘metadata–show__name’),$showName = jQuery(‘.metadata–show__name’);fastdom.mutate(function updateShowInfo() {if (!$isShowDetailsSpanExists) {$show.prepend(‘‘ + showDetailsSpanContent + ‘‘);} else {$showName.html(showDetailsSpanContent);}});});if (typeof (history) !== ‘undefined’ && typeof (history.replaceState) !== ‘undefined’) {history.replaceState(”, ”, videocardContents.url);document.title = videocardContents.headlineText ? videocardContents.headlineText : ”;}}function getCurrentVideoCardContents(currentVideoId) {var containerContents = [{“branding”:””,”cardContents”:{“auxiliaryText”:””,”bannerText”:[],”bannerHasATag”:false,”bannerPosition”:””,”brandingLink”:””,”brandingImageUrl”:””,”brandingTextHead”:””,”brandingTextSub”:””,”cardSectionName”:”health”,”contentType”:””,”cta”:”share”,”descriptionText”:[“Every 19 minutes someone dies from an accidental drug overdose. Most of the time, it’s from prescription narcotics called opioids.”],”descriptionPlainText”:”Every 19 minutes someone dies from an accidental drug overdose. Most of the time, it’s from prescription narcotics called opioids.”,”headlinePostText”:””,”headlinePreText”:””,”headlineText”:”Why are opioids so addictive?”,”headlinePlainText”:”Why are opioids so addictive?”,”iconImageUrl”:””,”iconType”:”video”,”isMobileBannerText”:false,”kickerText”:””,”maximizedBannerSize”:[],”media”:{“contentType”:”image”,”type”:”element”,”cutFormat”:”16:9″,”elementContents”:{“caption”:”opioids addiction orig nws_00000613.jpg”,”imageAlt”:”opioids addiction orig nws_00000613″,”imageUrl”:”//i2.cdn.cnn.com/cnnnext/dam/assets/160505183221-opioids-addiction-orig-nws-00000613-large-169.jpg”,”label”:””,”galleryTitle”:””,”head”:””,”cuts”:{“mini”:{“height”:124,”width”:220,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/160505183221-opioids-addiction-orig-nws-00000613-small-169.jpg”},”xsmall”:{“height”:173,”width”:307,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/160505183221-opioids-addiction-orig-nws-00000613-medium-plus-169.jpg”},”small”:{“height”:259,”width”:460,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/160505183221-opioids-addiction-orig-nws-00000613-large-169.jpg”},”medium”:{“height”:438,”width”:780,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/160505183221-opioids-addiction-orig-nws-00000613-exlarge-169.jpg”},”large”:{“height”:619,”width”:1100,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/160505183221-opioids-addiction-orig-nws-00000613-super-169.jpg”},”full16x9″:{“height”:900,”width”:1600,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/160505183221-opioids-addiction-orig-nws-00000613-full-169.jpg”},”mini1x1″:{“height”:120,”width”:120,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/160505183221-opioids-addiction-orig-nws-00000613-small-11.jpg”}},”responsiveImage”:true},”duration”:”1:09″},”noFollow”:false,”overMediaText”:””,”sectionUri”:””,”showSocialSharebar”:false,”shortUrl”:””,”statusText”:””,”statusColor”:””,”targetType”:””,”timestampDisplay”:””,”timestampUtc”:””,”lastModifiedText”:””,”lastModifiedState”:””,”type”:”card”,”url”:”/videos/health/2016/05/05/opioids-addiction-orig-nws.cnn/video/playlists/heroin-epidemic/”,”width”:””,”height”:””,”videoCMSUri”:”/video/data/3.0/video/health/2016/05/05/opioids-addiction-orig-nws.cnn/index.xml”,”videoId”:”health/2016/05/05/opioids-addiction-orig-nws.cnn”,”adSection”:”const-video-leaf”,”dateCreated”:”6:20 PM ET, Thu May 5, 2016″,”sourceName”:”CNN”,”sourceLink”:””,”videoCollectionUrl”:”/video/playlists/heroin-epidemic/”},”contentType”:”video”,”maximizedBanner”:false,”type”:”card”},{“branding”:””,”cardContents”:{“auxiliaryText”:””,”bannerText”:[],”bannerHasATag”:false,”bannerPosition”:””,”brandingLink”:””,”brandingImageUrl”:””,”brandingTextHead”:””,”brandingTextSub”:””,”cardSectionName”:”health”,”contentType”:””,”cta”:”share”,”descriptionText”:[“Sanjay Gupta explains what happens to your brain on opiates, the key ingredient in heroin and other powerful narcotics. “],”descriptionPlainText”:”Sanjay Gupta explains what happens to your brain on opiates, the key ingredient in heroin and other powerful narcotics.”,”headlinePostText”:””,”headlinePreText”:””,”headlineText”:”This is your brain on heroin”,”headlinePlainText”:”This is your brain on heroin”,”iconImageUrl”:””,”iconType”:”video”,”isMobileBannerText”:false,”kickerText”:””,”maximizedBannerSize”:[],”media”:{“contentType”:”image”,”type”:”element”,”cutFormat”:”16:9″,”elementContents”:{“caption”:”orig am animation brain on heroin sanjay gupta_00000029.jpg”,”imageAlt”:”orig am animation brain on heroin sanjay gupta_00000029.jpg”,”imageUrl”:”//i2.cdn.cnn.com/cnnnext/dam/assets/140826104156-orig-am-animation-brain-on-heroin-sanjay-gupta-00000029-story-top.jpg”,”label”:””,”galleryTitle”:””,”head”:””,”cuts”:{“mini”:{“height”:144,”width”:256,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/140826104156-orig-am-animation-brain-on-heroin-sanjay-gupta-00000029-hp-video.jpg”},”xsmall”:{“height”:169,”width”:300,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/140826104156-orig-am-animation-brain-on-heroin-sanjay-gupta-00000029-story-body.jpg”},”small”:{“height”:360,”width”:640,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/140826104156-orig-am-animation-brain-on-heroin-sanjay-gupta-00000029-story-top.jpg”},”medium”:{“height”:552,”width”:980,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/140826104156-orig-am-animation-brain-on-heroin-sanjay-gupta-00000029-horizontal-large-gallery.jpg”},”large”:{“height”:552,”width”:980,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/140826104156-orig-am-animation-brain-on-heroin-sanjay-gupta-00000029-horizontal-large-gallery.jpg”},”full16x9″:{“height”:552,”width”:980,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/140826104156-orig-am-animation-brain-on-heroin-sanjay-gupta-00000029-horizontal-large-gallery.jpg”},”mini1x1″:{“height”:60,”width”:60,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/140826104156-orig-am-animation-brain-on-heroin-sanjay-gupta-00000029-topics.jpg”}},”responsiveImage”:true},”duration”:”1:51″},”noFollow”:false,”overMediaText”:””,”sectionUri”:””,”showSocialSharebar”:false,”shortUrl”:””,”statusText”:””,”statusColor”:””,”targetType”:””,”timestampDisplay”:””,”timestampUtc”:””,”lastModifiedText”:””,”lastModifiedState”:””,”type”:”card”,”url”:”/videos/health/2014/08/26/orig-am-animation-brain-on-heroin-sanjay-gupta.cnn/video/playlists/heroin-epidemic/”,”width”:””,”height”:””,”videoCMSUri”:”/video/data/3.0/video/health/2014/08/26/orig-am-animation-brain-on-heroin-sanjay-gupta.cnn/index.xml”,”videoId”:”health/2014/08/26/orig-am-animation-brain-on-heroin-sanjay-gupta.cnn”,”adSection”:”const-video-leaf”,”dateCreated”:”10:25 AM ET, Tue August 26, 2014″,”sourceName”:”CNN”,”sourceLink”:””,”videoCollectionUrl”:”/video/playlists/heroin-epidemic/”},”contentType”:”video”,”maximizedBanner”:false,”type”:”card”},{“branding”:””,”cardContents”:{“auxiliaryText”:””,”bannerText”:[],”bannerHasATag”:false,”bannerPosition”:””,”brandingLink”:””,”brandingImageUrl”:””,”brandingTextHead”:””,”brandingTextSub”:””,”cardSectionName”:”us”,”contentType”:””,”cta”:”share”,”descriptionText”:[“A Milwaukee family recently shared video they took of a couple passed out in their car with a toddler nearby.”],”descriptionPlainText”:”A Milwaukee family recently shared video they took of a couple passed out in their car with a toddler nearby.”,”headlinePostText”:””,”headlinePreText”:””,”headlineText”:”Video shows couple in Wisconsin after overdose”,”headlinePlainText”:”Video shows couple in Wisconsin after overdose”,”iconImageUrl”:””,”iconType”:”video”,”isMobileBannerText”:false,”kickerText”:””,”maximizedBannerSize”:[],”media”:{“contentType”:”image”,”type”:”element”,”cutFormat”:”16:9″,”elementContents”:{“caption”:””,”imageAlt”:””,”imageUrl”:”//i2.cdn.cnn.com/cnnnext/dam/assets/160914211128-heroin-couple-3-large-169.jpg”,”label”:””,”galleryTitle”:””,”head”:””,”cuts”:{“mini”:{“height”:124,”width”:220,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/160914211128-heroin-couple-3-small-169.jpg”},”xsmall”:{“height”:173,”width”:307,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/160914211128-heroin-couple-3-medium-plus-169.jpg”},”small”:{“height”:259,”width”:460,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/160914211128-heroin-couple-3-large-169.jpg”},”medium”:{“height”:438,”width”:780,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/160914211128-heroin-couple-3-exlarge-169.jpg”},”large”:{“height”:619,”width”:1100,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/160914211128-heroin-couple-3-super-169.jpg”},”full16x9″:{“height”:900,”width”:1600,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/160914211128-heroin-couple-3-full-169.jpg”},”mini1x1″:{“height”:120,”width”:120,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/160914211128-heroin-couple-3-small-11.jpg”}},”responsiveImage”:true},”duration”:”1:04″},”noFollow”:false,”overMediaText”:””,”sectionUri”:””,”showSocialSharebar”:false,”shortUrl”:””,”statusText”:””,”statusColor”:””,”targetType”:””,”timestampDisplay”:””,”timestampUtc”:””,”lastModifiedText”:””,”lastModifiedState”:””,”type”:”card”,”url”:”/videos/us/2016/09/14/heroin-video-surfaces-in-milwaukee-jpm-orig.cnn/video/playlists/heroin-epidemic/”,”width”:””,”height”:””,”videoCMSUri”:”/video/data/3.0/video/us/2016/09/14/heroin-video-surfaces-in-milwaukee-jpm-orig.cnn/index.xml”,”videoId”:”us/2016/09/14/heroin-video-surfaces-in-milwaukee-jpm-orig.cnn”,”adSection”:”const-video-leaf”,”dateCreated”:”6:18 PM ET, Wed September 14, 2016″,”sourceName”:”CNN”,”sourceLink”:””,”videoCollectionUrl”:”/video/playlists/heroin-epidemic/”},”contentType”:”video”,”maximizedBanner”:false,”type”:”card”},{“branding”:””,”cardContents”:{“auxiliaryText”:””,”bannerText”:[],”bannerHasATag”:false,”bannerPosition”:””,”brandingLink”:””,”brandingImageUrl”:””,”brandingTextHead”:””,”brandingTextSub”:””,”cardSectionName”:”politics”,”contentType”:””,”cta”:”share”,”descriptionText”:[“Like much of the nation, Ithaca, NY is facing a heroin crisis. To fight this, the mayor has proposed opening a supervised site for users to inject heroin legally.”],”descriptionPlainText”:”Like much of the nation, Ithaca, NY is facing a heroin crisis. To fight this, the mayor has proposed opening a supervised site for users to inject heroin legally.”,”headlinePostText”:””,”headlinePreText”:””,”headlineText”:”Ithaca’s plan to fight heroin by allowing it”,”headlinePlainText”:”Ithaca’s plan to fight heroin by allowing it”,”iconImageUrl”:””,”iconType”:”video”,”isMobileBannerText”:false,”kickerText”:””,”maximizedBannerSize”:[],”media”:{“contentType”:”image”,”type”:”element”,”cutFormat”:”16:9″,”elementContents”:{“caption”:””,”imageAlt”:””,”imageUrl”:”//i2.cdn.cnn.com/cnnnext/dam/assets/160520163459-ithaca-heroin-story-needle-lamp-large-169.jpg”,”label”:””,”galleryTitle”:””,”head”:””,”cuts”:{“mini”:{“height”:124,”width”:220,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/160520163459-ithaca-heroin-story-needle-lamp-small-169.jpg”},”xsmall”:{“height”:173,”width”:307,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/160520163459-ithaca-heroin-story-needle-lamp-medium-plus-169.jpg”},”small”:{“height”:259,”width”:460,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/160520163459-ithaca-heroin-story-needle-lamp-large-169.jpg”},”medium”:{“height”:438,”width”:780,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/160520163459-ithaca-heroin-story-needle-lamp-exlarge-169.jpg”},”large”:{“height”:619,”width”:1100,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/160520163459-ithaca-heroin-story-needle-lamp-super-169.jpg”},”full16x9″:{“height”:900,”width”:1600,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/160520163459-ithaca-heroin-story-needle-lamp-full-169.jpg”},”mini1x1″:{“height”:120,”width”:120,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/160520163459-ithaca-heroin-story-needle-lamp-small-11.jpg”}},”responsiveImage”:true},”duration”:”3:31″},”noFollow”:false,”overMediaText”:””,”sectionUri”:””,”showSocialSharebar”:false,”shortUrl”:””,”statusText”:””,”statusColor”:””,”targetType”:””,”timestampDisplay”:””,”timestampUtc”:””,”lastModifiedText”:””,”lastModifiedState”:””,”type”:”card”,”url”:”/videos/politics/2016/05/20/ithaca-new-york-heroin-supervised-injection-site-origwx-allee.cnn/video/playlists/heroin-epidemic/”,”width”:””,”height”:””,”videoCMSUri”:”/video/data/3.0/video/politics/2016/05/20/ithaca-new-york-heroin-supervised-injection-site-origwx-allee.cnn/index.xml”,”videoId”:”politics/2016/05/20/ithaca-new-york-heroin-supervised-injection-site-origwx-allee.cnn”,”adSection”:”const-video-leaf”,”dateCreated”:”3:01 PM ET, Fri May 20, 2016″,”sourceName”:”CNN”,”sourceLink”:””,”videoCollectionUrl”:”/video/playlists/heroin-epidemic/”},”contentType”:”video”,”maximizedBanner”:false,”type”:”card”},{“branding”:””,”cardContents”:{“auxiliaryText”:””,”bannerText”:[],”bannerHasATag”:false,”bannerPosition”:””,”brandingLink”:””,”brandingImageUrl”:””,”brandingTextHead”:””,”brandingTextSub”:””,”cardSectionName”:”politics”,”contentType”:””,”cta”:”share”,”descriptionText”:[“In New Hampshire, an estimated 400 people will die from a heroin overdose in 2015. In Manchester, the police as well as recovery centers are doing all they can to combat an epidemic.”],”descriptionPlainText”:”In New Hampshire, an estimated 400 people will die from a heroin overdose in 2015. In Manchester, the police as well as recovery centers are doing all they can to combat an epidemic.”,”headlinePostText”:””,”headlinePreText”:””,”headlineText”:”Inside New Hampshire’s opioid epidemic”,”headlinePlainText”:”Inside New Hampshire’s opioid epidemic”,”iconImageUrl”:””,”iconType”:”video”,”isMobileBannerText”:false,”kickerText”:””,”maximizedBannerSize”:[],”media”:{“contentType”:”image”,”type”:”element”,”cutFormat”:”16:9″,”elementContents”:{“caption”:”inside new hampshire opioid epidemic origwx js_00021324.jpg”,”imageAlt”:”inside new hampshire opioid epidemic origwx js_00021324″,”imageUrl”:”//i2.cdn.cnn.com/cnnnext/dam/assets/151221105502-inside-new-hampshire-opioid-epidemic-origwx-js-00021324-large-169.jpg”,”label”:””,”galleryTitle”:””,”head”:””,”cuts”:{“mini”:{“height”:124,”width”:220,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/151221105502-inside-new-hampshire-opioid-epidemic-origwx-js-00021324-small-169.jpg”},”xsmall”:{“height”:173,”width”:307,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/151221105502-inside-new-hampshire-opioid-epidemic-origwx-js-00021324-medium-plus-169.jpg”},”small”:{“height”:259,”width”:460,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/151221105502-inside-new-hampshire-opioid-epidemic-origwx-js-00021324-large-169.jpg”},”medium”:{“height”:438,”width”:780,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/151221105502-inside-new-hampshire-opioid-epidemic-origwx-js-00021324-exlarge-169.jpg”},”large”:{“height”:619,”width”:1100,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/151221105502-inside-new-hampshire-opioid-epidemic-origwx-js-00021324-super-169.jpg”},”full16x9″:{“height”:900,”width”:1600,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/151221105502-inside-new-hampshire-opioid-epidemic-origwx-js-00021324-full-169.jpg”},”mini1x1″:{“height”:120,”width”:120,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/151221105502-inside-new-hampshire-opioid-epidemic-origwx-js-00021324-small-11.jpg”}},”responsiveImage”:true},”duration”:”2:34″},”noFollow”:false,”overMediaText”:””,”sectionUri”:””,”showSocialSharebar”:false,”shortUrl”:””,”statusText”:””,”statusColor”:””,”targetType”:””,”timestampDisplay”:””,”timestampUtc”:””,”lastModifiedText”:””,”lastModifiedState”:””,”type”:”card”,”url”:”/videos/politics/2015/12/21/inside-new-hampshire-opioid-epidemic-origwx-js.cnn/video/playlists/heroin-epidemic/”,”width”:””,”height”:””,”videoCMSUri”:”/video/data/3.0/video/politics/2015/12/21/inside-new-hampshire-opioid-epidemic-origwx-js.cnn/index.xml”,”videoId”:”politics/2015/12/21/inside-new-hampshire-opioid-epidemic-origwx-js.cnn”,”adSection”:”const-video-leaf”,”dateCreated”:”10:11 AM ET, Mon December 21, 2015″,”sourceName”:”CNN”,”sourceLink”:””,”videoCollectionUrl”:”/video/playlists/heroin-epidemic/”},”contentType”:”video”,”maximizedBanner”:false,”type”:”card”},{“branding”:””,”cardContents”:{“auxiliaryText”:””,”bannerText”:[],”bannerHasATag”:false,”bannerPosition”:””,”brandingLink”:””,”brandingImageUrl”:””,”brandingTextHead”:””,”brandingTextSub”:””,”cardSectionName”:”us”,”contentType”:””,”cta”:”share”,”descriptionText”:[“\u003ca href=\”http://www.cnn.com/profiles/anthony-bourdain-profile\” target=\”_blank\”>Anthony Bourdain\u003c/a> travels to Massachusetts where heroin use is rising in small town America. Watch \u003ca href=\”http://www.cnn.com/shows/anthony-bourdain-parts-unknown\” target=\”_blank\”>Parts Unknown\u003c/a> Sundays 9pm ET on CNN and \u003ca href=\”http://www.cnn.com/go/\” target=\”_blank\”>CNNGo\u003c/a>.”],”descriptionPlainText”:”Anthony Bourdain travels to Massachusetts where heroin use is rising in small town America. Watch Parts Unknown Sundays 9pm ET on CNN and CNNGo.”,”headlinePostText”:””,”headlinePreText”:””,”headlineText”:”Bourdain follows path of heroin in America”,”headlinePlainText”:”Bourdain follows path of heroin in America”,”iconImageUrl”:””,”iconType”:”video”,”isMobileBannerText”:false,”kickerText”:””,”maximizedBannerSize”:[],”media”:{“contentType”:”image”,”type”:”element”,”cutFormat”:”16:9″,”elementContents”:{“caption”:””,”imageAlt”:””,”imageUrl”:”//i2.cdn.cnn.com/cnnnext/dam/assets/141105124116-08-bourdain-massachusetts-story-top.jpg”,”label”:””,”galleryTitle”:””,”head”:””,”cuts”:{“mini”:{“height”:144,”width”:256,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/141105124116-08-bourdain-massachusetts-hp-video.jpg”},”xsmall”:{“height”:169,”width”:300,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/141105124116-08-bourdain-massachusetts-story-body.jpg”},”small”:{“height”:360,”width”:640,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/141105124116-08-bourdain-massachusetts-story-top.jpg”},”medium”:{“height”:552,”width”:980,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/141105124116-08-bourdain-massachusetts-horizontal-large-gallery.jpg”},”large”:{“height”:552,”width”:980,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/141105124116-08-bourdain-massachusetts-horizontal-large-gallery.jpg”},”full16x9″:{“height”:552,”width”:980,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/141105124116-08-bourdain-massachusetts-horizontal-large-gallery.jpg”},”mini1x1″:{“height”:60,”width”:60,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/141105124116-08-bourdain-massachusetts-topics.jpg”}},”responsiveImage”:true},”duration”:”1:36″},”noFollow”:false,”overMediaText”:””,”sectionUri”:””,”showSocialSharebar”:false,”shortUrl”:””,”statusText”:””,”statusColor”:””,”targetType”:””,”timestampDisplay”:””,”timestampUtc”:””,”lastModifiedText”:””,”lastModifiedState”:””,”type”:”card”,”url”:”/videos/us/2014/11/06/here-and-there-bourdain-massachusetts-ts-orig-heroin.cnn/video/playlists/heroin-epidemic/”,”width”:””,”height”:””,”videoCMSUri”:”/video/data/3.0/video/us/2014/11/06/here-and-there-bourdain-massachusetts-ts-orig-heroin.cnn/index.xml”,”videoId”:”us/2014/11/06/here-and-there-bourdain-massachusetts-ts-orig-heroin.cnn”,”adSection”:”const-video-leaf”,”dateCreated”:”4:19 PM ET, Thu November 6, 2014″,”sourceName”:”CNN”,”sourceLink”:”http://www.cnn.com/shows/anthony-bourdain-parts-unknown”,”showName”:”Anthony Bourdain: Parts Unknown”,”showUrl”:”/shows/anthony-bourdain-parts-unknown”,”videoCollectionUrl”:”/video/playlists/heroin-epidemic/”},”contentType”:”video”,”maximizedBanner”:false,”type”:”card”},{“branding”:””,”cardContents”:{“auxiliaryText”:””,”bannerText”:[],”bannerHasATag”:false,”bannerPosition”:””,”brandingLink”:””,”brandingImageUrl”:””,”brandingTextHead”:””,”brandingTextSub”:””,”cardSectionName”:”us”,”contentType”:””,”cta”:”share”,”descriptionText”:[“Louisville Metro Emergency Services responded to 52 overdose calls between midnight Wednesday and 8 a.m. ET Friday, said agency spokesman Mitchell Burmeister.”],”descriptionPlainText”:”Louisville Metro Emergency Services responded to 52 overdose calls between midnight Wednesday and 8 a.m. ET Friday, said agency spokesman Mitchell Burmeister.”,”headlinePostText”:””,”headlinePreText”:””,”headlineText”:”Overdose cases spike in Louisville”,”headlinePlainText”:”Overdose cases spike in Louisville”,”iconImageUrl”:””,”iconType”:”video”,”isMobileBannerText”:false,”kickerText”:””,”maximizedBannerSize”:[],”media”:{“contentType”:”image”,”type”:”element”,”cutFormat”:”16:9″,”elementContents”:{“caption”:”Opioid generic “,”imageAlt”:”Opioid generic “,”imageUrl”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170212173401-opioid-generic-large-169.jpg”,”label”:””,”galleryTitle”:””,”head”:””,”cuts”:{“mini”:{“height”:124,”width”:220,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170212173401-opioid-generic-small-169.jpg”},”xsmall”:{“height”:173,”width”:307,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170212173401-opioid-generic-medium-plus-169.jpg”},”small”:{“height”:259,”width”:460,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170212173401-opioid-generic-large-169.jpg”},”medium”:{“height”:438,”width”:780,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170212173401-opioid-generic-exlarge-169.jpg”},”large”:{“height”:619,”width”:1100,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170212173401-opioid-generic-super-169.jpg”},”full16x9″:{“height”:900,”width”:1600,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170212173401-opioid-generic-full-169.jpg”},”mini1x1″:{“height”:120,”width”:120,”type”:”jpg”,”uri”:”//i2.cdn.cnn.com/cnnnext/dam/assets/170212173401-opioid-generic-small-11.jpg”}},”responsiveImage”:true},”duration”:”3:14″},”noFollow”:false,”overMediaText”:””,”sectionUri”:””,”showSocialSharebar”:false,”shortUrl”:””,”statusText”:””,”statusColor”:””,”targetType”:””,”timestampDisplay”:””,”timestampUtc”:””,”lastModifiedText”:””,”lastModifiedState”:””,”type”:”card”,”url”:”/videos/us/2017/02/12/overdoses-spike-in-louisville-nr-crane-dnt.cnn/video/playlists/heroin-epidemic/”,”width”:””,”height”:””,”videoCMSUri”:”/video/data/3.0/video/us/2017/02/12/overdoses-spike-in-louisville-nr-crane-dnt.cnn/index.xml”,”videoId”:”us/2017/02/12/overdoses-spike-in-louisville-nr-crane-dnt.cnn”,”adSection”:”const-video-leaf”,”dateCreated”:”5:19 PM ET, Sun February 12, 2017″,”sourceName”:”CNN”,”sourceLink”:”http://www.cnn.com/2017/02/11/health/overdoses-spike-in-louisville/index.html”,”showName”:”Newsroom”,”showUrl”:”/shows/newsroom”,”videoCollectionUrl”:”/video/playlists/heroin-epidemic/”},”contentType”:”video”,”maximizedBanner”:false,”type”:”card”}],cardContents,i;for (i = 0; i 0) {for (i = 0; i 0) {for (i = 0; i 0) {for (i = 0; i 0) {nextPlay = currentVideoCollection[getNextVideoIndex(currentVideoId)].videoId;if (nextPlay === undefined || nextPlay === null) {nextPlay = currentVideoCollection[0].videoId;}moveToNextTimeout = setTimeout(function () {overrides = {videoCollection: currentVideoCollection,autostart: true};if (CNN.VideoPlayer.getLibraryName(configObj.markupId) === ‘fave’) {FAVE.player.getInstance(configObj.markupId).play(nextPlay, overrides);} else {CNNVIDEOAPI.CNNVideoManager.getInstance().playVideo(configObj.markupId, nextPlay, overrides);}}, nextVideoPlayTimeout);}}var decorateVideoApi = function(){/* if this happens before the video API loads it gets deleted. */CNN.VideoPlayer.showSpinner = function showSpinner(containerId) {if (Modernizr && !Modernizr.phone && !Modernizr.mobile && !Modernizr.tablet) {jQuery(document.getElementById((‘spinner_’ + containerId).replace(‘#’, ”))).show();}};CNN.VideoPlayer.hideSpinner = function hideSpinner(containerId) {if (Modernizr && !Modernizr.phone && !Modernizr.mobile && !Modernizr.tablet) {jQuery(document.getElementById((‘spinner_’ + containerId).replace(‘#’, ”))).hide();}};CNN.VideoPlayer.hideThumbnail = function hideThumbnail(containerId) {if (Modernizr && !Modernizr.phone && !Modernizr.mobile && !Modernizr.tablet) {jQuery(document.getElementById(containerId + ‘–thumbnail’)).hide();}};};callbackObj = {onPlayerReady: function (containerId) {CNN.INJECTOR.getNameSpaceFeature(‘CNN.VideoPlayer.showSpinner’).fail(decorateVideoApi);var containerClassId;CNN.VideoPlayer.reportLoadTime(containerId);CNN.VideoPlayer.handleAdOnCVPVisibilityChange(containerId, CNN.pageVis.isDocumentVisible());if (Modernizr && !Modernizr.phone && !Modernizr.mobile && !Modernizr.tablet) {containerClassId = ‘#’ + containerId;if (jQuery(containerClassId).parents(‘.js-pg-rail-tall__head’).length > 0) {videoPinner = new CNN.VideoPinner(containerClassId);videoPinner.setIsVideoCollection(true);videoPinner.init();} else {CNN.VideoPlayer.hideThumbnail(containerId);}}},onContentEntryLoad: function(containerId, playerId, contentid, isQueue) {CNN.VideoPlayer.showSpinner(containerId);CNN.VideoPlayer.isFirstVideoInCollection(containerId, contentid);},onAdPlay: function (containerId, cvpId, token, mode, id, duration, blockId, adType) {clearTimeout(moveToNextTimeout);if (blockId === 0) {(new Image()).src = “//traffic.outbrain.com/network/trackpxl?advid=814&action=view”;}CNN.VideoPlayer.hideSpinner(containerId);if (Modernizr && !Modernizr.phone && !Modernizr.mobile && !Modernizr.tablet) {if (typeof videoPinner !== ‘undefined’ && videoPinner !== null) {videoPinner.setIsPlaying(true);videoPinner.handleOnVideoPlay();videoPinner.animateDown();}}},onContentPlay: function (containerId, cvpId, contentId) {/** When the video content starts playing, the companion ad* layout (if it was set when the ad played) should switch* back to epic ad layout. onContentPlay calls updateCompanionLayout* with ‘restoreEpicAds’ layout to make this switch and removes FW* with ‘removeFreewheel’ so you don’t see double ads. If a user* clicks another video midway, onContentBegin will add FW back*/if (CNN.companion && typeof CNN.companion.updateCompanionLayout === ‘function’) {CNN.companion.updateCompanionLayout(‘removeFreewheel’);CNN.companion.updateCompanionLayout(‘restoreEpicAds’);}clearTimeout(moveToNextTimeout);CNN.VideoPlayer.hideSpinner(containerId);var idx,playerInstance,prevVideoId = (window.jsmd && window.jsmd.v && (window.jsmd.v.eVar18 || window.jsmd.v.eVar4)) || ”;if (CNN.VideoPlayer.getLibraryName(configObj.markupId) === ‘fave’) {playerInstance = FAVE.player.getInstance(containerId);} else {playerInstance = containerId && window.cnnVideoManager.getPlayerByContainer(containerId).videoInstance.cvp || null;}if (playerInstance && typeof playerInstance.reportAnalytics === ‘function’) {if (prevVideoId.length === 0 && document.referrer && document.referrer.search(/\/videos\//) >= 0) {prevVideoId = document.referrer.replace(/^(?:http|https)\:\/\/[^\/]\/videos\/(.+\.\w+)(?:\/video\/playlists\/.*)?$/, ‘/video/$1’);if (prevVideoId === document.referrer) {prevVideoId = ”;}}if (jQuery.isArray(currentVideoCollection) && currentVideoCollection.length > 0) {idx = getNextVideoIndex(contentId);nextVideoId = currentVideoCollection[idx].videoId;nextVideoUrl = currentVideoCollection[idx].videoUrl;currentVideoCollectionId = (window.jsmd && window.jsmd.v && window.jsmd.v.eVar60) || nextVideoUrl.replace(/^.+\/video\/playlists\/(.+)\//, ‘$1’);}playerInstance.reportAnalytics(‘videoPageData’, {videoCollection: currentVideoCollectionId,videoBranding: CNN.omniture.branding_content_page,templateType: CNN.omniture.template_type,nextVideo: nextVideoId,previousVideo: prevVideoId,referrerType: ”,referrerUrl: document.referrer});}if (Modernizr && !Modernizr.phone && !Modernizr.mobile && !Modernizr.tablet) {if (typeof videoPinner !== ‘undefined’ && videoPinner !== null) {videoPinner.setIsPlaying(true);videoPinner.handleOnVideoPlay();videoPinner.animateDown();}}},onContentReplayRequest: function (containerId, cvpId, contentId) {if (Modernizr && !Modernizr.phone && !Modernizr.mobile && !Modernizr.tablet) {if (typeof videoPinner !== ‘undefined’ && videoPinner !== null) {videoPinner.setIsPlaying(true);var $endSlate = jQuery(document.getElementById(containerId)).parent().find(‘.js-video__end-slate’).eq(0);if ($endSlate.length > 0) {$endSlate.removeClass(‘video__end-slate–active’).addClass(‘video__end-slate–inactive’);}}}},onContentMetadata: function (containerId, playerId, metadata, contentId, duration, width, height) {if (CNN.Utils.exists(metadata)) {try {if (CNN.VideoPlayer.getLibraryName(containerId) === ‘fave’) {CNN.Videx.EmbedButton.updateCode(metadata);} else {CNN.Videx.EmbedButton.updateCode(JSON.parse(metadata));}} catch (e) {console.log(‘Invalid video metadata JSON.’);}}},onContentBegin: function (containerId, cvpId, contentId) {CNN.VideoPlayer.reverseAutoMute(containerId);CNN.VideoPlayer.isFirstVideoInCollection(containerId, contentId);/** Before the video ad starts, the freewheel companion ad* html needs to be placed on the page so that it can be* triggered by Freewheel to display the companion ad.* onContentBegin triggers updateCompanionLayout which* handles the logic to switch from epic to companion ads*/if (CNN.companion && typeof CNN.companion.updateCompanionLayout === ‘function’) {CNN.companion.updateCompanionLayout(‘removeEpicAds’);CNN.companion.updateCompanionLayout(‘restoreFreewheel’);}clearTimeout(moveToNextTimeout);fastdom.mutate(function () {CNN.share.reloadShareBar();});updateCurrentlyPlaying(contentId);jQuery(document).triggerVideoContentStarted();},onContentComplete: function (containerId, cvpId, contentId) {navigateToNextVideo(contentId);},onContentEnd: function (containerId, cvpId, contentId) {/** When the video content ends playing, remove the epic ad* and prepare the freewheel companion ad for the next video*/if (CNN.companion && typeof CNN.companion.updateCompanionLayout === ‘function’) {CNN.companion.updateCompanionLayout(‘removeEpicAds’);CNN.companion.updateCompanionLayout(‘restoreFreewheel’);}navigateToNextVideo(contentId);if (Modernizr && !Modernizr.phone && !Modernizr.mobile && !Modernizr.tablet) {if (typeof videoPinner !== ‘undefined’ && videoPinner !== null) {videoPinner.setIsPlaying(false);}}},onCVPVisibilityChange: function (containerId, cvpId, visible) {CNN.VideoPlayer.handleAdOnCVPVisibilityChange(containerId, visible);}};if (typeof configObj.context !== ‘string’ || configObj.context.length