!function(e,t,n){function i(){/*@cc_on return @_jscript_version;@*/ return!1}function o(e,t,n){if("html_pixel"===n.user_sync_tag_type)new Image(1,1).src=n.user_sync_tag;else if("script_tag"===n.user_sync_tag_type){var i=document.createElement("script");i.innerHTML=n.user_sync_tag,e.appendChild(i)}}function a(e){var n=t.getElementById(e.id);if(n&&(e.hasReportedOffsetWidthIssue=!1,e.checkedIFrameSizing=!1,!s(e,n)))var i=setInterval(function(){s(e,n)&&clearInterval(i)},100)}function r(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function d(e){try{var t=e.getBoundingClientRect();return[t.x,t.y]}catch(n){}}function s(n,i){var o=window._ldAdIdMap[n.id];if(o)return!0;if(!i.offsetWidth){if(!n.hasReportedOffsetWidthIssue){n.hasReportedOffsetWidthIssue=!0;var a="AdUnitOffsetWidthIssue",r=window.getComputedStyle(i);r&&"auto"!==r.width||(a="AdUnitInHiddenContainer"),l(a,n.slot)}return!1}var s,c="-webkit-box-sizing: border-box !important; -moz-box-sizing: border-box !important; box-sizing: border-box !important; min-width: 225px;";try{s=e.top.document.referrer}catch(m){s=t.referrer}var u=/^https?:\/\/(.*?)\//.exec(s),g=u&&u[1]||"",f=d(i),p="?pubid="+encodeURIComponent(n.id)+"&pubo="+encodeURIComponent(e.location.protocol+"//"+e.location.host)+"&rid="+encodeURIComponent(g)+"&width="+i.offsetWidth+"&path="+encodeURIComponent(e.location.pathname);if(f&&(p+="&x="+f[0]+"&y="+f[1]),n.gam_fallback&&(p+="&gam_fallback=1"),n.custom){var w=["pubid","pubo"];for(var v in n.custom)-1===w.indexOf(v)&&(p+="&"+encodeURIComponent(v)+"="+encodeURIComponent(n.custom[v]))}for(var y=["utm_source","utm_medium","utm_campaign","utm_term","utm_content"],_=e.location.search.slice(1),b=_&&_.split("&")||[],I=0;I=u&&s.push(m)}var g=window.googletag.defineSlot(n,s,e).setTargeting("decide_request_id",""+i).addService(window.googletag.pubads());window.googletag.pubads().addEventListener("slotResponseReceived",function f(e){var n=e.slot;if(n===g){window.googletag.pubads().removeEventListener("slotResponseReceived",f);var i=n.getResponseInformation();i||(l("GAMDemandFailure",t.slot),a(o,t.slot))}}),window.googletag.pubadsReady||window.googletag.enableServices(),window.googletag.display(g),window.googletag.pubads().isInitialLoadDisabled()&&window.googletag.pubads().refresh([g])})}function u(e){if(window!==window.top){var t=e.frame,n=t.offsetHeight,i=t.offsetWidth,o=window.innerHeight,a=window.innerWidth,r=n-o,d=i-a,s=Math.max(r,d);s>0&&(15>s?l("AdUnitIFrameInSlightlyUndersizedIFrame",e.slot):l("AdUnitIFrameInSignificantlyUndersizedIFrame",e.slot))}}function g(e){function t(){l("AdUnitIFrameRemovedFromDOM",e.slot)}function n(){return document.body.contains(e.frame)?void 0:!0}if(n())return t();var i=setInterval(function(){n()&&(t(),clearInterval(i))},5e3)}function f(e){try{var n=JSON.parse(e.data),i=h[n&&n.id];if(!i||e.origin!==i.origin)return;if("ready"===n.type){var a=t.getElementById(i.id);n.styles&&c(n.styles,a,i),i.frame.style.display="";var d=n.value&&n.value.user_sync_tag_to_fire;d&&o(a,i,d),g(i)}else if("passback"===n.type){var s=i.el,l=function(e){try{new Function(e);e=""}catch(t){}return/\n\n\n\n"+e+"\n"),e}(n.snippet),f=document.createElement("iframe");if(f.allowTransparency="true",f.seamless="seamless",f.frameBorder=0,f.border=0,f.width="100%",f.scrolling="no",f.style.border=0,s.appendChild(f),r(f,"load",function(e){var t=f.contentWindow.document.body;t.style.width=s.offsetWidth+"px",f.width=t.offsetWidth,f.height=t.offsetHeight,setInterval(function(){var e=t.offsetWidth,n=t.offsetHeight;f.width!=e&&(f.width=e),f.height!=n&&(f.height=n)},500)}),_)f.contentWindow.fooface=l,f.contentWindow.location.replace("javascript:window.fooface");else{var p=f.contentWindow.document;p.open(),p.write(l),p.close()}}else"height"===n.type?(i.frame.setAttribute("height",n.value),i.frame.style.height=n.value+"px",i.checkedIFrameSizing||(i.checkedIFrameSizing=!0,setTimeout(function(){u(i)},1500))):"width"===n.type?(i.frame.setAttribute("width",n.value),i.frame.style.width=n.value+"px"):"gam"===n.type&&m(i,n.ad_unit_path,n.rid)}catch(w){}}function p(){var e=W;if(e&&e.length)for(var t=0,n=e.length;n>t;++t)a(e[t])}window._ldAdIdMap||(window._ldAdIdMap={});var h={},w=t.getElementById("ld-ajs").src,v=t.createElement("a");v.href=w;var y=v.hostname.replace(/^(cdn\d\.)?(.*?)(cdn)?\.([a-z]+)$/i,"$2.$4"),_=i(),b="https:",I=v.port&&80!=v.port&&443!=v.port?parseInt(v.port,10):443,x=b+"//"+y,A=b+"//trk."+y;443!==I&&(x+=":"+I);var R=t.addEventListener?"addEventListener":"attachEvent",E=t.addEventListener?"message":"onmessage";e[R](E,f);var W=e.ldAdInit;setTimeout(p,0),e.ldAdInit={push:a}}(window,document);