function setPng24(obj){ obj.width = obj.height = 1; obj.className = obj.className.replace(/\bpng24\b/i,''); obj.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');" obj.src = ''; return ''; } 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','/default/img/images/arrow.gif');jQuery(this).next('ul.sm').stop(true, true).slideUp(400);} else {jQuery(this).parent().find(".arrow img").attr('src','/default/img/images/arrow.gif');$('span img',this).attr('src','/default/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() > 90) {$('#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 > 90){gnb.css({position:"fixed",top:"0"});} else {gnb.css({position:"",top:""});} });};$(document).ready(function(){gnbMove();});$(document).ready(function(){ $('.qmenu-btn').on('click', function (e) { e.preventDefault(); $(".qmenu-btn").css({"opacity": "0", "right": "-200px"}); $(".qmenu-btn-cls").css({"opacity": "1", "right": "0"}); $(".qmenu-block").addClass('active'); }); $('.qmenu-btn-cls').on('click', function (e) { e.preventDefault(); $(".qmenu-btn-cls").css({"opacity": "0", "right": "-200px"}); $(".qmenu-btn").css({"opacity": "1", "right": "0"}); $(".qmenu-block").removeClass('active'); }); $('.shopCon').on('', function (e) { e.preventDefault(); $(".qmenu-btn-cls").css({"opacity": "0", "right": "-200px"}); $(".qmenu-btn").css({"opacity": "1", "right": "0"}); $(".qmenu-block").removeClass('active'); }); });$(document).ready(function() { var resultMp4 = Math.floor(Math.random() * 6) + 1; var mp4Src = '/default/img/images/ndmovie_vdo_' + resultMp4 + '.mp4'; $('.visMovie video').attr('src', mp4Src) });$(document).ready(function() { var resultMp4 = Math.floor(Math.random() * 6) + 1; var mp4Src = '/default/img/images/ndmovie_vdo_' + resultMp4 + '.mp4'; $('.visMovie_2 video').attr('src', mp4Src) });$(document).ready(function() { var resultJPG = Math.floor(Math.random() * 2) + 1; var jpgSrc = '/default/img/images/gdd_event_' + resultJPG + '.jpg'; $('#popWrapper .popImg img').attr('src', jpgSrc) });$(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'});});$(document).ready(function() { var mySwiper = new Swiper('.mySwiper', { spaceBetween: 0, slidesPerView: 1, loop:true, effect: 'fade', parallax: true, pagination: { el: ".swiper-pagination", clickable: true, renderBullet: function (index, className) { return '' + (index + 1) + ""; }, }, navigation: { nextEl: ".swiper-button-next", prevEl: ".swiper-button-prev", }, autoplay: { delay: 6000, disableOnInteraction: false, }, }); });$(document).ready(function() {"use strict";$(document).ready(function() { var RollingArea = $('#notice .noticeRolling'); var RollingContent = RollingArea.find('table'); var RollingObjs = RollingContent.find('tr'); var RollingCount = RollingObjs.length; var RollingIndex = 0; var RollingHei; var RollingDelay; if (RollingArea.data('duration')) { RollingDelay = RollingArea.data('duration'); } else { RollingDelay = 5000; } var RollingReady = function() { RollingHei = RollingObjs.outerHeight(); RollingContent.find('tbody').prepend(RollingContent.find('tr:last')); RollingContent.css({top:-RollingHei}); }; var noticeRolling = function() { RollingHei = RollingObjs.outerHeight(); RollingContent.stop().animate({top:-RollingHei}, 300, function() { RollingContent.find('tr:last').after(RollingContent.find('tr:first')); RollingContent.css({top:0}); }); }; RollingReady(); var autoPlay = setInterval(function() { noticeRolling(); }, RollingDelay); }); $('.hidden').hide(); $('.show button').click(function(){ $('.hidden').slideToggle(250); $(this).toggleClass('on'); $('#toggle').toggleClass('on'); $('.shopOutput').toggleClass('on'); });var $animation_elements = $('.ani-element'); var $window = $(window); function check_if_in_view() { var window_height = $window.height(); var window_top_position = $window.scrollTop(); var window_bottom_position = (window_top_position + window_height); $.each($animation_elements, function() { var $element = $(this); var element_height = $element.outerHeight(); var element_top_position = $element.offset().top+100; var element_bottom_position = (element_top_position + element_height); if ((element_bottom_position >= window_top_position) && (element_top_position <= window_bottom_position)) { $element.addClass('onView'); } else { } }); } $window.on('scroll resize', check_if_in_view); $window.trigger('scroll');function animations() { animations = new WOW({ boxClass: 'wow', animateClass: 'animated', offset: 100, mobile: true, live: true }); animations.init(); };$(document).ready(function(){ animations(); });});jQuery(document).ready(function(){ famsitechk = 0; $(".familySite > a").click(function() { if(famsitechk == 0){ $(this).next("div").slideDown(); $(".footCont .familySite > a").addClass("on"); famsitechk = 1; }else{ $(this).next("div").slideUp(); $(".footCont .familySite > a").removeClass("on"); famsitechk = 0; } }) });function popexit(){ $('.guide').css({'display':'none'}); };(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("
"); $(scrollId+"-active").css({ 'position': 'absolute', 'top': o.topDistance+'px', 'width': '100%', 'border-top': '1px dotted '+o.activeOverlay, 'z-index': '9' }); } $(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("/default/etc/agreement.php", "", "width=617, height=650, scrollbars=yes, resizable=no ,status=no ,toolbar=no"); } function privacy() { window.open("/default/etc/privacy.php", "", "width=617, height=650, scrollbars=yes, resizable=no ,status=no ,toolbar=no"); }