if(Agechecked!="undefined")var Agechecked=function(n){"use strict";function r(n){for(var i=window.jQuery.fn.jquery.split("."),r=n.split("."),u=[],t=0,f=i.length;t<f;t++)if(r[t]&&i[t]<r[t]){if(!u[t-1]||u[t-1]==0)return!1}else u[t]=i[t]>r[t]?1:0;return!0}function t(r){i=n.extend(i,r);i.merchantkey||t.Common.log("cannot function with invalid merchantkey parameter ("+i.merchantkey+")",!0)}if(n.support.cors=!0,r("1.10")==!1){alert("JQuery minimum version 1.10 not satisfied");return}var i={merchantkey:"ShWA5QLdcDAMPzlESAQsmCk+XWQMomTvE9agjm62Gmd9t3G3PDSAqTiJVDoIqbPK",merchantid:"591",returnfunction:null};return t.Version={major:1,minor:0,revision:1,toString:function(){return t.Version.major+"."+t.Version.minor+"."+t.Version.revision}},t.Common=function(){var n={},t={origin:"https://api.agechecked.com",api:"https://api.agechecked.com/api/jsapi/"};return n.api_url=function(n){return t.api+n},n.origin=t.origin,n.log=function(n,t){window.console&&(t?console.error(n):console.log(n))},n}(),t.API=function(){function f(n,t,i){return{error:function(n,t,i){alert(n.status);alert(i)},xhrFields:{withCredentials:!0},cache:!1,crossDomain:!0,isLocal:!1,url:t,data:i,dataType:n}}function u(t,i){return n.ajax(f("json",t,i))}var r={};return r.isloaded=function(){return!0},r.isonline=function(){return u(t.Common.api_url("onlinecheck"),{merchantkey:i.merchantkey})},r.supportedcountries=function(){return u(t.Common.api_url("supportedcountries"),{merchantkey:i.merchantkey})},r.customersupportedcountry=function(){return u(t.Common.api_url("customersupportedcountry"),{merchantkey:i.merchantkey})},r.getcustomercurrency=function(){return u(t.Common.api_url("getcustomercurrency"),{merchantkey:i.merchantkey})},r.getcustomerid=function(){return u(t.Common.api_url("getcustomerid"),{merchantkey:i.merchantkey})},r.getcustomernick=function(){return u(t.Common.api_url("getcustomernick"),{merchantkey:i.merchantkey})},r.createagecheckjson=function(n){return n.merchantkey=i.merchantkey,n.merchantid=i.merchantid,u(t.Common.api_url("createagecheck"),n)},r.getagecheck=function(n){return u(t.Common.api_url("getagecheck"),{merchantkey:i.merchantkey,paymentid:n})},r.isageverified=function(n){return u(t.Common.api_url("isageverified"),{merchantkey:i.merchantkey,paymentid:n})},r.healthcheck=function(n){return u(t.Common.api_url("healthcheck"),{merchantkey:i.merchantkey,paymentid:n})},r.registerreturn=function(n){i.returnfunction=n;window.addEventListener("message",r.returncall)},r.returncall=function(n){if(n.origin!=t.Common.origin)return!1;i.returnfunction!=null?i.returnfunction(n):alert("Agechecked! NO RETURN REGISTERED")},r.merchantResetScrollPanes=function(){n("#agechecked-merchant-iframe-container").attr("style","");setTimeout(function(){n("#agechecked-merchant-iframe-container").attr("style","-webkit-overflow-scrolling:touch;")},100)},r.merchantResetScrollPanesInternal=function(){n("#agechecked-merchant-iframe-container").attr("style","");setTimeout(function(){n("#agechecked-merchant-iframe-container").attr("style","-webkit-overflow-scrolling:touch;")},4e3)},r.modalopen=function(t){n("body").append('<div id="agechecked-merchant-iframe-overlay"><iframe-modal class="agechecked-iframe-container" id="agechecked-merchant-iframe-container"><iframe id="agechecked-merchantIframe" onload="Agechecked.API.merchantResetScrollPanesInternal()"><\/iframe><\/iframe-modal><\/div>');var i=n("#agechecked-merchantIframe");i.attr("src",t);i.attr("allow","camera");n(window).on("orientationchange",r.merchantResetScrollPanes);n(window).on("scroll",r.merchantResetScrollPanes);n(document.body).addClass("agechecked-merchant-body-locked")},r.modalclose=function(){n("#agechecked-merchant-iframe-overlay").remove();n(window).off("orientationchange",r.merchantResetScrollPanes);n(window).off("scroll",r.merchantResetScrollPanes);n(document.body).removeClass("agechecked-merchant-body-locked")},r}(),t.prototype={API:t.API,Version:t.Version},t}(window.jQuery);jQuery(function(n){n("head").append('<link href="https://api.agechecked.com/api/content/css/Agechecked-modals.css" rel="stylesheet">')})