/*************************************************************************** ※ 아래 스크립트는 홈페이지 구동에 필요한 핵심 내용이므로 가급적 수정하지 마세요. 기타 필요한 jQuery 소스는 맨 밑줄에 추가해서 수정하시기 바랍니다. ***************************************************************************/ function setCookie( name, value, expiredays ) {var todayDate = new Date(); todayDate.setDate( todayDate.getDate() + expiredays ); document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"};function winClose() {if ( document.node_form.chkbox.checked ){ setCookie( "maindiv", "done" , 1 ); } document.getElementById("nodepop").style.visibility = "hidden";};$(document).ready(function(){$(".openBtn").find("a").click(function(){$(".menuWrap").animate({"right":"0"}, 350,'swing');$('.closeBtn, .gnbBg_mb').fadeIn();return false;});$(".closeBtn").find("a").click(function(){$(".menuWrap").animate({"right":"-250px"}, 350,'swing');$('.closeBtn').hide();$('.gnbBg_mb').fadeOut();return false;});$(".gnbBg_mb").click(function(){$(".menuWrap").animate({"right":"-250px"}, 350,'swing');$('.closeBtn').hide();$('.gnbBg_mb').fadeOut();return false;});});$(document).ready(function(){jQuery("nav").each(function(a){jQuery(this).find("li.mm").each(function(b){jQuery(this).click(function(){if(jQuery(this).find("img").attr("src").indexOf("on") > 0) {jQuery(this).parent().find(".arrow img").attr('src','/bizdemo156515/img/images/arrow.gif');jQuery(this).next('ul.sm').stop(true, true).slideUp(400);} else {jQuery(this).parent().find(".arrow img").attr('src','/bizdemo156515/img/images/arrow.gif');$('span img',this).attr('src','/bizdemo156515/img/images/arrow_on.gif');jQuery(this).siblings("ul.sm").stop(true, true).slideUp(400);jQuery(this).next('ul.sm').stop(true, true).slideDown(400);}})})})});$(document).ready(function() {$(".gnb-mm").addClass("active");$(".gnbSm_li, .lnb-ul").addClass("active");$(".gnbVisImg").addClass("gnbVisImg-");$(".gnb-mm li, .gnbSm li").on("mouseover", function() {$(".gnb-mm li").removeClass("on");$(".smBar").hide();$(".gnbVisImg").removeClass().addClass("gnbVisImg gnbVisImg-" + $(this).data("menu"));});$(".gnb-mm li").on("mouseover", function() {if ($("#gnbSmWrapArea").is(":visible") == false) {$("#gnbSmWrapArea").stop().slideDown();}$(this).addClass("on");$(".gnbSm").find(".menu_"+$(this).data("menu")).find(".smBar").show();$(".gnbVisImg").removeClass().addClass("gnbVisImg gnbVisImg-" + $(this).data("menu"));});$(".gnbSm li").on("mouseover", function() {$(".gnb-mm").find(".menu_"+$(this).data("menu")).addClass("on");$(this).find(".smBar").show();});$("header").on("mouseleave", function() {$("#gnbSmWrapArea").stop().slideUp();$(".gnb-mm li").removeClass("on");});});$(document).ready(function() {setTimeout(function(){$(".sb01").delay(300).animate({"margin-left":"-275px", "opacity":"1"},1000);$(".sb02").delay(300).animate({"margin-left":"-103px", "opacity":"1"},1000);$(".sb03").delay(300).animate({"margin-left":"69px", "opacity":"1"},1000);}, 200);});function mFooterLoad(){var indexNewsNum = 0; $("#ticker #tickerBtn a").css("cursor", "pointer"); $("#ticker .tickerCon .news li").css( "display", "none" ); $("#ticker .tickerCon .news li").eq( indexNewsNum ).css( "display", "block" );$("#ticker #tickerBtn .prev").click( function(){if( indexNewsNum == 0 ) { indexNewsNum = 2;} else { indexNewsNum--; } $("#ticker .tickerCon .news li").css( "display", "none" );$("#ticker .tickerCon .news li").eq( indexNewsNum ).css( "display", "block" ); return false; });$("#ticker #tickerBtn .next").click( function(){ if( indexNewsNum == 2 ) { indexNewsNum = 0; } else { indexNewsNum++; } $("#ticker .tickerCon .news li").css( "display", "none" ); $("#ticker .tickerCon .news li").eq( indexNewsNum ).css( "display", "block" ); return false; });};$(window).load(function(){mFooterLoad();});$(document).ready(function () {jQuery(".quickBtn").hide();jQuery("#quickMenu > a").each(function(){ jQuery(this).mouseenter(function(event){ w = jQuery(this).width();h = jQuery(this).height(); x = ( event.pageX - jQuery(this).offset().left - ( w/2 )) * ( w > h ? ( h/w ) : 1 ), y = ( event.pageY - jQuery(this).offset().top - ( h/2 )) * ( h > w ? ( w/h ) : 1 ), direction = Math.round( ( ( ( Math.atan2(y, x) * (180 / Math.PI) ) + 180 ) / 90 ) + 3 ) % 4; jQuery(this).find(".quickBtn").show();if(direction == 0) {jQuery(this).find(".quickBtn").css({"top":-h, "left":0});} else if(direction == 1) {jQuery(this).find(".quickBtn").css({"top":0, "left":w});} else if(direction == 2) { jQuery(this).find(".quickBtn").css({"top":h, "left":0});} else {jQuery(this).find(".quickBtn").css({"top":0, "left":-w});}jQuery(this).find(".quickBtn").stop().animate({top:0, left:0}, 500, "easeOutExpo");});jQuery(this).mouseleave(function(event){w = jQuery(this).width(); h = jQuery(this).height(); x = ( event.pageX - jQuery(this).offset().left - ( w/2 )) * ( w > h ? ( h/w ) : 1 ), y = ( event.pageY - jQuery(this).offset().top - ( h/2 )) * ( h > w ? ( w/h ) : 1 ), direction = Math.round( ( ( ( Math.atan2(y, x) * (180 / Math.PI) ) + 180 ) / 90 ) + 3 ) % 4; if(direction == 0) { jQuery(this).find(".quickBtn").stop().animate({top:-h, left:0}, 500, "easeOutExpo", function(){jQuery(this).parent().find(".quickBtn").hide();}); } else if(direction == 1) { jQuery(this).find(".quickBtn").stop().animate({top:0, left:w}, 500, "easeOutExpo", function(){jQuery(this).parent().find(".quickBtn").hide();});} else if(direction == 2) {jQuery(this).find(".quickBtn").stop().animate({top:h, left:0}, 500, "easeOutExpo", function(){jQuery(this).parent().find(".quickBtn").hide();});} else {jQuery(this).find(".quickBtn").stop().animate({top:0, left:-w}, 500, "easeOutExpo", function(){jQuery(this).parent().find(".quickBtn").hide();});}});})});$(function(){var fam_state = false;$(".arrowBtn a").on("click",function(){if (!fam_state){$("#famArea").animate({bottom:"0"},300);$(".arrowBtn").addClass('on');fam_state = true;}else{$("#famArea").animate({bottom:"-192px"},300);$(".arrowBtn").removeClass('on');fam_state = false;}})});jQuery(document).ready(function(){if(jQuery(".scate").size() > 0){var oneTitle = jQuery(".scate").eq(0).find(".lnbMenu").find("a").eq(oneNum).text();jQuery(".scate").eq(0).find(".lnbMenu").find("a").eq(oneNum).addClass("on");jQuery(".scate").eq(0).find(".scateMe").text(oneTitle);var twoTitle = jQuery(".scate").eq(1).find(".lnbMenu").find("a").eq(twoNum).text();jQuery(".scate").eq(1).find(".lnbMenu").find("a").eq(twoNum).addClass("on");jQuery(".scate").eq(1).find(".scateMe").text(twoTitle);}});jQuery(document).ready(function(){jQuery(".path").find(".lnbMenu").slideUp(0);jQuery(".path").find(".scate").each(function(q){jQuery(this).click(function(){if(jQuery(this).find(".lnbMenu").is(":hidden")) {jQuery(this).find(".lnbMenu").stop(true, true).slideDown(300);} else {jQuery(this).find(".lnbMenu").stop(true, true).slideUp(300);}}).mouseleave(function(){jQuery(this).find(".lnbMenu").stop(true, true).slideUp(300);});jQuery(this).find(".lnbMenu").find("a").each(function(k){jQuery(this).hover(function(){jQuery(this).addClass("on");}, function(){jQuery(this).removeClass("on");})})})});var interval; var duration = 700;var ftSize = 13;function fontScale(n){ftSize = ftSize + n; jQuery("#subContents").find( "section, article, div, td, a, p" ).each(function (){jQuery(this).css("font-size",ftSize + "px");});};;(function($) { $.scrollUp = function (options) { var defaults = { scrollName: 'topIco',topDistance: '60',topSpeed: 300,animation: 'slide',animationInSpeed: 200,animationOutSpeed: 200,scrollText: 'TOP',scrollImg: true,activeOverlay: false };var o = $.extend({}, defaults, options), scrollId = '#' + o.scrollName; $('', { id: o.scrollName, href: '#top', title: o.scrollText }).appendTo('body');if (!o.scrollImg) { $(scrollId).text(o.scrollText); } $(scrollId).css({'display':'none','position': 'fixed','z-index': '99999'});if (o.activeOverlay) { $("body").append("
"); $(scrollId+"-active").css({ 'position': 'absolute', 'top': o.topDistance+'px', 'width': '100%', 'border-top': '1px dotted '+o.activeOverlay, 'z-index': '9999999' });};$(window).scroll(function(){ switch (o.animation) { case "fade": $( ($(window).scrollTop() > o.topDistance) ? $(scrollId).fadeIn(o.animationInSpeed) : $(scrollId).fadeOut(o.animationOutSpeed) ); break;case "slide": $( ($(window).scrollTop() > o.topDistance) ? $(scrollId).slideDown(o.animationInSpeed) : $(scrollId).slideUp(o.animationOutSpeed) ); break;default: $( ($(window).scrollTop() > o.topDistance) ? $(scrollId).show(0) : $(scrollId).hide(0) );}}); $(document).ready(function(){ $('.bck').smoove({offset:'10%'}); });$(scrollId).click( function(event) { $('html, body').animate({scrollTop:0}, o.topSpeed); event.preventDefault(); });};})(jQuery); function agree() { window.open("/bizdemo156515/main/agreement.php", "", "width=617, height=650, scrollbars=yes, resizable=no ,status=no ,toolbar=no"); } function privacy() { window.open("/bizdemo156515/main/privacy.php", "", "width=617, height=650, scrollbars=yes, resizable=no ,status=no ,toolbar=no"); }