<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">$(document).ready(function(){
	//�レ옄留� �낅젰 input�쒓렇�� num_only �대옒��
	$(document).on('keypress', 'input.num_only', function(e){
        if(e.which &amp;&amp; (e.which &lt; 48 || e.which &gt; 57) ){ e.preventDefault(); }
    });

	//�レ옄留� �낅젰 input�쒓렇�� num_only �대옒��
    $(document).on('keyup', 'input.num_only', function(e){
        if( $(this).val() != null &amp;&amp; $(this).val() != '' ) {
            var tmps = $(this).val().replace(/[^0-9]/g, '');
            $(this).val(tmps);
        }
    });
    
    
    //�곷Ц留� �낅젰 input�쒓렇�� num_only �대옒��
    $(document).on('keyup', 'input.engNum_only', function(e){
        if( $(this).val() != null &amp;&amp; $(this).val() != '' ) {
            var tmps = $(this).val().replace(/[^0-9a-zA-Z_-]/g, '');
            $(this).val(tmps);
        }
    });
    
    
    $('.lnb').parent().parent().addClass('lnb-line');
    $('.header-site-wrap').addClass('h-'+$('.site_list ul li').length);

    //left 硫붾돱�� �꾩퐫�붿뼵 �곸슜.
    $('.lnb ul li a').on('click',function(){        
        if($(this).parent().find('ul').length &gt; 0){
            if($(this).parent().hasClass('on')){
                $(this).parent().removeClass('on');
            } else{
                $(this).parent().addClass('on').siblings('li').removeClass('on');            
            }
            return false;
        } else {
            return true;
        }        
    })

    //�뺤콉鍮꾧탳
    $('input.open').on('click',function(){
        var view = $(this).parent().find('.popup-link');
        if($(this).is(":checked") == true){            
            $(view).show();
        } else {
            $(view).hide();
        }
    })
   acocordian()

   //mypage menu
   $('.mypage ul li button').on('click',function(){
        if($(this).parent().hasClass('on')){
            $(this).parent().removeClass('on'); 
        } else {
            $(this).parent().addClass('on').siblings('li').removeClass('on'); 
        }
   })
});

$(function(){
    common.headerEvt();
    common.etcEvt();

});

var TOUCH = "ontouchstart" in window;
var tevent = '';
if (TOUCH){
    tevent = "touchstart";
}else{
    tevent = "click";
}

var mobile = false;

