!function(e){
"use strict";
var t=0,i=0,n=top!=self?top:self,o=navigator.userAgent.toLowerCase(),s={
win:/windows/.test(o),
mac:/macintosh/.test(o),
mobile:/iphone|ipad|android/.test(o),
webkit:/webkit/.test(o),
mozilla:/mozilla/.test(o)&&!/(compatible|webkit)/.test(o),
chrome:/chrome/.test(o),
msie:/msie|trident\//.test(o)&&!/opera/.test(o),
firefox:/firefox/.test(o),
safari:/safari/.test(o)&&!/chrome/.test(o),
opera:/opera/.test(o),
version:parseInt(o.match(/(?:[^\s]+(?:ri|ox|me|ra)\/|trident\/.*?rv:)([\d]+)/i)[1],10)
},
r={
simulateClick:function(t){
var i=this.createElement("a",{href:t||"data:text/html,;"});
var n=document.createEvent("MouseEvents");
document.body.appendChild(i),
n.initMouseEvent("click",!0,!0,e,0,0,0,0,0,!0,!1,!1,!0,0,null),
i.dispatchEvent(n),
i.parentNode.removeChild(i)
},
blur:function(t){
if(!s.mobile)try{
t.blur(),t.opener&&t.opener.window&&t.opener.window.focus(),
e.self&&e.self.window&&e.self.window.focus(),e.focus(),
s.firefox?this.openCloseWindow(t)
:s.webkit?(!s.chrome||s.chrome&&s.version<41)&&this.openCloseTab()
:s.msie&&setTimeout(function(){try{t.blur(),t.opener.window.focus(),e.self.window.focus(),e.focus()}catch(i){}},1e3)
}catch(i){}
},
createElement:function(e,t,i){
var n=document.createElement(e);
for(var o in t)n.setAttribute(o,t[o]);
if(i!=null)n.innerHTML=i;
return n
},
openCloseWindow:function(e){
var t=e.window.open("about:blank");
t&&t.focus&&t.focus(),t&&t.close&&t.close(),
setTimeout(function(){
try{(t=e.window.open("about:blank")).focus(),t.close()}catch(i){}
},1)
},
openCloseTab:function(){this.simulateClick()},
isFlashInstalled:function(){return!!navigator.mimeTypes["application/x-shockwave-flash"]},
removeFlashPopunder:function(e){
setTimeout(function(){
var t=document.getElementById(e.name+"_flash");
t&&t.parentNode&&t.parentNode.removeChild(t)
},1e3)
},
initFlashPopunder:function(e){
var t,i,n=this,o=e.name+"_flash",
s=this.createElement("object",{
type:"application/x-shockwave-flash",
data:l.flashUrl,
name:o,id:o,
style:"position:fixed;visibility:visible;left:0;top:0;width:1px;height:1px;z-index:9999999;"
}),
r=[
{name:"flashvars",value:"fire="+e.name+".fire&name="+e.name},
{name:"wmode",value:"transparent"},
{name:"menu",value:"false"},
{name:"allowscriptaccess",value:"always"}
];
for(i in r)s.appendChild(this.createElement("param",r[i]));
return t=setInterval(function(){
if("complete"==document.readyState){
clearInterval(t),
document.body.insertBefore(s,document.body.firstChild),
s.focus&&s.focus(),
n.attachEvent("mousedown",function(e){
0===e.button&&(document.getElementById(o).style.width=document.getElementById(o).style.height="100%")
})
}
},10),s
},
detachEvent:function(t,i,n){
var n=n||e;
return n.removeEventListener?n.removeEventListener(t,i):n.detachEvent("on"+t,i)
},
attachEvent:function(t,i,n){
var n=n||e;
return n.addEventListener?n.addEventListener(t,i):n.attachEvent("on"+t,i)
},
mergeObject:function(){
var e,t,i={};
for(e=0;e -1) { inFthumb = true; break; }
node = node.parentNode;
}
inFthumbLink = !!(foundLink && inFthumb);
}
}
if (!isCloseBtn && !inFthumbLink && t.shouldExecute()) {
t.fire(),
r.detachEvent(i,n,e),
r.detachEvent(i,n,document)
}
};
r.attachEvent(i,n,e),
r.attachEvent(i,n,document)
},
fire:function(t){
var o,l=e[t]||this;
l.options.beforeOpen.call(void 0,this),
i=new Date().getTime(),
l.setExecuted(),
l.options.newTab
? (l.options.blur&&(s.mobile||s.chrome&&s.version>=41||s.firefox&&s.version>=38||s.msie&&s.version>=11)
? (1==a.length||s.chrome
? (o=n.window.open(e.location.href,"_blank"),
setTimeout(function(){e.location.href=a.shift()},100))
: o=n.window.open(a.shift(),"_blank"))
: s.chrome&&s.version>30&&l.options.blur
? (e.open("javascript:window.focus()","_self",""),r.simulateClick(l.url),o=null)
: o=n.window.open(l.url,"_blank"))
: o=e.open(l.url,l.url,l.getParams()),
l.options.afterOpen.call(void 0,this),
l.options.blur&&r.blur(o),
r.removeFlashPopunder(l)
},
shouldExecute:function(){
return !(s.chrome&&i&&i+this.options.chromeDelay>new Date().getTime())&&!this.isExecuted()
},
isExecuted:function(){return this.executed||!!r.getCookie(this.name)},
setExecuted:function(){this.executed=!0,r.setCookie(this.name,1,this.options.cookieExpires,this.options.cookiePath)},
setOptions:function(e){
this.options=r.mergeObject(this.defaultWindowOptions,this.defaultPopOptions,e||{});
if(!this.options.newTab){
if(s.chrome&&s.version<41)
for(var t in this.__newWindowOptionsChromeBefore41)this.options[t]=this.__newWindowOptionsChromeBefore41[t];
if(r.isFlashInstalled())
for(var t in this.__newWindowOptionsFlash)this.options[t]=this.__newWindowOptionsFlash[t]
}
},
getParams:function(){
var e,t="";for(e in this.options)
void 0!==this.defaultWindowOptions[e]&&(t+=(t?",":"")+e+"="+this.options[e]);
return t
}
},
l.make=function(e,t){return new this(e,t)},
e.SmartP=l
}(this);
// Instantiate with your URL and options
SmartP.make("https://a.aberatii.com/pops?zone_id=2",{newTab:!0});