/*! * ------------------------------------------------------------ * ------------------------------------------------------------ * * _ * /\ _ o | _ |_) o ._ _ * /--\ (_| | | (/_ |_) | | | _> * _| * * ------------------------------------------------------------ * ------------------------------------------------------------ * * agilebins v1.0.4 简洁易用高效 * * 快速解决网站上大部分特效展示... * 官网: http://ab.geshai.com * * 有疑难问题可选择qq群① 158544200 或qq群② 790370978 进行反馈 * * carlo,cloud * * 请尊重原创,保留头部版权 * 在保留版权的前提下,可应用于个人或商业用途。 * */; !function(a){a.fn.agilebins=function(b){var d={t:"top",b:"bottom",l:"left",r:"right",s:"show",h:"hide",n:"none",c:"click",sw:"width",sh:"height",pr:"position:relative; overflow:hidden;"},e={version:"1.0.4",options:{type:"slide",direction:d.l,eventtype:"mouseover",index:0,visnum:1,scrollnum:1,sstep:1,speed:350,sspeed:350,btnspeed:50,triggertime:50,delaytime:3500,mousewheeltime:250,effect:"fade",seffect:"",easing:"swing",scrollel:"",sprev:"",snext:"",sprevoffclass:"off",snextoffclass:"off",onclass:"on",offclass:"",mainel:"",mprev:"",mnext:"",mprevoffclass:"off",mnextoffclass:"off",mainstate:"",mainstatehtml:"li",maincountstate:"",pagestate:"",pagestatehtml:"li",pagecountstate:"",play:"",pause:"",autoposition:!1,addx:0,addy:0,itrigger:"",itriggerfunc:"",stoppropagation:!1,initfunc:"",startfunc:"",completefunc:"",endfunc:"",playfunc:"",pausefunc:"",loop:!1,pnloop:!0,autoplay:!1,automainstate:!1,autopage:!1,loadsrc:"",maincur:!1,curoff:!1,returndefault:!1,defaultshow:!1,mouseoverstop:!1,scrollwithmain:!0,hoverisbtn:!1,mousewheelispn:!1}},f=function(a){return"number"==typeof a?!0:"string"==typeof a?a.length<1?!1:!0:"undefined"==typeof a||null==a||""==a?!1:!0},g=function(a){var b=!1;try{a.size()>=1&&(b=!0)}catch(c){}return b},h=function(a,b,c){return g(a)?(a.hasclass(b)&&a.removeclass(b),a.hasclass(c)||a.addclass(c),void 0):!1},i=function(a,b,c,d){return g(a)?(c=f(b)?"<"+b+">"+c+""+b+">":c,1!=d?a.html(c):a.append(c),void 0):!1},j=function(a){return math.ceil(a).tostring()+"px"},k=function(a,b){if(!g(a))return!1;var c=new image;c.onload=function(){a.attr("src",a.attr(b))},c.src=a.attr(b)},l=function(a){return a.stop(!0,!0)},m=function(){return a(document).scrolltop()},n=function(a){return g(a)?a.css("display")!=d.n?!1:!0:!1},o=function(a,b,c){var d,e,f,h;return g(a)?(c=1!=c?!1:!0,d=parsefloat(a.offset().top),e=parsefloat(a.offset().left),f=parsefloat("self"!=b?a.outerwidth(c):a.width()),h=parsefloat("self"!=b?a.outerheight(c):a.height()),{top:d,left:e,width:f,height:h}):{}},p=function(b,c,d,e){var f,h,k,l,n,p,q;return g(c)?(f=parsefloat(a(window).width()),h=parsefloat(a(window).height()),parsefloat(a(document).height()),k=m(),l=o(b),n=o(c),p={width:f-(l.left+l.width),height:h-(l.top-k)-l.height},q={position:"absolute"},c.css({left:"",right:"",top:"",bottom:""}),n.width<=p.width-d||l<=p.width-d?q.left=j(0+d):q.right=j(0+d),n.height<=p.height-e||l.top<=p.height-e?q.top=j(l.height+e):q.bottom=j(l.height+e),c.css(q),void 0):!1},q=function(a){var b={top:d.t,bottom:d.b,left:d.l,right:d.r},c={t:b.top,b:b.bottom,l:b.left,r:b.right};return f(a)?a.length>1?b[a]:c[a]:void 0},r=function(a){return a===!0||"true"==a?!0:!1},s=function(a,b,c,e,f,h){if(!g(a))return!1;switch(b="h"!=b?d.s:d.h,c){case"fade":b==d.h?l(a).animate({opacity:b},e,f,h):l(a).animate({opacity:b},e,f,h);break;case"slidedown":b==d.h?l(a).slideup(e,f,h):l(a).slidedown(e,f,h);break;default:b==d.h?l(a).hide(e,f,h):l(a).show(e,f,h)}},t={slide:[],mprev:[],mnext:[],scroll:[],sprev:[],snext:[],el:[]};return t.el=this.each(function(c){var fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,sb,tb,ub,vb,wb,xb,yb,ab,cb,gb,hb,ib,jb,zb,bb,db,eb,fb,kb,nb,lb,mb,ob,pb,qb,rb,sb,tb,ub,vb,wb,xb,yb,zb,$b,_b,ac,bc,cc,dc,ec,fc,gc,hc,ic,jc,kc,lc,mc,nc,oc,pc,qc,rc,sc,tc,uc,vc,wc,xc,o=a.extend({},e.options,b),u="mouseenter",v="mouseleave",w=parseint(o.speed),x=parseint(o.sspeed),y=parseint(o.btnspeed),z=parseint(o.triggertime),a=parseint(o.mousewheeltime),b=parseint(o.delaytime),c=parsefloat(o.sstep),d=parseint(o.visnum),e=parseint(o.scrollnum),f=parseint(o.index)+1,g=parsefloat(o.addx),h=parsefloat(o.addy),i=o.direction,j=o.effect,k=o.seffect,l=o.easing,m="mouseover"!=o.eventtype?d.c:u,n=r(o.stoppropagation),o=r(o.autoplay),p=r(o.loop),q=r(o.pnloop),r=r(o.automainstate),s=r(o.autopage),t=r(o.maincur),u=r(o.curoff),v=r(o.returndefault),w=r(o.defaultshow),x=r(o.mouseoverstop),y=r(o.autoposition),z=r(o.scrollwithmain),$=r(o.hoverisbtn),_=r(o.mousewheelispn),ab=o.onclass,bb=o.offclass,cb=o.loadsrc,db=a(this),eb=a(o.scrollel,db);return eb=t?eb:eb.children(),fb=eb.parent(),gb=a(o.mainel,db),gb=t?gb:gb.children(),hb=gb,ib=gb.parent(),jb=a(o.mainstate,db),kb=a(o.maincountstate,db),lb=a(o.pagestate,db),mb=a(o.pagecountstate,db),nb=a(o.sprev,db),ob=a(o.snext,db),pb=a(o.mprev,db),qb=a(o.mnext,db),rb=a(o.itrigger,db),sb=o.itriggerfunc,tb=a(o.play,db),ub=a(o.pause,db),vb=eb.size(),vb=1>vb?gb.size():vb,wb=vb,1>vb?!1:(xb={s:[0,0],a:[0,0]},yb={s:[0,0],a:[0,0]},zb=f,bb=1,db=0,eb=0,fb=0,lb=!1,mb="marquee"==k?!0:!1,ob=function(){var a=zb;return p&&(a>vb&&(a=1),1>a&&(a=vb),g(eb)&&g(gb)&&(a+=eb)),math.max(a-1,0)},pb=function(){return p&&!g(eb)?hb:gb},qb=function(b){a.isfunction(b)&&b(ob(),vb,bb,db,jb,lb,eb,pb(),o)},rb=function(){a.isfunction(o.initfunc)&&o.initfunc(db)},sb=function(){qb(o.startfunc)},tb=function(){qb(o.completefunc)},ub=function(){qb(o.endfunc)},vb=function(){qb(o.playfunc)},wb=function(){qb(o.pausefunc)},xb=function(b){a.isfunction(sb)&&sb(b)},yb=function(){gb&&window.cleartimeout(gb),hb&&window.cleartimeout(hb),ib&&window.cleartimeout(ib),jb&&window.cleartimeout(jb)},zb=function(a){lb=x?a:!1},$b=function(a){return g(a)?(a.bind(v,function(){g(gb)?gc():nc()}),void 0):!1},_b=function(a,b){if(p&&(a=a>vb?1:1>a?vb:a),a--,g(eb)&&g(gb)&&(h(eb,ab,o.offclass),b||h(eb.eq(a+eb),bb,ab)),g(jb)&&(h(jb,ab,bb),b||h(jb.eq(a),bb,ab)),g(lb)&&(h(lb,ab,bb),b||h(lb.eq(bb-1),bb,ab)),b)return!1;if(g(kb)&&i(kb,"",''+zb+"/"+""+vb+""),g(mb)&&i(mb,"",''+bb+"/"+""+db+""),!q){var c=o.sprevoffclass,d=o.snextoffclass,e=o.mprevoffclass,f=o.mnextoffclass;1>=zb?h(pb,"",e):h(pb,e),zb>=vb?h(qb,"",f):h(qb,f),1>=bb?h(nb,"",c):h(nb,c),bb>=db?h(ob,"",d):h(ob,d)}},ac=function(){var a;if("slide"!=o.type)return!1;if(g(eb))switch((q(i)==q("l")||q(i)==q("r"))&&eb.css({"float":d.l}),i){case q("t"):fb.css("top",j(0-eb*xb.a[1]));break;case q("b"):for(fb.css({top:j(0-xb.a[1]*wb+(d+eb)*xb.a[1])}),a=0;wb>a;a++)eb.eq(wb-a-1).appendto(fb);break;case q("l"):fb.css("left",j(0-eb*xb.a[0]));break;case q("r"):for(fb.css({left:j(0-xb.a[0]*wb+(d+eb)*xb.a[0])}),a=0;wb>a;a++)eb.eq(wb-a-1).appendto(fb);break;default:eb.css({display:d.n})}if(g(gb))switch((q(j)==q("l")||q(j)==q("r"))&&gb.css({"float":d.l}),j){case q("t"):ib.css("top",j(0-eb*yb.a[1]));break;case q("b"):for(ib.css({top:j(0-yb.a[1]*wb+(d+eb)*yb.a[1])}),a=0;wb>a;a++)gb.eq(wb-a-1).appendto(ib);break;case q("l"):ib.css("left",j(0-eb*yb.a[0]));break;case q("r"):for(ib.css({left:j(0-yb.a[0]*wb+(d+eb)*yb.a[0])}),a=0;wb>a;a++)gb.eq(wb-a-1).appendto(ib);break;default:gb.css({display:d.n})}},bc=function(){var a,b,c;return _?(a=db[0],b=/firefox/i.test(navigator.useragent)?"dommousescroll":"mousewheel",c=function(a){yb(),a=a||window.event;var b=a.detail?-a.detail/3:a.wheeldelta/120;a.preventdefault&&a.preventdefault(),a.stoppropagation&&a.stoppropagation(),a.cancelbubble=!1,a.returnvalue=!1,jb=settimeout(function(){1==b?hc():ic()},a)},a.attachevent?a.attachevent("on"+b,c):a.addeventlistener&&a.addeventlistener(b,c,!1),void 0):!1},cc=function(){var b,c,e,h,m,n,p,r,s,t;if(oc(),f(cb)&&db.find("img["+cb+"]").each(function(){k(a(this),cb)}),g(eb)&&eb.each(function(){a(this).width()>xb.s[0]&&(xb.s[0]=a(this).width(),xb.a[0]=a(this).outerwidth(!0)),a(this).height()>xb.s[1]&&(xb.s[1]=a(this).height(),xb.a[1]=a(this).outerheight(!0))}),g(gb)&&gb.each(function(){a(this).width()>yb.s[0]&&(yb.s[0]=a(this).width(),yb.a[0]=a(this).outerwidth(!0)),a(this).height()>yb.s[1]&&(yb.s[1]=a(this).height(),yb.a[1]=a(this).outerheight(!0))}),p){for(db=math.ceil(vb/e),fb=d,1==e?eb=1:vb>=e?(eb=vb%e,eb=0==eb?e:eb):fb=0,b=0;eb>b;b++)c=vb-b-1,g(eb)&&eb.eq(c).clone().prependto(fb),g(gb)&&gb.eq(c).clone().prependto(ib),c="";for(b=0;fb>b;b++)g(eb)&&eb.eq(b).clone().appendto(fb),g(gb)&&gb.eq(b).clone().appendto(ib);b="",g(eb)&&(eb=fb.children()),g(gb)&&(gb=ib.children()),wb=vb+eb+fb}else db=math.ceil(math.max(vb-d,0)/e)+1;if(g(eb)&&(e=[xb.a[0],xb.a[1]],h=[xb.a[0],xb.a[1]],m="",n={position:"relative"},i==q("l")||i==q("r")?mb||(eb.css(d.sw,j(xb.s[0])),e[0]=xb.a[0]*d,h[0]=xb.a[0]*wb,m=d.sw+":"+j(e[0])+";",n.width=j(h[0])):i==q("t")||i==q("b")?mb||(eb.css(d.sh,j(xb.s[1])),e[1]=xb.a[1]*d,h[1]=xb.a[1]*wb,m=d.sh+":"+j(e[1])+";",n.height=j(h[1])):(m=d.sw+":"+j(e[0])+";",n.width=j(h[0]),n.height=j(h[1])),fb.wrap('
'),fb.css(n),e=h=m=n=""),g(gb)&&(p=[yb.a[0],yb.a[1]],r=[yb.a[0],yb.a[1]],m="",s={position:"relative"},j==q("l")||j==q("r")?(gb.css(d.sw,j(yb.s[0])),r[0]=yb.a[0]*wb,m=d.pr+"width: "+j(p[0])+";",s.width=j(r[0])):j==q("t")||j==q("b")?(gb.css(d.sh,j(yb.s[1])),r[1]=yb.a[1]*wb,m=d.pr+"height:"+j(p[1])+";",s.height=j(r[1])):"fold"==j?(gb.css({position:"absolute",top:j(0),left:j(0),width:j(yb.s[0])}),s.width=j(r[0]),s.height=j(r[1])):(m="",s=""),f(m)&&ib.wrap(''),f(s)&&ib.css(s),p=r=m=s=""),g(eb)&&g(gb)&&eb.bind(m,function(){yb();var c=a(this),d=eb.index(c);triggertimeid=window.settimeout(function(){var a=d+1-eb;a>zb?(zb=a-1,ic()):(zb=a+1,hc()),zb(x),$b(c)},z)}),g(jb)){if(r){for(b=0;vb>b;b++)i(jb,o.mainstatehtml,b+1,!0);b="",jb=jb.children()}jb.bind(m,function(){yb();var d=a(this);b=jb.index(a(this)),triggertimeid=window.settimeout(function(){fc(b+1),zb(x),$b(d)},z)})}if(g(lb)&&!mb){if(s){for(t=0;db>t;t++)i(lb,o.pagestatehtml,t+1,!0);t=""}lb=lb.children(),lb.bind(m,function(){yb();var c=a(this);t=lb.index(a(this)),triggertimeid=window.settimeout(function(){mc(t+1),zb(x),$b(c)},z)})}g(pb)&&pb.click(function(){hc()}),g(qb)&&qb.click(function(){ic()}),g(nb)&&(mb?(nb.mousedown(function(){var a;switch(i){case q("t"):a=q("b");break;case q("b"):a=q("t");break;case q("l"):a=q("r");break;case q("r"):a=q("l")}zb(!1),qc(!1,a,b/2)}),nb.mouseup(function(){zb(x),qc(!1,i,b)})):nb.click(function(){jc()})),g(ob)&&(mb?(ob.mousedown(function(){zb(!1),qc(!1,i,b/2)}),ob.mouseup(function(){zb(x),qc(!1,i,b)})):ob.click(function(){kc()})),g(tb)&&tb.click(function(){yb(),o=!0,tb.hide(),g(ub)&&ub.show(),g(gb)?gc():nc(),vb()}),g(ub)&&ub.click(function(){yb(),o=!1,ub.hide(),g(tb)&&tb.show(),wb()}),o?(g(tb)&&tb.hide(),g(ub)&&ub.show()):(g(tb)&&tb.show(),g(ub)&&ub.hide()),(x||$)&&(db.bind(u,function(){x?(yb(),zb(!0)):$&&(g(pb)&&l(pb).fadein(y),g(qb)&&l(qb).fadein(y),g(nb)&&l(nb).fadein(y),g(ob)&&l(ob).fadein(y))}),db.bind(v,function(){x?(zb(!1),g(gb)?gc():nc()):$&&(g(pb)&&l(pb).fadeout(y),g(qb)&&l(qb).fadeout(y),g(nb)&&l(nb).fadeout(y),g(ob)&&l(ob).fadeout(y))})),bc(),ac()},dc=function(){var e,a=ab,b=zb,c=ab?!1:!0;a+=eb,b+=eb,ab=zb,a!=b?(_b(zb),sb(),ec(c,b)):u&&(e=n(gb.eq(b-1)),_b(zb,e?!1:!0),ec(c,b,"","",e?d.s:d.h)),o&&gc()},ec=function(a,b,c,e,h){if(!g(gb))return!1;var i="";switch(c=f(c)?c:w,e="n"==e?!1:!0,h=f(h)?h:d.s,b--,j){case"fade":l(gb).not(":eq("+b+")").hide(),gb.eq(b).animate({opacity:h},c,l,function(){e?tb():!1});break;case"fold":l(gb).not(":eq("+b+")").animate({opacity:d.h},c,l),gb.eq(b).animate({opacity:h},c,l,function(){e?tb():!1});break;case"slidedown":l(gb).not(":eq("+b+")").slideup(c,l),h==d.s?gb.eq(b).slidedown(c,l,function(){e?tb():!1}):gb.eq(b).slideup(c,l,function(){e?tb():!1});break;case q("t"):i=0-b*yb.a[1],a?(l(ib).css(d.t,j(i)),tb()):l(ib).animate({top:j(i)},c,l,function(){e?tb():!1});break;case q("b"):i=0-yb.a[1]*wb+(b+1)*yb.a[1],a?(l(ib).css({top:j(i)}),tb()):l(ib).animate({top:j(i)},c,l,function(){e?tb():!1});break;case q("l"):i=0-b*yb.a[0],a?(l(ib).css(d.l,j(i)),tb()):l(ib).animate({left:j(i)},c,l,function(){e?tb():!1});break;case q("r"):i=0-yb.a[0]*wb+(b+1)*yb.a[0],a?(l(ib).css({left:j(i)}),tb()):l(ib).animate({left:j(i)},c,l,function(){e?tb():!1});break;default:l(gb).not(":eq("+b+")").hide(c,l),h==d.s?gb.eq(b).show(c,l,function(){e?tb():!1}):gb.eq(b).hide(c,l,function(){e?tb():!1})}},fc=function(a,b){yb(),zb=a,g(gb)?dc():mb?qc(b):mc()},gc=function(){yb(),o&&!lb&&(gb=window.settimeout(ic,b))},hc=function(){var a=zb-1,b=math.ceil(a/e),c=0;return!q&&1>a?!1:(p?1>a?(a=vb,b=db,c=vb-eb,ec(!0,wb-fb+1,0,"n"),lc(vb,0,"n")):c=(b-1)*e:1>a?(a=vb,b=db,c=(db-1)*e):c=(b-1)*e,cb!=b&&(cb=bb=b,lc(c,w,"n")),fc(a),void 0)},ic=function(){var a=zb+1,b=math.min(math.ceil(a/e),db),c=0;return!q&&a>vb?!1:(p?a>vb?(a=1,b=1,ec(!0,eb,0,"n"),lc(-eb,0,"n")):c=(b-1)*e:a>vb?(a=1,b=1):c=(b-1)*e,cb!=b&&(cb=bb=b,lc(c,w,"n")),fc(a),void 0)},jc=function(){var a=0,b=bb-1,c=0;return!q&&1>b?!1:(p?1>b?(bb=db+1,c=vb-eb,a=db*e-(e-1)+1,lc(vb,0,"n"),z&&ec(!0,wb-fb+1,0,"n")):(c=(b-1)*e,a=b*e-(e-1)+1):1>b?(bb=db+1,c=(db-1)*e,a=vb-(e-1)+1):(c=(b-1)*e,a=b*e-(e-1)+1),bb-=1,g(gb)&&z?(zb=a,hc()):mc(bb,c),void 0)},kc=function(){var a=0,b=bb+1,c=0;return!q&&b>db?!1:(p?b>db?(bb=0,lc(-eb,0,"n"),z&&ec(!0,1,0,"n")):(c=(b-1)*e,a=c):b>db?bb=0:(c=(b-1)*e,a=c),bb+=1,g(gb)&&z?(zb=a,ic()):mc(bb,c),void 0)},lc=function(a,b,c){if(!g(fb))return!1;b=f(b)?b:w,c="n"==c?!1:!0;var d="";switch(i){case q("t"):d=0-(a+eb)*xb.a[1],d={top:j(d)};break;case q("b"):d=0-(wb-d)*xb.a[1]+(a+eb)*xb.a[1],d={top:j(d)};break;case q("l"):d=0-(a+eb)*xb.a[0],d={left:j(d)};break;case q("r"):d=0-(wb-d)*xb.a[0]+(a+eb)*xb.a[0],d={left:j(d)}}l(fb).animate(d,x,l,function(){c?tb():!1})},mc=function(a,b){yb(),bb=a?a:bb,b=f(b)?b:(bb-1)*e,_b(zb),sb(),lc(b),o&&!g(gb)&&nc()},nc=function(){yb(),o&&!lb&&(mb?qc():gb=window.settimeout(kc,b))},oc=function(){return mb?(d=1,p=!1,void 0):!1},pc=function(a){var b=wb*xb.a[0],c=wb*xb.a[1];switch(b=mb?fb.outerwidth(!0):b,c=mb?fb.outerheight(!0):c,a?a:i){case q("t"):c-nb.scrolltop()<=0?nb.scrolltop(nb.scrolltop()-c+c):nb.scrolltop(nb.scrolltop()+c);break;case q("b"):c-nb.scrolltop()>=c?nb.scrolltop(nb.scrolltop()+c-c):nb.scrolltop(nb.scrolltop()-c);break;case q("l"):b-nb.scrollleft()<=0?nb.scrollleft(nb.scrollleft()-b+c):nb.scrollleft(nb.scrollleft()+c);break;case q("r"):b-nb.scrollleft()>=b?nb.scrollleft(nb.scrollleft()+b-c):nb.scrollleft(nb.scrollleft()-c)}},qc=function(a,b,c){var e,f,h;if(yb(),!g(eb)||d>vb)return!1;if(a){if(e=i==q("l")||i==q("r")?[d.sw,d.l]:[d.sh,""],nb=fb.parent(".stempwrap"),nb.wrapinner(''),d.l==e[1]){if(fb.css("float",d.l),nb.width("100%"),nb.children().css(d.sw,j(2.5*fb.outerwidth(!0))),fb.outerwidth(!0)<=nb.outerwidth())return o=!1,!1}else if(nb.height("100%"),nb.children().css(d.sh,j(2.5*fb.outerheight(!0))),fb.outerheight(!0)<=nb.outerheight())return o=!1,!1;i==d.r&&(f=0-(fb.outerwidth(!0)-nb.outerwidth()),fb.css(d.l,j(f))),i==d.b&&(h=0-(fb.outerheight(!0)-nb.outerheight()),fb.css(d.t,j(h))),fb.clone().appendto(nb.children())}o&&!lb&&(gb=setinterval(function(){pc(b)},c?c:b))},rc=function(){return g(rb)?(rb.bind(d.c,"",function(){yb();var b=a(this);a(window.document).unbind(d.c);try{settimeout(function(){xb(b)},0)}catch(c){}h(kb[0],ab,bb),s(kb[1],"h",j,w,l,function(){ub()})}),void 0):!1},sc=function(){jb.bind(m,function(){var c,e,f,g,i;yb(),c=a(this),e=jb.index(c),f=c.parent(),g=f.find(o.mainel),i=n(g)?!1:u?!0:!1,hb=window.settimeout(function(){zb=e+1,i?(h(f,ab,bb),s(g,"h",j,w,l,function(){ub()})):n(g)&&(kb&&(h(kb[0],ab,bb),s(kb[1],"h",j,0,l,function(){ub()})),kb=[f,g,c],h(f,bb,ab),sb(),y&&p(c,g,g,h),s(g,"s",j,w,l,function(){tb()}),a(window.document).bind(d.c,function(b){if(!kb)return 1;var c=a(b.target||b.srcelement,f)[0];do{if(c==kb[2][0]||c==kb[1][0])return 1;c=c.parentnode}while(c.parentnode);a(this).unbind(d.c),h(kb[0],ab,bb),s(kb[1],"h",j,w,l,function(){ub()})}))},z)}),m==u&&jb.bind(v,function(){yb()}),rc()},tc=function(){uc(),jb.bind(m,function(b){yb();var c=a(this),d=jb.index(c),e=l(c.find(o.mainel));return hb=window.settimeout(function(){zb=d+1,ab!=zb&&kb&&(h(kb[0],ab,bb),s(kb[1],"h",j,w,l,function(){ub()})),ab=zb,kb=[c,e],h(c,bb,ab),sb(),y&&p(c,e,g,h),s(e,"s",j,w,l,function(){tb()})},z),n?(b.stoppropagation(),!1):void 0}),jb.bind(v,function(b){return yb(),l(a(this).find(o.mainel)),hb=window.settimeout(function(){var a=!0,b=!0;kb&&(v&&f==ab&&(a=!1,w&&(b=!1)),a&&h(kb[0],ab,bb),b&&s(kb[1],"h",j,w,l,function(){ub()}))},z),n?(b.stoppropagation(),!1):void 0}),v&&(db.bind(u,function(){ib&&window.cleartimeout(ib)}),db.bind(v,function(){ib=window.settimeout(function(){uc()},w)})),rc()},uc=function(){var a=!1,b=!1;v?(a=!0,w&&(b=!0)):w&&(a=b=!0),(a||b)&&(ab=zb=f,kb=[jb.eq(zb-1)],kb[1]=kb[0].find(o.mainel)),a&&h(kb[0],bb,ab),(a||b)&&sb(),b&&(y&&p(kb[0],kb[1],g,h),s(kb[1],"s",j,w,l,function(){tb()}))},vc=function(){return{slide:function(){cc(),fc(zb,!0)},menu:function(){tc()},box:function(){sc()}}},wc=function(){try{rb();var a=vc();a.hasownproperty(o.type)?a[o.type]():db.prepend("error in type. type:[slide, box, menu]")}catch(b){alert(b.message)}},xc=function(){t.slide[c]=function(a){fc(a)},t.mprev[c]=function(){hc()},t.mnext[c]=function(){ic()},t.scroll[c]=function(a){mc(a)},t.sprev[c]=function(){jc()},t.snext[c]=function(){kc()}},wc(),xc(),void 0)}),t}}(jquery);