/********************************************************************************* Ç÷¯±×ÀÎ : jquery.DB_naviFullWideMove.js Á¦ÀÛÀÚ : µðÀÚÀÎºí·¢ , http://designblack.com ¾÷µ¥ÀÌÆ® : 2014-06-11 ¶óÀ̼¾½º : ÁÖ¹®Á¦ÀÛ Âü°í : ¹®¼­Á¤º¸´Â »èÁ¦ ÇÒ ¼ö ¾ø½À´Ï´Ù. *********************************************************************************/ (function(a){a.fn.DB_naviFullWideMove=function(r){var b={pageNum:null,subNum:null,subState:!1,motionSpeed:300,delayTime:100};a.extend(b,r);return this.each(function(){function h(){k||b.subState?(s.stop(!0,!0).animate({top:0},b.motionSpeed),t.show()):s.stop(!0,!0).animate({top:x},b.motionSpeed,function(){t.hide()});for(var f=0;fa>img"),"src","_off","_on")):(c.removeClass("DB_select"),p(c.find("a>img"),"src","_on","_off"));for(var c= u.eq(f),l=0;limg"),"src","_off","_on"),a.addClass("DB_select");else if(f!==e||l!=q)a.removeClass("DB_select"),p(a.find("a>img"),"src","_on","_off")}}}function p(a,c,b,d){var e=a.attr(c);-1!=String(e).search(b)&&a.attr(c,e.replace(b,d))}var g=a(this),n=g.find(".DB_main").find(">li"),t=g.find(".DB_mask"),s=g.find(".DB_move"),u=t.find(".DB_subSet > ul"),v=u.find(">li"),r=g.find(".DB_close"),y=n.length,e=b.pageNum-1,q=b.subNum- 1,d=e,m=q,w,k=b.subState,x=s.position().top;(function(){g.bind("mouseenter",function(){k=!0;clearTimeout(w)});g.bind("mouseleave",function(){k=!1;w=setTimeout(h,b.delayTime)});n.bind("mouseenter keyup",function(){k=!0;d=a(this).index();d!=e&&(m=null);h()});n.bind("mouseleave",function(){d!=e&&(m=q);d=e});v.bind("mouseenter keyup",function(){d=a(this).parent("ul").index();m=a(this).index();h()});v.bind("mouseleave",function(){d=e;m=a(this).parents("ul").index()==e?q:null});r.bind("click",function(){k= !1;h()})})();h()})}})(jQuery);