$(function(){ }); $(window).load(function(){ $('.flexslider').flexslider({ animation: "fade",//slide slideshowSpeed: 4000, directionNav: false, slideToStart: 0, pauseOnHover: true, start: function(slider){ $('body').removeClass('loading'); } }); }); $(document).ready(function(){ $(".gnb").hover(function() { $(this).parent().find(".subnav").slideDown('normal').show(); $(this).parent().hover(function() { }, function(){ $(this).parent().find(".subnav").slideUp('fast'); }); }); }); function setPage(arg) { //navigation hn:1depth, sn:2depth, cn:3depth 를 받음 page = jQuery.extend({ hn : "", sn : "", cn : "" }, arg || {}); if(window.console) { console.log("hn : " + page.hn + "\nsn : " + page.sn + "\ncn : " + page.cn); } if(page.hn != 11) { $(".lnb ul li.hn" + page.hn).addClass("lnb_on"); //1depth 활성 } if(page.hn >= 11) { $(".util ul li.hn" + page.hn + " a").addClass("on"); //유틸 1depth 활성 } $("#snb > ul > li.sn" + page.sn).find("> a").addClass("snb_on").end().find("> ul").addClass("snb_on").find("> li.cn" + page.cn + " a").addClass("snb_on"); //2depth 활성 }