!function(){"use strict";var a=function(){return-1!=navigator.platform.indexOf("iPad")},e=function(){$(window).stellar()},n=function(){$("#gnb1Depth").superfish({delay:0,animation:{opacity:"show"},speed:"fast",cssArrows:!0,disableHI:!0})},t=function(){var a=$("#gnbArea");a.length&&new Waypoint.Sticky({element:a[0],offset:0})},s=function(){var a=$("#gnb").clone();a.attr({id:"offcanvas"}),a.find("> ul").attr({class:"",id:""}),$("#wrapperOffcanvas").prepend(a),$(".js-nav-toggle").on("click",function(){$("body").hasClass("mark-offcanvas")?$("body").removeClass("mark-offcanvas"):$("body").addClass("mark-offcanvas")}),$("#offcanvas").css("height",$(window).height()),$(window).resize(function(){var a=$(window);$("#offcanvas").css("height",a.height()),a.width()>1200&&$("body").hasClass("mark-offcanvas")&&$("body").removeClass("mark-offcanvas")})},i=function(){$(document).click(function(a){var e=$("#offcanvas, .js-nav-toggle");e.is(a.target)||0!==e.has(a.target).length||$("body").hasClass("mark-offcanvas")&&$("body").removeClass("mark-offcanvas")})},o=$(".carousel"),c=$(".carousel-indicators");o.find(".carousel-inner").children(".carousel-item").each(function(a){0===a?c.append("
  • "):c.append("
  • "),$(this).css("background-image","url('"+$(this).children(".carousel-background").children("img").attr("src")+"')"),$(this).children(".carousel-background").remove()}),$(".carousel").swipe({swipe:function(a,e,n,t,s,i){"left"==e&&$(this).carousel("next"),"right"==e&&$(this).carousel("prev")},allowPageScroll:"vertical"});var r=function(){var a=0;$(".animate-box").waypoint(function(e){"down"!==e||$(this.element).hasClass("animated")||(a++,$(this.element).addClass("item-animate"),setTimeout(function(){$("body .animate-box.item-animate").each(function(a){var e=$(this);setTimeout(function(){e.addClass("fadeInUp animated"),e.removeClass("item-animate")},50*a,"easeInOutExpo")})},100))},{offset:"85%"})};$(function(){a(),e(),n(),t(),s(),i(),r()})}();