//Creative template: Webs - 3x3 - Video Player
window.supportsAds = true;

//LiveIntent Global
if (window.liModuleEnabled === undefined) {
		window.liModuleEnabled = Math.random() < 0.9;
		window.liTreatmentRate = 0.9;
}

!function(){try{document.getElementsByClassName("right-rail")[0].classList.remove("left-align-children")}catch(e){}}();

//motorola userid3p override
!function(){try{window.adInfo&&window.adInfo.partner&&"motorolawidget"==window.adInfo.partner&&(window.adInfo.userid3p="active")}catch(a){}}();



/*================
 Move top slot on mWeb
==================*/
!function(){try{var e,t,n,a=serverAdsOnPageLite.top.adUnitCode;if(t=document.getElementById("top"),-1!=a.indexOf("country_home")&&-1!=a.indexOf("mweb")&&((e=document.getElementsByClassName("nearby-locations")[0]).parentNode.insertBefore(t,e),t.style.padding="16px 0px 16px 0px",t.style.background="white",n=document.getElementsByClassName("zone-centerWell1")[0],e.parentNode.insertBefore(n,e)),-1!=a.indexOf("local_home")&&-1!=a.indexOf("mweb")&&(e=document.getElementsByClassName("cur-con-weather-card")[0]).parentNode.insertBefore(t,e),-1!=a.indexOf("local_home")&&-1!=a.indexOf("/web")){e=document.getElementsByClassName("sunrise-sunset")[0];var o=document.getElementById("native");e.parentNode.insertBefore(o,e)}}catch(r){}}();


/*================
CONTENT Key-VALUES
=================*/
!function(){if(window.adInfo){var e="/6581/web/us/video_player/news_info/hurricane";window.adInfo.content=window.adInfo.content||"",window.adInfo.from=window.adInfo.from||"";var n=function(e,n){""!=window.adInfo[n]&&(window.adInfo[n]+=","),window.adInfo[n]+=e;try{window.googletag.cmd.push(()=>{window.googletag.pubads().setTargeting(n,e)})}catch(t){}};try{let t=new Proxy(new URLSearchParams(window.location.search),{get:(e,n)=>e.get(n)});-1!=e.indexOf("allergies")&&t.name&&n(t.name,"content"),t.from&&n(t.from,"from"),t.day&&n(t.day,"fdate")}catch(o){}try{let a=window.location.href;-1!=e.indexOf("content_landing")&&(-1!=a.indexOf("/business")&&n("business","content"),-1!=a.indexOf("/climate")&&n("climate","content"),-1!=a.indexOf("/health-wellness")&&n("health-wellness","content"),-1!=a.indexOf("/space-news")&&n("space-news","content"),-1!=a.indexOf("/leisure-recreation")&&n("leisure-recreation","content"),-1!=a.indexOf("/sports")&&n("sports","content"),-1!=a.indexOf("/travel")&&n("travel","content"))}catch(c){}}}();

//Gamera Fill
window.gamera = window.gamera || {};
window.gamera.cmd = window.gamera.cmd || [];
window.gamera.cmd.push(function() {
    try{
		let ufill = window?.gamera?.getUserMetrics()?.avg_fillrate || undefined;
		if (ufill){
			ufill = (Math.round(ufill * 20) / 20).toString();
  			window.googletag.cmd.push(() => {
  				window.googletag.pubads().setTargeting("ufill", ufill);
  			});
		}
	} catch (e){}
	try {
		let uvists = window?.gamera?.getUserMetrics()?.visits || undefined;
		if (uvists) {
			if (uvists.last_7){
	  			window.googletag.cmd.push(() => {
	  				window.googletag.pubads().setTargeting("uvisits_7", uvists.last_7.toString());
	  			});
			}
			if (uvists.last_14){
	  			window.googletag.cmd.push(() => {
	  				window.googletag.pubads().setTargeting("uvisits_14", uvists.last_14.toString());
	  			});
			}
			if (uvists.last_30){
	  			window.googletag.cmd.push(() => {
	  				window.googletag.pubads().setTargeting("uvisits_30", uvists.last_30.toString());
	  			});
			}
			if (uvists.lifetime){
	  			window.googletag.cmd.push(() => {
	  				window.googletag.pubads().setTargeting("uvisits_life", uvists.lifetime.toString());
	  			});
			}
		}
	} catch (e) {}
});

