$(document).ready(function(){ var gm_h = new Array(); $(".gnb .menu").css("height", function(i, c){ gm_h[i] = parseInt(c); }); var gm_h_m = gm_h.sort(function(a,b){return b-a;})[0]; $(".gnb .menu").css("height", gm_h_m + "px"); var gma_h = $(".gnb > ul > li > a").innerHeight(); $(".nav_wrap_bg").css({ "top" : 80 + "px", "height" : 110 + "px" }); $(".gnb .menu, .nav_wrap_bg").hide(); $(".gnb").hover(function(){ $(".nav_wrap_bg").stop().slideDown(300); $(".gnb .menu").stop().slideDown(300); }, function(){ $(".nav_wrap_bg").stop().slideUp(300); $(".gnb .menu").stop().slideUp(300); $(".gnb .menu, .gnb a").removeClass("ch"); }); $(".gnb > ul > li > a, .gnb .menu").mouseenter(function(){ $(".gnb > ul > li > a, .gnb .menu").removeClass("ch"); $(this).addClass("ch").next().addClass("ch").end().prev().addClass("ch"); }); }); //¸ÅÀå¾È³» $(document).ready(function(){ $('.bxslider').bxSlider({ minSlides: 3, maxSlides: 3, slideWidth: 170, slidemargin: 10 }); }); //event $( function () { //ù¹øÂ° $( '.box_skitter_large' ).skitter( { label: false, numbers: false, theme: 'square' } ); //¼¼¹øÂ° $( '.event' ) .css( { width: 160, height: 130 } ) .skitter( { show_randomly: false, /* À̹ÌÁö ¼ø¼­ ·£´ý */ dots: true, interval: 4000, /* 4000ms = 4ÃÊ */ numbers_align: 'center', } ); } ); //¼¼ÀÏ»óǰ var leftCt = 0; $(function(){ $("#album").attr("top", "0"); imgStart("R"); }); function imgStart(tp){ clearInterval($("#imgList").attr("timer")); if(tp == "R"){ // ¿À¸¥ÂÊ À̵¿ imgRight(); $("#imgList").attr("timer", setInterval("imgRight()", 3000)); // ¸ØÃçÀÖ´Â ½Ã°£ }else{ // ¿ÞÂÊÀ̵¿ if(leftCt == 0){ var leng = $("#imgList div").size(); $("#imgList").css("left",parseInt($("#imgList div").eq(0).width()*-1)); $("#imgList>div").eq(parseInt(leng-1)).clone().prependTo($("#imgList")); $("#imgList>div").eq(leng).remove(); leftCt = 1; } imgLeft(); $("#imgList").attr("timer", setInterval("imgLeft()", 3000)); } } function imgRight(){ $("#imgList").animate({ left : parseInt($("#imgList div").eq(0).width() * -1) },300,function(){ $("#imgList").css("left", "0px"); $("#imgList>div").eq(0).clone().appendTo($("#imgList")); $("#imgList>div").eq(0).remove(); }); } function imgLeft(){ var leng = $("#imgList div").size(); $("#imgList").animate({ left : 0 },300,function(){ $("#imgList").css("left", "0px"); $("#imgList").css("left",parseInt($("#imgList div").eq(0).width()*-1)); $("#imgList>div").eq(parseInt(leng-1)).clone().prependTo($("#imgList")); $("#imgList>div").eq(leng).remove(); }); } $(document).ready(function() { $('.allmenubtn').hover(function() { $('.allmenu:not(:animated)', this).slideDown(150); $(this).children('ul').addClass("menuon"); }, function() { $('.allmenu:not(:animated)', this).slideUp(100); $(this).children('ul').removeClass("menuon"); }); }); function bookmarksite(title,url){ if (window.sidebar) // firefox window.sidebar.addPanel(title, url, ""); else if(window.opera && window.print){ // opera var elem = document.createElement('a'); elem.setAttribute('href',url); elem.setAttribute('title',title); elem.setAttribute('rel','sidebar'); elem.click(); } else if(document.all)// ie window.external.AddFavorite(url, title); }