window.geoinfo=window.geoinfo||{};window._dfpObj={};window.adsconfig=eval({topBand:{countries:["IN"],section:[],sectionl2:["fashion"],templatename:[],platform:["amp","web","mweb"],refresh:35,checkpageconfig:true},minitv:{config:{player:{midRollAdBreak:[30000]},onAdplayer:{adSection:"minitv"}},platform:["mweb"],section:[],templatename:["home","home_us"],countries:[],midfreq:[30000],adSection:"minitv",dynLoadType:"editormweblineup_4",inpageType:"inPage",status:"1",sticky:true,loadstate:"expanded",agency:"customMiniTv",hl:"Vikas Ki Baat: Uttarakhand Leads with Equality & Unified Laws",loadevent:"onscroll",marker:"Now Playing",shareUrl:"http://jeetbetwin.com/videos/spotlight/film-vikas-ki-baat-uttarakhand-ke-saath-from-ensuring-equality-for-all-citizens-to-promoting-a-unified-legal-framework/videoshow/120149016.cms",skipAds:"0",videoId:"1xvibm496z",videoInloop:"1",rosloadevent:"onscroll",imageid:"120253282",checkpageconfig:true,loadeventVal:700,delayOverride:10000,closeTimeout:16,metakeywords:"TOI , TOI orignal, TOI Orignal Videos, TOI exclusive content, Latest News, Breaking News, Bollywood, Sports, Business and Political News | Times of India",bl:"0",sectionName:"minitv",redirectionType:"videoshow",layout:{inline:{listing:5,landing:1}},skipPrime:true,mode:"drop",layoutType:"mwebPip",timeout:0},InlineInterstitial:{Frequency_no:2,Initial_position:2},scorecard_flip_ad:{business:[],platform:["mweb"],templatename:[],size:[[300,100]],mweb:{size:[300,60],adCode:"/23037861279/TOI_MWEB/TOI_MWEB_ACROSS/TOI_MWEB_ACROSS_AX/TOI_MWEB_ACROSS_AX_LOGOFLIP"},adCode:"/7176/TOI/TOI_ROS/TOI_Web_ROS_SC_Flip",maxads:6,nextAdTimout:10,startAfer:3,divId:"adCodeOldGam-mweb-scorecard_flip_ad",adTimeout:5,displayTimout:1000},global_config:{utmBasedAdCodePrefix:[{caimpaign:"np",prefix:"NWP_Oppo",source:"oppo"},{prefix:"NWP_Vivo",source:"vivo",caimpaign:"np"}],minitvDelay:0,isHeaderV2:false,isCPDATF:true,consentPopup:"googlecmp",consentPopupTest:"onetrust"},taboola_perpectual:{checkpageconfig:true,reverse:true,disabled:true},toiad_props:{props:[{type:"clickTracker"},{type:"impTracker"}]}}); window.CPD={slots:[],HP:[],ROS:[],isATF_HP:"",isATF_ROS:"",isMREC_HP_WEB:0,isMREC_ROS_WEB:0,isMREC_HP_mWEB:0,isMREC_ROS_mWEB:0,isBottomOverlay_HP_mWEB:0,isBottomOverlay_ROS_mWEB:0,isTopBanner_HP_mWEB:0,isTopBanner_ROS_mWEB:0,isBillboard_HP_WEB:0,isBillboard_ROS_WEB:0,isSkin_HP_WEB:0,isSkin_ROS_WEB:0,packageID:[],reachCountEnable:true};window._dfpObj=window._dfpObj||{};window._dfpObj.loadSingleTimes=true;window._dfpObj.docReady=function(a){if(document.readyState==="complete"||document.readyState==="interactive"){setTimeout(a,1) }else{document.addEventListener("DOMContentLoaded",a)}};function isMobile(b){var a=false;if(typeof window==="undefined"&&typeof global==="object"&&global.isMobileUserAgent){return true}(function(c){if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(c)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(c.substr(0,4))){a=true }})(b||navigator.userAgent||navigator.vendor||window.opera);return a}function _toiad_isMobile(){if(typeof isMobile=="function"){return isMobile()}else{if(typeof isMobile=="boolean"){return isMobile}}return false}window.gptRan=false;window.PWT=window.PWT||{};window.googletag=window.googletag||{cmd:[]};window.debugLogs=window.debugLogs||function(a,c){try{if(typeof window==="object"&&window.location.href.indexOf("debugLogs=1")>-1){console.log(a,c)}}catch(b){}};function loadPWT(){var b=isMobile()?7404:7403; var a=document.createElement("script");a.async=true;a.src="http://ads.pubmatic.com/AdServer/js/pwt/23105/"+b+"/pwt.js";var c=document.getElementsByTagName("script")[0];c.parentNode.insertBefore(a,c);debugLogs("########## PWT JS request Sent: ",(performance.now()/1000).toFixed(2)+"seconds");return true}function loadTAM(){!function(f,c,k,h,d,b,i){if(c[f]){return}function j(g,a){c[f]._Q.push([g,a])}c[f]={init:function(){j("i",arguments)},fetchBids:function(){j("f",arguments)},setDisplayBids:function(){},targetingKeys:function(){return[] },_Q:[]};b=k.createElement(h);b.async=!0;b.src=d;i=k.getElementsByTagName(h)[0];i.parentNode.insertBefore(b,i)}("apstag",window,document,"script","//c.amazon-adsystem.com/aax2/apstag.js");apstag.init({pubID:"5025",adServer:"googletag",bidTimeout:2000,simplerGPT:true})}function loadGpt(){if(!window.gptRan&&typeof window!=="undefined"){window.gptRan=true;var a=document.createElement("script");a.async=true;a.src="http://securepubads.g.doubleclick.net/tag/js/gpt.js?network-code=7176";a.onload=function(){debugLogs("########## GPT JS loaded: ",(performance.now()/1000).toFixed(2)+"seconds") };var b=document.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b);debugLogs("########## GPT JS request Sent: ",(performance.now()/1000).toFixed(2)+"seconds")}return true}window.PWT.jsLoaded=function(){debugLogs("########## PWT JS loaded: ",(performance.now()/1000).toFixed(2)+"seconds");loadGpt()};if(window.TimesGDPR&&TimesGDPR.common.consentModule.gdprCallback){TimesGDPR.common.consentModule.gdprCallback(function(a){if(!a.isEUuser){loadPWT();loadTAM();setTimeout(loadGpt,50)}else{loadGpt() }})}else{loadGpt()}var jCheck={};(function(){jCheck._removeSplchracterFromStr=function(a){return typeof a==="string"?a.replace(/[^a-zA-Z0-9_\/]/g,"").toLowerCase():""};jCheck._getSubSecNavFrmUrl=function(a){var b=window.location.pathname.split("/");a=["videos"].indexOf(b[1])>-1?a+1:a;return b[a]?b[a]:""};jCheck.isValidProperty=function(b,c){try{b=Array.isArray(b)?b:[b];var a=[];var f=[];b.forEach(function(g){g=g||"";g=g.toLowerCase();if(g.indexOf("ex-")===0){var i=g.split("ex-")[1];i=jCheck._removeSplchracterFromStr(i); a.push(i)}else{var h=jCheck._removeSplchracterFromStr(g);f.push(h)}});c=jCheck._removeSplchracterFromStr(c);if(b.length>0){if(a.length&&a.indexOf(c)>-1){return 0}else{if(b.indexOf("all")===-1&&f.length&&f.indexOf(c)===-1){return 0}}}return 1}catch(d){console.error("J_LOG",d);return 0}}})();window.checkJarvisIsAdActive=function(k){try{if(k.jActive===1){return 1}var f=window._dfpObj&&window._dfpObj.isMobile&&typeof window._dfpObj.isMobile==="function"&&window._dfpObj.isMobile()?"mweb":"web";var p=window.Times&&window.Times.adsKeys||{}; var a=window.toiprops||{};var c=p.Channel||a._Channel;var n=p.SCN||jCheck._getSubSecNavFrmUrl(1);var l=p.Tmpl_SCN||a._Tmpl_SCN||a._Tmpl_pg;n=l==="home"?"home":n;var g=p.SubSCN||jCheck._getSubSecNavFrmUrl(2);var m=p.LastSubSCN||jCheck._getSubSecNavFrmUrl(3);var q=window._dfpObj.currentCountry||(window.geoinfo&&window.geoinfo.CountryCode)||window.geoCode;window._dfpObj.currentCountry=q;var s=window._dfpObj.currentCity||(window._dfpObj.getCookie&&window._dfpObj.getCookie("geo_city"))||(window.geoinfo&&window.geoinfo.city); window._dfpObj.currentCity=s;var j=[{k:"countries",v:q},{k:"city",v:s},{k:"business",v:c},{k:"platform",v:f},{k:"section",v:n},{k:"sectionl2",v:g},{k:"sectionl3",v:m},{k:"templatename",v:l},{k:"customurl",v:window.location.pathname}];for(var h=0;h-1){return true}if(c[f]){if(g.getAdUnitPath().match(new RegExp(d,"gi"))){b.push(c[f]) }else{a.push(c[f])}window._toi_displayedSlots.push(g.getSlotElementId());debugLogs("XSLT #### DISPLAY REQUEST SENT Total : ID",g.getSlotElementId())}})});return b.concat(a)};toiads._callBaseScript=function(){if(typeof window._baseScript==="function"&&!__baseScript&&typeof window!=="undefined"){window._baseScript();window.googletag.pubads().removeEventListener("slotOnload",toiads._callBaseScript)}};toiads._initAdserver=function(d,c,b){if(b){debugLogs("XSLT ######## event.targetDiv inside *******"); targetSlot=b;window.googletag.pubads().refresh([targetSlot])}else{if((d===true&&window.initAdserverFlag!==true)||(window.a9_BidsInit&&window.PWT.a9_BidsReceived&&window.PWT.ow_BidsReceived)||((!window.PWT.prebidOn||!window.a9_BidsInit)&&window.PWT.ow_BidsReceived)){window.initAdserverFlag=true;window.a9_BidsInit=false;window.PWT.a9_BidsReceived=false;window.PWT.ow_BidsReceived=false;window.PWT.adSlotsArr=[];if(Array.isArray(c)&&c.length>0){var h=toiads.expectedOrderFunc(c);if(h.length>0){var g=document.getElementById(h[0].getSlotElementId()); if(g){var f=document.querySelectorAll("[data-idslot]");for(var a in f){if(f[a]&&typeof f[a]!=="function"&&f[a].innerHTML){f[a].setAttribute("id",f[a].getAttribute("data-idslot"));f[a].removeAttribute("data-idslot")}}debugLogs("XSLT #### DISPLAY REQUEST SENT Total ("+h.length+") : "+(performance.now()/1000).toFixed(2)+"seconds",JSON.stringify(h.map(function(j){var i={};i.code=j.getAdUnitPath();i.id=j.getSlotElementId();return i})));window.googletag.pubads().refresh(h);h.map(function(i){if(window.ga&&i.getAdUnitPath().indexOf("Etimes_Mweb_Movies_FBN")>-1){ga("send","event","FBN_req","DISPLAY",1,1,{nonInteraction:1}) }return true})}else{debugLogs("XSLT #### Waiting: AFTER HTML READY DISPLAY REQUEST will send: "+(performance.now()/1000).toFixed(2)+"seconds",g);eventCallBack=function(l){var k=document.querySelectorAll("[data-idslot]");for(var j in k){if(k[j]&&typeof k[j]!=="function"&&k[j].innerHTML){k[j].setAttribute("id",k[j].getAttribute("data-idslot"));k[j].removeAttribute("data-idslot")}}window.googletag.pubads().refresh(l);l.map(function(i){if(window.ga&&i.getAdUnitPath().indexOf("Etimes_Mweb_Movies_FBN")>-1){ga("send","event","FBN_req","AFTER_HTML_DISPLAY",1,1,{nonInteraction:1}) }return true});debugLogs("XSLT #### AFTER HTML READY DISPLAY REQUEST SENT : "+(performance.now()/1000).toFixed(2)+"seconds",JSON.stringify(l.map(function(m){var i={};i.code=m.getAdUnitPath();i.id=m.getSlotElementId();return i})))};document.addEventListener("DOMContentLoaded",eventCallBack(h))}toiads.slotsToDisplay=toiads.definedSlots.filter(function(i){return h.indexOf(i)==-1})}}}}};toiads._doPubmaticBidding=function(a){if(typeof window.PWT.requestBids==="function"){debugLogs("XSLT #### PWT Bid request Sent ",JSON.stringify(a.map(function(b){return b.getAdUnitPath() })));window.PWT.requestBids(window.PWT.generateConfForGPT(a),function(b){window.PWT.addKeyValuePairsToGPTSlots(b);window.PWT.ow_BidsReceived=true;toiads._pushAdSlotsToInitArr(a);debugLogs("XSLT #### PWT Bid received: "+window.PWT.adSlotsArr.length,JSON.stringify(window.PWT.adSlotsArr.map(function(c){return c.getAdUnitPath()})));toiads._initAdserver(false,window.PWT.adSlotsArr)})}};toiads.reachCount=function(){if(toiads._getCookie("CPD_Reach"+new Date().getDate())){return true}toiads._setCookie("CPD_Reach"+new Date().getDate(),1,1) };toiads._iViewableIndexOf=function(b){if(b.getAdUnitPath().indexOf("TOI")===-1&&b.getAdUnitPath().indexOf("Etimes")===-1){return 1}if(iViewable.length===0){return -1}var a=iViewable.filter(function(c){return c.getSlotElementId()===b.getSlotElementId()});return a.length>0?1:-1};toiads._isInnov=function(a){return a.getAdUnitPath().toLowerCase().indexOf("innov")>-1?true:false};toiads._isATF=function(a){return a.getAdUnitPath().toLowerCase().indexOf("_atf")>-1?true:false};toiads._isTopBand=function(a){if(a.getAdUnitPath().toLowerCase().indexOf("top_strip")>-1){return true }else{if(a.getAdUnitPath().toLowerCase().indexOf("_topband")>-1){return true}else{if(a.getAdUnitPath().toLowerCase().indexOf("toi_mweb_fixed_atf")>-1){return true}else{return false}}}};toiads._hardRefershLogic=function(a){if(toiads._isATF(a)){toiads.ATF30refresh=1}setTimeout(function(){var b=toiads._iViewableIndexOf(a);if(b!==-1){return true}if(!toiads.containsAny(a.getAdUnitPath().toLowerCase(),window.CPD.slots)){return true}debugLogs("XSLT #### Force 30s refresh REQUEST initiated.",a.getAdUnitPath()); if(typeof window.PWT.requestBids==="function"){window._toi_displayedSlots=window._toi_displayedSlots.filter(function(c){return c!==a.getSlotElementId()});toiads.bidAndProcessAdRequest([a])}else{window.googletag.pubads().refresh([a]);debugLogs("XSLT #### Force 30s refresh Display Request SENT",a.getAdUnitPath())}if(!toiads._isATF(a)){iViewable.push(a)}return true},30000)};toiads.containsAny=function(d,c){d=d+"$";if(d.indexOf("toi_mweb_fixed_atf$")!=-1){return null}for(var b=0;b!=c.length;b++){var a=c[b]+"$"; if(d.indexOf(a)!=-1){return a}}return null};toiads.bidAndProcessAdRequest=function(b,a){try{if(typeof window.geoinfo!="undefined"&&window.geoinfo.CountryCode==="UK"){toiads._doPubmaticBidding(b);toiads._doAmazonHeaderBidding(b)}else{if(typeof window.geoinfo!="undefined"&&window.geoinfo.hasOwnProperty("Continent")&&window.geoinfo.Continent!=="EU"){toiads._doPubmaticBidding(b);toiads._doAmazonHeaderBidding(b)}else{window.TimesGDPR.common.consentModule.gdprCallback(function(d){if(d.isEUuser||(a===1&&d.userCountry==="IN")){window.PWT.ow_BidsReceived=true; window.PWT.a9_BidsReceived=true;toiads._initAdserver(false,b)}else{toiads._doPubmaticBidding(b);toiads._doAmazonHeaderBidding(b)}})}}}catch(c){if(toiads.bidAndProcessAdRequest<3&&a!==1){debugLogs("XSLT #### TimesGDPR fail - before ad request calls",b);setTimeout(function(){toiads.bidAndProcessAdRequest(b,a)},1000)}else{debugLogs("XSLT #### TimesGDPR fail - before ad request calls",b);window.PWT.ow_BidsReceived=true;window.PWT.a9_BidsReceived=true;toiads._initAdserver(false,b)}toiads.bidAndProcessAdRequest=+1 }};toiads._emitSlotLoadEvent=function(d){var b=d.getAdUnitPath();var a=d.getSlotElementId();if(b.toLowerCase().indexOf("_atf")&&a.toLowerCase().indexOf("-atf")){var c=new CustomEvent("PROCESS_ATF_STICKY",{detail:{adCode:b,divId:a}});window.dispatchEvent(c)}};toiads._viewableImpression=function(){window.googletag.cmd.push(function(){window.googletag.pubads().addEventListener("impressionViewable",function(c){var d=c.slot;var a=toiads._iViewableIndexOf(d);if(!toiads.containsAny(d.getAdUnitPath().toLowerCase(),window.CPD.slots)){return true }if(d.getAdUnitPath().match(new RegExp("_1x1","gi"))||a!==-1){return true}if(document.getElementById(d.getSlotElementId()).querySelector(".andbeyond_adunit")===null&&(d.getAdUnitPath().indexOf("TOI")>-1||d.getAdUnitPath().indexOf("Etimes")>-1)&&!toiads._isInnov(d)&&!d.getAdUnitPath().indexOf("TOI_Cube")>-1&&!d.getAdUnitPath().indexOf("TOI_MWeb_Cube")>-1&&!toiads._isTopBand(d)){var b=function(f){var g=setTimeout(function(){var h=toiads._iViewableIndexOf(f);if(document.hidden||toiads._isInnov(f)||h===-1){return true }if(typeof window.PWT.requestBids==="function"){toiads.bidAndProcessAdRequest([f]);window._toi_displayedSlots=window._toi_displayedSlots.filter(function(i){return i!==f.getSlotElementId()})}else{window.googletag.pubads().refresh([f])}iViewable=iViewable.filter(function(i){return i.getSlotElementId()!==f.getSlotElementId()});return true},30000);settimeoutArr.push(g);return true};debugLogs("XSLT #### push to impressionViewable "+(performance.now()/1000).toFixed(2)+"seconds",d.getAdUnitPath());iViewable.push(d); b(d)}return true})})};toiads._visibilitychange=function(){document.addEventListener("visibilitychange",function(){if(document.hidden){settimeoutArr.forEach(function(a){clearTimeout(a)});settimeoutArr=[];return true}if(typeof window.PWT.requestBids==="function"){iViewable.map(function(a){if(toiads.containsAny(a.getAdUnitPath().toLowerCase(),window.CPD.slots)){window._toi_displayedSlots=window._toi_displayedSlots.filter(function(b){return b!==a.getSlotElementId()});toiads.bidAndProcessAdRequest([a]) }})}else{window.googletag.cmd.push(function(){iViewable.map(function(a){if(toiads.containsAny(a.getAdUnitPath().toLowerCase(),window.CPD.slots)){window.googletag.pubads().refresh([a])}})})}debugLogs("XSLT #### visibilitychange REQUEST Next : ",JSON.stringify(iViewable.map(function(b){var a={};a.code=b.getAdUnitPath();a.id=b.getSlotElementId();return a})));iViewable.forEach(function(a,b){if(!toiads._isInnov(a)){iViewable[b]=null}});iViewable=iViewable.filter(function(a){return a!==null});return true })};toiads.CPD_ATF_Refresh=function(a){if(toiads._isATF(a)&&!toiads._isTopBand(a)&&toiads.ATF30refresh===0){if(window.CPD.isATF_HP===1&&location.pathname==="/"){return true}if(window.CPD.isATF_ROS===1&&location.pathname!=="/"){return true}}return false};toiads._addSlotRequestedEvent=function(){if(window.slotRequestEvent==="1"){return}try{window.slotRequestEvent="1";window.googletag.pubads().addEventListener("slotRenderEnded",function(b){if(b!==undefined&&!b.isEmpty){if(toiads._isInnov(b.slot)&&toiads._iViewableIndexOf(b.slot)===-1){toiads._hardRefershLogic(b.slot) }if(toiads._isTopBand(b.slot)){setTimeout(function(){googletag.pubads().refresh([b.slot]);debugLogs("XSLT #### Top Band Refresh Request sent :",(performance.now()/1000).toFixed(2)+"seconds")},31000)}if(window.CPD.slots.length>0&&window.CPD.reachCountEnable){toiads.reachCount(b.slot)}}});toiads._viewableImpression();toiads._visibilitychange();window.googletag.pubads().addEventListener("slotOnload",toiads._callBaseScript)}catch(a){}};toiads._doAmazonHeaderBidding=function(a){debugLogs("XSLT #### TAM Bid request Sent **",a.map(function(b){return b.getAdUnitPath() }));if(a&&a.length>0){window.a9_BidsInit=true;window.googletag.cmd.push(function(){apstag.fetchBids({slots:a},function(b){window.apstag.setDisplayBids();window.PWT.a9_BidsReceived=true;toiads._pushAdSlotsToInitArr(a);debugLogs("XSLT #### TAM Bid received: "+b,JSON.stringify(window.PWT.adSlotsArr.map(function(c){return c.getAdUnitPath()})));toiads._initAdserver(false,window.PWT.adSlotsArr)})})}};toiads._mrecplusplusCheck=function(a){if(toiads.containsAny(a.toLowerCase(),["_mrec"])){if(window.adsconfig&&window.adsconfig.hasOwnProperty("npdashboard")&&window.adsconfig.npdashboard.hasOwnProperty("nativeAds")){if(window.adsconfig.npdashboard.nativeAds.hasOwnProperty("nativeMREC")){return true }}}return false};toiads._updateArr=function(m){var b=0;var o=document.querySelectorAll("[data-adsSlot][data-adsslot]:not([data-fallback-ad-for])");if(o.length===0){return true}for(var h=0;h-1&&(a.indexOf("fbn")>-1||a.indexOf("atf")>-1)){h=true}if(a.indexOf("_mweb")>-1&&a.indexOf("fbn")>-1){b=50}if(a.indexOf("mweb")===-1&&(((a.indexOf("atf")>-1||a.indexOf("btf")>-1)&&a.indexOf("_300")>-1)||a.indexOf("mrec")>-1)){d=300;b=250;h=true}if(!h){return g}c=c.filter(function(i){if(Array.isArray(i)){var k=i[0]; var j=i[1];if(k&&k<=d&&(!b||b>=j)){return true}else{return false}}else{return true}});if(c.length){return c}else{return g}}toiads._updatedivclass=function(a){if(a.hasOwnProperty("addclass")&&a.hasOwnProperty("divId")){var b=document.getElementById(a.divId);if(b&&b.parentElement){b.parentElement.className+=" "+a.addclass}}};toiads._defineSlot=function(d){adArr=window.pageLoadAdsArr;_admsid=typeof(TimesETArticleshow)!=="undefined"&&TimesETArticleshow.constants.msid?TimesETArticleshow.constants.msid:_admsid; _admsid=!_admsid&&typeof(TimesPhotostory)!=="undefined"&&TimesPhotostory.getCurrentSlide()!==null?TimesPhotostory.getCurrentSlide():_admsid;_admsid=!_admsid&&typeof(window.toiprops)!=="undefined"&&window.toiprops.hasOwnProperty("msid")?window.toiprops.msid:_admsid;for(var c=0;c1421&&adArr[c]["adCodeBig"])?adArr[c]["adCodeBig"]:adArr[c]["adCode"];if(adArr[c].hasOwnProperty("checkJarvisIsAdActive")){if(!window.adsconfig.hasOwnProperty(adArr[c]["checkJarvisIsAdActive"])){continue}if(window.checkJarvisIsAdActive(window.adsconfig[adArr[c]["checkJarvisIsAdActive"]])!==1){continue}}if(toiads._mrecplusplusCheck(b)){continue }if(!adArr[c]["size"]||!adArr[c].hasOwnProperty("size")){slot=googletag.defineOutOfPageSlot(b,a).addService(googletag.pubads())}else{if(window._toi_displayedSlots.length>0&&adArr[c].hasOwnProperty("sizeaj")){slot=googletag.defineSlot(b,getSupportedSizes(adArr[c]["sizeaj"],b),a).addService(googletag.pubads())}else{slot=googletag.defineSlot(b,getSupportedSizes(adArr[c]["size"],b),a).addService(googletag.pubads())}}if(window.ga&&b.indexOf("Etimes_Mweb_Movies_FBN")>-1){ga("send","event","FBN_req","defineSlot",1,1,{nonInteraction:1}) }toiads.display.push(a);if(toiads.containsAny(b.toLowerCase(),window.CPD.slots)){toiads.CPDdefinedSlots.push(slot)}else{if(toiads.containsAny(b.toLowerCase(),window.CPD.lazyLoadEnabledSlots)&&"IntersectionObserver" in window){window.CPD.lazyLoadSlots[a]=slot;var f=document.querySelector("#"+a);window.CPD.observer.observe(f)}else{toiads.definedSlots.push(slot);toiads.slotsToDisplay.push(slot)}}window._toi_processedSlots.push(a);if(adArr[c]["refresh"]){toiads.refresh.push(slot)}toiads._updatedivclass(adArr[c]) }if(toiads.definedSlots.length>0&&parseInt(d,10)===d&&typeof toiads.adRefresh=="function"){toiads.adRefresh()}return true};toiads.buildsAds=function(a){var b=/div/g;if(b.test(a)){return true}debugLogs("XSLT #### My Code is Ready:",(performance.now()/1000).toFixed(2)+"seconds");toiads.display=[];if(a!=="ArrayFirst"){toiads._updateArr(a)}googletag.cmd.push(function(){debugLogs("XSLT #### googletag Ready:",(performance.now()/1000).toFixed(2)+"seconds");toiads._settargetting();toiads._defineSlot(a);toiads.refreshTopBand(toiads.definedSlots); if(toiads.display.length===0){return true}if(toiads.definedSlots.length===0&&toiads.CPDdefinedSlots.length===0){return true}googletag.pubads().enableAsyncRendering();googletag.pubads().collapseEmptyDivs(true);googletag.pubads().enableSingleRequest();googletag.enableServices();googletag.pubads().disableInitialLoad();if(window.TimesGDPR&&window.TimesGDPR.common){window.TimesGDPR&&window.TimesGDPR.common.consentModule.gdprCallback(function(c){if(c.isEUuser&&c.didUserOptOut===false){window.googletag.pubads().setRequestNonPersonalizedAds(0) }else{if(c.isEUuser){window.googletag.pubads().setRequestNonPersonalizedAds(1)}}toiads._addSlotRequestedEvent(toiads.display)})}window.initAdserverFlag=false;setTimeout(function(){debugLogs("XSLT #### Timeout called.",+(performance.now()/1000).toFixed(2)+"seconds");window.PWT.ow_BidsReceived=true;window.PWT.a9_BidsReceived=true;toiads._initAdserver(false,toiads.slotsToDisplay);if(toiads.loadColombiaJS==="1"&&ctnAds&&typeof ctnAds.loadColombiaJS=="function"){ctnAds.loadColombiaJS();toiads.loadColombiaJS="0" }},1500);if(toiads.definedSlots.length===0&&toiads.CPDdefinedSlots.length===0){return false}if(toiads.CPDdefinedSlots.length>0){toiads.bidAndProcessAdRequest(toiads.CPDdefinedSlots,1)}if(toiads.definedSlots.length>0){toiads.bidAndProcessAdRequest(toiads.definedSlots)}toiads.definedSlots=[];googletag.pubads().addEventListener("slotRenderEnded",function(d){if(d.slot.getAdUnitPath().match(/_Innov1/g)&&d.isEmpty){for(var c=0;c50){$("#"+a).addClass("atf-fixed");setTimeout(function(){$("#"+a).addClass("atf-fixed")},6000);$(document).off("scroll",b)}};$(document).on("scroll",b)};toiads._chkGeoContinentLogic=function(b){var a=window.geoContinent;var d=(b+"").split("|");if((b+"").indexOf("!")>=0){if(d.indexOf("!"+a)>-1){return true }}else{if(d.indexOf(a)>-1){return false}}};toiads._chkGeoLogic=function(a,b){var d=(a+"").split("|");if((a+"").indexOf("!")>=0){if(d.indexOf("!"+window.geoCode)>-1){return true}}else{if(d.indexOf(window.geoCode)>-1){return false}}};window._dfpObj=window._dfpObj||{};window._dfpObj.getCcaudData=window._dfpObj.getCcaudData||function(){var a="";if(typeof colaud!=="undefined"){a=window.colaud.aud}else{if(typeof localStorage!=="undefined"&&typeof localStorage.getItem("colaud")!=="undefined"&&localStorage.getItem("colaud")!==null){a=localStorage.getItem("colaud") }}return a};toiads._settargetting=function(){var n="";try{if(typeof(colaud)!="undefined"&&typeof(colaud.aud)!="undefined"&&colaud.aud!=""){n=colaud.aud}else{if(typeof localStorage!="undefined"&&typeof(localStorage.getItem("colaud"))!="undefined"){n=localStorage.getItem("colaud")}}}catch(I){}var D="";var G="";var g=(typeof toiprops!="undefined"&&toiprops.hasOwnProperty("_Tmpl_pg")&&typeof toiprops._Tmpl_pg!="undefined")?toiprops._Tmpl_pg:"";var E=(typeof _PGT_pg!="undefined")?_PGT_pg:((typeof toiprops!="undefined"&&toiprops.hasOwnProperty("_PGT_pg")&&typeof toiprops._PGT_pg!="undefined")?toiprops._PGT_pg:""); var C=(typeof toiprops!="undefined"&&toiprops.hasOwnProperty("_BL_pg")&&typeof toiprops._BL_pg!="undefined")?1:0;var h=(typeof toiprops!="undefined"&&toiprops.hasOwnProperty("_Tmpl_SCN")&&typeof toiprops._Tmpl_SCN!="undefined")?toiprops._Tmpl_SCN:"";var d="";var a=document.getElementsByTagName("meta")["keywords"]?document.getElementsByTagName("meta")["keywords"].getAttribute("content"):"";var H=(typeof toiprops!="undefined"&&toiprops.hasOwnProperty("_MetaKey_pg")&&typeof toiprops._MetaKey_pg!="undefined")?toiprops._MetaKey_pg:a; var f=function(M){if(typeof(M)=="undefined"){return""}if(M.length>100){return M.substr(0,100)}return M};var j=document.cookie.match(new RegExp("prc=([^#]+)"));var K=parseInt((j&&j[1])?j[1]:0);var m=[0,2,6,7];var A=(m.indexOf(K)>-1)?true:false;var J=(typeof toiprops!="undefined"&&toiprops.hasOwnProperty("msid")&&typeof toiprops.msid!="undefined")?toiprops.msid:"";var s=(typeof toiprops!="undefined"&&toiprops.hasOwnProperty("hyp1")&&typeof toiprops.hyp1!="undefined")?toiprops.hyp1:"";var b=(typeof toiprops!="undefined"&&toiprops.hasOwnProperty("_Channel")&&typeof toiprops._Channel!="undefined")?toiprops._Channel:""; var F=(typeof toiprops!="undefined"&&toiprops.hasOwnProperty("_SCN")&&typeof toiprops._SCN!="undefined")?toiprops._SCN:"";toiads.section=F;var L=(typeof toiprops!="undefined"&&toiprops.hasOwnProperty("_SubSCNs")&&typeof toiprops._SubSCNs!="undefined")?toiprops._SubSCNs:"";var B=(typeof toiprops!="undefined"&&toiprops.hasOwnProperty("_LastSubSCN")&&typeof toiprops._LastSubSCN!="undefined")?toiprops._LastSubSCN:"";var y=(typeof toiprops!="undefined"&&toiprops.hasOwnProperty("_LastSubSCN_Child_1")&&typeof toiprops._LastSubSCN_Child_1!="undefined")?toiprops._LastSubSCN_Child_1:""; var x=(typeof toiprops!="undefined"&&toiprops.hasOwnProperty("_LastSubSCN_Child_2")&&typeof toiprops._LastSubSCN_Child_2!="undefined")?toiprops._LastSubSCN_Child_2:"";var w=(typeof toiprops!="undefined"&&toiprops.hasOwnProperty("_LastSubSCN_Child_3")&&typeof toiprops._LastSubSCN_Child_3!="undefined")?toiprops._LastSubSCN_Child_3:"";var v=(typeof toiprops!="undefined"&&toiprops.hasOwnProperty("_LastSubSCN_Child_4")&&typeof toiprops._LastSubSCN_Child_4!="undefined")?toiprops._LastSubSCN_Child_4:""; var u=(typeof toiprops!="undefined"&&toiprops.hasOwnProperty("_LastSubSCN_Child_5")&&typeof toiprops._LastSubSCN_Child_5!="undefined")?toiprops._LastSubSCN_Child_5:"";var r=(typeof toiprops!="undefined"&&toiprops.hasOwnProperty("_LastSubSCN_Child_6")&&typeof toiprops._LastSubSCN_Child_6!="undefined")?toiprops._LastSubSCN_Child_6:"";var q=(typeof toiprops!="undefined"&&toiprops.hasOwnProperty("_LastSubSCN_Child_7")&&typeof toiprops._LastSubSCN_Child_7!="undefined")?toiprops._LastSubSCN_Child_7:""; var p=(typeof toiprops!="undefined"&&toiprops.hasOwnProperty("_LastSubSCN_Child_8")&&typeof toiprops._LastSubSCN_Child_8!="undefined")?toiprops._LastSubSCN_Child_8:"";var o=(typeof toiprops!="undefined"&&toiprops.hasOwnProperty("_LastSubSCN_Child_9")&&typeof toiprops._LastSubSCN_Child_9!="undefined")?toiprops._LastSubSCN_Child_9:"";var k=(typeof toiprops!="undefined"&&toiprops.hasOwnProperty("_Article_ID")&&typeof toiprops._Article_ID!="undefined")?toiprops._Article_ID:"";var t=(typeof toiprops!="undefined"&&toiprops.hasOwnProperty("_Meta_Keywords")&&typeof toiprops._Meta_Keywords!="undefined")?toiprops._Meta_Keywords:""; var i=(typeof toiprops!="undefined"&&toiprops.hasOwnProperty("_Content_URL")&&typeof toiprops._Content_URL!="undefined")?toiprops._Content_URL:"";var z=(typeof toiprops!="undefined"&&toiprops.hasOwnProperty("isMicrosite")&&typeof toiprops.isMicrosite!="undefined")?toiprops.isMicrosite:"no";tgtkeys={Tmpl_SCN:h,SubSCN:L,channel:b,SCN:F,LastSubSCN:B,Arc1:G,BL:C,PGT:E,Hyp1:s,crtotoi:"",rpmid:"",pagecolor:"",ctnkeyword:H,templatetype:g,primeusertype:(A===true)?K:"",msid:J,LastSubSCN_Child_1:y,LastSubSCN_Child_2:x,LastSubSCN_Child_3:w,LastSubSCN_Child_4:v,LastSubSCN_Child_5:u,Article_ID:k,Meta_Keywords:t,Content_URL:i}; var c=function(O){if(O&&typeof O==="string"){var N=O.split(",");var M=[];N.forEach(function(Q,P){if(Q){if(!M.includes(Q)&&P!=0){M.push(Q)}else{if(!M.includes(Q)&&P==0){M.push(Q)}}}});return M.toString()}};var l=function(N){if(N&&typeof N==="string"){var M=N.toLowerCase().replaceAll("-"," ");return M}};googletag.pubads().setTargeting("sg",window._dfpObj.getCcaudData()).setTargeting("HDL",f(D)).setTargeting("ARC1",f(G)).setTargeting("article",f(d)).setTargeting("PGT",E+"").setTargeting("BL",C+"").setTargeting("aud_flag",PPIDFlag); if(PPIDCookieVal){googletag.pubads().setTargeting("col_key",PPIDCookieVal);googletag.pubads().setPublisherProvidedId(PPIDCookieVal)}googletag.pubads().setTargeting("Channel",b);if(typeof toiprops!=="undefined"&&toiprops&&toiprops.Keyword&&toiprops.Keyword!="''"){googletag.pubads().setTargeting("keyword",toiprops.Keyword)}else{if(window.Keyword!=undefined&&window.Keyword!="''"){googletag.pubads().setTargeting("keyword",window.Keyword)}}if(s){googletag.pubads().setTargeting("Hyp1",f(s))}if(F){googletag.pubads().setTargeting("SCN",l(F)) }if(L){googletag.pubads().setTargeting("SubSCN",l(L))}if(B){googletag.pubads().setTargeting("LastSubSCN",l(B))}if(y){googletag.pubads().setTargeting("LastSubSCN_Child_1",l(y))}if(x){googletag.pubads().setTargeting("LastSubSCN_Child_2",l(x))}if(w){googletag.pubads().setTargeting("LastSubSCN_Child_3",l(w))}if(v){googletag.pubads().setTargeting("LastSubSCN_Child_4",l(v))}if(u){googletag.pubads().setTargeting("LastSubSCN_Child_5",l(u))}if(r){googletag.pubads().setTargeting("LastSubSCN_Child_5",l(r))}if(q){googletag.pubads().setTargeting("LastSubSCN_Child_5",l(q)) }if(p){googletag.pubads().setTargeting("LastSubSCN_Child_5",l(p))}if(o){googletag.pubads().setTargeting("LastSubSCN_Child_5",l(o))}if(t){googletag.pubads().setTargeting("Meta_Keywords",c(t))}if(i){googletag.pubads().setTargeting("Content_URL",i)}if(k&&h!="listing"){googletag.pubads().setTargeting("Article_ID",k)}if(k&&z=="yes"){googletag.pubads().setTargeting("Article_ID",k)}if(h){googletag.pubads().setTargeting("Tmpl_SCN",h)}};window.buildAdsAj=function(a){if(window.pageLoadAdsArr.length>0){googletag.cmd.push(function(){toiads.buildsAds(a) })}};googletag.cmd.push(function(){if(window.pageLoadAdsArr.length>0){toiads.buildsAds("ArrayFirst");setTimeout(function(){toiads.buildsAds("default")},1000)}else{toiads.buildsAds("default")}});setTimeout(function(){toiads.buildsAds("moredelay")},15000);var colombia=colombia||{};colombia.fns=colombia.fns||[];var ctnAds={loadColombiaJS:function(){colombiaProfileID=65615;if(typeof toiprops!="undefined"&&toiprops.hasOwnProperty("_Channel")&&typeof toiprops._Channel!="undefined"&&toiprops._Channel=="toi"){colombiaProfileID="2658/toi" }var a=document.createElement("script");a.async=true;a.type="text/javascript";a.src="//static.clmbtech.com/ad/commons/js/"+colombiaProfileID+"/colombia_v2.js";var b=document.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b);if(!Object.keys){Object.keys=function(f){var d=[];for(var c in f){if(f.hasOwnProperty(c)){d.push(c)}}return d}}debugLogs("XSLT #### ColombiaJS request sent",performance.now())}};