//ucpm adjust
window.gamera.cmd.push(function(){let _="/6581/web/us/video_player/news_info/hurricane".split("/")[2],e=1,$=1,a=window?.gamera?.getOnPageSegments()?.filter(_=>/^user_cpm/.test(_)).join(",")||void 0,t=window?.gamera?.getOnPageSegments()?.filter(_=>/^user_fillrate/.test(_)).join(",")||void 0;switch(a&&(a=parseFloat(a.split("_").pop())),t&&(t=parseFloat(t.split("_").pop())),_){case"web":a&&(e=a<4.46?.75:a<5.21?1:a<6.21?1.1:1.5),t&&($=t<.26?.9:t<.51?1:t<.76?1.2:1.4);break;case"mweb":a&&(e=a<2.96?.75:a<3.71?1:a<4.71?1.1:1.5),t&&($=t<.26?.75:t<.51?1:t<.76?1.1:1.2);break;case"ios":a&&(e=a<.71?.75:a<.91?1:a<1.21?1.1:1.5),t&&($=t<.26?.6:t<.51?.75:t<.76?1.1:1.5);break;case"android":a&&(e=a<2.21?.75:a<2.66?1:a<2.96?1.1:1.5),t&&($=t<.26?.6:t<.51?.75:t<.76?.9:1.2)}let o,r,s=!1;if(.51>Math.random()&&(s=!0),s)for(let[g,n]of window.adsOnPage)(o=window.adsOnPage.get(g)).upr&&(r=(r=o.upr*e*$)<1?Math.round(20*r)/20:r<2?Math.round(10*r)/10:r<10?Math.round(4*r)/4:Math.round(1*r)/1,o.upr=r.toFixed(2));window.googletag.cmd.push(()=>{let _=s?"ucpm_m"+e+"f"+$+"_on":"ucpm_m"+e+"f"+$+"_off";window.googletag.pubads().setTargeting("upradjust",_)})});

//LVPD
window.googletag.cmd.push(()=>{let g=[];try{let p=window?.adInfo?.ucpm||0;(p=parseFloat(p))<1.5&&g.push("1.50"),p<2.5&&g.push("2.50"),p<3.5&&g.push("3.50")}catch(s){}-1!="/6581/web/us/video_player/news_info/hurricane".indexOf("ios")&&g.push("3.50"),g&&window.googletag.pubads().setTargeting("lvpd",g)});

