!function(){Array.prototype.indexOf||(Array.prototype.indexOf=function(e){var t=this.length>>>0,o=Number(arguments[1])||0;for((o=o<0?Math.ceil(o):Math.floor(o))<0&&(o+=t);o0&&(n="&ao="+encodeURIComponent(self.location.ancestorOrigins[self.location.ancestorOrigins.length-1])),e+"&ref="+encodeURIComponent(t.document.referrer)+n}}}catch(e){return""}},u=10,g=0,h=!1;c=setInterval(function(){g++>=u&&!h&&(clearInterval(c),(new Image).src="//pixel2.combotag.com/mc.gif?id="+o+A()+"&cb="+ +new Date,console.error("controller was not found , pid "+o+" failure")),h&&clearInterval(c),I()},500),E.listenToMessageFromController(e.HAND_SHAKE_RESPONSE,function(e){var t=e.payload.targetPlacement;t.id===o&&t.idx===n&&(h||(h=!0,clearInterval(c),d(e.payload.href,e.payload.keywords,e.payload.isOutOfPage)))}),E.listenToMessageFromController(e.HAND_SHAKE_FAIL,function(e){var t=e.payload.targetPlacement;t.id===o&&t.idx===n&&(h||(h=!0,clearInterval(c)))});var I=function(){E.postMessageToController({eventName:e.HAND_SHAKE_REQUEST,payload:{id:o,idx:n,width:r,height:a}})};I()},l=function(e){var t=window.top.document.createElement("script"),o="https:"===self.location.protocol?"https:":"http:";t.src=o+"//invocation.combotag.com/controller.js",window.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(!window.top.location||!window.top.location.href)throw"";void 0===window.top.__cgct_controller?(window.top.__cgct_controller=!0,l(function(){i()})):i()}catch(e){i(!0)}}()}();