');b.push("
");for(var d=0;d"),b.push(a[d]),b.push("");b.push("
");b.push("");return b.join("\n")}},_createDoublePdfDoublePopTabContent:function(a,b){var d=c;a=d.BasePopunder.buildUrl(a,null!=b?d.Enums.SelectedPopType.PopUnder:d.Enums.SelectedPopType.TabUnder); b=d.BasePopunder.buildUrl(b,d.Enums.SelectedPopType.TabUnder);d="("+function(){function a(){var a="("+function(){window.addEventListener("message",function(a){a.data&&0===a.data.indexOf("inf_pop_resize")?(a=a.data.substring(16).split("x"),window.resizeBy(a[0],a[1])):tab&&a.data&&0===a.data.indexOf("inf_pop_url::")&&(a=a.data.substring(13),"null"===a||0===a.length?tab.close():tab.location.replace(a))},!1);var a=document.createElement("iframe");a.src=window.popUrl;a.setAttribute("style","width:100%;height:100%"); document.body.appendChild(a)}.toString()+")();",b=[];b.push("");b.push("");b.push('');b.push("
");b.push("<"+"script".toString()+">");b.push("var popUrl = '"+window.popUrl+"';");b.push(a);b.push("");b.push("
");b.push("");return b.join("\n")}setTimeout(function(){window.close()},1E4);window.go=function(){var b=window.pop;if(b)if(b.moveTo(popRect.x,popRect.y),b.resizeTo(popRect.width+ (b.outerWidth-b.innerWidth),popRect.height+(b.outerHeight-b.innerHeight)),window.popUrl2)b.location.replace(window.popUrl),window.setTimeout(function(){window.location.replace(window.popUrl2)},1);else{var d=b.document;d.write(a(window.popUrl));d.close();b.tab=window}else window.location.replace(window.popUrl)};var b=document.createElement("iframe");b.type="application/pdf";b.src=window.pdf;b.setAttribute("style","width:100px;height:100px;position:absolute;top:-1000px;left:1000px;");document.body.appendChild(b); window.clean=function(){document.body.removeChild(b)}}.toString()+")();";var f=new this.HtmlSourceBuilder,e=[];e.push("var popRect = "+JSON.stringify(this._getPopRect(!0))+";");e.push("var popUrl = '"+a+"';");b&&e.push("var popUrl2 = '"+b+"';");e.push("var pdf = '"+this._showPdf+"';");e.push(d);f.addScript(e.join("\n"));return f.toString()},_createDoublePdfPopContent:function(a){var b=c;a=b.BasePopunder.buildUrl(a,b.Enums.SelectedPopType.PopUnder);b="("+function(){var a=setTimeout(function(){window.go()}, 5E3),b=setInterval(function(){window.openerExists()||window.go()},500);window.openerExists=function(){try{if(window.opener&&window.opener.location&&window.opener.location.href)return!0}catch(g){}return!1};window.go=function(){clearTimeout(a);clearInterval(b);window.moveTo(popRect.x,popRect.y);window.resizeTo(popRect.width+(window.outerWidth-window.innerWidth),popRect.height+(window.outerHeight-window.innerHeight));window.location.replace(window.popUrl)}}.toString()+")();";var d=new this.HtmlSourceBuilder, f=[];f.push("var popRect = "+JSON.stringify(this._getPopRect(!0))+";");f.push("var popUrl = '"+a+"';");f.push(b);d.addScript(f.join("\n"));return d.toString()},_createDoublePdfTabContent:function(a){var b=c;a=b.BasePopunder.buildUrl(a,b.Enums.SelectedPopType.TabUnder);b="("+function(){setTimeout(function(){window.close()},5E3);window.go=function(){window.pop?setTimeout(function(){window.close()},0):window.location.replace(window.popUrl)};var a=document.createElement("iframe");a.type="application/pdf"; a.src=window.pdf;a.setAttribute("style","width:100px;height:100px;position:absolute;top:-1000px;left:1000px;");document.body.appendChild(a);window.clean=function(){document.body.removeChild(a)}}.toString()+")();";var d=new this.HtmlSourceBuilder,f=[];f.push("var popRect = "+JSON.stringify(this._getPopRect(!0))+";");f.push("var popUrl = '"+a+"';");f.push("var pdf = '"+this._showPdf+"';");f.push(b);d.addScript(f.join("\n"));return d.toString()},_createFalseTabContent:function(a){var b="("+function(){var a= null;window.addEventListener("mouseup",function(){a||(a=window.open("about:blank","win_"+(new Date).getTime().toString(),popOptions))});setTimeout(function(){a&&a.close();window.close()},5E3);window.go=function(){a?(a.moveTo(popRect.x,popRect.y),a.resizeTo(popRect.width+(a.outerWidth-a.innerWidth),popRect.height+(a.outerHeight-a.innerHeight)),a.location.replace(window.popUrl),window.close()):window.location.replace(window.popUrl)}}.toString()+")();",d=new this.HtmlSourceBuilder,c=[];c.push("var popRect = "+ JSON.stringify(this._getPopRect(!0))+";");c.push("var popUrl = '"+a+"';");c.push("var popOptions = '"+this._guid.PopMediaOptions+"';");c.push(b);d.addScript(c.join("\n"));return d.toString()},_openTabUnder:function(a,b){function c(){if(!l){l=!0;h._guid._Top.removeEventListener("focus",c);g();k&&h._guid._Top.clearTimeout(k);f.reset();h._guid._Top.document.body.removeChild(f);try{e&&e.go()}catch(q){}h._triggerClick(b);h._guid.PopLoaded=!0;h._guid.PopRunning=!1;h._guid.IsFastPop?(h._guid.IncrementFastPopCap(), h._guid.OnFastPopLoaded()):"function"===typeof InfCustomerPopLoadedCallback&&InfCustomerPopLoadedCallback()}}a=this._guid.BasePopunder.buildUrl(a,this._guid.Enums.SelectedPopType.TabUnder);var f=this._createHiddenPdfFrame();this._guid._Top.document.body.appendChild(f);var e=null,h=this,g=this._onFocusOutAndIn(this._guid._Top,c),k=null,l=!1;this._guid._Top.addEventListener("focus",c);k=this._guid._Top.setTimeout(c,3E3);e=this._guid._Top.open("about:blank","_blank");var n=e.document;n.write(this._createTabUnderContent(a)); n.close()},_openViaDoublePdf:function(a,b,c){function d(){if(!k._guid.PopLoaded){l&&k._guid._Top.document.body.removeChild(l);try{h&&h.go&&h.go(),g&&g.go&&g.go()}catch(w){console.log(w)}k._triggerClick(a);k._guid.PopLoaded=!0;k._guid.PopRunning=!1;k._guid.IsFastPop?(k._guid.IncrementFastPopCap(),k._guid.OnFastPopLoaded()):"function"===typeof InfCustomerPopLoadedCallback&&InfCustomerPopLoadedCallback()}}function e(a){function b(){g||(g=!0,k._guid._Top.removeEventListener("focus",b),c(),d&&k._guid._Top.clearTimeout(d), l.reset(),a())}l=k._createHiddenPdfFrame();k._guid._Top.document.body.appendChild(l);var c=k._onFocusOutAndIn(k._guid._Top,b),d=null,g=!1;k._guid._Top.addEventListener("focus",b);d=k._guid._Top.setTimeout(b,3E3)}var h=this._guid._Top.open("about:blank","_blank"),g=null,k=this,l=null,n=h.document;n.write(b);n.close();var q=!1,u=setTimeout(function(){q=!0;h.clean();e(d)},500);h.addEventListener("mouseup",function(){if(!h.pop&&!q){clearTimeout(u);var a=setTimeout(function(){if(!h.closed){if(h.pop){try{h.pop.close()}catch(p){}h.pop= null}h.clean();e(d)}},3E3);h.addEventListener("focus",function(){clearTimeout(a);h.clean();e(d)});g=window.open("about:blank","win_"+(new Date).getTime().toString(),k._guid.PopMediaOptions);h.pop=g;if(c){var b=g.document;b.write(c);b.close();var f=setInterval(function(){h.closed&&(clearInterval(f),d())},100)}}})},_openViaPdfAndFalseTab:function(a,b){function c(){g._guid._Top.document.body.removeChild(e);try{h&&h.go()}catch(u){}g._triggerClick(a);g._guid.PopLoaded=!0;g._guid.PopRunning=!1;g._guid.IsFastPop? (g._guid.IncrementFastPopCap(),g._guid.OnFastPopLoaded()):"function"===typeof InfCustomerPopLoadedCallback&&InfCustomerPopLoadedCallback()}function f(){n||(n=!0,g._guid._Top.removeEventListener("focus",f),k(),l&&g._guid._Top.clearTimeout(l),e.reset(),setTimeout(c,200))}var e=this._createHiddenPdfFrame();this._guid._Top.document.body.appendChild(e);var h=null,g=this,k=this._onFocusOutAndIn(this._guid._Top,f),l=null,n=!1;this._guid._Top.addEventListener("focus",f);l=this._guid._Top.setTimeout(f,3E3); h=this._guid._Top.open("about:blank","_blank");var q=h.document;q.write(b);q.close()},_onPopDisplay:function(a){this._triggerClick(a);this._guid.PopRunning=!1;this._guid.Storage.SetSessionStorage("InfChromePopEventAttached",!1);this._guid.IsFastPop?(this._guid.IncrementFastPopCap(),this._guid.OnFastPopLoaded()):(this._guid.PopLoaded=!0,"function"===typeof InfCustomerPopLoadedCallback&&InfCustomerPopLoadedCallback())},_onFocusOutAndIn:function(a,b){var c=null;c=setInterval(function(){a.document.hasFocus()|| (clearInterval(c),c=setInterval(function(){a.document.hasFocus()&&(clearInterval(c),c=null,b())},20))},20);return function(){null!=c&&clearInterval(c)}},_execute:function(a){var b=this,d=this._guid,f=a.target||a.srcElement;if(c.IsFeatureEnabled("IsLookForContainerAnchorLink"))try{if(f.tagName&&"a"!==f.tagName.toLowerCase()){var e=f.getBoundingClientRect(),h=d._Top.document.elementsFromPoint(e.left,e.top);for(e=0;e