(function(w, d) {
  try {
    d = w.top.document || d; w = w.top.document ? w.top : w;
  } catch (e) {}
  var ttag = function() {
    var _tt_slot;
var PayWall;
var sponsorCheck;
var result = true;
var teadsScriptCheck = window.top.document.querySelectorAll(".teads");
if (teadsScriptCheck.length < 2) {
    _tt_slot = ".RichTextArticleBody .RichTextArticleBody-body > p, .bsp-row .article-body > p, .article-body .embargo-content > p";
    PayWall = window.top.document.querySelectorAll(".PaywallModuleContainer, .mod-embargo.skin-blk-background").length;
    sponsorCheck = window.top.document.querySelector("article");
	if (sponsorCheck.className.match(/sponsor-content/g) || PayWall > 0) {
		result = false;
	}
} else {
    var _tt_wrapper = window.top.document.querySelectorAll(".wrapper");
    var _tt_article = _tt_wrapper[_tt_wrapper.length - 1];
    _tt_slot = _tt_article.querySelectorAll(".RichTextArticleBody .RichTextArticleBody-body > p, .bsp-row .article-body > p, .article-body .embargo-content > p");
    PayWall = _tt_article.querySelectorAll(".PaywallModuleContainer, .mod-embargo.skin-blk-background").length;
    sponsorCheck = _tt_article.querySelector("article");
	if (sponsorCheck.className.match(/sponsor-content/g) || PayWall > 0) {
		result = false;
	}	
}
    w.teads.page(71463).placement(77236, {"css":"margin: 0px auto 30px; max-width: 550px;","format":"inread","slot":{"avoid":{"selector":".mod-enhancement","distance":50},"filter":function filter(slot) {return result;},"selector":_tt_slot,"minimum":5}}).serve();
  };
  if (w.teads && w.teads.page) { ttag(); }
  else if (!w.teadsscript) {
    var s = document.createElement('script');
    s.src = 'https://static.teads.tv/static/master/media/format/v3/teads-format.min.js';
    s.async = true; s.onload = ttag; w.teadsscript = d.getElementsByTagName('head')[0].appendChild(s);
  } else {
    w.teadsscript.addEventListener('load', ttag);
  }
})(window, document);