/********************************************************************************* Ç÷¯±×ÀÎ : jquery.d_tabMotionScaleBanner.js Á¦ÀÛÀÚ : µðÀÚÀÎºí·¢ , http://designblack.com ¾÷µ¥ÀÌÆ® : 2015-11-20 ¶óÀ̼¾½º : ¹«ÇѶóÀ̼¾½º *********************************************************************************/ !function(e){e.fn.d_tabMotionScaleBanner=function(t){var n={speed:800,autoRollingTime:1e4,delayMoveTime:500,scale:110};return e.extend(n,t),this.each(function(){function t(){l.eq(p).addClass("on");var e=o.eq(p),t=e.find(".d_bg");w=t.width(),h=w*h/100,t.css("width",w).stop().animate({width:h},1.5*m);var n=e.find(".d_move"),i=n.attr("data-left");n.css("left","-100%").show().stop().delay(x).animate({left:i},v,"easeInOutExpo"),a()}function a(){l.bind("click",function(){var t=l.index(e(this));b=t>p?"next":"prev",p!=t&&(p=t,i()),I=1}),f.bind("click",function(){b="prev",p--,0>p&&(p=_-1),i(),I=1}),c.bind("click",function(){b="next",p++,p>_-1&&(p=0),i(),I=1})}function i(){var e=o.eq(p),t=o.eq(u);"next"==b?(e.css({left:"100%"}).stop().animate({left:0},r,"easeInOutExpo"),t.css("left",0).stop().animate({left:"-100%"},r,"easeInOutExpo")):(e.css("left","-100%").stop().animate({left:0},r,"easeInOutExpo"),t.css("left",0).stop().animate({left:"100%"},r,"easeInOutExpo"));var n=e.find(".d_bg");n.css("width",w).stop().animate({width:h},1.5*m);var a=e.find(".d_move"),i=a.attr("data-left");a.css("left","-100%").show().stop().delay(x).animate({left:i},v,"easeInOutExpo"),l.removeClass("on"),l.eq(p).addClass("on"),u=p}function s(){0==I&&(b="next",p++,p>=_&&(p=0),i()),I=0}var d=e(this),o=d.find(".d_img li"),l=d.find(".d_btn li"),f=d.find(".d_prev"),c=d.find(".d_next"),p=0,u=0,r=n.speed,v=n.speed,m=n.autoRollingTime,x=n.delayMoveTime,h=n.scale,_=o.length,b="next",w=0,I=0;t(),setInterval(s,m)})}}(jQuery);