common = {
    calendar:function(){
        $(".datepicker").datepicker({
            dateFormat: "yy-mm-dd"
        });
    },
    headerEvt:function(){
        $("body").on("mouseenter focusin",".header .gnb&gt;li&gt;a",function(){           
            if(!mobile){
                var heightArr = [];
                $(".gnb &gt; li &gt; ul").each(function(){
                    heightArr.push($(this).height()); 
                });           
                var max = Math.max.apply(null, heightArr);
                $(".header").addClass('active');            
                $(".header.active .header-inner").css({'height':max+40});
                $(".gnb &gt; li &gt; ul").css({'height':max});    
            }           
        });
        $("body").on("mouseleave",".header",function(){
            if(!mobile){
                $(".header, body").removeClass("active");
                $(".total-menu").removeClass("on");
            }            
        });

        $("body").on("click",".gnb-close",function(){
            $(".total-menu").removeClass("on");
            $(".header, body").removeClass("active");
        });
        $("body").on("click",".total-menu",function(){
            var ck = $(this).hasClass("on");
            if(ck){
                $(this).removeClass("on");
                $(".header, body").removeClass("active");
            }else{
                $(this).addClass("on");
                $(".header, body").addClass("active");
            }
        });

        $("body").on("click",".sClose",function(){
            $(".tOpen").removeClass("on");
            $(".totalMenu").hide();
            $("body").removeClass("menu-active");
        });
        $("body").on("click",".menu-toggle",function(){
            var ck = $(this).hasClass("on");
            if(ck){
                $(this).removeClass("on");
                $(this).next("ul").show();
            }else{
                $(this).addClass("on");
                $(this).next("ul").hide();
            }
        });
        $('#gnb li:last-child &gt; ul &gt; li:last-child &gt; a').on('focusout',function(){
            $(".header, body").removeClass("active");
            $(".total-menu").removeClass("on");
        })
    },
    etcEvt:function(){
        $("body").on("click",".slide-stop",function(e){
            $(".lastest-slide-func a").removeClass("on");
            $(this).addClass("on");
            $('.latst-slide').slick('slickPause');
        });
        $("body").on("click",".slide-play",function(e){
            $(".lastest-slide-func a").removeClass("on");
            $(this).addClass("on");
            $('.latst-slide').slick('slickPlay');
        });
        $(".latst-slide").slick({
            accessibility : true,
            autoplay: true,
            vertical: true,
            autoplaySpeed: 3000,
            pauseOnHover : false,
            slidesToShow: 1
        });
        $("body").on("click", ".chk-all input", function(){
            var ck = $(this).prop("checked");
            if(ck){
                $(".chk-wrap input.agree").prop("checked", true);
            }else{
                $(".chk-wrap input.agree").prop("checked", false);
            }
        });
        $("body").on("click", ".tbl-chk-wrap input", function(){
            var ck = $(this).prop("checked");
            if(ck){
                $(".checkbox").prop("checked", true);
            }else{
                $(".checkbox").prop("checked", false);
            }
        });
        $("body").on("click", ".header-site", function(){
            $(".header-site-wrap").show();
            $(".main_cont").addClass("deemed");
            $(".header-link-wrap").addClass("active");
        });
        $("body").on("click", ".site-close", function(){
            $(".header-site-wrap").hide();
            $(".main_cont").removeClass("deemed");
            $(".header-link-wrap").removeClass("active");
        });
        $("body").on("click",".private-list &gt; li &gt; a",function(){
            var yy = $(this).attr("href").substring(1);
            $('.content.private').hide();
            $('#p-'+yy).show();
            $(window).scrollTop(0);
            return false;
        })
        
        $("body").on("click",".site-cont .popup-tab &gt; ul &gt; li &gt; a",function(){
            var cp = $(this).attr("class");
            $(".site-cont .popup-tab &gt; ul &gt; li").removeClass();
            $(this).parent().addClass("on");
            if (cp == "c"){
                $(".site_list.c").show();
                $(".site_list.p").hide();
            } else {
                $(".site_list.c").hide();
                $(".site_list.p").show();
            }
            return false;
        })
        
        $(window).scroll(function(){
            //$(".header-site-wrap").hide();
        });
/*
    		$(document).on('click', '.popup .btn', function (e) {
    			e.preventDefault();
    			var action = $(this).data("popupBtnAction");
    			var targetId = $(this).data("popupId");
    			var exday = 1;
    			switch(action){
    			case "snooze":
    				var exdate = new Date();
    				exdate.setDate(exdate.getDate() + exday);
    				document.cookie = "popup_ctrl_"+targetId+"=N; expires="+exdate.toUTCString()+"; path=/";
    			case "close":
    				$("#popup-"+targetId).remove();
    				break;
    			}
    		});
*/
    },
    popOpen:function(o, parent){
        $(o).addClass("on");
        if($('.pop-cont').length &amp;&amp; $('.pop-cont').attr('tabindex') === undefined) {
            $(o).find($('input[type="text"]')).focus();
        } else {
            $(o).find('.pop-cont').focus();
        }
        if(parent) {
            $(parent).attr("data-focus", "on");
        }
    },
    popClose:function(o){
        $(o).removeClass("on");
        $("a[data-focus~=on]").focus();
        $("a[data-focus~=on]").attr("data-focus", "off");
    }    
}

$(window).bind('resize load',function(){
    var width = $(window).width();
    if(width &lt; 1280){
        mobile = true;
    } else { 
        mobile = false;
    }
})

/* 鍮꾨�踰덊샇 �뷀샇�� */
function gfn_rsaEnc(value, rsaPublicKeyModulus, rsaPpublicKeyExponent) {
    var rsa = new RSAKey();
    rsa.setPublic(rsaPublicKeyModulus, rsaPpublicKeyExponent);
    var encValue = rsa.encrypt(value);
    return encValue;
}

/* �뚮씪誘명꽣 媛� 媛��몄삤湲� */
function gfn_getParam(sname) {
    var params = location.search.substr(location.search.indexOf("?") + 1);
    var sval = "";
    params = params.split("&amp;");
    for (var i = 0; i &lt; params.length; i++) {
        temp = params[i].split("=");
        if ([temp[0]] == sname) { sval = temp[1]; }
    }
    return sval;
}

