!function(){function o(){(document.documentElement.scrollTop||window.pageYOffset||document.body.scrollTop)>200?n.addClass("show"):n.removeClass("show")}function e(){"ios"===(function(){let o="";return o=/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?"ios":/(Android)/i.test(navigator.userAgent)?"android":"pc"}()||"")?$(".itop-ad .android").remove():$(".itop-ad .ios").remove(),$(".itop-ad .close").on("click",function(){$(".itop-ad").remove()})}var t=$(window).width(),n=$("#totopetc");!function(){var o=0;o=localStorage.getItem("popvalue"),$(".pop-cookie").addClass("on"),$(document).on("click","#_pcookie",function(o){$(".pop-cookie").remove(),$("#header-isr,body").removeClass("popyes")}),"1"===o?($("#header-isr,body").removeClass("popyes"),$(".pop-cookie").remove()):($("#header-isr,body").addClass("popyes"),$(".pop-got").on("click",function(){localStorage.setItem("popvalue",1),$(".pop-cookie").remove(),$("#header-isr,body").removeClass("popyes")}))}(),window.addEventListener("scroll",function(){$(".scroll-animation").each(function(o,e){e.getBoundingClientRect().top<.66*window.innerHeight?$(e).addClass("on"):$(e).removeClass("on")}),t<=768&&function(){e();var o=0;o=localStorage.getItem("popvalue"),(document.documentElement.scrollTop||window.pageYOffset||document.body.scrollTop)>$(window).height()/2?($(".itop-ad").addClass("on"),"1"!==o&&($(".pop-cookie").removeClass("on"),$("#header-isr,body").removeClass("popyes"))):($(".itop-ad").removeClass("on"),"1"!==o&&($(".pop-cookie").addClass("on"),$("#header-isr,body").addClass("popyes"))),$(".itop-ad .close").on("click",function(){$(".itop-ad").remove()})}()}),t<=768?$("totopetc").remove():($(window).on("scroll",function(o,e){var t;return function(){clearTimeout(t),t=setTimeout(o,e)}}(o,300)),$("#totopetc").off("click").on("click",function(o){o.stopPropagation(),$("body, html").animate({scrollTop:0},800)}),window.addEventListener("scroll",function(){!function(){var o=document.getElementById("header")?document.getElementById("header"):"";wtopHeader=document.documentElement.scrollTop||window.pageYOffset||document.body.scrollTop,$("body").hasClass("scroll-header")&&(wtopHeader>100?o&&o.classList.add("on"):o&&o.classList.remove("on"))}()}))}();