//Longitude Video Player 
!function(){window.AWNowLivePlayerPoster="https://www.awxcdn.com/adc/AW-Now.jpg";let e="/6581/web/us/video_player/news_info/hurricane",t=e.split("/"),a=document.getElementById("connatix"),r=!1,i=!1;try{if(!["us","ca","de","gb","es","it","fr","eur"].includes(t[3])||-1==window.adInfo.lang.indexOf("en")){a&&a.remove();return}}catch(l){}if(void 0===a||null==a){if((a=document.createElement("div")).id="connatix",a.setAttribute("class","content-module"),"alerts"==t[6]&&"us"==t[3])document.getElementsByClassName("page-content")[0].appendChild(a);else if("minutecast"==t[6]&&"us"==t[3])i=document.getElementsByClassName("base-map-cta")[0];else{if("wintercast"!=t[6]||"us"!=t[3])return;i=document.getElementById("house-ad-1")}}switch(t[6]){case"country_home":break;case"video_wall":a.remove();return;case"local_home":i=document.getElementsByClassName("daily-list")[0];break;case"radar":case"daily":i="mweb"==t[2]?document.getElementById("middle"):document.getElementById("native");break;case"hourly":let o=document.getElementsByClassName("hour");o.length>3&&(i=o[3]),t[2];break;case"extended":let n=document.getElementsByClassName("daily-wrapper");n.length>5&&(i=n[2]),"web"==t[2]&&(r=!0);break;case"minutecast":"web"==t[2]&&(i=document.getElementById("native")),t[2];break;case"air_quality":i=document.getElementById("native"),t[2]}try{i&&i.parentNode.insertBefore(a,i)}catch(p){}window.watchAWNowLive=function(){if(document.getElementById("outstream_display_backfill_container")&&(document.getElementById("lngtd_outstream").style.minHeight="0",document.getElementById("outstream_display_backfill_container").remove()),document.getElementById("live_fallback")&&document.getElementById("live_fallback").children.length>0){window.startLiveFallbackPlayer();return}window.interruptStartLive()},window.floatAWVideoPlayer=function(e,t){t&&(window.floatAWVideoPlayerStop=!0);let a=document.getElementsByClassName("video-player-wrapper")[0];if(e&&!window.floatAWVideoPlayerStop){try{document.getElementById("connatix").style.minHeight=getComputedStyle(a).height}catch(r){}a.classList.add("float")}else a.classList.remove("float")};let s=document.createElement("div");s.setAttribute("class","video-player-wrapper"),s.innerHTML='<h2 class="video-title">AccuWeather NOW<div onclick="floatAWVideoPlayer(false,true)" id="closeVideoFloat" class="close-button"><svg class="close-icon" xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 18 18"><g fill-rule="evenodd" transform="translate(-1 -1)"><rect width="2" height="24" x="9" y="-2" rx="1" transform="rotate(45 10 10)"></rect><rect width="2" height="24" x="9" y="-2" rx="1" transform="rotate(-45 10 10)"></rect></g></svg></div></h2><div id="lngtd_outstream"></div><div class="cta-container"><div class="thumb-info-wrapper"><div onclick="watchAWNowLive()" class="icon-play"></div><div class="thumb-info"><div class="thumb-title">Watch Live</div></div><div class="customMute"></div></div></div>';let d="#lngtd_outstream{background-image: url(https://www.awxcdn.com/adc/AW-Now.jpg);background-size: 100%;background-repeat: no-repeat;width:100%;aspect-ratio:16/9}.video-player-wrapper,.video-title{color:hsla(0,0%,100%,.6);font-size:.75rem;background-color:#fff}.video-player-wrapper .cta-container h3,.video-title{font-weight:700;text-transform:uppercase;color:rgba(0,0,0,.6)}.video-player-wrapper{border-radius:6px}.video-player-wrapper .video-title{letter-spacing:.5px;padding:20px 0 12px 20px;border-radius: 6px 6px 0 0}.video-player-wrapper .cta-container{-webkit-box-orient:vertical;-webkit-box-direction:normal;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:12px;padding:20px}.video-player-wrapper .cta-container .thumb-info-wrapper{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;cursor:pointer}.video-player-wrapper .cta-container .thumb-info-wrapper .icon-play{-ms-flex-negative:0;background:url(https://www.awxcdn.com/adc-assets/images/components/content/video-player/play_dark_circle.svg) 50%/cover no-repeat;flex-shrink:0;height:40px;margin-right:12px;width:40px;color:rgba(0, 0, 0, .35);font-size: 3.25em;}.video-player-wrapper .cta-container .thumb-info-wrapper .thumb-info .thumb-title{-webkit-box-orient:vertical;-webkit-line-clamp:2;display:-webkit-box;font-size:16px;line-height:20px;overflow:hidden;text-overflow:ellipsis;white-space:normal;color:rgba(0,0,0,.6)}.video-player-wrapper #lngtd_live_player,.video-player-wrapper #lngtd_player{border-radius:0}.weather-warning .video-player-wrapper{margin-top:16px}.weather-warning .video-player-wrapper .video-title,.weather-warning .video-player-wrapper .cta-container{padding-left:0}.weather-warning .video-player-wrapper #lngtd_live_player,.weather-warning .video-player-wrapper #lngtd_player,.weather-warning .video-player-wrapper #lngtd_outstream{border-radius:6px}.video-player-wrapper .close-button{align-items: center;background: rgba(0, 0, 0, .5);border-radius: 50%;cursor: pointer;display: none;height: 32px;justify-content: center;position: absolute;right: 7px;top: 7px;width: 32px;z-index: 6;}.video-player-wrapper .close-button>svg{fill: #fff;height: 12px;width: 12px;}.video-player-wrapper.float{position:fixed;width:400px;bottom:10px;right:15px;box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);z-index: 10;}.video-player-wrapper.float .close-button{display:flex;}.video-player-wrapper .customMute{ margin-left:auto;font-size: 2em;cursor: pointer;margin-right: 0;color: rgba(0, 0, 0, 0.35);}.video-player-wrapper .customMute{display:none;}.video-player-wrapper:has(#live_fallback) .customMute{display:flex;}.video-player-wrapper #lngtd_player,.video-player-wrapper #lngtd_outstream,.video-player-wrapper #lngtd_live_player{min-height:auto;width:100%;height:100%;aspect-ratio: 16 / 9;}lngtd-outstream{min-height: auto !important}",c=document.head||document.getElementsByTagName("head")[0],g=document.createElement("style");g.type="text/css";let m=document.createElement("script");-1!=e.indexOf("mweb")?m.src="https://lngtd.com/accuweather_mweb_os.js":m.src="https://lngtd.com/accuweather_web_os.js",m.setAttribute("async","true");try{g.styleSheet?g.styleSheet.cssText=d:g.appendChild(document.createTextNode(d)),c.appendChild(g),c.appendChild(m),a.appendChild(s),a.style.minHeight="auto"}catch(w){}try{1e3>parseInt(adInfo.viewport.split("x")[0])&&(r=!1)}catch(y){}if(r){let h=new IntersectionObserver((e,t)=>{e.forEach(e=>{e.isIntersecting?window.floatAWVideoPlayer(!1,!1):window.floatAWVideoPlayer(!0,!1)})}),v=new IntersectionObserver((e,t)=>{e.forEach(e=>{e.isIntersecting&&(h.observe(document.getElementById("connatix")),v.unobserve(document.getElementById("connatix")))})});v.observe(document.getElementById("connatix"))}window.AWNowLivePlayerPoster&&document.getElementById("lngtd_outstream")&&(document.getElementById("lngtd_outstream").style.backgroundImage="url("+window.AWNowLivePlayerPoster+")")}();

