/************************************************ * revolution 5.4.2 extension - layer animation * @version: 3.6.3 (17.05.2017) * @requires jquery.themepunch.revolution.js * @author themepunch ************************************************/ !function(a){"use strict";function w(a,b,c,d,e,f,g){var h=a.find(b);h.css("borderwidth",f+"px"),h.css(c,0-f+"px"),h.css(d,"0px solid transparent"),h.css(e,g)}var b=jquery.fn.revolution,e=(b.is_mobile(),b.is_android(),{alias:"layeranimation min js",name:"revolution.extensions.layeranimation.min.js",min_core:"5.4.5",version:"3.6.3"});jquery.extend(!0,b,{updatemarkup:function(a,b){var c=jquery(a).data();if(void 0!==c.start&&!c.frames_added&&void 0===c.frames){var d=new array,e=t(m(),c.transform_in,void 0,!1),f=t(m(),c.transform_out,void 0,!1),g=t(m(),c.transform_hover,void 0,!1);jquery.isnumeric(c.end)&&jquery.isnumeric(c.start)&&jquery.isnumeric(e.speed)&&(c.end=parseint(c.end,0)-(parseint(c.start,0)+parsefloat(e.speed,0))),d.push({frame:"0",delay:c.start,from:c.transform_in,to:c.transform_idle,split:c.splitin,speed:e.speed,ease:e.anim.ease,mask:c.mask_in,splitdelay:c.elementdelay}),d.push({frame:"5",delay:c.end,to:c.transform_out,split:c.splitout,speed:f.speed,ease:f.anim.ease,mask:c.mask_out,splitdelay:c.elementdelay}),c.transform_hover&&d.push({frame:"hover",to:c.transform_hover,style:c.style_hover,speed:g.speed,ease:g.anim.ease,splitdelay:c.elementdelay}),c.frames=d}if(!c.frames_added){if(c.inframeindex=0,c.outframeindex=-1,c.hoverframeindex=-1,void 0!==c.frames)for(var h=0;h=0&&(0===h?(c.frames[h].from="o:0",c.frames[h].to="o:1"):c.frames[h].to="o:0",c._sfx="block"),void 0===c.frames[0].from&&(c.frames[0].from="o:inherit"),0===c.frames[0].delay&&(c.frames[0].delay=20),"hover"===c.frames[h].frame?c.hoverframeindex=h:"frame_999"!==c.frames[h].frame&&"frame_out"!==c.frames[h].frame&&"last"!==c.frames[h].frame&&"end"!==c.frames[h].frame||(c.outframeindex=h),void 0!==c.frames[h].split&&c.frames[h].split.match(/chars|words|lines/g)&&(c.splittext=!0);c.outframeindex=-1===c.outframeindex?-1===c.hoverframeindex?c.frames.length-1:c.frames.length-2:c.outframeindex,c.frames_added=!0}},animcompleted:function(a,c){var d=a.data(),e=d.videotype,f=d.autoplay,g=d.autoplayonlyfirsttime;void 0!=e&&"none"!=e&&(1==f||"true"==f||"on"==f||"1sttime"==f||g?(("carousel"!==c.slidertype||"carousel"===c.slidertype&&"on"===c.carousel.showlayersalltime&&a.closest("li").hasclass("active-revslide")||"carousel"===c.slidertype&&"on"!==c.carousel.showlayersalltime&&a.closest("li").hasclass("active-revslide"))&&b.playvideo(a,c),b.togglestate(a.data("videotoggledby")),(g||"1sttime"==f)&&(d.autoplayonlyfirsttime=!1,d.autoplay="off")):("no1sttime"==f&&(d.datasetautoplay="on"),b.untogglestate(a.data("videotoggledby"))))},handlestaticlayers:function(a,b){var c=parseint(a.data("startslide"),0),d=parseint(a.data("endslide"),0);c<0&&(c=0),d<0&&(d=b.realslideamount),0===c&&d===b.realslideamount-1&&(d=b.realslideamount+1),a.data("startslide",c),a.data("endslide",d)},animatethecaptions:function(a){if("stop"===b.compare_version(e).check)return!1;var c=a.opt,d=a.slide,f=a.recall,g=a.maintimeline,h=a.preset,i=a.startslideanimat,j="carousel"===c.slidertype?0:c.width/2-c.gridwidth[c.curwinrange]*c.bw/2,k=0,l=d.data("index");if(c.layers=c.layers||new object,c.layers[l]=c.layers[l]||d.find(".tp-caption"),c.layers.static=c.layers.static||c.c.find(".tp-static-layers").find(".tp-caption"),void 0===c.timelines&&b.createtimelinestructure(c),c.conh=c.c.height(),c.conw=c.c.width(),c.ulw=c.ul.width(),c.ulh=c.ul.height(),c.debugmode){d.addclass("indebugmode"),d.find(".helpgrid").remove(),c.c.find(".hglayerinfo").remove(),d.append('
');var m=d.find(".helpgrid");m.append('
zoom:'+math.round(100*c.bw)+"%     device level:"+c.curwinrange+"    grid preset:"+c.gridwidth[c.curwinrange]+"x"+c.gridheight[c.curwinrange]+"
"),c.c.append('
'),m.append('
')}void 0!==l&&c.layers[l]&&jquery.each(c.layers[l],function(a,d){var e=jquery(this);b.updatemarkup(this,c),b.preparesinglecaption({caption:e,opt:c,offsetx:j,offsety:k,index:a,recall:f,preset:h}),h&&0!==i||b.buildfulltimeline({caption:e,opt:c,offsetx:j,offsety:k,index:a,recall:f,preset:h,regenerate:0===i}),f&&"carousel"===c.slidertype&&"on"===c.carousel.showlayersalltime&&b.animcompleted(e,c)}),c.layers.static&&jquery.each(c.layers.static,function(a,d){var e=jquery(this),g=e.data();!0!==g.hoveredstatus&&!0!==g.inhoveroutanimation?(b.updatemarkup(this,c),b.preparesinglecaption({caption:e,opt:c,offsetx:j,offsety:k,index:a,recall:f,preset:h}),h&&0!==i||!0===g.veryfirstststic||(b.buildfulltimeline({caption:e,opt:c,offsetx:j,offsety:k,index:a,recall:f,preset:h,regenerate:0===i}),g.veryfirstststic=!0),f&&"carousel"===c.slidertype&&"on"===c.carousel.showlayersalltime&&b.animcompleted(e,c)):b.preparesinglecaption({caption:e,opt:c,offsetx:j,offsety:k,index:a,recall:f,preset:h})});var n=-1===c.nextslide||void 0===c.nextslide?0:c.nextslide;void 0!==c.rowzones&&(n=n>c.rowzones.length?c.rowzones.length:n),void 0!=c.rowzones&&c.rowzones.length>0&&void 0!=c.rowzones[n]&&n>=0&&n<=c.rowzones.length&&c.rowzones[n].length>0&&b.setsize(c),h||void 0!==i&&(void 0!==l&&jquery.each(c.timelines[l].layers,function(a,d){var e=d.layer.data();"none"!==d.wrapper&&void 0!==d.wrapper||("keep"==d.triggerstate&&"on"===e.triggerstate?b.playanimationframe({caption:d.layer,opt:c,frame:"frame_0",triggerdirection:"in",triggerframein:"frame_0",triggerframeout:"frame_999"}):d.timeline.restart())}),c.timelines.staticlayers&&jquery.each(c.timelines.staticlayers.layers,function(a,d){var e=d.layer.data(),f=n>=d.firstslide&&n<=d.lastslide,g=nd.lastslide,h=d.timeline.getlabeltime("slide_"+d.firstslide),i=d.timeline.getlabeltime("slide_"+d.lastslide),j=e.static_layer_timeline_time,k="in"===e.animdirection||"out"!==e.animdirection&&void 0,l="bytrigger"===e.frames[0].delay,o=(e.frames[e.frames.length-1].delay,e.triggered_startstatus),p=e.lasttriggerstate;!0!==e.hoveredstatus&&1!=e.inhoveroutanimation&&(void 0!==j&&k&&("keep"==p?(b.playanimationframe({caption:d.layer,opt:c,frame:"frame_0",triggerdirection:"in",triggerframein:"frame_0",triggerframeout:"frame_999"}),e.triggeredtimeline.time(j)):!0!==e.hoveredstatus&&d.timeline.time(j)),"reset"===p&&"hidden"===o&&(d.timeline.time(0),e.animdirection="out"),f?k?n===d.lastslide&&(d.timeline.play(i),e.animdirection="in"):(l||"in"===e.animdirection||d.timeline.play(h),("visible"==o&&"keep"!==p||"keep"===p&&!0===k||"visible"==o&&void 0===k)&&(d.timeline.play(h+.01),e.animdirection="in")):g&&k&&d.timeline.play("frame_999"))})),void 0!=g&&settimeout(function(){g.resume()},30)},preparesinglecaption:function(a){var c=a.caption,d=c.data(),e=a.opt,f=a.recall,g=a.recall,i=(a.preset,jquery("body").hasclass("rtl"));if(d._pw=void 0===d._pw?c.closest(".tp-parallax-wrap"):d._pw,d._lw=void 0===d._lw?c.closest(".tp-loop-wrap"):d._lw,d._mw=void 0===d._mw?c.closest(".tp-mask-wrap"):d._mw,d._responsive=d.responsive||"on",d._respoffset=d.responsive_offset||"on",d._ba=d.basealign||"grid",d._gw="grid"===d._ba?e.width:e.ulw,d._gh="grid"===d._ba?e.height:e.ulh,d._lig=void 0===d._lig?c.hasclass("rev_layer_in_group")?c.closest(".rev_group"):c.hasclass("rev_layer_in_column")?c.closest(".rev_column_inner"):c.hasclass("rev_column_inner")?c.closest(".rev_row"):"none":d._lig,d._column=void 0===d._column?c.hasclass("rev_column_inner")?c.closest(".rev_column"):"none":d._column,d._row=void 0===d._row?c.hasclass("rev_column_inner")?c.closest(".rev_row"):"none":d._row,d._ingroup=void 0===d._ingroup?!(c.hasclass("rev_group")||!c.closest(".rev_group")):d._ingroup,d._isgroup=void 0===d._isgroup?!!c.hasclass("rev_group"):d._isgroup,d._nctype=d.type||"none",d._cbgc_auto=void 0===d._cbgc_auto?"column"===d._nctype&&d._pw.find(".rev_column_bg_auto_sized"):d._cbgc_auto,d._cbgc_man=void 0===d._cbgc_man?"column"===d._nctype&&d._pw.find(".rev_column_bg_man_sized"):d._cbgc_man,d._slideid=d._slideid||c.closest(".tp-revslider-slidesli").data("index"),d._id=void 0===d._id?c.data("id")||c.attr("id"):d._id,d._slidelink=void 0===d._slidelink?void 0!==c.hasclass("slidelink")&&c.hasclass("slidelink"):d._slidelink,void 0===d._li&&(c.hasclass("tp-static-layer")?(d._isstatic=!0,d._li=c.closest(".tp-static-layers"),d._slideid="staticlayers"):d._li=c.closest(".tp-revslider-slidesli")),d._row=void 0===d._row?"column"===d._nctype&&d._pw.closest(".rev_row"):d._row,void 0===d._togglelisteners&&c.find(".rs-toggled-content")?(d._togglelisteners=!0,void 0===d.actions&&c.click(function(){b.swaptogglestate(c)})):d._togglelisteners=!1,"fullscreen"==e.sliderlayout&&(a.offsety=d._gh/2-e.gridheight[e.curwinrange]*e.bh/2),("on"==e.autoheight||void 0!=e.minheight&&e.minheight>0)&&(a.offsety=e.conh/2-e.gridheight[e.curwinrange]*e.bh/2),a.offsety<0&&(a.offsety=0),e.debugmode){c.closest("li").find(".helpgrid").css({top:a.offsety+"px",left:a.offsetx+"px"});var k=e.c.find(".hglayerinfo");c.on("hover, mouseenter",function(){var a="";c.data()&&jquery.each(c.data(),function(b,c){"object"!=typeof c&&(a=a+''+b+":"+c+"    ")}),k.html(a)})}if("off"===(void 0===d.visibility?"oon":v(d.visibility,e)[e.forcedwinrange]||v(d.visibility,e)||"ooon")||d._gw0){var n=c.find("img");d.layertype="image",0==n.width()&&n.css({width:"auto"}),0==n.height()&&n.css({height:"auto"}),void 0==n.data("ww")&&n.width()>0&&n.data("ww",n.width()),void 0==n.data("hh")&&n.height()>0&&n.data("hh",n.height());var o=n.data("ww"),p=n.data("hh"),q="slide"==d._ba?e.ulw:e.gridwidth[e.curwinrange],r="slide"==d._ba?e.ulh:e.gridheight[e.curwinrange];o=v(n.data("ww"),e)[e.curwinrange]||v(n.data("ww"),e)||"auto",p=v(n.data("hh"),e)[e.curwinrange]||v(n.data("hh"),e)||"auto";var s="full"===o||"full-proportional"===o,t="full"===p||"full-proportional"===p;if("full-proportional"===o){var u=n.data("owidth"),x=n.data("oheight");u/q0?o:parsefloat(o),p=t?r:!jquery.isnumeric(p)&&p.indexof("%")>0?p:parsefloat(p);o=void 0===o?0:o,p=void 0===p?0:p,"off"!==d._responsive?("grid"!=d._ba&&s?jquery.isnumeric(o)?n.css({width:o+"px"}):n.css({width:o}):jquery.isnumeric(o)?n.css({width:o*e.bw+"px"}):n.css({width:o}),"grid"!=d._ba&&t?jquery.isnumeric(p)?n.css({height:p+"px"}):n.css({height:p}):jquery.isnumeric(p)?n.css({height:p*e.bh+"px"}):n.css({height:p})):n.css({width:o,height:p}),d._ingroup&&"row"!==d._nctype&&(void 0!==o&&!jquery.isnumeric(o)&&"string"===jquery.type(o)&&o.indexof("%")>0&&punchgs.tweenlite.set([d._lw,d._pw,d._mw],{minwidth:o}),void 0!==p&&!jquery.isnumeric(p)&&"string"===jquery.type(p)&&p.indexof("%")>0&&punchgs.tweenlite.set([d._lw,d._pw,d._mw],{minheight:p}))}if("slide"===d._ba)a.offsetx=0,a.offsety=0;else if(d._isstatic&&void 0!==e.carousel&&void 0!==e.carousel.horizontal_align&&"carousel"===e.slidertype){switch(e.carousel.horizontal_align){case"center":a.offsetx=0+(e.ulw-e.gridwidth[e.curwinrange]*e.bw)/2;break;case"left":break;case"right":a.offsetx=e.ulw-e.gridwidth[e.curwinrange]*e.bw}a.offsetx=a.offsetx<0?0:a.offsetx}var a="html5"==d.audio?"audio":"video";if(c.hasclass("tp-videolayer")||c.hasclass("tp-audiolayer")||c.find("iframe").length>0||c.find(a).length>0){if(d.layertype="video",b.managevideolayer&&b.managevideolayer(c,e,f,g),!f&&!g){d.videotype;b.resetvideo&&b.resetvideo(c,e,a.preset)}var d=d.aspectratio;void 0!=d&&d.split(":").length>1&&b.preparecoveredvideo(d,e,c);var n=c.find("iframe")?c.find("iframe"):n=c.find(a),e=!c.find("iframe"),f=c.hasclass("coverscreenvideo");n.css({display:"block"}),void 0==c.data("videowidth")&&(c.data("videowidth",n.width()),c.data("videoheight",n.height()));var o=v(c.data("videowidth"),e)[e.curwinrange]||v(c.data("videowidth"),e)||"auto",p=v(c.data("videoheight"),e)[e.curwinrange]||v(c.data("videoheight"),e)||"auto";o="auto"===o||!jquery.isnumeric(o)&&o.indexof("%")>0?"auto"===o?"auto":"grid"===d._ba?e.gridwidth[e.curwinrange]*e.bw:d._gw:parsefloat(o)*e.bw+"px",p="auto"===p||!jquery.isnumeric(p)&&p.indexof("%")>0?"auto"===p?"auto":"grid"===d._ba?e.gridheight[e.curwinrange]*e.bw:d._gh:parsefloat(p)*e.bh+"px",d.cssobj=void 0===d.cssobj?y(c,0):d.cssobj;var g=z(d.cssobj,e);if("auto"==g.lineheight&&(g.lineheight=g.fontsize+4),c.hasclass("fullscreenvideo")||f){a.offsetx=0,a.offsety=0,c.data("x",0),c.data("y",0);var h=d._gh;"on"==e.autoheight&&(h=e.conh),c.css({width:d._gw,height:h})}else punchgs.tweenlite.set(c,{paddingtop:math.round(g.paddingtop*e.bh)+"px",paddingbottom:math.round(g.paddingbottom*e.bh)+"px",paddingleft:math.round(g.paddingleft*e.bw)+"px",paddingright:math.round(g.paddingright*e.bw)+"px",margintop:g.margintop*e.bh+"px",marginbottom:g.marginbottom*e.bh+"px",marginleft:g.marginleft*e.bw+"px",marginright:g.marginright*e.bw+"px",bordertopwidth:math.round(g.bordertopwidth*e.bh)+"px",borderbottomwidth:math.round(g.borderbottomwidth*e.bh)+"px",borderleftwidth:math.round(g.borderleftwidth*e.bw)+"px",borderrightwidth:math.round(g.borderrightwidth*e.bw)+"px",width:o,height:p});(0==e&&!f||1!=d.forcecover&&!c.hasclass("fullscreenvideo")&&!f)&&(n.width(o),n.height(p)),d._ingroup&&null!==d.videowidth&&void 0!==d.videowidth&&!jquery.isnumeric(d.videowidth)&&d.videowidth.indexof("%")>0&&punchgs.tweenlite.set([d._lw,d._pw,d._mw],{minwidth:d.videowidth})}b(c,e,0,d._responsive),c.hasclass("tp-resizeme")&&c.find("*").each(function(){b(jquery(this),e,"rekursive",d._responsive)});var i=c.outerheight(),j=c.css("backgroundcolor");w(c,".frontcorner","left","borderright","bordertopcolor",i,j),w(c,".frontcornertop","left","borderright","borderbottomcolor",i,j),w(c,".backcorner","right","borderleft","borderbottomcolor",i,j),w(c,".backcornertop","right","borderleft","bordertopcolor",i,j),"on"==e.fullscreenalignforce&&(a.offsetx=0,a.offsety=0),"block"===d._sfx&&void 0===d._bmask&&(d._bmask=jquery('
'),d._mw.append(d._bmask)),d.arrobj=new object,d.arrobj.voa=v(d.voffset,e)[e.curwinrange]||v(d.voffset,e)[0],d.arrobj.hoa=v(d.hoffset,e)[e.curwinrange]||v(d.hoffset,e)[0],d.arrobj.elx=v(d.x,e)[e.curwinrange]||v(d.x,e)[0],d.arrobj.ely=v(d.y,e)[e.curwinrange]||v(d.y,e)[0];var k=0==d.arrobj.voa.length?0:d.arrobj.voa,l=0==d.arrobj.hoa.length?0:d.arrobj.hoa,m=0==d.arrobj.elx.length?0:d.arrobj.elx,n=0==d.arrobj.ely.length?0:d.arrobj.ely;d.eow=c.outerwidth(!0),d.eoh=c.outerheight(!0),0==d.eow&&0==d.eoh&&(d.eow=e.ulw,d.eoh=e.ulh);var o="off"!==d._respoffset?parseint(k,0)*e.bw:parseint(k,0),p="off"!==d._respoffset?parseint(l,0)*e.bw:parseint(l,0),q="grid"===d._ba?e.gridwidth[e.curwinrange]*e.bw:d._gw,r="grid"===d._ba?e.gridheight[e.curwinrange]*e.bw:d._gh;"on"==e.fullscreenalignforce&&(q=e.ulw,r=e.ulh),"none"!==d._lig&&void 0!=d._lig&&(q=d._lig.width(),r=d._lig.height(),a.offsetx=0,a.offsety=0),m="center"===m||"middle"===m?q/2-d.eow/2+p:"left"===m?p:"right"===m?q-d.eow-p:"off"!==d._respoffset?m*e.bw:m,n="center"==n||"middle"==n?r/2-d.eoh/2+o:"top"==n?o:"bottom"==n?r-d.eoh-o:"off"!==d._respoffset?n*e.bw:n,i&&!d._slidelink&&(m+=d.eow),d._slidelink&&(m=0),d.calcx=parseint(m,0)+a.offsetx,d.calcy=parseint(n,0)+a.offsety;var s=c.css("z-index");if("row"!==d._nctype&&"column"!==d._nctype)punchgs.tweenlite.set(d._pw,{zindex:s,top:d.calcy,left:d.calcx,overwrite:"auto"});else if("row"!==d._nctype)punchgs.tweenlite.set(d._pw,{zindex:s,width:d.columnwidth,top:0,left:0,overwrite:"auto"});else if("row"===d._nctype){var t="grid"===d._ba?q+"px":"100%";punchgs.tweenlite.set(d._pw,{zindex:s,width:t,top:0,left:a.offsetx,overwrite:"auto"})}if(void 0!==d.blendmode&&punchgs.tweenlite.set(d._pw,{mixblendmode:d.blendmode}),"row"===d._nctype&&(d.columnbreak<=e.curwinrange?c.addclass("rev_break_columns"):c.removeclass("rev_break_columns")),"on"==d.loopanimation&&punchgs.tweenlite.set(d._lw,{minwidth:d.eow,minheight:d.eoh}),"column"===d._nctype){var u=void 0!==c[0]._gstransform?c[0]._gstransform.y:0,v=parseint(d._column[0].style.paddingtop,0);punchgs.tweenlite.set(c,{y:0}),punchgs.tweenlite.set(d._cbgc_man,{y:parseint(v+d._column.offset().top-c.offset().top,0)}),punchgs.tweenlite.set(c,{y:u})}d._ingroup&&"row"!==d._nctype&&(void 0!==d._groupw&&!jquery.isnumeric(d._groupw)&&d._groupw.indexof("%")>0&&punchgs.tweenlite.set([d._lw,d._pw,d._mw],{minwidth:d._groupw}),void 0!==d._grouph&&!jquery.isnumeric(d._grouph)&&d._grouph.indexof("%")>0&&punchgs.tweenlite.set([d._lw,d._pw,d._mw],{minheight:d._grouph}))},createtimelinestructure:function(a){function b(a,b,c,d){var f,e=new punchgs.timelinelite({paused:!0});c=c||new object,c[a.attr("id")]=c[a.attr("id")]||new object,"staticlayers"===d&&(c[a.attr("id")].firstslide=a.data("startslide"),c[a.attr("id")].lastslide=a.data("endslide")),a.data("slideid",d),c[a.attr("id")].defclasses=f=a[0].classname,c[a.attr("id")].wrapper=f.indexof("rev_layer_in_column")>=0?a.closest(".rev_column_inner"):f.indexof("rev_column_inner")>=0?a.closest(".rev_row"):f.indexof("rev_layer_in_group")>=0?a.closest(".rev_group"):"none",c[a.attr("id")].timeline=e,c[a.attr("id")].layer=a,c[a.attr("id")].triggerstate=a.data("lasttriggerstate"),c[a.attr("id")].dchildren=f.indexof("rev_row")>=0?a[0].getelementsbyclassname("rev_column_inner"):f.indexof("rev_column_inner")>=0?a[0].getelementsbyclassname("tp-caption"):f.indexof("rev_group")>=0?a[0].getelementsbyclassname("rev_layer_in_group"):"none",a.data("timeline",e)}a.timelines=a.timelines||new object,a.c.find(".tp-revslider-slidesli, .tp-static-layers").each(function(){var c=jquery(this),d=c.data("index");a.timelines[d]=a.timelines[d]||{},a.timelines[d].layers=a.timelines[d].layers||new object,c.find(".tp-caption").each(function(c){b(jquery(this),a,a.timelines[d].layers,d)})})},buildfulltimeline:function(a){var g,h,c=a.caption,d=c.data(),e=a.opt,f={},j=q();if(g=e.timelines[d._slideid].layers[d._id],!g.generated||!0===a.regenerate){if(h=g.timeline,g.generated=!0,void 0!==d.current_timeline&&!0!==a.regenerate?(d.current_timeline_pause=d.current_timeline.paused(),d.current_timeline_time=d.current_timeline.time(),d.current_is_nc_timeline=h===d.current_timeline,d.static_layer_timeline_time=d.current_timeline_time):(d.static_layer_timeline_time=d.current_timeline_time,d.current_timeline_time=0,d.current_timeline&&d.current_timeline.clear()),h.clear(),f.svg=void 0!=d.svg_src&&c.find("svg"),f.svg&&(d.idlesvg=o(d.svg_idle,n()),punchgs.tweenlite.set(f.svg,d.idlesvg.anim)),-1!==d.hoverframeindex&&void 0!==d.hoverframeindex&&!c.hasclass("rs-hover-ready")){if(c.addclass("rs-hover-ready"),d.hovertimelines={},d.hoveranim=t(j,d.frames[d.hoverframeindex].to),d.hoveranim=x(d.hoveranim,d.frames[d.hoverframeindex].style),f.svg){var l=o(d.svg_hover,n());void 0!=d.hoveranim.anim.color&&(l.anim.fill=d.hoveranim.anim.color,d.idlesvg.anim.css.fill=f.svg.css("fill")),d.hoversvg=l}c.hover(function(a){var b={caption:jquery(a.currenttarget),opt:e,firstframe:"frame_0",lastframe:"frame_999"},d=(i(b),b.caption),g=d.data(),h=g.frames[g.hoverframeindex];g.forcehover=h.force,g.hovertimelines.item=punchgs.tweenlite.to(d,h.speed/1e3,g.hoveranim.anim),(g.hoverzindex||g.hoveranim.anim&&g.hoveranim.anim.zindex)&&(g.basiczindex=void 0===g.basiczindex?g.cssobj.zindex:g.basiczindex,g.hoverzindex=void 0===g.hoverzindex?g.hoveranim.anim.zindex:g.hoverzindex,g.inhoverinanimation=!0,0===h.speed&&(g.inhoverinanimation=!1),g.hovertimelines.pwhoveranim=punchgs.tweenlite.to(g._pw,h.speed/1e3,{overwrite:"auto",zindex:g.hoverzindex}),g.hovertimelines.pwhoveranim.eventcallback("oncomplete",function(a){a.inhoverinanimation=!1},[g])),f.svg&&(g.hovertimelines.svghoveranim=punchgs.tweenlite.to([f.svg,f.svg.find("path")],h.speed/1e3,g.hoversvg.anim)),g.hoveredstatus=!0},function(a){var b={caption:jquery(a.currenttarget),opt:e,firstframe:"frame_0",lastframe:"frame_999"},d=(i(b),b.caption),g=d.data(),h=g.frames[g.hoverframeindex];g.hoveredstatus=!1,g.inhoveroutanimation=!0,g.hovertimelines.item.pause(),g.hovertimelines.item=punchgs.tweenlite.to(d,h.speed/1e3,jquery.extend(!0,{},g._gstransformto)),0==h.speed&&(g.inhoveroutanimation=!1),g.hovertimelines.item.eventcallback("oncomplete",function(a){a.inhoveroutanimation=!1},[g]),void 0!==g.hovertimelines.pwhoveranim&&(g.hovertimelines.pwhoveranim=punchgs.tweenlite.to(g._pw,h.speed/1e3,{overwrite:"auto",zindex:g.basiczindex})),f.svg&&punchgs.tweenlite.to([f.svg,f.svg.find("path")],h.speed/1e3,g.idlesvg.anim)})}for(var m=0;m=0?r:parseint(r,0)/1e3:"wait");void 0!==g.firstslide&&"frame_0"===p&&(h.addlabel("slide_"+g.firstslide+"_pause",0),h.addpause("slide_"+g.firstslide+"_pause"),h.addlabel("slide_"+g.firstslide,"+=0.005")),void 0!==g.lastslide&&"frame_999"===p&&(h.addlabel("slide_"+g.lastslide+"_pause","+=0.01"),h.addpause("slide_"+g.lastslide+"_pause"),h.addlabel("slide_"+g.lastslide,"+=0.005")),jquery.isnumeric(u)?h.addlabel(p,"+="+u):(h.addlabel("pause_"+m,"+=0.01"),h.addpause("pause_"+m),h.addlabel(p,"+=0.01")),h=b.createframeontimeline({caption:a.caption,timeline:h,label:p,frameindex:m,opt:e})}a.regenerate||(d.current_is_nc_timeline&&(d.current_timeline=h),d.current_timeline_pause?h.pause(d.current_timeline_time):h.time(d.current_timeline_time))}},createframeontimeline:function(a){var b=a.caption,c=b.data(),d=a.label,e=a.timeline,i=a.frameindex,j=a.opt,n=b,o={},q=j.timelines[c._slideid].layers[c._id],r=c.frames.length-1,v=c.frames[i].split,w=c.frames[i].split_direction,x=c.frames[i].sfx_effect,y=!1;if(w=void 0===w?"forward":w,-1!==c.hoverframeindex&&c.hoverframeindex==r&&(r-=1),o.content=new punchgs.timelinelite({align:"normal"}),o.mask=new punchgs.timelinelite({align:"normal"}),void 0===e.vars.id&&(e.vars.id=math.round(1e5*math.random())),"column"===c._nctype&&(e.add(punchgs.tweenlite.set(c._cbgc_man,{visibility:"visible"}),d),e.add(punchgs.tweenlite.set(c._cbgc_auto,{visibility:"hidden"}),d)),c.splittext&&0===i){void 0!==c.mysplittext&&c.mysplittext.revert();var z=b.find("a").length>0?b.find("a"):b;c.mysplittext=new punchgs.splittext(z,{type:"chars,words,lines",charsclass:"tp-splitted tp-charsplit",wordsclass:"tp-splitted tp-wordsplit",linesclass:"tp-splitted tp-linesplit"}),b.addclass("splitted")}void 0!==c.mysplittext&&v&&v.match(/chars|words|lines/g)&&(n=c.mysplittext[v],y=!0);var d,e,a=i!==c.outframeindex?t(m(),c.frames[i].to,void 0,y,n.length-1):void 0!==c.frames[i].to&&null===c.frames[i].to.match(/auto:auto/g)?t(p(),c.frames[i].to,1==j.sdir,y,n.length-1):t(p(),c.frames[c.inframeindex].from,0==j.sdir,y,n.length-1),b=void 0!==c.frames[i].from?t(a,c.frames[c.inframeindex].from,1==j.sdir,y,n.length-1):void 0,c=c.frames[i].splitdelay;if(0!==i||a.fromcurrentstate?e=u(c.frames[i].mask):d=u(c.frames[i].mask),a.anim.ease=void 0===c.frames[i].ease?punchgs.power1.easeinout:c.frames[i].ease,void 0!==b&&(b.anim.ease=void 0===c.frames[i].ease?punchgs.power1.easeinout:c.frames[i].ease,b.speed=void 0===c.frames[i].speed?b.speed:c.frames[i].speed,b.anim.x=b.anim.x*j.bw||s(b.anim.x,j,c.eow,c.eoh,c.calcy,c.calcx,"horizontal"),b.anim.y=b.anim.y*j.bw||s(b.anim.y,j,c.eow,c.eoh,c.calcy,c.calcx,"vertical")),void 0!==a&&(a.anim.ease=void 0===c.frames[i].ease?punchgs.power1.easeinout:c.frames[i].ease,a.speed=void 0===c.frames[i].speed?a.speed:c.frames[i].speed,a.anim.x=a.anim.x*j.bw||s(a.anim.x,j,c.eow,c.eoh,c.calcy,c.calcx,"horizontal"),a.anim.y=a.anim.y*j.bw||s(a.anim.y,j,c.eow,c.eoh,c.calcy,c.calcx,"vertical")),b.data("iframes")&&e.add(punchgs.tweenlite.set(b.find("iframe"),{autoalpha:1}),d+"+=0.001"),i===c.outframeindex&&(c.frames[i].to&&c.frames[i].to.match(/auto:auto/g),a.speed=void 0===c.frames[i].speed||"inherit"===c.frames[i].speed?c.frames[c.inframeindex].speed:c.frames[i].speed,a.anim.ease=void 0===c.frames[i].ease||"inherit"===c.frames[i].ease?c.frames[c.inframeindex].ease:c.frames[i].ease,a.anim.overwrite="auto"),0!==i||a.fromcurrentstate)0===i&&a.fromcurrentstate&&(a.speed=b.speed);else{if(n!=b){var f=jquery.extend({},a.anim,!0);e.add(punchgs.tweenlite.set(b,a.anim),d),a=m(),a.ease=f.ease,void 0!==f.filter&&(a.anim.filter=f.filter),void 0!==f["-webkit-filter"]&&(a.anim["-webkit-filter"]=f["-webkit-filter"])}b.anim.visibility="hidden",b.anim.immediaterender=!0,a.anim.visibility="visible"}a.fromcurrentstate&&(a.anim.immediaterender=!0);var g=-1;if(0===i&&!a.fromcurrentstate&&void 0!==c._bmask&&void 0!==x&&x.indexof("block")>=0||i===c.outframeindex&&!a.fromcurrentstate&&void 0!==c._bmask&&void 0!==x&&x.indexof("block")>=0){var h=0===i?b.speed/1e3/2:a.speed/1e3/2,i=[{scaley:1,scalex:0,transformorigin:"0% 50%"},{scaley:1,scalex:1,ease:a.anim.ease}],j={scaley:1,scalex:0,transformorigin:"100% 50%",ease:a.anim.ease};switch(g=void 0===c?h:c+h,x){case"blocktoleft":case"blockfromright":i[0].transformorigin="100% 50%",j.transformorigin="0% 50%";break;case"blockfromtop":case"blocktobottom":i=[{scalex:1,scaley:0,transformorigin:"50% 0%"},{scalex:1,scaley:1,ease:a.anim.ease}],j={scalex:1,scaley:0,transformorigin:"50% 100%",ease:a.anim.ease};break;case"blocktotop":case"blockfrombottom":i=[{scalex:1,scaley:0,transformorigin:"50% 100%"},{scalex:1,scaley:1,ease:a.anim.ease}],j={scalex:1,scaley:0,transformorigin:"50% 0%",ease:a.anim.ease}}i[0].background=c.frames[i].sfxcolor,e.add(o.mask.fromto(c._bmask,h,i[0],i[1],c),d),e.add(o.mask.to(c._bmask,h,j,g),d)}if(y)var k=k(n.length-1,w);if(0!==i||a.fromcurrentstate)if("block"===c._sfx_out&&i===c.outframeindex)e.add(o.content.staggerto(n,.001,{autoalpha:0,delay:g}),d),e.add(o.content.staggerto(n,a.speed/1e3/2-.001,{x:0,delay:g}),d+"+=0.001");else if(y&&void 0!==k){var l={to:l(a.anim)};for(var m in n){var o=jquery.extend({},a.anim);for(var p in l.to)o[p]=parseint(l.to[p].values[l.to[p].index],0),l.to[p].index=l.to[p].index=c.removeonslide||a.currentslide0)for(var e=0;e0)if(0===a)for(var l=0;l=0&&c.push(f),g<=a&&c.push(g),f--,g++;break;case"edgetomiddle":for(var f=a,g=0,d=0;d<=math.floor(a/2);d++)c.push(f),g=0&&(void 0===b[c]&&(b[c]={index:0}),b[c].values=a[c].replace("[","").replace("]","").split("|"),b[c].len=b[c].values.length-1);return b},m=function(a){return a=void 0===a?new object:a,a.anim=void 0===a.anim?new object:a.anim,a.anim.x=void 0===a.anim.x?0:a.anim.x,a.anim.y=void 0===a.anim.y?0:a.anim.y,a.anim.z=void 0===a.anim.z?0:a.anim.z,a.anim.rotationx=void 0===a.anim.rotationx?0:a.anim.rotationx,a.anim.rotationy=void 0===a.anim.rotationy?0:a.anim.rotationy,a.anim.rotationz=void 0===a.anim.rotationz?0:a.anim.rotationz,a.anim.scalex=void 0===a.anim.scalex?1:a.anim.scalex,a.anim.scaley=void 0===a.anim.scaley?1:a.anim.scaley,a.anim.skewx=void 0===a.anim.skewx?0:a.anim.skewx,a.anim.skewy=void 0===a.anim.skewy?0:a.anim.skewy,a.anim.opacity=void 0===a.anim.opacity?1:a.anim.opacity,a.anim.transformorigin=void 0===a.anim.transformorigin?"50% 50%":a.anim.transformorigin,a.anim.transformperspective=void 0===a.anim.transformperspective?600:a.anim.transformperspective,a.anim.rotation=void 0===a.anim.rotation?0:a.anim.rotation,a.anim.force3d=void 0===a.anim.force3d?"auto":a.anim.force3d,a.anim.autoalpha=void 0===a.anim.autoalpha?1:a.anim.autoalpha,a.anim.visibility=void 0===a.anim.visibility?"visible":a.anim.visibility,a.anim.overwrite=void 0===a.anim.overwrite?"auto":a.anim.overwrite,a.speed=void 0===a.speed?.3:a.speed,a.filter=void 0===a.filter?"blur(0px) grayscale(0%) brightness(100%)":a.filter,a["-webkit-filter"]=void 0===a["-webkit-filter"]?"blur(0px) grayscale(0%) brightness(100%)":a["-webkit-filter"],a},n=function(){var a=new object;return a.anim=new object,a.anim.stroke="none",a.anim.strokewidth=0,a.anim.strokedasharray="none",a.anim.strokedashoffset="0",a},o=function(a,b){var c=a.split(";");return c&&jquery.each(c,function(a,c){var d=c.split(":"),e=d[0],f=d[1];"sc"==e&&(b.anim.stroke=f),"sw"==e&&(b.anim.strokewidth=f),"sda"==e&&(b.anim.strokedasharray=f),"sdo"==e&&(b.anim.strokedashoffset=f)}),b},p=function(){var a=new object;return a.anim=new object,a.anim.x=0,a.anim.y=0,a.anim.z=0,a},q=function(){var a=new object;return a.anim=new object,a.speed=.2,a},r=function(a,b,c,d,e){if(e=void 0===e?"":e,jquery.isnumeric(parsefloat(a)))return parsefloat(a)+e;if(void 0===a||"inherit"===a)return b+"ext";if(a.split("{").length>1){var f=a.split(","),g=parsefloat(f[1].split("}")[0]);if(f=parsefloat(f[0].split("{")[1]),void 0!==c&&void 0!==d){parseint(math.random()*(g-f),0),parseint(f,0);for(var h=0;h0&&j.match(/\(r\)/)&&(j=j.replace("(r)",""),j="right"===j?"left":"left"===j?"right":"top"===j?"bottom":"bottom"===j?"top":j,"["===j[0]&&"-"===j[1]?j=j.replace("[-","["):"["===j[0]&&"-"!==j[1]?j=j.replace("[","[-"):"-"===j[0]?j=j.replace("-",""):j[0].match(/[1-9]/)&&(j="-"+j)),void 0!=j&&(j=j.replace(/\(r\)/,""),"rotationx"!=i&&"rx"!=i||(f.anim.rotationx=r(j,f.anim.rotationx,d,e,"deg")),"rotationy"!=i&&"ry"!=i||(f.anim.rotationy=r(j,f.anim.rotationy,d,e,"deg")),"rotationz"!=i&&"rz"!=i||(f.anim.rotation=r(j,f.anim.rotationz,d,e,"deg")),"scalex"!=i&&"sx"!=i||(f.anim.scalex=r(j,f.anim.scalex,d,e)),"scaley"!=i&&"sy"!=i||(f.anim.scaley=r(j,f.anim.scaley,d,e)),"opacity"!=i&&"o"!=i||(f.anim.opacity=r(j,f.anim.opacity,d,e)),"fb"==i&&(h=""===h?"blur("+parseint(j,0)+"px)":h+" blur("+parseint(j,0)+"px)"),"fg"==i&&(h=""===h?"grayscale("+parseint(j,0)+"%)":h+" grayscale("+parseint(j,0)+"%)"),"fbr"==i&&(h=""===h?"brightness("+parseint(j,0)+"%)":h+" brightness("+parseint(j,0)+"%)"),0===f.anim.opacity&&(f.anim.autoalpha=0),f.anim.opacity=0==f.anim.opacity?1e-4:f.anim.opacity,"skewx"!=i&&"skx"!=i||(f.anim.skewx=r(j,f.anim.skewx,d,e)),"skewy"!=i&&"sky"!=i||(f.anim.skewy=r(j,f.anim.skewy,d,e)),"x"==i&&(f.anim.x=r(j,f.anim.x,d,e)),"y"==i&&(f.anim.y=r(j,f.anim.y,d,e)),"z"==i&&(f.anim.z=r(j,f.anim.z,d,e)),"transformorigin"!=i&&"to"!=i||(f.anim.transformorigin=j.tostring()),"transformperspective"!=i&&"tp"!=i||(f.anim.transformperspective=parseint(j,0)),"speed"!=i&&"s"!=i||(f.speed=parsefloat(j)))}),""!==h&&(f.anim["-webkit-filter"]=h,f.anim.filter=h),f},u=function(a){if(void 0===a)return!1;var b=new object;b.anim=new object;var c=a.split(";");return c&&jquery.each(c,function(a,c){c=c.split(":");var d=c[0],e=c[1];"x"==d&&(b.anim.x=e),"y"==d&&(b.anim.y=e),"s"==d&&(b.speed=parsefloat(e)),"e"!=d&&"ease"!=d||(b.anim.ease=e)}),b},v=function(a,b,c){if(void 0==a&&(a=0),!jquery.isarray(a)&&"string"===jquery.type(a)&&(a.split(",").length>1||a.split("[").length>1)){a=a.replace("[",""),a=a.replace("]","");var d=a.match(/'/g)?a.split("',"):a.split(",");a=new array,d&&jquery.each(d,function(b,c){c=c.replace("'",""),c=c.replace("'",""),a.push(c)})}else{var e=a;jquery.isarray(a)||(a=new array,a.push(e))}var e=a[a.length-1];if(a.length0&&("background-color"===d[0]&&d[1].indexof("gradient")>=0&&(d[0]="background"),a.anim[d[0]]=d[1])}),a},y=function(a,b){var e,c=new object,d=!1;if("rekursive"==b&&(e=a.closest(".tp-caption"))&&a.css("fontsize")===e.css("fontsize")&&a.css("fontweight")===e.css("fontweight")&&a.css("lineheight")===e.css("lineheight")&&(d=!0),c.basealign=a.data("basealign")||"grid",c.fontsize=d?void 0===e.data("fontsize")?parseint(e.css("fontsize"),0)||0:e.data("fontsize"):void 0===a.data("fontsize")?parseint(a.css("fontsize"),0)||0:a.data("fontsize"),c.fontweight=d?void 0===e.data("fontweight")?parseint(e.css("fontweight"),0)||0:e.data("fontweight"):void 0===a.data("fontweight")?parseint(a.css("fontweight"),0)||0:a.data("fontweight"),c.whitespace=d?void 0===e.data("whitespace")?e.css("whitespace")||"normal":e.data("whitespace"):void 0===a.data("whitespace")?a.css("whitespace")||"normal":a.data("whitespace"),c.textalign=d?void 0===e.data("textalign")?e.css("textalign")||"inherit":e.data("textalign"):void 0===a.data("textalign")?a.css("textalign")||"inherit":a.data("textalign"),c.zindex=d?void 0===e.data("zindex")?e.css("zindex")||"inherit":e.data("zindex"):void 0===a.data("zindex")?a.css("zindex")||"inherit":a.data("zindex"),-1!==jquery.inarray(a.data("layertype"),["video","image","audio"])||a.is("img")?c.lineheight=0:c.lineheight=d?void 0===e.data("lineheight")?parseint(e.css("lineheight"),0)||0:e.data("lineheight"):void 0===a.data("lineheight")?parseint(a.css("lineheight"),0)||0:a.data("lineheight"),c.letterspacing=d?void 0===e.data("letterspacing")?parsefloat(e.css("letterspacing"),0)||0:e.data("letterspacing"):void 0===a.data("letterspacing")?parsefloat(a.css("letterspacing"))||0:a.data("letterspacing"),c.paddingtop=void 0===a.data("paddingtop")?parseint(a.css("paddingtop"),0)||0:a.data("paddingtop"),c.paddingbottom=void 0===a.data("paddingbottom")?parseint(a.css("paddingbottom"),0)||0:a.data("paddingbottom"),c.paddingleft=void 0===a.data("paddingleft")?parseint(a.css("paddingleft"),0)||0:a.data("paddingleft"),c.paddingright=void 0===a.data("paddingright")?parseint(a.css("paddingright"),0)||0:a.data("paddingright"),c.margintop=void 0===a.data("margintop")?parseint(a.css("margintop"),0)||0:a.data("margintop"),c.marginbottom=void 0===a.data("marginbottom")?parseint(a.css("marginbottom"),0)||0:a.data("marginbottom"),c.marginleft=void 0===a.data("marginleft")?parseint(a.css("marginleft"),0)||0:a.data("marginleft"),c.marginright=void 0===a.data("marginright")?parseint(a.css("marginright"),0)||0:a.data("marginright"),c.bordertopwidth=void 0===a.data("bordertopwidth")?parseint(a.css("bordertopwidth"),0)||0:a.data("bordertopwidth"),c.borderbottomwidth=void 0===a.data("borderbottomwidth")?parseint(a.css("borderbottomwidth"),0)||0:a.data("borderbottomwidth"),c.borderleftwidth=void 0===a.data("borderleftwidth")?parseint(a.css("borderleftwidth"),0)||0:a.data("borderleftwidth"),c.borderrightwidth=void 0===a.data("borderrightwidth")?parseint(a.css("borderrightwidth"),0)||0:a.data("borderrightwidth"),"rekursive"!=b){if(c.color=void 0===a.data("color")?"nopredefinedcolor":a.data("color"),c.whitespace=d?void 0===e.data("whitespace")?e.css("whitespace")||"nowrap":e.data("whitespace"):void 0===a.data("whitespace")?a.css("whitespace")||"nowrap":a.data("whitespace"),c.textalign=d?void 0===e.data("textalign")?e.css("textalign")||"inherit":e.data("textalign"):void 0===a.data("textalign")?a.css("textalign")||"inherit":a.data("textalign"),c.fontweight=d?void 0===e.data("fontweight")?parseint(e.css("fontweight"),0)||0:e.data("fontweight"):void 0===a.data("fontweight")?parseint(a.css("fontweight"),0)||0:a.data("fontweight"),c.minwidth=void 0===a.data("width")?parseint(a.css("minwidth"),0)||0:a.data("width"),c.minheight=void 0===a.data("height")?parseint(a.css("minheight"),0)||0:a.data("height"),void 0!=a.data("videowidth")&&void 0!=a.data("videoheight")){var f=a.data("videowidth"),g=a.data("videoheight");f="100%"===f?"none":f,g="100%"===g?"none":g,a.data("width",f),a.data("height",g)}c.maxwidth=void 0===a.data("width")?parseint(a.css("maxwidth"),0)||"none":a.data("width"),c.maxheight=-1!==jquery.inarray(a.data("type"),["column","row"])?"none":void 0===a.data("height")?parseint(a.css("maxheight"),0)||"none":a.data("height"),c.wan=void 0===a.data("wan")?parseint(a.css("-webkit-transition"),0)||"none":a.data("wan"),c.moan=void 0===a.data("moan")?parseint(a.css("-moz-animation-transition"),0)||"none":a.data("moan"),c.man=void 0===a.data("man")?parseint(a.css("-ms-animation-transition"),0)||"none":a.data("man"),c.ani=void 0===a.data("ani")?parseint(a.css("transition"),0)||"none":a.data("ani")}return c.styleprops={bordertopleftradius:a[0].style.bordertopleftradius,bordertoprightradius:a[0].style.bordertoprightradius,borderbottomrightradius:a[0].style.borderbottomrightradius,borderbottomleftradius:a[0].style.borderbottomleftradius,background:a[0].style.background,boxshadow:a[0].style.boxshadow,"background-color":a[0].style["background-color"],"border-top-color":a[0].style["border-top-color"],"border-bottom-color":a[0].style["border-bottom-color"],"border-right-color":a[0].style["border-right-color"],"border-left-color":a[0].style["border-left-color"],"border-top-style":a[0].style["border-top-style"],"border-bottom-style":a[0].style["border-bottom-style"],"border-left-style":a[0].style["border-left-style"],"border-right-style":a[0].style["border-right-style"],"border-left-width":a[0].style["border-left-width"],"border-right-width":a[0].style["border-right-width"],"border-bottom-width":a[0].style["border-bottom-width"],"border-top-width":a[0].style["border-top-width"],color:a[0].style.color,"text-decoration":a[0].style["text-decoration"],"font-style":a[0].style["font-style"]},""!==c.styleprops.background&&void 0!==c.styleprops.background&&c.styleprops.background!==c.styleprops["background-color"]||delete c.styleprops.background,""==c.styleprops.color&&(c.styleprops.color=a.css("color")),c},z=function(a,b){var c=new object;return a&&jquery.each(a,function(d,e){var f=v(e,b)[b.curwinrange];c[d]=void 0!==f?f:a[d]}),c},a=function(a,b,c,d){return a=jquery.isnumeric(a)?a*b+"px":a,a="full"===a?d:"auto"===a||"none"===a?c:a},b=function(a,b,c,d){var e=a.data();e=void 0===e?{}:e;try{if("br"==a[0].nodename||"br"==a[0].tagname)return!1}catch(a){}e.cssobj=void 0===e.cssobj?y(a,c):e.cssobj;var f=z(e.cssobj,b),g=b.bw,h=b.bh;"off"===d&&(g=1,h=1),"auto"==f.lineheight&&(f.lineheight=f.fontsize+4);var i={top:f.margintop,bottom:f.marginbottom,left:f.marginleft,right:f.marginright};if("column"===e._nctype&&(punchgs.tweenlite.set(e._column,{paddingtop:math.round(f.margintop*h)+"px",paddingbottom:math.round(f.marginbottom*h)+"px",paddingleft:math.round(f.marginleft*g)+"px",paddingright:math.round(f.marginright*g)+"px"}),i={top:0,bottom:0,left:0,right:0}),!a.hasclass("tp-splitted")){a.css("-webkit-transition","none"),a.css("-moz-transition","none"),a.css("-ms-transition","none"),a.css("transition","none");if((void 0!==a.data("transform_hover")||void 0!==a.data("style_hover"))&&punchgs.tweenlite.set(a,f.styleprops),punchgs.tweenlite.set(a,{fontsize:math.round(f.fontsize*g)+"px",fontweight:f.fontweight,letterspacing:math.floor(f.letterspacing*g)+"px",paddingtop:math.round(f.paddingtop*h)+"px",paddingbottom:math.round(f.paddingbottom*h)+"px",paddingleft:math.round(f.paddingleft*g)+"px",paddingright:math.round(f.paddingright*g)+"px",margintop:i.top*h+"px",marginbottom:i.bottom*h+"px",marginleft:i.left*g+"px",marginright:i.right*g+"px",bordertopwidth:math.round(f.bordertopwidth*h)+"px",borderbottomwidth:math.round(f.borderbottomwidth*h)+"px",borderleftwidth:math.round(f.borderleftwidth*g)+"px",borderrightwidth:math.round(f.borderrightwidth*g)+"px",lineheight:math.round(f.lineheight*h)+"px",textalign:f.textalign,overwrite:"auto"}),"rekursive"!=c){var k="slide"==f.basealign?b.ulw:b.gridwidth[b.curwinrange],l="slide"==f.basealign?b.ulh:b.gridheight[b.curwinrange],m=a(f.maxwidth,g,"none",k),n=a(f.maxheight,h,"none",l),o=a(f.minwidth,g,"0px",k),p=a(f.minheight,h,"0px",l);if(o=void 0===o?0:o,p=void 0===p?0:p,m=void 0===m?"none":m,n=void 0===n?"none":n,e._isgroup&&("#1/1#"===o&&(o=m=k),"#1/2#"===o&&(o=m=k/2),"#1/3#"===o&&(o=m=k/3),"#1/4#"===o&&(o=m=k/4),"#1/5#"===o&&(o=m=k/5),"#1/6#"===o&&(o=m=k/6),"#2/3#"===o&&(o=m=k/3*2),"#3/4#"===o&&(o=m=k/4*3),"#2/5#"===o&&(o=m=k/5*2),"#3/5#"===o&&(o=m=k/5*3),"#4/5#"===o&&(o=m=k/5*4),"#3/6#"===o&&(o=m=k/6*3),"#4/6#"===o&&(o=m=k/6*4),"#5/6#"===o&&(o=m=k/6*5)),e._ingroup&&(e._groupw=o,e._grouph=p),punchgs.tweenlite.set(a,{maxwidth:m,maxheight:n,minwidth:o,minheight:p,whitespace:f.whitespace,textalign:f.textalign,overwrite:"auto"}),"nopredefinedcolor"!=f.color&&punchgs.tweenlite.set(a,{color:f.color,overwrite:"auto"}),void 0!=e.svg_src){var q="nopredefinedcolor"!=f.color&&void 0!=f.color?f.color:void 0!=f.css&&"nopredefinedcolor"!=f.css.color&&void 0!=f.css.color?f.css.color:void 0!=f.styleprops.color?f.styleprops.color:void 0!=f.styleprops.css&&void 0!=f.styleprops.css.color&&f.styleprops.css.color;0!=q&&(punchgs.tweenlite.set(a.find("svg"),{fill:q,overwrite:"auto"}),punchgs.tweenlite.set(a.find("svg path"),{fill:q,overwrite:"auto"}))}}"column"===e._nctype&&(void 0===e._column_bg_set&&(e._column_bg_set=a.css("backgroundcolor"),e._column_bg_image=a.css("backgroundimage"),e._column_bg_image_repeat=a.css("backgroundrepeat"),e._column_bg_image_position=a.css("backgroundposition"),e._column_bg_image_size=a.css("backgroundsize"),e._column_bg_opacity=a.data("bgopacity"),e._column_bg_opacity=void 0===e._column_bg_opacity?1:e._column_bg_opacity,punchgs.tweenlite.set(a,{backgroundcolor:"transparent",backgroundimage:""})),settimeout(function(){c(a,b)},1),e._cbgc_auto&&e._cbgc_auto.length>0&&(e._cbgc_auto[0].style.backgroundsize=e._column_bg_image_size,jquery.isarray(f.marginleft)?punchgs.tweenlite.set(e._cbgc_auto,{bordertopwidth:f.margintop[b.curwinrange]*h+"px",borderleftwidth:f.marginleft[b.curwinrange]*g+"px",borderrightwidth:f.marginright[b.curwinrange]*g+"px",borderbottomwidth:f.marginbottom[b.curwinrange]*h+"px",backgroundcolor:e._column_bg_set,backgroundimage:e._column_bg_image,backgroundrepeat:e._column_bg_image_repeat,backgroundposition:e._column_bg_image_position,opacity:e._column_bg_opacity}):punchgs.tweenlite.set(e._cbgc_auto,{bordertopwidth:f.margintop*h+"px",borderleftwidth:f.marginleft*g+"px",borderrightwidth:f.marginright*g+"px",borderbottomwidth:f.marginbottom*h+"px",backgroundcolor:e._column_bg_set,backgroundimage:e._column_bg_image,backgroundrepeat:e._column_bg_image_repeat,backgroundposition:e._column_bg_image_position,opacity:e._column_bg_opacity}))),settimeout(function(){a.css("-webkit-transition",a.data("wan")),a.css("-moz-transition",a.data("moan")),a.css("-ms-transition",a.data("man")),a.css("transition",a.data("ani"))},30)}},c=function(a,b){var c=a.data();if(c._cbgc_man&&c._cbgc_man.length>0){var e,f,h;jquery.isarray(c.cssobj.marginleft)?(c.cssobj.marginleft[b.curwinrange]*b.bw,e=c.cssobj.margintop[b.curwinrange]*b.bh,f=c.cssobj.marginbottom[b.curwinrange]*b.bh,c.cssobj.marginright[b.curwinrange]*b.bw):(c.cssobj.marginleft*b.bw,e=c.cssobj.margintop*b.bh,f=c.cssobj.marginbottom*b.bh,c.cssobj.marginright*b.bw),h=c._row.hasclass("rev_break_columns")?"100%":c._row.height()-(e+f)+"px",c._cbgc_man[0].style.backgroundsize=c._column_bg_image_size,punchgs.tweenlite.set(c._cbgc_man,{width:"100%",height:h,backgroundcolor:c._column_bg_set,backgroundimage:c._column_bg_image,backgroundrepeat:c._column_bg_image_repeat,backgroundposition:c._column_bg_image_position,overwrite:"auto",opacity:c._column_bg_opacity})}},d=function(a,b){var c=a.data();if(a.hasclass("rs-pendulum")&&void 0==c._loop_timeline){c._loop_timeline=new punchgs.timelinelite;var d=void 0==a.data("startdeg")?-20:a.data("startdeg"),e=void 0==a.data("enddeg")?20:a.data("enddeg"),f=void 0==a.data("speed")?2:a.data("speed"),g=void 0==a.data("origin")?"50% 50%":a.data("origin"),h=void 0==a.data("easing")?punchgs.power2.easeinout:a.data("easing");d*=b,e*=b,c._loop_timeline.append(new punchgs.tweenlite.fromto(a,f,{force3d:"auto",rotation:d,transformorigin:g},{rotation:e,ease:h})),c._loop_timeline.append(new punchgs.tweenlite.fromto(a,f,{force3d:"auto",rotation:e,transformorigin:g},{rotation:d,ease:h,oncomplete:function(){c._loop_timeline.restart()}}))}if(a.hasclass("rs-rotate")&&void 0==c._loop_timeline){c._loop_timeline=new punchgs.timelinelite;var d=void 0==a.data("startdeg")?0:a.data("startdeg"),e=void 0==a.data("enddeg")?360:a.data("enddeg"),f=void 0==a.data("speed")?2:a.data("speed"),g=void 0==a.data("origin")?"50% 50%":a.data("origin"),h=void 0==a.data("easing")?punchgs.power2.easeinout:a.data("easing");d*=b,e*=b,c._loop_timeline.append(new punchgs.tweenlite.fromto(a,f,{force3d:"auto",rotation:d,transformorigin:g},{rotation:e,ease:h,oncomplete:function(){c._loop_timeline.restart()}}))}if(a.hasclass("rs-slideloop")&&void 0==c._loop_timeline){c._loop_timeline=new punchgs.timelinelite;var i=void 0==a.data("xs")?0:a.data("xs"),j=void 0==a.data("ys")?0:a.data("ys"),k=void 0==a.data("xe")?0:a.data("xe"),l=void 0==a.data("ye")?0:a.data("ye"),f=void 0==a.data("speed")?2:a.data("speed"),h=void 0==a.data("easing")?punchgs.power2.easeinout:a.data("easing");i*=b,j*=b,k*=b,l*=b,c._loop_timeline.append(new punchgs.tweenlite.fromto(a,f,{force3d:"auto",x:i,y:j},{x:k,y:l,ease:h})),c._loop_timeline.append(new punchgs.tweenlite.fromto(a,f,{force3d:"auto",x:k,y:l},{x:i,y:j,oncomplete:function(){c._loop_timeline.restart()}}))}if(a.hasclass("rs-pulse")&&void 0==c._loop_timeline){c._loop_timeline=new punchgs.timelinelite;var m=void 0==a.data("zoomstart")?0:a.data("zoomstart"),n=void 0==a.data("zoomend")?0:a.data("zoomend"),f=void 0==a.data("speed")?2:a.data("speed"),h=void 0==a.data("easing")?punchgs.power2.easeinout:a.data("easing");c._loop_timeline.append(new punchgs.tweenlite.fromto(a,f,{force3d:"auto",scale:m},{scale:n,ease:h})),c._loop_timeline.append(new punchgs.tweenlite.fromto(a,f,{force3d:"auto",scale:n},{scale:m,oncomplete:function(){c._loop_timeline.restart()}}))}if(a.hasclass("rs-wave")&&void 0==c._loop_timeline){c._loop_timeline=new punchgs.timelinelite;var o=void 0==a.data("angle")?10:parseint(a.data("angle"),0),p=void 0==a.data("radius")?10:parseint(a.data("radius"),0),f=void 0==a.data("speed")?-20:a.data("speed"),g=void 0==a.data("origin")?"50% 50%":a.data("origin"),q=g.split(" "),r=new object;q.length>=1?(r.x=q[0],r.y=q[1]):(r.x="50%",r.y="50%"),p*=b;var s=(parseint(r.x,0)/100-.5)*a.width(),t=(parseint(r.y,0)/100-.5)*a.height(),u=-1*p+t,v=0+s,w={a:0,ang:o,element:a,unit:p,xoffset:v,yoffset:u},x=parseint(o,0),y=new punchgs.tweenlite.fromto(w,f,{a:0+x},{a:360+x,force3d:"auto",ease:punchgs.linear.easenone});y.eventcallback("onupdate",function(a){var b=a.a*(math.pi/180),c=a.yoffset+a.unit*(1-math.sin(b)),d=a.xoffset+math.cos(b)*a.unit;punchgs.tweenlite.to(a.element,.1,{force3d:"auto",x:d,y:c})},[w]),y.eventcallback("oncomplete",function(a){a._loop_timeline.restart()},[c]),c._loop_timeline.append(y)}},e=function(a){a.closest(".rs-pendulum, .rs-slideloop, .rs-pulse, .rs-wave").each(function(){var a=this;void 0!=a._loop_timeline&&(a._loop_timeline.pause(),a._loop_timeline=null)})}}(jquery);