/* FILE ARCHIVED ON 20:44:38 Dec 14, 2020 AND RETRIEVED FROM THE AN OPENWAYBACK INSTANCE ON 14:13:27 Apr 27, 2024. JAVASCRIPT APPENDED BY OPENWAYBACK, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ window.aps=window.aps||{}; window.googletag=window.googletag||{}; window.pbjs=window.pbjs||{}; window.HDN=window.HDN||{}; window.debugSGA=window.debugSGA||false; window.APSpageUrl=window.APSpageUrl||""; window.responsiveAds=window.responsiveAds||function(){}; (function(){aps.cmd=[]; aps.juiceLog=[]; aps.modules={}; aps.events=[]; aps.event={}; aps.app_events={}; aps.logtype={}; aps.implementSRA=true; aps.juiceErrors=""; aps.enableLocalStorage=false; function getPageUrl(){var returnUrl; var parentAPSPageURL; var parentPageUrl; try{parentAPSPageURL=parent.APSpageUrl; parentPageUrl=parent.window.location.host+parent.window.location.pathname+parent.window.location.search }catch(e){aps.juiceErrors="juice service error - unable to get parent information\n" }try{returnUrl=parentAPSPageURL||APSpageUrl||parentPageUrl||window.location.host+window.location.pathname+window.location.search }catch(e){returnUrl=window.location.host+window.location.pathname+window.location.search; aps.juiceErrors+="juice serve error - getting JuicePageUrl\n" }return returnUrl }function cleanUrl(returnUrl){if(returnUrl.toLowerCase().indexOf("http://")==0){returnUrl=returnUrl.substr(7,returnUrl.length) }if(returnUrl.toLowerCase().indexOf("https://")==0){returnUrl=returnUrl.substr(8,returnUrl.length) }if(returnUrl.length>300){returnUrl=returnUrl.substr(0,300) }var queryStr=""; if(returnUrl.indexOf("?")!=-1){queryStr=returnUrl.substr(returnUrl.indexOf("?"),returnUrl.length); returnUrl=returnUrl.substr(0,returnUrl.indexOf("?")) }if(returnUrl.charAt(returnUrl.length-1)=="/"){returnUrl=returnUrl.slice(0,-1) }return returnUrl+queryStr }window.JuicePageUrl=cleanUrl(getPageUrl()); if(document.location.search==""&&aps.enableLocalStorage){var origContent=JSON.parse(localStorage.getItem("JuicePageUrl")); if(origContent){var content=origContent; content=content.filter(function(a){return a.url==JuicePageUrl }); if(content.length==1){aps.juiceMatchedUrl=content[0].matched }else{if(aps.enableLocalStorage&&aps.enableLocalStorage!="strict"){content=origContent.sort(function(a,b){return b.matched.length-a.matched.length }).filter(function(a){return JuicePageUrl.indexOf(a.matched)>-1 }); if(content.length>0){aps.juiceMatchedUrl=content[0] }}}}var ls=JSON.parse(localStorage.getItem(aps.juiceMatchedUrl)); if(ls){var pageVersionCommand='HDN.dataLayer.content.designTemplate || ""'; aps.pageVersion=""; try{pageVersion=eval(pageVersionCommand) }catch(ex){}if(ls.expiresOn>Date.now()&&ls.pageVersion==aps.pageVersion){console.log("Juice: using cached definedTags"); definedTags=ls.definedTags; aps.scriptHash=ls.scriptHash; juiceservice=ls.juiceservice; APSpageID=ls.APSpageID; APSResponsiveDesign=ls.APSResponsiveDesign }else{localStorage.removeItem(aps.juiceMatchedUrl) }}}if(typeof definedTags=="undefined"||aps.enableLocalStorage){window.loadAd_UrlLocation=(debugSGA)?"https://cybercemetery.unt.edu/archive/womensvote100/20201214204438/https://dev.gagnier.info/":"https://cybercemetery.unt.edu/archive/womensvote100/20201214204438/https://aps.hearstnp.com/"; var url=loadAd_UrlLocation+((debugSGA)?getsource:"SRO/GetJS?url=")+escape(JuicePageUrl.toLowerCase()); var scr=document.createElement("script"); scr.src=url; if(aps.enableLocalStorage){scr.onload=function(){localStorage.setItem(aps.juiceMatchedUrl,JSON.stringify({expiresOn:Date.now()+24*60*60*1000,juiceservice:juiceservice,pageVersion:aps.pageVersion,scriptHash:aps.scriptHash,APSpageID:APSpageID,APSResponsiveDesign:APSResponsiveDesign,definedTags:definedTags,})); var currentLs=JSON.parse(localStorage.getItem("JuicePageUrl"))||[]; if(currentLs.filter(function(a){return a.url==JuicePageUrl }).length==0){currentLs.push({url:JuicePageUrl,matched:aps.juiceMatchedUrl}); localStorage.setItem("JuicePageUrl",JSON.stringify(currentLs)) }else{if(currentLs.filter(function(a){return a.url==JuicePageUrl })[0].matched!=aps.juiceMatchedUrl){currentLs.filter(function(a){return a.url==JuicePageUrl })[0].matched=aps.jucieMatchedUrl; localStorage.setItem("JuicePageUrl",JSON.stringify(currentLs)) }}var removedMatched=[]; for(var i=0; i0){var newLs=currentLs.filter(function(a){return removedMatched.indexOf(a.matched)==-1 }); localStorage.setItem("JuicePageUrl",JSON.stringify(newLs)) }} }scr.id="AdsConfigJavaScript"; var node=document.getElementsByTagName("html")[0].children; node[(node.length>1)?1:0].appendChild(scr) }aps.waitForDefinedTags=function(func){if(typeof definedTags=="object"){eval(func)() }else{aps.alreadyWaiting=aps.alreadyWaiting||false; aps.waitingForDefinedTags=aps.waitingForDefinedTags||[]; if(aps.waitingForDefinedTags.indexOf(func)>-1){return }aps.waitingForDefinedTags.push(func); if(typeof definedTags=="undefined"){aps.registerEvent(aps.event.on_ad_definition_loaded,function(){eval(func)() }); if(!aps.alreadyWaiting){aps.setPerformanceMetrics(null,"waiting for Ad Definition"); aps.alreadyWaiting=true }}}}; googletag.cmd=googletag.cmd||[]; pbjs.que=pbjs.que||[]; pbjs.bidderSettings=pbjs.bidderSettings||{}; HDN.dataLayer=HDN.dataLayer||{}; HDN.dataLayer.ads=HDN.dataLayer.ads||{}; HDN.dataLayer.privacy=HDN.dataLayer.privacy||{}; aps.pageWidth=window.screen.width||top.window.innerWidth||window.width||-1; window.DESKTOP=1; window.MOBILE=2; window.TABLET=3; if(navigator.userAgent.indexOf("iPad")>-1){window.current_device=TABLET }else{if(navigator.userAgent.indexOf("iPhone")>-1){window.current_device=MOBILE }else{if(navigator.userAgent.indexOf("Android")>-1){window.current_device=MOBILE }else{if(document.querySelectorAll("meta[name=viewport]").length>0){try{var pw; var metat=document.querySelectorAll("meta[name=viewport]")[0].content.split(","); for(var i=0; i'+time+" : "+logs[i].m+""; html+=msg }var w=window.open("","wnd"); w.document.body.innerHTML=html }; aps.formatDateTime=function(timeStamp){var h=(timeStamp.getHours()<10?"0":"")+timeStamp.getHours(); var m=(timeStamp.getMinutes()<10?"0":"")+timeStamp.getMinutes(); var s=(timeStamp.getSeconds()<10?"0":"")+timeStamp.getSeconds(); var ms=timeStamp.getMilliseconds(); return h+":"+m+":"+s+": "+ms }; aps.getAdMetrics=function(code){var def=aps.adPerformanceMetrics[code]; if(typeof(def)=="undefined"){def={lineItemId:0,creativeId:0,DomId:code,hearstPlaceAd:0,googleDisplay:0,rendered:0,impressionViewable:0,refreshCalled:0,isEmpty:true,size:"",totalRenders:0,totalImpressions:0,pageInfo:aps.performanceMetrics}; aps.adPerformanceMetrics[code]=def }return def }; aps.registerModule=function(name){aps.modules[name]={}; return aps.modules[name] }; aps.getThirdPartyMetrics=function(name){var def=aps.performanceMetrics.ThirdParty[name]; if(typeof(def)=="undefined"){def={start:0,stop:0,runtime:0,refresh_start:0,refresh_stop:0,refresh_runtime:0}; aps.performanceMetrics.ThirdParty[name]=def }return def }; aps.startThirdParty=function(name){aps.getThirdPartyMetrics(name).start=aps.getTimeElapsed() }; aps.stopThirdParty=function(name){var def=aps.getThirdPartyMetrics(name); def.stop=aps.getTimeElapsed(); def.runtime=(def.stop-def.start).toFixed(2) }; aps.startThirdPartyRefresh=function(name){aps.getThirdPartyMetrics(name).refresh_start=aps.getTimeElapsed() }; aps.stopThirdPartyRefresh=function(name){var def=aps.getThirdPartyMetrics(name); def.refresh_stop=aps.getTimeElapsed(); def.refresh_runtime=(def.refresh_stop-def.refresh_start).toFixed(2) }; aps.setPerformanceMetrics("JuiceScriptLoading","start of juice script loading"); aps.desktopOrMobile=function(desktopValue,mobileValue){return(aps.cfg.bid.current_device==DESKTOP)?desktopValue:mobileValue }; aps.performanceMetrics.SRA=aps.implementSRA?"true":"false"; try{if(HDN.dataLayer.ads.adMode=="batch"){aps.cfg.dfp.batchSRA.enabled=true }}catch(ex){}aps.startStep=function(reason){var nextStep=aps.cfg.stp.at+2; if(aps.cfg.stp.at==-1&&aps.cfg.stp[0]==undefined){aps.cfg.stp[0]=JSON.parse(JSON.stringify(aps.cfg.stp.def)) }if(aps.cfg.stp[nextStep]==undefined){aps.cfg.stp[nextStep]=JSON.parse(JSON.stringify(aps.cfg.stp.def)); aps.cfg.stp[nextStep].timeout=aps.cfg.stp.nextTimeout; if(!aps.cfg.bid.a9.enabled){aps.cfg.stp[nextStep].a9.bidsReceived=true }}if(aps.cfg.stp.at==-1||(aps.cfg.stp[aps.cfg.stp.at].adRendered&&(aps.cfg.dfp.waiting.length>0||aps.cfg.dfp.batchSRA.enabled))){aps.cfg.stp.at++; aps.logInfo("Starting step "+aps.cfg.stp.at); aps.cfg.stp[aps.cfg.stp.at].reason=reason; return true }else{return false }}; aps.waitStartStep=function(reason){if(aps.cfg.dfp.waiting.length>0){if(aps.startStep(reason)){defineTags(definedTags) }else{setTimeout(function(){aps.waitStartStep() },500) }}}; aps.nextBatchSRA=function(){if(typeof definedTags=="undefined"){aps.waitForDefinedTags(function(){defineTags(definedTags) }) }else{if((!aps.cfg.dfp.batchSRA.enabled||aps.cfg.dfp.batchSRA.auto&&aps.cfg.dfp.batchSRA.waitingNext)||(aps.cfg.dfp.batchSRA.userInteractFor>(aps.cfg.stp.at+1))){if(aps.startStep("batchSRA")){window.defineTags(definedTags) }}else{aps.logInfo("Batch SRA : waiting for scroll") }}}; aps.onScroll=function(){if(aps.cfg.dfp.batchSRA.hasScrolled){return }if(aps.cfg.dfp.batchSRA.userInteractFor==(aps.cfg.stp.at+1-aps.cfg.dfp.refreshes)){aps.logInfo("Batch SRA : Scrolled"); aps.cfg.dfp.batchSRA.auto=true; if(aps.cfg.dfp.batchSRA.waitingNext||aps.cfg.dfp.batchSRA.userInteractFor==0){if(aps.cfg.dfp.batchSRA.userInteractFor==0){aps.cfg.dfp.batchSRA.waitingNext=true }aps.nextBatchSRA(); aps.cfg.dfp.batchSRA.hasScrolled=true }}}; try{if(HDN.jwplayers){for(var pl in HDN.jwplayers){if(!pl.mute&&!pl.startenabled){aps.cfg.vid.mode="ctp" }}}}catch(e){}if(document.location.pathname.indexOf("/sponsored/")!==-1){aps.logInfo("*Disabling bidders - sponsored content"); aps.cfg.bid.enabled=false }if(aps.cfg.vid.enabled){document.addEventListener("hdn.jwplayer",function(e){aps.logInfo("VideoEvent: "+e.details.eventAction); console.log(e.details); if(e.details.eventAction=="Video Progress 75%"){aps.logInfo("Requesting new video bids"); aps.cfg.vid.tagUrl=""; aps.startStep(); aps.fireEvent(aps.event.on_request_new_video_ads,{}) }},false) }if(aps.cfg.dfp.batchSRA.enabled){aps.logInfo("Batch SRA : listening to Scroll event"); if(window.addEventListener){window.addEventListener("scroll",aps.onScroll,false); window.addEventListener("click",aps.onScroll,false) }else{if(window.attachEvent){window.attachEvent("onscroll",aps.onScroll); window.attachEvent("onclick",aps.onScroll) }}}})();(function(){aps.waitForDefinedTags(function(){for(var a=0; a0){var arFixedMappings=[]; var arViewports=[]; var viewPortIDX={}; for(var i=0; i0){for(var i=0; i-1){var revProfile=Object.entries(HDN.dataLayer.revenueProfiles.profiles); for(var rp in revProfile){var subscriptions=revProfile[rp][1]; for(col in subscriptions){if(col.indexOf("column")==0){var ads=Object.entries(subscriptions[col]); for(adtype in ads){aps.cfg.dfp.revenueProfile.push(ads[adtype][1].id) }}}}}}catch(e){}}if(aps.cfg.dfp.revenueProfile.length>0&&aps.cfg.dfp.revenueProfile.indexOf(code)==-1){return false }else{return true }}; aps._initAdDefinitionByCode=function(param){if(typeof definedTags=="undefined"){aps.waitForDefinedTags(function(){aps._initAdDefinitionByCode() }); return }aps.page=aps.page||definedTags; aps.page_kvps=aps.page_kvps||definedTags.kvps; aps.cfg.dfp.allAds=aps.cfg.dfp.allAds||[]; var adsToProcess=[]; if(param==undefined){adsToProcess=aps.page.ads }else{adsToProcess.push(param) }for(var i=0; i=2)?arguments[1]:divID; aps.codesByDomID[divID]=code }; aps.isDivIDUniqueForAdPlacement=function(fname,divID){if(typeof(aps.codesByDomID[divID])!="undefined"){if(aps.codesByDomID[divID]=="passthrough"){return true }aps.logWarning("A duplicate div id was specified ("+divID+") for "+fname+". The call was ignored."); return false }return true }; aps.logPageKVPsforDiv=function(divID){aps.pageKVPsByDomID[divID]={}; var pageKVPs=aps.current_page_kvps; var divKVPS=aps.pageKVPsByDomID[divID]; for(var keyVal in pageKVPs){if(!pageKVPs.hasOwnProperty(keyVal)){continue }divKVPS[keyVal]=pageKVPs[keyVal] }}; window.setDfpSearchValues=function(apsContext){if(typeof(aps)!="undefined"&&aps!=null){aps.key=aps.key||""; aps.values=aps.values||""; try{apsContext.pubads().setTargeting(aps.key,aps.values) }catch(e){}}}; aps.run_once=function(fn,context){var result; return function(){if(fn){result=fn.apply(context||this,arguments); fn=null }return result } }; aps.contentLoaded=function(win,fn){var done=false,top=true,doc=win.document,root=doc.documentElement,add=doc.addEventListener?"addEventListener":"attachEvent",rem=doc.addEventListener?"removeEventListener":"detachEvent",pre=doc.addEventListener?"":"on",init=function(e){if(e.type=="readystatechange"&&doc.readyState!="complete"){return }(e.type=="load"?win:doc)[rem](pre+e.type,init,false); if(!done&&(done=true)){fn.call(win,e.type||e) }},poll=function(){try{root.doScroll("left") }catch(e){setTimeout(poll,50); return }init("poll") }; if(doc.readyState=="complete"){fn.call(win,"lazy") }else{if(doc.createEventObject&&root.doScroll){try{top=!win.frameElement }catch(e){}if(top){poll() }}doc[add](pre+"DOMContentLoaded",init,false); doc[add](pre+"readystatechange",init,false); win[add](pre+"load",init,false) }}; aps.getChildElementByNameAndTag=function(elm,name,tagName){var nodes=elm.childNodes; for(var i=0; iaps.pageWidth){continue }if(widthfound==30000){widthfound=split }if(widthfound==split){if(parseInt(map[1])>0&&parseInt(map[2])>0){willDisplay=true }}}return willDisplay }; aps.setAdSize=function(ad){var availables=["320x50","300x250","300x600","400x300","640x480","728x90","970x90","970x250","501x501","001x001","620x366","325x508","325x204","336x280","160x600","320x100"]; var sizes=[]; var widthfound=30000; var doNotServe=["DTBK_AP951","MW_1_TEXT","MW_2_TEXT","MW_3_TEXT"]; if(doNotServe.indexOf(ad.code)>-1){aps.logInfo("Skippig ad:"+ad.code); return sizes }ad.sizeMappings=ad.sizeMappings||[]; for(var j=0; japs.pageWidth){continue }if(widthfound==30000){widthfound=split }if(widthfound==split){var adSize=map[1]+"x"+map[2]; if(availables.indexOf(adSize)>-1){sizes.push([parseInt(map[1]),parseInt(map[2])]) }}}return sizes } })();(function(){var b=this; b.getHostName=function(d){var c=d.match(/:\/\/(www[0-9]?\.)?(.[^/:]+)/i); if(c!=null&&c.length>2&&typeof c[2]==="string"&&c[2].length>0){return c[2] }else{return null }}; b.getDomain=function(f){var d=b.getHostName(f); var c=d; if(d!=null){var e=d.split(".").reverse(); if(e!=null&&e.length>1){c=e[1]+"."+e[0]; if(e.length>2&&e[2].toLowerCase()=="m"){c="m."+c }}}return c }; if(typeof(aps.current_domain)=="undefined"){try{aps.current_domain=b.getDomain(document.URL) }catch(a){aps.logException("unable to resolve domain name",a); aps.current_domain="undefined" }}aps.cfg.bid.current_domain=aps.current_domain; if(aps.cfg.bid.current_domain.indexOf("m.")==0){aps.cfg.bid.current_domain=aps.cfg.bid.current_domain.substr(2) }if(aps.cfg.bid.current_domain=="ctinsider.com"){googletag.cmd.push(function(){aps.gcontext.pubads().setTargeting("sect","ctinsider") }) }aps.cfg.dfp.batchSRA.maxSlots=30 })();(function(){try{aps.cfg.stp.def.timeout=2500; var f=aps.cfg.stp.def.timeout; var b=aps.current_domain; var d=document.location.hostname; var a=current_device; switch(b){case"anotherdomain.com":f=1500; break }switch(d){case"sub.anotherdomain.com":f=1500; break }switch(a){case MOBILE:break; case TABLET:break; case DESKTOP:break }if(d=="sub.anotherdomain.com"&&a==MOBILE){}}catch(c){}aps.cfg.stp.def.timeout=f; aps.cfg.stp.nextTimeout=(f>1500)?f-1000:1000; aps.logInfo("Setting per config timeout : "+aps.cfg.stp.def.timeout); aps.logInfo("next timeout : "+aps.cfg.stp.nextTimeout) })();(function(){if(document.location.hostname.match(/((homeguides|smallbusiness|work|healthyeating|livehealthy)\.(chron|sfgate)\.com)/)){return }var d={"beaumontenterprise.com":"75e9ad4b5f1f1f3de38dea085cc34f079b9d8243999d3b30d70a543f2c3ae813","sfgate.com":"1cbbeea35302b334c17ec7de41048b19077c3452b8825fa3017876cf49d877c2","chron.com":"b8d94fd702b39f91830ea26eb261a1dd7eb3f9d18e86f88c83f7a317f3115379","mysanantonio.com":"3c81fd9605d796d254c7bdc62001ec2c520515c7c306b66b713a4421f7343766","seattlepi.com":"a3e9f57e66bb33f8f8995e6866a7eace83bca9720ee52bb2d8ab18fb8dddae94","sfchronicle.com":"a5e03e178aaf9b41b3fc69428362339bd7ba9a606118acee43f6169a1f7f9847","houstonchronicle.com":"48a6940997d234b7add9af8ed2b41694654edaeb6e7b5827579702d25182700b","expressnews.com":"d65ba7cd6a96847162fb556c3a5dc7b7e66de309481ec4e558b4e9dc40515858","timesunion.com":"f999472effec7a1ef427ab8ed55df47b4d250f60f376ce71f7293b353026f514","ctpost.com":"1118fad26ca4bcdf2a99fdee52724e3c512a258c149cbd8e6c4084c13040e86a","stamfordadvocate.com":"2df4f16391dbd310915a08bd62897dde4902fe30a7c29dcb2b80ba04345df633","nhregister.com":"2370d2dc32ab1b0d0894de8f024e2764a55756c723edb12fa7d7b6b221922fba","newstimes.com":"68fab42777221c69e8d127d9ba7a8b29e0ba95aae66e6166eb070c330ac04c0f","greenwichtime.com":"4a6fb4d137bab5bdc207d09d4b1acfc191dbad1e9e0e3190ca676d3730195d06","thehour.com":"049118934d099a757a2987317f05327a8ccd5a7c1501feaf8e4639fadbdb8936","ctinsider.com":"21b81f81bd7fa576db043ec887848073bbc6eafc46d9f8bec5240163093e2d46","registercitizen.com":"3377ba9d7d5061bf618f4ae6d3900e0067f913f99748fc366b7cb1542e6a96b2","middletownpress.com":"4f1f32e75691195dd027c417eed6c56d8a37e7ed729eb57c8ecd8abf8d5f420b","thetelegraph.com":"bf557221a53f15d39c7bce3aeed56dd6c13e57b3eba48f8e4fd2d54af42f0122","ourmidland.com":"37af6c3aa88542ced759eb5a9c478617d1b50eeae32789a669e3facca42eb56a","myjournalcourier.com":"5497becf77524b62bee5a589030b1e2163d34a60b7d960cdc976afc12b64d623","michigansthumb.com":"601647fe4d84d12a565e709dc7e944d38db91923d65d9bb6865788234f41893d","theintelligencer.com":"aadf36ee0d8d0f2765013057eb1bad1a552f9377dfc4b532d9b698df9a655884","manisteenews.com":"a2031afbd2e08a959fa777db882a99b7cc56d1dbff61d9d2d56c20a89c6d8b7e","bigrapidsnews.com":"7c907dba0dac340d4f0b3879a3d1699f0bf19e2a95b06945aa3b31cfde002c09","recordpatriot.com":"d4c71cee77592309f10e62ab4ce1a4d995719a82a77932eee5fc18a7948e2f41","lakecountystar.com":"2a7c7fb608092db498480edf2068123ffcd679d5ce9e8819760338386e1350e4","theheraldreview.com":"1655d53ab46f5391a09e189a8cf86f8e22098886ea6a2ae727b112087a05cbd0","yourconroenews.com":"aa3912f9cfd7f1fafd025dbd846d2383acce1b3574061b2c9508d43d5cc653da","lmtonline.com":"ffd0921bb88989b2dc6bac92611425966d93e8be7cf154e95fd27ae95db26375","mrt.com":"08621a723e4a1cd4ba4c25f46ce953173b9b3cffad4ec0bfb9b0e5d22bc22bc8","myplainview.com":"b49696bc422c346e4f4282e32cfc324d782f32b9c9d0fec6751d29dc0862bf61","theridgefieldpress.com":"053f373cd281b81bb04913797ec13da4438c7cc4596fc29e382ce5a1a93ce32d","westport-news.com":"55e354cf58c712583585324c15d758cd2b9801c0ce839fb6020d8835a63c0502","ncadvertiser.com":"eaff3ad2730aea1b010a2434dad485aef8e1a473f8977f048e5888c27a0a8b15","fairfieldcitizenonline.com":"ddbcce19fd54ba6f20d8e3bedb35cfea7887e9579c34d38307b3f3fa3f659ab0","wiltonbulletin.com":"7ef8a69225bec566b6a15690bd94081ed7898400ff9a8c68ac05ee924c2c2ce3","darientimes.com":"f0790e5c63dd390570f98d8b20ad18ee2666f8184dc03434de1c60fb823ff71c","trumbulltimes.com":"909616d5d05133cda02800bf40834036448deeea436efebe0d39fcb3f3f4bec8","sheltonherald.com":"2ea54058f6365a6a2bcb4ecda879ff406900d5b274c1e1ed6e2f0e746ad5068f","milfordmirror.com":"0f7190eb184e8a5af5171a9ea07a792b5a193725ebdb8a2c55a30ff187802fef","newmilfordspectrum.com":"34fda7a5dec281cc4ac526c9c1609ee8a6223ae799760c638c3b92d86751b2c5","southeasttexas.com":"1ca0a738d5cf7bb8ce1434d5522573d7f6894098e4706151b2882420b6bb6c62","gametimect.com":"c5a3ed040f3b98d6d9877a09dc7f00f3ba126d6f10836272b84a07be9ced5df7","connecticutmag.com":"6daa3d7e6b8778d504883db9545f72adfc4df9ba624ae5ac79af0dda7e1f98a3","shorelinetimes.com":"91a7025281ac9294e20e8cdd7b9c5d6414f44d887193db48097942a2404a9d1d","countytimes.com":"26a8bb30dec1f24c1e7bd51988a30cdaf1a32c615057fa4a092fedd8d19b6005","westhartfordnews.com":"5de2ce5445b39d5609215833a7fa6410f027135902d458f6751d115c11c33634","dolphin-news.com":"041a5d17decdae44358ae2eca8065b501b5a4936882e2188a3d41470b64eb47d","ctpostchronicle.com":"645700f07ec80b72131b2a6fc97f8f43da5820ce68bd559b0b507dfdf08f9f6a","ctbulletin.com":"26a8bb30dec1f24c1e7bd51988a30cdaf1a32c615057fa4a092fedd8d19b6005","greenstate.com":"412163cc8d602f027626c2ffab24515bd8f6ff426d0d4096330b64d8e7681e03","canyonnews.com":"593c0a648b760954871854fb60be6dfc252fd7387de8bcb568ebf2cd5449f3d8","sellitlaredo.com":"a86e9a199fadcfd738a0fa46b3fa9381cbb92bdc9b7a75b7fa222e143eaac6b9",}; var b=d[aps.cfg.bid.current_domain]||""; if(b!=""){aps.logInfo("The Media Trust: Loading"); var a=document.getElementsByTagName("script")[0]; var c=document.createElement("script"); c.async=1; c.src="https://cybercemetery.unt.edu/archive/womensvote100/20201214204438/https://scripts.webcontentassessor.com/scripts/"+b; a.parentNode.insertBefore(c,a) }})();(function(){aps.divIDPostfix="ju1c3-TWFobmEgTWFobmE="; aps.scriptName="googleAsync"; aps.leaderboardLineItemID=null; aps.page=null; aps.slotsByDivID=[]; aps.interstitialAdDefs=[]; aps.codesByDomID=[]; aps.domIsLoaded=false; aps.dynamicSlots=[]; aps.refreshableSlots=[]; aps.normalAdSlots=[]; aps.dynamicAdSlots=[]; aps.dfpInititalization=false; aps.callsByDomID=[]; aps.renderInfo=[]; aps.isIFrameDynamicPage=(top!=self); aps.refreshWaitCounter=0; aps.refreshWaitScripts={}; aps.disabledWaitScripts={}; aps.refreshViewableOnly=true; aps.videoAdTag=null; aps.perf_sec="video"; aps.setPerformanceMetrics("GoogleLoadingStart","loading google"); aps.loadGoogleService(true); if(aps.cfg.bid.enabled){googletag.cmd.push(function(){googletag.pubads().disableInitialLoad(); googletag.pubads().setPrivacySettings({childDirectedTreatment:false}) }) }googletag.cmd.push(function(){aps.setPerformanceMetrics("GoogleLoaded","google ready"); aps.performanceMetrics.matchedUrl=aps.juiceMatchedUrl; googletag.pubads().collapseEmptyDivs(false); googletag.pubads().enableSingleRequest(); googletag.enableServices() }); aps.unQueueCommands=function(){for(var a=0; a0){var f=googletag.pubads().getSlots(); if(!aps.cfg.stp[0].dfpCalled&&!aps.cfg.dfp.arbitrage.enabled){if(aps.cfg.dfp.allAds.indexOf("A300")>-1&&(aps.cfg.dfp.revenueProfile.length==0||aps.cfg.dfp.revenueProfile.indexOf("A300")>-1)){if(document.getElementById("A300")==null&&c<20){aps.logInfo("waiting for div A300 - "+c++); setTimeout(function(i){aps.enableGoogleServices(c) },10); return }}}var h=""; for(var m=0; m-1){var l=f[m]; var n=(aps.videoAdTag==null)?null:aps.videoAdTag.code; if(n==e){k.push(l); aps.cfg.stp[aps.cfg.stp.at].divids.push(e) }else{var d=document.getElementById(e); var b=[]; if(aps.cfg.bid.reuseBids){b=aps.cfg.bid.bids.filter(function(i){return i.obj.cpm>=0.01 }).filter(function(i){return i.ad==e }).sort(function(i,o){return o.obj.cpm-i.obj.cpm }) }if(d==null){aps.cfg.dfp.ads[e].batchRequest="done"; l.requestStatus="destroyed"; j.push(l); aps.cfg.dfp.uncalledAds.push(l); h=(h=="")?e:h+", "+e; for(var g=0; g0||j.length>0)&&aps.cfg.stp[aps.cfg.stp.at].reason=="batchSRA"){if(k.length==0){aps.cfg.dfp.batchSRA.waitingNext=true; aps.logInfo("Batch SRA : next step"); aps.nextBatchSRA() }else{aps.cfg.dfp.batchSRA.waitingNext=true; if(aps.cfg.dfp.batchSRA.auto){aps.logInfo("Batch SRA : waiting to next step in "+aps.cfg.dfp.batchSRA.delay+" ms"); setTimeout(function(){aps.nextBatchSRA() },aps.cfg.dfp.batchSRA.delay) }else{aps.nextBatchSRA() }}}}; window.defineTags=function(j){if(aps.cfg.stp.at==-1){aps.nextBatchSRA(); return }if(!aps.serveAds){return }if(aps.cfg.stp.at==1&&aps.cfg.dfp.arbitrage.enabled&&typeof(aps.cfg.dfp.ads.ARB)=="undefined"){aps.logInfo("Arbitrage - waiting ads to be loaded"); return }aps.cfg.stp[aps.cfg.stp.at].stepStarted=true; if(aps.cfg.dfp.batchSRA.enabled){aps.logInfo("Batch SRA mode - step : "+aps.cfg.stp.at) }aps.setPerformanceMetrics(null,"defineTags"); if(aps.cfg.stp.at==0){aps.loadAsyncScripts(); var g=[]; var m=["OOP","Crown","Flex1"]; for(var c in m){var n=definedTags.ads.filter(function(i){return i.code==m[c] }); if(n.length>0){g.push(n[0]) }}n=definedTags.ads.filter(function(i){return m.indexOf(i.code)==-1 }); definedTags.ads=g.concat(n); googletag.cmd.push(function(){try{var o=JSON.parse(GetCookie("location_data")); if(o.is_eu){aps.cfg.disablePersonalisation=true }}catch(i){}if(aps.cfg.disablePersonalisation){aps.logInfo("disabling personalizedAds"); googletag.pubads().setRequestNonPersonalizedAds(1) }googletag.pubads().addEventListener("slotRenderEnded",function(q){if(typeof q.slot.getSlotId!="undefined"){if(typeof q.slot.getSlotId().getDomId!="undefined"){hearstUpdateSlotRenderInfo(q); aps.adRenderCallback&&aps.adRenderCallback(q) }var p=q.slot.getSlotId().m; if(p=="MAD"){if(q.size[0]!=320||q.size[1]!=50){aps.logInfo("Fixing: MAD having wrong size: "+q.size); var s=document.getElementById("MAD").firstChild; s.style.width="320px"; s.style.height="50px" }}if(!aps.cfg.stp[aps.cfg.stp.at].adRendered){aps.cfg.stp[aps.cfg.stp.at].adRendered=true; for(var r=0; r1){q.impressionViewable=aps.getTimeElapsedFromStamp(q.refreshCalled) }else{q.impressionViewable=aps.getTimeElapsed() }if(p){p.impressionViewable=true }aps.fireEvent(aps.event.on_ad_impression_viewable,{code:r}) }}}) }) }var h=0; var k={}; aps.cfg.stp[aps.cfg.stp.at].ads=aps.cfg.stp[aps.cfg.stp.at].ads||[]; window.onJuiceEvent_StartDefineTags&&window.onJuiceEvent_StartDefineTags(); aps.fireEvent(aps.event.on_begin_define_tags); aps.setPerformanceMetrics("DefineTags","defining tags started"); if(aps.performanceMetrics.adUnit==""){aps.performanceMetrics.adUnit=j.adUnit; aps.performanceMetrics.networkCode=j.networkCode }aps.definedTagArr=aps.definedTagArr||{}; for(var f=0; f-1){a.interstitial=true; a.refreshable=true }if(a.interstitial){aps.interstitialAdDefs[a.code]=a; a.callInterstitial=a.callInterstitial||false; if(!a.callInterstitial){continue }}var l=null; if(a.code=="MAD"&&window.current_device==MOBILE&&(aps.cfg.dfp.arbitrage.enabled||aps.cfg.dfp.multi.enabled)){a.batchRequest="refresh" }if(a.batchRequest=="done"||a.batchRequest=="called"||a.batchRequest=="requested"){continue }else{var b=false; if(aps.cfg.dfp.waiting.filter(function(i){return i==a.code }).length>0){aps.cfg.dfp.waiting=aps.cfg.dfp.waiting.filter(function(i){return i!=a.code }); b=true }else{if(a.interstitial&&a.callInterstitial){b=true }else{if(a.batchRequest=="refresh"){b=true }else{if(!aps.cfg.dfp.batchSRA.enabled&&!aps.cfg.dfp.arbitrage.enabled&&aps.cfg.stp.at==0){b=true }else{if(aps.cfg.stp.at>0&&document.getElementById(a.code)==null){b=false; aps.logInfo(a.code+" - DIV not on page - *skipped*"); a.exclude=true }else{if(aps.cfg.dfp.batchSRA.enabled&&aps.cfg.stp[aps.cfg.stp.at].reason=="batchSRA"){if(aps.cfg.stp.at==0&&aps.cfg.dfp.batchSRA.atfFirst){if(a.position=="atf"||a.position=="oop"||a.position=="mad"){b=true }}else{if(h0){if(aps.cfg.dfp.arbitrage.ads[aps.cfg.stp.at].indexOf(a.code)>=0||a.code=="MAD"){b=true }}}}else{if(aps.cfg.dfp.multi.enabled){if(aps.cfg.stp.at==0&&a.code.indexOf(aps.cfg.dfp.multi.type)==-1&&!a.video){b=true }else{if(aps.cfg.stp.at>0){aps.cfg.dfp.multi.ads[aps.cfg.stp.at]=aps.cfg.dfp.multi.ads[aps.cfg.stp.at]||[] }}if(aps.cfg.dfp.multi.ads[aps.cfg.stp.at].indexOf(a.code)>=0){b=true }}}}}}}}}if(b){k[a.code]=a; a.adSizeDefined=[a.width,a.height]; aps.logInfo(a.code+" slot defined"); aps.definedTagArr[a.code]=a; a.batchRequest="requested"; h++; aps.cfg.stp[aps.cfg.stp.at].adsToRequest.push(a) }}}if(h==0){aps.logInfo("No more slots to process"); aps.cfg.stp[aps.cfg.stp.at].adRendered=true; return }googletag.cmd.push(function(){setDfpSearchValues(aps.gcontext) }); aps.fireEvent(aps.event.on_start_bidding,{slots:k}); googletag.cmd.push(function(){aps.cfg.bid.pb.adUnitIds[aps.cfg.stp.at]=aps.cfg.bid.pb.adUnitIds[aps.cfg.stp.at]||[]; for(var o=0; o-1){aps.cfg.bid.enabled=false }if(!aps.cfg.bid.enabled){googletag.cmd.push(function(){aps.enableGoogleServices(0) }) }}; window.hearstUpdateSlotRenderInfo=function(p){var w=p.slot||null; var y=p.slot.getSlotId().getDomId()||null; var s=p.lineItemId||null; if(s==null&&p.yieldGroupIds!=null){s=p.yieldGroupIds[0] }var l=p.creativeId||null; var o=p.isEmpty; var f=p.size||null; var i=p.advertiserId||null; var k=p.companyIds||[]; var g="banner"; var d=w.getHtml(); try{g=w.getTargetingMap().hb_format[0]||"banner"; if(g=="native"&&w.getHtml().indexOf("Prebid Native")==-1){g="banner" }}catch(n){}if(o){var m=p.slot.getSlotElementId(); var c=document.querySelectorAll("#"+m)[0]; if(c.dataset.slug=="Advertisement"){aps.logInfo(m+" - slot empty: hiding div"); c.style.display="none" }}var j=aps.getAdMetrics(y); j.lineItemId=s; j.creativeId=l; j.isEmpty=o; j.totalRenders++; if(j.totalRenders>1){j.rendered=aps.getTimeElapsedFromStamp(j.refreshCalled) }else{j.rendered=aps.getTimeElapsed() }if(f!=null){j.size=f[0]+" x "+f[1] }var h=(i==null)?"No ad":"Direct"; if(typeof(aps.cfg.advertisers[i])!="undefined"){h=aps.cfg.advertisers[i] }if(p.yieldGroupIds!=null){h="ExB/"+h; try{if(typeof(k[0])!="undefined"){h="ExB/"+aps.cfg.advertisers[k[0]] }}catch(n){}}if(aps.cfg.bid.reuseBids&&d!=""){var v=d.match(/renderAd\(document, \'(.*)\'/g); var a=d.match(/renderImp\(document,"(.*)"/g); var x=aps.cfg.bid.bids.filter(function(A){return A.ad==y }); x.forEach(function(B){var C=false; if(v&&B.source=="pb"){var A=v[0].split(",")[1].trim().replace(/'/g,"")||0; if(B.obj.adId==A){C=true }}if(a&&B.source=="a9"){var A=a[0].split(",")[1].trim().replace(/"/g,"")||0; if(B.obj.amzniid==A){C=true }}if(C){B.won=true }else{B.sent=false }}) }aps.cfg.dfp.rnd[y]=p; var b=aps.getAdDefinitionByCode(aps.codesByDomID[y])||{code:"",creativeURL:""}; if(b){b.renderCount++; b.isLoading=false; b.refreshable=true; if(aps.cfg.preventCeltraAdsToRefresh){if(d.indexOf("celtra")>-1){if(aps.cfg.dfp.celtraAds.indexOf(b.code)==-1){aps.cfg.dfp.celtraAds.push(b.code) }aps.logInfo(b.code+": Celtra ad detected"); b.refreshable=false; if(b.code=="Crown"||b.code=="Flex1"){if(aps.getQueryParameterByName("plainceltra")==null){aps.cfg.dfp.celtra.divs=aps.cfg.dfp.celtra.divs||[]; aps.cfg.dfp.celtra.monitorIframe=aps.cfg.dfp.celtra.monitorIframe||false; var q=document.getElementById("google_ads_iframe_"+p.slot.getSlotId().getId()); aps.cfg.dfp.celtra.divs.push(q); if(!aps.cfg.dfp.celtra.monitorIframe){aps.cfg.dfp.celtra.monitorIframe=true; q.addEventListener("load",function(A){aps.cfg.dfp.celtra.monitorIframeDisplay(0) }) }}if(aps.cfg.dfp.celtraAds.indexOf("Flex1")==-1){aps.cfg.dfp.celtraAds.push("Flex1"); aps.logInfo("Flex1 also disabled (Celtra on Crown)") }if(aps.cfg.dfp.celtraAds.indexOf("Crown")==-1){aps.cfg.dfp.celtraAds.push("Crown"); aps.logInfo("Crown also disabled (Celtra on Flex1)") }}}}aps.setPerformanceMetrics("FirstAdRendered",b.code+" ["+h+" : "+s+"] rendered into div "+y) }if(aps.cfg.preventNonSecureContent){if(d.indexOf("http:")>-1){aps.logInfo(b.code+" *WARNING* non https code found ["+h+"] lineitem: "+s) }}try{b.creativeURL=w.getContentUrl() }catch(n){b.creativeURL="" }aps.fireEvent(aps.event.on_ad_rendered,{adDefinition:b,newid:y,lineitem:s,size:f,isEmpty:o}); if(f!=null&&aps.leaderboardLineItemID==null){if(f[0]==300){aps.leaderboardLineItemID=s }}aps.renderInfo[y]={lineItem:s,creative:l,isEmpty:o,size:f,advertiser:h,advertiserId:i||p.yieldGroupIds}; if(b.isDynamic==true){var u=b.oldDivID; var t=b.newDivID; var z=(f!=null)?f[0]:0; var r=(f!=null)?f[1]:0; setTimeout(function(){aps.fireEvent(aps.event.on_dynamic_ad_rendered,{oldid:u,newid:t,cx:z,cy:r}); window.onJuiceEvent_DynamicAdRendered&&window.onJuiceEvent_DynamicAdRendered(u,t,z,r) },5) }}; aps.cfg.dfp.celtra.monitorIframeDisplay=function(a){if(a===7||aps.cfg.dfp.celtra.divs.length==0){return }for(var d=aps.cfg.dfp.celtra.divs.length-1; d>=0; d--){var b=aps.cfg.dfp.celtra.divs[d]; var f=b.parentElement; if(b.style.display==="none"){if(f.children.length>1){f.style.position="relative"; b.style.position="absolute"; b.style.width="100%"; b.style.height="100%"; b.style.left="0" }b.style.display="block"; aps.logInfo(f.parentElement.id+": fixing Celtra display"); aps.cfg.dfp.celtra.divs.splice(d,1) }}if(aps.cfg.dfp.celtra.divs.length>0){setTimeout(function(){aps.cfg.dfp.celtra.monitorIframeDisplay(a+1) },1000) }}; window.hearstGetVideoAdTagSize=function(a){var f=""; if(a.sizeMappings!=undefined&&a.sizeMappings.length>0){var d=[]; for(var c=0; c1&&parseInt(b[2],10)>4){d.push(parseInt(b[1],10)+"x"+parseInt(b[2],10)) }}f="?sz="+d.join("%7C") }else{f="?sz="+encodeURIComponent(a.width+"x"+a.height) }return f }; window.hearstGetVideoAdTag=function(b){if(aps.videoAdTag==null){aps.logInfo("hearstGetVideoAdTag called with no video tag defined : ignoring "); return null }var a=aps.videoAdTag; if(typeof(a)=="undefined"){aps.logInfo("hearstGetVideoAdTag called with non-defined ad slot "+b+" : ignoring "); return null }if(a.video==false){aps.logInfo("hearstGetVideoAdTag called non video defined ad slot "+b); return null }aps.fireEvent(aps.event.on_hearst_place_ad,{adDefinition:a}); var g=hearstGetVideoAdTagSize(a); var h="https://cybercemetery.unt.edu/archive/womensvote100/20201214204438/https://pubads.g.doubleclick.net/gampad/ads"; h+=g; h+="&iu="+encodeURIComponent(definedTags.networkCode+"/"+definedTags.adUnit); h+="&url="+encodeURIComponent(top.location.protocol+"//"+JuicePageUrl); h+="&impl=s"; h+="&gdfp_req=1"; h+="&env=vp"; h+="&output=xml_vast3"; h+="&page_type="+aps.page_type2; h+="&unviewed_position_start=1"; h+="&description_url="+encodeURIComponent(top.location.protocol+"//"+JuicePageUrl); h+="&vpos=preroll"; h+="&ad_safe=medium"; if(a.companion_units!=null&&a.companion_units!=""){h+="&ciu_szs="+encodeURIComponent(a.companion_units) }else{h+="&ciu_szs=" }var c=""; c+="distributor_domain="; if(aps.current_domain.indexOf("m.")==0){c+=aps.current_domain.substr(2) }else{c+=aps.current_domain }c+="&perf_sec="+aps.perf_sec; c+="&page_type2="+aps.page_type2; c+="&page_type3="+(encodeURIComponent(aps.getVideoTagPageType3(b))); c+="&pageurl="+encodeURIComponent(top.location.protocol+"//"+JuicePageUrl); c+="&referrer="+encodeURIComponent(document.referrer); c+="&urlhash="+aps.performanceMetrics.urlHash; c+="&pw=__player-width__&ph=__player-height__"; c+=(aps.cfg.vid.tagUrl=="")?"":"&"+aps.cfg.vid.tagUrl; for(var d=0; d-1){a.interstitial=true }if(a.interstitial){aps.logInfo("hearstPlaceAd "+b); return }if(!a.interstitial&&!a.rm){if(divID!=null){aps.logInfo("hearstPlaceAd calling hearstPlaceDynamicAd "+b+" divid "+divID); hearstPlaceDynamicAd(b,divID); return }else{if(!a.oop){d=true }}}if(!aps.isDivIDUniqueForAdPlacement("hearstPlaceAd",b)){return }aps.logInfo("hearstPlaceAd "+b); aps.MarkDivIDAsUnique(b); aps.callsByDomID[b]=0; if(document.getElementById(b)==null){aps.logInfo("hearstPlaceAd called with div not on page: "+b) }if(b.indexOf("SSHOW")==0){d=false }if(d){aps.refreshableSlots.push(b) }if(document.getElementById(b)!=null){try{aps.cmd.push(function(){aps.waitForScriptsToLoad(); aps.initialUpdatePageLevelKVPS(aps.gcontext); aps.logPageKVPsforDiv(b); aps.fireEvent(aps.event.on_before_display_ad,{adDefinition:a,slot:aps.slotsByDivID[a.newDivID]}); aps.getAdMetrics(b).googleDisplay=aps.getTimeElapsed() }) }catch(c){aps.logException("hearstPlaceAd exception for "+b,c) }}}; aps.markInterstitialAsRefreshable=function(b){if(b=="GO300"){return }if(aps.isAdCodeRefreshable(b)){return }var a=aps.getAdDefinitionByCode(b); if(!a.interstitial){return }aps.refreshableSlots.push(b) }; aps.isAdCodeRefreshable=function(a){for(var b=0; b-1){return true }return false }; aps.refreshSlotsWithWaitCounter=function(c,b){if(aps.refreshWaitCounter>0){var a=0; self.refreshCheck=setInterval(function(){if(a>50){if(a>50){aps.logError("hearstRefreshAds wait - timed out waiting for a script"); aps.disableFailedWaitScripts() }aps.refreshWaitCounter=0 }if(aps.refreshWaitCounter<=0){window.clearInterval(self.refreshCheck); aps.logInfo("hearstRefreshAds wait complete : "+a+" iterations"); aps.logInfo(b); googletag.cmd.push(function(){if(aps.cfg.bid.enabled){aps.setPerformanceMetrics(null,"prebid set targeting"); pbjs.setTargetingForGPTAsync(); aps.fireEvent(aps.event.on_before_enable_google_services) }googletag.pubads().refresh(c); aps.fireEvent(aps.event.on_ad_refresh_call,{gslots:c}) }) }a++ },50) }else{aps.logInfo(b); googletag.cmd.push(function(){aps.setPerformanceMetrics(null,"prebid set targeting"); pbjs.setTargetingForGPTAsync(); aps.fireEvent(aps.event.on_before_enable_google_services); googletag.pubads().refresh(c); aps.fireEvent(aps.event.on_ad_refresh_call,{gslots:c}) }) }}; window.hearstRefreshAds=function(){var a=(arguments.length==1)?arguments[0]:aps.refreshableSlots; var o=[]; var n=this; var m=""; var k=[]; var l=[]; var g=0; if(typeof definedTags=="undefined"){aps.logInfo("Tags not received, delaying 0.5s"); setTimeout(function(){hearstRefreshAds(a) },500); return }if(!aps.refreshAvailable){aps.logInfo("hearstRefreshAds called premature : rejected"); return }var h=[]; for(var d=0; d-1){aps.logInfo("skipping refresh of "+b.code+" . This ad is not displaying on this device"); continue }if(!b.refreshable){aps.getDataLayerInterstitial(); if(aps.cfg.dfp.dataLayerInterstials.length>0&&aps.cfg.dfp.dataLayerInterstitialRefreshables.indexOf(b.code)>-1&&b.renderCount>1){b.refreshable=true }}if(aps.cfg.dfp.celtraAds.indexOf(b.code)>-1){aps.logInfo("skipping refresh of "+b.code+" . It's a Celtra ad.") }else{if(b.isLoading==true){aps.logInfo("skipping refresh of "+b.code+" . It has not completed last request."); g++ }else{if(!b.refreshable){aps.logInfo("skipping refresh of "+b.code+" . It's not a refreshable ad.") }else{if(b.renderCount<=1){aps.logInfo("skipping refresh of "+b.code+" . It has never rendered.") }else{if(aps.refreshViewableOnly&&!b.impressionViewable){aps.logInfo("skipping refresh of "+b.code+" . It is not viewable.") }else{if(b.code=="Flex1"&&b.renderCount>2){aps.logInfo("skipping refresh of Flex1, limited to 1 refresh") }else{aps.logInfo("refreshing "+b.code); b.impressionViewable=false; k.push(b.code) }}}}}}}if(k.length<=0){aps.logInfo("No ads are in refreshable state - skipping refresh"); return }aps.updatePageLevelKVPS(aps.gcontext); aps.fireEvent(aps.event.on_update_page_level_targeting); aps.fireEvent(aps.event.on_before_refresh_ads); a=k; for(c=0; c0){aps.cfg.dfp.refreshes++; aps.cfg.dfp.waiting=aps.cfg.dfp.waiting.concat(l); aps.cfg.dfp.isWaiting=true; aps.waitStartStep("hearstRefreshAds") }}; window.hearstRefreshInterstitialAds=function(a){var f=[]; var b=[]; aps.logInfo("hearstRefreshInterstitialAds called: "+a.join(", ")); if(typeof definedTags=="undefined"){aps.logInfo("Tags not received, delaying 0.5s"); setTimeout(function(){hearstRefreshInterstitialAds(a) },500); return }if(!aps.refreshAvailable){aps.logInfo("hearstRefreshInterstitialAds called premature : rejected"); return false }for(var d=0; d0){aps.cfg.dfp.refreshes++; aps.cfg.dfp.waiting=aps.cfg.dfp.waiting.concat(f); aps.cfg.dfp.isWaiting=true; aps.waitStartStep("hearstRefreshInterstitialAds") }}; aps.contentLoaded(window,aps.domLoaded) })();(function(){window.treg=window.treg||{}; window.treg.cmd=window.treg.cmd||[]; aps.cfg.tregReady=false; window.treg.cmd.push(function(){window.treg.realm.events.register("realm.Oidc.refreshLogicComplete",function(a){if(!aps.cfg.tregReady){aps.logInfo("Treg ready") }aps.cfg.tregReady=true }) }) })();aps.cfg.bid.disableNative=true;(function(){aps.topWindow=(aps.scriptName=="googleAsync")?window:top; aps.topAps=aps.topWindow.aps; aps.initialUpdatePageLevelKVPS=function(a){if(!aps.hearstPlaceAdHasUpdatedKVPS){aps.hearstPlaceAdHasUpdatedKVPS=true; aps.logInfo("calling updatePageLevelKVPS from hpa"); aps.topAps.updatePageLevelKVPS(a) }} })();(function(){aps.hash=aps.hash||{}; aps.codec=aps.codec||{}; aps.bitArray={bitSlice:function(b,d,c){b=aps.bitArray._shiftRight(b.slice(d/32),32-(d&31)).slice(1); return(c===undefined)?b:aps.bitArray.clamp(b,c-d) },extract:function(b,d,c){var f,e=Math.floor((-d-c)&31); if((d+c-1^d)&-32){f=(b[d/32|0]<<(32-e))^(b[d/32+1|0]>>>e) }else{f=b[d/32|0]>>>e }return f&((1<0&&d){b[c-1]=aps.bitArray.partial(d,b[c-1]&2147483648>>(d-1),1) }return b },partial:function(b,c,a){if(b===32){return c }return(a?c|0:c<<(32-b))+b*1099511627776 },getPartial:function(a){return Math.round(a/1099511627776)||32 },equal:function(c,d){if(aps.bitArray.bitLength(c)!==aps.bitArray.bitLength(d)){return false }var f=0,e; for(e=0; e=32; g-=32){f.push(c); c=0 }if(g===0){return f.concat(b) }for(d=0; d>>g); c=b[d]<<(32-g) }e=b.length?b[b.length-1]:0; h=aps.bitArray.getPartial(e); f.push(aps.bitArray.partial(g+h&31,(g+h>32)?c:f.pop(),1)); return f },_xor4:function(a,b){return[a[0]^b[0],a[1]^b[1],a[2]^b[2],a[3]^b[3]] },byteswapM:function(b){var c,e,d=65280; for(c=0; c>>24)|((e>>>8)&d)|((e&d)<<8)|(e<<24) }return b }}; aps.codec.hex={fromBits:function(a){var c="",b; for(b=0; b>>8>>>8>>>8); e<<=8 }return decodeURIComponent(escape(d)) },toBits:function(c){c=unescape(encodeURIComponent(c)); var b=[],a,d=0; for(a=0; a9007199254740991){throw ("Cannot hash more than 2^53 - 1 bits") }if(typeof Uint32Array!=="undefined"){var d=new Uint32Array(a); var g=0; for(f=512+k-((512+k)&511); f<=h; f+=512){this._block(d.subarray(16*g,16*(g+1))); g+=1 }a.splice(0,16*g) }else{for(f=512+k-((512+k)&511); f<=h; f+=512){this._block(a.splice(0,16)) }}return this },finalize:function(){var d,a=this._buffer,c=this._h; a=aps.bitArray.concat(a,[aps.bitArray.partial(1,1)]); for(d=a.length+2; d&15; d++){a.push(0) }a.push(Math.floor(this._length/4294967296)); a.push(this._length|0); while(a.length){this._block(a.splice(0,16)) }this.reset(); return c },_init:[],_key:[],_precompute:function(){var c=0,e=2,a,d; function b(f){return(f-Math.floor(f))*4294967296|0 }for(; c<64; e++){d=true; for(a=2; a*a<=e; a++){if(e%a===0){d=false; break }}if(d){if(c<8){this._init[c]=b(Math.pow(e,1/2)) }this._key[c]=b(Math.pow(e,1/3)); c++ }}},_block:function(t){var q,s,c,d,e=this._h,r=this._key,f=e[0],g=e[1],j=e[2],l=e[3],m=e[4],n=e[5],o=e[6],p=e[7]; for(q=0; q<64; q++){if(q<16){s=t[q] }else{c=t[(q+1)&15]; d=t[(q+14)&15]; s=t[q&15]=((c>>>7^c>>>18^c>>>3^c<<25^c<<14)+(d>>>17^d>>>19^d>>>10^d<<15^d<<13)+t[q&15]+t[(q+9)&15])|0 }s=(s+p+(m>>>6^m>>>11^m>>>25^m<<26^m<<21^m<<7)+(o^m&(n^o))+r[q]); p=o; o=n; n=m; m=l+s|0; l=j; j=g; g=f; f=(s+((g&j)^(l&(g^j)))+(g>>>2^g>>>13^g>>>22^g<<30^g<<19^g<<10))|0 }e[0]=e[0]+f|0; e[1]=e[1]+g|0; e[2]=e[2]+j|0; e[3]=e[3]+l|0; e[4]=e[4]+m|0; e[5]=e[5]+n|0; e[6]=e[6]+o|0; e[7]=e[7]+p|0 }} })();(function(){aps.waitForScriptsToLoad=function(){}; aps.scriptLoaderStarted=false; aps.requiredGPTScriptCount=aps.requiredGPTScriptCount||0; aps.loadAsyncScripts=function(){if(aps.topWindow!=self){return }aps.logInfo("loadingAsyncScripts: "+aps.queuedScriptCount); aps.performanceMetrics.TotalThirdPartyScripts=aps.queuedScriptCount; for(var a in aps.adScripts){if(aps.adScripts.hasOwnProperty(a)){aps.queueAsyncScript(aps.adScripts[a]) }}aps.scriptLoaderStarted=true; aps.testAsyncWaitFunctions(); aps.initializeScriptLoadChecking() }; aps.queueAsyncScript=function(a){a.loadstart=new Date(); if(a.testFunction!=null){return }var b=a; a.callback=function(){if(!b.complete){b.loadend=new Date(); b.complete=true; aps.logInfo(b.name+" loaded : "+(b.loadend-b.loadstart)); aps.fireEvent(aps.event.on_script_loaded,{scriptDetails:b}) }}; aps._loadScript2(a) }; aps.testAsyncWaitFunctions=function(){for(var b in aps.adScripts){if(aps.adScripts.hasOwnProperty(b)){if(aps.adScripts[b].testFunction!=null&&aps.adScripts[b].complete==false){if(aps.adScripts[b].testFunction()===true){var a=aps.adScripts[b]; a.loadend=new Date(); a.complete=true; aps.logInfo(a.name+" loaded : "+(a.loadend-a.loadstart)); aps.fireEvent(aps.event.on_script_loaded,{scriptDetails:aps.adScripts[b]}) }}}}}; aps._testAsyncStatus=function(){var a=aps.adScripts; aps.testAsyncWaitFunctions(); var c=0; for(var b in aps.adScripts){if(aps.adScripts.hasOwnProperty(b)){if(aps.adScripts[b].complete&&aps.adScripts[b].requiredForGPT){c++ }}}if(c==aps.requiredGPTScriptCount){aps.adScriptsLoaded=true }return aps.adScriptsLoaded }; aps.initializeScriptLoadChecking=function(){var c=this; var b=0; var a=aps.adScripts; aps.adScriptsLoaded=false; aps.logInfo("initializeScriptLoadChecking"); c.loadCheck=function(){if(b>50){aps.logError("ScriptLoadChecking timed out waiting for a script"); aps.adScriptsLoaded=true }else{aps._testAsyncStatus() }if(aps.adScriptsLoaded==true){aps.logInfo("ScriptLoadChecking complete : "+b+" iterations"); aps.performanceMetrics.ThirdPartyScriptsLoaded=aps.getTimeElapsed(); window.clearInterval(c.loadCheck); aps.fireEvent(aps.event.on_third_party_complete); googletag.cmd.push(function(){aps.unQueueCommands() }) }else{b++; setTimeout(c.loadCheck,50) }}; setTimeout(c.loadCheck,50) }; aps.queueScriptAsync=function(d,e,c,a){var b={name:d,scriptID:null,path:e,testFunction:null,complete:false,loadstart:null,loadend:null,appCallback:a,requiredForGPT:c}; aps.adScripts[d]=b; aps.queuedScriptCount++; aps.queuedWaitCount++; if(c){aps.requiredGPTScriptCount++ }if(aps.scriptLoaderStarted){aps.queueAsyncScript(b) }return b }; aps.queueScriptAsyncID=function(e,c,f,d,a){var b={name:e,scriptID:c,path:f,testFunction:null,complete:false,loadstart:null,loadend:null,appCallback:a,requiredForGPT:d}; aps.adScripts[e]=b; aps.queuedScriptCount++; aps.queuedWaitCount++; if(d){aps.requiredGPTScriptCount++ }if(aps.scriptLoaderStarted){aps.queueAsyncScript(b) }return b }; aps.queueWaitFunction=function(b,c){var a={name:b,scriptID:null,path:null,testFunction:c,complete:false,loadstart:null,loadend:null,appCallback:null,requiredForGPT:true}; aps.adScripts[b]=a; aps.queuedWaitCount++; aps.requiredGPTScriptCount++; if(aps.scriptLoaderStarted){aps.queueAsyncScript(a) }return a }; aps._loadScript2=function(a){var c=a.path; if(!c||!(typeof c==="string")){return }var b=document.createElement("script"); b.type="text/javascript"; b.async=true; if(a.scriptID!=null){b.id=a.scriptID }if(b.addEventListener){b.addEventListener("load",function(){try{a.callback.apply(a) }catch(d){aps.logException("_loadScript2",d) }if(a.appCallback!=null){a.appCallback.apply(a) }},false) }else{b.onreadystatechange=function(){if(b.readyState in {loaded:1,complete:1}){b.onreadystatechange=null; console.log(oCallback); try{a.callback.apply(a) }catch(d){aps.logException("_loadScript2",d) }if(a.appCallback!=null){a.appCallback.apply(a) }}} }b.src=c; document.getElementsByTagName("head")[0].appendChild(b) } })();(function(){aps.isLeafSite=function(){return document.location.hostname.match(/((homeguides|smallbusiness|work|healthyeating|livehealthy|education|pyme)\.(chron|sfgate|seattlepi|lavoz)\.com)/)!=null }; if(aps.isLeafSite()){if(document.cookie.split(";").filter(function(a){return a.indexOf("region=EU")>=0 }).length==1){aps.logInfo("region EU detected, disabling personalized ads"); aps.cfg.disablePersonalisation=true; if(document.location.href.indexOf("gdpr=true")>-1){aps.cfg.bid.enableGDPR=true }}}else{if(document.location.href.indexOf("?is_eu=1")>-1){aps.logInfo("region EU (test) detected, disabling personalized ads"); aps.cfg.disablePersonalisation=true }}})();(function(){var b=this; b.StripAndPreserveQuerystringVars=function(e,d){if(typeof(e)=="undefined"){return"" }var c=e.split("&"); var f=[]; c.forEach(function(g){g=g.split("="); if(d.indexOf(g[0])!=-1){f.push(g[0]+"="+g[1]) }}); if(f.length>0){return"?"+f.join("&") }return"" }; b.setPageTargettedUrl=function(d,c,f){var g=c.split("?"); var e=""; if(f.length==0){e=g[0] }else{e=g[0]+b.StripAndPreserveQuerystringVars(g[1],f) }aps.gcontext.pubads().setTargeting(d,e); aps.logInfo("page kvp: "+d+"="+e) }; b.setPageTargettedUrl("PageUrl",JuicePageUrl,["Testpage","Cmpid","Ipid"]); var a=document.referrer.replace(/^(http(?:s)?:\/\/)/,"").split("/")[0]; b.setPageTargettedUrl("referrer",a,[]) })();(function(){var b=this; b.aps=aps; b.refreshed=[]; b.codeFromSlot=function(d){for(var c in aps.slotsByDivID){if(aps.slotsByDivID.hasOwnProperty(c)){if(aps.slotsByDivID[c]==d){return aps.codesByDomID[c] }}}return"undefined" }; b.setSlotTargeting=function(n,c){var m=(typeof(b.refreshed[c])=="undefined")?"":"_R"; var k=""; if(aps.faceBookInstantArticle){aps.page_type2="instant article" }else{if(typeof(aps.topWindow.omni_SSVariant)!="undefined"){k="_"+aps.topWindow.omni_SSVariant }try{var i=b.getOmniContentType(); if(aps.page_type2!=i){aps.page_type2=b.getOmniContentType(); aps.cfg.dfp.pageType2Set=false }}catch(d){}}aps.cfg.dfp.pageType2Set=aps.cfg.dfp.pageType2Set||false; if(!aps.cfg.dfp.pageType2Set){aps.gcontext.pubads().setTargeting("page_type2",aps.page_type2); aps.cfg.dfp.pageType2Set=true }n.setTargeting("page_type2",aps.page_type2); n.setTargeting("page_type3",c+"_"+aps.page_type2+k); b.refreshed[c]=true; try{if(!aps.cfg.adtest){aps.cfg.adtest={}; aps.cfg.adtestparam=b.getQueryParam("adtest"); if(aps.cfg.adtestparam){aps.cfg.adtestparam=decodeURI(aps.cfg.adtestparam).split("|"); for(var j=0; j1){return C.toLowerCase().replace(/^(.)|\s(.)/g,function(D){return D.toUpperCase() }) }}}; if(typeof(omni_blogID)!="undefined"){o=omni_blogID }if(typeof(omni_blogauthor)!="undefined"){e=B(omni_blogauthor) }if(typeof(omni_blogauthortype)!="undefined"){c.AuthorType=omni_blogauthortype }if(typeof(omni_blogposttitle)!="undefined"){d=(omni_blogposttitle.toLowerCase()=="page not found"); w=omni_blogposttitle; if(w.charAt(w.length-1)==" "){w=w.substr(0,w.length-1) }}if(typeof(omni_blogname)!="undefined"){g=omni_blogname }if(typeof(omni_blogcategory2)!="undefined"){c.Category=omni_blogcategory2 }if(c.Category.length>0){if(typeof(omni_blogcategory)!="undefined"){c.SuperCategory=omni_blogcategory }}else{if(typeof(omni_blogcategory)!="undefined"){c.Category=omni_blogcategory }}if(typeof(omni_blogusage)!="undefined"){c.Usage=omni_blogusage }if(typeof(omni_section)!="undefined"){c.Section=omni_section }if(typeof(omni_voices)!="undefined"){c.Voice=omni_voices }this.abParseURL=function(){var F=l; if(F.indexOf("#")>-1){F=F.split("#")[0] }var D=F.indexOf("?")+1; var E=F.indexOf(".com")+5; k=F.substr(0,E); if(D>0){q=F.substring(D); A=F.substring(0,D-1) }else{A=F }z=A; A=A.substr(E); if(A.charAt(A.length-1)=="/"){A=A.substr(0,A.length-1) }var C=new Array(); C=A.split("/"); x=C[0]; y=C[C.length-1]; if(x==y){y="index" }if(top.document.location.hostname=="insidescoopsf.sfgate.com"){x="insidescoop" }return x+":"+y }; this.abAssignSections=function(){if(c.SuperCategory.length>0){i=c.SuperCategory; s=c.SuperCategory; t=s+":"+c.Category; u=t+":blogs"; v=u+":"+g.toLowerCase() }else{i=c.Category; s=c.Category; t=s+":blogs"; u=t+":"+g.toLowerCase(); v=u; if(c.Voice.length>0){v=v+":"+c.Voice.toLowerCase() }}n=v.replace(/:/g,",") }; p="Blogs-"+abParseURL(); if(c.Category==""){abCategorizeBlog(x,c) }abAssignSections(); if(w==""||w==g){w="Blog index page" }if(c.Section.length>0){g=g+":"+c.Section }w=g+":"+w; o=g+"--"+o; h=c.AuthorType; g=g+"("+c.AuthorType+")"; w=w+"("+c.AuthorType+")"; w=w.replace(/'/g,""); m=w; if(e){if(e.indexOf(",")!=-1){e=e.substring(0,e.indexOf(",")) }}if(d){return"undefined" }else{return j }}; aps.page_type2="undefined"; if(aps.faceBookInstantArticle){aps.page_type2="instant article" }else{try{aps.page_type2=b.getOmniContentType() }catch(a){}}aps.performanceMetrics.page_type2=aps.page_type2; aps.logInfo("page_type2: "+aps.page_type2) })();(function(){if(document.location.pathname.toLowerCase().indexOf("were-you-seen")>-1){aps.gcontext.pubads().setTargeting("type","seen"); aps.logInfo("page kvp: type: seen") }})();(function(){if(APSpageUrl){if(APSpageUrl.indexOf("staging.richie")==0||APSpageUrl.indexOf("richie")==0||APSpageUrl.indexOf("papp")==0){googletag.cmd.push(function(){try{googletag.pubads().set("page_url",JuicePageUrl); aps.logInfo("Richie app: Setting page_url to "+JuicePageUrl) }catch(a){}}); aps.logInfo("Richie app: disabling modules"); if(document.location.href.indexOf("?appId=")==-1){aps.cfg.bid.enabled=false }aps.cfg.excludeModules=["nlp","ab_testing","blueconic","PublisherProvidedId","permutive"] }}})();(function(){aps.registerEvent(aps.event.on_dom_loaded,function(a){var b=aps.getQueryParameterByName("juiceconsole"); if(b!=null){setTimeout(function(){var c=document.createElement("script"); c.src="//mis.hearstnp.com/juice/Bookmarklets/debug.js"+"?bustcache="+new Date().getTime(); document.body.appendChild(c) },parseInt(b,10)) }var b=aps.getQueryParameterByName("hnp-debug"); if(b!=null){setTimeout(function(){var c=document.createElement("script"); c.src="//mis.hearstnp.com/juice/Bookmarklets/hnp-debug.js"+"?bustcache="+new Date().getTime(); document.body.appendChild(c) },parseInt(b,10)) }}) })();(function(){aps.specifiedAdSlots={}; aps.usingSelectiveAdSlotLoading=false; aps.selectiveAdSlotCookieName="Ju13ceSelectiveAdsList"; aps.shouldPlaceAd=function(c){if(!aps.usingSelectiveAdSlotLoading){return true }return(typeof(aps.specifiedAdSlots[c])!="undefined") }; aps.saveSelectiveLoadingAdSlotList=function(){var c=[aps.selectiveAdSlotCookieName,"=",JSON.stringify(aps.specifiedAdSlots),"; domain=.",window.location.host.toString(),"; path=/;"].join(""); document.cookie=c }; aps.clearSelectiveLoadingAdSlots=function(){aps.specifiedAdSlots={}; aps.saveSelectiveLoadingAdSlotList() }; aps.addSlotToSelectiveLoadingList=function(c){aps.specifiedAdSlots[c]=true; aps.saveSelectiveLoadingAdSlotList() }; aps.removeSlotFromSelectiveLoadingList=function(c){if(typeof(aps.specifiedAdSlots[c])!="undefined"){delete aps.specifiedAdSlots[c]; aps.saveSelectiveLoadingAdSlotList() }}; var b=aps.getQueryParameterByName("sadslot[]"); if(b!=null){aps.usingSelectiveAdSlotLoading=true; for(var a=0; a-1){return false }if(!aps.usingSelective3rdLoading){return true }return(typeof(aps.specified3rdParties[c])!="undefined") }; aps.add3rdToSelectiveLoadingList=function(c){aps.specified3rdParties[c]=true }; var a=aps.getQueryParameterByName("sad3rd[]"); if(a!=null){aps.usingSelective3rdLoading=true; for(var b=0; b-1||aps.cfg.bid.disableMobile){return }}if(aps.cfg.bid.excludedDomains.indexOf(aps.current_domain)>-1){aps.logInfo("Domain excluded from bidders (A9): "+aps.current_domain); return }if(aps.shouldRunThirdParty("a9")&&aps.cfg.bid.enabled&&aps.current_domain!="greenstate.com"){!function(e,c,h,j,k,d,f){if(c[e]){return }function i(g,l){c[e]._Q.push([g,l]) }c[e]={init:function(){i("i",arguments) },fetchBids:function(){i("f",arguments) },setDisplayBids:function(){},_Q:[]}; d=h.createElement(j); d.async=!0; d.src=k; f=h.getElementsByTagName(j)[0]; f.parentNode.insertBefore(d,f) }("apstag",window,document,"script","https://cybercemetery.unt.edu/archive/womensvote100/20201214204438/https://c.amazon-adsystem.com/aax2/apstag.js"); if(aps.cfg.disablePersonalisation&&!aps.cfg.bid.enableGDPR){return }aps.cfg.bid.a9.partners["1ayvuv4"]="AppNexus"; aps.cfg.bid.a9.partners["2kotmo"]="DistrictM"; aps.cfg.bid.a9.partners["1gqg3k"]="Oath"; aps.cfg.bid.a9.partners["bgbtvk"]="OpenX"; aps.cfg.bid.a9.partners["1m2fm68"]="Pubmatic"; aps.cfg.bid.a9.partners["t7ludc"]="Rubicon"; aps.cfg.bid.a9.validSections={"":"home page","Homepage":"home page","news":"news","entertainment":"entertainment","sports":"sports","burningman":"burningman","realestate":"real estate","obituaries":"obituaries","bayarea":"local news","seen-events":"seen","neighborhood":"local news","food":"food","lifestyle":"living","life":"living","business":"business","local":"local news","ontheblock":"real estate","politics":"news","homestyle":"real estate","living":"living","california-wildfires":"local news","seen-saratoga":"seen","comics-and-games":"entertainment","technology":"technology","education":"education","seen":"seen","expensive-san-francisco":"local news","2018":"local news","2019":"local news","weather":"local news","national":"news","homes":"real estate","photogallery":"news","style":"living","search":"other","science":"news","houseoftheweek":"real estate","music":"entertainment","sfhistory":"local news","nation":"news","readmore":"other","49ers":"sports","portal":"subsciption","crime":"local news","client":"entertainment","warriors":"sports","chris-mcginnis":"travel","raiders":"sports","chronicle_vault":"entertainment","art":"entertainment","real-estate":"real estate","insidescoop":"food","mommyfiles":"living","seattlenews":"local news","beer":"food","access.aspx?product=newedition&from=http:":"subsciption","travel":"travel","giants":"sports","galleries":"news","home":"real estate","opinion":"local news","jobs":"jobs","houston":"local news","education_clone_6643_20180713151626":"local news","dearabby":"entertainment","beauty":"living","outdoors":"travel","subscribe-new-offers":"subsciption","earthquakes":"local news","cars":"autos","chronicle-history":"local news","capitol":"local news","tablehopping":"food","photos":"news","latestnews":"news","mlb":"sports","horoscope":"entertainment","new-haven":"local news","fiesta":"local news","collegesports":"sports","blogs":"other","preps":"sports","auto":"autos","originalpets":"living","lifestyles":"living","athletics":"sports","weird":"news","wine":"food","games":"entertainment","comics":"entertainment","columns":"local news","getaways":"travel","us":"news","rodeo":"entertainment",}; aps.cfg.bid.a9.config.pubID="3070"; aps.cfg.bid.a9.config.adServer="googletag"; aps.cfg.bid.a9.config.bidTimeout=aps.cfg.stp.def.timeout||2500; var a=document.location.href.split("/")||["","",""]; var b=""; if(aps.cfg.bid.a9.validSections[a[3]]==undefined){b="other" }else{b=aps.cfg.bid.a9.validSections[a[3]] }switch(a[2]){case"education.seattlepi.com":b="Education"; break; case"healthyeating.sfgate.com":b="Healthy Eating"; break; case"homeguides.sfgate.com":b="Home Guides"; break; case"livehealthy.chron.com":b="Live Healthy"; break; case"pyme.lavoztx.com":b="Pyme"; break; case"smallbusiness.chron.com":b="Small Business"; break; case"work.chron.com":b="Work"; break }aps.cfg.bid.a9.config.params={}; aps.cfg.bid.a9.config.params.si_section=b; aps.cfg.bid.a9.config.us_privacy=(aps.cfg.doNotSell)?"1YYY":"1---"; aps.cfg.bid.a9.apstag=apstag; aps.cfg.bid.a9.checkInitCalled=function(){if(!aps.cfg.bid.a9.initCalled){aps.cfg.bid.a9.initCalled=true; aps.logInfo("init A9"); apstag.init(aps.cfg.bid.a9.config) }}; if(aps.current_domain=="gametimect.com"){aps.cfg.bid.a9.config.blockedBidders=["1m2fm68","bgbtvk","1ayvuv4","t7ludc","1sq5vcw","2kotmo","1238um8","kbyu4g","1juiv40","fw5c00","1fepczk","xnfchs","1x5zdhc","70ibr4","16j2cqo","orsc8w","1oacd8g","acdgcg","19uxhc0","s3ngu8","1rm7hts","1gqg3k"] }aps.registerEvent(aps.event.on_before_refresh_ads,function(c){if(!aps.cfg.bid.a9.enabled){return }aps.logInfo("A9 updateSlotsKVPs"); aps.logInfo("Start A9 refresh"); aps.cfg.stp[aps.cfg.stp.at].a9.bidsReceived=false; if(aps.cfg.bid.a9.adUnits[aps.cfg.stp.at]){if(aps.cfg.bid.a9.adUnits[aps.cfg.stp.at].length>0){apstag.fetchBids({slots:aps.cfg.bid.a9.adUnits[aps.cfg.stp.at],timeout:aps.cfg.stp[aps.cfg.stp.at].timeout},function(d){var e=googletag.pubads().getSlots(); aps.cfg.bid.a9.handleDisplayBids(d,e) }) }}}); aps.registerEvent(aps.event.on_start_bidding,function(c){if(!aps.cfg.bid.a9.enabled){return }aps.cfg.bid.a9.adUnits[aps.cfg.stp.at]=aps.cfg.bid.a9.buildAdSlots(c.slots); aps.cfg.bid.a9.getDisplayBids(aps.cfg.bid.a9.adUnits[aps.cfg.stp.at]); if(aps.cfg.bid.a9.videoAdUnits.length==0){aps.cfg.bid.a9.videoAdUnits=aps.cfg.bid.a9.buildDisplaySlots(c.slots); aps.cfg.bid.a9.getVideoBids() }}); googletag.cmd.push(function(){googletag.pubads().addEventListener("slotRenderEnded",function(c){c.slot.setTargeting("amznbid",""); c.slot.setTargeting("amzniid","") }) }); aps.registerEvent(aps.event.on_before_enable_google_services,function(c){if(!aps.cfg.bid.a9.enabled){return }aps.logInfo("A9 set targeting"); apstag.setDisplayBids() }); aps.cfg.bid.a9.keySlots=function(c){return c.reduce(function(d,e){var f=e.getSlotElementId(); d[f]=e; return d },{}) }; aps.cfg.bid.a9.handleDisplayBids=function(c){aps.setPerformanceMetrics("A9AllBidsReceived","A9 bids received"); aps.cfg.stp[aps.cfg.stp.at].a9.bidsReceived=true; c.forEach(function(e){if(e.amznbid!="2"){var g=new Date().valueOf(); var f=aps.cfg.bid.a9.partners[e.amznp]||"A9"; var d=aps.cfg.dfp.ads[e.slotID]; aps.cfg.bid.bids.push({ad:d.code,bid:e.amznbid,bidder:f,expires:(10*60*1000)+g,pageuuid:aps.cfg.pageuuid,position:d.position,received:g,sent:true,size:e.size,source:"a9",step:aps.cfg.stp.at,url:document.location.hostname+document.location.pathname,viewability:0,won:false,obj:e}); aps.logInfo(e.slotID+" *BID* A9/"+f+" "+e.amznbid+" [banner]") }}); if(aps.cfg.bid.detectAllBids&&(aps.cfg.stp[aps.cfg.stp.at].pb.biddersDone.length>=(aps.cfg.stp[aps.cfg.stp.at].pb.calledBidders.length-aps.cfg.bid.lessBidder))){aps.setPerformanceMetrics(null,"all bids received"); googletag.cmd.push(function(){aps.enableGoogleServices(0) }) }}; aps.cfg.bid.a9.buildAdSlots=function(f){var e=[]; for(var g in f){var c=aps.definedTagArr[g]; if(c.code=="APflex"&&aps.current_domain!="timesunion.com"){continue }if(c.batchRequest!="requested"){continue }if(aps.cfg.bid.a9.excludedSlots.indexOf(c.code)>-1||aps.cfg.bid.excludedSlots.indexOf(c.code)>-1){aps.logInfo("A9: Skipping "+c.code); continue }if(c.code=="A951"&&document.location.href.indexOf("https://cybercemetery.unt.edu/archive/womensvote100/20201214204438/https://www.sfgate.com/realestate/")==0){aps.logInfo("A9: Skipping A951 on realestate"); continue }if(!c.video){var d={}; d.slotID=c.code; d.slotName="/"+definedTags.networkCode+"/"+definedTags.adUnit+"/"+c.code; d.sizes=c.sizes; if(d.sizes.length>0){e.push(d) }}}return e }; aps.cfg.bid.a9.getDisplayBids=function(c){if(aps.cfg.disablePersonalisation&&!aps.cfg.bid.enableGDPR){return }c=c||[]; if(c.length==0){return }if(!(aps.cfg.bid.disableMobile&&(aps.current_domain.indexOf("m.")==0))){aps.a9Requesting=c; aps.cfg.stp[aps.cfg.stp.at].a9.bidsReceived=false; aps.cfg.bid.a9.checkInitCalled(); aps.setPerformanceMetrics("A9BidsRequested","calling A9 display"); apstag.fetchBids({slots:aps.a9Requesting,timeout:aps.cfg.bid.a9.config.bidTimeout},function(d){aps.cfg.bid.a9.handleDisplayBids(d) }) }}; aps.cfg.bid.a9.buildDisplaySlots=function(f){var e=[]; for(var c=0; c0){googletag.cmd.push(function(){aps.cfg.bid.a9.checkInitCalled(); aps.logInfo("calling A9 video"); apstag.fetchBids({slots:aps.cfg.bid.a9.videoAdUnits,timeout:aps.cfg.bid.a9.config.bidTimeout},function(c){aps.cfg.bid.a9.handleVideoBids(c) }) }) }}; aps.cfg.bid.a9.handleVideoBids=function(c){aps.logInfo("A9 video bid received: "+c.length); if(c.length>0){aps.cfg.vid.tagUrl+=c[0].qsParams; aps.logInfo(c[0].slotID+" *BID* A9/"+(aps.cfg.bid.a9.partners[c[0].amznp]||"A9")+" "+c[0].qsParams+" [video]"); aps.cfg.bid.bids.push({slotid:c[0].slotID,bid:c[0].amznbid,bidder:aps.cfg.bid.a9.partners[c[0].amznp]||"A9"}) }}; aps.registerEvent(aps.event.on_request_new_video_ads,function(){aps.cfg.bid.a9.getVideoBids() }) }})();(function(){aps.registerEvent(aps.event.on_before_enable_google_services,function(c){var a=!1; if(aps.current_domain=="expressnews.com"||aps.current_domain=="houstonchronicle.com"){try{if(GetCookie("hrstctok")!=null){a=1 }}catch(b){}}else{if(aps.current_domain=="sfchronicle.com"){try{if(JSON.parse(sessionStorage.getItem("sync-subscriberPlans-status"))["hasActivePlans"]==true){a=1 }}catch(b){}}}if(a){googletag.cmd.push(function(){aps.logInfo("user authenticated"); aps.gcontext.pubads().setTargeting("category","premuser") }) }}) })();(function(){var a=""; switch(aps.current_domain){case"houstonchronicle.com":case"chron.com":a="hou"; break; case"expressnews.com":case"mysanantonio.com.com":a="sa"; break; case"sfchronicle.com":case"sfgate.com":a="sf"; break; case"timesunion.com":a="tu"; break; default:return; break }aps.registerEvent(aps.event.on_before_enable_google_services,function(h){var d=false; var l=false; var j=[]; try{if(typeof(localStorage)!=undefined){var f=JSON.parse(localStorage.getItem("hnp_subs")); var b=1; var e=null; if(f!=null){for(var g in f){if(f.hasOwnProperty(g)){e=f[g]; if(e.hasOwnProperty("sub_status_"+b)){var i=a; if(e["sub_status_"+b]=="Active"){i=i+"_a_" }else{i=i+"_ex_" }i=i+e["sub_product_"+b]+"_"; i=i+e["sub_product_code_"+b]; j.push(i) }}b++ }}}}catch(c){}var k=a+"_na"; if(j.length>=1){k=j.join(",") }googletag.cmd.push(function(){aps.logInfo("swgt = "+k); aps.gcontext.pubads().setTargeting("swgt",k) }) }) })();(function(){window.onHearstLogBadScript=function(c,a){window.bad_scripts=window.bad_scripts||[]; var b=c.split(" ")[0]; window.bad_scripts.push(b); console.log("Script with a problem: "+b); console.log("line nuember: "+a) } })();!function(){var b=function(Q,S){function U(c,d){return c<>>32-d }function W(h,i){var j,k,l,m,n; return l=2147483648&h,m=2147483648&i,j=1073741824&h,k=1073741824&i,n=(1073741823&h)+(1073741823&i),j&k?2147483648^n^l^m:j|k?1073741824&n?3221225472^n^l^m:1073741824^n^l^m:n^l^m }function Y(d,e,f){return d&e|~d&f }function aa(d,e,f){return d&f|e&~f }function ac(d,e,f){return d^e^f }function ae(d,e,f){return e^(d|~f) }function ag(c,d,e,k,l,m,n){return c=W(c,W(W(Y(d,e,k),l),n)),W(U(c,m),d) }function ai(c,d,f,k,l,m,n){return c=W(c,W(W(aa(d,f,k),l),n)),W(U(c,m),d) }function ak(c,d,g,k,l,m,n){return c=W(c,W(W(ac(d,g,k),l),n)),W(U(c,m),d) }function am(c,d,h,k,l,m,n){return c=W(c,W(W(ae(d,h,k),l),n)),W(U(c,m),d) }function ao(j){for(var k,l=j.length,m=l+8,n=(m-m%64)/64,o=16*(n+1),p=Array(o-1),q=0,r=0; l>r; ){k=(r-r%4)/4,q=r%4*8,p[k]=p[k]|j.charCodeAt(r)<>>29,p }function aq(f){var g,h,i="",j=""; for(h=0; 3>=h; h++){g=f>>>8*h&255,j="0"+g.toString(16),i+=j.substr(j.length-2,2) }return i }function at(e){e=e.replace(/\r\n/g,"\n"); for(var f="",g=0; gh?f+=String.fromCharCode(h):h>127&&2048>h?(f+=String.fromCharCode(h>>6|192),f+=String.fromCharCode(63&h|128)):(f+=String.fromCharCode(h>>12|224),f+=String.fromCharCode(h>>6&63|128),f+=String.fromCharCode(63&h|128)) }return f }void 0===S&&(S=""),void 0===Q&&(Q=10000000000*Math.random()+"||"+window.location.href+"||"+(new Date).getTime()+"||"+S); var av,ax,ay,az,aA,aB,aC,aD,aE,aF=Array(),aG=7,R=12,T=17,V=22,X=5,Z=9,ab=14,ad=20,af=4,ah=11,aj=16,al=23,an=6,ap=10,ar=15,au=21; for(Q=at(Q),aF=ao(Q),aB=1732584193,aC=4023233417,aD=2562383102,aE=271733878,av=0; av-1){return }window.ntvConfig=window.ntvConfig||{}; window.ntvConfig.keyValues=window.ntvConfig.keyValues||{}; aps.cfg.permutive.ntvConfig=localStorage.getItem("_pnativo"); if(aps.cfg.permutive.ntvConfig){window.ntvConfig.keyValues.permutive=aps.cfg.permutive.ntvConfig }aps.setPermutiveValue=function(arrToTest){retValue=null; if(!arrToTest.length){arrToTest=[arrToTest] }for(var i=0; iaps.cfg.permutive.maxItems){aps.logInfo("Permutive: "+aps.cfg.permutive.ids.length+" audiences found"); aps.cfg.permutive.ids=aps.cfg.permutive.ids.slice(0,aps.cfg.permutive.maxItems) }aps.gcontext.pubads().setTargeting("permutive",aps.cfg.permutive.ids); aps.logInfo("Permutive (from local storage): "+aps.cfg.permutive.ids) }}else{if(aps.cfg.permutive.ids.length>aps.cfg.permutive.maxItems){aps.logInfo("Permutive: "+aps.cfg.permutive.ids.length+" audiences found") }aps.gcontext.pubads().setTargeting("permutive",aps.cfg.permutive.ids); aps.logInfo("Permutive: "+aps.cfg.permutive.ids) }}) })();(function(){if(aps.shouldRunThirdParty("blueconic")){var a=this; aps.registerEvent(aps.event.on_update_page_level_targeting,function(d){if(typeof localStorage.bcDFPTargetingParams!=="undefined"){aps.logInfo("Blueconic segments detected"); try{var b=window.JSON.parse(localStorage.bcDFPTargetingParams); if(b[0]["key"]=="audiences"&&b[0]["value"].length>0){aps.gcontext.pubads().setTargeting("bc_audiences",b[0]["value"]); aps.logInfo("Blueconic data: "+localStorage.bcDFPTargetingParams) }else{aps.logInfo("Empty blueconic segment detected") }}catch(c){aps.logInfo("error parsing blueconic data") }}else{aps.logInfo("Blueconic segments not detected") }}) }})();(function(){if(aps.shouldRunThirdParty("PublisherProvidedId")){googletag.cmd.push(function(){var d="; "+document.cookie; var c=d.split("; BCSessionID="); if(c.length==2){var b=c.pop().split(";").shift(); var a=aps.codec.hex.fromBits(aps.hash.sha256.hash(b)); aps.logInfo("PublisherProvidedId: "+b+" hash: "+a); googletag.pubads().setPublisherProvidedId(a) }else{aps.logInfo("PublisherProvidedId: BCSessionID not detected") }}) }})();(function(){if(aps.shouldRunThirdParty("nlp")){aps.getHDNnlpWithId=function(q,o){var p=[]; try{var j=HDN.dataLayer.content["keyNlp"+q]; for(var n=0; n0){d.push("a_"+k) }k=aps.getHDNnlpWithId("ConsumerGood","g"); if(k.length>0){d.push(k) }k=aps.getHDNnlpWithId("Event","e"); if(k.length>0){d.push(k) }k=aps.getHDNnlpWithId("Location","l"); if(k.length>0){d.push(k) }k=aps.getHDNnlpWithId("Organization","o"); if(k.length>0){d.push(k) }k=aps.getHDNnlpWithId("Person","p"); if(k.length>0){d.push(k) }k=aps.getHDNnlpWithId("Unknown","u"); if(k.length>0){d.push(k) }k=aps.getHDNnlpWithId("WorkOfArt","w"); if(k.length>0){d.push(k) }googletag.cmd.push(function(){aps.gcontext.pubads().setTargeting("nlp_entities",d) }); aps.logInfo("nlp_entities: "+d.toString()) }catch(e){aps.logInfo("nlp_categories: exception") }}})();(function(){if(aps.shouldRunThirdParty("perf_sec")){var a=this; a.getWCMPath=function(){if(typeof window.omni_channelPath=="undefined"){return null }var c=window.omni_channelPath.toLowerCase(); c=c.replace(new RegExp(" :: ","g"),":"); var b=(window.location.search.indexOf("articleComments")!==-1); if(omni_className=="article"||omni_className=="slideshow"){c=c+":"+omni_className; if(b){c=c+" comments" }}return c }; a.getGSAPath=function(){if(window.location.search.indexOf("/search/")!==-1){return"search" }return null }; a.getWordpressPath=function(){if(typeof window.omni_blogname=="undefined"){return null }var b=window.omni_blogcategory.toLowerCase(); if(typeof window.omni_blogcategory2!="undefined"){if(window.omni_blogcategory2!=""){b=b+":blog:"+window.omni_blogcategory2 }}b=b+":"+window.omni_blogname; return b }; aps.startThirdParty("perf_sec"); aps.queueWaitFunction("perf_sec_check",function(){var b=null; b=a.getWCMPath(); b=(b!=null)?b:a.getGSAPath(); b=(b!=null)?b:a.getWordpressPath(); if(b!=null){aps.perf_sec=b; googletag.cmd.push(function(){aps.logInfo("perf_sec: "+b); aps.gcontext.pubads().setTargeting("perf_sec",b) }); aps.stopThirdParty("perf_sec") }return(b!=null) }) }})();(function(){aps.cfg.dfp.abtestvar=""; if(aps.shouldRunThirdParty("ab_testing")){var a=this; a.setNPABTEST=function(){try{aps.cfg.dfp.abtestvar=window.HDN.dataLayer.abtest.experimentId.join()+"," }catch(b){}if(aps.cfg.dfp.abtestvar==""){aps.cfg.dfp.abtestvar=aps.abtest||aps.npabtest||"" }if(aps.cfg.dfp.abtestvar!=""){googletag.cmd.push(function(){aps.logInfo("npabtest : "+aps.cfg.dfp.abtestvar); aps.gcontext.pubads().setTargeting("ab",aps.cfg.dfp.abtestvar) }) }else{aps.logInfo("npabtest not detected.") }}; aps.setNPABTEST=a.setNPABTEST; aps.registerEvent(aps.event.on_before_enable_google_services,function(b){a.setNPABTEST() }) }})();(function(){aps.pwt={}; aps.pwt.getLocalStorage=function(){var h={}; var i=localStorage.getItem("identityHub"); if(i!=null){h=JSON.parse(i) }var i=localStorage.getItem("identityHub_getUserIds"); if(i!=null){h.getUserIds=function(){return JSON.parse(i) } }return h }; aps.pwt.setLocalStorage=function(){aps.logInfo("loaded PubMatic pwt.js"); localStorage.setItem("identityHub",JSON.stringify(window.PWT)); localStorage.setItem("identityHub_getUserIds",JSON.stringify(window.PWT.getUserIds())) }; window.PWT=aps.pwt.getLocalStorage(); var d=window.location.href; var f="//ads.pubmatic.com/AdServer/js/pwt/157076/2933"; var c=""; if(d.indexOf("pwtv=")>0){var e=/pwtv=(.*?)(&|$)/g; var a=e.exec(d); if(a.length>=2&&a[1].length>0){c="/"+a[1] }}var g=document.createElement("script"); g.async=true; g.id="identityHub"; g.type="text/javascript"; g.src=f+c+"/pwt.js"; g.onload=aps.pwt.setLocalStorage; var b=document.getElementsByTagName("script")[0]; b.parentNode.insertBefore(g,b); aps.logInfo("loading PubMatic pwt.js") })();(function () { /* prebid.js v4.4.0 Updated : 2020-08-25 */ !function(u){var s=window.pbjsChunk;window.pbjsChunk=function(e,t,n){for(var r,i,o,a=0,c=[];a>t/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e)},t.getBidIdParameter=function(e,t){if(t&&t[e])return t[e];return""},t.tryAppendQueryString=function(e,t,n){if(n)return e+t+"="+encodeURIComponent(n)+"&";return e},t.parseQueryStringParameters=function(e){var t="";for(var n in e)e.hasOwnProperty(n)&&(t+=n+"="+encodeURIComponent(e[n])+"&");return t=t.replace(/&$/,"")},t.transformAdServerTargetingObj=function(t){return t&&0';return n+=''},t.createTrackPixelIframeHtml=ue,t.getValueString=se,t.uniques=de,t.flatten=fe,t.getBidRequest=function(n,e){return n?(e.some(function(e){var t=c()(e.bids,function(t){return["bidId","adId","bid_id"].some(function(e){return t[e]===n})});return t&&(r=t),t}),r):void 0;var r},t.getKeys=le,t.getValue=pe,t.getKeyByValue=function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&e[n]===t)return n},t.getBidderCodes=function(){return(0t[n]?-1:0}},t.parseQS=Te,t.formatQS=Ie,t.parseUrl=function(e,t){var n=document.createElement("a");t&&"noDecodeWholeURL"in t&&t.noDecodeWholeURL?n.href=e:n.href=decodeURIComponent(e);var r=t&&"decodeSearchAsString"in t&&t.decodeSearchAsString;return{href:n.href,protocol:(n.protocol||"").replace(/:$/,""),hostname:n.hostname,port:+n.port,pathname:n.pathname.replace(/^(?!\/)/,"/"),search:r?n.search:R.parseQS(n.search||""),hash:(n.hash||"").replace(/^#/,""),host:n.host||window.location.host}},t.buildUrl=function(e){return(e.protocol||"http")+"://"+(e.host||e.hostname+(e.port?":".concat(e.port):""))+(e.pathname||"")+(e.search?"?".concat(R.formatQS(e.search||"")):"")+(e.hash?"#".concat(e.hash):"")},t.deepEqual=Ce,t.mergeDeep=je,t.cyrb53Hash=function(e){for(var t,n=1>>16,2246822507)^r(o^o>>>13,3266489909),(4294967296*(2097151&(o=r(o^o>>>16,2246822507)^r(i^i>>>13,3266489909)))+(i>>>0)).toString()};var r=n(3),i=n(158),o=n.n(i),a=n(10),c=n.n(a),u=n(12),s=n.n(u),d=n(159);n.d(t,"deepAccess",function(){return d.a});var f=n(160);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||g(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e){return function(e){if(Array.isArray(e))return b(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||g(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){if(e){if("string"==typeof e)return b(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(e,t):void 0}}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n