/*************************************************************************** ※ 아래 스크립트는 홈페이지 구동에 필요한 핵심 내용이므로 가급적 수정하지 마세요. 기타 필요한 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','/bizdemo156509/img/images/arrow.gif');jQuery(this).next('ul.sm').stop(true, true).slideUp(400);} else {jQuery(this).parent().find(".arrow img").attr('src','/bizdemo156509/img/images/arrow.gif');$('span img',this).attr('src','/bizdemo156509/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(){$('.noCont').hide();$('.noTitle').click(function(){$('.noCont').slideToggle(250);$(this).toggleClass('on');});});$(function(){$("img.gui").hover(function() {$(this).stop().animate({"opacity": "0"}, "slow");},function(){$(this).stop().animate({"opacity": "1"}, "slow");});$('#icon_2').hover(function(){$(this).css("background-image","url(/bizdemo156509/img/images/ico_2_on.png)");}, function(){$(this).css("background-color","");});$('#icon_2').focus(function(){$(this).css("background-image","url(/bizdemo156509/img/images/ico_2_on.png)");}, function(){$(this).css("background-color","");});});$(function(){$("img.res").hover(function() {$(this).stop().animate({"opacity": "0"}, "slow");},function(){$(this).stop().animate({"opacity": "1"}, "slow");});$('#icon_3').hover(function(){$(this).css("background-image","url(/bizdemo156509/img/images/ico_3_on.png)");}, function(){$(this).css("background-color","");});$('#icon_3').focus(function(){$(this).css("background-image","url(/bizdemo156509/img/images/ico_3_on.png)");}, function(){$(this).css("background-color","");});});$(document).ready(function(){var vertImg = {nde : {vertImgBtn : $('#vertImgArea > .btn > a'),vertImgUl : $('#vertImgArea > .vertImg'),vertImgLi : $('#vertImgArea > .vertImg li'),vertImgLeng : $('#vertImgArea > .vertImg li').length,state : 0,speed : 250,easi : 'easeOutExpo',posY : [],totalY : 0,evtState : false},init : function(){this.active();this.wheel();},active : function(){var btn = this.nde.vertImgBtn;var li = this.nde.vertImgLi;var len = this.nde.vertImgLeng;var posY = this.nde.posY;var totalY = this.nde.totalY;li.each(function(){posY.push(totalY);totalY = totalY + $(this).outerHeight();});btn.on('click', function(){var $this = $(this);if (vertImg.nde.evtState == false) {(btn.index($this)==0) ? ((vertImg.nde.state == 0) ? vertImg.nde.state == 0 : vertImg.nde.state-- ) : ((vertImg.nde.state == len-1) ? vertImg.nde.state == vertImg.nde.state-1 : vertImg.nde.state++ ) ;vertImg.animation();vertImg.nde.evtState = true;}return false;});},wheel : function(){var len = this.nde.vertImgLeng;var browserFF = navigator.userAgent.indexOf('Firefox');$('#vertImgArea').on('mousewheel DOMMouseScroll', function(e){var delta = e.originalEvent.wheelDelta || e.originalEvent.detail;if (vertImg.nde.evtState == false) {if (browserFF !== -1) {if(delta < 0) {(vertImg.nde.state == 0) ? vertImg.nde.state = 0 : vertImg.nde.state-- ;}else {(vertImg.nde.state == len-1) ? vertImg.nde.state = len-1 : vertImg.nde.state++ ;}}else{if(delta > 0) {(vertImg.nde.state == 0) ? vertImg.nde.state = 0 : vertImg.nde.state-- ;}else {(vertImg.nde.state == len-1) ? vertImg.nde.state = len-1 : vertImg.nde.state++ ;}}vertImg.animation();vertImg.nde.evtState = true;}return false;});},animation :function(){var ul = this.nde.vertImgUl;var state = this.nde.state;var posY = this.nde.posY;ul.stop().animate({marginTop : -posY[state]},{duration : vertImg.nde.speed, easing : vertImg.nde.easi, complete :function(){vertImg.nde.evtState = false;}});}};vertImg.init();});(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': '999'});if (o.activeOverlay) { $("body").append("
"); $(scrollId+"-active").css({ 'position': 'absolute', 'top': o.topDistance+'px', 'width': '100%', 'border-top': '1px dotted '+o.activeOverlay, 'z-index': '999' });};$(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) );}});$(scrollId).click( function(event) { $('html, body').animate({scrollTop:0}, o.topSpeed); event.preventDefault(); });};})(jQuery); function agree() {window.open("/bizdemo156509/main/agreement.php", "", "width=617, height=650, scrollbars=yes, resizable=no ,status=no ,toolbar=no");} function privacy() {window.open("/bizdemo156509/main/privacy.php", "", "width=617, height=650, scrollbars=yes, resizable=no ,status=no ,toolbar=no");}