{"id":169942,"date":"2019-04-11T14:00:36","date_gmt":"2019-04-11T19:00:36","guid":{"rendered":"http:\/\/csinewsnow.com\/?p=169942"},"modified":"2019-04-16T21:02:29","modified_gmt":"2019-04-17T02:02:29","slug":"glenda-ost-april-11-2019","status":"publish","type":"post","link":"http:\/\/csinewsnow.com\/?p=169942","title":{"rendered":"Glenda Ost &#8211; April 11, 2019"},"content":{"rendered":"<div class=\"node-body\">\n<p>Glenda Ost, 71, Jamestown, ND, died Thursday, April 11, 2019 at Ave Maria Village in Jamestown.<\/p>\n<\/div>\n<div class=\"node-body\">\n<p>Glenda Kae Schnaible was born to Theodore and Hilda (Backhaus) Schnaible on Oct. 31, 1947 in Linton, ND. She graduated from Linton High School in 1966 and married Jim Ryan that summer. The couple eventually moved to Buchanan, ND and raised 3 children there. Glenda worked for Leevers Inc for many years until her retirement and kept busy being a gramma and by continuing to work part time. She absolutely adored her grandchildren and great grandchildren and will be deeply missed by all. Rest in peace knowing you are loved by so many. Glenda is survived by her children, Corey (Betsy) Ryan, Jamestown ND; Richard Ryan, Jamestown, ND; Kimberly Ryan, Medina, ND; grandchildren, Janessa Ryan, Jamestown, ND; Alexis (Robbie) Klassen, Omaha, NE; Jade Biloff, Jamestown, ND; Abby Miller, Havre, MT; Gracie Gunderson, Medina, ND; Katie Ryan; Jamestown, ND; great grandchildren Kingsley Brown, Havre, MT; James Klassen, Omaha, NE; brothers Robert (Betty) Schnaible, Belle Fourche, SD; Jerome (Jean) Schnaible, Bismarck, ND; and 11 nieces and nephews whom she loved very much. She was preceded in death by her parents and brothers, Dwayne Schnaible, Frederick Schnaible, Curtis Schnaible, and Kenny Schnaible.<\/p>\n<p>Funeral Service &#8211; 10:30 AM Saturday, April 20, 2019 at the Haut Funeral Chapel in Jamestown, ND with Deacon Ken Votava and Pastor Erik Weber, officiating. Visitation- 9-5 Friday at the Funeral Home Burial- Buchanan Cemetery, Buchanan, ND (Later Date)<\/p>\n<\/div>\n<div style=\"position: absolute; background-color: transparent;\"><\/div>\n<div id=\"&quot;adventive_htmlx_Iw212302_outer&quot;\" class=\"&quot;adContainer&quot;\">\n<div id=\"&quot;adventive_htmlx_Iw212302_inner&quot;\" data-spec-cid=\"&quot;40985&quot;\" data-spec-pid=\"&quot;102901&quot;\" data-spec-uuid=\"&quot;&quot;\">\n<div id=\"&quot;screen-0&quot;\" class=\"&quot;ad-screen&quot;\">\n<div><\/div>\n<div><\/div>\n<div><\/div>\n<div><\/div>\n<div id=\"&quot;screen-0-bg&quot;\"><\/div>\n<div id=\"&quot;layer-0-0&quot;\" class=\"&quot;&quot;\"><\/div>\n<div id=\"&quot;layer-0-1&quot;\" class=\"&quot;&quot;\"><\/div>\n<div id=\"&quot;layer-0-3&quot;\" class=\"&quot;&quot;\"><\/div>\n<div id=\"&quot;layer-0-4&quot;\" class=\"&quot;&quot;\"><\/div>\n<div id=\"&quot;layer-0-5&quot;\" class=\"&quot;&quot;\"><img decoding=\"async\" id=\"&quot;img-0-5&quot;\" title=\"&quot;&quot;\" src=\"&quot;https:\/\/assets.adventivecdn.com\/257\/df2e7504-5bd2-4190-94c8-8d9fb8f8d0a2&quot;\" alt=\"&quot;&quot;\" \/><\/div>\n<div id=\"&quot;layer-0-6&quot;\" class=\"&quot;&quot;\"><img decoding=\"async\" id=\"&quot;img-0-6&quot;\" title=\"&quot;&quot;\" src=\"&quot;https:\/\/assets.adventivecdn.com\/257\/8ac7a9fc-438d-4cbf-a674-f59efe11cd4b&quot;\" alt=\"&quot;&quot;\" \/><\/div>\n<div id=\"&quot;layer-0-7&quot;\" class=\"&quot;&quot;\"><img decoding=\"async\" id=\"&quot;img-0-7&quot;\" title=\"&quot;&quot;\" src=\"&quot;https:\/\/assets.adventivecdn.com\/257\/752f0a31-7665-4913-b3a5-51716c8991c0&quot;\" alt=\"&quot;&quot;\" \/><\/div>\n<div id=\"&quot;layer-0-8&quot;\" class=\"&quot;&quot;\"><img decoding=\"async\" id=\"&quot;img-0-8&quot;\" title=\"&quot;&quot;\" src=\"&quot;https:\/\/assets.adventivecdn.com\/257\/8f932376-1358-4fde-9dcb-39d1eb12d304&quot;\" alt=\"&quot;&quot;\" \/><\/div>\n<div id=\"&quot;layer-0-9&quot;\" class=\"&quot;&quot;\"><img decoding=\"async\" id=\"&quot;img-0-9&quot;\" title=\"&quot;&quot;\" src=\"&quot;https:\/\/assets.adventivecdn.com\/257\/199dbf6e-73a7-4adf-8999-a31b3108a2fa&quot;\" alt=\"&quot;&quot;\" \/><\/div>\n<\/div>\n<\/div>\n<\/div>\n<p><a id=\"&quot;clickWrapper&quot;\" href=\"&quot;https:\/\/adclick.g.doubleclick.net\/pcs\/click?xai=AKAOjst0CUzh4DGTUXNF-HAvJ95Kc26KyAobg6J5iBO8cUJU4e7QAx8vBTKnGOavuOC8NWdkEQ_qywvW3nI24ubjP2HAx5QBeCVszE2Y_axOaLRFlQBUAGyLRcS3b4yTWgh2Uskv3_t2ta7n_1SKhKd3aBNhWsf_tQHB_mvtmbOjYaLBtwkJjshtrn3W7YcQwHx62d8jSXzzOftmUgSCZ16m38MVSIqUiJPGD1-bQi01849cDQ_34yc7FP03Q8Dj5A29SQ-s8TzC7-g&amp;sai=AMfl-YRK-lcjFrnVJeDHiJY9n96yQLIeaA1RiEvAqGYVfuHnJ_Wx1EKOFUT4gkp11HPWbJ0j4Pwsp2nLKtveXnzK0mV7csNiWp6IOwJeLq4T_gv4YY9KNXrbQhgv3X0&amp;sig=Cg0ArKJSzEYYEh0jbliQEAE&amp;urlfix=1&amp;adurl=http%3A%2F%2Fwww.spiritlakecasino.com%2F&quot;\" target=\"&quot;_blank&quot;\"><\/a><script type=\"text\/javascript\">var recipeHasShakeAction = Boolean(0);<\/script><script type=\"text\/javascript\">var recipeHasShakeAction = Boolean(0);<\/script><script type=\"text\/javascript\">var recipeHasShakeAction = Boolean(0);<\/script><script type=\"text\/javascript\">var recipeHasShakeAction = Boolean(0);<\/script><script type=\"text\/javascript\">var recipeHasShakeAction = Boolean(0);<\/script><script type=\"text\/javascript\">var recipeHasShakeAction = Boolean(0);<\/script><script type=\"text\/javascript\">var recipeHasShakeAction = Boolean(0);<\/script><script type=\"text\/javascript\">var recipeHasShakeAction = Boolean(0);<\/script><script type=\"text\/javascript\">var recipeHasShakeAction = Boolean(0);<\/script><script type=\"text\/javascript\">var recipeHasShakeAction = Boolean(0);<\/script><script type=\"text\/javascript\">var recipeHasVideo = Boolean(0);<\/script><script type=\"text\/javascript\">(function (w, ns, has) {  if (has.call(w.parent, 'window') &amp;&amp; has.call(w.parent.window, ns)) {    w[ns] = w.parent.window[ns];  }})(window, 'Adventive', Object.prototype.hasOwnProperty);<\/script> Arrow<script src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/gsap\/latest\/TweenLite.min.js\" type=\"text\/javascript\"><\/script><script src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/gsap\/latest\/plugins\/CSSPlugin.min.js\" type=\"text\/javascript\"><\/script><script src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/gsap\/1.15.0\/easing\/EasePack.min.js\" type=\"text\/javascript\"><\/script><script src=\"https:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/2.1.3\/jquery.min.js\" type=\"text\/javascript\"><\/script><script type='\"text\/javascript\"'>setResponsiveScreen(activeScreen);   if (parent.window.preventSpecialFormat) {        var autocheck_0_1 = 0;     } else {        var autocheck_0_1 = 0;    }        var ua = navigator.userAgent.toLowerCase();  var isAndroid = (ua.indexOf(&quot;android&quot;) > -1);  var isiOS = ( navigator.userAgent.match(\/iPad|iPhone|iPod\/g) ? true : false );  var mobileTouchDirection_0_1 = &quot;&quot;;   var currentImageIndex_0_1 = 0;  var previousImageIndex_0_1 = 0;  var totalImages_0_1 = 3;  var transitionType_0_1 = &quot;Automatic&quot;;  var transitionPauseOnHover_0_1 = Boolean();  var transitionDuration_0_1 = 3;  var transitionEffect_0_1 = &quot;Fade&quot;;  var transitionDirection_0_1 = &quot;From Left&quot;;  var transitionSpeed_0_1 = 1;  var transitionLoop_0_1 = Boolean(1);  var arrowDisplay_0_1 = &quot;Never&quot;;  var paginationDisplay_0_1 = &quot;Never&quot;;  var paginationDotColor_0_1 = &quot;#ffffff&quot;;  var interval_0_1 = 0;  var t_0_1 = null;  var t_0_1_2 = null;  var appH_0_1 = 250;  var appW_0_1 = 300;  var mouseOver_0_1 = false;  var prev_0_1 = null;  var aniSettings_0_1 = {};  var url_cap_Array_0_1 = null;  var  engageSlideView_0_1 = [];  var  engageClick_0_1 = [];  var thumbSize_0_1 = 23;  var thumbHighlightSize0_1 = 3;  var railLeft_0_1 = 0;  var oldRailLeft_0_1 = 0;  var visibleThumbs_0_1 = 0;  var thumbClickCounter_0_1 = 0;  var hoverOverThumbRail_0_1 = false;  var arrowType_0_1 = &quot;Default&quot;;  var thumbnailPagi_0_1 = Boolean(0);  var player_0_1;   var player_element_0_1;  var muted_0_1;  var vol_0_1;  var autoUnmuted_0_1=0;  var duration_0_1;  var play_done_0_1 = 0;  var play_started_0_1 = 0;  var playing_0_1 = 0;  var statLogged_0_1 = 0;  var inViewed_0_1 = 0;  var outViewed_0_1 = 0;  var dontLogVolChange_0_1 = 0;  var dontLogSeek_0_1 = 0;  var dontLogLoop_0_1 = 0;  var cInterval_0_1;  var volInterval_0_1;  var isReturnAutoPlay_0_1 = 0;  var playingWhenLeft_0_1 = 0;  var playerArray_0_1 = [];  var recipeArray_0_1 = [];  var uuid;  var dontLogPlay_0_1 = [];  var scrubbing_0_1 = 0;  var vCounter_0_1 = 0;  var skipIt_0_1 = 0;  var controlOffset_0_1;  var widthDiv_0_1;  var HeightDiv_0_1;  var muteshift_0_1_3;  var playshift_0_1_3;  var playingArray_0_1 = [];  var autoUnmutedArray_0_1 = [];  var restartPlaybackDoneArr_0_1 = [];   var unmuteHappenedArr_0_1 = [];   var restartedVideoUnmute_0_1 = false;   var appSettingsInfoArr_0_1 = [];  var previewImagesArr_0_1 = [];  var loadingImagesArr_0_1 = [];  var assetCount = 3;  for(var i=0;i< assetCount;i++) {    playingArray_0_1[i] = 0;    autoUnmutedArray_0_1[i] = 0;    restartPlaybackDoneArr_0_1[i]=false;    dontLogPlay_0_1[i]=false;    unmuteHappenedArr_0_1[i]=false;    appSettingsInfoArr_0_1[i] = {autoPlayWithSound:0, restartPlayback:0, loop:0, clickthrough:0, duration:0, iconColor:&quot;&quot;,src:&quot;&quot;,endTime:0,returnToStart:0,autoplayDelay:0};    previewImagesArr_0_1[i] = {};    loadingImagesArr_0_1[i] = {};  }  var engageAutoPlay_0_1 = [];  var engagePlay_0_1 = [];  var engagePause_0_1 = [];  var engageMute_0_1 = [];  var engageUnmute_0_1 = [];  var engageFQ_0_1 = [];    var engageSQ_0_1 = [];    var engageTQ_0_1 = [];    var engageFrQ_0_1 = [];   var qtInterval_0_1 = 0;   var ytqtInterval_0_1 = 0;   var countedQ1_0_1 = 0;   var countedQ2_0_1 = 0;   var countedQ3_0_1 = 0;   var countedQ4_0_1 = 0;     function checkQuartileTracking_0_1(type, totalDuration){        var assets = &quot;%5B%7B%22name%22%3A%22SpiritLakeCasino_5949755_300x250_04012019_2.jpg%22%2C%22src%22%3A%22257%5C%2F925380e1-6838-424e-b9d5-4d5d452ef13e%22%2C%22clickUrl%22%3A%22%22%2C%22logName%22%3A%22%22%2C%22slideshowAssetType%22%3A%22Uploaded+Asset%22%2C%22videoId%22%3A%22%22%2C%22valid%22%3Atrue%2C%22hasCaption%22%3Afalse%2C%22hasUrl%22%3Atrue%2C%22caption%22%3A%22%22%2C%22width%22%3A%22300%22%2C%22height%22%3A%22250%22%2C%22slideIsVisible%22%3Atrue%2C%22children%22%3A%5B%5D%2C%22videoInfo%22%3A%7B%22chromeLess%22%3A0%2C%22logo%22%3A0%2C%22videoInfo%22%3A0%2C%22theme%22%3A%22dark%22%2C%22progressBar%22%3A%22red%22%2C%22autoplay%22%3A0%2C%22loop%22%3A0%2C%22startTime%22%3A0%2C%22endTime%22%3A0%2C%22related%22%3A0%2C%22autoHidecontrols%22%3A0%2C%22valid%22%3Atrue%2C%22event%22%3A%22%22%2C%22action%22%3A%22%22%2C%22pixelURL%22%3A%22%22%2C%22showReplayButton%22%3A0%2C%22clickthrough%22%3A1%2C%22enableMutingControls%22%3A0%2C%22mutingControlsPosition%22%3A%22Bottom+Right%22%2C%22autoHideMutingControls%22%3A0%2C%22iconColor%22%3A%22light%22%2C%22showPlayButtonOverlay%22%3A1%2C%22returnToStart%22%3A0%2C%22startOnReturn%22%3A0%2C%22changeScreenSetting%22%3A%22Resume+Playback%22%2C%22enablePlayerControls%22%3A0%2C%22playerControlsPosition%22%3A%22Bottom+Left%22%2C%22autoHidePlayerControls%22%3A0%2C%22playerIconColor%22%3A%22light%22%2C%22restartPlayback%22%3A0%2C%22autoplayDelay%22%3A0%2C%22nativeWidth%22%3A%22%22%2C%22nativeHeight%22%3A%22%22%2C%22source%22%3A%22%22%2C%22autoHideYtcontrols%22%3A2%2C%22controlSettings%22%3A%22Always+Visible%22%2C%22displayVidInfo%22%3A0%2C%22showYoutubeLogo%22%3A0%7D%2C%22openURLIn%22%3A%22New+Tab%22%2C%22uuid%22%3A%224d062a64-407b-40a3-a199-5f82d6635dc1%22%2C%22isVideo%22%3Afalse%2C%22thumb%22%3A%22%22%2C%22cropX%22%3A-1%2C%22cropY%22%3A-1%2C%22cropW%22%3A-1%2C%22cropH%22%3A-1%2C%22cropS%22%3A-1%2C%22cropL%22%3A-1%2C%22cropT%22%3A-1%7D%2C%7B%22name%22%3A%22%22%2C%22src%22%3A%22%22%2C%22logName%22%3A%22%22%2C%22clickUrl%22%3A%22%22%2C%22caption%22%3A%22%22%2C%22uuid%22%3A%22463d87c8-949e-4058-a2ff-e3af8a78c2cd%22%2C%22isVideo%22%3Afalse%2C%22startTime%22%3A%22%22%2C%22endTime%22%3A%22%22%2C%22videoInfo%22%3A%7B%22chromeLess%22%3A0%2C%22logo%22%3A0%2C%22videoInfo%22%3A0%2C%22theme%22%3A%22dark%22%2C%22progressBar%22%3A%22red%22%2C%22autoplay%22%3A0%2C%22loop%22%3A0%2C%22startTime%22%3A0%2C%22endTime%22%3A0%2C%22related%22%3A0%2C%22autoHidecontrols%22%3A0%2C%22valid%22%3Atrue%2C%22event%22%3A%22%22%2C%22action%22%3A%22%22%2C%22pixelURL%22%3A%22%22%2C%22showReplayButton%22%3A0%2C%22clickthrough%22%3A0%2C%22enableMutingControls%22%3A0%2C%22mutingControlsPosition%22%3A%22Bottom+Right%22%2C%22autoHideMutingControls%22%3A0%2C%22iconColor%22%3A%22light%22%2C%22showPlayButtonOverlay%22%3A1%2C%22returnToStart%22%3A0%2C%22startOnReturn%22%3A0%2C%22changeScreenSetting%22%3A%22Resume+Playback%22%2C%22enablePlayerControls%22%3A0%2C%22playerControlsPosition%22%3A%22Bottom+Left%22%2C%22autoHidePlayerControls%22%3A0%2C%22playerIconColor%22%3A%22light%22%2C%22videoWidth%22%3A0%2C%22videoHeight%22%3A0%2C%22restartPlayback%22%3A0%2C%22autoplayDelay%22%3A0%2C%22showYoutubeLogo%22%3A0%2C%22displayVidInfo%22%3A0%2C%22autoHideYtcontrols%22%3A2%2C%22controlSettings%22%3A%22Always+Visible%22%7D%2C%22children%22%3A%5B%5D%2C%22thumb%22%3A%22%22%2C%22slideIsVisible%22%3Atrue%2C%22slideshowAssetType%22%3A%22Uploaded+Asset%22%2C%22valid%22%3Atrue%2C%22videoId%22%3A%22%22%2C%22cropX%22%3A-1%2C%22cropY%22%3A-1%2C%22cropW%22%3A-1%2C%22cropH%22%3A-1%2C%22cropS%22%3A-1%2C%22cropL%22%3A-1%2C%22cropT%22%3A-1%2C%22openURLIn%22%3A%22New+Tab%22%7D%2C%7B%22name%22%3A%22SpiritLakeCasino_5949755_300x250_04012019_3.jpg%22%2C%22src%22%3A%22257%5C%2F977caeb9-6a9e-41f4-b414-2e7f4454c141%22%2C%22logName%22%3A%22%22%2C%22clickUrl%22%3A%22%22%2C%22caption%22%3A%22%22%2C%22uuid%22%3A%22c97feb11-efe6-4ce4-82c1-c490071b9b2b%22%2C%22isVideo%22%3Afalse%2C%22startTime%22%3A%22%22%2C%22endTime%22%3A%22%22%2C%22videoInfo%22%3A%7B%22chromeLess%22%3A0%2C%22logo%22%3A0%2C%22videoInfo%22%3A0%2C%22theme%22%3A%22dark%22%2C%22progressBar%22%3A%22red%22%2C%22autoplay%22%3A0%2C%22loop%22%3A0%2C%22startTime%22%3A0%2C%22endTime%22%3A0%2C%22related%22%3A0%2C%22autoHidecontrols%22%3A0%2C%22valid%22%3Atrue%2C%22event%22%3A%22%22%2C%22action%22%3A%22%22%2C%22pixelURL%22%3A%22%22%2C%22showReplayButton%22%3A0%2C%22clickthrough%22%3A0%2C%22enableMutingControls%22%3A0%2C%22mutingControlsPosition%22%3A%22Bottom+Right%22%2C%22autoHideMutingControls%22%3A0%2C%22iconColor%22%3A%22light%22%2C%22showPlayButtonOverlay%22%3A1%2C%22returnToStart%22%3A0%2C%22startOnReturn%22%3A0%2C%22changeScreenSetting%22%3A%22Resume+Playback%22%2C%22enablePlayerControls%22%3A0%2C%22playerControlsPosition%22%3A%22Bottom+Left%22%2C%22autoHidePlayerControls%22%3A0%2C%22playerIconColor%22%3A%22light%22%2C%22videoWidth%22%3A0%2C%22videoHeight%22%3A0%2C%22restartPlayback%22%3A0%2C%22autoplayDelay%22%3A0%2C%22showYoutubeLogo%22%3A0%2C%22displayVidInfo%22%3A0%2C%22autoHideYtcontrols%22%3A2%2C%22controlSettings%22%3A%22Always+Visible%22%7D%2C%22children%22%3A%5B%5D%2C%22thumb%22%3A%22%22%2C%22slideIsVisible%22%3Atrue%2C%22slideshowAssetType%22%3A%22Uploaded+Asset%22%2C%22valid%22%3Atrue%2C%22videoId%22%3A%22%22%2C%22cropX%22%3A-1%2C%22cropY%22%3A-1%2C%22cropW%22%3A-1%2C%22cropH%22%3A-1%2C%22cropS%22%3A-1%2C%22cropL%22%3A-1%2C%22cropT%22%3A-1%2C%22openURLIn%22%3A%22New+Tab%22%2C%22width%22%3A%22300%22%2C%22height%22%3A%22250%22%7D%5D&quot;;    assets = JSON.parse(decodeURIComponent(assets));      if(type == 'video') {      var time;      var duration;      time = Math.round(playerArray_0_1[currentImageIndex_0_1].currentTime);      duration = Math.floor(playerArray_0_1[currentImageIndex_0_1].duration);      var customStartTime = parseInt(assets[currentImageIndex_0_1].startTime) > 0 ? parseInt(assets[currentImageIndex_0_1].startTime):'0';      var customEndTime = parseInt(assets[currentImageIndex_0_1].endTime) > 0 ? parseInt(assets[currentImageIndex_0_1].endTime):duration;      var customDuration = customEndTime - customStartTime;      var quartileTime = customDuration\/4;      var quartileEvent = document.createEvent(&quot;CustomEvent&quot;);      var totalTime = time - customStartTime;            if ( (totalTime == Math.floor(quartileTime)) || ( (totalTime > Math.floor(quartileTime)) &amp;&amp; (!countedQ1_0_1) ) ) {                if (!countedQ1_0_1) {                    cvLog_0_1('q1_video_auto', Math.floor(totalTime), quartileEvent);                    countedQ1_0_1=1;                    console.log(&quot;firstQuartile&quot;);                    logTPTracking_0_1('FQ');                }            }            if ( (totalTime == Math.floor(quartileTime*2)) || ( (totalTime > Math.floor(quartileTime*2)) &amp;&amp; (!countedQ2_0_1) ) ){                if (!countedQ2_0_1) {                    cvLog_0_1('q2_video_auto', Math.floor(totalTime), quartileEvent);                    countedQ2_0_1=1;                    console.log(&quot;SecondQuartile&quot;);                    logTPTracking_0_1('SQ');                }            }            if ( (totalTime == Math.floor(quartileTime*3)) || ( (totalTime > Math.floor(quartileTime*3)) &amp;&amp; (!countedQ3_0_1) ) ){                if (!countedQ3_0_1) {                    cvLog_0_1('q3_video_auto', Math.floor(totalTime), quartileEvent);                    countedQ3_0_1=1;                    console.log(&quot;ThirdQuartile&quot;);                    logTPTracking_0_1('TQ');                }            }                        if ( (totalTime >= Math.floor((quartileTime*4)-1)) || ( (totalTime > Math.floor(quartileTime*4)) &amp;&amp; (!countedQ4_0_1) ) ){                if (!countedQ4_0_1) {                    countedQ4_0_1=1;                    cvLog_0_1('q4_video_auto', customDuration, quartileEvent);                    console.log(&quot;complete&quot;);                    logTPTracking_0_1('FrQ');                }            }            if ( (totalTime >= Math.floor(customEndTime - 1)) || ( (totalTime > Math.floor(customEndTime)) &amp;&amp; (!countedQ4_0_1) ) ) {                if (!countedQ4_0_1) {                    countedQ4_0_1=1;                    cvLog_0_1('q4_video_auto', customDuration, quartileEvent);                    console.log(&quot;complete&quot;);                    logTPTracking_0_1('FrQ');                }            }        } else if(type =='youtube') {            var customStartTime = parseInt(assets[currentImageIndex_0_1].startTime) > 0 ? parseInt(assets[currentImageIndex_0_1].startTime):'0';            var customEndTime = parseInt(assets[currentImageIndex_0_1].endTime) > 0 ? parseInt(assets[currentImageIndex_0_1].endTime):totalDuration;            if(customStartTime > 0 &amp;&amp; (customEndTime == customStartTime)){                customEndTime = totalDuration;            }            var customDuration = customEndTime - customStartTime;            var time = Math.round(playerArray_0_1[currentImageIndex_0_1].getCurrentTime());            var quartileTime = customDuration\/4;            var totalTime = time - customStartTime;            var quartileEvent = document.createEvent(&quot;CustomEvent&quot;);            if( ( totalTime == Math.floor(quartileTime) ) || ( ( totalTime > Math.floor(quartileTime)) &amp;&amp; (!countedQ1_0_1) ) ){                if (!countedQ1_0_1) {                    cvLog_0_1('q1_youtube_auto', Math.floor(totalTime), quartileEvent, 'youtube');                    countedQ1_0_1=1;                    logTPTracking_0_1('FQ');                }            }else if ( ( totalTime == Math.floor(quartileTime*2) ) || ( ( totalTime > Math.floor(quartileTime*2)) &amp;&amp; (!countedQ2_0_1) ) ){                if (!countedQ2_0_1) {                    cvLog_0_1('q2_youtube_auto', Math.floor(totalTime), quartileEvent, 'youtube');                    countedQ2_0_1=1;                    logTPTracking_0_1('SQ');                }            }else if ( (totalTime == Math.floor(quartileTime*3) ) || ( ( totalTime > Math.floor(quartileTime*3)) &amp;&amp; (!countedQ3_0_1) ) ){                if (!countedQ3_0_1) {                    cvLog_0_1('q3_youtube_auto', Math.floor(totalTime), quartileEvent, 'youtube');                    countedQ3_0_1=1;                    logTPTracking_0_1('TQ');                }            }else if(totalTime >= Math.floor(customEndTime) ){                if (!countedQ4_0_1) {                    cvLog_0_1('q4_youtube_auto', customDuration, quartileEvent, 'youtube');                    countedQ4_0_1=1;                    logTPTracking_0_1('FrQ');                }            }        }    }    function startQuartileYoutubeTracking_0_1(duration){        checkQuartileTracking_0_1('youtube', duration);        ytqtInterval_0_1 = setInterval(function(){checkQuartileTracking_0_1('youtube', duration)},1000);    }    function stopQuartileYoutubeTracking_0_1(){        clearInterval(ytqtInterval_0_1);    }  var ssAppInit_0_1 = function() {    if(&quot;eebec070-9180-4412-bae4-80e3f3465109&quot; != undefined &amp;&amp; &quot;eebec070-9180-4412-bae4-80e3f3465109&quot; != &quot;&quot;) uuid = &quot;eebec070-9180-4412-bae4-80e3f3465109&quot;;    else uuid = &quot;0_1&quot;;    var ssAppBody_0_1 = document.getElementById(&quot;layer-0-1&quot;);    ssAppBody_0_1.innerHTML = slideshow_content_0_1;    var isAndroid = (navigator.userAgent.toLowerCase().indexOf(&quot;android&quot;) > -1);    var isiOS = (navigator.userAgent.match(\/iPad|iPhone|iPod\/g) ? true : false);    if(!isAndroid || !isiOS){      ssAppBody_0_1.onmouseenter=hoverOver_0_1;      ssAppBody_0_1.onmouseleave=hoverOut_0_1;    }    setUpTrackingVars_0_1();    if(isAndroid || isiOS){      $(&quot;#layer-0-1&quot;).on(&quot;swipeleft&quot;, function(){        if(transitionEffect_0_1 == &quot;Slide&quot;) mobileTouchDirection_0_1 = &quot;From Right&quot;;        clickArrow_0_1(null, -1, false);      });      $(&quot;#layer-0-1&quot;).on(&quot;swiperight&quot;, function(){        if(transitionEffect_0_1 == &quot;Slide&quot;) mobileTouchDirection_0_1 = &quot;From Left&quot;;        clickArrow_0_1(null, 1, false);      });    }    if (!youTubeIframeAPIReady) {    var tag = document.createElement('script');        tag.src = &quot;https:\/\/www.youtube.com\/iframe_api&quot;;        var firstScriptTag = document.getElementsByTagName('script')[0];        firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);    }  };  function isIE() { return ((navigator.appName == 'Microsoft Internet Explorer') || ((navigator.appName == 'Netscape') &amp;&amp; (new RegExp(&quot;Trident\/.*rv:([0-9]{1,}[.0-9]{0,})&quot;).exec(navigator.userAgent) != null))); }    function onYouTubeIframeAPIReady() {      youTubeIframeAPIReady=true;  }      function positionCaption_0_1() {      var captionPosition = &quot;Bottom&quot;;      var paginationPosition = &quot;Bottom&quot;;      var paginationSize = &quot;Medium&quot;;      var element = null;      var height = 0;      var appHeight = 250;      var paginationIntSize = 0;      var area = 0;&#9;  var captionTop = 0;&#9;  var imgEle = null;&#9;  var slideEle = null;&#9;  var youtubeEle = null;      if(paginationDisplay_0_1 == 'Always' || paginationDisplay_0_1 == 'On Hover'){            if(paginationSize==&quot;Small&quot;){                paginationIntSize=25;            }else if(paginationSize==&quot;Medium&quot;){                paginationIntSize=35;            }else{                paginationIntSize=50;            }        }            url_cap_Array_0_1 = new Array(totalImages_0_1);      $('#pagiBar_0_1').mousemove(function() {      &#9;hoverOverThumbRail_0_1 = true;      });      $('#pagiBar_0_1').mouseover(function() {         hoverOverThumbRail_0_1 = true;      });      $('#pagiBar_0_1').mouseleave(function() {          hoverOverThumbRail_0_1 = false;      });              var player_element_0_1_0;          element = document.getElementById(&quot;captionTextArea_0_1_0&quot;);          imgEle = document.getElementById(&quot;img_0_1_0&quot;);          vidEle = document.getElementById(&quot;customplayer-0-1-0&quot;);          youtubeEle = document.getElementById(&quot;player_0_1_0&quot;);          slideEle = document.getElementById(&quot;slide_0_1_0&quot;);          var autoHidecontrols = 0;            var control = true;            if(autoHidecontrols == 1) control = false;            var startTime_0_1_0 = &quot;&quot;;                        var endTime_0_1_0 = 0;            var theme = 'dark';            var showReplay = 0;            var returnToStart = 0 == 1 ? true:false;                                if(youtubeEle != null) {                  if (parent.window.preventSpecialFormat) {                   var youtubeAutocheck_0_1_0 = 0;             } else {                 var youtubeAutocheck_0_1_0 = 0;            }            var htmlMode = 0;                    if(navigator.userAgent.toLowerCase().indexOf('firefox') > -1)                    {                        htmlMode = 1;                    }                    var youtubeAutoUnmuted_0_1_0=0;                    var playing_0_1_0=0;                    var player_0_1_0;                    var play_done_0_1_0=0;                    var cInterval_0_1_0;                    var duration_0_1_0;            var youtubeAutoplayDelay_0_1_0 = 0;                        var youtubeVid_0_1_0 = '';                    youtubeVid_0_1_0 = youtubeVid_0_1_0.replace(&quot;http:\/\/www.youtube.com\/watch?v=&quot;, &quot;&quot;);            youtubeVid_0_1_0 = youtubeVid_0_1_0.replace(&quot;https:\/\/www.youtube.com\/watch?v=&quot;, &quot;&quot;);            youtubeVid_0_1_0 = youtubeVid_0_1_0.replace(&quot;http:\/\/youtu.be\/&quot;, &quot;&quot;);            youtubeVid_0_1_0 = youtubeVid_0_1_0.replace(&quot;https:\/\/youtu.be\/&quot;, &quot;&quot;);            var words = {&quot;chromeLess&quot;:0,&quot;logo&quot;:0,&quot;videoInfo&quot;:0,&quot;theme&quot;:&quot;dark&quot;,&quot;progressBar&quot;:&quot;red&quot;,&quot;autoplay&quot;:0,&quot;loop&quot;:0,&quot;startTime&quot;:0,&quot;endTime&quot;:0,&quot;related&quot;:0,&quot;autoHidecontrols&quot;:0,&quot;valid&quot;:true,&quot;event&quot;:&quot;&quot;,&quot;action&quot;:&quot;&quot;,&quot;pixelURL&quot;:&quot;&quot;,&quot;showReplayButton&quot;:0,&quot;clickthrough&quot;:1,&quot;enableMutingControls&quot;:0,&quot;mutingControlsPosition&quot;:&quot;Bottom Right&quot;,&quot;autoHideMutingControls&quot;:0,&quot;iconColor&quot;:&quot;light&quot;,&quot;showPlayButtonOverlay&quot;:1,&quot;returnToStart&quot;:0,&quot;startOnReturn&quot;:0,&quot;changeScreenSetting&quot;:&quot;Resume Playback&quot;,&quot;enablePlayerControls&quot;:0,&quot;playerControlsPosition&quot;:&quot;Bottom Left&quot;,&quot;autoHidePlayerControls&quot;:0,&quot;playerIconColor&quot;:&quot;light&quot;,&quot;restartPlayback&quot;:0,&quot;autoplayDelay&quot;:0,&quot;nativeWidth&quot;:&quot;&quot;,&quot;nativeHeight&quot;:&quot;&quot;,&quot;source&quot;:&quot;&quot;,&quot;autoHideYtcontrols&quot;:2,&quot;controlSettings&quot;:&quot;Always Visible&quot;,&quot;displayVidInfo&quot;:0,&quot;showYoutubeLogo&quot;:0};              var obj = {};              $.each(words, function(key, value) {                  obj[key] = value;              });            obj['videoId'] = '';                        obj['slideshowAssetType'] = 'Uploaded Asset';            recipeArray_0_1.push(obj);            var pagiHeight = $(&quot;#pagiBar_0_1&quot;).css('height');            var ytChromeless_0_1_0 = 0 == 0 ? '1':'0';            var pagiHeightAdj;            var pagiPadding;            if(paginationPosition == 'Top') {                pagiHeightAdj = parseInt(pagiHeight);                pagiPadding = parseInt(pagiHeight);            } else if(paginationPosition == 'Bottom') {                pagiHeightAdj = parseInt(pagiHeight);                pagiPadding = 0;            }            if(paginationDisplay_0_1 != 'Always') {                pagiHeightAdj = 0;                pagiPadding = 0;            }                      var ytStartPlayer_0_1_0 = setInterval(function() {                        if(youTubeIframeAPIReady) {                          clearInterval(ytStartPlayer_0_1_0);                           player_0_1_0 = new YT.Player('player_0_1_0', {                            height: 250-pagiHeightAdj,                            width: 300,                            videoId: youtubeVid_0_1_0,                            playerVars: {                                'autoplay':youtubeAutocheck_0_1_0,                                'playsinline': 1,                                'showinfo': '0',                                'rel': '0',                                'modestbranding': '0',                                'color': 'red',                                'theme': 'dark',                                'controls': ytChromeless_0_1_0,                                'start': 0,                                                                'autohide':0,                                'iv_load_policy':3,                                'html5': htmlMode                            },                            events: {                                'onReady':  function(event) {                                   if(player_0_1_0 &amp;&amp; typeof player_0_1_0.getPlayerState == 'function'){                                       if(0 != '0') {                                          player_0_1_0.pauseVideo();                                       }                              player_ready_0_1_0 = true;                              playerArray_0_1[0] = player_0_1_0;                                $(&quot;#youtubeWrapper_0_1_0&quot;).css('padding-top', pagiPadding);                              if (youtubeAutocheck_0_1_0) {                                if(!0){                                  if(!isIE())event.target.setVolume(0);                                     event.target.mute();                                                                        var ytCheck_0_1_0 = setInterval(function(){ ytChecker_0_1_0() }, 10);                                    function ytChecker_0_1_0(){                                        if (event.target.getPlayerState() === 1){                                           player_0_1_0.mute();                                           clearInterval(ytCheck_0_1_0);                                           setTimeout(function(){                                               player_0_1_0.mute();                                               if(!isIE())event.target.setVolume(0);                                             }, 100);                                        }else {}                                    }                                 }                                  if(!youtubeAutocheck_0_1_0){                                    if(youtubeAutoplayDelay_0_1_0 > 0){                                      setTimeout(function(){                                        player_0_1_0.playVideo();                                      },youtubeAutoplayDelay_0_1_0);                                    }                                }                              }                              muted_0_1_0=player_0_1_0.isMuted();                               duration_0_1_0 = player_0_1_0.getDuration()-1;                               vurl_0_1_0 = player_0_1_0.getVideoUrl();                          }                                },                                'onStateChange': function(event) {                                                                    if(typeof player_0_1_0.getCurrentTime == 'function'){                            switch(event.data) {                                case -1:                                     playing_0_1_0 = 0;                                    break;                                case 1:                                     playing_0_1_0 = 1;                                    play_started_0_1_0 = 1;                                    var isAndroid = (navigator.userAgent.toLowerCase().indexOf(&quot;android&quot;) > -1);                                    var isiOS = (navigator.userAgent.match(\/iPad|iPhone|iPod\/g) ? true : false);                                    if(isiOS || isAndroid) autocheck_0_1 = false;                                    if (!statLogged_0_1 &amp;&amp; youtubeAutocheck_0_1_0) {                                         cvLog_0_1('play_youtube_auto', Math.floor(player_0_1_0.getCurrentTime()), event, 'youtube');                                        logTPTracking_0_1('AutoPlay');                                        statLogged_0_1= 1;                                    } else {                                        if (play_done_0_1_0) {                                            play_done_0_1_0=0;                                                                                              cvLog_0_1('replay_youtube_click', Math.floor(player_0_1_0.getCurrentTime()), event, 'youtube');                                                                                        vCounter_0_1_0=0;                                        } else {                                            cvLog_0_1('play_youtube_click', Math.floor(player_0_1_0.getCurrentTime()), event, 'youtube');                                            logTPTracking_0_1('Play');                                            player_0_1_0.unMute();                                            autoUnmuted_0_1=1;                                            skipIt_0_1=1;                                            statLogged_0_1 = 1                                        }                            }                                    cInterval_0_1_0 = setInterval(function() {volCheck_0_1('youtube'), 1000});                                     startQuartileYoutubeTracking_0_1(duration_0_1_0);                                    break;                                case 2:                                     if ((Math.floor(player_0_1_0.getCurrentTime()) != duration_0_1) &amp;&amp; ( playing_0_1_0)){                                        cvLog_0_1('pause_youtube_click', Math.floor(player_0_1_0.getCurrentTime()), event, 'youtube');                                        logTPTracking_0_1('Pause');                                    } else {                                         var pTime = Math.floor(player_0_1_0.getCurrentTime());                                        if (!scrubbing_0_1) {                                            if ( (pTime > parseInt(vCounter_0_1 + 5)) || (pTime < parseInt(vCounter_0_1 - 5)) ) {                                                if (pTime <= duration_0_1-2) {                                                   scrubbing_0_1=1;                                                   setTimeout(resetSeek_0_1(0, player_0_1_0), 2000);                                                }                                            }                                        }                                    }                                    playing_0_1 = 0;                                    clearInterval(cInterval_0_1_0);                                     stopQuartileYoutubeTracking_0_1();                                    break;                                case 3:                                     \/* Buffering*\/                                    break;                                case 4:                                     \/* Video Cued*\/                                    break;                                case 0:                                     play_done_0_1_0=1;                                    playing_0_1 = 0;                                    cvLog_0_1('stop_youtube_auto', Math.floor(player_0_1_0.getCurrentTime()), event, 'youtube');                                    clearInterval(cInterval_0_1_0);                                     stopQuartileYoutubeTracking_0_1();                                                                        break;                            }                            if(Math.round(player_0_1_0.getCurrentTime() > 0))statLogged_0_1 = 1;                                                                                 }                                }                            }                        });                        }                    },10);                    }          if(vidEle == null &amp;&amp; youtubeEle == null) {            var elem = {};            playerArray_0_1[0] = elem;            recipeArray_0_1.push(elem);          }          if(vidEle != null) {            var pagiHeight = $(&quot;#pagiBar_0_1&quot;).css('height');            var paginationSize = &quot;Medium&quot;;              var paginationIntSize = 0;            if(paginationDisplay_0_1 == 'Always' &amp;&amp; &quot;Bottom&quot; == 'Bottom'){              if(paginationSize==&quot;Small&quot;){                paginationIntSize=25;              }else if(paginationSize==&quot;Medium&quot;){                paginationIntSize=35;              }else{                paginationIntSize=50;              }                          }            var showPlayButtonOverlay = 1;                        appSettingsInfoArr_0_1[0].autoplayDelay = 0*1000;                            if(!showPlayButtonOverlay) {                $('#layer-0-1 .mejs__overlay-play').off(&quot;click&quot;);                var videoClickArea =  document.createElement('div');                var chromelessCheck = 0;                if(!chromelessCheck || chromelessCheck &amp;&amp; isiOS) {                  $(videoClickArea).css('width', $('#layer-0-1 .mejs__overlay-play').width());                  $(videoClickArea).css('height', $('#layer-0-1 .mejs__overlay-play').height());                } else{                  $(videoClickArea).css('width', '300px');                  $(videoClickArea).css('height', '250px');                }                $(videoClickArea).css('position','absolute');                $(videoClickArea).css('z-index','50');                $('#layer-0-1').prepend(videoClickArea);              }            if(&quot;Bottom&quot; == 'Bottom') {              var setHeight = parseInt('250px') - parseInt(pagiHeight);            } else{              var setHeight = parseInt('250px');            }            var words = {&quot;chromeLess&quot;:0,&quot;logo&quot;:0,&quot;videoInfo&quot;:0,&quot;theme&quot;:&quot;dark&quot;,&quot;progressBar&quot;:&quot;red&quot;,&quot;autoplay&quot;:0,&quot;loop&quot;:0,&quot;startTime&quot;:0,&quot;endTime&quot;:0,&quot;related&quot;:0,&quot;autoHidecontrols&quot;:0,&quot;valid&quot;:true,&quot;event&quot;:&quot;&quot;,&quot;action&quot;:&quot;&quot;,&quot;pixelURL&quot;:&quot;&quot;,&quot;showReplayButton&quot;:0,&quot;clickthrough&quot;:1,&quot;enableMutingControls&quot;:0,&quot;mutingControlsPosition&quot;:&quot;Bottom Right&quot;,&quot;autoHideMutingControls&quot;:0,&quot;iconColor&quot;:&quot;light&quot;,&quot;showPlayButtonOverlay&quot;:1,&quot;returnToStart&quot;:0,&quot;startOnReturn&quot;:0,&quot;changeScreenSetting&quot;:&quot;Resume Playback&quot;,&quot;enablePlayerControls&quot;:0,&quot;playerControlsPosition&quot;:&quot;Bottom Left&quot;,&quot;autoHidePlayerControls&quot;:0,&quot;playerIconColor&quot;:&quot;light&quot;,&quot;restartPlayback&quot;:0,&quot;autoplayDelay&quot;:0,&quot;nativeWidth&quot;:&quot;&quot;,&quot;nativeHeight&quot;:&quot;&quot;,&quot;source&quot;:&quot;&quot;,&quot;autoHideYtcontrols&quot;:2,&quot;controlSettings&quot;:&quot;Always Visible&quot;,&quot;displayVidInfo&quot;:0,&quot;showYoutubeLogo&quot;:0};            var obj = {};            $.each(words, function(key, value) {                obj[key] = value;            });            obj['videoName'] = 'SpiritLakeCasino_5949755_300x250_04012019_2.jpg';            recipeArray_0_1.push(obj);          }          if(imgEle) aniSettings_0_1.imageSettings_0 = {left:imgEle.style.left, top:imgEle.style.top, width:imgEle.style.width, height:imgEle.style.height};          if(vidEle) aniSettings_0_1.imageSettings_0 = {left:vidEle.style.left, top:vidEle.style.top, width:vidEle.style.width, height:vidEle.style.height};          aniSettings_0_1.slideSettings_0 = {left:slideEle.style.left, top:slideEle.style.top};                                               url_cap_Array_0_1[0] = {src: &quot;257\/925380e1-6838-424e-b9d5-4d5d452ef13e&quot;, url:&quot;&quot;, logLabel:&quot;&quot;, imageName:&quot;SpiritLakeCasino_5949755_300x250_04012019_2.jpg&quot;, caption:&quot;&quot;, uuid:&quot;4d062a64-407b-40a3-a199-5f82d6635dc1&quot;, logged:&quot;false&quot;, openURLIn:&quot;New Tab&quot;};                    if(element){              height = element.clientHeight;              area =  appHeight - paginationIntSize;            if(captionPosition == &quot;Top&quot;){              if(paginationPosition == &quot;Bottom&quot;){                element.style.top = 0;              }else{                element.style.top = paginationIntSize+'px';              }            }else if (captionPosition == &quot;Middle&quot;){              captionTop = (area - height)\/2;              if(paginationPosition == &quot;Top&quot;) captionTop += paginationIntSize;              element.style.top = captionTop+'px';            }else{              if(paginationPosition == &quot;Bottom&quot;){                element.style.top = (area-height)+'px';              }else{              &#9;captionTop = parseInt(appHeight-height);              &#9;captionTop -= parseInt(&quot;12px&quot;);              &#9;if(paginationPosition == &quot;Top&quot;) captionTop -= paginationIntSize;                element.style.top = captionTop+'px';              }            }          }                                        if(0 != 0) slideEle.style.display = &quot;none&quot;;                  var player_element_0_1_1;          element = document.getElementById(&quot;captionTextArea_0_1_1&quot;);          imgEle = document.getElementById(&quot;img_0_1_1&quot;);          vidEle = document.getElementById(&quot;customplayer-0-1-1&quot;);          youtubeEle = document.getElementById(&quot;player_0_1_1&quot;);          slideEle = document.getElementById(&quot;slide_0_1_1&quot;);          var autoHidecontrols = 0;            var control = true;            if(autoHidecontrols == 1) control = false;            var startTime_0_1_1 = &quot;&quot;;                          startTime_0_1_1 = 0;                        var endTime_0_1_1 = 0;            var theme = 'dark';            var showReplay = 0;            var returnToStart = 0 == 1 ? true:false;                                if(youtubeEle != null) {                  if (parent.window.preventSpecialFormat) {                   var youtubeAutocheck_0_1_1 = 0;             } else {                 var youtubeAutocheck_0_1_1 = 0;            }            var htmlMode = 0;                    if(navigator.userAgent.toLowerCase().indexOf('firefox') > -1)                    {                        htmlMode = 1;                    }                    var youtubeAutoUnmuted_0_1_1=0;                    var playing_0_1_1=0;                    var player_0_1_1;                    var play_done_0_1_1=0;                    var cInterval_0_1_1;                    var duration_0_1_1;            var youtubeAutoplayDelay_0_1_1 = 0;                        var youtubeVid_0_1_1 = '';                    youtubeVid_0_1_1 = youtubeVid_0_1_1.replace(&quot;http:\/\/www.youtube.com\/watch?v=&quot;, &quot;&quot;);            youtubeVid_0_1_1 = youtubeVid_0_1_1.replace(&quot;https:\/\/www.youtube.com\/watch?v=&quot;, &quot;&quot;);            youtubeVid_0_1_1 = youtubeVid_0_1_1.replace(&quot;http:\/\/youtu.be\/&quot;, &quot;&quot;);            youtubeVid_0_1_1 = youtubeVid_0_1_1.replace(&quot;https:\/\/youtu.be\/&quot;, &quot;&quot;);            var words = {&quot;chromeLess&quot;:0,&quot;logo&quot;:0,&quot;videoInfo&quot;:0,&quot;theme&quot;:&quot;dark&quot;,&quot;progressBar&quot;:&quot;red&quot;,&quot;autoplay&quot;:0,&quot;loop&quot;:0,&quot;startTime&quot;:0,&quot;endTime&quot;:0,&quot;related&quot;:0,&quot;autoHidecontrols&quot;:0,&quot;valid&quot;:true,&quot;event&quot;:&quot;&quot;,&quot;action&quot;:&quot;&quot;,&quot;pixelURL&quot;:&quot;&quot;,&quot;showReplayButton&quot;:0,&quot;clickthrough&quot;:0,&quot;enableMutingControls&quot;:0,&quot;mutingControlsPosition&quot;:&quot;Bottom Right&quot;,&quot;autoHideMutingControls&quot;:0,&quot;iconColor&quot;:&quot;light&quot;,&quot;showPlayButtonOverlay&quot;:1,&quot;returnToStart&quot;:0,&quot;startOnReturn&quot;:0,&quot;changeScreenSetting&quot;:&quot;Resume Playback&quot;,&quot;enablePlayerControls&quot;:0,&quot;playerControlsPosition&quot;:&quot;Bottom Left&quot;,&quot;autoHidePlayerControls&quot;:0,&quot;playerIconColor&quot;:&quot;light&quot;,&quot;videoWidth&quot;:0,&quot;videoHeight&quot;:0,&quot;restartPlayback&quot;:0,&quot;autoplayDelay&quot;:0,&quot;showYoutubeLogo&quot;:0,&quot;displayVidInfo&quot;:0,&quot;autoHideYtcontrols&quot;:2,&quot;controlSettings&quot;:&quot;Always Visible&quot;};              var obj = {};              $.each(words, function(key, value) {                  obj[key] = value;              });            obj['videoId'] = '';                        obj['slideshowAssetType'] = 'Uploaded Asset';            recipeArray_0_1.push(obj);            var pagiHeight = $(&quot;#pagiBar_0_1&quot;).css('height');            var ytChromeless_0_1_1 = 0 == 0 ? '1':'0';            var pagiHeightAdj;            var pagiPadding;            if(paginationPosition == 'Top') {                pagiHeightAdj = parseInt(pagiHeight);                pagiPadding = parseInt(pagiHeight);            } else if(paginationPosition == 'Bottom') {                pagiHeightAdj = parseInt(pagiHeight);                pagiPadding = 0;            }            if(paginationDisplay_0_1 != 'Always') {                pagiHeightAdj = 0;                pagiPadding = 0;            }                      var ytStartPlayer_0_1_1 = setInterval(function() {                        if(youTubeIframeAPIReady) {                          clearInterval(ytStartPlayer_0_1_1);                           player_0_1_1 = new YT.Player('player_0_1_1', {                            height: 250-pagiHeightAdj,                            width: 300,                            videoId: youtubeVid_0_1_1,                            playerVars: {                                'autoplay':youtubeAutocheck_0_1_1,                                'playsinline': 1,                                'showinfo': '0',                                'rel': '0',                                'modestbranding': '0',                                'color': 'red',                                'theme': 'dark',                                'controls': ytChromeless_0_1_1,                                'start': 0,                                                                'autohide':0,                                'iv_load_policy':3,                                'html5': htmlMode                            },                            events: {                                'onReady':  function(event) {                                   if(player_0_1_1 &amp;&amp; typeof player_0_1_1.getPlayerState == 'function'){                                       if(1 != '0') {                                          player_0_1_1.pauseVideo();                                       }                              player_ready_0_1_1 = true;                              playerArray_0_1[1] = player_0_1_1;                                $(&quot;#youtubeWrapper_0_1_1&quot;).css('padding-top', pagiPadding);                              if (youtubeAutocheck_0_1_1) {                                if(!0){                                  if(!isIE())event.target.setVolume(0);                                     event.target.mute();                                                                        var ytCheck_0_1_1 = setInterval(function(){ ytChecker_0_1_1() }, 10);                                    function ytChecker_0_1_1(){                                        if (event.target.getPlayerState() === 1){                                           player_0_1_1.mute();                                           clearInterval(ytCheck_0_1_1);                                           setTimeout(function(){                                               player_0_1_1.mute();                                               if(!isIE())event.target.setVolume(0);                                             }, 100);                                        }else {}                                    }                                 }                                  if(!youtubeAutocheck_0_1_1){                                    if(youtubeAutoplayDelay_0_1_1 > 0){                                      setTimeout(function(){                                        player_0_1_1.playVideo();                                      },youtubeAutoplayDelay_0_1_1);                                    }                                }                              }                              muted_0_1_1=player_0_1_1.isMuted();                               duration_0_1_1 = player_0_1_1.getDuration()-1;                               vurl_0_1_1 = player_0_1_1.getVideoUrl();                          }                                },                                'onStateChange': function(event) {                                                                    if(typeof player_0_1_1.getCurrentTime == 'function'){                            switch(event.data) {                                case -1:                                     playing_0_1_1 = 0;                                    break;                                case 1:                                     playing_0_1_1 = 1;                                    play_started_0_1_1 = 1;                                    var isAndroid = (navigator.userAgent.toLowerCase().indexOf(&quot;android&quot;) > -1);                                    var isiOS = (navigator.userAgent.match(\/iPad|iPhone|iPod\/g) ? true : false);                                    if(isiOS || isAndroid) autocheck_0_1 = false;                                    if (!statLogged_0_1 &amp;&amp; youtubeAutocheck_0_1_1) {                                         cvLog_0_1('play_youtube_auto', Math.floor(player_0_1_1.getCurrentTime()), event, 'youtube');                                        logTPTracking_0_1('AutoPlay');                                        statLogged_0_1= 1;                                    } else {                                        if (play_done_0_1_1) {                                            play_done_0_1_1=0;                                                                                              cvLog_0_1('replay_youtube_click', Math.floor(player_0_1_1.getCurrentTime()), event, 'youtube');                                                                                        vCounter_0_1_1=0;                                        } else {                                            cvLog_0_1('play_youtube_click', Math.floor(player_0_1_1.getCurrentTime()), event, 'youtube');                                            logTPTracking_0_1('Play');                                            player_0_1_1.unMute();                                            autoUnmuted_0_1=1;                                            skipIt_0_1=1;                                            statLogged_0_1 = 1                                        }                            }                                    cInterval_0_1_1 = setInterval(function() {volCheck_0_1('youtube'), 1000});                                     startQuartileYoutubeTracking_0_1(duration_0_1_1);                                    break;                                case 2:                                     if ((Math.floor(player_0_1_1.getCurrentTime()) != duration_0_1) &amp;&amp; ( playing_0_1_1)){                                        cvLog_0_1('pause_youtube_click', Math.floor(player_0_1_1.getCurrentTime()), event, 'youtube');                                        logTPTracking_0_1('Pause');                                    } else {                                         var pTime = Math.floor(player_0_1_1.getCurrentTime());                                        if (!scrubbing_0_1) {                                            if ( (pTime > parseInt(vCounter_0_1 + 5)) || (pTime < parseInt(vCounter_0_1 - 5)) ) {                                                if (pTime <= duration_0_1-2) {                                                   scrubbing_0_1=1;                                                   setTimeout(resetSeek_0_1(1, player_0_1_1), 2000);                                                }                                            }                                        }                                    }                                    playing_0_1 = 0;                                    clearInterval(cInterval_0_1_1);                                     stopQuartileYoutubeTracking_0_1();                                    break;                                case 3:                                     \/* Buffering*\/                                    break;                                case 4:                                     \/* Video Cued*\/                                    break;                                case 0:                                     play_done_0_1_1=1;                                    playing_0_1 = 0;                                    cvLog_0_1('stop_youtube_auto', Math.floor(player_0_1_1.getCurrentTime()), event, 'youtube');                                    clearInterval(cInterval_0_1_1);                                     stopQuartileYoutubeTracking_0_1();                                                                        break;                            }                            if(Math.round(player_0_1_1.getCurrentTime() > 0))statLogged_0_1 = 1;                                                                                 }                                }                            }                        });                        }                    },10);                    }          if(vidEle == null &amp;&amp; youtubeEle == null) {            var elem = {};            playerArray_0_1[1] = elem;            recipeArray_0_1.push(elem);          }          if(vidEle != null) {            var pagiHeight = $(&quot;#pagiBar_0_1&quot;).css('height');            var paginationSize = &quot;Medium&quot;;              var paginationIntSize = 0;            if(paginationDisplay_0_1 == 'Always' &amp;&amp; &quot;Bottom&quot; == 'Bottom'){              if(paginationSize==&quot;Small&quot;){                paginationIntSize=25;              }else if(paginationSize==&quot;Medium&quot;){                paginationIntSize=35;              }else{                paginationIntSize=50;              }                          }            var showPlayButtonOverlay = 1;                        appSettingsInfoArr_0_1[1].autoplayDelay = 0*1000;                            if(!showPlayButtonOverlay) {                $('#layer-0-1 .mejs__overlay-play').off(&quot;click&quot;);                var videoClickArea =  document.createElement('div');                var chromelessCheck = 0;                if(!chromelessCheck || chromelessCheck &amp;&amp; isiOS) {                  $(videoClickArea).css('width', $('#layer-0-1 .mejs__overlay-play').width());                  $(videoClickArea).css('height', $('#layer-0-1 .mejs__overlay-play').height());                } else{                  $(videoClickArea).css('width', '300px');                  $(videoClickArea).css('height', '250px');                }                $(videoClickArea).css('position','absolute');                $(videoClickArea).css('z-index','50');                $('#layer-0-1').prepend(videoClickArea);              }            if(&quot;Bottom&quot; == 'Bottom') {              var setHeight = parseInt('250px') - parseInt(pagiHeight);            } else{              var setHeight = parseInt('250px');            }            var words = {&quot;chromeLess&quot;:0,&quot;logo&quot;:0,&quot;videoInfo&quot;:0,&quot;theme&quot;:&quot;dark&quot;,&quot;progressBar&quot;:&quot;red&quot;,&quot;autoplay&quot;:0,&quot;loop&quot;:0,&quot;startTime&quot;:0,&quot;endTime&quot;:0,&quot;related&quot;:0,&quot;autoHidecontrols&quot;:0,&quot;valid&quot;:true,&quot;event&quot;:&quot;&quot;,&quot;action&quot;:&quot;&quot;,&quot;pixelURL&quot;:&quot;&quot;,&quot;showReplayButton&quot;:0,&quot;clickthrough&quot;:0,&quot;enableMutingControls&quot;:0,&quot;mutingControlsPosition&quot;:&quot;Bottom Right&quot;,&quot;autoHideMutingControls&quot;:0,&quot;iconColor&quot;:&quot;light&quot;,&quot;showPlayButtonOverlay&quot;:1,&quot;returnToStart&quot;:0,&quot;startOnReturn&quot;:0,&quot;changeScreenSetting&quot;:&quot;Resume Playback&quot;,&quot;enablePlayerControls&quot;:0,&quot;playerControlsPosition&quot;:&quot;Bottom Left&quot;,&quot;autoHidePlayerControls&quot;:0,&quot;playerIconColor&quot;:&quot;light&quot;,&quot;videoWidth&quot;:0,&quot;videoHeight&quot;:0,&quot;restartPlayback&quot;:0,&quot;autoplayDelay&quot;:0,&quot;showYoutubeLogo&quot;:0,&quot;displayVidInfo&quot;:0,&quot;autoHideYtcontrols&quot;:2,&quot;controlSettings&quot;:&quot;Always Visible&quot;};            var obj = {};            $.each(words, function(key, value) {                obj[key] = value;            });            obj['videoName'] = '';            recipeArray_0_1.push(obj);          }          if(imgEle) aniSettings_0_1.imageSettings_1 = {left:imgEle.style.left, top:imgEle.style.top, width:imgEle.style.width, height:imgEle.style.height};          if(vidEle) aniSettings_0_1.imageSettings_1 = {left:vidEle.style.left, top:vidEle.style.top, width:vidEle.style.width, height:vidEle.style.height};          aniSettings_0_1.slideSettings_1 = {left:slideEle.style.left, top:slideEle.style.top};                                               url_cap_Array_0_1[1] = {src: &quot;&quot;, url:&quot;&quot;, logLabel:&quot;&quot;, imageName:&quot;&quot;, caption:&quot;&quot;, uuid:&quot;463d87c8-949e-4058-a2ff-e3af8a78c2cd&quot;, logged:&quot;false&quot;, openURLIn:&quot;New Tab&quot;};                    if(element){              height = element.clientHeight;              area =  appHeight - paginationIntSize;            if(captionPosition == &quot;Top&quot;){              if(paginationPosition == &quot;Bottom&quot;){                element.style.top = 0;              }else{                element.style.top = paginationIntSize+'px';              }            }else if (captionPosition == &quot;Middle&quot;){              captionTop = (area - height)\/2;              if(paginationPosition == &quot;Top&quot;) captionTop += paginationIntSize;              element.style.top = captionTop+'px';            }else{              if(paginationPosition == &quot;Bottom&quot;){                element.style.top = (area-height)+'px';              }else{              &#9;captionTop = parseInt(appHeight-height);              &#9;captionTop -= parseInt(&quot;12px&quot;);              &#9;if(paginationPosition == &quot;Top&quot;) captionTop -= paginationIntSize;                element.style.top = captionTop+'px';              }            }          }                                        if(1 != 0) slideEle.style.display = &quot;none&quot;;                  var player_element_0_1_2;          element = document.getElementById(&quot;captionTextArea_0_1_2&quot;);          imgEle = document.getElementById(&quot;img_0_1_2&quot;);          vidEle = document.getElementById(&quot;customplayer-0-1-2&quot;);          youtubeEle = document.getElementById(&quot;player_0_1_2&quot;);          slideEle = document.getElementById(&quot;slide_0_1_2&quot;);          var autoHidecontrols = 0;            var control = true;            if(autoHidecontrols == 1) control = false;            var startTime_0_1_2 = &quot;&quot;;                          startTime_0_1_2 = 0;                        var endTime_0_1_2 = 0;            var theme = 'dark';            var showReplay = 0;            var returnToStart = 0 == 1 ? true:false;                                if(youtubeEle != null) {                  if (parent.window.preventSpecialFormat) {                   var youtubeAutocheck_0_1_2 = 0;             } else {                 var youtubeAutocheck_0_1_2 = 0;            }            var htmlMode = 0;                    if(navigator.userAgent.toLowerCase().indexOf('firefox') > -1)                    {                        htmlMode = 1;                    }                    var youtubeAutoUnmuted_0_1_2=0;                    var playing_0_1_2=0;                    var player_0_1_2;                    var play_done_0_1_2=0;                    var cInterval_0_1_2;                    var duration_0_1_2;            var youtubeAutoplayDelay_0_1_2 = 0;                        var youtubeVid_0_1_2 = '';                    youtubeVid_0_1_2 = youtubeVid_0_1_2.replace(&quot;http:\/\/www.youtube.com\/watch?v=&quot;, &quot;&quot;);            youtubeVid_0_1_2 = youtubeVid_0_1_2.replace(&quot;https:\/\/www.youtube.com\/watch?v=&quot;, &quot;&quot;);            youtubeVid_0_1_2 = youtubeVid_0_1_2.replace(&quot;http:\/\/youtu.be\/&quot;, &quot;&quot;);            youtubeVid_0_1_2 = youtubeVid_0_1_2.replace(&quot;https:\/\/youtu.be\/&quot;, &quot;&quot;);            var words = {&quot;chromeLess&quot;:0,&quot;logo&quot;:0,&quot;videoInfo&quot;:0,&quot;theme&quot;:&quot;dark&quot;,&quot;progressBar&quot;:&quot;red&quot;,&quot;autoplay&quot;:0,&quot;loop&quot;:0,&quot;startTime&quot;:0,&quot;endTime&quot;:0,&quot;related&quot;:0,&quot;autoHidecontrols&quot;:0,&quot;valid&quot;:true,&quot;event&quot;:&quot;&quot;,&quot;action&quot;:&quot;&quot;,&quot;pixelURL&quot;:&quot;&quot;,&quot;showReplayButton&quot;:0,&quot;clickthrough&quot;:0,&quot;enableMutingControls&quot;:0,&quot;mutingControlsPosition&quot;:&quot;Bottom Right&quot;,&quot;autoHideMutingControls&quot;:0,&quot;iconColor&quot;:&quot;light&quot;,&quot;showPlayButtonOverlay&quot;:1,&quot;returnToStart&quot;:0,&quot;startOnReturn&quot;:0,&quot;changeScreenSetting&quot;:&quot;Resume Playback&quot;,&quot;enablePlayerControls&quot;:0,&quot;playerControlsPosition&quot;:&quot;Bottom Left&quot;,&quot;autoHidePlayerControls&quot;:0,&quot;playerIconColor&quot;:&quot;light&quot;,&quot;videoWidth&quot;:0,&quot;videoHeight&quot;:0,&quot;restartPlayback&quot;:0,&quot;autoplayDelay&quot;:0,&quot;showYoutubeLogo&quot;:0,&quot;displayVidInfo&quot;:0,&quot;autoHideYtcontrols&quot;:2,&quot;controlSettings&quot;:&quot;Always Visible&quot;};              var obj = {};              $.each(words, function(key, value) {                  obj[key] = value;              });            obj['videoId'] = '';                        obj['slideshowAssetType'] = 'Uploaded Asset';            recipeArray_0_1.push(obj);            var pagiHeight = $(&quot;#pagiBar_0_1&quot;).css('height');            var ytChromeless_0_1_2 = 0 == 0 ? '1':'0';            var pagiHeightAdj;            var pagiPadding;            if(paginationPosition == 'Top') {                pagiHeightAdj = parseInt(pagiHeight);                pagiPadding = parseInt(pagiHeight);            } else if(paginationPosition == 'Bottom') {                pagiHeightAdj = parseInt(pagiHeight);                pagiPadding = 0;            }            if(paginationDisplay_0_1 != 'Always') {                pagiHeightAdj = 0;                pagiPadding = 0;            }                      var ytStartPlayer_0_1_2 = setInterval(function() {                        if(youTubeIframeAPIReady) {                          clearInterval(ytStartPlayer_0_1_2);                           player_0_1_2 = new YT.Player('player_0_1_2', {                            height: 250-pagiHeightAdj,                            width: 300,                            videoId: youtubeVid_0_1_2,                            playerVars: {                                'autoplay':youtubeAutocheck_0_1_2,                                'playsinline': 1,                                'showinfo': '0',                                'rel': '0',                                'modestbranding': '0',                                'color': 'red',                                'theme': 'dark',                                'controls': ytChromeless_0_1_2,                                'start': 0,                                                                'autohide':0,                                'iv_load_policy':3,                                'html5': htmlMode                            },                            events: {                                'onReady':  function(event) {                                   if(player_0_1_2 &amp;&amp; typeof player_0_1_2.getPlayerState == 'function'){                                       if(2 != '0') {                                          player_0_1_2.pauseVideo();                                       }                              player_ready_0_1_2 = true;                              playerArray_0_1[2] = player_0_1_2;                                $(&quot;#youtubeWrapper_0_1_2&quot;).css('padding-top', pagiPadding);                              if (youtubeAutocheck_0_1_2) {                                if(!0){                                  if(!isIE())event.target.setVolume(0);                                     event.target.mute();                                                                        var ytCheck_0_1_2 = setInterval(function(){ ytChecker_0_1_2() }, 10);                                    function ytChecker_0_1_2(){                                        if (event.target.getPlayerState() === 1){                                           player_0_1_2.mute();                                           clearInterval(ytCheck_0_1_2);                                           setTimeout(function(){                                               player_0_1_2.mute();                                               if(!isIE())event.target.setVolume(0);                                             }, 100);                                        }else {}                                    }                                 }                                  if(!youtubeAutocheck_0_1_2){                                    if(youtubeAutoplayDelay_0_1_2 > 0){                                      setTimeout(function(){                                        player_0_1_2.playVideo();                                      },youtubeAutoplayDelay_0_1_2);                                    }                                }                              }                              muted_0_1_2=player_0_1_2.isMuted();                               duration_0_1_2 = player_0_1_2.getDuration()-1;                               vurl_0_1_2 = player_0_1_2.getVideoUrl();                          }                                },                                'onStateChange': function(event) {                                                                    if(typeof player_0_1_2.getCurrentTime == 'function'){                            switch(event.data) {                                case -1:                                     playing_0_1_2 = 0;                                    break;                                case 1:                                     playing_0_1_2 = 1;                                    play_started_0_1_2 = 1;                                    var isAndroid = (navigator.userAgent.toLowerCase().indexOf(&quot;android&quot;) > -1);                                    var isiOS = (navigator.userAgent.match(\/iPad|iPhone|iPod\/g) ? true : false);                                    if(isiOS || isAndroid) autocheck_0_1 = false;                                    if (!statLogged_0_1 &amp;&amp; youtubeAutocheck_0_1_2) {                                         cvLog_0_1('play_youtube_auto', Math.floor(player_0_1_2.getCurrentTime()), event, 'youtube');                                        logTPTracking_0_1('AutoPlay');                                        statLogged_0_1= 1;                                    } else {                                        if (play_done_0_1_2) {                                            play_done_0_1_2=0;                                                                                              cvLog_0_1('replay_youtube_click', Math.floor(player_0_1_2.getCurrentTime()), event, 'youtube');                                                                                        vCounter_0_1_2=0;                                        } else {                                            cvLog_0_1('play_youtube_click', Math.floor(player_0_1_2.getCurrentTime()), event, 'youtube');                                            logTPTracking_0_1('Play');                                            player_0_1_2.unMute();                                            autoUnmuted_0_1=1;                                            skipIt_0_1=1;                                            statLogged_0_1 = 1                                        }                            }                                    cInterval_0_1_2 = setInterval(function() {volCheck_0_1('youtube'), 1000});                                     startQuartileYoutubeTracking_0_1(duration_0_1_2);                                    break;                                case 2:                                     if ((Math.floor(player_0_1_2.getCurrentTime()) != duration_0_1) &amp;&amp; ( playing_0_1_2)){                                        cvLog_0_1('pause_youtube_click', Math.floor(player_0_1_2.getCurrentTime()), event, 'youtube');                                        logTPTracking_0_1('Pause');                                    } else {                                         var pTime = Math.floor(player_0_1_2.getCurrentTime());                                        if (!scrubbing_0_1) {                                            if ( (pTime > parseInt(vCounter_0_1 + 5)) || (pTime < parseInt(vCounter_0_1 - 5)) ) {                                                if (pTime <= duration_0_1-2) {                                                   scrubbing_0_1=1;                                                   setTimeout(resetSeek_0_1(2, player_0_1_2), 2000);                                                }                                            }                                        }                                    }                                    playing_0_1 = 0;                                    clearInterval(cInterval_0_1_2);                                     stopQuartileYoutubeTracking_0_1();                                    break;                                case 3:                                     \/* Buffering*\/                                    break;                                case 4:                                     \/* Video Cued*\/                                    break;                                case 0:                                     play_done_0_1_2=1;                                    playing_0_1 = 0;                                    cvLog_0_1('stop_youtube_auto', Math.floor(player_0_1_2.getCurrentTime()), event, 'youtube');                                    clearInterval(cInterval_0_1_2);                                     stopQuartileYoutubeTracking_0_1();                                                                        break;                            }                            if(Math.round(player_0_1_2.getCurrentTime() > 0))statLogged_0_1 = 1;                                                                                 }                                }                            }                        });                        }                    },10);                    }          if(vidEle == null &amp;&amp; youtubeEle == null) {            var elem = {};            playerArray_0_1[2] = elem;            recipeArray_0_1.push(elem);          }          if(vidEle != null) {            var pagiHeight = $(&quot;#pagiBar_0_1&quot;).css('height');            var paginationSize = &quot;Medium&quot;;              var paginationIntSize = 0;            if(paginationDisplay_0_1 == 'Always' &amp;&amp; &quot;Bottom&quot; == 'Bottom'){              if(paginationSize==&quot;Small&quot;){                paginationIntSize=25;              }else if(paginationSize==&quot;Medium&quot;){                paginationIntSize=35;              }else{                paginationIntSize=50;              }                          }            var showPlayButtonOverlay = 1;                        appSettingsInfoArr_0_1[2].autoplayDelay = 0*1000;                            if(!showPlayButtonOverlay) {                $('#layer-0-1 .mejs__overlay-play').off(&quot;click&quot;);                var videoClickArea =  document.createElement('div');                var chromelessCheck = 0;                if(!chromelessCheck || chromelessCheck &amp;&amp; isiOS) {                  $(videoClickArea).css('width', $('#layer-0-1 .mejs__overlay-play').width());                  $(videoClickArea).css('height', $('#layer-0-1 .mejs__overlay-play').height());                } else{                  $(videoClickArea).css('width', '300px');                  $(videoClickArea).css('height', '250px');                }                $(videoClickArea).css('position','absolute');                $(videoClickArea).css('z-index','50');                $('#layer-0-1').prepend(videoClickArea);              }            if(&quot;Bottom&quot; == 'Bottom') {              var setHeight = parseInt('250px') - parseInt(pagiHeight);            } else{              var setHeight = parseInt('250px');            }            var words = {&quot;chromeLess&quot;:0,&quot;logo&quot;:0,&quot;videoInfo&quot;:0,&quot;theme&quot;:&quot;dark&quot;,&quot;progressBar&quot;:&quot;red&quot;,&quot;autoplay&quot;:0,&quot;loop&quot;:0,&quot;startTime&quot;:0,&quot;endTime&quot;:0,&quot;related&quot;:0,&quot;autoHidecontrols&quot;:0,&quot;valid&quot;:true,&quot;event&quot;:&quot;&quot;,&quot;action&quot;:&quot;&quot;,&quot;pixelURL&quot;:&quot;&quot;,&quot;showReplayButton&quot;:0,&quot;clickthrough&quot;:0,&quot;enableMutingControls&quot;:0,&quot;mutingControlsPosition&quot;:&quot;Bottom Right&quot;,&quot;autoHideMutingControls&quot;:0,&quot;iconColor&quot;:&quot;light&quot;,&quot;showPlayButtonOverlay&quot;:1,&quot;returnToStart&quot;:0,&quot;startOnReturn&quot;:0,&quot;changeScreenSetting&quot;:&quot;Resume Playback&quot;,&quot;enablePlayerControls&quot;:0,&quot;playerControlsPosition&quot;:&quot;Bottom Left&quot;,&quot;autoHidePlayerControls&quot;:0,&quot;playerIconColor&quot;:&quot;light&quot;,&quot;videoWidth&quot;:0,&quot;videoHeight&quot;:0,&quot;restartPlayback&quot;:0,&quot;autoplayDelay&quot;:0,&quot;showYoutubeLogo&quot;:0,&quot;displayVidInfo&quot;:0,&quot;autoHideYtcontrols&quot;:2,&quot;controlSettings&quot;:&quot;Always Visible&quot;};            var obj = {};            $.each(words, function(key, value) {                obj[key] = value;            });            obj['videoName'] = 'SpiritLakeCasino_5949755_300x250_04012019_3.jpg';            recipeArray_0_1.push(obj);          }          if(imgEle) aniSettings_0_1.imageSettings_2 = {left:imgEle.style.left, top:imgEle.style.top, width:imgEle.style.width, height:imgEle.style.height};          if(vidEle) aniSettings_0_1.imageSettings_2 = {left:vidEle.style.left, top:vidEle.style.top, width:vidEle.style.width, height:vidEle.style.height};          aniSettings_0_1.slideSettings_2 = {left:slideEle.style.left, top:slideEle.style.top};                                               url_cap_Array_0_1[2] = {src: &quot;257\/977caeb9-6a9e-41f4-b414-2e7f4454c141&quot;, url:&quot;&quot;, logLabel:&quot;&quot;, imageName:&quot;SpiritLakeCasino_5949755_300x250_04012019_3.jpg&quot;, caption:&quot;&quot;, uuid:&quot;c97feb11-efe6-4ce4-82c1-c490071b9b2b&quot;, logged:&quot;false&quot;, openURLIn:&quot;New Tab&quot;};                    if(element){              height = element.clientHeight;              area =  appHeight - paginationIntSize;            if(captionPosition == &quot;Top&quot;){              if(paginationPosition == &quot;Bottom&quot;){                element.style.top = 0;              }else{                element.style.top = paginationIntSize+'px';              }            }else if (captionPosition == &quot;Middle&quot;){              captionTop = (area - height)\/2;              if(paginationPosition == &quot;Top&quot;) captionTop += paginationIntSize;              element.style.top = captionTop+'px';            }else{              if(paginationPosition == &quot;Bottom&quot;){                element.style.top = (area-height)+'px';              }else{              &#9;captionTop = parseInt(appHeight-height);              &#9;captionTop -= parseInt(&quot;12px&quot;);              &#9;if(paginationPosition == &quot;Top&quot;) captionTop -= paginationIntSize;                element.style.top = captionTop+'px';              }            }          }                                        if(2 != 0) slideEle.style.display = &quot;none&quot;;                logTPTracking_0_1(&quot;SlideView&quot;);      var sldEvent = document.createEvent(&quot;CustomEvent&quot;);      slideLog_0_1(&quot;slideshow_show_auto&quot;, sldEvent, url_cap_Array_0_1[0].caption, url_cap_Array_0_1[0].imageName);    }    function fillVideoPlayer_0_1(){      if(recipeArray_0_1[currentImageIndex_0_1].slideshowAssetType != 'Youtube') {      var scale = 1;      var appW = 300;      var appH = 250;      var element = playerArray_0_1[currentImageIndex_0_1];      var orgW = recipeArray_0_1[currentImageIndex_0_1].videoWidth;      var orgH = recipeArray_0_1[currentImageIndex_0_1].videoHeight;      var paginationSize = &quot;Medium&quot;;      var paginationIntSize = 0;      if(paginationDisplay_0_1 == 'Always' &amp;&amp; &quot;Bottom&quot; == 'Bottom'){        if(paginationSize==&quot;Small&quot;){          paginationIntSize=25;        }else if(paginationSize==&quot;Medium&quot;){          paginationIntSize=35;        }else{          paginationIntSize=50;        }              }      $(document.getElementById(&quot;slide_0_1_&quot;+currentImageIndex_0_1)).find('.mejs__container:not(&quot;.slideElementVideo&quot;)').css('width',appW+&quot;px&quot;);      $(document.getElementById(&quot;slide_0_1_&quot;+currentImageIndex_0_1)).find('.mejs__container:not(&quot;.slideElementVideo&quot;)').css('height',appH-paginationIntSize+&quot;px&quot;);          }  }    function hideChromelessMute_0_1(i) {        $('#slide_0_1_' + i + ' #chromeLessMute-0_1_'+currentImageIndex_0_1).css('display','none');    }    function showChromelessMute_0_1(i) {        $('#slide_0_1_' + i + ' #chromeLessMute-0_1_'+currentImageIndex_0_1).css('display','block');    }    function hideChromelessPlay_0_1(i) {        $('#slide_0_1_' + i + ' #chromeLessPlayerControls-0-1_'+currentImageIndex_0_1).css('display','none');    }    function showChromelessPlay_0_1(i) {        $('#slide_0_1_' + i + ' #chromeLessPlayerControls-0-1_'+currentImageIndex_0_1).css('display','block');    }    function toggleChromelessMute_0_1(isAutoUnmute){      var muteEle = $('#chromeLessMute-0_1_'+currentImageIndex_0_1);      var iconColor = recipeArray_0_1[currentImageIndex_0_1].iconColor;        if(muteEle){          if(playerArray_0_1[currentImageIndex_0_1].muted || isAutoUnmute){            muteEle.removeClass(iconColor+'Mute');            muteEle.addClass(iconColor+'UnMute');            $('#chromelessMuteSvg_0-1').hide();            $('#chromelessUnmuteSvg_0-1').show();        }else{          muteEle.removeClass(iconColor+'UnMute');          muteEle.addClass(iconColor+'Mute');          $('#chromelessUnmuteSvg_0-1').hide();          $('#chromelessMuteSvg_0-1').show();        }      }    }    function toggleChromelessPlay_0_1(isAutoPlay){      var playEle = $('#chromeLessPlayerControls-0-1_'+currentImageIndex_0_1);    var iconColor = recipeArray_0_1[currentImageIndex_0_1].iconColor;      if(playEle){        if(playingArray_0_1[currentImageIndex_0_1] || isAutoPlay){        playEle.removeClass(iconColor+'Play');        playEle.addClass(iconColor+'Pause');                $('#chromelessPauseSvg_0-1').show();                $('#chromelessPlaySvg_0-1').hide();      }else{        playEle.removeClass(iconColor+'Pause');        playEle.addClass(iconColor+'Play');                $('#chromelessPlaySvg_0-1').show();                $('#chromelessPauseSvg_0-1').hide();      }    }    }    function volCheck_0_1(type){      if(type == 'customvideo') {        \/*var ytEvent = new CustomEvent(&quot;CustomVideoClick&quot;, {});*\/        var mediaElement = playerArray_0_1[currentImageIndex_0_1];      var ytEvent = document.createEvent(&quot;CustomEvent&quot;);      var pMuted = mediaElement.muted;          var vol = mediaElement.volume;      if(!dontLogVolChange_0_1){         if (muted_0_1 !== pMuted) {           muted_0_1 = pMuted;           if (Math.floor(mediaElement.currentTime) > 1) {                      if (pMuted) {                          cvLog_0_1('mute_video_click', Math.floor(mediaElement.currentTime), ytEvent);                          logTPTracking_0_1('Mute');                      } else {                          cvLog_0_1('unmute_video_click', Math.floor(mediaElement.currentTime), ytEvent);                          logTPTracking_0_1('Unmute');                          unmuteHappenedArr_0_1[currentImageIndex_0_1]=true;                      }                  }         }else{           if (!pMuted) {                      if (vol_0_1 !== vol) {                        unmuteHappenedArr_0_1[currentImageIndex_0_1]=true;                          if (vol_0_1 > vol) {                              cvLog_0_1('voldown_video_click', Math.floor(mediaElement.currentTime), ytEvent);                          } else {                              cvLog_0_1('volup_video_click', Math.floor(mediaElement.currentTime), ytEvent);                          }                      }                  }         }         doRestartPlayback_0_1();      }      else{        muted_0_1 = pMuted;      }      vol_0_1 = vol;      dontLogVolChange_0_1 = 0;    } else if(type == 'youtube'){             var youtubeElement = playerArray_0_1[currentImageIndex_0_1];          var ytEvent = document.createEvent(&quot;CustomEvent&quot;);          ytEvent.initCustomEvent('YouTubeClick', false, false, {});          var pMuted = youtubeElement.isMuted();          var vol = youtubeElement.getVolume();          vCounter_0_1++;                    if (!skipIt_0_1) {              if (muted_0_1 !== pMuted) {                  muted_0_1 = pMuted;                  if (Math.floor(youtubeElement.getCurrentTime()) > 1) {                      if (pMuted) {                          cvLog_0_1('mute_youtube_click', Math.floor(youtubeElement.getCurrentTime()), ytEvent);                          logTPTracking_0_1('Mute');                      } else {                          cvLog_0_1('unmute_youtube_click', Math.floor(youtubeElement.getCurrentTime()), ytEvent);                          logTPTracking_0_1('Unmute');                          unmuteHappened_0_1 = true;                      }                  }              } else {                  if (!pMuted) {                      if (vol_0_1 !== Math.floor(vol)) {                        unmuteHappened_0_1 = true;                          if (vol_0_1 > Math.floor(vol)) {                              if (Math.floor(youtubeElement.getCurrentTime())) {                                  cvLog_0_1('voldown_youtube_click', Math.floor(youtubeElement.getCurrentTime()), ytEvent);                              }                          } else {                              if (Math.floor(youtubeElement.getCurrentTime())) {                                  cvLog_0_1('volup_youtube_click', Math.floor(youtubeElement.getCurrentTime()), ytEvent);                              }                          }                      }                  }              }              doRestartPlayback_0_1();          } else {              muted_0_1 = pMuted;          }          vol_0_1 = Math.floor(vol);          skipIt_0_1=0;          if (vCounter_0_1 >= duration_0_1) {               clearInterval(cInterval_0_1);          }    }    }    function doRestartPlayback_0_1(){        if(!appSettingsInfoArr_0_1[currentImageIndex_0_1].autoPlayWithSound &amp;&amp; appSettingsInfoArr_0_1[currentImageIndex_0_1].restartPlayback &amp;&amp; !restartPlaybackDoneArr_0_1[currentImageIndex_0_1] &amp;&amp; unmuteHappenedArr_0_1[currentImageIndex_0_1]){            restartPlaybackDoneArr_0_1[currentImageIndex_0_1] = true;            dontLogSeek_0_1 = 1;            playerArray_0_1[currentImageIndex_0_1].setCurrentTime(0);        }    }    function toggleReplay_0_1(showReplay, theme, toggle) {      var cssclass = 'bigreplay';      if(showReplay){        if(toggle == 'add'){          $('.mejs__overlay-button').addClass(cssclass);        }else{          $('.mejs__overlay-button').removeClass(cssclass);        }      }    }    function hideControls_0_1(i) {      $('#slide_0_1_' + i + ' .mejs__controls').css('display','none');    }    function showControls_0_1(i) {        $('#slide_0_1_' + i + ' .mejs__controls').css('display','');    }        function cvLog_0_1(stat_log, time, event, type) {      setTimeout(function(){      var videoassetuuid_0_1 = url_cap_Array_0_1[currentImageIndex_0_1].src.split(&quot;\/&quot;);      var duration;            duration = playerArray_0_1[currentImageIndex_0_1].duration;      if ((stat_log == &quot;stop_video_auto&quot;) &amp;&amp; (time==0)) {          time = parseInt(duration);      }            if (time < 0 ) {time=0;}      if (time > duration) {time = duration;}      var assets = &quot;%5B%7B%22name%22%3A%22SpiritLakeCasino_5949755_300x250_04012019_2.jpg%22%2C%22src%22%3A%22257%5C%2F925380e1-6838-424e-b9d5-4d5d452ef13e%22%2C%22clickUrl%22%3A%22%22%2C%22logName%22%3A%22%22%2C%22slideshowAssetType%22%3A%22Uploaded+Asset%22%2C%22videoId%22%3A%22%22%2C%22valid%22%3Atrue%2C%22hasCaption%22%3Afalse%2C%22hasUrl%22%3Atrue%2C%22caption%22%3A%22%22%2C%22width%22%3A%22300%22%2C%22height%22%3A%22250%22%2C%22slideIsVisible%22%3Atrue%2C%22children%22%3A%5B%5D%2C%22videoInfo%22%3A%7B%22chromeLess%22%3A0%2C%22logo%22%3A0%2C%22videoInfo%22%3A0%2C%22theme%22%3A%22dark%22%2C%22progressBar%22%3A%22red%22%2C%22autoplay%22%3A0%2C%22loop%22%3A0%2C%22startTime%22%3A0%2C%22endTime%22%3A0%2C%22related%22%3A0%2C%22autoHidecontrols%22%3A0%2C%22valid%22%3Atrue%2C%22event%22%3A%22%22%2C%22action%22%3A%22%22%2C%22pixelURL%22%3A%22%22%2C%22showReplayButton%22%3A0%2C%22clickthrough%22%3A1%2C%22enableMutingControls%22%3A0%2C%22mutingControlsPosition%22%3A%22Bottom+Right%22%2C%22autoHideMutingControls%22%3A0%2C%22iconColor%22%3A%22light%22%2C%22showPlayButtonOverlay%22%3A1%2C%22returnToStart%22%3A0%2C%22startOnReturn%22%3A0%2C%22changeScreenSetting%22%3A%22Resume+Playback%22%2C%22enablePlayerControls%22%3A0%2C%22playerControlsPosition%22%3A%22Bottom+Left%22%2C%22autoHidePlayerControls%22%3A0%2C%22playerIconColor%22%3A%22light%22%2C%22restartPlayback%22%3A0%2C%22autoplayDelay%22%3A0%2C%22nativeWidth%22%3A%22%22%2C%22nativeHeight%22%3A%22%22%2C%22source%22%3A%22%22%2C%22autoHideYtcontrols%22%3A2%2C%22controlSettings%22%3A%22Always+Visible%22%2C%22displayVidInfo%22%3A0%2C%22showYoutubeLogo%22%3A0%7D%2C%22openURLIn%22%3A%22New+Tab%22%2C%22uuid%22%3A%224d062a64-407b-40a3-a199-5f82d6635dc1%22%2C%22isVideo%22%3Afalse%2C%22thumb%22%3A%22%22%2C%22cropX%22%3A-1%2C%22cropY%22%3A-1%2C%22cropW%22%3A-1%2C%22cropH%22%3A-1%2C%22cropS%22%3A-1%2C%22cropL%22%3A-1%2C%22cropT%22%3A-1%7D%2C%7B%22name%22%3A%22%22%2C%22src%22%3A%22%22%2C%22logName%22%3A%22%22%2C%22clickUrl%22%3A%22%22%2C%22caption%22%3A%22%22%2C%22uuid%22%3A%22463d87c8-949e-4058-a2ff-e3af8a78c2cd%22%2C%22isVideo%22%3Afalse%2C%22startTime%22%3A%22%22%2C%22endTime%22%3A%22%22%2C%22videoInfo%22%3A%7B%22chromeLess%22%3A0%2C%22logo%22%3A0%2C%22videoInfo%22%3A0%2C%22theme%22%3A%22dark%22%2C%22progressBar%22%3A%22red%22%2C%22autoplay%22%3A0%2C%22loop%22%3A0%2C%22startTime%22%3A0%2C%22endTime%22%3A0%2C%22related%22%3A0%2C%22autoHidecontrols%22%3A0%2C%22valid%22%3Atrue%2C%22event%22%3A%22%22%2C%22action%22%3A%22%22%2C%22pixelURL%22%3A%22%22%2C%22showReplayButton%22%3A0%2C%22clickthrough%22%3A0%2C%22enableMutingControls%22%3A0%2C%22mutingControlsPosition%22%3A%22Bottom+Right%22%2C%22autoHideMutingControls%22%3A0%2C%22iconColor%22%3A%22light%22%2C%22showPlayButtonOverlay%22%3A1%2C%22returnToStart%22%3A0%2C%22startOnReturn%22%3A0%2C%22changeScreenSetting%22%3A%22Resume+Playback%22%2C%22enablePlayerControls%22%3A0%2C%22playerControlsPosition%22%3A%22Bottom+Left%22%2C%22autoHidePlayerControls%22%3A0%2C%22playerIconColor%22%3A%22light%22%2C%22videoWidth%22%3A0%2C%22videoHeight%22%3A0%2C%22restartPlayback%22%3A0%2C%22autoplayDelay%22%3A0%2C%22showYoutubeLogo%22%3A0%2C%22displayVidInfo%22%3A0%2C%22autoHideYtcontrols%22%3A2%2C%22controlSettings%22%3A%22Always+Visible%22%7D%2C%22children%22%3A%5B%5D%2C%22thumb%22%3A%22%22%2C%22slideIsVisible%22%3Atrue%2C%22slideshowAssetType%22%3A%22Uploaded+Asset%22%2C%22valid%22%3Atrue%2C%22videoId%22%3A%22%22%2C%22cropX%22%3A-1%2C%22cropY%22%3A-1%2C%22cropW%22%3A-1%2C%22cropH%22%3A-1%2C%22cropS%22%3A-1%2C%22cropL%22%3A-1%2C%22cropT%22%3A-1%2C%22openURLIn%22%3A%22New+Tab%22%7D%2C%7B%22name%22%3A%22SpiritLakeCasino_5949755_300x250_04012019_3.jpg%22%2C%22src%22%3A%22257%5C%2F977caeb9-6a9e-41f4-b414-2e7f4454c141%22%2C%22logName%22%3A%22%22%2C%22clickUrl%22%3A%22%22%2C%22caption%22%3A%22%22%2C%22uuid%22%3A%22c97feb11-efe6-4ce4-82c1-c490071b9b2b%22%2C%22isVideo%22%3Afalse%2C%22startTime%22%3A%22%22%2C%22endTime%22%3A%22%22%2C%22videoInfo%22%3A%7B%22chromeLess%22%3A0%2C%22logo%22%3A0%2C%22videoInfo%22%3A0%2C%22theme%22%3A%22dark%22%2C%22progressBar%22%3A%22red%22%2C%22autoplay%22%3A0%2C%22loop%22%3A0%2C%22startTime%22%3A0%2C%22endTime%22%3A0%2C%22related%22%3A0%2C%22autoHidecontrols%22%3A0%2C%22valid%22%3Atrue%2C%22event%22%3A%22%22%2C%22action%22%3A%22%22%2C%22pixelURL%22%3A%22%22%2C%22showReplayButton%22%3A0%2C%22clickthrough%22%3A0%2C%22enableMutingControls%22%3A0%2C%22mutingControlsPosition%22%3A%22Bottom+Right%22%2C%22autoHideMutingControls%22%3A0%2C%22iconColor%22%3A%22light%22%2C%22showPlayButtonOverlay%22%3A1%2C%22returnToStart%22%3A0%2C%22startOnReturn%22%3A0%2C%22changeScreenSetting%22%3A%22Resume+Playback%22%2C%22enablePlayerControls%22%3A0%2C%22playerControlsPosition%22%3A%22Bottom+Left%22%2C%22autoHidePlayerControls%22%3A0%2C%22playerIconColor%22%3A%22light%22%2C%22videoWidth%22%3A0%2C%22videoHeight%22%3A0%2C%22restartPlayback%22%3A0%2C%22autoplayDelay%22%3A0%2C%22showYoutubeLogo%22%3A0%2C%22displayVidInfo%22%3A0%2C%22autoHideYtcontrols%22%3A2%2C%22controlSettings%22%3A%22Always+Visible%22%7D%2C%22children%22%3A%5B%5D%2C%22thumb%22%3A%22%22%2C%22slideIsVisible%22%3Atrue%2C%22slideshowAssetType%22%3A%22Uploaded+Asset%22%2C%22valid%22%3Atrue%2C%22videoId%22%3A%22%22%2C%22cropX%22%3A-1%2C%22cropY%22%3A-1%2C%22cropW%22%3A-1%2C%22cropH%22%3A-1%2C%22cropS%22%3A-1%2C%22cropL%22%3A-1%2C%22cropT%22%3A-1%2C%22openURLIn%22%3A%22New+Tab%22%2C%22width%22%3A%22300%22%2C%22height%22%3A%22250%22%7D%5D&quot;;      assets = JSON.parse(decodeURIComponent(assets));      var customStartTime = parseInt(assets[currentImageIndex_0_1].startTime) > 0 ? parseInt(assets[currentImageIndex_0_1].startTime):'0';      var customEndTime = parseInt(assets[currentImageIndex_0_1].endTime) > 0 ? parseInt(assets[currentImageIndex_0_1].endTime):duration;      if(customStartTime > 0 &amp;&amp; (customEndTime == customStartTime)){          customEndTime = duration;      }      var customDuration = customEndTime - customStartTime;      time = time - customStartTime;            var video='';            var videoType='';            if(type == 'youtube') {              var vidId = assets[currentImageIndex_0_1].videoId;          vidId = vidId.replace(&quot;http:\/\/www.youtube.com\/watch?v=&quot;, &quot;&quot;);        vidId = vidId.replace(&quot;https:\/\/www.youtube.com\/watch?v=&quot;, &quot;&quot;);        vidId = vidId.replace(&quot;http:\/\/youtu.be\/&quot;, &quot;&quot;);        vidId = vidId.replace(&quot;https:\/\/youtu.be\/&quot;, &quot;&quot;);              video = 'http:\/\/www.youtube.com\/watch?v=' + vidId;              videoType = 'youtube';            } else{              video = recipeArray_0_1[currentImageIndex_0_1].videoName;              videoType = 'customvideo';            }            var ytDat_0_1 = {&quot;dest&quot;: &quot;null&quot;,&quot;duration&quot;: customDuration,&quot;time&quot;: time, &quot;assetName&quot;: recipeArray_0_1[currentImageIndex_0_1].videoName, &quot;video&quot;: video, &quot;playTime&quot;: time,&quot;player&quot;: videoType,&quot;screenIndex&quot;: activeScreen+1, assetUUID: videoassetuuid_0_1[1]};            logHtmlEvent(event, activeScreen, stat_log, ytDat_0_1);        }, 500);    }        function ytLeave_0_1() {      if (playingArray_0_1[currentImageIndex_0_1]) {        playingWhenLeft_0_1 = 1;      } else {        playingWhenLeft_0_1 = 0;      }       if (!parent.window.preventSpecialFormat) {          if(typeof playerArray_0_1[currentImageIndex_0_1].pause == 'function' || typeof playerArray_0_1[currentImageIndex_0_1].pauseVideo == 'function' ){            playerArray_0_1[currentImageIndex_0_1].pause();            if(recipeArray_0_1[currentImageIndex_0_1]) {              playerArray_0_1[currentImageIndex_0_1].pause();            }          }        }    }    function ytReturn_0_1() {        if (!parent.window.preventSpecialFormat &amp;&amp; ( (recipeArray_0_1[currentImageIndex_0_1].startOnReturn &amp;&amp; recipeArray_0_1[currentImageIndex_0_1].autoplay) || (recipeArray_0_1[currentImageIndex_0_1].startOnReturn &amp;&amp; playingWhenLeft_0_1 ) ) ) {        if (&quot;&quot; === 'From Beginning') {            player_element_0_1.currentTime = 0;        }        isReturnAutoPlay_0_1 = 1; \/* Set this flag to handle some volume change logic. *\/        dontLogVolChange_0_1 = 1;        player_element_0_1.muted=true;        playerArray_0_1[currentImageIndex_0_1].play();                $('#layer-0-1 .mejs__overlay-error').parent()[0].style.position = &quot;absolute&quot;;        $('#layer-0-1 .mejs__overlay-error').parent()[0].style.left = &quot;-99999px&quot;;                var ytEvent = document.createEvent(&quot;CustomEvent&quot;);        cvLog_0_1('resume_video_auto', Math.floor(player_element_0_1.currentTime), ytEvent);        }    }    function goToHref_0_1(evt,href) {      href = (href == undefined) ? 'http:\/\/www.spiritlakecasino.com\/' : href;      preventEventProp(evt);      var url = (url_cap_Array_0_1[currentImageIndex_0_1].url == undefined || url_cap_Array_0_1[currentImageIndex_0_1].url == '') ? href : url_cap_Array_0_1[currentImageIndex_0_1].url;      if((url.indexOf(&quot;http:\/\/&quot;) != 0) &amp;&amp; (url.indexOf(&quot;https:\/\/&quot;))) {            url = &quot;http:\/\/&quot; + url;        }        var openURL = &quot;_blank&quot;;                if(url_cap_Array_0_1[currentImageIndex_0_1].openURLIn != &quot;Same Tab&quot;) {            openURL = &quot;_blank&quot;;        } else{            openURL = &quot;_top&quot;;        }        if (url != 'http:\/\/'){            if(url_cap_Array_0_1[currentImageIndex_0_1].openURLIn != &quot;Same Tab&quot;) { \/* Open in new tab *\/                                if(0){                      window.open(&quot;https:\/\/adclick.g.doubleclick.net\/pcs\/click?xai=AKAOjst0CUzh4DGTUXNF-HAvJ95Kc26KyAobg6J5iBO8cUJU4e7QAx8vBTKnGOavuOC8NWdkEQ_qywvW3nI24ubjP2HAx5QBeCVszE2Y_axOaLRFlQBUAGyLRcS3b4yTWgh2Uskv3_t2ta7n_1SKhKd3aBNhWsf_tQHB_mvtmbOjYaLBtwkJjshtrn3W7YcQwHx62d8jSXzzOftmUgSCZ16m38MVSIqUiJPGD1-bQi01849cDQ_34yc7FP03Q8Dj5A29SQ-s8TzC7-g&amp;sai=AMfl-YRK-lcjFrnVJeDHiJY9n96yQLIeaA1RiEvAqGYVfuHnJ_Wx1EKOFUT4gkp11HPWbJ0j4Pwsp2nLKtveXnzK0mV7csNiWp6IOwJeLq4T_gv4YY9KNXrbQhgv3X0&amp;sig=Cg0ArKJSzEYYEh0jbliQEAE&amp;urlfix=1&amp;adurl=&quot; + url, openURL);                  } else {                      window.open(&quot;https:\/\/adclick.g.doubleclick.net\/pcs\/click?xai=AKAOjst0CUzh4DGTUXNF-HAvJ95Kc26KyAobg6J5iBO8cUJU4e7QAx8vBTKnGOavuOC8NWdkEQ_qywvW3nI24ubjP2HAx5QBeCVszE2Y_axOaLRFlQBUAGyLRcS3b4yTWgh2Uskv3_t2ta7n_1SKhKd3aBNhWsf_tQHB_mvtmbOjYaLBtwkJjshtrn3W7YcQwHx62d8jSXzzOftmUgSCZ16m38MVSIqUiJPGD1-bQi01849cDQ_34yc7FP03Q8Dj5A29SQ-s8TzC7-g&amp;sai=AMfl-YRK-lcjFrnVJeDHiJY9n96yQLIeaA1RiEvAqGYVfuHnJ_Wx1EKOFUT4gkp11HPWbJ0j4Pwsp2nLKtveXnzK0mV7csNiWp6IOwJeLq4T_gv4YY9KNXrbQhgv3X0&amp;sig=Cg0ArKJSzEYYEh0jbliQEAE&amp;urlfix=1&amp;adurl=&quot; + encodeURIComponent(url), openURL);                  }                          shLog_0_1(&quot;serve_clickthrough&quot;, evt, url, url_cap_Array_0_1[currentImageIndex_0_1].caption, url_cap_Array_0_1[currentImageIndex_0_1].imageName);            logTPTracking_0_1(&quot;Click&quot;);          } else { \/* Open in the same tab *\/              var clickAddress;                                  if(0){                        clickAddress = &quot;https:\/\/adclick.g.doubleclick.net\/pcs\/click?xai=AKAOjst0CUzh4DGTUXNF-HAvJ95Kc26KyAobg6J5iBO8cUJU4e7QAx8vBTKnGOavuOC8NWdkEQ_qywvW3nI24ubjP2HAx5QBeCVszE2Y_axOaLRFlQBUAGyLRcS3b4yTWgh2Uskv3_t2ta7n_1SKhKd3aBNhWsf_tQHB_mvtmbOjYaLBtwkJjshtrn3W7YcQwHx62d8jSXzzOftmUgSCZ16m38MVSIqUiJPGD1-bQi01849cDQ_34yc7FP03Q8Dj5A29SQ-s8TzC7-g&amp;sai=AMfl-YRK-lcjFrnVJeDHiJY9n96yQLIeaA1RiEvAqGYVfuHnJ_Wx1EKOFUT4gkp11HPWbJ0j4Pwsp2nLKtveXnzK0mV7csNiWp6IOwJeLq4T_gv4YY9KNXrbQhgv3X0&amp;sig=Cg0ArKJSzEYYEh0jbliQEAE&amp;urlfix=1&amp;adurl=&quot; + url;                    } else {                        clickAddress = &quot;https:\/\/adclick.g.doubleclick.net\/pcs\/click?xai=AKAOjst0CUzh4DGTUXNF-HAvJ95Kc26KyAobg6J5iBO8cUJU4e7QAx8vBTKnGOavuOC8NWdkEQ_qywvW3nI24ubjP2HAx5QBeCVszE2Y_axOaLRFlQBUAGyLRcS3b4yTWgh2Uskv3_t2ta7n_1SKhKd3aBNhWsf_tQHB_mvtmbOjYaLBtwkJjshtrn3W7YcQwHx62d8jSXzzOftmUgSCZ16m38MVSIqUiJPGD1-bQi01849cDQ_34yc7FP03Q8Dj5A29SQ-s8TzC7-g&amp;sai=AMfl-YRK-lcjFrnVJeDHiJY9n96yQLIeaA1RiEvAqGYVfuHnJ_Wx1EKOFUT4gkp11HPWbJ0j4Pwsp2nLKtveXnzK0mV7csNiWp6IOwJeLq4T_gv4YY9KNXrbQhgv3X0&amp;sig=Cg0ArKJSzEYYEh0jbliQEAE&amp;urlfix=1&amp;adurl=&quot; + encodeURIComponent(url);                    }                                logTPTracking_0_1(&quot;Click&quot;);                shLogAndNavigate_0_1(&quot;serve_clickthrough&quot;, evt, url, url_cap_Array_0_1[currentImageIndex_0_1].caption, url_cap_Array_0_1[currentImageIndex_0_1].imageName, clickAddress);          }    }    }        function shLog_0_1(stat_log, event, url, caption, imageName) {              var shassetuuid_0_1 = url_cap_Array_0_1[currentImageIndex_0_1].src.split(&quot;\/&quot;);        var logLabel_0_1 = url_cap_Array_0_1[currentImageIndex_0_1].logLabel;        if(logLabel_0_1 == '') {logLabel_0_1 = imageName};          var shDat_0_1 = {dest: url, assetName: imageName, assetUUID: shassetuuid_0_1[1], slideshowUUID: uuid, label: logLabel_0_1};          logHtmlEvent(event, activeScreen, stat_log, shDat_0_1);            }        function shLogAndNavigate_0_1(stat_log, event, url, caption, imageName, clickAddress) {                    var shassetuuid_0_1 = url_cap_Array_0_1[currentImageIndex_0_1].src.split(&quot;\/&quot;);            var logLabel_0_1 = url_cap_Array_0_1[currentImageIndex_0_1].logLabel;            if(logLabel_0_1 == '') {logLabel_0_1 = imageName};            var shDat_0_1 = {dest: url, assetName: imageName, assetUUID: shassetuuid_0_1[1], slideshowUUID: uuid, label: logLabel_0_1};            logClickAndNavigate(event, activeScreen, stat_log, shDat_0_1, clickAddress);            }    function slideLog_0_1(stat_log, event, caption, imageName) {              url_cap_Array_0_1[currentImageIndex_0_1].logged = true;        var assetuuid_0_1 = url_cap_Array_0_1[currentImageIndex_0_1].src.split(&quot;\/&quot;);        var logLabel_0_1 = url_cap_Array_0_1[currentImageIndex_0_1].logLabel;        if(logLabel_0_1 == '') {logLabel_0_1 = imageName};        var slideDat_0_1 = {assetName: imageName, assetUUID: assetuuid_0_1[1], slideshowUUID: uuid, label: logLabel_0_1};          logHtmlEvent(event, activeScreen, stat_log, slideDat_0_1);            }        function autoStart_0_1() {      if(transitionType_0_1 == &quot;Automatic&quot; &amp;&amp; totalImages_0_1 > 1){        interval_0_1 = setInterval(function(){          if(!mouseOver_0_1  || !transitionPauseOnHover_0_1){            clickArrow_0_1(null, 1, true);          }        }, transitionDuration_0_1*1000);      }      setActions_0_1();    }        function clickPagiBtn_0_1(event, index) {      if(currentImageIndex_0_1 != index){        slideLog_0_1(&quot;slideshow_show_click&quot;, event, url_cap_Array_0_1[currentImageIndex_0_1].caption, url_cap_Array_0_1[currentImageIndex_0_1].imageName);        if(event) preventEventProp(event);        clearInterval_0_1();        hideCurrent_0_1( currentImageIndex_0_1 );        previousImageIndex_0_1 = currentImageIndex_0_1;        currentImageIndex_0_1 = index;        var dir = (currentImageIndex_0_1 > previousImageIndex_0_1)? 1 : -1;        if(currentImageIndex_0_1 == 0 &amp;&amp; previousImageIndex_0_1 == url_cap_Array_0_1.length-1) dir = 1;        if(currentImageIndex_0_1 == url_cap_Array_0_1.length-1 &amp;&amp; previousImageIndex_0_1 == 0) dir = -1;        animateMe_0_1(dir);      }    }    function setUpTrackingVars_0_1(settings){            var obj = {type:&quot;&quot;,url:&quot;&quot;, hash:&quot;74be16979710d4c4e7c6647856088456&quot;};    }    function logTPTracking_0_1(which){              for(i=0;i<this['engage'+which+'_0_1'].length;i++){          if(url_cap_Array_0_1[currentImageIndex_0_1].uuid == this['engage'+which+'_0_1'][i].uuid){            logThirdPartyTracking(this['engage'+which+'_0_1'][i].type, this['engage'+which+'_0_1'][i].url, this['engage'+which+'_0_1'][i].hash);          }        }          }        function updatePagiBtn_0_1(val, func){      val = (val)? val : 0;      func = (func)? func : 0;              var color = (func == 1) ? paginationDotColor_0_1 : &quot;none&quot;;        document.getElementById(&quot;pagiBtn_0_1_&quot;+val).style.background = color;          }        function hideCurrent_0_1(val){      if(t_0_1_2){        prev_0_1.style.display = &quot;none&quot;;        t_0_1_2.kill();      }      var element = document.getElementById(&quot;slide_0_1_&quot;+val);      playerArray_0_1[previousImageIndex_0_1].isPaused = playerArray_0_1[previousImageIndex_0_1].paused;      prev_0_1 = element;      var slideId = currentImageIndex_0_1;      if(val != slideId) {        if (typeof window[&quot;leaveParentEvents_&quot;+val] !== 'undefined') {          for (var index = 0; index < window[&quot;leaveParentEvents_&quot;+val].length; ++index) {            window[window[&quot;leaveParentEvents_&quot;+val][index]]();          }        }      }      var speed = transitionSpeed_0_1;      updatePagiBtn_0_1(val, 1);      t_0_1_2 = TweenLite.to(element, speed, {opacity:0, onComplete:function(){        prev_0_1.style.display = &quot;none&quot;;      }});    }        function clickArrow_0_1(event, dir, auto) {      var save = currentImageIndex_0_1;      previousImageIndex_0_1 = save;      currentImageIndex_0_1 += dir;      if(currentImageIndex_0_1 == -1){        currentImageIndex_0_1 = (totalImages_0_1-1);      }      if(currentImageIndex_0_1 == totalImages_0_1){        currentImageIndex_0_1 = 0;      }      if(!auto){        logTPTracking_0_1(&quot;SlideView&quot;);        slideLog_0_1(&quot;slideshow_show_click&quot;, event, url_cap_Array_0_1[currentImageIndex_0_1].caption, url_cap_Array_0_1[currentImageIndex_0_1].imageName);      }      else{                if(url_cap_Array_0_1[currentImageIndex_0_1].logged == &quot;false&quot;){          logTPTracking_0_1(&quot;SlideView&quot;);          var sldEvent = document.createEvent(&quot;CustomEvent&quot;);          slideLog_0_1(&quot;slideshow_show_auto&quot;, sldEvent, url_cap_Array_0_1[currentImageIndex_0_1].caption, url_cap_Array_0_1[currentImageIndex_0_1].imageName);        }      }    if(event){      preventEventProp(event);      if(transitionEffect_0_1 == &quot;Slide&quot; &amp;&amp; transitionType_0_1 == &quot;Automatic&quot;){        mobileTouchDirection_0_1 = (dir == 1) ? &quot;From Left&quot; : &quot;From Right&quot;;      }    }    fillVideoPlayer_0_1();        clearInterval_0_1();    hideCurrent_0_1(save);    animateMe_0_1(dir);    }    function clearInterval_0_1() {      clearInterval(interval_0_1);      interval_0_1 = 0;    }        function scrollRail_0_1(event,dir,fromThumbArrows){      if(event) preventEventProp(event);    if(thumbnailPagi_0_1) {      var railEle = document.getElementById(&quot;thumb_rail_0_1&quot;);      var pagiItemHolderWidth = parseInt(document.getElementById(&quot;pagi_item_holder_0_1&quot;).style.width);      visibleThumbs_0_1 = Math.floor(pagiItemHolderWidth \/ ( (thumbSize_0_1 + (thumbHighlightSize0_1*4)) - thumbHighlightSize0_1));      var maxEndLeft = ( (thumbSize_0_1 + (thumbHighlightSize0_1*4)) - thumbHighlightSize0_1)*dir;      maxEndLeft *= (totalImages_0_1-visibleThumbs_0_1);      maxEndLeft = -Math.abs(maxEndLeft);      if(!fromThumbArrows){        var leftVal = thumbSize_0_1 + (thumbHighlightSize0_1*4);        leftVal -= thumbHighlightSize0_1;        leftVal *= currentImageIndex_0_1;        leftVal = -Math.abs(leftVal);        if(maxEndLeft > leftVal) leftVal = maxEndLeft;        if(!hoverOverThumbRail_0_1){          railEle.style.left = leftVal + &quot;px&quot;;        }      }      else{        railLeft_0_1 = parseInt(railEle.style.left);        railLeft_0_1 -= (( (thumbSize_0_1 + (thumbHighlightSize0_1*4)) - thumbHighlightSize0_1)*dir);        if(dir==1 &amp;&amp; maxEndLeft > railLeft_0_1) railLeft_0_1 = maxEndLeft;        if(dir == -1 &amp;&amp; railLeft_0_1 > 0) railLeft_0_1 = 0;        railEle.style.left = railLeft_0_1 + &quot;px&quot;;      }    } else{      var railEle = document.getElementById(&quot;dot_rail_0_1&quot;);      var pagiItemHolderWidth = parseInt(document.getElementById(&quot;pagi_item_holder_0_1&quot;).style.width);      var dotSize = 9 + 4;      visibleThumbs_0_1 = Math.floor(pagiItemHolderWidth\/dotSize);      var maxEndLeft = (dotSize*dir);      maxEndLeft *= (totalImages_0_1-visibleThumbs_0_1);      maxEndLeft = -Math.abs(maxEndLeft);      if(!fromThumbArrows){        var leftVal = dotSize;        leftVal -= thumbHighlightSize0_1;        leftVal *= currentImageIndex_0_1;        leftVal = -Math.abs(leftVal);        if(maxEndLeft > leftVal) leftVal = maxEndLeft;        if(!hoverOverThumbRail_0_1){          railEle.style.left = leftVal + &quot;px&quot;;        }      }      else{        railLeft_0_1 = parseInt(railEle.style.left);        railLeft_0_1 -= (dotSize*dir);        if(dir==1 &amp;&amp; maxEndLeft > railLeft_0_1) railLeft_0_1 = maxEndLeft;        if(dir == -1 &amp;&amp; railLeft_0_1 > 0) railLeft_0_1 = 0;        railEle.style.left = railLeft_0_1 + &quot;px&quot;;      }    }    }        function animateMe_0_1(whichArrowClick) {      updatePagiBtn_0_1(currentImageIndex_0_1, 0);      if(t_0_1) t_0_1.kill();      var element = document.getElementById(&quot;slide_0_1_&quot;+currentImageIndex_0_1);      var prevElement = document.getElementById(&quot;slide_0_1_&quot;+previousImageIndex_0_1);      if(!jQuery.isEmptyObject(playerArray_0_1[currentImageIndex_0_1]) &amp;&amp; !playerArray_0_1[currentImageIndex_0_1].isPaused &amp;&amp; playerArray_0_1[currentImageIndex_0_1].isPaused != undefined) {        if($(element).find('video').length == 1) {          if(playerArray_0_1[currentImageIndex_0_1].ended &amp;&amp; !recipeArray_0_1[currentImageIndex_0_1].loop) {          } else{            playerArray_0_1[currentImageIndex_0_1].play();            playingArray_0_1[currentImageIndex_0_1] = 1;          }        }      } else if(playerArray_0_1[currentImageIndex_0_1].isPaused == undefined &amp;&amp; recipeArray_0_1[currentImageIndex_0_1].autoplay) {        if(recipeArray_0_1[currentImageIndex_0_1].slideshowAssetType =='Youtube') {          playerArray_0_1[currentImageIndex_0_1].playVideo();        } else{          playerArray_0_1[currentImageIndex_0_1].play();        }        playingArray_0_1[currentImageIndex_0_1] = 1;      if(isAndroid){          if(playerArray_0_1[currentImageIndex_0_1].currentTime == 0){            var autoEvent = new CustomEvent(&quot;AndroidAuto&quot;, {});            cvLog_0_1('play_video_auto', Math.floor(playerArray_0_1[currentImageIndex_0_1].currentTime), autoEvent);            logTPTracking_0_1('AutoPlay');          }              if(muted_0_1)playerArray_0_1[currentImageIndex_0_1].muted=true;        else if(!muted_0_1)playerArray_0_1[currentImageIndex_0_1].muted=false;        playingArray_0_1[currentImageIndex_0_1] = 1;        if($('#playButtonDiv-0-1_'+currentImageIndex_0_1))$('#playButtonDiv-0-1_'+currentImageIndex_0_1).css(&quot;opacity&quot;, &quot;0&quot;);      }      toggleChromelessPlay_0_1();        if(!recipeArray_0_1[currentImageIndex_0_1].autoPlayWithSound) {          if(recipeArray_0_1[currentImageIndex_0_1].slideshowAssetType =='Youtube') {            playerArray_0_1[currentImageIndex_0_1].mute();          } else{            playerArray_0_1[currentImageIndex_0_1].setMuted(true);          }        }      }            if(!jQuery.isEmptyObject(playerArray_0_1[previousImageIndex_0_1])) {        if($(prevElement).find('video').length == 1) {            if(typeof playerArray_0_1[previousImageIndex_0_1].pause == 'function'){               playerArray_0_1[previousImageIndex_0_1].pause();               playingArray_0_1[previousImageIndex_0_1] = 0;               if($('#playButtonDiv_'+previousImageIndex_0_1))$('#playButtonDiv_'+previousImageIndex_0_1).css(&quot;opacity&quot;, &quot;100&quot;);          }        } else if($(prevElement).find('.slideshow-youtube-frame-wrapper iframe').length == 1) {           playerArray_0_1[previousImageIndex_0_1].pauseVideo();        }      }      var aniTo = {};      var dir = (mobileTouchDirection_0_1 == &quot;&quot;) ? transitionDirection_0_1 : mobileTouchDirection_0_1;      var speed = transitionSpeed_0_1;    if(whichArrowClick){        if(dir == &quot;Arrow Direction&quot;){          dir = (whichArrowClick == 1)? &quot;From Left&quot;: &quot;From Right&quot;;        }      }      element.style.display = &quot;block&quot;;      aniTo.onComplete=aniDone_0_1;      element.style.opacity = 1;      switch(transitionEffect_0_1){        case &quot;Fade&quot;:          aniTo.opacity = 1;          element.style.opacity = 0;        break;        case &quot;Scale&quot;:          element = document.getElementById(&quot;img_0_1_&quot;+currentImageIndex_0_1);          \/* If this is not an image, then we need to find the video *\/          if (element === null) {               if(recipeArray_0_1[currentImageIndex_0_1].slideshowAssetType =='Youtube') {                   element = document.getElementById(&quot;youtubeWrapper_0_1_&quot;+currentImageIndex_0_1);               }               else if(recipeArray_0_1[currentImageIndex_0_1].slideshowAssetType =='Uploaded Asset') {                   element = document.getElementById(&quot;vidWrapper_0_1_&quot;+currentImageIndex_0_1);               }          }          aniTo.transform = 'scale(1)';        break;        case &quot;Slide&quot;:          aniTo.top = aniSettings_0_1[&quot;slideSettings_&quot;+currentImageIndex_0_1].top;          aniTo.left = aniSettings_0_1[&quot;slideSettings_&quot;+currentImageIndex_0_1].left;          if(dir == &quot;From Top&quot;){            element.style.top = (appH_0_1 * -1)+'px';        }else if(dir == &quot;From Bottom&quot;){          element.style.top = appH_0_1+'px';        }else if(dir == &quot;From Left&quot;){          element.style.left = (appW_0_1 * -1)+'px';        }else if(dir == &quot;From Right&quot;){          element.style.left = appW_0_1+'px';        }        break;      }      if(transitionEffect_0_1 != &quot;Scale&quot;){        t_0_1 = TweenLite.to(element, speed, aniTo);      }else{        t_0_1 = TweenLite.fromTo(element, speed,{transform:'scale(0)'}, aniTo);      }      mobileTouchDirection_0_1 = &quot;&quot;;      setActions_0_1();    }        function setActions_0_1() {      if (url_cap_Array_0_1[currentImageIndex_0_1].actionsSet === undefined) {        url_cap_Array_0_1[currentImageIndex_0_1].actionsSet = true;        var slideId = currentImageIndex_0_1;        if (typeof window[&quot;fireParentEvents_&quot;+slideId] !== 'undefined') {          for (var index = 0; index < window[&quot;fireParentEvents_&quot;+slideId].length; ++index) {            window[window[&quot;fireParentEvents_&quot;+slideId][index]]();          }        }      }    }      function resetSeek_0_1(i, player) {        var ytEvent = new CustomEvent(&quot;YouTubeClick&quot;, {});        scrubbing_0_1=0;        var pTime = Math.floor(player.getCurrentTime());        vCounter_0_1 = pTime;        cvLog_0_1('seek_youtube_click', pTime, ytEvent, 'youtube');    }    function aniDone_0_1(){      if(interval_0_1 == 0 &amp;&amp; transitionType_0_1 == &quot;Automatic&quot; &amp;&amp; (!mouseOver_0_1 || !transitionPauseOnHover_0_1) &amp;&amp; (transitionLoop_0_1 || (!transitionLoop_0_1 &amp;&amp; (currentImageIndex_0_1 < (totalImages_0_1-1)) ) )){        autoStart_0_1();      }    }    function hoverOver_0_1() {      mouseOver_0_1 = true;      if(arrowDisplay_0_1 == &quot;On Hover&quot; || arrowDisplay_0_1 == &quot;Always&quot;){        document.getElementById(&quot;LArrow_0_1&quot;).style.display = &quot;block&quot;;        document.getElementById(&quot;RArrow_0_1&quot;).style.display = &quot;block&quot;;      }else{        document.getElementById(&quot;LArrow_0_1&quot;).style.display = &quot;none&quot;;        document.getElementById(&quot;RArrow_0_1&quot;).style.display = &quot;none&quot;;      }      if(paginationDisplay_0_1 == &quot;On Hover&quot; || paginationDisplay_0_1 == &quot;Always&quot;){        document.getElementById(&quot;pagiBar_0_1&quot;).style.display = &quot;block&quot;;      }else{        document.getElementById(&quot;pagiBar_0_1&quot;).style.display = &quot;none&quot;;      }            if(arrowType_0_1 == 'Hitbox') {        document.getElementById(&quot;LArrow_0_1&quot;).style.display = &quot;block&quot;;        document.getElementById(&quot;RArrow_0_1&quot;).style.display = &quot;block&quot;;      }      if(transitionPauseOnHover_0_1) clearInterval_0_1();    }    function hoverOut_0_1() {      mouseOver_0_1 = false;      if(arrowDisplay_0_1 == &quot;Always&quot;){        document.getElementById(&quot;LArrow_0_1&quot;).style.display = &quot;block&quot;;        document.getElementById(&quot;RArrow_0_1&quot;).style.display = &quot;block&quot;;      }else{        document.getElementById(&quot;LArrow_0_1&quot;).style.display = &quot;none&quot;;        document.getElementById(&quot;RArrow_0_1&quot;).style.display = &quot;none&quot;;      }      if(paginationDisplay_0_1 == &quot;Always&quot;){        document.getElementById(&quot;pagiBar_0_1&quot;).style.display = &quot;block&quot;;      }else{        document.getElementById(&quot;pagiBar_0_1&quot;).style.display = &quot;none&quot;;      }      if(arrowType_0_1 == 'Hitbox') {        document.getElementById(&quot;LArrow_0_1&quot;).style.display = &quot;block&quot;;        document.getElementById(&quot;RArrow_0_1&quot;).style.display = &quot;block&quot;;      }      if(transitionType_0_1 == &quot;Automatic&quot; &amp;&amp; transitionPauseOnHover_0_1){ clearInterval_0_1(); autoStart_0_1(); }    }                fireEvents_0.push(&quot;ssAppInit_0_1&quot;,&quot;positionCaption_0_1&quot;,&quot;autoStart_0_1&quot;,&quot;updatePagiBtn_0_1&quot;);        leaveScreenEvents_0.push(&quot;ytLeave_0_1&quot;);        reenterScreenEvents_0.push(&quot;ytReturn_0_1&quot;);    var slideshow_content_0_1='\n\n<div>\n<div style=&quot;overflow:hidden; position:absolute; width:300px; height:250px;&quot;>\n<div style=&quot;position:absolute;width:100%;height:100%;overflow:hidden;top:0;left:0;-webkit-user-select: none;-khtml-user-select: none;-moz-user-select: none;-o-user-select: none;user-select: none;cursor:pointer&quot; id=&quot;slide_0_1_0&quot;onclick=&quot;goToHref_0_1(event);&quot;>\n<div style=&quot;position:absolute;&quot;><img id=&quot;img_0_1_0&quot; style=&quot;position:relative;top:0;width:300px;height:250px;left:0px;top:0px;&quot; src=&quot;https:\/\/assets.adventivecdn.com\/257\/925380e1-6838-424e-b9d5-4d5d452ef13e&quot;\/><\/div>\n<\/div>\n<div style=&quot;position:absolute;width:100%;height:100%;overflow:hidden;top:0;left:0;-webkit-user-select: none;-khtml-user-select: none;-moz-user-select: none;-o-user-select: none;user-select: none;cursor:pointer&quot; id=&quot;slide_0_1_1&quot;onclick=&quot;goToHref_0_1(event);&quot;><\/div>\n<div style=&quot;position:absolute;width:100%;height:100%;overflow:hidden;top:0;left:0;-webkit-user-select: none;-khtml-user-select: none;-moz-user-select: none;-o-user-select: none;user-select: none;cursor:pointer&quot; id=&quot;slide_0_1_2&quot;onclick=&quot;goToHref_0_1(event);&quot;>\n<div style=&quot;position:absolute;&quot;><img id=&quot;img_0_1_2&quot; style=&quot;position:relative;top:0;width:300px;height:250px;left:0px;top:0px;&quot; src=&quot;https:\/\/assets.adventivecdn.com\/257\/977caeb9-6a9e-41f4-b414-2e7f4454c141&quot;\/><\/div>\n<\/div>\n<div style=&quot;height:35px;width:100%;background-color:#333333;position:absolute;overflow:hidden;bottom:0;filter: alpha(opacity=100); -moz-opacity: 1.00; -khtml-opacity: 1.00; opacity: 1.00; display:none;; z-index:2002&quot; id=&quot;pagiBar_0_1&quot;>\n<div id=&quot;pagi_item_holder_0_1&quot; style=&quot;width:39px; height:11px;top:13px;position:relative;margin:0 auto;z-index:5;&quot;>\n<div id=&quot;dot_rail_0_1&quot; style=&quot;width:39px; height:100%;position:absolute; left: 0; z-index:1;transition: left 300ms;-webkit-user-select: none;-khtml-user-select: none;-moz-user-select: none;-o-user-select: none;user-select: none;&quot;>\n<div id=&quot;pagiBtn_0_1_0&quot; style=&quot;width:9px;height:9px;background-color: #ffffff;border:1px solid #ffffff;float:left;margin-left:1px;margin-right:1px;position:relative;-moz-border-radius: 12px;-webkit-border-radius: 12px;border-radius: 12px;&quot; onclick=&quot;clickPagiBtn_0_1(event,0);&quot;> <\/div>\n<div id=&quot;pagiBtn_0_1_1&quot; style=&quot;width:9px;height:9px;background-color: #ffffff;border:1px solid #ffffff;float:left;margin-left:1px;margin-right:1px;position:relative;-moz-border-radius: 12px;-webkit-border-radius: 12px;border-radius: 12px;&quot; onclick=&quot;clickPagiBtn_0_1(event,1);&quot;> <\/div>\n<div id=&quot;pagiBtn_0_1_2&quot; style=&quot;width:9px;height:9px;background-color: #ffffff;border:1px solid #ffffff;float:left;margin-left:1px;margin-right:1px;position:relative;-moz-border-radius: 12px;-webkit-border-radius: 12px;border-radius: 12px;&quot; onclick=&quot;clickPagiBtn_0_1(event,2);&quot;> <\/div>\n<\/div><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div id=&quot;LArrow_0_1&quot; onclick=&quot;clickArrow_0_1(event, -1);&quot; style=&quot;height:75px; top:100px; display:none; float:left; width:auto; position: relative; z-index:2002;&quot;>\n<div style=&quot;width:50px; height:50px; position:relative;filter: alpha(opacity=100); -moz-opacity: 1.00; -khtml-opacity: 1.00; opacity: 1.00; -webkit-user-select: none;-khtml-user-select: none;-moz-user-select: none;-o-user-select: none;user-select: none;&quot;> <svg style=&quot;position:absolute; left:-8px;stroke:#333333; transform:scaleX(-1);&quot; class=&quot;svgArrow&quot; width=&quot;50&quot; height=&quot;50&quot;><use xmlns:xlink=&quot;http:\/\/www.w3.org\/1999\/xlink&quot; xlink:href=&quot;#arrow&quot;><\/use><\/svg> <\/div>\n<\/p><\/div>\n<div id=&quot;RArrow_0_1&quot; onclick=&quot;clickArrow_0_1(event, 1);&quot; style=&quot;height:75px; top:100px; display:none; float:right; width:auto; position:relative; z-index:2002;&quot;>\n<div style=&quot;width:50px; height:50px; position:relative;filter: alpha(opacity=100); -moz-opacity: 1.00; -khtml-opacity: 1.00; opacity: 1.00; -webkit-user-select: none;-khtml-user-select: none;-moz-user-select: none;-o-user-select: none;user-select: none;&quot;> <svg style=&quot;position:absolute; left:8px;stroke:#333333;&quot; class=&quot;svgArrow&quot; width=&quot;50&quot; height=&quot;50&quot;><use xmlns:xlink=&quot;http:\/\/www.w3.org\/1999\/xlink&quot; xlink:href=&quot;#arrow&quot;><\/use><\/svg> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<p>';   if (parent.window.preventSpecialFormat) {        var autocheck_0_3 = 0;     } else {        var autocheck_0_3 = 0;    }        var ua = navigator.userAgent.toLowerCase();  var isAndroid = (ua.indexOf(&quot;android&quot;) > -1);  var isiOS = ( navigator.userAgent.match(\/iPad|iPhone|iPod\/g) ? true : false );  var mobileTouchDirection_0_3 = &quot;&quot;;   var currentImageIndex_0_3 = 0;  var previousImageIndex_0_3 = 0;  var totalImages_0_3 = 1;  var transitionType_0_3 = &quot;Automatic&quot;;  var transitionPauseOnHover_0_3 = Boolean();  var transitionDuration_0_3 = 3;  var transitionEffect_0_3 = &quot;Fade&quot;;  var transitionDirection_0_3 = &quot;From Left&quot;;  var transitionSpeed_0_3 = 1;  var transitionLoop_0_3 = Boolean(1);  var arrowDisplay_0_3 = &quot;Never&quot;;  var paginationDisplay_0_3 = &quot;Never&quot;;  var paginationDotColor_0_3 = &quot;#ffffff&quot;;  var interval_0_3 = 0;  var t_0_3 = null;  var t_0_3_2 = null;  var appH_0_3 = 250;  var appW_0_3 = 300;  var mouseOver_0_3 = false;  var prev_0_3 = null;  var aniSettings_0_3 = {};  var url_cap_Array_0_3 = null;  var  engageSlideView_0_3 = [];  var  engageClick_0_3 = [];  var thumbSize_0_3 = 23;  var thumbHighlightSize0_3 = 3;  var railLeft_0_3 = 0;  var oldRailLeft_0_3 = 0;  var visibleThumbs_0_3 = 0;  var thumbClickCounter_0_3 = 0;  var hoverOverThumbRail_0_3 = false;  var arrowType_0_3 = &quot;Default&quot;;  var thumbnailPagi_0_3 = Boolean(0);  var player_0_3;   var player_element_0_3;  var muted_0_3;  var vol_0_3;  var autoUnmuted_0_3=0;  var duration_0_3;  var play_done_0_3 = 0;  var play_started_0_3 = 0;  var playing_0_3 = 0;  var statLogged_0_3 = 0;  var inViewed_0_3 = 0;  var outViewed_0_3 = 0;  var dontLogVolChange_0_3 = 0;  var dontLogSeek_0_3 = 0;  var dontLogLoop_0_3 = 0;  var cInterval_0_3;  var volInterval_0_3;  var isReturnAutoPlay_0_3 = 0;  var playingWhenLeft_0_3 = 0;  var playerArray_0_3 = [];  var recipeArray_0_3 = [];  var uuid;  var dontLogPlay_0_3 = [];  var scrubbing_0_3 = 0;  var vCounter_0_3 = 0;  var skipIt_0_3 = 0;  var controlOffset_0_3;  var widthDiv_0_3;  var HeightDiv_0_3;  var muteshift_0_3_1;  var playshift_0_3_1;  var playingArray_0_3 = [];  var autoUnmutedArray_0_3 = [];  var restartPlaybackDoneArr_0_3 = [];   var unmuteHappenedArr_0_3 = [];   var restartedVideoUnmute_0_3 = false;   var appSettingsInfoArr_0_3 = [];  var previewImagesArr_0_3 = [];  var loadingImagesArr_0_3 = [];  var assetCount = 1;  for(var i=0;i< assetCount;i++) {    playingArray_0_3[i] = 0;    autoUnmutedArray_0_3[i] = 0;    restartPlaybackDoneArr_0_3[i]=false;    dontLogPlay_0_3[i]=false;    unmuteHappenedArr_0_3[i]=false;    appSettingsInfoArr_0_3[i] = {autoPlayWithSound:0, restartPlayback:0, loop:0, clickthrough:0, duration:0, iconColor:&quot;&quot;,src:&quot;&quot;,endTime:0,returnToStart:0,autoplayDelay:0};    previewImagesArr_0_3[i] = {};    loadingImagesArr_0_3[i] = {};  }  var engageAutoPlay_0_3 = [];  var engagePlay_0_3 = [];  var engagePause_0_3 = [];  var engageMute_0_3 = [];  var engageUnmute_0_3 = [];  var engageFQ_0_3 = [];    var engageSQ_0_3 = [];    var engageTQ_0_3 = [];    var engageFrQ_0_3 = [];   var qtInterval_0_3 = 0;   var ytqtInterval_0_3 = 0;   var countedQ1_0_3 = 0;   var countedQ2_0_3 = 0;   var countedQ3_0_3 = 0;   var countedQ4_0_3 = 0;     function checkQuartileTracking_0_3(type, totalDuration){        var assets = &quot;%5B%7B%22name%22%3A%22%22%2C%22src%22%3A%22%22%2C%22clickUrl%22%3A%22%22%2C%22logName%22%3A%22%22%2C%22slideshowAssetType%22%3A%22Uploaded+Asset%22%2C%22videoId%22%3A%22%22%2C%22valid%22%3Atrue%2C%22hasCaption%22%3Afalse%2C%22hasUrl%22%3Atrue%2C%22caption%22%3A%22%22%2C%22width%22%3A%22%22%2C%22height%22%3A%22%22%2C%22slideIsVisible%22%3Atrue%2C%22children%22%3A%5B%7B%22element%22%3A%22b16c83b9-3f47-4da4-bb18-e1afd5e74d15%22%2C%22slideId%22%3A%220%22%2C%22name%22%3A%22SpiritLakeCasino_5949755_300x250_04012019_1.jpg%22%2C%22screensLabel%22%3A%22SpiritLakeCasino_5949755_300x250_04012019_1.jpg%22%2C%22parentApp%22%3A%22eb61dd4c-b1af-4853-b57d-3e29a687a761%22%7D%5D%2C%22videoInfo%22%3A%7B%22chromeLess%22%3A0%2C%22logo%22%3A0%2C%22videoInfo%22%3A0%2C%22theme%22%3A%22dark%22%2C%22progressBar%22%3A%22red%22%2C%22autoplay%22%3A0%2C%22loop%22%3A0%2C%22startTime%22%3A0%2C%22endTime%22%3A0%2C%22related%22%3A0%2C%22autoHidecontrols%22%3A0%2C%22valid%22%3Atrue%2C%22event%22%3A%22%22%2C%22action%22%3A%22%22%2C%22pixelURL%22%3A%22%22%2C%22showReplayButton%22%3A0%2C%22clickthrough%22%3A1%2C%22enableMutingControls%22%3A0%2C%22mutingControlsPosition%22%3A%22Bottom+Right%22%2C%22autoHideMutingControls%22%3A0%2C%22iconColor%22%3A%22light%22%2C%22showPlayButtonOverlay%22%3A1%2C%22returnToStart%22%3A0%2C%22startOnReturn%22%3A0%2C%22changeScreenSetting%22%3A%22Resume+Playback%22%2C%22enablePlayerControls%22%3A0%2C%22playerControlsPosition%22%3A%22Bottom+Left%22%2C%22autoHidePlayerControls%22%3A0%2C%22playerIconColor%22%3A%22light%22%2C%22restartPlayback%22%3A0%2C%22autoplayDelay%22%3A0%2C%22nativeWidth%22%3A%22%22%2C%22nativeHeight%22%3A%22%22%2C%22source%22%3A%22%22%2C%22autoHideYtcontrols%22%3A2%2C%22controlSettings%22%3A%22Always+Visible%22%2C%22displayVidInfo%22%3A0%2C%22showYoutubeLogo%22%3A0%7D%2C%22openURLIn%22%3A%22New+Tab%22%2C%22uuid%22%3A%221cf08b12-fa5f-4d5f-a44a-6427f417cd64%22%7D%5D&quot;;    assets = JSON.parse(decodeURIComponent(assets));      if(type == 'video') {      var time;      var duration;      time = Math.round(playerArray_0_3[currentImageIndex_0_3].currentTime);      duration = Math.floor(playerArray_0_3[currentImageIndex_0_3].duration);      var customStartTime = parseInt(assets[currentImageIndex_0_3].startTime) > 0 ? parseInt(assets[currentImageIndex_0_3].startTime):'0';      var customEndTime = parseInt(assets[currentImageIndex_0_3].endTime) > 0 ? parseInt(assets[currentImageIndex_0_3].endTime):duration;      var customDuration = customEndTime - customStartTime;      var quartileTime = customDuration\/4;      var quartileEvent = document.createEvent(&quot;CustomEvent&quot;);      var totalTime = time - customStartTime;            if ( (totalTime == Math.floor(quartileTime)) || ( (totalTime > Math.floor(quartileTime)) &amp;&amp; (!countedQ1_0_3) ) ) {                if (!countedQ1_0_3) {                    cvLog_0_3('q1_video_auto', Math.floor(totalTime), quartileEvent);                    countedQ1_0_3=1;                    console.log(&quot;firstQuartile&quot;);                    logTPTracking_0_3('FQ');                }            }            if ( (totalTime == Math.floor(quartileTime*2)) || ( (totalTime > Math.floor(quartileTime*2)) &amp;&amp; (!countedQ2_0_3) ) ){                if (!countedQ2_0_3) {                    cvLog_0_3('q2_video_auto', Math.floor(totalTime), quartileEvent);                    countedQ2_0_3=1;                    console.log(&quot;SecondQuartile&quot;);                    logTPTracking_0_3('SQ');                }            }            if ( (totalTime == Math.floor(quartileTime*3)) || ( (totalTime > Math.floor(quartileTime*3)) &amp;&amp; (!countedQ3_0_3) ) ){                if (!countedQ3_0_3) {                    cvLog_0_3('q3_video_auto', Math.floor(totalTime), quartileEvent);                    countedQ3_0_3=1;                    console.log(&quot;ThirdQuartile&quot;);                    logTPTracking_0_3('TQ');                }            }                        if ( (totalTime >= Math.floor((quartileTime*4)-1)) || ( (totalTime > Math.floor(quartileTime*4)) &amp;&amp; (!countedQ4_0_3) ) ){                if (!countedQ4_0_3) {                    countedQ4_0_3=1;                    cvLog_0_3('q4_video_auto', customDuration, quartileEvent);                    console.log(&quot;complete&quot;);                    logTPTracking_0_3('FrQ');                }            }            if ( (totalTime >= Math.floor(customEndTime - 1)) || ( (totalTime > Math.floor(customEndTime)) &amp;&amp; (!countedQ4_0_3) ) ) {                if (!countedQ4_0_3) {                    countedQ4_0_3=1;                    cvLog_0_3('q4_video_auto', customDuration, quartileEvent);                    console.log(&quot;complete&quot;);                    logTPTracking_0_3('FrQ');                }            }        } else if(type =='youtube') {            var customStartTime = parseInt(assets[currentImageIndex_0_3].startTime) > 0 ? parseInt(assets[currentImageIndex_0_3].startTime):'0';            var customEndTime = parseInt(assets[currentImageIndex_0_3].endTime) > 0 ? parseInt(assets[currentImageIndex_0_3].endTime):totalDuration;            if(customStartTime > 0 &amp;&amp; (customEndTime == customStartTime)){                customEndTime = totalDuration;            }            var customDuration = customEndTime - customStartTime;            var time = Math.round(playerArray_0_3[currentImageIndex_0_3].getCurrentTime());            var quartileTime = customDuration\/4;            var totalTime = time - customStartTime;            var quartileEvent = document.createEvent(&quot;CustomEvent&quot;);            if( ( totalTime == Math.floor(quartileTime) ) || ( ( totalTime > Math.floor(quartileTime)) &amp;&amp; (!countedQ1_0_3) ) ){                if (!countedQ1_0_3) {                    cvLog_0_3('q1_youtube_auto', Math.floor(totalTime), quartileEvent, 'youtube');                    countedQ1_0_3=1;                    logTPTracking_0_3('FQ');                }            }else if ( ( totalTime == Math.floor(quartileTime*2) ) || ( ( totalTime > Math.floor(quartileTime*2)) &amp;&amp; (!countedQ2_0_3) ) ){                if (!countedQ2_0_3) {                    cvLog_0_3('q2_youtube_auto', Math.floor(totalTime), quartileEvent, 'youtube');                    countedQ2_0_3=1;                    logTPTracking_0_3('SQ');                }            }else if ( (totalTime == Math.floor(quartileTime*3) ) || ( ( totalTime > Math.floor(quartileTime*3)) &amp;&amp; (!countedQ3_0_3) ) ){                if (!countedQ3_0_3) {                    cvLog_0_3('q3_youtube_auto', Math.floor(totalTime), quartileEvent, 'youtube');                    countedQ3_0_3=1;                    logTPTracking_0_3('TQ');                }            }else if(totalTime >= Math.floor(customEndTime) ){                if (!countedQ4_0_3) {                    cvLog_0_3('q4_youtube_auto', customDuration, quartileEvent, 'youtube');                    countedQ4_0_3=1;                    logTPTracking_0_3('FrQ');                }            }        }    }    function startQuartileYoutubeTracking_0_3(duration){        checkQuartileTracking_0_3('youtube', duration);        ytqtInterval_0_3 = setInterval(function(){checkQuartileTracking_0_3('youtube', duration)},1000);    }    function stopQuartileYoutubeTracking_0_3(){        clearInterval(ytqtInterval_0_3);    }  var ssAppInit_0_3 = function() {    if(&quot;eb61dd4c-b1af-4853-b57d-3e29a687a761&quot; != undefined &amp;&amp; &quot;eb61dd4c-b1af-4853-b57d-3e29a687a761&quot; != &quot;&quot;) uuid = &quot;eb61dd4c-b1af-4853-b57d-3e29a687a761&quot;;    else uuid = &quot;0_3&quot;;    var ssAppBody_0_3 = document.getElementById(&quot;layer-0-3&quot;);    ssAppBody_0_3.innerHTML = slideshow_content_0_3;    var isAndroid = (navigator.userAgent.toLowerCase().indexOf(&quot;android&quot;) > -1);    var isiOS = (navigator.userAgent.match(\/iPad|iPhone|iPod\/g) ? true : false);    if(!isAndroid || !isiOS){      ssAppBody_0_3.onmouseenter=hoverOver_0_3;      ssAppBody_0_3.onmouseleave=hoverOut_0_3;    }    setUpTrackingVars_0_3();    if(isAndroid || isiOS){      $(&quot;#layer-0-3&quot;).on(&quot;swipeleft&quot;, function(){        if(transitionEffect_0_3 == &quot;Slide&quot;) mobileTouchDirection_0_3 = &quot;From Right&quot;;        clickArrow_0_3(null, -1, false);      });      $(&quot;#layer-0-3&quot;).on(&quot;swiperight&quot;, function(){        if(transitionEffect_0_3 == &quot;Slide&quot;) mobileTouchDirection_0_3 = &quot;From Left&quot;;        clickArrow_0_3(null, 1, false);      });    }    if (!youTubeIframeAPIReady) {    var tag = document.createElement('script');        tag.src = &quot;https:\/\/www.youtube.com\/iframe_api&quot;;        var firstScriptTag = document.getElementsByTagName('script')[0];        firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);    }  };  function isIE() { return ((navigator.appName == 'Microsoft Internet Explorer') || ((navigator.appName == 'Netscape') &amp;&amp; (new RegExp(&quot;Trident\/.*rv:([0-9]{1,}[.0-9]{0,})&quot;).exec(navigator.userAgent) != null))); }    function onYouTubeIframeAPIReady() {      youTubeIframeAPIReady=true;  }      function positionCaption_0_3() {      var captionPosition = &quot;Bottom&quot;;      var paginationPosition = &quot;Bottom&quot;;      var paginationSize = &quot;Medium&quot;;      var element = null;      var height = 0;      var appHeight = 250;      var paginationIntSize = 0;      var area = 0;&#9;  var captionTop = 0;&#9;  var imgEle = null;&#9;  var slideEle = null;&#9;  var youtubeEle = null;      if(paginationDisplay_0_3 == 'Always' || paginationDisplay_0_3 == 'On Hover'){            if(paginationSize==&quot;Small&quot;){                paginationIntSize=25;            }else if(paginationSize==&quot;Medium&quot;){                paginationIntSize=35;            }else{                paginationIntSize=50;            }        }            url_cap_Array_0_3 = new Array(totalImages_0_3);      $('#pagiBar_0_3').mousemove(function() {      &#9;hoverOverThumbRail_0_3 = true;      });      $('#pagiBar_0_3').mouseover(function() {         hoverOverThumbRail_0_3 = true;      });      $('#pagiBar_0_3').mouseleave(function() {          hoverOverThumbRail_0_3 = false;      });              var player_element_0_3_0;          element = document.getElementById(&quot;captionTextArea_0_3_0&quot;);          imgEle = document.getElementById(&quot;img_0_3_0&quot;);          vidEle = document.getElementById(&quot;customplayer-0-3-0&quot;);          youtubeEle = document.getElementById(&quot;player_0_3_0&quot;);          slideEle = document.getElementById(&quot;slide_0_3_0&quot;);          var autoHidecontrols = 0;            var control = true;            if(autoHidecontrols == 1) control = false;            var startTime_0_3_0 = &quot;&quot;;                        var endTime_0_3_0 = 0;            var theme = 'dark';            var showReplay = 0;            var returnToStart = 0 == 1 ? true:false;                                if(youtubeEle != null) {                  if (parent.window.preventSpecialFormat) {                   var youtubeAutocheck_0_3_0 = 0;             } else {                 var youtubeAutocheck_0_3_0 = 0;            }            var htmlMode = 0;                    if(navigator.userAgent.toLowerCase().indexOf('firefox') > -1)                    {                        htmlMode = 1;                    }                    var youtubeAutoUnmuted_0_3_0=0;                    var playing_0_3_0=0;                    var player_0_3_0;                    var play_done_0_3_0=0;                    var cInterval_0_3_0;                    var duration_0_3_0;            var youtubeAutoplayDelay_0_3_0 = 0;                        var youtubeVid_0_3_0 = '';                    youtubeVid_0_3_0 = youtubeVid_0_3_0.replace(&quot;http:\/\/www.youtube.com\/watch?v=&quot;, &quot;&quot;);            youtubeVid_0_3_0 = youtubeVid_0_3_0.replace(&quot;https:\/\/www.youtube.com\/watch?v=&quot;, &quot;&quot;);            youtubeVid_0_3_0 = youtubeVid_0_3_0.replace(&quot;http:\/\/youtu.be\/&quot;, &quot;&quot;);            youtubeVid_0_3_0 = youtubeVid_0_3_0.replace(&quot;https:\/\/youtu.be\/&quot;, &quot;&quot;);            var words = {&quot;chromeLess&quot;:0,&quot;logo&quot;:0,&quot;videoInfo&quot;:0,&quot;theme&quot;:&quot;dark&quot;,&quot;progressBar&quot;:&quot;red&quot;,&quot;autoplay&quot;:0,&quot;loop&quot;:0,&quot;startTime&quot;:0,&quot;endTime&quot;:0,&quot;related&quot;:0,&quot;autoHidecontrols&quot;:0,&quot;valid&quot;:true,&quot;event&quot;:&quot;&quot;,&quot;action&quot;:&quot;&quot;,&quot;pixelURL&quot;:&quot;&quot;,&quot;showReplayButton&quot;:0,&quot;clickthrough&quot;:1,&quot;enableMutingControls&quot;:0,&quot;mutingControlsPosition&quot;:&quot;Bottom Right&quot;,&quot;autoHideMutingControls&quot;:0,&quot;iconColor&quot;:&quot;light&quot;,&quot;showPlayButtonOverlay&quot;:1,&quot;returnToStart&quot;:0,&quot;startOnReturn&quot;:0,&quot;changeScreenSetting&quot;:&quot;Resume Playback&quot;,&quot;enablePlayerControls&quot;:0,&quot;playerControlsPosition&quot;:&quot;Bottom Left&quot;,&quot;autoHidePlayerControls&quot;:0,&quot;playerIconColor&quot;:&quot;light&quot;,&quot;restartPlayback&quot;:0,&quot;autoplayDelay&quot;:0,&quot;nativeWidth&quot;:&quot;&quot;,&quot;nativeHeight&quot;:&quot;&quot;,&quot;source&quot;:&quot;&quot;,&quot;autoHideYtcontrols&quot;:2,&quot;controlSettings&quot;:&quot;Always Visible&quot;,&quot;displayVidInfo&quot;:0,&quot;showYoutubeLogo&quot;:0};              var obj = {};              $.each(words, function(key, value) {                  obj[key] = value;              });            obj['videoId'] = '';                        obj['slideshowAssetType'] = 'Uploaded Asset';            recipeArray_0_3.push(obj);            var pagiHeight = $(&quot;#pagiBar_0_3&quot;).css('height');            var ytChromeless_0_3_0 = 0 == 0 ? '1':'0';            var pagiHeightAdj;            var pagiPadding;            if(paginationPosition == 'Top') {                pagiHeightAdj = parseInt(pagiHeight);                pagiPadding = parseInt(pagiHeight);            } else if(paginationPosition == 'Bottom') {                pagiHeightAdj = parseInt(pagiHeight);                pagiPadding = 0;            }            if(paginationDisplay_0_3 != 'Always') {                pagiHeightAdj = 0;                pagiPadding = 0;            }                      var ytStartPlayer_0_3_0 = setInterval(function() {                        if(youTubeIframeAPIReady) {                          clearInterval(ytStartPlayer_0_3_0);                           player_0_3_0 = new YT.Player('player_0_3_0', {                            height: 250-pagiHeightAdj,                            width: 300,                            videoId: youtubeVid_0_3_0,                            playerVars: {                                'autoplay':youtubeAutocheck_0_3_0,                                'playsinline': 1,                                'showinfo': '0',                                'rel': '0',                                'modestbranding': '0',                                'color': 'red',                                'theme': 'dark',                                'controls': ytChromeless_0_3_0,                                'start': 0,                                                                'autohide':0,                                'iv_load_policy':3,                                'html5': htmlMode                            },                            events: {                                'onReady':  function(event) {                                   if(player_0_3_0 &amp;&amp; typeof player_0_3_0.getPlayerState == 'function'){                                       if(0 != '0') {                                          player_0_3_0.pauseVideo();                                       }                              player_ready_0_3_0 = true;                              playerArray_0_3[0] = player_0_3_0;                                $(&quot;#youtubeWrapper_0_3_0&quot;).css('padding-top', pagiPadding);                              if (youtubeAutocheck_0_3_0) {                                if(!0){                                  if(!isIE())event.target.setVolume(0);                                     event.target.mute();                                                                        var ytCheck_0_3_0 = setInterval(function(){ ytChecker_0_3_0() }, 10);                                    function ytChecker_0_3_0(){                                        if (event.target.getPlayerState() === 1){                                           player_0_3_0.mute();                                           clearInterval(ytCheck_0_3_0);                                           setTimeout(function(){                                               player_0_3_0.mute();                                               if(!isIE())event.target.setVolume(0);                                             }, 100);                                        }else {}                                    }                                 }                                  if(!youtubeAutocheck_0_3_0){                                    if(youtubeAutoplayDelay_0_3_0 > 0){                                      setTimeout(function(){                                        player_0_3_0.playVideo();                                      },youtubeAutoplayDelay_0_3_0);                                    }                                }                              }                              muted_0_3_0=player_0_3_0.isMuted();                               duration_0_3_0 = player_0_3_0.getDuration()-1;                               vurl_0_3_0 = player_0_3_0.getVideoUrl();                          }                                },                                'onStateChange': function(event) {                                                                    if(typeof player_0_3_0.getCurrentTime == 'function'){                            switch(event.data) {                                case -1:                                     playing_0_3_0 = 0;                                    break;                                case 1:                                     playing_0_3_0 = 1;                                    play_started_0_3_0 = 1;                                    var isAndroid = (navigator.userAgent.toLowerCase().indexOf(&quot;android&quot;) > -1);                                    var isiOS = (navigator.userAgent.match(\/iPad|iPhone|iPod\/g) ? true : false);                                    if(isiOS || isAndroid) autocheck_0_3 = false;                                    if (!statLogged_0_3 &amp;&amp; youtubeAutocheck_0_3_0) {                                         cvLog_0_3('play_youtube_auto', Math.floor(player_0_3_0.getCurrentTime()), event, 'youtube');                                        logTPTracking_0_3('AutoPlay');                                        statLogged_0_3= 1;                                    } else {                                        if (play_done_0_3_0) {                                            play_done_0_3_0=0;                                                                                              cvLog_0_3('replay_youtube_click', Math.floor(player_0_3_0.getCurrentTime()), event, 'youtube');                                                                                        vCounter_0_3_0=0;                                        } else {                                            cvLog_0_3('play_youtube_click', Math.floor(player_0_3_0.getCurrentTime()), event, 'youtube');                                            logTPTracking_0_3('Play');                                            player_0_3_0.unMute();                                            autoUnmuted_0_3=1;                                            skipIt_0_3=1;                                            statLogged_0_3 = 1                                        }                            }                                    cInterval_0_3_0 = setInterval(function() {volCheck_0_3('youtube'), 1000});                                     startQuartileYoutubeTracking_0_3(duration_0_3_0);                                    break;                                case 2:                                     if ((Math.floor(player_0_3_0.getCurrentTime()) != duration_0_3) &amp;&amp; ( playing_0_3_0)){                                        cvLog_0_3('pause_youtube_click', Math.floor(player_0_3_0.getCurrentTime()), event, 'youtube');                                        logTPTracking_0_3('Pause');                                    } else {                                         var pTime = Math.floor(player_0_3_0.getCurrentTime());                                        if (!scrubbing_0_3) {                                            if ( (pTime > parseInt(vCounter_0_3 + 5)) || (pTime < parseInt(vCounter_0_3 - 5)) ) {                                                if (pTime <= duration_0_3-2) {                                                   scrubbing_0_3=1;                                                   setTimeout(resetSeek_0_3(0, player_0_3_0), 2000);                                                }                                            }                                        }                                    }                                    playing_0_3 = 0;                                    clearInterval(cInterval_0_3_0);                                     stopQuartileYoutubeTracking_0_3();                                    break;                                case 3:                                     \/* Buffering*\/                                    break;                                case 4:                                     \/* Video Cued*\/                                    break;                                case 0:                                     play_done_0_3_0=1;                                    playing_0_3 = 0;                                    cvLog_0_3('stop_youtube_auto', Math.floor(player_0_3_0.getCurrentTime()), event, 'youtube');                                    clearInterval(cInterval_0_3_0);                                     stopQuartileYoutubeTracking_0_3();                                                                        break;                            }                            if(Math.round(player_0_3_0.getCurrentTime() > 0))statLogged_0_3 = 1;                                                                                 }                                }                            }                        });                        }                    },10);                    }          if(vidEle == null &amp;&amp; youtubeEle == null) {            var elem = {};            playerArray_0_3[0] = elem;            recipeArray_0_3.push(elem);          }          if(vidEle != null) {            var pagiHeight = $(&quot;#pagiBar_0_3&quot;).css('height');            var paginationSize = &quot;Medium&quot;;              var paginationIntSize = 0;            if(paginationDisplay_0_3 == 'Always' &amp;&amp; &quot;Bottom&quot; == 'Bottom'){              if(paginationSize==&quot;Small&quot;){                paginationIntSize=25;              }else if(paginationSize==&quot;Medium&quot;){                paginationIntSize=35;              }else{                paginationIntSize=50;              }                          }            var showPlayButtonOverlay = 1;                        appSettingsInfoArr_0_3[0].autoplayDelay = 0*1000;                            if(!showPlayButtonOverlay) {                $('#layer-0-3 .mejs__overlay-play').off(&quot;click&quot;);                var videoClickArea =  document.createElement('div');                var chromelessCheck = 0;                if(!chromelessCheck || chromelessCheck &amp;&amp; isiOS) {                  $(videoClickArea).css('width', $('#layer-0-3 .mejs__overlay-play').width());                  $(videoClickArea).css('height', $('#layer-0-3 .mejs__overlay-play').height());                } else{                  $(videoClickArea).css('width', '300px');                  $(videoClickArea).css('height', '250px');                }                $(videoClickArea).css('position','absolute');                $(videoClickArea).css('z-index','50');                $('#layer-0-3').prepend(videoClickArea);              }            if(&quot;Bottom&quot; == 'Bottom') {              var setHeight = parseInt('250px') - parseInt(pagiHeight);            } else{              var setHeight = parseInt('250px');            }            var words = {&quot;chromeLess&quot;:0,&quot;logo&quot;:0,&quot;videoInfo&quot;:0,&quot;theme&quot;:&quot;dark&quot;,&quot;progressBar&quot;:&quot;red&quot;,&quot;autoplay&quot;:0,&quot;loop&quot;:0,&quot;startTime&quot;:0,&quot;endTime&quot;:0,&quot;related&quot;:0,&quot;autoHidecontrols&quot;:0,&quot;valid&quot;:true,&quot;event&quot;:&quot;&quot;,&quot;action&quot;:&quot;&quot;,&quot;pixelURL&quot;:&quot;&quot;,&quot;showReplayButton&quot;:0,&quot;clickthrough&quot;:1,&quot;enableMutingControls&quot;:0,&quot;mutingControlsPosition&quot;:&quot;Bottom Right&quot;,&quot;autoHideMutingControls&quot;:0,&quot;iconColor&quot;:&quot;light&quot;,&quot;showPlayButtonOverlay&quot;:1,&quot;returnToStart&quot;:0,&quot;startOnReturn&quot;:0,&quot;changeScreenSetting&quot;:&quot;Resume Playback&quot;,&quot;enablePlayerControls&quot;:0,&quot;playerControlsPosition&quot;:&quot;Bottom Left&quot;,&quot;autoHidePlayerControls&quot;:0,&quot;playerIconColor&quot;:&quot;light&quot;,&quot;restartPlayback&quot;:0,&quot;autoplayDelay&quot;:0,&quot;nativeWidth&quot;:&quot;&quot;,&quot;nativeHeight&quot;:&quot;&quot;,&quot;source&quot;:&quot;&quot;,&quot;autoHideYtcontrols&quot;:2,&quot;controlSettings&quot;:&quot;Always Visible&quot;,&quot;displayVidInfo&quot;:0,&quot;showYoutubeLogo&quot;:0};            var obj = {};            $.each(words, function(key, value) {                obj[key] = value;            });            obj['videoName'] = '';            recipeArray_0_3.push(obj);          }          if(imgEle) aniSettings_0_3.imageSettings_0 = {left:imgEle.style.left, top:imgEle.style.top, width:imgEle.style.width, height:imgEle.style.height};          if(vidEle) aniSettings_0_3.imageSettings_0 = {left:vidEle.style.left, top:vidEle.style.top, width:vidEle.style.width, height:vidEle.style.height};          aniSettings_0_3.slideSettings_0 = {left:slideEle.style.left, top:slideEle.style.top};                                               url_cap_Array_0_3[0] = {src: &quot;&quot;, url:&quot;&quot;, logLabel:&quot;&quot;, imageName:&quot;&quot;, caption:&quot;&quot;, uuid:&quot;1cf08b12-fa5f-4d5f-a44a-6427f417cd64&quot;, logged:&quot;false&quot;, openURLIn:&quot;New Tab&quot;};                    if(element){              height = element.clientHeight;              area =  appHeight - paginationIntSize;            if(captionPosition == &quot;Top&quot;){              if(paginationPosition == &quot;Bottom&quot;){                element.style.top = 0;              }else{                element.style.top = paginationIntSize+'px';              }            }else if (captionPosition == &quot;Middle&quot;){              captionTop = (area - height)\/2;              if(paginationPosition == &quot;Top&quot;) captionTop += paginationIntSize;              element.style.top = captionTop+'px';            }else{              if(paginationPosition == &quot;Bottom&quot;){                element.style.top = (area-height)+'px';              }else{              &#9;captionTop = parseInt(appHeight-height);              &#9;captionTop -= parseInt(&quot;12px&quot;);              &#9;if(paginationPosition == &quot;Top&quot;) captionTop -= paginationIntSize;                element.style.top = captionTop+'px';              }            }          }                                        if(0 != 0) slideEle.style.display = &quot;none&quot;;                logTPTracking_0_3(&quot;SlideView&quot;);      var sldEvent = document.createEvent(&quot;CustomEvent&quot;);      slideLog_0_3(&quot;slideshow_show_auto&quot;, sldEvent, url_cap_Array_0_3[0].caption, url_cap_Array_0_3[0].imageName);    }    function fillVideoPlayer_0_3(){      if(recipeArray_0_3[currentImageIndex_0_3].slideshowAssetType != 'Youtube') {      var scale = 1;      var appW = 300;      var appH = 250;      var element = playerArray_0_3[currentImageIndex_0_3];      var orgW = recipeArray_0_3[currentImageIndex_0_3].videoWidth;      var orgH = recipeArray_0_3[currentImageIndex_0_3].videoHeight;      var paginationSize = &quot;Medium&quot;;      var paginationIntSize = 0;      if(paginationDisplay_0_3 == 'Always' &amp;&amp; &quot;Bottom&quot; == 'Bottom'){        if(paginationSize==&quot;Small&quot;){          paginationIntSize=25;        }else if(paginationSize==&quot;Medium&quot;){          paginationIntSize=35;        }else{          paginationIntSize=50;        }              }      $(document.getElementById(&quot;slide_0_3_&quot;+currentImageIndex_0_3)).find('.mejs__container:not(&quot;.slideElementVideo&quot;)').css('width',appW+&quot;px&quot;);      $(document.getElementById(&quot;slide_0_3_&quot;+currentImageIndex_0_3)).find('.mejs__container:not(&quot;.slideElementVideo&quot;)').css('height',appH-paginationIntSize+&quot;px&quot;);          }  }    function hideChromelessMute_0_3(i) {        $('#slide_0_3_' + i + ' #chromeLessMute-0_3_'+currentImageIndex_0_3).css('display','none');    }    function showChromelessMute_0_3(i) {        $('#slide_0_3_' + i + ' #chromeLessMute-0_3_'+currentImageIndex_0_3).css('display','block');    }    function hideChromelessPlay_0_3(i) {        $('#slide_0_3_' + i + ' #chromeLessPlayerControls-0-3_'+currentImageIndex_0_3).css('display','none');    }    function showChromelessPlay_0_3(i) {        $('#slide_0_3_' + i + ' #chromeLessPlayerControls-0-3_'+currentImageIndex_0_3).css('display','block');    }    function toggleChromelessMute_0_3(isAutoUnmute){      var muteEle = $('#chromeLessMute-0_3_'+currentImageIndex_0_3);      var iconColor = recipeArray_0_3[currentImageIndex_0_3].iconColor;        if(muteEle){          if(playerArray_0_3[currentImageIndex_0_3].muted || isAutoUnmute){            muteEle.removeClass(iconColor+'Mute');            muteEle.addClass(iconColor+'UnMute');            $('#chromelessMuteSvg_0-3').hide();            $('#chromelessUnmuteSvg_0-3').show();        }else{          muteEle.removeClass(iconColor+'UnMute');          muteEle.addClass(iconColor+'Mute');          $('#chromelessUnmuteSvg_0-3').hide();          $('#chromelessMuteSvg_0-3').show();        }      }    }    function toggleChromelessPlay_0_3(isAutoPlay){      var playEle = $('#chromeLessPlayerControls-0-3_'+currentImageIndex_0_3);    var iconColor = recipeArray_0_3[currentImageIndex_0_3].iconColor;      if(playEle){        if(playingArray_0_3[currentImageIndex_0_3] || isAutoPlay){        playEle.removeClass(iconColor+'Play');        playEle.addClass(iconColor+'Pause');                $('#chromelessPauseSvg_0-3').show();                $('#chromelessPlaySvg_0-3').hide();      }else{        playEle.removeClass(iconColor+'Pause');        playEle.addClass(iconColor+'Play');                $('#chromelessPlaySvg_0-3').show();                $('#chromelessPauseSvg_0-3').hide();      }    }    }    function volCheck_0_3(type){      if(type == 'customvideo') {        \/*var ytEvent = new CustomEvent(&quot;CustomVideoClick&quot;, {});*\/        var mediaElement = playerArray_0_3[currentImageIndex_0_3];      var ytEvent = document.createEvent(&quot;CustomEvent&quot;);      var pMuted = mediaElement.muted;          var vol = mediaElement.volume;      if(!dontLogVolChange_0_3){         if (muted_0_3 !== pMuted) {           muted_0_3 = pMuted;           if (Math.floor(mediaElement.currentTime) > 1) {                      if (pMuted) {                          cvLog_0_3('mute_video_click', Math.floor(mediaElement.currentTime), ytEvent);                          logTPTracking_0_3('Mute');                      } else {                          cvLog_0_3('unmute_video_click', Math.floor(mediaElement.currentTime), ytEvent);                          logTPTracking_0_3('Unmute');                          unmuteHappenedArr_0_3[currentImageIndex_0_3]=true;                      }                  }         }else{           if (!pMuted) {                      if (vol_0_3 !== vol) {                        unmuteHappenedArr_0_3[currentImageIndex_0_3]=true;                          if (vol_0_3 > vol) {                              cvLog_0_3('voldown_video_click', Math.floor(mediaElement.currentTime), ytEvent);                          } else {                              cvLog_0_3('volup_video_click', Math.floor(mediaElement.currentTime), ytEvent);                          }                      }                  }         }         doRestartPlayback_0_3();      }      else{        muted_0_3 = pMuted;      }      vol_0_3 = vol;      dontLogVolChange_0_3 = 0;    } else if(type == 'youtube'){             var youtubeElement = playerArray_0_3[currentImageIndex_0_3];          var ytEvent = document.createEvent(&quot;CustomEvent&quot;);          ytEvent.initCustomEvent('YouTubeClick', false, false, {});          var pMuted = youtubeElement.isMuted();          var vol = youtubeElement.getVolume();          vCounter_0_3++;                    if (!skipIt_0_3) {              if (muted_0_3 !== pMuted) {                  muted_0_3 = pMuted;                  if (Math.floor(youtubeElement.getCurrentTime()) > 1) {                      if (pMuted) {                          cvLog_0_3('mute_youtube_click', Math.floor(youtubeElement.getCurrentTime()), ytEvent);                          logTPTracking_0_3('Mute');                      } else {                          cvLog_0_3('unmute_youtube_click', Math.floor(youtubeElement.getCurrentTime()), ytEvent);                          logTPTracking_0_3('Unmute');                          unmuteHappened_0_3 = true;                      }                  }              } else {                  if (!pMuted) {                      if (vol_0_3 !== Math.floor(vol)) {                        unmuteHappened_0_3 = true;                          if (vol_0_3 > Math.floor(vol)) {                              if (Math.floor(youtubeElement.getCurrentTime())) {                                  cvLog_0_3('voldown_youtube_click', Math.floor(youtubeElement.getCurrentTime()), ytEvent);                              }                          } else {                              if (Math.floor(youtubeElement.getCurrentTime())) {                                  cvLog_0_3('volup_youtube_click', Math.floor(youtubeElement.getCurrentTime()), ytEvent);                              }                          }                      }                  }              }              doRestartPlayback_0_3();          } else {              muted_0_3 = pMuted;          }          vol_0_3 = Math.floor(vol);          skipIt_0_3=0;          if (vCounter_0_3 >= duration_0_3) {               clearInterval(cInterval_0_3);          }    }    }    function doRestartPlayback_0_3(){        if(!appSettingsInfoArr_0_3[currentImageIndex_0_3].autoPlayWithSound &amp;&amp; appSettingsInfoArr_0_3[currentImageIndex_0_3].restartPlayback &amp;&amp; !restartPlaybackDoneArr_0_3[currentImageIndex_0_3] &amp;&amp; unmuteHappenedArr_0_3[currentImageIndex_0_3]){            restartPlaybackDoneArr_0_3[currentImageIndex_0_3] = true;            dontLogSeek_0_3 = 1;            playerArray_0_3[currentImageIndex_0_3].setCurrentTime(0);        }    }    function toggleReplay_0_3(showReplay, theme, toggle) {      var cssclass = 'bigreplay';      if(showReplay){        if(toggle == 'add'){          $('.mejs__overlay-button').addClass(cssclass);        }else{          $('.mejs__overlay-button').removeClass(cssclass);        }      }    }    function hideControls_0_3(i) {      $('#slide_0_3_' + i + ' .mejs__controls').css('display','none');    }    function showControls_0_3(i) {        $('#slide_0_3_' + i + ' .mejs__controls').css('display','');    }        function cvLog_0_3(stat_log, time, event, type) {      setTimeout(function(){      var videoassetuuid_0_3 = url_cap_Array_0_3[currentImageIndex_0_3].src.split(&quot;\/&quot;);      var duration;            duration = playerArray_0_3[currentImageIndex_0_3].duration;      if ((stat_log == &quot;stop_video_auto&quot;) &amp;&amp; (time==0)) {          time = parseInt(duration);      }            if (time < 0 ) {time=0;}      if (time > duration) {time = duration;}      var assets = &quot;%5B%7B%22name%22%3A%22%22%2C%22src%22%3A%22%22%2C%22clickUrl%22%3A%22%22%2C%22logName%22%3A%22%22%2C%22slideshowAssetType%22%3A%22Uploaded+Asset%22%2C%22videoId%22%3A%22%22%2C%22valid%22%3Atrue%2C%22hasCaption%22%3Afalse%2C%22hasUrl%22%3Atrue%2C%22caption%22%3A%22%22%2C%22width%22%3A%22%22%2C%22height%22%3A%22%22%2C%22slideIsVisible%22%3Atrue%2C%22children%22%3A%5B%7B%22element%22%3A%22b16c83b9-3f47-4da4-bb18-e1afd5e74d15%22%2C%22slideId%22%3A%220%22%2C%22name%22%3A%22SpiritLakeCasino_5949755_300x250_04012019_1.jpg%22%2C%22screensLabel%22%3A%22SpiritLakeCasino_5949755_300x250_04012019_1.jpg%22%2C%22parentApp%22%3A%22eb61dd4c-b1af-4853-b57d-3e29a687a761%22%7D%5D%2C%22videoInfo%22%3A%7B%22chromeLess%22%3A0%2C%22logo%22%3A0%2C%22videoInfo%22%3A0%2C%22theme%22%3A%22dark%22%2C%22progressBar%22%3A%22red%22%2C%22autoplay%22%3A0%2C%22loop%22%3A0%2C%22startTime%22%3A0%2C%22endTime%22%3A0%2C%22related%22%3A0%2C%22autoHidecontrols%22%3A0%2C%22valid%22%3Atrue%2C%22event%22%3A%22%22%2C%22action%22%3A%22%22%2C%22pixelURL%22%3A%22%22%2C%22showReplayButton%22%3A0%2C%22clickthrough%22%3A1%2C%22enableMutingControls%22%3A0%2C%22mutingControlsPosition%22%3A%22Bottom+Right%22%2C%22autoHideMutingControls%22%3A0%2C%22iconColor%22%3A%22light%22%2C%22showPlayButtonOverlay%22%3A1%2C%22returnToStart%22%3A0%2C%22startOnReturn%22%3A0%2C%22changeScreenSetting%22%3A%22Resume+Playback%22%2C%22enablePlayerControls%22%3A0%2C%22playerControlsPosition%22%3A%22Bottom+Left%22%2C%22autoHidePlayerControls%22%3A0%2C%22playerIconColor%22%3A%22light%22%2C%22restartPlayback%22%3A0%2C%22autoplayDelay%22%3A0%2C%22nativeWidth%22%3A%22%22%2C%22nativeHeight%22%3A%22%22%2C%22source%22%3A%22%22%2C%22autoHideYtcontrols%22%3A2%2C%22controlSettings%22%3A%22Always+Visible%22%2C%22displayVidInfo%22%3A0%2C%22showYoutubeLogo%22%3A0%7D%2C%22openURLIn%22%3A%22New+Tab%22%2C%22uuid%22%3A%221cf08b12-fa5f-4d5f-a44a-6427f417cd64%22%7D%5D&quot;;      assets = JSON.parse(decodeURIComponent(assets));      var customStartTime = parseInt(assets[currentImageIndex_0_3].startTime) > 0 ? parseInt(assets[currentImageIndex_0_3].startTime):'0';      var customEndTime = parseInt(assets[currentImageIndex_0_3].endTime) > 0 ? parseInt(assets[currentImageIndex_0_3].endTime):duration;      if(customStartTime > 0 &amp;&amp; (customEndTime == customStartTime)){          customEndTime = duration;      }      var customDuration = customEndTime - customStartTime;      time = time - customStartTime;            var video='';            var videoType='';            if(type == 'youtube') {              var vidId = assets[currentImageIndex_0_3].videoId;          vidId = vidId.replace(&quot;http:\/\/www.youtube.com\/watch?v=&quot;, &quot;&quot;);        vidId = vidId.replace(&quot;https:\/\/www.youtube.com\/watch?v=&quot;, &quot;&quot;);        vidId = vidId.replace(&quot;http:\/\/youtu.be\/&quot;, &quot;&quot;);        vidId = vidId.replace(&quot;https:\/\/youtu.be\/&quot;, &quot;&quot;);              video = 'http:\/\/www.youtube.com\/watch?v=' + vidId;              videoType = 'youtube';            } else{              video = recipeArray_0_3[currentImageIndex_0_3].videoName;              videoType = 'customvideo';            }            var ytDat_0_3 = {&quot;dest&quot;: &quot;null&quot;,&quot;duration&quot;: customDuration,&quot;time&quot;: time, &quot;assetName&quot;: recipeArray_0_3[currentImageIndex_0_3].videoName, &quot;video&quot;: video, &quot;playTime&quot;: time,&quot;player&quot;: videoType,&quot;screenIndex&quot;: activeScreen+1, assetUUID: videoassetuuid_0_3[1]};            logHtmlEvent(event, activeScreen, stat_log, ytDat_0_3);        }, 500);    }        function ytLeave_0_3() {      if (playingArray_0_3[currentImageIndex_0_3]) {        playingWhenLeft_0_3 = 1;      } else {        playingWhenLeft_0_3 = 0;      }       if (!parent.window.preventSpecialFormat) {          if(typeof playerArray_0_3[currentImageIndex_0_3].pause == 'function' || typeof playerArray_0_3[currentImageIndex_0_3].pauseVideo == 'function' ){            playerArray_0_3[currentImageIndex_0_3].pause();            if(recipeArray_0_3[currentImageIndex_0_3]) {              playerArray_0_3[currentImageIndex_0_3].pause();            }          }        }    }    function ytReturn_0_3() {        if (!parent.window.preventSpecialFormat &amp;&amp; ( (recipeArray_0_3[currentImageIndex_0_3].startOnReturn &amp;&amp; recipeArray_0_3[currentImageIndex_0_3].autoplay) || (recipeArray_0_3[currentImageIndex_0_3].startOnReturn &amp;&amp; playingWhenLeft_0_3 ) ) ) {        if (&quot;&quot; === 'From Beginning') {            player_element_0_3.currentTime = 0;        }        isReturnAutoPlay_0_3 = 1; \/* Set this flag to handle some volume change logic. *\/        dontLogVolChange_0_3 = 1;        player_element_0_3.muted=true;        playerArray_0_3[currentImageIndex_0_3].play();                $('#layer-0-3 .mejs__overlay-error').parent()[0].style.position = &quot;absolute&quot;;        $('#layer-0-3 .mejs__overlay-error').parent()[0].style.left = &quot;-99999px&quot;;                var ytEvent = document.createEvent(&quot;CustomEvent&quot;);        cvLog_0_3('resume_video_auto', Math.floor(player_element_0_3.currentTime), ytEvent);        }    }    function goToHref_0_3(evt,href) {      href = (href == undefined) ? 'http:\/\/www.spiritlakecasino.com\/' : href;      preventEventProp(evt);      var url = (url_cap_Array_0_3[currentImageIndex_0_3].url == undefined || url_cap_Array_0_3[currentImageIndex_0_3].url == '') ? href : url_cap_Array_0_3[currentImageIndex_0_3].url;      if((url.indexOf(&quot;http:\/\/&quot;) != 0) &amp;&amp; (url.indexOf(&quot;https:\/\/&quot;))) {            url = &quot;http:\/\/&quot; + url;        }        var openURL = &quot;_blank&quot;;                if(url_cap_Array_0_3[currentImageIndex_0_3].openURLIn != &quot;Same Tab&quot;) {            openURL = &quot;_blank&quot;;        } else{            openURL = &quot;_top&quot;;        }        if (url != 'http:\/\/'){            if(url_cap_Array_0_3[currentImageIndex_0_3].openURLIn != &quot;Same Tab&quot;) { \/* Open in new tab *\/                                if(0){                      window.open(&quot;https:\/\/adclick.g.doubleclick.net\/pcs\/click?xai=AKAOjst0CUzh4DGTUXNF-HAvJ95Kc26KyAobg6J5iBO8cUJU4e7QAx8vBTKnGOavuOC8NWdkEQ_qywvW3nI24ubjP2HAx5QBeCVszE2Y_axOaLRFlQBUAGyLRcS3b4yTWgh2Uskv3_t2ta7n_1SKhKd3aBNhWsf_tQHB_mvtmbOjYaLBtwkJjshtrn3W7YcQwHx62d8jSXzzOftmUgSCZ16m38MVSIqUiJPGD1-bQi01849cDQ_34yc7FP03Q8Dj5A29SQ-s8TzC7-g&amp;sai=AMfl-YRK-lcjFrnVJeDHiJY9n96yQLIeaA1RiEvAqGYVfuHnJ_Wx1EKOFUT4gkp11HPWbJ0j4Pwsp2nLKtveXnzK0mV7csNiWp6IOwJeLq4T_gv4YY9KNXrbQhgv3X0&amp;sig=Cg0ArKJSzEYYEh0jbliQEAE&amp;urlfix=1&amp;adurl=&quot; + url, openURL);                  } else {                      window.open(&quot;https:\/\/adclick.g.doubleclick.net\/pcs\/click?xai=AKAOjst0CUzh4DGTUXNF-HAvJ95Kc26KyAobg6J5iBO8cUJU4e7QAx8vBTKnGOavuOC8NWdkEQ_qywvW3nI24ubjP2HAx5QBeCVszE2Y_axOaLRFlQBUAGyLRcS3b4yTWgh2Uskv3_t2ta7n_1SKhKd3aBNhWsf_tQHB_mvtmbOjYaLBtwkJjshtrn3W7YcQwHx62d8jSXzzOftmUgSCZ16m38MVSIqUiJPGD1-bQi01849cDQ_34yc7FP03Q8Dj5A29SQ-s8TzC7-g&amp;sai=AMfl-YRK-lcjFrnVJeDHiJY9n96yQLIeaA1RiEvAqGYVfuHnJ_Wx1EKOFUT4gkp11HPWbJ0j4Pwsp2nLKtveXnzK0mV7csNiWp6IOwJeLq4T_gv4YY9KNXrbQhgv3X0&amp;sig=Cg0ArKJSzEYYEh0jbliQEAE&amp;urlfix=1&amp;adurl=&quot; + encodeURIComponent(url), openURL);                  }                          shLog_0_3(&quot;serve_clickthrough&quot;, evt, url, url_cap_Array_0_3[currentImageIndex_0_3].caption, url_cap_Array_0_3[currentImageIndex_0_3].imageName);            logTPTracking_0_3(&quot;Click&quot;);          } else { \/* Open in the same tab *\/              var clickAddress;                                  if(0){                        clickAddress = &quot;https:\/\/adclick.g.doubleclick.net\/pcs\/click?xai=AKAOjst0CUzh4DGTUXNF-HAvJ95Kc26KyAobg6J5iBO8cUJU4e7QAx8vBTKnGOavuOC8NWdkEQ_qywvW3nI24ubjP2HAx5QBeCVszE2Y_axOaLRFlQBUAGyLRcS3b4yTWgh2Uskv3_t2ta7n_1SKhKd3aBNhWsf_tQHB_mvtmbOjYaLBtwkJjshtrn3W7YcQwHx62d8jSXzzOftmUgSCZ16m38MVSIqUiJPGD1-bQi01849cDQ_34yc7FP03Q8Dj5A29SQ-s8TzC7-g&amp;sai=AMfl-YRK-lcjFrnVJeDHiJY9n96yQLIeaA1RiEvAqGYVfuHnJ_Wx1EKOFUT4gkp11HPWbJ0j4Pwsp2nLKtveXnzK0mV7csNiWp6IOwJeLq4T_gv4YY9KNXrbQhgv3X0&amp;sig=Cg0ArKJSzEYYEh0jbliQEAE&amp;urlfix=1&amp;adurl=&quot; + url;                    } else {                        clickAddress = &quot;https:\/\/adclick.g.doubleclick.net\/pcs\/click?xai=AKAOjst0CUzh4DGTUXNF-HAvJ95Kc26KyAobg6J5iBO8cUJU4e7QAx8vBTKnGOavuOC8NWdkEQ_qywvW3nI24ubjP2HAx5QBeCVszE2Y_axOaLRFlQBUAGyLRcS3b4yTWgh2Uskv3_t2ta7n_1SKhKd3aBNhWsf_tQHB_mvtmbOjYaLBtwkJjshtrn3W7YcQwHx62d8jSXzzOftmUgSCZ16m38MVSIqUiJPGD1-bQi01849cDQ_34yc7FP03Q8Dj5A29SQ-s8TzC7-g&amp;sai=AMfl-YRK-lcjFrnVJeDHiJY9n96yQLIeaA1RiEvAqGYVfuHnJ_Wx1EKOFUT4gkp11HPWbJ0j4Pwsp2nLKtveXnzK0mV7csNiWp6IOwJeLq4T_gv4YY9KNXrbQhgv3X0&amp;sig=Cg0ArKJSzEYYEh0jbliQEAE&amp;urlfix=1&amp;adurl=&quot; + encodeURIComponent(url);                    }                                logTPTracking_0_3(&quot;Click&quot;);                shLogAndNavigate_0_3(&quot;serve_clickthrough&quot;, evt, url, url_cap_Array_0_3[currentImageIndex_0_3].caption, url_cap_Array_0_3[currentImageIndex_0_3].imageName, clickAddress);          }    }    }        function shLog_0_3(stat_log, event, url, caption, imageName) {              var shassetuuid_0_3 = url_cap_Array_0_3[currentImageIndex_0_3].src.split(&quot;\/&quot;);        var logLabel_0_3 = url_cap_Array_0_3[currentImageIndex_0_3].logLabel;        if(logLabel_0_3 == '') {logLabel_0_3 = imageName};          var shDat_0_3 = {dest: url, assetName: imageName, assetUUID: shassetuuid_0_3[1], slideshowUUID: uuid, label: logLabel_0_3};          logHtmlEvent(event, activeScreen, stat_log, shDat_0_3);            }        function shLogAndNavigate_0_3(stat_log, event, url, caption, imageName, clickAddress) {                    var shassetuuid_0_3 = url_cap_Array_0_3[currentImageIndex_0_3].src.split(&quot;\/&quot;);            var logLabel_0_3 = url_cap_Array_0_3[currentImageIndex_0_3].logLabel;            if(logLabel_0_3 == '') {logLabel_0_3 = imageName};            var shDat_0_3 = {dest: url, assetName: imageName, assetUUID: shassetuuid_0_3[1], slideshowUUID: uuid, label: logLabel_0_3};            logClickAndNavigate(event, activeScreen, stat_log, shDat_0_3, clickAddress);            }    function slideLog_0_3(stat_log, event, caption, imageName) {              url_cap_Array_0_3[currentImageIndex_0_3].logged = true;        var assetuuid_0_3 = url_cap_Array_0_3[currentImageIndex_0_3].src.split(&quot;\/&quot;);        var logLabel_0_3 = url_cap_Array_0_3[currentImageIndex_0_3].logLabel;        if(logLabel_0_3 == '') {logLabel_0_3 = imageName};        var slideDat_0_3 = {assetName: imageName, assetUUID: assetuuid_0_3[1], slideshowUUID: uuid, label: logLabel_0_3};          logHtmlEvent(event, activeScreen, stat_log, slideDat_0_3);            }        function autoStart_0_3() {      if(transitionType_0_3 == &quot;Automatic&quot; &amp;&amp; totalImages_0_3 > 1){        interval_0_3 = setInterval(function(){          if(!mouseOver_0_3  || !transitionPauseOnHover_0_3){            clickArrow_0_3(null, 1, true);          }        }, transitionDuration_0_3*1000);      }      setActions_0_3();    }        function clickPagiBtn_0_3(event, index) {      if(currentImageIndex_0_3 != index){        slideLog_0_3(&quot;slideshow_show_click&quot;, event, url_cap_Array_0_3[currentImageIndex_0_3].caption, url_cap_Array_0_3[currentImageIndex_0_3].imageName);        if(event) preventEventProp(event);        clearInterval_0_3();        hideCurrent_0_3( currentImageIndex_0_3 );        previousImageIndex_0_3 = currentImageIndex_0_3;        currentImageIndex_0_3 = index;        var dir = (currentImageIndex_0_3 > previousImageIndex_0_3)? 1 : -1;        if(currentImageIndex_0_3 == 0 &amp;&amp; previousImageIndex_0_3 == url_cap_Array_0_3.length-1) dir = 1;        if(currentImageIndex_0_3 == url_cap_Array_0_3.length-1 &amp;&amp; previousImageIndex_0_3 == 0) dir = -1;        animateMe_0_3(dir);      }    }    function setUpTrackingVars_0_3(settings){            var obj = {type:&quot;&quot;,url:&quot;&quot;, hash:&quot;74be16979710d4c4e7c6647856088456&quot;};    }    function logTPTracking_0_3(which){              for(i=0;i<this['engage'+which+'_0_3'].length;i++){          if(url_cap_Array_0_3[currentImageIndex_0_3].uuid == this['engage'+which+'_0_3'][i].uuid){            logThirdPartyTracking(this['engage'+which+'_0_3'][i].type, this['engage'+which+'_0_3'][i].url, this['engage'+which+'_0_3'][i].hash);          }        }          }        function updatePagiBtn_0_3(val, func){      val = (val)? val : 0;      func = (func)? func : 0;              var color = (func == 1) ? paginationDotColor_0_3 : &quot;none&quot;;        document.getElementById(&quot;pagiBtn_0_3_&quot;+val).style.background = color;          }        function hideCurrent_0_3(val){      if(t_0_3_2){        prev_0_3.style.display = &quot;none&quot;;        t_0_3_2.kill();      }      var element = document.getElementById(&quot;slide_0_3_&quot;+val);      playerArray_0_3[previousImageIndex_0_3].isPaused = playerArray_0_3[previousImageIndex_0_3].paused;      prev_0_3 = element;      var slideId = currentImageIndex_0_3;      if(val != slideId) {        if (typeof window[&quot;leaveParentEvents_&quot;+val] !== 'undefined') {          for (var index = 0; index < window[&quot;leaveParentEvents_&quot;+val].length; ++index) {            window[window[&quot;leaveParentEvents_&quot;+val][index]]();          }        }      }      var speed = transitionSpeed_0_3;      updatePagiBtn_0_3(val, 1);      t_0_3_2 = TweenLite.to(element, speed, {opacity:0, onComplete:function(){        prev_0_3.style.display = &quot;none&quot;;      }});    }        function clickArrow_0_3(event, dir, auto) {      var save = currentImageIndex_0_3;      previousImageIndex_0_3 = save;      currentImageIndex_0_3 += dir;      if(currentImageIndex_0_3 == -1){        currentImageIndex_0_3 = (totalImages_0_3-1);      }      if(currentImageIndex_0_3 == totalImages_0_3){        currentImageIndex_0_3 = 0;      }      if(!auto){        logTPTracking_0_3(&quot;SlideView&quot;);        slideLog_0_3(&quot;slideshow_show_click&quot;, event, url_cap_Array_0_3[currentImageIndex_0_3].caption, url_cap_Array_0_3[currentImageIndex_0_3].imageName);      }      else{                if(url_cap_Array_0_3[currentImageIndex_0_3].logged == &quot;false&quot;){          logTPTracking_0_3(&quot;SlideView&quot;);          var sldEvent = document.createEvent(&quot;CustomEvent&quot;);          slideLog_0_3(&quot;slideshow_show_auto&quot;, sldEvent, url_cap_Array_0_3[currentImageIndex_0_3].caption, url_cap_Array_0_3[currentImageIndex_0_3].imageName);        }      }    if(event){      preventEventProp(event);      if(transitionEffect_0_3 == &quot;Slide&quot; &amp;&amp; transitionType_0_3 == &quot;Automatic&quot;){        mobileTouchDirection_0_3 = (dir == 1) ? &quot;From Left&quot; : &quot;From Right&quot;;      }    }    fillVideoPlayer_0_3();        clearInterval_0_3();    hideCurrent_0_3(save);    animateMe_0_3(dir);    }    function clearInterval_0_3() {      clearInterval(interval_0_3);      interval_0_3 = 0;    }        function scrollRail_0_3(event,dir,fromThumbArrows){      if(event) preventEventProp(event);    if(thumbnailPagi_0_3) {      var railEle = document.getElementById(&quot;thumb_rail_0_3&quot;);      var pagiItemHolderWidth = parseInt(document.getElementById(&quot;pagi_item_holder_0_3&quot;).style.width);      visibleThumbs_0_3 = Math.floor(pagiItemHolderWidth \/ ( (thumbSize_0_3 + (thumbHighlightSize0_3*4)) - thumbHighlightSize0_3));      var maxEndLeft = ( (thumbSize_0_3 + (thumbHighlightSize0_3*4)) - thumbHighlightSize0_3)*dir;      maxEndLeft *= (totalImages_0_3-visibleThumbs_0_3);      maxEndLeft = -Math.abs(maxEndLeft);      if(!fromThumbArrows){        var leftVal = thumbSize_0_3 + (thumbHighlightSize0_3*4);        leftVal -= thumbHighlightSize0_3;        leftVal *= currentImageIndex_0_3;        leftVal = -Math.abs(leftVal);        if(maxEndLeft > leftVal) leftVal = maxEndLeft;        if(!hoverOverThumbRail_0_3){          railEle.style.left = leftVal + &quot;px&quot;;        }      }      else{        railLeft_0_3 = parseInt(railEle.style.left);        railLeft_0_3 -= (( (thumbSize_0_3 + (thumbHighlightSize0_3*4)) - thumbHighlightSize0_3)*dir);        if(dir==1 &amp;&amp; maxEndLeft > railLeft_0_3) railLeft_0_3 = maxEndLeft;        if(dir == -1 &amp;&amp; railLeft_0_3 > 0) railLeft_0_3 = 0;        railEle.style.left = railLeft_0_3 + &quot;px&quot;;      }    } else{      var railEle = document.getElementById(&quot;dot_rail_0_3&quot;);      var pagiItemHolderWidth = parseInt(document.getElementById(&quot;pagi_item_holder_0_3&quot;).style.width);      var dotSize = 9 + 4;      visibleThumbs_0_3 = Math.floor(pagiItemHolderWidth\/dotSize);      var maxEndLeft = (dotSize*dir);      maxEndLeft *= (totalImages_0_3-visibleThumbs_0_3);      maxEndLeft = -Math.abs(maxEndLeft);      if(!fromThumbArrows){        var leftVal = dotSize;        leftVal -= thumbHighlightSize0_3;        leftVal *= currentImageIndex_0_3;        leftVal = -Math.abs(leftVal);        if(maxEndLeft > leftVal) leftVal = maxEndLeft;        if(!hoverOverThumbRail_0_3){          railEle.style.left = leftVal + &quot;px&quot;;        }      }      else{        railLeft_0_3 = parseInt(railEle.style.left);        railLeft_0_3 -= (dotSize*dir);        if(dir==1 &amp;&amp; maxEndLeft > railLeft_0_3) railLeft_0_3 = maxEndLeft;        if(dir == -1 &amp;&amp; railLeft_0_3 > 0) railLeft_0_3 = 0;        railEle.style.left = railLeft_0_3 + &quot;px&quot;;      }    }    }        function animateMe_0_3(whichArrowClick) {      updatePagiBtn_0_3(currentImageIndex_0_3, 0);      if(t_0_3) t_0_3.kill();      var element = document.getElementById(&quot;slide_0_3_&quot;+currentImageIndex_0_3);      var prevElement = document.getElementById(&quot;slide_0_3_&quot;+previousImageIndex_0_3);      if(!jQuery.isEmptyObject(playerArray_0_3[currentImageIndex_0_3]) &amp;&amp; !playerArray_0_3[currentImageIndex_0_3].isPaused &amp;&amp; playerArray_0_3[currentImageIndex_0_3].isPaused != undefined) {        if($(element).find('video').length == 1) {          if(playerArray_0_3[currentImageIndex_0_3].ended &amp;&amp; !recipeArray_0_3[currentImageIndex_0_3].loop) {          } else{            playerArray_0_3[currentImageIndex_0_3].play();            playingArray_0_3[currentImageIndex_0_3] = 1;          }        }      } else if(playerArray_0_3[currentImageIndex_0_3].isPaused == undefined &amp;&amp; recipeArray_0_3[currentImageIndex_0_3].autoplay) {        if(recipeArray_0_3[currentImageIndex_0_3].slideshowAssetType =='Youtube') {          playerArray_0_3[currentImageIndex_0_3].playVideo();        } else{          playerArray_0_3[currentImageIndex_0_3].play();        }        playingArray_0_3[currentImageIndex_0_3] = 1;      if(isAndroid){          if(playerArray_0_3[currentImageIndex_0_3].currentTime == 0){            var autoEvent = new CustomEvent(&quot;AndroidAuto&quot;, {});            cvLog_0_3('play_video_auto', Math.floor(playerArray_0_3[currentImageIndex_0_3].currentTime), autoEvent);            logTPTracking_0_3('AutoPlay');          }              if(muted_0_3)playerArray_0_3[currentImageIndex_0_3].muted=true;        else if(!muted_0_3)playerArray_0_3[currentImageIndex_0_3].muted=false;        playingArray_0_3[currentImageIndex_0_3] = 1;        if($('#playButtonDiv-0-3_'+currentImageIndex_0_3))$('#playButtonDiv-0-3_'+currentImageIndex_0_3).css(&quot;opacity&quot;, &quot;0&quot;);      }      toggleChromelessPlay_0_3();        if(!recipeArray_0_3[currentImageIndex_0_3].autoPlayWithSound) {          if(recipeArray_0_3[currentImageIndex_0_3].slideshowAssetType =='Youtube') {            playerArray_0_3[currentImageIndex_0_3].mute();          } else{            playerArray_0_3[currentImageIndex_0_3].setMuted(true);          }        }      }            if(!jQuery.isEmptyObject(playerArray_0_3[previousImageIndex_0_3])) {        if($(prevElement).find('video').length == 1) {            if(typeof playerArray_0_3[previousImageIndex_0_3].pause == 'function'){               playerArray_0_3[previousImageIndex_0_3].pause();               playingArray_0_3[previousImageIndex_0_3] = 0;               if($('#playButtonDiv_'+previousImageIndex_0_3))$('#playButtonDiv_'+previousImageIndex_0_3).css(&quot;opacity&quot;, &quot;100&quot;);          }        } else if($(prevElement).find('.slideshow-youtube-frame-wrapper iframe').length == 1) {           playerArray_0_3[previousImageIndex_0_3].pauseVideo();        }      }      var aniTo = {};      var dir = (mobileTouchDirection_0_3 == &quot;&quot;) ? transitionDirection_0_3 : mobileTouchDirection_0_3;      var speed = transitionSpeed_0_3;    if(whichArrowClick){        if(dir == &quot;Arrow Direction&quot;){          dir = (whichArrowClick == 1)? &quot;From Left&quot;: &quot;From Right&quot;;        }      }      element.style.display = &quot;block&quot;;      aniTo.onComplete=aniDone_0_3;      element.style.opacity = 1;      switch(transitionEffect_0_3){        case &quot;Fade&quot;:          aniTo.opacity = 1;          element.style.opacity = 0;        break;        case &quot;Scale&quot;:          element = document.getElementById(&quot;img_0_3_&quot;+currentImageIndex_0_3);          \/* If this is not an image, then we need to find the video *\/          if (element === null) {               if(recipeArray_0_3[currentImageIndex_0_3].slideshowAssetType =='Youtube') {                   element = document.getElementById(&quot;youtubeWrapper_0_3_&quot;+currentImageIndex_0_3);               }               else if(recipeArray_0_3[currentImageIndex_0_3].slideshowAssetType =='Uploaded Asset') {                   element = document.getElementById(&quot;vidWrapper_0_3_&quot;+currentImageIndex_0_3);               }          }          aniTo.transform = 'scale(1)';        break;        case &quot;Slide&quot;:          aniTo.top = aniSettings_0_3[&quot;slideSettings_&quot;+currentImageIndex_0_3].top;          aniTo.left = aniSettings_0_3[&quot;slideSettings_&quot;+currentImageIndex_0_3].left;          if(dir == &quot;From Top&quot;){            element.style.top = (appH_0_3 * -1)+'px';        }else if(dir == &quot;From Bottom&quot;){          element.style.top = appH_0_3+'px';        }else if(dir == &quot;From Left&quot;){          element.style.left = (appW_0_3 * -1)+'px';        }else if(dir == &quot;From Right&quot;){          element.style.left = appW_0_3+'px';        }        break;      }      if(transitionEffect_0_3 != &quot;Scale&quot;){        t_0_3 = TweenLite.to(element, speed, aniTo);      }else{        t_0_3 = TweenLite.fromTo(element, speed,{transform:'scale(0)'}, aniTo);      }      mobileTouchDirection_0_3 = &quot;&quot;;      setActions_0_3();    }        function setActions_0_3() {      if (url_cap_Array_0_3[currentImageIndex_0_3].actionsSet === undefined) {        url_cap_Array_0_3[currentImageIndex_0_3].actionsSet = true;        var slideId = currentImageIndex_0_3;        if (typeof window[&quot;fireParentEvents_&quot;+slideId] !== 'undefined') {          for (var index = 0; index < window[&quot;fireParentEvents_&quot;+slideId].length; ++index) {            window[window[&quot;fireParentEvents_&quot;+slideId][index]]();          }        }      }    }      function resetSeek_0_3(i, player) {        var ytEvent = new CustomEvent(&quot;YouTubeClick&quot;, {});        scrubbing_0_3=0;        var pTime = Math.floor(player.getCurrentTime());        vCounter_0_3 = pTime;        cvLog_0_3('seek_youtube_click', pTime, ytEvent, 'youtube');    }    function aniDone_0_3(){      if(interval_0_3 == 0 &amp;&amp; transitionType_0_3 == &quot;Automatic&quot; &amp;&amp; (!mouseOver_0_3 || !transitionPauseOnHover_0_3) &amp;&amp; (transitionLoop_0_3 || (!transitionLoop_0_3 &amp;&amp; (currentImageIndex_0_3 < (totalImages_0_3-1)) ) )){        autoStart_0_3();      }    }    function hoverOver_0_3() {      mouseOver_0_3 = true;      if(arrowDisplay_0_3 == &quot;On Hover&quot; || arrowDisplay_0_3 == &quot;Always&quot;){        document.getElementById(&quot;LArrow_0_3&quot;).style.display = &quot;block&quot;;        document.getElementById(&quot;RArrow_0_3&quot;).style.display = &quot;block&quot;;      }else{        document.getElementById(&quot;LArrow_0_3&quot;).style.display = &quot;none&quot;;        document.getElementById(&quot;RArrow_0_3&quot;).style.display = &quot;none&quot;;      }      if(paginationDisplay_0_3 == &quot;On Hover&quot; || paginationDisplay_0_3 == &quot;Always&quot;){        document.getElementById(&quot;pagiBar_0_3&quot;).style.display = &quot;block&quot;;      }else{        document.getElementById(&quot;pagiBar_0_3&quot;).style.display = &quot;none&quot;;      }            if(arrowType_0_3 == 'Hitbox') {        document.getElementById(&quot;LArrow_0_3&quot;).style.display = &quot;block&quot;;        document.getElementById(&quot;RArrow_0_3&quot;).style.display = &quot;block&quot;;      }      if(transitionPauseOnHover_0_3) clearInterval_0_3();    }    function hoverOut_0_3() {      mouseOver_0_3 = false;      if(arrowDisplay_0_3 == &quot;Always&quot;){        document.getElementById(&quot;LArrow_0_3&quot;).style.display = &quot;block&quot;;        document.getElementById(&quot;RArrow_0_3&quot;).style.display = &quot;block&quot;;      }else{        document.getElementById(&quot;LArrow_0_3&quot;).style.display = &quot;none&quot;;        document.getElementById(&quot;RArrow_0_3&quot;).style.display = &quot;none&quot;;      }      if(paginationDisplay_0_3 == &quot;Always&quot;){        document.getElementById(&quot;pagiBar_0_3&quot;).style.display = &quot;block&quot;;      }else{        document.getElementById(&quot;pagiBar_0_3&quot;).style.display = &quot;none&quot;;      }      if(arrowType_0_3 == 'Hitbox') {        document.getElementById(&quot;LArrow_0_3&quot;).style.display = &quot;block&quot;;        document.getElementById(&quot;RArrow_0_3&quot;).style.display = &quot;block&quot;;      }      if(transitionType_0_3 == &quot;Automatic&quot; &amp;&amp; transitionPauseOnHover_0_3){ clearInterval_0_3(); autoStart_0_3(); }    }                fireEvents_0.push(&quot;ssAppInit_0_3&quot;,&quot;positionCaption_0_3&quot;,&quot;autoStart_0_3&quot;,&quot;updatePagiBtn_0_3&quot;);        leaveScreenEvents_0.push(&quot;ytLeave_0_3&quot;);        reenterScreenEvents_0.push(&quot;ytReturn_0_3&quot;);    var slideshow_content_0_3='\n\n<div>\n<div style=&quot;overflow:hidden; position:absolute; width:300px; height:250px;&quot;>\n<div style=&quot;position:absolute;width:100%;height:100%;overflow:hidden;top:0;left:0;-webkit-user-select: none;-khtml-user-select: none;-moz-user-select: none;-o-user-select: none;user-select: none;cursor:pointer&quot; id=&quot;slide_0_3_0&quot;onclick=&quot;goToHref_0_3(event);&quot;>\n<div class=&quot;slideItem_0_3&quot;>\n<div style=&quot;top: 0px; left: 0px; background-color: transparent; filter: alpha(opacity=100); -moz-opacity: 1.00; -khtml-opacity: 1.00; opacity: 1.00; border: 0px solid ; width:300px; height:250px; position: absolute;z-Index:1008;&quot; id=&quot;layer-0-2&quot; class=&quot;&quot;>        <img id=&quot;img-0-2&quot; src=&quot;https:\/\/assets.adventivecdn.com\/257\/ec204495-e229-4a84-a836-e815a9df9065&quot; style=&quot;width:300px; height:250px; position: absolute;z-Index:1008;&quot; alt=&quot;&quot; title=&quot;&quot; onload=&quot;&quot; \/>    <\/div>\n<\/div>\n<\/div>\n<div style=&quot;height:35px;width:100%;background-color:#333333;position:absolute;overflow:hidden;bottom:0;filter: alpha(opacity=100); -moz-opacity: 1.00; -khtml-opacity: 1.00; opacity: 1.00; display:none;; z-index:2002&quot; id=&quot;pagiBar_0_3&quot;>\n<div id=&quot;pagi_item_holder_0_3&quot; style=&quot;width:13px; height:11px;top:13px;position:relative;margin:0 auto;z-index:5;&quot;>\n<div id=&quot;dot_rail_0_3&quot; style=&quot;width:13px; height:100%;position:absolute; left: 0; z-index:1;transition: left 300ms;-webkit-user-select: none;-khtml-user-select: none;-moz-user-select: none;-o-user-select: none;user-select: none;&quot;>\n<div id=&quot;pagiBtn_0_3_0&quot; style=&quot;width:9px;height:9px;background-color: #ffffff;border:1px solid #ffffff;float:left;margin-left:1px;margin-right:1px;position:relative;-moz-border-radius: 12px;-webkit-border-radius: 12px;border-radius: 12px;&quot; onclick=&quot;clickPagiBtn_0_3(event,0);&quot;> <\/div>\n<\/div><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div id=&quot;LArrow_0_3&quot; onclick=&quot;clickArrow_0_3(event, -1);&quot; style=&quot;height:75px; top:100px; display:none; float:left; width:auto; position: relative; z-index:2002;&quot;>\n<div style=&quot;width:50px; height:50px; position:relative;filter: alpha(opacity=100); -moz-opacity: 1.00; -khtml-opacity: 1.00; opacity: 1.00; -webkit-user-select: none;-khtml-user-select: none;-moz-user-select: none;-o-user-select: none;user-select: none;&quot;> <svg style=&quot;position:absolute; left:-8px;stroke:#333333; transform:scaleX(-1);&quot; class=&quot;svgArrow&quot; width=&quot;50&quot; height=&quot;50&quot;><use xmlns:xlink=&quot;http:\/\/www.w3.org\/1999\/xlink&quot; xlink:href=&quot;#arrow&quot;><\/use><\/svg> <\/div>\n<\/p><\/div>\n<div id=&quot;RArrow_0_3&quot; onclick=&quot;clickArrow_0_3(event, 1);&quot; style=&quot;height:75px; top:100px; display:none; float:right; width:auto; position:relative; z-index:2002;&quot;>\n<div style=&quot;width:50px; height:50px; position:relative;filter: alpha(opacity=100); -moz-opacity: 1.00; -khtml-opacity: 1.00; opacity: 1.00; -webkit-user-select: none;-khtml-user-select: none;-moz-user-select: none;-o-user-select: none;user-select: none;&quot;> <svg style=&quot;position:absolute; left:8px;stroke:#333333;&quot; class=&quot;svgArrow&quot; width=&quot;50&quot; height=&quot;50&quot;><use xmlns:xlink=&quot;http:\/\/www.w3.org\/1999\/xlink&quot; xlink:href=&quot;#arrow&quot;><\/use><\/svg> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<p>';   if (parent.window.preventSpecialFormat) {        var autocheck_0_4 = 0;     } else {        var autocheck_0_4 = 0;    }        var ua = navigator.userAgent.toLowerCase();  var isAndroid = (ua.indexOf(&quot;android&quot;) > -1);  var isiOS = ( navigator.userAgent.match(\/iPad|iPhone|iPod\/g) ? true : false );  var mobileTouchDirection_0_4 = &quot;&quot;;   var currentImageIndex_0_4 = 0;  var previousImageIndex_0_4 = 0;  var totalImages_0_4 = 1;  var transitionType_0_4 = &quot;Automatic&quot;;  var transitionPauseOnHover_0_4 = Boolean();  var transitionDuration_0_4 = 3;  var transitionEffect_0_4 = &quot;Fade&quot;;  var transitionDirection_0_4 = &quot;From Left&quot;;  var transitionSpeed_0_4 = 1;  var transitionLoop_0_4 = Boolean(1);  var arrowDisplay_0_4 = &quot;On Hover&quot;;  var paginationDisplay_0_4 = &quot;Never&quot;;  var paginationDotColor_0_4 = &quot;#ffffff&quot;;  var interval_0_4 = 0;  var t_0_4 = null;  var t_0_4_2 = null;  var appH_0_4 = 250;  var appW_0_4 = 300;  var mouseOver_0_4 = false;  var prev_0_4 = null;  var aniSettings_0_4 = {};  var url_cap_Array_0_4 = null;  var  engageSlideView_0_4 = [];  var  engageClick_0_4 = [];  var thumbSize_0_4 = 23;  var thumbHighlightSize0_4 = 3;  var railLeft_0_4 = 0;  var oldRailLeft_0_4 = 0;  var visibleThumbs_0_4 = 0;  var thumbClickCounter_0_4 = 0;  var hoverOverThumbRail_0_4 = false;  var arrowType_0_4 = &quot;Default&quot;;  var thumbnailPagi_0_4 = Boolean(0);  var player_0_4;   var player_element_0_4;  var muted_0_4;  var vol_0_4;  var autoUnmuted_0_4=0;  var duration_0_4;  var play_done_0_4 = 0;  var play_started_0_4 = 0;  var playing_0_4 = 0;  var statLogged_0_4 = 0;  var inViewed_0_4 = 0;  var outViewed_0_4 = 0;  var dontLogVolChange_0_4 = 0;  var dontLogSeek_0_4 = 0;  var dontLogLoop_0_4 = 0;  var cInterval_0_4;  var volInterval_0_4;  var isReturnAutoPlay_0_4 = 0;  var playingWhenLeft_0_4 = 0;  var playerArray_0_4 = [];  var recipeArray_0_4 = [];  var uuid;  var dontLogPlay_0_4 = [];  var scrubbing_0_4 = 0;  var vCounter_0_4 = 0;  var skipIt_0_4 = 0;  var controlOffset_0_4;  var widthDiv_0_4;  var HeightDiv_0_4;  var muteshift_0_4_1;  var playshift_0_4_1;  var playingArray_0_4 = [];  var autoUnmutedArray_0_4 = [];  var restartPlaybackDoneArr_0_4 = [];   var unmuteHappenedArr_0_4 = [];   var restartedVideoUnmute_0_4 = false;   var appSettingsInfoArr_0_4 = [];  var previewImagesArr_0_4 = [];  var loadingImagesArr_0_4 = [];  var assetCount = 1;  for(var i=0;i< assetCount;i++) {    playingArray_0_4[i] = 0;    autoUnmutedArray_0_4[i] = 0;    restartPlaybackDoneArr_0_4[i]=false;    dontLogPlay_0_4[i]=false;    unmuteHappenedArr_0_4[i]=false;    appSettingsInfoArr_0_4[i] = {autoPlayWithSound:0, restartPlayback:0, loop:0, clickthrough:0, duration:0, iconColor:&quot;&quot;,src:&quot;&quot;,endTime:0,returnToStart:0,autoplayDelay:0};    previewImagesArr_0_4[i] = {};    loadingImagesArr_0_4[i] = {};  }  var engageAutoPlay_0_4 = [];  var engagePlay_0_4 = [];  var engagePause_0_4 = [];  var engageMute_0_4 = [];  var engageUnmute_0_4 = [];  var engageFQ_0_4 = [];    var engageSQ_0_4 = [];    var engageTQ_0_4 = [];    var engageFrQ_0_4 = [];   var qtInterval_0_4 = 0;   var ytqtInterval_0_4 = 0;   var countedQ1_0_4 = 0;   var countedQ2_0_4 = 0;   var countedQ3_0_4 = 0;   var countedQ4_0_4 = 0;     function checkQuartileTracking_0_4(type, totalDuration){        var assets = &quot;%5B%7B%22name%22%3A%22%22%2C%22src%22%3A%22%22%2C%22clickUrl%22%3A%22%22%2C%22logName%22%3A%22%22%2C%22slideshowAssetType%22%3A%22Uploaded+Asset%22%2C%22videoId%22%3A%22%22%2C%22valid%22%3Atrue%2C%22hasCaption%22%3Afalse%2C%22hasUrl%22%3Atrue%2C%22caption%22%3A%22%22%2C%22width%22%3A%22%22%2C%22height%22%3A%22%22%2C%22slideIsVisible%22%3Atrue%2C%22children%22%3A%5B%5D%2C%22videoInfo%22%3A%7B%22chromeLess%22%3A0%2C%22logo%22%3A0%2C%22videoInfo%22%3A0%2C%22theme%22%3A%22dark%22%2C%22progressBar%22%3A%22red%22%2C%22autoplay%22%3A0%2C%22loop%22%3A0%2C%22startTime%22%3A0%2C%22endTime%22%3A0%2C%22related%22%3A0%2C%22autoHidecontrols%22%3A0%2C%22valid%22%3Atrue%2C%22event%22%3A%22%22%2C%22action%22%3A%22%22%2C%22pixelURL%22%3A%22%22%2C%22showReplayButton%22%3A0%2C%22clickthrough%22%3A1%2C%22enableMutingControls%22%3A0%2C%22mutingControlsPosition%22%3A%22Bottom+Right%22%2C%22autoHideMutingControls%22%3A0%2C%22iconColor%22%3A%22light%22%2C%22showPlayButtonOverlay%22%3A1%2C%22returnToStart%22%3A0%2C%22startOnReturn%22%3A0%2C%22changeScreenSetting%22%3A%22Resume+Playback%22%2C%22enablePlayerControls%22%3A0%2C%22playerControlsPosition%22%3A%22Bottom+Left%22%2C%22autoHidePlayerControls%22%3A0%2C%22playerIconColor%22%3A%22light%22%2C%22restartPlayback%22%3A0%2C%22autoplayDelay%22%3A0%2C%22nativeWidth%22%3A%22%22%2C%22nativeHeight%22%3A%22%22%2C%22source%22%3A%22%22%2C%22autoHideYtcontrols%22%3A2%2C%22controlSettings%22%3A%22Always+Visible%22%2C%22displayVidInfo%22%3A0%2C%22showYoutubeLogo%22%3A0%7D%2C%22openURLIn%22%3A%22New+Tab%22%2C%22uuid%22%3A%22749135a2-98a1-4902-a18a-c97817358d4a%22%7D%5D&quot;;    assets = JSON.parse(decodeURIComponent(assets));      if(type == 'video') {      var time;      var duration;      time = Math.round(playerArray_0_4[currentImageIndex_0_4].currentTime);      duration = Math.floor(playerArray_0_4[currentImageIndex_0_4].duration);      var customStartTime = parseInt(assets[currentImageIndex_0_4].startTime) > 0 ? parseInt(assets[currentImageIndex_0_4].startTime):'0';      var customEndTime = parseInt(assets[currentImageIndex_0_4].endTime) > 0 ? parseInt(assets[currentImageIndex_0_4].endTime):duration;      var customDuration = customEndTime - customStartTime;      var quartileTime = customDuration\/4;      var quartileEvent = document.createEvent(&quot;CustomEvent&quot;);      var totalTime = time - customStartTime;            if ( (totalTime == Math.floor(quartileTime)) || ( (totalTime > Math.floor(quartileTime)) &amp;&amp; (!countedQ1_0_4) ) ) {                if (!countedQ1_0_4) {                    cvLog_0_4('q1_video_auto', Math.floor(totalTime), quartileEvent);                    countedQ1_0_4=1;                    console.log(&quot;firstQuartile&quot;);                    logTPTracking_0_4('FQ');                }            }            if ( (totalTime == Math.floor(quartileTime*2)) || ( (totalTime > Math.floor(quartileTime*2)) &amp;&amp; (!countedQ2_0_4) ) ){                if (!countedQ2_0_4) {                    cvLog_0_4('q2_video_auto', Math.floor(totalTime), quartileEvent);                    countedQ2_0_4=1;                    console.log(&quot;SecondQuartile&quot;);                    logTPTracking_0_4('SQ');                }            }            if ( (totalTime == Math.floor(quartileTime*3)) || ( (totalTime > Math.floor(quartileTime*3)) &amp;&amp; (!countedQ3_0_4) ) ){                if (!countedQ3_0_4) {                    cvLog_0_4('q3_video_auto', Math.floor(totalTime), quartileEvent);                    countedQ3_0_4=1;                    console.log(&quot;ThirdQuartile&quot;);                    logTPTracking_0_4('TQ');                }            }                        if ( (totalTime >= Math.floor((quartileTime*4)-1)) || ( (totalTime > Math.floor(quartileTime*4)) &amp;&amp; (!countedQ4_0_4) ) ){                if (!countedQ4_0_4) {                    countedQ4_0_4=1;                    cvLog_0_4('q4_video_auto', customDuration, quartileEvent);                    console.log(&quot;complete&quot;);                    logTPTracking_0_4('FrQ');                }            }            if ( (totalTime >= Math.floor(customEndTime - 1)) || ( (totalTime > Math.floor(customEndTime)) &amp;&amp; (!countedQ4_0_4) ) ) {                if (!countedQ4_0_4) {                    countedQ4_0_4=1;                    cvLog_0_4('q4_video_auto', customDuration, quartileEvent);                    console.log(&quot;complete&quot;);                    logTPTracking_0_4('FrQ');                }            }        } else if(type =='youtube') {            var customStartTime = parseInt(assets[currentImageIndex_0_4].startTime) > 0 ? parseInt(assets[currentImageIndex_0_4].startTime):'0';            var customEndTime = parseInt(assets[currentImageIndex_0_4].endTime) > 0 ? parseInt(assets[currentImageIndex_0_4].endTime):totalDuration;            if(customStartTime > 0 &amp;&amp; (customEndTime == customStartTime)){                customEndTime = totalDuration;            }            var customDuration = customEndTime - customStartTime;            var time = Math.round(playerArray_0_4[currentImageIndex_0_4].getCurrentTime());            var quartileTime = customDuration\/4;            var totalTime = time - customStartTime;            var quartileEvent = document.createEvent(&quot;CustomEvent&quot;);            if( ( totalTime == Math.floor(quartileTime) ) || ( ( totalTime > Math.floor(quartileTime)) &amp;&amp; (!countedQ1_0_4) ) ){                if (!countedQ1_0_4) {                    cvLog_0_4('q1_youtube_auto', Math.floor(totalTime), quartileEvent, 'youtube');                    countedQ1_0_4=1;                    logTPTracking_0_4('FQ');                }            }else if ( ( totalTime == Math.floor(quartileTime*2) ) || ( ( totalTime > Math.floor(quartileTime*2)) &amp;&amp; (!countedQ2_0_4) ) ){                if (!countedQ2_0_4) {                    cvLog_0_4('q2_youtube_auto', Math.floor(totalTime), quartileEvent, 'youtube');                    countedQ2_0_4=1;                    logTPTracking_0_4('SQ');                }            }else if ( (totalTime == Math.floor(quartileTime*3) ) || ( ( totalTime > Math.floor(quartileTime*3)) &amp;&amp; (!countedQ3_0_4) ) ){                if (!countedQ3_0_4) {                    cvLog_0_4('q3_youtube_auto', Math.floor(totalTime), quartileEvent, 'youtube');                    countedQ3_0_4=1;                    logTPTracking_0_4('TQ');                }            }else if(totalTime >= Math.floor(customEndTime) ){                if (!countedQ4_0_4) {                    cvLog_0_4('q4_youtube_auto', customDuration, quartileEvent, 'youtube');                    countedQ4_0_4=1;                    logTPTracking_0_4('FrQ');                }            }        }    }    function startQuartileYoutubeTracking_0_4(duration){        checkQuartileTracking_0_4('youtube', duration);        ytqtInterval_0_4 = setInterval(function(){checkQuartileTracking_0_4('youtube', duration)},1000);    }    function stopQuartileYoutubeTracking_0_4(){        clearInterval(ytqtInterval_0_4);    }  var ssAppInit_0_4 = function() {    if(&quot;f9b46e1e-d208-46f5-99c4-75a9d22a3d0d&quot; != undefined &amp;&amp; &quot;f9b46e1e-d208-46f5-99c4-75a9d22a3d0d&quot; != &quot;&quot;) uuid = &quot;f9b46e1e-d208-46f5-99c4-75a9d22a3d0d&quot;;    else uuid = &quot;0_4&quot;;    var ssAppBody_0_4 = document.getElementById(&quot;layer-0-4&quot;);    ssAppBody_0_4.innerHTML = slideshow_content_0_4;    var isAndroid = (navigator.userAgent.toLowerCase().indexOf(&quot;android&quot;) > -1);    var isiOS = (navigator.userAgent.match(\/iPad|iPhone|iPod\/g) ? true : false);    if(!isAndroid || !isiOS){      ssAppBody_0_4.onmouseenter=hoverOver_0_4;      ssAppBody_0_4.onmouseleave=hoverOut_0_4;    }    setUpTrackingVars_0_4();    if(isAndroid || isiOS){      $(&quot;#layer-0-4&quot;).on(&quot;swipeleft&quot;, function(){        if(transitionEffect_0_4 == &quot;Slide&quot;) mobileTouchDirection_0_4 = &quot;From Right&quot;;        clickArrow_0_4(null, -1, false);      });      $(&quot;#layer-0-4&quot;).on(&quot;swiperight&quot;, function(){        if(transitionEffect_0_4 == &quot;Slide&quot;) mobileTouchDirection_0_4 = &quot;From Left&quot;;        clickArrow_0_4(null, 1, false);      });    }    if (!youTubeIframeAPIReady) {    var tag = document.createElement('script');        tag.src = &quot;https:\/\/www.youtube.com\/iframe_api&quot;;        var firstScriptTag = document.getElementsByTagName('script')[0];        firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);    }  };  function isIE() { return ((navigator.appName == 'Microsoft Internet Explorer') || ((navigator.appName == 'Netscape') &amp;&amp; (new RegExp(&quot;Trident\/.*rv:([0-9]{1,}[.0-9]{0,})&quot;).exec(navigator.userAgent) != null))); }    function onYouTubeIframeAPIReady() {      youTubeIframeAPIReady=true;  }      function positionCaption_0_4() {      var captionPosition = &quot;Bottom&quot;;      var paginationPosition = &quot;Bottom&quot;;      var paginationSize = &quot;Medium&quot;;      var element = null;      var height = 0;      var appHeight = 250;      var paginationIntSize = 0;      var area = 0;&#9;  var captionTop = 0;&#9;  var imgEle = null;&#9;  var slideEle = null;&#9;  var youtubeEle = null;      if(paginationDisplay_0_4 == 'Always' || paginationDisplay_0_4 == 'On Hover'){            if(paginationSize==&quot;Small&quot;){                paginationIntSize=25;            }else if(paginationSize==&quot;Medium&quot;){                paginationIntSize=35;            }else{                paginationIntSize=50;            }        }            url_cap_Array_0_4 = new Array(totalImages_0_4);      $('#pagiBar_0_4').mousemove(function() {      &#9;hoverOverThumbRail_0_4 = true;      });      $('#pagiBar_0_4').mouseover(function() {         hoverOverThumbRail_0_4 = true;      });      $('#pagiBar_0_4').mouseleave(function() {          hoverOverThumbRail_0_4 = false;      });              var player_element_0_4_0;          element = document.getElementById(&quot;captionTextArea_0_4_0&quot;);          imgEle = document.getElementById(&quot;img_0_4_0&quot;);          vidEle = document.getElementById(&quot;customplayer-0-4-0&quot;);          youtubeEle = document.getElementById(&quot;player_0_4_0&quot;);          slideEle = document.getElementById(&quot;slide_0_4_0&quot;);          var autoHidecontrols = 0;            var control = true;            if(autoHidecontrols == 1) control = false;            var startTime_0_4_0 = &quot;&quot;;                        var endTime_0_4_0 = 0;            var theme = 'dark';            var showReplay = 0;            var returnToStart = 0 == 1 ? true:false;                                if(youtubeEle != null) {                  if (parent.window.preventSpecialFormat) {                   var youtubeAutocheck_0_4_0 = 0;             } else {                 var youtubeAutocheck_0_4_0 = 0;            }            var htmlMode = 0;                    if(navigator.userAgent.toLowerCase().indexOf('firefox') > -1)                    {                        htmlMode = 1;                    }                    var youtubeAutoUnmuted_0_4_0=0;                    var playing_0_4_0=0;                    var player_0_4_0;                    var play_done_0_4_0=0;                    var cInterval_0_4_0;                    var duration_0_4_0;            var youtubeAutoplayDelay_0_4_0 = 0;                        var youtubeVid_0_4_0 = '';                    youtubeVid_0_4_0 = youtubeVid_0_4_0.replace(&quot;http:\/\/www.youtube.com\/watch?v=&quot;, &quot;&quot;);            youtubeVid_0_4_0 = youtubeVid_0_4_0.replace(&quot;https:\/\/www.youtube.com\/watch?v=&quot;, &quot;&quot;);            youtubeVid_0_4_0 = youtubeVid_0_4_0.replace(&quot;http:\/\/youtu.be\/&quot;, &quot;&quot;);            youtubeVid_0_4_0 = youtubeVid_0_4_0.replace(&quot;https:\/\/youtu.be\/&quot;, &quot;&quot;);            var words = {&quot;chromeLess&quot;:0,&quot;logo&quot;:0,&quot;videoInfo&quot;:0,&quot;theme&quot;:&quot;dark&quot;,&quot;progressBar&quot;:&quot;red&quot;,&quot;autoplay&quot;:0,&quot;loop&quot;:0,&quot;startTime&quot;:0,&quot;endTime&quot;:0,&quot;related&quot;:0,&quot;autoHidecontrols&quot;:0,&quot;valid&quot;:true,&quot;event&quot;:&quot;&quot;,&quot;action&quot;:&quot;&quot;,&quot;pixelURL&quot;:&quot;&quot;,&quot;showReplayButton&quot;:0,&quot;clickthrough&quot;:1,&quot;enableMutingControls&quot;:0,&quot;mutingControlsPosition&quot;:&quot;Bottom Right&quot;,&quot;autoHideMutingControls&quot;:0,&quot;iconColor&quot;:&quot;light&quot;,&quot;showPlayButtonOverlay&quot;:1,&quot;returnToStart&quot;:0,&quot;startOnReturn&quot;:0,&quot;changeScreenSetting&quot;:&quot;Resume Playback&quot;,&quot;enablePlayerControls&quot;:0,&quot;playerControlsPosition&quot;:&quot;Bottom Left&quot;,&quot;autoHidePlayerControls&quot;:0,&quot;playerIconColor&quot;:&quot;light&quot;,&quot;restartPlayback&quot;:0,&quot;autoplayDelay&quot;:0,&quot;nativeWidth&quot;:&quot;&quot;,&quot;nativeHeight&quot;:&quot;&quot;,&quot;source&quot;:&quot;&quot;,&quot;autoHideYtcontrols&quot;:2,&quot;controlSettings&quot;:&quot;Always Visible&quot;,&quot;displayVidInfo&quot;:0,&quot;showYoutubeLogo&quot;:0};              var obj = {};              $.each(words, function(key, value) {                  obj[key] = value;              });            obj['videoId'] = '';                        obj['slideshowAssetType'] = 'Uploaded Asset';            recipeArray_0_4.push(obj);            var pagiHeight = $(&quot;#pagiBar_0_4&quot;).css('height');            var ytChromeless_0_4_0 = 0 == 0 ? '1':'0';            var pagiHeightAdj;            var pagiPadding;            if(paginationPosition == 'Top') {                pagiHeightAdj = parseInt(pagiHeight);                pagiPadding = parseInt(pagiHeight);            } else if(paginationPosition == 'Bottom') {                pagiHeightAdj = parseInt(pagiHeight);                pagiPadding = 0;            }            if(paginationDisplay_0_4 != 'Always') {                pagiHeightAdj = 0;                pagiPadding = 0;            }                      var ytStartPlayer_0_4_0 = setInterval(function() {                        if(youTubeIframeAPIReady) {                          clearInterval(ytStartPlayer_0_4_0);                           player_0_4_0 = new YT.Player('player_0_4_0', {                            height: 250-pagiHeightAdj,                            width: 300,                            videoId: youtubeVid_0_4_0,                            playerVars: {                                'autoplay':youtubeAutocheck_0_4_0,                                'playsinline': 1,                                'showinfo': '0',                                'rel': '0',                                'modestbranding': '0',                                'color': 'red',                                'theme': 'dark',                                'controls': ytChromeless_0_4_0,                                'start': 0,                                                                'autohide':0,                                'iv_load_policy':3,                                'html5': htmlMode                            },                            events: {                                'onReady':  function(event) {                                   if(player_0_4_0 &amp;&amp; typeof player_0_4_0.getPlayerState == 'function'){                                       if(0 != '0') {                                          player_0_4_0.pauseVideo();                                       }                              player_ready_0_4_0 = true;                              playerArray_0_4[0] = player_0_4_0;                                $(&quot;#youtubeWrapper_0_4_0&quot;).css('padding-top', pagiPadding);                              if (youtubeAutocheck_0_4_0) {                                if(!0){                                  if(!isIE())event.target.setVolume(0);                                     event.target.mute();                                                                        var ytCheck_0_4_0 = setInterval(function(){ ytChecker_0_4_0() }, 10);                                    function ytChecker_0_4_0(){                                        if (event.target.getPlayerState() === 1){                                           player_0_4_0.mute();                                           clearInterval(ytCheck_0_4_0);                                           setTimeout(function(){                                               player_0_4_0.mute();                                               if(!isIE())event.target.setVolume(0);                                             }, 100);                                        }else {}                                    }                                 }                                  if(!youtubeAutocheck_0_4_0){                                    if(youtubeAutoplayDelay_0_4_0 > 0){                                      setTimeout(function(){                                        player_0_4_0.playVideo();                                      },youtubeAutoplayDelay_0_4_0);                                    }                                }                              }                              muted_0_4_0=player_0_4_0.isMuted();                               duration_0_4_0 = player_0_4_0.getDuration()-1;                               vurl_0_4_0 = player_0_4_0.getVideoUrl();                          }                                },                                'onStateChange': function(event) {                                                                    if(typeof player_0_4_0.getCurrentTime == 'function'){                            switch(event.data) {                                case -1:                                     playing_0_4_0 = 0;                                    break;                                case 1:                                     playing_0_4_0 = 1;                                    play_started_0_4_0 = 1;                                    var isAndroid = (navigator.userAgent.toLowerCase().indexOf(&quot;android&quot;) > -1);                                    var isiOS = (navigator.userAgent.match(\/iPad|iPhone|iPod\/g) ? true : false);                                    if(isiOS || isAndroid) autocheck_0_4 = false;                                    if (!statLogged_0_4 &amp;&amp; youtubeAutocheck_0_4_0) {                                         cvLog_0_4('play_youtube_auto', Math.floor(player_0_4_0.getCurrentTime()), event, 'youtube');                                        logTPTracking_0_4('AutoPlay');                                        statLogged_0_4= 1;                                    } else {                                        if (play_done_0_4_0) {                                            play_done_0_4_0=0;                                                                                              cvLog_0_4('replay_youtube_click', Math.floor(player_0_4_0.getCurrentTime()), event, 'youtube');                                                                                        vCounter_0_4_0=0;                                        } else {                                            cvLog_0_4('play_youtube_click', Math.floor(player_0_4_0.getCurrentTime()), event, 'youtube');                                            logTPTracking_0_4('Play');                                            player_0_4_0.unMute();                                            autoUnmuted_0_4=1;                                            skipIt_0_4=1;                                            statLogged_0_4 = 1                                        }                            }                                    cInterval_0_4_0 = setInterval(function() {volCheck_0_4('youtube'), 1000});                                     startQuartileYoutubeTracking_0_4(duration_0_4_0);                                    break;                                case 2:                                     if ((Math.floor(player_0_4_0.getCurrentTime()) != duration_0_4) &amp;&amp; ( playing_0_4_0)){                                        cvLog_0_4('pause_youtube_click', Math.floor(player_0_4_0.getCurrentTime()), event, 'youtube');                                        logTPTracking_0_4('Pause');                                    } else {                                         var pTime = Math.floor(player_0_4_0.getCurrentTime());                                        if (!scrubbing_0_4) {                                            if ( (pTime > parseInt(vCounter_0_4 + 5)) || (pTime < parseInt(vCounter_0_4 - 5)) ) {                                                if (pTime <= duration_0_4-2) {                                                   scrubbing_0_4=1;                                                   setTimeout(resetSeek_0_4(0, player_0_4_0), 2000);                                                }                                            }                                        }                                    }                                    playing_0_4 = 0;                                    clearInterval(cInterval_0_4_0);                                     stopQuartileYoutubeTracking_0_4();                                    break;                                case 3:                                     \/* Buffering*\/                                    break;                                case 4:                                     \/* Video Cued*\/                                    break;                                case 0:                                     play_done_0_4_0=1;                                    playing_0_4 = 0;                                    cvLog_0_4('stop_youtube_auto', Math.floor(player_0_4_0.getCurrentTime()), event, 'youtube');                                    clearInterval(cInterval_0_4_0);                                     stopQuartileYoutubeTracking_0_4();                                                                        break;                            }                            if(Math.round(player_0_4_0.getCurrentTime() > 0))statLogged_0_4 = 1;                                                                                 }                                }                            }                        });                        }                    },10);                    }          if(vidEle == null &amp;&amp; youtubeEle == null) {            var elem = {};            playerArray_0_4[0] = elem;            recipeArray_0_4.push(elem);          }          if(vidEle != null) {            var pagiHeight = $(&quot;#pagiBar_0_4&quot;).css('height');            var paginationSize = &quot;Medium&quot;;              var paginationIntSize = 0;            if(paginationDisplay_0_4 == 'Always' &amp;&amp; &quot;Bottom&quot; == 'Bottom'){              if(paginationSize==&quot;Small&quot;){                paginationIntSize=25;              }else if(paginationSize==&quot;Medium&quot;){                paginationIntSize=35;              }else{                paginationIntSize=50;              }                          }            var showPlayButtonOverlay = 1;                        appSettingsInfoArr_0_4[0].autoplayDelay = 0*1000;                            if(!showPlayButtonOverlay) {                $('#layer-0-4 .mejs__overlay-play').off(&quot;click&quot;);                var videoClickArea =  document.createElement('div');                var chromelessCheck = 0;                if(!chromelessCheck || chromelessCheck &amp;&amp; isiOS) {                  $(videoClickArea).css('width', $('#layer-0-4 .mejs__overlay-play').width());                  $(videoClickArea).css('height', $('#layer-0-4 .mejs__overlay-play').height());                } else{                  $(videoClickArea).css('width', '300px');                  $(videoClickArea).css('height', '250px');                }                $(videoClickArea).css('position','absolute');                $(videoClickArea).css('z-index','50');                $('#layer-0-4').prepend(videoClickArea);              }            if(&quot;Bottom&quot; == 'Bottom') {              var setHeight = parseInt('250px') - parseInt(pagiHeight);            } else{              var setHeight = parseInt('250px');            }            var words = {&quot;chromeLess&quot;:0,&quot;logo&quot;:0,&quot;videoInfo&quot;:0,&quot;theme&quot;:&quot;dark&quot;,&quot;progressBar&quot;:&quot;red&quot;,&quot;autoplay&quot;:0,&quot;loop&quot;:0,&quot;startTime&quot;:0,&quot;endTime&quot;:0,&quot;related&quot;:0,&quot;autoHidecontrols&quot;:0,&quot;valid&quot;:true,&quot;event&quot;:&quot;&quot;,&quot;action&quot;:&quot;&quot;,&quot;pixelURL&quot;:&quot;&quot;,&quot;showReplayButton&quot;:0,&quot;clickthrough&quot;:1,&quot;enableMutingControls&quot;:0,&quot;mutingControlsPosition&quot;:&quot;Bottom Right&quot;,&quot;autoHideMutingControls&quot;:0,&quot;iconColor&quot;:&quot;light&quot;,&quot;showPlayButtonOverlay&quot;:1,&quot;returnToStart&quot;:0,&quot;startOnReturn&quot;:0,&quot;changeScreenSetting&quot;:&quot;Resume Playback&quot;,&quot;enablePlayerControls&quot;:0,&quot;playerControlsPosition&quot;:&quot;Bottom Left&quot;,&quot;autoHidePlayerControls&quot;:0,&quot;playerIconColor&quot;:&quot;light&quot;,&quot;restartPlayback&quot;:0,&quot;autoplayDelay&quot;:0,&quot;nativeWidth&quot;:&quot;&quot;,&quot;nativeHeight&quot;:&quot;&quot;,&quot;source&quot;:&quot;&quot;,&quot;autoHideYtcontrols&quot;:2,&quot;controlSettings&quot;:&quot;Always Visible&quot;,&quot;displayVidInfo&quot;:0,&quot;showYoutubeLogo&quot;:0};            var obj = {};            $.each(words, function(key, value) {                obj[key] = value;            });            obj['videoName'] = '';            recipeArray_0_4.push(obj);          }          if(imgEle) aniSettings_0_4.imageSettings_0 = {left:imgEle.style.left, top:imgEle.style.top, width:imgEle.style.width, height:imgEle.style.height};          if(vidEle) aniSettings_0_4.imageSettings_0 = {left:vidEle.style.left, top:vidEle.style.top, width:vidEle.style.width, height:vidEle.style.height};          aniSettings_0_4.slideSettings_0 = {left:slideEle.style.left, top:slideEle.style.top};                                               url_cap_Array_0_4[0] = {src: &quot;&quot;, url:&quot;&quot;, logLabel:&quot;&quot;, imageName:&quot;&quot;, caption:&quot;&quot;, uuid:&quot;749135a2-98a1-4902-a18a-c97817358d4a&quot;, logged:&quot;false&quot;, openURLIn:&quot;New Tab&quot;};                    if(element){              height = element.clientHeight;              area =  appHeight - paginationIntSize;            if(captionPosition == &quot;Top&quot;){              if(paginationPosition == &quot;Bottom&quot;){                element.style.top = 0;              }else{                element.style.top = paginationIntSize+'px';              }            }else if (captionPosition == &quot;Middle&quot;){              captionTop = (area - height)\/2;              if(paginationPosition == &quot;Top&quot;) captionTop += paginationIntSize;              element.style.top = captionTop+'px';            }else{              if(paginationPosition == &quot;Bottom&quot;){                element.style.top = (area-height)+'px';              }else{              &#9;captionTop = parseInt(appHeight-height);              &#9;captionTop -= parseInt(&quot;12px&quot;);              &#9;if(paginationPosition == &quot;Top&quot;) captionTop -= paginationIntSize;                element.style.top = captionTop+'px';              }            }          }                                        if(0 != 0) slideEle.style.display = &quot;none&quot;;                logTPTracking_0_4(&quot;SlideView&quot;);      var sldEvent = document.createEvent(&quot;CustomEvent&quot;);      slideLog_0_4(&quot;slideshow_show_auto&quot;, sldEvent, url_cap_Array_0_4[0].caption, url_cap_Array_0_4[0].imageName);    }    function fillVideoPlayer_0_4(){      if(recipeArray_0_4[currentImageIndex_0_4].slideshowAssetType != 'Youtube') {      var scale = 1;      var appW = 300;      var appH = 250;      var element = playerArray_0_4[currentImageIndex_0_4];      var orgW = recipeArray_0_4[currentImageIndex_0_4].videoWidth;      var orgH = recipeArray_0_4[currentImageIndex_0_4].videoHeight;      var paginationSize = &quot;Medium&quot;;      var paginationIntSize = 0;      if(paginationDisplay_0_4 == 'Always' &amp;&amp; &quot;Bottom&quot; == 'Bottom'){        if(paginationSize==&quot;Small&quot;){          paginationIntSize=25;        }else if(paginationSize==&quot;Medium&quot;){          paginationIntSize=35;        }else{          paginationIntSize=50;        }              }      $(document.getElementById(&quot;slide_0_4_&quot;+currentImageIndex_0_4)).find('.mejs__container:not(&quot;.slideElementVideo&quot;)').css('width',appW+&quot;px&quot;);      $(document.getElementById(&quot;slide_0_4_&quot;+currentImageIndex_0_4)).find('.mejs__container:not(&quot;.slideElementVideo&quot;)').css('height',appH-paginationIntSize+&quot;px&quot;);          }  }    function hideChromelessMute_0_4(i) {        $('#slide_0_4_' + i + ' #chromeLessMute-0_4_'+currentImageIndex_0_4).css('display','none');    }    function showChromelessMute_0_4(i) {        $('#slide_0_4_' + i + ' #chromeLessMute-0_4_'+currentImageIndex_0_4).css('display','block');    }    function hideChromelessPlay_0_4(i) {        $('#slide_0_4_' + i + ' #chromeLessPlayerControls-0-4_'+currentImageIndex_0_4).css('display','none');    }    function showChromelessPlay_0_4(i) {        $('#slide_0_4_' + i + ' #chromeLessPlayerControls-0-4_'+currentImageIndex_0_4).css('display','block');    }    function toggleChromelessMute_0_4(isAutoUnmute){      var muteEle = $('#chromeLessMute-0_4_'+currentImageIndex_0_4);      var iconColor = recipeArray_0_4[currentImageIndex_0_4].iconColor;        if(muteEle){          if(playerArray_0_4[currentImageIndex_0_4].muted || isAutoUnmute){            muteEle.removeClass(iconColor+'Mute');            muteEle.addClass(iconColor+'UnMute');            $('#chromelessMuteSvg_0-4').hide();            $('#chromelessUnmuteSvg_0-4').show();        }else{          muteEle.removeClass(iconColor+'UnMute');          muteEle.addClass(iconColor+'Mute');          $('#chromelessUnmuteSvg_0-4').hide();          $('#chromelessMuteSvg_0-4').show();        }      }    }    function toggleChromelessPlay_0_4(isAutoPlay){      var playEle = $('#chromeLessPlayerControls-0-4_'+currentImageIndex_0_4);    var iconColor = recipeArray_0_4[currentImageIndex_0_4].iconColor;      if(playEle){        if(playingArray_0_4[currentImageIndex_0_4] || isAutoPlay){        playEle.removeClass(iconColor+'Play');        playEle.addClass(iconColor+'Pause');                $('#chromelessPauseSvg_0-4').show();                $('#chromelessPlaySvg_0-4').hide();      }else{        playEle.removeClass(iconColor+'Pause');        playEle.addClass(iconColor+'Play');                $('#chromelessPlaySvg_0-4').show();                $('#chromelessPauseSvg_0-4').hide();      }    }    }    function volCheck_0_4(type){      if(type == 'customvideo') {        \/*var ytEvent = new CustomEvent(&quot;CustomVideoClick&quot;, {});*\/        var mediaElement = playerArray_0_4[currentImageIndex_0_4];      var ytEvent = document.createEvent(&quot;CustomEvent&quot;);      var pMuted = mediaElement.muted;          var vol = mediaElement.volume;      if(!dontLogVolChange_0_4){         if (muted_0_4 !== pMuted) {           muted_0_4 = pMuted;           if (Math.floor(mediaElement.currentTime) > 1) {                      if (pMuted) {                          cvLog_0_4('mute_video_click', Math.floor(mediaElement.currentTime), ytEvent);                          logTPTracking_0_4('Mute');                      } else {                          cvLog_0_4('unmute_video_click', Math.floor(mediaElement.currentTime), ytEvent);                          logTPTracking_0_4('Unmute');                          unmuteHappenedArr_0_4[currentImageIndex_0_4]=true;                      }                  }         }else{           if (!pMuted) {                      if (vol_0_4 !== vol) {                        unmuteHappenedArr_0_4[currentImageIndex_0_4]=true;                          if (vol_0_4 > vol) {                              cvLog_0_4('voldown_video_click', Math.floor(mediaElement.currentTime), ytEvent);                          } else {                              cvLog_0_4('volup_video_click', Math.floor(mediaElement.currentTime), ytEvent);                          }                      }                  }         }         doRestartPlayback_0_4();      }      else{        muted_0_4 = pMuted;      }      vol_0_4 = vol;      dontLogVolChange_0_4 = 0;    } else if(type == 'youtube'){             var youtubeElement = playerArray_0_4[currentImageIndex_0_4];          var ytEvent = document.createEvent(&quot;CustomEvent&quot;);          ytEvent.initCustomEvent('YouTubeClick', false, false, {});          var pMuted = youtubeElement.isMuted();          var vol = youtubeElement.getVolume();          vCounter_0_4++;                    if (!skipIt_0_4) {              if (muted_0_4 !== pMuted) {                  muted_0_4 = pMuted;                  if (Math.floor(youtubeElement.getCurrentTime()) > 1) {                      if (pMuted) {                          cvLog_0_4('mute_youtube_click', Math.floor(youtubeElement.getCurrentTime()), ytEvent);                          logTPTracking_0_4('Mute');                      } else {                          cvLog_0_4('unmute_youtube_click', Math.floor(youtubeElement.getCurrentTime()), ytEvent);                          logTPTracking_0_4('Unmute');                          unmuteHappened_0_4 = true;                      }                  }              } else {                  if (!pMuted) {                      if (vol_0_4 !== Math.floor(vol)) {                        unmuteHappened_0_4 = true;                          if (vol_0_4 > Math.floor(vol)) {                              if (Math.floor(youtubeElement.getCurrentTime())) {                                  cvLog_0_4('voldown_youtube_click', Math.floor(youtubeElement.getCurrentTime()), ytEvent);                              }                          } else {                              if (Math.floor(youtubeElement.getCurrentTime())) {                                  cvLog_0_4('volup_youtube_click', Math.floor(youtubeElement.getCurrentTime()), ytEvent);                              }                          }                      }                  }              }              doRestartPlayback_0_4();          } else {              muted_0_4 = pMuted;          }          vol_0_4 = Math.floor(vol);          skipIt_0_4=0;          if (vCounter_0_4 >= duration_0_4) {               clearInterval(cInterval_0_4);          }    }    }    function doRestartPlayback_0_4(){        if(!appSettingsInfoArr_0_4[currentImageIndex_0_4].autoPlayWithSound &amp;&amp; appSettingsInfoArr_0_4[currentImageIndex_0_4].restartPlayback &amp;&amp; !restartPlaybackDoneArr_0_4[currentImageIndex_0_4] &amp;&amp; unmuteHappenedArr_0_4[currentImageIndex_0_4]){            restartPlaybackDoneArr_0_4[currentImageIndex_0_4] = true;            dontLogSeek_0_4 = 1;            playerArray_0_4[currentImageIndex_0_4].setCurrentTime(0);        }    }    function toggleReplay_0_4(showReplay, theme, toggle) {      var cssclass = 'bigreplay';      if(showReplay){        if(toggle == 'add'){          $('.mejs__overlay-button').addClass(cssclass);        }else{          $('.mejs__overlay-button').removeClass(cssclass);        }      }    }    function hideControls_0_4(i) {      $('#slide_0_4_' + i + ' .mejs__controls').css('display','none');    }    function showControls_0_4(i) {        $('#slide_0_4_' + i + ' .mejs__controls').css('display','');    }        function cvLog_0_4(stat_log, time, event, type) {      setTimeout(function(){      var videoassetuuid_0_4 = url_cap_Array_0_4[currentImageIndex_0_4].src.split(&quot;\/&quot;);      var duration;            duration = playerArray_0_4[currentImageIndex_0_4].duration;      if ((stat_log == &quot;stop_video_auto&quot;) &amp;&amp; (time==0)) {          time = parseInt(duration);      }            if (time < 0 ) {time=0;}      if (time > duration) {time = duration;}      var assets = &quot;%5B%7B%22name%22%3A%22%22%2C%22src%22%3A%22%22%2C%22clickUrl%22%3A%22%22%2C%22logName%22%3A%22%22%2C%22slideshowAssetType%22%3A%22Uploaded+Asset%22%2C%22videoId%22%3A%22%22%2C%22valid%22%3Atrue%2C%22hasCaption%22%3Afalse%2C%22hasUrl%22%3Atrue%2C%22caption%22%3A%22%22%2C%22width%22%3A%22%22%2C%22height%22%3A%22%22%2C%22slideIsVisible%22%3Atrue%2C%22children%22%3A%5B%5D%2C%22videoInfo%22%3A%7B%22chromeLess%22%3A0%2C%22logo%22%3A0%2C%22videoInfo%22%3A0%2C%22theme%22%3A%22dark%22%2C%22progressBar%22%3A%22red%22%2C%22autoplay%22%3A0%2C%22loop%22%3A0%2C%22startTime%22%3A0%2C%22endTime%22%3A0%2C%22related%22%3A0%2C%22autoHidecontrols%22%3A0%2C%22valid%22%3Atrue%2C%22event%22%3A%22%22%2C%22action%22%3A%22%22%2C%22pixelURL%22%3A%22%22%2C%22showReplayButton%22%3A0%2C%22clickthrough%22%3A1%2C%22enableMutingControls%22%3A0%2C%22mutingControlsPosition%22%3A%22Bottom+Right%22%2C%22autoHideMutingControls%22%3A0%2C%22iconColor%22%3A%22light%22%2C%22showPlayButtonOverlay%22%3A1%2C%22returnToStart%22%3A0%2C%22startOnReturn%22%3A0%2C%22changeScreenSetting%22%3A%22Resume+Playback%22%2C%22enablePlayerControls%22%3A0%2C%22playerControlsPosition%22%3A%22Bottom+Left%22%2C%22autoHidePlayerControls%22%3A0%2C%22playerIconColor%22%3A%22light%22%2C%22restartPlayback%22%3A0%2C%22autoplayDelay%22%3A0%2C%22nativeWidth%22%3A%22%22%2C%22nativeHeight%22%3A%22%22%2C%22source%22%3A%22%22%2C%22autoHideYtcontrols%22%3A2%2C%22controlSettings%22%3A%22Always+Visible%22%2C%22displayVidInfo%22%3A0%2C%22showYoutubeLogo%22%3A0%7D%2C%22openURLIn%22%3A%22New+Tab%22%2C%22uuid%22%3A%22749135a2-98a1-4902-a18a-c97817358d4a%22%7D%5D&quot;;      assets = JSON.parse(decodeURIComponent(assets));      var customStartTime = parseInt(assets[currentImageIndex_0_4].startTime) > 0 ? parseInt(assets[currentImageIndex_0_4].startTime):'0';      var customEndTime = parseInt(assets[currentImageIndex_0_4].endTime) > 0 ? parseInt(assets[currentImageIndex_0_4].endTime):duration;      if(customStartTime > 0 &amp;&amp; (customEndTime == customStartTime)){          customEndTime = duration;      }      var customDuration = customEndTime - customStartTime;      time = time - customStartTime;            var video='';            var videoType='';            if(type == 'youtube') {              var vidId = assets[currentImageIndex_0_4].videoId;          vidId = vidId.replace(&quot;http:\/\/www.youtube.com\/watch?v=&quot;, &quot;&quot;);        vidId = vidId.replace(&quot;https:\/\/www.youtube.com\/watch?v=&quot;, &quot;&quot;);        vidId = vidId.replace(&quot;http:\/\/youtu.be\/&quot;, &quot;&quot;);        vidId = vidId.replace(&quot;https:\/\/youtu.be\/&quot;, &quot;&quot;);              video = 'http:\/\/www.youtube.com\/watch?v=' + vidId;              videoType = 'youtube';            } else{              video = recipeArray_0_4[currentImageIndex_0_4].videoName;              videoType = 'customvideo';            }            var ytDat_0_4 = {&quot;dest&quot;: &quot;null&quot;,&quot;duration&quot;: customDuration,&quot;time&quot;: time, &quot;assetName&quot;: recipeArray_0_4[currentImageIndex_0_4].videoName, &quot;video&quot;: video, &quot;playTime&quot;: time,&quot;player&quot;: videoType,&quot;screenIndex&quot;: activeScreen+1, assetUUID: videoassetuuid_0_4[1]};            logHtmlEvent(event, activeScreen, stat_log, ytDat_0_4);        }, 500);    }        function ytLeave_0_4() {      if (playingArray_0_4[currentImageIndex_0_4]) {        playingWhenLeft_0_4 = 1;      } else {        playingWhenLeft_0_4 = 0;      }       if (!parent.window.preventSpecialFormat) {          if(typeof playerArray_0_4[currentImageIndex_0_4].pause == 'function' || typeof playerArray_0_4[currentImageIndex_0_4].pauseVideo == 'function' ){            playerArray_0_4[currentImageIndex_0_4].pause();            if(recipeArray_0_4[currentImageIndex_0_4]) {              playerArray_0_4[currentImageIndex_0_4].pause();            }          }        }    }    function ytReturn_0_4() {        if (!parent.window.preventSpecialFormat &amp;&amp; ( (recipeArray_0_4[currentImageIndex_0_4].startOnReturn &amp;&amp; recipeArray_0_4[currentImageIndex_0_4].autoplay) || (recipeArray_0_4[currentImageIndex_0_4].startOnReturn &amp;&amp; playingWhenLeft_0_4 ) ) ) {        if (&quot;&quot; === 'From Beginning') {            player_element_0_4.currentTime = 0;        }        isReturnAutoPlay_0_4 = 1; \/* Set this flag to handle some volume change logic. *\/        dontLogVolChange_0_4 = 1;        player_element_0_4.muted=true;        playerArray_0_4[currentImageIndex_0_4].play();                $('#layer-0-4 .mejs__overlay-error').parent()[0].style.position = &quot;absolute&quot;;        $('#layer-0-4 .mejs__overlay-error').parent()[0].style.left = &quot;-99999px&quot;;                var ytEvent = document.createEvent(&quot;CustomEvent&quot;);        cvLog_0_4('resume_video_auto', Math.floor(player_element_0_4.currentTime), ytEvent);        }    }    function goToHref_0_4(evt,href) {      href = (href == undefined) ? 'http:\/\/www.spiritlakecasino.com\/' : href;      preventEventProp(evt);      var url = (url_cap_Array_0_4[currentImageIndex_0_4].url == undefined || url_cap_Array_0_4[currentImageIndex_0_4].url == '') ? href : url_cap_Array_0_4[currentImageIndex_0_4].url;      if((url.indexOf(&quot;http:\/\/&quot;) != 0) &amp;&amp; (url.indexOf(&quot;https:\/\/&quot;))) {            url = &quot;http:\/\/&quot; + url;        }        var openURL = &quot;_blank&quot;;                if(url_cap_Array_0_4[currentImageIndex_0_4].openURLIn != &quot;Same Tab&quot;) {            openURL = &quot;_blank&quot;;        } else{            openURL = &quot;_top&quot;;        }        if (url != 'http:\/\/'){            if(url_cap_Array_0_4[currentImageIndex_0_4].openURLIn != &quot;Same Tab&quot;) { \/* Open in new tab *\/                                if(0){                      window.open(&quot;https:\/\/adclick.g.doubleclick.net\/pcs\/click?xai=AKAOjst0CUzh4DGTUXNF-HAvJ95Kc26KyAobg6J5iBO8cUJU4e7QAx8vBTKnGOavuOC8NWdkEQ_qywvW3nI24ubjP2HAx5QBeCVszE2Y_axOaLRFlQBUAGyLRcS3b4yTWgh2Uskv3_t2ta7n_1SKhKd3aBNhWsf_tQHB_mvtmbOjYaLBtwkJjshtrn3W7YcQwHx62d8jSXzzOftmUgSCZ16m38MVSIqUiJPGD1-bQi01849cDQ_34yc7FP03Q8Dj5A29SQ-s8TzC7-g&amp;sai=AMfl-YRK-lcjFrnVJeDHiJY9n96yQLIeaA1RiEvAqGYVfuHnJ_Wx1EKOFUT4gkp11HPWbJ0j4Pwsp2nLKtveXnzK0mV7csNiWp6IOwJeLq4T_gv4YY9KNXrbQhgv3X0&amp;sig=Cg0ArKJSzEYYEh0jbliQEAE&amp;urlfix=1&amp;adurl=&quot; + url, openURL);                  } else {                      window.open(&quot;https:\/\/adclick.g.doubleclick.net\/pcs\/click?xai=AKAOjst0CUzh4DGTUXNF-HAvJ95Kc26KyAobg6J5iBO8cUJU4e7QAx8vBTKnGOavuOC8NWdkEQ_qywvW3nI24ubjP2HAx5QBeCVszE2Y_axOaLRFlQBUAGyLRcS3b4yTWgh2Uskv3_t2ta7n_1SKhKd3aBNhWsf_tQHB_mvtmbOjYaLBtwkJjshtrn3W7YcQwHx62d8jSXzzOftmUgSCZ16m38MVSIqUiJPGD1-bQi01849cDQ_34yc7FP03Q8Dj5A29SQ-s8TzC7-g&amp;sai=AMfl-YRK-lcjFrnVJeDHiJY9n96yQLIeaA1RiEvAqGYVfuHnJ_Wx1EKOFUT4gkp11HPWbJ0j4Pwsp2nLKtveXnzK0mV7csNiWp6IOwJeLq4T_gv4YY9KNXrbQhgv3X0&amp;sig=Cg0ArKJSzEYYEh0jbliQEAE&amp;urlfix=1&amp;adurl=&quot; + encodeURIComponent(url), openURL);                  }                          shLog_0_4(&quot;serve_clickthrough&quot;, evt, url, url_cap_Array_0_4[currentImageIndex_0_4].caption, url_cap_Array_0_4[currentImageIndex_0_4].imageName);            logTPTracking_0_4(&quot;Click&quot;);          } else { \/* Open in the same tab *\/              var clickAddress;                                  if(0){                        clickAddress = &quot;https:\/\/adclick.g.doubleclick.net\/pcs\/click?xai=AKAOjst0CUzh4DGTUXNF-HAvJ95Kc26KyAobg6J5iBO8cUJU4e7QAx8vBTKnGOavuOC8NWdkEQ_qywvW3nI24ubjP2HAx5QBeCVszE2Y_axOaLRFlQBUAGyLRcS3b4yTWgh2Uskv3_t2ta7n_1SKhKd3aBNhWsf_tQHB_mvtmbOjYaLBtwkJjshtrn3W7YcQwHx62d8jSXzzOftmUgSCZ16m38MVSIqUiJPGD1-bQi01849cDQ_34yc7FP03Q8Dj5A29SQ-s8TzC7-g&amp;sai=AMfl-YRK-lcjFrnVJeDHiJY9n96yQLIeaA1RiEvAqGYVfuHnJ_Wx1EKOFUT4gkp11HPWbJ0j4Pwsp2nLKtveXnzK0mV7csNiWp6IOwJeLq4T_gv4YY9KNXrbQhgv3X0&amp;sig=Cg0ArKJSzEYYEh0jbliQEAE&amp;urlfix=1&amp;adurl=&quot; + url;                    } else {                        clickAddress = &quot;https:\/\/adclick.g.doubleclick.net\/pcs\/click?xai=AKAOjst0CUzh4DGTUXNF-HAvJ95Kc26KyAobg6J5iBO8cUJU4e7QAx8vBTKnGOavuOC8NWdkEQ_qywvW3nI24ubjP2HAx5QBeCVszE2Y_axOaLRFlQBUAGyLRcS3b4yTWgh2Uskv3_t2ta7n_1SKhKd3aBNhWsf_tQHB_mvtmbOjYaLBtwkJjshtrn3W7YcQwHx62d8jSXzzOftmUgSCZ16m38MVSIqUiJPGD1-bQi01849cDQ_34yc7FP03Q8Dj5A29SQ-s8TzC7-g&amp;sai=AMfl-YRK-lcjFrnVJeDHiJY9n96yQLIeaA1RiEvAqGYVfuHnJ_Wx1EKOFUT4gkp11HPWbJ0j4Pwsp2nLKtveXnzK0mV7csNiWp6IOwJeLq4T_gv4YY9KNXrbQhgv3X0&amp;sig=Cg0ArKJSzEYYEh0jbliQEAE&amp;urlfix=1&amp;adurl=&quot; + encodeURIComponent(url);                    }                                logTPTracking_0_4(&quot;Click&quot;);                shLogAndNavigate_0_4(&quot;serve_clickthrough&quot;, evt, url, url_cap_Array_0_4[currentImageIndex_0_4].caption, url_cap_Array_0_4[currentImageIndex_0_4].imageName, clickAddress);          }    }    }        function shLog_0_4(stat_log, event, url, caption, imageName) {              var shassetuuid_0_4 = url_cap_Array_0_4[currentImageIndex_0_4].src.split(&quot;\/&quot;);        var logLabel_0_4 = url_cap_Array_0_4[currentImageIndex_0_4].logLabel;        if(logLabel_0_4 == '') {logLabel_0_4 = imageName};          var shDat_0_4 = {dest: url, assetName: imageName, assetUUID: shassetuuid_0_4[1], slideshowUUID: uuid, label: logLabel_0_4};          logHtmlEvent(event, activeScreen, stat_log, shDat_0_4);            }        function shLogAndNavigate_0_4(stat_log, event, url, caption, imageName, clickAddress) {                    var shassetuuid_0_4 = url_cap_Array_0_4[currentImageIndex_0_4].src.split(&quot;\/&quot;);            var logLabel_0_4 = url_cap_Array_0_4[currentImageIndex_0_4].logLabel;            if(logLabel_0_4 == '') {logLabel_0_4 = imageName};            var shDat_0_4 = {dest: url, assetName: imageName, assetUUID: shassetuuid_0_4[1], slideshowUUID: uuid, label: logLabel_0_4};            logClickAndNavigate(event, activeScreen, stat_log, shDat_0_4, clickAddress);            }    function slideLog_0_4(stat_log, event, caption, imageName) {              url_cap_Array_0_4[currentImageIndex_0_4].logged = true;        var assetuuid_0_4 = url_cap_Array_0_4[currentImageIndex_0_4].src.split(&quot;\/&quot;);        var logLabel_0_4 = url_cap_Array_0_4[currentImageIndex_0_4].logLabel;        if(logLabel_0_4 == '') {logLabel_0_4 = imageName};        var slideDat_0_4 = {assetName: imageName, assetUUID: assetuuid_0_4[1], slideshowUUID: uuid, label: logLabel_0_4};          logHtmlEvent(event, activeScreen, stat_log, slideDat_0_4);            }        function autoStart_0_4() {      if(transitionType_0_4 == &quot;Automatic&quot; &amp;&amp; totalImages_0_4 > 1){        interval_0_4 = setInterval(function(){          if(!mouseOver_0_4  || !transitionPauseOnHover_0_4){            clickArrow_0_4(null, 1, true);          }        }, transitionDuration_0_4*1000);      }      setActions_0_4();    }        function clickPagiBtn_0_4(event, index) {      if(currentImageIndex_0_4 != index){        slideLog_0_4(&quot;slideshow_show_click&quot;, event, url_cap_Array_0_4[currentImageIndex_0_4].caption, url_cap_Array_0_4[currentImageIndex_0_4].imageName);        if(event) preventEventProp(event);        clearInterval_0_4();        hideCurrent_0_4( currentImageIndex_0_4 );        previousImageIndex_0_4 = currentImageIndex_0_4;        currentImageIndex_0_4 = index;        var dir = (currentImageIndex_0_4 > previousImageIndex_0_4)? 1 : -1;        if(currentImageIndex_0_4 == 0 &amp;&amp; previousImageIndex_0_4 == url_cap_Array_0_4.length-1) dir = 1;        if(currentImageIndex_0_4 == url_cap_Array_0_4.length-1 &amp;&amp; previousImageIndex_0_4 == 0) dir = -1;        animateMe_0_4(dir);      }    }    function setUpTrackingVars_0_4(settings){            var obj = {type:&quot;&quot;,url:&quot;&quot;, hash:&quot;74be16979710d4c4e7c6647856088456&quot;};    }    function logTPTracking_0_4(which){              for(i=0;i<this['engage'+which+'_0_4'].length;i++){          if(url_cap_Array_0_4[currentImageIndex_0_4].uuid == this['engage'+which+'_0_4'][i].uuid){            logThirdPartyTracking(this['engage'+which+'_0_4'][i].type, this['engage'+which+'_0_4'][i].url, this['engage'+which+'_0_4'][i].hash);          }        }          }        function updatePagiBtn_0_4(val, func){      val = (val)? val : 0;      func = (func)? func : 0;              var color = (func == 1) ? paginationDotColor_0_4 : &quot;none&quot;;        document.getElementById(&quot;pagiBtn_0_4_&quot;+val).style.background = color;          }        function hideCurrent_0_4(val){      if(t_0_4_2){        prev_0_4.style.display = &quot;none&quot;;        t_0_4_2.kill();      }      var element = document.getElementById(&quot;slide_0_4_&quot;+val);      playerArray_0_4[previousImageIndex_0_4].isPaused = playerArray_0_4[previousImageIndex_0_4].paused;      prev_0_4 = element;      var slideId = currentImageIndex_0_4;      if(val != slideId) {        if (typeof window[&quot;leaveParentEvents_&quot;+val] !== 'undefined') {          for (var index = 0; index < window[&quot;leaveParentEvents_&quot;+val].length; ++index) {            window[window[&quot;leaveParentEvents_&quot;+val][index]]();          }        }      }      var speed = transitionSpeed_0_4;      updatePagiBtn_0_4(val, 1);      t_0_4_2 = TweenLite.to(element, speed, {opacity:0, onComplete:function(){        prev_0_4.style.display = &quot;none&quot;;      }});    }        function clickArrow_0_4(event, dir, auto) {      var save = currentImageIndex_0_4;      previousImageIndex_0_4 = save;      currentImageIndex_0_4 += dir;      if(currentImageIndex_0_4 == -1){        currentImageIndex_0_4 = (totalImages_0_4-1);      }      if(currentImageIndex_0_4 == totalImages_0_4){        currentImageIndex_0_4 = 0;      }      if(!auto){        logTPTracking_0_4(&quot;SlideView&quot;);        slideLog_0_4(&quot;slideshow_show_click&quot;, event, url_cap_Array_0_4[currentImageIndex_0_4].caption, url_cap_Array_0_4[currentImageIndex_0_4].imageName);      }      else{                if(url_cap_Array_0_4[currentImageIndex_0_4].logged == &quot;false&quot;){          logTPTracking_0_4(&quot;SlideView&quot;);          var sldEvent = document.createEvent(&quot;CustomEvent&quot;);          slideLog_0_4(&quot;slideshow_show_auto&quot;, sldEvent, url_cap_Array_0_4[currentImageIndex_0_4].caption, url_cap_Array_0_4[currentImageIndex_0_4].imageName);        }      }    if(event){      preventEventProp(event);      if(transitionEffect_0_4 == &quot;Slide&quot; &amp;&amp; transitionType_0_4 == &quot;Automatic&quot;){        mobileTouchDirection_0_4 = (dir == 1) ? &quot;From Left&quot; : &quot;From Right&quot;;      }    }    fillVideoPlayer_0_4();        clearInterval_0_4();    hideCurrent_0_4(save);    animateMe_0_4(dir);    }    function clearInterval_0_4() {      clearInterval(interval_0_4);      interval_0_4 = 0;    }        function scrollRail_0_4(event,dir,fromThumbArrows){      if(event) preventEventProp(event);    if(thumbnailPagi_0_4) {      var railEle = document.getElementById(&quot;thumb_rail_0_4&quot;);      var pagiItemHolderWidth = parseInt(document.getElementById(&quot;pagi_item_holder_0_4&quot;).style.width);      visibleThumbs_0_4 = Math.floor(pagiItemHolderWidth \/ ( (thumbSize_0_4 + (thumbHighlightSize0_4*4)) - thumbHighlightSize0_4));      var maxEndLeft = ( (thumbSize_0_4 + (thumbHighlightSize0_4*4)) - thumbHighlightSize0_4)*dir;      maxEndLeft *= (totalImages_0_4-visibleThumbs_0_4);      maxEndLeft = -Math.abs(maxEndLeft);      if(!fromThumbArrows){        var leftVal = thumbSize_0_4 + (thumbHighlightSize0_4*4);        leftVal -= thumbHighlightSize0_4;        leftVal *= currentImageIndex_0_4;        leftVal = -Math.abs(leftVal);        if(maxEndLeft > leftVal) leftVal = maxEndLeft;        if(!hoverOverThumbRail_0_4){          railEle.style.left = leftVal + &quot;px&quot;;        }      }      else{        railLeft_0_4 = parseInt(railEle.style.left);        railLeft_0_4 -= (( (thumbSize_0_4 + (thumbHighlightSize0_4*4)) - thumbHighlightSize0_4)*dir);        if(dir==1 &amp;&amp; maxEndLeft > railLeft_0_4) railLeft_0_4 = maxEndLeft;        if(dir == -1 &amp;&amp; railLeft_0_4 > 0) railLeft_0_4 = 0;        railEle.style.left = railLeft_0_4 + &quot;px&quot;;      }    } else{      var railEle = document.getElementById(&quot;dot_rail_0_4&quot;);      var pagiItemHolderWidth = parseInt(document.getElementById(&quot;pagi_item_holder_0_4&quot;).style.width);      var dotSize = 9 + 4;      visibleThumbs_0_4 = Math.floor(pagiItemHolderWidth\/dotSize);      var maxEndLeft = (dotSize*dir);      maxEndLeft *= (totalImages_0_4-visibleThumbs_0_4);      maxEndLeft = -Math.abs(maxEndLeft);      if(!fromThumbArrows){        var leftVal = dotSize;        leftVal -= thumbHighlightSize0_4;        leftVal *= currentImageIndex_0_4;        leftVal = -Math.abs(leftVal);        if(maxEndLeft > leftVal) leftVal = maxEndLeft;        if(!hoverOverThumbRail_0_4){          railEle.style.left = leftVal + &quot;px&quot;;        }      }      else{        railLeft_0_4 = parseInt(railEle.style.left);        railLeft_0_4 -= (dotSize*dir);        if(dir==1 &amp;&amp; maxEndLeft > railLeft_0_4) railLeft_0_4 = maxEndLeft;        if(dir == -1 &amp;&amp; railLeft_0_4 > 0) railLeft_0_4 = 0;        railEle.style.left = railLeft_0_4 + &quot;px&quot;;      }    }    }        function animateMe_0_4(whichArrowClick) {      updatePagiBtn_0_4(currentImageIndex_0_4, 0);      if(t_0_4) t_0_4.kill();      var element = document.getElementById(&quot;slide_0_4_&quot;+currentImageIndex_0_4);      var prevElement = document.getElementById(&quot;slide_0_4_&quot;+previousImageIndex_0_4);      if(!jQuery.isEmptyObject(playerArray_0_4[currentImageIndex_0_4]) &amp;&amp; !playerArray_0_4[currentImageIndex_0_4].isPaused &amp;&amp; playerArray_0_4[currentImageIndex_0_4].isPaused != undefined) {        if($(element).find('video').length == 1) {          if(playerArray_0_4[currentImageIndex_0_4].ended &amp;&amp; !recipeArray_0_4[currentImageIndex_0_4].loop) {          } else{            playerArray_0_4[currentImageIndex_0_4].play();            playingArray_0_4[currentImageIndex_0_4] = 1;          }        }      } else if(playerArray_0_4[currentImageIndex_0_4].isPaused == undefined &amp;&amp; recipeArray_0_4[currentImageIndex_0_4].autoplay) {        if(recipeArray_0_4[currentImageIndex_0_4].slideshowAssetType =='Youtube') {          playerArray_0_4[currentImageIndex_0_4].playVideo();        } else{          playerArray_0_4[currentImageIndex_0_4].play();        }        playingArray_0_4[currentImageIndex_0_4] = 1;      if(isAndroid){          if(playerArray_0_4[currentImageIndex_0_4].currentTime == 0){            var autoEvent = new CustomEvent(&quot;AndroidAuto&quot;, {});            cvLog_0_4('play_video_auto', Math.floor(playerArray_0_4[currentImageIndex_0_4].currentTime), autoEvent);            logTPTracking_0_4('AutoPlay');          }              if(muted_0_4)playerArray_0_4[currentImageIndex_0_4].muted=true;        else if(!muted_0_4)playerArray_0_4[currentImageIndex_0_4].muted=false;        playingArray_0_4[currentImageIndex_0_4] = 1;        if($('#playButtonDiv-0-4_'+currentImageIndex_0_4))$('#playButtonDiv-0-4_'+currentImageIndex_0_4).css(&quot;opacity&quot;, &quot;0&quot;);      }      toggleChromelessPlay_0_4();        if(!recipeArray_0_4[currentImageIndex_0_4].autoPlayWithSound) {          if(recipeArray_0_4[currentImageIndex_0_4].slideshowAssetType =='Youtube') {            playerArray_0_4[currentImageIndex_0_4].mute();          } else{            playerArray_0_4[currentImageIndex_0_4].setMuted(true);          }        }      }            if(!jQuery.isEmptyObject(playerArray_0_4[previousImageIndex_0_4])) {        if($(prevElement).find('video').length == 1) {            if(typeof playerArray_0_4[previousImageIndex_0_4].pause == 'function'){               playerArray_0_4[previousImageIndex_0_4].pause();               playingArray_0_4[previousImageIndex_0_4] = 0;               if($('#playButtonDiv_'+previousImageIndex_0_4))$('#playButtonDiv_'+previousImageIndex_0_4).css(&quot;opacity&quot;, &quot;100&quot;);          }        } else if($(prevElement).find('.slideshow-youtube-frame-wrapper iframe').length == 1) {           playerArray_0_4[previousImageIndex_0_4].pauseVideo();        }      }      var aniTo = {};      var dir = (mobileTouchDirection_0_4 == &quot;&quot;) ? transitionDirection_0_4 : mobileTouchDirection_0_4;      var speed = transitionSpeed_0_4;    if(whichArrowClick){        if(dir == &quot;Arrow Direction&quot;){          dir = (whichArrowClick == 1)? &quot;From Left&quot;: &quot;From Right&quot;;        }      }      element.style.display = &quot;block&quot;;      aniTo.onComplete=aniDone_0_4;      element.style.opacity = 1;      switch(transitionEffect_0_4){        case &quot;Fade&quot;:          aniTo.opacity = 1;          element.style.opacity = 0;        break;        case &quot;Scale&quot;:          element = document.getElementById(&quot;img_0_4_&quot;+currentImageIndex_0_4);          \/* If this is not an image, then we need to find the video *\/          if (element === null) {               if(recipeArray_0_4[currentImageIndex_0_4].slideshowAssetType =='Youtube') {                   element = document.getElementById(&quot;youtubeWrapper_0_4_&quot;+currentImageIndex_0_4);               }               else if(recipeArray_0_4[currentImageIndex_0_4].slideshowAssetType =='Uploaded Asset') {                   element = document.getElementById(&quot;vidWrapper_0_4_&quot;+currentImageIndex_0_4);               }          }          aniTo.transform = 'scale(1)';        break;        case &quot;Slide&quot;:          aniTo.top = aniSettings_0_4[&quot;slideSettings_&quot;+currentImageIndex_0_4].top;          aniTo.left = aniSettings_0_4[&quot;slideSettings_&quot;+currentImageIndex_0_4].left;          if(dir == &quot;From Top&quot;){            element.style.top = (appH_0_4 * -1)+'px';        }else if(dir == &quot;From Bottom&quot;){          element.style.top = appH_0_4+'px';        }else if(dir == &quot;From Left&quot;){          element.style.left = (appW_0_4 * -1)+'px';        }else if(dir == &quot;From Right&quot;){          element.style.left = appW_0_4+'px';        }        break;      }      if(transitionEffect_0_4 != &quot;Scale&quot;){        t_0_4 = TweenLite.to(element, speed, aniTo);      }else{        t_0_4 = TweenLite.fromTo(element, speed,{transform:'scale(0)'}, aniTo);      }      mobileTouchDirection_0_4 = &quot;&quot;;      setActions_0_4();    }        function setActions_0_4() {      if (url_cap_Array_0_4[currentImageIndex_0_4].actionsSet === undefined) {        url_cap_Array_0_4[currentImageIndex_0_4].actionsSet = true;        var slideId = currentImageIndex_0_4;        if (typeof window[&quot;fireParentEvents_&quot;+slideId] !== 'undefined') {          for (var index = 0; index < window[&quot;fireParentEvents_&quot;+slideId].length; ++index) {            window[window[&quot;fireParentEvents_&quot;+slideId][index]]();          }        }      }    }      function resetSeek_0_4(i, player) {        var ytEvent = new CustomEvent(&quot;YouTubeClick&quot;, {});        scrubbing_0_4=0;        var pTime = Math.floor(player.getCurrentTime());        vCounter_0_4 = pTime;        cvLog_0_4('seek_youtube_click', pTime, ytEvent, 'youtube');    }    function aniDone_0_4(){      if(interval_0_4 == 0 &amp;&amp; transitionType_0_4 == &quot;Automatic&quot; &amp;&amp; (!mouseOver_0_4 || !transitionPauseOnHover_0_4) &amp;&amp; (transitionLoop_0_4 || (!transitionLoop_0_4 &amp;&amp; (currentImageIndex_0_4 < (totalImages_0_4-1)) ) )){        autoStart_0_4();      }    }    function hoverOver_0_4() {      mouseOver_0_4 = true;      if(arrowDisplay_0_4 == &quot;On Hover&quot; || arrowDisplay_0_4 == &quot;Always&quot;){        document.getElementById(&quot;LArrow_0_4&quot;).style.display = &quot;block&quot;;        document.getElementById(&quot;RArrow_0_4&quot;).style.display = &quot;block&quot;;      }else{        document.getElementById(&quot;LArrow_0_4&quot;).style.display = &quot;none&quot;;        document.getElementById(&quot;RArrow_0_4&quot;).style.display = &quot;none&quot;;      }      if(paginationDisplay_0_4 == &quot;On Hover&quot; || paginationDisplay_0_4 == &quot;Always&quot;){        document.getElementById(&quot;pagiBar_0_4&quot;).style.display = &quot;block&quot;;      }else{        document.getElementById(&quot;pagiBar_0_4&quot;).style.display = &quot;none&quot;;      }            if(arrowType_0_4 == 'Hitbox') {        document.getElementById(&quot;LArrow_0_4&quot;).style.display = &quot;block&quot;;        document.getElementById(&quot;RArrow_0_4&quot;).style.display = &quot;block&quot;;      }      if(transitionPauseOnHover_0_4) clearInterval_0_4();    }    function hoverOut_0_4() {      mouseOver_0_4 = false;      if(arrowDisplay_0_4 == &quot;Always&quot;){        document.getElementById(&quot;LArrow_0_4&quot;).style.display = &quot;block&quot;;        document.getElementById(&quot;RArrow_0_4&quot;).style.display = &quot;block&quot;;      }else{        document.getElementById(&quot;LArrow_0_4&quot;).style.display = &quot;none&quot;;        document.getElementById(&quot;RArrow_0_4&quot;).style.display = &quot;none&quot;;      }      if(paginationDisplay_0_4 == &quot;Always&quot;){        document.getElementById(&quot;pagiBar_0_4&quot;).style.display = &quot;block&quot;;      }else{        document.getElementById(&quot;pagiBar_0_4&quot;).style.display = &quot;none&quot;;      }      if(arrowType_0_4 == 'Hitbox') {        document.getElementById(&quot;LArrow_0_4&quot;).style.display = &quot;block&quot;;        document.getElementById(&quot;RArrow_0_4&quot;).style.display = &quot;block&quot;;      }      if(transitionType_0_4 == &quot;Automatic&quot; &amp;&amp; transitionPauseOnHover_0_4){ clearInterval_0_4(); autoStart_0_4(); }    }                fireEvents_0.push(&quot;ssAppInit_0_4&quot;,&quot;positionCaption_0_4&quot;,&quot;autoStart_0_4&quot;,&quot;updatePagiBtn_0_4&quot;);        leaveScreenEvents_0.push(&quot;ytLeave_0_4&quot;);        reenterScreenEvents_0.push(&quot;ytReturn_0_4&quot;);    var slideshow_content_0_4='\n\n<div>\n<div style=&quot;overflow:hidden; position:absolute; width:300px; height:250px;&quot;>\n<div style=&quot;position:absolute;width:100%;height:100%;overflow:hidden;top:0;left:0;-webkit-user-select: none;-khtml-user-select: none;-moz-user-select: none;-o-user-select: none;user-select: none;cursor:pointer&quot; id=&quot;slide_0_4_0&quot;onclick=&quot;goToHref_0_4(event);&quot;><\/div>\n<div style=&quot;height:35px;width:100%;background-color:#333333;position:absolute;overflow:hidden;bottom:0;filter: alpha(opacity=100); -moz-opacity: 1.00; -khtml-opacity: 1.00; opacity: 1.00; display:none;; z-index:2002&quot; id=&quot;pagiBar_0_4&quot;>\n<div id=&quot;pagi_item_holder_0_4&quot; style=&quot;width:13px; height:11px;top:13px;position:relative;margin:0 auto;z-index:5;&quot;>\n<div id=&quot;dot_rail_0_4&quot; style=&quot;width:13px; height:100%;position:absolute; left: 0; z-index:1;transition: left 300ms;-webkit-user-select: none;-khtml-user-select: none;-moz-user-select: none;-o-user-select: none;user-select: none;&quot;>\n<div id=&quot;pagiBtn_0_4_0&quot; style=&quot;width:9px;height:9px;background-color: #ffffff;border:1px solid #ffffff;float:left;margin-left:1px;margin-right:1px;position:relative;-moz-border-radius: 12px;-webkit-border-radius: 12px;border-radius: 12px;&quot; onclick=&quot;clickPagiBtn_0_4(event,0);&quot;> <\/div>\n<\/div><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div id=&quot;LArrow_0_4&quot; onclick=&quot;clickArrow_0_4(event, -1);&quot; style=&quot;height:75px; top:100px; display:none; float:left; width:auto; position: relative; z-index:2002;&quot;>\n<div style=&quot;width:50px; height:50px; position:relative;filter: alpha(opacity=100); -moz-opacity: 1.00; -khtml-opacity: 1.00; opacity: 1.00; -webkit-user-select: none;-khtml-user-select: none;-moz-user-select: none;-o-user-select: none;user-select: none;&quot;> <svg style=&quot;position:absolute; left:-8px;stroke:#333333; transform:scaleX(-1);&quot; class=&quot;svgArrow&quot; width=&quot;50&quot; height=&quot;50&quot;><use xmlns:xlink=&quot;http:\/\/www.w3.org\/1999\/xlink&quot; xlink:href=&quot;#arrow&quot;><\/use><\/svg> <\/div>\n<\/p><\/div>\n<div id=&quot;RArrow_0_4&quot; onclick=&quot;clickArrow_0_4(event, 1);&quot; style=&quot;height:75px; top:100px; display:none; float:right; width:auto; position:relative; z-index:2002;&quot;>\n<div style=&quot;width:50px; height:50px; position:relative;filter: alpha(opacity=100); -moz-opacity: 1.00; -khtml-opacity: 1.00; opacity: 1.00; -webkit-user-select: none;-khtml-user-select: none;-moz-user-select: none;-o-user-select: none;user-select: none;&quot;> <svg style=&quot;position:absolute; left:8px;stroke:#333333;&quot; class=&quot;svgArrow&quot; width=&quot;50&quot; height=&quot;50&quot;><use xmlns:xlink=&quot;http:\/\/www.w3.org\/1999\/xlink&quot; xlink:href=&quot;#arrow&quot;><\/use><\/svg> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<p>';var anim_el_0_5 = document.getElementById(&quot;layer-0-5&quot;);var orientationLock_0_5 = &quot;&quot;;var dontAnimate_0_5 = false;var ua = navigator.userAgent.toLowerCase();var isAndroid = (ua.indexOf(&quot;android&quot;) > -1);var isiOS = navigator.userAgent.match(\/iPad|iPhone|iPod\/g);var oriCond_0_5 =    (orientationLock_0_5 != &quot;&quot; &amp;&amp; orientationLock_0_5 != &quot;Never&quot;)    &amp;&amp; (isAndroid || isiOS);if (oriCond_0_5) {    window.parent.window.addEventListener(&quot;resize&quot;, function(event) {        checkOrientationAni_0_5(event);    }, false);}function checkOrientationAni_0_5(event){    if(oriCond_0_5) {        var obj = (event != undefined) ?            event.currentTarget : window.parent.window;        try {            \/* Landscape *\/            if(obj.innerWidth > obj.innerHeight){                if(orientationLock_0_5 == &quot;Portrait&quot;){                    dontAnimate_0_5 = true;                    t_0_5_0.pause();                } else {                    dontAnimate_0_5 = false;                    t_0_5_0.play();                }            }            \/* Portrait *\/            else if(obj.innerHeight > obj.innerWidth){                if(orientationLock_0_5 == &quot;Landscape&quot;){                    dontAnimate_0_5 = true;                    t_0_5_0.pause();                } else {                    dontAnimate_0_5 = false;                    t_0_5_0.play();                }            }        } catch (e) { }    }}\/*    Create the callback functions for the animations.    These are triggered when the screen loads for the first time*\/    var anim = JSON.parse('{&quot;animationID&quot;:&quot;ac361c62-edca-4c51-9e85-eca3f78b11b4&quot;,&quot;direction&quot;:&quot;&quot;,&quot;easing&quot;:&quot;Linear.easeNone&quot;,&quot;endTime&quot;:4,&quot;endValue&quot;:&quot;0%&quot;,&quot;endValueX&quot;:-301,&quot;endValueY&quot;:71,&quot;repeat&quot;:0,&quot;startTime&quot;:3,&quot;startValue&quot;:&quot;0%&quot;,&quot;type&quot;:&quot;Slide&quot;,&quot;onView&quot;:0,&quot;loop&quot;:0,&quot;autoAlpha&quot;:0,&quot;rotation&quot;:&quot;0%&quot;,&quot;scale&quot;:0,&quot;left&quot;:-301,&quot;top&quot;:71,&quot;delay&quot;:3,&quot;range&quot;:1}');    var origStyle_0_5 = anim_el_0_5.getAttribute('style');    if (typeof animRepeat_0 === 'undefined') {        var animRepeat_0 = 0;    }    if (typeof animCount_0 === 'undefined') {        var animCount_0 = 1;    } else {        animCount_0++;    }    if (typeof anim_re_style_0 === 'undefined') {        var anim_re_style_0 = [];        var anim_re_layer_0 = [];        var anim_re_func_0 = [];        var anim_re_tween_0 = [];        var anim_re_loop_0 = [];    }    if (typeof anim_re_init_rotate_0_5 === 'undefined') {        var el_0_5 = document.getElementById(&quot;layer-0-5&quot;);        var st_0_5 = window.getComputedStyle(el_0_5, null);        var tr_0_5 = st_0_5.getPropertyValue(&quot;-webkit-transform&quot;) ||                 st_0_5.getPropertyValue(&quot;-moz-transform&quot;) ||                 st_0_5.getPropertyValue(&quot;-ms-transform&quot;) ||                 st_0_5.getPropertyValue(&quot;-o-transform&quot;) ||                 st_0_5.getPropertyValue(&quot;transform&quot;) ||                 &quot;FAIL&quot;;        if (tr_0_5 === 'none') {            var  anim_re_init_scale_0_5 = 0;            var  anim_re_init_rotate_0_5 = 0;        } else {            var values_0_5 = tr_0_5.split('(')[1].split(')')[0].split(',');            var a_0_5 = values_0_5[0];            var b_0_5 = values_0_5[1];            var c_0_5 = values_0_5[2];            var d_0_5 = values_0_5[3];            var scale_0_5 = Math.sqrt(a_0_5*a_0_5 + b_0_5*b_0_5);            var sin_0_5 = b_0_5\/scale_0_5;            var angle_0_5 = Math.round(Math.atan2(b_0_5, a_0_5) * (180\/Math.PI));            var anim_re_init_scale_0_5 = scale_0_5;            var anim_re_init_rotate_0_5 = angle_0_5;        }    }\/*    ----------------------------------------------------------------------    | Slide Animations    ----------------------------------------------------------------------*\/    \/* Scope changes once you go into the following function *\/    var ani_0_5_0 = function () {                var onView_0_5_0 = !!parseInt(0);        \/* Create the animation. *\/        t_0_5_0 = TweenLite.to(            anim_el_0_5,            1,            {                css: {                    left: -301+ &quot;px&quot;,                    top: 71+ &quot;px&quot;                },                delay: 3,                onComplete: compCallback_0_5_0,                ease: Linear.easeNone            }        );        if(dontAnimate_0_5) {            t_0_5_0.pause();        }        anim_re_tween_0.push(t_0_5_0);        \/* Start on view animations should start paused *\/        if(onView_0_5_0){            t_0_5_0.pause();            viewScreenEvents_0.push([&quot;triggerPlay_0_5_0&quot;, anim_el_0_5]);        }        \/* Complete callback *\/        function compCallback_0_5_0() {            if(!!parseInt(0)) {                \/* Don't use the delay  *\/                t_0_5_0.restart(false, false);                if(anim_re_loop_0.indexOf(&quot;0_5_0&quot;) == -1) {                    animCount_0--;                    anim_re_style_0.push(origStyle_0_5);                    anim_re_layer_0.push(anim_el_0_5);                    anim_re_func_0.push(&quot;ani_0_5_0&quot;);                }                anim_re_loop_0.push(&quot;0_5_0&quot;);            }            if(!parseInt(0)) {                animCount_0--;                anim_re_style_0.push(origStyle_0_5);                anim_re_layer_0.push(anim_el_0_5);                anim_re_func_0.push(&quot;ani_0_5_0&quot;);            }            if(!animCount_0) {                if ((animRepeat_0 > 0) || (animRepeat_0 < 0)) {                    if(animRepeat_0 > 0) {                        animRepeat_0--;                    }                    animCount_0 = anim_re_layer_0.length;                    for(i = 0; i < anim_re_layer_0.length; i++) {                        anim_re_tween_0[i].play(0);                        anim_re_tween_0[i].pause();                        TweenLite.set(anim_re_layer_0[i], {                            rotation: anim_re_init_rotate_0_5                        });                        anim_re_layer_0[i].setAttribute('style', anim_re_style_0[i]);                    }                    for(i = 0; i < anim_re_func_0.length; i++) {                        \/*if(!dontAnimate_0_5) {                            var tLayer = anim_re_layer_0[i];                            var tTop = tLayer.style.getPropertyValue('top');                            var tLeft = tLayer.style.getPropertyValue('left');                            var tDelay = 4;                            TweenLite.to(                                tLayer,                                .002,                                {                                    css: {                                        left: tLeft,                                        top: tTop                                    },                                    delay: tDelay                                }                            );*\/                            anim_re_tween_0[i].restart(true, false);                        \/*}*\/                    }                    anim_re_style_0 = [];                    anim_re_layer_0 = [];                    anim_re_func_0 = [];                    anim_re_loop_0 = [];                }            }        }    };\/*    ----------------------------------------------------------------------    | Rotate Animations    ----------------------------------------------------------------------*\/\/*    ----------------------------------------------------------------------    | Fade Animations    ----------------------------------------------------------------------*\/\/*    ----------------------------------------------------------------------    | Scale Animations    ----------------------------------------------------------------------*\/var triggerPlay_0_5_0 = function(){    t_0_5_0.play();};\/*    ----------------------------------------------------------------------    | Not Parallax Scroll    ----------------------------------------------------------------------*\/    \/* Add the animations to an array to be fired when the screen is loaded *\/            \/* Do not load animations if in thumbnail preview. *\/        if (!parent.window.preventSpecialFormat) {            try {                fireEvents_0.push(&quot;ani_0_5_0&quot;);            } catch (e) {                var fireEvents_0 = [];                fireEvents_0.push(&quot;ani_0_5_0&quot;);            }        }        checkOrientationAni_0_5();var anim_el_0_6 = document.getElementById(&quot;layer-0-6&quot;);var orientationLock_0_6 = &quot;&quot;;var dontAnimate_0_6 = false;var ua = navigator.userAgent.toLowerCase();var isAndroid = (ua.indexOf(&quot;android&quot;) > -1);var isiOS = navigator.userAgent.match(\/iPad|iPhone|iPod\/g);var oriCond_0_6 =    (orientationLock_0_6 != &quot;&quot; &amp;&amp; orientationLock_0_6 != &quot;Never&quot;)    &amp;&amp; (isAndroid || isiOS);if (oriCond_0_6) {    window.parent.window.addEventListener(&quot;resize&quot;, function(event) {        checkOrientationAni_0_6(event);    }, false);}function checkOrientationAni_0_6(event){    if(oriCond_0_6) {        var obj = (event != undefined) ?            event.currentTarget : window.parent.window;        try {            \/* Landscape *\/            if(obj.innerWidth > obj.innerHeight){                if(orientationLock_0_6 == &quot;Portrait&quot;){                    dontAnimate_0_6 = true;                    t_0_6_0.pause();                } else {                    dontAnimate_0_6 = false;                    t_0_6_0.play();                }            }            \/* Portrait *\/            else if(obj.innerHeight > obj.innerWidth){                if(orientationLock_0_6 == &quot;Landscape&quot;){                    dontAnimate_0_6 = true;                    t_0_6_0.pause();                } else {                    dontAnimate_0_6 = false;                    t_0_6_0.play();                }            }        } catch (e) { }    }}\/*    Create the callback functions for the animations.    These are triggered when the screen loads for the first time*\/    var anim = JSON.parse('{&quot;animationID&quot;:&quot;e53a81af-679c-4760-a474-75a7f4a5533d&quot;,&quot;direction&quot;:&quot;&quot;,&quot;easing&quot;:&quot;Linear.easeNone&quot;,&quot;endTime&quot;:7,&quot;endValue&quot;:&quot;0%&quot;,&quot;endValueX&quot;:24,&quot;endValueY&quot;:84,&quot;repeat&quot;:0,&quot;startTime&quot;:6,&quot;startValue&quot;:&quot;0%&quot;,&quot;type&quot;:&quot;Slide&quot;,&quot;onView&quot;:0,&quot;loop&quot;:0,&quot;autoAlpha&quot;:0,&quot;rotation&quot;:&quot;0%&quot;,&quot;scale&quot;:0,&quot;left&quot;:24,&quot;top&quot;:84,&quot;delay&quot;:6,&quot;range&quot;:1}');    var origStyle_0_6 = anim_el_0_6.getAttribute('style');    if (typeof animRepeat_0 === 'undefined') {        var animRepeat_0 = 0;    }    if (typeof animCount_0 === 'undefined') {        var animCount_0 = 1;    } else {        animCount_0++;    }    if (typeof anim_re_style_0 === 'undefined') {        var anim_re_style_0 = [];        var anim_re_layer_0 = [];        var anim_re_func_0 = [];        var anim_re_tween_0 = [];        var anim_re_loop_0 = [];    }    if (typeof anim_re_init_rotate_0_6 === 'undefined') {        var el_0_6 = document.getElementById(&quot;layer-0-6&quot;);        var st_0_6 = window.getComputedStyle(el_0_6, null);        var tr_0_6 = st_0_6.getPropertyValue(&quot;-webkit-transform&quot;) ||                 st_0_6.getPropertyValue(&quot;-moz-transform&quot;) ||                 st_0_6.getPropertyValue(&quot;-ms-transform&quot;) ||                 st_0_6.getPropertyValue(&quot;-o-transform&quot;) ||                 st_0_6.getPropertyValue(&quot;transform&quot;) ||                 &quot;FAIL&quot;;        if (tr_0_6 === 'none') {            var  anim_re_init_scale_0_6 = 0;            var  anim_re_init_rotate_0_6 = 0;        } else {            var values_0_6 = tr_0_6.split('(')[1].split(')')[0].split(',');            var a_0_6 = values_0_6[0];            var b_0_6 = values_0_6[1];            var c_0_6 = values_0_6[2];            var d_0_6 = values_0_6[3];            var scale_0_6 = Math.sqrt(a_0_6*a_0_6 + b_0_6*b_0_6);            var sin_0_6 = b_0_6\/scale_0_6;            var angle_0_6 = Math.round(Math.atan2(b_0_6, a_0_6) * (180\/Math.PI));            var anim_re_init_scale_0_6 = scale_0_6;            var anim_re_init_rotate_0_6 = angle_0_6;        }    }\/*    ----------------------------------------------------------------------    | Slide Animations    ----------------------------------------------------------------------*\/    \/* Scope changes once you go into the following function *\/    var ani_0_6_0 = function () {                var onView_0_6_0 = !!parseInt(0);        \/* Create the animation. *\/        t_0_6_0 = TweenLite.to(            anim_el_0_6,            1,            {                css: {                    left: 24+ &quot;px&quot;,                    top: 84+ &quot;px&quot;                },                delay: 6,                onComplete: compCallback_0_6_0,                ease: Linear.easeNone            }        );        if(dontAnimate_0_6) {            t_0_6_0.pause();        }        anim_re_tween_0.push(t_0_6_0);        \/* Start on view animations should start paused *\/        if(onView_0_6_0){            t_0_6_0.pause();            viewScreenEvents_0.push([&quot;triggerPlay_0_6_0&quot;, anim_el_0_6]);        }        \/* Complete callback *\/        function compCallback_0_6_0() {            if(!!parseInt(0)) {                \/* Don't use the delay  *\/                t_0_6_0.restart(false, false);                if(anim_re_loop_0.indexOf(&quot;0_6_0&quot;) == -1) {                    animCount_0--;                    anim_re_style_0.push(origStyle_0_6);                    anim_re_layer_0.push(anim_el_0_6);                    anim_re_func_0.push(&quot;ani_0_6_0&quot;);                }                anim_re_loop_0.push(&quot;0_6_0&quot;);            }            if(!parseInt(0)) {                animCount_0--;                anim_re_style_0.push(origStyle_0_6);                anim_re_layer_0.push(anim_el_0_6);                anim_re_func_0.push(&quot;ani_0_6_0&quot;);            }            if(!animCount_0) {                if ((animRepeat_0 > 0) || (animRepeat_0 < 0)) {                    if(animRepeat_0 > 0) {                        animRepeat_0--;                    }                    animCount_0 = anim_re_layer_0.length;                    for(i = 0; i < anim_re_layer_0.length; i++) {                        anim_re_tween_0[i].play(0);                        anim_re_tween_0[i].pause();                        TweenLite.set(anim_re_layer_0[i], {                            rotation: anim_re_init_rotate_0_6                        });                        anim_re_layer_0[i].setAttribute('style', anim_re_style_0[i]);                    }                    for(i = 0; i < anim_re_func_0.length; i++) {                        \/*if(!dontAnimate_0_6) {                            var tLayer = anim_re_layer_0[i];                            var tTop = tLayer.style.getPropertyValue('top');                            var tLeft = tLayer.style.getPropertyValue('left');                            var tDelay = 7;                            TweenLite.to(                                tLayer,                                .002,                                {                                    css: {                                        left: tLeft,                                        top: tTop                                    },                                    delay: tDelay                                }                            );*\/                            anim_re_tween_0[i].restart(true, false);                        \/*}*\/                    }                    anim_re_style_0 = [];                    anim_re_layer_0 = [];                    anim_re_func_0 = [];                    anim_re_loop_0 = [];                }            }        }    };\/*    ----------------------------------------------------------------------    | Rotate Animations    ----------------------------------------------------------------------*\/\/*    ----------------------------------------------------------------------    | Fade Animations    ----------------------------------------------------------------------*\/\/*    ----------------------------------------------------------------------    | Scale Animations    ----------------------------------------------------------------------*\/var triggerPlay_0_6_0 = function(){    t_0_6_0.play();};\/*    ----------------------------------------------------------------------    | Not Parallax Scroll    ----------------------------------------------------------------------*\/    \/* Add the animations to an array to be fired when the screen is loaded *\/            \/* Do not load animations if in thumbnail preview. *\/        if (!parent.window.preventSpecialFormat) {            try {                fireEvents_0.push(&quot;ani_0_6_0&quot;);            } catch (e) {                var fireEvents_0 = [];                fireEvents_0.push(&quot;ani_0_6_0&quot;);            }        }            var anim = JSON.parse('{&quot;animationID&quot;:&quot;46f36eb6-5b7a-4fe4-b138-4f7a42c5236f&quot;,&quot;direction&quot;:&quot;&quot;,&quot;easing&quot;:&quot;Linear.easeNone&quot;,&quot;endTime&quot;:7,&quot;endValue&quot;:&quot;0%&quot;,&quot;endValueX&quot;:-245,&quot;endValueY&quot;:84,&quot;repeat&quot;:0,&quot;startTime&quot;:6.1,&quot;startValue&quot;:&quot;0%&quot;,&quot;type&quot;:&quot;Slide&quot;,&quot;onView&quot;:0,&quot;loop&quot;:0,&quot;autoAlpha&quot;:0,&quot;rotation&quot;:&quot;0%&quot;,&quot;scale&quot;:0,&quot;left&quot;:-245,&quot;top&quot;:84,&quot;delay&quot;:6.1,&quot;range&quot;:0.9000000000000004}');    var origStyle_0_6 = anim_el_0_6.getAttribute('style');    if (typeof animRepeat_0 === 'undefined') {        var animRepeat_0 = 0;    }    if (typeof animCount_0 === 'undefined') {        var animCount_0 = 1;    } else {        animCount_0++;    }    if (typeof anim_re_style_0 === 'undefined') {        var anim_re_style_0 = [];        var anim_re_layer_0 = [];        var anim_re_func_0 = [];        var anim_re_tween_0 = [];        var anim_re_loop_0 = [];    }    if (typeof anim_re_init_rotate_0_6 === 'undefined') {        var el_0_6 = document.getElementById(&quot;layer-0-6&quot;);        var st_0_6 = window.getComputedStyle(el_0_6, null);        var tr_0_6 = st_0_6.getPropertyValue(&quot;-webkit-transform&quot;) ||                 st_0_6.getPropertyValue(&quot;-moz-transform&quot;) ||                 st_0_6.getPropertyValue(&quot;-ms-transform&quot;) ||                 st_0_6.getPropertyValue(&quot;-o-transform&quot;) ||                 st_0_6.getPropertyValue(&quot;transform&quot;) ||                 &quot;FAIL&quot;;        if (tr_0_6 === 'none') {            var  anim_re_init_scale_0_6 = 0;            var  anim_re_init_rotate_0_6 = 0;        } else {            var values_0_6 = tr_0_6.split('(')[1].split(')')[0].split(',');            var a_0_6 = values_0_6[0];            var b_0_6 = values_0_6[1];            var c_0_6 = values_0_6[2];            var d_0_6 = values_0_6[3];            var scale_0_6 = Math.sqrt(a_0_6*a_0_6 + b_0_6*b_0_6);            var sin_0_6 = b_0_6\/scale_0_6;            var angle_0_6 = Math.round(Math.atan2(b_0_6, a_0_6) * (180\/Math.PI));            var anim_re_init_scale_0_6 = scale_0_6;            var anim_re_init_rotate_0_6 = angle_0_6;        }    }\/*    ----------------------------------------------------------------------    | Slide Animations    ----------------------------------------------------------------------*\/    \/* Scope changes once you go into the following function *\/    var ani_0_6_1 = function () {                var onView_0_6_1 = !!parseInt(0);        \/* Create the animation. *\/        t_0_6_1 = TweenLite.to(            anim_el_0_6,            0.9000000000000004,            {                css: {                    left: -245+ &quot;px&quot;,                    top: 84+ &quot;px&quot;                },                delay: 6.1,                onComplete: compCallback_0_6_1,                ease: Linear.easeNone            }        );        if(dontAnimate_0_6) {            t_0_6_1.pause();        }        anim_re_tween_0.push(t_0_6_1);        \/* Start on view animations should start paused *\/        if(onView_0_6_1){            t_0_6_1.pause();            viewScreenEvents_0.push([&quot;triggerPlay_0_6_1&quot;, anim_el_0_6]);        }        \/* Complete callback *\/        function compCallback_0_6_1() {            if(!!parseInt(0)) {                \/* Don't use the delay  *\/                t_0_6_1.restart(false, false);                if(anim_re_loop_0.indexOf(&quot;0_6_1&quot;) == -1) {                    animCount_0--;                    anim_re_style_0.push(origStyle_0_6);                    anim_re_layer_0.push(anim_el_0_6);                    anim_re_func_0.push(&quot;ani_0_6_1&quot;);                }                anim_re_loop_0.push(&quot;0_6_1&quot;);            }            if(!parseInt(0)) {                animCount_0--;                anim_re_style_0.push(origStyle_0_6);                anim_re_layer_0.push(anim_el_0_6);                anim_re_func_0.push(&quot;ani_0_6_1&quot;);            }            if(!animCount_0) {                if ((animRepeat_0 > 0) || (animRepeat_0 < 0)) {                    if(animRepeat_0 > 0) {                        animRepeat_0--;                    }                    animCount_0 = anim_re_layer_0.length;                    for(i = 0; i < anim_re_layer_0.length; i++) {                        anim_re_tween_0[i].play(0);                        anim_re_tween_0[i].pause();                        TweenLite.set(anim_re_layer_0[i], {                            rotation: anim_re_init_rotate_0_6                        });                        anim_re_layer_0[i].setAttribute('style', anim_re_style_0[i]);                    }                    for(i = 0; i < anim_re_func_0.length; i++) {                        \/*if(!dontAnimate_0_6) {                            var tLayer = anim_re_layer_0[i];                            var tTop = tLayer.style.getPropertyValue('top');                            var tLeft = tLayer.style.getPropertyValue('left');                            var tDelay = 7;                            TweenLite.to(                                tLayer,                                .002,                                {                                    css: {                                        left: tLeft,                                        top: tTop                                    },                                    delay: tDelay                                }                            );*\/                            anim_re_tween_0[i].restart(true, false);                        \/*}*\/                    }                    anim_re_style_0 = [];                    anim_re_layer_0 = [];                    anim_re_func_0 = [];                    anim_re_loop_0 = [];                }            }        }    };\/*    ----------------------------------------------------------------------    | Rotate Animations    ----------------------------------------------------------------------*\/\/*    ----------------------------------------------------------------------    | Fade Animations    ----------------------------------------------------------------------*\/\/*    ----------------------------------------------------------------------    | Scale Animations    ----------------------------------------------------------------------*\/var triggerPlay_0_6_1 = function(){    t_0_6_1.play();};\/*    ----------------------------------------------------------------------    | Not Parallax Scroll    ----------------------------------------------------------------------*\/    \/* Add the animations to an array to be fired when the screen is loaded *\/            \/* Do not load animations if in thumbnail preview. *\/        if (!parent.window.preventSpecialFormat) {            try {                fireEvents_0.push(&quot;ani_0_6_1&quot;);            } catch (e) {                var fireEvents_0 = [];                fireEvents_0.push(&quot;ani_0_6_1&quot;);            }        }        checkOrientationAni_0_6();var anim_el_0_7 = document.getElementById(&quot;layer-0-7&quot;);var orientationLock_0_7 = &quot;&quot;;var dontAnimate_0_7 = false;var ua = navigator.userAgent.toLowerCase();var isAndroid = (ua.indexOf(&quot;android&quot;) > -1);var isiOS = navigator.userAgent.match(\/iPad|iPhone|iPod\/g);var oriCond_0_7 =    (orientationLock_0_7 != &quot;&quot; &amp;&amp; orientationLock_0_7 != &quot;Never&quot;)    &amp;&amp; (isAndroid || isiOS);if (oriCond_0_7) {    window.parent.window.addEventListener(&quot;resize&quot;, function(event) {        checkOrientationAni_0_7(event);    }, false);}function checkOrientationAni_0_7(event){    if(oriCond_0_7) {        var obj = (event != undefined) ?            event.currentTarget : window.parent.window;        try {            \/* Landscape *\/            if(obj.innerWidth > obj.innerHeight){                if(orientationLock_0_7 == &quot;Portrait&quot;){                    dontAnimate_0_7 = true;                    t_0_7_0.pause();                } else {                    dontAnimate_0_7 = false;                    t_0_7_0.play();                }            }            \/* Portrait *\/            else if(obj.innerHeight > obj.innerWidth){                if(orientationLock_0_7 == &quot;Landscape&quot;){                    dontAnimate_0_7 = true;                    t_0_7_0.pause();                } else {                    dontAnimate_0_7 = false;                    t_0_7_0.play();                }            }        } catch (e) { }    }}\/*    Create the callback functions for the animations.    These are triggered when the screen loads for the first time*\/    var anim = JSON.parse('{&quot;animationID&quot;:&quot;7a726c60-86b3-44ed-9b59-25d87ace17f0&quot;,&quot;easing&quot;:&quot;Linear.easeNone&quot;,&quot;endTime&quot;:3,&quot;endValue&quot;:&quot;100%&quot;,&quot;repeat&quot;:0,&quot;startTime&quot;:0.1,&quot;type&quot;:&quot;Fade&quot;,&quot;startValue&quot;:null,&quot;endValueX&quot;:null,&quot;endValueY&quot;:null,&quot;onView&quot;:0,&quot;loop&quot;:0,&quot;autoAlpha&quot;:1,&quot;rotation&quot;:&quot;100%&quot;,&quot;scale&quot;:1,&quot;left&quot;:null,&quot;top&quot;:null,&quot;delay&quot;:0.1,&quot;range&quot;:2.9}');    var origStyle_0_7 = anim_el_0_7.getAttribute('style');    if (typeof animRepeat_0 === 'undefined') {        var animRepeat_0 = 0;    }    if (typeof animCount_0 === 'undefined') {        var animCount_0 = 1;    } else {        animCount_0++;    }    if (typeof anim_re_style_0 === 'undefined') {        var anim_re_style_0 = [];        var anim_re_layer_0 = [];        var anim_re_func_0 = [];        var anim_re_tween_0 = [];        var anim_re_loop_0 = [];    }    if (typeof anim_re_init_rotate_0_7 === 'undefined') {        var el_0_7 = document.getElementById(&quot;layer-0-7&quot;);        var st_0_7 = window.getComputedStyle(el_0_7, null);        var tr_0_7 = st_0_7.getPropertyValue(&quot;-webkit-transform&quot;) ||                 st_0_7.getPropertyValue(&quot;-moz-transform&quot;) ||                 st_0_7.getPropertyValue(&quot;-ms-transform&quot;) ||                 st_0_7.getPropertyValue(&quot;-o-transform&quot;) ||                 st_0_7.getPropertyValue(&quot;transform&quot;) ||                 &quot;FAIL&quot;;        if (tr_0_7 === 'none') {            var  anim_re_init_scale_0_7 = 0;            var  anim_re_init_rotate_0_7 = 0;        } else {            var values_0_7 = tr_0_7.split('(')[1].split(')')[0].split(',');            var a_0_7 = values_0_7[0];            var b_0_7 = values_0_7[1];            var c_0_7 = values_0_7[2];            var d_0_7 = values_0_7[3];            var scale_0_7 = Math.sqrt(a_0_7*a_0_7 + b_0_7*b_0_7);            var sin_0_7 = b_0_7\/scale_0_7;            var angle_0_7 = Math.round(Math.atan2(b_0_7, a_0_7) * (180\/Math.PI));            var anim_re_init_scale_0_7 = scale_0_7;            var anim_re_init_rotate_0_7 = angle_0_7;        }    }\/*    ----------------------------------------------------------------------    | Slide Animations    ----------------------------------------------------------------------*\/\/*    ----------------------------------------------------------------------    | Rotate Animations    ----------------------------------------------------------------------*\/\/*    ----------------------------------------------------------------------    | Fade Animations    ----------------------------------------------------------------------*\/    var ani_0_7_0 = function(){                var onView_0_7_0 = !!parseInt(0);        t_0_7_0 = TweenLite.to(            anim_el_0_7,            2.9,            {                autoAlpha: 1,                delay: 0.1,                onComplete: compCallback_0_7_0,                ease: Linear.easeNone            }        );        if(dontAnimate_0_7) t_0_7_0.pause();        anim_re_tween_0.push(t_0_7_0);        \/* Start on view animations should start paused *\/        if(onView_0_7_0){            t_0_7_0.pause();            viewScreenEvents_0.push([&quot;triggerPlay_0_7_0&quot;, anim_el_0_7]);        }        \/* Callback function for loop *\/        function compCallback_0_7_0() {            if(!!parseInt(0)) {                \/* Don't use the delay  *\/                t_0_7_0.restart(false, false);                if(anim_re_loop_0.indexOf(&quot;0_7_0&quot;) == -1) {                    animCount_0--;                    anim_re_style_0.push(origStyle_0_7);                    anim_re_layer_0.push(anim_el_0_7);                    anim_re_func_0.push(&quot;ani_0_7_0&quot;);                }                anim_re_loop_0.push(&quot;0_7_0&quot;);            }            if(!parseInt(0)) {                animCount_0--;                anim_re_style_0.push(origStyle_0_7);                anim_re_layer_0.push(anim_el_0_7);                anim_re_func_0.push(&quot;ani_0_7_0&quot;);            }            if(!animCount_0) {                if ((animRepeat_0 > 0) || (animRepeat_0 < 0)) {                    if(animRepeat_0 > 0) {                        animRepeat_0--;                    }                    animCount_0 = anim_re_layer_0.length;                    for(i=0; i < anim_re_layer_0.length; i++) {                        anim_re_tween_0[i].play(0);                        anim_re_tween_0[i].pause();                        TweenLite.set(anim_re_layer_0[i], {                            rotation: anim_re_init_rotate_0_7                        });                        anim_re_layer_0[i].setAttribute('style', anim_re_style_0[i]);                    }                    for(i = 0; i < anim_re_func_0.length; i++) {                        anim_re_tween_0[i].restart(true, false);                    }                    anim_re_style_0 = [];                    anim_re_layer_0 = [];                    anim_re_func_0 = [];                    anim_re_loop_0 = [];                }            }        }    };\/*    ----------------------------------------------------------------------    | Scale Animations    ----------------------------------------------------------------------*\/var triggerPlay_0_7_0 = function(){    t_0_7_0.play();};\/*    ----------------------------------------------------------------------    | Not Parallax Scroll    ----------------------------------------------------------------------*\/    \/* Add the animations to an array to be fired when the screen is loaded *\/            \/* Do not load animations if in thumbnail preview. *\/        if (!parent.window.preventSpecialFormat) {            try {                fireEvents_0.push(&quot;ani_0_7_0&quot;);            } catch (e) {                var fireEvents_0 = [];                fireEvents_0.push(&quot;ani_0_7_0&quot;);            }        }        checkOrientationAni_0_7();var anim_el_0_8 = document.getElementById(&quot;layer-0-8&quot;);var orientationLock_0_8 = &quot;&quot;;var dontAnimate_0_8 = false;var ua = navigator.userAgent.toLowerCase();var isAndroid = (ua.indexOf(&quot;android&quot;) > -1);var isiOS = navigator.userAgent.match(\/iPad|iPhone|iPod\/g);var oriCond_0_8 =    (orientationLock_0_8 != &quot;&quot; &amp;&amp; orientationLock_0_8 != &quot;Never&quot;)    &amp;&amp; (isAndroid || isiOS);if (oriCond_0_8) {    window.parent.window.addEventListener(&quot;resize&quot;, function(event) {        checkOrientationAni_0_8(event);    }, false);}function checkOrientationAni_0_8(event){    if(oriCond_0_8) {        var obj = (event != undefined) ?            event.currentTarget : window.parent.window;        try {            \/* Landscape *\/            if(obj.innerWidth > obj.innerHeight){                if(orientationLock_0_8 == &quot;Portrait&quot;){                    dontAnimate_0_8 = true;                    t_0_8_0.pause();                } else {                    dontAnimate_0_8 = false;                    t_0_8_0.play();                }            }            \/* Portrait *\/            else if(obj.innerHeight > obj.innerWidth){                if(orientationLock_0_8 == &quot;Landscape&quot;){                    dontAnimate_0_8 = true;                    t_0_8_0.pause();                } else {                    dontAnimate_0_8 = false;                    t_0_8_0.play();                }            }        } catch (e) { }    }}\/*    Create the callback functions for the animations.    These are triggered when the screen loads for the first time*\/    var anim = JSON.parse('{&quot;animationID&quot;:&quot;a944e08b-24f5-45f3-853a-fa50cc9bf417&quot;,&quot;direction&quot;:&quot;&quot;,&quot;easing&quot;:&quot;Linear.easeNone&quot;,&quot;endTime&quot;:9,&quot;endValue&quot;:&quot;0%&quot;,&quot;endValueX&quot;:52,&quot;endValueY&quot;:71,&quot;repeat&quot;:0,&quot;startTime&quot;:6,&quot;startValue&quot;:&quot;0%&quot;,&quot;type&quot;:&quot;Slide&quot;,&quot;onView&quot;:0,&quot;loop&quot;:0,&quot;autoAlpha&quot;:0,&quot;rotation&quot;:&quot;0%&quot;,&quot;scale&quot;:0,&quot;left&quot;:52,&quot;top&quot;:71,&quot;delay&quot;:6,&quot;range&quot;:3}');    var origStyle_0_8 = anim_el_0_8.getAttribute('style');    if (typeof animRepeat_0 === 'undefined') {        var animRepeat_0 = 0;    }    if (typeof animCount_0 === 'undefined') {        var animCount_0 = 1;    } else {        animCount_0++;    }    if (typeof anim_re_style_0 === 'undefined') {        var anim_re_style_0 = [];        var anim_re_layer_0 = [];        var anim_re_func_0 = [];        var anim_re_tween_0 = [];        var anim_re_loop_0 = [];    }    if (typeof anim_re_init_rotate_0_8 === 'undefined') {        var el_0_8 = document.getElementById(&quot;layer-0-8&quot;);        var st_0_8 = window.getComputedStyle(el_0_8, null);        var tr_0_8 = st_0_8.getPropertyValue(&quot;-webkit-transform&quot;) ||                 st_0_8.getPropertyValue(&quot;-moz-transform&quot;) ||                 st_0_8.getPropertyValue(&quot;-ms-transform&quot;) ||                 st_0_8.getPropertyValue(&quot;-o-transform&quot;) ||                 st_0_8.getPropertyValue(&quot;transform&quot;) ||                 &quot;FAIL&quot;;        if (tr_0_8 === 'none') {            var  anim_re_init_scale_0_8 = 0;            var  anim_re_init_rotate_0_8 = 0;        } else {            var values_0_8 = tr_0_8.split('(')[1].split(')')[0].split(',');            var a_0_8 = values_0_8[0];            var b_0_8 = values_0_8[1];            var c_0_8 = values_0_8[2];            var d_0_8 = values_0_8[3];            var scale_0_8 = Math.sqrt(a_0_8*a_0_8 + b_0_8*b_0_8);            var sin_0_8 = b_0_8\/scale_0_8;            var angle_0_8 = Math.round(Math.atan2(b_0_8, a_0_8) * (180\/Math.PI));            var anim_re_init_scale_0_8 = scale_0_8;            var anim_re_init_rotate_0_8 = angle_0_8;        }    }\/*    ----------------------------------------------------------------------    | Slide Animations    ----------------------------------------------------------------------*\/    \/* Scope changes once you go into the following function *\/    var ani_0_8_0 = function () {                var onView_0_8_0 = !!parseInt(0);        \/* Create the animation. *\/        t_0_8_0 = TweenLite.to(            anim_el_0_8,            3,            {                css: {                    left: 52+ &quot;px&quot;,                    top: 71+ &quot;px&quot;                },                delay: 6,                onComplete: compCallback_0_8_0,                ease: Linear.easeNone            }        );        if(dontAnimate_0_8) {            t_0_8_0.pause();        }        anim_re_tween_0.push(t_0_8_0);        \/* Start on view animations should start paused *\/        if(onView_0_8_0){            t_0_8_0.pause();            viewScreenEvents_0.push([&quot;triggerPlay_0_8_0&quot;, anim_el_0_8]);        }        \/* Complete callback *\/        function compCallback_0_8_0() {            if(!!parseInt(0)) {                \/* Don't use the delay  *\/                t_0_8_0.restart(false, false);                if(anim_re_loop_0.indexOf(&quot;0_8_0&quot;) == -1) {                    animCount_0--;                    anim_re_style_0.push(origStyle_0_8);                    anim_re_layer_0.push(anim_el_0_8);                    anim_re_func_0.push(&quot;ani_0_8_0&quot;);                }                anim_re_loop_0.push(&quot;0_8_0&quot;);            }            if(!parseInt(0)) {                animCount_0--;                anim_re_style_0.push(origStyle_0_8);                anim_re_layer_0.push(anim_el_0_8);                anim_re_func_0.push(&quot;ani_0_8_0&quot;);            }            if(!animCount_0) {                if ((animRepeat_0 > 0) || (animRepeat_0 < 0)) {                    if(animRepeat_0 > 0) {                        animRepeat_0--;                    }                    animCount_0 = anim_re_layer_0.length;                    for(i = 0; i < anim_re_layer_0.length; i++) {                        anim_re_tween_0[i].play(0);                        anim_re_tween_0[i].pause();                        TweenLite.set(anim_re_layer_0[i], {                            rotation: anim_re_init_rotate_0_8                        });                        anim_re_layer_0[i].setAttribute('style', anim_re_style_0[i]);                    }                    for(i = 0; i < anim_re_func_0.length; i++) {                        \/*if(!dontAnimate_0_8) {                            var tLayer = anim_re_layer_0[i];                            var tTop = tLayer.style.getPropertyValue('top');                            var tLeft = tLayer.style.getPropertyValue('left');                            var tDelay = 9;                            TweenLite.to(                                tLayer,                                .002,                                {                                    css: {                                        left: tLeft,                                        top: tTop                                    },                                    delay: tDelay                                }                            );*\/                            anim_re_tween_0[i].restart(true, false);                        \/*}*\/                    }                    anim_re_style_0 = [];                    anim_re_layer_0 = [];                    anim_re_func_0 = [];                    anim_re_loop_0 = [];                }            }        }    };\/*    ----------------------------------------------------------------------    | Rotate Animations    ----------------------------------------------------------------------*\/\/*    ----------------------------------------------------------------------    | Fade Animations    ----------------------------------------------------------------------*\/\/*    ----------------------------------------------------------------------    | Scale Animations    ----------------------------------------------------------------------*\/var triggerPlay_0_8_0 = function(){    t_0_8_0.play();};\/*    ----------------------------------------------------------------------    | Not Parallax Scroll    ----------------------------------------------------------------------*\/    \/* Add the animations to an array to be fired when the screen is loaded *\/            \/* Do not load animations if in thumbnail preview. *\/        if (!parent.window.preventSpecialFormat) {            try {                fireEvents_0.push(&quot;ani_0_8_0&quot;);            } catch (e) {                var fireEvents_0 = [];                fireEvents_0.push(&quot;ani_0_8_0&quot;);            }        }        checkOrientationAni_0_8();    var clickthroughPrepend = true;try {    var eventMethod = window.addEventListener ? &quot;addEventListener&quot; : &quot;attachEvent&quot;;    var eventer = window[eventMethod];    var messageEvent = eventMethod == &quot;attachEvent&quot; ? &quot;onmessage&quot; : &quot;message&quot;;    eventer(messageEvent,function(e) {        if (e.origin === &quot;https:\/\/html5.adventivecdn.com&quot;) {            var key = e.message ? &quot;message&quot; : &quot;data&quot;;            var data = e[key];            if (typeof data === &quot;string&quot;) {                switch(data) {                    case &quot;closeInterstitial&quot;:                        closeInterstitial();                        break;                    case &quot;closeFullPageFlex&quot;:                        closeFullPageFlex();                        break;                    case &quot;closeStickySidebar&quot;:                        closeStickySidebar();                        break;                    case &quot;getClickTrackerUrl&quot;:                        getClickTrackerUrl(e);                        break;                    default:                        console.log(&quot;unsupported method&quot;);                        break;                }            }            if (typeof data === &quot;object&quot;) {                switch(data.method) {                    \/* Handle the click tracking on imported HTML *\/                    case &quot;log_clickthrough&quot;:                        var clickthroughData = {                            dest: data.href,                            label: &quot;Imported HTML Clickthrough&quot;                        };                        logHtmlEvent(e, activeScreen,&quot;serve_clickthrough&quot;, clickthroughData);                        break;                    default:                      console.log(&quot;unsupported method&quot;);                      break;                }            }        }    },false);} catch (e) { console.log(&quot;messaging API not supported&quot;); }var closeInterstitial = function() {    try{        \/* Get the outer div and do some set up on it. *\/        var frame_adventive_htmlx_Iw212302 = window.parent.document.getElementById(&quot;adventive_htmlx_Iw212302_frame&quot;);        var frame_adventive_htmlx_Iw212302_parent = frame_adventive_htmlx_Iw212302.parentNode;        var el = window.parent.document.getElementById(frame_adventive_htmlx_Iw212302_parent.id + &quot;_back&quot;);        var evt = document.createEvent(&quot;MouseEvents&quot;);        evt.initEvent(&quot;click&quot;, true, true);        el.dispatchEvent(evt);    } catch (e) { console.log(e); }};var closeStickySidebar = function() {    try{        \/* Get the outer div and do some set up on it. *\/        var frame_adventive_htmlx_Iw212302 = window.parent.document.getElementById(&quot;adventive_htmlx_Iw212302_frame&quot;);        var frame_adventive_htmlx_Iw212302_parent = frame_adventive_htmlx_Iw212302.parentNode;        parent.window.ns_4_97582_Iw212302.closeStickySidebar_adventive_htmlx_Iw212302(0, frame_adventive_htmlx_Iw212302_parent);    } catch (e) { console.log(e); }};var closeFullPageFlex = function () { console.log(&quot;called close flex&quot;); };var getClickTrackerUrl = function(event) {    var clickthroughPrependAddress = &quot;&quot;;    if (clickthroughPrepend) {        clickthroughPrependAddress = &quot;https:\/\/adclick.g.doubleclick.net\/pcs\/click?xai=AKAOjst0CUzh4DGTUXNF-HAvJ95Kc26KyAobg6J5iBO8cUJU4e7QAx8vBTKnGOavuOC8NWdkEQ_qywvW3nI24ubjP2HAx5QBeCVszE2Y_axOaLRFlQBUAGyLRcS3b4yTWgh2Uskv3_t2ta7n_1SKhKd3aBNhWsf_tQHB_mvtmbOjYaLBtwkJjshtrn3W7YcQwHx62d8jSXzzOftmUgSCZ16m38MVSIqUiJPGD1-bQi01849cDQ_34yc7FP03Q8Dj5A29SQ-s8TzC7-g&amp;sai=AMfl-YRK-lcjFrnVJeDHiJY9n96yQLIeaA1RiEvAqGYVfuHnJ_Wx1EKOFUT4gkp11HPWbJ0j4Pwsp2nLKtveXnzK0mV7csNiWp6IOwJeLq4T_gv4YY9KNXrbQhgv3X0&amp;sig=Cg0ArKJSzEYYEh0jbliQEAE&amp;urlfix=1&amp;adurl=&quot;;    }    var data = {        method: &quot;setClickTracker&quot;,        ext_track: &quot;https:\/\/adclick.g.doubleclick.net\/pcs\/click?xai=AKAOjst0CUzh4DGTUXNF-HAvJ95Kc26KyAobg6J5iBO8cUJU4e7QAx8vBTKnGOavuOC8NWdkEQ_qywvW3nI24ubjP2HAx5QBeCVszE2Y_axOaLRFlQBUAGyLRcS3b4yTWgh2Uskv3_t2ta7n_1SKhKd3aBNhWsf_tQHB_mvtmbOjYaLBtwkJjshtrn3W7YcQwHx62d8jSXzzOftmUgSCZ16m38MVSIqUiJPGD1-bQi01849cDQ_34yc7FP03Q8Dj5A29SQ-s8TzC7-g&amp;sai=AMfl-YRK-lcjFrnVJeDHiJY9n96yQLIeaA1RiEvAqGYVfuHnJ_Wx1EKOFUT4gkp11HPWbJ0j4Pwsp2nLKtveXnzK0mV7csNiWp6IOwJeLq4T_gv4YY9KNXrbQhgv3X0&amp;sig=Cg0ArKJSzEYYEh0jbliQEAE&amp;urlfix=1&amp;adurl=&quot;    };    var frames = document.getElementsByTagName(&quot;iframe&quot;);    for (var i = 0; i < frames.length; i++) {        if (frames[i].contentWindow === event.source) {            frames[i].contentWindow.postMessage(data,&quot;https:\/\/html5.adventivecdn.com&quot;);        }    }};            for (var index = 0; index < window[&quot;fireEvents_&quot;+activeScreen].length; ++index) {              window[window[&quot;fireEvents_&quot;+activeScreen][index]]();            }            if (!initHidden){                document.body.className = &quot;&quot;;            }            try{                clickUrl = document.getElementById(&quot;clickWrapper&quot;).href;            }            catch(e){            }            screenViewed[activeScreen]=1; triggerResponsiveGoToScreens();            var contextId = &quot;ns_4_97582_Iw212302&quot;;            var context = parent.window[contextId];            if (&quot;Banner&quot; === &quot;Reveal&quot; &amp;&amp; context) {                context.gotoScreenReveal(0, screenResponsive[0]);            }            try {              if (context.inMraid) {                \/* Set up the clickthroughs to use MRAID API *\/                var clickWrapperElement = document.getElementById(&quot;clickWrapper&quot;);                if (clickWrapperElement !== null) {                  var prevClickWrapperClick = clickWrapperElement.onclick;                  clickWrapperElement.onclick = function(event){ event.preventDefault(); parent.window.mraid.open(this.href); prevClickWrapperClick(event); };                }                window.open = function(url, target) {                    parent.window.mraid.open(url);                };              }            } catch(e) { console.log(e); }monitorEvents = [];            monitorObjects = [];            \/* Viewability Analytics Code for When Ad First Loads*\/            var parentFrameContainerEvents;            \/* Viewability Analytics for metrics *\/            \/*************************************\/            \/*            * After the defined minimumViewTime passes and the ad is being seen at least 50%, the ad is logged as viewed.            *    If the ad goes out of view before the time passes, no thing is logged.            *    If the ad comes into view later, the timer restarts.            *\/            var viewed = false;            var inView = false;            var minimumViewTime = recipeHasVideo ? 2 : 1; \/* How long an ad must be seen initially before its reported as a viewable impression, in secs *\/            var viewedTimeout_adventive_htmlx_Iw212302;     \/* Timeout object *\/            var viewTimeoutRunning = false;     \/* Flag to prevent multiple viewedTimeout_s*\/            var parentFrameContainer = window.parent.document.getElementById(&quot;adventive_4_97582_Iw212302&quot;);            window[&quot;viewScreenEvents_&quot;+activeScreen].unshift([&quot;inViewAnalitycs_adventive_htmlx_Iw212302&quot;, parentFrameContainer]);            window[&quot;leaveViewScreenEvents_&quot;+activeScreen].unshift([&quot;outOfViewAnalitycs_adventive_htmlx_Iw212302&quot;, parentFrameContainer]);            function inViewAnalitycs_adventive_htmlx_Iw212302(){                \/* Ad in view *\/                inView = true;                if(!viewed &amp;&amp; !viewTimeoutRunning){                    viewTimeoutRunning = true;                    viewedTimeout_adventive_htmlx_Iw212302 = setTimeout(function(){                        \/* Ad officially viewed *\/                        viewed = true;                        var viewEvent = document.createEvent(&quot;CustomEvent&quot;);                        if(1){                            viewLog_adventive_htmlx_Iw212302(&quot;ad_view_view_auto&quot;, minimumViewTime, viewEvent);                        }                    },minimumViewTime*1000);                }            }            function outOfViewAnalitycs_adventive_htmlx_Iw212302(){                \/* Ad out of view *\/                clearTimeout(viewedTimeout_adventive_htmlx_Iw212302);                viewTimeoutRunning = false;                inView = false;            }            function viewLog_adventive_htmlx_Iw212302(stat_log, viewTime, event) {                var viewDat_adventive_htmlx_Iw212302;                var ns = window.parent.window.Adventive;                if(viewTime > 0){                    viewDat_adventive_htmlx_Iw212302 = {&quot;viewTime&quot;: viewTime};                }                if (!ns.impressionId[&quot;a3c7f7852a5747a3b3021a9b266f891f&quot;].view) {                  parent.window.ns_4_97582_Iw212302.logStat(stat_log, JSON.stringify(viewDat_adventive_htmlx_Iw212302));                  ns.impressionId[&quot;a3c7f7852a5747a3b3021a9b266f891f&quot;].view = 1;                }                try {                    if(typeof parent.window.adv_console === &quot;function&quot;){                        parent.window.adv_console(&quot;This ad is now considered viewed&quot;);                    }                } catch (e) { \/* cross domain error *\/ }            }            \/********************************************************\/            \/* Make sure library is loaded *\/            var lastExposureChange = 0;            var inSafeFrame = parent.window.ns_4_97582_Iw212302.inSafeFrame;            var viewTimer = setInterval(function(){            for (var j = 0; j < window[&quot;viewScreenEvents_&quot;+activeScreen].length; ++j) {                monitorObjects[j] = window[&quot;viewScreenEvents_&quot;+activeScreen][j][1][0];                if(window[&quot;viewScreenEvents_&quot;+activeScreen][j][1].id == undefined){                    if(window.parent.document.getElementById(&quot;adventive_htmlx_Iw212302_viewability_tracker_app_0&quot;)){                        parentFrameContainerEvents = window.parent.document.getElementById(&quot;adventive_htmlx_Iw212302_viewability_tracker_app_0&quot;);                    }                }                else{                    parentFrameContainerEvents = window.parent.document.getElementById(&quot;adventive_4_97582_Iw212302&quot;);                }                if(window.parent.document.getElementById(&quot;adventive_htmlx_Iw212302_viewability_tracker&quot;)){                    parentFrameContainerEvents = window.parent.document.getElementById(&quot;adventive_htmlx_Iw212302_viewability_tracker&quot;);                }                if (context.inMraid) {                    function engageMraidListener(){                        parent.window.mraid.addEventListener(&quot;exposureChange&quot;, function(exposedPercentage, visibleRectangle, occlusionRectangles){                            \/*Only trigger the exposure change handle every x interal*\/                            if(Date.now() - lastExposureChange > 250) {                                lastExposureChange = Date.now();                                if(exposedPercentage >= 50){                                    for(var k = 0; k < monitorObjects.length; ++k){                                        window[window[&quot;viewScreenEvents_&quot;+activeScreen][k][0]]();                                    }                                }                                if(exposedPercentage == 0){                                    \/* Fire Events in hidden array *\/                                    for(var k = 0; k < monitorObjects.length; ++k){                                        window[window[&quot;leaveViewScreenEvents_&quot;+activeScreen][k][0]]();                                    }                                }                            }                        });                    }                    if (document.readyState === &quot;complete&quot;) {                        if (typeof parent.window.mraid !== &quot;undefined&quot;) {                            if (parent.window.mraid.getState() === &quot;loading&quot;) {                                clearInterval(viewTimer);                                parent.window.mraid.addEventListener(&quot;ready&quot;, engageMraidListener);                            } else if (parent.window.mraid.getState() === &quot;default&quot;) {                                clearInterval(viewTimer);                                engageMraidListener();                            }                        }                    }                } else if (inSafeFrame){                    clearInterval(viewTimer);                    var safeFrameViewed = false;                    var safeFrameTimer = setInterval(function(){                        var SFViewPercentage = parent.window.ns_4_97582_Iw212302.getViewPercentage();                        if(SFViewPercentage >= 50 &amp;&amp; !safeFrameViewed){                            for(var k = 0; k < monitorObjects.length; ++k){                                window[window[&quot;viewScreenEvents_&quot;+activeScreen][k][0]]();                            }                            safeFrameViewed = true;                        }else if (SFViewPercentage < 50 &amp;&amp; safeFrameViewed){                            safeFrameViewed = false;                            \/* Fire Events in hidden array *\/                            for(var k = 0; k < monitorObjects.length; ++k){                                try{                                    window[window[&quot;leaveViewScreenEvents_&quot;+activeScreen][k][0]]();                                }                                catch(e){}                            }                        }                    },100);                }else{                    if(typeof window.parent.VisSense == &quot;function&quot;){                            clearInterval(viewTimer);                            var viewabilityEvent = window.parent.VisSense(parentFrameContainerEvents, { fullyvisible: 0.50 });                            \/*update every 250 ms *\/                            monitorEvents[j] = viewabilityEvent.monitor({                                strategy: new window.parent.VisSense.VisMon.Strategy.PollingStrategy({                                    interval: 250                                }),                                update: function(){},                                fullyvisible: function(monitor) {                                    \/*Fire Events in viewability array*\/                                    for(var k = 0; k < monitorObjects.length; ++k){                                        if(monitor._visobj._element == window.parent.document.getElementById(&quot;adventive_htmlx_Iw212302_viewability_tracker_app_0&quot;)){                                            if(window[&quot;viewScreenEvents_&quot;+activeScreen][k][1].id == undefined){                                                window[window[&quot;viewScreenEvents_&quot;+activeScreen][k][0]]();                                            }                                        }                                        else if(monitor._visobj._element == window.parent.document.getElementById(&quot;adventive_4_97582_Iw212302&quot;)){                                            if(window[&quot;viewScreenEvents_&quot;+activeScreen][k][1].id != undefined){                                                window[window[&quot;viewScreenEvents_&quot;+activeScreen][k][0]]();                                            }                                        }                                        else{                                            window[window[&quot;viewScreenEvents_&quot;+activeScreen][k][0]]();                                        }                                    }                                },                                visibilitychange: function(){},                                hidden: function(monitor) {                                    \/*Fire Events in hidden array*\/                                    for(var k = 0; k < monitorObjects.length; ++k){                                        try{                                            if(monitor._visobj._element == window.parent.document.getElementById(&quot;adventive_htmlx_Iw212302_viewability_tracker_app_0&quot;)){                                                if(window[&quot;leaveViewScreenEvents_&quot;+activeScreen][k][1].id == undefined){                                                    window[window[&quot;leaveViewScreenEvents_&quot;+activeScreen][k][0]]();                                                }                                            }                                            else if(monitor._visobj._element == window.parent.document.getElementById(&quot;adventive_4_97582_Iw212302&quot;)){                                                if(window[&quot;viewScreenEvents_&quot;+activeScreen][k][1].id != undefined){                                                    window[window[&quot;leaveViewScreenEvents_&quot;+activeScreen][k][0]]();                                                }                                            }                                            else{                                                window[window[&quot;leaveViewScreenEvents_&quot;+activeScreen][k][0]]();                                            }                                        }                                        catch(e){                                        }                                    }                                }                            }).start();                        }                    }                }            }, 10);<\/script><script type='\"text\/javascript\"'>    function setupScrollActions(){        if(!hasScrollActions) return;        setTimeout(function(){            var thisAdFrame = window.frameElement;            var oldScroll = window.parent.window.scrollY;            window.parent.window.addEventListener('scroll', function(e){                var newScroll = window.parent.window.scrollY;                var direction = 'Greater than';                if(newScroll > oldScroll){                    direction = 'Greater than';                }                else if(newScroll <= oldScroll){                    direction = 'Less than';                }                for (var index = 0; index < scrollActions.length; ++index) {                    if(scrollActions[index].activeScreen == activeScreen){                        if(scrollActions[index].direction == direction){                            if(direction == 'Greater than' &amp;&amp; parseInt(scrollActions[index].distance) <= newScroll){                                scrollActions[index].action();                            }                            else if(direction == 'Less than' &amp;&amp; parseInt(scrollActions[index].distance) > newScroll){                                scrollActions[index].action();                            }                        }                    }                }                oldScroll = newScroll;            }, false);        }, 50);    }    setupScrollActions();    <\/script><script type='\"text\/javascript\"'><\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Glenda Ost, 71, Jamestown, ND, died Thursday, April 11, 2019 at Ave Maria Village in Jamestown. Glenda Kae Schnaible was born to Theodore and Hilda (Backhaus) Schnaible on Oct. 31, 1947 in Linton, ND. She graduated from Linton High School in 1966 and married Jim Ryan that summer. The couple [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":169943,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-169942","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-obits"],"_links":{"self":[{"href":"http:\/\/csinewsnow.com\/index.php?rest_route=\/wp\/v2\/posts\/169942","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/csinewsnow.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/csinewsnow.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/csinewsnow.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"http:\/\/csinewsnow.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=169942"}],"version-history":[{"count":1,"href":"http:\/\/csinewsnow.com\/index.php?rest_route=\/wp\/v2\/posts\/169942\/revisions"}],"predecessor-version":[{"id":169944,"href":"http:\/\/csinewsnow.com\/index.php?rest_route=\/wp\/v2\/posts\/169942\/revisions\/169944"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/csinewsnow.com\/index.php?rest_route=\/wp\/v2\/media\/169943"}],"wp:attachment":[{"href":"http:\/\/csinewsnow.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=169942"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/csinewsnow.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=169942"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/csinewsnow.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=169942"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}