!function(){function o(){(document.documentElement.scrollTop||window.pageYOffset||document.body.scrollTop)>200?t.addClass("show"):t.removeClass("show")}function e(){"ios"===(judgeClient()||"")?$(".itop-ad .android").remove():$(".itop-ad .ios").remove(),$(".itop-ad .close").on("click",function(){$(".itop-ad").remove()});var o=0;o=localStorage.getItem("popvalue");(document.documentElement.scrollTop||window.pageYOffset||document.body.scrollTop)>$(window).height()/2?"1"!==o&&($(".pop-cookie").removeClass("on"),$("#header,body").removeClass("popyes")):"1"!==o&&($(".pop-cookie").addClass("on"),0===$(document).find("#ipBanner").length&&$("#header,body").addClass("popyes")),$(".itop-ad .close").on("click",function(){$(".itop-ad").remove()})}var n=$(window).width(),t=$("#totopetc");!function(){var o=0;o=localStorage.getItem("popvalue"),$(".pop-cookie").addClass("on"),$(document).on("click","#_pcookie",function(o){$(".pop-cookie").remove(),$("#header,body").removeClass("popyes")}),"1"===o?($("#header,body").removeClass("popyes"),$(".pop-cookie").remove()):(0===$(document).find("#ipBanner").length&&$("#header,body").addClass("popyes"),$(".pop-got").on("click",function(){localStorage.setItem("popvalue",1),$(".pop-cookie").remove(),$("#header,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")}),n<=768&&e()}),n<=768?$("totopetc").remove():($(window).on("scroll",function(o,e){var n;return function(){clearTimeout(n),n=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");wtopHeader=document.documentElement.scrollTop||window.pageYOffset||document.body.scrollTop,$("body").hasClass("scroll-header")&&(wtopHeader>100?o.classList.add("on"):o.classList.remove("on"))}()}))}();