//Longitude mute control
document.addEventListener("livePlayerReady",function(){window.AWNowLivePlayer=videojs("lngtd_live_player");let e=document.querySelector(".video-player-wrapper .customMute");window.AWNowLivePlayer.muted()?(e.classList.remove("vjs-icon-volume-high"),e.classList.add("vjs-icon-volume-mute")):(e.classList.add("vjs-icon-volume-high"),e.classList.remove("vjs-icon-volume-mute")),e.onclick=function(){if(window.AWNowLivePlayer.muted()){window.AWNowLivePlayer.muted(!1);try{window.AWNowLivePlayer.ima.getAdsManager().setVolume(1)}catch(e){}}else{window.AWNowLivePlayer.muted(!0);try{window.AWNowLivePlayer.ima.getAdsManager().setVolume(0)}catch(o){}}},window.AWNowLivePlayer.on("volumechange",e=>{let o=document.querySelector(".video-player-wrapper .customMute");window.AWNowLivePlayer.muted()?(o.classList.remove("vjs-icon-volume-high"),o.classList.add("vjs-icon-volume-mute")):(o.classList.add("vjs-icon-volume-high"),o.classList.remove("vjs-icon-volume-mute"))})});


//Outstream Display Backfill
document.addEventListener("livePlayerReady",function(){for(let[e,t]of window.adsOnPage){let i=window.adsOnPage.get(e);if(1==i.winner.auction){let a=document.getElementById("lngtd_outstream");a.style.position="relative";let l=document.createElement("div");l.id="outstream_display_backfill_container",l.setAttribute("style","width:100%;height:100%;backdrop-filter: blur(10px);position:absolute;top:0;left:0;right:0;margin-inline:auto;display:flex;justify-content: center;align-items: center;");let n=document.createElement("div");n.id="outstream_display_backfill",l.appendChild(n),a.appendChild(l);try{document.querySelector(".vjs-poster img").src="https://tpc.googlesyndication.com/pimgad/2318341862470577078?",document.querySelector("#lngtd_outstream").style.backgroundImage="url(https://tpc.googlesyndication.com/pimgad/2318341862470577078?)"}catch(o){}let d=i.adUnitCode.split("/");d[d.length-1]="breaking_dawn";let r=window.googletag.defineSlot(d.join("/"),[300,250],n.id).addService(window.googletag.pubads());r.setTargeting("upr",i.upr),r.setTargeting("campaign","oustream_display"),window.googletag.display(r),window.googletag.pubads().refresh([r]),window.googletag.pubads().addEventListener("slotRenderEnded",e=>{e.slot===r&&(e.isEmpty?l.remove():(n.setAttribute("style","width:300px;height:250px;overflow:hidden;margin:0 auto;"),a.style.minHeight="250px"))});return}}});


