Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

revolution.extension.slideanims.min-c244e48b.js 28 KiB

pirms 9 mēnešiem
1
  1. (function(Re){var se=jQuery.fn.revolution,be={alias:"SlideAnimations Min JS",name:"revolution.extensions.slideanims.min.js",min_core:"5.4.5",version:"1.8"};jQuery.extend(!0,se,{animateSlide:function(o,u,Y,L,f,l,h,t){return se.compare_version(be).check==="stop"?t:Ae(o,u,Y,L,f,l,h,t)}});var ce=function(o,u,Y,L){var f=o,l=f.find(".defaultimg"),h=l.data("mediafilter"),t=f.data("zoomstart"),e=f.data("rotationstart");l.data("currotate")!=null&&(e=l.data("currotate")),l.data("curscale")!=null&&L=="box"?t=100*l.data("curscale"):l.data("curscale")!=null&&(t=l.data("curscale")),se.slotSize(l,u);var de=l.attr("src"),A=l.data("bgcolor"),V=u.width,v=u.height,g=l.data("fxof");A===void 0&&(A=l.css("backgroundColor")),u.autoHeight=="on"&&(v=u.c.height()),g==null&&(g=0);var S=0,i=l.data("bgfit"),d=l.data("bgrepeat"),m=l.data("bgposition");i==null&&(i="cover"),d==null&&(d="no-repeat"),m==null&&(m="center center");var B="";switch(B=A!==void 0&&0<=A.indexOf("gradient")?"background:"+A:"background-color:"+A+";background-image:url("+de+");background-repeat:"+d+";background-size:"+i+";background-position:"+m,L){case"box":for(var H=0,s=0,C=0;C<u.slots;C++){for(var j=s=0;j<u.slots;j++)f.append('<div class="slot" style="position:absolute;top:'+(0+s)+"px;left:"+(g+H)+"px;width:"+u.slotw+"px;height:"+u.sloth+'px;overflow:hidden;"><div class="slotslide '+h+'" data-x="'+H+'" data-y="'+s+'" style="position:absolute;top:0px;left:0px;width:'+u.slotw+"px;height:"+u.sloth+'px;overflow:hidden;"><div style="position:absolute;top:'+(0-s)+"px;left:"+(0-H)+"px;width:"+V+"px;height:"+v+"px;"+B+';"></div></div></div>'),s+=u.sloth,t!=null&&e!=null&&punchgs.TweenLite.set(f.find(".slot").last(),{rotationZ:e});H+=u.slotw}break;case"vertical":case"horizontal":if(L=="horizontal")for(Y||(S=0-u.slotw),j=0;j<u.slots;j++)f.append('<div class="slot" style="position:absolute;top:0px;left:'+(g+j*u.slotw)+"px;overflow:hidden;width:"+(u.slotw+.3)+"px;height:"+v+'px"><div class="slotslide '+h+'" style="position:absolute;top:0px;left:'+S+"px;width:"+(u.slotw+.6)+"px;height:"+v+'px;overflow:hidden;"><div style="position:absolute;top:0px;left:'+(0-j*u.slotw)+"px;width:"+V+"px;height:"+v+"px;"+B+';"></div></div></div>'),t!=null&&e!=null&&punchgs.TweenLite.set(f.find(".slot").last(),{rotationZ:e});else for(Y||(S=0-u.sloth),j=0;j<u.slots+2;j++)f.append('<div class="slot" style="position:absolute;top:'+(0+j*u.sloth)+"px;left:"+g+"px;overflow:hidden;width:"+V+"px;height:"+u.sloth+'px"><div class="slotslide '+h+'" style="position:absolute;top:'+S+"px;left:0px;width:"+V+"px;height:"+u.sloth+'px;overflow:hidden;"><div style="position:absolute;top:'+(0-j*u.sloth)+"px;left:0px;width:"+V+"px;height:"+v+"px;"+B+';"></div></div></div>'),t!=null&&e!=null&&punchgs.TweenLite.set(f.find(".slot").last(),{rotationZ:e})}},F=function(o,u){return u==null||jQuery.isNumeric(o)||o==null?o:o.split(",")[u]},Ae=function(o,u,Y,L,f,l,h,t){var e=Y[0].opt,de=f.index(),A=L.index()<de?1:0;e.sc_indicator=="arrow"&&(A=e.sc_indicator_dir);var V=function(r,n,p,G){var T=r[0].opt,k=punchgs.Power1.easeIn,D=punchgs.Power1.easeOut,z=punchgs.Power1.easeInOut,b=punchgs.Power2.easeIn,O=punchgs.Power2.easeOut,a=punchgs.Power2.easeInOut,J=(punchgs.Power3.easeIn,punchgs.Power3.easeOut),c=punchgs.Power3.easeInOut,M=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],I=[16,17,18,19,20,21,22,23,24,25,27],Z=0,ie=1,ne=0,re=0,_=(new Array,[["boxslide",0,1,10,0,"box",!1,null,0,D,D,500,6],["boxfade",1,0,10,0,"box",!1,null,1,z,z,700,5],["slotslide-horizontal",2,0,0,200,"horizontal",!0,!1,2,a,a,700,3],["slotslide-vertical",3,0,0,200,"vertical",!0,!1,3,a,a,700,3],["curtain-1",4,3,0,0,"horizontal",!0,!0,4,D,D,300,5],["curtain-2",5,3,0,0,"horizontal",!0,!0,5,D,D,300,5],["curtain-3",6,3,25,0,"horizontal",!0,!0,6,D,D,300,5],["slotzoom-horizontal",7,0,0,400,"horizontal",!0,!0,7,D,D,300,7],["slotzoom-vertical",8,0,0,0,"vertical",!0,!0,8,O,O,500,8],["slotfade-horizontal",9,0,0,1e3,"horizontal",!0,null,9,O,O,2e3,10],["slotfade-vertical",10,0,0,1e3,"vertical",!0,null,10,O,O,2e3,10],["fade",11,0,1,300,"horizontal",!0,null,11,a,a,1e3,1],["crossfade",11,1,1,300,"horizontal",!0,null,11,a,a,1e3,1],["fadethroughdark",11,2,1,300,"horizontal",!0,null,11,a,a,1e3,1],["fadethroughlight",11,3,1,300,"horizontal",!0,null,11,a,a,1e3,1],["fadethroughtransparent",11,4,1,300,"horizontal",!0,null,11,a,a,1e3,1],["slideleft",12,0,1,0,"horizontal",!0,!0,12,c,c,1e3,1],["slideup",13,0,1,0,"horizontal",!0,!0,13,c,c,1e3,1],["slidedown",14,0,1,0,"horizontal",!0,!0,14,c,c,1e3,1],["slideright",15,0,1,0,"horizontal",!0,!0,15,c,c,1e3,1],["slideoverleft",12,7,1,0,"horizontal",!0,!0,12,c,c,1e3,1],["slideoverup",13,7,1,0,"horizontal",!0,!0,13,c,c,1e3,1],["slideoverdown",14,7,1,0,"horizontal",!0,!0,14,c,c,1e3,1],["slideoverright",15,7,1,0,"horizontal",!0,!0,15,c,c,1e3,1],["slideremoveleft",12,8,1,0,"horizontal",!0,!0,12,c,c,1e3,1],["slideremoveup",13,8,1,0,"horizontal",!0,!0,13,c,c,1e3,1],["slideremovedown",14,8,1,0,"horizontal",!0,!0,14,c,c,1e3,1],["slideremoveright",15,8,1,0,"horizontal",!0,!0,15,c,c,1e3,1],["papercut",16,0,0,600,"",null,null,16,c,c,1e3,2],["3dcurtain-horizontal",17,0,20,100,"vertical",!1,!0,17,z,z,500,7],["3dcurtain-vertical",18,0,10,100,"horizontal",!1,!0,18,z,z,500,5],["cubic",19,0,20,600,"horizontal",!1,!0,19,c,c,500,1],["cube",19,0,20,600,"horizontal",!1,!0,20,c,c,500,1],["flyin",20,0,4,600,"vertical",!1,!0,21,J,c,500,1],["turnoff",21,0,1,500,"horizontal",!1,!0,22,c,c,500,1],["incube",22,0,20,200,"horizontal",!1,!0,23,a,a,500,1],["cubic-horizontal",23,0,20,500,"vertical",!1,!0,24,O,O,500,1],["cube-horizontal",23,0,20,500,"vertical",!1,!0,25,O,O,500,1],["incube-horizontal",24,0,20,500,"vertical",!1,!0,26,a,a,500,1],["turnoff-vertical",25,0,1,200,"horizontal",!1,!0,27,a,a,500,1],["fadefromright",12,1,1,0,"horizontal",!0,!0,28,a,a,1e3,1],["fadefromleft",15,1,1,0,"horizontal",!0,!0,29,a,a,1e3,1],["fadefromtop",14,1,1,0,"horizontal",!0,!0,30,a,a,1e3,1],["fadefrombottom",13,1,1,0,"horizontal",!0,!0,31,a,a,1e3,1],["fadetoleftfadefromright",12,2,1,0,"horizontal",!0,!0,32,a,a,1e3,1],["fadetorightfadefromleft",15,2,1,0,"horizontal",!0,!0,33,a,a,1e3,1],["fadetobottomfadefromtop",14,2,1,0,"horizontal",!0,!0,34,a,a,1e3,1],["fadetotopfadefrombottom",13,2,1,0,"horizontal",!0,!0,35,a,a,1e3,1],["parallaxtoright",15,3,1,0,"horizontal",!0,!0,36,a,b,1500,1],["parallaxtoleft",12,3,1,0,"horizontal",!0,!0,37,a,b,1500,1],["parallaxtotop",14,3,1,0,"horizontal",!0,!0,38,a,k,1500,1],["parallaxtobottom",13,3,1,0,"horizontal",!0,!0,39,a,k,1500,1],["scaledownfromright",12,4,1,0,"horizontal",!0,!0,40,a,b,1e3,1],["scaledownfromleft",15,4,1,0,"horizontal",!0,!0,41,a,b,1e3,1],["scaledownfromtop",14,4,1,0,"horizontal",!0,!0,42,a,b,1e3,1],["scaledownfrombottom",13,4,1,0,"horizontal",!0,!0,43,a,b,1e3,1],["zoomout",13,5,1,0,"horizontal",!0,!0,44,a,b,1e3,1],["zoomin",13,6,1,0,"horizontal",!0,!0,45,a,b,1e3,1],["slidingoverlayup",27,0,1,0,"horizontal",!0,!0,47,z,D,2e3,1],["slidingoverlaydown",28,0,1,0,"horizontal",!0,!0,48,z,D,2e3,1],["slidingoverlayright",30,0,1,0,"horizontal",!0,!0,49,z,D,2e3,1],["slidingoverlayleft",29,0,1,0,"horizontal",!0,!0,50,z,D,2e3,1],["parallaxcirclesup",31,0,1,0,"horizontal",!0,!0,51,a,k,1500,1],["parallaxcirclesdown",32,0,1,0,"horizontal",!0,!0,52,a,k,1500,1],["parallaxcirclesright",33,0,1,0,"horizontal",!0,!0,53,a,k,1500,1],["parallaxcirclesleft",34,0,1,0,"horizontal",!0,!0,54,a,k,1500,1],["notransition",26,0,1,0,"horizontal",!0,null,46,a,b,1e3,1],["parallaxright",15,3,1,0,"horizontal",!0,!0,55,a,b,1500,1],["parallaxleft",12,3,1,0,"horizontal",!0,!0,56,a,b,1500,1],["parallaxup",14,3,1,0,"horizontal",!0,!0,57,a,k,1500,1],["parallaxdown",13,3,1,0,"horizontal",!0,!0,58,a,k,1500,1],["grayscale",11,5,1,300,"horizontal",!0,null,11,a,a,1e3,1],["grayscalecross",11,6,1,300,"horizontal",!0,null,11,a,a,1e3,1],["brightness",11,7,1,300,"horizontal",!0,null,11,a,a,1e3,1],["brightnesscross",11,8,1,300,"horizontal",!0,null,11,a,a,1e3,1],["blurlight",11,9,1,300,"horizontal",!0,null,11,a,a,1e3,1],["blurlightcross",11,10,1,300,"horizontal",!0,null,11,a,a,1e3,1],["blurstrong",11,9,1,300,"horizontal",!0,null,11,a,a,1e3,1],["blurstrongcross",11,10,1,300,"horizontal",!0,null,11,a,a,1e3,1]]);if(T.duringslidechange=!0,T.testanims=!1,T.testanims==1&&(T.nexttesttransform=T.nexttesttransform===void 0?34:T.nexttesttransform+1,T.nexttesttransform=70<T.nexttesttransform?0:T.nexttesttransform,n=_[T.nexttesttransform][0],console.log(n+" "+T.nexttesttransform+" "+_[T.nexttesttransform][1]+" "+_[T.nexttesttransform][2])),jQuery.each(["parallaxcircles","slidingoverlay","slide","slideover","slideremove","parallax","parralaxto"],function(Ce,X){n==X+"horizontal"&&(n=G!=1?X+"left":X+"right"),n==X+"vertical"&&(n=G!=1?X+"up":X+"down")}),n=="random"&&(n=Math.round(Math.random()*_.length-1),_.length-1<n&&(n=_.length-1)),n=="random-static"&&(n=Math.round(Math.random()*M.length-1),M.length-1<n&&(n=M.length-1),n=M[n]),n=="random-premium"&&(n=Math.round(Math.random()*I.length-1),I.length-1<n&&(n=I.length-1),n=I[n]),T.isJoomla==1&&window.MooTools!=null&&[12,13,14,15,16,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45].indexOf(n)!=-1){var K=Math.round(Math.random()*(I.length-2))+1;I.length-1<K&&(K=I.length-1),K==0&&(K=1),n=I[K]}jQuery.each(_,function(Ce,X){X[0]!=n&&X[8]!=n||(Z=X[1],ie=X[2],ne=re),re+=1}),30<Z&&(Z=30),Z<0&&(Z=0);var le=new Object;return le.nexttrans=Z,le.STA=_[ne],le.specials=ie,le}(Y,u,0,A),v=V.STA,g=V.specials;o=V.nexttrans,l.data("kenburns")=="on"&&(o=11);var S=L.data("nexttransid")||0,i=F(L.data("masterspeed"),S);i=(i=i==="default"?v[11]:i==="random"?Math.round(1e3*Math.random()+300):i!=null?parseInt(i,0):v[11])>e.delay?e.delay:i,i+=v[4],e.slots=F(L.data("slotamount"),S),e.slots=e.slots==null||e.slots=="default"?v[12]:e.slots=="random"?Math.round(12*Math.random()+4):e.slots,e.slots=e.slots<1?u=="boxslide"?Math.round(6*Math.random()+3):u=="flyin"?Math.round(4*Math.random()+1):e.slots:e.slots,e.slots=(o==4||o==5||o==6)&&e.slots<3?3:e.slots,e.slots=v[3]!=0?Math.min(e.slots,v[3]):e.slots,e.slots=o==9?e.width/e.slots:o==10?e.height/e.slots:e.slots,e.rotate=F(L.data("rotate"),S),e.rotate=e.rotate==null||e.rotate=="default"?0:e.rotate==999||e.rotate=="random"?Math.round(360*Math.random()):e.rotate,e.rotate=e.ie||e.ie9?0:e.rotate,o!=11&&(v[7]!=null&&ce(h,e,v[7],v[5]),v[6]!=null&&ce(l,e,v[6],v[5])),t.add(punchgs.TweenLite.set(l.find(".defaultvid"),{y:0,x:0,top:0,left:0,scale:1}),0),t.add(punchgs.TweenLite.set(h.find(".defaultvid"),{y:0,x:0,top:0,left:0,scale:1}),0),t.add(punchgs.TweenLite.set(l.find(".defaultvid"),{y:"+0%",x:"+0%"}),0),t.add(punchgs.TweenLite.set(h.find(".defaultvid"),{y:"+0%",x:"+0%"}),0),t.add(punchgs.TweenLite.set(l,{autoAlpha:1,y:"+0%",x:"+0%"}),0),t.add(punchgs.TweenLite.set(h,{autoAlpha:1,y:"+0%",x:"+0%"}),0),t.add(punchgs.TweenLite.set(l.parent(),{backgroundColor:"transparent"}),0),t.add(punchgs.TweenLite.set(h.parent(),{backgroundColor:"transparent"}),0);var d=F(L.data("easein"),S),m=F(L.data("easeout"),S);if(d=d==="default"?v[9]||punchgs.Power2.easeInOut:d||v[9]||punchgs.Power2.easeInOut,m=m==="default"?v[10]||punchgs.Power2.easeInOut:m||v[10]||punchgs.Power2.easeInOut,o==0){var B=Math.ceil(e.height/e.sloth),H=0;l.find(".slotslide").each(function(r){var n=jQuery(this);(H+=1)==B&&(H=0),t.add(punchgs.TweenLite.from(n,i/600,{opacity:0,top:0-e.sloth,left:0-e.slotw,rotation:e.rotate,force3D:"auto",ease:d}),(15*r+30*H)/1500)})}if(o==1&&l.find(".slotslide").each(function(r){var n=jQuery(this),p=Math.random()*i+300,G=500*Math.random()+200;t.add(punchgs.TweenLite.from(n,p/1e3,{autoAlpha:0,force3D:"auto",rotation:e.rotate,ease:d}),G/1e3)}),o==2){var s=new punchgs.TimelineLite;h.find(".slotslide").each(function(){var r=jQuery(this);s.add(punchgs.TweenLite.to(r,i/1e3,{left:e.slotw,ease:d,force3D:"auto",rotation:0-e.rotate}),0),t.add(s,0)}),l.find(".slotslide").each(function(){var r=jQuery(this);s.add(punchgs.TweenLite.from(r,i/1e3,{left:0-e.slotw,ease:d,force3D:"auto",rotation:e.rotate}),0),t.add(s,0)})}if(o==3&&(s=new punchgs.TimelineLite,h.find(".slotslide").each(function(){var r=jQuery(this);s.add(punchgs.TweenLite.to(r,i/1e3,{top:e.sloth,ease:d,rotation:e.rotate,force3D:"auto",transformPerspective:600}),0),t.add(s,0)}),l.find(".slotslide").each(function(){var r=jQuery(this);s.add(punchgs.TweenLite.from(r,i/1e3,{top:0-e.sloth,rotation:e.rotate,ease:m,force3D:"auto",transformPerspective:600}),0),t.add(s,0)})),o==4||o==5){setTimeout(function(){h.find(".defaultimg").css({opacity:0})},100);var C=i/1e3;s=new punchgs.TimelineLite,h.find(".slotslide").each(function(r){var n=jQuery(this),p=r*C/e.slots;o==5&&(p=(e.slots-r-1)*C/e.slots/1.5),s.add(punchgs.TweenLite.to(n,3*C,{transformPerspective:600,force3D:"auto",top:0+e.height,opacity:.5,rotation:e.rotate,ease:d,delay:p}),0),t.add(s,0)}),l.find(".slotslide").each(function(r){var n=jQuery(this),p=r*C/e.slots;o==5&&(p=(e.slots-r-1)*C/e.slots/1.5),s.add(punchgs.TweenLite.from(n,3*C,{top:0-e.height,opacity:.5,rotation:e.rotate,force3D:"auto",ease:punchgs.eo,delay:p}),0),t.add(s,0)})}if(o==6&&(e.slots<2&&(e.slots=2),e.slots%2&&(e.slots=e.slots+1),s=new punchgs.TimelineLite,setTimeout(function(){h.find(".defaultimg").css({opacity:0})},100),h.find(".slotslide").each(function(r){var n=jQuery(this);if(r+1<e.slots/2)var p=90*(r+2);else p=90*(2+e.slots-r);s.add(punchgs.TweenLite.to(n,(i+p)/1e3,{top:0+e.height,opacity:1,force3D:"auto",rotation:e.rotate,ease:d}),0),t.add(s,0)}),l.find(".slotslide").each(function(r){var n=jQuery(this);if(r+1<e.slots/2)var p=90*(r+2);else p=90*(2+e.slots-r);s.add(punchgs.TweenLite.from(n,(i+p)/1e3,{top:0-e.height,opacity:1,force3D:"auto",rotation:e.rotate,ease:m}),0),t.add(s,0)})),o==7&&((i*=2)>e.delay&&(i=e.delay),s=new punchgs.TimelineLite,setTimeout(function(){h.find(".defaultimg").css({opacity:0})},100),h.find(".slotslide").each(function(){var r=jQuery(this).find("div");s.add(punchgs.TweenLite.to(r,i/1e3,{left:0-e.slotw/2+"px",top:0-e.height/2+"px",width:2*e.slotw+"px",height:2*e.height+"px",opacity:0,rotation:e.rotate,force3D:"auto",ease:d}),0),t.add(s,0)}),l.find(".slotslide").each(function(r){var n=jQuery(this).find("div");s.add(punchgs.TweenLite.fromTo(n,i/1e3,{left:0,top:0,opacity:0,transformPerspective:600},{left:0-r*e.slotw+"px",ease:m,force3D:"auto",top:"0px",width:e.width,height:e.height,opacity:1,rotation:0,delay:.1}),0),t.add(s,0)})),o==8&&((i*=3)>e.delay&&(i=e.delay),s=new punchgs.TimelineLite,h.find(".slotslide").each(function(){var r=jQuery(this).find("div");s.add(punchgs.TweenLite.to(r,i/1e3,{left:0-e.width/2+"px",top:0-e.sloth/2+"px",width:2*e.width+"px",height:2*e.sloth+"px",force3D:"auto",ease:d,opacity:0,rotation:e.rotate}),0),t.add(s,0)}),l.find(".slotslide").each(function(r){var n=jQuery(this).find("div");s.add(punchgs.TweenLite.fromTo(n,i/1e3,{left:0,top:0,opacity:0,force3D:"auto"},{left:"0px",top:0-r*e.sloth+"px",width:l.find(".defaultimg").data("neww")+"px",height:l.find(".defaultimg").data("newh")+"px",opacity:1,ease:m,rotation:0}),0),t.add(s,0)})),(o==9||o==10)&&l.find(".slotslide").each(function(r){var n=jQuery(this);t.add(punchgs.TweenLite.fromTo(n,i/2e3,{autoAlpha:0,force3D:"auto",transformPerspective:600},{autoAlpha:1,ease:d,delay:r*e.slots/100/2e3}),0)}),o==27||o==28||o==29||o==30){var j=l.find(".slot"),ue=o==27||o==29?"-100%":"+100%",De=o==27||o==29?"+100%":"-100%",je=o==27||o==29?"-80%":"80%",Qe=o==27||o==29?"+80%":"-80%",Me=o==27||o==29?"+10%":"-10%",pe={overwrite:"all"},ge={autoAlpha:0,zIndex:1,force3D:"auto",ease:d},we={position:"inherit",autoAlpha:0,overwrite:"all",zIndex:1},me={autoAlpha:1,force3D:"auto",ease:m},ve={overwrite:"all",zIndex:2,opacity:1,autoAlpha:1},ye={autoAlpha:1,force3D:"auto",overwrite:"all",ease:d},xe={overwrite:"all",zIndex:2,autoAlpha:1},Te={autoAlpha:1,force3D:"auto",ease:d},W=(o==27||o==28?1:2)==1?"y":"x";pe[W]="0px",ge[W]=ue,we[W]=Me,me[W]="0%",ve[W]=De,ye[W]=ue,xe[W]=je,Te[W]=Qe,j.append('<span style="background-color:rgba(0,0,0,0.6);width:100%;height:100%;position:absolute;top:0px;left:0px;display:block;z-index:2"></span>'),t.add(punchgs.TweenLite.fromTo(h,i/1e3,pe,ge),0),t.add(punchgs.TweenLite.fromTo(l.find(".defaultimg"),i/2e3,we,me),i/2e3),t.add(punchgs.TweenLite.fromTo(j,i/1e3,ve,ye),0),t.add(punchgs.TweenLite.fromTo(j.find(".slotslide div"),i/1e3,xe,Te),0)}if(o==31||o==32||o==33||o==34){i=6e3,d=punchgs.Power3.easeInOut;var q=i/1e3;mas=q-q/5,_nt=o,fy=_nt==31?"+100%":_nt==32?"-100%":"0%",fx=_nt==33?"+100%":_nt==34?"-100%":"0%",ty=_nt==31?"-100%":_nt==32?"+100%":"0%",tx=_nt==33?"-100%":_nt==34?"+100%":"0%",t.add(punchgs.TweenLite.fromTo(h,q-.2*q,{y:0,x:0},{y:ty,x:tx,ease:m}),.2*q),t.add(punchgs.TweenLite.fromTo(l,q,{y:fy,x:fx},{y:"0%",x:"0%",ease:d}),0),l.find(".slot").remove(),l.find(".defaultimg").clone().appendTo(l).addClass("slot"),function(r,n,p,G,T){var k=r.find(".slot"),D=[2,1.2,.9,.7,.55,.42],z=r.width(),b=r.height();k.wrap('<div class="slot-circle-wrapper" style="overflow:hidden;position:absolute;border:1px solid #fff"></div>');for(var O=0;O<6;O++)k.parent().clone(!1).appendTo(nextsh);r.find(".slot-circle-wrapper").each(function(a){if(a<6){var J=jQuery(this),c=J.find(".slot"),M=b<z?D[a]*z:D[a]*b,I=M/2-z/2+0,Z=M/2-b/2+0,ie={scale:1,transformOrigo:"50% 50%",width:M+"px",height:M+"px",top:b/2-M/2+"px",left:(p==33?z/2-M/2:p==34?z-M:z/2-M/2)+"px",borderRadius:a!=0?"50%":"0"},ne={scale:1,top:b/2-M/2,left:z/2-M/2,ease:T},re={width:z,height:b,autoAlpha:1,top:Z+"px",position:"absolute",left:(p==33?I:p==34?I+z/2:I)+"px"},_={top:Z+"px",left:I+"px",ease:T},K=n;mtl.add(punchgs.TweenLite.fromTo(J,K,ie,ne),0),mtl.add(punchgs.TweenLite.fromTo(c,K,re,_),0),mtl.add(punchgs.TweenLite.fromTo(J,.001,{autoAlpha:0},{autoAlpha:1}),0)}})}(l,q,_nt,0,d)}if(o==11){12<g&&(g=0);var Pe=g==2?"#000000":g==3?"#ffffff":"transparent";switch(g){case 0:t.add(punchgs.TweenLite.fromTo(l,i/1e3,{autoAlpha:0},{autoAlpha:1,force3D:"auto",ease:d}),0);break;case 1:t.add(punchgs.TweenLite.fromTo(l,i/1e3,{autoAlpha:0},{autoAlpha:1,force3D:"auto",ease:d}),0),t.add(punchgs.TweenLite.fromTo(h,i/1e3,{autoAlpha:1},{autoAlpha:0,force3D:"auto",ease:d}),0);break;case 2:case 3:case 4:t.add(punchgs.TweenLite.set(h.parent(),{backgroundColor:Pe,force3D:"auto"}),0),t.add(punchgs.TweenLite.set(l.parent(),{backgroundColor:"transparent",force3D:"auto"}),0),t.add(punchgs.TweenLite.to(h,i/2e3,{autoAlpha:0,force3D:"auto",ease:d}),0),t.add(punchgs.TweenLite.fromTo(l,i/2e3,{autoAlpha:0},{autoAlpha:1,force3D:"auto",ease:d}),i/2e3);break;case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:var E="blur("+(0<=jQuery.inArray(g,[9,10])?5:0<=jQuery.inArray(g,[11,12])?10:0)+"px) grayscale("+(0<=jQuery.inArray(g,[5,6,7,8])?100:0)+"%) brightness("+(0<=jQuery.inArray(g,[7,8])?300:0)+"%)",N="blur(0px) grayscale(0%) brightness(100%)";t.add(punchgs.TweenLite.fromTo(l,i/1e3,{autoAlpha:0,filter:E,"-webkit-filter":E},{autoAlpha:1,filter:N,"-webkit-filter":N,force3D:"auto",ease:d}),0),0<=jQuery.inArray(g,[6,8,10])&&t.add(punchgs.TweenLite.fromTo(h,i/1e3,{autoAlpha:1,filter:N,"-webkit-filter":N},{autoAlpha:0,force3D:"auto",ease:d,filter:E,"-webkit-filter":E}),0)}t.add(punchgs.TweenLite.set(l.find(".defaultimg"),{autoAlpha:1}),0),t.add(punchgs.TweenLite.set(h.find("defaultimg"),{autoAlpha:1}),0)}if(o==26&&(i=0,t.add(punchgs.TweenLite.fromTo(l,i/1e3,{autoAlpha:0},{autoAlpha:1,force3D:"auto",ease:d}),0),t.add(punchgs.TweenLite.to(h,i/1e3,{autoAlpha:0,force3D:"auto",ease:d}),0),t.add(punchgs.TweenLite.set(l.find(".defaultimg"),{autoAlpha:1}),0),t.add(punchgs.TweenLite.set(h.find("defaultimg"),{autoAlpha:1}),0)),o==12||o==13||o==14||o==15){(i=i)>e.delay&&(i=e.delay),setTimeout(function(){punchgs.TweenLite.set(h.find(".defaultimg"),{autoAlpha:0})},100);var Q=e.width,y=e.height,ze=l.find(".slotslide, .defaultvid"),ee=0,te=0,P=1,U=1,he=1,fe=i/1e3,oe=fe;e.sliderLayout!="fullwidth"&&e.sliderLayout!="fullscreen"||(Q=ze.width(),y=ze.height()),o==12?ee=Q:o==15?ee=0-Q:o==13?te=y:o==14&&(te=0-y),g==1&&(P=0),g==2&&(P=0),g==3&&(fe=i/1300),g!=4&&g!=5||(U=.6),g==6&&(U=1.4),g!=5&&g!=6||(he=1.4,te=ee=y=Q=P=0),g==6&&(he=.6),g==7&&(y=Q=0);var Le=l.find(".slotslide"),ae=h.find(".slotslide, .defaultvid");if(t.add(punchgs.TweenLite.set(f,{zIndex:15}),0),t.add(punchgs.TweenLite.set(L,{zIndex:20}),0),g==8?(t.add(punchgs.TweenLite.set(f,{zIndex:20}),0),t.add(punchgs.TweenLite.set(L,{zIndex:15}),0),t.add(punchgs.TweenLite.set(Le,{left:0,top:0,scale:1,opacity:1,rotation:0,ease:d,force3D:"auto"}),0)):t.add(punchgs.TweenLite.from(Le,fe,{left:ee,top:te,scale:he,opacity:P,rotation:e.rotate,ease:d,force3D:"auto"}),0),g!=4&&g!=5||(y=Q=0),g!=1)switch(o){case 12:t.add(punchgs.TweenLite.to(ae,oe,{left:0-Q+"px",force3D:"auto",scale:U,opacity:P,rotation:e.rotate,ease:m}),0);break;case 15:t.add(punchgs.TweenLite.to(ae,oe,{left:Q+"px",force3D:"auto",scale:U,opacity:P,rotation:e.rotate,ease:m}),0);break;case 13:t.add(punchgs.TweenLite.to(ae,oe,{top:0-y+"px",force3D:"auto",scale:U,opacity:P,rotation:e.rotate,ease:m}),0);break;case 14:t.add(punchgs.TweenLite.to(ae,oe,{top:y+"px",force3D:"auto",scale:U,opacity:P,rotation:e.rotate,ease:m}),0)}}if(o==16){s=new punchgs.TimelineLite,t.add(punchgs.TweenLite.set(f,{position:"absolute","z-index":20}),0),t.add(punchgs.TweenLite.set(L,{position:"absolute","z-index":15}),0),f.wrapInner('<div class="tp-half-one" style="position:relative; width:100%;height:100%"></div>'),f.find(".tp-half-one").clone(!0).appendTo(f).addClass("tp-half-two"),f.find(".tp-half-two").removeClass("tp-half-one"),Q=e.width,y=e.height,e.autoHeight=="on"&&(y=Y.height()),f.find(".tp-half-one .defaultimg").wrap('<div class="tp-papercut" style="width:'+Q+"px;height:"+y+'px;"></div>'),f.find(".tp-half-two .defaultimg").wrap('<div class="tp-papercut" style="width:'+Q+"px;height:"+y+'px;"></div>'),f.find(".tp-half-two .defaultimg").css({position:"absolute",top:"-50%"}),f.find(".tp-half-two .tp-caption").wrapAll('<div style="position:absolute;top:-50%;left:0px;"></div>'),t.add(punchgs.TweenLite.set(f.find(".tp-half-two"),{width:Q,height:y,overflow:"hidden",zIndex:15,position:"absolute",top:y/2,left:"0px",transformPerspective:600,transformOrigin:"center bottom"}),0),t.add(punchgs.TweenLite.set(f.find(".tp-half-one"),{width:Q,height:y/2,overflow:"visible",zIndex:10,position:"absolute",top:"0px",left:"0px",transformPerspective:600,transformOrigin:"center top"}),0),f.find(".defaultimg");var ke=Math.round(20*Math.random()-10),Oe=Math.round(20*Math.random()-10),Ie=Math.round(20*Math.random()-10),Xe=.4*Math.random()-.2,Ye=.4*Math.random()-.2,Se=1*Math.random()+1,_e=1*Math.random()+1,Ve=.3*Math.random()+.3;t.add(punchgs.TweenLite.set(f.find(".tp-half-one"),{overflow:"hidden"}),0),t.add(punchgs.TweenLite.fromTo(f.find(".tp-half-one"),i/800,{width:Q,height:y/2,position:"absolute",top:"0px",left:"0px",force3D:"auto",transformOrigin:"center top"},{scale:Se,rotation:ke,y:0-y-y/4,autoAlpha:0,ease:d}),0),t.add(punchgs.TweenLite.fromTo(f.find(".tp-half-two"),i/800,{width:Q,height:y,overflow:"hidden",position:"absolute",top:y/2,left:"0px",force3D:"auto",transformOrigin:"center bottom"},{scale:_e,rotation:Oe,y:y+y/4,ease:d,autoAlpha:0,onComplete:function(){punchgs.TweenLite.set(f,{position:"absolute","z-index":15}),punchgs.TweenLite.set(L,{position:"absolute","z-index":20}),0<f.find(".tp-half-one").length&&(f.find(".tp-half-one .defaultimg").unwrap(),f.find(".tp-half-one .slotholder").unwrap()),f.find(".tp-half-two").remove()}}),0),s.add(punchgs.TweenLite.set(l.find(".defaultimg"),{autoAlpha:1}),0),f.html()!=null&&t.add(punchgs.TweenLite.fromTo(L,(i-200)/1e3,{scale:Ve,x:e.width/4*Xe,y:y/4*Ye,rotation:Ie,force3D:"auto",transformOrigin:"center center",ease:m},{autoAlpha:1,scale:1,x:0,y:0,rotation:0}),0),t.add(s,0)}if(o==17&&l.find(".slotslide").each(function(r){var n=jQuery(this);t.add(punchgs.TweenLite.fromTo(n,i/800,{opacity:0,rotationY:0,scale:.9,rotationX:-110,force3D:"auto",transformPerspective:600,transformOrigin:"center center"},{opacity:1,top:0,left:0,scale:1,rotation:0,rotationX:0,force3D:"auto",rotationY:0,ease:d,delay:.06*r}),0)}),o==18&&l.find(".slotslide").each(function(r){var n=jQuery(this);t.add(punchgs.TweenLite.fromTo(n,i/500,{autoAlpha:0,rotationY:110,scale:.9,rotationX:10,force3D:"auto",transformPerspective:600,transformOrigin:"center center"},{autoAlpha:1,top:0,left:0,scale:1,rotation:0,rotationX:0,force3D:"auto",rotationY:0,ease:d,delay:.06*r}),0)}),o==19||o==22){s=new punchgs.TimelineLite,t.add(punchgs.TweenLite.set(f,{zIndex:20}),0),t.add(punchgs.TweenLite.set(L,{zIndex:20}),0),setTimeout(function(){h.find(".defaultimg").css({opacity:0})},100);var w=90,x=(P=1,"center center ");A==1&&(w=-90),o==19?(x=x+"-"+e.height/2,P=0):x+=e.height/2,punchgs.TweenLite.set(Y,{transformStyle:"flat",backfaceVisibility:"hidden",transformPerspective:600}),l.find(".slotslide").each(function(r){var n=jQuery(this);s.add(punchgs.TweenLite.fromTo(n,i/1e3,{transformStyle:"flat",backfaceVisibility:"hidden",left:0,rotationY:e.rotate,z:10,top:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:x,rotationX:w},{left:0,rotationY:0,top:0,z:0,scale:1,force3D:"auto",rotationX:0,delay:50*r/1e3,ease:d}),0),s.add(punchgs.TweenLite.to(n,.1,{autoAlpha:1,delay:50*r/1e3}),0),t.add(s)}),h.find(".slotslide").each(function(r){var n=jQuery(this),p=-90;A==1&&(p=90),s.add(punchgs.TweenLite.fromTo(n,i/1e3,{transformStyle:"flat",backfaceVisibility:"hidden",autoAlpha:1,rotationY:0,top:0,z:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:x,rotationX:0},{autoAlpha:1,rotationY:e.rotate,top:0,z:10,scale:1,rotationX:p,delay:50*r/1e3,force3D:"auto",ease:m}),0),t.add(s)}),t.add(punchgs.TweenLite.set(f,{zIndex:18}),0)}if(o==20){if(setTimeout(function(){h.find(".defaultimg").css({opacity:0})},100),A==1){var $=-e.width;w=80,x="20% 70% -"+e.height/2}else $=e.width,w=-80,x="80% 70% -"+e.height/2;l.find(".slotslide").each(function(r){var n=jQuery(this),p=50*r/1e3;t.add(punchgs.TweenLite.fromTo(n,i/1e3,{left:$,rotationX:40,z:-600,opacity:P,top:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:x,transformStyle:"flat",rotationY:w},{left:0,rotationX:0,opacity:1,top:0,z:0,scale:1,rotationY:0,delay:p,ease:d}),0)}),h.find(".slotslide").each(function(r){var n=jQuery(this),p=50*r/1e3;if(p=0<r?p+i/9e3:0,A!=1)var G=-e.width/2,T=30,k="20% 70% -"+e.height/2;else G=e.width/2,T=-30,k="80% 70% -"+e.height/2;m=punchgs.Power2.easeInOut,t.add(punchgs.TweenLite.fromTo(n,i/1e3,{opacity:1,rotationX:0,top:0,z:0,scale:1,left:0,force3D:"auto",transformPerspective:600,transformOrigin:k,transformStyle:"flat",rotationY:0},{opacity:1,rotationX:20,top:0,z:-600,left:G,force3D:"auto",rotationY:T,delay:p,ease:m}),0)})}if(o==21||o==25){setTimeout(function(){h.find(".defaultimg").css({opacity:0})},100),w=90,$=-e.width;var R=-w;A==1?o==25?(x="center top 0",w=e.rotate):(x="left center 0",R=e.rotate):($=e.width,w=-90,o==25?(x="center bottom 0",R=-w,w=e.rotate):(x="right center 0",R=e.rotate)),l.find(".slotslide").each(function(r){var n=jQuery(this),p=i/1.5/3;t.add(punchgs.TweenLite.fromTo(n,2*p/1e3,{left:0,transformStyle:"flat",rotationX:R,z:0,autoAlpha:0,top:0,scale:1,force3D:"auto",transformPerspective:1200,transformOrigin:x,rotationY:w},{left:0,rotationX:0,top:0,z:0,autoAlpha:1,scale:1,rotationY:0,force3D:"auto",delay:p/1e3,ease:d}),0)}),A!=1?($=-e.width,w=90,o==25?(x="center top 0",R=-w,w=e.rotate):(x="left center 0",R=e.rotate)):($=e.width,w=-90,o==25?(x="center bottom 0",R=-w,w=e.rotate):(x="right center 0",R=e.rotate)),h.find(".slotslide").each(function(r){var n=jQuery(this);t.add(punchgs.TweenLite.fromTo(n,i/1e3,{left:0,transformStyle:"flat",rotationX:0,z:0,autoAlpha:1,top:0,scale:1,force3D:"auto",transformPerspective:1200,transformOrigin:x,rotationY:0},{left:0,rotationX:R,top:0,z:0,autoAlpha:1,force3D:"auto",scale:1,rotationY:w,ease:m}),0)})}return(o==23||o==24)&&(setTimeout(function(){h.find(".defaultimg").css({opacity:0})},100),w=-90,P=1,A==1&&(w=90),o==23?(x="center center -"+e.width/2,P=0):x="center center "+e.width/2,punchgs.TweenLite.set(Y,{transformStyle:"preserve-3d",backfaceVisibility:"hidden",perspective:2500}),l.find(".slotslide").each(function(r){var n=jQuery(this);t.add(punchgs.TweenLite.fromTo(n,i/1e3,{left:0,rotationX:e.rotate,force3D:"auto",opacity:P,top:0,scale:1,transformPerspective:1200,transformOrigin:x,rotationY:w},{left:0,rotationX:0,autoAlpha:1,top:0,z:0,scale:1,rotationY:0,delay:50*r/500,ease:d}),0)}),w=90,A==1&&(w=-90),h.find(".slotslide").each(function(r){var n=jQuery(this);t.add(punchgs.TweenLite.fromTo(n,i/1e3,{left:0,rotationX:0,top:0,z:0,scale:1,force3D:"auto",transformStyle:"flat",transformPerspective:1200,transformOrigin:x,rotationY:0},{left:0,rotationX:e.rotate,top:0,scale:1,rotationY:w,delay:50*r/500,ease:m}),0),o==23&&t.add(punchgs.TweenLite.fromTo(n,i/2e3,{autoAlpha:1},{autoAlpha:0,delay:50*r/500+i/3e3,ease:m}),0)})),t}})(jQuery);