$(function(){let e;(e=document.getElementById("isIndex"))&&"Y"==e.value?(document.getElementById("sjs").remove(),document.getElementById("scss").remove()):(document.getElementById("mjs").remove(),document.getElementById("mcss").remove());let n;window.onload=(n=$("#page-loader"),void(n.find(".loader-stage").fadeOut("slow",function(){setTimeout(function(){n.fadeOut("slow")},100)}),null!=document.getElementById("isIndex")&&$(".hero").addClass("--load"))),$("#header .mb-gnb-open").on("click",function(e){$("#header-mb").addClass("open")}),$("#header-mb .mb-gnb-close").on("click",function(e){$("#header-mb").removeClass("open")}),$("#header-mb .gnb-font").on("click",function(e){$(this).next(".gnb-sub").slideToggle(),$(this).closest("li").toggleClass("open")}),$("#header-mb").on("click",function(e){$(e.target).is(".gnb")||$(e.target).is(".gnb *")||$("#header-mb .mb-gnb-close").trigger("click")}),$(window).on("scroll",function(){let e=$(window).scrollTop(),n=$("#header");e>=100?n.addClass("fixed"):n.removeClass("fixed"),e>=200?$("#quick-btns").addClass("show"):$("#quick-btns").removeClass("show")}),!function e(){if(/Mobi/i.test(window.navigator.userAgent)){$(".px-cursor").remove();return}let n=document.querySelector(".cursor-ball");$(document).on("mousemove",function e(o){TweenMax.to(n,.6,{x:o.clientX-15,y:o.clientY-15})}),$(document).on("mouseenter","a, button",function e(){TweenMax.to(n,.3,{scale:.18})}),$(document).on("mouseleave","a, button",function e(){TweenMax.to(n,.3,{scale:.34})}),$(".cursor-area").on("mouseenter",function e(o){TweenMax.to(n,.3,{scale:1});let t=$(o.target).attr("data-cursor");$(n).css({"mix-blend-mode":"unset",opacity:.8}),$(n).find("circle").css({fill:"var(--primary)"}),$(n).append("
"+t+"
")}),$(".cursor-area").on("mouseleave",function e(){TweenMax.to(n,.3,{scale:.34}),$(n).css({"mix-blend-mode":"difference",opacity:1}),$(n).find("circle").css({fill:"var(--primary-blend)"}),$(n).find(".text").remove()})}()});