var VizuryNotificationObject={NotificationOpen:"true",IframeEle:null,IframeBottom:null,ContainerHtmlId:"vizury-notification-container",cookie:null,advid:null,ImpressionLogUrl:"https://us-ax.lemnisk.co/Impression?",TemplateId:null,flag:!0,OnsiteBlurHtmlId:"vizury-notification-blur",OnsiteBlurEnabled:!1,OriginalDimension:{},topPositions:[0,1,8],bottomPositions:[2,3,6],edgePositions:[5,6,7,8],responsiveConfig:{maxIfameWidth:.8,maxIfameHeight:.8,minimizedImageMaxWidth:.4,minimizedImageMaxHeight:.4,additionalIframeSizeForIcons:.06,minimizedImageStaticStyle:"min-width:unset;min-height:unset;max-width:unset;max-height:unset;"},reset:function(){VizuryNotificationObject.NotificationOpen="true"},createDivElementLocal:function(t){VizuryNotificationObject.reset(),VizuryNotificationObject.SetDivContent(t)},createDivElement:function(){var t=document.createElement("div");t.id=VizuryNotificationObject.ContainerHtmlId,document.body.appendChild(t),VizuryNotificationObject.makeAjaxCallStyle()},createDivElementSinglePage:function(){var t=document.getElementById(VizuryNotificationObject.ContainerHtmlId);if(t)t.innerHTML="";else{var i=document.createElement("div");i.id=VizuryNotificationObject.ContainerHtmlId,document.body.appendChild(i)}VizuryNotificationObject.flag=!0,VizuryNotificationObject.OnsiteBlurEnabled=!1,VizuryNotificationObject.makeAjaxCallStyle()},openTargetLink:function(t){var i=VizuryNotificationObject.ImpressionLogUrl+"click";VizuryNotificationObject.makeAjaxCall(i,"false"),window.open(t,"_blank").focus()},makeAjaxCallIE:function(t,i){(xdr=new XDomainRequest).onload=function(){var t=xdr.responseText;t.length>0&&"true"===i&&VizuryNotificationObject.SetDivContent(t)},xdr.open("GET",t,!0),xdr.send()},makeAjaxCall:function(t,i){var e;if(!0==!!window.XDomainRequest)VizuryNotificationObject.makeAjaxCallIE(t,i);else{try{e=new XMLHttpRequest}catch(o){try{e=new ActiveXObject("Msxml2.XMLHTTP")}catch(n){try{e=new ActiveXObject("Microsoft.XMLHTTP")}catch(a){return!1}}}e.onreadystatechange=function(){if(4==e.readyState){var t=e.responseText;t.length>0&&"true"===i&&VizuryNotificationObject.SetDivContent(t)}},e.open("GET",t,!0),e.withCredentials=!0,e.send()}},getAdvid:function(){var t=lmSMTObj.detectCampaign();return t.substring(6,t.length)},getImpressionId:function(){var t=new Date().getUTCMilliseconds();return VizuryNotificationObject.cookie+t.toString()+Math.floor(1e8+9e8*Math.random()).toString()},DetectUserAgent:function(){var t,i=navigator.userAgent,e=i.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];return/trident/i.test(e[1])?"IE"+((t=/\brv[ :]+(\d+)/g.exec(i)||[])[1]||""):"Chrome"===e[1]&&null!=(t=i.match(/\bOPR\/(\d+)/))?"Opera"+t[1]:(e=e[2]?[e[1],e[2]]:[navigator.appName,navigator.appVersion,"-?"],null!=(t=i.match(/version\/(\d+)/i))&&e.splice(1,1,t[1]),e[0]+e[1])},DetectMobileOrDesktop:function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?"Mobile":"Desktop"},CreateLogUrl:function(){var t=encodeURIComponent(window.location.href),i="DmpId="+VizuryNotificationObject.IframeEle.contentWindow.requestId+"&Id="+VizuryNotificationObject.IframeEle.contentWindow.id+"&vizid="+VizuryNotificationObject.cookie+"&force_adv_id=VIZVRM"+VizuryNotificationObject.advid+"&segid="+VizuryNotificationObject.IframeEle.contentWindow.segid+"&label="+VizuryNotificationObject.IframeEle.contentWindow.label+"&am="+VizuryNotificationObject.IframeEle.contentWindow.am+"&ie="+VizuryNotificationObject.IframeEle.contentWindow.ie+"&mr="+VizuryNotificationObject.IframeEle.contentWindow.mr+"&channelid="+VizuryNotificationObject.IframeEle.contentWindow.channelid+"&url="+t+"&pos="+VizuryNotificationObject.IframeEle.contentWindow.position+"&UserAgent="+VizuryNotificationObject.DetectUserAgent()+"&action=";VizuryNotificationObject.ImpressionLogUrl=VizuryNotificationObject.ImpressionLogUrl+i},fetchAnalyzeParameters:function(){var t=["t_scenario","osn","page","user","fp2","prod","pname","online","appno","leadid","subprod","src","dest","doj","rd","ad","ch","inf","PageName","FlightCabin","FlightType","droppage","param"],i={};for(var e in t)lmSMTObj.paramArray[t[e]]&&(i[t[e]]=lmSMTObj.paramArray[t[e]]);return i.deviceType=VizuryNotificationObject.DetectMobileOrDesktop(),encodeURIComponent(JSON.stringify(i))},isFirstTime:function(){return lmSMTObj.paramArray.ftu?"&ftu=1":""},getUTMparams:function(){for(var t,i=RegExp("(?:\\?|&)(utm_[^=]+)=(.*?)(?=&|$)","gi"),e={};null!=(t=i.exec(document.URL));)e[t[1]]=t[2];return Object.keys(e).length>0?"&data="+encodeURIComponent(JSON.stringify(e)):""},makeAjaxCallStyle:function(){var t=encodeURIComponent(window.location.href);VizuryNotificationObject.cookie=lmSMTObj.getCookie("_vz"),VizuryNotificationObject.advid=VizuryNotificationObject.getAdvid(),VizuryNotificationObject.ImpressionLogUrl=VizuryNotificationObject.getEndpoint()+"Impression?";var i=VizuryNotificationObject.fetchAnalyzeParameters(),e=VizuryNotificationObject.getUTMparams(),o=VizuryNotificationObject.isFirstTime(),n=VizuryNotificationObject.getEndpoint()+"GetContent?vizid="+VizuryNotificationObject.cookie+"&force_adv_id=VIZVRM"+VizuryNotificationObject.advid+"&url="+t+"&analyze_params="+i+o+e;"6081"==VizuryNotificationObject.advid&&window&&window.__NUXT__&&window.__NUXT__.state&&window.__NUXT__.state.device&&(!0==window.__NUXT__.state.device.isShell||"true"==window.__NUXT__.state.device.isShell)||VizuryNotificationObject.makeAjaxCall(n,"true")},SetDivContent:function(t){var i=t.split("");document.getElementById(VizuryNotificationObject.ContainerHtmlId).innerHTML=i[0],VizuryNotificationObject.SetIframeContent(i[1]),document.getElementById("vizury-notification-template").style.visibility="hidden",VizuryNotificationObject.CheckDeliveryWindow()},AdjustImageSize:function(){var t,i,e,o;if(VizuryNotificationObject.IframeEle.contentWindow.window.hasOwnProperty("BannerJson")){var n=VizuryNotificationObject.IframeEle.contentWindow.position;~VizuryNotificationObject.topPositions.indexOf(n)?VizuryNotificationObject.IframeEle.style.bottom="0px":~VizuryNotificationObject.bottomPositions.indexOf(n)&&(VizuryNotificationObject.IframeEle.style.top="0px");var a=setInterval(function(){lmSMTObj.detectCampaign();var r=null,c=VizuryNotificationObject.IframeEle.contentDocument.getElementById("container-div");if(c&&""!==c.innerHTML){var f=VizuryNotificationObject.IframeEle.contentDocument.getElementsByClassName("product");if((f=f.length?f[0]:void 0)&&(r=f.getElementsByTagName("img").length?f.getElementsByTagName("img")[0]:void 0),r&&parseInt(f.offsetWidth)>0&&parseInt(f.offsetHeight)>0){var m=new Image;m.onload=function(){if(VizuryNotificationObject.ToggleOnsiteBlur(!0,!0),VizuryNotificationObject.CallImpressionLogger(),VizuryNotificationObject.IframeEle.style.display="block",c.style.height=parseInt(f.offsetHeight).toString()+"px",c.style.width=parseInt(f.offsetWidth).toString()+"px",VizuryNotificationObject.TemplateId>10&&14!=VizuryNotificationObject.TemplateId&&15!=VizuryNotificationObject.TemplateId){var a=document.getElementById("AnchorText-23").getElementsByTagName("img")[0],r=document.getElementById("AnchorText-01").getElementsByTagName("img")[0];if(~VizuryNotificationObject.edgePositions.indexOf(n))e=parseInt(m.naturalHeight)+4,o=parseInt(m.naturalWidth)+4;else{t=parseInt(m.naturalHeight);var l=(i=parseInt(m.naturalWidth))>t?t:i;e=t+VizuryNotificationObject.responsiveConfig.additionalIframeSizeForIcons*l+5,o=i+VizuryNotificationObject.responsiveConfig.additionalIframeSizeForIcons*l+5}VizuryNotificationObject.OriginalDimension={notWidth:o,notHeight:e,minzed1Width:r.naturalWidth,minzed1Height:r.naturalHeight,minzed2Width:a.naturalWidth,minzed2Height:a.naturalHeight};var s=VizuryNotificationObject.getIframeDimensions();e=s.notHeight,o=s.notWidth,a&&(a.parentNode.style=VizuryNotificationObject.responsiveConfig.minimizedImageStaticStyle+"width:"+s.minzed2Width.toString()+"px;height:"+s.minzed2Height.toString()+"px;"),r&&(r.parentNode.style=VizuryNotificationObject.responsiveConfig.minimizedImageStaticStyle+"width:"+s.minzed1Width.toString()+"px;height:"+s.minzed1Height.toString()+"px;"),VizuryNotificationObject.IframeEle.style.height=e.toString()+"px",VizuryNotificationObject.IframeEle.style.width=o.toString()+"px",VizuryNotificationObject.IframeBottom="-"+e.toString()+"px",VizuryNotificationObject.IframeRight="-"+o.toString()+"px",VizuryNotificationObject.attachWindowEventListeners()}else~VizuryNotificationObject.edgePositions.indexOf(n)?(VizuryNotificationObject.IframeEle.style.height=(parseInt(f.offsetHeight)+4).toString()+"px",VizuryNotificationObject.IframeEle.style.width=(parseInt(f.offsetWidth)+4).toString()+"px",VizuryNotificationObject.IframeBottom="-"+(parseInt(f.offsetHeight)+4).toString()+"px",VizuryNotificationObject.IframeRight="-"+(parseInt(f.offsetWidth)+4).toString()+"px"):(VizuryNotificationObject.IframeEle.style.height=(parseInt(f.offsetHeight)+26).toString()+"px",VizuryNotificationObject.IframeEle.style.width=(parseInt(f.offsetWidth)+21).toString()+"px",VizuryNotificationObject.IframeBottom="-"+(parseInt(f.offsetHeight)+26).toString()+"px",VizuryNotificationObject.IframeRight="-"+(parseInt(f.offsetWidth)+21).toString()+"px");VizuryNotificationObject.IframeEle.contentDocument.getElementById("container-div").style.border="",document.getElementById("vizury-notification-template").style.visibility="visible",VizuryNotificationObject.OpenMaximizedOrMinimized()},m.src=r.src,clearInterval(a)}else if(16==VizuryNotificationObject.TemplateId){VizuryNotificationObject.ToggleOnsiteBlur(!0,!0),VizuryNotificationObject.CallImpressionLogger(),VizuryNotificationObject.IframeEle.style.display="block",c.style.height=parseInt(f.offsetHeight).toString()+"px",c.style.width=parseInt(f.offsetWidth).toString()+"px";var l=document.getElementById("AnchorText-23").getElementsByTagName("img")[0],s=document.getElementById("AnchorText-01").getElementsByTagName("img")[0];VizuryNotificationObject.OriginalDimension={notWidth:o,notHeight:e,minzed1Width:s.naturalWidth,minzed1Height:s.naturalHeight,minzed2Width:l.naturalWidth,minzed2Height:l.naturalHeight};var d=VizuryNotificationObject.getIframeDimensions();e=d.notHeight,o=d.notWidth,l&&(l.parentNode.style=VizuryNotificationObject.responsiveConfig.minimizedImageStaticStyle+"width:"+d.minzed2Width.toString()+"px;height:"+d.minzed2Height.toString()+"px;"),s&&(s.parentNode.style=VizuryNotificationObject.responsiveConfig.minimizedImageStaticStyle+"width:"+d.minzed1Width.toString()+"px;height:"+d.minzed1Height.toString()+"px;"),VizuryNotificationObject.IframeEle.style.height=e.toString()+"px",VizuryNotificationObject.IframeEle.style.width=o.toString()+"px",VizuryNotificationObject.IframeBottom="-"+e.toString()+"px",VizuryNotificationObject.IframeRight="-"+o.toString()+"px",VizuryNotificationObject.attachWindowEventListeners(),VizuryNotificationObject.resizeContainer(),VizuryNotificationObject.IframeEle.contentDocument.getElementById("container-div").style.border="",document.getElementById("vizury-notification-template").style.visibility="visible",VizuryNotificationObject.OpenMaximizedOrMinimized(),clearInterval(a)}}},200)}else{VizuryNotificationObject.ToggleOnsiteBlur(!0,!0),VizuryNotificationObject.CallImpressionLogger();var t=VizuryNotificationObject.IframeEle.contentWindow.height,i=VizuryNotificationObject.IframeEle.contentWindow.width,e=parseInt(t)+26,o=parseInt(i)+21;VizuryNotificationObject.IframeEle.style.height=e.toString()+"px",VizuryNotificationObject.IframeEle.style.width=o.toString()+"px",VizuryNotificationObject.IframeBottom="-"+e.toString()+"px";var n=VizuryNotificationObject.IframeEle.contentWindow.position;0===n||1===n?VizuryNotificationObject.IframeEle.style.bottom=VizuryNotificationObject.IframeBottom:(2===n||3===n)&&(VizuryNotificationObject.IframeEle.style.top=VizuryNotificationObject.IframeBottom)}},resizeContainer:function(){var t=VizuryNotificationObject.IframeEle.contentDocument.getElementsByClassName("product")[0],i=VizuryNotificationObject.IframeEle.contentDocument.getElementById("container-div");i.style.height=t.offsetHeight+"px",i.style.width=t.offsetWidth+"px"},getIframeDimensions:function(){var t,i={notWidth:VizuryNotificationObject.OriginalDimension.notWidth,notHeight:VizuryNotificationObject.OriginalDimension.notHeight,minzed1Width:VizuryNotificationObject.OriginalDimension.minzed1Width,minzed1Height:VizuryNotificationObject.OriginalDimension.minzed1Height,minzed2Width:VizuryNotificationObject.OriginalDimension.minzed2Width,minzed2Height:VizuryNotificationObject.OriginalDimension.minzed2Height};if(i.notWidth>window.innerWidth*VizuryNotificationObject.responsiveConfig.maxIfameWidth||i.notHeight>window.innerHeight*VizuryNotificationObject.responsiveConfig.maxIfameHeight){var e=i.notHeight/i.notWidth;i.notHeight>window.innerHeight*VizuryNotificationObject.responsiveConfig.maxIfameHeight&&(i.notHeight=window.innerHeight*VizuryNotificationObject.responsiveConfig.maxIfameHeight,i.notWidth=i.notHeight/e),i.notWidth>window.innerWidth*VizuryNotificationObject.responsiveConfig.maxIfameWidth&&(i.notWidth=window.innerWidth*VizuryNotificationObject.responsiveConfig.maxIfameWidth,i.notHeight=i.notWidth*e)}if(!(i.minzed1Height&&i.minzed1Width)){var o=document.getElementById("AnchorText-01").getElementsByTagName("img")[0];o.naturalHeight&&(i.minzed1Height=o.naturalHeight),o.naturalWidth&&(i.minzed1Width=o.naturalWidth)}if(!(i.minzed2Height&&i.minzed2Width)){var n=document.getElementById("AnchorText-23").getElementsByTagName("img")[0];n.naturalHeight&&(i.minzed2Height=n.naturalHeight),n.naturalWidth&&(i.minzed2Width=n.naturalWidth)}if(i.minzed1Width&&i.minzed1Height&&(t=i.minzed1Height/i.minzed1Width,i.minzed1Width>i.notWidth*VizuryNotificationObject.responsiveConfig.minimizedImageMaxWidth&&(i.minzed1Width=i.notWidth*VizuryNotificationObject.responsiveConfig.minimizedImageMaxWidth,i.minzed1Height=i.minzed1Width*t),i.minzed1Height>i.notHeight*VizuryNotificationObject.responsiveConfig.minimizedImageMaxHeight&&(i.minzed1Height=i.notHeight*VizuryNotificationObject.responsiveConfig.minimizedImageMaxHeight,i.minzed1Width=i.minzed1Height/t)),i.minzed2Width&&i.minzed2Height&&(t=i.minzed2Height/i.minzed2Width,i.minzed2Width>i.notWidth*VizuryNotificationObject.responsiveConfig.minimizedImageMaxWidth&&(i.minzed2Width=i.notWidth*VizuryNotificationObject.responsiveConfig.minimizedImageMaxWidth,i.minzed2Height=i.minzed2Width*t),i.minzed2Height>i.notHeight*VizuryNotificationObject.responsiveConfig.minimizedImageMaxHeight&&(i.minzed2Height=i.notHeight*VizuryNotificationObject.responsiveConfig.minimizedImageMaxHeight,i.minzed2Width=i.minzed2Height/t)),"VIZVRM6053"==lmSMTObj.detectCampaign()&&12==VizuryNotificationObject.TemplateId){var a=VizuryNotificationObject.IframeEle.contentDocument.getElementById("imageDiv"),r=VizuryNotificationObject.IframeEle.contentDocument.body,c=VizuryNotificationObject.IframeEle.contentDocument.getElementById("container-div"),f=VizuryNotificationObject.IframeEle.contentDocument.getElementById("div-close"),m=parseInt(a.naturalHeight),l=parseInt(a.naturalWidth),s=l>m?m:l,d=m+VizuryNotificationObject.responsiveConfig.additionalIframeSizeForIcons*s+5-(VizuryNotificationObject.responsiveConfig.additionalIframeSizeForIcons*s+5);VizuryNotificationObject.responsiveConfig.additionalIframeSizeForIcons,VizuryNotificationObject.responsiveConfig.additionalIframeSizeForIcons,window.outerWidth>=768&&(i.notWidth>1150&&i.notHeight>430?(i.notWidth=1100,i.notHeight=400,r.setAttribute("style","overflow-x: scroll; overflow-y:scroll;"),a.setAttribute("style","width: auto!important; height: auto !important"),f.setAttribute("style","position:fixed; top:0 !important; right:0 !important; background-color: transparent;"),c.setAttribute("style","margin: 0px !important")):i.notHeight>450?(i.notHeight=400,r.setAttribute("style","overflow-y:scroll;"),a.setAttribute("style","width: 100% !important"),f.setAttribute("style","position:fixed; top:0 !important; right:0 !important; background-color: transparent;"),c.setAttribute("style","margin: 0px !important")):i.notWidth>1150&&(i.notWidth=1100,i.notHeight=d+15,r.setAttribute("style","overflow-x:scroll;"),a.setAttribute("style","height: auto !important; width: auto !important"),f.setAttribute("style","position:fixed; top:0 !important; right:0 !important; background-color: transparent;"),c.setAttribute("style","margin: 0px !important"))),window.outerWidth<768&&(i.notWidth>300&&i.notHeight>530?(i.notWidth=300,i.notHeight=500,r.setAttribute("style","overflow-x: scroll; overflow-y:scroll;"),a.setAttribute("style","width: auto!important; height: auto !important"),f.setAttribute("style","position:fixed; top:0 !important; right:0 !important; background-color: transparent;"),c.setAttribute("style","margin: 0px !important")):i.notHeight>530?(i.notHeight=500,r.setAttribute("style","overflow-y:scroll;"),a.setAttribute("style","width: 100% !important"),f.setAttribute("style","position:fixed; top:0 !important; right:0 !important; background-color: transparent;"),c.setAttribute("style","margin: 0px !important")):i.notWidth>350&&(i.notWidth=300,i.notHeight=d,r.setAttribute("style","overflow-x:scroll;"),a.setAttribute("style","height: 100% !important; width: auto !important"),f.setAttribute("style","position:fixed; top:0 !important; right:0 !important; background-color: transparent;"),c.setAttribute("style","margin: 0px !important")))}if(16==VizuryNotificationObject.TemplateId){var u=parent.document.getElementById("vizury-notification-template");if(u&&u.contentWindow&&u.contentWindow.document){var y=u.contentWindow.document.getElementsByClassName("banner-container")[0].offsetHeight,g=u.contentWindow.document.getElementsByClassName("banner-container")[0].offsetWidth;i.notHeight=y+26,i.notWidth=g+15}}return i},attachWindowEventListeners:function(){for(var t=[{event:"resize",handler:VizuryNotificationObject.handleOnResizeEvent},{event:"orientationchange",handler:VizuryNotificationObject.handleOnResizeEvent}],i=0;i10&&14!=VizuryNotificationObject.TemplateId&&15!=VizuryNotificationObject.TemplateId&&(t.contentDocument.getElementById("div-minimise").style.right="2vmin"),t.contentDocument.getElementById("div-close").style.display="none"):VizuryNotificationObject.TemplateId>10&&14!=VizuryNotificationObject.TemplateId&&15!=VizuryNotificationObject.TemplateId?(t.contentDocument.getElementById("div-minimise").style.marginRight="2px",t.contentDocument.getElementById("div-minimise").style.right="12vmin"):t.contentDocument.getElementById("div-minimise").style.right="30px"},ShowMinimizeImageIcon:function(){var t=t||VizuryNotificationObject.IframeEle.contentWindow.position,i=VizuryNotificationObject.GetAnchorText(t);parent.document.getElementById(i).style.visibility="visible"},transAnimationTopAndBottom:function(t,i,e,o){var n=setInterval(function(){t.style[i]=e+"px",o<0?(e-=2)o&&(t.style[i]=o+"px",clearInterval(n))},1)},triggerNotiBottom:function(t,i){VizuryNotificationObject.transAnimationTopAndBottom(t,"bottom",i,0)},triggerNotiTop:function(t,i){VizuryNotificationObject.transAnimationTopAndBottom(t,"top",i,0)},ForceDirectionHide:function(t,i){switch(i){case 0:case 1:case 8:t.style.bottom=parseInt(VizuryNotificationObject.IframeBottom)+"px";break;case 2:case 3:case 6:t.style.top=parseInt(VizuryNotificationObject.IframeBottom)+"px";break;case 5:t.style.right=parseInt(VizuryNotificationObject.IframeRight)+"px";break;case 7:t.style.left=parseInt(VizuryNotificationObject.IframeRight)+"px"}VizuryNotificationObject.ShowMinimizeImageIcon()},AnimateDirectionHide:function(t,i){switch(i){case 0:case 1:case 8:VizuryNotificationObject.transAnimationTopAndBottom(t,"bottom",0,parseInt(VizuryNotificationObject.IframeBottom));break;case 2:case 3:case 6:VizuryNotificationObject.transAnimationTopAndBottom(t,"top",0,parseInt(VizuryNotificationObject.IframeBottom));break;case 5:VizuryNotificationObject.transAnimationTopAndBottom(t,"right",0,parseInt(VizuryNotificationObject.IframeRight));break;case 7:VizuryNotificationObject.transAnimationTopAndBottom(t,"left",0,parseInt(VizuryNotificationObject.IframeRight))}},AnimateDirectionShow:function(t,i){switch(i){case 0:case 1:case 8:VizuryNotificationObject.transAnimationTopAndBottom(t,"bottom",parseInt(VizuryNotificationObject.IframeBottom),0);break;case 2:case 3:case 6:VizuryNotificationObject.transAnimationTopAndBottom(t,"top",parseInt(VizuryNotificationObject.IframeBottom),0);break;case 5:VizuryNotificationObject.transAnimationTopAndBottom(t,"right",parseInt(VizuryNotificationObject.IframeRight),0);break;case 7:VizuryNotificationObject.transAnimationTopAndBottom(t,"left",parseInt(VizuryNotificationObject.IframeRight),0)}},GetAnchorText:function(t){var i;return 0==t||1==t||5==t||6==t||7==t||8==t?"AnchorText-01":"AnchorText-23"},Toggle:function(){var t=t||VizuryNotificationObject.IframeEle.contentWindow.position,i=VizuryNotificationObject.GetAnchorText(t);if(VizuryNotificationObject.AlignMinimizeForCenterPositions(t),"true"==VizuryNotificationObject.NotificationOpen){VizuryNotificationObject.AnimateDirectionHide(VizuryNotificationObject.IframeEle,t),VizuryNotificationObject.NotificationOpen="false";var e="";e=1==VizuryNotificationObject.TemplateId?VizuryNotificationObject.ImpressionLogUrl+"minimize":VizuryNotificationObject.IframeEle.contentWindow.window.config.impressionLogUrl+"minimize",VizuryNotificationObject.makeAjaxCall(e,"false"),VizuryNotificationObject.ToggleOnsiteBlur(!1,!1)}else{VizuryNotificationObject.AnimateDirectionShow(VizuryNotificationObject.IframeEle,t),document.getElementById(i).style.visibility="hidden",VizuryNotificationObject.NotificationOpen="true";var e="";e=1==VizuryNotificationObject.TemplateId?VizuryNotificationObject.ImpressionLogUrl+"maximize":VizuryNotificationObject.IframeEle.contentWindow.window.config.impressionLogUrl+"maximize",VizuryNotificationObject.makeAjaxCall(e,"false"),VizuryNotificationObject.ToggleOnsiteBlur(!0,!1)}VizuryNotificationObject.TemplateId>10&&14!=VizuryNotificationObject.TemplateId&&15!=VizuryNotificationObject.TemplateId&&VizuryNotificationObject.handleOnResizeEvent()},SetIframeContent:function(t){var i=document.getElementById("vizury-notification-template").contentWindow.document;i.open(),i.write(""),i.write(t),i.close(),VizuryNotificationObject.IframeEle=parent.document.getElementById("vizury-notification-template"),VizuryNotificationObject.CreateLogUrl()},close:function(){document.getElementById("vizury-notification-template").style.display="none";var t="";t=1==VizuryNotificationObject.TemplateId?VizuryNotificationObject.ImpressionLogUrl+"close":VizuryNotificationObject.IframeEle.contentWindow.window.config.impressionLogUrl+"close",VizuryNotificationObject.makeAjaxCall(t,"false"),VizuryNotificationObject.ToggleOnsiteBlur(!1,!1)},CheckDeliveryWindow:function(){var t=VizuryNotificationObject.IframeEle.contentWindow.From,i=VizuryNotificationObject.IframeEle.contentWindow.To,e=new Date;e.getHours(),e.getMinutes(),t.split(":"),i.split(":"),VizuryNotificationObject.IdentifyEvent()},CallImpressionLogger:function(){var t="";t=1==VizuryNotificationObject.TemplateId?VizuryNotificationObject.ImpressionLogUrl+"impression":VizuryNotificationObject.IframeEle.contentWindow.window.config.impressionLogUrl+"impression",VizuryNotificationObject.makeAjaxCall(t,"false")},CreateOnsiteBlurDiv:function(){if(VizuryNotificationObject.IframeEle.contentWindow.notificationBlur&&1==VizuryNotificationObject.IframeEle.contentWindow.notificationBlur.enabled&&VizuryNotificationObject.IframeEle.contentWindow.notificationBlur.color){VizuryNotificationObject.OnsiteBlurEnabled=!0;var t=document.createElement("div");t.id=VizuryNotificationObject.OnsiteBlurHtmlId,document.getElementById("vizury-notification-container").appendChild(t),t.style="width: 100%; height: 100%; z-index: 199999970; position: fixed; top: 0; left: 0; opacity: 0.5",t.style.visibility="hidden",t.style.backgroundColor=VizuryNotificationObject.IframeEle.contentWindow.notificationBlur.color}},ToggleOnsiteBlur:function(t,i){(!i||1!==VizuryNotificationObject.IframeEle.contentWindow.initialState)&&VizuryNotificationObject.OnsiteBlurEnabled&&(document.getElementById(VizuryNotificationObject.OnsiteBlurHtmlId).style.visibility=t?"visible":"hidden")},IdentifyEvent:function(){VizuryNotificationObject.TemplateId=VizuryNotificationObject.IframeEle.contentWindow.Tid;var t=VizuryNotificationObject.IframeEle.contentWindow.eventId?VizuryNotificationObject.IframeEle.contentWindow.eventId:0,i=VizuryNotificationObject.IframeEle.contentWindow.notifyTrigger;switch(i&&(t=i.id,value=i.value),VizuryNotificationObject.CreateOnsiteBlurDiv(),t){case 0:default:VizuryNotificationObject.ExecuteEvent();break;case 1:VizuryNotificationObject.ExitEvent();break;case 2:VizuryNotificationObject.ExecuteEvent(value);break;case 3:VizuryNotificationObject.ScrollEvent(value)}},PullPageDown:function(){var t=document.createElement("div");t.setAttribute("id","vizury-pulldown-div"),t.style.height="50px",t.style.overflow="hidden";var i=document.getElementsByTagName("body")[0];i.insertBefore(t,i.firstChild)},PullPageUp:function(){var t=document.createElement("div");t.setAttribute("id","vizury-pullup-div"),t.style.height="50px",t.style.overflow="hidden",document.getElementsByTagName("body")[0].appendChild(t)},RenderStaticOnsiteNotification:function(t){VizuryNotificationObject.CloseOrMinimize(),VizuryNotificationObject.AdjustImageSize(),VizuryNotificationObject.InitialPosition(),0===t||1===t?VizuryNotificationObject.triggerNotiBottom(VizuryNotificationObject.IframeEle,parseInt(VizuryNotificationObject.IframeBottom)):(2===t||3===t)&&VizuryNotificationObject.triggerNotiTop(VizuryNotificationObject.IframeEle,parseInt(VizuryNotificationObject.IframeBottom)),document.getElementById("vizury-notification-template").style.visibility="visible"},AlignMinimizeForCenterPositions:function(t){if(!(VizuryNotificationObject.TemplateId>10)||14==VizuryNotificationObject.TemplateId||15==VizuryNotificationObject.TemplateId){if(5===t||7===t){var i="translate(0%,-"+parseInt(VizuryNotificationObject.IframeEle.style.height)/2+"px)";document.getElementById("AnchorText-01").style.transform=i}else if(6===t||8===t){var i="translate(-"+parseInt(VizuryNotificationObject.IframeEle.style.width)/2+"px,0%)";document.getElementById("AnchorText-01").style.transform=i}}},ExecuteEvent:function(t){var i=t?1e3*t:1,e=e||VizuryNotificationObject.IframeEle.contentWindow.position;switch(VizuryNotificationObject.IframeEle.contentWindow.eventId,VizuryNotificationObject.TemplateId){case 1:case 3:VizuryNotificationObject.IframeEle.contentWindow.isActive&&setTimeout(function(){VizuryNotificationObject.RenderStaticOnsiteNotification(e)},i);break;default:setTimeout(function(){VizuryNotificationObject.CloseOrMinimize(),VizuryNotificationObject.AdjustImageSize()},i)}},ExitEvent:function(){var t=document.documentElement;t.addEventListener("mouseleave",function t(i){!(i.clientY>20)&&e()}),t.addEventListener("keydown",function t(o){if(!i)o.metaKey&&76===o.keyCode&&(i=!0,e())});var i=!1;function e(){!0==VizuryNotificationObject.flag&&(VizuryNotificationObject.ExecuteEvent(),VizuryNotificationObject.flag=!1)}},ScrollEvent:function(t){var i,e,o="scroll";i=window,e=function(i){((window.pageYOffset||document.body.scrollTop||document.documentElement.scrollTop||0)+(window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight||0))/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)*100>t&&!0==VizuryNotificationObject.flag&&(VizuryNotificationObject.ExecuteEvent(),VizuryNotificationObject.flag=!1)},i.addEventListener?i.addEventListener(o,e,!1):i.attachEvent&&i.attachEvent("on"+o,e)},getEndpoint:function(){return lmSMTObj.onsiteEndpoint?"https://"+lmSMTObj.onsiteEndpoint:"https://us-ax.lemnisk.co/"}};