$(document).ready(function(){ //nav //$("#scroller").simplyScroll(); $('.gnb_depth1 li').hover(function(){ var num=$('.gnb_depth1 li').index(this); $(this).children('h2').stop(); $(this).children('h2').animate({top:-32},'fast').clearQueue(); $(this).children('h2').css({'height':'58px'}); $(this).children('.down_depth').stop(); $(this).children('.down_depth').slideDown(); },function(){ var num=$('.gnb_depth1 li a').index(this); $(this).children('h2').stop(); $(this).children('h2').animate({top:0},'fast').clearQueue(); $(this).children('h2').css({'height':'26px'}); $(this).children('.down_depth').stop(); $(this).children('.down_depth').slideUp(50); }); $('.down_depth').hover(function(){ var num=$('.gnb_depth1 li a').index(this); $(this).children('.down_depth').stop(); $(this).children('.down_depth').slideDown(); },function(){ $(this).children('.down_depth').stop(); $(this).children('.down_depth').slideUp(50); }); //main tab $(".tab_content li:not("+$(".tab li a.selected").attr("href")+")").hide(); $(".tab li a").click(function(){ $(".tab li a").removeClass("selected"); $(this).addClass("selected"); $(".tab_content li").hide(); $($(this).attr("href")).show(); return false; }); //aÅÂ±× Á¡¼± ¾ø¾Ö±â function autoBlurFucntion() {if(event.srcElement.tagName=="A") document.body.focus();} document.onfocusin=autoBlurFucntion; function scroll(direction){ duration:750; var scroll, i, positon=[], here=$('scroll_tab1'); collection.each(function(){ positon.push(parseInt($(this).offset()['top'],10)); }); for(i=0; ihere){scroll = collection.get(i); break;} if(direction=='prev' && i > 0 && positions[i]>=here){scroll=collection.get(i-1); break;} } if(scroll){ $.scrollTo(scroll,{ duration:750 }); } return false; } $('.scrolltoanchor').click(function(){ $.scrollTo($($(this).attr("href")),{ duration:750 }); return false; }); $(window).scroll(function(){ var topPos=$(window).scrollTop()+60; $("#quick").stop().animate({top:topPos+"px"},300); if(topPos>=480){ $("#quick").stop().animate({top:(topPos-230)+"px"},300); } }); /* sub main img*/ $('.sub_bg').fadeIn(1500); $('.st01').delay(500).animate({"right":"40px"}, 1000, "easeInOutBack"); $('.st02').delay(1200).animate({"right":"40px"}, 1000, "easeInOutBack"); });