/************************************************ * revolution 5.3 extension - slide animations * @version: 1.6 (17.11.2016) * @requires jquery.themepunch.revolution.js * @author themepunch ************************************************/ !function(a){"use strict";var b=jquery.fn.revolution,c={alias:"slideanimations min js",name:"revolution.extensions.slideanims.min.js",min_core:"5.0",version:"1.6"};jquery.extend(!0,b,{animateslide:function(a,d,e,f,h,i,j,k){return"stop"===b.compare_version(c).check?k:g(a,d,e,f,h,i,j,k)}});var d=function(a,c,d,e){var f=a,g=f.find(".defaultimg"),h=g.data("mediafilter"),i=f.data("zoomstart"),j=f.data("rotationstart");void 0!=g.data("currotate")&&(j=g.data("currotate")),void 0!=g.data("curscale")&&"box"==e?i=100*g.data("curscale"):void 0!=g.data("curscale")&&(i=g.data("curscale")),b.slotsize(g,c);var k=g.attr("src"),l=g.css("backgroundcolor"),m=c.width,n=c.height,o=g.data("fxof"),p=0;"on"==c.autoheight&&(n=c.c.height()),void 0==o&&(o=0);var q=0,r=g.data("bgfit"),s=g.data("bgrepeat"),t=g.data("bgposition");switch(void 0==r&&(r="cover"),void 0==s&&(s="no-repeat"),void 0==t&&(t="center center"),e){case"box":for(var u=0,v=0,w=0;w
'),v+=c.sloth,void 0!=i&&void 0!=j&&punchgs.tweenlite.set(f.find(".slot").last(),{rotationz:j});u+=c.slotw}break;case"vertical":case"horizontal":if("horizontal"==e){if(!d)var q=0-c.slotw;for(var x=0;x
'),void 0!=i&&void 0!=j&&punchgs.tweenlite.set(f.find(".slot").last(),{rotationz:j})}else{if(!d)var q=0-c.sloth;for(var x=0;x
'),void 0!=i&&void 0!=j&&punchgs.tweenlite.set(f.find(".slot").last(),{rotationz:j})}}},e=function(a,b,c,d){function y(){jquery.each(v,function(a,c){c[0]!=b&&c[8]!=b||(q=c[1],r=c[2],s=t),t+=1})}var e=a[0].opt,f=punchgs.power1.easein,g=punchgs.power1.easeout,h=punchgs.power1.easeinout,i=punchgs.power2.easein,j=punchgs.power2.easeout,k=punchgs.power2.easeinout,m=(punchgs.power3.easein,punchgs.power3.easeout),n=punchgs.power3.easeinout,o=[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],p=[16,17,18,19,20,21,22,23,24,25,27],q=0,r=1,s=0,t=0,v=(new array,[["boxslide",0,1,10,0,"box",!1,null,0,g,g,500,6],["boxfade",1,0,10,0,"box",!1,null,1,h,h,700,5],["slotslide-horizontal",2,0,0,200,"horizontal",!0,!1,2,k,k,700,3],["slotslide-vertical",3,0,0,200,"vertical",!0,!1,3,k,k,700,3],["curtain-1",4,3,0,0,"horizontal",!0,!0,4,g,g,300,5],["curtain-2",5,3,0,0,"horizontal",!0,!0,5,g,g,300,5],["curtain-3",6,3,25,0,"horizontal",!0,!0,6,g,g,300,5],["slotzoom-horizontal",7,0,0,400,"horizontal",!0,!0,7,g,g,300,7],["slotzoom-vertical",8,0,0,0,"vertical",!0,!0,8,j,j,500,8],["slotfade-horizontal",9,0,0,1e3,"horizontal",!0,null,9,j,j,2e3,10],["slotfade-vertical",10,0,0,1e3,"vertical",!0,null,10,j,j,2e3,10],["fade",11,0,1,300,"horizontal",!0,null,11,k,k,1e3,1],["crossfade",11,1,1,300,"horizontal",!0,null,11,k,k,1e3,1],["fadethroughdark",11,2,1,300,"horizontal",!0,null,11,k,k,1e3,1],["fadethroughlight",11,3,1,300,"horizontal",!0,null,11,k,k,1e3,1],["fadethroughtransparent",11,4,1,300,"horizontal",!0,null,11,k,k,1e3,1],["slideleft",12,0,1,0,"horizontal",!0,!0,12,n,n,1e3,1],["slideup",13,0,1,0,"horizontal",!0,!0,13,n,n,1e3,1],["slidedown",14,0,1,0,"horizontal",!0,!0,14,n,n,1e3,1],["slideright",15,0,1,0,"horizontal",!0,!0,15,n,n,1e3,1],["slideoverleft",12,7,1,0,"horizontal",!0,!0,12,n,n,1e3,1],["slideoverup",13,7,1,0,"horizontal",!0,!0,13,n,n,1e3,1],["slideoverdown",14,7,1,0,"horizontal",!0,!0,14,n,n,1e3,1],["slideoverright",15,7,1,0,"horizontal",!0,!0,15,n,n,1e3,1],["slideremoveleft",12,8,1,0,"horizontal",!0,!0,12,n,n,1e3,1],["slideremoveup",13,8,1,0,"horizontal",!0,!0,13,n,n,1e3,1],["slideremovedown",14,8,1,0,"horizontal",!0,!0,14,n,n,1e3,1],["slideremoveright",15,8,1,0,"horizontal",!0,!0,15,n,n,1e3,1],["papercut",16,0,0,600,"",null,null,16,n,n,1e3,2],["3dcurtain-horizontal",17,0,20,100,"vertical",!1,!0,17,h,h,500,7],["3dcurtain-vertical",18,0,10,100,"horizontal",!1,!0,18,h,h,500,5],["cubic",19,0,20,600,"horizontal",!1,!0,19,n,n,500,1],["cube",19,0,20,600,"horizontal",!1,!0,20,n,n,500,1],["flyin",20,0,4,600,"vertical",!1,!0,21,m,n,500,1],["turnoff",21,0,1,500,"horizontal",!1,!0,22,n,n,500,1],["incube",22,0,20,200,"horizontal",!1,!0,23,k,k,500,1],["cubic-horizontal",23,0,20,500,"vertical",!1,!0,24,j,j,500,1],["cube-horizontal",23,0,20,500,"vertical",!1,!0,25,j,j,500,1],["incube-horizontal",24,0,20,500,"vertical",!1,!0,26,k,k,500,1],["turnoff-vertical",25,0,1,200,"horizontal",!1,!0,27,k,k,500,1],["fadefromright",14,1,1,0,"horizontal",!0,!0,28,k,k,1e3,1],["fadefromleft",15,1,1,0,"horizontal",!0,!0,29,k,k,1e3,1],["fadefromtop",14,1,1,0,"horizontal",!0,!0,30,k,k,1e3,1],["fadefrombottom",13,1,1,0,"horizontal",!0,!0,31,k,k,1e3,1],["fadetoleftfadefromright",12,2,1,0,"horizontal",!0,!0,32,k,k,1e3,1],["fadetorightfadefromleft",15,2,1,0,"horizontal",!0,!0,33,k,k,1e3,1],["fadetobottomfadefromtop",14,2,1,0,"horizontal",!0,!0,34,k,k,1e3,1],["fadetotopfadefrombottom",13,2,1,0,"horizontal",!0,!0,35,k,k,1e3,1],["parallaxtoright",15,3,1,0,"horizontal",!0,!0,36,k,i,1500,1],["parallaxtoleft",12,3,1,0,"horizontal",!0,!0,37,k,i,1500,1],["parallaxtotop",14,3,1,0,"horizontal",!0,!0,38,k,f,1500,1],["parallaxtobottom",13,3,1,0,"horizontal",!0,!0,39,k,f,1500,1],["scaledownfromright",12,4,1,0,"horizontal",!0,!0,40,k,i,1e3,1],["scaledownfromleft",15,4,1,0,"horizontal",!0,!0,41,k,i,1e3,1],["scaledownfromtop",14,4,1,0,"horizontal",!0,!0,42,k,i,1e3,1],["scaledownfrombottom",13,4,1,0,"horizontal",!0,!0,43,k,i,1e3,1],["zoomout",13,5,1,0,"horizontal",!0,!0,44,k,i,1e3,1],["zoomin",13,6,1,0,"horizontal",!0,!0,45,k,i,1e3,1],["slidingoverlayup",27,0,1,0,"horizontal",!0,!0,47,h,g,2e3,1],["slidingoverlaydown",28,0,1,0,"horizontal",!0,!0,48,h,g,2e3,1],["slidingoverlayright",30,0,1,0,"horizontal",!0,!0,49,h,g,2e3,1],["slidingoverlayleft",29,0,1,0,"horizontal",!0,!0,50,h,g,2e3,1],["parallaxcirclesup",31,0,1,0,"horizontal",!0,!0,51,k,f,1500,1],["parallaxcirclesdown",32,0,1,0,"horizontal",!0,!0,52,k,f,1500,1],["parallaxcirclesright",33,0,1,0,"horizontal",!0,!0,53,k,f,1500,1],["parallaxcirclesleft",34,0,1,0,"horizontal",!0,!0,54,k,f,1500,1],["notransition",26,0,1,0,"horizontal",!0,null,46,k,i,1e3,1],["parallaxright",15,3,1,0,"horizontal",!0,!0,55,k,i,1500,1],["parallaxleft",12,3,1,0,"horizontal",!0,!0,56,k,i,1500,1],["parallaxup",14,3,1,0,"horizontal",!0,!0,57,k,f,1500,1],["parallaxdown",13,3,1,0,"horizontal",!0,!0,58,k,f,1500,1]]);e.duringslidechange=!0,e.testanims=!1,1==e.testanims&&(e.nexttesttransform=void 0===e.nexttesttransform?34:e.nexttesttransform+1,e.nexttesttransform=e.nexttesttransform>70?0:e.nexttesttransform,b=v[e.nexttesttransform][0],console.log(b+" "+e.nexttesttransform+" "+v[e.nexttesttransform][1]+" "+v[e.nexttesttransform][2])),jquery.each(["parallaxcircles","slidingoverlay","slide","slideover","slideremove","parallax","parralaxto"],function(a,c){b==c+"horizontal"&&(b=1!=d?c+"left":c+"right"),b==c+"vertical"&&(b=1!=d?c+"up":c+"down")}),"random"==b&&(b=math.round(math.random()*v.length-1),b>v.length-1&&(b=v.length-1)),"random-static"==b&&(b=math.round(math.random()*o.length-1),b>o.length-1&&(b=o.length-1),b=o[b]),"random-premium"==b&&(b=math.round(math.random()*p.length-1),b>p.length-1&&(b=p.length-1),b=p[b]);var w=[12,13,14,15,16,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45];if(1==e.isjoomla&&void 0!=window.mootools&&w.indexof(b)!=-1){var x=math.round(math.random()*(p.length-2))+1;x>p.length-1&&(x=p.length-1),0==x&&(x=1),b=p[x]}y(),q>30&&(q=30),q<0&&(q=0);var z=new object;return z.nexttrans=q,z.sta=v[s],z.specials=r,z},f=function(a,b){return void 0==b||jquery.isnumeric(a)?a:void 0==a?a:a.split(",")[b]},g=function(a,b,c,g,h,i,j,k){function v(a,b,c,d,e){var f=a.find(".slot"),g=6,h=[2,1.2,.9,.7,.55,.42],j=a.width(),l=a.height();f.wrap('
');for(var n=0;nl?h[a]*j:h[a]*l,m=i,n=0+(m/2-j/2),o=0+(i/2-l/2),p=0!=a?"50%":"0",q=31==c?l/2-i/2:32==c?l/2-i/2:l/2-i/2,r=33==c?j/2-m/2:34==c?j-m:j/2-m/2,s={scale:1,transformorigo:"50% 50%",width:m+"px",height:i+"px",top:q+"px",left:r+"px",borderradius:p},t={scale:1,top:l/2-i/2,left:j/2-m/2,ease:e},u=31==c?o:32==c?o:o,v=33==c?n:34==c?n+j/2:n,w={width:j,height:l,autoalpha:1,top:u+"px",position:"absolute",left:v+"px"},x={top:o+"px",left:n+"px",ease:e},y=b,z=0;k.add(punchgs.tweenlite.fromto(d,y,s,t),z),k.add(punchgs.tweenlite.fromto(f,y,w,x),z),k.add(punchgs.tweenlite.fromto(d,.001,{autoalpha:0},{autoalpha:1}),0)}})}var l=c[0].opt,m=h.index(),n=g.index(),o=nl.delay?l.delay:t,t+=q[4],l.slots=f(g.data("slotamount"),s),l.slots=void 0==l.slots||"default"==l.slots?q[12]:"random"==l.slots?math.round(12*math.random()+4):l.slots,l.slots=l.slots<1?"boxslide"==b?math.round(6*math.random()+3):"flyin"==b?math.round(4*math.random()+1):l.slots:l.slots,l.slots=(4==a||5==a||6==a)&&l.slots<3?3:l.slots,l.slots=0!=q[3]?math.min(l.slots,q[3]):l.slots,l.slots=9==a?l.width/l.slots:10==a?l.height/l.slots:l.slots,l.rotate=f(g.data("rotate"),s),l.rotate=void 0==l.rotate||"default"==l.rotate?0:999==l.rotate||"random"==l.rotate?math.round(360*math.random()):l.rotate,l.rotate=!jquery.support.transition||l.ie||l.ie9?0:l.rotate,11!=a&&(null!=q[7]&&d(j,l,q[7],q[5]),null!=q[6]&&d(i,l,q[6],q[5])),k.add(punchgs.tweenlite.set(i.find(".defaultvid"),{y:0,x:0,top:0,left:0,scale:1}),0),k.add(punchgs.tweenlite.set(j.find(".defaultvid"),{y:0,x:0,top:0,left:0,scale:1}),0),k.add(punchgs.tweenlite.set(i.find(".defaultvid"),{y:"+0%",x:"+0%"}),0),k.add(punchgs.tweenlite.set(j.find(".defaultvid"),{y:"+0%",x:"+0%"}),0),k.add(punchgs.tweenlite.set(i,{autoalpha:1,y:"+0%",x:"+0%"}),0),k.add(punchgs.tweenlite.set(j,{autoalpha:1,y:"+0%",x:"+0%"}),0),k.add(punchgs.tweenlite.set(i.parent(),{backgroundcolor:"transparent"}),0),k.add(punchgs.tweenlite.set(j.parent(),{backgroundcolor:"transparent"}),0);var u=f(g.data("easein"),s),v=f(g.data("easeout"),s);if(u="default"===u?q[9]||punchgs.power2.easeinout:u||q[9]||punchgs.power2.easeinout,v="default"===v?q[10]||punchgs.power2.easeinout:v||q[10]||punchgs.power2.easeinout,0==a){var w=math.ceil(l.height/l.sloth),x=0;i.find(".slotslide").each(function(a){var b=jquery(this);x+=1,x==w&&(x=0),k.add(punchgs.tweenlite.from(b,t/600,{opacity:0,top:0-l.sloth,left:0-l.slotw,rotation:l.rotate,force3d:"auto",ease:u}),(15*a+30*x)/1500)})}if(1==a){var y,z=0;i.find(".slotslide").each(function(a){var b=jquery(this),c=math.random()*t+300,d=500*math.random()+200;c+d>y&&(y=d+d,z=a),k.add(punchgs.tweenlite.from(b,c/1e3,{autoalpha:0,force3d:"auto",rotation:l.rotate,ease:u}),d/1e3)})}if(2==a){var a=new punchgs.timelinelite;j.find(".slotslide").each(function(){var a=jquery(this);a.add(punchgs.tweenlite.to(a,t/1e3,{left:l.slotw,ease:u,force3d:"auto",rotation:0-l.rotate}),0),k.add(a,0)}),i.find(".slotslide").each(function(){var a=jquery(this);a.add(punchgs.tweenlite.from(a,t/1e3,{left:0-l.slotw,ease:u,force3d:"auto",rotation:l.rotate}),0),k.add(a,0)})}if(3==a){var a=new punchgs.timelinelite;j.find(".slotslide").each(function(){var a=jquery(this);a.add(punchgs.tweenlite.to(a,t/1e3,{top:l.sloth,ease:u,rotation:l.rotate,force3d:"auto",transformperspective:600}),0),k.add(a,0)}),i.find(".slotslide").each(function(){var a=jquery(this);a.add(punchgs.tweenlite.from(a,t/1e3,{top:0-l.sloth,rotation:l.rotate,ease:v,force3d:"auto",transformperspective:600}),0),k.add(a,0)})}if(4==a||5==a){settimeout(function(){j.find(".defaultimg").css({opacity:0})},100);var b=t/1e3,a=new punchgs.timelinelite;j.find(".slotslide").each(function(b){var c=jquery(this),d=b*b/l.slots;5==a&&(d=(l.slots-b-1)*b/l.slots/1.5),a.add(punchgs.tweenlite.to(c,3*b,{transformperspective:600,force3d:"auto",top:0+l.height,opacity:.5,rotation:l.rotate,ease:u,delay:d}),0),k.add(a,0)}),i.find(".slotslide").each(function(b){var c=jquery(this),d=b*b/l.slots;5==a&&(d=(l.slots-b-1)*b/l.slots/1.5),a.add(punchgs.tweenlite.from(c,3*b,{top:0-l.height,opacity:.5,rotation:l.rotate,force3d:"auto",ease:punchgs.eo,delay:d}),0),k.add(a,0)})}if(6==a){l.slots<2&&(l.slots=2),l.slots%2&&(l.slots=l.slots+1);var a=new punchgs.timelinelite;settimeout(function(){j.find(".defaultimg").css({opacity:0})},100),j.find(".slotslide").each(function(a){var b=jquery(this);if(a+1l.delay&&(t=l.delay);var a=new punchgs.timelinelite;settimeout(function(){j.find(".defaultimg").css({opacity:0})},100),j.find(".slotslide").each(function(){var a=jquery(this).find("div");a.add(punchgs.tweenlite.to(a,t/1e3,{left:0-l.slotw/2+"px",top:0-l.height/2+"px",width:2*l.slotw+"px",height:2*l.height+"px",opacity:0,rotation:l.rotate,force3d:"auto",ease:u}),0),k.add(a,0)}),i.find(".slotslide").each(function(a){var b=jquery(this).find("div");a.add(punchgs.tweenlite.fromto(b,t/1e3,{left:0,top:0,opacity:0,transformperspective:600},{left:0-a*l.slotw+"px",ease:v,force3d:"auto",top:"0px",width:l.width,height:l.height,opacity:1,rotation:0,delay:.1}),0),k.add(a,0)})}if(8==a){t=3*t,t>l.delay&&(t=l.delay);var a=new punchgs.timelinelite;j.find(".slotslide").each(function(){var a=jquery(this).find("div");a.add(punchgs.tweenlite.to(a,t/1e3,{left:0-l.width/2+"px",top:0-l.sloth/2+"px",width:2*l.width+"px",height:2*l.sloth+"px",force3d:"auto",ease:u,opacity:0,rotation:l.rotate}),0),k.add(a,0)}),i.find(".slotslide").each(function(a){var b=jquery(this).find("div");a.add(punchgs.tweenlite.fromto(b,t/1e3,{left:0,top:0,opacity:0,force3d:"auto"},{left:"0px",top:0-a*l.sloth+"px",width:i.find(".defaultimg").data("neww")+"px",height:i.find(".defaultimg").data("newh")+"px",opacity:1,ease:v,rotation:0}),0),k.add(a,0)})}if(9==a||10==a){var d=0;i.find(".slotslide").each(function(a){var b=jquery(this);d++,k.add(punchgs.tweenlite.fromto(b,t/2e3,{autoalpha:0,force3d:"auto",transformperspective:600},{autoalpha:1,ease:u,delay:a*l.slots/100/2e3}),0)})}if(27==a||28==a||29==a||30==a){var e=i.find(".slot"),f=27==a||28==a?1:2,g=27==a||29==a?"-100%":"+100%",h=27==a||29==a?"+100%":"-100%",i=27==a||29==a?"-80%":"80%",j=27==a||29==a?"+80%":"-80%",k=27==a||29==a?"+10%":"-10%",l={overwrite:"all"},m={autoalpha:0,zindex:1,force3d:"auto",ease:u},n={position:"inherit",autoalpha:0,overwrite:"all",zindex:1},o={autoalpha:1,force3d:"auto",ease:v},p={overwrite:"all",zindex:2,opacity:1,autoalpha:1},q={autoalpha:1,force3d:"auto",overwrite:"all",ease:u},r={overwrite:"all",zindex:2,autoalpha:1},s={autoalpha:1,force3d:"auto",ease:u},t=1==f?"y":"x";l[t]="0px",m[t]=g,n[t]=k,o[t]="0%",p[t]=h,q[t]=g,r[t]=i,s[t]=j,e.append(''),k.add(punchgs.tweenlite.fromto(j,t/1e3,l,m),0),k.add(punchgs.tweenlite.fromto(i.find(".defaultimg"),t/2e3,n,o),t/2e3),k.add(punchgs.tweenlite.fromto(e,t/1e3,p,q),0),k.add(punchgs.tweenlite.fromto(e.find(".slotslide div"),t/1e3,r,s),0)}if(31==a||32==a||33==a||34==a){t=6e3,u=punchgs.power3.easeinout;var u=t/1e3;mas=u-u/5,_nt=a,fy=31==_nt?"+100%":32==_nt?"-100%":"0%",fx=33==_nt?"+100%":34==_nt?"-100%":"0%",ty=31==_nt?"-100%":32==_nt?"+100%":"0%",tx=33==_nt?"-100%":34==_nt?"+100%":"0%",k.add(punchgs.tweenlite.fromto(j,u-.2*u,{y:0,x:0},{y:ty,x:tx,ease:v}),.2*u),k.add(punchgs.tweenlite.fromto(i,u,{y:fy,x:fx},{y:"0%",x:"0%",ease:u}),0),i.find(".slot").remove(),i.find(".defaultimg").clone().appendto(i).addclass("slot"),v(i,u,_nt,"in",u)}if(11==a){r>4&&(r=0);var d=0,w=2==r?"#000000":3==r?"#ffffff":"transparent";switch(r){case 0:k.add(punchgs.tweenlite.fromto(i,t/1e3,{autoalpha:0},{autoalpha:1,force3d:"auto",ease:u}),0);break;case 1:k.add(punchgs.tweenlite.fromto(i,t/1e3,{autoalpha:0},{autoalpha:1,force3d:"auto",ease:u}),0),k.add(punchgs.tweenlite.fromto(j,t/1e3,{autoalpha:1},{autoalpha:0,force3d:"auto",ease:u}),0);break;case 2:case 3:case 4:k.add(punchgs.tweenlite.set(j.parent(),{backgroundcolor:w,force3d:"auto"}),0),k.add(punchgs.tweenlite.set(i.parent(),{backgroundcolor:"transparent",force3d:"auto"}),0),k.add(punchgs.tweenlite.to(j,t/2e3,{autoalpha:0,force3d:"auto",ease:u}),0),k.add(punchgs.tweenlite.fromto(i,t/2e3,{autoalpha:0},{autoalpha:1,force3d:"auto",ease:u}),t/2e3)}k.add(punchgs.tweenlite.set(i.find(".defaultimg"),{autoalpha:1}),0),k.add(punchgs.tweenlite.set(j.find("defaultimg"),{autoalpha:1}),0)}if(26==a){var d=0;t=0,k.add(punchgs.tweenlite.fromto(i,t/1e3,{autoalpha:0},{autoalpha:1,force3d:"auto",ease:u}),0),k.add(punchgs.tweenlite.to(j,t/1e3,{autoalpha:0,force3d:"auto",ease:u}),0),k.add(punchgs.tweenlite.set(i.find(".defaultimg"),{autoalpha:1}),0),k.add(punchgs.tweenlite.set(j.find("defaultimg"),{autoalpha:1}),0)}if(12==a||13==a||14==a||15==a){t=t,t>l.delay&&(t=l.delay),settimeout(function(){punchgs.tweenlite.set(j.find(".defaultimg"),{autoalpha:0})},100);var x=l.width,y=l.height,z=i.find(".slotslide, .defaultvid"),$=0,_=0,aa=1,ba=1,ca=1,da=t/1e3,ea=da;"fullwidth"!=l.sliderlayout&&"fullscreen"!=l.sliderlayout||(x=z.width(),y=z.height()),12==a?$=x:15==a?$=0-x:13==a?_=y:14==a&&(_=0-y),1==r&&(aa=0),2==r&&(aa=0),3==r&&(da=t/1300),4!=r&&5!=r||(ba=.6),6==r&&(ba=1.4),5!=r&&6!=r||(ca=1.4,aa=0,x=0,y=0,$=0,_=0),6==r&&(ca=.6);7==r&&(x=0,y=0);var ga=i.find(".slotslide"),ha=j.find(".slotslide, .defaultvid");if(k.add(punchgs.tweenlite.set(h,{zindex:15}),0),k.add(punchgs.tweenlite.set(g,{zindex:20}),0),8==r?(k.add(punchgs.tweenlite.set(h,{zindex:20}),0),k.add(punchgs.tweenlite.set(g,{zindex:15}),0),k.add(punchgs.tweenlite.set(ga,{left:0,top:0,scale:1,opacity:1,rotation:0,ease:u,force3d:"auto"}),0)):k.add(punchgs.tweenlite.from(ga,da,{left:$,top:_,scale:ca,opacity:aa,rotation:l.rotate,ease:u,force3d:"auto"}),0),4!=r&&5!=r||(x=0,y=0),1!=r)switch(a){case 12:k.add(punchgs.tweenlite.to(ha,ea,{left:0-x+"px",force3d:"auto",scale:ba,opacity:aa,rotation:l.rotate,ease:v}),0);break;case 15:k.add(punchgs.tweenlite.to(ha,ea,{left:x+"px",force3d:"auto",scale:ba,opacity:aa,rotation:l.rotate,ease:v}),0);break;case 13:k.add(punchgs.tweenlite.to(ha,ea,{top:0-y+"px",force3d:"auto",scale:ba,opacity:aa,rotation:l.rotate,ease:v}),0);break;case 14:k.add(punchgs.tweenlite.to(ha,ea,{top:y+"px",force3d:"auto",scale:ba,opacity:aa,rotation:l.rotate,ease:v}),0)}}if(16==a){var a=new punchgs.timelinelite;k.add(punchgs.tweenlite.set(h,{position:"absolute","z-index":20}),0),k.add(punchgs.tweenlite.set(g,{position:"absolute","z-index":15}),0),h.wrapinner('
'),h.find(".tp-half-one").clone(!0).appendto(h).addclass("tp-half-two"),h.find(".tp-half-two").removeclass("tp-half-one");var x=l.width,y=l.height;"on"==l.autoheight&&(y=c.height()),h.find(".tp-half-one .defaultimg").wrap('
'),h.find(".tp-half-two .defaultimg").wrap('
'),h.find(".tp-half-two .defaultimg").css({position:"absolute",top:"-50%"}),h.find(".tp-half-two .tp-caption").wrapall('
'),k.add(punchgs.tweenlite.set(h.find(".tp-half-two"),{width:x,height:y,overflow:"hidden",zindex:15,position:"absolute",top:y/2,left:"0px",transformperspective:600,transformorigin:"center bottom"}),0),k.add(punchgs.tweenlite.set(h.find(".tp-half-one"),{width:x,height:y/2,overflow:"visible",zindex:10,position:"absolute",top:"0px",left:"0px",transformperspective:600,transformorigin:"center top"}),0);var ja=(h.find(".defaultimg"),math.round(20*math.random()-10)),ka=math.round(20*math.random()-10),la=math.round(20*math.random()-10),ma=.4*math.random()-.2,na=.4*math.random()-.2,oa=1*math.random()+1,pa=1*math.random()+1,qa=.3*math.random()+.3;k.add(punchgs.tweenlite.set(h.find(".tp-half-one"),{overflow:"hidden"}),0),k.add(punchgs.tweenlite.fromto(h.find(".tp-half-one"),t/800,{width:x,height:y/2,position:"absolute",top:"0px",left:"0px",force3d:"auto",transformorigin:"center top"},{scale:oa,rotation:ja,y:0-y-y/4,autoalpha:0,ease:u}),0),k.add(punchgs.tweenlite.fromto(h.find(".tp-half-two"),t/800,{width:x,height:y,overflow:"hidden",position:"absolute",top:y/2,left:"0px",force3d:"auto",transformorigin:"center bottom"},{scale:pa,rotation:ka,y:y+y/4,ease:u,autoalpha:0,oncomplete:function(){punchgs.tweenlite.set(h,{position:"absolute","z-index":15}),punchgs.tweenlite.set(g,{position:"absolute","z-index":20}),h.find(".tp-half-one").length>0&&(h.find(".tp-half-one .defaultimg").unwrap(),h.find(".tp-half-one .slotholder").unwrap()),h.find(".tp-half-two").remove()}}),0),a.add(punchgs.tweenlite.set(i.find(".defaultimg"),{autoalpha:1}),0),null!=h.html()&&k.add(punchgs.tweenlite.fromto(g,(t-200)/1e3,{scale:qa,x:l.width/4*ma,y:y/4*na,rotation:la,force3d:"auto",transformorigin:"center center",ease:v},{autoalpha:1,scale:1,x:0,y:0,rotation:0}),0),k.add(a,0)}if(17==a&&i.find(".slotslide").each(function(a){var b=jquery(this);k.add(punchgs.tweenlite.fromto(b,t/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:u,delay:.06*a}),0)}),18==a&&i.find(".slotslide").each(function(a){var b=jquery(this);k.add(punchgs.tweenlite.fromto(b,t/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:u,delay:.06*a}),0)}),19==a||22==a){var a=new punchgs.timelinelite;k.add(punchgs.tweenlite.set(h,{zindex:20}),0),k.add(punchgs.tweenlite.set(g,{zindex:20}),0),settimeout(function(){j.find(".defaultimg").css({opacity:0})},100);var ra=90,aa=1,sa="center center ";1==o&&(ra=-90),19==a?(sa=sa+"-"+l.height/2,aa=0):sa+=l.height/2,punchgs.tweenlite.set(c,{transformstyle:"flat",backfacevisibility:"hidden",transformperspective:600}),i.find(".slotslide").each(function(a){var b=jquery(this);a.add(punchgs.tweenlite.fromto(b,t/1e3,{transformstyle:"flat",backfacevisibility:"hidden",left:0,rotationy:l.rotate,z:10,top:0,scale:1,force3d:"auto",transformperspective:600,transformorigin:sa,rotationx:ra},{left:0,rotationy:0,top:0,z:0,scale:1,force3d:"auto",rotationx:0,delay:50*a/1e3,ease:u}),0),a.add(punchgs.tweenlite.to(b,.1,{autoalpha:1,delay:50*a/1e3}),0),k.add(a)}),j.find(".slotslide").each(function(a){var b=jquery(this),c=-90;1==o&&(c=90),a.add(punchgs.tweenlite.fromto(b,t/1e3,{transformstyle:"flat",backfacevisibility:"hidden",autoalpha:1,rotationy:0,top:0,z:0,scale:1,force3d:"auto",transformperspective:600,transformorigin:sa,rotationx:0},{autoalpha:1,rotationy:l.rotate,top:0,z:10,scale:1,rotationx:c,delay:50*a/1e3,force3d:"auto",ease:v}),0),k.add(a)}),k.add(punchgs.tweenlite.set(h,{zindex:18}),0)}if(20==a){if(settimeout(function(){j.find(".defaultimg").css({opacity:0})},100),1==o)var ta=-l.width,ra=80,sa="20% 70% -"+l.height/2;else var ta=l.width,ra=-80,sa="80% 70% -"+l.height/2;i.find(".slotslide").each(function(a){var b=jquery(this),c=50*a/1e3;k.add(punchgs.tweenlite.fromto(b,t/1e3,{left:ta,rotationx:40,z:-600,opacity:aa,top:0,scale:1,force3d:"auto",transformperspective:600,transformorigin:sa,transformstyle:"flat",rotationy:ra},{left:0,rotationx:0,opacity:1,top:0,z:0,scale:1,rotationy:0,delay:c,ease:u}),0)}),j.find(".slotslide").each(function(a){var b=jquery(this),c=50*a/1e3;if(c=a>0?c+t/9e3:0,1!=o)var d=-l.width/2,e=30,f="20% 70% -"+l.height/2;else var d=l.width/2,e=-30,f="80% 70% -"+l.height/2;v=punchgs.power2.easeinout,k.add(punchgs.tweenlite.fromto(b,t/1e3,{opacity:1,rotationx:0,top:0,z:0,scale:1,left:0,force3d:"auto",transformperspective:600,transformorigin:f,transformstyle:"flat",rotationy:0},{opacity:1,rotationx:20,top:0,z:-600,left:d,force3d:"auto",rotationy:e,delay:c,ease:v}),0)})}if(21==a||25==a){settimeout(function(){j.find(".defaultimg").css({opacity:0})},100);var ra=90,ta=-l.width,ua=-ra;if(1==o)if(25==a){var sa="center top 0";ra=l.rotate}else{var sa="left center 0";ua=l.rotate}else if(ta=l.width,ra=-90,25==a){var sa="center bottom 0";ua=-ra,ra=l.rotate}else{var sa="right center 0";ua=l.rotate}i.find(".slotslide").each(function(a){var b=jquery(this),c=t/1.5/3;k.add(punchgs.tweenlite.fromto(b,2*c/1e3,{left:0,transformstyle:"flat",rotationx:ua,z:0,autoalpha:0,top:0,scale:1,force3d:"auto",transformperspective:1200,transformorigin:sa,rotationy:ra},{left:0,rotationx:0,top:0,z:0,autoalpha:1,scale:1,rotationy:0,force3d:"auto",delay:c/1e3,ease:u}),0)}),1!=o?(ta=-l.width,ra=90,25==a?(sa="center top 0",ua=-ra,ra=l.rotate):(sa="left center 0",ua=l.rotate)):(ta=l.width,ra=-90,25==a?(sa="center bottom 0",ua=-ra,ra=l.rotate):(sa="right center 0",ua=l.rotate)),j.find(".slotslide").each(function(a){var b=jquery(this);k.add(punchgs.tweenlite.fromto(b,t/1e3,{left:0,transformstyle:"flat",rotationx:0,z:0,autoalpha:1,top:0,scale:1,force3d:"auto",transformperspective:1200,transformorigin:sa,rotationy:0},{left:0,rotationx:ua,top:0,z:0,autoalpha:1,force3d:"auto",scale:1,rotationy:ra,ease:v}),0)})}if(23==a||24==a){settimeout(function(){j.find(".defaultimg").css({opacity:0})},100);var ra=-90,aa=1,va=0;if(1==o&&(ra=90),23==a){var sa="center center -"+l.width/2;aa=0}else var sa="center center "+l.width/2;punchgs.tweenlite.set(c,{transformstyle:"preserve-3d",backfacevisibility:"hidden",perspective:2500}),i.find(".slotslide").each(function(a){var b=jquery(this);k.add(punchgs.tweenlite.fromto(b,t/1e3,{left:va,rotationx:l.rotate,force3d:"auto",opacity:aa,top:0,scale:1,transformperspective:1200,transformorigin:sa,rotationy:ra},{left:0,rotationx:0,autoalpha:1,top:0,z:0,scale:1,rotationy:0,delay:50*a/500,ease:u}),0)}),ra=90,1==o&&(ra=-90),j.find(".slotslide").each(function(b){var c=jquery(this);k.add(punchgs.tweenlite.fromto(c,t/1e3,{left:0,rotationx:0,top:0,z:0,scale:1,force3d:"auto",transformstyle:"flat",transformperspective:1200,transformorigin:sa,rotationy:0},{left:va,rotationx:l.rotate,top:0,scale:1,rotationy:ra,delay:50*b/500,ease:v}),0),23==a&&k.add(punchgs.tweenlite.fromto(c,t/2e3,{autoalpha:1},{autoalpha:0,delay:50*b/500+t/3e3,ease:v}),0)})}return k}}(jquery);