function GetWindowHeight(){return window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight||0}function GetWindowYScroll(){return window.pageYOffset||document.body.scrollTop||document.documentElement.scrollTop||0}function GetDocHeight(){return Math.max(document.body.scrollHeight||0,document.documentElement.scrollHeight||0,document.body.offsetHeight||0,document.documentElement.offsetHeight||0,document.body.clientHeight||0,document.documentElement.clientHeight||0)}function GetScrollPercentage(){return GetWindowYScroll()/(GetDocHeight()-GetWindowHeight())*100}function CallModal(){modalopened==null||modalopened||(showRegistrationScreen(),modalopened=!0,sessionStorage.setItem("modalopened",!0),sessionStorage.setItem("openOnPageLoad",!1),setCookie("ModalSeen",!0,2))}function setCookie(n,t,i){OT_Cookie_Block_Status?Cookies.set(n,t,{expires:-1}):Cookies.set(n,t,{expires:i})}var tenseconds,timeoutCounter;!function(n){var t,r,i;("function"==typeof define&&define.amd&&(define(n),t=!0),"object"==typeof exports&&(module.exports=n(),t=!0),t)||(r=window.Cookies,i=window.Cookies=n(),i.noConflict=function(){return window.Cookies=r,i})}(function(){function n(){for(var i,r,n=0,t={};n<arguments.length;n++){i=arguments[n];for(r in i)t[r]=i[r]}return t}function t(n){return n.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function i(r){function u(){}function f(t,i,f){var s,o,e;if("undefined"!=typeof document){"number"==typeof(f=n({path:"/"},u.defaults,f)).expires&&(f.expires=new Date(1*new Date+864e5*f.expires));f.expires=f.expires?f.expires.toUTCString():"";try{s=JSON.stringify(i);/^[\{\[]/.test(s)&&(i=s)}catch(n){}i=r.write?r.write(i,t):encodeURIComponent(String(i)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent);t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);o="";for(e in f)f[e]&&(o+="; "+e,!0!==f[e]&&(o+="="+f[e].split(";")[0]));return document.cookie=t+"="+i+o}}function e(n,i){var s,u,f;if("undefined"!=typeof document){for(var e={},h=document.cookie?document.cookie.split("; "):[],o=0;o<h.length;o++){s=h[o].split("=");u=s.slice(1).join("=");i||'"'!==u.charAt(0)||(u=u.slice(1,-1));try{if(f=t(s[0]),u=(r.read||r)(u,f)||t(u),i)try{u=JSON.parse(u)}catch(n){}if(e[f]=u,n===f)break}catch(n){}}return n?e[n]:e}}return u.set=f,u.get=function(n){return e(n,!1)},u.getJSON=function(n){return e(n,!0)},u.remove=function(t,i){f(t,"",n(i,{expires:-1}))},u.defaults={},u.withConverter=i,u}(function(){})});var modalopened=!1,openOnPageLoad=!1,pageNavCount=0;window.location.href.toLowerCase().indexOf("utm_medium=email")===-1&&(tenseconds=0,timeoutCounter=setInterval(function(){tenseconds++;!modalopened&&pageNavCount>1&&tenseconds===6?(CallModal(),clearInterval(timeoutCounter)):modalopened&&clearInterval(timeoutCounter)},1e4),$(window).scroll(function(){clearInterval(timeoutCounter);tenseconds=0;setInterval(timeoutCounter);var n=GetScrollPercentage();n>25&&!modalopened?CallModal():!modalopened&&n>0&&sessionStorage.setItem("openOnPageLoad",!0)}),$(document).ready(function(){var n=Cookies.get("ModalSeen")==="true";n&&(modalopened=n);var t=sessionStorage.getItem("modalopened"),i=sessionStorage.getItem("openOnPageLoad"),r=sessionStorage.getItem("pageNavCount");modalopened||t==null||(modalopened=t);i!=null&&(openOnPageLoad=i);r!=null&&(pageNavCount=r);!modalopened&&openOnPageLoad&&CallModal();!modalopened&&pageNavCount>1&&sessionStorage.setItem("openOnPageLoad",!0);pageNavCount++;sessionStorage.setItem("pageNavCount",pageNavCount);$("#vjs_video_3").length&&videojs.getPlayer("vjs_video_3").ready(function(){var n=this;n.on("pause",function(){CallModal()});n.on("ended",function(){CallModal()})})}))