//Google Multiplex 
!function(){let e="/6581/web/us/video_player/news_info/hurricane";if(-1!=e.indexOf("/us/"))return;let t=parseInt("0"),a=!1,l=!1,n="9224325968",s=parseInt("0"),i="width:970px;margin:0 auto 20px auto;",o="width:930px;height:450px",r="background-color: #fff;color: rgba(0, 0, 0, .6);font-size: .75rem;font-weight: 700;letter-spacing: .5px;margin-bottom: 1px;padding: 20px 20px 12px;text-transform:uppercase;";-1!=e.indexOf("/mweb/")?(l=!0,n="3311122915",o="display:block;",i="margin:0 auto 20px auto;",r="background-color: #fff;color: rgba(0, 0, 0, 1);font-size: 1.375rem;font-weight: 700;letter-spacing: .5px;padding: 20px 20px 12px;"):(-1!=e.indexOf("/ios/")||-1!=e.indexOf("/android/"))&&(a=!0,n=-1!=e.indexOf("/android/")?"7100865123":"1443647090",o="display:block;",i="",r="background-color: #fff;color: rgba(0, 0, 0, 1);font-size: 1.375rem;font-weight: 700;letter-spacing: .5px;padding: 20px 20px 12px;");let d=document.createElement("script");d.src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5771594739411148",d.setAttribute("crossorigin","anonymous"),d.async=!0;let p=document.createElement("ins");p.setAttribute("class","adsbygoogle"),p.setAttribute("style",o),(l||a)&&p.setAttribute("data-ad-format","autorelaxed"),p.setAttribute("data-ad-client","ca-pub-5771594739411148"),p.setAttribute("data-ad-slot",n);let c=document.createElement("div");c.setAttribute("style","display:block;background:#fff;padding:10px 20px"),c.appendChild(d),c.appendChild(p);let g=document.createElement("h2");g.setAttribute("style",r),g.innerHTML="Around The Web";let $=document.createElement("div");a?$.setAttribute("class","full-mobile-width multiplex"):$.setAttribute("class","content-module glacier-ad ad multiplex"),$.setAttribute("style",i),$.appendChild(g),$.appendChild(c);let u=document.head||document.getElementsByTagName("head")[0],b=e=>{let t=document.createElement("style");return t.type="text/css",t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e)),u.appendChild(t)};function m(){b('.multiplex{display:block} .multiplex:has(ins[data-ad-status="unfilled"]){display:none}'),console.log("multiplex loaded");try{if(a)document.getElementsByClassName("zone-centerWell2")[0].appendChild($);else if(l){let e=document.getElementsByClassName("page-content")[0];e.appendChild(document.getElementById("bottom")),e.appendChild($)}else{let t=document.getElementsByClassName("breadcrumbs");t.length>1?t[1].parentNode.insertBefore($,t[1]):t[0].parentNode.insertBefore($,t[0])}(adsbygoogle=window.adsbygoogle||[]).push({})}catch(n){}}"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype||(s=!1);let x=document.getElementById("bottom");if(x||(x=document.getElementsByClassName("zone-centerWell2")[0]),s)new IntersectionObserver((e,t)=>{e.forEach(e=>{e.isIntersecting&&(m(),t.unobserve(e.target))})},{rootMargin:"0px 0px 500px 0px"}).observe(x);else if(t)try{window.googletag.cmd.push(()=>{let e=t=>{window.googletag.pubads().removeEventListener("slotRenderEnded",e),m()};window.googletag.pubads().addEventListener("slotRenderEnded",e)})}catch(f){m()}else m()}();



//LinkedIn Games
!function(){if(-1=="/6581/web/us/video_player/news_info/hurricane".indexOf("/web/us/video_player/news_info/country_home")/*||"active"!=adInfo.userid3p */)return;window.addEventListener("message",function(e){if("https://www.linkedin.com"===e.origin){if("openSignInPopUpWindow"===e.data.message){let i=e.data.loginUrl??"https://www.linkedin.com/uas/login";window.open(i,"width=100,height=600")}"loginSuccess"===e.data.message&&(document.getElementById("linkedInGames").src=document.getElementById("linkedInGames").src)}});let e=`<div class="indices-newsfeed full-mobile-width "><div class="spaced-content indices-newsfeed__title"><span>Today's Puzzle Games</span></div><div class="indices-body"><div class="indices-touts"><a class="story" style="min-height:auto;cursor:pointer;" onclick="playLinkedInGame('pinpoint')"><img style="width:100%" src="https://media.licdn.com/media/AAYABATzAAwAAQAAAAAAAMGGxbkBCr8GSryswNRYzmSZLA.png" /></a><a class="story" style="min-height:auto;cursor:pointer;" onclick="playLinkedInGame('crossclimb')"><img style="width:100%" src="https://media.licdn.com/media/AAYABATzAAwAAQAAAAAAANgViDOAk1VzRd-srvrVW30Tcw.png" /></a><a class="story" onclick="playLinkedInGame('queens')" style="min-height:auto;cursor:pointer;"><img style="width:100%"src="https://media.licdn.com/media/AAYABATzAAwAAQAAAAAAANk-eD3hWMd6SPucqE5e8ila1A.png" /></a></div></div><div class="indices-body" id="linkedInGamesContainer"><iframe sandbox="allow-scripts allow-same-origin allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation" style="margin:0;padding:0;border:none;width:100%;height:0" id="linkedInGames"></iframe></div></div>`;window.playLinkedInGame=function(e){document.getElementById("linkedInGames").src="https://www.linkedin.com/games/view/"+e+"?parentCode=accuweather",document.getElementById("linkedInGames").style.height="683px"};let i=document.getElementsByClassName("zone-centerWell1"),n=document.createElement("div");n.innerHTML=e,i.length&&i[0].appendChild(n)}();    


//breaking dawn
try{
window.googletag.cmd.push(()=>{window.googletag.pubads().addEventListener("slotRenderEnded",e=>{for(let[t,a]of window.adsOnPage)e.slot===window.adsOnPage.get(t).gptSlot?window.adsOnPage.get(t).gptResponse=e:e.slot===window.adsOnPage.get(t).gptDawnSlot&&(window.adsOnPage.get(t).gptDawnResponse=e)}),window.googletag.pubads().addEventListener("impressionViewable",e=>{for(let[t,a]of window.adsOnPage)e.slot===window.adsOnPage.get(t).gptSlot?window.adsOnPage.get(t).isViewable=!0:e.slot===window.adsOnPage.get(t).gptDawnSlot&&(window.adsOnPage.get(t).isDawnViewable=!0)})}),setInterval(function(){let e=["top","top_right","middle","bottom","bottom_right","adhesion","native"];for(let[t,a]of window.adsOnPage){let g=t;if(-1!=t.indexOf("-")&&(g=t.split("-")[1]),e.includes(g)){let o=window.adsOnPage.get(t);if(-1!=o.adUnitCode.indexOf("middle")&&-1!=o.adUnitCode.indexOf("web")&&-1!=o.adUnitCode.indexOf("extended"))continue;if(!o.isDawn&&o.isViewable&&(2==o.winner.auction&&o.gptResponse.isBackfill||3==o.winner.auction)){let n=o.gptSlot.getSizes(),d=[];for(let i=0;i<n.length;i++)"object"==typeof n[i]?d.push(Object.values(n[i])):d.push(n[i]);window.googletag.destroySlots([o.gptSlot]),window.googletag.pubads().updateCorrelator();let s=o.adUnitCode.split("/");s[s.length-1]="breaking_dawn";let l=window.googletag.defineSlot(s.join("/"),d,o.adDivId).addService(window.googletag.pubads());3===o.winner.auction||void 0===o.upr?l.setTargeting("upr","0.02"):l.setTargeting("upr",o.upr.toString()),l.setTargeting("lvpd",["1.50","2.50","3.50","4.50"]),window.googletag.display(l),window.googletag.pubads().refresh([l]),o.isDawn=!0,o.gptDawnSlot=l}}}},2e4); 
} catch (e){}

//GameSnacks
!function(){if(!window.adInfo.lang||-1==window.adInfo.lang.indexOf("en"))return;let e=`#gameSnacks h2,#gameSnacksList div{background-color:#fff;margin-bottom:1px}#gameSnacks h2{font-size:.75rem;color:rgba(0,0,0,.6);border-radius:6px 6px 0 0;font-weight:700;letter-spacing:.5px;padding:20px 20px 12px;text-transform:uppercase}
	#gameSnacksList div{cursor:pointer;-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;padding:15px 20px;color:#000}
	#gameSnacksList div:last-child{border-radius:0 0 6px 6px;margin:0}
	#gameSnacksList div img{width:24px;height:24px;margin-right:8px;border-radius:4px}
	@media (min-width:1024px){#gameSnacks{margin-top:20px}#gameSnacks h2{font-size: 22px;text-transform: math-auto;}#gameSnacksList div:hover{background-color:#f1f4f8!important}}`,t=document.createElement("div");t.id="gameSnacks",t.classList.add("content-module");let a=document.createElement("h2");a.innerHTML="Games Center";let n=document.createElement("div");n.style.borderRadius="0 0 6px 6px";let i=document.createElement("div");i.id="gameSnacksList";let s="";s+="<div onclick='launchGameSnacks(\"puzzle\")'><img src='https://jewelacademy.h5games.usercontent.goog/v/092tt1r67o7u0/gamesnacks_required_media/JA_icon_128x128_rounded_corners.png' />Puzzle Games</div>",s+="<div onclick='launchGameSnacks(\"arcade\")'><img src='https://towercrash3d.h5games.usercontent.goog/v/7c54afc1-3ca4-4121-a52a-9ea74e30f0d7/low_res_icon.jpg' />Arcade Games</div>",s+="<div onclick='launchGameSnacks(\"card\")'><img src='https://6uj90l2koon6g.h5games.usercontent.goog/v/2a72i89u7qfe8/images/classic-solitaire-app-icon-64.png' />Card Games</div>",s+="<div onclick='launchGameSnacks(\"sports\")'><img src='https://pocketchampions.h5games.usercontent.goog/v/24houhjfrhfi8/images/pocket-champions-app-icon-128.png' />Sports Games</div>",s+="<div onclick='launchGameSnacks()'>All Games</div>";let r=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css",l.styleSheet?l.styleSheet.cssText=e:l.appendChild(document.createTextNode(e)),r.appendChild(l),i.innerHTML=s,n.appendChild(i),t.appendChild(a),t.appendChild(n);let c=document.getElementsByClassName("zone-rightRail2");c.length?c[0].appendChild(t):(c=document.getElementsByClassName("health-activities__title")).length?c[c.length-1].parentNode.insertBefore(t,c[c.length-1]):(c=document.getElementById("bottom"))?(t.setAttribute("style","margin-left:20px;margin-right:20px"),c.parentNode.insertBefore(t,c)):(c=document.getElementsByClassName("breadcrumbs")).length&&(t.setAttribute("style","margin-left:20px;margin-right:20px"),c[c.length-1].parentNode.insertBefore(t,c[c.length-1])),window.launchGameSnacks=function(e){if(document.getElementById("gameSnacksModal"))return;let t=document.createElement("div");t.setAttribute("id","gameSnacksModal"),t.setAttribute("style","width:100%;height:100vh;position:fixed;top:0;left:0;z-index:999999999999999");let a=document.createElement("h2");a.innerHTML="AccuWeather Game Center<span style='cursor: pointer;float:right;width:32px;' onclick='!function(){document.getElementById(\"gameSnacksModal\").remove()}();'><svg style='fill: #fff;height: 12px;width: 12px;' class='close-icon' xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'><g fill-rule='evenodd' transform='translate(-1 -1)'><rect width='2' height='24' x='9' y='-2' rx='1' transform='rotate(45 10 10)'></rect><rect width='2' height='24' x='9' y='-2' rx='1' transform='rotate(-45 10 10)'></rect></g></svg></span>",a.setAttribute("style","font-size: 16px;font-weight:700;width:100%;height:6vh;color:white;background-color:#1f1f1f;line-height:6vh;padding-left:12px");let n=document.createElement("iframe");n.setAttribute("allow","autoplay");let i="";e&&(i="/categories/"+e),n.src="https://gamesnacks.com/embed/386m6lc9ip1m8"+i,n.style.width="100%",n.style.height="94vh",t.appendChild(a),t.appendChild(n),document.body.appendChild(t)}}();

//Digital Turbine Apps Center
!function(){try{let e="/6581/web/us/video_player/news_info/hurricane";if(-1!=e.indexOf("/web")||-1!=e.indexOf("ios"))return;let t=document.createElement("div");t.classList.add("content-module");let r=document.createElement("h2");r.innerHTML="Apps Center",r.setAttribute("style","margin-bottom:1px;font-size:0.75rem ;background-color:rgba(255, 255, 255, 1);color:rgba(0, 0, 0, .6);border-radius: 6px 6px 0 0;font-weight: 700;letter-spacing:0.5px;padding: 20px 20px 12px;text-transform: uppercase;");let n=document.createElement("div");n.style.height="260px",n.style.backgroundColor="rgba(255, 255, 255, 1)",n.style.borderRadius="0 0 6px 6px";let i=document.createElement("iframe");i.style.height="100%",i.style.width="100%",i.src="https://dtwebfreighterd.digitalturbine.com?placement_id=9b6417eb-52e2-4da3-bff1-ee335c125df5",n.appendChild(i),t.appendChild(r),t.appendChild(n);let l=document.getElementsByClassName("health-activities__title");l.length?l[l.length-1].parentNode.insertBefore(t,l[l.length-1]):(l=document.getElementById("bottom"))?(t.setAttribute("style","margin-left:20px;margin-right:20px"),l.parentNode.insertBefore(t,l)):(l=document.getElementsByClassName("breadcrumbs")).length&&(t.setAttribute("style","margin-left:20px;margin-right:20px"),l[l.length-1].parentNode.insertBefore(t,l[l.length-1]))}catch(a){}}();


//TripleLift Native Width Fix
!function(){try{window.googletag.cmd.push(()=>{let e=t=>{"native"==t.slot.getSlotElementId()&&(window.googletag.pubads().removeEventListener("slotRenderEnded",e),setTimeout(function(){if(document.getElementsByClassName("accuweather_d_weather_native_pbjs").length){let e=document.getElementsByClassName("native")[0];e.getElementsByTagName("div")[0].style.width="100%",e.getElementsByTagName("iframe")[0].style.width=e.clientWidth+"px"}},300))};window.googletag.pubads().addEventListener("slotRenderEnded",e)})}catch(e){}}();
      
//Tracker
(function(){try { if ('No' == 'Yes'){ const t=new Image();t.src='https://securepubads.g.doubleclick.net/pcs/view?xai=AKAOjsthWg9T_tpHHZmQ4PM1n7AsUoiQWXt9e7yki0qv49Vtlb-CTd_IUOqf1idkfxSnISZ1aWT0UQBoj9bkppKEclhaD3pM3pRPIoAxq-GRrmsiU8SuEM5K9so5y7p3hDasR3tDNaAZA8u7eiMaC9mA23bs3amoV1MhG57e0QGLYx7QIbRBI5pn-mwcz8fhbmydas8Pmdya2LRSd6fRdMtrtweVNhi_TrYRLYty5H11sp-ss747XhCb_h59GVwCfgHelbhE49NzgUs1EKUMq1lfuSqhU6Wk1TvOun2LPdQjJVBxf5mEN6XU-SetSMl8obgHQ-1tgXmoWrcWdo2x2sPE1YDqKioCsTHe8snu-AqjC-LJXZ64xIyL_eDRUIWPcjIv0nz1jON-gHfKN13_rAA5GyHRcn0OFYdlLOVRsJGUJD2GUk8Gyrz8sg&sai=AMfl-YTJKoANHOmuTMbgw2lybX_W521QEruFFQz3hNT4InwkLaZc2u5AKG_k4yE7PsWqieHZr8PQdel8VvadDOpldWUAVO8d6f0iP0P2DvUym5gKsdhyf281dElA4Zo&sig=Cg0ArKJSzKd3s5VseZfMEAE&uach_m=%5BUACH%5D&urlfix=1&adurl=';}} catch (e){}})();