/* faq */
function acocordian(){
    var _$accordianArea = $( '.accordian-list');
    var _$accordianList = _$accordianArea.children('.acco-group');
    var _$accordianListBtn = _$accordianList.find('.acco-head a, .acco-head button');

    // accordian 珥덇린媛믪뿉 �곕씪 �댁슜 �닿린, �댁슜 �リ린 �명똿�� �⑸땲��.
    _$accordianList.each(function(_i, _accordian){
        if($(_accordian).hasClass('active')){
            $(_accordian).find('.btn &gt; span').text("�댁슜�リ린");
        }else{
            $(_accordian).find('.btn &gt; span').text("�댁슜�닿린");
        }
    });

    // accordian �섎굹 �대━硫� �섎굹 �ロ옒
    _$accordianListBtn.on( 'click', function () {

    if ( $( this ).closest( '.acco-group' ).hasClass( 'active' )) {
        $( this ).closest( '.acco-group' ).removeClass( 'active' );
        $( this ).closest( '.acco-head' ).find('.btn span').text("�댁슜�닿린");
    } else {
        _$accordianList.removeClass('active');
        $( this ).closest( '.acco-group' ).addClass( 'active' );
        $( this ).closest( '.acco-head' ).find('.btn span').text("�댁슜�リ린");
    }
    return false;
    });
}

function gfn_setSecureKey(elIds, chkTarget){
	if(elIds &amp;&amp; elIds.length &gt; 0){
		elIds.forEach(function(){
			$("#"+elIds).attr("npkencrypt", "key");
		});
	}
	$("#"+chkTarget).html('&lt;div class="key-area"&gt;&lt;input type="checkbox" class="checkbox" id="secureKey"&gt;&lt;label for="secureKey"&gt;�ㅻ낫�� 蹂댁븞 �꾨줈洹몃옩 �곸슜&lt;/label&gt;&lt;/div&gt;&lt;div class="txt"&gt;�� �덉쟾�� 以묒냼踰ㅼ쿂24 �쒕퉬�� �댁슜�� �꾪빐 �ㅻ낫�쒕낫�� �꾨줈洹몃옩 �곸슜�� 沅뚯옣�⑸땲��.&lt;/div&gt;');
	
	$("#secureKey").on("change", function(){
		var checked = $("#secureKey").is(":checked");
		gfn_useSecureKey(checked);
		if(checked){
			//alert("�ㅻ낫�쒕낫�� �꾨줈洹몃옩�� �곸슜 �섏뿀�듬땲��.");
		} else {
			//location.reload();
			//alert("�ㅻ낫�쒕낫�� �꾨줈洹몃옩�� �곸슜 �댁젣�섏뿀�듬땲��.\n\n�� �덉쟾�� 以묒냼踰ㅼ쿂24 �쒕퉬�� �댁슜�� �꾪빐 �ㅻ낫�쒕낫�� �꾨줈洹몃옩 �곸슜�� 沅뚯옣�⑸땲��.");
		}
	});
	if($("#secureKey").is(":checked")){
		gfn_useSecureKey(true);
	}
	
}

function gfn_useSecureKey(flag){
	npPfsStartup(null, false, flag, false, false, "npkencrypt", "on");
}

function gfn_preventRightClick(){
	document.oncontextmenu = function(){return false};
	document.onmousedown = function(event){
		if (event.button==2) {
			event.preventDefault();
	        return false;
	    }
	}
}

//toggle element
function viewLayer(ob){    
    if($('#'+ob).hasClass('active')){
        $('#'+ob).removeClass('active');
    } else {
        $('#'+ob).addClass('active')
    }
    return false;
}
$(document).ready(function(){
// 怨듯넻 �ㅻ뜑 �ъ씠�� 硫붾돱
    $(".gnb button").on('click',function(e){
        if( $(this).siblings("ul").length ){
            e.preventDefault();
            if( $(this).hasClass("menu_depth1") )
                $(this).parent().siblings().removeClass("_selected");

            if( !$(this).parent().hasClass("_selected") )
                $(this).parent().addClass("_selected");
            else {
                $(this).parent().removeClass("_selected");
            }
        }
    });
});</pre></body></html>