www.northstarmeetingsgroup.com
Open in
urlscan Pro
2600:9000:2491:a000:f:580:92c0:93a1
Public Scan
Submitted URL: https://ntg.omeclk.com/portal/wts/ue%5Ecnjmf7j6bbzyMa9mD-6jSj%3Bezyd4cO0kF3wPQRc
Effective URL: https://www.northstarmeetingsgroup.com/?oly_enc_id=2671D9199645J4Q
Submission: On August 06 via api from US — Scanned from DE
Effective URL: https://www.northstarmeetingsgroup.com/?oly_enc_id=2671D9199645J4Q
Submission: On August 06 via api from US — Scanned from DE
Form analysis
4 forms found in the DOM<form class="search-form form-inline">
<input class="form-control " type="search" placeholder="Search Site" aria-label="Search">
<button class="btn btn-primary btn-search" type="submit" data-toggle="tooltip" title="" data-original-title="Search">Search</button>
<a href="#" class="btn-close">Close</a>
</form>
POST https://www.northstarmeetingsgroup.com/Content/GenericPage.aspx?ptgpk=52538185&requrl&oly_enc_id=2671D9199645J4Q
<form method="post" action="https://www.northstarmeetingsgroup.com/Content/GenericPage.aspx?ptgpk=52538185&requrl&oly_enc_id=2671D9199645J4Q" id="aspnetForm">
<div class="aspNetHidden">
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE"
value="RcsDgOEelC2R4n4dPQ6n3d3QQWOuCkbsWW3kcTv3ogXdNj3a3NulzSiE3YJxUgu0s2jfXQkw9KRq5k1YBabkBD0/oNGVBjcOQVCMFSPUAY2l/g7YjNekuyzLfsniVv2UdipHrSvrEAzMIJsL7VOhWmWuX18nR47/YB97mKf+xevy1m/tBJF3WZzr79EAee98XlH1H+1mTQBabjVJmgTrVk1X9ZBezE3It6bpBBccTgK1xxhH9dP3/jVwbe9q+Ipn1xUWPj1tE8cfg59Sv68oT7NC3MF7JCOutK+8CcKIRae5P4/Odhwt6w/MEOb9e743mMOWD+hHBYwmGYLnUnWSGb+wQ5sE91C7A1H4B8ZXV+KXpXwQOPlPP5Dt/DSXvMvIbWkl21rYdxTb7xXEbx9FNFlec4fjSHiTmMLO6Clq4M8z2FdQ1KpWmOXig3DZdGxzQ1T4AhZvSkBrD7E0Rubh2B9SbZk0qcXdML/9xp1vSFhOuvc3tSLVCd8iHMOrrJHxvAaGk5LRyspvR5PncDdkN2Fwc9Tmdo+VqW6rGtKtnFadSV+7mTnyeA9mkD++VVI5Om6Bi2LqLDqAh7ur+YqNqhLXRKXqHZChaP1Af88Bl0wKRezMAdrBllRa+kqL3Pviu8ra53kLGWBvNnvR/iToqaJece1J5l5nE8iHEhDlpni4WTNEm/bIni/Wn9SQgaZddgf18gsBJuLsd5cL+sAlOgD0vQr9fwmUAEDcxuCbXI29qF4b2TCtv84jiXotiTaw1nJD44mZsqBA7ubjXun1ko9VGfkn7PauKEg5gg7wvSdzFtqyPdqGhPUIJf4J63I5fbb2O64YWlZRaJifG975vq/aMCUX8+FiHWUtiIRrz4siJTfiiS4Xu5q5aW+L/rgKCcuWUebzinQ7J2UeMXH2E/ZhRlCCNKqUIaJp5Eor3joxtVQRE+8epWj0tJrM9FxPoNZIRpA670LWMaPAnLzDbJT5rYv36ANgGSpQmZ8IVJXGe5K5wXKQiJVLyPY9Nk388RR9wyzorcYt0iusxE3gVJBKCLFeh7yBs2ynWdOdjgMof132frRbkstNJlsA1yMzUIOCarYbsNmKLgezN1jfXry70ti9EvvG0eXVsxpMduoMo5JsbdVlkb2scbJTSf6CIJHuiSTNy3YcH+VylCcI7vlQ5kFMC1yukl5pCFZn/AV9tX1oGWszGrhPNtKUSmlNyAwpW0ztzl+qA8RFXX39zU564MynzTsB9jU+7PA6nJaUQ6ql8Ss7kCNI9CoEXUrWcwJU29eG3yzfoQ7gjJQ4kRyxuVJcOfptj/4x+4BOoJCXCmzmWGEUyyqJRIkjWavbBFO5bS2xMEWJ+nboTbMFNZI+xmpKc2JaCGOEtB0Op2hM4g8aQz7wmSTVINR5vKWbjdhMi2+4eh7QY6PFjtui40vTGMD/L26KbRhud4EuknhYyO6KJATJtpExh9VbVWDAEN3shcultoFvfIh+klKhR1y5UaA=">
</div>
<div class="container">
<div id="div-gpt-ad-Top" class="d-none d-md-block header-advert" style="text-align:center;min-height:118px;" data-google-query-id="CMmCzcysyIADFdGOgwcdLRgPXw">
<div id="ad-label">Advertisement</div>
<div id="google_ads_iframe_/94102080/nmg_2__container__" style="border: 0pt none;"><iframe id="google_ads_iframe_/94102080/nmg_2" name="google_ads_iframe_/94102080/nmg_2" title="3rd party ad content" width="30" height="50" scrolling="no"
marginwidth="0" marginheight="0" frameborder="0" role="region" aria-label="Advertisement" tabindex="0" style="border: 0px; vertical-align: bottom; width: 1px; height: 1px; pointer-events: none; position: absolute; left: 0px;"
data-load-complete="true" data-google-container-id="3"></iframe>
<div id="adventive_htmlx_dq220232_frame" style="display: inline-block; vertical-align: top; max-width: none;">
<script type="text/javascript"
src="https://ads.adventive.com/ad?j&pid=b109f492-6f6d-41d4-9e75-03cd8b0b4b9d&type=4&cb=940988049&click=https://adclick.g.doubleclick.net/pcs/click%253Fxai%253DAKAOjsvlI2BuaS0fFeatvGVVVcm44qgqhbU1ldGLOf0YOJMY__L_SQYt9VwcrX63vxFWsLBIEt-DBdcHH8dXhUx9PNyjRvDEUmXWkV6TZ2Cf9IOJOszv2SyWxwgEQyAhc0J1hWgw42tle6RSA8X8wNJQvmw44KI83ujetOhwMHvuHYRng_1OvNmKVpHr4__FwOyavm2BZnUJtQArQv-CA_Ve1deSwaWx9lgvrGkTVh0C1-VSSTLpXpnoBYSPLtZ8vVYCRhDR2SabU2lfbIm7r5uXvt9hlfp2QYEJ0C3PTgcRdEM1u7VHbGT385fBg3XQhOqrDxxrbLXvN1AWBA%2526sai%253DAMfl-YRMB37OxMLA2SSyPytbYWA3d4WfhXM7Y573b7cGK-ItJZbw3CsoRE2JdE_RoEhNLpMJrasttUTptLXqMHL7gDHBHM-JC8aZO4qdbQqUCN77FErn1Tackcu8uNXcjw%2526sig%253DCg0ArKJSzFFokr-2VaQuEAE%2526fbs_aeid%253D%255Bgw_fbsaeid%255D%2526urlfix%253D1%2526adurl%253D&enc=1&fb_url=&ref=northstarmeetingsgroup.com&gdpr=&addtl_consent=&line_item=6337782901&order_id=3200512959&advertiser_id=5188752653&creative_id=138437876940&oop=&fb=adventive_htmlx_dq220232_frame&forceFallback=1">
</script>
<div id="adventive_4_164806_gU487381" style="width: 970px; height: auto; margin: 0px auto; overflow: initial; position: relative; opacity: 1; max-height: none; max-width: none;" data-resp="0">
<div class="advRemoveOnUnload1691335734110 adv contentSpacer maximized"></div>
<div id="layer-wall-0" class="advWallVideoHtml0ContainerFill maximized transition" style="position: fixed;"><video id="customplayer-wall-0_html5" muted="" loop="" playsinline="" webkit-playsinline=""
src="https://video.adventivecdn.com/434/35cc5b3b-fdb9-4ad8-a800-3ea0c28e9f2b_1280.mp4" class="advPortrait" style=""></video>
<div id="customplayerwrapper-wall-0" style="left: 0px;"><span class="mejs__offscreen">Video Player</span>
<div id="mep_0" class="mejs__container mejs__container-keyboard-inactive mejs__video" tabindex="0" role="application" aria-label="Video Player" style="width: 1280px; height: 720px; background: transparent;">
<div class="mejs__inner">
<div class="mejs__mediaelement">
<mediaelementwrapper id="customplayer-wall-0" width="1280px"></mediaelementwrapper>
</div>
<div class="mejs__layers">
<div class="mejs__poster mejs__layer" style="display: none; width: 1280px; height: 720px;"></div>
<div class="mejs__overlay mejs__layer" style="width: 1280px; height: 720px; display: none;">
<div class="mejs__overlay-loading"><span class="mejs__overlay-loading-bg-img"></span></div>
</div>
<div class="mejs__overlay mejs__layer" style="display: none; width: 1280px; height: 720px;">
<div class="mejs__overlay-error"></div>
</div>
<div class="mejs__overlay mejs__layer mejs__overlay-play" style="width: 1280px; height: 720px; display: none; transform: scale(0.4, 0.4);">
<div class="mejs__overlay-button" role="button" tabindex="0" aria-label="Play" aria-pressed="false" style="transform: matrix(0.4, 0, 0, 0.4, 0, 0);"><svg id="bigPlayChromelessSvg" width="100" height="100" class="chromelessSVG"
style="fill: rgb(255, 255, 255); stroke: rgb(255, 255, 255);">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#bigPlay"></use>
</svg></div>
</div>
</div>
<div class="mejs__controls" style="background-color: rgb(0, 0, 0); z-index: 100; display: none; visibility: hidden;">
<div class="mejs__button mejs__playpause-button mejs__pause"><button type="button" aria-controls="mep_0" title="Pause" aria-label="Pause" tabindex="0"><svg id="playChromelessSvg" width="15" height="15" class="chromelessSVG"
style="fill: rgb(255, 255, 255); stroke: rgb(255, 255, 255); display: none;">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#play"></use>
</svg><svg id="pauseChromelessSvg" width="15" height="15" style="fill: rgb(255, 255, 255); stroke: rgb(255, 255, 255);" class="chromelessSVG">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#pause"></use>
</svg></button></div>
<div class="mejs__time mejs__currenttime-container" role="timer" aria-live="off" style="color: rgb(255, 255, 255);"><span class="mejs__currenttime">00:03</span></div>
<div class="mejs__time-rail"><span class="mejs__time-total mejs__time-slider" role="slider" tabindex="0" style="background-color: rgba(255, 255, 255, 0.3);"><span class="mejs__time-buffering" style="display: none;"></span><span
class="mejs__time-loaded" style="background-color: rgba(255, 255, 255, 0.3); transform: scaleX(1);"></span><span class="mejs__time-current" style="background-color: rgba(255, 255, 255, 0.9);"></span><span
class="mejs__time-hovered no-hover"></span><span class="mejs__time-handle"><span class="mejs__time-handle-content"></span></span><span class="mejs__time-float"><span class="mejs__time-float-current">00:00</span><span
class="mejs__time-float-corner"></span></span></span></div>
<div class="mejs__time mejs__duration-container" style="color: rgb(255, 255, 255);"><span class="mejs__duration">00:15</span></div>
<div class="mejs__button mejs__volume-button mejs__unmute"><button type="button" aria-controls="mep_0" title="Mute" aria-label="Mute" tabindex="0"><svg id="unmuteChromelessSvg" width="20" height="20" class="chromelessSVG"
style="fill: rgb(255, 255, 255); stroke: rgb(255, 255, 255); display: none;">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#unmute"></use>
</svg><svg id="muteChromelessSvg" width="20" height="20" class="chromelessSVG" style="display: block; fill: rgb(255, 255, 255); stroke: rgb(255, 255, 255);">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#mute"></use>
</svg></button></div>
<div class="mejs__button mejs__fullscreen-button"><button type="button" aria-controls="mep_0" title="Fullscreen" aria-label="Fullscreen" tabindex="0"><svg id="fullscreenChromelessSvg" width="20" height="20"
style="display: block; margin: auto; fill: rgb(255, 255, 255); stroke: rgb(255, 255, 255);" class="chromelessSVG">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#expand"></use>
</svg><svg id="collapseChromelessSvg" width="20" height="20" style="display: none; margin: auto; fill: rgb(255, 255, 255); stroke: rgb(255, 255, 255);" class="chromelessSVG">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#collapse"></use>
</svg></button></div>
</div>
</div>
</div>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vissense/0.10.0/vissense.min.js"></script><iframe src="about:blank" title="adventive_htmlx_gU487381" id="adventive_htmlx_gU487381_frame" allowfullscreen="true"
webkitallowfullscreen="true" mozallowfullscreen="true" frameborder="0" scrolling="no" height="250" width="970"
style="height: 1200px; width: 100%; max-height: none; max-width: none; overflow: hidden; position: fixed; transition: none 0s ease 0s; transform: none; top: 0px; left: 0px;"
srcdoc="<!DOCTYPE html><!--[if lt IE 7 ]> <html class="ie6" lang="en"> <![endif]--><!--[if IE 7 ]> <html class="ie7" lang="en"> <![endif]--><!--[if IE 8 ]> <html class="ie8" lang="en"> <![endif]--><!--[if IE 9 ]> <html class="ie9" lang="en"> <![endif]--><!--[if (gt IE 9)|!(IE)]><!--> <html class="modern" lang="en"> <!--<![endif]--><head><title>July Eclipse</title><meta name="robots" content="noindex,nofollow"><meta charset="UTF-8" /><meta http-equiv="x-dns-prefetch-control" content="on"><style>a img {border: none; }.ad-screen{display:none;} .hide{display:none;} #screen-0{display:block;}#adventive_htmlx_gU487381_outer { -webkit-transition:width 300ms ease-in-out, height 300ms ease-in-out; -moz-transition:width 300ms ease-in-out, height 300ms ease-in-out; -o-transition:width 300ms ease-in-out, height 300ms ease-in-out; transition:width 300ms ease-in-out, height 300ms ease-in-out; cursor: pointer; } input:focus, select:focus, textarea:focus, button:focus { outline: none; }.formbuilder-element-wrapper input::placeholder {padding-top:30px !important; padding-bottom:30px !important;}.animated-layer {-webkit-transform-style: preserve-3d; transform-style: preserve-3d;} .animated-layer img {transform: translateZ(0);}</style><script>if(0 != 0 && 0 != 0){ var parentFrameContainer = window.parent.document.getElementById("adventive_4_164806_gU487381"); parentFrameContainer.style.zIndex = 0; }var pageCookies = document.cookie.split("; ").reduce(function (cookieObject, cookieKeyValue) { var partsOfCookie = cookieKeyValue.split("="); cookieObject[partsOfCookie[0]] = partsOfCookie.slice(1).join("="); return cookieObject; }, {});function getCookie(cname) { var cookie = pageCookies[cname]; if (typeof cookie === "undefined") { return ""; } return cookie; }var eclipseInitScreen = getCookie("initScreen");if('Eclipse' == 'Eclipse' && eclipseInitScreen) { var activeScreen = parseInt(eclipseInitScreen); }else{ var activeScreen = 0; } try { function heavyAdCleanUp() { if (("Eclipse" === "Sticky Sidebar") || ("Eclipse" === "Adhesion")) { window.parent.document.getElementById("adventive_4_164806_gU487381").style.display = "none"; } } function sendReports(reports) { for(var i=0; i < reports.length; i++){ if(reports[i].type === "intervention") { parent.window.ns_4_164806_gU487381.errorReport(reports[i]); heavyAdCleanUp(); } } } if (typeof ReportingObserver === "function") { var observer = new ReportingObserver( function(reports, observer){ sendReports(reports); }, { buffered: true } ); observer.observe(); window.addEventListener("unload", function(event){ var reports = observer.takeRecords(); sendReports(reports); }); } } catch(e) { console.log(e); } var previousScreen = 0;var screenViewed = []; var screenW = []; var screenH = []; var borderTop; var borderRight; var borderBottom; var borderLeft; var screenResponsive = []; var responsiveSetup = 0; var whRatio = []; var autoEvents = []; var cookieSet = 0; var cookieSetArray = []; var preventAuto = 0; var preventAutoArray = []; var expanding=0; var manualTriggered = 0; var directionSet = 0; var enged = 0; var clked = 0; var directionSet = 0; var autoTimer; var fireEvents = []; var leaveScreenEvents_ = []; var viewScreenEvents_ = []; var leaveViewScreenEvents_ = []; var reenterScreenEvents_ = []; var resizeEvents_ = []; var autoEvents_ = []; var youTubeIframeAPIReady = false; var responsiveGoToScreens = []; var shakeActions = []; var swipeActions = []; var scrollActions = []; var wallpaperObjects = []; var wallpaperFloatLeftObjects = []; var wallpaperFloatRightObjects = []; var hasScrollActions = false; var clickUrl = ""; var vastReady = true; var vastVideo = ""; var expandDirection = ""; var hpDatClickEvt = {"label":"clickEventHp"}; var ownProperty = Object.prototype.hasOwnProperty;var initHidden = false;var contextId = "ns_4_164806_gU487381";var context = parent.window[contextId]; if (window.parent.Adventive.impressionId["9cb49424885c4544b044ebe3c0f8882f"] == undefined) { window.parent.Adventive.impressionId["9cb49424885c4544b044ebe3c0f8882f"] = {clk:0, eng:0, hover:0, view:0}; }var screenI=0;preventAutoArray[screenI]=0;cookieSetArray[screenI]=0;screenI++;preventAutoArray[screenI]=0;cookieSetArray[screenI]=0;screenI++;var isTouch = 0; function isTouchDevice() { return (("ontouchstart" in window) || (navigator.MaxTouchPoints > 0) || (navigator.msMaxTouchPoints > 0)); }if (isTouchDevice()) { isTouch=1; }function preventEventProp(e) { if (!e) var e = window.event; { e.cancelBubble = true; } if (e.stopPropagation) { e.stopPropagation(); } e.preventDefault(); }function showScreen(screenNum, transitionT){ /* Dont use transition time if ad is getting larger from screen 1 to 2 */ if ( (parseInt(screenW[0]) <= parseInt(screenW[1])) && (parseInt(screenH[0]) <= parseInt(screenH[1])) ) { transitionT = 0; } setTimeout(function() { document.getElementById("screen-"+screenNum).style.display="block"; }, transitionT); } function triggerResponsiveGoToScreens(){ if (responsiveGoToScreens.length) { setTimeout(function(){ var parentFrame = window.parent.document.getElementById("adventive_htmlx_gU487381_frame"); var wid = parentFrame.parentNode.offsetWidth; var pos = parseInt(parentFrame.style.left); moveResponsiveGoToScreens(pos, wid); }, 50); } } function moveResponsiveGoToScreens(pos, wid){ if (responsiveGoToScreens.length && wid != undefined && pos != undefined) { for (var index = 0; index < responsiveGoToScreens.length; ++index) { var gts = document.getElementById(responsiveGoToScreens[index]); if ((gts != null) && gts.offsetWidth) { gts.style.left = (pos < 0) ? Math.abs(pos) + wid - gts.offsetWidth -20 + "px" : parseInt(screenW[activeScreen]) - gts.offsetWidth -20 + "px"; } } } } function simpleChange(sel, transitionTime){ var op = 1; expanding=1; setTimeout(function(){ sel.style.display = "none"; sel.style.opacity = 1; expanding=0;},transitionTime); }function simpleFade(outScreen, inScreen, transitionTime){ inScreen.style.display = "block"; inScreen.style.opacity = 0; var fadeTime = transitionTime/10; var op = 1; var op2 = 0; var trans = setInterval(function () {fader();}, fadeTime); function fader() { var change = 0.1; if (transitionTime === 0) { change = 1; } inScreen.style.opacity = 0; inScreen.style.display = "block"; if (op > 0.20) { op = op - change; op2 = op2 + change; outScreen.style.opacity = op; inScreen.style.opacity = op2; } else { clearInterval(trans); outScreen.style.display = "none"; outScreen.style.opacity = 1; inScreen.style.display = "block"; inScreen.style.opacity = 1; /* Viewability: Fade needs to be done seperatly from other transitions, due to the screen not being active until after a delay*/ var parentFrameContainer = window.parent.document.getElementById("adventive_4_164806_gU487381"); if(window.parent.document.getElementById("adventive_htmlx_gU487381_viewability_tracker")){ parentFrameContainer = window.parent.document.getElementById("adventive_htmlx_gU487381_viewability_tracker"); } else if(window.parent.document.getElementById("adventive_htmlx_gU487381_viewability_tracker_app_"+inScreen)){ parentFrameContainer = window.parent.document.getElementById("adventive_htmlx_gU487381_viewability_tracker_app_"+inScreen); } else{ parentFrameContainer = window.parent.document.getElementById("adventive_4_164806_gU487381"); } addViewability(parentFrameContainer); } } }var mraid2CheckInView = function() { try { if (window.parent.mraid.isViewable() === "true" || window.parent.mraid.isViewable() === true) { window.parent.console.log("===== Viewable Screen " + activeScreen); for(var k = 0; k < monitorObjects.length; ++k){ window[window["viewScreenEvents_"+activeScreen][k][0]](); } } else { window.parent.console.log("===== NOT Viewable Screen " + activeScreen); /* Fire Events in hidden array */ for(var k = 0; k < monitorObjects.length; ++k){ window[window["leaveViewScreenEvents_"+activeScreen][k][0]](); } } } catch(e) { console.log(e); } }; function addViewability(parentFrameContainer){ var parentFrameContainerEvents; var parentFrameContainer = window.parent.document.getElementById("adventive_4_164806_gU487381"); window["viewScreenEvents_"+activeScreen].unshift(["inViewAnalitycs_adventive_htmlx_gU487381", parentFrameContainer]); window["leaveViewScreenEvents_"+activeScreen].unshift(["outOfViewAnalitycs_adventive_htmlx_gU487381", parentFrameContainer]); for (var j = 0; j < window["viewScreenEvents_"+activeScreen].length; ++j) { monitorObjects[j] = window["viewScreenEvents_"+activeScreen][j][1][0]; if(window["viewScreenEvents_"+activeScreen][j][1].id == undefined){ if(window.parent.document.getElementById("adventive_htmlx_gU487381_viewability_tracker_app_"+activeScreen)){ parentFrameContainerEvents = window.parent.document.getElementById("adventive_htmlx_gU487381_viewability_tracker_app_"+activeScreen); if (adIsSticky) { /* move application viewability tracker when sticky ad is stuck */ var css = ".adv_stuck #adventive_htmlx_gU487381_viewability_tracker_app_" + activeScreen + " {position:fixed !important; top:50vh !important; left:50vw !important; margin:0 !important; }"; var style = document.createElement("style"); style.type = "text/css"; style.appendChild(document.createTextNode(css)); window.frameElement.parentNode.appendChild(style); } } } else{ parentFrameContainerEvents = window.parent.document.getElementById("adventive_4_164806_gU487381"); if (adIsSticky) { /* Switch viewability to the ad iframe */ parentFrameContainerEvents = window.frameElement; } } if(window.parent.document.getElementById("adventive_htmlx_gU487381_viewability_tracker")){ parentFrameContainerEvents = window.parent.document.getElementById("adventive_htmlx_gU487381_viewability_tracker"); } if (context.inMraid) { function engageMraidListener(){ /* Set up viewability listeners for mraid versions */ if (parseInt(parent.window.mraid.getVersion()) > 3) { parent.window.mraid.addEventListener("exposureChange", 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["viewScreenEvents_"+activeScreen][k][0]](); } } if(exposedPercentage == 0){ /* Fire Events in hidden array */ for(var k = 0; k < monitorObjects.length; ++k){ window[window["leaveViewScreenEvents_"+activeScreen][k][0]](); } } } }); } else { parent.window.mraid.addEventListener("viewableChange", mraid2CheckInView); mraid2CheckInView(); } } if (document.readyState === "complete") { if (typeof parent.window.mraid !== "undefined") { if (parent.window.mraid.getState() === "loading") { clearInterval(viewTimer); parent.window.mraid.addEventListener("ready", engageMraidListener); } else if (parent.window.mraid.getState() === "default") { clearInterval(viewTimer); engageMraidListener(); } } } } else if (inSafeFrame){ clearInterval(viewTimer); var safeFrameViewed = false; var safeFrameTimer = setInterval(function(){ var SFViewPercentage = parent.window.ns_4_164806_gU487381.getViewPercentage(); if(SFViewPercentage >= 50){ for(var k = 0; k < monitorObjects.length; ++k){ window[window["viewScreenEvents_"+activeScreen][k][0]](); } safeFrameViewed = true; }else if(SFViewPercentage < 50 && safeFrameViewed){ safeFrameViewed = false; /* Fire Events in hidden array */ for(var k = 0; k < monitorObjects.length; ++k){ try{ window[window["leaveViewScreenEvents_"+activeScreen][k][0]](); } catch(e){} } } },100); }else{ if(typeof window.parent.VisSense == "function"){ clearInterval(viewTimer); var threshold = 0.5;var parentFrame = window.parent.document.getElementById("adventive_htmlx_gU487381_frame"); var frameWidth = parentFrame.parentNode.offsetWidth; var frameHeight = parentFrame.parentNode.offsetHeight; var frameArea = frameWidth * frameHeight; /* Very large ads have a different viewability threshold */ /* Take the offsetWidth/height to take into account responsive size changes */ if(frameArea > 242000) threshold = 0.30;var viewabilityEvent = window.parent.VisSense(parentFrameContainerEvents, { fullyvisible: threshold }); /*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("adventive_htmlx_gU487381_viewability_tracker_app_"+activeScreen)){ if(window["viewScreenEvents_"+activeScreen][k][1].id == undefined){ window[window["viewScreenEvents_"+activeScreen][k][0]](); } } else if(monitor._visobj._element == window.parent.document.getElementById("adventive_4_164806_gU487381")){ if(window["viewScreenEvents_"+activeScreen][k][1].id != undefined){ window[window["viewScreenEvents_"+activeScreen][k][0]](); } } else{ window[window["viewScreenEvents_"+activeScreen][k][0]](); } } }, visibilitychange: function(){}, hidden: function(monitor) { if (typeof monitorObjects === "undefined") { /* monitorObjects is undefined AT LEAST when closing a sidekick using the close ad action. */ return; } /*Fire Events in hidden array*/ for(var k = 0; k < monitorObjects.length; ++k){ try{ if(monitor._visobj._element == window.parent.document.getElementById("adventive_htmlx_gU487381_viewability_tracker_app_"+activeScreen)){ if(window["leaveViewScreenEvents_"+activeScreen][k][1].id == undefined){ window[window["leaveViewScreenEvents_"+activeScreen][k][0]](); } } else if(monitor._visobj._element == window.parent.document.getElementById("adventive_4_164806_gU487381")){ if(window["viewScreenEvents_"+activeScreen][k][1].id != undefined){ window[window["leaveViewScreenEvents_"+activeScreen][k][0]](); } } else{ window[window["leaveViewScreenEvents_"+activeScreen][k][0]](); } } catch(e){ } } } }).start(); } } } }function closeAdSpecial() { for (var index = 0; index < window["leaveAdEvents"].length; ++index) { window[window["leaveAdEvents"][index]](); } }try { var oldResizeE_adventive_htmlx_gU487381 = window.parent.window.onresize; } catch (e) { var oldResizeE_adventive_htmlx_gU487381; } function setResponsiveScreen(screenNum) {try { var parentFrame = window.parent.document.getElementById("adventive_htmlx_gU487381_frame"); parentFrame.parentNode.style.maxHeight = "none"; parentFrame.parentNode.style.maxWidth = "none"; parentFrame.style.transform = "none"; if (screenResponsive[screenNum] && !responsiveSetup){ responsiveSetup = 1; if (window.parent.window.addEventListener) { window.parent.window.addEventListener("resize", function(){ try { changeResponsiveScreen(); } catch (e) { } }, false); } else { window.parent.window.onresize = function() { try { if (typeof oldResizeE_adventive_htmlx_gU487381 === "function"){ oldResizeE_adventive_htmlx_gU487381(); } } catch (e) { } try { changeResponsiveScreen(); } catch (e) { } }; } } if (screenResponsive[screenNum]) { if (typeof inPreview !== "undefined") { try { /* @TODO DECOUPLE INPREVIEW CODE */ /*window.parent.document.getElementById("main-content").style.width = "auto";*/ var mWidth = window.parent.document.getElementById("main-content").style.maxWidth; window.parent.document.getElementById("main-content").setAttribute("style", "width:auto !important"); window.parent.document.getElementById("main-content").style.maxWidth = mWidth; } catch (e) { } } if (parentFrame.parentNode.parentNode.id.substring(0,16) == "adventive_htmlx_"){ parentFrame.parentNode.parentNode.style.maxWidth = "100%"; } parentFrame.parentNode.style.maxWidth = "100%"; parentFrame.parentNode.setAttribute("data-resp", 1); setTimeout(function(){ if ((parentFrame.parentNode.getAttribute("data-transition") == "Push")) { parentFrame.parentNode.style.overflow = "hidden"; } else { parentFrame.parentNode.style.overflow = "visible"; parentFrame.style.display = "block"; if("Eclipse" === "Banner" || "Eclipse" === "Pushdown" || "Eclipse" === "Expandable"){ var isIE = /*@cc_on!@*/false || !!document.documentMode; var isEdge = !isIE && !!window.StyleMedia; /* IE and Edge need additional overflow settings */ if(isIE || isEdge) { parentFrame.parentNode.style.overflowX = "hidden"; parentFrame.parentNode.style.overflowY = "hidden"; } } } }, 300); /*parentFrame.parentNode.style.height = screenH[screenNum]; parentFrame.parentNode.style.width = screenW[screenNum];*/ }else { parentFrame.parentNode.style.maxWidth = "none"; parentFrame.parentNode.setAttribute("data-resp", 0); parentFrame.style.transform = "none"; if ( "Eclipse" !== "Outstream") { if (parentFrame.parentNode.style.overflow === "hidden") { parentFrame.parentNode.style.overflow = "initial"; } if (parentFrame.parentNode.style.overflowX === "hidden") { parentFrame.parentNode.style.overflowX = "initial"; } if (parentFrame.parentNode.style.overflowY === "hidden") { parentFrame.parentNode.style.overflowY = "initial"; } } } try { changeResponsiveScreen(screenNum); } catch (e) {} } catch (e) {}}function advHtmlAdClassChecker( elem, klass ) { return (" " + elem.className + " " ).indexOf( " "+klass+" " ) > -1; }function changeResponsiveScreen(){ var screenNum = activeScreen; var parentFrame = window.parent.document.getElementById("adventive_htmlx_gU487381_frame"); /* If we are in floating video mode, we do not resize the ad */ if (advHtmlAdClassChecker(parentFrame, "float-video")){ return false; } if (screenResponsive[screenNum]) { try { var scaleBrokeOutFrame = 0; if (parentFrame.parentNode.parentNode.id.substring(0,16) == "adventive_htmlx_"){ parentFrame.parentNode.parentNode.style.maxWidth = "100%"; /* Check for the iframe that was broken out of */ if (typeof parent.window.ns_4_164806_gU487381.fifBrokeOut !== "undefined") { scaleBrokeOutFrame = 1; } } if (parseInt(screenW[screenNum]) > parseInt(parentFrame.parentNode.offsetWidth)) { var scaleCalc = parseInt(parentFrame.parentNode.offsetWidth) / parseInt(screenW[screenNum]); var scaleVal = "scale("+scaleCalc+")"; var scaleCalcInverse = 1/scaleCalc; if (borderTop == undefined) { borderTop = document.getElementById("border-top-" + screenNum); borderRight = document.getElementById("border-right-" + screenNum); borderBottom = document.getElementById("border-bottom-" + screenNum); borderLeft = document.getElementById("border-left-" + screenNum); } if (borderTop.getAttribute("data-border-size") <= 2) { borderTop.style.transform = "scale(1, " + scaleCalcInverse + ")"; borderRight.style.transform = "scale(" + scaleCalcInverse + ", 1)"; borderBottom.style.transform = "scale(1, " + scaleCalcInverse + ")"; borderLeft.style.transform = "scale(" + scaleCalcInverse + ", 1)"; } if(expandDirection == "Left") { parentFrame.style.transformOrigin = "top right"; parentFrame.style.MozTransformOrigin = "top right"; parentFrame.style.MsTransformOrigin = "top right"; parentFrame.style.OTransformOrigin = "top right"; parentFrame.style.WebkitTransformOrigin = "top right"; } else{ parentFrame.style.transformOrigin = "top left"; parentFrame.style.MozTransformOrigin = "top left"; parentFrame.style.MsTransformOrigin = "top left"; parentFrame.style.OTransformOrigin = "top left"; parentFrame.style.WebkitTransformOrigin = "top left"; } parentFrame.style.WebkitTransform = scaleVal; parentFrame.style.MozTransform = scaleVal; parentFrame.style.MsTransform = scaleVal; parentFrame.style.OTransform = scaleVal; parentFrame.style.transform = scaleVal; parentFrame.parentNode.style.transition = "width 300ms ease-in-out, height 300ms ease-in-out"; parentFrame.parentNode.style.maxHeight = parseFloat(parseFloat(screenH[screenNum]) * (parseFloat(parentFrame.parentNode.offsetWidth) / parseFloat(screenW[screenNum]))) +"px"; if (scaleBrokeOutFrame) { parent.window.ns_4_164806_gU487381.fifBrokeOut.style.width=parseInt(parentFrame.parentNode.offsetWidth) +"px"; } try { var vTrackApp = window.parent.document.getElementById("adventive_htmlx_gU487381_viewability_tracker_app_" + screenNum); if (vTrackApp !== null) { var tLeft = (parseInt(vTrackApp.style.left) * scaleCalc) - parseInt(vTrackApp.style.left) + "px"; var tTop = ((parseInt(vTrackApp.style.marginTop) + parseInt(vTrackApp.style.top)) * scaleCalc) - (parseInt(vTrackApp.style.marginTop) + parseInt(vTrackApp.style.top)) + "px"; vTrackApp.style.transform = "translate("+tLeft+","+tTop+")"; } else { setTimeout(function(){ var vTrackApp = window.parent.document.getElementById("adventive_htmlx_gU487381_viewability_tracker_app_" + screenNum); if (vTrackApp !== null) { var tLeft = (parseInt(vTrackApp.style.left) * scaleCalc) - parseInt(vTrackApp.style.left) + "px"; var tTop = ((parseInt(vTrackApp.style.marginTop) + parseInt(vTrackApp.style.top)) * scaleCalc) - (parseInt(vTrackApp.style.marginTop) + parseInt(vTrackApp.style.top)) + "px"; vTrackApp.style.transform = "translate("+tLeft+","+tTop+")"; } }, 500); } } catch (e) { console.log(e); } /* Reverse transform on floating layers */ try { var floatingLayers = document.getElementById("screen-"+screenNum).querySelectorAll(".floating-element"); var i; for (i = 0; i < floatingLayers.length; i++) { var translate = ""; if (floatingLayers[i].style.right !== "auto") { var translateX = (parseInt(floatingLayers[i].style.right) * scaleCalc) - parseInt(floatingLayers[i].style.right); translate += "translateX(" + translateX + "px) "; } if (floatingLayers[i].style.bottom !== "auto") { var translateY = (parseInt(floatingLayers[i].style.bottom) * scaleCalc) - parseInt(floatingLayers[i].style.bottom); translate += "translateY(" + translateY + "px) "; } if (floatingLayers[i].style.left !== "auto") { var translateX = parseInt(floatingLayers[i].style.left) - (parseInt(floatingLayers[i].style.left) * scaleCalc); translate += "translateX(" + translateX + "px) "; } if (floatingLayers[i].style.top !== "auto") { var translateY = parseInt(floatingLayers[i].style.top) - (parseInt(floatingLayers[i].style.top) * scaleCalc); translate += "translateY(" + translateY + "px) "; } floatingLayers[i].style.transform = "scale("+1/scaleCalc+")" + " " + translate; } } catch (e) { console.log(e); } } else { parentFrame.style.WebkitTransform = "none"; parentFrame.style.MozTransform = "none"; parentFrame.style.MsTransform = "none"; parentFrame.style.OTransform = "none"; parentFrame.style.transform = "none"; parentFrame.parentNode.style.maxHeight = "none"; var vTrackApp = window.parent.document.getElementById("adventive_htmlx_gU487381_viewability_tracker_app_" + screenNum); if (vTrackApp !== null) { vTrackApp.style.transform = "translate(0,0)"; } /* floating layers when no resize is needed */ var floatingLayers = document.getElementById("screen-"+screenNum).querySelectorAll(".floating-element"); var i; for (i = 0; i < floatingLayers.length; i++) { floatingLayers[i].style.transform = ""; } } } catch (e) {} /* If there is a resposive screen screen override, make sure that it gets called */ try { if (typeof context.advResponsiveOverride === "function"){ context.advResponsiveOverride(); } } catch (e) {} } else { try { if (parentFrame.parentNode.parentNode.id.substring(0,16) == "adventive_htmlx_"){ parentFrame.parentNode.parentNode.style.maxWidth = "none"; } parentFrame.style.WebkitTransform = "none"; parentFrame.style.MozTransform = "none"; parentFrame.style.MsTransform = "none"; parentFrame.style.OTransform = "none"; parentFrame.style.transform = "none"; parentFrame.parentNode.style.maxHeight = "none"; } catch (e) {} } var firstCheckTimer = 1; setTimeout(function(){ firstCheckTimer = 0; for (var index = 0; index < window["resizeEvents_"+screenNum].length; ++index) { window[window["resizeEvents_"+screenNum][index]](parseInt(parentFrame.parentNode.offsetWidth) / parseInt(screenW[screenNum])); } }, firstCheckTimer); } var fireTracker_164806 = function(goToScreenNum){};function goToScreen(goToScreenNum, transition, direction, adType, transitionTime){ expandDirection = direction; if(activeScreen != goToScreenNum){ screenTransition = true; triggerResponsiveGoToScreens(); if (adType === (void 0)) adType = ""; if((adType == "Interstitial" || adType == "Mobile Full Page Flex") && (0 || 0)){ if ("None" !== "None") { previousScreen = activeScreen; } } var leaveScreen = activeScreen; activeScreen = goToScreenNum; /* Set border variables for the new screen */ borderTop = document.getElementById("border-top-" + goToScreenNum); borderRight = document.getElementById("border-right-" + goToScreenNum); borderBottom = document.getElementById("border-bottom-" + goToScreenNum); borderLeft = document.getElementById("border-left-" + goToScreenNum); var tTime = parseInt(transitionTime); /* When collapsing to a smaller screen, wait for the transition to end before doing the responsive code */ if ( (parseInt(screenH[goToScreenNum]) <= parseInt(screenH[leaveScreen])) ) { setTimeout(function(){ setResponsiveScreen(goToScreenNum); }, tTime); } else { setResponsiveScreen(goToScreenNum); } if(tTime !== undefined || !isNaN(parseInt(tTime))) { var transitionT = parseInt(transitionTime); } else { var transitionT = 300; } for (var index = 0; index < window["leaveScreenEvents_"+leaveScreen].length; ++index) { window[window["leaveScreenEvents_"+leaveScreen][index]](); } var closeScreen = document.getElementById("screen-"+leaveScreen); if (adType === "Cinema") { transition = "Cinema Fade"; } if (adType === "Eclipse") { transition = "Eclipse Fade"; } if ((transition === "Fade") || (transition === "Cinema Fade")) { var openScreen = document.getElementById("screen-"+goToScreenNum); simpleFade(closeScreen, openScreen, transitionT); } else if (transition === "Eclipse Fade") { if (goToScreenNum == 0) { transitionT = 0; } simpleChange(closeScreen, transitionT); showScreen(goToScreenNum, transitionT); } else { simpleChange(closeScreen, transitionT); showScreen(goToScreenNum, transitionT); } if (autoEvents[goToScreenNum] !== undefined) { checkAutoEvents(autoEvents[goToScreenNum].screenId, autoEvents[goToScreenNum].transition, autoEvents[goToScreenNum].delay, "", autoEvents[goToScreenNum].transitionTime); } /* If there is a callback function, pass it the information that it needs */ try { if (typeof parent.window.ns_4_164806_gU487381.advExpandCallback === "function"){ parent.window.ns_4_164806_gU487381.advExpandCallback(screenW[goToScreenNum], screenH[goToScreenNum], transitionTime); } } catch (e) {} /* Hide/show pushdown skin images as needed */ if(adType == "Pushdown Skin" || adType == "Takeover"){ if(window.parent.document.getElementById("adventive_htmlx_gU487381_pushdown_left_holder-"+leaveScreen))window.parent.document.getElementById("adventive_htmlx_gU487381_pushdown_left_holder-"+leaveScreen).style.display = "none"; if(window.parent.document.getElementById("adventive_htmlx_gU487381_pushdown_right_holder-"+leaveScreen))window.parent.document.getElementById("adventive_htmlx_gU487381_pushdown_right_holder-"+leaveScreen).style.display = "none"; if(window.parent.document.getElementById("adventive_htmlx_gU487381_pushdown_image_wall_holder-"+leaveScreen))window.parent.document.getElementById("adventive_htmlx_gU487381_pushdown_image_wall_holder-"+leaveScreen).style.display = "none"; if(window.parent.document.getElementById("adventive_htmlx_gU487381_pushdown_video_wall_holder-"+leaveScreen))window.parent.document.getElementById("adventive_htmlx_gU487381_pushdown_video_wall_holder-"+leaveScreen).style.display = "none"; if(window.parent.document.getElementById("adventive_htmlx_gU487381_pushdown_wall_left_click-"+leaveScreen))window.parent.document.getElementById("adventive_htmlx_gU487381_pushdown_wall_left_click-"+leaveScreen).style.display = "none"; if(window.parent.document.getElementById("adventive_htmlx_gU487381_pushdown_wall_right_click-"+leaveScreen))window.parent.document.getElementById("adventive_htmlx_gU487381_pushdown_wall_right_click-"+leaveScreen).style.display = "none"; if(window.parent.document.getElementById("adventive_htmlx_gU487381_pushdown_left_holder-"+activeScreen))window.parent.document.getElementById("adventive_htmlx_gU487381_pushdown_left_holder-"+activeScreen).style.display = "block"; if(window.parent.document.getElementById("adventive_htmlx_gU487381_pushdown_right_holder-"+activeScreen))window.parent.document.getElementById("adventive_htmlx_gU487381_pushdown_right_holder-"+activeScreen).style.display = "block"; if(window.parent.document.getElementById("adventive_htmlx_gU487381_pushdown_image_wall_holder-"+activeScreen))window.parent.document.getElementById("adventive_htmlx_gU487381_pushdown_image_wall_holder-"+activeScreen).style.display = "block"; /** timeout to let the video wall load in, video walls not on the first screen will are not added until going to the screen, unless set to the same src as the first screen */ setTimeout(function(){ if(window.parent.document.getElementById("adventive_htmlx_gU487381_pushdown_video_wall_holder-"+activeScreen)){ if(window.parent.document.getElementById("adventive_htmlx_gU487381_pushdown_video_wall_holder-"+activeScreen).getAttribute("source") != window.parent.document.getElementById("adventive_htmlx_gU487381_pushdown_video_wall_holder-0").getAttribute("source")){ window.parent.document.getElementById("adventive_htmlx_gU487381_pushdown_video_wall_holder-"+activeScreen).style.display = "block"; } else{ window.parent.document.getElementById("adventive_htmlx_gU487381_pushdown_video_wall_holder-0").style.display = "block"; } } },750); if(window.parent.document.getElementById("adventive_htmlx_gU487381_pushdown_wall_left_click-"+activeScreen))window.parent.document.getElementById("adventive_htmlx_gU487381_pushdown_wall_left_click-"+activeScreen).style.display = "block"; if(window.parent.document.getElementById("adventive_htmlx_gU487381_pushdown_wall_right_click-"+activeScreen))window.parent.document.getElementById("adventive_htmlx_gU487381_pushdown_wall_right_click-"+activeScreen).style.display = "block"; /* Trigger resize to position images */ try{ /* Normal browsers */ window.dispatchEvent(new Event("resize")); window.parent.window.dispatchEvent(new Event("resize")); } catch(e){ /* Old browsers and IE/EDGE */ var evt = window.document.createEvent("UIEvents"); evt.initUIEvent("resize", true, false, window, 0); window.dispatchEvent(evt); } } if((adType != "Overtake") && (adType != "3D Banner")) { var adWrapper = document.getElementById("adventive_htmlx_gU487381_outer"); adWrapper.style.transition = "width " + transitionT + "ms ease-in-out, height " + transitionT + "ms ease-in-out"; adWrapper.style.width = screenW[goToScreenNum]; adWrapper.style.height = screenH[goToScreenNum]; var parentFrame = window.parent.document.getElementById("adventive_htmlx_gU487381_frame"); parentFrame.style.transition = "width " + transitionT + "ms ease-in-out, height " + transitionT + "ms ease-in-out"; parentFrame.style.width = screenW[goToScreenNum]; parentFrame.style.height = screenH[goToScreenNum]; if(typeof window.parent.ff_el!=="undefined"){ try { window.parent.ff_el.style.transition = "width " + transitionT + "ms ease-in-out, height " + transitionT + "ms ease-in-out"; window.parent.ff_el.style.width = screenW[goToScreenNum]; window.parent.ff_el.style.height = screenH[goToScreenNum]; } catch (e) { console.log(e); } } } if (adType === "Adhesion") { try{ var adhesionClose = window.parent.document.getElementById("adventive_htmlx_gU487381_close"); adhesionClose.style.transition = "all " + transitionT + "ms ease-in-out"; adhesionClose.style.bottom = (parseInt(adWrapper.style.height) - adhesionClose.clientHeight + 20) + "px"; } catch (e) { } try{ var adhesionTimer = window.parent.document.getElementById("adventive_htmlx_gU487381_timer"); if (adhesionTimer !== null){ adhesionTimer.style.transition = "all " + transitionT + "ms ease-in-out"; if (parseInt(adhesionTimer.style.top)) { adhesionTimer.style.top = parseInt(adWrapper.style.height) + "px"; } else { adhesionTimer.style.bottom = (parseInt(adWrapper.style.height) + 5) + "px"; } } if (typeof oldResizeE_adventive_htmlx_gU487381 === "function"){ oldResizeE_adventive_htmlx_gU487381(); } } catch (e) { console.log(e); } } if (adType === "Wallpaper" || adType == "Wallpaper2") { if(wallpaperObjects != undefined){ var originalLength = wallpaperObjects.length; for(var i = 0; i < originalLength; i++) { var floatingObject = window.parent.document.getElementById(wallpaperObjects[i]); if(floatingObject && floatingObject.className.indexOf("adventive_htmlx_gU487381_wallpaperFloat") !== -1){ var className = window.parent.document.getElementById("adventive_htmlx_gU487381_frame").parentNode.id + "_floatingObject_active"; if(wallpaperObjects[i].split("-")[1] == activeScreen){ floatingObject.style.display = "block"; floatingObject.className += " " + className; } else{ floatingObject.style.display = "none"; floatingObject.className = "adventive_htmlx_gU487381_wallpaperFloat"; } } } } } /* Force Marquee Ads to use push */ if (adType === "Marquee") { transition = "Push"; } if (adType === "Overtake") { transition = "Overtake Push"; } if (adType === "Interscroller" && context) { context.gotoScreenInterscroller(goToScreenNum, screenResponsive[goToScreenNum]); } if (adType === "Adhesion" && context) { context.gotoScreenAdhesion(screenW[goToScreenNum], screenH[goToScreenNum], transitionTime); } /* Handle the Safe Frame expansion if in a Safe Frame */ var inSafeFrame = parent.window.ns_4_164806_gU487381.inSafeFrame; if (inSafeFrame) { if (goToScreenNum === 0) { parent.window.ns_4_164806_gU487381.collapse(); } else { parent.window.ns_4_164806_gU487381.expand(direction, transition, screenW[leaveScreen], screenH[leaveScreen], screenW[goToScreenNum], screenH[goToScreenNum]); } } /* Handle Mraid expansion */ var inMraid = parent.window.ns_4_164806_gU487381.inMraid; if (inMraid) { if (goToScreenNum === 0) { parent.window.ns_4_164806_gU487381.collapse(); } else { parent.window.ns_4_164806_gU487381.expand(direction, transition, screenW[leaveScreen], screenH[leaveScreen], screenW[goToScreenNum], screenH[goToScreenNum]); } } /* Use custom pusdown logic for Overtake ads. Located in Overtake.js */ if (transition === "Overtake Push") { parent.window.ns_4_164806_gU487381.secondScreenExpand_adventive_htmlx_gU487381(goToScreenNum,screenW[goToScreenNum],screenH[goToScreenNum],transitionT,screenResponsive,responsiveGoToScreens); } if (transition === "Eclipse Fade") { parent.window.ns_4_164806_gU487381.eclipseChangeScreen(goToScreenNum,screenW[goToScreenNum],screenH[goToScreenNum],transitionT,screenResponsive,responsiveGoToScreens); } if (transition === "Cinema Fade") { parent.window.ns_4_164806_gU487381.cinemaChangeScreen(goToScreenNum,screenW[goToScreenNum],screenH[goToScreenNum],transitionT,screenResponsive,responsiveGoToScreens); } if (transition === "Push") { var parentFrameContainer = window.parent.document.getElementById("adventive_4_164806_gU487381"); parentFrameContainer.style.transition = "width " + transitionT + "ms ease-in-out, height " + transitionT + "ms ease-in-out"; if (adType != "Marquee"){ parentFrameContainer.style.width = screenW[goToScreenNum]; } parentFrameContainer.style.height = screenH[goToScreenNum]; parentFrameContainer.setAttribute("data-transition", transition); parentFrameContainer.setAttribute("data-speed", transitionT); } if ((transition === "Slide") || (transition == "") || (transition == "fade")){ var parentFrameContainer = window.parent.document.getElementById("adventive_4_164806_gU487381"); try { if ((parentFrameContainer.style.zIndex === "" || parentFrameContainer.style.zIndex != 0) && (parseInt(parentFrameContainer.style.zIndex) < 5000)){ parentFrameContainer.style.zIndex = 5000; } if ((parentFrame.style.zIndex === "" || parentFrame.style.zIndex != 0) && (parseInt(parentFrame.style.zIndex) < 5000)) { parentFrame.style.zIndex = 5000; } } catch(err) { console.log(err); } parentFrameContainer.setAttribute("data-transition", transition); parentFrameContainer.setAttribute("data-speed", transitionT); } /* Check for calback functions to call when a screen is loaded for the first time.*/ if (!screenViewed[activeScreen]) { for (var index = 0; index < window["fireEvents_"+activeScreen].length; ++index) { window[window["fireEvents_"+activeScreen][index]](); } fireTracker_164806(goToScreenNum); } else { /* the screen has been reentered. call the reenter callbacks */ for (var index = 0; index < window["reenterScreenEvents_"+goToScreenNum].length; ++index) { window[window["reenterScreenEvents_"+goToScreenNum][index]](); } } screenViewed[activeScreen] = 1; /* Add any viewability callbacks */ monitorEvents = []; monitorObjects = []; if(transition != "Fade"){ /* Viewability Analytics Code for Screens*/ if(window.parent.document.getElementById("adventive_htmlx_gU487381_viewability_tracker")){ parentFrameContainer = window.parent.document.getElementById("adventive_htmlx_gU487381_viewability_tracker"); } else if(window.parent.document.getElementById("adventive_htmlx_gU487381_viewability_tracker_app_"+activeScreen)){ parentFrameContainer = window.parent.document.getElementById("adventive_htmlx_gU487381_viewability_tracker_app_"+activeScreen); } addViewability(parentFrameContainer); } } /* Set up scroll actions if there are any after the screen is changed*/ setupScrollActions(); /* Set up swipe actions if there are any after the screen is changed*/ if (swipeActions.length) { setupSwipeActions(); } } function openAsAdhesion(goToScreenNum, adType, recipeUuid, pid, cid, pTag, adhesionSettings, actionSettings){ actionSettings = actionSettings || null; if (adType === "Adhesion") { goToScreen(goToScreenNum, "fade", "", adType); } else { adType = (typeof adType === "undefined") ? "" : adType; var leaveScreen = activeScreen; var parentFrameContainer = window.parent.document.getElementById("adventive_4_164806_gU487381"); var outOfView = false; if ( parentFrameContainer.offsetHeight + parentFrameContainer.getBoundingClientRect().top < 0) { outOfView = true; } /* Add the background div to the body */ try { var adhesion_ad_unit = window.parent.document.getElementById("adventive_4_164806_gU487381_adhesion"); if (adhesion_ad_unit === null) { if (actionSettings !== null) { if (actionSettings.scrollDirection === "Out of view" && !outOfView) { return false; } } var tempadhesion = document.createElement("div"); tempadhesion.id = "adventive_4_164806_gU487381_adhesion"; var adhesionScript = document.createElement("SCRIPT"); adhesionScript.type = "text/javascript"; var uri_query = ""; var adClick = document.getElementById("clickWrapper"); if (adClick === null){ adClick = ""; } else { adClick = encodeURIComponent(adClick.href); } /* Handle preview from builder, preview from campaign, or ad serve logic */ if (pTag !== "") { adhesionScript.src = "https://ads.adventive.com/ad?j&spLoad=1&iid=9cb49424885c4544b044ebe3c0f8882f&click=https%3A%2F%2Fadclick.g.doubleclick.net%2Fpcs%2Fclick%253Fxai%253DAKAOjsvlI2BuaS0fFeatvGVVVcm44qgqhbU1ldGLOf0YOJMY__L_SQYt9VwcrX63vxFWsLBIEt-DBdcHH8dXhUx9PNyjRvDEUmXWkV6TZ2Cf9IOJOszv2SyWxwgEQyAhc0J1hWgw42tle6RSA8X8wNJQvmw44KI83ujetOhwMHvuHYRng_1OvNmKVpHr4__FwOyavm2BZnUJtQArQv-CA_Ve1deSwaWx9lgvrGkTVh0C1-VSSTLpXpnoBYSPLtZ8vVYCRhDR2SabU2lfbIm7r5uXvt9hlfp2QYEJ0C3PTgcRdEM1u7VHbGT385fBg3XQhOqrDxxrbLXvN1AWBA%2526sai%253DAMfl-YRMB37OxMLA2SSyPytbYWA3d4WfhXM7Y573b7cGK-ItJZbw3CsoRE2JdE_RoEhNLpMJrasttUTptLXqMHL7gDHBHM-JC8aZO4qdbQqUCN77FErn1Tackcu8uNXcjw%2526sig%253DCg0ArKJSzFFokr-2VaQuEAE%2526fbs_aeid%253D%255Bgw_fbsaeid%255D%2526urlfix%253D1%2526adurl%253D&enc=1&ptag=" + pTag + "&spLoadP=" + pid + "&spLoadC=" + cid + "&spLoadU=" + recipeUuid + "&type=4&fb=" + tempadhesion.id + "&forceFallback=1&iAmAdhesion=1&initScreen=" + goToScreenNum + "&adhesionSettings=" + adhesionSettings + "&abDetection=0"; } else { adhesionScript.src = "https://ads.adventive.com/ad?j&spLoad=1&iid=9cb49424885c4544b044ebe3c0f8882f&click=https%3A%2F%2Fadclick.g.doubleclick.net%2Fpcs%2Fclick%253Fxai%253DAKAOjsvlI2BuaS0fFeatvGVVVcm44qgqhbU1ldGLOf0YOJMY__L_SQYt9VwcrX63vxFWsLBIEt-DBdcHH8dXhUx9PNyjRvDEUmXWkV6TZ2Cf9IOJOszv2SyWxwgEQyAhc0J1hWgw42tle6RSA8X8wNJQvmw44KI83ujetOhwMHvuHYRng_1OvNmKVpHr4__FwOyavm2BZnUJtQArQv-CA_Ve1deSwaWx9lgvrGkTVh0C1-VSSTLpXpnoBYSPLtZ8vVYCRhDR2SabU2lfbIm7r5uXvt9hlfp2QYEJ0C3PTgcRdEM1u7VHbGT385fBg3XQhOqrDxxrbLXvN1AWBA%2526sai%253DAMfl-YRMB37OxMLA2SSyPytbYWA3d4WfhXM7Y573b7cGK-ItJZbw3CsoRE2JdE_RoEhNLpMJrasttUTptLXqMHL7gDHBHM-JC8aZO4qdbQqUCN77FErn1Tackcu8uNXcjw%2526sig%253DCg0ArKJSzFFokr-2VaQuEAE%2526fbs_aeid%253D%255Bgw_fbsaeid%255D%2526urlfix%253D1%2526adurl%253D&enc=1&spLoadP=" + pid + "&spLoadC=" + cid + "&spLoadU=" + recipeUuid + "&type=4&fb=" + tempadhesion.id + "&forceFallback=1&iAmadhesion=1&initScreen=" + goToScreenNum + "&adhesionSettings=" + adhesionSettings + "&abDetection=0"; } parentFrameContainer.parentNode.appendChild(tempadhesion); tempadhesion.appendChild(adhesionScript); var ad_script = parentFrameContainer; } else { if (adhesion_ad_unit !== null) { if (actionSettings.scrollDirection === "Out of view" && actionSettings.closeAdhesionInView && !outOfView) { adhesion_ad_unit.remove(); } } } } catch (e) { console.log(e); } if (!screenViewed[goToScreenNum]) { fireTracker_164806(goToScreenNum); } screenViewed[activeScreen] = 1; } } function openAsInterstitial(goToScreenNum, adType, recipeUuid, pid, cid, pTag, intSettings){ if (adType === "Interstitial") { goToScreen(goToScreenNum, "fade", "", adType); } else { adType = (typeof adType === "undefined") ? "" : adType; var leaveScreen = activeScreen; var parentFrameContainer = window.parent.document.getElementById("adventive_4_164806_gU487381"); /* Add the background div to the body */ try { var int_ad_unit = window.parent.document.getElementById("adventive_4_164806_gU487381_int"); if (int_ad_unit === null) { var tempInt = document.createElement("div"); tempInt.id = "adventive_4_164806_gU487381_int"; var intScript = document.createElement("SCRIPT"); intScript.type = "text/javascript"; var uri_query = ""; var adClick = document.getElementById("clickWrapper"); if (adClick === null){ adClick = ""; } else { adClick = encodeURIComponent(adClick.href); } /* Handle preview from builder, preview from campaign, or ad serve logic */ if (pTag !== "") { intScript.src = "https://ads.adventive.com/ad?j&spLoad=1&iid=9cb49424885c4544b044ebe3c0f8882f&click=https%3A%2F%2Fadclick.g.doubleclick.net%2Fpcs%2Fclick%253Fxai%253DAKAOjsvlI2BuaS0fFeatvGVVVcm44qgqhbU1ldGLOf0YOJMY__L_SQYt9VwcrX63vxFWsLBIEt-DBdcHH8dXhUx9PNyjRvDEUmXWkV6TZ2Cf9IOJOszv2SyWxwgEQyAhc0J1hWgw42tle6RSA8X8wNJQvmw44KI83ujetOhwMHvuHYRng_1OvNmKVpHr4__FwOyavm2BZnUJtQArQv-CA_Ve1deSwaWx9lgvrGkTVh0C1-VSSTLpXpnoBYSPLtZ8vVYCRhDR2SabU2lfbIm7r5uXvt9hlfp2QYEJ0C3PTgcRdEM1u7VHbGT385fBg3XQhOqrDxxrbLXvN1AWBA%2526sai%253DAMfl-YRMB37OxMLA2SSyPytbYWA3d4WfhXM7Y573b7cGK-ItJZbw3CsoRE2JdE_RoEhNLpMJrasttUTptLXqMHL7gDHBHM-JC8aZO4qdbQqUCN77FErn1Tackcu8uNXcjw%2526sig%253DCg0ArKJSzFFokr-2VaQuEAE%2526fbs_aeid%253D%255Bgw_fbsaeid%255D%2526urlfix%253D1%2526adurl%253D&enc=1&ptag=" + pTag + "&spLoadP=" + pid + "&spLoadC=" + cid + "&spLoadU=" + recipeUuid + "&type=4&fb=" + tempInt.id + "&forceFallback=1&iAmInt=1&initScreen=" + goToScreenNum + "&intSettings=" + intSettings + "&abDetection=0"; } else { intScript.src = "https://ads.adventive.com/ad?j&spLoad=1&iid=9cb49424885c4544b044ebe3c0f8882f&click=https%3A%2F%2Fadclick.g.doubleclick.net%2Fpcs%2Fclick%253Fxai%253DAKAOjsvlI2BuaS0fFeatvGVVVcm44qgqhbU1ldGLOf0YOJMY__L_SQYt9VwcrX63vxFWsLBIEt-DBdcHH8dXhUx9PNyjRvDEUmXWkV6TZ2Cf9IOJOszv2SyWxwgEQyAhc0J1hWgw42tle6RSA8X8wNJQvmw44KI83ujetOhwMHvuHYRng_1OvNmKVpHr4__FwOyavm2BZnUJtQArQv-CA_Ve1deSwaWx9lgvrGkTVh0C1-VSSTLpXpnoBYSPLtZ8vVYCRhDR2SabU2lfbIm7r5uXvt9hlfp2QYEJ0C3PTgcRdEM1u7VHbGT385fBg3XQhOqrDxxrbLXvN1AWBA%2526sai%253DAMfl-YRMB37OxMLA2SSyPytbYWA3d4WfhXM7Y573b7cGK-ItJZbw3CsoRE2JdE_RoEhNLpMJrasttUTptLXqMHL7gDHBHM-JC8aZO4qdbQqUCN77FErn1Tackcu8uNXcjw%2526sig%253DCg0ArKJSzFFokr-2VaQuEAE%2526fbs_aeid%253D%255Bgw_fbsaeid%255D%2526urlfix%253D1%2526adurl%253D&enc=1&spLoadP=" + pid + "&spLoadC=" + cid + "&spLoadU=" + recipeUuid + "&type=4&fb=" + tempInt.id + "&forceFallback=1&iAmInt=1&initScreen=" + goToScreenNum + "&intSettings=" + intSettings + "&abDetection=0"; } parentFrameContainer.parentNode.appendChild(tempInt); tempInt.appendChild(intScript); var ad_script = parentFrameContainer; } } catch (e) { console.log(e); } if (!screenViewed[goToScreenNum]) { fireTracker_164806(goToScreenNum); } screenViewed[activeScreen] = 1; } } function openAsFullPageFlex(goToScreenNum, adType, recipeUuid, pid, cid, pTag, flexSettings){ if (adType === "Mobile Full Page Flex") { goToScreen(goToScreenNum, "fade", "", adType); } else { adType = (typeof adType === "undefined") ? "" : adType; var leaveScreen = activeScreen; var parentFrameContainer = window.parent.document.getElementById("adventive_4_164806_gU487381"); /* Add the background div to the body */ try { var flex_ad_unit = window.parent.document.getElementById("adventive_4_164806_gU487381_flex"); if (flex_ad_unit === null) { var tempFlex = document.createElement("div"); tempFlex.id = "adventive_4_164806_gU487381_flex"; var flexScript = document.createElement("SCRIPT"); flexScript.type = "text/javascript"; var uri_query = ""; var adClick = document.getElementById("clickWrapper"); if (adClick === null){ adClick = ""; } else { adClick = encodeURIComponent(adClick.href); } /* Handle preview from builder, preview from campaign, or ad serve logic */ if (pTag !== "") { flexScript.src = "https://ads.adventive.com/ad?j&spLoad=1&iid=9cb49424885c4544b044ebe3c0f8882f&click=https%3A%2F%2Fadclick.g.doubleclick.net%2Fpcs%2Fclick%253Fxai%253DAKAOjsvlI2BuaS0fFeatvGVVVcm44qgqhbU1ldGLOf0YOJMY__L_SQYt9VwcrX63vxFWsLBIEt-DBdcHH8dXhUx9PNyjRvDEUmXWkV6TZ2Cf9IOJOszv2SyWxwgEQyAhc0J1hWgw42tle6RSA8X8wNJQvmw44KI83ujetOhwMHvuHYRng_1OvNmKVpHr4__FwOyavm2BZnUJtQArQv-CA_Ve1deSwaWx9lgvrGkTVh0C1-VSSTLpXpnoBYSPLtZ8vVYCRhDR2SabU2lfbIm7r5uXvt9hlfp2QYEJ0C3PTgcRdEM1u7VHbGT385fBg3XQhOqrDxxrbLXvN1AWBA%2526sai%253DAMfl-YRMB37OxMLA2SSyPytbYWA3d4WfhXM7Y573b7cGK-ItJZbw3CsoRE2JdE_RoEhNLpMJrasttUTptLXqMHL7gDHBHM-JC8aZO4qdbQqUCN77FErn1Tackcu8uNXcjw%2526sig%253DCg0ArKJSzFFokr-2VaQuEAE%2526fbs_aeid%253D%255Bgw_fbsaeid%255D%2526urlfix%253D1%2526adurl%253D&enc=1&ptag=" + pTag + "&spLoadP=" + pid + "&spLoadC=" + cid + "&spLoadU=" + recipeUuid + "&type=4&fb=" + tempFlex.id + "&forceFallback=1&iAmFlex=1&initScreen=" + goToScreenNum + "&flexSettings=" + flexSettings + "&abDetection=0"; } else { flexScript.src = "https://ads.adventive.com/ad?j&spLoad=1&iid=9cb49424885c4544b044ebe3c0f8882f&click=https%3A%2F%2Fadclick.g.doubleclick.net%2Fpcs%2Fclick%253Fxai%253DAKAOjsvlI2BuaS0fFeatvGVVVcm44qgqhbU1ldGLOf0YOJMY__L_SQYt9VwcrX63vxFWsLBIEt-DBdcHH8dXhUx9PNyjRvDEUmXWkV6TZ2Cf9IOJOszv2SyWxwgEQyAhc0J1hWgw42tle6RSA8X8wNJQvmw44KI83ujetOhwMHvuHYRng_1OvNmKVpHr4__FwOyavm2BZnUJtQArQv-CA_Ve1deSwaWx9lgvrGkTVh0C1-VSSTLpXpnoBYSPLtZ8vVYCRhDR2SabU2lfbIm7r5uXvt9hlfp2QYEJ0C3PTgcRdEM1u7VHbGT385fBg3XQhOqrDxxrbLXvN1AWBA%2526sai%253DAMfl-YRMB37OxMLA2SSyPytbYWA3d4WfhXM7Y573b7cGK-ItJZbw3CsoRE2JdE_RoEhNLpMJrasttUTptLXqMHL7gDHBHM-JC8aZO4qdbQqUCN77FErn1Tackcu8uNXcjw%2526sig%253DCg0ArKJSzFFokr-2VaQuEAE%2526fbs_aeid%253D%255Bgw_fbsaeid%255D%2526urlfix%253D1%2526adurl%253D&enc=1&spLoadP=" + pid + "&spLoadC=" + cid + "&spLoadU=" + recipeUuid + "&type=4&fb=" + tempFlex.id + "&forceFallback=1&iAmFlex=1&initScreen=" + goToScreenNum + "&flexSettings=" + flexSettings + "&abDetection=0"; } parentFrameContainer.parentNode.appendChild(tempFlex); tempFlex.appendChild(flexScript); var ad_script = parentFrameContainer; } } catch (e) { console.log(e); } if(!screenViewed[goToScreenNum]){ fireTracker_164806(goToScreenNum); } screenViewed[activeScreen] = 1; } } function doResponsiveFunction(scale){ var firstCheckTimer = 1; setTimeout(function(){ firstCheckTimer = 0; var parentFrame = window.parent.document.getElementById("adventive_htmlx_gU487381_frame"); for (var index = 0; index < window["resizeEvents_"+activeScreen].length; ++index) { window[window["resizeEvents_"+activeScreen][index]](scale); } }, firstCheckTimer); }function checkAutoEvents(goToScreenNum, transition, delay, direction, transitionTime, uuid, pid, cid, pTag, specialSettings) { direction = direction || ""; if(window["autoWait_" + activeScreen]) window["autoEvents_" + activeScreen].push([goToScreenNum, transition, delay, direction, transitionTime, uuid, pid, cid, pTag, specialSettings]); if (!screenViewed[activeScreen] && !window["autoWait_" + activeScreen]) { autoTimer = setTimeout(function(){ if(!manualTriggered) { document.body.className = ""; var additionalData = {screenIndex:parseInt(activeScreen)+1}; var logType = (activeScreen == 0 ? "nav_expand_auto" : "nav_collapse_auto"); parent.window.ns_4_164806_gU487381.logStat(logType, JSON.stringify(additionalData)); if (transition == "interstitial") { openAsInterstitial(goToScreenNum,"Eclipse", uuid, pid, cid, pTag, specialSettings); } else if (transition == "fullpageflex") { openAsFullPageFlex(goToScreenNum,"Eclipse", uuid, pid, cid, pTag, specialSettings); } else if (transition == "adhesion") { openAsAdhesion(goToScreenNum,"Eclipse", uuid, pid, cid, pTag, specialSettings); } else { goToScreen(goToScreenNum, transition, "", "Eclipse", transitionTime); } } },delay); } /*if (!screenViewed[activeScreen]) { for (var index = 0; index < window["fireEvents_"+activeScreen].length; ++index) { window[window["fireEvents_"+activeScreen][index]](); } }*/ screenViewed[activeScreen] = 1; } screenViewed.push(0); screenW.push("970px"); screenH.push("250px"); whRatio.push("1"); var fireEvents_0 = []; var leaveScreenEvents_0 = []; var viewScreenEvents_0 = []; var leaveViewScreenEvents_0 = []; var resizeEvents_0 = []; var reenterScreenEvents_0 = []; var autoEvents_0 = []; var autoWait_0 = false; var leaveAdEvents = []; screenResponsive.push(0);screenViewed.push(0); screenW.push("970px"); screenH.push("250px"); whRatio.push("1"); var fireEvents_1 = []; var leaveScreenEvents_1 = []; var viewScreenEvents_1 = []; var leaveViewScreenEvents_1 = []; var resizeEvents_1 = []; var reenterScreenEvents_1 = []; var autoEvents_1 = []; var autoWait_1 = false; var leaveAdEvents = []; screenResponsive.push(1); function adClick(e){var t=_init(e),n=t.elt.parentNode;logStat(n.clickType,JSON.stringify({dest:n.dest,xVal:t.coords.x,yVal:t.coords.y,screenIndex:1}))}function _init(e){var t=(e=e||window.event).srcElement||e.target,n=null,i=null;if(e.pageX&&e.pageY)n=parseInt(e.pageX-t.offsetLeft),i=parseInt(e.pageY-t.offsetTop);else if(e.clientX&&e.clientY){var l=t.getBoundingClientRect();n=parseInt(e.clientX-l.left),i=parseInt(e.clientY-l.top)}return{elt:t,coords:{x:n,y:i}}}function logHtmlEvent(evt, activeScreen, logType, logTypeData) { var initObj = _init(evt); var additionalData = { 'xVal': initObj.coords.x, 'yVal': initObj.coords.y, 'screenIndex': activeScreen + 1 }; for (var attrname in logTypeData) { additionalData[attrname] = logTypeData[attrname]; } if ((logType == "serve_clickthrough") && (additionalData.label == "")) {additionalData.label = "Screen " + (activeScreen+1);} parent.window.ns_4_164806_gU487381.logStat(logType, JSON.stringify(additionalData)); if (logType == "serve_clickthrough"){ if (parent.window.ns_4_164806_gU487381.isClickThrough(logType)) { parent.window.ns_4_164806_gU487381.html5Clked = 1; } } else { if (parent.window.ns_4_164806_gU487381.isEngagement(logType)) { parent.window.ns_4_164806_gU487381.html5Enged = 1; } }}function logClickAndNavigate(evt, activeScreen, logType, logTypeData, clicktoUrl) { var clickto = clicktoUrl; var initObj = _init(evt); var additionalData = { 'xVal': initObj.coords.x, 'yVal': initObj.coords.y, 'screenIndex': activeScreen + 1 }; for (var attrname in logTypeData) { additionalData[attrname] = logTypeData[attrname]; } if ((logType == "serve_clickthrough") && (additionalData.label == "")) { additionalData.label = "Screen " + (activeScreen+1); } parent.window.ns_4_164806_gU487381.logStatAndNavigate( logType, JSON.stringify(additionalData), clickto ); }function logThirdPartyTracking(type,url,hash){ parent.window.ns_4_164806_gU487381.fireTracker(type,url,hash);}function logHp(evt, activeScreen, logType, logTypeData) { var initObj = _init(evt); var additionalData = { xVal: initObj.coords.x, yVal: initObj.coords.y, screenIndex: activeScreen + 1 }; for (var attrname in logTypeData) { additionalData[attrname] = logTypeData[attrname]; } additionalData.label = "HP " + (activeScreen+1); parent.window.ns_4_164806_gU487381.logStat( "serve_clickthrough_hp", JSON.stringify(additionalData) );}function clickEventHp() { var hpEvent = document.createEvent("CustomEvent"); var hpDat = {"label":"clickEventHp"}; logHp(hpEvent, 1, "serve_clickthrough_hp", hpDat);}/* Simple URL Validation */function isValidHttpUrl(string) { var url; try { url = new URL(string); } catch (_) { return false; } return url.protocol === "http:" || url.protocol === "https:";}/* Replace substring */function strReplaceAll(str, find, replace) { return str.replace(find, replace);}/* General Ad Clickthrough Function */function adClickthrough(href, target){ var externalClickTrackerEnc = 'https://adclick.g.doubleclick.net/pcs/click?xai=AKAOjsvlI2BuaS0fFeatvGVVVcm44qgqhbU1ldGLOf0YOJMY__L_SQYt9VwcrX63vxFWsLBIEt-DBdcHH8dXhUx9PNyjRvDEUmXWkV6TZ2Cf9IOJOszv2SyWxwgEQyAhc0J1hWgw42tle6RSA8X8wNJQvmw44KI83ujetOhwMHvuHYRng_1OvNmKVpHr4__FwOyavm2BZnUJtQArQv-CA_Ve1deSwaWx9lgvrGkTVh0C1-VSSTLpXpnoBYSPLtZ8vVYCRhDR2SabU2lfbIm7r5uXvt9hlfp2QYEJ0C3PTgcRdEM1u7VHbGT385fBg3XQhOqrDxxrbLXvN1AWBA&sai=AMfl-YRMB37OxMLA2SSyPytbYWA3d4WfhXM7Y573b7cGK-ItJZbw3CsoRE2JdE_RoEhNLpMJrasttUTptLXqMHL7gDHBHM-JC8aZO4qdbQqUCN77FErn1Tackcu8uNXcjw&sig=Cg0ArKJSzFFokr-2VaQuEAE&fbs_aeid=[gw_fbsaeid]&urlfix=1&adurl='; var hrefMacroReplaced = href; /* Check for replacement macros from the first party ad server */ if (context.fifBrokeOut) { var replacementMacros = context.fifBrokeOut.contentWindow.replaceMacros; } else { var replacementMacros = window.parent.window.replaceMacros; } if (replacementMacros !== undefined) { if (typeof replacementMacros.macro === 'object'){ for (var i=0; i < replacementMacros.macro.length; i++){ var replacementMacro = replacementMacros.pre + replacementMacros.macro[i].name + replacementMacros.post; hrefMacroReplaced = strReplaceAll(hrefMacroReplaced, replacementMacro, replacementMacros.macro[i].value); } } } if (isValidHttpUrl(externalClickTrackerEnc)) { hrefMacroReplaced = externalClickTrackerEnc + encodeURIComponent(hrefMacroReplaced); } window.open(hrefMacroReplaced, target);}</script></head><body style="margin:0; padding:0;" class="hide"><script>try { var checkPar = parent.document.domain} catch (e) { document.write("<script>try{document.domain='www.northstarmeetingsgroup.com';} catch (e) {}</scr"+"ipt>"); document.close(); }</script><div style='background-color:transparent; position:absolute;'> <a href='https://assets.adventivecdn.com/ui/images/hp_blank.png' id='clickWrapperHP' target='_blank' draggable='false' onclick='logHp(event, activeScreen, "serve_clickthrough_hp", hpDatClickEvt)'> <div style='background-color: transparent; width: 1px; height: 1px; position: relative;'> </div> </a> </div><a href="https://adclick.g.doubleclick.net/pcs/click?xai=AKAOjsvlI2BuaS0fFeatvGVVVcm44qgqhbU1ldGLOf0YOJMY__L_SQYt9VwcrX63vxFWsLBIEt-DBdcHH8dXhUx9PNyjRvDEUmXWkV6TZ2Cf9IOJOszv2SyWxwgEQyAhc0J1hWgw42tle6RSA8X8wNJQvmw44KI83ujetOhwMHvuHYRng_1OvNmKVpHr4__FwOyavm2BZnUJtQArQv-CA_Ve1deSwaWx9lgvrGkTVh0C1-VSSTLpXpnoBYSPLtZ8vVYCRhDR2SabU2lfbIm7r5uXvt9hlfp2QYEJ0C3PTgcRdEM1u7VHbGT385fBg3XQhOqrDxxrbLXvN1AWBA&sai=AMfl-YRMB37OxMLA2SSyPytbYWA3d4WfhXM7Y573b7cGK-ItJZbw3CsoRE2JdE_RoEhNLpMJrasttUTptLXqMHL7gDHBHM-JC8aZO4qdbQqUCN77FErn1Tackcu8uNXcjw&sig=Cg0ArKJSzFFokr-2VaQuEAE&fbs_aeid=[gw_fbsaeid]&urlfix=1&adurl=https%3A%2F%2Fwww.visitnewportbeach.com%2Fluxury-meetings-and-incentives%2F" target="_blank" draggable="false" id="clickWrapper" onclick="logHtmlEvent(event, activeScreen, 'serve_clickthrough', {'dest': 'https://www.visitnewportbeach.com/luxury-meetings-and-incentives/', label:''})" draggable="false" ondragstart="return false;"><div id="adventive_htmlx_gU487381_outer" class="adContainer" style="position:relative; height:250px; width:970px; overflow:hidden;"><div id="adventive_htmlx_gU487381_inner" onfocus="this.blur();" data-spec-uuid="" data-spec-pid="182966" data-spec-cid="70636"><div id="screen-0" style="width:970px; height:250px; z-index:1000; position:absolute;" class="ad-screen"><div class="border-screen-0" id="border-top-0" onclick="event.stopImmediatePropagation(); event.preventDefault(); event.stopPropagation();" style="cursor: default; width:100%; height:0px; background-color:transparent; position:absolute; top:0px; left:0px; z-index:1099; transform-origin:top;" data-border-size="0"></div><div class="border-screen-0" id="border-right-0" onclick="event.stopImmediatePropagation(); event.preventDefault(); event.stopPropagation();" style="cursor: default; width:0px; height:100%; background-color:transparent; position:absolute; top:0px; right:0px; z-index:1099; transform-origin:right;" data-border-size="0"></div><div class="border-screen-0" id="border-bottom-0"onclick="event.stopImmediatePropagation(); event.preventDefault(); event.stopPropagation();" style="cursor: default; width:100%; height:0px; background-color:transparent; position:absolute; bottom:0px; left:0px; z-index:1099; transform-origin:bottom;" data-border-size="0"></div><div class="border-screen-0" id="border-left-0"onclick="event.stopImmediatePropagation(); event.preventDefault(); event.stopPropagation();" style="cursor: default; width:0px; height:100%; background-color:transparent; position:absolute; top:0px; left:0px; z-index:1099; transform-origin:left;" data-border-size="0"></div><div id="screen-0-bg" style="opacity:1; width:100%;height:100%;background-color:transparent; position:absolute;"></div></div><div id="screen-1" style="width:970px; height:250px; z-index:1100; position:absolute;" class="ad-screen"><div class="border-screen-1" id="border-top-1" onclick="event.stopImmediatePropagation(); event.preventDefault(); event.stopPropagation();" style="cursor: default; width:100%; height:3px; background-color:transparent; position:absolute; top:0px; left:0px; z-index:1199; transform-origin:top;" data-border-size="3"></div><div class="border-screen-1" id="border-right-1" onclick="event.stopImmediatePropagation(); event.preventDefault(); event.stopPropagation();" style="cursor: default; width:3px; height:100%; background-color:transparent; position:absolute; top:0px; right:0px; z-index:1199; transform-origin:right;" data-border-size="3"></div><div class="border-screen-1" id="border-bottom-1"onclick="event.stopImmediatePropagation(); event.preventDefault(); event.stopPropagation();" style="cursor: default; width:100%; height:3px; background-color:transparent; position:absolute; bottom:0px; left:0px; z-index:1199; transform-origin:bottom;" data-border-size="3"></div><div class="border-screen-1" id="border-left-1"onclick="event.stopImmediatePropagation(); event.preventDefault(); event.stopPropagation();" style="cursor: default; width:3px; height:100%; background-color:transparent; position:absolute; top:0px; left:0px; z-index:1199; transform-origin:left;" data-border-size="3"></div><div id="screen-1-bg" style="opacity:1; width:100%;height:100%;background-color:transparent; position:absolute;"></div><div id="layer-1-0" style="width:584px; height:319px; position:absolute; top:0px; left:0px; z-index:1102; filter: alpha(opacity=0); -moz-opacity: 0; -khtml-opacity: 0; opacity: 0; background-color:#fff; " class=""></div> <div style="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 rgb(0, 0, 0); width:970px; height:250px; position: absolute;z-Index:1101;-webkit-border-radius: 0px; -moz-border-radius: 0px; border-radius: 0px; " id="layer-1-1" class=""> <img id="img-1-1" src="https://assets.adventivecdn.com/434/652f8b3e-9b5e-45bf-8c1f-cb503561d1ce" srcset="https://assets.adventivecdn.com/cdn-cgi/image/f=auto,q=90,w=970/434/652f8b3e-9b5e-45bf-8c1f-cb503561d1ce 1x, https://assets.adventivecdn.com/cdn-cgi/image/f=auto,q=90,w=1940/434/652f8b3e-9b5e-45bf-8c1f-cb503561d1ce 2x" style="width:970px; height:250px; position: absolute;z-Index:1101;-webkit-border-radius: 0px; -moz-border-radius: 0px; border-radius: 0px; " alt="" title="" onload="" /> </div></div></div></div></a><img id='viewability-blank-img' src='https://assets.adventivecdn.com/ui/images/blank.png' style='width:100px;height:100px;position:absolute;z-index:1;top:50%;left:50%;transform:translate(-50%,-50%);'><script type='text/javascript'>var recipeHasShakeAction = Boolean(0);</script><script type='text/javascript'>var recipeHasShakeAction = Boolean(0);</script><script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script><script type='text/javascript'>var recipeHasVideo = Boolean(1);</script><script type='text/javascript'>(function (w, ns, has) { if (has.call(w.parent, 'window') && has.call(w.parent.window, ns)) { w[ns] = w.parent.window[ns]; }})(window, 'Adventive', Object.prototype.hasOwnProperty);</script><svg id="adv-mejs" xmlns="http://www.w3.org/2000/svg" width="400" height="120" viewBox="0 0 400 120" xmlns:xlink="http://www.w3.org/1999/xlink" style="display: none;"> <style type="text/css"> .st0 { width: 16px; height: 16px; } .st1 { fill: none; /* stroke:red; */ stroke-width: 1.5; stroke-linecap: round; } .st2 { fill: none; stroke-linecap: round; stroke-width: 2; /* stroke:red; */ } .st3 { fill: none; fill-opacity: 0; /* stroke:red; */ } .st4 { } .st5 { fill: none; opacity: 0.75; stroke-width: 5; /* stroke:red; */ } .st6 { fill: none; /* stroke:red; */ stroke-width: 5; } .st7, .st8, .st9, .st10, .st11, .st12, .st13, .st4, .st0 { /* stroke:red; */ } .st7, .st8, .st9, .st10, .st11, .st12, .st13, .st5 { enable-background: new; } .st7 { opacity: 0.4; } .st8 { opacity: 0.6; } .st9 { opacity: 0.8; } .st10 { opacity: 0.9; } .st11 { opacity: 0.3; } .st12 { opacity: 0.5; } .st13 { opacity: 0.7; } </style> <symbol id="play" viewBox="4.30 1.38 12.5 15.26"> <title>Play</title> <path d="M16.5 8.5c.3.1.4.5.2.8-.1.1-.1.2-.2.2l-11.4 7c-.5.3-.8.1-.8-.5V2c0-.5.4-.8.8-.5l11.4 7z" /> </symbol> <symbol id="pause" viewBox="23 1 14 16"> <title>Pause</title> <path class="st0" d="M24 1h2.2c.6 0 1 .4 1 1v14c0 .6-.4 1-1 1H24c-.6 0-1-.4-1-1V2c0-.5.4-1 1-1zm9.8 0H36c.6 0 1 .4 1 1v14c0 .6-.4 1-1 1h-2.2c-.6 0-1-.4-1-1V2c0-.5.4-1 1-1z" /> </symbol> <symbol id="expand" viewBox="81 0.5 17.8 17.8"> <title>Expand</title> <path class="st0" d="M81 1.4c0-.6.4-1 1-1h5.4c.6 0 .7.3.3.7l-6 6c-.4.4-.7.3-.7-.3V1.4zm0 15.8c0 .6.4 1 1 1h5.4c.6 0 .7-.3.3-.7l-6-6c-.4-.4-.7-.3-.7.3v5.4zM98.8 1.4c0-.6-.4-1-1-1h-5.4c-.6 0-.7.3-.3.7l6 6c.4.4.7.3.7-.3V1.4zm0 15.8c0 .6-.4 1-1 1h-5.4c-.6 0-.7-.3-.3-.7l6-6c.4-.4.7-.3.7.3v5.4z" /> </symbol> <symbol id="collapse" viewBox="102 0.5 15.5 17.5"> <title>Collapse</title> <path class="st0" d="M112.7 5c0 .6.4 1 1 1h4.1c.6 0 .7-.3.3-.7L113.4.6c-.4-.4-.7-.3-.7.3V5zm-7.1 1c.6 0 1-.4 1-1V.9c0-.6-.3-.7-.7-.3l-4.7 4.7c-.4.4-.3.7.3.7h4.1zm1 7.1c0-.6-.4-1-1-1h-4.1c-.6 0-.7.3-.3.7l4.7 4.7c.4.4.7.3.7-.3v-4.1zm7.1-1c-.6 0-1 .4-1 1v4.1c0 .5.3.7.7.3l4.7-4.7c.4-.4.3-.7-.3-.7h-4.1z" /> </symbol> <symbol id="unmute" viewBox="61 4.5 19 11"> <title>Unmute</title> <path class="st0" d="M67 5.8c-.5.4-1.2.6-1.8.6H62c-.6 0-1 .4-1 1v5.7c0 .6.4 1 1 1h4.2c.3.2.5.4.8.6l3.5 2.6c.4.3.8.1.8-.4V3.5c0-.5-.4-.7-.8-.4L67 5.8z" /> <path class="st1" style="stroke-width: 1.5; stroke-linecap: round; fill:none" d="M73.9 2.5s3.9-.8 3.9 7.7-3.9 7.8-3.9 7.8" /> <path class="st1" style="stroke-width: 1.5; stroke-linecap: round; fill:none" d="M72.6 6.4s2.6-.4 2.6 3.8-2.6 3.9-2.6 3.9" /> </symbol> <symbol id="mute" viewBox="41 4.5 19 11"> <title>Mute</title> <path class="st0" d="M47 5.8c-.5.4-1.2.6-1.8.6H42c-.6 0-1 .4-1 1v5.7c0 .6.4 1 1 1h4.2c.3.2.5.4.8.6l3.5 2.6c.4.3.8.1.8-.4V3.5c0-.5-.4-.7-.8-.4L47 5.8z" /> <path class="st2" style="stroke-width: 2; stroke-linecap: round; fill:none" d="M52.8 7l5.4 5.4m-5.4 0L58.2 7" /> </symbol> <symbol id="cc" viewBox="120 0 20 20"> <title>Closed Caption Icon</title> <path class="st0" d="M122.2 3.4h15.7v13.1h-15.7V3.4zM120.8 2v15.7h18.3V2h-18.3z"></path> <path class="st3" style="fill: none; fill-opacity: 0; transform:translateX(1px); stroke-width: 2px; " d="M128.7 8.6c-6.2-4.2-6.5 7.8 0 3.9m6.5-3.9c-6.2-4.2-6.5 7.8 0 3.9"></path> </symbol> <symbol id="cc1" viewBox="0 0 24 24"> <title>Closed Caption Icon</title> <path class="st0" d="M143.2 3h14c1.1 0 2 .9 2 2v10c0 1.1-.9 2-2 2h-14c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2z"></path> <path class="st4" d="M146.4 13.8c-.8 0-1.6-.4-2.1-1-1.1-1.4-1-3.4.1-4.8.5-.6 2-1.7 4.6.2l-.6.8c-1.4-1-2.6-1.1-3.3-.3-.8 1-.8 2.4-.1 3.5.7.9 1.9.8 3.4-.1l.5.9c-.7.5-1.6.7-2.5.8zm7.5 0c-.8 0-1.6-.4-2.1-1-1.1-1.4-1-3.4.1-4.8.5-.6 2-1.7 4.6.2l-.5.8c-1.4-1-2.6-1.1-3.3-.3-.8 1-.8 2.4-.1 3.5.7.9 1.9.8 3.4-.1l.5.9c-.8.5-1.7.7-2.6.8z"></path> </symbol> <symbol id="bigPlay" viewBox="30 37 18 85"> <title>Play Icon</title> <path class="st0" d="M60.3 77c.6.2.8.8.6 1.4-.1.3-.3.5-.6.6L30 96.5c-1 .6-1.7.1-1.7-1v-35c0-1.1.8-1.5 1.7-1L60.3 77z"></path> <path class="st5" d="M2.5 79c0-20.7 16.8-37.5 37.5-37.5S77.5 58.3 77.5 79 60.7 116.5 40 116.5 2.5 99.7 2.5 79z"></path> </symbol> <symbol id="bigPlay1" viewBox="30 37 18 85"> <title>Play Icon</title> <path class="st0" d="M140.3 77c.6.2.8.8.6 1.4-.1.3-.3.5-.6.6L110 96.5c-1 .6-1.7.1-1.7-1v-35c0-1.1.8-1.5 1.7-1L140.3 77z"></path> <path class="st6" d="M82.5 79c0-20.7 16.8-37.5 37.5-37.5s37.5 16.8 37.5 37.5-16.8 37.5-37.5 37.5S82.5 99.7 82.5 79z"></path> </symbol> <symbol id="load" viewBox="0 0 24 24"> <title>Load Icon</title> <circle class="st0" cx="201.9" cy="47.1" r="8.1"></circle> <circle class="st7" cx="233.9" cy="79" r="5"></circle> <circle class="st8" cx="201.9" cy="110.9" r="6"></circle> <circle class="st9" cx="170.1" cy="79" r="7"></circle> <circle class="st10" cx="178.2" cy="56.3" r="7.5"></circle> <circle class="st11" cx="226.3" cy="56.1" r="4.5"></circle> <circle class="st12" cx="225.8" cy="102.8" r="5.5"></circle> <circle class="st13" cx="178.2" cy="102.8" r="6.5"></circle> </symbol> <symbol id="repeat" viewBox="0 0 24 24"> <title>Repeat Icon</title> <path class="st0" d="M178 9.4c0 .4-.4.7-.9.7-.1 0-.2 0-.2-.1L172 8.2c-.5-.2-.6-.6-.1-.8l6.2-3.6c.5-.3.8-.1.7.5l-.8 5.1z"></path> <path class="st0" d="M169.4 15.9c-1 0-2-.2-2.9-.7-2-1-3.2-3-3.2-5.2.1-3.4 2.9-6 6.3-6 2.5.1 4.8 1.7 5.6 4.1l.1-.1 2.1 1.1c-.6-4.4-4.7-7.5-9.1-6.9-3.9.6-6.9 3.9-7 7.9 0 2.9 1.7 5.6 4.3 7 1.2.6 2.5.9 3.8 1 2.6 0 5-1.2 6.6-3.3l-1.8-.9c-1.2 1.2-3 2-4.8 2z"></path> </symbol> <symbol id="playlist" viewBox="0 0 24 24"> <title>Playlist Icon</title> <path class="st0" d="M183.4 3.2c.8 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5-1.5-.7-1.5-1.5c0-.9.7-1.5 1.5-1.5zm5.1 0h8.5c.9 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5h-8.5c-.9 0-1.5-.7-1.5-1.5-.1-.9.6-1.5 1.5-1.5zm-5.1 5c.8 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5-1.5-.7-1.5-1.5c0-.9.7-1.5 1.5-1.5zm5.1 0h8.5c.9 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5h-8.5c-.9 0-1.5-.7-1.5-1.5-.1-.9.6-1.5 1.5-1.5zm-5.1 5c.8 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5-1.5-.7-1.5-1.5c0-.9.7-1.5 1.5-1.5zm5.1 0h8.5c.9 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5h-8.5c-.9 0-1.5-.7-1.5-1.5-.1-.9.6-1.5 1.5-1.5z"></path> </symbol></svg><link href='https://serve.adventivecdn.com/serve/vendor/custom/mediaelement/build/mediaelementplayer.css?version=v3.33.5' media rel='stylesheet' title type='text/css' /><script type='text/javascript' src='https://serve.adventivecdn.com/serve/vendor/custom/mediaelement/build/mediaelement-and-player-fullscreen.min.js?version=v3.33.5'></script><script type='text/javascript' src='https://serve.adventivecdn.com/serve/vendor/custom/mediaelement/build/mediaelement-and-player.js?version=v3.33.5'></script><script>var isSafari = navigator.userAgent.indexOf('Safari') > -1;if (isSafari) { var style = document.createElement('style'); var css = '#adventive_htmlx_gU487381_frame:-webkit-full-screen { transform:scale(1) !important;}'; style.type = 'text/css'; style.innerHTML = css; var parentFrame = window.parent.document.getElementById('adventive_htmlx_gU487381_frame').parentNode; parentFrame.appendChild(style);}</script><script type="text/javascript">/* Formats a message to be sent to the iframe's parent window. * @message - any * @return an object containing the fields "from" and "content". * "from" is set to "eclipse-inner" so parent window can id it. * "content" is set to the original message. */function formatMessageForParentWindow(message) { return { from: 'eclipse-inner', content: message };}/* Sends a message to the iframe's parent window. * @message - any */function sendMessageToParentWindow(message) { formattedMessage = formatMessageForParentWindow(message); window.parent.postMessage(formattedMessage, '*');}/* Listen for the "DOMContentLoaded" and "load" events so the parent window can be updatead accordingly. */window.addEventListener('DOMContentLoaded', function(e){ sendMessageToParentWindow(e.type);});window.addEventListener('load', function(e){ sendMessageToParentWindow(e.type);});</script> <script type='text/javascript'> var eclipseScreenSettings = JSON.parse('[{"guides":[],"opacity":1,"backgroundColor":"transparent","borderColor":"transparent","borderSize":"0px","gradientColor":"rgb(0,0,0)","gradientRotation":180,"height":"250px","id":0,"isGradient":false,"isResponsive":false,"transparency":"0%","width":"970px","enableLeftImage":false,"enableRightImage":false,"enableWall":true,"hideMuteBtn":false,"snapisGradient":false,"animationRepeat":0,"bgImageName":"","bgImageSrc":"","bgTransparency":"","collapseBtnColor":"white","collapseBtnText":"Continue to Site","enableVideo":false,"expandBtnColor":"","headerHeight":"0px","IbackgroundColor":"","IgradientColor":"","IgradientRotation":0,"IisGradient":false,"initScreenOverride":"After 1 view","isCard":false,"mutePos":"Bottom Left","pageWidth":1200,"pushDownLeftClick":"","pushDownLeftImageName":"None","pushDownLeftImageSrc":"","pushDownRightClick":"","pushDownRightImageName":"None","pushDownRightImageSrc":"","pushDownSkinOpenLeft":"","pushDownSkinOpenRight":"","pushDownSkinOpenWall":"","rotation":0,"snapbackgroundColor":"rgba(0, 0, 0, 1)","snapbgImageName":"Default","snapbgImageSrc":"","snapbgTransparency":"0%","snapgradientColor":"rgba(0, 0, 0, 1)","snapgradientRotation":0,"videoClick":"","videoName":"None","videoSrc":"","wallApp":"Uploaded Asset","wallBackgroundColor":"","wallClick":"","wallInitialName":"","wallInitialSrc":"","wallName":"Active_Incentives_NorthStar_XfinalX-Compressed.mp4","wallPosition":"Fill","wallSrc":"434/35cc5b3b-fdb9-4ad8-a800-3ea0c28e9f2b","wallType":"video","incrementVertical":0,"incrementHorizontal":0,"wallNativeHeight":"0px","wallNativeWidth":"0px","cTrack":[],"videoType":"undefined"},{"guides":[{"tick":-574.5,"id":"vertical-guide-0-1","guideNumber":0,"orientation":"vertical","screenNum":1}],"opacity":1,"backgroundColor":"transparent","borderColor":"transparent","borderSize":"3px","gradientColor":"rgb(0,0,0)","gradientRotation":180,"height":"250px","id":1,"isGradient":false,"isResponsive":true,"transparency":"0%","width":"970px","enableLeftImage":false,"enableRightImage":false,"enableWall":true,"hideMuteBtn":false,"snapisGradient":false,"animationRepeat":0,"bgImageName":"","bgImageSrc":"","bgTransparency":"","collapseBtnColor":"white","collapseBtnText":"Go to Content","enableVideo":false,"expandBtnColor":"rgb(255, 255, 255)","headerHeight":"203px","IbackgroundColor":"","IgradientColor":"","IgradientRotation":0,"IisGradient":false,"initScreenOverride":"After 4 views","isCard":false,"mutePos":"Bottom Left","pageWidth":1200,"pushDownLeftClick":"","pushDownLeftImageName":"None","pushDownLeftImageSrc":"","pushDownRightClick":"","pushDownRightImageName":"None","pushDownRightImageSrc":"","pushDownSkinOpenLeft":"","pushDownSkinOpenRight":"","pushDownSkinOpenWall":"New Tab","rotation":0,"snapbackgroundColor":"rgba(0, 0, 0, 1)","snapbgImageName":"Default","snapbgImageSrc":"","snapbgTransparency":"0%","snapgradientColor":"rgba(0, 0, 0, 1)","snapgradientRotation":0,"videoClick":"","videoName":"None","videoSrc":"","wallApp":"Uploaded Asset","wallBackgroundColor":"rgb(255, 255, 255)","wallClick":"","wallInitialName":"","wallInitialSrc":"","wallName":"","wallPosition":"Fill","wallSrc":"","wallType":"image","incrementVertical":1,"incrementHorizontal":0,"wallNativeHeight":"0px","wallNativeWidth":"0px","cTrack":[],"videoType":"undefined"}]'); var eclipseFormatSettings = JSON.parse('{"mute":{"path":"","name":""},"unmute":{"path":"","name":""}}'); var assetBase = 'https://assets.adventivecdn.com'; </script> <script type="text/javascript"> var Wall = (function() { var Util = { wallPositionToBackgroundSize: function wallPositionToBackgroundSize(wallPosition) { var toRet; if (settings.wallPosition.toLowerCase() === 'fill') { toRet = 'cover'; } else if (settings.wallPosition.toLowerCase() === 'contain') { toRet = 'contain'; } else { throw new Error('Unsupported wall position: '+settings.wallPosition); } return toRet; } }; function createImageWall0(settings) { /* create the image wall component from a template */ var html = "<div id='{{id}}' class='advWallImage0ContainerContain'>" + "<div></div>" + "</div>"; html = html.replace('{{id}}', 'layer-wall-' + settings.id); var wall = $.parseHTML(html)[0]; /* add css class to inner div based on `settings.wallPosition` */ var wallContent = wall.querySelector('div'); switch (Util.wallPositionToBackgroundSize(settings.wallPosition)) { case 'contain': wallContent.classList.add('advWallImage0BackgroundContain'); break; case 'cover': wallContent.classList.add('advWallImage0BackgroundFill'); break; } return wall; } function createImageWall1(settings) { /* create the image wall component from a template */ var html = "<div id='{{id}}' class='advWallImage1Container'>" + "<img class='advWallImage1Image' data-src='{{url}}'></img>" + "<div class='advWallImage1Background'></div>" + "</div>"; html = html.replace('{{url}}', assetBase + '/cdn-cgi/image/f=auto,q=85/' + settings.wallSrc); html = html.replace('{{id}}', 'layer-wall-' + settings.id); var wall = $.parseHTML(html)[0]; return wall; } function createImageWall(settings) { /* data validation */ if (!settings.enableWall || !settings.wallType.toLowerCase() === 'image' || !settings.wallPosition || !settings.wallSrc) { return null; } var createFn = null; if (settings.id == 0) { createFn = createImageWall0; } else if (settings.id == 1) { createFn = createImageWall1; } if (createFn) { return createFn(settings); } else { return null; } } function createVideoWall(settings) { /* data validation */ if (!settings.enableWall || !settings.wallType.toLowerCase() === 'video' || !settings.wallApp || !settings.wallPosition || !settings.wallSrc) { return null; } var createFn = null; if (settings.wallApp.toLowerCase() === 'uploaded asset') { createFn = createVideoWallHtml; } else if (settings.wallApp.toLowerCase() === 'youtube') { createFn = createVideoWallYoutube; } if (createFn) { var wall = createFn(settings); return wall; } else { return null; } } function createVideoWallYoutube(settings) { var videoAttributes = "autoplay muted loop playsinline webkit-playsinline"; /* create the wall component from a template */ var html = "<div id='layer-wall-{{id}}'>" + "<div id='customplayerwrapper-wall-{{id}}'>" + "<video id='customplayer-wall-{{id}}' {{videoAttributes}}></video>" + "</div>" + "</div>"; html = html.replace(/{{id}}/g, settings.id); html = html.replace('{{videoAttributes}}', videoAttributes); var wall = $.parseHTML(html)[0]; return wall; } function createVideoWallHtml(settings) { var videoAttributes = "muted loop playsinline webkit-playsinline"; var containerClass = ""; switch (settings.wallPosition.toLowerCase()) { case 'fill': containerClass = "advWallVideoHtml0ContainerFill"; break; case 'contain': containerClass = "advWallVideoHtml0ContainerContain"; videoAttributes += " width='100%' height='100%'"; break; } /* create the wall component from a template */ var html = "<div id='layer-wall-{{id}}' class='{{containerClass}}'>" + "<div id='customplayerwrapper-wall-{{id}}'>" + "<video id='customplayer-wall-{{id}}' {{videoAttributes}}></video>" + "</div>" + "</div>"; html = html.replace(/{{id}}/g, settings.id); html = html.replace('{{videoAttributes}}', videoAttributes); html = html.replace('{{containerClass}}', containerClass); html = html.replace('{{style}}', style); var wall = $.parseHTML(html)[0]; return wall; } /* create an image or video wall for the screen based on its settings */ function createWall(settings) { var wall = null; if (settings.wallType.toLowerCase() === 'video') { wall = createVideoWall(settings); } else if (settings.wallType.toLowerCase() === 'image') { wall = createImageWall(settings); } else { throw new Error('Unsupported wall type: '+settings.wallType); } return wall; } return { create: createWall }; }()); function createLoadingScreen(settings) { var html = "<div class='advWallVideoLoadingScreen'>" + "<img data-src='{{src}}'/>" + "</div>"; html = html.replace('{{src}}', assetBase + '/' + settings.wallInitialSrc); var elem = $.parseHTML(html)[0]; /* logic for removing the loading screen when necessary */ function removeLoadingScreen() { elem.style.opacity = 0; setTimeout(function removeLoadingScreenTimeout() { elem.remove(); removeEventListener('advRemoveLoadingScreen', removeLoadingScreen); }, 500); } window.top.addEventListener('advRemoveLoadingScreen', removeLoadingScreen); return elem; } function addDefaultWallSettings(settings) { settings.enableWall = settings.enableWall || false; settings.mutePos = settings.mutePos || 'bottom left'; settings.wallApp = settings.wallApp || ''; settings.wallPosition = settings.wallPosition || 'Fill'; settings.wallType = settings.wallType || ''; settings.wallSrc = settings.wallSrc || ''; settings.wallNativeWidth = settings.wallNativeWidth || null; settings.wallNativeHeight = settings.wallNativeHeight || null; settings.hideMuteBtn = settings.hideMuteBtn || true; } /* "business logic" */ /* create and add content walls based on screen settings */ for (var i = 0; i < eclipseScreenSettings.length; i++) { var settings = eclipseScreenSettings[i]; addDefaultWallSettings(settings); if (settings.enableWall) { var wallElem = Wall.create(settings); if (wallElem) { /* note: Edge complains about using 'screen' as a var name. */ var screenElem = document.getElementById('screen-'+settings.id); screenElem.appendChild(wallElem); /* add a loading screen if necessary */ if (settings.hasOwnProperty('wallInitialSrc') && settings.wallInitialSrc !== '') { var loadingScreen = createLoadingScreen(settings); screenElem.appendChild(loadingScreen); } } } }</script> <script> /* Answers the question if @rect1 can fit inside of @rect2. * @rect1 - object containing a 'width' and 'height' field. * @rect2 - object containing a 'width' and 'height' field. * @marginOfError - percentage to resize @rect2 by in case width and height * in case their are issues with comparing float values. */function canBeContainedBy(rect1, rect2, marginOfError) { if (marginOfError === undefined) {marginOfError = 0.01;} return rect1.width <= rect2.width * (1 + marginOfError) && rect1.height <= rect2.height * (1 + marginOfError);}/* Resizes @elem so that @container is able to completely contain it. * @elem - the page element to resize * @container - the page element that @elem should fit inside of * * Modifies the width and height of elem's style. */function resizeContain(elem, container) { var elemBounds = elem.getBoundingClientRect(); var origAspectRatio = elemBounds.width / elemBounds.height; var newWidth = 0; var newHeight = 0; var containerBounds = container.getBoundingClientRect(); newWidth = containerBounds.width; newHeight = newWidth / origAspectRatio; if (!canBeContainedBy({width: newWidth, height: newHeight}, containerBounds)) { newHeight = containerBounds.height; newWidth = origAspectRatio * newHeight; } /* var scaleX = newWidth / elemBounds.width; var scaleY = newHeight / elemBounds.height; elem.style.transform = `scale(${scaleX}, ${scaleY})`;*/ elem.style.width = newWidth + 'px'; elem.style.height = newHeight + 'px';} var resizeId; /* Set up a window resize event listener for the positioning wall.*/ window.parent.window.addEventListener('resize', function() { positionVidWall_wall_0(window.parent.window); clearTimeout(resizeId); resizeId = setTimeout(positionVidWall_wall_0, 500); }); var vidWall_layer_wall_0 = document.getElementById("layer-wall-0"); var vidWall_customplayerwrapper_wall_0 = document.getElementById("customplayerwrapper-wall-0"); var vidWall_customplayer_wall_0 = document.getElementById("customplayer-wall-0"); fireEvents_0.push("positionVidWall_wall_0"); if(0 != 0) fireEvents_0.push("placeVidWall_wall_0"); function placeVidWall_wall_0(){ setTimeout(function(){ if ('Eclipse' === 'Eclipse') { sendMessageToParentWindow( { request: 'breakout', params : { id : wallElem.id } } ); } else { var body_cont_adventive_htmlx_gU487381 = window.parent.document.getElementsByTagName('body')[0]; var iframeDoc = window.parent.document.getElementById('adventive_htmlx_gU487381_frame').contentDocument || window.parent.document.getElementById('adventive_htmlx_gU487381_frame').contentWindow.document; if(iframeDoc)body_cont_adventive_htmlx_gU487381.appendChild(document.getElementById('adventive_htmlx_gU487381_pushdown_video_wall_holder-0')); } }, 500); } function positionVidWall_wall_0(w) { /* only using positioning logic for youtube videos */ if ('Eclipse' === 'Eclipse' && document.getElementById('customplayer-wall-0_youtube_iframe') === null) { /* positioning for other video types is handled by mejs and eclipse.js */ return; } if(vidWall_layer_wall_0 == null || vidWall_layer_wall_0 == undefined){ setTimeout(function(){ var vidWall_layer_wall_0 = document.getElementById("layer-wall-0"); var vidWall_customplayerwrapper_wall_0 = document.getElementById("customplayerwrapper-wall-0"); var vidWall_customplayer_wall_0 = document.getElementById("customplayer-wall-0"); positionVidWall_wall_0(w) }, 100); return } if(w == undefined) w = window.parent.window; var myWidth = 0, myHeight = 0; if( typeof( w.innerWidth ) == 'number' ) { /* Non-IE */ myWidth = w.innerWidth; myHeight = w.innerHeight; } vidWall_layer_wall_0.style.minWidth = myWidth + "px"; vidWall_layer_wall_0.style.minHeight = myHeight + "px"; vidWall_layer_wall_0.style.width = myWidth + 'px'; vidWall_layer_wall_0.style.height = myHeight + 'px'; vidWall_layer_wall_0.style.position = "fixed"; vidWall_customplayerwrapper_wall_0.style.minWidth = myWidth + "px"; vidWall_customplayerwrapper_wall_0.style.minHeight = myHeight + "px"; vidWall_customplayerwrapper_wall_0.style.width = "auto"; vidWall_customplayerwrapper_wall_0.style.height = "auto"; vidWall_customplayer_wall_0.style.width = "100%"; vidWall_customplayer_wall_0.style.height = "100%"; vidWall_customplayer_wall_0.style.width = myWidth + "px"; vidWall_customplayer_wall_0.style.height = myHeight + "px"; vidWall_customplayer_wall_0.style.left = "50%"; vidWall_customplayer_wall_0.style.top = "50%"; vidWall_customplayer_wall_0.style.WebkitTransform ="translate(-50%, -50%)"; vidWall_customplayer_wall_0.style.transform = "translate(-50%, -50%)"; vidWall_customplayer_wall_0.style.position = "fixed"; vidWall_customplayer_wall_0.style.minWidth = myWidth + "px"; vidWall_customplayer_wall_0.style.minHeight = myHeight + "px"; vidWall_customplayer_wall_0.style.width = "auto"; vidWall_customplayer_wall_0.style.height ="auto"; /* This code can be improved */ var youtubeIframe = document.getElementById('customplayer-wall-0_youtube_iframe'); if (!youtubeIframe) { /* screens outside of the iframe need to use the parent document */ youtubeIframe = window.parent.document.getElementById('customplayer-wall-0_youtube_iframe'); } var vimeoIframe = document.getElementById('customplayer-wall-0_vimeo_iframe'); if (!vimeoIframe) { /* screens outside of the iframe need to use the parent document */ vimeoIframe = window.parent.document.getElementById('customplayer-wall-0_vimeo_iframe'); } if(youtubeIframe !== null) { vidWall_customplayerwrapper_wall_0.style.minWidth = 0 + "px"; vidWall_customplayerwrapper_wall_0.style.minHeight = 0 + "px"; /* Assume a 16x9 aspect ratio */ var origW = 16; var origH = 9; youtubeIframe.style.position = 'fixed'; youtubeIframe.style.top = '50%'; youtubeIframe.style.left = '50%'; youtubeIframe.style.transform = 'translate(-50%, -50%)'; var adFrame = window.top.document.querySelector('iframe[id*=adventive_htmlx]'); myWidth = adFrame.getBoundingClientRect().width; myHeight = adFrame.getBoundingClientRect().height; var newHeight; var newWidth; var conditional; if ('Fill' === 'Contain') { conditional = function() { return ((origW * myHeight) / origH) < myWidth; } } else if ('Fill' === 'Fill') { conditional = function() { return ((origW * myHeight) / origH) > myWidth; } } if (conditional()) { newWidth = (origW * myHeight)/origH + 'px'; newHeight = myHeight + 'px'; } else { newHeight = ( (origH * myWidth)/origW) + 'px'; newWidth = myWidth + 'px'; } vidWall_customplayerwrapper_wall_0.style.height = newHeight; vidWall_customplayerwrapper_wall_0.style.width = newWidth; vidWall_customplayerwrapper_wall_0.style.left = "50%"; vidWall_customplayerwrapper_wall_0.style.top = "50%"; vidWall_customplayerwrapper_wall_0.style.WebkitTransform ="translate(-50%, -50%)"; vidWall_customplayerwrapper_wall_0.style.transform = "translate(-50%, -50%)"; vidWall_customplayerwrapper_wall_0.style.position = "fixed"; vidWall_customplayerwrapper_wall_0.style.overflow = "hidden"; /* hide youtube overlays / branding */ youtubeIframe.style.height = '200%'; youtubeIframe.style.width = '100%'; } if(vimeoIframe !== null) { /* Assumes a 16x9 aspect ratio. Can we do better */ var origW = 16; var origH = 9; vimeoIframe.style.position = 'fixed'; vimeoIframe.style.top = '50%'; vimeoIframe.style.left = '50%'; vimeoIframe.style.transform = 'translate(-50%, -50%)'; if( ((origW * myHeight) / origH) > myWidth) { vimeoIframe.style.width = (origW * myHeight)/origH + 'px'; vimeoIframe.style.height = myHeight * 2 + 'px'; } else { vimeoIframe.style.height = ( (origH * myWidth)/origW) * 2 + 'px'; vimeoIframe.style.width = myWidth + 'px'; } if ('Fill' === 'Contain') { vimeoIframe.style.height = '100%'; vimeoIframe.style.width = '100%'; } } /* if necessary, contain user uploaded video */ if ('Fill' === 'Contain' && vimeoIframe === null && youtubeIframe === null) { /* resize the player to be contained within the layer */ resizeContain(vidWall_customplayer_wall_0, vidWall_layer_wall_0); } } if (typeof Adventive === 'undefined') { var Adventive = window.parent.Adventive; } function isYoutubeInCrossDomainFrame (){ return ('videowall' === 'youtube' && Adventive.isCrossOrigin()); } var limitAutoplay_wall_0 = 0; var limitOverlayActive_wall_0 = 0; var limitTime_wall_0 = 15; var autocheck_wall_0 = (parent.window.preventSpecialFormat) ? 0 : 0; var autoWait_0 = true; var player_wall_0; var pWrapObj_wall_0; var ua = navigator.userAgent.toLowerCase(); var isAndroid_wall_0 = (ua.indexOf("android") > -1); var isiOS_wall_0 = ( navigator.userAgent.match(/iPad|iPhone|iPod/g) ? true : false ); var confirmedDuration_wall_0 = 0; var isMobile_wall_0 = false; var autoCheckView_wall_0 = 0; var autoplayDelay_wall_0 = 1 * 1000; var autoUnmuted_wall_0=0; var playing_wall_0 = 0; var muted_wall_0; var vol_wall_0; var unmuteView_wall_0 = 0; var duration_wall_0; var play_done_wall_0 = 0; var play_started_wall_0 = 0; var statLogged_wall_0 = 0; var inViewed_wall_0 = 0; var outViewed_wall_0 = 0; var isReturnAutoPlay_wall_0 = 0; var playingWhenLeft_wall_0 = 0; /* the video was playing when we left the screen*/ var mutedWhenLeft_wall_0 = 0; /* the video was muted when we left the screen*/ var outViewed_wall_0 = 0; var player_ready_wall_0 = false; var isChromeless_wall_0 = 1; var clickthroughVideo_wall_0 = (0 > 0) ? true : false; var unmuteOnReplay_wall_0 = 0; var unmuteOnPlay_wall_0 = (0 > 0) ? true : false; var endTime_wall_0 = 0; var appSettings_wall_0 = JSON.parse('{"customQuartileTracking":1,"videoId":"434/35cc5b3b-fdb9-4ad8-a800-3ea0c28e9f2b","videoUrl":"434/35cc5b3b-fdb9-4ad8-a800-3ea0c28e9f2b","customVideoUrl":"434/35cc5b3b-fdb9-4ad8-a800-3ea0c28e9f2b","customVideoName":"Video Wall: Active_Incentives_NorthStar_XfinalX-Compressed.mp4","playerType":"uploaded asset","chromeLess":1,"loop":1,"videoWall":1,"startOnReturn":1,"showPlayButtonOverlay":0,"soundOnHover":false,"autoplay":0,"autoplayDelay":1,"returnToStart":1,"changeScreenSetting":"From Beginning","wallPosition":"Fill","customEndedHandler":1,"doNotPause":1,"buttonColor":"rgb(255, 255, 255)","autoPlayWithSound":0,"muteOnHoverOff":0,"autoplayView":0,"restartPlayback":0,"unmuteOnReplay":0,"unmuteOnPlay":false,"enablePlayerControls":0,"enableMutingControls":0,"enableFullscreenControls":0,"enableCaptionsControls":0,"keepSwitchScreen":0,"floatVideo":0,"floatVideoLocation":"Bottom Right","chromeBackgroundColor":"#000000","showHeader":0,"headerText":"ADVERTISEMENT","headerBgColor":"#000000","headerTextColor":"#ffffff","closeButton":0,"roadBlock":0,"roadBlockTimer":0,"maxLoop":0,"syncVideo":0,"autoHidecontrols":0,"clickthrough":0,"showReplayButton":0,"videoInfo":0,"endTime":0,"startTime":0,"customMuteControl":{"muteIconSrc":"","unMuteIconSrc":""},"customPlayControl":{"playIconSrc":"","pauseIconSrc":""},"customFullscreenButton":{"fullscreenIconSrc":""},"customCaptionsControl":{"captionsIconSrc":""},"playerControlsPosition":"Top Left","mutingControlsPosition":"Bottom Left","fullscreenControlsPosition":"Bottom Right","captionsControlsPosition":"Bottom Right","iconColor":"","fullscreenIconColor":"","playerIconColor":"","autoHidePlayerControls":0,"autoHideMutingControls":0,"autoHideCaptionsControls":0,"autoHideFullscreenControls":0,"limitAutoplay":0,"limitTime":15,"captions":[],"captionAutoStart":"User Enabled","captionDefaultLanguageCode":"Auto","clickthroughTo":"Default Click URL"}'); var startTime_wall_0 = 0; var chromeBackgroundColor = '#000000'; var controlColor_wall_0 = 'rgb(255, 255, 255)'; var maxLoop_wall_0 = 0; var vastVolume_wall_0 = 0; var autoHidecontrols_wall_0 = 0; var showReplay_wall_0 = 0; var returnToStart_wall_0 = 1 == 1 ? true:false; var showPlayButtonOverlay_wall_0 = 0; if(isiOS_wall_0 || isAndroid_wall_0) isMobile_wall_0 = true; var doNotPause_wall_0 = 1; var floatVideo_wall_0 = 0; var floatVideoLocation_wall_0 = 'Bottom Right'; var scrubbing_wall_0 = 0; var vurl_wall_0 = 0; var vCounter_wall_0=0; var skipIt_wall_0=0; var statLoggedReplay_wall_0 = 0; var statLoggedAutoStop_wall_0 = 0; var statLoggedUnmute_wall_0 = 0; var autoplayDelayWait_wall_0 = false; var adClickThroughIE9_wall_0 = ""; var restartPlaybackDone_wall_0 = false; var unmuteHappened_wall_0 = false; var mejsControlsContainer_wall_0; var vastVidName_wall_0; var countedQ1_wall_0 = 0; var countedQ2_wall_0 = 0; var countedQ3_wall_0 = 0; var countedQ4_wall_0 = 0; var dontLog_wall_0 = { pause:0, pauseInView:0, playAuto:0, play:0, loop:0, seek:0, volChange:0, replay:0, tpPlay:0, playClick:0, pauseClick:0 }; var muteIconStyle_wall_0 = 'default'; var playerControlIconStyle_wall_0 = 'default'; var fullscreenIconStyle_wall_0 = 'default'; var ccIconStyle_wall_0 = 'default'; var limitInterval_wall_0 = 0; var limitCleared_wall_0 = 0; var ytLiveStream_wall_0 = 0; var captionsOn_wall_0 = undefined; var captionsOff_wall_0 = undefined; var hasCaptions_wall_0 = parseInt('0'); var scale_wall_0 = 1; var chromelessButtonBottomPositioned_wall_0 = 0; var navigatedAwayFromTab = false; /*Initiate videos array for linked videos feature*/ if (typeof window.videos == 'undefined'){ window.videos = []; } function videowall_wall_0(){ this.config = { features: ['playpause', 'current', 'progress', 'duration', 'volume','fullscreen'], type: ["video/mp4"] }; this.videoId = "Video Wall: Active_Incentives_NorthStar_XfinalX-Compressed.mp4"; this.src = "https://video.adventivecdn.com/434/35cc5b3b-fdb9-4ad8-a800-3ea0c28e9f2b"; this.src = this.src + "_1280.mp4"; function addFormatSettings(adType, config) { var configModifierFn; switch (adType.toLowerCase()) { case 'eclipse': configModifierFn = addEclipseFormatSettings; break; default: configModifierFn = function(adType, config) {return config;}; } config = configModifierFn(adType, config); return config; } function addEclipseFormatSettings(adType, config) { var screenNum = parseInt(0); var settings = eclipseScreenSettings[screenNum]; if (settings.wallApp.toLowerCase() === 'youtube') { switch (settings.wallPosition.toLowerCase()) { case 'fill': config.stretching = 'none'; break; case 'contain': /* note: for 'none' to work, attributes 'width' and 'height' * must be set to '100%' on the original video element. * see 'eclipse-inner.php' */ config.stretching = 'none'; break; } } else { config.stretching = 'none'; } return config; } this.config = addFormatSettings('Eclipse', this.config);}function Player_wall_0(elementId,setPlayerVar){ this.mRef = undefined; this.mediaelement = undefined; this.toggleChromelessMuteCallback; this.skipLogging = false; var _this = this; var videoSource = new window['videowall_wall_0'](this); var videoType = 'videowall'; var cInterval = 0; var loopCount= 0; var config = { alwaysShowControls: true, hideVolumeOnTouchDevices: false, pauseOtherPlayers: false, success: function (mediaElement, domObject) { var videoArrayKey = videoSource.videoId; /*Set videoArrayKey depending on video type*/ if (videoType=='vast' && typeof appSettings_wall_0.vastURL != 'undefined'){ videoArrayKey = hashString(appSettings_wall_0.vastURL); }else{ videoArrayKey = hashString(videoArrayKey); } /*Set video array key if possible*/ if(videoArrayKey != ""){ /*Initiate video object*/ if (typeof window.videos[videoArrayKey] == 'undefined'){ window.videos[videoArrayKey] = {}; } } if (appSettings_wall_0.syncVideo == 1){ if(videoArrayKey != ""){ window.videos[videoArrayKey].video = mediaElement; } } _this.mediaelement = mediaElement; if(videoSource.src != "") mediaElement.setSrc(videoSource.src); var id = 'wall-0'; var cpId = '#customplayer-' +id; var cpwId = "#customplayerwrapper-" +id; var layerId = '#layer-' +id; var playBtn = $(layerId+ ' .mejs__overlay-button'); var playBtnWrapper = $(layerId+ ' .mejs__overlay-play'); var controls = $(layerId+ ' .mejs__controls'); var playBtnDisplay = ''; reColorControlButtons_wall_0(); playBtn.parent().css('display', '-webkit-inline-flex'); playBtn.parent().css('display', 'inline-flex'); $(layerId+ ' .mejs__container').css('background', 'transparent'); setTimeout(function(){ $(layerId+ ' .mejs__container').css('background', 'transparent'); var tScale = "scale(" +scale_wall_0+ "," +scale_wall_0+ ")"; playBtnWrapper.css("-ms-transform", tScale); playBtnWrapper.css("-webkit-transform", tScale); playBtnWrapper.css("transform", tScale); $(layerId + " .mejs__overlay-play").css("z-index", 100); }, 100); controls.css('z-index', 100); videoSourceCallbacks('meSuccess'); var chromelessOffset_wall_0=0;var controlOffset_wall_0=0;var nativeWidth_wall_0=0;var nativeHeight_wall_0=0;var widthDiv_wall_0=0;var heightDiv_wall_0=0;var prepend_wall_0 = '';var ytDimension_wall_0=0;var ytOffset_wall_0=0; prepend_wall_0 = ''; nativeWidth_wall_0 = parseInt('1280'); nativeHeight_wall_0 = parseInt('100%'); widthDiv_wall_0 = parseInt('1280')/nativeWidth_wall_0; heightDiv_wall_0 = parseInt('100%')/nativeHeight_wall_0; /* $('#customplayerwrapper-wall-0').css('position', "absolute"); */ var offset_direction_wall_0 = ""; var slideshowPagi_wall_0 = 0; if($("#pagiBar_wall_0").length) { slideshowPagi_wall_0 = $("#pagiBar_wall_0").css('height'); if ($("#pagiBar_wall_0").css('display') == 'none') { slideshowPagi_wall_0 = 0; } } if(widthDiv_wall_0 < heightDiv_wall_0) { controlOffset_wall_0 = parseInt('1280')/nativeWidth_wall_0; chromelessOffset_wall_0 = (parseInt('100%') - parseInt(slideshowPagi_wall_0) - (nativeHeight_wall_0*controlOffset_wall_0))/2; $('#customplayer-wall-0').attr('height', parseInt(nativeHeight_wall_0*(parseInt('1280')/nativeWidth_wall_0)) + "px"); /*$('#customplayer-wall-0').css('position', 'absolute');*/ /* $('#customplayerwrapper-wall-0').css('top', chromelessOffset_wall_0+"px"); */ offset_direction_wall_0 = "top"; if('videowall' == 'youtube') { ytDimension_wall_0 = (nativeHeight_wall_0 / nativeWidth_wall_0) * parseInt('1280'); ytOffset_wall_0 = (parseInt('100%') - ytDimension_wall_0) / 2; setTimeout(function() { $(cpId).find('iframe').css('height', ytDimension_wall_0+"px"); $(cpId).find('iframe').css('top', ytOffset_wall_0+"px"); $(cpId).find('iframe').css('position', 'absolute'); }, 500); } } else{ controlOffset_wall_0 = parseInt('100%')/nativeHeight_wall_0; chromelessOffset_wall_0 = (parseInt('1280') - (nativeWidth_wall_0 *controlOffset_wall_0))/2; $('#customplayer-wall-0').attr('width', parseInt(nativeWidth_wall_0*(parseInt('100%')/nativeHeight_wall_0)) + "px"); /*$('#customplayer-wall-0').css('position', 'absolute');*/ $('#customplayerwrapper-wall-0').css('left', chromelessOffset_wall_0+"px"); offset_direction_wall_0 = "left"; if('videowall' == 'youtube') { ytDimension_wall_0 = (nativeWidth_wall_0 / nativeHeight_wall_0) * parseInt('100%'); ytOffset_wall_0 = (parseInt('1280') - ytDimension_wall_0) / 2; setTimeout(function() { $(cpId).find('iframe').css('width', ytDimension_wall_0+"px"); $(cpId).find('iframe').css('left', ytOffset_wall_0+"px"); $(cpId).find('iframe').css('position', 'absolute'); },500); } } var muteShift_wall_0; var playShift_wall_0; var mediaElementAssetbase = 'https://assets.adventivecdn.com/ui/js/adventive/mediaelement/build/'; var transparentPixel = 'https://assets.adventivecdn.com/ui/js/adventive/mediaelement/build/media-element-assets/transparentPixel.png'; var colorUnMuteButton_wall_0 = "data:image/svg+xml;charset=utf8,%3Csvg%20fill%3D%22rgb%28255%2C%20255%2C%20255%29%22%20height%3D%2248%22%20viewBox%3D%220%200%2024%2024%22%20width%3D%2248%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M3%209v6h4l5%205V4L7%209H3zm13.5%203c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73%202.5-2.25%202.5-4.02zM14%203.23v2.06c2.89.86%205%203.54%205%206.71s-2.11%205.85-5%206.71v2.06c4.01-.91%207-4.49%207-8.77s-2.99-7.86-7-8.77z%22%20fill%3D%22rgb%28255%2C%20255%2C%20255%29%22%2F%3E%3Cpath%20d%3D%22M0%200h24v24H0z%22%20fill%3D%22none%22%2F%3E%3C%2Fsvg%3E"; var colorMuteButton_wall_0 = "data:image/svg+xml;charset=utf8,%3Csvg%20fill%3D%22rgb%28255%2C%20255%2C%20255%29%22%20height%3D%2248%22%20viewBox%3D%220%200%2024%2024%22%20width%3D%2248%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M16.5%2012c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45%202.45c.03-.2.05-.41.05-.63zm2.5%200c0%20.94-.2%201.82-.54%202.64l1.51%201.51C20.63%2014.91%2021%2013.5%2021%2012c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86%205%203.54%205%206.71zM4.27%203L3%204.27%207.73%209H3v6h4l5%205v-6.73l4.25%204.25c-.67.52-1.42.93-2.25%201.18v2.06c1.38-.31%202.63-.95%203.69-1.81L19.73%2021%2021%2019.73l-9-9L4.27%203zM12%204L9.91%206.09%2012%208.18V4z%22%20fill%3D%22rgb%28255%2C%20255%2C%20255%29%22%2F%3E%3Cpath%20d%3D%22M0%200h24v24H0z%22%20fill%3D%22none%22%2F%3E%3C%2Fsvg%3E"; var colorPlayButton_wall_0 = "data:image/svg+xml;charset=utf8,%3Csvg%20fill%3D%22rgb%28255%2C%20255%2C%20255%29%22%20height%3D%2248%22%20viewBox%3D%220%200%2024%2024%22%20width%3D%2248%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M8%205v14l11-7z%22%20fill%3D%22rgb%28255%2C%20255%2C%20255%29%22%2F%3E%3Cpath%20d%3D%22M0%200h24v24H0z%22%20fill%3D%22none%22%2F%3E%3C%2Fsvg%3E"; var colorPauseButton_wall_0 = "data:image/svg+xml;charset=utf8,%3Csvg%20fill%3D%22rgb%28255%2C%20255%2C%20255%29%22%20height%3D%2248%22%20viewBox%3D%220%200%2024%2024%22%20width%3D%2248%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M6%2019h4V5H6v14zm8-14v14h4V5h-4z%22%20fill%3D%22rgb%28255%2C%20255%2C%20255%29%22%2F%3E%3Cpath%20d%3D%22M0%200h24v24H0z%22%20fill%3D%22none%22%2F%3E%3C%2Fsvg%3E"; var colorFullScreenButton_wall_0 = "data:image/svg+xml;charset=utf8,%3Csvg%20fill%3D%22rgb%28255%2C%20255%2C%20255%29%22%20height%3D%2248%22%20viewBox%3D%220%200%2024%2024%22%20width%3D%2248%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M0%200h24v24H0z%22%20fill%3D%22none%22%2F%3E%3Cpath%20d%3D%22M7%2014H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12%207h-3v2h5v-5h-2v3zM14%205v2h3v3h2V5h-5z%22%20fill%3D%22rgb%28255%2C%20255%2C%20255%29%22%2F%3E%3C%2Fsvg%3E"; var colorBigPlayButton_wall_0 = "data:image/svg+xml;charset=utf8,%3Csvg%20fill%3D%22rgb%28255%2C%20255%2C%20255%29%22%20height%3D%22100%22%20viewBox%3D%220%200%2024%2024%22%20width%3D%22100%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M0%200h24v24H0z%22%20fill%3D%22none%22%2F%3E%3Cpath%20d%3D%22M10%2016.5l6-4.5-6-4.5v9zM12%202C6.48%202%202%206.48%202%2012s4.48%2010%2010%2010%2010-4.48%2010-10S17.52%202%2012%202zm0%2018c-4.41%200-8-3.59-8-8s3.59-8%208-8%208%203.59%208%208-3.59%208-8%208z%22%20fill%3D%22rgb%28255%2C%20255%2C%20255%29%22%2F%3E%3C%2Fsvg%3E"; var colorReplayButton_wall_0 = "data:image/svg+xml;charset=utf8,%3Csvg%20fill%3D%22rgb%28255%2C%20255%2C%20255%29%22%20height%3D%22100%22%20viewBox%3D%220%200%2024%2024%22%20width%3D%22100%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M0%200h24v24H0z%22%20fill%3D%22none%22%2F%3E%3Cpath%20d%3D%22M12%205V1L7%206l5%205V7c3.31%200%206%202.69%206%206s-2.69%206-6%206-6-2.69-6-6H4c0%204.42%203.58%208%208%208s8-3.58%208-8-3.58-8-8-8z%22%20fill%3D%22rgb%28255%2C%20255%2C%20255%29%22%2F%3E%3C%2Fsvg%3E"; var lightDefaultPlayButtonSrc = mediaElementAssetbase+'media-element-assets/chromeless_play_wht.svg'; var darkDefaultPlayButtonSrc = mediaElementAssetbase+'media-element-assets/chromeless_play_blk.svg'; var lightDefaultPauseButtonSrc = mediaElementAssetbase+'media-element-assets/chromeless_pause_wht.svg'; var darkDefaultPauseButtonSrc = mediaElementAssetbase+'media-element-assets/chromeless_pause_blk.svg'; var lightDefaultMuteButtonSrc = mediaElementAssetbase+'media-element-assets/mute_white.svg'; var darkDefaultMuteButtonSrc = mediaElementAssetbase+'media-element-assets/mute_blk.svg'; var lightDefaultUnMuteButtonSrc = mediaElementAssetbase+'media-element-assets/unmute_white.svg'; var darkDefaultUnMuteButtonSrc = mediaElementAssetbase+'media-element-assets/unmute_blk.svg'; var lightDefaultFullscreenButtonSrc = mediaElementAssetbase+'media-element-assets/ic_fullscreen_white_24px.svg'; var darkDefaultFullscreenButtonSrc = mediaElementAssetbase+'media-element-assets/ic_fullscreen_black_24px.svg'; var customMuteIconSrc_wall_0 = ''.trim() == '' ? '' : 'https://assets.adventivecdn.com/'; var customUnMuteIconSrc_wall_0 = ''.trim() == '' ? '' : 'https://assets.adventivecdn.com/'; var customMuteIconWidth_wall_0 = '0'; var customMuteIconHeight_wall_0 = '0'; var customMuteIconX_wall_0 = '0'; var customMuteIconY_wall_0 = '0'; var customPlayIconSrc_wall_0 = ''.trim() == '' ? '' : 'https://assets.adventivecdn.com/'; var customPauseIconSrc_wall_0 = ''.trim() == '' ? '' : 'https://assets.adventivecdn.com/'; var customPlayIconWidth_wall_0 = '0'; var customPlayIconHeight_wall_0 = '0'; var customPlayIconX_wall_0 = '0'; var customPlayIconY_wall_0 = '0'; var customFullscreenIconSrc_wall_0 = ''.trim() == '' ? '' : 'https://assets.adventivecdn.com/'; var customFullscreenIconWidth_wall_0 = '0'; var customFullscreenIconHeight_wall_0 = '0'; var customFullscreenIconX_wall_0 = '0'; var customFullscreenIconY_wall_0 = '0'; var customCaptionsIconSrc_wall_0 = ''.trim() == '' ? '' : 'https://assets.adventivecdn.com/'; var customCaptionsIconWidth_wall_0 = '0'; var customCaptionsIconHeight_wall_0 = '0'; var customCaptionsIconX_wall_0 = '0'; var customCaptionsIconY_wall_0 = '0'; var enablePlayerControls_wall_0 = '0'; var enableMutingControls_wall_0 = '0'; var enableFullscreenControls_wall_0 = '0'; var enableCaptionsControls_wall_0 = '0'; enablePlayerControls_wall_0 = parseInt(enablePlayerControls_wall_0)==1 ? true : false; enableMutingControls_wall_0 = parseInt(enableMutingControls_wall_0)==1 ? true : false; enableFullscreenControls_wall_0 = parseInt(enableFullscreenControls_wall_0)==1 ? true : false; enableCaptionsControls_wall_0 = parseInt(enableCaptionsControls_wall_0)==1 ? true : false; if(isYoutubeInCrossDomainFrame()) { enablePlayerControls_wall_0 = false; enableMutingControls_wall_0 = false; enableFullscreenControls_wall_0 = false; enableCaptionsControls_wall_0 = false; } if(Adventive.isCrossOrigin()){ enableFullscreenControls_wall_0 = false; } var captionsControlsPosition_wall_0 = 'Bottom Right'; var playerControlsPosition_wall_0 = 'Top Left'; var mutingControlsPosition_wall_0 = 'Bottom Left'; var fullscreenControlsPosition_wall_0 = 'Bottom Right'; var scaleX_wall_0 = 4.266666666666667; var scaleY_wall_0 = 0.4; var scale_wall_0 = (scaleX_wall_0 >= scaleY_wall_0) ? scaleY_wall_0 : scaleX_wall_0; if(scale_wall_0 > 1) scale_wall_0 = 1; if(scale_wall_0 < 0.3) scale_wall_0 = 0.3; var controlSize = 36;if(enableMutingControls_wall_0 && isChromeless_wall_0){ var iconColor = ''; /* @todo remove - no longer used?*/ var chromeLessMute = document.createElement('div'); var chromelessMuteSvg = document.createElementNS('http://www.w3.org/2000/svg', 'svg'); var chromelessMuteSvgUse = document.createElementNS('http://www.w3.org/2000/svg', 'use'); chromelessMuteSvgUse.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", prepend_wall_0 + '#mute'); chromelessMuteSvg.id = 'chromelessMuteSvg_wall-0'; chromelessMuteSvg.setAttribute('width', '20'); chromelessMuteSvg.setAttribute('height', '20'); chromelessMuteSvg.appendChild(chromelessMuteSvgUse); chromeLessMute.appendChild(chromelessMuteSvg); var chromelessUnmuteSvg = document.createElementNS('http://www.w3.org/2000/svg', 'svg'); var chromelessUnmuteSvgUse = document.createElementNS('http://www.w3.org/2000/svg', 'use'); chromelessUnmuteSvgUse.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", prepend_wall_0 + '#unmute'); chromelessUnmuteSvg.id = 'chromelessUnmuteSvg_wall-0'; chromelessUnmuteSvg.setAttribute('width', '20'); chromelessUnmuteSvg.setAttribute('height', '20'); chromelessUnmuteSvg.appendChild(chromelessUnmuteSvgUse); chromeLessMute.appendChild(chromelessUnmuteSvg); $(chromelessMuteSvg).css('fill', 'rgb(255, 255, 255)'); $(chromelessUnmuteSvg).css('fill', 'rgb(255, 255, 255)'); $(chromelessMuteSvg).css('stroke', 'rgb(255, 255, 255)'); $(chromelessUnmuteSvg).css('stroke', 'rgb(255, 255, 255)'); $(chromelessMuteSvg).css('margin', 'auto'); $(chromelessUnmuteSvg).css('margin', 'auto'); $(chromelessMuteSvg).css('display', 'block'); $(chromelessUnmuteSvg).css('display', 'none'); $('#customplayerwrapper-wall-0').prepend(chromeLessMute); chromeLessMute.id = 'chromeLessMute-wall-0'; var muteEle_wall_0 = $(chromeLessMute); muteEle_wall_0.css('display','none'); var hideMuteButton = setInterval(function() { if(chromelessOffset_wall_0 != undefined) { setTimeout(function() { muteEle_wall_0.css('display','block'); if(0){ muteEle_wall_0.css('display', 'none'); } clearInterval(hideMuteButton); },500); } },100); muteEle_wall_0.addClass('chromeLessControls'); muteEle_wall_0.addClass('chromelessButton'); muteEle_wall_0.css('zIndex','105'); var muteImage = document.createElement('img'); muteImage.setAttribute('id','customMuteButtonImage-wall-0'); $(chromeLessMute).append(muteImage); $(muteImage).css('display', 'none'); if(muteIconStyle_wall_0.toUpperCase()=='CUSTOM'){ muteEle_wall_0.css({'width':'auto','height':'auto'}); muteImage.setAttribute('src',customMuteIconSrc_wall_0); $(muteImage).css('display', 'block'); if(customMuteIconWidth_wall_0 && customMuteIconHeight_wall_0){ $(chromelessMuteSvg).css('width', parseInt(customMuteIconWidth_wall_0)*.65 + "px"); $(chromelessMuteSvg).css('height', parseInt(customMuteIconHeight_wall_0)*.65 + "px"); $(chromelessUnmuteSvg).css('width', parseInt(customMuteIconWidth_wall_0)*.65 + "px"); $(chromelessUnmuteSvg).css('height', parseInt(customMuteIconHeight_wall_0)*.65 + "px"); $(muteImage).css('width', customMuteIconWidth_wall_0); $(muteImage).css('height', customMuteIconHeight_wall_0); $(muteEle_wall_0).css('width', customMuteIconWidth_wall_0); $(muteEle_wall_0).css('height', customMuteIconHeight_wall_0); } if (customMuteIconSrc_wall_0.trim() == '' || typeof customMuteIconSrc_wall_0 == 'undefined'){ muteEle_wall_0.css('background-color','transparent'); $(muteImage).addClass('defaultMute'); $(muteImage).attr('src', transparentPixel); $(muteImage).css('background-image','url('+colorMuteButton_wall_0+')'); $(muteImage).css('display', 'none'); } else{ $(chromelessMuteSvg).css('display', 'none'); } }else{ muteEle_wall_0.addClass(iconColor+'Mute'); } var vOrigin = '0'; var hOrigin = '0'; if(muteIconStyle_wall_0.toUpperCase()=='CUSTOM' && (customMuteIconX_wall_0 && customMuteIconY_wall_0)){ muteEle_wall_0.css('top', parseInt(customMuteIconY_wall_0) + "px"); muteEle_wall_0.css('left', parseInt(customMuteIconX_wall_0) +"px"); }else{ if(mutingControlsPosition_wall_0 == 'Top Left'){ if(enablePlayerControls_wall_0 && playerControlsPosition_wall_0 == 'Top Left'){ vOrigin = '-100%'; muteShift_wall_0 = controlSize; } else{ muteShift_wall_0 = 0; } var interval_wall_0 = setInterval(function() { if(widthDiv_wall_0 < heightDiv_wall_0) { muteEle_wall_0.css('top', chromelessOffset_wall_0 + "px"); muteEle_wall_0.css('left', muteShift_wall_0 + "px"); } else{ muteEle_wall_0.css('left', chromelessOffset_wall_0 + muteShift_wall_0 + "px"); muteEle_wall_0.css('top', 0); } if(chromelessOffset_wall_0 != undefined) { clearInterval(interval_wall_0); } },500); }else if(mutingControlsPosition_wall_0 == 'Top Right'){ vOrigin = '100%'; hOrigin = '100%'; var muteShift_wall_0 = 0; if(enableFullscreenControls_wall_0 && fullscreenControlsPosition_wall_0 == 'Top Right'){ muteShift_wall_0 = muteShift_wall_0 + controlSize; vOrigin = '200%'; } if (enableCaptionsControls_wall_0 && captionsControlsPosition_wall_0 == 'Top Right') { muteShift_wall_0 += controlSize; vOrigin = (parseInt(vOrigin) + 100) + '%'; } var interval_wall_0 = setInterval(function() { if(widthDiv_wall_0 < heightDiv_wall_0) { muteEle_wall_0.css('top', chromelessOffset_wall_0 + "px"); muteEle_wall_0.css('right', muteShift_wall_0 + "px"); } else{ muteEle_wall_0.css('right', chromelessOffset_wall_0 + muteShift_wall_0 + "px"); muteEle_wall_0.css('top', 0); } if(chromelessOffset_wall_0 != undefined) { clearInterval(interval_wall_0); } },500); hOrigin = '0'; }else if(mutingControlsPosition_wall_0 == 'Bottom Left'){ chromelessButtonBottomPositioned_wall_0 = 1; var muteShift_wall_0 = 0; vOrigin = '0'; if(enablePlayerControls_wall_0 && playerControlsPosition_wall_0 == 'Bottom Left'){ muteShift_wall_0 = controlSize; vOrigin = '-100%'; } var interval_wall_0 = setInterval(function() { if(widthDiv_wall_0 < heightDiv_wall_0) { muteEle_wall_0.css('bottom', chromelessOffset_wall_0 + parseInt(slideshowPagi_wall_0) + "px"); muteEle_wall_0.css('left', muteShift_wall_0 + "px"); } else{ muteEle_wall_0.css('left', chromelessOffset_wall_0 + muteShift_wall_0 + "px"); muteEle_wall_0.css('bottom', 0); } if(chromelessOffset_wall_0 != undefined) { clearInterval(interval_wall_0); } },500); hOrigin = '100%'; }else if(mutingControlsPosition_wall_0 == 'Bottom Right'){ chromelessButtonBottomPositioned_wall_0 = 1; vOrigin = '100%'; hOrigin = '100%'; muteShift_wall_0 = 0; if(enableFullscreenControls_wall_0 && fullscreenControlsPosition_wall_0 == 'Bottom Right'){ muteShift_wall_0 = muteShift_wall_0 + controlSize; vOrigin = '200%'; } if (enableCaptionsControls_wall_0 && captionsControlsPosition_wall_0 == 'Bottom Right') { muteShift_wall_0 += controlSize; vOrigin = (parseInt(vOrigin) + 100) + '%'; } var interval_wall_0 = setInterval(function() { if(widthDiv_wall_0 < heightDiv_wall_0) { muteEle_wall_0.css('bottom', chromelessOffset_wall_0 + parseInt(slideshowPagi_wall_0) + "px"); muteEle_wall_0.css('right', muteShift_wall_0 + "px"); } else{ muteEle_wall_0.css('right', muteShift_wall_0 + chromelessOffset_wall_0 + "px"); muteEle_wall_0.css('bottom', 0); } if(chromelessOffset_wall_0 != undefined) { clearInterval(interval_wall_0); } },500); } } if(muteIconStyle_wall_0.toUpperCase()!='CUSTOM'){ muteButtonTrigger = muteEle_wall_0; }else{ muteButtonTrigger = muteEle_wall_0; } $(muteButtonTrigger).css('cursor','pointer'); $(muteButtonTrigger).click(function(){ if(player_wall_0.muted){ pWrapObj_wall_0.toggleMute(false); pWrapObj_wall_0.logMuteUnMute(false); if(playing_wall_0 == 1) { unmuteHappened_wall_0 = true; doRestartPlayback_wall_0(); } }else{ pWrapObj_wall_0.logMuteUnMute(true); pWrapObj_wall_0.toggleMute(true); } toggleChromelessMute_wall_0(true); }); if(muteIconStyle_wall_0.toUpperCase()!='CUSTOM'){ muteEle_wall_0.css("-ms-transform-origin", (vOrigin+' '+hOrigin)); muteEle_wall_0.css("-webkit-transform-origin", (vOrigin+' '+hOrigin)); muteEle_wall_0.css("transform-origin", (vOrigin+' '+hOrigin)); }}if(enablePlayerControls_wall_0 && isChromeless_wall_0){ var playerIconColor = ''; var chromeLessPlayerControls = document.createElement('div'); var chromelessPlaySvg = document.createElementNS('http://www.w3.org/2000/svg', 'svg'); var chromelessPlaySvgUse = document.createElementNS('http://www.w3.org/2000/svg', 'use'); chromelessPlaySvgUse.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", prepend_wall_0 + '#play'); chromelessPlaySvg.id = 'chromelessPlaySvg_wall-0'; chromelessPlaySvg.setAttribute('width', '17'); chromelessPlaySvg.setAttribute('height', '17'); chromelessPlaySvg.appendChild(chromelessPlaySvgUse); chromeLessPlayerControls.appendChild(chromelessPlaySvg); var chromelessPauseSvg = document.createElementNS('http://www.w3.org/2000/svg', 'svg'); var chromelessPauseSvgUse = document.createElementNS('http://www.w3.org/2000/svg', 'use'); chromelessPauseSvgUse.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", prepend_wall_0 + '#pause'); chromelessPauseSvg.id = 'chromelessPauseSvg_wall-0'; chromelessPauseSvg.setAttribute('width', '17'); chromelessPauseSvg.setAttribute('height', '17'); chromelessPauseSvg.appendChild(chromelessPauseSvgUse); chromeLessPlayerControls.appendChild(chromelessPauseSvg); $(chromelessPlaySvg).css('fill', 'rgb(255, 255, 255)'); $(chromelessPauseSvg).css('fill', 'rgb(255, 255, 255)'); $(chromelessPlaySvg).css('margin', 'auto'); $(chromelessPauseSvg).css('margin', 'auto'); $(chromelessPlaySvg).css('display', 'block'); $(chromelessPauseSvg).css('display', 'none'); $('#customplayerwrapper-wall-0').prepend(chromeLessPlayerControls); chromeLessPlayerControls.id = 'chromeLessPlayerControls-wall-0'; var playEle_wall_0 = $(chromeLessPlayerControls); playEle_wall_0.css('display','none'); var hidePlayButton = setInterval(function() { if(chromelessOffset_wall_0 != undefined) { setTimeout(function() { playEle_wall_0.css('display','block'); if(0){ playEle_wall_0.css('display', 'none'); } clearInterval(hidePlayButton); },500); } },100); playEle_wall_0.addClass('chromeLessPlayerControls'); playEle_wall_0.addClass('chromelessButton'); playEle_wall_0.css('zIndex','105'); var playImage = document.createElement('img'); playImage.setAttribute('id','customPlayButtonImage-wall-0'); $(chromeLessPlayerControls).append(playImage); $(playImage).css('display', 'none'); if(playerControlIconStyle_wall_0.toUpperCase()=='CUSTOM'){ playEle_wall_0.css({'width':'auto','height':'auto'}); playImage.setAttribute('src',customPlayIconSrc_wall_0); $(playImage).css('display', 'block'); if(customPlayIconWidth_wall_0 && customPlayIconHeight_wall_0){ $(playImage).css('width', customPlayIconWidth_wall_0); $(playImage).css('height', customPlayIconHeight_wall_0); $(chromelessPauseSvg).css('width', parseInt(customPlayIconWidth_wall_0)*.56 + "px"); $(chromelessPauseSvg).css('height', parseInt(customPlayIconHeight_wall_0)*.56 + "px"); $(chromelessPlaySvg).css('width', parseInt(customPlayIconWidth_wall_0)*.56 + "px"); $(chromelessPlaySvg).css('height', parseInt(customPlayIconHeight_wall_0)*.56 + "px"); $(playEle_wall_0).css('width', customPlayIconWidth_wall_0); $(playEle_wall_0).css('height', customPlayIconHeight_wall_0); } if(customPlayIconSrc_wall_0.trim()== '' || typeof customPlayIconSrc_wall_0 == 'undefined'){ $(playImage).addClass('defaultPlay'); $(playImage).attr('src', transparentPixel); $(playImage).css('background-image','url('+colorPlayButton_wall_0+')'); $(playImage).css('display','none'); } else{ $(chromelessPlaySvg).css('display', 'none'); } }else{ playEle_wall_0.addClass(playerIconColor+'Play'); } var vOrigin = '0'; var hOrigin = '0'; var sharing_muting_position = false; var sharing_fullscreen_position = false; if(playerControlIconStyle_wall_0.toUpperCase()=='CUSTOM' && (customPlayIconX_wall_0 && customPlayIconY_wall_0)){ playEle_wall_0.css('top', parseInt(customPlayIconY_wall_0)); playEle_wall_0.css('left', parseInt(customPlayIconX_wall_0 ) +"px"); }else{ if(playerControlsPosition_wall_0 == 'Top Left'){ var intervalPlay_wall_0 = setInterval(function() { if(widthDiv_wall_0 < heightDiv_wall_0) { playEle_wall_0.css('top', chromelessOffset_wall_0 + "px"); playEle_wall_0.css('left', 0); } else{ playEle_wall_0.css('left', chromelessOffset_wall_0 + "px"); playEle_wall_0.css('top', 0); } if(chromelessOffset_wall_0 != undefined) { clearInterval(intervalPlay_wall_0); } },500); }else if(playerControlsPosition_wall_0 == 'Top Right'){ var playShift_wall_0 =0; vOrigin = '100%'; if(enableMutingControls_wall_0 && mutingControlsPosition_wall_0 == 'Top Right'){ sharing_muting_position = true; playShift_wall_0 = playShift_wall_0 + controlSize; vOrigin = '200%'; } if(enableFullscreenControls_wall_0 && fullscreenControlsPosition_wall_0 == 'Top Right'){ sharing_fullscreen_position = true; playShift_wall_0 = playShift_wall_0 + controlSize; vOrigin = '200%'; } if(sharing_muting_position && sharing_fullscreen_position){ vOrigin = '300%'; } if (enableCaptionsControls_wall_0 && captionsControlsPosition_wall_0 == 'Top Right') { playShift_wall_0 += controlSize; vOrigin = (parseInt(vOrigin) + 100) + '%'; } var intervalPlay_wall_0 = setInterval(function() { if(widthDiv_wall_0 < heightDiv_wall_0) { playEle_wall_0.css('top', chromelessOffset_wall_0 + "px"); playEle_wall_0.css('right', playShift_wall_0 + "px"); } else{ playEle_wall_0.css('right', chromelessOffset_wall_0 + playShift_wall_0 + "px"); playEle_wall_0.css('top', 0); } if(chromelessOffset_wall_0 != undefined) { clearInterval(intervalPlay_wall_0); } },500); hOrigin = '0'; }else if(playerControlsPosition_wall_0 == 'Bottom Left'){ chromelessButtonBottomPositioned_wall_0 = 1; var intervalPlay_wall_0 = setInterval(function() { if(widthDiv_wall_0 < heightDiv_wall_0) { playEle_wall_0.css('bottom', chromelessOffset_wall_0 + parseInt(slideshowPagi_wall_0) + "px"); playEle_wall_0.css('left', 0); } else{ playEle_wall_0.css('left', chromelessOffset_wall_0 + "px"); playEle_wall_0.css('bottom', 0); } if(chromelessOffset_wall_0 != undefined) { clearInterval(intervalPlay_wall_0); } },500); vOrigin = '0'; hOrigin = '100%'; }else if(playerControlsPosition_wall_0 == 'Bottom Right'){ chromelessButtonBottomPositioned_wall_0 = 1; vOrigin = '100%'; hOrigin = '100%'; var playShift_wall_0 = 0; if(enableMutingControls_wall_0 && mutingControlsPosition_wall_0 == 'Bottom Right'){ sharing_muting_position = true; playShift_wall_0 = playShift_wall_0 + controlSize; vOrigin = '200%'; } if(enableFullscreenControls_wall_0 && fullscreenControlsPosition_wall_0 == 'Bottom Right'){ sharing_fullscreen_position = true; playShift_wall_0 = playShift_wall_0 + controlSize; vOrigin = '200%'; } if(sharing_muting_position && sharing_fullscreen_position){ vOrigin = '300%'; } if (enableCaptionsControls_wall_0 && captionsControlsPosition_wall_0 == 'Bottom Right') { playShift_wall_0 += controlSize; vOrigin = (parseInt(vOrigin) + 100) + '%'; } var intervalPlay_wall_0 = setInterval(function() { if(widthDiv_wall_0 < heightDiv_wall_0) { playEle_wall_0.css('bottom', chromelessOffset_wall_0 + parseInt(slideshowPagi_wall_0) + "px"); playEle_wall_0.css('right', playShift_wall_0 + "px"); } else{ playEle_wall_0.css('right', playShift_wall_0 + chromelessOffset_wall_0 + "px"); playEle_wall_0.css('bottom', 0); } if(chromelessOffset_wall_0 != undefined) { clearInterval(intervalPlay_wall_0); } },500); } } if(playerControlIconStyle_wall_0.toUpperCase()!='CUSTOM'){ playButtonTrigger = playEle_wall_0; }else{ playButtonTrigger = playEle_wall_0; } $(playButtonTrigger).css('cursor','pointer'); $(playButtonTrigger).click(function(){ if(playing_wall_0){ player_wall_0.pause(); }else{ player_wall_0.play(); } }); if(playerControlIconStyle_wall_0.toUpperCase()!='CUSTOM'){ playEle_wall_0.css("-ms-transform-origin", (vOrigin+' '+hOrigin)); playEle_wall_0.css("-webkit-transform-origin", (vOrigin+' '+hOrigin)); playEle_wall_0.css("transform-origin", (vOrigin+' '+hOrigin)); }} if(enableFullscreenControls_wall_0 && isChromeless_wall_0 && !Adventive.isCrossOrigin()){ var fsIconColor = ''; var fullScreen = document.createElement('div'); var chromelessFullscreenSvg = document.createElementNS('http://www.w3.org/2000/svg', 'svg'); var chromelessFullscreenSvgUse = document.createElementNS('http://www.w3.org/2000/svg', 'use'); chromelessFullscreenSvgUse.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", prepend_wall_0 + '#expand'); chromelessFullscreenSvg.id = 'chromelessFullscreenSvg_wall-0'; chromelessFullscreenSvg.setAttribute('width', '17'); chromelessFullscreenSvg.setAttribute('height', '17'); chromelessFullscreenSvg.appendChild(chromelessFullscreenSvgUse); fullScreen.appendChild(chromelessFullscreenSvg); $(chromelessFullscreenSvg).css('fill', 'rgb(255, 255, 255)'); $(chromelessFullscreenSvg).css('margin', 'auto'); $(chromelessFullscreenSvg).css('display', 'block'); $('#customplayerwrapper-wall-0').prepend(fullScreen); fullScreen.id = 'fullScreen-wall-0'; var fsEle_wall_0 = $(fullScreen); fsEle_wall_0.addClass('chromeLessPlayerControls'); fsEle_wall_0.addClass('chromelessButton'); fsEle_wall_0.css('display', 'none'); var hideFullScreenButton = setInterval(function() { if(chromelessOffset_wall_0 != undefined) { setTimeout(function() { fsEle_wall_0.css('display','block'); if(0){ fsEle_wall_0.css('display','none'); } clearInterval(hideFullScreenButton); },500); } },100); fsEle_wall_0.css('zIndex','105'); var fullscreenImage = document.createElement('img'); fullscreenImage.setAttribute('id','customFullscreenButtonImage-wall-0'); $(fullScreen).append(fullscreenImage); $(fullscreenImage).css('display', 'none'); if(fullscreenIconStyle_wall_0.toUpperCase()=='CUSTOM'){ fsEle_wall_0.css({'width':'auto','height':'auto'}); $(fullscreenImage).css('background-color','transparent'); fullscreenImage.setAttribute('src',customFullscreenIconSrc_wall_0); $(fullscreenImage).css('display', 'block'); if(customFullscreenIconWidth_wall_0 && customFullscreenIconHeight_wall_0){ $(fullscreenImage).css('width', customFullscreenIconWidth_wall_0); $(fullscreenImage).css('height', customFullscreenIconHeight_wall_0); $(chromelessFullscreenSvg).css('width', parseInt(customFullscreenIconWidth_wall_0)*.56 + "px"); $(chromelessFullscreenSvg).css('height', parseInt(customFullscreenIconHeight_wall_0)*.56 + "px"); $(fsEle_wall_0).css('width', customFullscreenIconWidth_wall_0); $(fsEle_wall_0).css('height', customFullscreenIconHeight_wall_0); } $(chromelessFullscreenSvg).css("display", "none"); if(customFullscreenIconSrc_wall_0.trim()== '' || typeof customFullscreenIconSrc_wall_0 == 'undefined'){ $(fullscreenImage).css('display','none'); $(chromelessFullscreenSvg).css("display", "block"); } }else{ fsEle_wall_0.addClass('defaultFullscreen'); } var vOrigin = '0'; var hOrigin = '0'; var fullShift_wall_0 = 0; if(fullscreenIconStyle_wall_0.toUpperCase()=='CUSTOM' && (customFullscreenIconX_wall_0 && customFullscreenIconY_wall_0)){ fsEle_wall_0.css('top', parseInt(customFullscreenIconY_wall_0)); fsEle_wall_0.css('left', parseInt(customFullscreenIconX_wall_0) +"px"); }else{ var sharing_muting_position = false; var sharing_player_position = false; if(fullscreenControlsPosition_wall_0 == 'Top Left'){ vOrigin = '0'; hOrigin = '0'; if(enableMutingControls_wall_0 && mutingControlsPosition_wall_0 == 'Top Left'){ sharing_muting_position = true; vOrigin = '-100%'; fullShift_wall_0 = fullShift_wall_0 + controlSize; } if(enablePlayerControls_wall_0 && playerControlsPosition_wall_0 == 'Top Left'){ sharing_player_position = true; vOrigin = '-100%'; fullShift_wall_0 = fullShift_wall_0 + controlSize; } if(sharing_player_position && sharing_muting_position ){ vOrigin = '-200%'; } if(enableCaptionsControls_wall_0 && captionsControlsPosition_wall_0 == 'Top Left') { fullShift_wall_0 += controlSize; vOrigin = '-' + (Math.abs(parseInt(vOrigin)) + 100) + '%'; } var intervalFull_wall_0 = setInterval(function() { if(widthDiv_wall_0 < heightDiv_wall_0) { fsEle_wall_0.css('top', chromelessOffset_wall_0 + "px"); fsEle_wall_0.css('left', fullShift_wall_0 + "px"); } else{ fsEle_wall_0.css('left', chromelessOffset_wall_0 + fullShift_wall_0 + "px"); fsEle_wall_0.css('top', 0); } if(chromelessOffset_wall_0 != undefined) { clearInterval(intervalFull_wall_0); } },500); }else if(fullscreenControlsPosition_wall_0 == 'Top Right'){ vOrigin = '100%'; hOrigin = '100%'; var intervalFull_wall_0 = setInterval(function() { if(widthDiv_wall_0 < heightDiv_wall_0) { fsEle_wall_0.css('top', chromelessOffset_wall_0 + "px"); fsEle_wall_0.css('right', fullShift_wall_0 + "px"); } else{ fsEle_wall_0.css('right', fullShift_wall_0 + chromelessOffset_wall_0 + "px"); fsEle_wall_0.css('top', 0); } if(chromelessOffset_wall_0 != undefined) { clearInterval(intervalFull_wall_0); } },500); hOrigin = '0'; }else if(fullscreenControlsPosition_wall_0 == 'Bottom Left'){ chromelessButtonBottomPositioned_wall_0 = 1; vOrigin = '0'; if(enableMutingControls_wall_0 && mutingControlsPosition_wall_0 == 'Bottom Left'){ sharing_muting_position = true; fullShift_wall_0 = fullShift_wall_0 + controlSize; vOrigin = '-100%'; } if(enablePlayerControls_wall_0 && playerControlsPosition_wall_0 == 'Bottom Left'){ sharing_player_position = true; fullShift_wall_0 = fullShift_wall_0 + controlSize; vOrigin = '-100%'; } if(sharing_player_position && sharing_muting_position){ vOrigin = '-200%'; } if(enableCaptionsControls_wall_0 && captionsControlsPosition_wall_0 == 'Bottom Left') { fullShift_wall_0 += controlSize; vOrigin = '-' + (Math.abs(parseInt(vOrigin)) + 100) + '%'; } var intervalFull_wall_0 = setInterval(function() { if(widthDiv_wall_0 < heightDiv_wall_0) { fsEle_wall_0.css('bottom', chromelessOffset_wall_0 + "px"); fsEle_wall_0.css('left', fullShift_wall_0 + "px"); } else{ fsEle_wall_0.css('left', chromelessOffset_wall_0 + fullShift_wall_0 + "px"); fsEle_wall_0.css('bottom', 0); } if(chromelessOffset_wall_0 != undefined) { clearInterval(intervalFull_wall_0); } },500); hOrigin = '100%'; }else if(fullscreenControlsPosition_wall_0 == 'Bottom Right'){ chromelessButtonBottomPositioned_wall_0 = 1; vOrigin = '100%'; hOrigin = '100%'; var intervalFull_wall_0 = setInterval(function() { if(widthDiv_wall_0 < heightDiv_wall_0) { fsEle_wall_0.css('bottom', chromelessOffset_wall_0 + "px"); fsEle_wall_0.css('right', fullShift_wall_0 + "px"); } else{ fsEle_wall_0.css('right', fullShift_wall_0 + chromelessOffset_wall_0 + "px"); fsEle_wall_0.css('bottom', 0); } if(chromelessOffset_wall_0 != undefined) { clearInterval(intervalFull_wall_0); } },500); } } if(fullscreenIconStyle_wall_0.toUpperCase()!='CUSTOM'){ fsButtonTrigger = fsEle_wall_0; }else{ fsButtonTrigger = fsEle_wall_0; } $(fsButtonTrigger).css('cursor','pointer'); $(fsButtonTrigger).click(function(event){ video = document.getElementById("customplayer-wall-0"); player_wall_0.enterFullScreen(); playing_wall_0 = true; video.addEventListener('pause', function(){ playing_wall_0 = false; stopQuartileTracking_wall_0(); }, false); video.addEventListener('webkitendfullscreen', function(){ if(playing_wall_0){ canvasVideo.play(); if(muted_wall_0)canvasVideo.mute(); else if(!muted_wall_0)canvasVideo.unmute(); if(playButtonDiv) playButtonDiv.style.opacity = 0; startQuartileTracking_wall_0(); } else{ playing_wall_0 = false; if(playButtonDiv) playButtonDiv.style.opacity = 100; stopQuartileTracking_wall_0(); } toggleChromelessPlay_wall_0(); }, false); }); if(fullscreenIconStyle_wall_0.toUpperCase()!='CUSTOM'){ fsEle_wall_0.css("-ms-transform-origin", (vOrigin+' '+hOrigin)); fsEle_wall_0.css("-webkit-transform-origin", (vOrigin+' '+hOrigin)); fsEle_wall_0.css("transform-origin", (vOrigin+' '+hOrigin)); }}if(enableCaptionsControls_wall_0 && isChromeless_wall_0){ var captions_wall_0 = document.createElement('div'); captions_wall_0.id = 'chromelessCaptions-wall-0'; captions_wall_0.classList.add('chromeLessControls'); captions_wall_0.classList.add('chromelessButton'); captions_wall_0.style.zIndex = 105; captions_wall_0.style.display = 'none'; captions_wall_0.style.cursor = 'pointer'; document.querySelector('#customplayerwrapper-wall-0').prepend(captions_wall_0); var ccSvg = document.createElementNS('http://www.w3.org/2000/svg', 'svg'); ccSvg.id = 'chromelessCaptionsSvg_wall-0'; ccSvg.setAttribute('width', '20'); ccSvg.setAttribute('height', '20'); ccSvg.style.fill = 'rgb(255, 255, 255)'; ccSvg.style.stroke = 'rgb(255, 255, 255)'; ccSvg.style.margin = 'auto'; ccSvg.style.display = 'block'; var ccSvgUse = document.createElementNS('http://www.w3.org/2000/svg', 'use'); ccSvgUse.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", prepend_wall_0 + '#cc'); ccSvg.appendChild(ccSvgUse); captions_wall_0.appendChild(ccSvg); var hideCaptionsButton = setInterval(function() { if(chromelessOffset_wall_0 != undefined) { setTimeout(function() { if(!0){ captions_wall_0.style.display = 'block'; } clearInterval(hideCaptionsButton); }, 500); } },100); var captionsImage = document.createElement('img'); captionsImage.setAttribute('id','customCaptionsButtonImage-wall-0'); captionsImage.style.display = 'none'; captionsImage.backgroundColor = 'transparent'; captions_wall_0.append(captionsImage); if(ccIconStyle_wall_0 === 'custom'){ var validSrc = customCaptionsIconSrc_wall_0.trim() !== '' && typeof customCaptionsIconSrc_wall_0 !== 'undefined'; captions_wall_0.style.width = 'auto'; captions_wall_0.style.height = 'auto'; captionsImage.setAttribute('src', customCaptionsIconSrc_wall_0); if(customCaptionsIconWidth_wall_0 && customCaptionsIconHeight_wall_0){ captionsImage.style.width = customCaptionsIconWidth_wall_0; captionsImage.style.height = customCaptionsIconHeight_wall_0; ccSvg.style.width = parseInt(customCaptionsIconWidth_wall_0)*.56 + "px"; ccSvg.style.height = parseInt(customCaptionsIconHeight_wall_0)*.56 + "px"; captions_wall_0.style.width = customCaptionsIconWidth_wall_0; captions_wall_0.style.height = customCaptionsIconHeight_wall_0; } ccSvg.style.display = validSrc ? 'none' : 'block'; captionsImage.style.display = validSrc ? 'block' : 'none'; } else { captions_wall_0.classList.add('defaultCaptions'); } var vOrigin = '0'; var hOrigin = '0'; if(ccIconStyle_wall_0 === 'custom' && (customCaptionsIconX_wall_0 && customCaptionsIconY_wall_0)) { captions_wall_0.style.top = parseInt(customCaptionsIconY_wall_0) + 'px'; captions_wall_0.style.left = parseInt(customCaptionsIconX_wall_0) + 'px'; } else { var ccShift_wall_0 = 0; if(captionsControlsPosition_wall_0 == 'Top Left') { if(enablePlayerControls_wall_0 && playerControlsPosition_wall_0 == 'Top Left') { ccShift_wall_0 += controlSize; vOrigin = '-' + (Math.abs(parseInt(vOrigin)) + 100) + '%'; } if(enableMutingControls_wall_0 && mutingControlsPosition_wall_0 == 'Top Left') { ccShift_wall_0 += controlSize; vOrigin = '-' + (Math.abs(parseInt(vOrigin)) + 100) + '%'; } captions_wall_0.style.top = 0; captions_wall_0.style.left = ccShift_wall_0 + 'px'; } else if(captionsControlsPosition_wall_0 == 'Top Right') { vOrigin = '100%'; if(enableFullscreenControls_wall_0 && fullscreenControlsPosition_wall_0 == 'Top Right') { ccShift_wall_0 += controlSize; vOrigin = '200%'; } captions_wall_0.style.top = 0; captions_wall_0.style.right = ccShift_wall_0 + 'px'; } else if(captionsControlsPosition_wall_0 == 'Bottom Left') { chromelessButtonBottomPositioned_wall_0 = 1; hOrigin = '100%'; if(enablePlayerControls_wall_0 && playerControlsPosition_wall_0 == 'Bottom Left') { ccShift_wall_0 += controlSize; vOrigin = '-' + (Math.abs(parseInt(vOrigin)) + 100) + '%'; } if(enableMutingControls_wall_0 && mutingControlsPosition_wall_0 == 'Bottom Left') { ccShift_wall_0 += controlSize; vOrigin = '-' + (Math.abs(parseInt(vOrigin)) + 100) + '%'; } captions_wall_0.style.bottom = 0; captions_wall_0.style.left = ccShift_wall_0 + 'px'; }else if(captionsControlsPosition_wall_0 == 'Bottom Right') { chromelessButtonBottomPositioned_wall_0 = 1; hOrigin = '100%'; vOrigin = '100%'; if(enableFullscreenControls_wall_0 && fullscreenControlsPosition_wall_0 == 'Bottom Right') { ccShift_wall_0 += controlSize; vOrigin = '200%'; } captions_wall_0.style.bottom = 0; captions_wall_0.style.right = ccShift_wall_0 + 'px'; } } if(ccIconStyle_wall_0 !== 'custom') { $(captions_wall_0).css("-ms-transform-origin", (vOrigin+' '+hOrigin)) .css("-webkit-transform-origin", (vOrigin+' '+hOrigin)) .css("transform-origin", (vOrigin+' '+hOrigin)); } captions_wall_0.addEventListener('click', function captionsClick() { captions_wall_0.hasAttribute('captions-on') ? captionsOff_wall_0.dispatchEvent(new Event('click')) : captionsOn_wall_0.dispatchEvent(new Event('click')); captions_wall_0.toggleAttribute('captions-on'); }); window.captions_wall_0 = captions_wall_0;}$('#layer-wall-0').mousemove(function() { });$('#layer-wall-0').mouseover(function() { });$('#layer-wall-0').mouseleave(function() { });var vidWidth = parseInt("1280");if( vidWidth >= 50 && vidWidth < 55 ){ $('#layer-wall-0 .mejs__time-rail').css('display','none'); $('#layer-wall-0 .mejs__time').css('display','none'); $('#layer-wall-0 .mejs__volume-button').css('display','none'); $('#layer-wall-0 .mejs__fullscreen-button').css('display','none');}else if ( vidWidth >= 55 && vidWidth < 100){ $('#layer-wall-0 .mejs__time-rail').css('display','none'); $('#layer-wall-0 .mejs__time').css('display','none');}else if(vidWidth >= 100 && vidWidth < 180){ $('#layer-wall-0 .mejs__time').css('display','none');} hideControls_wall_0(); $(document).mousemove(function() { hideControls_wall_0(); }); $(document).mouseover(function() { hideControls_wall_0(); }); $(document).mouseleave(function() { hideControls_wall_0(); }); $(window).on('blur focus', function(e) { var prevType = $(this).data('prevType'); if (prevType != e.type) { hideControls_wall_0(); } $(this).data('prevType', e.type); });function hideChromelessMute_wall_0() { $('#chromeLessMute-wall-0').css('display','none'); toggleCaptionsClass_wall_0();}function showChromelessMute_wall_0() { if(isYoutubeInCrossDomainFrame()) return; $('#chromeLessMute-wall-0').css('display','block'); toggleCaptionsClass_wall_0(1);}function hideChromelessPlay_wall_0() { $('#chromeLessPlayerControls-wall-0').css('display','none'); toggleCaptionsClass_wall_0();}function showChromelessPlay_wall_0() { if(isYoutubeInCrossDomainFrame()) return; $('#chromeLessPlayerControls-wall-0').css('display','block'); toggleCaptionsClass_wall_0(1);}function hideChromelessFullscreen_wall_0() { $('#fullScreen-wall-0').css('display','none'); toggleCaptionsClass_wall_0();}function hideChromelessCaptions_wall_0() { $('#chromelessCaptions-wall-0').css('display','none'); toggleCaptionsClass_wall_0();}function showChromelessFullscreen_wall_0() { if(isYoutubeInCrossDomainFrame()) return; $('#fullScreen-wall-0').css('display','block'); toggleCaptionsClass_wall_0(1);}function showChromelessCaptions_wall_0() { if(isYoutubeInCrossDomainFrame()) return; $('#chromelessCaptions-wall-0').css('display','block'); toggleCaptionsClass_wall_0(1);}/* only deals with what the button looks like. The actual muting is handled by the videos themselves */window.toggleChromelessMute_wall_0 = function(buttonClicked){ var muteEle = $('#chromeLessMute-wall-0'); var muteImage = $('#customMuteButtonImage-wall-0'); var iconColor = ''; /* @todo remove - no longer used?*/ var time = buttonClicked ? 50:0; if(muteEle){ if(muteIconStyle_wall_0.toUpperCase()=='CUSTOM' && isChromeless_wall_0){ muteEle.removeClass(iconColor+'UnMute'); muteEle.removeClass(iconColor+'Mute'); muteEle.css('background-color','transparent'); setTimeout(function() { if(player_wall_0.muted){ muteImage.removeClass('defaultUnMute'); if(customMuteIconSrc_wall_0 == '' || typeof customMuteIconSrc_wall_0 == 'undefined'){ $(chromelessMuteSvg).css('display', 'block'); $(chromelessUnmuteSvg).css('display', 'none'); muteImage.css('display','none'); }else{ muteImage.attr('src', customMuteIconSrc_wall_0); muteImage.css('display', 'block'); muteImage.removeClass('defaultMute'); muteImage.css('background-color','transparent'); muteImage.css('background-image',''); $(chromelessMuteSvg).css('display', 'none'); $(chromelessUnmuteSvg).css('display', 'none'); } } else{ muteImage.removeClass('defaultMute'); if(customUnMuteIconSrc_wall_0 == '' || typeof customUnMuteIconSrc_wall_0 == 'undefined'){ $(chromelessMuteSvg).css('display', 'none'); $(chromelessUnmuteSvg).css('display', 'block'); muteImage.css('display','none'); }else{ muteImage.attr('src', customUnMuteIconSrc_wall_0); muteImage.css('display', 'block'); muteImage.removeClass('defaultUnMute'); muteImage.css('background-color','transparent'); muteImage.css('background-image',''); $(chromelessMuteSvg).css('display', 'none'); $(chromelessUnmuteSvg).css('display', 'none'); } } }, time ); }else{ var playerUndefinedInterval = setInterval(function() { if (!player_wall_0) return; clearInterval(playerUndefinedInterval); if(player_wall_0.muted){ muteEle.removeClass(iconColor+'UnMute'); muteEle.addClass(iconColor+'Mute'); $(chromelessMuteSvg).show(); $(chromelessUnmuteSvg).hide(); }else{ muteEle.removeClass(iconColor+'Mute'); muteEle.addClass(iconColor+'UnMute'); $(chromelessUnmuteSvg).show(); $(chromelessMuteSvg).hide(); } },time); } }};window.toggleChromelessPlay_wall_0 = function(isAutoPlay){ var playEle = $('#chromeLessPlayerControls-wall-0'); if(playEle){ if(playerControlIconStyle_wall_0.toUpperCase()=='CUSTOM' && isChromeless_wall_0){ playEle.removeClass(iconColor+'Play'); playEle.removeClass(iconColor+'Pause'); if(playing_wall_0 || isAutoPlay){ if(customPauseIconSrc_wall_0.trim() == '' || typeof customPauseIconSrc_wall_0 == 'undefined'){ $(chromelessPauseSvg).css('display', 'block'); $(chromelessPlaySvg).css('display', 'none'); $(playImage).css('display','none'); }else{ $('#customPlayButtonImage-wall-0').attr('src', customPauseIconSrc_wall_0); $('#customPlayButtonImage-wall-0').css('display', 'block'); $(playImage).removeClass('defaultPlay'); $(playImage).removeClass('defaultPause'); $(playImage).css('background-color','transparent'); $(playImage).css('background-image',''); playEle.css('background-color','transparent'); $(chromelessPauseSvg).css('display', 'none'); $(chromelessPlaySvg).css('display', 'none'); } }else{ $(playImage).removeClass('defaultPause'); if(customPlayIconSrc_wall_0.trim() == '' || typeof customPlayIconSrc_wall_0 == 'undefined'){ $(chromelessPauseSvg).css('display', 'none'); $(chromelessPlaySvg).css('display', 'block'); $(playImage).css('display','none'); }else{ $('#customPlayButtonImage-wall-0').attr('src', customPlayIconSrc_wall_0); $('#customPlayButtonImage-wall-0').css('display', 'block'); $(playImage).removeClass('defaultPlay'); $(playImage).css('background-color','transparent'); $(playImage).css('background-image',''); playEle.css('background-color','transparent'); $(chromelessPauseSvg).css('display', 'none'); $(chromelessPlaySvg).css('display', 'none'); } } }else{ if(playing_wall_0 || isAutoPlay){ playEle.removeClass(iconColor+'Play'); playEle.addClass(iconColor+'Pause'); $(chromelessPlaySvg).hide(); $(chromelessPauseSvg).show(); }else{ playEle.removeClass(iconColor+'Pause'); playEle.addClass(iconColor+'Play'); $(chromelessPlaySvg).show(); $(chromelessPauseSvg).hide(); } } }};function toggleReplay_wall_0(showReplay, toggle) { var cssclass = 'bigreplay'; if(showReplay){ if(toggle == 'add'){ $('#layer-wall-0 .mejs__overlay-button').addClass(cssclass); $('#layer-wall-0 .mejs__overlay-button').css("display", ""); $('#layer-wall-0 .mejs__overlay-button').css("background-image", 'url('+colorReplayButton_wall_0+')'); $('#layer-wall-0 .mejs__overlay-play').css("visibility", "visible"); $('#layer-wall-0 .mejs__overlay-button .chromelessSVG').css("display", "none"); }else{ $('#layer-wall-0 .mejs__overlay-button').removeClass(cssclass); $('#layer-wall-0 .mejs__overlay-button').css("display", "none"); } }}function hideControls_wall_0() { $('#layer-wall-0 .mejs__controls').css('display','none'); $('#layer-wall-0 .mejs__controls').css('visibility','hidden'); toggleCaptionsClass_wall_0(0);}function showControls_wall_0() { if(isYoutubeInCrossDomainFrame()) return; $('#layer-wall-0 .mejs__controls').css('display',''); $('#layer-wall-0 .mejs__controls').css('visibility','visible'); toggleCaptionsClass_wall_0(1);} _this.toggleChromelessMuteCallback = toggleChromelessMute_wall_0; if ((autocheck_wall_0 && (appSettings_wall_0.autoplayDelay == 0)) || !showPlayButtonOverlay_wall_0) { playBtnWrapper.css('display','none'); } mediaElement.addEventListener('error', function(event) { videoSourceCallbacks('errorHandler'); }); var loadEvent = appSettings_wall_0.autoplay ? 'loadeddata' : 'loadedmetadata'; mediaElement.addEventListener(loadEvent, function(event) { setPlayerVar(); if (typeof positionVidWall_wall_0 === 'function') { if (typeof jQuery !== 'undefined') { $(cpwId+ ".mejs__layers").hide(); positionVidWall_wall_0(window.parent.window); } } player_ready_wall_0 = true; duration_wall_0 = mediaElement.duration; if (videoType === 'youtube' && !duration_wall_0) { ytLiveStream_wall_0 = 1; } if (confirmedDuration_wall_0) { duration_wall_0 = confirmedDuration_wall_0; } startTime_wall_0 = 0; endTime_wall_0 = duration_wall_0; if (parseInt(appSettings_wall_0.endTime) > parseInt(appSettings_wall_0.startTime) && !ytLiveStream_wall_0) endTime_wall_0 = appSettings_wall_0.endTime; if(startTime_wall_0 > 0 || (appSettings_wall_0.syncVideo == 1 && window.videos[videoArrayKey].videoCurrentTime)){ dontLog_wall_0["seek"] = 1; dontLog_wall_0["volChange"] = 1; if("videowall" != "youtube"){ mediaElement.setCurrentTime(startTime_wall_0); } if (appSettings_wall_0.syncVideo == 1 && window.videos[videoArrayKey].videoCurrentTime){ mediaElement.setCurrentTime(window.videos[videoArrayKey].videoCurrentTime); /* sync mute button as well */ if (appSettings_wall_0.chromeLess) { let targetMuteState = window.videos[videoArrayKey].isMuted; const checkDuration = 1000; const startTime = Date.now(); let syncInterval = setInterval(function () { if (Date.now() - startTime > checkDuration) { clearInterval(syncInterval); } if (mediaElement.firstElementChild.muted === targetMuteState) { return; } _this.toggleMute(targetMuteState); _this.toggleChromelessMuteCallback(); }, 16); } } } if (appSettings_wall_0.loop && !ytLiveStream_wall_0) { softRestartVideoBeforeEnd(mediaElement, 0.5, endTime_wall_0); } $(".mejs__volume-slider").remove(); $('#layer-wall-0').find(".mejs__volume-button").click(function(event){ setTimeout(function () { _this.toggleMute(mediaElement.muted); _this.logMuteUnMute(mediaElement.muted); if(!mediaElement.muted && playing_wall_0 == 1) { unmuteHappened_wall_0 = true; doRestartPlayback_wall_0(); } }, 100); }); $('#layer-wall-0').find(".mejs__fullscreen-button").click(function(event){ clearLimitInterval_wall_0(); }); $('.mejs__time-total').css('pointer-events', ""); $('.mejs__mute').css('pointer-events', ""); if(Adventive.isCrossOrigin()){ $('.mejs__fullscreen-button').css('visibility', "hidden"); }else{ $('.mejs__fullscreen-button').css('pointer-events', ""); $('.mejs__fullscreen-button button').prop('disabled', false); } $('.mejs__mute button').prop('disabled', false); if (_this.mRef.autoCheck) { if(!appSettings_wall_0.autoPlayWithSound || isMobile_wall_0){ dontLog_wall_0["volChange"] = 1; _this.toggleMute(true); } if(!autoCheckView_wall_0){ setTimeout(function(){ mediaElement.play(); _this.toggleChromelessMuteCallback(); },autoplayDelay_wall_0); } else { _this.toggleChromelessMuteCallback(); } _this.toggleChromelessMuteCallback(); canAutoPlay(playBtnWrapper,layerId); } else{ if(!unmuteOnPlay_wall_0) { _this.toggleMute(true); } } if (appSettings_wall_0.muteOnHoverOff) { $('#layer-wall-0').mouseleave(function() { if(playing_wall_0 == 1) { dontLog_wall_0["volChange"] = 1; _this.toggleMute(true); _this.toggleChromelessMuteCallback(); autoUnmuted_wall_0 = 0; } }); } if(isMobile_wall_0 && !appSettings_wall_0.chromeLess) { var mobileMuteArea = document.createElement('div'); mobileMuteArea.id = '#layer-wall-0'+ '-mobile-mute'; mobileMuteArea.style.backgroundColor = "#fff"; mobileMuteArea.style.opacity = 0; var vMuteArea = $(mobileMuteArea); var w = "30px"; var h = "30px"; var tMargin = parseFloat(100) - 30; var lMargin = parseFloat(1280) - 55; vMuteArea.css('width', w); vMuteArea.css('height', h); vMuteArea.css('margin-top', tMargin + "px"); vMuteArea.css('margin-left', lMargin + "px"); vMuteArea.css('position', 'absolute'); vMuteArea.css('z-index', '1000'); $('#layer-wall-0').prepend(mobileMuteArea); vMuteArea.css('cursor','pointer'); vMuteArea.click(function(event){ event.stopImmediatePropagation(); event.preventDefault(); event.stopPropagation(); if(mediaElement.muted){ _this.toggleMute(false); }else{ _this.toggleMute(true); } }); } videoSourceCallbacks('loadedData'); autoWait_0 = false; screenViewed[0] = 0; if (typeof parent.window.ns_4_164806_gU487381.videoCallback === 'function') { parent.window.ns_4_164806_gU487381.videoCallback(); } for(i=0; i < autoEvents_0.length; i++){ var variables = autoEvents_0[i]; checkAutoEvents(variables[0], variables[1], variables[2], variables[3], variables[4], variables[5], variables[6], variables[7], variables[8], variables[9]); } if(autoEvents_0.length == 0){ screenViewed[0] = 1; } },false); mediaElement.addEventListener('play', function(event) { /** Unmute video on play (manual play) */ if(unmuteOnPlay_wall_0 && !autocheck_wall_0 && !play_started_wall_0) { _this.toggleMute(false); _this.toggleChromelessMuteCallback(); } /** keep volume state of VAST when looping, vast will always mute on loop otherwise */ if(play_done_wall_0 && appSettings_wall_0.loop && 'videowall' === 'vast') { if(vastVolume_wall_0 !== 0) { setTimeout(function() { _this.toggleMute(false); },250); } } /* Fix iOS autoplay/inview even when not in view */ if (('videowall' === 'customvideo') || ('videowall' === 'vast')){ if((isiOS_wall_0) && (autocheck_wall_0) && (autoCheckView_wall_0) && (!playing_wall_0) && (!play_started_wall_0)) { mediaElement.pause(); } } $('.mejs__overlay-loading').css('display', 'none'); toggleReplay_wall_0(showReplay_wall_0, 'remove'); playing_wall_0 = 1; toggleChromelessPlay_wall_0(); if(!statLogged_wall_0 && ((autocheck_wall_0 && !autoCheckView_wall_0) || mediaElement.autoplay)){ cvLog_wall_0('play_video_auto', Math.floor(mediaElement.currentTime), event); statLogged_wall_0 = 1; logTPTracking_wall_0('AutoPlay'); } else if (!statLogged_wall_0 && 'Eclipse' === 'Eclipse' && 'videowall' === 'videowall') { cvLog_wall_0('play_video_auto', Math.floor(mediaElement.currentTime), event); statLogged_wall_0 = 1; logTPTracking_wall_0('AutoPlay'); } else{ if(dontLog_wall_0["playAuto"]) { if(!dontLog_wall_0["tpPlay"])logTPTracking_wall_0('Play'); } if(play_done_wall_0 && !dontLog_wall_0["play"]){ var timeoutDelay = (typeof videoSource.resetPlayDoneDelay !== 'undefined') ? videoSource.resetPlayDoneDelay : 0; setTimeout(function(){ play_done_wall_0 = 0; }, timeoutDelay); if (appSettings_wall_0.loop) { if(!dontLog_wall_0["replay"]) { cvLog_wall_0('replay_video_auto', Math.floor(mediaElement.currentTime), event); dontLog_wall_0["replay"] = 1; } } else { if(unmuteOnReplay_wall_0){ _this.toggleMute(false); _this.toggleChromelessMuteCallback(); } cvLog_wall_0('replay_video_click', Math.floor(mediaElement.currentTime), event); } } else { if(!isReturnAutoPlay_wall_0 && !autoCheckView_wall_0 && !dontLog_wall_0["play"]) { if(!isMobile_wall_0 || isMobile_wall_0 && dontLog_wall_0["playAuto"] || (isMobile_wall_0 && !autocheck_wall_0)) { if (!dontLog_wall_0.playClick && !_this.skipLogging && !navigatedAwayFromTab) { dontLog_wall_0.playClick = 1; cvLog_wall_0('play_video_click', Math.floor(mediaElement.currentTime), event); } } } else { if(appSettings_wall_0.autoPlayWithSound && !isMobile_wall_0){ if(!muted_wall_0){ _this.toggleMute(false); _this.toggleChromelessMuteCallback(); autoUnmuted_wall_0=1; skipIt_wall_0=1; } } isReturnAutoPlay_wall_0 = 0; } statLogged_wall_0 = 1 } } play_started_wall_0 = 1; dontLog_wall_0["play"] = 0; dontLog_wall_0["tpPlay"] = 0; if (!ytLiveStream_wall_0) { if((endTime_wall_0 > 0) && ((Math.floor(mediaElement.currentTime) != endTime_wall_0) && !(Math.floor(mediaElement.currentTime) > endTime_wall_0))) { pollStartEndTime(); } else if (startTime_wall_0 > 0){ dontLog_wall_0["seek"] = 1; pollStartEndTime(startTime_wall_0); } else { dontLog_wall_0["seek"] = 1; pollStartEndTime(0); } startQuartileTracking_wall_0(); } _this.toggleChromelessMuteCallback(); checkAutoPlayLimit_wall_0(); dispatchSafeFrameYoutubeVideoEvent('play'); _this.resetPlayPauseFromOutsideFlag(); },false); mediaElement.addEventListener('playing', function(event) { if (appSettings_wall_0.syncVideo && window.videos[videoArrayKey].isMuted != undefined ){ let interval = 0; const isMuted = window.videos[videoArrayKey].isMuted; interval = setInterval(function() { if(mediaElement.muted === isMuted) { clearInterval(interval); window.videos[videoArrayKey].isMuted = undefined; } _this.toggleMute(isMuted); }, 100); } }, false); mediaElement.addEventListener('pause', function(event) { if (mediaElement.currentTime !=null) { clearLimitInterval_wall_0(); } if (mediaElement.currentTime > endTime_wall_0 && endTime_wall_0 != duration_wall_0) { mediaElement.dispatchEvent(new Event("ended")); } if('videowall' === 'customvideo') { if ((mediaElement.currentTime > duration_wall_0) && (mediaElement.currentTime < mediaElement.duration)) { if (((mediaElement.currentTime - duration_wall_0) < 1) && ((mediaElement.duration - mediaElement.currentTime) < 1)) { dontLog_wall_0["seek"] = 1; mediaElement.currentTime = mediaElement.duration; try { /* Dispatch the ended event */ mediaElement.dispatchEvent(new Event("ended")); } catch(e) { console.log(e); } } } } toggleReplay_wall_0(showReplay_wall_0, 'remove'); if('videowall' == 'vimeo' && (parseInt('1280') < 300 || parseInt('100%') < 169) ) showPlayButtonOverlay_wall_0 = 0; $('#layer-wall-0 .mejs__overlay-button').css('background-image', ''); $('#layer-wall-0 .mejs__overlay-button').css('display',(showPlayButtonOverlay_wall_0) ? 'flex' : 'none'); $('#layer-wall-0 .mejs__overlay-button .chromelessSVG').css('display',(showPlayButtonOverlay_wall_0) ? 'flex' : 'none'); $('#layer-wall-0 .mejs__overlay-play').css('display',(showPlayButtonOverlay_wall_0) ? '' : 'none'); stopQuartileTracking_wall_0(); clearInterval(cInterval); if ((Math.floor(mediaElement.currentTime) != Math.floor(duration_wall_0)) && (playing_wall_0) && !dontLog_wall_0["pause"]) { if(!isMobile_wall_0 || isMobile_wall_0 && mediaElement.currentTime != 0) { setTimeout(function() { dontLog_wall_0["playAuto"] = 1; },200); logTPTracking_wall_0('Pause'); if (!dontLog_wall_0.pauseClick && !_this.skipLogging && !navigatedAwayFromTab) { dontLog_wall_0.pauseClick = 1; cvLog_wall_0('pause_video_click', Math.floor(mediaElement.currentTime), event); } } } playing_wall_0 = 0; toggleChromelessPlay_wall_0(); dontLog_wall_0["pause"]=0; dispatchSafeFrameYoutubeVideoEvent('pause'); _this.resetPlayPauseFromOutsideFlag(); },false); mediaElement.addEventListener('seeked', function(event) { var cvEvent = new CustomEvent("CustomVideoClick", {}); if(!dontLog_wall_0["seek"]){ cvLog_wall_0('seek_video_click', Math.floor(mediaElement.currentTime), cvEvent); } dontLog_wall_0["seek"] = 0; }, false); } }; this.playPauseFromOutside = function (action) { _this.skipLogging = true; action === 'play' ? _this.mediaelement.play() : _this.mediaelement.pause(); }; this.resetPlayPauseFromOutsideFlag = function () { _this.skipLogging = false; }; this.getVideoId = function(){ var vidId = videoSource.videoId || videoSource.src; return vidId; }; function videoSourceCallbacks(func){ (videoSource[func] || Function)(); }; this.logMuteUnMute = function(muted){ clearLimitInterval_wall_0(); var cvEvent = document.createEvent("CustomEvent"); if (Math.floor(_this.mRef.currentTime) > 1) { if (muted) { cvLog_wall_0('mute_video_click', Math.floor(_this.mRef.currentTime), cvEvent); logTPTracking_wall_0('Mute'); } else { cvLog_wall_0('unmute_video_click', Math.floor(_this.mRef.currentTime), cvEvent); logTPTracking_wall_0('Unmute'); unmuteHappened_wall_0=true; } } dontLog_wall_0["volChange"] = 0; }; function pollStartEndTime(setTime){ if(setTime != undefined) _this.mRef.setCurrentTime(setTime); clearInterval(cInterval); cInterval = setInterval(function(){ if(parseFloat(endTime_wall_0) <= parseFloat(_this.mRef.currentTime) && duration_wall_0 > 0){ clearInterval(cInterval); _this.mRef.pause(); } },1000); }; this.toggleMute = function(mute){ mute = (mute==undefined || mute==true) ? true : mute; var vol = (mute) ? 0 : 0.8; _this.mRef.setMuted(mute); _this.mRef.volume = vol; }; function softRestartVideoBeforeEnd (mejsVideoElem, secsBeforeEnd, endTime) { addVideoEventListener(mejsVideoElem, 'timeupdate', function handleTimeUpdate_wall_0(e) { var vid = e.target || e.detail.target.mediaElement || e.detail.target; if (vid.currentTime + secsBeforeEnd >= endTime) { vid.removeEventListener('timeupdate', handleTimeUpdate_wall_0); if(maxLoop_wall_0 == 0 || (maxLoop_wall_0 > 0 && loopCount < maxLoop_wall_0)) { setTimeout(function() { dontLog_wall_0["seek"] = 1; dontLog_wall_0["tpPlay"] = 1; dontLog_wall_0["play"] = 1; play_done_wall_0 = 1; vid.currentTime = startTime_wall_0; vid.addEventListener('timeupdate', handleTimeUpdate_wall_0); if(maxLoop_wall_0 > 0) loopCount++; dontLog_wall_0["tpPlay"] = 0; dontLog_wall_0["play"] = 0; }, 0); } } }); }; function addVideoEventListener (mejsVideoElem, eventName, fn) { let origId = mejsVideoElem.id; if (mejsVideoElem.originalNode === undefined) { let i = setInterval(function () { if (mejsVideoElem.id !== origId) { clearInterval(i); let target = mejsVideoElem.ownerDocument.getElementById(origId); target.addEventListener(eventName, fn); } }, 32); } else { mejsVideoElem.addEventListener(eventName, fn); } }; function canAutoPlay(playBtnWrapper, layerId){ var autoplay = false; var autoplay_test_content = document.createElement('video'); var mp4 = document.createElement('source'); mp4.src = 'data:video/mp4;base64,AAAAFGZ0eXBNU05WAAACAE1TTlYAAAOUbW9vdgAAAGxtdmhkAAAAAM9ghv7PYIb+AAACWAAACu8AAQAAAQAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAnh0cmFrAAAAXHRraGQAAAAHz2CG/s9ghv4AAAABAAAAAAAACu8AAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAFAAAAA4AAAAAAHgbWRpYQAAACBtZGhkAAAAAM9ghv7PYIb+AAALuAAANq8AAAAAAAAAIWhkbHIAAAAAbWhscnZpZGVBVlMgAAAAAAABAB4AAAABl21pbmYAAAAUdm1oZAAAAAAAAAAAAAAAAAAAACRkaW5mAAAAHGRyZWYAAAAAAAAAAQAAAAx1cmwgAAAAAQAAAVdzdGJsAAAAp3N0c2QAAAAAAAAAAQAAAJdhdmMxAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAFAAOABIAAAASAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGP//AAAAEmNvbHJuY2xjAAEAAQABAAAAL2F2Y0MBTUAz/+EAGGdNQDOadCk/LgIgAAADACAAAAMA0eMGVAEABGjuPIAAAAAYc3R0cwAAAAAAAAABAAAADgAAA+gAAAAUc3RzcwAAAAAAAAABAAAAAQAAABxzdHNjAAAAAAAAAAEAAAABAAAADgAAAAEAAABMc3RzegAAAAAAAAAAAAAADgAAAE8AAAAOAAAADQAAAA0AAAANAAAADQAAAA0AAAANAAAADQAAAA0AAAANAAAADQAAAA4AAAAOAAAAFHN0Y28AAAAAAAAAAQAAA7AAAAA0dXVpZFVTTVQh0k/Ou4hpXPrJx0AAAAAcTVREVAABABIAAAAKVcQAAAAAAAEAAAAAAAAAqHV1aWRVU01UIdJPzruIaVz6ycdAAAAAkE1URFQABAAMAAAAC1XEAAACHAAeAAAABBXHAAEAQQBWAFMAIABNAGUAZABpAGEAAAAqAAAAASoOAAEAZABlAHQAZQBjAHQAXwBhAHUAdABvAHAAbABhAHkAAAAyAAAAA1XEAAEAMgAwADAANQBtAGUALwAwADcALwAwADYAMAA2ACAAMwA6ADUAOgAwAAABA21kYXQAAAAYZ01AM5p0KT8uAiAAAAMAIAAAAwDR4wZUAAAABGjuPIAAAAAnZYiAIAAR//eBLT+oL1eA2Nlb/edvwWZflzEVLlhlXtJvSAEGRA3ZAAAACkGaAQCyJ/8AFBAAAAAJQZoCATP/AOmBAAAACUGaAwGz/wDpgAAAAAlBmgQCM/8A6YEAAAAJQZoFArP/AOmBAAAACUGaBgMz/wDpgQAAAAlBmgcDs/8A6YEAAAAJQZoIBDP/AOmAAAAACUGaCQSz/wDpgAAAAAlBmgoFM/8A6YEAAAAJQZoLBbP/AOmAAAAACkGaDAYyJ/8AFBAAAAAKQZoNBrIv/4cMeQ=='; autoplay_test_content.appendChild(mp4); autoplay_test_content.id = 'base64_test_video_wall_0'; autoplay_test_content.autoplay = true; autoplay_test_content.setAttribute('muted',''); autoplay_test_content.setAttribute('playsinline',''); autoplay_test_content.setAttribute('playsinline',''); autoplay_test_content.setAttribute('webkit-playsinline',''); autoplay_test_content.style.position = 'fixed'; autoplay_test_content.style.width = '1px'; autoplay_test_content.style.height = '1px'; autoplay_test_content.style.top = 0; autoplay_test_content.style.left = 0; $('#customplayerwrapper-wall-0').append(autoplay_test_content); var base64_test_video = document.getElementById('base64_test_video_wall_0'); setTimeout(function(){ if(base64_test_video && !base64_test_video.paused){ autoplay = true; } $('#base64_test_video_wall_0').remove(); /*Show Button wrapper and poster image if not autoplaying*/ if(!autoplay && !playing_wall_0){ playBtnWrapper.css('display',''); $(layerId + " .mejs__poster").css("background-image","url('https://assets.adventivecdn.com/434/35cc5b3b-fdb9-4ad8-a800-3ea0c28e9f2b_0.png')"); $(layerId + " .mejs__poster img").attr("src","url('https://assets.adventivecdn.com/434/35cc5b3b-fdb9-4ad8-a800-3ea0c28e9f2b_0.png')"); $(layerId + ' .mejs__poster').show(); } var counter=0; var int = setInterval(function(){ if(counter >= 5 || playing_wall_0 ){ clearInterval(int); if (autoplay) { /* if the browser allows the autoplay */ if(playing_wall_0) { playBtnWrapper.css('display','none'); $(layerId + ' .mejs__poster').hide(); } } } counter++; },1000); },1000); }; function executeVideoAction() { video_wall_0_videocomplete_action(); } function dispatchSafeFrameYoutubeVideoEvent(type) { if(!isYoutubeInCrossDomainFrame()) return; window.dispatchEvent(new CustomEvent("YoutubeSafeFrameVideoEvent", { detail: type })); } $.extend(true, config, videoSource.config); _this.mRef = $(elementId).mediaelementplayer(config); _this.mRef = _this.mRef[0].player; if (typeof _this.mRef === 'undefined') { var children = _this.mediaelement.children; var i = 0; var item; for(i; i < children.length; i++) { item = children[i]; if (item.nodeName.toLowerCase() === 'video') { _this.mRef = item.player; break; } } }} var qtInterval_wall_0 = 0; var engageAutoPlay_wall_0 = [];var engagePlay_wall_0 = [];var engagePause_wall_0 = [];var engageMute_wall_0 = [];var engageUnmute_wall_0 = [];var engageResumePlay_wall_0 = [];var engageFQ_wall_0 = []; var engageSQ_wall_0 = []; var engageTQ_wall_0 = []; var engageFrQ_wall_0 = []; function setUpTrackingVars_wall_0(){ }function startQuartileTracking_wall_0(){ checkQuartileTracking_wall_0(); qtInterval_wall_0 = setInterval(checkQuartileTracking_wall_0,1000);}function stopQuartileTracking_wall_0(){ clearInterval(qtInterval_wall_0); qtInterval_wall_0 = 0;}function logTPTracking_wall_0(which){ for(i=0;i<this['engage'+which+'_wall_0'].length;i++){ logThirdPartyTracking(this['engage'+which+'_wall_0'][i].type, this['engage'+which+'_wall_0'][i].url, this['engage'+which+'_wall_0'][i].hash); }} var detachedVideo_wall_0 = false;var iframeParentDoc_wall_0 = window.parent.document;var iframeParent_wall_0 = iframeParentDoc_wall_0.getElementById("adventive_4_164806_gU487381");var iframeInfoSave_wall_0 = {};var layerInfoSave_wall_0 = {};var inViewOnce_wall_0 = false;var buttonDims_wall_0 = 30;var headerHeight = 20;var roadBlockOnce_wall_0 = false; var elements_wall_0;var buttonsInfoSave_wall_0 = {};var visMonitor_wall_0 = null;var floatTimeout_wall_0;var stickyVideoOutOfView_wall_0 = false;var d_outer_adventive_htmlx_gU487381 = document.getElementById('adventive_htmlx_gU487381_outer');if(d_outer_adventive_htmlx_gU487381 === null) d_outer_adventive_htmlx_gU487381 = document.getElementById('adventive_htmlx_gU487381');try { if(d_outer_adventive_htmlx_gU487381 === null) d_outer_adventive_htmlx_gU487381 = parent.document.getElementById('adventive_htmlx_gU487381_frame').parentNode;}catch(err) { try { d_outer_adventive_htmlx_gU487381 = document.getElementById('adventive_htmlx_gU487381_frame').parentNode; } catch(e) {}}function unfloatVideo_wall_0(){if (floatTimeout_wall_0)window.clearTimeout(floatTimeout_wall_0); detachedVideo_wall_0 = false; var iframe = $(iframeParent_wall_0).find('iframe'); var layer = $("#layer-wall-0"); var headerBar = $(iframeParent_wall_0).find("#headerBar_wall_0"); if( headerBar.length ) headerBar.remove(); var floatCloseBtn = $(iframeParent_wall_0).find("#floatVidClose_wall_0"); if( floatCloseBtn.length ) floatCloseBtn.remove(); iframe.css('top',''); iframe.css('left',''); iframe.css('right',''); iframe.css('bottom',''); iframe.width( iframeInfoSave_wall_0.width ); iframe.height( iframeInfoSave_wall_0.height ); iframe.css('position',iframeInfoSave_wall_0.position); iframe.css('zIndex',iframeInfoSave_wall_0.zIndex); iframe.css('transform',iframeInfoSave_wall_0.transform); iframe.css('transform-origin',iframeInfoSave_wall_0.transformOrigin); iframe.css('top',iframeInfoSave_wall_0.top); iframe.css('right',iframeInfoSave_wall_0.right); iframe.css('bottom',iframeInfoSave_wall_0.bottom); iframe.css('left',iframeInfoSave_wall_0.left); setTimeout(function(){iframe.css('transition',iframeInfoSave_wall_0.transition);},100); layer.css('top',''); layer.css('left',''); layer.css('right',''); layer.css('bottom',''); layer.css("top",layerInfoSave_wall_0.top); layer.css("left",layerInfoSave_wall_0.left); layer.css("zIndex",layerInfoSave_wall_0.zIndex); layer.css('backgroundColor',layerInfoSave_wall_0.backgroundColor); layer.css('transform',layerInfoSave_wall_0.transform); layer.css('border',layerInfoSave_wall_0.border); iframeInfoSave_wall_0 = {}; layerInfoSave_wall_0 = {}; iframe.removeClass('float-video'); resetControlsAfterFloat_wall_0(); if(visMonitor_wall_0 != null) visMonitor_wall_0.stop();}function doFloatVideo_wall_0(){ var iframe = $(iframeParent_wall_0).find('iframe'); var layer = $("#layer-wall-0"); var posObj = {}; var top = 0; var left = 0; var scale = 1; if($(iframeParent_wall_0).hasClass('adv_sticky_ad_enabled')){ if(!floatTimeout_wall_0){ floatTimeout_wall_0 = setInterval(function(){ if(!detachedVideo_wall_0 && stickyVideoOutOfView_wall_0){doFloatVideo_wall_0();} }, 1000); } }else{ detachedVideo_wall_0 = true; iframe.addClass('float-video'); headerHeight = 0; var pl = $('#customplayer-wall-0'); var appW = 1280; var appH = 100; var vidEleW = (pl.attr("width") == undefined) ? appW : parseInt(pl.attr("width")); var vidEleH = (pl.attr("height") == undefined) ? appH : parseInt(pl.attr("height")); var iframeNewW = appW; var iframeNewH = appH; var popW = 400; var popH = 250; if (iframeParentDoc_wall_0.body.clientWidth < 501) { popW = 200; popH = 200; } else if (iframeParentDoc_wall_0.body.clientWidth < 701) { popW = 300; popH = 250; } var min = max = diff = avg = 0; if(iframeNewW > popW && iframeNewH > popH){ scale = Math.min(popW/iframeNewW, popH/iframeNewH); }else if( iframeNewW > popW && iframeNewH <= popH ){ diff = (iframeNewW - popW); avg = Math.floor((iframeNewW + popW)/2); }else if( iframeNewH > popH && iframeNewW <= popW ){ diff = (iframeNewH - popH); avg = Math.floor((iframeNewH + popH)/2); } if(diff != 0 && avg != 0) scale = (1 - Number(Math.round( (diff/avg) +'e2')+'e-2') ); iframeInfoSave_wall_0.width = iframe.width(); iframeInfoSave_wall_0.height = iframe.height(); iframeInfoSave_wall_0.position = iframe.css('position'); iframeInfoSave_wall_0.transition = iframe.css('transition'); iframeInfoSave_wall_0.zIndex = iframe.css('zIndex'); iframeInfoSave_wall_0.transform = iframe.css('transform'); iframeInfoSave_wall_0.transformOrigin = iframe.css('transform-origin'); iframeInfoSave_wall_0.top = iframe.css("top"); iframeInfoSave_wall_0.right = iframe.css("right"); iframeInfoSave_wall_0.bottom = iframe.css("bottom"); iframeInfoSave_wall_0.left = iframe.css("left"); layerInfoSave_wall_0.top = layer.css('top'); layerInfoSave_wall_0.left = layer.css('left'); layerInfoSave_wall_0.zIndex = layer.css('zIndex'); layerInfoSave_wall_0.backgroundColor = layer.css('backgroundColor'); layerInfoSave_wall_0.transform = layer.css('transform'); layerInfoSave_wall_0.border = layer.css('border'); var positions = floatVideoLocation_wall_0.toLowerCase().split(" "); posObj[positions[0]] = "5px"; posObj[positions[1]] = "5px"; if(vidEleH != appH) top = ( Math.abs(vidEleH - appH) *-1 )/2 + "px"; if(vidEleW != appW) left = ( parseFloat($('#customplayerwrapper-wall-0').css('left'))*-1 )+"px"; iframe.css('top',''); iframe.css('left',''); iframe.css('right',''); iframe.css('bottom',''); iframe.css('transition',''); iframe.width(iframeNewW); iframe.height(iframeNewH); iframe.css("position","fixed"); iframe.css(posObj); iframe.css("zIndex",1000000001); iframe.css({ '-webkit-transform' : 'scale(' + scale + ')', '-moz-transform' : 'scale(' + scale + ')', '-ms-transform' : 'scale(' + scale + ')', '-o-transform' : 'scale(' + scale + ')', 'transform' : 'scale(' + scale + ')' }); iframe.css({ '-webkit-transform-origin' : positions[0]+' '+positions[1], '-moz-transform-origin' : positions[0]+' '+positions[1], '-ms-transform-origin' : positions[0]+' '+positions[1], '-o-transform-origin' : positions[0]+' '+positions[1], 'transform-origin' : positions[0]+' '+positions[1] }); layer.css("top",''); layer.css("left",''); layer.css("right",''); layer.css("bottom",''); layer.css("top",top); layer.css("left",left); layer.css("zIndex",1000000001); layer.css("border",""); layer.css({ '-webkit-transform' : '', '-moz-transform' : '', '-ms-transform' : '', '-o-transform' : '', 'transform' : '' }); repositionControlsWhenFloated_wall_0( parseInt(iframeNewW), parseInt(iframeNewH) ); }}function addHeader_wall_0(iframeNewW,iframeNewH,scale,positions) { var layer = $("#layer-wall-0"); var verticalPos = (positions[0] == "top") ? 5 : Math.floor( iframeNewH * scale + 5 ) ; var header = document.createElement("div"); $(iframeParent_wall_0).append(header); header.id = "headerBar_wall_0"; header.style.position = "fixed"; $(header).css(positions[1],"5px"); $(header).css(positions[0], verticalPos + "px"); header.style.height = ( headerHeight + "px"); header.style.width = (iframeNewW * scale) + "px"; header.style.textAlign = "center"; header.style.fontSize = (isAndroid_wall_0 || isiOS_wall_0) ? "8px" : "10px"; header.style.lineHeight = parseInt(header.style.height) + 2 + "px"; header.style.zIndex = 1000000002; header.style.fontFamily = $(iframeParentDoc_wall_0.body).css('font-family'); header.style.backgroundColor = "#000000"; header.style.color = "#ffffff"; header.innerHTML = "ADVERTISEMENT"; header.style.overflow = "hidden"; d_outer_adventive_htmlx_gU487381 = $(d_outer_adventive_htmlx_gU487381); d_outer_adventive_htmlx_gU487381.css('height', (d_outer_adventive_htmlx_gU487381.height() + headerHeight)+"px" ); } function addCloseBtn_wall_0(iframeNewW,iframeNewH,scale,positions){ var displayDelay = (parseInt("0")) ? parseInt("0")*1000 : 0; var verticalPos = (positions[0] == "top") ? 5 : Math.floor( iframeNewH * scale - (buttonDims_wall_0/2) + headerHeight + 5 ) ; var horizontalPos = (positions[1] == "right") ? 0 : Math.floor( iframeNewW * scale - (buttonDims_wall_0/2) + 5 ) ; var closeBtn = document.createElement("input"); closeBtn.id = "floatVidClose_wall_0"; closeBtn.type = 'image'; closeBtn.alt = 'Close'; closeBtn.setAttribute('aria-label', 'Close'); closeBtn.src = "https://assets.adventivecdn.com/ui/images/interstitial-close.svg"; closeBtn.style.width = buttonDims_wall_0 + "px"; closeBtn.style.height = buttonDims_wall_0 + "px"; closeBtn.style.margin = 0; closeBtn.style.background = 0; closeBtn.style.backgroundColor = 'transparent'; closeBtn.style.backgroundImage = 'none'; closeBtn.style.border = 0; closeBtn.style.boxShadow = 'none'; closeBtn.style.content = 'normal'; closeBtn.style.direction = 'ltr'; closeBtn.style.float = 'none'; closeBtn.style.lineHeight = 'normal'; closeBtn.style.outline = 'none'; closeBtn.style.position = "fixed"; closeBtn.style.cursor = 'pointer'; closeBtn.style.boxSizing = 'content-box'; closeBtn.style.MozBoxSizing = 'content-box'; closeBtn.style.WebkitBoxSizing = 'content-box'; closeBtn.style.zIndex = 1000000003; $(closeBtn).css(positions[1],horizontalPos + "px"); $(closeBtn).css(positions[0], verticalPos + "px"); $(iframeParent_wall_0).append(closeBtn); if(displayDelay != undefined && displayDelay > 0 && !roadBlockOnce_wall_0){ roadBlockOnce_wall_0 = true; closeBtn.style.display = 'none'; setTimeout(function(){ closeBtn.style.display = "block"; },displayDelay); } $(closeBtn).unbind().click(function(event){ dontLog_wall_0["pause"] = 1; player_wall_0.pause(); var initObj = _init(event); var additionalData = { 'xVal': initObj.coords.x, 'yVal': initObj.coords.y, 'screenIndex': activeScreen+1 }; parent.window.ns_4_164806_gU487381.logStat('nav_collapse_click',JSON.stringify(additionalData)); cvView_wall_0(); }); } function repositionControlsWhenFloated_wall_0(iframeW, iframeH){ var handle; var img; var pl = $('#customplayer-wall-0'); var offsetW = (pl.attr("width") == undefined) ? 0 : parseInt(pl.attr("width")); var offsetH = (pl.attr("height") == undefined) ? 0 : parseInt(pl.attr("height")); var appW = 1280; var appH = 100; var h=0; var v=0; if(offsetW > 0){ h = (appW - offsetW)/2; }else if(offsetH > 0){ v = (appH - offsetH)/2; } elements_wall_0 = [{element : $("#chromeLessPlayerControls-wall-0"), label:"playPause", location:'top left', default: {bottom:v, left:h} }, {element : $("#chromeLessMute-wall-0"), label:"mute", location:'bottom left', default: {bottom:v, right:h} }, {element : $("#fullScreen-wall-0"), label:"fullscreen", location:'bottom right', default: {bottom:v, right:h}}]; var elements = elements_wall_0; if(elements[1].element.length && elements[2].element.length) elements_wall_0[1].default.right += parseInt(elements_wall_0[2].element.get(0).getBoundingClientRect().width); var inView = controlsInView_wall_0(iframeW, iframeH); if(!inView){ for(var i in elements){ handle = elements[i]; img = handle.element.children('img'); buttonsInfoSave_wall_0[handle.label] = {left: handle.element.css('left'), top: handle.element.css('top'), width:img.css('width'), height:img.css('height') }; handle.element.css( {top:'', right:'', bottom:'', left:''} ); handle.element.css( handle.default ); handle = null; img = null; } } } function controlsInView_wall_0(iframeW, iframeH){ var h = 0; var v = 0; var inView = true; var elements = elements_wall_0; var pl = $('#customplayer-wall-0'); var offsetW = (pl.attr("width") == undefined) ? 0 : parseInt(pl.attr("width")); var offsetH = (pl.attr("height") == undefined) ? 0 : parseInt(pl.attr("height")); var dims; for(var i in elements){ if(elements[i].element.length){ dims = elements[i].element.get(0).getBoundingClientRect(); h = parseInt( elements[i].element.css( getStyleValue('h', elements[i].element) ) ); v = parseInt( elements[i].element.css( getStyleValue('v', elements[i].element) ) ); if(h < 0 || ( (h-offsetW) + dims.width) > iframeW || v < 0 || ( (v-offsetH) + dims.height) > iframeH){ inView = false; break; } h=null; v=null; } } return inView; } function getStyleValue(which,element){ var targets = (which=='v') ? ["top","bottom"] : ["left","right"]; var style; for(var i=0; i< element.get(0).style.length; i++){ style = element.get(0).style[i]; if(targets.includes(style)){ return style; break; } } } function resetControlsAfterFloat_wall_0(){ var handle; var obj; var elements = elements_wall_0; for(var i in elements){ handle = elements[i]; obj = buttonsInfoSave_wall_0[handle.label]; if(obj != undefined){ handle.element.css( {top:'', right:'', bottom:'', left:''} ); handle.element.css({left:obj.left, top:obj.top }); handle.element.children('img').css({width:obj.width, height:obj.height }); obj = null; } handle = null; } } function inViewLogic_wall_0(){ var interval_view_wall_0 = setInterval(function(){ if(player_ready_wall_0){ clearInterval(interval_view_wall_0); dontLog_wall_0["play"] = 1; player_wall_0.play(); var event = document.createEvent("CustomEvent"); autoCheckView_wall_0 = 0; playing_wall_0 = true; muted_wall_0 = false; setTimeout(function(){ if(!unmuteView_wall_0){ dontLog_wall_0["volChange"] = 1; } autoCheckView_wall_0 = 0; }, 1); if(!statLogged_wall_0){ var autoEvent = new CustomEvent("ViewAuto", {}); cvLog_wall_0('play_video_auto', Math.floor(player_wall_0.currentTime), autoEvent); dontLog_wall_0["pauseInView"] = 1; statLogged_wall_0 = 1; logTPTracking_wall_0('AutoPlay'); }else{ if (!inViewed_wall_0){ inViewed_wall_0 = 1; var viewEvent = new CustomEvent("ViewPlay", {}); cvLog_wall_0('play_video_inview', Math.floor(player_wall_0.currentTime), viewEvent); logTPTracking_wall_0('ResumePlay'); } } } }, 100);} function cvView_wall_0() { if(typeof stickyVideoOutOfView_wall_0 != "undefined"){ stickyVideoOutOfView_wall_0 = false; } if (typeof detachedVideo_wall_0 == "undefined"){ detachedVideo_wall_0 = false; } inViewOnce_wall_0 = true; if (!play_done_wall_0 || detachedVideo_wall_0) { if(detachedVideo_wall_0) { unfloatVideo_wall_0(); } } } function cvHide_wall_0() { if(typeof floatVideo_wall_0 == "undefined"){ floatVideo_wall_0 = false; } var iParentScrollTop = $(window.parent).scrollTop(); var viewTrackerLocation = $(viewabilityTracker_adventive_htmlx_gU487381).offset().top + $(viewabilityTracker_adventive_htmlx_gU487381).height(); if(0 && (!floatVideo_wall_0 || iParentScrollTop < viewTrackerLocation )){ if(playing_wall_0){ if(!outViewed_wall_0 && !isMobile_wall_0 || isMobile_wall_0 && dontLog_wall_0["pauseInView"] && !outViewed_wall_0){ outViewed_wall_0 = 1; var viewEvent = new CustomEvent("ViewPause", {}); cvLog_wall_0('pause_video_outview', Math.floor(player_wall_0.currentTime), viewEvent); dontLog_wall_0["pauseInView"] = 0; } } autoCheckView_wall_0 = 1; dontLogPause_wall_0 = true; cvLeave_wall_0(); playing_wall_0 = false; if(muted_wall_0 != undefined){ unmuteView_wall_0 = !muted_wall_0; } toggleChromelessPlay_wall_0(); dontLogPause = false; if(typeof stickyVideoOutOfView_wall_0 != "undefined"){ stickyVideoOutOfView_wall_0 = false; } }else if(floatVideo_wall_0 && playing_wall_0 && !detachedVideo_wall_0 && inViewOnce_wall_0 && (iParentScrollTop > viewTrackerLocation)){ stickyVideoOutOfView_wall_0 = true; doFloatVideo_wall_0(); }else{ if(typeof stickyVideoOutOfView_wall_0 != "undefined"){ stickyVideoOutOfView_wall_0 = false; } } } var vidInit_wall_0 = function() { pWrapObj_wall_0 = new Player_wall_0('#customplayer-wall-0',setPlayerVar_wall_0); cvResize_wall_0(1); setUpTrackingVars_wall_0(); }; function setPlayerVar_wall_0(){ player_wall_0 = pWrapObj_wall_0.mRef; player_wall_0.loopMax = maxLoop_wall_0; player_wall_0.loopVideo = appSettings_wall_0.loop; if (player_wall_0.loopCount === undefined) { player_wall_0.loopCount = 0; } if (player_wall_0.autoCheck === undefined) { player_wall_0.autoCheck = autocheck_wall_0; } if(isYoutubeInCrossDomainFrame()) { $("#layer-wall-0 .mejs__controls").css('display', 'none'); var vInterval_wall_0 = 0; var savedMuteState_wall_0 = true; var log_wall_0 = ''; var pollVolume_wall_0 = function() { if (savedMuteState_wall_0 !== player_wall_0.muted) { if(player_wall_0.muted) { log_wall_0 = 'mute_youtube_click'; } else { log_wall_0 = 'unmute_youtube_click'; unmuteHappened_wall_0 = true; doRestartPlayback_wall_0(); } var cvEvent = document.createEvent("CustomEvent"); cvLog_wall_0(log_wall_0, Math.floor(player_wall_0.currentTime), cvEvent); } savedMuteState_wall_0 = player_wall_0.muted; }; window.addEventListener('YoutubeSafeFrameVideoEvent', function(event) { clearInterval(vInterval_wall_0); if (event.detail === 'play') vInterval_wall_0 = setInterval(pollVolume_wall_0, 250); }); } if (hasCaptions_wall_0) { determineCaptionToDisplay_wall_0(); autoDisplayCaptions_wall_0(); } }; function toggleCaptionsClass_wall_0(show) { if (!hasCaptions_wall_0) return; var captionsElement = document.querySelector('#layer-wall-0 .mejs__captions-layer div'); var hasHoverClass = captionsElement.classList.contains('mejs__captions-position-hover'); if ((show && !hasHoverClass) || (isChromeless_wall_0 && chromelessButtonBottomPositioned_wall_0) ) { captionsElement.classList.add('mejs__captions-position-hover'); } else if (!show) { captionsElement.classList.remove('mejs__captions-position-hover'); } scaleCaptions_wall_0(show); } function scaleCaptions_wall_0(scaleBottom) { if (!hasCaptions_wall_0) return; var captionsElement = document.querySelector('#layer-wall-0 .mejs__captions-layer div'); var elementStyles = window.getComputedStyle(captionsElement); var bottom = captionsElement.classList.contains('mejs__captions-position-hover') ? '35px' : '15px'; if (scale_wall_0 === 1) { captionsElement.style.fontSize = ''; captionsElement.style.lineHeight = ''; captionsElement.style.bottom = ''; return; } captionsElement.style.fontSize = 'calc(16px * calc(calc(' + scale_wall_0 + ' + 1) / 2))'; captionsElement.style.lineHeight = 'calc(20px * calc(calc(' + scale_wall_0 + ' + 1) / 2))'; if(scaleBottom || (!isChromeless_wall_0 && !parseInt('0')) || (isChromeless_wall_0 && chromelessButtonBottomPositioned_wall_0) ) { captionsElement.style.bottom = 'calc(' + bottom + ' * ' + scale_wall_0 + ')'; } else { captionsElement.style.bottom = ''; } } function autoDisplayCaptions_wall_0() { var hasChromelessCaptionsControls = parseInt('0'); var captionAutoStart = 'User Enabled'.toLowerCase(); if(captionAutoStart !== 'always') return; if(isChromeless_wall_0 && hasChromelessCaptionsControls) { window.captions_wall_0.dispatchEvent(new Event('click')); } else { captionsOn_wall_0.dispatchEvent(new Event('click')); } } function determineCaptionToDisplay_wall_0() { var captionDefaultLanguageCode = 'Auto'.toLowerCase(); var captionAutoStart = 'User Enabled'.toLowerCase(); var captionsList = document.querySelector('#customplayerwrapper-wall-0 .mejs__captions-selector-list'); var childNodes = captionsList.querySelectorAll('li'); var targetLanguage = (captionAutoStart === 'user enabled' || (captionAutoStart === 'always' && captionDefaultLanguageCode === 'auto')) ? navigator.language.toLowerCase() : captionDefaultLanguageCode; var captionsLanguage = undefined; for(var i = 1; i < childNodes.length; i++) { var input = childNodes[i].querySelector('input'); captionsLanguage = input.id.split('_').slice(-1); if(targetLanguage.indexOf(captionsLanguage) >= 0) { captionsOn_wall_0 = input; break; } } if(!captionsOn_wall_0) captionsOn_wall_0 = captionsList.querySelector('li:nth-child(2) input'); captionsOff_wall_0 = captionsList.firstChild.querySelector('input'); } function checkAutoPlayLimit_wall_0() { if(limitCleared_wall_0 || limitInterval_wall_0 > 0) return; if (ytLiveStream_wall_0) { duration_wall_0 = player_wall_0.currentTime + 86400; endTime_wall_0 = duration_wall_0; } if (autocheck_wall_0 && limitAutoplay_wall_0) { var limit = limitTime_wall_0; var dur = Math.floor(duration_wall_0); var time = player_wall_0.currentTime; var counter = 0; if(limit > endTime_wall_0 || limit > (endTime_wall_0 - startTime_wall_0) || endTime_wall_0 - limit <= 1 || (endTime_wall_0 - startTime_wall_0) - limit <= 1 ) return; limitInterval_wall_0 = setInterval(function () { time = player_wall_0.currentTime; if ( counter >= limit) { displayLimitOverlay_wall_0(); clearLimitInterval_wall_0(); dontLog_wall_0['pause'] = 1; player_wall_0.pause(); var cvEvent = new CustomEvent("CustomPauseLimit", {}); cvLog_wall_0('pause_video_limit', limit, cvEvent); setTimeout(function(){ dontLog_wall_0['pause'] = 0; },300); } counter++; }, 1000); } } function clearLimitInterval_wall_0() { clearInterval(limitInterval_wall_0); limitCleared_wall_0 = 1; } function displayLimitOverlay_wall_0() { var overlay = document.getElementById('limitOverlay-wall-0'); limitOverlayActive_wall_0 = 1; overlay.style.display = 'flex'; overlay.addEventListener("click", function _listener() { limitOverlayActive_wall_0 = 0; overlay.removeEventListener("click", _listener, true); overlay.style.display = 'none'; dontLog_wall_0['play'] = 1; player_wall_0.play(); cvLog_wall_0('resume_video_click', limitTime_wall_0, event); setTimeout(function(){ dontLog_wall_0['play'] = 0; },300); event.preventDefault(); event.stopPropagation(); event.stopImmediatePropagation(); }, true); } function getQuartileTimes(player) { var duration = player.duration; var quarterDuration = duration / 4; return [ quarterDuration, quarterDuration * 2, quarterDuration * 3, duration ]; } function doAtPlayerTime(player, timeSec, fn, args, once) { /* set default args */ var once = (typeof once === typeof undefined) ? false : once; var args = (typeof args === typeof undefined) ? [] : args; /* end set default args */ player.addEventListener('timeupdate', function cb(e) { if (player.currentTime >= timeSec) { fn.apply(player, args); if (once) { player.removeEventListener('timeupdate', cb); } } }); } /** * Logs messages for the specified video quartile. * @quartileNum The quartile to log messages for. */ function logQuartileMessage_wall_0(quartileNum) { if (quartileNum < 1 || quartileNum > 4) { throw(new Error('quartileNum is out of range: ', quartileNum)); } quartileNum--; var messages = { cv : [ 'q1_video_auto', 'q2_video_auto', 'q3_video_auto', 'q4_video_auto' ], tp : [ 'FQ', 'SQ', 'TQ', 'FrQ' ], console : [ 'firstQuartile', 'SecondQuartile', 'ThirdQuartile', 'complete' ] }; /* @todo what problem does quartileEvent solve? what is it used for? */ var quartileEvent = document.createEvent("CustomEvent"); cvLog_wall_0(messages.cv[quartileNum], Math.floor(this.currentTime), quartileEvent); console.log(messages.console[quartileNum]); /* @todo docs: 'TP' means 'Third Party'? */ logTPTracking_wall_0(messages.tp[quartileNum]); } function checkQuartileTracking_wall_0(){ if(ytLiveStream_wall_0) { stopQuartileTracking_wall_0(); return; } try { var time = Math.round(player_wall_0.currentTime); var customStartTime = 0 > 0 ? 0:'0'; var customEndTime = 0 > 0 ? 0:duration_wall_0; if(parseInt(duration_wall_0) == 0 && parseInt(confirmedDuration_wall_0) != 0){ duration_wall_0 = confirmedDuration_wall_0; } var customDuration = customEndTime - customStartTime; var quartileTime = customDuration/4; var totalTime = time - customStartTime; var quartileEvent = document.createEvent("CustomEvent"); if ( (totalTime == Math.floor(quartileTime)) || ( (totalTime > Math.floor(quartileTime)) && (!countedQ1_wall_0) ) ) { if (!countedQ1_wall_0) { cvLog_wall_0('q1_video_auto', Math.floor(totalTime), quartileEvent); countedQ1_wall_0=1; console.log("firstQuartile"); logTPTracking_wall_0('FQ'); } } if ( (totalTime == Math.floor(quartileTime*2)) || ( (totalTime > Math.floor(quartileTime*2)) && (!countedQ2_wall_0) ) ){ if (!countedQ2_wall_0) { cvLog_wall_0('q2_video_auto', Math.floor(totalTime), quartileEvent); countedQ2_wall_0=1; console.log("SecondQuartile"); logTPTracking_wall_0('SQ'); } } if ( (totalTime == Math.floor(quartileTime*3)) || ( (totalTime > Math.floor(quartileTime*3)) && (!countedQ3_wall_0) ) ){ if (!countedQ3_wall_0) { cvLog_wall_0('q3_video_auto', Math.floor(totalTime), quartileEvent); countedQ3_wall_0=1; console.log("ThirdQuartile"); logTPTracking_wall_0('TQ'); } } if ( (totalTime >= Math.floor((quartileTime*4)-1)) || ( (totalTime > Math.floor(quartileTime*4)) && (!countedQ4_wall_0) ) ){ if (!countedQ4_wall_0) { countedQ4_wall_0=1; cvLog_wall_0('q4_video_auto', customDuration, quartileEvent); console.log("complete"); logTPTracking_wall_0('FrQ'); } } if ( (totalTime >= Math.floor(customEndTime - 1)) || ( (totalTime > Math.floor(customEndTime)) && (!countedQ4_wall_0) ) ) { if (!countedQ4_wall_0) { countedQ4_wall_0=1; cvLog_wall_0('q4_video_auto', customDuration, quartileEvent); console.log("complete"); logTPTracking_wall_0('FrQ'); } } } catch (e) { console.log(e); } } function doRestartPlayback_wall_0(){ if(!0 && 0 && !restartPlaybackDone_wall_0 && unmuteHappened_wall_0){ restartPlaybackDone_wall_0 = true; dontLog_wall_0["seek"] = 1; dontLog_wall_0["play"] = 1; player_wall_0.setCurrentTime(0); } } function reColorControlButtons_wall_0() { var hexColor = (!controlColor_wall_0.startsWith("#")) ? rgbToHex_wall_0(controlColor_wall_0) : controlColor_wall_0; hexColor = hexColor.startsWith("#") ? hexColor.substring(1):hexColor; $('#layer-wall-0 .chromelessSVG').css("fill", '#' + hexColor); $('#layer-wall-0 .chromelessSVG').css("stroke", '#' + hexColor); $("#layer-wall-0 .mejs__time-loaded, #layer-wall-0 .mejs__time-total").css("background-color", hex2rgb_wall_0(hexColor,0.3)); $("#layer-wall-0 .mejs__time-current").css("background-color", hex2rgb_wall_0(hexColor, 0.9)); $("#layer-wall-0 .mejs__time").css("color", '#' + hexColor); $("#layer-wall-0 .mejs__controls").css("background-color", "#000000"); } function hashString(original_string){ var hash = 0; if (original_string.length == 0) return hash; for (i = 0; i < original_string.length; i++) { char = original_string.charCodeAt(i); hash = ((hash<<5)-hash)+char; hash = hash & hash; /* Convert to 32bit integer */ } return hash; }; function componentToHex_wall_0(c) { var hex = c.toString(16); return hex.length == 1 ? "0" + hex : hex; } function rgbToHex_wall_0(rgb) { if(rgb.startsWith("rgb(")) rgb = rgb.substring(4); var split = rgb.split(','); return "#" + componentToHex_wall_0(parseInt(split[0])) + componentToHex_wall_0(parseInt(split[1])) + componentToHex_wall_0(parseInt(split[2])); } function hex2rgb_wall_0(hex, opacity) { try { if(hex.indexOf('rgb') == -1){ var h = hex.replace('#', ''); h = h.match(new RegExp('(.{'+h.length/3+'})', 'g')); for(var i=0; i<h.length; i++) h[i] = parseInt(h[i].length==1? h[i]+h[i]:h[i], 16); if (typeof opacity != 'undefined') h.push(opacity); return 'rgba('+h.join(',')+')'; } else{ if(hex.indexOf('a') == -1){ var result = hex.replace(')', ','+ opacity +')').replace('rgb', 'rgba'); return result; } else return hex; } } catch (e) { return '#333333'; } } function cvLog_wall_0(stat_log, time, event) { setTimeout(function(){ if ((stat_log == "stop_video_auto") && (time==0)) { time = parseInt(duration_wall_0); } if (time < 0 ) {time=0;} if (time > duration_wall_0) {time = duration_wall_0;} var customStartTime = 0 > 0 ? 0:'0'; var customEndTime = 0 > 0 ? 0:duration_wall_0; if(customStartTime > 0 && (customEndTime == customStartTime)){ customEndTime = duration_wall_0; } var customDuration = customEndTime - customStartTime; var origTime = time; time = time - 0; if (time < 0) { time = origTime; } var dat = {"dest": "null","duration": customDuration,"time": time,"video": pWrapObj_wall_0.getVideoId(), "playTime": time,"player": "videowall","screenIndex": activeScreen+1}; if ('Eclipse' === 'Eclipse' && 'wall-0'.indexOf('wall') != -1) { var words = stat_log.split('_'); if (words[words.length-1] === 'click') { switch (words[0]) { case 'pause': case 'play': case 'replay': case 'seek': return; default: break; } } } logHtmlEvent(event, activeScreen, stat_log, dat); }, 500); } window.addEventListener('beforeunload', function(evt) { if (!play_done_wall_0) { parent.window.unloading = true; try { cvLog_wall_0('stop_video_nav', Math.floor(player_wall_0.currentTime), evt); } catch (e) { console.log('leaving screen. player not initialized'); } } }); function ytSpecialCloseEvent_wall_0() { if ((!play_done_wall_0) && (play_started_wall_0)) { var cvEvent = document.createEvent("CustomEvent"); cvLog_wall_0('stop_video_nav', Math.floor(player_wall_0.currentTime), cvEvent); } } leaveAdEvents.push("ytSpecialCloseEvent_wall_0"); if('videowall' === 'youtube') { try { parent.window.document.addEventListener('visibilitychange', function(event) { if (document.hidden) { navigatedAwayFromTab = true; } else { setTimeout(function() { navigatedAwayFromTab = false; }, 100); } }); } catch (err) { console.log(err); } } function cvLeave_wall_0() { /*Linked video feature */ /*Update the current playtime right before leaving the screen */ if (!player_wall_0) return; /*Set the array key depending on wether it is a vast or anyother kind of video*/ var videoArrayKey = ''; if(typeof player_wall_0.media.src != 'undefined' && typeof pWrapObj_wall_0.getVideoId() != ''){ videoArrayKey = hashString(pWrapObj_wall_0.getVideoId()); } if (appSettings_wall_0.syncVideo == 1 && player_wall_0.currentTime){ /*Set video curtime setting*/ window.videos[videoArrayKey].videoCurrentTime = player_wall_0.currentTime; window.videos[videoArrayKey].isMuted = player_wall_0.muted; window.videos[videoArrayKey].isPlaying = playing_wall_0; } if(doNotPause_wall_0) return; if (playing_wall_0) { playingWhenLeft_wall_0 = 1; }else { playingWhenLeft_wall_0 = 0; } mutedWhenLeft_wall_0 = player_wall_0.muted; if (!parent.window.preventSpecialFormat) { if (typeof player_wall_0 === 'object' && playing_wall_0) { player_wall_0.pause(); } } } /*Triggered when video returns to view*/ function cvReturn_wall_0() { if(doNotPause_wall_0) return; if (player_wall_0) { /*Linked video feature */ /*Set the current time to the linked video's current time if feature is enabled */ /*Set the array key depending on whether it is a vast or anyother kind of video*/ var videoArrayKey = ''; if(typeof player_wall_0.media.src != 'undefined' && typeof pWrapObj_wall_0.getVideoId() != ''){ videoArrayKey = hashString(pWrapObj_wall_0.getVideoId()); } if (appSettings_wall_0.syncVideo == 1 && window.videos[videoArrayKey].videoCurrentTime){ /* Set time on video to video curtime setting and suppress seek event */ dontLog_wall_0["seek"] = 1; player_wall_0.currentTime = window.videos[videoArrayKey].videoCurrentTime; setTimeout(function(){dontLog_wall_0["seek"] = 0;}, 300); } if (appSettings_wall_0.syncVideo == 1 && window.videos[videoArrayKey].isMuted != undefined ) { setTimeout(function() { pWrapObj_wall_0.toggleMute(window.videos[videoArrayKey].isMuted); }, 0); } } if (appSettings_wall_0.syncVideo == 1) { if ( (document.getElementById('customplayer-wall-0_vimeo_iframe') !== null) || (document.getElementById('customplayer-wall-0_youtube_iframe') !== null) ) { var elem = document.createElement('div'); var videoIframe = document.getElementById('customplayer-wall-0_vimeo_iframe'); if (videoIframe === null) { videoIframe = document.getElementById('customplayer-wall-0_youtube_iframe'); } window.dispatchEvent(new Event('resize')); videoIframe.parentNode.appendChild(elem); setTimeout(function() { videoIframe.style.display = 'none'; videoIframe.style.transform = 'none'; videoIframe.offsetHeight; },0); setTimeout(function() { videoIframe.style.display = 'block'; videoIframe.style.transform = 'translateZ(0)'; videoIframe.offsetHeight; },0); setTimeout(function() { videoIframe.style.display = 'none'; videoIframe.style.transform = 'none'; videoIframe.offsetHeight; },0); setTimeout( function(){ videoIframe.style.display = 'block'; videoIframe.style.transform = 'translateZ(0)'; videoIframe.offsetHeight; },100); window.dispatchEvent(new Event('resize')); } } if (player_wall_0 && !parent.window.preventSpecialFormat && ((1 && 0) || (1 && playingWhenLeft_wall_0 ) || (appSettings_wall_0.syncVideo == 1 && window.videos[videoArrayKey].isPlaying)) ) { if ("From Beginning" === 'From Beginning') { player_wall_0.currentTime = 0; } isReturnAutoPlay_wall_0 = 1; /* Set this flag to handle some volume change logic. */ dontLog_wall_0["volChange"] = 1; /*Unmute if video was unmuted when user left view/screen*/ player_wall_0.muted = mutedWhenLeft_wall_0; /*Only play video if it was playing when user left view/screen*/ if(playingWhenLeft_wall_0){ player_wall_0.play(); } else { try { if (play_done_wall_0 && appSettings_wall_0.loop && 1 && 0 ) { player_wall_0.play(); } } catch(err) { console.log('could not restart video'); } } try{ $('#layer-wall-0 .mejs__overlay-error').parent()[0].style.position = "absolute"; $('#layer-wall-0 .mejs__overlay-error').parent()[0].style.left = "-99999px"; } catch(e){}; var cvEvent = document.createEvent("CustomEvent"); cvLog_wall_0('resume_video_auto', Math.floor(player_wall_0.currentTime), cvEvent); } } function cvResize_wall_0(originalScale){ scale_wall_0 = 1; if (window.frameElement.style.transform != 'none') { scale_wall_0 = 1/originalScale; } else { originalScale = 1; } var playEle = isChromeless_wall_0 ? $('#chromeLessPlayerControls-wall-0') : $('#customplayerwrapper-wall-0 .mejs__playpause-button'); var muteEle = isChromeless_wall_0 ? $('#chromeLessMute-wall-0') : $('#customplayerwrapper-wall-0 .mejs__volume-button'); var fsEle = isChromeless_wall_0 ? $('#fullScreen-wall-0') : $('#customplayerwrapper-wall-0 .mejs__fullscreen-button'); var ccEle = isChromeless_wall_0 ? $('#chromelessCaptions-wall-0') : $('#customplayerwrapper-wall-0 .mejs__captions-button'); var playerArea = parseInt(parseInt("1280")) * originalScale * parseInt(parseInt("100%")) * originalScale; var scaleCss = "matrix(" + scale_wall_0 + ", 0, 0, " + scale_wall_0 + ", 0, 0)"; var fsArea; var fsProportion; var dimensionScale = isChromeless_wall_0 ? 0.4:0.3; var pHeight = parseInt("100%") * originalScale; var pWidth = parseInt("1280") * originalScale; var minDim = Math.min(pWidth, pHeight); var overScale = 0; function button_scale(button_element,button_name){ if(button_element){ if(button_name=='fullscreen'){ fsArea = parseInt(button_element.css("width")) * scale_wall_0 * parseInt(button_element.css("height")) * scale_wall_0; fsProportion = fsArea/playerArea * 100; } if (typeof button_element[0] === 'object') { if (minDim * dimensionScale < button_element.width()) { overScale = (minDim * dimensionScale) / (button_element.width() * originalScale); scaleCss = "matrix(" + overScale + ", 0, 0, " + overScale + ", 0, 0)"; } else { overScale = 0; } button_element.css({ "-webkit-transform":scaleCss, "-ms-transform":scaleCss, "transform":scaleCss }); } } } if (!isChromeless_wall_0 || (muteIconStyle_wall_0.toUpperCase() != 'CUSTOM')){ button_scale(muteEle,'mute'); } if (!isChromeless_wall_0 || (playerControlIconStyle_wall_0.toUpperCase() != 'CUSTOM')){ button_scale(playEle,'play'); } if (!isChromeless_wall_0 || (fullscreenIconStyle_wall_0.toUpperCase() != 'CUSTOM')){ button_scale(fsEle,'fullscreen'); } if (!isChromeless_wall_0 || (isChromeless_wall_0 && ccIconStyle_wall_0 != 'custom')) { button_scale(ccEle,'captions'); } scaleCaptions_wall_0(); if(!isChromeless_wall_0) { var timeEle = $('#customplayerwrapper-wall-0 .mejs__time'); var timeLeft = $('#customplayerwrapper-wall-0 .mejs__currenttime-container'); var timeRight = $('#customplayerwrapper-wall-0 .mejs__duration-container'); var controlsEl = $('#customplayerwrapper-wall-0 .mejs__controls'); var timeRailEl = $('#customplayerwrapper-wall-0 .mejs__time-rail'); var timeBarEl = $('#customplayerwrapper-wall-0 .mejs__time-total'); if (overScale) { scale_wall_0 = overScale; timeBarEl.css('display','none'); } else { timeBarEl.css('display','block'); } controlsEl.css('height', 40*scale_wall_0 + "px"); if(typeof fsProportion != 'undefined'){ var max = 1.9; var element_scale = scaleCss; timeEle.css({ "webkitTransform":element_scale, "msTransform":element_scale, "transform":element_scale }); var iconCount = 5; var scaledDownIconCount = 3; timeRight.css('transform-origin', + 96 + 'px' + ' top'); playEle.css('transform-origin', 'top left'); muteEle.css('transform-origin', 64 + 'px' + ' top'); fsEle.css('transform-origin', 'top right'); timeLeft.css('transform-origin', -32 + 'px top'); $('.mejs__time-total, .mejs__time-buffering, .mejs__time-loaded, .mejs__time-current, .mejs__time-float, .mejs__time-hovered, .mejs__time-float-current, .mejs__time-float-corner, .mejs__time-marker').css('height', 10*scale_wall_0 + "px"); timeRailEl.css('height', scale_wall_0*40 + "px"); timeBarEl.css('margin', (scale_wall_0*40/2)-(scale_wall_0*10/2) - 10 + "px 0 0"); timeBarEl.css('width', (pWidth - (32*iconCount) - 20)*scale_wall_0 - 20 + "px"); var timeBarLeft = ((scale_wall_0*32*2) + (scale_wall_0*10) + 10) - (64+10+10); timeBarEl.css('left', timeBarLeft); if(parseInt("1280")*.2 > parseInt(timeBarEl.css('width'))) { timeBarLeft = ((scale_wall_0*32*1) + (scale_wall_0*10) + 10) - (32+10+10); timeBarEl.css('left', timeBarLeft); timeBarEl.css('width', (pWidth - (32*scaledDownIconCount) - 20)*scale_wall_0 - 20 + "px"); timeEle.css('display', 'none'); } else{ timeEle.css('display', 'block'); } } } if($('#layer-wall-0 .mejs__overlay-play')){ var btnEle = $('#layer-wall-0 .mejs__overlay-button'); var bigPlayWidth = 100; var bigPlayHeight = 100; var bigPlayArea = bigPlayWidth * bigPlayHeight; bigDimensionScale = 0.4; if (minDim*bigDimensionScale < bigPlayWidth) { overScale = (minDim*bigDimensionScale) / (bigPlayWidth * originalScale); scaleCss = "matrix(" + overScale + ", 0, 0, " + overScale + ", 0, 0)"; } else { overScale = 0; } btnEle.css({ "webkitTransform":scaleCss, "msTransform":scaleCss, "transform":scaleCss }); } } fireEvents_0.push("vidInit_wall_0"); leaveScreenEvents_0.push("cvLeave_wall_0"); viewScreenEvents_0.push(["cvView_wall_0", $('#customplayerwrapper-wall-0')]); leaveViewScreenEvents_0.push(["cvHide_wall_0", $('#customplayerwrapper-wall-0')]); reenterScreenEvents_0.push("cvReturn_wall_0"); resizeEvents_0.push("cvResize_wall_0"); var parentFrame = window.parent.document.getElementById("adventive_htmlx_gU487381_frame"); var viewabilityTracker_adventive_htmlx_gU487381 = document.createElement("div"); viewabilityTracker_adventive_htmlx_gU487381.id = "adventive_htmlx_gU487381_viewability_tracker_app_0"; viewabilityTracker_adventive_htmlx_gU487381.style.height = "10px"; viewabilityTracker_adventive_htmlx_gU487381.style.width = "4px"; viewabilityTracker_adventive_htmlx_gU487381.style.top = "0px"; viewabilityTracker_adventive_htmlx_gU487381.style.marginTop = parseInt("100%")/2 +"px"; viewabilityTracker_adventive_htmlx_gU487381.style.left = "0px"; viewabilityTracker_adventive_htmlx_gU487381.style.position = "absolute"; viewabilityTracker_adventive_htmlx_gU487381.style.opacity = 0; viewabilityTracker_adventive_htmlx_gU487381.style.transform = 'translateZ(0)'; viewabilityTracker_adventive_htmlx_gU487381.style.left = "1px"; try { var maxHCheck = parentFrame.parentNode.style.maxHeight; if (maxHCheck != 'none') { if (maxHCheck.indexOf("px") !== -1) { var transformedAmount = parseInt(parentFrame.parentNode.style.maxHeight) / parseInt(parentFrame.parentNode.style.height); var tLeft = (parseInt(viewabilityTracker_adventive_htmlx_gU487381.style.left) * transformedAmount) - parseInt(viewabilityTracker_adventive_htmlx_gU487381.style.left) + "px"; var tTop = ((parseInt(viewabilityTracker_adventive_htmlx_gU487381.style.marginTop) + parseInt(viewabilityTracker_adventive_htmlx_gU487381.style.top)) * transformedAmount) - (parseInt(viewabilityTracker_adventive_htmlx_gU487381.style.marginTop) + parseInt(viewabilityTracker_adventive_htmlx_gU487381.style.top)) + "px"; viewabilityTracker_adventive_htmlx_gU487381.style.transform = "translate("+tLeft+","+tTop+")"; } } } catch (e) { } parentFrame.parentNode.appendChild(viewabilityTracker_adventive_htmlx_gU487381); if (parentFrame.parentNode.style.position == ''){ parentFrame.parentNode.style.position = 'relative'; } if (parentFrame.parentNode.style.position == null){ parentFrame.parentNode.style.position = 'relative'; } /* set up custom video player handlers for this ad format */ var eclipseCustomHandlers_wall_0 = (function () { var endedCount = 0; /* @todo review behavior/logic */ function endedHandler() { var player = player_wall_0.media; /* only run this handler once */ if (endedCount > 0) {return;} var event = document.createEvent("CustomEvent"); /* @todo should the stop event actually be logged since the video never stops looping? kept to prevent behavorial changes. */ cvLog_wall_0('stop_video_auto', Math.floor(player.currentTime), event); cvLog_wall_0('replay_video_auto', Math.floor(player.currentTime), event); endedCount++; } return { endedHandler : endedHandler } })(); /* set up custom quartileTracking for this ad format */ var eclipseCustomQuartileTracking_wall_0 = (function () { var inited = false; var started = false; var player = null; var quartiles = [0, 0, 0, 0]; function init() { started = false; player = player_wall_0.media; quartiles = getQuartileTimes(player); quartiles.forEach(function roundDown(cur, i, arr) { arr[i] = Math.floor(cur); }); quartiles[3]--; /* decrease last quartile duration so we can still log it but prevent video player from dispatching 'ended' event */ /* this is a 'fix' to prevent youtube videos from flashing black as they restart. */ inited = true; } function ensureReady() { if (inited) return Promise.resolve(); return new Promise((res) => { let i = setInterval(() => { if (!player_wall_0) return; clearInterval(i); init(); res(); }, 16); }); } async function start() { await ensureReady(); if (started) {return;} doAtPlayerTime(player, quartiles[0], logQuartileMessage_wall_0, [1], true); doAtPlayerTime(player, quartiles[1], logQuartileMessage_wall_0, [2], true); doAtPlayerTime(player, quartiles[2], logQuartileMessage_wall_0, [3], true); doAtPlayerTime(player, quartiles[3], logQuartileMessage_wall_0, [4], true); started = true; } function getQuartiles() { /* return a copy to prevent quartiles from being modified elsewhere */ /* externally constant */ var toRet = []; quartiles.forEach(function(q) {toRet.push(q);}); return toRet; } return { start : start, getQuartiles : getQuartiles } })(); /* overrides a global function */ async function startQuartileTracking_wall_0() { await eclipseCustomQuartileTracking_wall_0.start(); doAtPlayerTime(player_wall_0.media, eclipseCustomQuartileTracking_wall_0.getQuartiles()[3], eclipseCustomHandlers_wall_0.endedHandler, [], true); } /* overrides a global function */ function stopQuartileTracking_wall_0() { /* do nothing */ } </script> <script type="text/javascript">setResponsiveScreen(activeScreen);var adIsSticky=false; var ad_obj_1_0 = document.getElementById("layer-1-0"); if(ad_obj_1_0 === null){ ad_obj_1_0 = window.parent.document.getElementById("layer-1-0_adventive_htmlx_gU487381"); } ad_obj_1_0.style.cursor = "pointer"; var prevEvent_1_0_0 = ad_obj_1_0.onclick; ad_obj_1_0.onclick = function(event) { preventEventProp(event); if (typeof prevEvent_1_0_0 === "function") { /* prevEvent_1_0_0(event); */ } var clickTo = "https://adclick.g.doubleclick.net/pcs/click?xai=AKAOjsvlI2BuaS0fFeatvGVVVcm44qgqhbU1ldGLOf0YOJMY__L_SQYt9VwcrX63vxFWsLBIEt-DBdcHH8dXhUx9PNyjRvDEUmXWkV6TZ2Cf9IOJOszv2SyWxwgEQyAhc0J1hWgw42tle6RSA8X8wNJQvmw44KI83ujetOhwMHvuHYRng_1OvNmKVpHr4__FwOyavm2BZnUJtQArQv-CA_Ve1deSwaWx9lgvrGkTVh0C1-VSSTLpXpnoBYSPLtZ8vVYCRhDR2SabU2lfbIm7r5uXvt9hlfp2QYEJ0C3PTgcRdEM1u7VHbGT385fBg3XQhOqrDxxrbLXvN1AWBA&sai=AMfl-YRMB37OxMLA2SSyPytbYWA3d4WfhXM7Y573b7cGK-ItJZbw3CsoRE2JdE_RoEhNLpMJrasttUTptLXqMHL7gDHBHM-JC8aZO4qdbQqUCN77FErn1Tackcu8uNXcjw&sig=Cg0ArKJSzFFokr-2VaQuEAE&fbs_aeid=[gw_fbsaeid]&urlfix=1&adurl=https%3A%2F%2Fwww.visitnewportbeach.com%2Fluxury-meetings-and-incentives%2F"; var ts_macro = Date.now() / 1000 | 0; clickTo = clickTo.replace("[timestamp]", ts_macro); clickTo = clickTo.replace("[Random]", ts_macro); clickTo = clickTo.replace("[INSERT_CACHEBUSTER_HERE]", ts_macro); clickTo = clickTo.replace("[CACHEBUSTER]", ts_macro); clickTo = clickTo.replace("[%random%]", ts_macro); var logLabel = ""; logLabel = decodeURIComponent(logLabel); var actionData = { dest: "https://www.visitnewportbeach.com/luxury-meetings-and-incentives/", label: logLabel }; if("New Tab" != "Same Tab") { var win = window.open(clickTo, "_blank"); logHtmlEvent(event, activeScreen, "serve_clickthrough", actionData); try { win.focus(); } catch(e) {} } else { logClickAndNavigate(event, activeScreen, "serve_clickthrough", actionData, clickTo); } }; var clickthroughPrepend = true;try { var eventMethod = window.addEventListener ? "addEventListener" : "attachEvent"; var eventer = window[eventMethod]; var messageEvent = eventMethod == "attachEvent" ? "onmessage" : "message"; eventer(messageEvent,function(e) { if (e.origin === "https://html5.adventivecdn.com") { var key = e.message ? "message" : "data"; var data = e[key]; if (typeof data === "string") { switch(data) { case "closeInterstitial": closeInterstitial(); break; case "closeFullPageFlex": closeFullPageFlex(); break; case "closeStickySidebar": closeStickySidebar(); break; case "getClickTrackerUrl": getClickTrackerUrl(e); break; default: console.log("unsupported method"); break; } } if (typeof data === "object") { switch(data.method) { /* Handle the click tracking on imported HTML */ case "log_clickthrough": var clickthroughData = { dest: data.href, label: "Imported HTML Clickthrough" }; logHtmlEvent(e, activeScreen,"serve_clickthrough", clickthroughData); break; default: console.log("unsupported method"); break; } } } },false);} catch (e) { console.log("messaging API not supported"); }var closeInterstitial = function() { try{ /* Get the outer div and do some set up on it. */ var frame_adventive_htmlx_gU487381 = window.parent.document.getElementById("adventive_htmlx_gU487381_frame"); var frame_adventive_htmlx_gU487381_parent = frame_adventive_htmlx_gU487381.parentNode; var el = window.parent.document.getElementById(frame_adventive_htmlx_gU487381_parent.id + "_back"); var evt = document.createEvent("MouseEvents"); evt.initEvent("click", 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_gU487381 = window.parent.document.getElementById("adventive_htmlx_gU487381_frame"); var frame_adventive_htmlx_gU487381_parent = frame_adventive_htmlx_gU487381.parentNode; parent.window.ns_4_164806_gU487381.closeStickySidebar_adventive_htmlx_gU487381(0, frame_adventive_htmlx_gU487381_parent); } catch (e) { console.log(e); }};var closeFullPageFlex = function () { console.log("called close flex"); };var getClickTrackerUrl = function(event) { var clickthroughPrependAddress = ""; if (clickthroughPrepend) { clickthroughPrependAddress = "https://adclick.g.doubleclick.net/pcs/click?xai=AKAOjsvlI2BuaS0fFeatvGVVVcm44qgqhbU1ldGLOf0YOJMY__L_SQYt9VwcrX63vxFWsLBIEt-DBdcHH8dXhUx9PNyjRvDEUmXWkV6TZ2Cf9IOJOszv2SyWxwgEQyAhc0J1hWgw42tle6RSA8X8wNJQvmw44KI83ujetOhwMHvuHYRng_1OvNmKVpHr4__FwOyavm2BZnUJtQArQv-CA_Ve1deSwaWx9lgvrGkTVh0C1-VSSTLpXpnoBYSPLtZ8vVYCRhDR2SabU2lfbIm7r5uXvt9hlfp2QYEJ0C3PTgcRdEM1u7VHbGT385fBg3XQhOqrDxxrbLXvN1AWBA&sai=AMfl-YRMB37OxMLA2SSyPytbYWA3d4WfhXM7Y573b7cGK-ItJZbw3CsoRE2JdE_RoEhNLpMJrasttUTptLXqMHL7gDHBHM-JC8aZO4qdbQqUCN77FErn1Tackcu8uNXcjw&sig=Cg0ArKJSzFFokr-2VaQuEAE&fbs_aeid=[gw_fbsaeid]&urlfix=1&adurl="; } var data = { method: "setClickTracker", ext_track: "https://adclick.g.doubleclick.net/pcs/click?xai=AKAOjsvlI2BuaS0fFeatvGVVVcm44qgqhbU1ldGLOf0YOJMY__L_SQYt9VwcrX63vxFWsLBIEt-DBdcHH8dXhUx9PNyjRvDEUmXWkV6TZ2Cf9IOJOszv2SyWxwgEQyAhc0J1hWgw42tle6RSA8X8wNJQvmw44KI83ujetOhwMHvuHYRng_1OvNmKVpHr4__FwOyavm2BZnUJtQArQv-CA_Ve1deSwaWx9lgvrGkTVh0C1-VSSTLpXpnoBYSPLtZ8vVYCRhDR2SabU2lfbIm7r5uXvt9hlfp2QYEJ0C3PTgcRdEM1u7VHbGT385fBg3XQhOqrDxxrbLXvN1AWBA&sai=AMfl-YRMB37OxMLA2SSyPytbYWA3d4WfhXM7Y573b7cGK-ItJZbw3CsoRE2JdE_RoEhNLpMJrasttUTptLXqMHL7gDHBHM-JC8aZO4qdbQqUCN77FErn1Tackcu8uNXcjw&sig=Cg0ArKJSzFFokr-2VaQuEAE&fbs_aeid=[gw_fbsaeid]&urlfix=1&adurl=" }; var frames = document.getElementsByTagName("iframe"); for (var i = 0; i < frames.length; i++) { if (frames[i].contentWindow === event.source) { frames[i].contentWindow.postMessage(data,"https://html5.adventivecdn.com"); } }}; for (var index = 0; index < window["fireEvents_"+activeScreen].length; ++index) { window[window["fireEvents_"+activeScreen][index]](); } if (!initHidden){ document.body.className = ""; } try{ clickUrl = document.getElementById("clickWrapper").href; } catch(e){ } screenViewed[activeScreen]=1; triggerResponsiveGoToScreens(); var contextId = "ns_4_164806_gU487381"; var context = parent.window[contextId]; if ("Eclipse" === "Interscroller" && context) { context.gotoScreenInterscroller(0, screenResponsive[0]); } try { if (context.inMraid) { /* Set up the clickthroughs to use MRAID API */ var clickWrapperElement = document.getElementById("clickWrapper"); 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_gU487381; /* Timeout object */ var viewTimeoutRunning = false; /* Flag to prevent multiple viewedTimeout_s*/ var parentFrameContainer = window.parent.document.getElementById("adventive_4_164806_gU487381"); window["viewScreenEvents_"+activeScreen].unshift(["inViewAnalitycs_adventive_htmlx_gU487381", parentFrameContainer]); window["leaveViewScreenEvents_"+activeScreen].unshift(["outOfViewAnalitycs_adventive_htmlx_gU487381", parentFrameContainer]); function inViewAnalitycs_adventive_htmlx_gU487381(){ /* Ad in view */ inView = true; if(!viewed && !viewTimeoutRunning){ viewTimeoutRunning = true; viewedTimeout_adventive_htmlx_gU487381 = setTimeout(function(){ /* Ad officially viewed */ viewed = true; var viewEvent = document.createEvent("CustomEvent"); if(1){ viewLog_adventive_htmlx_gU487381("ad_view_view_auto", minimumViewTime, viewEvent); } },minimumViewTime*1000); } } function outOfViewAnalitycs_adventive_htmlx_gU487381(){ /* Ad out of view */ clearTimeout(viewedTimeout_adventive_htmlx_gU487381); viewTimeoutRunning = false; inView = false; } function viewLog_adventive_htmlx_gU487381(stat_log, viewTime, event) { var viewDat_adventive_htmlx_gU487381; var ns = window.parent.window.Adventive; if(viewTime > 0){ viewDat_adventive_htmlx_gU487381 = {"viewTime": viewTime}; } if (!ns.impressionId["9cb49424885c4544b044ebe3c0f8882f"].view) { parent.window.ns_4_164806_gU487381.logStat(stat_log, JSON.stringify(viewDat_adventive_htmlx_gU487381)); ns.impressionId["9cb49424885c4544b044ebe3c0f8882f"].view = 1; } try { if(typeof parent.window.adv_console === "function"){ parent.window.adv_console("This ad is now considered viewed"); } } catch (e) { /* cross domain error */ } } /********************************************************/ /* Make sure library is loaded */ var lastExposureChange = 0; var inSafeFrame = parent.window.ns_4_164806_gU487381.inSafeFrame; var viewTimer = setInterval(function(){ for (var j = 0; j < window["viewScreenEvents_"+activeScreen].length; ++j) { monitorObjects[j] = window["viewScreenEvents_"+activeScreen][j][1][0]; if(window["viewScreenEvents_"+activeScreen][j][1].id == undefined){ if(window.parent.document.getElementById("adventive_htmlx_gU487381_viewability_tracker_app_0")){ parentFrameContainerEvents = window.parent.document.getElementById("adventive_htmlx_gU487381_viewability_tracker_app_0"); if (adIsSticky) { /* move application viewability tracker when sticky ad is stuck */ var css = ".adv_stuck #adventive_htmlx_gU487381_viewability_tracker_app_0 {position:fixed !important; top:50vh !important; left:50vw !important; margin:0 !important; }"; var style = document.createElement("style"); style.type = "text/css"; style.appendChild(document.createTextNode(css)); window.frameElement.parentNode.appendChild(style); } } } else{ parentFrameContainerEvents = window.parent.document.getElementById("adventive_4_164806_gU487381"); if (adIsSticky) { /* Switch viewability to the ad iframe */ parentFrameContainerEvents = window.frameElement; } } if(window.parent.document.getElementById("adventive_htmlx_gU487381_viewability_tracker")){ parentFrameContainerEvents = window.parent.document.getElementById("adventive_htmlx_gU487381_viewability_tracker"); } if (context.inMraid) { function engageMraidListener(){ /* Set up viewability listeners for mraid versions */ if (parseInt(parent.window.mraid.getVersion()) > 3) { parent.window.mraid.addEventListener("exposureChange", function(exposedPercentage, visibleRectangle, occlusionRectangles){ /* Only trigger the exposure change when there is a change */ if(lastExposureChange != exposedPercentage) { lastExposureChange = exposedPercentage; if(exposedPercentage >= 40){ for(var k = 0; k < monitorObjects.length; ++k){ window[window["viewScreenEvents_"+activeScreen][k][0]](); } } else { /* Fire Events in hidden array */ for(var k = 0; k < monitorObjects.length; ++k){ window[window["leaveViewScreenEvents_"+activeScreen][k][0]](); } } } }); } else { parent.window.mraid.addEventListener("viewableChange", mraid2CheckInView); mraid2CheckInView(); } } if (document.readyState === "complete") { if (typeof parent.window.mraid !== "undefined") { if (parent.window.mraid.getState() === "loading") { clearInterval(viewTimer); parent.window.mraid.addEventListener("ready", engageMraidListener); } else if (parent.window.mraid.getState() === "default") { clearInterval(viewTimer); engageMraidListener(); } } } } else if (inSafeFrame){ clearInterval(viewTimer); var safeFrameViewed = false; var safeFrameTimer = setInterval(function(){ var SFViewPercentage = parent.window.ns_4_164806_gU487381.getViewPercentage(); if(SFViewPercentage >= 50 && !safeFrameViewed){ for(var k = 0; k < monitorObjects.length; ++k){ window[window["viewScreenEvents_"+activeScreen][k][0]](); } safeFrameViewed = true; }else if (SFViewPercentage < 50 && safeFrameViewed){ safeFrameViewed = false; /* Fire Events in hidden array */ for(var k = 0; k < monitorObjects.length; ++k){ try{ window[window["leaveViewScreenEvents_"+activeScreen][k][0]](); } catch(e){} } } },100); }else{ if(typeof window.parent.VisSense == "function"){ clearInterval(viewTimer); var threshold = 0.5;var parentFrame = window.parent.document.getElementById("adventive_htmlx_gU487381_frame"); var frameWidth = parentFrame.parentNode.offsetWidth; var frameHeight = parentFrame.parentNode.offsetHeight; var frameArea = frameWidth * frameHeight; /* Very large ads have a different viewability threshold */ /* Take the offsetWidth/height to take into account responsive size changes */ if(frameArea > 242000) threshold = 0.30;var viewabilityEvent = window.parent.VisSense(parentFrameContainerEvents, { fullyvisible: threshold }); /*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("adventive_htmlx_gU487381_viewability_tracker_app_0")){ if(window["viewScreenEvents_"+activeScreen][k][1].id == undefined){ window[window["viewScreenEvents_"+activeScreen][k][0]](); } } else if(monitor._visobj._element == window.parent.document.getElementById("adventive_4_164806_gU487381")){ if(window["viewScreenEvents_"+activeScreen][k][1].id != undefined){ window[window["viewScreenEvents_"+activeScreen][k][0]](); } } else{ window[window["viewScreenEvents_"+activeScreen][k][0]](); } } }, visibilitychange: function(){}, hidden: function(monitor) { if (typeof monitorObjects === "undefined") { /* monitorObjects is undefined AT LEAST when closing a sidekick using the close ad action. */ return; } /*Fire Events in hidden array*/ for(var k = 0; k < monitorObjects.length; ++k){ try{ if(monitor._visobj._element == window.parent.document.getElementById("adventive_htmlx_gU487381_viewability_tracker_app_0")){ if(window["leaveViewScreenEvents_"+activeScreen][k][1].id == undefined){ window[window["leaveViewScreenEvents_"+activeScreen][k][0]](); } } else if(monitor._visobj._element == window.parent.document.getElementById("adventive_4_164806_gU487381")){ if(window["viewScreenEvents_"+activeScreen][k][1].id != undefined){ window[window["leaveViewScreenEvents_"+activeScreen][k][0]](); } } else{ window[window["leaveViewScreenEvents_"+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){ try { 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' && parseInt(scrollActions[index].distance) <= newScroll){ scrollActions[index].action(); } else if(direction == 'Less than' && parseInt(scrollActions[index].distance) > newScroll){ scrollActions[index].action(); } } else if (scrollActions[index].direction == 'Out of view') { scrollActions[index].action(); } } } oldScroll = newScroll; } catch(err){} }, false); }, 50); } setupScrollActions(); </script><script type="text/javascript"></script></body></html>"></iframe>
<style type="text/css">
.modal-open #content-wrapper {
position: unset !important;
}
</style>
<style type="text/css">
#adventive_htmlx_gU487381_frame:-webkit-full-screen {
transform: scale(1) !important;
}
</style>
<div id="adventive_htmlx_gU487381_viewability_tracker_app_0" style="height: 10px; width: 4px; top: 0px; margin-top: 50px; left: 1px; position: absolute; opacity: 0; transform: translateZ(0px);"></div>
<style class="advRemoveOnUnload1691335734110" type="text/css">
/**********************************************/
/* first screen image wall w/ contain setting */
/**********************************************/
.advWallImage0ContainerContain {
position: fixed;
top: 0px;
bottom: 0;
left: 0;
right: 0;
max-height: 0px;
z-index: 0;
}
.advWallImage0ContainerContain.transition {
transition: max-height 300ms linear;
}
.advWallImage0ContainerContain.maximized {
max-height: calc(100% - 0px);
}
.advWallImage0BackgroundContain {
position: absolute;
background-image: url(https://assets.adventivecdn.com/cdn-cgi/image/f=auto,q=85/434/35cc5b3b-fdb9-4ad8-a800-3ea0c28e9f2b);
background-repeat: no-repeat;
background-position: center;
background-size: contain;
top: 0;
bottom: 0;
left: 0;
right: 0;
}
/*******************************************/
/* first screen image wall w/ fill setting */
/*******************************************/
.advWallImage0ContainerFill {
position: fixed;
top: 0px;
bottom: 0;
left: 0;
right: 0;
max-height: 0px;
z-index: 0;
}
.advWallImage0ContainerFill.transition {
transition: max-height 300ms linear;
}
.advWallImage0ContainerFill.maximized {
max-height: calc(100% - 0px);
}
.advWallImage0BackgroundFill {
position: absolute;
background-image: url(https://assets.adventivecdn.com/cdn-cgi/image/f=auto,q=85/434/35cc5b3b-fdb9-4ad8-a800-3ea0c28e9f2b);
background-repeat: no-repeat;
background-position: center;
background-size: cover;
top: 0;
bottom: 0;
left: 0;
right: 0;
}
/******************************************************/
/* first screen video wall w/ contain or fill setting */
/******************************************************/
.advWallVideoHtml0ContainerContain,
.advWallVideoHtml0ContainerFill {
position: absolute;
top: 0px;
bottom: 0;
left: 0;
right: 0;
max-height: 0px;
z-index: 0;
overflow: hidden;
}
.advWallVideoHtml0ContainerContain.transition,
.advWallVideoHtml0ContainerFill.transition {
transition: max-height 300ms linear;
}
.advWallVideoHtml0ContainerContain.maximized,
.advWallVideoHtml0ContainerFill.maximized {
max-height: 100%;
}
.advWallVideoHtml0ContainerContain video.advPortrait,
.advWallVideoHtml0ContainerFill video.advLandscape {
height: auto;
left: 50%;
position: absolute;
top: calc(50%);
transform: translate(-50%, -50%);
width: 100%;
}
.advWallVideoHtml0ContainerContain video.advLandscape,
.advWallVideoHtml0ContainerFill video.advPortrait {
height: 100%;
left: 50%;
position: absolute;
top: calc(50%);
transform: translate(-50%, -50%);
width: auto;
}
/****************************/
/* second screen image wall */
/****************************/
.advWallImage1Container {
position: absolute;
top: 203px;
left: 0;
right: 0;
/* setting height to 100% will prevent image from going below the fold bottom: 0; height: 0px; */
z-index: 0;
overflow: hidden;
}
.advWallImage1Container.maximized {
/* setting height to 100% will prevent image from going below the fold height: 100%; */
}
.advWallImage1Image {
max-width: none;
position: relative;
left: 50%;
transform: translate(-50%, 0);
}
.advWallImage1Background {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
background-color: rgb(255, 255, 255);
}
/*****************************/
/* video wall loading screen */
/*****************************/
.advWallVideoLoadingScreen {
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
z-index: 1;
transition: opacity 500ms;
}
.advWallVideoLoadingScreen img {
height: 100%;
width: 100%;
object-fit: cover;
}
</style>
</div>
</div>
</div>
</div>
<div id="div-gpt-ad-mobile-Mobile-Top" class="ad d-md-none" style="text-align:center;margin-top:40px;min-height:78px;">
<script>
renderAd('div-gpt-ad-mobile-Mobile-Top');
</script>
</div>
<div class="mi-logos d-none d-lg-flex">
<div class="logo" style="height:18px">
<a href="http://www.meetings-conventions.com" target="_blank" rel="noopener" title="Meetings & Conventions"><img src="https://ik.imgkit.net/3vlqs5axxjf/NMG/ik-seo/uploadedImages/Pages/Logo_Strip/logo-mandc_300/Meetings-%26-Conventions.jpg" alt="Updated M&C brand logo" title="Updated M&C brand logo"></a>
</div>
<div class="logo" style="height:18px">
<a href="http://www.successfulmeetings.com/" target="_blank" rel="noopener" title="Successful Meetings"><img src="https://ik.imgkit.net/3vlqs5axxjf/NMG/ik-seo/uploadedImages/Pages/Logo_Strip/SM%20Black/Successful-Meetings.jpg" alt="Updated Successful Meetings logo" title="Updated Successful Meetings logo"></a>
</div>
<div class="logo" style="height:16px">
<a href="/Newsletter-Subscription" target="_blank" rel="noopener" title="Meeting News"><img src="https://ik.imgkit.net/3vlqs5axxjf/NMG/ik-seo/uploadedImages/Pages/Logo_Strip/logo-meetingnews_300/Meeting-News.jpg" alt="Updated Meeting News brand logo" title="Updated Meeting News brand logo"></a>
</div>
<div class="logo" style="height:16px">
<a href="/Incentive" target="_blank" rel="noopener" title="Incentive Magazine"><img src="https://ik.imgkit.net/3vlqs5axxjf/NMG/ik-seo/uploadedImages/Pages/Logo_Strip/logo-incentive_300/Incentive-Magazine.jpg" alt="Updated Incentive logo" title="Updated Incentive logo"></a>
</div>
<div class="logo" style="height:18px">
<a href="http://sportstravelmagazine.com/" target="_blank" rel="noopener" title="Meetings & Conventions"><img src="https://ik.imgkit.net/3vlqs5axxjf/NMG/ik-seo/uploadedImages/Pages/Logo_Strip/Updated-SportsTravelLogo70x372/Sports-Travel.jpg" alt="Sports Travel" title="Sports Travel"></a>
</div>
<div class="logo" style="height:18px">
<a href="http://teamsconference.com/" target="_blank" rel="noopener" title="Teams Conference"><img src="https://ik.imgkit.net/3vlqs5axxjf/NMG/ik-seo/uploadedImages/Pages/Logo_Strip/logo-teams_300/Teams.jpg" alt="Updated Teams brand logo" title="Updated Teams brand logo"></a>
</div>
<div class="logo" style="height:16px">
<a href="http://www.meetings-conventions-asia.com" target="_blank" rel="noopener" title="Meetings & Conventions"><img src="https://ik.imgkit.net/3vlqs5axxjf/NMG/ik-seo/uploadedImages/Pages/Logo_Strip/logo-mandc-asia_300/Meetings-%26-Conventions-Asia.jpg" alt="Updated M&C Asia brand logo" title="Updated M&C Asia brand logo"></a>
</div>
<div class="logo" style="height:40px">
<a href="https://www.themeetingsshow.com" target="_blank" rel="noopener" title="Meetings & Conventions"><img src="https://ik.imgkit.net/3vlqs5axxjf/NMG/ik-seo/uploadedImages/Pages/Logo_Strip/the_meetings_show_300/The-Meetings-Show.png" alt="The Meetings Show" title="The Meetings Show"></a>
</div>
</div>
</div>
<div class="container pt-5">
<div class="featured-region">
<div class="row">
<div class="col-md-4 col-sm-12">
<article class="teaser stacked">
<a href="/News/People/Job-changes-career-meetings-events-industry" class="teaser-image" title="Job Changes in the Events Industry"><img src="https://ik.imgkit.net/3vlqs5axxjf/NMG/ik-seo/uploadedImages/Articles/News/People/Screen%20Shot%202023-08-03%20at%202.51.41%20PM%20copy/Job-Changes-in-the-Events-Industry.jpg?tr=w-360%2Ch-240%2Cfo-auto" alt="Job Changes in the Events Industry" title="Job Changes in the Events Industry" class="img-fluid"></a>
<div class="teaser-content">
<a href="/News/People/Job-changes-career-meetings-events-industry" class="title" title="Job Changes in the Events Industry">Job Changes in the Events Industry</a>
<div class="subtitle">New and noteworthy career moves among meeting planners and suppliers.</div>
<div class="teaser-byline">August 4, 2023</div>
</div>
</article>
</div>
<div class="col-md-4 col-sm-12">
<article class="teaser stacked">
<a href="/News/Hotels-and-Resorts/hotel-av-providers-AVMS-Pinnacle-Live-merger" class="teaser-image" title="Event A/V Providers AVMS and Pinnacle Live Merge"><img src="https://ik.imgkit.net/3vlqs5axxjf/NMG/ik-seo/uploadedImages/Articles/News/Hotels_and_Resorts/av-table-maxcam-AdobeStock_392316449-lo/Event-A-V-Providers-AVMS-and-Pinnacle-Live-Merge.jpeg?tr=w-360%2Ch-240%2Cfo-auto" alt="Event A/V Providers AVMS and Pinnacle Live Merge" title="Event A/V Providers AVMS and Pinnacle Live Merge" class="img-fluid"></a>
<div class="teaser-content">
<a href="/News/Hotels-and-Resorts/hotel-av-providers-AVMS-Pinnacle-Live-merger" class="title" title="Event A/V Providers AVMS and Pinnacle Live Merge">Event A/V Providers AVMS and Pinnacle Live Merge</a>
<div class="subtitle">The combined company is now the second-largest in-house audiovisual provider serving hotels in North America.</div>
<div class="teaser-byline">August 4, 2023</div>
</div>
</article>
</div>
<div class="col-md-4 col-sm-12">
<article class="teaser stacked">
<a href="/News/Industry/Airbnb-Rates-Continue-to-Rise" class="teaser-image" title="Airbnb Rates Continue to Rise"><img src="https://ik.imgkit.net/3vlqs5axxjf/NMG/ik-seo/uploadedImages/Articles/News/Industry/Airbnb-Desktop-and-Mobile-square/Airbnb-Rates-Continue-to-Rise.jpg?tr=w-360%2Ch-240%2Cfo-auto" alt="Airbnb Rates Continue to Rise" title="Airbnb Rates Continue to Rise" class="img-fluid"></a>
<div class="teaser-content">
<a href="/News/Industry/Airbnb-Rates-Continue-to-Rise" class="title" title="Airbnb Rates Continue to Rise">Airbnb Rates Continue to Rise</a>
<div class="subtitle">The company reported a second-quarter profit of $650 million, driven by an increase in bookings and slightly higher average rates.</div>
<div class="teaser-byline">August 4, 2023</div>
</div>
</article>
</div>
<div class="col-md-4 col-sm-12">
<article class="teaser stacked">
<a href="/News/Industry/Europeans-Rising-Temperatures-Air-Conditioning" class="teaser-image" title="Sweltering Europeans Give Air Conditioning a Skeptical Embrace"><img src="https://ik.imgkit.net/3vlqs5axxjf/NMG/ik-seo/uploadedImages/Articles/News/Industry/Paris-summer-heat-erika8213-AdobeStock_519063356/Sweltering-Europeans-Give-Air-Conditioning-a-Skept.jpg?tr=w-360%2Ch-240%2Cfo-auto" alt="Sweltering Europeans Give Air Conditioning a Skeptical Embrace" title="Sweltering Europeans Give Air Conditioning a Skeptical Embrace" class="img-fluid"></a>
<div class="teaser-content">
<a href="/News/Industry/Europeans-Rising-Temperatures-Air-Conditioning" class="title" title="Sweltering Europeans Give Air Conditioning a Skeptical Embrace">Sweltering Europeans Give Air Conditioning a Skeptical Embrace</a>
<div class="subtitle">Rising global temperatures are dropping air conditioning from luxury to a necessity in many countries.</div>
<div class="teaser-byline">August 3, 2023</div>
</div>
</article>
</div>
<div class="col-md-4 col-sm-12">
<article class="teaser stacked">
<a href="/Planning-Tips-and-Trends/Event-Planning/Event-Technology/EventMobi-acquires-Run-the-World-virtual-events" class="teaser-image" title="EventMobi Acquires Run the World Virtual-Event Platform"><img src="https://ik.imgkit.net/3vlqs5axxjf/NMG/ik-seo/uploadedImages/Articles/How_To/Event_Planning/Event_Technology/global-virtual-engagement-gankevstock-AdobeStock_601111038-lo/EventMobi-Acquires-Run-the-World-Virtual-Event-Pla.jpeg?tr=w-360%2Ch-240%2Cfo-auto" alt="EventMobi Acquires Run the World Virtual-Event Platform" title="EventMobi Acquires Run the World Virtual-Event Platform" class="img-fluid"></a>
<div class="teaser-content">
<a href="/Planning-Tips-and-Trends/Event-Planning/Event-Technology/EventMobi-acquires-Run-the-World-virtual-events" class="title" title="EventMobi Acquires Run the World Virtual-Event Platform">EventMobi Acquires Run the World Virtual-Event Platform</a>
<div class="subtitle">The provider of event management software is betting on hybrid engagement and wants Run the World customers to be a part of it.</div>
<div class="teaser-byline">August 3, 2023</div>
</div>
</article>
</div>
<div class="col-md-4 col-sm-12">
<article class="teaser stacked">
<a href="/Planning-Tips-and-Trends/Event-Planning/Event-Technology/RingCentral-Hopin-Event-Acquisition" class="teaser-image" title="Hopin Sells Event Assets to RingCentral"><img src="https://ik.imgkit.net/3vlqs5axxjf/NMG/ik-seo/uploadedImages/Articles/How_To/Event_Planning/Event_Technology/Hopin-RingCentral/Hopin-Sells-Event-Assets-to-RingCentral.jpg?tr=w-360%2Ch-240%2Cfo-auto" alt="Hopin Sells Event Assets to RingCentral" title="Hopin Sells Event Assets to RingCentral" class="img-fluid"></a>
<div class="teaser-content">
<a href="/Planning-Tips-and-Trends/Event-Planning/Event-Technology/RingCentral-Hopin-Event-Acquisition" class="title" title="Hopin Sells Event Assets to RingCentral">Hopin Sells Event Assets to RingCentral</a>
<div class="subtitle">RingCentral will broaden its virtual event capabilities while Hopin refocuses on streaming technology and community building.</div>
<div class="teaser-byline">August 2, 2023</div>
</div>
</article>
</div>
</div>
</div>
</div>
<div class="container">
<div id="div-gpt-ad-lg-Middle-Leaderboard-1" class="d-none d-lg-block ad" data-google-query-id="CNKCzcysyIADFdGOgwcdLRgPXw">
<div id="ad-label">Advertisement</div>
<div id="google_ads_iframe_/94102080/nmg_11__container__" style="border: 0pt none;"><iframe id="google_ads_iframe_/94102080/nmg_11" name="google_ads_iframe_/94102080/nmg_11" title="3rd party ad content" width="728" height="90" scrolling="no"
marginwidth="0" marginheight="0" frameborder="0" role="region" aria-label="Advertisement" tabindex="0" style="border: 0px; vertical-align: bottom;" data-load-complete="true" data-google-container-id="c"></iframe></div>
</div>
<content>
<div class="pb-10">
<p> </p>
</div>
</content>
<div class="home container container-section">
<div class="row">
<div class="col-lg-4 col-md-5 col-sm-6 col-12">
<div class="spotlight">
<div class="eyebrow">Spotlight</div>
<a href="/News/Industry/Northstar-Cvent-Meetings-Industry-PULSE-Survey" title="Northstar/Cvent Meetings Industry PULSE Survey"><h2 class="heading-2">Northstar/Cvent Meetings Industry PULSE Survey</h2></a>
<p class="lead-sm">The outlook for meetings business is still bullish, but post-Covid optimism has waned somewhat.</p>
<a href="/News/Industry/Northstar-Cvent-Meetings-Industry-PULSE-Survey" title="Northstar/Cvent Meetings Industry PULSE Survey"><div class="arrow-link"></div></a>
</div>
</div>
<div class="col-lg-8 col-md-7 col-sm-6 col-12">
<a href="/News/Industry/Northstar-Cvent-Meetings-Industry-PULSE-Survey" title="Northstar/Cvent Meetings Industry PULSE Survey"><img src="https://ik.imgkit.net/3vlqs5axxjf/NMG/ik-seo/uploadedImages/Articles/News/Industry/Northstar-Meetings-Group-PULSE-June-2023-hero/Northstar-Cvent-Meetings-Industry-PULSE-Survey.jpg" alt="Northstar/Cvent Meetings Industry PULSE Survey" title="Northstar/Cvent Meetings Industry PULSE Survey" class="img-fluid"></a>
</div>
</div>
</div>
</div>
<div class="container mt-5">
<div class="row">
<div class="col-md-4">
<div id="div-gpt-ad-native-ad-1" class="d-none d-md-block native-ad-container" data-google-query-id="CMqCzcysyIADFdGOgwcdLRgPXw">
<div id="ad-label"></div>
<div id="google_ads_iframe_/94102080/nmg_3__container__" style="border: 0pt none; display: inline-block; width: 336px; height: 280px;"><iframe frameborder="0"
src="https://cd283bc41ab4646d13864ef01c12066a.safeframe.googlesyndication.com/safeframe/1-0-40/html/container.html" id="google_ads_iframe_/94102080/nmg_3" title="3rd party ad content" name="" scrolling="no" marginwidth="0"
marginheight="0" width="336" height="280" data-is-safeframe="true" sandbox="allow-forms allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts allow-top-navigation-by-user-activation" role="region"
aria-label="Advertisement" tabindex="0" data-google-container-id="4" style="border: 0px; vertical-align: bottom;" data-load-complete="true"></iframe></div>
</div>
<div id="div-gpt-ad-mobile-native-ad-1" class="inline-advert d-md-none" style="text-align:center;margin-top:30px;margin-bottom:30px;">
<script>
renderAd('div-gpt-ad-mobile-native-ad-1');
</script>
</div>
</div>
<div class="col-md-4">
<div id="div-gpt-ad-native-ad-2" class="d-none d-md-block native-ad-container" data-google-query-id="CMuCzcysyIADFdGOgwcdLRgPXw" style="display: none;">
<script>
renderAd('div-gpt-ad-native-ad-2');
</script>
<div id="google_ads_iframe_/94102080/nmg_4__container__" style="border: 0pt none; width: 336px; height: 0px;"></div>
</div>
<div id="div-gpt-ad-mobile-native-ad-2" class="inline-advert d-md-none" style="text-align:center;margin-top:30px;margin-bottom:30px;">
<script>
renderAd('div-gpt-ad-mobile-native-ad-2');
</script>
</div>
</div>
<div class="col-md-4">
<div id="div-gpt-ad-native-ad-3" class="d-none d-md-block native-ad-container" data-google-query-id="CMyCzcysyIADFdGOgwcdLRgPXw" style="display: none;">
<script>
renderAd('div-gpt-ad-native-ad-3');
</script>
<div id="google_ads_iframe_/94102080/nmg_5__container__" style="border: 0pt none; width: 336px; height: 0px;"></div>
</div>
<div id="div-gpt-ad-mobile-native-ad-3" class="inline-advert d-md-none" style="text-align:center;margin-top:30px;margin-bottom:30px;">
<script>
renderAd('div-gpt-ad-mobile-native-ad-3');
</script>
</div>
</div>
</div>
</div>
<div class="container pt-5 mt-10">
<div class="pb-5">
<div class="container-narrow">
<div class="aside-full">
<div class="newsletter">
<div class="inner">
<h5 class="heading-5 arrow">Meetings Group Newsletters</h5>
<p class="condensed" data-error-form="newsletter-subscribe2">
<span class="newsletter-intro">Join 200,000 meeting planners that get the latest news and advice.</span>
<span class="newsletter-intro-ext">Join 200,000 meeting planners that get the latest news and advice.</span>
</p>
<div class="newsletter-form jq-Newsletter">
<div class="form-group newsletter-list form-region">
<select id="newsletter-select" multiple="multiple" data-placeholder="Select newsletter(s)" required="" style="display: none;">
<option value="OPTIN_MTGNEWS">Meeting News</option>
<option value="OPTIN_NMG_ASSN">Association News</option>
<option value="OPTIN_NMG_SPORTS">SportsTravel</option>
<option value="OPTIN_NMG_DEALS">Meeting Deals</option>
</select>
<div class="ms-parent multiple" style="width: 100%;"><button type="button" class="ms-choice"><span class="placeholder">Select newsletter(s)</span>
<div></div>
</button>
<div class="ms-drop bottom">
<ul style="max-height: 250px;">
<li class="" style="false"><label class=""><input type="checkbox" data-name="selectItem" value="OPTIN_MTGNEWS"><span>Meeting News</span></label></li>
<li class="" style="false"><label class=""><input type="checkbox" data-name="selectItem" value="OPTIN_NMG_ASSN"><span>Association News</span></label></li>
<li class="" style="false"><label class=""><input type="checkbox" data-name="selectItem" value="OPTIN_NMG_SPORTS"><span>SportsTravel</span></label></li>
<li class="" style="false"><label class=""><input type="checkbox" data-name="selectItem" value="OPTIN_NMG_DEALS"><span>Meeting Deals</span></label></li>
<li class="ms-no-results">No matches found</li>
</ul>
</div>
</div>
</div>
<div class="form-group newsletter-email">
<input type="email" class="form-control" id="email-address" placeholder="Email address" required="">
</div>
<div class="form-group newsletter-state">
<select id="loc" data-placeholder="Location" required="" style="display: none;">
<option value="">></option>
<option disabled="">--- International ---</option>
<option value="01">Asia/PAC/Australia</option>
<option value="02">Africa/Middle East</option>
<option value="03">Europe</option>
<option value="04">Latin America/Caribbean</option>
<option disabled="">--- States ---</option>
<option>
</option>
<option value="111792">Alabama</option>
<option value="111793">Alaska</option>
<option value="111794">Arizona</option>
<option value="111795">Arkansas</option>
<option value="111796">California</option>
<option value="111797">Colorado</option>
<option value="111798">Connecticut</option>
<option value="111799">Delaware</option>
<option value="111839">District of Columbia</option>
<option value="111800">Florida</option>
<option value="111801">Georgia</option>
<option value="111802">Hawaii</option>
<option value="111803">Idaho</option>
<option value="111804">Illinois</option>
<option value="111805">Indiana</option>
<option value="111806">Iowa</option>
<option value="111807">Kansas</option>
<option value="111808">Kentucky</option>
<option value="111809">Louisiana</option>
<option value="111810">Maine</option>
<option value="111811">Maryland</option>
<option value="111812">Massachusetts</option>
<option value="111813">Michigan</option>
<option value="111814">Minnesota</option>
<option value="111815">Mississippi</option>
<option value="111816">Missouri</option>
<option value="111817">Montana</option>
<option value="111818">Nebraska</option>
<option value="111819">Nevada</option>
<option value="111820">New Hampshire</option>
<option value="111821">New Jersey</option>
<option value="111822">New Mexico</option>
<option value="111823">New York</option>
<option value="111824">North Carolina</option>
<option value="111825">North Dakota</option>
<option value="111826">Ohio</option>
<option value="111827">Oklahoma</option>
<option value="111828">Oregon</option>
<option value="111829">Pennsylvania</option>
<option value="111830">Rhode Island</option>
<option value="111831">South Carolina</option>
<option value="111832">South Dakota</option>
<option value="111833">Tennessee</option>
<option value="111834">Texas</option>
<option value="111835">Utah</option>
<option value="111836">Vermont</option>
<option value="111837">Virginia</option>
<option value="111838">Washington</option>
<option value="111840">West Virginia</option>
<option value="111841">Wisconsin</option>
<option value="111842">Wyoming</option>
<option value="111769">Alberta</option>
<option value="111770">British Columbia</option>
<option value="111771">Manitoba</option>
<option value="111772">New Brunswick</option>
<option value="111773">Newfoundland & Labrador</option>
<option value="111774">Northwest Territories</option>
<option value="111775">Nova Scotia</option>
<option value="205309">Nunavut</option>
<option value="111776">Ontario</option>
<option value="111777">Prince Edward Island</option>
<option value="111778">Quebec</option>
<option value="111779">Saskatchewan</option>
<option value="111780">Yukon Territory</option>
</select>
<div class="ms-parent has-placeholder" style="width: 100%;"><button type="button" class="ms-choice"><span class="placeholder">Location</span>
<div></div>
</button>
<div class="ms-drop bottom">
<ul style="max-height: 250px;">
<li class="selected" style="false"><label class=""><input type="radio" data-name="selectItem" checked="checked" value=""><span>></span></label></li>
<li class="" style="false"><label class="disabled"><input type="radio" data-name="selectItem" disabled="disabled" value="--- International ---"><span>--- International ---</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="01"><span>Asia/PAC/Australia</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="02"><span>Africa/Middle East</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="03"><span>Europe</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="04"><span>Latin America/Caribbean</span></label></li>
<li class="" style="false"><label class="disabled"><input type="radio" data-name="selectItem" disabled="disabled" value="--- States ---"><span>--- States ---</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value=""><span>
</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="111792"><span>Alabama</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="111793"><span>Alaska</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="111794"><span>Arizona</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="111795"><span>Arkansas</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="111796"><span>California</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="111797"><span>Colorado</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="111798"><span>Connecticut</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="111799"><span>Delaware</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="111839"><span>District of Columbia</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="111800"><span>Florida</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="111801"><span>Georgia</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="111802"><span>Hawaii</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="111803"><span>Idaho</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="111804"><span>Illinois</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="111805"><span>Indiana</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="111806"><span>Iowa</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="111807"><span>Kansas</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="111808"><span>Kentucky</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="111809"><span>Louisiana</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="111810"><span>Maine</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="111811"><span>Maryland</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="111812"><span>Massachusetts</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="111813"><span>Michigan</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="111814"><span>Minnesota</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="111815"><span>Mississippi</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="111816"><span>Missouri</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="111817"><span>Montana</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="111818"><span>Nebraska</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="111819"><span>Nevada</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="111820"><span>New Hampshire</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="111821"><span>New Jersey</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="111822"><span>New Mexico</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="111823"><span>New York</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="111824"><span>North Carolina</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="111825"><span>North Dakota</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="111826"><span>Ohio</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="111827"><span>Oklahoma</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="111828"><span>Oregon</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="111829"><span>Pennsylvania</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="111830"><span>Rhode Island</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="111831"><span>South Carolina</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="111832"><span>South Dakota</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="111833"><span>Tennessee</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="111834"><span>Texas</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="111835"><span>Utah</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="111836"><span>Vermont</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="111837"><span>Virginia</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="111838"><span>Washington</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="111840"><span>West Virginia</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="111841"><span>Wisconsin</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="111842"><span>Wyoming</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="111769"><span>Alberta</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="111770"><span>British Columbia</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="111771"><span>Manitoba</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="111772"><span>New Brunswick</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="111773"><span>Newfoundland & Labrador</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="111774"><span>Northwest Territories</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="111775"><span>Nova Scotia</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="205309"><span>Nunavut</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="111776"><span>Ontario</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="111777"><span>Prince Edward Island</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="111778"><span>Quebec</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="111779"><span>Saskatchewan</span></label></li>
<li class="" style="false"><label class=""><input type="radio" data-name="selectItem" value="111780"><span>Yukon Territory</span></label></li>
<li class="ms-no-results">No matches found</li>
</ul>
</div>
</div>
</div>
<div class="form-group newsletter-submit">
<button type="submit" class="btn btn-primary btn-lg btn-newsletter">Sign Up Now</button>
</div>
<div class="form-group error" style="display: none; color: Red"></div>
</div>
<div class="thirdpartyOpt pnlThirdParty" style="display: none;"> Northstar Meetings Group may send me relevant insights and offers from industry experts & suppliers. <table id="BtnLst_thirdpartyOpt"
class="thirdpartyList thirdpartyList-float" style="border-style: None;">
<tbody>
<tr>
<td>
<input id="BtnLst_thirdpartyOpt_0" type="radio" name="BtnLst_thirdpartyOpt" value="1"><label for="BtnLst_thirdpartyOpt_0">Yes</label>
</td>
<td>
<input id="BtnLst_thirdpartyOpt_1" type="radio" name="BtnLst_thirdpartyOpt" value="2"><label for="BtnLst_thirdpartyOpt_1">No</label>
</td>
</tr>
</tbody>
</table>
</div>
<p class="form-copy">
<input id="Btnterms" type="checkbox" name="BtnLst_terms" value="1" style="display: none;"> I accept the
<a href="http://adhost1.ntmllc.com/twxads/T&C.htm" target="_blank" rel="noopener" title="Terms and Conditions">Terms and Conditions</a> and
<a href="http://adhost1.ntmllc.com/twxads/privacy_0404.htm" target="_blank" rel="noopener" title="Privacy Policy">Privacy Policy</a>
</p>
</div>
</div>
</div>
</div>
</div>
<div class="home container container-section">
<div class="row">
<div class="col-lg-4 col-md-5 col-sm-6 col-12">
<div class="spotlight">
<div class="eyebrow">Spotlight</div><a href="/Northstar-Learning-Academy" title="Northstar Learning Academy"><h2 class="heading-2">Northstar Learning Academy</h2></a>
<p class="lead-sm">On-demand education from experienced industry professionals.</p><a href="/Northstar-Learning-Academy" title="Northstar Learning Academy"><div class="arrow-link"></div></a>
</div>
</div>
<div class="col-lg-8 col-md-7 col-sm-6 col-12">
<a href="/Northstar-Learning-Academy" title="Northstar Learning Academy"><img src="https://ik.imgkit.net/3vlqs5axxjf/NMG/ik-seo/uploadedImages/Test/Josh/northstar-learning-academy/Northstar-Learning-Academy.jpg" alt="Northstar Learning Academy" title="Northstar Learning Academy" class="img-fluid"></a>
</div>
</div>
</div>
<div class="pt-4 pb-4">
<div class="container">
<hr class="w-100mt-13 mb-13">
</div>
<h3 class="heading-3 heading-2-sm pb-3 mb-3 text-center">Featured Videos</h3>
<div class="row">
<div class="col-md-8 col-sm-6 col-12">
<div class="video-card video featured">
<div class="video-wrapper"><img src="https://ik.imgkit.net/3vlqs5axxjf/NMG/ik-seo/uploadedImages/Articles/Spotlights/Video_Spotlight/4.9.23_Ballpark17%20(1)/Philadelphia-Scores-With-Sports-Events.jpg?tr=w-730%2Ch-410%2Cfo-auto"
alt="Philadelphia Sports Vision Video" title="Philadelphia Sports Vision Video"
class="img-fluid"><a href="/Supplied-Content/Video-Spotlight/Philadelphia-Sports-Events" title="Philadelphia Scores With Sports Events"><div class="play-button"></div></a></div>
<div class="video-card--details">
<div class="title"><a href="/Supplied-Content/Video-Spotlight/Philadelphia-Sports-Events" title="Philadelphia Scores With Sports Events">Philadelphia Scores With Sports Events</a></div>
</div>
</div>
</div>
<div class="col-md-4 col-sm-6 col-12 teaser-grid">
<article class="teaser video">
<a href="/Supplied-Content/Video-Spotlight/Discover-Newport-RI" class="teaser-image" title="Newport, RI: Small But Mighty"><img src="https://ik.imgkit.net/3vlqs5axxjf/NMG/ik-seo/uploadedImages/Articles/Spotlights/Video_Spotlight/newport%20harbor_day_600x400/Newport-RI-Small-But-Mighty.jpg?tr=w-156%2Ch-88%2Cfo-auto" alt="Newport Vid Spot Harbor main img" title="Newport Vid Spot Harbor main img" class="img-fluid"></a>
<div class="teaser-content"><a href="/Supplied-Content/Video-Spotlight/Discover-Newport-RI" class="title" title="Newport, RI: Small But Mighty">Newport, RI: Small But Mighty</a></div>
</article>
<article class="teaser video">
<a href="/Supplied-Content/Video-Spotlight/Oakland-California-meetings" class="teaser-image" title="Oakland’s Vibrant and Inspiring Meeting Offerings"><img src="https://ik.imgkit.net/3vlqs5axxjf/NMG/ik-seo/uploadedImages/Articles/Spotlights/Video_Spotlight/SF_Oak_Oakland_Dreams_Tight_2_/Oakland%e2%80%99s-Vibrant-and-Inspiring-Meeting-Offerings.jpg?tr=w-156%2Ch-88%2Cfo-auto" alt="Oakland Calif vision video mural" title="Oakland Calif vision video mural" class="img-fluid"></a>
<div class="teaser-content"><a href="/Supplied-Content/Video-Spotlight/Oakland-California-meetings" class="title" title="Oakland’s Vibrant and Inspiring Meeting Offerings">Oakland’s Vibrant and Inspiring Meeting Offerings</a></div>
</article>
<article class="teaser video">
<a href="/Supplied-Content/Video-Spotlight/Philadelphia-Life-Sciences-Meetings" class="teaser-image" title="Why Philadelphia Is a Premier Hub for Life Sciences Events & Innovation"><img src="https://ik.imgkit.net/3vlqs5axxjf/NMG/ik-seo/uploadedImages/Articles/Spotlights/Video_Spotlight/Pennsylvania%20Convention%20Center%20Broad%20Street%20Atrium%20photo%20by%20Paul%20Loftland%20for%20PHLCVB/Why-Philadelphia-Is-a-Premier-Hub-for-Life-Science.jpg?tr=w-156%2Ch-88%2Cfo-auto" alt="Philadelphia Vision Vid May" title="Philadelphia Vision Vid May" class="img-fluid"></a>
<div class="teaser-content">
<a href="/Supplied-Content/Video-Spotlight/Philadelphia-Life-Sciences-Meetings" class="title" title="Why Philadelphia Is a Premier Hub for Life Sciences Events & Innovation">Why Philadelphia Is a Premier Hub for Life Sciences Events & Innovation</a>
</div>
</article>
<article class="teaser video">
<a href="/Supplied-Content/Video-Spotlight/Meet-in-Arizona" class="teaser-image" title="Meet in Arizona"><img src="https://ik.imgkit.net/3vlqs5axxjf/NMG/ik-seo/uploadedImages/Articles/Spotlights/Video_Spotlight/tussp-exterior-0019-hor-clsc%20(1)/Meet-in-Arizona.jpg?tr=w-156%2Ch-88%2Cfo-auto" alt="Arizona Video image" title="Arizona Video image" class="img-fluid"></a>
<div class="teaser-content"><a href="/Supplied-Content/Video-Spotlight/Meet-in-Arizona" class="title" title="Meet in Arizona">Meet in Arizona</a></div>
</article>
<article class="teaser video">
<a href="/Supplied-Content/Video-Spotlight/Sonoma-California-meetings" class="teaser-image" title="Business and Natural Beauty Meet in Sonoma"><img src="https://ik.imgkit.net/3vlqs5axxjf/NMG/ik-seo/uploadedImages/Articles/Spotlights/Video_Spotlight/Sonoma%20vineyard_adobe%20stock_resized/Business-and-Natural-Beauty-Meet-in-Sonoma.jpg?tr=w-156%2Ch-88%2Cfo-auto" alt="Sonoma vineyard visit california" title="Sonoma vineyard visit california" class="img-fluid"></a>
<div class="teaser-content"><a href="/Supplied-Content/Video-Spotlight/Sonoma-California-meetings" class="title" title="Business and Natural Beauty Meet in Sonoma">Business and Natural Beauty Meet in Sonoma</a></div>
</article>
</div>
</div>
</div>
</div>
</form>
<form class="venue-compare-form ven-cmp">
<div class="form-group">
</div>
</form>
<form class="request-proposal-form ven-rfp">
</form>
Text Content
* About Us About Northstar Meetings GroupAbout IncentiveMeet the Team * * Venue Comparison (0) * * Proposal Request (0) * My Collection (0) * Login/ Sign Up Northstar Meetings Group Find venuesFind event venue Search Close * News * Meetings Marketer * Convention and Visitor Bureaus * Coronavirus * Event Venues * Hotels and Resorts * Industry * Industry Associations * Trends to Watch * Destination Guides * Far West * Northeast * Midwest * Southeast * Southwest * International * Planning Tips & Trends * Ask the Expert * Attendee Engagement * Contracts * Event Ideas * Event Technology * Eventful Podcast * Food and Beverage * Research and White Papers * Partner Spotlights * Site Selection * Sustainability * Incentive * Northstar / Cvent Incentive PULSE Survey * Strategy * Travel * Corporate Gifts * Planning Tools * Find Event Venue * Meeting Deals * Northstar's Vision Videos * Events Calendar * Live Events * CMP Webinars * Events News * Career Development * Northstar Learning Academy * 2022 Salary Survey * Career Advice * Meeting Jobs * Stellas * News * News * News Overview * Meetings Marketer * Convention and Visitor Bureaus * Coronavirus * Event Venues * Hotels and Resorts * Industry * Industry Associations * Trends to Watch * Destination Guides * Destination Guides * Destination Guides Overview * Far West * Northeast * Midwest * Southeast * Southwest * International * Planning Tips & Trends * Planning Tips & Trends * Planning Tips & Trends Overview * Ask the Expert * Attendee Engagement * Contracts * Event Ideas * Event Technology * Eventful Podcast * Food and Beverage * Research and White Papers * Partner Spotlights * Site Selection * Sustainability * Incentive * Incentive * Incentive Overview * Northstar / Cvent Incentive PULSE Survey * Strategy * Travel * Corporate Gifts * Planning Tools * Planning Tools * Planning Tools Overview * Find Event Venue * Meeting Deals * Northstar's Vision Videos * Events Calendar * Events Calendar * Events Calendar Overview * Live Events * CMP Webinars * Events News * Career Development * Career Development * Career Development Overview * Northstar Learning Academy * 2022 Salary Survey * Career Advice * Meeting Jobs * Stellas * Stellas * Stellas Overview * About Us * About Us * About Northstar Meetings Group * About Incentive * Meet the Team * Venue Comparison (0) * Proposal Request (0) * My Collection (0) * Login/ Sign Up Advertisement Video Player 00:03 00:00 00:15 Job Changes in the Events Industry New and noteworthy career moves among meeting planners and suppliers. August 4, 2023 Event A/V Providers AVMS and Pinnacle Live Merge The combined company is now the second-largest in-house audiovisual provider serving hotels in North America. August 4, 2023 Airbnb Rates Continue to Rise The company reported a second-quarter profit of $650 million, driven by an increase in bookings and slightly higher average rates. August 4, 2023 Sweltering Europeans Give Air Conditioning a Skeptical Embrace Rising global temperatures are dropping air conditioning from luxury to a necessity in many countries. August 3, 2023 EventMobi Acquires Run the World Virtual-Event Platform The provider of event management software is betting on hybrid engagement and wants Run the World customers to be a part of it. August 3, 2023 Hopin Sells Event Assets to RingCentral RingCentral will broaden its virtual event capabilities while Hopin refocuses on streaming technology and community building. August 2, 2023 Advertisement Spotlight NORTHSTAR/CVENT MEETINGS INDUSTRY PULSE SURVEY The outlook for meetings business is still bullish, but post-Covid optimism has waned somewhat. MEETINGS GROUP NEWSLETTERS Join 200,000 meeting planners that get the latest news and advice. Join 200,000 meeting planners that get the latest news and advice. Meeting NewsAssociation NewsSportsTravelMeeting Deals Select newsletter(s) * Meeting News * Association News * SportsTravel * Meeting Deals * No matches found > --- International --- Asia/PAC/Australia Africa/Middle East Europe Latin America/Caribbean --- States --- Alabama Alaska Arizona Arkansas California Colorado Connecticut Delaware District of Columbia Florida Georgia Hawaii Idaho Illinois Indiana Iowa Kansas Kentucky Louisiana Maine Maryland Massachusetts Michigan Minnesota Mississippi Missouri Montana Nebraska Nevada New Hampshire New Jersey New Mexico New York North Carolina North Dakota Ohio Oklahoma Oregon Pennsylvania Rhode Island South Carolina South Dakota Tennessee Texas Utah Vermont Virginia Washington West Virginia Wisconsin Wyoming Alberta British Columbia Manitoba New Brunswick Newfoundland & Labrador Northwest Territories Nova Scotia Nunavut Ontario Prince Edward Island Quebec Saskatchewan Yukon Territory Location * > * --- International --- * Asia/PAC/Australia * Africa/Middle East * Europe * Latin America/Caribbean * --- States --- * * Alabama * Alaska * Arizona * Arkansas * California * Colorado * Connecticut * Delaware * District of Columbia * Florida * Georgia * Hawaii * Idaho * Illinois * Indiana * Iowa * Kansas * Kentucky * Louisiana * Maine * Maryland * Massachusetts * Michigan * Minnesota * Mississippi * Missouri * Montana * Nebraska * Nevada * New Hampshire * New Jersey * New Mexico * New York * North Carolina * North Dakota * Ohio * Oklahoma * Oregon * Pennsylvania * Rhode Island * South Carolina * South Dakota * Tennessee * Texas * Utah * Vermont * Virginia * Washington * West Virginia * Wisconsin * Wyoming * Alberta * British Columbia * Manitoba * New Brunswick * Newfoundland & Labrador * Northwest Territories * Nova Scotia * Nunavut * Ontario * Prince Edward Island * Quebec * Saskatchewan * Yukon Territory * No matches found Sign Up Now Northstar Meetings Group may send me relevant insights and offers from industry experts & suppliers. Yes No I accept the Terms and Conditions and Privacy Policy Spotlight NORTHSTAR LEARNING ACADEMY On-demand education from experienced industry professionals. -------------------------------------------------------------------------------- FEATURED VIDEOS Philadelphia Scores With Sports Events Newport, RI: Small But Mighty Oakland’s Vibrant and Inspiring Meeting Offerings Why Philadelphia Is a Premier Hub for Life Sciences Events & Innovation Meet in Arizona Business and Natural Beauty Meet in Sonoma -------------------------------------------------------------------------------- FIND EVENT VENUE Keyword Guest Rooms Any quantity less than 100 less than 200 less than 300 300 or more 500 and over Any quantity * Any quantity * less than 100 * less than 200 * less than 300 * 300 or more * 500 and over * No matches found Event Space Any amount Less than 10,000 sq. ft. 10,000 or more sq. ft. 30,000 or more sq. ft. 50,000 or more sq. ft. Any amount * Any amount * Less than 10,000 sq. ft. * 10,000 or more sq. ft. * 30,000 or more sq. ft. * 50,000 or more sq. ft. * No matches found Hotel Classification Any All Deluxe -- Superior Deluxe -- Deluxe -- Moderate Deluxe All First Class -- Superior First Class -- First Class -- Limited-Service First Class -- Moderate First Class All Tourist Class -- Superior Tourist Class -- Tourist Class -- Moderate Tourist Class Any * Any * All Deluxe * -- Superior Deluxe * -- Deluxe * -- Moderate Deluxe * All First Class * -- Superior First Class * -- First Class * -- Limited-Service First Class * -- Moderate First Class * All Tourist Class * -- Superior Tourist Class * -- Tourist Class * -- Moderate Tourist Class * No matches found Find Your Next Event Venue FEATURED HOTELS 10 Superior Deluxe Wynn Las Vegas 5 Limited Service First Class Hilton Garden Inn Layton 9 Deluxe The Venetian Resort Las Vegas PARTNER CONTENT They Say Everything Is Bigger in Texas and Loews Agrees Sponsored by Loews Hotels & Co August 1, 2023 Fredericksburg: An Unforgettable Meetings Experience Sponsored by Fredericksburg Convention & Visitor Bureau August 1, 2023 More Fun Than Just Sun Sponsored by Aruba Tourism Authority July 15, 2023 Meet in Fort Myers - Islands, Beaches and Neighborhoods Sponsored by Fort Myers - Islands, Beaches and Neighborhoods June 15, 2023 Rosen Centre: A Balance of Business & Bonding Sponsored by Rosen Centre June 1, 2023 Advertisement * News * Destination Guides * Planning Tips & Trends * Incentive * Planning Tools * Events Calendar * Career Development * The Stella Awards * About Us * Terms * Privacy * Advertise With Us * Facebook * Twitter * LinkedIn * Instagram * Newsletter Signup * Magazine Subscriptions Northstar Travel Media Sites * Meetings & Conventions * Meetings & Conventions Asia * Successful Meetings * Incentive * Meeting News * SportsTravel * Retail Travel * Travel Technology * Corporate Travel * Hotel Investment * Data Products * Star Service Online * See all Northstar Brands Copyright © 2023 by Northstar Travel Media LLC. All Rights Reserved. 301 Route 17 N, Suite 1150, Rutherford, NJ 07070 USA Telephone: (201) 902-2000 × YOU HAVE SUCCESSFULLY SUBSCRIBED TO THE FOLLOWING NEWSLETTERS: Done × THANK YOU FOR SIGNING UP TO RECEIVE UPDATES ABOUT HOSTING MEETINGS AND EVENTS IN THESE REGIONS: Done × HELLO Register or Log in to take advantage of the Northstar Meetings Group compare features. Register Login × MY COLLECTIONS Signup or login to create collections Register Login × MY COLLECTIONS Signup or login to access article Register Login × HELLO Please Log in or Register to continue with access to the Northstar Meetings Group Find Event Venue Tool Register Login × SALARY SURVEY Log-in or Register and get immediate access to 2018 Salary Survey, exclusively for meeting planners. Find out: -Average salary for corporate, association and third-party planners -How meeting planner salaries have trended over the last two years -Stats & trends on the gender pay gap in the meetings industry And much more! Register Login × Register Login Sign Up × Venue Comparison × You can return to this list any time via the navigation menus at the top of the page. Request Proposals × You can return to this list any time via the navigation menus at the top of the page. PRIVACY PREFERENCE CENTER When you visit any website, it may store or retrieve information on your browser, mostly in the form of cookies. This information might be about you, your preferences or your device and is mostly used to make the site work as you expect it to. The information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies. Click on the different category headings to find out more and change our default settings. However, blocking some types of cookies may impact your experience of the site and the services we are able to offer. More information Allow All MANAGE CONSENT PREFERENCES STRICTLY NECESSARY COOKIES Always Active Strictly Necessary Cookies These cookies are necessary for the website to function and cannot be switched off in our systems. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms. You can set your browser to block or alert you about these cookies, but some parts of the site will not then work. These cookies do not store any personally identifiable information. * PERFORMANCE COOKIES Required Cookies These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us to know which pages are the most and least popular and see how visitors move around the site. All information these cookies collect is aggregated and therefore anonymous. If you do not allow these cookies we will not know when you have visited our site, and will not be able to monitor its performance. * FUNCTIONAL COOKIES Required Cookies These cookies enable the website to provide enhanced functionality and personalisation. They may be set by us or by third party providers whose services we have added to our pages. If you do not allow these cookies then some or all of these services may not function properly. TARGETING COOKIES Targeting Cookies These cookies may be set through our site by our advertising partners. They may be used by those companies to build a profile of your interests and show you relevant adverts on other sites. They do not store directly personal information, but are based on uniquely identifying your browser and internet device. If you do not allow these cookies, you will experience less targeted advertising. Confirm My Choices Back Button Back PERFORMANCE COOKIES Vendor Search Search Icon Filter Icon Clear Filters Information storage and access Apply Consent Leg.Interest All Consent Allowed Select All Vendors Select All Vendors All Consent Allowed * 33ACROSS HOST DESCRIPTION VIEW COOKIES REPLACE-WITH-DYANMIC-HOST-ID * Name cookie name * 33ACROSS View Privacy Notice 3 Purposes REPLACE-WITH-DYANMIC-VENDOR-ID Arrow Consent Purposes Location Based Ads Consent Allowed Legitimate Interest Purposes Personalize Require Opt-Out Special Purposes Location Based Ads Features Location Based Ads Special Features Location Based Ads Confirm My Choices Cookies Button By clicking “Accept All Cookies”, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage, and assist in our marketing efforts. Cookie Policy Accept All Cookies Cookies Settings