<\/div>');e.find(".tp-half-two .defaultimg").css({position:"absolute",top:"-50%"});e.find(".tp-half-two .tp-caption").wrapAll('
<\/div>');a.add(punchgs.TweenLite.set(e.find(".tp-half-two"),{width:g,height:w,overflow:"hidden",zIndex:15,position:"absolute",top:w/2,left:"0px",transformPerspective:600,transformOrigin:"center bottom"}),0);a.add(punchgs.TweenLite.set(e.find(".tp-half-one"),{width:g,height:w/2,overflow:"visible",zIndex:10,position:"absolute",top:"0px",left:"0px",transformPerspective:600,transformOrigin:"center top"}),0);var er=e.find(".defaultimg"),ki=Math.round(Math.random()*20-10),di=Math.round(Math.random()*20-10),gi=Math.round(Math.random()*20-10),nr=Math.random()*.4-.2,tr=Math.random()*.4-.2,ir=Math.random()*1+1,rr=Math.random()*1+1,ur=Math.random()*.3+.3;a.add(punchgs.TweenLite.set(e.find(".tp-half-one"),{overflow:"hidden"}),0);a.add(punchgs.TweenLite.fromTo(e.find(".tp-half-one"),v/800,{width:g,height:w/2,position:"absolute",top:"0px",left:"0px",force3D:"auto",transformOrigin:"center top"},{scale:ir,rotation:ki,y:0-w-w/4,autoAlpha:0,ease:punchgs.Power2.easeInOut}),0);a.add(punchgs.TweenLite.fromTo(e.find(".tp-half-two"),v/800,{width:g,height:w,overflow:"hidden",position:"absolute",top:w/2,left:"0px",force3D:"auto",transformOrigin:"center bottom"},{scale:rr,rotation:di,y:w+w/4,ease:punchgs.Power2.easeInOut,autoAlpha:0,onComplete:function(){punchgs.TweenLite.set(e,{position:"absolute","z-index":15});punchgs.TweenLite.set(f,{position:"absolute","z-index":20});e.find(".tp-half-one").length>0&&(e.find(".tp-half-one .defaultimg").unwrap(),e.find(".tp-half-one .slotholder").unwrap());e.find(".tp-half-two").remove()}}),0);y.add(punchgs.TweenLite.set(s.find(".defaultimg"),{autoAlpha:1}),0);e.html()!=null&&a.add(punchgs.TweenLite.fromTo(f,(v-200)/1e3,{scale:ur,x:r.width/4*nr,y:w/4*tr,rotation:gi,force3D:"auto",transformOrigin:"center center",ease:punchgs.Power2.easeOut},{autoAlpha:1,scale:1,x:0,y:0,rotation:0}),0);a.add(y,0)}if(l==17&&s.find(".slotslide").each(function(t){var i=n(this);a.add(punchgs.TweenLite.fromTo(i,v/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:punchgs.Power3.easeOut,delay:t*.06}),0)}),l==18&&s.find(".slotslide").each(function(t){var i=n(this);a.add(punchgs.TweenLite.fromTo(i,v/500,{autoAlpha:0,rotationY:310,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:punchgs.Power3.easeOut,delay:t*.06}),0)}),l==19||l==22){y=new punchgs.TimelineLite;a.add(punchgs.TweenLite.set(e,{zIndex:20}),0);a.add(punchgs.TweenLite.set(f,{zIndex:20}),0);setTimeout(function(){o.find(".defaultimg").css({opacity:0})},100);var pi=f.css("z-index"),wi=e.css("z-index"),p=90,tt=1;ut==1&&(p=-90);l==19?(b="center center -"+r.height/2,tt=0):b="center center "+r.height/2;punchgs.TweenLite.set(i,{transformStyle:"flat",backfaceVisibility:"hidden",transformPerspective:600});s.find(".slotslide").each(function(t){var i=n(this);y.add(punchgs.TweenLite.fromTo(i,v/1e3,{transformStyle:"flat",backfaceVisibility:"hidden",left:0,rotationY:r.rotate,z:10,top:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:b,rotationX:p},{left:0,rotationY:0,top:0,z:0,scale:1,force3D:"auto",rotationX:0,delay:t/20,ease:punchgs.Power2.easeInOut}),0);y.add(punchgs.TweenLite.to(i,.1,{autoAlpha:1,delay:t/20}),0);a.add(y)});o.find(".slotslide").each(function(t){var u=n(this),i=-90;ut==1&&(i=90);y.add(punchgs.TweenLite.fromTo(u,v/1e3,{transformStyle:"flat",backfaceVisibility:"hidden",autoAlpha:1,rotationY:0,top:0,z:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:b,rotationX:0},{autoAlpha:1,rotationY:r.rotate,top:0,z:10,scale:1,rotationX:i,delay:t/20,force3D:"auto",ease:punchgs.Power2.easeInOut}),0);a.add(y)})}if(l==20){if(setTimeout(function(){o.find(".defaultimg").css({opacity:0})},100),pi=f.css("z-index"),wi=e.css("z-index"),ut==1)var kt=-r.width,p=70,b="left center -"+r.height/2;else var kt=r.width,p=-70,b="right center -"+r.height/2;s.find(".slotslide").each(function(t){var i=n(this);a.add(punchgs.TweenLite.fromTo(i,v/1500,{left:kt,rotationX:40,z:-600,opacity:tt,top:0,force3D:"auto",transformPerspective:600,transformOrigin:b,rotationY:p},{left:0,delay:t/20,ease:punchgs.Power2.easeInOut}),0);a.add(punchgs.TweenLite.fromTo(i,v/1e3,{rotationX:40,z:-600,opacity:tt,top:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:b,rotationY:p},{rotationX:0,opacity:1,top:0,z:0,scale:1,rotationY:0,delay:t/20,ease:punchgs.Power2.easeInOut}),0);a.add(punchgs.TweenLite.to(i,.1,{opacity:1,force3D:"auto",delay:t/20+v/2e3}),0)});o.find(".slotslide").each(function(t){var i=n(this);if(ut!=1)var u=-r.width,f=70,e="left center -"+r.height/2;else var u=r.width,f=-70,e="right center -"+r.height/2;a.add(punchgs.TweenLite.fromTo(i,v/1e3,{opacity:1,rotationX:0,top:0,z:0,scale:1,left:0,force3D:"auto",transformPerspective:600,transformOrigin:e,rotationY:0},{opacity:1,rotationX:40,top:0,z:-600,left:u,force3D:"auto",scale:.8,rotationY:f,delay:t/20,ease:punchgs.Power2.easeInOut}),0);a.add(punchgs.TweenLite.to(i,.1,{force3D:"auto",opacity:0,delay:t/20+(v/1e3-v/1e4)}),0)})}if((l==21||l==25)&&(setTimeout(function(){o.find(".defaultimg").css({opacity:0})},100),pi=f.css("z-index"),wi=e.css("z-index"),ut==1?(kt=-r.width,p=90,l==25?(b="center top 0",rot2=-p,p=r.rotate):(b="left center 0",rot2=r.rotate)):(kt=r.width,p=-90,l==25?(b="center bottom 0",rot2=-p,p=r.rotate):(b="right center 0",rot2=r.rotate)),s.find(".slotslide").each(function(){var t=n(this);a.add(punchgs.TweenLite.fromTo(t,v/1e3,{left:0,transformStyle:"flat",rotationX:rot2,z:0,autoAlpha:0,top:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:b,rotationY:p},{left:0,rotationX:0,top:0,z:0,autoAlpha:1,scale:1,rotationY:0,force3D:"auto",ease:punchgs.Power3.easeInOut}),0)}),ut!=1?(kt=-r.width,p=90,l==25?(b="center top 0",rot2=-p,p=r.rotate):(b="left center 0",rot2=r.rotate)):(kt=r.width,p=-90,l==25?(b="center bottom 0",rot2=-p,p=r.rotate):(b="right center 0",rot2=r.rotate)),o.find(".slotslide").each(function(){var t=n(this);a.add(punchgs.TweenLite.fromTo(t,v/1e3,{left:0,transformStyle:"flat",rotationX:0,z:0,autoAlpha:1,top:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:b,rotationY:0},{left:0,rotationX:rot2,top:0,z:0,autoAlpha:1,force3D:"auto",scale:1,rotationY:p,ease:punchgs.Power1.easeInOut}),0)})),l==23||l==24){setTimeout(function(){o.find(".defaultimg").css({opacity:0})},100);var pi=f.css("z-index"),wi=e.css("z-index"),p=-90;ut==1&&(p=90);tt=1;l==23?(b="center center -"+r.width/2,tt=0):b="center center "+r.width/2;oi=0;punchgs.TweenLite.set(i,{transformStyle:"preserve-3d",backfaceVisibility:"hidden",perspective:2500});s.find(".slotslide").each(function(t){var i=n(this);a.add(punchgs.TweenLite.fromTo(i,v/1e3,{left:oi,rotationX:r.rotate,force3D:"auto",opacity:tt,top:0,scale:1,transformPerspective:600,transformOrigin:b,rotationY:p},{left:0,rotationX:0,autoAlpha:1,top:0,z:0,scale:1,rotationY:0,delay:t/10,ease:punchgs.Power2.easeInOut}),0)});p=90;ut==1&&(p=-90);o.find(".slotslide").each(function(t){var i=n(this);a.add(punchgs.TweenLite.fromTo(i,v/1e3,{left:0,autoAlpha:1,rotationX:0,top:0,z:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:b,rotationY:0},{left:oi,autoAlpha:1,rotationX:r.rotate,top:0,scale:1,rotationY:p,delay:t/10,ease:punchgs.Power2.easeInOut}),0)})}a.pause();et(f,r,null,a);punchgs.TweenLite.to(f,.001,{autoAlpha:1});ni={};ni.slideIndex=r.next+1;ni.slide=f;i.trigger("revolution.slide.onchange",ni);setTimeout(function(){i.trigger("revolution.slide.onafterswap")},v);i.trigger("revolution.slide.onvideostop")},ui=function(n,t,i,r,u,f,e){punchgs.TweenLite.to(i.find(".defaultimg"),.001,{autoAlpha:1,onComplete:function(){p(n,t,u)}});u.index()!=f.index()&&punchgs.TweenLite.to(f,.2,{autoAlpha:0,onComplete:function(){p(n,t,f)}});t.act=t.next;t.navigationType=="thumb"&<(n);i.data("kenburns")=="on"&&nt(n,t);n.find(".current-sr-slide-visible").removeClass("current-sr-slide-visible");u.addClass("current-sr-slide-visible");(t.parallax=="scroll"||t.parallax=="scroll+mouse"||t.parallax=="mouse+scroll")&&h(n,t);e.clear()},fi=function(t){var e=t.target.getVideoEmbedCode(),f=n("#"+e.split('id="')[1].split('"')[0]),i=f.closest(".tp-simpleresponsive"),o=f.parent().data("player"),u,r;t.data==YT.PlayerState.PLAYING?(u=i.find(".tp-bannertimer"),r=u.data("opt"),f.closest(".tp-caption").data("volume")=="mute"&&o.mute(),r.videoplaying=!0,i.trigger("stoptimer"),i.trigger("revolution.slide.onvideoplay")):(u=i.find(".tp-bannertimer"),r=u.data("opt"),t.data!=-1&&t.data!=3&&(r.videoplaying=!1,i.trigger("starttimer"),i.trigger("revolution.slide.onvideostop")),t.data==0&&r.nextslideatend==!0?r.container.revnext():(r.videoplaying=!1,i.trigger("starttimer"),i.trigger("revolution.slide.onvideostop")))},bi=function(n,t,i){n.addEventListener?n.addEventListener(t,i,!1):n.attachEvent(t,i,!1)},ei=function(t,i){var u=$f(t),f=n("#"+t),r=f.closest(".tp-simpleresponsive"),e=f.closest(".tp-caption");setTimeout(function(){u.addEvent("ready",function(){i&&u.api("play");u.addEvent("play",function(){var n=r.find(".tp-bannertimer"),t=n.data("opt");t.videoplaying=!0;r.trigger("stoptimer");e.data("volume")=="mute"&&u.api("setVolume","0")});u.addEvent("finish",function(){var t=r.find(".tp-bannertimer"),n=t.data("opt");n.videoplaying=!1;r.trigger("starttimer");r.trigger("revolution.slide.onvideoplay");n.nextslideatend==!0&&n.container.revnext()});u.addEvent("pause",function(){var n=r.find(".tp-bannertimer"),t=n.data("opt");t.videoplaying=!1;r.trigger("starttimer");r.trigger("revolution.slide.onvideostop")});e.find(".tp-thumb-image").click(function(){punchgs.TweenLite.to(n(this),.3,{autoAlpha:0,force3D:"auto",ease:punchgs.Power3.easeInOut});u.api("play")})})},150)},ft=function(n,i){var u=i.width(),f=i.height(),r=n.data("mediaAspect"),e,o;r==t&&(r=1);e=u/f;n.css({position:"absolute"});o=n.find("video");e
u.next||nt=u.next||it==u.next||nt==u.next?(e.addClass("tp-is-shown"),b=1):b=0),s=u.width/2-u.startwidth*u.bw/2,y=u.bw,sr=u.bh,u.fullScreen=="on"&&(o=u.height/2-u.startheight*u.bh/2),(u.autoHeight=="on"||u.minHeight!=t&&u.minHeight>0)&&(o=u.container.height()/2-u.startheight*u.bh/2),o<0&&(o=0),kt=0,u.width0||e.find("video").length>0){var rt="iframe"+Math.round(Math.random()*1e5+1),at=e.data("videowidth"),vt=e.data("videoheight"),ut=e.data("videoattributes"),ri=e.data("ytid"),ui=e.data("vimeoid"),hr=e.data("videpreload"),tr=e.data("videomp4"),ir=e.data("videowebm"),dt=e.data("videocontrols"),hi="http",cr=e.data("videoloop")=="loop"?"loop":e.data("videoloop")=="loopandnoslidestop"?"loop":"";e.data("thumbimage")!=t&&e.data("videoposter")==t&&e.data("videoposter",e.data("thumbimage"));ri!=t&&String(ri).length>1&&e.find("iframe").length==0&&(hi="https",dt=="none"&&(ut=ut.replace("controls=1","controls=0"),ut.toLowerCase().indexOf("controls")==-1&&(ut=ut+"&controls=0")),e.append('