|
- (function(ge){var v=jQuery.fn.revolution,V=(v.is_mobile(),v.is_android(),{alias:"LayerAnimation Min JS",name:"revolution.extensions.layeranimation.min.js",min_core:"5.4.6.4",version:"3.6.5"});jQuery.extend(!0,v,{updateMarkup:function(i,t){var e=jQuery(i).data();if(e.start!==void 0&&!e.frames_added&&e.frames===void 0){var a=new Array,r=P(A(),e.transform_in,void 0,!1),n=P(A(),e.transform_out,void 0,!1),o=P(A(),e.transform_hover,void 0,!1);jQuery.isNumeric(e.end)&&jQuery.isNumeric(e.start)&&jQuery.isNumeric(r.speed)&&(e.end=parseInt(e.end,0)-(parseInt(e.start,0)+parseFloat(r.speed,0))),a.push({frame:"0",delay:e.start,from:e.transform_in,to:e.transform_idle,split:e.splitin,speed:r.speed,ease:r.anim.ease,mask:e.mask_in,splitdelay:e.elementdelay}),a.push({frame:"5",delay:e.end,to:e.transform_out,split:e.splitout,speed:n.speed,ease:n.anim.ease,mask:e.mask_out,splitdelay:e.elementdelay}),e.transform_hover&&a.push({frame:"hover",to:e.transform_hover,style:e.style_hover,speed:o.speed,ease:o.anim.ease,splitdelay:e.elementdelay}),e.frames=a}if(!e.frames_added){if(e.inframeindex=0,e.outframeindex=-1,e.hoverframeindex=-1,e.frames!==void 0)for(var s=0;s<e.frames.length;s++)e.frames[s].sfx_effect!==void 0&&0<=e.frames[s].sfx_effect.indexOf("block")&&(s===0?(e.frames[s].from="o:0",e.frames[s].to="o:1"):e.frames[s].to="o:0",e._sfx="block"),e.frames[0].from===void 0&&(e.frames[0].from="o:inherit"),e.frames[0].delay===0&&(e.frames[0].delay=20),e.frames[s].frame==="hover"?e.hoverframeindex=s:e.frames[s].frame!=="frame_999"&&e.frames[s].frame!=="frame_out"&&e.frames[s].frame!=="last"&&e.frames[s].frame!=="end"||(e.outframeindex=s),e.frames[s].split!==void 0&&e.frames[s].split.match(/chars|words|lines/g)&&(e.splittext=!0);e.outframeindex=e.outframeindex===-1?e.hoverframeindex===-1?e.frames.length-1:e.frames.length-2:e.outframeindex,e.frames_added=!0}},animcompleted:function(i,t){var e=i.data(),a=e.videotype,r=e.autoplay,n=e.autoplayonlyfirsttime;a!=null&&a!="none"&&(r==1||r=="true"||r=="on"||r=="1sttime"||n?((t.sliderType!=="carousel"||t.sliderType==="carousel"&&t.carousel.showLayersAllTime==="on"&&i.closest("li").hasClass("active-revslide")||t.sliderType==="carousel"&&t.carousel.showLayersAllTime!=="on"&&i.closest("li").hasClass("active-revslide"))&&v.playVideo(i,t),v.toggleState(i.data("videotoggledby")),(n||r=="1sttime")&&(e.autoplayonlyfirsttime=!1,e.autoplay="off")):(r=="no1sttime"&&(e.datasetautoplay="on"),v.unToggleState(i.data("videotoggledby"))))},handleStaticLayers:function(i,t){var e=parseInt(i.data("startslide"),0),a=parseInt(i.data("endslide"),0);e<0&&(e=0),a<0&&(a=t.realslideamount),e===0&&a===t.realslideamount-1&&(a=t.realslideamount+1),i.data("startslide",e),i.data("endslide",a)},animateTheCaptions:function(i){if(v.compare_version(V).check==="stop")return!1;var t=i.opt,e=i.slide,a=i.recall,r=i.maintimeline,n=i.preset,o=i.startslideanimat,s=t.sliderType==="carousel"?0:t.width/2-t.gridwidth[t.curWinRange]*t.bw/2,l=e.data("index");if(t.layers=t.layers||new Object,t.layers[l]=t.layers[l]||e.find(".tp-caption"),t.layers.static=t.layers.static||t.c.find(".tp-static-layers").find(".tp-caption"),t.timelines===void 0&&v.createTimelineStructure(t),t.conh=t.c.height(),t.conw=t.c.width(),t.ulw=t.ul.width(),t.ulh=t.ul.height(),t.debugMode){e.addClass("indebugmode"),e.find(".helpgrid").remove(),t.c.find(".hglayerinfo").remove(),e.append('<div class="helpgrid" style="width:'+t.gridwidth[t.curWinRange]*t.bw+"px;height:"+t.gridheight[t.curWinRange]*t.bw+'px;"></div>');var d=e.find(".helpgrid");d.append('<div class="hginfo">Zoom:'+Math.round(100*t.bw)+"% Device Level:"+t.curWinRange+" Grid Preset:"+t.gridwidth[t.curWinRange]+"x"+t.gridheight[t.curWinRange]+"</div>"),t.c.append('<div class="hglayerinfo"></div>'),d.append('<div class="tlhg"></div>')}l!==void 0&&t.layers[l]&&jQuery.each(t.layers[l],function(g,m){var p=jQuery(this);v.updateMarkup(this,t),v.prepareSingleCaption({caption:p,opt:t,offsetx:s,offsety:0,index:g,recall:a,preset:n}),n&&o!==0||v.buildFullTimeLine({caption:p,opt:t,offsetx:s,offsety:0,index:g,recall:a,preset:n,regenerate:o===0}),a&&t.sliderType==="carousel"&&t.carousel.showLayersAllTime==="on"&&v.animcompleted(p,t)}),t.layers.static&&jQuery.each(t.layers.static,function(g,m){var p=jQuery(this),_=p.data();_.hoveredstatus!==!0&&_.inhoveroutanimation!==!0?(v.updateMarkup(this,t),v.prepareSingleCaption({caption:p,opt:t,offsetx:s,offsety:0,index:g,recall:a,preset:n}),n&&o!==0||_.veryfirstststic===!0||(v.buildFullTimeLine({caption:p,opt:t,offsetx:s,offsety:0,index:g,recall:a,preset:n,regenerate:o===0}),_.veryfirstststic=!0),a&&t.sliderType==="carousel"&&t.carousel.showLayersAllTime==="on"&&v.animcompleted(p,t)):v.prepareSingleCaption({caption:p,opt:t,offsetx:s,offsety:0,index:g,recall:a,preset:n})});var c=t.nextSlide===-1||t.nextSlide===void 0?0:t.nextSlide;t.rowzones!==void 0&&(c=c>t.rowzones.length?t.rowzones.length:c),t.rowzones!=null&&0<t.rowzones.length&&t.rowzones[c]!=null&&0<=c&&c<=t.rowzones.length&&0<t.rowzones[c].length&&v.setSize(t),n||o!==void 0&&(l!==void 0&&jQuery.each(t.timelines[l].layers,function(g,m){var p=m.layer.data();m.wrapper!=="none"&&m.wrapper!==void 0||(m.triggerstate=="keep"&&p.triggerstate==="on"?v.playAnimationFrame({caption:m.layer,opt:t,frame:"frame_0",triggerdirection:"in",triggerframein:"frame_0",triggerframeout:"frame_999"}):m.timeline.restart())}),t.timelines.staticlayers&&jQuery.each(t.timelines.staticlayers.layers,function(g,m){var p=m.layer.data(),_=c>=m.firstslide&&c<=m.lastslide,x=c<m.firstslide||c>m.lastslide,u=m.timeline.getLabelTime("slide_"+m.firstslide),h=m.timeline.getLabelTime("slide_"+m.lastslide),f=p.static_layer_timeline_time,b=p.animdirection==="in"||p.animdirection!=="out"&&void 0,j=p.frames[0].delay==="bytrigger",y=(p.frames[p.frames.length-1].delay,p.triggered_startstatus),I=p.lasttriggerstate;p.hoveredstatus!==!0&&p.inhoveroutanimation!=1&&(f!==void 0&&b&&(I=="keep"?(v.playAnimationFrame({caption:m.layer,opt:t,frame:"frame_0",triggerdirection:"in",triggerframein:"frame_0",triggerframeout:"frame_999"}),p.triggeredtimeline.time(f)):p.hoveredstatus!==!0&&m.timeline.time(f)),I==="reset"&&y==="hidden"&&(m.timeline.time(0),p.animdirection="out"),_?b?c===m.lastslide&&(m.timeline.play(h),p.animdirection="in"):(j||p.animdirection==="in"||m.timeline.play(u),(y=="visible"&&I!=="keep"||I==="keep"&&b===!0||y=="visible"&&b===void 0)&&(m.timeline.play(u+.01),p.animdirection="in")):x&&b&&m.timeline.play("frame_999"))})),r!=null&&setTimeout(function(){r.resume()},30)},prepareSingleCaption:function(i){var t=i.caption,e=t.data(),a=i.opt,r=i.recall,n=i.recall,o=(i.preset,jQuery("body").hasClass("rtl"));if(e._pw=e._pw===void 0?t.closest(".tp-parallax-wrap"):e._pw,e._lw=e._lw===void 0?t.closest(".tp-loop-wrap"):e._lw,e._mw=e._mw===void 0?t.closest(".tp-mask-wrap"):e._mw,e._responsive=e.responsive||"on",e._respoffset=e.responsive_offset||"on",e._ba=e.basealign||"grid",e._gw=e._ba==="grid"?a.width:a.ulw,e._gh=e._ba==="grid"?a.height:a.ulh,e._lig=e._lig===void 0?t.hasClass("rev_layer_in_group")?t.closest(".rev_group"):t.hasClass("rev_layer_in_column")?t.closest(".rev_column_inner"):t.hasClass("rev_column_inner")?t.closest(".rev_row"):"none":e._lig,e._column=e._column===void 0?t.hasClass("rev_column_inner")?t.closest(".rev_column"):"none":e._column,e._row=e._row===void 0?t.hasClass("rev_column_inner")?t.closest(".rev_row"):"none":e._row,e._ingroup=e._ingroup===void 0?!(t.hasClass("rev_group")||!t.closest(".rev_group")):e._ingroup,e._isgroup=e._isgroup===void 0?!!t.hasClass("rev_group"):e._isgroup,e._nctype=e.type||"none",e._cbgc_auto=e._cbgc_auto===void 0?e._nctype==="column"&&e._pw.find(".rev_column_bg_auto_sized"):e._cbgc_auto,e._cbgc_man=e._cbgc_man===void 0?e._nctype==="column"&&e._pw.find(".rev_column_bg_man_sized"):e._cbgc_man,e._slideid=e._slideid||t.closest(".tp-revslider-slidesli").data("index"),e._id=e._id===void 0?t.data("id")||t.attr("id"):e._id,e._slidelink=e._slidelink===void 0?t.hasClass("slidelink")!==void 0&&t.hasClass("slidelink"):e._slidelink,e._li===void 0&&(t.hasClass("tp-static-layer")?(e._isstatic=!0,e._li=t.closest(".tp-static-layers"),e._slideid="staticlayers"):e._li=t.closest(".tp-revslider-slidesli")),e._row=e._row===void 0?e._nctype==="column"&&e._pw.closest(".rev_row"):e._row,e._togglelisteners===void 0&&t.find(".rs-toggled-content")?(e._togglelisteners=!0,e.actions===void 0&&t.click(function(){v.swaptoggleState(t)})):e._togglelisteners=!1,a.sliderLayout=="fullscreen"&&(i.offsety=e._gh/2-a.gridheight[a.curWinRange]*a.bh/2),(a.autoHeight=="on"||a.minHeight!=null&&0<a.minHeight)&&(i.offsety=a.conh/2-a.gridheight[a.curWinRange]*a.bh/2),i.offsety<0&&(i.offsety=0),a.debugMode){t.closest("li").find(".helpgrid").css({top:i.offsety+"px",left:i.offsetx+"px"});var s=a.c.find(".hglayerinfo");t.on("hover, mouseenter",function(){var D="";t.data()&&jQuery.each(t.data(),function(pe,ee){typeof ee!="object"&&(D=D+'<span style="white-space:nowrap"><span style="color:#27ae60">'+pe+":</span>"+ee+"</span> ")}),s.html(D)})}if((e.visibility===void 0?"oon":T(e.visibility,a)[a.forcedWinRange]||T(e.visibility,a)||"ooon")==="off"||e._gw<a.hideCaptionAtLimit&&e.captionhidden=="on"||e._gw<a.hideAllCaptionAtLimit?e._pw.addClass("tp-hidden-caption"):e._pw.removeClass("tp-hidden-caption"),e.layertype="html",i.offsetx<0&&(i.offsetx=0),e.thumbimage!=null&&e.videoposter==null&&(e.videoposter=e.thumbimage),0<t.find("img").length){var l=t.find("img");e.layertype="image",l.width()==0&&l.css({width:"auto"}),l.height()==0&&l.css({height:"auto"}),l.data("ww")==null&&0<l.width()&&l.data("ww",l.width()),l.data("hh")==null&&0<l.height()&&l.data("hh",l.height());var d=l.data("ww"),c=l.data("hh"),g=e._ba=="slide"?a.ulw:a.gridwidth[a.curWinRange],m=e._ba=="slide"?a.ulh:a.gridheight[a.curWinRange],p=(d=T(l.data("ww"),a)[a.curWinRange]||T(l.data("ww"),a)||"auto")==="full"||d==="full-proportional",_=(c=T(l.data("hh"),a)[a.curWinRange]||T(l.data("hh"),a)||"auto")==="full"||c==="full-proportional";if(d==="full-proportional"){var x=l.data("owidth"),u=l.data("oheight");x/g<u/m?c=u*((d=g)/x):d=x*((c=m)/u)}else d=p?g:!jQuery.isNumeric(d)&&0<d.indexOf("%")?d:parseFloat(d),c=_?m:!jQuery.isNumeric(c)&&0<c.indexOf("%")?c:parseFloat(c);d=d===void 0?0:d,c=c===void 0?0:c,e._responsive!=="off"?(e._ba!="grid"&&p?jQuery.isNumeric(d)?l.css({width:d+"px"}):l.css({width:d}):jQuery.isNumeric(d)?l.css({width:d*a.bw+"px"}):l.css({width:d}),e._ba!="grid"&&_?jQuery.isNumeric(c)?l.css({height:c+"px"}):l.css({height:c}):jQuery.isNumeric(c)?l.css({height:c*a.bh+"px"}):l.css({height:c})):l.css({width:d,height:c}),e._ingroup&&e._nctype!=="row"&&(d!==void 0&&!jQuery.isNumeric(d)&&jQuery.type(d)==="string"&&0<d.indexOf("%")&&punchgs.TweenLite.set([e._lw,e._pw,e._mw],{minWidth:d}),c!==void 0&&!jQuery.isNumeric(c)&&jQuery.type(c)==="string"&&0<c.indexOf("%")&&punchgs.TweenLite.set([e._lw,e._pw,e._mw],{minHeight:c}))}if(e._ba==="slide")i.offsetx=0,i.offsety=0;else if(e._isstatic&&a.carousel!==void 0&&a.carousel.horizontal_align!==void 0&&a.sliderType==="carousel"){switch(a.carousel.horizontal_align){case"center":i.offsetx=0+(a.ulw-a.gridwidth[a.curWinRange]*a.bw)/2;break;case"left":break;case"right":i.offsetx=a.ulw-a.gridwidth[a.curWinRange]*a.bw}i.offsetx=i.offsetx<0?0:i.offsetx}var h=e.audio=="html5"?"audio":"video";if(t.hasClass("tp-videolayer")||t.hasClass("tp-audiolayer")||0<t.find("iframe").length||0<t.find(h).length){e.layertype="video",v.manageVideoLayer&&v.manageVideoLayer(t,a,r,n),!r&&!n&&(e.videotype,v.resetVideo&&v.resetVideo(t,a,i.preset));var f=e.aspectratio;f!=null&&1<f.split(":").length&&v.prepareCoveredVideo(a,t),l=t.find("iframe")?t.find("iframe"):l=t.find(h);var b=!t.find("iframe"),j=t.hasClass("coverscreenvideo");l.css({display:"block"}),t.data("videowidth")==null&&(t.data("videowidth",l.width()),t.data("videoheight",l.height())),d=T(t.data("videowidth"),a)[a.curWinRange]||T(t.data("videowidth"),a)||"auto",c=T(t.data("videoheight"),a)[a.curWinRange]||T(t.data("videoheight"),a)||"auto",d=d==="auto"||!jQuery.isNumeric(d)&&0<d.indexOf("%")?d==="auto"?"auto":e._ba==="grid"?a.gridwidth[a.curWinRange]*a.bw:e._gw:parseFloat(d)*a.bw+"px",c=c==="auto"||!jQuery.isNumeric(c)&&0<c.indexOf("%")?c==="auto"?"auto":e._ba==="grid"?a.gridheight[a.curWinRange]*a.bw:e._gh:parseFloat(c)*a.bh+"px",e.cssobj=e.cssobj===void 0?J(t,0):e.cssobj;var y=q(e.cssobj,a);if(y.lineHeight=="auto"&&(y.lineHeight=y.fontSize+4),t.hasClass("fullscreenvideo")||j){i.offsetx=0,i.offsety=0,t.data("x",0),t.data("y",0);var I=e._gh;a.autoHeight=="on"&&(I=a.conh),t.css({width:e._gw,height:I})}else punchgs.TweenLite.set(t,{paddingTop:Math.round(y.paddingTop*a.bh)+"px",paddingBottom:Math.round(y.paddingBottom*a.bh)+"px",paddingLeft:Math.round(y.paddingLeft*a.bw)+"px",paddingRight:Math.round(y.paddingRight*a.bw)+"px",marginTop:y.marginTop*a.bh+"px",marginBottom:y.marginBottom*a.bh+"px",marginLeft:y.marginLeft*a.bw+"px",marginRight:y.marginRight*a.bw+"px",borderTopWidth:Math.round(y.borderTopWidth*a.bh)+"px",borderBottomWidth:Math.round(y.borderBottomWidth*a.bh)+"px",borderLeftWidth:Math.round(y.borderLeftWidth*a.bw)+"px",borderRightWidth:Math.round(y.borderRightWidth*a.bw)+"px",width:d,height:c});(b==0&&!j||e.forcecover!=1&&!t.hasClass("fullscreenvideo")&&!j)&&(l.width(d),l.height(c)),e._ingroup&&e.videowidth!==null&&e.videowidth!==void 0&&!jQuery.isNumeric(e.videowidth)&&0<e.videowidth.indexOf("%")&&punchgs.TweenLite.set([e._lw,e._pw,e._mw],{minWidth:e.videowidth})}K(t,a,0,e._responsive),t.hasClass("tp-resizeme")&&t.find("*").each(function(){K(jQuery(this),a,"rekursive",e._responsive)});var L=t.outerHeight(),R=t.css("backgroundColor");X(t,".frontcorner","left","borderRight","borderTopColor",L,R),X(t,".frontcornertop","left","borderRight","borderBottomColor",L,R),X(t,".backcorner","right","borderLeft","borderBottomColor",L,R),X(t,".backcornertop","right","borderLeft","borderTopColor",L,R),a.fullScreenAlignForce=="on"&&(i.offsetx=0,i.offsety=0),e._sfx==="block"&&e._bmask===void 0&&(e._bmask=jQuery('<div class="tp-blockmask"></div>'),e._mw.append(e._bmask)),e.arrobj=new Object,e.arrobj.voa=T(e.voffset,a)[a.curWinRange]||T(e.voffset,a)[0],e.arrobj.hoa=T(e.hoffset,a)[a.curWinRange]||T(e.hoffset,a)[0],e.arrobj.elx=T(e.x,a)[a.curWinRange]||T(e.x,a)[0],e.arrobj.ely=T(e.y,a)[a.curWinRange]||T(e.y,a)[0];var O=e.arrobj.voa.length==0?0:e.arrobj.voa,Q=e.arrobj.hoa.length==0?0:e.arrobj.hoa,W=e.arrobj.elx.length==0?0:e.arrobj.elx,w=e.arrobj.ely.length==0?0:e.arrobj.ely;e.eow=t.outerWidth(!0),e.eoh=t.outerHeight(!0),e.eow==0&&e.eoh==0&&(e.eow=a.ulw,e.eoh=a.ulh);var k=e._respoffset!=="off"?parseInt(O,0)*a.bw:parseInt(O,0),S=e._respoffset!=="off"?parseInt(Q,0)*a.bw:parseInt(Q,0),C=e._ba==="grid"?a.gridwidth[a.curWinRange]*a.bw:e._gw,F=e._ba==="grid"?a.gridheight[a.curWinRange]*a.bw:e._gh;a.fullScreenAlignForce=="on"&&(C=a.ulw,F=a.ulh),e._lig!=="none"&&e._lig!=null&&(C=e._lig.width(),F=e._lig.height(),i.offsetx=0,i.offsety=0),W=W==="center"||W==="middle"?C/2-e.eow/2+S:W==="left"?S:W==="right"?C-e.eow-S:e._respoffset!=="off"?W*a.bw:W,w=w=="center"||w=="middle"?F/2-e.eoh/2+k:w=="top"?k:w=="bottom"?F-e.eoh-k:e._respoffset!=="off"?w*a.bw:w,o&&!e._slidelink&&(W+=e.eow),e._slidelink&&(W=0),e.calcx=parseInt(W,0)+i.offsetx,e.calcy=parseInt(w,0)+i.offsety;var N=t.css("z-Index");if(e._nctype!=="row"&&e._nctype!=="column")punchgs.TweenLite.set(e._pw,{zIndex:N,top:e.calcy,left:e.calcx,overwrite:"auto"});else if(e._nctype!=="row")punchgs.TweenLite.set(e._pw,{zIndex:N,width:e.columnwidth,top:0,left:0,overwrite:"auto"});else if(e._nctype==="row"){var le=e._ba==="grid"?C+"px":"100%";punchgs.TweenLite.set(e._pw,{zIndex:N,width:le,top:0,left:i.offsetx,overwrite:"auto"})}if(e.blendmode!==void 0&&punchgs.TweenLite.set(e._pw,{mixBlendMode:e.blendmode}),e._nctype==="row"&&(e.columnbreak<=a.curWinRange?t.addClass("rev_break_columns"):t.removeClass("rev_break_columns")),e.loopanimation=="on"&&punchgs.TweenLite.set(e._lw,{minWidth:e.eow,minHeight:e.eoh}),e._nctype==="column"){var me=t[0]._gsTransform!==void 0?t[0]._gsTransform.y:0,ce=parseInt(e._column[0].style.paddingTop,0);punchgs.TweenLite.set(t,{y:0}),punchgs.TweenLite.set(e._cbgc_man,{y:parseInt(ce+e._column.offset().top-t.offset().top,0)}),punchgs.TweenLite.set(t,{y:me})}e._ingroup&&e._nctype!=="row"&&(e._groupw!==void 0&&!jQuery.isNumeric(e._groupw)&&0<e._groupw.indexOf("%")&&punchgs.TweenLite.set([e._lw,e._pw,e._mw],{minWidth:e._groupw}),e._grouph!==void 0&&!jQuery.isNumeric(e._grouph)&&0<e._grouph.indexOf("%")&&punchgs.TweenLite.set([e._lw,e._pw,e._mw],{minHeight:e._grouph}))},createTimelineStructure:function(i){i.timelines=i.timelines||new Object,i.c.find(".tp-revslider-slidesli, .tp-static-layers").each(function(){var t=jQuery(this),e=t.data("index");i.timelines[e]=i.timelines[e]||{},i.timelines[e].layers=i.timelines[e].layers||new Object,t.find(".tp-caption").each(function(a){var r,n,o,s,l;r=jQuery(this),n=i.timelines[e].layers,o=e,l=new punchgs.TimelineLite({paused:!0}),(n=n||new Object)[r.attr("id")]=n[r.attr("id")]||new Object,o==="staticlayers"&&(n[r.attr("id")].firstslide=r.data("startslide"),n[r.attr("id")].lastslide=r.data("endslide")),r.data("slideid",o),n[r.attr("id")].defclasses=s=r[0].className,n[r.attr("id")].wrapper=0<=s.indexOf("rev_layer_in_column")?r.closest(".rev_column_inner"):0<=s.indexOf("rev_column_inner")?r.closest(".rev_row"):0<=s.indexOf("rev_layer_in_group")?r.closest(".rev_group"):"none",n[r.attr("id")].timeline=l,n[r.attr("id")].layer=r,n[r.attr("id")].triggerstate=r.data("lasttriggerstate"),n[r.attr("id")].dchildren=0<=s.indexOf("rev_row")?r[0].getElementsByClassName("rev_column_inner"):0<=s.indexOf("rev_column_inner")?r[0].getElementsByClassName("tp-caption"):0<=s.indexOf("rev_group")?r[0].getElementsByClassName("rev_layer_in_group"):"none",r.data("timeline",l)})})},buildFullTimeLine:function(i){var t,e,a=i.caption,r=a.data(),n=i.opt,o={},s=re();if(!(t=n.timelines[r._slideid].layers[r._id]).generated||i.regenerate===!0){if(e=t.timeline,t.generated=!0,r.current_timeline!==void 0&&i.regenerate!==!0?(r.current_timeline_pause=r.current_timeline.paused(),r.current_timeline_time=r.current_timeline.time(),r.current_is_nc_timeline=e===r.current_timeline,r.static_layer_timeline_time=r.current_timeline_time):(r.static_layer_timeline_time=r.current_timeline_time,r.current_timeline_time=0,r.current_timeline&&r.current_timeline.clear()),e.clear(),o.svg=r.svg_src!=null&&a.find("svg"),o.svg&&(r.idlesvg=E(r.svg_idle,Z()),punchgs.TweenLite.set(o.svg,r.idlesvg.anim)),r.hoverframeindex!==-1&&r.hoverframeindex!==void 0&&!a.hasClass("rs-hover-ready")){if(a.addClass("rs-hover-ready"),r.hovertimelines={},r.hoveranim=P(s,r.frames[r.hoverframeindex].to),r.hoveranim=oe(r.hoveranim,r.frames[r.hoverframeindex].style),o.svg){var l=E(r.svg_hover,Z());r.hoveranim.anim.color!=null&&(l.anim.fill=r.hoveranim.anim.color,r.idlesvg.anim.css.fill=o.svg.css("fill")),r.hoversvg=l}a.hover(function(p){var _={caption:jQuery(p.currentTarget),opt:n,firstframe:"frame_0",lastframe:"frame_999"},x=(B(_),_.caption),u=x.data(),h=u.frames[u.hoverframeindex];u.forcehover=h.force,u.hovertimelines.item=punchgs.TweenLite.to(x,h.speed/1e3,u.hoveranim.anim),(u.hoverzIndex||u.hoveranim.anim&&u.hoveranim.anim.zIndex)&&(u.basiczindex=u.basiczindex===void 0?u.cssobj.zIndex:u.basiczindex,u.hoverzIndex=u.hoverzIndex===void 0?u.hoveranim.anim.zIndex:u.hoverzIndex,u.inhoverinanimation=!0,h.speed===0&&(u.inhoverinanimation=!1),u.hovertimelines.pwhoveranim=punchgs.TweenLite.to(u._pw,h.speed/1e3,{overwrite:"auto",zIndex:u.hoverzIndex}),u.hovertimelines.pwhoveranim.eventCallback("onComplete",function(f){f.inhoverinanimation=!1},[u])),o.svg&&(u.hovertimelines.svghoveranim=punchgs.TweenLite.to([o.svg,o.svg.find("path")],h.speed/1e3,u.hoversvg.anim)),u.hoveredstatus=!0},function(p){var _={caption:jQuery(p.currentTarget),opt:n,firstframe:"frame_0",lastframe:"frame_999"},x=(B(_),_.caption),u=x.data(),h=u.frames[u.hoverframeindex];u.hoveredstatus=!1,u.inhoveroutanimation=!0,u.hovertimelines.item.pause(),u.hovertimelines.item=punchgs.TweenLite.to(x,h.speed/1e3,jQuery.extend(!0,{},u._gsTransformTo)),h.speed==0&&(u.inhoveroutanimation=!1),u.hovertimelines.item.eventCallback("onComplete",function(f){f.inhoveroutanimation=!1},[u]),u.hovertimelines.pwhoveranim!==void 0&&(u.hovertimelines.pwhoveranim=punchgs.TweenLite.to(u._pw,h.speed/1e3,{overwrite:"auto",zIndex:u.basiczindex})),o.svg&&punchgs.TweenLite.to([o.svg,o.svg.find("path")],h.speed/1e3,u.idlesvg.anim)})}for(var d=0;d<r.frames.length;d++)if(d!==r.hoverframeindex){var c=d===r.inframeindex?"frame_0":d===r.outframeindex||r.frames[d].frame==="frame_999"?"frame_999":"frame_"+d;t[r.frames[d].framename=c]={},t[c].timeline=new punchgs.TimelineLite({align:"normal"});var g=r.frames[d].delay,m=(r.triggered_startstatus,g!==void 0?0<=jQuery.inArray(g,["slideenter","bytrigger","wait"])?g:parseInt(g,0)/1e3:"wait");t.firstslide!==void 0&&c==="frame_0"&&(e.addLabel("slide_"+t.firstslide+"_pause",0),e.addPause("slide_"+t.firstslide+"_pause"),e.addLabel("slide_"+t.firstslide,"+=0.005")),t.lastslide!==void 0&&c==="frame_999"&&(e.addLabel("slide_"+t.lastslide+"_pause","+=0.01"),e.addPause("slide_"+t.lastslide+"_pause"),e.addLabel("slide_"+t.lastslide,"+=0.005")),jQuery.isNumeric(m)?e.addLabel(c,"+="+m):(e.addLabel("pause_"+d,"+=0.01"),e.addPause("pause_"+d),e.addLabel(c,"+=0.01")),e=v.createFrameOnTimeline({caption:i.caption,timeline:e,label:c,frameindex:d,opt:n})}i.regenerate||(r.current_is_nc_timeline&&(r.current_timeline=e),r.current_timeline_pause?e.pause(r.current_timeline_time):e.time(r.current_timeline_time))}},createFrameOnTimeline:function(i){var t=i.caption,e=t.data(),a=i.label,r=i.timeline,n=i.frameindex,o=i.opt,s=t,l={},d=o.timelines[e._slideid].layers[e._id],c=e.frames.length-1,g=e.frames[n].split,m=e.frames[n].split_direction,p=e.frames[n].sfx_effect,_=!1;if(m=m===void 0?"forward":m,e.hoverframeindex!==-1&&e.hoverframeindex==c&&(c-=1),l.content=new punchgs.TimelineLite({align:"normal"}),l.mask=new punchgs.TimelineLite({align:"normal"}),r.vars.id===void 0&&(r.vars.id=Math.round(1e5*Math.random())),e._nctype==="column"&&(r.add(punchgs.TweenLite.set(e._cbgc_man,{visibility:"visible"}),a),r.add(punchgs.TweenLite.set(e._cbgc_auto,{visibility:"hidden"}),a)),e.splittext&&n===0){e.mySplitText!==void 0&&e.mySplitText.revert();var x=0<t.find("a").length?t.find("a"):t;e.mySplitText=new punchgs.SplitText(x,{type:"chars,words,lines",charsClass:"tp-splitted tp-charsplit",wordsClass:"tp-splitted tp-wordsplit",linesClass:"tp-splitted tp-linesplit"}),t.addClass("splitted")}e.mySplitText!==void 0&&g&&g.match(/chars|words|lines/g)&&(s=e.mySplitText[g],_=!0);var u,h,f=n!==e.outframeindex?P(A(),e.frames[n].to,void 0,_,s.length-1):e.frames[n].to!==void 0&&e.frames[n].to.match(/auto:auto/g)===null?P(U(),e.frames[n].to,o.sdir==1,_,s.length-1):P(U(),e.frames[e.inframeindex].from,o.sdir==0,_,s.length-1),b=e.frames[n].from!==void 0?P(f,e.frames[e.inframeindex].from,o.sdir==1,_,s.length-1):void 0,j=e.frames[n].splitdelay;if(n!==0||i.fromcurrentstate?h=G(e.frames[n].mask):u=G(e.frames[n].mask),f.anim.ease=e.frames[n].ease===void 0?punchgs.Power1.easeInOut:e.frames[n].ease,b!==void 0&&(b.anim.ease=e.frames[n].ease===void 0?punchgs.Power1.easeInOut:e.frames[n].ease,b.speed=e.frames[n].speed===void 0?b.speed:e.frames[n].speed,b.anim.x=b.anim.x*o.bw||M(b.anim.x,o,e.eow,e.eoh,e.calcy,e.calcx,"horizontal"),b.anim.y=b.anim.y*o.bw||M(b.anim.y,o,e.eow,e.eoh,e.calcy,e.calcx,"vertical")),f!==void 0&&(f.anim.ease=e.frames[n].ease===void 0?punchgs.Power1.easeInOut:e.frames[n].ease,f.speed=e.frames[n].speed===void 0?f.speed:e.frames[n].speed,f.anim.x=f.anim.x*o.bw||M(f.anim.x,o,e.eow,e.eoh,e.calcy,e.calcx,"horizontal"),f.anim.y=f.anim.y*o.bw||M(f.anim.y,o,e.eow,e.eoh,e.calcy,e.calcx,"vertical")),t.data("iframes")&&r.add(punchgs.TweenLite.set(t.find("iframe"),{autoAlpha:1}),a+"+=0.001"),n===e.outframeindex&&(e.frames[n].to&&e.frames[n].to.match(/auto:auto/g),f.speed=e.frames[n].speed===void 0||e.frames[n].speed==="inherit"?e.frames[e.inframeindex].speed:e.frames[n].speed,f.anim.ease=e.frames[n].ease===void 0||e.frames[n].ease==="inherit"?e.frames[e.inframeindex].ease:e.frames[n].ease,f.anim.overwrite="auto"),n!==0||i.fromcurrentstate)n===0&&i.fromcurrentstate&&(f.speed=b.speed);else{if(s!=t){var y=jQuery.extend({},f.anim,!0);r.add(punchgs.TweenLite.set(t,f.anim),a),(f=A()).ease=y.ease,y.filter!==void 0&&(f.anim.filter=y.filter),y["-webkit-filter"]!==void 0&&(f.anim["-webkit-filter"]=y["-webkit-filter"])}b.anim.visibility="hidden",b.anim.immediateRender=!0,f.anim.visibility="visible"}i.fromcurrentstate&&(f.anim.immediateRender=!0);var I=-1;if(n===0&&!i.fromcurrentstate&&e._bmask!==void 0&&p!==void 0&&0<=p.indexOf("block")||n===e.outframeindex&&!i.fromcurrentstate&&e._bmask!==void 0&&p!==void 0&&0<=p.indexOf("block")){var L=n===0?b.speed/1e3/2:f.speed/1e3/2,R=[{scaleY:1,scaleX:0,transformOrigin:"0% 50%"},{scaleY:1,scaleX:1,ease:f.anim.ease}],O={scaleY:1,scaleX:0,transformOrigin:"100% 50%",ease:f.anim.ease};switch(I=j===void 0?L:j+L,p){case"blocktoleft":case"blockfromright":R[0].transformOrigin="100% 50%",O.transformOrigin="0% 50%";break;case"blockfromtop":case"blocktobottom":R=[{scaleX:1,scaleY:0,transformOrigin:"50% 0%"},{scaleX:1,scaleY:1,ease:f.anim.ease}],O={scaleX:1,scaleY:0,transformOrigin:"50% 100%",ease:f.anim.ease};break;case"blocktotop":case"blockfrombottom":R=[{scaleX:1,scaleY:0,transformOrigin:"50% 100%"},{scaleX:1,scaleY:1,ease:f.anim.ease}],O={scaleX:1,scaleY:0,transformOrigin:"50% 0%",ease:f.anim.ease}}R[0].background=e.frames[n].sfxcolor,r.add(l.mask.fromTo(e._bmask,L,R[0],R[1],j),a),r.add(l.mask.to(e._bmask,L,O,I),a)}if(_)var Q=ne(s.length-1,m);if(n!==0||i.fromcurrentstate)if(e._sfx_out==="block"&&n===e.outframeindex)r.add(l.content.staggerTo(s,.001,{autoAlpha:0,delay:I}),a),r.add(l.content.staggerTo(s,f.speed/1e3/2-.001,{x:0,delay:I}),a+"+=0.001");else if(_&&Q!==void 0){k={to:H(f.anim)};for(var W in s){C=jQuery.extend({},f.anim);for(var w in k.to)C[w]=parseInt(k.to[w].values[k.to[w].index],0),k.to[w].index=k.to[w].index<k.to[w].len?k.to[w].index+1:0;e.frames[n].color!==void 0&&(C.color=e.frames[n].color),e.frames[n].bgcolor!==void 0&&(C.backgroundColor=e.frames[n].bgcolor),r.add(l.content.to(s[Q[W]],f.speed/1e3,C,j*W),a)}}else e.frames[n].color!==void 0&&(f.anim.color=e.frames[n].color),e.frames[n].bgcolor!==void 0&&(f.anim.backgroundColor=e.frames[n].bgcolor),r.add(l.content.staggerTo(s,f.speed/1e3,f.anim,j),a);else if(e._sfx_in==="block")r.add(l.content.staggerFromTo(s,.05,{x:0,y:0,autoAlpha:0},{x:0,y:0,autoAlpha:1,delay:I}),a);else if(_&&Q!==void 0){var k={from:H(b.anim),to:H(f.anim)};for(var W in s){var S=jQuery.extend({},b.anim),C=jQuery.extend({},f.anim);for(var w in k.from)S[w]=parseInt(k.from[w].values[k.from[w].index],0),k.from[w].index=k.from[w].index<k.from[w].len?k.from[w].index+1:0;C.ease=S.ease,e.frames[n].color!==void 0&&(S.color=e.frames[n].color,C.color=e.cssobj.styleProps.color),e.frames[n].bgcolor!==void 0&&(S.backgroundColor=e.frames[n].bgcolor,C.backgroundColor=e.cssobj.styleProps["background-color"]),r.add(l.content.fromTo(s[Q[W]],b.speed/1e3,S,C,j*W),a)}}else e.frames[n].color!==void 0&&(b.anim.color=e.frames[n].color,f.anim.color=e.cssobj.styleProps.color),e.frames[n].bgcolor!==void 0&&(b.anim.backgroundColor=e.frames[n].bgcolor,f.anim.backgroundColor=e.cssobj.styleProps["background-color"]),r.add(l.content.staggerFromTo(s,b.speed/1e3,b.anim,f.anim,j),a);return h===void 0||h===!1||n===0&&i.ignorefirstframe||(h.anim.ease=h.anim.ease===void 0||h.anim.ease==="inherit"?e.frames[0].ease:h.anim.ease,h.anim.overflow="hidden",h.anim.x=h.anim.x*o.bw||M(h.anim.x,o,e.eow,e.eoh,e.calcy,e.calcx,"horizontal"),h.anim.y=h.anim.y*o.bw||M(h.anim.y,o,e.eow,e.eoh,e.calcy,e.calcx,"vertical")),n===0&&u&&u!==!1&&!i.fromcurrentstate||n===0&&i.ignorefirstframe?((h=new Object).anim=new Object,h.anim.overwrite="auto",h.anim.ease=f.anim.ease,h.anim.x=h.anim.y=0,u&&u!==!1&&(u.anim.x=u.anim.x*o.bw||M(u.anim.x,o,e.eow,e.eoh,e.calcy,e.calcx,"horizontal"),u.anim.y=u.anim.y*o.bw||M(u.anim.y,o,e.eow,e.eoh,e.calcy,e.calcx,"vertical"),u.anim.overflow="hidden")):n===0&&r.add(l.mask.set(e._mw,{overflow:"visible"}),a),u!==void 0&&h!==void 0&&u!==!1&&h!==!1?r.add(l.mask.fromTo(e._mw,b.speed/1e3,u.anim,h.anim,j),a):h!==void 0&&h!==!1&&r.add(l.mask.to(e._mw,f.speed/1e3,h.anim,j),a),r.addLabel(a+"_end"),e._gsTransformTo&&n===c&&e.hoveredstatus&&(e.hovertimelines.item=punchgs.TweenLite.to(t,0,e._gsTransformTo)),e._gsTransformTo=!1,l.content.eventCallback("onStart",ie,[n,d,e._pw,e,r,f.anim,t,i.updateStaticTimeline,o]),l.content.eventCallback("onUpdate",te,[a,e._id,e._pw,e,r,n,jQuery.extend(!0,{},f.anim),i.updateStaticTimeline,t,o]),l.content.eventCallback("onComplete",ae,[n,e.frames.length,c,e._pw,e,r,i.updateStaticTimeline,t,o]),r},endMoveCaption:function(i){i.firstframe="frame_0",i.lastframe="frame_999";var t=B(i),e=i.caption.data();if(i.frame!==void 0?t.timeline.play(i.frame):(!t.static||i.currentslide>=t.removeonslide||i.currentslide<t.showonslide)&&(t.outnow=new punchgs.TimelineLite,t.timeline.pause(),e.visibleelement===!0&&v.createFrameOnTimeline({caption:i.caption,timeline:t.outnow,label:"outnow",frameindex:i.caption.data("outframeindex"),opt:i.opt,fromcurrentstate:!0}).play()),i.checkchildrens&&t.timeline_obj&&t.timeline_obj.dchildren&&t.timeline_obj.dchildren!=="none"&&0<t.timeline_obj.dchildren.length)for(var a=0;a<t.timeline_obj.dchildren.length;a++)v.endMoveCaption({caption:jQuery(t.timeline_obj.dchildren[a]),opt:i.opt})},playAnimationFrame:function(i){i.firstframe=i.triggerframein,i.lastframe=i.triggerframeout;var t,e=B(i),a=i.caption.data(),r=0;for(var n in a.frames)a.frames[n].framename===i.frame&&(t=r),r++;a.triggeredtimeline!==void 0&&a.triggeredtimeline.pause(),a.triggeredtimeline=new punchgs.TimelineLite,e.timeline.pause();var o=a.visibleelement===!0;a.triggeredtimeline=v.createFrameOnTimeline({caption:i.caption,timeline:a.triggeredtimeline,label:"triggered",frameindex:t,updateStaticTimeline:!0,opt:i.opt,ignorefirstframe:!0,fromcurrentstate:o}).play()},removeTheCaptions:function(i,t){if(v.compare_version(V).check==="stop")return!1;var e=i.data("index"),a=new Array;t.layers[e]&&jQuery.each(t.layers[e],function(n,o){a.push(o)});var r=v.currentSlideIndex(t);a&&jQuery.each(a,function(n){var o=jQuery(this);t.sliderType==="carousel"&&t.carousel.showLayersAllTime==="on"?(clearTimeout(o.data("videoplaywait")),v.stopVideo&&v.stopVideo(o,t)):(de(o),clearTimeout(o.data("videoplaywait")),v.endMoveCaption({caption:o,opt:t,currentslide:r})),v.removeMediaFromList&&v.removeMediaFromList(o,t),t.lastplayedvideos=[]})}});var ie=function(i,t,e,a,r,n,o,s,l){var d={};if(d.layer=o,d.eventtype=i===0?"enterstage":i===a.outframeindex?"leavestage":"framestarted",d.layertype=o.data("layertype"),a.active=!0,d.frame_index=i,d.layersettings=o.data(),l.c.trigger("revolution.layeraction",[d]),a.loopanimation=="on"&&se(a._lw,l.bw),d.eventtype==="enterstage"&&(a.animdirection="in",a.visibleelement=!0,v.toggleState(a.layertoggledby)),t.dchildren!=="none"&&t.dchildren!==void 0&&0<t.dchildren.length){if(i===0)for(var c=0;c<t.dchildren.length;c++)jQuery(t.dchildren[c]).data("timeline").play(0);else if(i===a.outframeindex)for(c=0;c<t.dchildren.length;c++)v.endMoveCaption({caption:jQuery(t.dchildren[c]),opt:l,checkchildrens:!0})}punchgs.TweenLite.set(e,{visibility:"visible"}),a.current_frame=i,a.current_timeline=r,a.current_timeline_time=r.time(),s&&(a.static_layer_timeline_time=a.current_timeline_time),a.last_frame_started=i},te=function(i,t,e,a,r,n,o,s,l,d){a._nctype==="column"&&$(l,d),punchgs.TweenLite.set(e,{visibility:"visible"}),a.current_frame=n,a.current_timeline=r,a.current_timeline_time=r.time(),s&&(a.static_layer_timeline_time=a.current_timeline_time),a.hoveranim!==void 0&&a._gsTransformTo===!1&&(a._gsTransformTo=o,a._gsTransformTo&&a._gsTransformTo.startAt&&delete a._gsTransformTo.startAt,a.cssobj.styleProps.css===void 0?a._gsTransformTo=jQuery.extend(!0,{},a.cssobj.styleProps,a._gsTransformTo):a._gsTransformTo=jQuery.extend(!0,{},a.cssobj.styleProps.css,a._gsTransformTo)),a.visibleelement=!0},ae=function(i,t,e,a,r,n,o,s,l){var d={};d.layer=s,d.eventtype=i===0?"enteredstage":i===t-1||i===e?"leftstage":"frameended",d.layertype=s.data("layertype"),d.layersettings=s.data(),l.c.trigger("revolution.layeraction",[d]),d.eventtype!=="leftstage"&&v.animcompleted(s,l),d.eventtype==="leftstage"&&v.stopVideo&&v.stopVideo(s,l),r._nctype==="column"&&(punchgs.TweenLite.to(r._cbgc_man,.01,{visibility:"hidden"}),punchgs.TweenLite.to(r._cbgc_auto,.01,{visibility:"visible"})),d.eventtype==="leftstage"&&(r.active=!1,punchgs.TweenLite.set(a,{visibility:"hidden",overwrite:"auto"}),r.animdirection="out",r.visibleelement=!1,v.unToggleState(r.layertoggledby),r._nctype==="video"&&v.resetVideo&&setTimeout(function(){v.resetVideo(s,l)},100)),r.current_frame=i,r.current_timeline=n,r.current_timeline_time=n.time(),o&&(r.static_layer_timeline_time=r.current_timeline_time)},B=function(i){var t={};return i.firstframe=i.firstframe===void 0?"frame_0":i.firstframe,i.lastframe=i.lastframe===void 0?"frame_999":i.lastframe,t.id=i.caption.data("id")||i.caption.attr("id"),t.slideid=i.caption.data("slideid")||i.caption.closest(".tp-revslider-slidesli").data("index"),t.timeline_obj=i.opt.timelines[t.slideid].layers[t.id],t.timeline=t.timeline_obj.timeline,t.ffs=t.timeline.getLabelTime(i.firstframe),t.ffe=t.timeline.getLabelTime(i.firstframe+"_end"),t.lfs=t.timeline.getLabelTime(i.lastframe),t.lfe=t.timeline.getLabelTime(i.lastframe+"_end"),t.ct=t.timeline.time(),t.static=t.timeline_obj.firstslide!=null||t.timeline_obj.lastslide!=null,t.static&&(t.showonslide=t.timeline_obj.firstslide,t.removeonslide=t.timeline_obj.lastslide),t},ne=function(i,t){var e=new Array;switch(t){case"forward":case"random":for(var a=0;a<=i;a++)e.push(a);t==="random"&&(e=function(s){for(var l,d,c=s.length;c!==0;)d=Math.floor(Math.random()*c),l=s[c-=1],s[c]=s[d],s[d]=l;return s}(e));break;case"backward":for(a=0;a<=i;a++)e.push(i-a);break;case"middletoedge":var r=Math.ceil(i/2),n=r-1,o=r+1;for(e.push(r),a=0;a<r;a++)0<=n&&e.push(n),o<=i&&e.push(o),n--,o++;break;case"edgetomiddle":for(n=i,o=0,a=0;a<=Math.floor(i/2);a++)e.push(n),o<n&&e.push(o),n--,o++}return e},H=function(i){var t={};for(var e in i)typeof i[e]=="string"&&0<=i[e].indexOf("|")&&(t[e]===void 0&&(t[e]={index:0}),t[e].values=i[e].replace("[","").replace("]","").split("|"),t[e].len=t[e].values.length-1);return t},A=function(i){return(i=i===void 0?new Object:i).anim=i.anim===void 0?new Object:i.anim,i.anim.x=i.anim.x===void 0?0:i.anim.x,i.anim.y=i.anim.y===void 0?0:i.anim.y,i.anim.z=i.anim.z===void 0?0:i.anim.z,i.anim.rotationX=i.anim.rotationX===void 0?0:i.anim.rotationX,i.anim.rotationY=i.anim.rotationY===void 0?0:i.anim.rotationY,i.anim.rotationZ=i.anim.rotationZ===void 0?0:i.anim.rotationZ,i.anim.scaleX=i.anim.scaleX===void 0?1:i.anim.scaleX,i.anim.scaleY=i.anim.scaleY===void 0?1:i.anim.scaleY,i.anim.skewX=i.anim.skewX===void 0?0:i.anim.skewX,i.anim.skewY=i.anim.skewY===void 0?0:i.anim.skewY,i.anim.opacity=i.anim.opacity===void 0?1:i.anim.opacity,i.anim.transformOrigin=i.anim.transformOrigin===void 0?"50% 50%":i.anim.transformOrigin,i.anim.transformPerspective=i.anim.transformPerspective===void 0?600:i.anim.transformPerspective,i.anim.rotation=i.anim.rotation===void 0?0:i.anim.rotation,i.anim.force3D=i.anim.force3D===void 0?"auto":i.anim.force3D,i.anim.autoAlpha=i.anim.autoAlpha===void 0?1:i.anim.autoAlpha,i.anim.visibility=i.anim.visibility===void 0?"visible":i.anim.visibility,i.anim.overwrite=i.anim.overwrite===void 0?"auto":i.anim.overwrite,i.speed=i.speed===void 0?.3:i.speed,i.filter=i.filter===void 0?"blur(0px) grayscale(0%) brightness(100%)":i.filter,i["-webkit-filter"]=i["-webkit-filter"]===void 0?"blur(0px) grayscale(0%) brightness(100%)":i["-webkit-filter"],i},Z=function(){var i=new Object;return i.anim=new Object,i.anim.stroke="none",i.anim.strokeWidth=0,i.anim.strokeDasharray="none",i.anim.strokeDashoffset="0",i},E=function(i,t){var e=i.split(";");return e&&jQuery.each(e,function(a,r){var n=r.split(":"),o=n[0],s=n[1];o=="sc"&&(t.anim.stroke=s),o=="sw"&&(t.anim.strokeWidth=s),o=="sda"&&(t.anim.strokeDasharray=s),o=="sdo"&&(t.anim.strokeDashoffset=s)}),t},U=function(){var i=new Object;return i.anim=new Object,i.anim.x=0,i.anim.y=0,i.anim.z=0,i},re=function(){var i=new Object;return i.anim=new Object,i.speed=.2,i},z=function(i,t,e,a,r){if(r=r===void 0?"":r,jQuery.isNumeric(parseFloat(i)))return parseFloat(i)+r;if(i===void 0||i==="inherit")return t+"ext";if(1<i.split("{").length){var n=i.split(","),o=parseFloat(n[1].split("}")[0]);if(n=parseFloat(n[0].split("{")[1]),e!==void 0&&a!==void 0){for(var s=0;s<a;s++)i=i+"|"+(parseInt(Math.random()*(o-n),0)+parseInt(n,0))+r;i+="]"}else i=Math.random()*(o-n)+n}return i},M=function(i,t,e,a,r,n,o){return!jQuery.isNumeric(i)&&i.match(/%]/g)?(i=i.split("[")[1].split("]")[0],o=="horizontal"?i=(e+2)*parseInt(i,0)/100:o=="vertical"&&(i=(a+2)*parseInt(i,0)/100)):i=(i=(i=(i=i==="layer_left"?0-e:i==="layer_right"?e:i)==="layer_top"?0-a:i==="layer_bottom"?a:i)==="left"||i==="stage_left"?0-e-n:i==="right"||i==="stage_right"?t.conw-n:i==="center"||i==="stage_center"?t.conw/2-e/2-n:i)==="top"||i==="stage_top"?0-a-r:i==="bottom"||i==="stage_bottom"?t.conh-r:i==="middle"||i==="stage_middle"?t.conh/2-a/2-r:i,i},P=function(i,t,e,a,r){var n=new Object;if(n=jQuery.extend(!0,{},n,i),t===void 0)return n;var o=t.split(";"),s="";return o&&jQuery.each(o,function(l,d){var c=d.split(":"),g=c[0],m=c[1];e&&e!=="none"&&m!=null&&0<m.length&&m.match(/\(R\)/)&&((m=(m=m.replace("(R)",""))==="right"?"left":m==="left"?"right":m==="top"?"bottom":m==="bottom"?"top":m)[0]==="["&&m[1]==="-"?m=m.replace("[-","["):m[0]==="["&&m[1]!=="-"?m=m.replace("[","[-"):m[0]==="-"?m=m.replace("-",""):m[0].match(/[1-9]/)&&(m="-"+m)),m!=null&&(m=m.replace(/\(R\)/,""),g!="rotationX"&&g!="rX"||(n.anim.rotationX=z(m,n.anim.rotationX,a,r,"deg")),g!="rotationY"&&g!="rY"||(n.anim.rotationY=z(m,n.anim.rotationY,a,r,"deg")),g!="rotationZ"&&g!="rZ"||(n.anim.rotation=z(m,n.anim.rotationZ,a,r,"deg")),g!="scaleX"&&g!="sX"||(n.anim.scaleX=z(m,n.anim.scaleX,a,r)),g!="scaleY"&&g!="sY"||(n.anim.scaleY=z(m,n.anim.scaleY,a,r)),g!="opacity"&&g!="o"||(n.anim.opacity=z(m,n.anim.opacity,a,r)),g=="fb"&&(s=s===""?"blur("+parseInt(m,0)+"px)":s+" blur("+parseInt(m,0)+"px)"),g=="fg"&&(s=s===""?"grayscale("+parseInt(m,0)+"%)":s+" grayscale("+parseInt(m,0)+"%)"),g=="fbr"&&(s=s===""?"brightness("+parseInt(m,0)+"%)":s+" brightness("+parseInt(m,0)+"%)"),n.anim.opacity===0&&(n.anim.autoAlpha=0),n.anim.opacity=n.anim.opacity==0?1e-4:n.anim.opacity,g!="skewX"&&g!="skX"||(n.anim.skewX=z(m,n.anim.skewX,a,r)),g!="skewY"&&g!="skY"||(n.anim.skewY=z(m,n.anim.skewY,a,r)),g=="x"&&(n.anim.x=z(m,n.anim.x,a,r)),g=="y"&&(n.anim.y=z(m,n.anim.y,a,r)),g=="z"&&(n.anim.z=z(m,n.anim.z,a,r)),g!="transformOrigin"&&g!="tO"||(n.anim.transformOrigin=m.toString()),g!="transformPerspective"&&g!="tP"||(n.anim.transformPerspective=parseInt(m,0)),g!="speed"&&g!="s"||(n.speed=parseFloat(m)))}),s!==""&&(n.anim["-webkit-filter"]=s,n.anim.filter=s),n},G=function(i){if(i===void 0)return!1;var t=new Object;t.anim=new Object;var e=i.split(";");return e&&jQuery.each(e,function(a,r){var n=(r=r.split(":"))[0],o=r[1];n=="x"&&(t.anim.x=o),n=="y"&&(t.anim.y=o),n=="s"&&(t.speed=parseFloat(o)),n!="e"&&n!="ease"||(t.anim.ease=o)}),t},T=function(i,t,e){if(i==null&&(i=0),!jQuery.isArray(i)&&jQuery.type(i)==="string"&&(1<i.split(",").length||1<i.split("[").length)){var a=(i=(i=i.replace("[","")).replace("]","")).match(/'/g)?i.split("',"):i.split(",");i=new Array,a&&jQuery.each(a,function(o,s){s=(s=s.replace("'","")).replace("'",""),i.push(s)})}else{var r=i;jQuery.isArray(i)||(i=new Array).push(r)}if(r=i[i.length-1],i.length<t.rle)for(var n=1;n<=t.curWinRange;n++)i.push(r);return i};function X(i,t,e,a,r,n,o){var s=i.find(t);s.css("borderWidth",n+"px"),s.css(e,0-n+"px"),s.css(a,"0px solid transparent"),s.css(r,o)}var oe=function(i,t){if(t===void 0)return i;var e=(t=(t=(t=(t=(t=(t=(t=(t=t.replace("c:","color:")).replace("bg:","background-color:")).replace("bw:","border-width:")).replace("bc:","border-color:")).replace("br:","borderRadius:")).replace("bs:","border-style:")).replace("td:","text-decoration:")).replace("zi:","zIndex:")).split(";");return e&&jQuery.each(e,function(a,r){var n=r.split(":");0<n[0].length&&(n[0]==="background-color"&&0<=n[1].indexOf("gradient")&&(n[0]="background"),i.anim[n[0]]=n[1])}),i},J=function(i,t){var e,a=new Object,r=!1;if(t=="rekursive"&&(e=i.closest(".tp-caption"))&&i.css("fontSize")===e.css("fontSize")&&i.css("fontWeight")===e.css("fontWeight")&&i.css("lineHeight")===e.css("lineHeight")&&(r=!0),a.basealign=i.data("basealign")||"grid",a.fontSize=r?e.data("fontsize")===void 0?parseInt(e.css("fontSize"),0)||0:e.data("fontsize"):i.data("fontsize")===void 0?parseInt(i.css("fontSize"),0)||0:i.data("fontsize"),a.fontWeight=r?e.data("fontweight")===void 0?parseInt(e.css("fontWeight"),0)||0:e.data("fontweight"):i.data("fontweight")===void 0?parseInt(i.css("fontWeight"),0)||0:i.data("fontweight"),a.whiteSpace=r?e.data("whitespace")===void 0?e.css("whitespace")||"normal":e.data("whitespace"):i.data("whitespace")===void 0?i.css("whitespace")||"normal":i.data("whitespace"),a.textAlign=r?e.data("textalign")===void 0?e.css("textalign")||"inherit":e.data("textalign"):i.data("textalign")===void 0?i.css("textalign")||"inherit":i.data("textalign"),a.zIndex=r?e.data("zIndex")===void 0?e.css("zIndex")||"inherit":e.data("zIndex"):i.data("zIndex")===void 0?i.css("zIndex")||"inherit":i.data("zIndex"),jQuery.inArray(i.data("layertype"),["video","image","audio"])!==-1||i.is("img")?a.lineHeight=0:a.lineHeight=r?e.data("lineheight")===void 0?parseInt(e.css("lineHeight"),0)||0:e.data("lineheight"):i.data("lineheight")===void 0?parseInt(i.css("lineHeight"),0)||0:i.data("lineheight"),a.letterSpacing=r?e.data("letterspacing")===void 0?parseFloat(e.css("letterSpacing"),0)||0:e.data("letterspacing"):i.data("letterspacing")===void 0?parseFloat(i.css("letterSpacing"))||0:i.data("letterspacing"),a.paddingTop=i.data("paddingtop")===void 0?parseInt(i.css("paddingTop"),0)||0:i.data("paddingtop"),a.paddingBottom=i.data("paddingbottom")===void 0?parseInt(i.css("paddingBottom"),0)||0:i.data("paddingbottom"),a.paddingLeft=i.data("paddingleft")===void 0?parseInt(i.css("paddingLeft"),0)||0:i.data("paddingleft"),a.paddingRight=i.data("paddingright")===void 0?parseInt(i.css("paddingRight"),0)||0:i.data("paddingright"),a.marginTop=i.data("margintop")===void 0?parseInt(i.css("marginTop"),0)||0:i.data("margintop"),a.marginBottom=i.data("marginbottom")===void 0?parseInt(i.css("marginBottom"),0)||0:i.data("marginbottom"),a.marginLeft=i.data("marginleft")===void 0?parseInt(i.css("marginLeft"),0)||0:i.data("marginleft"),a.marginRight=i.data("marginright")===void 0?parseInt(i.css("marginRight"),0)||0:i.data("marginright"),a.borderTopWidth=i.data("bordertopwidth")===void 0?parseInt(i.css("borderTopWidth"),0)||0:i.data("bordertopwidth"),a.borderBottomWidth=i.data("borderbottomwidth")===void 0?parseInt(i.css("borderBottomWidth"),0)||0:i.data("borderbottomwidth"),a.borderLeftWidth=i.data("borderleftwidth")===void 0?parseInt(i.css("borderLeftWidth"),0)||0:i.data("borderleftwidth"),a.borderRightWidth=i.data("borderrightwidth")===void 0?parseInt(i.css("borderRightWidth"),0)||0:i.data("borderrightwidth"),t!="rekursive"){if(a.color=i.data("color")===void 0?"nopredefinedcolor":i.data("color"),a.whiteSpace=r?e.data("whitespace")===void 0?e.css("whiteSpace")||"nowrap":e.data("whitespace"):i.data("whitespace")===void 0?i.css("whiteSpace")||"nowrap":i.data("whitespace"),a.textAlign=r?e.data("textalign")===void 0?e.css("textalign")||"inherit":e.data("textalign"):i.data("textalign")===void 0?i.css("textalign")||"inherit":i.data("textalign"),a.fontWeight=r?e.data("fontweight")===void 0?parseInt(e.css("fontWeight"),0)||0:e.data("fontweight"):i.data("fontweight")===void 0?parseInt(i.css("fontWeight"),0)||0:i.data("fontweight"),a.minWidth=i.data("width")===void 0?parseInt(i.css("minWidth"),0)||0:i.data("width"),a.minHeight=i.data("height")===void 0?parseInt(i.css("minHeight"),0)||0:i.data("height"),i.data("videowidth")!=null&&i.data("videoheight")!=null){var n=i.data("videowidth"),o=i.data("videoheight");n=n==="100%"?"none":n,o=o==="100%"?"none":o,i.data("width",n),i.data("height",o)}a.maxWidth=i.data("width")===void 0?parseInt(i.css("maxWidth"),0)||"none":i.data("width"),a.maxHeight=jQuery.inArray(i.data("type"),["column","row"])!==-1?"none":i.data("height")===void 0?parseInt(i.css("maxHeight"),0)||"none":i.data("height"),a.wan=i.data("wan")===void 0?parseInt(i.css("-webkit-transition"),0)||"none":i.data("wan"),a.moan=i.data("moan")===void 0?parseInt(i.css("-moz-animation-transition"),0)||"none":i.data("moan"),a.man=i.data("man")===void 0?parseInt(i.css("-ms-animation-transition"),0)||"none":i.data("man"),a.ani=i.data("ani")===void 0?parseInt(i.css("transition"),0)||"none":i.data("ani")}return a.styleProps={borderTopLeftRadius:i[0].style.borderTopLeftRadius,borderTopRightRadius:i[0].style.borderTopRightRadius,borderBottomRightRadius:i[0].style.borderBottomRightRadius,borderBottomLeftRadius:i[0].style.borderBottomLeftRadius,background:i[0].style.background,boxShadow:i[0].style.boxShadow,"background-color":i[0].style["background-color"],"border-top-color":i[0].style["border-top-color"],"border-bottom-color":i[0].style["border-bottom-color"],"border-right-color":i[0].style["border-right-color"],"border-left-color":i[0].style["border-left-color"],"border-top-style":i[0].style["border-top-style"],"border-bottom-style":i[0].style["border-bottom-style"],"border-left-style":i[0].style["border-left-style"],"border-right-style":i[0].style["border-right-style"],"border-left-width":i[0].style["border-left-width"],"border-right-width":i[0].style["border-right-width"],"border-bottom-width":i[0].style["border-bottom-width"],"border-top-width":i[0].style["border-top-width"],color:i[0].style.color,"text-decoration":i[0].style["text-decoration"],"font-style":i[0].style["font-style"]},a.styleProps.background!==""&&a.styleProps.background!==void 0&&a.styleProps.background!==a.styleProps["background-color"]||delete a.styleProps.background,a.styleProps.color==""&&(a.styleProps.color=i.css("color")),a},q=function(i,t){var e=new Object;return i&&jQuery.each(i,function(a,r){var n=T(r,t)[t.curWinRange];e[a]=n!==void 0?n:i[a]}),e},Y=function(i,t,e,a){return i=(i=jQuery.isNumeric(i)?i*t+"px":i)==="full"?a:i==="auto"||i==="none"?e:i},K=function(i,t,e,a){var r=i.data();r=r===void 0?{}:r;try{if(i[0].nodeName=="BR"||i[0].tagName=="br")return!1}catch{}r.cssobj=r.cssobj===void 0?J(i,e):r.cssobj;var n=q(r.cssobj,t),o=t.bw,s=t.bh;a==="off"&&(s=o=1),n.lineHeight=="auto"&&(n.lineHeight=n.fontSize+4);var l={Top:n.marginTop,Bottom:n.marginBottom,Left:n.marginLeft,Right:n.marginRight};if(r._nctype==="column"&&(punchgs.TweenLite.set(r._column,{paddingTop:Math.round(n.marginTop*s)+"px",paddingBottom:Math.round(n.marginBottom*s)+"px",paddingLeft:Math.round(n.marginLeft*o)+"px",paddingRight:Math.round(n.marginRight*o)+"px"}),l={Top:0,Bottom:0,Left:0,Right:0}),!i.hasClass("tp-splitted")){if(i.css("-webkit-transition","none"),i.css("-moz-transition","none"),i.css("-ms-transition","none"),i.css("transition","none"),(i.data("transform_hover")!==void 0||i.data("style_hover")!==void 0)&&punchgs.TweenLite.set(i,n.styleProps),punchgs.TweenLite.set(i,{fontSize:Math.round(n.fontSize*o)+"px",fontWeight:n.fontWeight,letterSpacing:Math.floor(n.letterSpacing*o)+"px",paddingTop:Math.round(n.paddingTop*s)+"px",paddingBottom:Math.round(n.paddingBottom*s)+"px",paddingLeft:Math.round(n.paddingLeft*o)+"px",paddingRight:Math.round(n.paddingRight*o)+"px",marginTop:l.Top*s+"px",marginBottom:l.Bottom*s+"px",marginLeft:l.Left*o+"px",marginRight:l.Right*o+"px",borderTopWidth:Math.round(n.borderTopWidth*s)+"px",borderBottomWidth:Math.round(n.borderBottomWidth*s)+"px",borderLeftWidth:Math.round(n.borderLeftWidth*o)+"px",borderRightWidth:Math.round(n.borderRightWidth*o)+"px",lineHeight:Math.round(n.lineHeight*s)+"px",textAlign:n.textAlign,overwrite:"auto"}),e!="rekursive"){var d=n.basealign=="slide"?t.ulw:t.gridwidth[t.curWinRange],c=n.basealign=="slide"?t.ulh:t.gridheight[t.curWinRange],g=Y(n.maxWidth,o,"none",d),m=Y(n.maxHeight,s,"none",c),p=Y(n.minWidth,o,"0px",d),_=Y(n.minHeight,s,"0px",c);if(p=p===void 0?0:p,_=_===void 0?0:_,g=g===void 0?"none":g,m=m===void 0?"none":m,r._isgroup&&(p==="#1/1#"&&(p=g=d),p==="#1/2#"&&(p=g=d/2),p==="#1/3#"&&(p=g=d/3),p==="#1/4#"&&(p=g=d/4),p==="#1/5#"&&(p=g=d/5),p==="#1/6#"&&(p=g=d/6),p==="#2/3#"&&(p=g=d/3*2),p==="#3/4#"&&(p=g=d/4*3),p==="#2/5#"&&(p=g=d/5*2),p==="#3/5#"&&(p=g=d/5*3),p==="#4/5#"&&(p=g=d/5*4),p==="#3/6#"&&(p=g=d/6*3),p==="#4/6#"&&(p=g=d/6*4),p==="#5/6#"&&(p=g=d/6*5)),r._ingroup&&(r._groupw=p,r._grouph=_),punchgs.TweenLite.set(i,{maxWidth:g,maxHeight:m,minWidth:p,minHeight:_,whiteSpace:n.whiteSpace,textAlign:n.textAlign,overwrite:"auto"}),n.color!="nopredefinedcolor"&&punchgs.TweenLite.set(i,{color:n.color,overwrite:"auto"}),r.svg_src!=null){var x=n.color!="nopredefinedcolor"&&n.color!=null?n.color:n.css!=null&&n.css.color!="nopredefinedcolor"&&n.css.color!=null?n.css.color:n.styleProps.color!=null?n.styleProps.color:n.styleProps.css!=null&&n.styleProps.css.color!=null&&n.styleProps.css.color;x!=0&&(punchgs.TweenLite.set(i.find("svg"),{fill:x,overwrite:"auto"}),punchgs.TweenLite.set(i.find("svg path"),{fill:x,overwrite:"auto"}))}}r._nctype==="column"&&(r._column_bg_set===void 0&&(r._column_bg_set=i.css("backgroundColor"),r._column_bg_image=i.css("backgroundImage"),r._column_bg_image_repeat=i.css("backgroundRepeat"),r._column_bg_image_position=i.css("backgroundPosition"),r._column_bg_image_size=i.css("backgroundSize"),r._column_bg_opacity=i.data("bgopacity"),r._column_bg_opacity=r._column_bg_opacity===void 0?1:r._column_bg_opacity,punchgs.TweenLite.set(i,{backgroundColor:"transparent",backgroundImage:""})),setTimeout(function(){$(i,t)},1),r._cbgc_auto&&0<r._cbgc_auto.length&&(r._cbgc_auto[0].style.backgroundSize=r._column_bg_image_size,jQuery.isArray(n.marginLeft)?punchgs.TweenLite.set(r._cbgc_auto,{borderTopWidth:n.marginTop[t.curWinRange]*s+"px",borderLeftWidth:n.marginLeft[t.curWinRange]*o+"px",borderRightWidth:n.marginRight[t.curWinRange]*o+"px",borderBottomWidth:n.marginBottom[t.curWinRange]*s+"px",backgroundColor:r._column_bg_set,backgroundImage:r._column_bg_image,backgroundRepeat:r._column_bg_image_repeat,backgroundPosition:r._column_bg_image_position,opacity:r._column_bg_opacity}):punchgs.TweenLite.set(r._cbgc_auto,{borderTopWidth:n.marginTop*s+"px",borderLeftWidth:n.marginLeft*o+"px",borderRightWidth:n.marginRight*o+"px",borderBottomWidth:n.marginBottom*s+"px",backgroundColor:r._column_bg_set,backgroundImage:r._column_bg_image,backgroundRepeat:r._column_bg_image_repeat,backgroundPosition:r._column_bg_image_position,opacity:r._column_bg_opacity}))),setTimeout(function(){i.css("-webkit-transition",i.data("wan")),i.css("-moz-transition",i.data("moan")),i.css("-ms-transition",i.data("man")),i.css("transition",i.data("ani"))},30)}},$=function(i,t){var e,a,r,n=i.data();n._cbgc_man&&0<n._cbgc_man.length&&(jQuery.isArray(n.cssobj.marginLeft)?(n.cssobj.marginLeft[t.curWinRange]*t.bw,e=n.cssobj.marginTop[t.curWinRange]*t.bh,a=n.cssobj.marginBottom[t.curWinRange]*t.bh,n.cssobj.marginRight[t.curWinRange],t.bw):(n.cssobj.marginLeft*t.bw,e=n.cssobj.marginTop*t.bh,a=n.cssobj.marginBottom*t.bh,n.cssobj.marginRight,t.bw),r=n._row.hasClass("rev_break_columns")?"100%":n._row.height()-(e+a)+"px",n._cbgc_man[0].style.backgroundSize=n._column_bg_image_size,punchgs.TweenLite.set(n._cbgc_man,{width:"100%",height:r,backgroundColor:n._column_bg_set,backgroundImage:n._column_bg_image,backgroundRepeat:n._column_bg_image_repeat,backgroundPosition:n._column_bg_image_position,overwrite:"auto",opacity:n._column_bg_opacity}))},se=function(i,t){var e=i.data();if(i.hasClass("rs-pendulum")&&e._loop_timeline==null){e._loop_timeline=new punchgs.TimelineLite;var a=i.data("startdeg")==null?-20:i.data("startdeg"),r=i.data("enddeg")==null?20:i.data("enddeg"),n=i.data("speed")==null?2:i.data("speed"),o=i.data("origin")==null?"50% 50%":i.data("origin"),s=i.data("easing")==null?punchgs.Power2.easeInOut:i.data("easing");a*=t,r*=t,e._loop_timeline.append(new punchgs.TweenLite.fromTo(i,n,{force3D:"auto",rotation:a,transformOrigin:o},{rotation:r,ease:s})),e._loop_timeline.append(new punchgs.TweenLite.fromTo(i,n,{force3D:"auto",rotation:r,transformOrigin:o},{rotation:a,ease:s,onComplete:function(){e._loop_timeline.restart()}}))}if(i.hasClass("rs-rotate")&&e._loop_timeline==null&&(e._loop_timeline=new punchgs.TimelineLite,a=i.data("startdeg")==null?0:i.data("startdeg"),r=i.data("enddeg")==null?360:i.data("enddeg"),n=i.data("speed")==null?2:i.data("speed"),o=i.data("origin")==null?"50% 50%":i.data("origin"),s=i.data("easing")==null?punchgs.Power2.easeInOut:i.data("easing"),a*=t,r*=t,e._loop_timeline.append(new punchgs.TweenLite.fromTo(i,n,{force3D:"auto",rotation:a,transformOrigin:o},{rotation:r,ease:s,onComplete:function(){e._loop_timeline.restart()}}))),i.hasClass("rs-slideloop")&&e._loop_timeline==null){e._loop_timeline=new punchgs.TimelineLite;var l=i.data("xs")==null?0:i.data("xs"),d=i.data("ys")==null?0:i.data("ys"),c=i.data("xe")==null?0:i.data("xe"),g=i.data("ye")==null?0:i.data("ye");n=i.data("speed")==null?2:i.data("speed"),s=i.data("easing")==null?punchgs.Power2.easeInOut:i.data("easing"),l*=t,d*=t,c*=t,g*=t,e._loop_timeline.append(new punchgs.TweenLite.fromTo(i,n,{force3D:"auto",x:l,y:d},{x:c,y:g,ease:s})),e._loop_timeline.append(new punchgs.TweenLite.fromTo(i,n,{force3D:"auto",x:c,y:g},{x:l,y:d,onComplete:function(){e._loop_timeline.restart()}}))}if(i.hasClass("rs-pulse")&&e._loop_timeline==null){e._loop_timeline=new punchgs.TimelineLite;var m=i.data("zoomstart")==null?0:i.data("zoomstart"),p=i.data("zoomend")==null?0:i.data("zoomend");n=i.data("speed")==null?2:i.data("speed"),s=i.data("easing")==null?punchgs.Power2.easeInOut:i.data("easing"),e._loop_timeline.append(new punchgs.TweenLite.fromTo(i,n,{force3D:"auto",scale:m},{scale:p,ease:s})),e._loop_timeline.append(new punchgs.TweenLite.fromTo(i,n,{force3D:"auto",scale:p},{scale:m,onComplete:function(){e._loop_timeline.restart()}}))}if(i.hasClass("rs-wave")&&e._loop_timeline==null){e._loop_timeline=new punchgs.TimelineLite;var _=i.data("angle")==null?10:parseInt(i.data("angle"),0),x=i.data("radius")==null?10:parseInt(i.data("radius"),0),u=(n=i.data("speed")==null?-20:i.data("speed"),(o=i.data("origin")==null?"50% 50%":i.data("origin")).split(" ")),h=new Object;1<=u.length?(h.x=u[0],h.y=u[1]):(h.x="50%",h.y="50%"),x*=t;var f=(parseInt(h.x,0)/100-.5)*i.width(),b=(parseInt(h.y,0)/100-.5)*i.height(),j={a:0,ang:_,element:i,unit:x,xoffset:0+f,yoffset:-1*x+b},y=parseInt(_,0),I=new punchgs.TweenLite.fromTo(j,n,{a:0+y},{a:360+y,force3D:"auto",ease:punchgs.Linear.easeNone});I.eventCallback("onUpdate",function(L){var R=L.a*(Math.PI/180),O=L.yoffset+L.unit*(1-Math.sin(R)),Q=L.xoffset+Math.cos(R)*L.unit;punchgs.TweenLite.to(L.element,.1,{force3D:"auto",x:Q,y:O})},[j]),I.eventCallback("onComplete",function(L){L._loop_timeline.restart()},[e]),e._loop_timeline.append(I)}},de=function(i){i.closest(".rs-pendulum, .rs-slideloop, .rs-pulse, .rs-wave").each(function(){this._loop_timeline!=null&&(this._loop_timeline.pause(),this._loop_timeline=null)})}})(jQuery);
|