/***************************************************************************
※ 아래 스크립트는 홈페이지 구동에 필요한 핵심 내용이므로 가급적 수정하지 마세요.
기타 필요한 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','/bizdemo163079/img/images/arrow.gif');jQuery(this).next('ul.sm').stop(true, true).slideUp(400);} else {jQuery(this).parent().find(".arrow img").attr('src','/bizdemo163079/img/images/arrow.gif');$('span img',this).attr('src','/bizdemo163079/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);}})})})});function gnb_menu(a){ var gnb = $("#gnbWrap"); $("#gnb").sMenu({ hover_class : "hover", hoverCall: function(obj, depth) { if(depth == 2) { $("#gnb > ul > li").removeClass("hover"); obj.parent().parent("li").addClass("hover"); } } }); $('#gnb li').on("mouseenter focusin", function(){ $('#gnbWrap, #gnb').addClass('open'); } ); $('#gnb').on("mouseleave focusout", function(){ $('#gnbWrap, #gnb').removeClass('open'); }); $('#gnb li').on("mouseleave focusout", function(){ $('#gnb li').removeClass('hover'); }); };function common_menu(a){var lnb = $('#gnb');};jQuery(function($){$(window).on({load: function () {common_menu();if ($(window).width() > 1024) {gnb_menu();}},resize: function () {common_menu();if ($(window).width() > 1024) {gnb_menu();}}});});$(window).scroll(function() {if ($(window).scrollTop() > 70) {$('#gnbWrap, #gnb, .openBtn').addClass('fix');} else {$('#gnbWrap, #gnb, .openBtn').removeClass('fix');}});var gnbMove = function(){var gnb = $("#gnbWrap"),a=[], winHeight = $(window).height();$(window).resize(function() {winHeight = $(window).height();});$(window).scroll(function(){var position = $(window).scrollTop();if(position>77){gnb.css({position:"fixed",top:"0"});}else{gnb.css({position:"absolute",top:"0"});}});};$(document).ready(function(){gnbMove();});$(function() {var timer;moveSlider(0);function moveSlider(index) {var moveTop = (index * - 670);var contLength = $('.btnArea a').length;$('.visImg_list li').animate({top : moveTop}, 0);$('.btnArea a[data-index='+ index +'] img').attr('src', '/bizdemo163079/img/images/btn_on.png');$('.btnArea a[data-index!='+ index +'] img').attr('src', '/bizdemo163079/img/images/btn_off.png');timer = setTimeout(function(){if ( index < contLength-1 ) {index++; } else {index= 0;}moveSlider( index );}, 6000);};$('.visImg_list li').each(function(index) {$(this).attr('data-index', index);});$('.btnArea a').each(function(index) {$(this).attr('data-index', index);$('.btnArea a img') .first() .attr('src' , '/bizdemo163079/img/images/btn_on.png')}).click(function(e) {var index = $(this).attr('data-index');clearTimeout(timer);e.preventDefault();moveSlider(index);});});$(document).ready(function($){$(".scrollDown").click(function(event){event.preventDefault();$('html,body').animate({scrollTop:$(this.hash).offset().top-60},1500,"easeInOutExpo");});});$(document).ready(function() {$('.nd-popUp').magnificPopup({type: 'inline',fixedContentPos: false,fixedBgPos: true,overflowY: 'auto',closeBtnInside: true,preloader: false,midClick: true,removalDelay: 300,mainClass: 'nd-popUp-open'});});$(function(){$(".card").flip({axis: "y",trigger: "hover"});});$(document).ready(function() {"use strict"; $('.skillbar').appear();$('.skillbar').skillBars({from: 0,speed: 3500,interval: 100,decimals: 0});$(document.body).on('appear', '.skillbar', function(e) {if (!$(this).hasClass('appear')) {$(this).addClass('appear');$(this).find('.skillbar-bar').css("width", "0%");$(this).skillBars({from: 0,speed: 3500,interval: 100,decimals: 0});}});});function animations(){animations = new WOW({boxClass:'wow',animateClass:'animated',offset:100,mobile:true,live:true});animations.init();}$(document).ready(function(){animations();});$(function(){var gallSlideNum=0;var gallSlideMax;var gallSlideMove=false;gallSlideMax = jQuery(".gallSlide ul").size()-1;jQuery(".gallSlide ul").each(function(w){jQuery(this).css("top", 171*w);});jQuery(".gall_btnArea a").each(function(q){jQuery(this).click(function(e){if(!gallSlideMove){gallSlideMove= true;if(gallSlideMax >0){if(q==0){jQuery(".gallSlide ul").eq(gallSlideNum).stop().animate({top:171}, 300);gallSlideNum --;if(gallSlideNum < 0) gallSlideNum = gallSlideMax;jQuery(".gallSlide ul").eq(gallSlideNum).stop().animate({top:-171}, 0);jQuery(".gallSlide ul").eq(gallSlideNum).stop().animate({top:0}, 300, function(){gallSlideMove = false;});}else{jQuery(".gallSlide ul").eq(gallSlideNum).stop().animate({top:-171}, 300);gallSlideNum ++;if(gallSlideNum > gallSlideMax) gallSlideNum = 0;jQuery(".gallSlide ul").eq(gallSlideNum).stop().animate({top:171}, 0);jQuery(".gallSlide ul").eq(gallSlideNum).stop().animate({top:0}, 300, function(){gallSlideMove = false;});}}}})})});$(document).ready(function() {$slide_height = $("#mainImgArea").height() / 2;$slide_height = $slide_height - 90;$(".txtImg").css("top",$slide_height+"px");$(window).resize(function(){$slide_height = $("#mainImgArea").height() / 2;$slide_height = $slide_height - 90;$(".txtImg").css("top",$slide_height+"px");});});function slide_action(act_img) {setTimeout (function(){$("#slideImg").animate({"opacity":"0"}, 400);setTimeout (function(){$("#slideImg").html("");}, 300);setTimeout (function(){$("#slideImg").animate({"opacity":"1"}, 1000);}, 300);setTimeout (function(){if (act_img != 3) {$act_no = act_img + 1; slide_action($act_no);} else if (act_img == 3) {$act_no = 1;slide_action($act_no);}}, 4000);}, 4000);}slide_action(2);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);jQuery(this).addClass("on");} else {jQuery(this).find(".lnbMenu").stop(true, true).slideUp(300);jQuery(this).removeClass("on");}}).mouseleave(function(){jQuery(this).find(".lnbMenu").stop(true, true).slideUp(300);jQuery(this).removeClass("on");});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': '9'});if (o.activeOverlay) { $("body").append("