$(window).load(function(){
$("html").stop().smoothWheel()
});
$(document).on('click', 'a[href="#none"]', function(e) {
e.preventDefault();
});
$(window).resize(function(){
ww = $(window).width();
if(ww < 1383){
$("html").addClass("mobile");
}else{
$("html").removeClass("mobile");
}
}).resize();
$(document).on("click",".mobile .onoff",function(){
if($(this).attr("class") == "onoff act"){
$(this).find("ul").slideUp();
}else{
$(this).find("ul").slideDown();
}
$(this).toggleClass("act");
$(this).siblings("li").removeClass("act");
$(this).siblings("li").find("ul").slideUp();
})
//기본js
function startJs(){
$(document).on('click', 'a[href="#none"]', function(e) {e.preventDefault()});
if($('html').is('.ie67, .ie7, .ie8, .ie9')) {
$('div.ie_alert_text').show().html('현재 사이트는 IE9 미만의 하위브라우저를 지원하지 않습니다.
브라우저를 최신 버전으로 업데이트해 주세요.');
}
WebFont.load({google: {families: ['Noto Sans KR', 'Montserrat']}});
$(".gnb>li").mouseover(function(){
$("header").addClass("on");
dep1Num = $(".gnb>li").index($(this));
$(this).addClass("on").siblings().removeClass("on");
$(".sub_nav").stop().slideDown();
$(".sub_nav ul:eq("+dep1Num+")").fadeIn().siblings().hide();
})
$("header").mouseleave(function(){
$("header").removeClass("on");
$(".sub_nav").stop().slideUp();
$(".gnb>li").removeClass("on");
});
btnchk = 0;
$(".btn_menu").click(function(){
if(btnchk == 0){
btnchk = 1;
}else{
btnchk = 0;
}
})
$(window).scroll(function(){
scroll = $(window).scrollTop();
if(scroll > 0){
$("header").addClass("wh");
}else{
$("header").removeClass("wh");
}
})
famchk = 0;
$(".family").click(function(){
if(famchk == 0){
$(this).find("ul").slideDown();
$(this).addClass("act");
famchk = 1;
}else{
$(this).find("ul").slideUp();
$(this).removeClass("act");
famchk = 0;
}
})
}
function popup() {
//레이어팝업
var bg = $("#bg");
$(document).on('click',' #bg, .close ', function () {
bg.fadeOut();
$('div[id*="-popup"] div.inner').html('');
$('div[id*="-popup"]').hide();
});
$(document).on('click','.layer-',
function () {
var ClassName = $(this).data('link');
bg.show();
$('#layer-popup').show();
$('#layer-popup').html(
'