!function(){var _csd=function(){var t="";try{var n=window,r=document,e=r.documentElement,a=(n.screen,n.location),o="_",u=o+"evaluate",c=o+"script",i=o+"unwrapped",f="selenium",v="driver",g="web"+v,l="phantom",h="domAutomation",d="call",m=3,s=5,_=r.createElement("iframe");r.getElementsByTagName("head")[0].appendChild(_);for(var p=function(t){return t.charAt(0).toUpperCase()+t.substring(1,t.length+1)},E=function(t){return Math.floor(Math.random()*t)},w=function(){return E(2)},y=function(t){return t},b=function(){var t=!1;try{a.href&&(t=!0)}catch(t){}return t}(),A=function(t,r){if("string"==typeof t)try{var e=_&&_.contentWindow?_.contentWindow:n;r&&b&&(e=n.top);for(var a=t.split("."),o=0;o<a.length;o++)if(!(e=e[a[o]]))return!1;return e}catch(t){}},C=function(t){return"function"==typeof t},x=[function(){var t=A("external");return/Sequentum/.test(t.toString())},function(){return!(s%m+y(m)^y(s))},function(){var t=A("screen");return t.width<=1||t.height<=1},function(){var t=A("screen");return t.availHeight<=1||t.availWidth<=1},function(){return C(A("cefQuery"))},function(){var t=Object.getOwnPropertyDescriptor(navigator,"userAgent"),n=Object.getOwnPropertyDescriptor(navigator,"platform");return!(!t||!t.get)||!(!n||!n.get)||void 0},function(){return!1},function(){for(var t=[{v:o+l,t:!0},{v:o+o+"nightmare",t:!1},{v:"_"+f,t:!1},{v:d+p(l),t:!0},{v:d+p(f),t:!1},{v:"_"+p(f)+"_IDE_Recorder",t:!1},{v:h,t:!1},{v:h+"Controller",t:!1},{v:"_"+g.toUpperCase()+"_ELEM"+o+"CACHE",t:!1}],n=0;n<t.length;n++){var r=t[n].v;if(A(r,t[n].t))return r}},function(){for(var t=[o+o+g+u,o+o+f+u,o+o+g+c+"_function",o+o+g+c+"_func",o+o+g+c+"_fn",o+o+"fx"+v+u,o+o+v+i,o+o+g+i,o+o+v+u,o+o+f+i,o+o+"fx"+v+i],n=0;n<t.length;n++){var r=t[n];if(A("document."+r))return r}},function(){for(var t in r)if(t&&t.match(/\$[a-z]dc_/)&&r[t].cache_)return"$_dc_cache"},function(){return A("navigator."+g)},function(){var t=function(t){return e.getAttribute(t)};return t(f)||t(g)||t(v)},function(){for(var t,n=A("document"),r=["webgl","experimental-webgl","moz-webgl"],e=0;e<r.length&&!(t=n.createElement("canvas").getContext(r[e]));e++);var a=t.getExtension("WEBGL_debug_renderer_info"),o=t.getParameter(a.UNMASKED_VENDOR_WEBGL),u=t.getParameter(a.UNMASKED_RENDERER_WEBGL);return"Brian Paul"===o&&"Mesa OffScreen"===u},function(){var t;try{null[0]()}catch(n){t=n}return t.stack.indexOf(l+"js")>-1},function(){return A("navigator.userAgent")!==navigator.userAgent}],D=0;D<x.length;D++)t+=function(t){var n=w()?E(m):E(s)+s,r=w()?m:4,e=n;try{e=t()?r:n}catch(t){}return e}(x[D]).toString();_&&_.parentNode.removeChild(_)}catch(t){}return t};;var _p=function(e,t){function n(e,t){var n=0,r=50,i=10,o=!1,a=c.setInterval(function(){e()&&(c.clearInterval(a),t(o)),n++>r&&(c.clearInterval(a),t(o=!0))},i)}function r(e){var t=e.toLowerCase();if(0===t.indexOf("msie")&&0===t.indexOf("trident"))return!1;var n=/(?:msie|rv:)\s?([\d\.]+)/.exec(t);if(n&&parseInt(n[1],10)>=10)return!0;var r=/edge/.exec(t);return!(!r||"edge"!==r[0])}function i(e){var i;try{if(c.webkitRequestFileSystem)c.webkitRequestFileSystem(c.TEMPORARY,1,function(){i=!1},function(e){i=!0});else if(c.indexedDB&&/Firefox/.test(o)){var a;try{a=c.indexedDB.open("cttouch")}catch(e){i=!0}void 0===i&&n(function(){return"done"===a.readyState},function(e){e||(i=!a.result)})}else if(r(o)){i=!1;try{c.indexedDB||(i=!0)}catch(e){i=!0}}else if(c.localStorage&&/Safari/.test(o)){try{c.localStorage.setItem("cttouch",1)}catch(e){i=!0}void 0===i&&(i=!1,c.localStorage.removeItem("cttouch"))}}catch(e){}t?e(i):n(function(){return void 0!==i},function(t){e(i)})}var c=window,o=c.navigator.userAgent;if(t)i(function(t){e(t=t?1:0)});else{var a=!1,u=setTimeout(function(){a=!0,e(0)},150);i(function(t){clearTimeout(u),a||(a=!0,e(t=t?1:0))})}};;var e=_p,t=_csd,n=function(){!function(){var k=function(){function t(t){return t.replace(/^(\s+|\t+)/g,"").replace(/(\s+|\t+)$/,"").toLowerCase()}function e(t){return/^[A-Za-z0-9'"`]|[\u3000-\u303F]|[\u3040-\u309F]|[\u30A0-\u30FF]|[\uFF00-\uFFEF]|[\u4E00-\u9FAF]|[\u2605-\u2606]|[\u2190-\u2195]|[\u0590-\u05FF]|\u203B+$/g.test(t)}function r(t){return top.document.getElementsByTagName(t)}var n="";try{return n=function(){for(var e=/\s*(\s+|\++|\+|\:|\：|・|\,|、|\-|。|•|\(|\)|\（|\）|\…|\」|\「|\【|\】|\{|\}|\<|\>|\[|\]|\『|\』)\s*/,n=r("meta"),u=[],i={},o=0;o<n.length;o++){var a=n[o],c=a.getAttribute("property")||a.getAttribute("name");if(/keywords?|titles?|descriptions?/i.test(c)){var s=a.getAttribute("content")||a.getAttribute("value");if(!s)break;void 0===i[s=t(s).split(e)]&&(i[s]=s,u=u.concat(s))}}var f=r("title");if(f&&f[0]&&f[0].innerHTML){var l=f[0].innerHTML;void 0===i[l=t(l).split(e)]&&(i[l]=l,u=u.concat(l))}return u}(),n=function(t){for(var e=0;e<t.length;e++)t[e]=t[e].replace(/\/|\?|\？|\!|\！|\#|\^|\&|\*|'|"|`|\.|\;|\“|\”/g,"");return t}(n),n=function(t){for(var r=0;r<t.length;r++)e(t[r])||t.splice(r--,1);return t}(n),encodeURIComponent(n.join("+"))}catch(t){return""}};;var e=window,t=document;Array.prototype.indexOf||(Array.prototype.indexOf=function(e){var t=this.length>>>0,i=Number(arguments[1])||0;for((i=i<0?Math.ceil(i):Math.floor(i))<0&&(i+=t);i<t;i++)if(i in this&&this[i]===e)return i;return-1}),t.getElementsByClassName||(t.getElementsByClassName=function(e){var i,r,n,o=t,a=[];if(o.querySelectorAll)return o.querySelectorAll("."+e);if(o.evaluate)for(r=".//*[contains(concat(' ', @class, ' '), ' "+e+" ')]",i=o.evaluate(r,o,null,0,null);n=i.iterateNext();)a.push(n);else for(i=o.getElementsByTagName("*"),r=new RegExp("(^|\\s)"+e+"(\\s|$)"),n=0;n<i.length;n++)r.test(i[n].className)&&a.push(i[n]);return a}),console=self.console||{log:function(){},error:function(){}},self.__cgct_controller=!0;var i={HAND_SHAKE_REQUEST:"HAND_SHAKE_REQUEST",HAND_SHAKE_RESPONSE:"HAND_SHAKE_RESPONSE",HAND_SHAKE_FAIL:"HAND_SHAKE_FAIL",FALLBACK_COLLAPSE:"FALLBACK_COLLAPSE",FALLBACK_RELOAD:"FALLBACK_RELOAD",FALLBACK_DEFAULT:"FALLBACK_DEFAULT",RESIZE:"RESIZE",VIEWABILITY_REQUEST:"VIEWABILITY_REQUEST",VIEWABILITY_RESPONSE:"VIEWABILITY_RESPONSE",VIEWABILITY_PAUSE:"VIEWABILITY_PAUSE"},r="CTCG#",n=function(e,t,i){t.addEventListener?t.addEventListener(e,i,!1):t.attachEvent?t.attachEvent("on"+e,i):t[e]=i},o=function(e,t){n("message",e,function(e){var i=(e=e||window.event)[e.message?"message":"data"];"string"==typeof i&&-1!==i.indexOf(r)&&((i=JSON.parse(i.replace(r,""))).sourceFrame=e.source,i.origin=e.origin,t(i))})},a=[],l=[],s=!(t.addEventListener&&~t.addEventListener.toString().indexOf("[native code]")),d=function(e){if(e===self)return!0;try{if(e.frameElement&&e.parent===self&&~e.frameElement.id.indexOf("ctcg_frame"))return!0}catch(e){}return!1},c=function(t,r){o(e.top,function(e){if(t===e.eventName){var n=t===i.HAND_SHAKE_REQUEST,o=-1!==a.indexOf(e.sourceFrame);(n&&(!o||d(e.sourceFrame))||!n&&(o||d(e.sourceFrame)))&&r(e)}})},u=function(e,t){t.postMessage(r+JSON.stringify(e),"*")},f=function(e){for(var i=t.getElementsByTagName("iframe"),r=0;r<i.length;r++){var n=i[r];if(n.contentWindow===e)return n;for(var o=0;o<n.contentWindow.frames.length;o++){var a=n.contentWindow.frames[o];if(a===e)return n;for(var l=0;l<a.frames.length;l++)if(a.frames[l]===e)return n}}},g=function(e){if(!d(e.sourceFrame))return l[a.indexOf(e.sourceFrame)];for(var t=e.payload,i=0;i<l.length;i++)if(l[i].isDirect&&l[i].id===t.id&&l[i].idx===t.idx)return l[i]},h=function(e){return t.getElementById("ctcg_frame_"+e.id+"_"+e.idx)||t.getElementsByClassName("ctcg_"+e.id+"_"+e.idx)[0]},m=function(i,r,n,o){return n="string"==typeof n?n:"","function"==typeof e.getComputedStyle&&i!==t?!!getComputedStyle(i)[r]&&getComputedStyle(i)[r].replace(n,""):void 0!==i.currentStyle&&i.currentStyle[r]?!!i.currentStyle[r]&&i.currentStyle[r].replace(n,""):o&&void 0===i.currentStyle[r]?o:void 0},p=function(e,t,i,r){if(!e)return!1;var n={width:parseInt(m(e,"width","px")),height:parseInt(m(e,"height","px"))},o=5;return(n.height+o>=i&&n.width+o>=t||r)&&n.height-o<=i&&n.width-o<=t},E=function(e){var i=parseInt(m(e,"height","px")),r=t.createElement("div");r.style.height="10px",r.style.width="10px",r.style.display="block",r.style.padding="0px",r.style.margin="0px",e.appendChild(r);var n=parseInt(m(e,"height","px"));return e.removeChild(r),n>i},v=function(i,r,n){var o={supposeTo:!1,viewPercentage:0};if(!i||t.visibilityState&&"hidden"===t.visibilityState||void 0!==t.hidden&&t.hidden)return o;var a=i;do{if(!s&&"1"!==m(a,"opacity")||"none"===m(a,"display")||"hidden"===m(a,"visibility"))return{supposeTo:!0,viewPercentage:0,cssIssue:!0}}while((a=a.parentNode||a.parentElement)!==t);var l=i.getBoundingClientRect(),d=function(){var i,r;return void 0!==e.innerWidth?(i=e.innerWidth,r=e.innerHeight):void 0!==t.documentElement&&void 0!==t.documentElement.clientWidth&&0!==t.documentElement.clientWidth?(i=t.documentElement.clientWidth,r=t.documentElement.clientHeight):(i=t.getElementsByTagName("body")[0].clientWidth,r=t.getElementsByTagName("body")[0].clientHeight),{width:i,height:r}}(),c=n,u=r,f=c*u;if(l.bottom<=0)return o;if(l.top>=d.height)return o;if(l.left>=d.width)return o;if(l.right<=0)return o;var g={top:!0,bottom:!0,left:!0,right:!0};l.top<0&&l.bottom>0&&(c+=l.top,g.top=!1),l.bottom>d.height&&l.top<d.height&&(c+=d.height-l.bottom,g.bottom=!1),l.right>d.width&&l.left<d.width&&(u+=d.width-l.right,g.right=!1),l.left>-r&&l.right<r&&(u+=l.left,g.left=!1);var h=5,p=c*u,E=p/f;if(E>.5){for(var v=3,y=(l.right-h-l.left+h)/v,A=(l.bottom-h-l.top+h)/v,S=function(e,t,i){for(var r=[],n=0;n<e+1;n++){r[n]||(r[n]=[]);for(var o=0;o<e+1;o++)r[n][o]||(r[n][o]={visibility:!0}),r[n][o].y=0===n?l.top+h:n===e?l.bottom-h:r[n-1][o].y+i,r[n][o].x=0===o?l.left+h:o===e?l.right-h:r[n][o-1].x+t}return r}(v,y,A),L=!1,_=0;_<v+1;_++)for(var I=0;I<v+1;I++){var N=S[_][I].x,x=S[_][I].y,b=t.elementFromPoint(N,x);(s?s&&(!b.id||!b.id!==i.id):null!==b&&b!==i)&&(S[I][_].visibility=!1,L=!0,S[I][_-1]&&!S[I][_-1].visibility&&S[I-1]&&S[I-1][_]&&!S[I-1][_].visibility&&S[I-1][_-1]&&!S[I-1][_-1].visibility&&(p-=y*A))}E=p/f,L&&1===E&&(E=.94)}return{supposeTo:g.top&&g.right&&g.bottom&&g.left,viewPercentage:parseFloat(E.toFixed(2))}},y=function(e,t,r){t.isRequestingViewability&&u({eventName:i.VIEWABILITY_RESPONSE,payload:{targetPlacement:{id:t.id,idx:t.idx},viewability:v(e,t.width,t.height)}},r)},A=function(e){if(e)for(var t=0;t<googletag.pubads().getSlots().length;t++)if(googletag.pubads().getSlots()[t].getSlotElementId()===e)return googletag.pubads().getSlots()[t]};c(i.HAND_SHAKE_REQUEST,function(t){var r=t.payload;r.isDirect=d(t.sourceFrame);var n=!1;try{if(!r.isDirect&&void 0!==self.googletag){for(var o=f(t.sourceFrame),s=o.parentNode||o.parentElement;!A(s.id)&&"html"!==s.tagName.toLowerCase();)s=s.parentNode||s.parentElement;var c=A(s.id);if(c){for(var g=0;g<l.length;g++)if(l[g].slot===c)return console.error("slot has already reloaded..."),u({eventName:i.HAND_SHAKE_FAIL,payload:{targetPlacement:{id:t.payload.id,idx:t.payload.idx}}},t.sourceFrame);r.slot=c,n=!0===r.slot.getOutOfPage()}}}catch(e){console.error("gpt error ",e.message)}l.push(r),a.push(t.sourceFrame);var h={eventName:i.HAND_SHAKE_RESPONSE,payload:{keywords:k(),href:e.top.location.href,isOutOfPage:n,targetPlacement:{id:t.payload.id,idx:t.payload.idx}}};u(h,t.sourceFrame)}),c(i.FALLBACK_COLLAPSE,function(e){var t=function(e){e&&(e.style.display="none",e.style.visibility="hidden",e.style.width="0px",e.style.height="0px")},i=g(e),r=function(e){e&&p(e,i.width,i.height,!0)&&(t(e),r(e.parentNode||e.parentElement))},n=i.isDirect?h(i):f(e.sourceFrame);r(n),i.width=0,i.height=0}),c(i.FALLBACK_RELOAD,function(e){var t=g(e);return t.isDirect||void 0===self.googletag?console.error("no gpt integration, reload is not possible"):t.slot&&t.slot.setTargeting?void googletag.pubads().refresh([t.slot.setTargeting("cg","invalid")]):console.error("no slot, reload is not possible")}),c(i.RESIZE,function(e){var t=function(e,t){e&&t&&(e.style.height=t+"px")},i=e.payload,r=g(e),n=function(e){if(e&&p(e,r.width,r.height)){t(e,i.resizeToHeight);for(var o=e.parentNode||e.parentElement,a=5,l=0;E(o)&&"html"!==o.tagName.toLowerCase()&&a>=l++;)o=o.parentNode||o.parentElement;n(o)}},o=r.isDirect?h(r):f(e.sourceFrame);n(o),r.height=i.resizeToHeight,y(o,r,e.sourceFrame)}),c(i.VIEWABILITY_REQUEST,function(i){var r=function(){return{x:e.pageXOffset||t.documentElement.scrollLeft||t.body.scrollLeft,y:e.pageYOffset||t.documentElement.scrollTop||t.body.scrollTop}},o=g(i);o.isRequestingViewability=!0;var a=o.isDirect?h(o):f(i.sourceFrame);y(a,o,i.sourceFrame),setInterval(function(){y(a,o,i.sourceFrame)},250);var l=r();n("scroll",e,function(){var e=r();(Math.abs(l.y-e.y)>10||Math.abs(l.x-e.x)>10)&&(l.x=e.x,l.y=e.y,y(a,o,i.sourceFrame))}),n("resize",e,function(){y(a,o,i.sourceFrame)})}),c(i.VIEWABILITY_PAUSE,function(e){g(e).isRequestingViewability=!1})}();},r=encodeURIComponent,a=window,o=a.location,i=document,c=i.documentElement,l=a.screen;Array.prototype.indexOf||(Array.prototype.indexOf=function(e){var t=this.length>>>0,n=Number(arguments[1])||0;for((n=n<0?Math.ceil(n):Math.floor(n))<0&&(n+=t);n<t;n++)if(n in this&&this[n]===e)return n;return-1}),i.getElementsByClassName||(i.getElementsByClassName=function(e){var t,n,r,a=i,o=[];if(a.querySelectorAll)return a.querySelectorAll("."+e);if(a.evaluate)for(n=".//*[contains(concat(' ', @class, ' '), ' "+e+" ')]",t=a.evaluate(n,a,null,0,null);r=t.iterateNext();)o.push(r);else for(t=a.getElementsByTagName("*"),n=new RegExp("(^|\\s)"+e+"(\\s|$)"),r=0;r<t.length;r++)n.test(t[r].className)&&o.push(t[r]);return o}),console=self.console||{log:function(){},error:function(){}};var s={HAND_SHAKE_REQUEST:"HAND_SHAKE_REQUEST",HAND_SHAKE_RESPONSE:"HAND_SHAKE_RESPONSE",HAND_SHAKE_FAIL:"HAND_SHAKE_FAIL",FALLBACK_COLLAPSE:"FALLBACK_COLLAPSE",FALLBACK_RELOAD:"FALLBACK_RELOAD",FALLBACK_DEFAULT:"FALLBACK_DEFAULT",RESIZE:"RESIZE",VIEWABILITY_REQUEST:"VIEWABILITY_REQUEST",VIEWABILITY_RESPONSE:"VIEWABILITY_RESPONSE",VIEWABILITY_PAUSE:"VIEWABILITY_PAUSE"},f="CTCG#",u=parseInt("65349"),p=parseInt("0"),d=parseInt("1"),g=parseInt("1"),h="",m=0,v=function(e,t){t||(t=o.href),e=e.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")).replace(/\#.*/,""):"":null},E=function(){try{return!a.top.location||!a.top.location.href}catch(e){return!0}},_=function(){var e="";try{e=Math.max(c.clientWidth,a.innerWidth||0)+"x"+Math.max(c.clientHeight,a.innerHeight||0)}catch(e){}return e},A=function(){try{var e=o.ancestorOrigins;return void 0!==e&&e.length&&(e.length&&e[e.length-1])?e[e.length-1]:""}catch(e){return""}},I=function(){try{if(i.referrer)return i.referrer;var e=v("url")||v("referer");if(!e)return"";var t=e.match(/^(?:https?:\/\/)?(?:[^@\/\n]+@)?(?:www\.)?([^:\/\n]+)/im);if(!t||!t.length)return"";t=t&&t[0];var n=o.ancestorOrigins;return t&&void 0!==n&&n.length?t!==n[n.length-1]?"":e:""}catch(e){return""}},y=function(e,t,n){n=n||"";(new Image).src="//pixel2.combotag.com/tracker/"+e+".gif?"+function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(r(n)+"="+r(e[n]));return t.join("&")}(t)+"&cb="+ +new Date+n},N=function(e,t){var n=i.createElement("iframe");i.getElementsByTagName("head")[0].appendChild(n);var s=function(e){try{for(var t=n&&n.contentWindow?n.contentWindow:a,r=e.split("."),o=0;o<r.length;o++)if(!(t=t[r[o]]))return!1;return e}catch(e){}},f=function(e,n){y("jc",{e:t,m:e,s:r(n),u:o.href})},u=function(){var e=a.external,t="_",n="_evaluate",r="_script",o="_unwrapped",s="selenium",f="webdriver",u="driver",p=function(e){return c.getAttribute(e)};try{if(void 0!==l&&(l.width<=1||l.height<=1||l.availHeight<=1||l.availWidth<=1))return"scrn";var d=[t+t+f+n,t+t+s+n,t+t+f+r+"_function",t+t+f+r+"_func",t+t+f+r+"_fn",t+t+"fx"+u+n,t+t+u+o,t+t+f+o,t+t+u+n,t+t+s+o,t+t+"fx"+u+o],g=[t+"phantom",t+t+"nightmare","_"+s,"callPhantom","callSelenium","_Selenium_IDE_Recorder"];for(var h in g){var m=g[h];if(a[m])return m}for(var v in d){var E=d[v];if(i[E])return E}for(var _ in i)if(_&&_.match(/\$[a-z]dc_/)&&i[_].cache_)return"$_dc_cache";if(e&&e.toString&&e.toString()&&/Sequentum/.test(e.toString()))return"Sequentum";if(p(s)||p(f)||p(u))return"docAttr";if(a.navigator&&a.navigator[f])return"nav";try{var A;try{null[0]()}catch(e){A=e}if(A.stack.indexOf("phantomjs")>-1)return"pstack"}catch(e){}if("function"==typeof a.cefQuery)return"cef"}catch(e){console.log(e)}return!1}();u&&f(0,u);var p=function(){if(e)for(var t=0;t<e.length;t++)s(e[t])&&f(1,e[t])}();return p&&f(1,p),n&&n.parentNode.removeChild(n),!u&&!p},S=function(e,t){var n=e.v,r=e.jc;"function"!=typeof t||r||t();var a,o,i=function(){y("jc",{e:r,u:h,m:"2"})},c=function(e){y("view",{e:n,s:e})},l=function(){ctcgFrameApi.postMessageToController({eventName:s.VIEWABILITY_PAUSE,payload:{id:u,idx:p}})};if(!(d<=10||g<=10)){d*g<=242e3?(a=.5,o=.95):(a=.3,o=.6);var f,m,v=0,E=1,_=2,A=1e3,I=!1,N=!1,S=[],T=!1,O=!1,w=!0;ctcgFrameApi.listenToMessageFromController(s.VIEWABILITY_RESPONSE,function(e){if(!T){var n=e.payload.targetPlacement;if(n.id===u&&n.idx===p){var s=e.payload.viewability.viewPercentage,d=e.payload.viewability.cssIssue;if(w&&r){if(d)return i(),l();t()}w=!1,S.push(s),s>=a?s>=o?N||(N=!0,m=setTimeout(function(){N=!1,T=!0;for(var e=0;e<S.length;e++)if(S[e]<o)return l(),void c(O?E:v);l(),c(v)},A)):(N&&(clearTimeout(m),N=!1),I||O||(I=!0,f=setTimeout(function(){I=!1,O=!0,c(_)},A))):(N&&(clearTimeout(m),N=!1),I&&(clearTimeout(f),I=!1))}}}),ctcgFrameApi.postMessageToController({eventName:s.VIEWABILITY_REQUEST,payload:{id:u,idx:p}})}},T=function(){var e=!1;return function(t,n,r){if(!e&&(n=n||null,r=r||{},e=!0,!r.jc||N(n,r.jc))){var a=function(e){return i.getElementsByClassName?i.getElementsByClassName(e):i.querySelectorAll("."+e)},o=i.createElement("iframe");o.id="ctcg_frame_"+u+"_"+p;var c="setAttribute",l=o.style;l.margin="0px",l.padding="0px",l.border="none",o[c]("frameborder","none"),o[c]("scrolling","no"),o[c]("width",d),o[c]("height",g);var s="ctcg_"+u+"_"+p,f=function(){var e="<html><head></head><body style='margin:0px;padding:0px'>"+t+"</body>",n=o.contentWindow,a=n.document;"string"==typeof navigator.userAgent&&-1===navigator.userAgent.indexOf("MSIE ")?(a.open(),a.write(e),a.close()):(n.contents=e,o.src='javascript:window["contents"]'),r.i&&y("imp",{e:r.i})};!function(e){if(a(s).length)a(s)[0].appendChild(o),e();else{var t=i.getElementsByTagName("body")[0];if(t)t.appendChild(o),e();else var n=setInterval(function(){(t=i.getElementsByTagName("body")[0])&&(clearInterval(n),t.appendChild(o),e())},500)}}(function(){!m&&d>10&&g>10&&r.v?S(r,function(){f()}):f()})}}}(),O="__ctcg_"+u+"_"+p+"_exec";self[O]={bf:function(e,t,n,r,a,o,i,c){T(e,t,n,r,a,o,i,c)}};var w=function(e,t){var n=e.addEventListener?"addEventListener":"attachEvent";(0,e[n])("attachEvent"===n?"onmessage":"message",function(e){var n=e[e.message?"message":"data"];"string"==typeof n&&-1!==n.indexOf(f)&&((n=JSON.parse(n.replace(f,""))).sourceFrame=e.source,n.origin=e.origin,t(n))},!1)},C=function(n){var c=["null"];"null"===c[0]&&(c=!1);var l,y=function(e){return"string"==typeof e?e.replace(/https?\:\/\//,""):-1},N="https:"===o.protocol?"https:":"http:",S={listenToMessageFromController:function(e,t){w(window.self,function(n){c&&-1===y(n.origin).indexOf(c)||n.sourceFrame!==window.top||e!==n.eventName||t(n)})},postMessageToController:function(e){switch(e.eventName){case s.RESIZE:if(self!==top){var t=document.getElementById("ctcg_frame_"+u+"_"+p);t&&(t.style.height=e.payload.resizeToHeight+"px")}}if(c)for(var n=0;n<c.length;n++)window.top.postMessage(f+JSON.stringify(e),"http://"+c[n]),"https:"===N&&window.top.postMessage(f+JSON.stringify(e),"https://"+c[n]);else window.top.postMessage(f+JSON.stringify(e),"*")}},T=function(c,l,s,f,d){var g=function(e){return e?1:0};h=c=c||"",l=l||"",s=s||!1;var v=document.getElementsByClassName("ct_invocation_"+u+"_"+p),E=function(e){var t=v.getAttribute(e);return t?r(t):""},A="",I="",y="";(v=v&&v[0])&&(A=E("tpc"),y=E("ch"),s||(I=E("tpi")));var N=self.document.createElement("script"),T="https:"===o.protocol?"https:":"http:";n=g(n),m=void 0!==f?1:0,f=g(f),d=void 0!==d?d:"";var O="";void 0!==o.ancestorOrigins&&o.ancestorOrigins.length>0&&(O="&ao="+r(o.ancestorOrigins[o.ancestorOrigins.length-1])+"&aol="+o.ancestorOrigins.length);var w=g(a.parent===a.top),C="string"==typeof navigator.platform?navigator.platform.toLowerCase():"";e(function(e){N.src=T+"//serve2.combotag.com/show_pla?id="+u+"&url="+r(c)+"&sf="+n+"&k="+l+"&idx="+p+"&tpi="+I+"&tpc="+A+"&ch="+y+"&np="+C+"&rand="+t()+"&nc="+m+"&tsf="+f+"&tsfmi="+d+"&pv="+e+"&cb="+ +new Date+"&ref="+r(i.referrer)+"&pit="+w+"&fs="+_()+O,self.document.getElementsByTagName("head")[0].appendChild(N),self.ctcgFrameApi=S})},O=2,C=0,L=!1;l=setInterval(function(){if(C++>=O&&!L&&E()){clearInterval(l),console.log("cross domain found with no controller");for(var e=a.top===a.parent,t=(a.top,a.parent.parent,I()),n=A(),r=o.pathname,i=o.host,c=[function(){return"tpc.googlesyndication.com"===i&&0===r.indexOf("/safeframe/")&&e},function(){return"expandable-ad-tag-hosting.appspot.com"===i&&0===r.indexOf("/render_ad_tag")&&e},function(){return"googleads.g.doubleclick.net"===i&&0===r.indexOf("/pagead/ads")&&v("url")===t},function(){return"ams1-ib.adnxs.com"===i&&0===r.indexOf("/ab")&&v("referrer")===t},function(){return(/\.ampproject\.net$/.test(i)&&/frame\.html$/.test(r)||/\.cdn\.ampproject\.org/.test(t)&&"tpc.googlesyndication.com"===i&&0===r.indexOf("/safeframe/"))&&/www\.google\.|search\.yahoo/.test(n)}],s=!1,f=0;f<c.length&&!(s=c[f]());f++);T(s?t:o.href,"",!1,s,f)}L&&clearInterval(l),x()},150),S.listenToMessageFromController(s.HAND_SHAKE_RESPONSE,function(e){var t=e.payload.targetPlacement;t.id===u&&t.idx===p&&(L||(L=!0,clearInterval(l),T(e.payload.href,e.payload.keywords,e.payload.isOutOfPage)))}),S.listenToMessageFromController(s.HAND_SHAKE_FAIL,function(e){var t=e.payload.targetPlacement;t.id===u&&t.idx===p&&(L||(L=!0,clearInterval(l)))});var x=function(){S.postMessageToController({eventName:s.HAND_SHAKE_REQUEST,payload:{id:u,idx:p,width:d,height:g}})};x()},L=function(e){if(a.self===a.top)n(),e();else{var t=a.top.document.createElement("script"),r="https:"===o.protocol?"https:":"http:";t.src=r+"//invocation.combotag.com/controller.js",a.top.document.getElementsByTagName("head")[0].appendChild(t),t.readyState?t.onreadystatechange=function(){"loaded"!==t.readyState&&"complete"!==t.readyState||e()}:t.onload=e}};!function(){try{if(!a.top.location||!a.top.location.href)throw"";void 0===a.top.__cgct_controller?(a.top.__cgct_controller=!0,L(function(){C()})):C()}catch(e){C(!0)}}()}();