cdn-cms3.hotelrunner.com Open in urlscan Pro
108.139.47.67  Public Scan

URL: https://cdn-cms3.hotelrunner.com/cms_files/theme/134782480/js/media/jquery.themepunch.revolution.min.js?v=1566286372.0
Submission: On August 22 via api from TR — Scanned from US

Form analysis 0 forms found in the DOM

Text Content

/**************************************************************************

 * jquery.themepunch.revolution.js - jQuery Plugin for Revolution Slider
 * @version: 4.7.1
 * @requires jQuery v1.7 or later (tested on 1.9)
 * @author ThemePunch
**************************************************************************/

function revslider_showDoubleJqueryError(t){var e="Revolution Slider Error: You have some jquery.js library include that comes after the revolution files js include.";e+="<br> This includes make eliminates the revolution slider libraries, and make it not work.",e+="<br><br> To fix it you can:<br>&nbsp;&nbsp;&nbsp; 1. In the Slider Settings -> Troubleshooting set option:  <strong><b>Put JS Includes To Body</b></strong> option to true.",e+="<br>&nbsp;&nbsp;&nbsp; 2. Find the double jquery.js include and remove it.",e="<span style='font-size:16px;color:#BC0C06;'>"+e+"</span>",jQuery(t).show().html(e)}!function(t,e){function a(){var t=!1;return navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/iPad/i)?navigator.userAgent.match(/OS 4_\d like Mac OS X/i)&&(t=!0):t=!1,t}function i(i,n){if(i==e)return!1;if(i.data("aimg")!=e&&("enabled"==i.data("aie8")&&d(8)||"enabled"==i.data("amobile")&&N())&&i.html('<img class="tp-slider-alternative-image" src="'+i.data("aimg")+'">'),("preview1"==n.navigationStyle||"preview3"==n.navigationStyle||"preview4"==n.navigationStyle)&&(n.soloArrowLeftHalign="left",n.soloArrowLeftValign="center",n.soloArrowLeftHOffset=0,n.soloArrowLeftVOffset=0,n.soloArrowRightHalign="right",n.soloArrowRightValign="center",n.soloArrowRightHOffset=0,n.soloArrowRightVOffset=0,n.navigationArrows="solo"),"on"==n.simplifyAll&&(d(8)||a())&&(i.find(".tp-caption").each(function(){var e=t(this);e.removeClass("customin").removeClass("customout").addClass("fadein").addClass("fadeout"),e.data("splitin",""),e.data("speed",400)}),i.find(">ul>li").each(function(){var e=t(this);e.data("transition","fade"),e.data("masterspeed",500),e.data("slotamount",1);var a=e.find(">img").first();a.data("kenburns","off")})),n.desktop=!navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry|BB10|mobi|tablet|opera mini|nexus 7)/i),"on"!=n.fullWidth&&"on"!=n.fullScreen&&(n.autoHeight="off"),"on"==n.fullScreen&&(n.autoHeight="on"),"on"!=n.fullWidth&&"on"!=n.fullScreen&&(forceFulWidth="off"),"on"==n.fullWidth&&"off"==n.autoHeight&&i.css({maxHeight:n.startheight+"px"}),N()&&"on"==n.hideThumbsOnMobile&&"thumb"==n.navigationType&&(n.navigationType="none"),N()&&"on"==n.hideBulletsOnMobile&&"bullet"==n.navigationType&&(n.navigationType="none"),N()&&"on"==n.hideBulletsOnMobile&&"both"==n.navigationType&&(n.navigationType="none"),N()&&"on"==n.hideArrowsOnMobile&&(n.navigationArrows="none"),"on"==n.forceFullWidth&&0==i.closest(".forcefullwidth_wrapper_tp_banner").length){var l=i.parent().offset().left,g=i.parent().css("marginBottom"),m=i.parent().css("marginTop");g==e&&(g=0),m==e&&(m=0),i.parent().wrap('<div style="position:relative;width:100%;height:auto;margin-top:'+m+";margin-bottom:"+g+'" class="forcefullwidth_wrapper_tp_banner"></div>'),i.closest(".forcefullwidth_wrapper_tp_banner").append('<div class="tp-fullwidth-forcer" style="width:100%;height:'+i.height()+'px"></div>'),i.css({backgroundColor:i.parent().css("backgroundColor"),backgroundImage:i.parent().css("backgroundImage")}),i.parent().css({left:0-l+"px",position:"absolute",width:t(window).width()}),n.width=t(window).width()}try{n.hideThumbsUnderResolution>t(window).width()&&0!=n.hideThumbsUnderResolution?i.parent().find(".tp-bullets.tp-thumbs").css({display:"none"}):i.parent().find(".tp-bullets.tp-thumbs").css({display:"block"})}catch(v){}if(!i.hasClass("revslider-initialised")){i.addClass("revslider-initialised"),i.attr("id")==e&&i.attr("id","revslider-"+Math.round(1e3*Math.random()+5)),n.firefox13=!1,n.ie=!t.support.opacity,n.ie9=9==document.documentMode,n.origcd=n.delay;var b=t.fn.jquery.split("."),y=parseFloat(b[0]),x=parseFloat(b[1]);parseFloat(b[2]||"0");1==y&&7>x&&i.html('<div style="text-align:center; padding:40px 0px; font-size:20px; color:#992222;"> The Current Version of jQuery:'+b+" <br>Please update your jQuery Version to min. 1.7 in Case you wish to use the Revolution Slider Plugin</div>"),y>1&&(n.ie=!1),t.support.transition||(t.fn.transition=t.fn.animate),i.find(".caption").each(function(){t(this).addClass("tp-caption")}),N()&&i.find(".tp-caption").each(function(){var e=t(this);(1==e.data("autoplayonlyfirsttime")||"true"==e.data("autoplayonlyfirsttime"))&&e.data("autoplayonlyfirsttime","false"),(1==e.data("autoplay")||"true"==e.data("autoplay"))&&e.data("autoplay",!1)});var T=0,k=0,L="http";if("https:"===location.protocol&&(L="https"),i.find(".tp-caption").each(function(a){try{if((t(this).data("ytid")!=e||t(this).find("iframe").attr("src").toLowerCase().indexOf("youtube")>0)&&0==T){T=1;var i=document.createElement("script"),n="https";i.src=n+"://www.youtube.com/iframe_api";var o=document.getElementsByTagName("script")[0],r=!0;t("head").find("*").each(function(){t(this).attr("src")==n+"://www.youtube.com/iframe_api"&&(r=!1)}),r&&o.parentNode.insertBefore(i,o)}}catch(s){}try{if((t(this).data("vimeoid")!=e||t(this).find("iframe").attr("src").toLowerCase().indexOf("vimeo")>0)&&0==k){k=1;var d=document.createElement("script");d.src=L+"://f.vimeocdn.com/js/froogaloop2.min.js";var o=document.getElementsByTagName("script")[0],r=!0;t("head").find("*").each(function(){t(this).attr("src")==L+"://f.vimeocdn.com/js/froogaloop2.min.js"&&(r=!1)}),r&&o.parentNode.insertBefore(d,o)}}catch(s){}try{t(this).data("videomp4")!=e||t(this).data("videowebm")!=e}catch(s){}}),i.find(".tp-caption video").each(function(e){t(this).removeClass("video-js").removeClass("vjs-default-skin"),t(this).attr("preload",""),t(this).css({display:"none"})}),i.find(">ul:first-child >li").each(function(){var e=t(this);e.data("origindex",e.index())}),"on"==n.shuffle){var z=new Object,O=i.find(">ul:first-child >li:first-child");z.fstransition=O.data("fstransition"),z.fsmasterspeed=O.data("fsmasterspeed"),z.fsslotamount=O.data("fsslotamount");for(var I=0;I<i.find(">ul:first-child >li").length;I++){var A=Math.round(Math.random()*i.find(">ul:first-child >li").length);i.find(">ul:first-child >li:eq("+A+")").prependTo(i.find(">ul:first-child"))}var M=i.find(">ul:first-child >li:first-child");M.data("fstransition",z.fstransition),M.data("fsmasterspeed",z.fsmasterspeed),M.data("fsslotamount",z.fsslotamount)}n.slots=4,n.act=-1,n.next=0,n.startWithSlide!=e&&(n.next=n.startWithSlide);var S=r("#")[0];if(S.length<9&&S.split("slide").length>1){var P=parseInt(S.split("slide")[1],0);1>P&&(P=1),P>i.find(">ul:first >li").length&&(P=i.find(">ul:first >li").length),n.next=P-1}n.firststart=1,n.navigationHOffset==e&&(n.navOffsetHorizontal=0),n.navigationVOffset==e&&(n.navOffsetVertical=0),i.append('<div class="tp-loader '+n.spinner+'"><div class="dot1"></div><div class="dot2"></div><div class="bounce1"></div><div class="bounce2"></div><div class="bounce3"></div></div>'),0==i.find(".tp-bannertimer").length&&i.append('<div class="tp-bannertimer" style="visibility:hidden"></div>');var D=i.find(".tp-bannertimer");if(D.length>0&&D.css({width:"0%"}),i.addClass("tp-simpleresponsive"),n.container=i,n.slideamount=i.find(">ul:first >li").length,0==i.height()&&i.height(n.startheight),(n.startwidth==e||0==n.startwidth)&&(n.startwidth=i.width()),(n.startheight==e||0==n.startheight)&&(n.startheight=i.height()),n.width=i.width(),n.height=i.height(),n.bw=n.startwidth/i.width(),n.bh=n.startheight/i.height(),n.width!=n.startwidth&&(n.height=Math.round(n.startheight*(n.width/n.startwidth)),i.height(n.height)),0!=n.shadow){i.parent().append('<div class="tp-bannershadow tp-shadow'+n.shadow+'"></div>');var l=0;"on"==n.forceFullWidth&&(l=0-n.container.parent().offset().left),i.parent().find(".tp-bannershadow").css({width:n.width,left:l})}i.find("ul").css({display:"none"});i.find("ul").css({display:"block"}),w(i,n),"off"!=n.parallax&&K(i,n),n.slideamount>1&&h(i,n),n.slideamount>1&&"thumb"==n.navigationType&&et(i,n),n.slideamount>1&&c(i,n),"on"==n.keyboardNavigation&&p(i,n),u(i,n),n.hideThumbs>0&&f(i,n),setTimeout(function(){C(i,n)},n.startDelay),n.startDelay=0,n.slideamount>1&&Z(i,n),setTimeout(function(){i.trigger("revolution.slide.onloaded")},500),t("body").data("rs-fullScreenMode",!1),t(window).on("mozfullscreenchange webkitfullscreenchange fullscreenchange",function(){t("body").data("rs-fullScreenMode",!t("body").data("rs-fullScreenMode")),t("body").data("rs-fullScreenMode")&&setTimeout(function(){t(window).trigger("resize")},200)});var H="resize.revslider-"+i.attr("id");t(window).on(H,function(){if(i==e)return!1;if(0!=t("body").find(i)&&"on"==n.forceFullWidth){var a=n.container.closest(".forcefullwidth_wrapper_tp_banner").offset().left;n.container.parent().css({left:0-a+"px",width:t(window).width()})}(i.outerWidth(!0)!=n.width||i.is(":hidden"))&&s(i,n)});try{0!=n.hideThumbsUnderResoluition&&"thumb"==n.navigationType&&(n.hideThumbsUnderResoluition>t(window).width()?t(".tp-bullets").css({display:"none"}):t(".tp-bullets").css({display:"block"}))}catch(v){}i.find(".tp-scrollbelowslider").on("click",function(){var e=0;try{e=t("body").find(n.fullScreenOffsetContainer).height()}catch(a){}try{e-=parseInt(t(this).data("scrolloffset"),0)}catch(a){}t("body,html").animate({scrollTop:i.offset().top+i.find(">ul >li").height()-e+"px"},{duration:400})});var W=i.parent();t(window).width()<n.hideSliderAtLimit&&(i.trigger("stoptimer"),"none"!=W.css("display")&&W.data("olddisplay",W.css("display")),W.css({display:"none"})),n.disableFocusListener||"true"==n.disableFocusListener||n.disableFocusListener===!0||o(i,n)}}var n={};n.revolution=function(a){var n={delay:9e3,startheight:500,startwidth:960,fullScreenAlignForce:"off",autoHeight:"off",hideTimerBar:"off",hideThumbs:200,hideNavDelayOnMobile:1500,thumbWidth:100,thumbHeight:50,thumbAmount:3,navigationType:"bullet",navigationArrows:"solo",navigationInGrid:"off",hideThumbsOnMobile:"off",hideBulletsOnMobile:"off",hideArrowsOnMobile:"off",hideThumbsUnderResoluition:0,navigationStyle:"round",navigationHAlign:"center",navigationVAlign:"bottom",navigationHOffset:0,navigationVOffset:20,soloArrowLeftHalign:"left",soloArrowLeftValign:"center",soloArrowLeftHOffset:20,soloArrowLeftVOffset:0,soloArrowRightHalign:"right",soloArrowRightValign:"center",soloArrowRightHOffset:20,soloArrowRightVOffset:0,keyboardNavigation:"on",touchenabled:"on",onHoverStop:"on",stopAtSlide:-1,stopAfterLoops:-1,hideCaptionAtLimit:0,hideAllCaptionAtLimit:0,hideSliderAtLimit:0,shadow:0,fullWidth:"off",fullScreen:"off",minFullScreenHeight:0,fullScreenOffsetContainer:"",fullScreenOffset:"0",dottedOverlay:"none",forceFullWidth:"off",spinner:"spinner0",swipe_treshold:75,swipe_min_touches:1,drag_block_vertical:!1,isJoomla:!0,parallax:"off",parallaxLevels:[10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85],parallaxBgFreeze:"off",parallaxOpacity:"on",parallaxDisableOnMobile:"off",panZoomDisableOnMobile:"off",simplifyAll:"on",minHeight:0,nextSlideOnWindowFocus:"off",disableFocusListener:!0,startDelay:0};return a=t.extend({},n,a),this.each(function(){if(1==window.tplogs)try{console.groupCollapsed("Slider Revolution 4.6.8 Initialisation on "+t(this).attr("id")),console.groupCollapsed("Used Options:"),console.info(a),console.groupEnd(),console.groupCollapsed("Tween Engine:")}catch(n){}if(punchgs.TweenLite==e){if(1==window.tplogs)try{console.error("GreenSock Engine Does not Exist!")}catch(n){}return!1}if(punchgs.force3D=!0,1==window.tplogs)try{console.info("GreenSock Engine Version in Slider Revolution:"+punchgs.TweenLite.version)}catch(n){}if("on"==a.simplifyAll||(punchgs.TweenLite.lagSmoothing(1e3,16),punchgs.force3D="true"),1==window.tplogs)try{console.groupEnd(),console.groupEnd()}catch(n){}i(t(this),a)})},n.revscroll=function(a){return this.each(function(){var i=t(this);i!=e&&i.length>0&&t("body").find("#"+i.attr("id")).length>0&&t("body,html").animate({scrollTop:i.offset().top+i.find(">ul >li").height()-a+"px"},{duration:400})})},n.revredraw=function(a){return this.each(function(){var a=t(this);if(a!=e&&a.length>0&&t("body").find("#"+a.attr("id")).length>0){var i=a.parent().find(".tp-bannertimer"),n=i.data("opt");s(a,n)}})},n.revkill=function(a){var i=this,n=t(this);if(n!=e&&n.length>0&&t("body").find("#"+n.attr("id")).length>0){n.data("conthover",1),n.data("conthover-changed",1),n.trigger("revolution.slide.onpause");var o=n.parent().find(".tp-bannertimer"),r=o.data("opt");r.bannertimeronpause=!0,n.trigger("stoptimer"),punchgs.TweenLite.killTweensOf(n.find("*"),!1),punchgs.TweenLite.killTweensOf(n,!1),n.unbind("hover, mouseover, mouseenter,mouseleave, resize");var s="resize.revslider-"+n.attr("id");t(window).off(s),n.find("*").each(function(){var a=t(this);a.unbind("on, hover, mouseenter,mouseleave,mouseover, resize,restarttimer, stoptimer"),a.off("on, hover, mouseenter,mouseleave,mouseover, resize"),a.data("mySplitText",null),a.data("ctl",null),a.data("tween")!=e&&a.data("tween").kill(),a.data("kenburn")!=e&&a.data("kenburn").kill(),a.remove(),a.empty(),a=null}),punchgs.TweenLite.killTweensOf(n.find("*"),!1),punchgs.TweenLite.killTweensOf(n,!1),o.remove();try{n.closest(".forcefullwidth_wrapper_tp_banner").remove()}catch(d){}try{n.closest(".rev_slider_wrapper").remove()}catch(d){}try{n.remove()}catch(d){}return n.empty(),n.html(),n=null,r=null,delete i.container,delete i.opt,!0}return!1},n.revpause=function(a){return this.each(function(){var a=t(this);if(a!=e&&a.length>0&&t("body").find("#"+a.attr("id")).length>0){a.data("conthover",1),a.data("conthover-changed",1),a.trigger("revolution.slide.onpause");var i=a.parent().find(".tp-bannertimer"),n=i.data("opt");n.bannertimeronpause=!0,a.trigger("stoptimer")}})},n.revresume=function(a){return this.each(function(){var a=t(this);if(a!=e&&a.length>0&&t("body").find("#"+a.attr("id")).length>0){a.data("conthover",0),a.data("conthover-changed",1),a.trigger("revolution.slide.onresume");var i=a.parent().find(".tp-bannertimer"),n=i.data("opt");n.bannertimeronpause=!1,a.trigger("starttimer")}})},n.revnext=function(a){return this.each(function(){var a=t(this);a!=e&&a.length>0&&t("body").find("#"+a.attr("id")).length>0&&a.parent().find(".tp-rightarrow").click()})},n.revprev=function(a){return this.each(function(){var a=t(this);a!=e&&a.length>0&&t("body").find("#"+a.attr("id")).length>0&&a.parent().find(".tp-leftarrow").click()})},n.revmaxslide=function(e){return t(this).find(">ul:first-child >li").length},n.revcurrentslide=function(a){var i=t(this);if(i!=e&&i.length>0&&t("body").find("#"+i.attr("id")).length>0){var n=i.parent().find(".tp-bannertimer"),o=n.data("opt");return o.act}},n.revlastslide=function(a){var i=t(this);if(i!=e&&i.length>0&&t("body").find("#"+i.attr("id")).length>0){var n=i.parent().find(".tp-bannertimer"),o=n.data("opt");return o.lastslide}},n.revshowslide=function(a){return this.each(function(){var i=t(this);i!=e&&i.length>0&&t("body").find("#"+i.attr("id")).length>0&&(i.data("showus",a),i.parent().find(".tp-rightarrow").click())})},t.fn.extend(n);var o=(function(){var t,e,a={hidden:"visibilitychange",webkitHidden:"webkitvisibilitychange",mozHidden:"mozvisibilitychange",msHidden:"msvisibilitychange"};for(t in a)if(t in document){e=a[t];break}return function(a){return a&&document.addEventListener(e,a),!document[t]}}(),function(a,i){var n=document.documentMode===e,o=window.chrome;n&&!o?t(window).on("focusin",function(){return a==e?!1:void setTimeout(function(){"on"==i.nextSlideOnWindowFocus&&a.revnext(),a.revredraw()},300)}).on("focusout",function(){}):window.addEventListener?(window.addEventListener("focus",function(t){return a==e?!1:void setTimeout(function(){"on"==i.nextSlideOnWindowFocus&&a.revnext(),a.revredraw()},300)},!1),window.addEventListener("blur",function(t){},!1)):(window.attachEvent("focus",function(t){setTimeout(function(){return a==e?!1:("on"==i.nextSlideOnWindowFocus&&a.revnext(),void a.revredraw())},300)}),window.attachEvent("blur",function(t){}))}),r=function(t){for(var e,a=[],i=window.location.href.slice(window.location.href.indexOf(t)+1).split("_"),n=0;n<i.length;n++)i[n]=i[n].replace("%3D","="),e=i[n].split("="),a.push(e[0]),a[e[0]]=e[1];return a},s=function(a,i){if(a==e)return!1;try{0!=i.hideThumbsUnderResoluition&&"thumb"==i.navigationType&&(i.hideThumbsUnderResoluition>t(window).width()?t(".tp-bullets").css({display:"none"}):t(".tp-bullets").css({display:"block"}))}catch(n){}a.find(".defaultimg").each(function(e){v(t(this),i)});var o=a.parent();t(window).width()<i.hideSliderAtLimit?(a.trigger("stoptimer"),"none"!=o.css("display")&&o.data("olddisplay",o.css("display")),o.css({display:"none"})):a.is(":hidden")&&(o.data("olddisplay")!=e&&"undefined"!=o.data("olddisplay")&&"none"!=o.data("olddisplay")?o.css({display:o.data("olddisplay")}):o.css({display:"block"}),a.trigger("restarttimer"),setTimeout(function(){s(a,i)},150));var r=0;"on"==i.forceFullWidth&&(r=0-i.container.parent().offset().left);try{a.parent().find(".tp-bannershadow").css({width:i.width,left:r})}catch(n){}var d=a.find(">ul >li:eq("+i.act+") .slotholder"),l=a.find(">ul >li:eq("+i.next+") .slotholder");x(a,i,a),punchgs.TweenLite.set(l.find(".defaultimg"),{opacity:0}),d.find(".defaultimg").css({opacity:1}),l.find(".defaultimg").each(function(){var n=t(this);"on"==i.panZoomDisableOnMobile||n.data("kenburn")!=e&&(n.data("kenburn").restart(),G(a,i,!0))});var h=a.find(">ul >li:eq("+i.next+")"),c=a.parent().find(".tparrows");c.hasClass("preview2")&&c.css({width:parseInt(c.css("minWidth"),0)}),Y(h,i,!0),g(a,i)},d=function(e,a){var i=t('<div style="display:none;"/>').appendTo(t("body"));i.html("<!--[if "+(a||"")+" IE "+(e||"")+"]><a>&nbsp;</a><![endif]-->");var n=i.find("a").length;return i.remove(),n},l=function(t,e){t.next==e.find(">ul >li").length-1&&(t.looptogo=t.looptogo-1,t.looptogo<=0&&(t.stopLoop="on")),C(e,t)},h=function(e,a){var i="hidebullets";0==a.hideThumbs&&(i=""),("bullet"==a.navigationType||"both"==a.navigationType)&&e.parent().append('<div class="tp-bullets '+i+" simplebullets "+a.navigationStyle+'"></div>');var n=e.parent().find(".tp-bullets");e.find(">ul:first >li").each(function(t){e.find(">ul:first >li:eq("+t+") img:first").attr("src");n.append('<div class="bullet"></div>');n.find(".bullet:first")}),n.find(".bullet").each(function(i){var n=t(this);i==a.slideamount-1&&n.addClass("last"),0==i&&n.addClass("first"),n.click(function(){var t=!1,i=n.index();("withbullet"==a.navigationArrows||"nexttobullets"==a.navigationArrows)&&(i=n.index()-1),i==a.act&&(t=!0),0!=a.transition||t||(a.next=i,l(a,e))})}),n.append('<div class="tpclear"></div>'),g(e,a)},c=function(t,a){function i(e){t.parent().append('<div style="'+n+'" class="tp-'+e+"arrow "+o+" tparrows "+r+'"><div class="tp-arr-allwrapper"><div class="tp-arr-iwrapper"><div class="tp-arr-imgholder"></div><div class="tp-arr-imgholder2"></div><div class="tp-arr-titleholder"></div><div class="tp-arr-subtitleholder"></div></div></div></div>')}var n=(t.find(".tp-bullets"),""),o="hidearrows",r=a.navigationStyle;0==a.hideThumbs&&(o=""),"none"==a.navigationArrows&&(n="visibility:hidden;display:none"),a.soloArrowStyle="default "+a.navigationStyle,"none"!=a.navigationArrows&&"nexttobullets"!=a.navigationArrows&&(r=a.soloArrowStyle),i("left"),i("right"),t.parent().find(".tp-rightarrow").click(function(){0==a.transition&&(t.data("showus")!=e&&-1!=t.data("showus")?a.next=t.data("showus")-1:a.next=a.next+1,t.data("showus",-1),a.next>=a.slideamount&&(a.next=0),a.next<0&&(a.next=0),a.act!=a.next&&l(a,t))}),t.parent().find(".tp-leftarrow").click(function(){0==a.transition&&(a.next=a.next-1,a.leftarrowpressed=1,a.next<0&&(a.next=a.slideamount-1),l(a,t))}),g(t,a)},p=function(a,i){t(document).keydown(function(t){0==i.transition&&39==t.keyCode&&(a.data("showus")!=e&&-1!=a.data("showus")?i.next=a.data("showus")-1:i.next=i.next+1,a.data("showus",-1),i.next>=i.slideamount&&(i.next=0),i.next<0&&(i.next=0),i.act!=i.next&&l(i,a)),0==i.transition&&37==t.keyCode&&(i.next=i.next-1,i.leftarrowpressed=1,i.next<0&&(i.next=i.slideamount-1),l(i,a))}),g(a,i)},u=function(e,a){var i="vertical";"on"==a.touchenabled&&(1==a.drag_block_vertical&&(i="none"),e.swipe({allowPageScroll:i,fingers:a.swipe_min_touches,treshold:a.swipe_treshold,swipe:function(n,o,r,s,d,h){switch(o){case"left":0==a.transition&&(a.next=a.next+1,a.next==a.slideamount&&(a.next=0),l(a,e));break;case"right":0==a.transition&&(a.next=a.next-1,a.leftarrowpressed=1,a.next<0&&(a.next=a.slideamount-1),l(a,e));break;case"up":"none"==i&&t("html, body").animate({scrollTop:e.offset().top+e.height()+"px"});break;case"down":"none"==i&&t("html, body").animate({scrollTop:e.offset().top-t(window).height()+"px"})}}}))},f=function(t,e){var a=t.parent().find(".tp-bullets"),i=t.parent().find(".tparrows");if(null==a){t.append('<div class=".tp-bullets"></div>');var a=t.parent().find(".tp-bullets")}if(null==i){t.append('<div class=".tparrows"></div>');var i=t.parent().find(".tparrows")}if(t.data("hideThumbs",e.hideThumbs),a.addClass("hidebullets"),i.addClass("hidearrows"),N())try{t.parent().swipe({tap:function(n,o){0==t.hasClass("hovered")?(t.addClass("hovered"),"on"==e.onHoverStop&&t.trigger("stoptimer"),clearTimeout(t.data("hideThumbs")),a.removeClass("hidebullets"),i.removeClass("hidearrows")):(t.removeClass("hovered"),t.trigger("starttimer"),t.data("hideThumbs",setTimeout(function(){a.addClass("hidebullets"),i.addClass("hidearrows"),t.trigger("starttimer")},e.hideNavDelayOnMobile)))},threshold:50})}catch(n){}else a.hover(function(){e.overnav=!0,"on"==e.onHoverStop&&t.trigger("stoptimer"),a.addClass("hovered"),clearTimeout(t.data("hideThumbs")),a.removeClass("hidebullets"),i.removeClass("hidearrows")},function(){e.overnav=!1,t.trigger("starttimer"),a.removeClass("hovered"),t.hasClass("hovered")||a.hasClass("hovered")||t.data("hideThumbs",setTimeout(function(){a.addClass("hidebullets"),i.addClass("hidearrows")},e.hideThumbs))}),i.hover(function(){e.overnav=!0,"on"==e.onHoverStop&&t.trigger("stoptimer"),a.addClass("hovered"),clearTimeout(t.data("hideThumbs")),a.removeClass("hidebullets"),i.removeClass("hidearrows")},function(){e.overnav=!1,t.trigger("starttimer"),a.removeClass("hovered")}),t.on("mouseenter",function(){t.addClass("hovered"),"on"==e.onHoverStop&&t.trigger("stoptimer"),clearTimeout(t.data("hideThumbs")),a.removeClass("hidebullets"),i.removeClass("hidearrows")}),t.on("mouseleave",function(){t.removeClass("hovered"),t.trigger("starttimer"),t.hasClass("hovered")||a.hasClass("hovered")||t.data("hideThumbs",setTimeout(function(){a.addClass("hidebullets"),i.addClass("hidearrows")},e.hideThumbs))})},g=function(e,a){var i=e.parent(),n=i.find(".tp-bullets");if("thumb"==a.navigationType){n.find(".thumb").each(function(e){var i=t(this);i.css({width:a.thumbWidth*a.bw+"px",height:a.thumbHeight*a.bh+"px"})});var o=n.find(".tp-mask");o.width(a.thumbWidth*a.thumbAmount*a.bw),o.height(a.thumbHeight*a.bh),o.parent().width(a.thumbWidth*a.thumbAmount*a.bw),o.parent().height(a.thumbHeight*a.bh)}var r=i.find(".tp-leftarrow"),s=i.find(".tp-rightarrow");"thumb"==a.navigationType&&"nexttobullets"==a.navigationArrows&&(a.navigationArrows="solo"),"nexttobullets"==a.navigationArrows&&(r.prependTo(n).css({"float":"left"}),s.insertBefore(n.find(".tpclear")).css({"float":"left"}));var d=0;"on"==a.forceFullWidth&&(d=0-a.container.parent().offset().left);var l=0,h=0;if("on"==a.navigationInGrid&&(l=e.width()>a.startwidth?(e.width()-a.startwidth)/2:0,h=e.height()>a.startheight?(e.height()-a.startheight)/2:0),"none"!=a.navigationArrows&&"nexttobullets"!=a.navigationArrows){var c=a.soloArrowLeftValign,p=a.soloArrowLeftHalign,u=a.soloArrowRightValign,f=a.soloArrowRightHalign,g=a.soloArrowLeftVOffset,m=a.soloArrowLeftHOffset,v=a.soloArrowRightVOffset,w=a.soloArrowRightHOffset;r.css({position:"absolute"}),s.css({position:"absolute"}),"center"==c?r.css({top:"50%",marginTop:g-Math.round(r.innerHeight()/2)+"px"}):"bottom"==c?r.css({top:"auto",bottom:0+g+"px"}):"top"==c&&r.css({bottom:"auto",top:0+g+"px"}),"center"==p?r.css({left:"50%",marginLeft:d+m-Math.round(r.innerWidth()/2)+"px"}):"left"==p?r.css({left:l+m+d+"px"}):"right"==p&&r.css({right:l+m-d+"px"}),"center"==u?s.css({top:"50%",marginTop:v-Math.round(s.innerHeight()/2)+"px"}):"bottom"==u?s.css({top:"auto",bottom:0+v+"px"}):"top"==u&&s.css({bottom:"auto",top:0+v+"px"}),"center"==f?s.css({left:"50%",marginLeft:d+w-Math.round(s.innerWidth()/2)+"px"}):"left"==f?s.css({left:l+w+d+"px"}):"right"==f&&s.css({right:l+w-d+"px"}),null!=r.position()&&r.css({top:Math.round(parseInt(r.position().top,0))+"px"}),null!=s.position()&&s.css({top:Math.round(parseInt(s.position().top,0))+"px"})}"none"==a.navigationArrows&&(r.css({visibility:"hidden"}),s.css({visibility:"hidden"}));var b=a.navigationVAlign,y=a.navigationHAlign,x=a.navigationVOffset*a.bh,T=a.navigationHOffset*a.bw;"center"==b&&n.css({top:"50%",marginTop:x-Math.round(n.innerHeight()/2)+"px"}),"bottom"==b&&n.css({bottom:0+x+"px"}),"top"==b&&n.css({top:0+x+"px"}),"center"==y&&n.css({left:"50%",marginLeft:d+T-Math.round(n.innerWidth()/2)+"px"}),"left"==y&&n.css({left:0+T+d+"px"}),"right"==y&&n.css({right:0+T-d+"px"})},m=function(a){var i=a.container;a.beforli=a.next-1,a.comingli=a.next+1,a.beforli<0&&(a.beforli=a.slideamount-1),a.comingli>=a.slideamount&&(a.comingli=0);var n=i.find(">ul:first-child >li:eq("+a.comingli+")"),o=i.find(">ul:first-child >li:eq("+a.beforli+")"),r=o.find(".defaultimg").attr("src"),s=n.find(".defaultimg").attr("src");a.arr==e&&(a.arr=i.parent().find(".tparrows"),a.rar=i.parent().find(".tp-rightarrow"),a.lar=i.parent().find(".tp-leftarrow"),a.raimg=a.rar.find(".tp-arr-imgholder"),a.laimg=a.lar.find(".tp-arr-imgholder"),a.raimg_b=a.rar.find(".tp-arr-imgholder2"),a.laimg_b=a.lar.find(".tp-arr-imgholder2"),a.ratit=a.rar.find(".tp-arr-titleholder"),a.latit=a.lar.find(".tp-arr-titleholder"));var d=a.arr,l=a.rar,h=a.lar,c=a.raimg,p=a.laimg,u=a.raimg_b,f=a.laimg_b,g=a.ratit,m=a.latit;if(n.data("title")!=e&&g.html(n.data("title")),o.data("title")!=e&&m.html(o.data("title")),l.hasClass("itishovered")&&l.width(g.outerWidth(!0)+parseInt(l.css("minWidth"),0)),h.hasClass("itishovered")&&h.width(m.outerWidth(!0)+parseInt(h.css("minWidth"),0)),d.hasClass("preview2")&&!d.hasClass("hashoveralready"))if(d.addClass("hashoveralready"),N()){var d=t(this),v=d.find(".tp-arr-titleholder");v.addClass("alwayshidden"),punchgs.TweenLite.set(v,{autoAlpha:0})}else d.hover(function(){var e=t(this),a=e.find(".tp-arr-titleholder");t(window).width()>767&&e.width(a.outerWidth(!0)+parseInt(e.css("minWidth"),0)),e.addClass("itishovered")},function(){var e=t(this);e.find(".tp-arr-titleholder");e.css({width:parseInt(e.css("minWidth"),0)}),e.removeClass("itishovered")});o.data("thumb")!=e&&(r=o.data("thumb")),n.data("thumb")!=e&&(s=n.data("thumb")),d.hasClass("preview4")?(u.css({backgroundImage:"url("+s+")"}),f.css({backgroundImage:"url("+r+")"}),punchgs.TweenLite.fromTo(u,.8,{force3D:punchgs.force3d,x:0},{x:-c.width(),ease:punchgs.Power3.easeOut,delay:1,onComplete:function(){c.css({backgroundImage:"url("+s+")"}),punchgs.TweenLite.set(u,{x:0})}}),punchgs.TweenLite.fromTo(f,.8,{force3D:punchgs.force3d,x:0},{x:c.width(),ease:punchgs.Power3.easeOut,delay:1,onComplete:function(){p.css({backgroundImage:"url("+r+")"}),punchgs.TweenLite.set(f,{x:0})}}),punchgs.TweenLite.fromTo(c,.8,{x:0},{force3D:punchgs.force3d,x:-c.width(),ease:punchgs.Power3.easeOut,delay:1,onComplete:function(){punchgs.TweenLite.set(c,{x:0})}}),punchgs.TweenLite.fromTo(p,.8,{x:0},{force3D:punchgs.force3d,x:c.width(),ease:punchgs.Power3.easeOut,delay:1,onComplete:function(){punchgs.TweenLite.set(p,{x:0})}})):(punchgs.TweenLite.to(c,.5,{autoAlpha:0,onComplete:function(){c.css({backgroundImage:"url("+s+")"}),p.css({backgroundImage:"url("+r+")"})}}),punchgs.TweenLite.to(p,.5,{autoAlpha:0,onComplete:function(){punchgs.TweenLite.to(c,.5,{autoAlpha:1,delay:.2}),punchgs.TweenLite.to(p,.5,{autoAlpha:1,delay:.2})}})),l.hasClass("preview4")&&!l.hasClass("hashoveralready")&&(l.addClass("hashoveralready"),l.hover(function(){var e=t(this).find(".tp-arr-iwrapper"),a=t(this).find(".tp-arr-allwrapper");punchgs.TweenLite.fromTo(e,.4,{x:e.width()},{x:0,delay:.3,ease:punchgs.Power3.easeOut,overwrite:"all"}),punchgs.TweenLite.to(a,.2,{autoAlpha:1,overwrite:"all"})},function(){var e=t(this).find(".tp-arr-iwrapper"),a=t(this).find(".tp-arr-allwrapper");punchgs.TweenLite.to(e,.4,{x:e.width(),ease:punchgs.Power3.easeOut,delay:.2,overwrite:"all"}),punchgs.TweenLite.to(a,.2,{delay:.6,autoAlpha:0,overwrite:"all"})}),h.hover(function(){var e=t(this).find(".tp-arr-iwrapper"),a=t(this).find(".tp-arr-allwrapper");punchgs.TweenLite.fromTo(e,.4,{x:0-e.width()},{x:0,delay:.3,ease:punchgs.Power3.easeOut,overwrite:"all"}),punchgs.TweenLite.to(a,.2,{autoAlpha:1,overwrite:"all"})},function(){var e=t(this).find(".tp-arr-iwrapper"),a=t(this).find(".tp-arr-allwrapper");punchgs.TweenLite.to(e,.4,{x:0-e.width(),ease:punchgs.Power3.easeOut,delay:.2,overwrite:"all"}),punchgs.TweenLite.to(a,.2,{delay:.6,autoAlpha:0,overwrite:"all"})}))},v=function(a,i){if(i.container.closest(".forcefullwidth_wrapper_tp_banner").find(".tp-fullwidth-forcer").css({height:i.container.height()}),i.container.closest(".rev_slider_wrapper").css({height:i.container.height()}),i.width=parseInt(i.container.width(),0),i.height=parseInt(i.container.height(),0),i.bw=i.width/i.startwidth,i.bh=i.height/i.startheight,i.bh>i.bw&&(i.bh=i.bw),i.bh<i.bw&&(i.bw=i.bh),i.bw<i.bh&&(i.bh=i.bw),i.bh>1&&(i.bw=1,i.bh=1),i.bw>1&&(i.bw=1,i.bh=1),i.height=Math.round(i.startheight*(i.width/i.startwidth)),i.height>i.startheight&&"on"!=i.autoHeight&&(i.height=i.startheight),"on"==i.fullScreen){i.height=i.bw*i.startheight;var n=(i.container.parent().width(),t(window).height());if(i.fullScreenOffsetContainer!=e){try{var o=i.fullScreenOffsetContainer.split(",");t.each(o,function(e,a){n-=t(a).outerHeight(!0),n<i.minFullScreenHeight&&(n=i.minFullScreenHeight)})}catch(r){}try{i.fullScreenOffset.split("%").length>1&&i.fullScreenOffset!=e&&i.fullScreenOffset.length>0?n-=t(window).height()*parseInt(i.fullScreenOffset,0)/100:i.fullScreenOffset!=e&&i.fullScreenOffset.length>0&&(n-=parseInt(i.fullScreenOffset,0)),n<i.minFullScreenHeight&&(n=i.minFullScreenHeight)}catch(r){}}i.container.parent().height(n),i.container.closest(".rev_slider_wrapper").height(n),i.container.css({height:"100%"}),i.height=n,i.minHeight!=e&&i.height<i.minHeight&&(i.height=i.minHeight)}else i.minHeight!=e&&i.height<i.minHeight&&(i.height=i.minHeight),i.container.height(i.height);i.slotw=Math.ceil(i.width/i.slots),"on"==i.fullScreen?i.sloth=Math.ceil(t(window).height()/i.slots):i.sloth=Math.ceil(i.height/i.slots),"on"==i.autoHeight&&(i.sloth=Math.ceil(a.height()/i.slots))},w=function(a,i){a.find(".tp-caption").each(function(){t(this).addClass(t(this).data("transition")),t(this).addClass("start")}),a.find(">ul:first").css({overflow:"hidden",width:"100%",height:"100%",maxHeight:a.parent().css("maxHeight")}).addClass("tp-revslider-mainul"),"on"==i.autoHeight&&(a.find(">ul:first").css({overflow:"hidden",width:"100%",height:"100%",maxHeight:"none"}),a.css({maxHeight:"none"}),a.parent().css({maxHeight:"none"})),a.find(">ul:first >li").each(function(i){var n=t(this);if(n.addClass("tp-revslider-slidesli"),n.css({width:"100%",height:"100%",overflow:"hidden"}),n.data("link")!=e){var o=n.data("link"),r="_self",s=60;"back"==n.data("slideindex")&&(s=0);var d=checksl=n.data("linktoslide");d!=e&&"next"!=d&&"prev"!=d&&a.find(">ul:first-child >li").each(function(){var e=t(this);e.data("origindex")+1==checksl&&(d=e.index()+1)}),n.data("target")!=e&&(r=n.data("target")),"slide"!=o&&(d="no");var l='<div class="tp-caption sft slidelink" style="width:100%;height:100%;z-index:'+s+';" data-x="center" data-y="center" data-linktoslide="'+d+'" data-start="0"><a style="width:100%;height:100%;display:block"';"slide"!=o&&(l=l+' target="'+r+'" href="'+o+'"'),l+='><span style="width:100%;height:100%;display:block"></span></a></div>',n.append(l)}}),a.parent().css({overflow:"visible"}),a.find(">ul:first >li >img").each(function(a){var n=t(this);n.addClass("defaultimg"),n.data("lazyload")!=e&&1!=n.data("lazydone")||v(n,i),d(8)&&n.data("kenburns","off"),"on"==i.panZoomDisableOnMobile&&N()&&(n.data("kenburns","off"),n.data("bgfit","cover")),n.wrap('<div class="slotholder" style="width:100%;height:100%;"data-duration="'+n.data("duration")+'"data-zoomstart="'+n.data("zoomstart")+'"data-zoomend="'+n.data("zoomend")+'"data-rotationstart="'+n.data("rotationstart")+'"data-rotationend="'+n.data("rotationend")+'"data-ease="'+n.data("ease")+'"data-duration="'+n.data("duration")+'"data-bgpositionend="'+n.data("bgpositionend")+'"data-bgposition="'+n.data("bgposition")+'"data-duration="'+n.data("duration")+'"data-kenburns="'+n.data("kenburns")+'"data-easeme="'+n.data("ease")+'"data-bgfit="'+n.data("bgfit")+'"data-bgfitend="'+n.data("bgfitend")+'"data-owidth="'+n.data("owidth")+'"data-oheight="'+n.data("oheight")+'"></div>'),
"none"!=i.dottedOverlay&&i.dottedOverlay!=e&&n.closest(".slotholder").append('<div class="tp-dottedoverlay '+i.dottedOverlay+'"></div>');var o=n.attr("src"),r=(n.data("lazyload"),n.data("bgfit")),s=n.data("bgrepeat"),l=n.data("bgposition");r==e&&(r="cover"),s==e&&(s="no-repeat"),l==e&&(l="center center");var h=n.closest(".slotholder");n.replaceWith('<div class="tp-bgimg defaultimg" data-lazyload="'+n.data("lazyload")+'" data-bgfit="'+r+'"data-bgposition="'+l+'" data-bgrepeat="'+s+'" data-lazydone="'+n.data("lazydone")+'" src="'+o+'" data-src="'+o+'" style="background-color:'+n.css("backgroundColor")+";background-repeat:"+s+";background-image:url("+o+");background-size:"+r+";background-position:"+l+';width:100%;height:100%;"></div>'),d(8)&&(h.find(".tp-bgimg").css({backgroundImage:"none","background-image":"none"}),h.find(".tp-bgimg").append('<img class="ieeightfallbackimage defaultimg" src="'+o+'" style="width:100%">')),n.css({opacity:0}),n.data("li-id",a)})},b=function(t,a,i,n){var o=t,r=o.find(".defaultimg"),s=o.data("zoomstart"),l=o.data("rotationstart");r.data("currotate")!=e&&(l=r.data("currotate")),r.data("curscale")!=e&&"box"==n?s=100*r.data("curscale"):r.data("curscale")!=e&&(s=r.data("curscale")),v(r,a);var h=r.data("src"),c=r.css("backgroundColor"),p=a.width,u=a.height,f=r.data("fxof"),g=0;"on"==a.autoHeight&&(u=a.container.height()),f==e&&(f=0);var m=0,w=r.data("bgfit"),b=r.data("bgrepeat"),x=r.data("bgposition");if(w==e&&(w="cover"),b==e&&(b="no-repeat"),x==e&&(x="center center"),d(8)){o.data("kenburns","off");var T=h;h=""}switch(n){case"box":var k=0,L=0,C=0;if(k=a.sloth>a.slotw?a.sloth:a.slotw,!i)var m=0-k;a.slotw=k,a.sloth=k;var L=0,C=0;"on"==o.data("kenburns")&&(w=s,w.toString().length<4&&(w=U(w,o,a)));for(var z=0;z<a.slots;z++){C=0;for(var O=0;O<a.slots;O++)o.append('<div class="slot" style="position:absolute;top:'+(g+C)+"px;left:"+(f+L)+"px;width:"+k+"px;height:"+k+'px;overflow:hidden;"><div class="slotslide" data-x="'+L+'" data-y="'+C+'" style="position:absolute;top:0px;left:0px;width:'+k+"px;height:"+k+'px;overflow:hidden;"><div style="position:absolute;top:'+(0-C)+"px;left:"+(0-L)+"px;width:"+p+"px;height:"+u+"px;background-color:"+c+";background-image:url("+h+");background-repeat:"+b+";background-size:"+w+";background-position:"+x+';"></div></div></div>'),C+=k,d(8)&&(o.find(".slot ").last().find(".slotslide").append('<img src="'+T+'">'),y(o,a)),s!=e&&l!=e&&punchgs.TweenLite.set(o.find(".slot").last(),{rotationZ:l});L+=k}break;case"vertical":case"horizontal":if("on"==o.data("kenburns")&&(w=s,w.toString().length<4&&(w=U(w,o,a))),"horizontal"==n){if(!i)var m=0-a.slotw;for(var O=0;O<a.slots;O++)o.append('<div class="slot" style="position:absolute;top:'+(0+g)+"px;left:"+(f+O*a.slotw)+"px;overflow:hidden;width:"+(a.slotw+.6)+"px;height:"+u+'px"><div class="slotslide" style="position:absolute;top:0px;left:'+m+"px;width:"+(a.slotw+.6)+"px;height:"+u+'px;overflow:hidden;"><div style="background-color:'+c+";position:absolute;top:0px;left:"+(0-O*a.slotw)+"px;width:"+p+"px;height:"+u+"px;background-image:url("+h+");background-repeat:"+b+";background-size:"+w+";background-position:"+x+';"></div></div></div>'),s!=e&&l!=e&&punchgs.TweenLite.set(o.find(".slot").last(),{rotationZ:l}),d(8)&&(o.find(".slot ").last().find(".slotslide").append('<img class="ieeightfallbackimage" src="'+T+'" style="width:100%;height:auto">'),y(o,a))}else{if(!i)var m=0-a.sloth;for(var O=0;O<a.slots+2;O++)o.append('<div class="slot" style="position:absolute;top:'+(g+O*a.sloth)+"px;left:"+f+"px;overflow:hidden;width:"+p+"px;height:"+a.sloth+'px"><div class="slotslide" style="position:absolute;top:'+m+"px;left:0px;width:"+p+"px;height:"+a.sloth+'px;overflow:hidden;"><div style="background-color:'+c+";position:absolute;top:"+(0-O*a.sloth)+"px;left:0px;width:"+p+"px;height:"+u+"px;background-image:url("+h+");background-repeat:"+b+";background-size:"+w+";background-position:"+x+';"></div></div></div>'),s!=e&&l!=e&&punchgs.TweenLite.set(o.find(".slot").last(),{rotationZ:l}),d(8)&&(o.find(".slot ").last().find(".slotslide").append('<img class="ieeightfallbackimage" src="'+T+'" style="width:100%;height:auto;">'),y(o,a))}}},y=function(t,e){if(d(8)){var a=t.find(".ieeightfallbackimage");a.width(),a.height();e.startwidth/e.startheight<t.data("owidth")/t.data("oheight")?a.css({width:"auto",height:"100%"}):a.css({width:"100%",height:"auto"}),setTimeout(function(){var i=a.width(),n=a.height(),o=t.data("bgposition");"center center"==o&&a.css({position:"absolute",top:e.height/2-n/2+"px",left:e.width/2-i/2+"px"}),("center top"==o||"top center"==o)&&a.css({position:"absolute",top:"0px",left:e.width/2-i/2+"px"}),("center bottom"==o||"bottom center"==o)&&a.css({position:"absolute",bottom:"0px",left:e.width/2-i/2+"px"}),("right top"==o||"top right"==o)&&a.css({position:"absolute",top:"0px",right:"0px"}),("right bottom"==o||"bottom right"==o)&&a.css({position:"absolute",bottom:"0px",right:"0px"}),("right center"==o||"center right"==o)&&a.css({position:"absolute",top:e.height/2-n/2+"px",right:"0px"}),("left bottom"==o||"bottom left"==o)&&a.css({position:"absolute",bottom:"0px",left:"0px"}),("left center"==o||"center left"==o)&&a.css({position:"absolute",top:e.height/2-n/2+"px",left:"0px"})},20)}},x=function(e,a,i){i.find(".slot").each(function(){t(this).remove()}),a.transition=0},T=function(a,i){a.find("img, .defaultimg").each(function(a){var n=t(this),o=n.data("lazyload");if(o!=n.attr("src")&&3>i&&o!=e&&"undefined"!=o){if(o!=e&&"undefined"!=o){n.attr("src",o);var r=new Image;r.onload=function(t){n.data("lazydone",1),n.hasClass("defaultimg")&&k(n,r)},r.error=function(){n.data("lazydone",1)},r.src=n.attr("src"),r.complete&&(n.hasClass("defaultimg")&&k(n,r),n.data("lazydone",1))}}else if((o===e||"undefined"===o)&&1!=n.data("lazydone")){var r=new Image;r.onload=function(){n.hasClass("defaultimg")&&k(n,r),n.data("lazydone",1)},r.error=function(){n.data("lazydone",1)},n.attr("src")!=e&&"undefined"!=n.attr("src")?r.src=n.attr("src"):r.src=n.data("src"),r.complete&&(n.hasClass("defaultimg")&&k(n,r),n.data("lazydone",1))}})},k=function(t,e){var a=t.closest("li"),i=e.width,n=e.height;a.data("owidth",i),a.data("oheight",n),a.find(".slotholder").data("owidth",i),a.find(".slotholder").data("oheight",n),a.data("loadeddone",1)},L=function(a,i,n){T(a,0);var o=setInterval(function(){n.bannertimeronpause=!0,n.container.trigger("stoptimer"),n.cd=0;var r=0;a.find("img, .defaultimg").each(function(e){1!=t(this).data("lazydone")&&r++}),r>0?T(a,r):(clearInterval(o),i!=e&&i())},100)},C=function(t,a){try{t.find(">ul:first-child >li:eq("+a.act+")")}catch(i){t.find(">ul:first-child >li:eq(1)")}a.lastslide=a.act;var n=t.find(">ul:first-child >li:eq("+a.next+")"),o=n.find(".defaultimg");a.bannertimeronpause=!0,t.trigger("stoptimer"),a.cd=0,o.data("lazyload")!=e&&"undefined"!=o.data("lazyload")&&1!=o.data("lazydone")?(d(8)?o.attr("src",n.find(".defaultimg").data("lazyload")):o.css({backgroundImage:'url("'+n.find(".defaultimg").data("lazyload")+'")'}),o.data("src",n.find(".defaultimg").data("lazyload")),o.data("lazydone",0),o.data("orgw",0),n.data("loadeddone",1),t.find(".tp-loader").css({display:"block"}),L(t.find(".tp-static-layers"),function(){L(n,function(){var e=n.find(".slotholder");if("on"==e.data("kenburns"))var i=setInterval(function(){var n=e.data("owidth");n>=0&&(clearInterval(i),z(a,o,t))},10);else z(a,o,t)},a)},a)):n.data("loadeddone")===e?(n.data("loadeddone",1),L(n,function(){z(a,o,t)},a)):z(a,o,t)},z=function(t,e,a){t.bannertimeronpause=!1,t.cd=0,a.trigger("nulltimer"),a.find(".tp-loader").css({display:"none"}),v(e,t),g(a,t),v(e,t),O(a,t)},O=function(t,a){t.trigger("revolution.slide.onbeforeswap"),a.transition=1,a.videoplaying=!1;try{var i=t.find(">ul:first-child >li:eq("+a.act+")")}catch(n){var i=t.find(">ul:first-child >li:eq(1)")}a.lastslide=a.act;var o=t.find(">ul:first-child >li:eq("+a.next+")");setTimeout(function(){m(a)},200);var r=i.find(".slotholder"),s=o.find(".slotholder");("on"==s.data("kenburns")||"on"==r.data("kenburns"))&&(Q(t,a),t.find(".kenburnimg").remove()),o.data("delay")!=e?(a.cd=0,a.delay=o.data("delay")):a.delay=a.origcd,1==a.firststart&&punchgs.TweenLite.set(i,{autoAlpha:0}),punchgs.TweenLite.set(i,{zIndex:18}),punchgs.TweenLite.set(o,{autoAlpha:0,zIndex:20});var d=0;i.index()!=o.index()&&1!=a.firststart&&(d=V(i,a)),"on"!=i.data("saveperformance")&&(d=0),setTimeout(function(){t.trigger("restarttimer"),I(t,a,o,i,r,s)},d)},I=function(a,i,n,o,r,s){function l(){t.each(g,function(t,e){(e[0]==u||e[8]==u)&&(h=e[1],f=e[2],w=y),y+=1})}"prepared"==n.data("differentissplayed")&&(n.data("differentissplayed","done"),n.data("transition",n.data("savedtransition")),n.data("slotamount",n.data("savedslotamount")),n.data("masterspeed",n.data("savedmasterspeed"))),n.data("fstransition")!=e&&"done"!=n.data("differentissplayed")&&(n.data("savedtransition",n.data("transition")),n.data("savedslotamount",n.data("slotamount")),n.data("savedmasterspeed",n.data("masterspeed")),n.data("transition",n.data("fstransition")),n.data("slotamount",n.data("fsslotamount")),n.data("masterspeed",n.data("fsmasterspeed")),n.data("differentissplayed","prepared")),a.find(".active-revslide").removeClass(".active-revslide"),n.addClass("active-revslide"),n.data("transition")==e&&n.data("transition","random");var h=0,c=n.data("transition").split(","),p=n.data("nexttransid")==e?-1:n.data("nexttransid");"on"==n.data("randomtransition")?p=Math.round(Math.random()*c.length):p+=1,p==c.length&&(p=0),n.data("nexttransid",p);var u=c[p];i.ie&&("boxfade"==u&&(u="boxslide"),"slotfade-vertical"==u&&(u="slotzoom-vertical"),"slotfade-horizontal"==u&&(u="slotzoom-horizontal")),d(8)&&(u=11);var f=0;"scroll"==i.parallax&&i.parallaxFirstGo==e&&(i.parallaxFirstGo=!0,tt(a,i),setTimeout(function(){tt(a,i)},210),setTimeout(function(){tt(a,i)},420)),"slidehorizontal"==u&&(u="slideleft",1==i.leftarrowpressed&&(u="slideright")),"slidevertical"==u&&(u="slideup",1==i.leftarrowpressed&&(u="slidedown")),"parallaxhorizontal"==u&&(u="parallaxtoleft",1==i.leftarrowpressed&&(u="parallaxtoright")),"parallaxvertical"==u&&(u="parallaxtotop",1==i.leftarrowpressed&&(u="parallaxtobottom"));var g=[["boxslide",0,1,10,0,"box",!1,null,0],["boxfade",1,0,10,0,"box",!1,null,1],["slotslide-horizontal",2,0,0,200,"horizontal",!0,!1,2],["slotslide-vertical",3,0,0,200,"vertical",!0,!1,3],["curtain-1",4,3,0,0,"horizontal",!0,!0,4],["curtain-2",5,3,0,0,"horizontal",!0,!0,5],["curtain-3",6,3,25,0,"horizontal",!0,!0,6],["slotzoom-horizontal",7,0,0,400,"horizontal",!0,!0,7],["slotzoom-vertical",8,0,0,0,"vertical",!0,!0,8],["slotfade-horizontal",9,0,0,500,"horizontal",!0,null,9],["slotfade-vertical",10,0,0,500,"vertical",!0,null,10],["fade",11,0,1,300,"horizontal",!0,null,11],["slideleft",12,0,1,0,"horizontal",!0,!0,12],["slideup",13,0,1,0,"horizontal",!0,!0,13],["slidedown",14,0,1,0,"horizontal",!0,!0,14],["slideright",15,0,1,0,"horizontal",!0,!0,15],["papercut",16,0,0,600,"",null,null,16],["3dcurtain-horizontal",17,0,20,100,"vertical",!1,!0,17],["3dcurtain-vertical",18,0,10,100,"horizontal",!1,!0,18],["cubic",19,0,20,600,"horizontal",!1,!0,19],["cube",19,0,20,600,"horizontal",!1,!0,20],["flyin",20,0,4,600,"vertical",!1,!0,21],["turnoff",21,0,1,1600,"horizontal",!1,!0,22],["incube",22,0,20,200,"horizontal",!1,!0,23],["cubic-horizontal",23,0,20,500,"vertical",!1,!0,24],["cube-horizontal",23,0,20,500,"vertical",!1,!0,25],["incube-horizontal",24,0,20,500,"vertical",!1,!0,26],["turnoff-vertical",25,0,1,200,"horizontal",!1,!0,27],["fadefromright",12,1,1,0,"horizontal",!0,!0,28],["fadefromleft",15,1,1,0,"horizontal",!0,!0,29],["fadefromtop",14,1,1,0,"horizontal",!0,!0,30],["fadefrombottom",13,1,1,0,"horizontal",!0,!0,31],["fadetoleftfadefromright",12,2,1,0,"horizontal",!0,!0,32],["fadetorightfadetoleft",15,2,1,0,"horizontal",!0,!0,33],["fadetobottomfadefromtop",14,2,1,0,"horizontal",!0,!0,34],["fadetotopfadefrombottom",13,2,1,0,"horizontal",!0,!0,35],["parallaxtoright",12,3,1,0,"horizontal",!0,!0,36],["parallaxtoleft",15,3,1,0,"horizontal",!0,!0,37],["parallaxtotop",14,3,1,0,"horizontal",!0,!0,38],["parallaxtobottom",13,3,1,0,"horizontal",!0,!0,39],["scaledownfromright",12,4,1,0,"horizontal",!0,!0,40],["scaledownfromleft",15,4,1,0,"horizontal",!0,!0,41],["scaledownfromtop",14,4,1,0,"horizontal",!0,!0,42],["scaledownfrombottom",13,4,1,0,"horizontal",!0,!0,43],["zoomout",13,5,1,0,"horizontal",!0,!0,44],["zoomin",13,6,1,0,"horizontal",!0,!0,45],["notransition",26,0,1,0,"horizontal",!0,null,46]],m=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],v=[16,17,18,19,20,21,22,23,24,25,26,27],h=0,f=1,w=0,y=0,x=new Array;"on"==s.data("kenburns")&&(("boxslide"==u||0==u||"boxfade"==u||1==u||"papercut"==u||16==u)&&(u=11),G(a,i,!0,!0)),"random"==u&&(u=Math.round(Math.random()*g.length-1),u>g.length-1&&(u=g.length-1)),"random-static"==u&&(u=Math.round(Math.random()*m.length-1),u>m.length-1&&(u=m.length-1),u=m[u]),"random-premium"==u&&(u=Math.round(Math.random()*v.length-1),u>v.length-1&&(u=v.length-1),u=v[u]);var T=[12,13,14,15,16,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45];if(1==i.isJoomla&&window.MooTools!=e&&-1!=T.indexOf(u)){var k=Math.round(Math.random()*(v.length-2))+1;k>v.length-1&&(k=v.length-1),0==k&&(k=1),u=v[k]}l(),d(8)&&h>15&&28>h&&(u=Math.round(Math.random()*m.length-1),u>m.length-1&&(u=m.length-1),u=m[u],y=0,l());var L=-1;(1==i.leftarrowpressed||i.act>i.next)&&(L=1),i.leftarrowpressed=0,h>26&&(h=26),0>h&&(h=0);var C=300;n.data("masterspeed")!=e&&n.data("masterspeed")>99&&n.data("masterspeed")<i.delay&&(C=n.data("masterspeed")),n.data("masterspeed")!=e&&n.data("masterspeed")>i.delay&&(C=i.delay),x=g[w],a.parent().find(".bullet").each(function(){var e=t(this),a=e.index();e.removeClass("selected"),("withbullet"==i.navigationArrows||"nexttobullets"==i.navigationArrows)&&(a=e.index()-1),a==i.next&&e.addClass("selected")});var z=new punchgs.TimelineLite({onComplete:function(){A(a,i,s,r,n,o,z)}});if(z.add(punchgs.TweenLite.set(s.find(".defaultimg"),{opacity:0})),z.pause(),n.data("slotamount")==e||n.data("slotamount")<1?(i.slots=Math.round(12*Math.random()+4),"boxslide"==u?i.slots=Math.round(6*Math.random()+3):"flyin"==u&&(i.slots=Math.round(4*Math.random()+1))):i.slots=n.data("slotamount"),n.data("rotate")==e?i.rotate=0:999==n.data("rotate")?i.rotate=Math.round(360*Math.random()):i.rotate=n.data("rotate"),(!t.support.transition||i.ie||i.ie9)&&(i.rotate=0),1==i.firststart&&(i.firststart=0),C+=x[4],(4==h||5==h||6==h)&&i.slots<3&&(i.slots=3),0!=x[3]&&(i.slots=Math.min(i.slots,x[3])),9==h&&(i.slots=i.width/20),10==h&&(i.slots=i.height/20),null!=x[7]&&b(r,i,x[7],x[5]),null!=x[6]&&b(s,i,x[6],x[5]),0==h){var O=Math.ceil(i.height/i.sloth),I=0;s.find(".slotslide").each(function(e){var a=t(this);I+=1,I==O&&(I=0),z.add(punchgs.TweenLite.from(a,C/600,{opacity:0,top:0-i.sloth,left:0-i.slotw,rotation:i.rotate,force3D:"auto",ease:punchgs.Power2.easeOut}),(15*e+30*I)/1500)})}if(1==h){var M,S=0;s.find(".slotslide").each(function(e){var a=t(this),n=Math.random()*C+300,o=500*Math.random()+200;n+o>M&&(M=o+o,S=e),z.add(punchgs.TweenLite.from(a,n/1e3,{autoAlpha:0,force3D:"auto",rotation:i.rotate,ease:punchgs.Power2.easeInOut}),o/1e3)})}if(2==h){var P=new punchgs.TimelineLite;r.find(".slotslide").each(function(){var e=t(this);P.add(punchgs.TweenLite.to(e,C/1e3,{left:i.slotw,force3D:"auto",rotation:0-i.rotate}),0),z.add(P,0)}),s.find(".slotslide").each(function(){var e=t(this);P.add(punchgs.TweenLite.from(e,C/1e3,{left:0-i.slotw,force3D:"auto",rotation:i.rotate}),0),z.add(P,0)})}if(3==h){var P=new punchgs.TimelineLite;r.find(".slotslide").each(function(){var e=t(this);P.add(punchgs.TweenLite.to(e,C/1e3,{top:i.sloth,rotation:i.rotate,force3D:"auto",transformPerspective:600}),0),z.add(P,0)}),s.find(".slotslide").each(function(){var e=t(this);P.add(punchgs.TweenLite.from(e,C/1e3,{top:0-i.sloth,rotation:i.rotate,ease:punchgs.Power2.easeOut,force3D:"auto",transformPerspective:600}),0),z.add(P,0)})}if(4==h||5==h){setTimeout(function(){r.find(".defaultimg").css({opacity:0})},100);var D=C/1e3,P=new punchgs.TimelineLite;r.find(".slotslide").each(function(e){var a=t(this),n=e*D/i.slots;5==h&&(n=(i.slots-e-1)*D/i.slots/1.5),P.add(punchgs.TweenLite.to(a,3*D,{transformPerspective:600,force3D:"auto",top:0+i.height,opacity:.5,rotation:i.rotate,ease:punchgs.Power2.easeInOut,delay:n}),0),z.add(P,0)}),s.find(".slotslide").each(function(e){var a=t(this),n=e*D/i.slots;5==h&&(n=(i.slots-e-1)*D/i.slots/1.5),P.add(punchgs.TweenLite.from(a,3*D,{top:0-i.height,opacity:.5,rotation:i.rotate,force3D:"auto",ease:punchgs.Power2.easeInOut,delay:n}),0),z.add(P,0)})}if(6==h){i.slots<2&&(i.slots=2),i.slots%2&&(i.slots=i.slots+1);var P=new punchgs.TimelineLite;setTimeout(function(){r.find(".defaultimg").css({opacity:0})},100),r.find(".slotslide").each(function(e){var a=t(this);if(e+1<i.slots/2)var n=90*(e+2);else var n=90*(2+i.slots-e);P.add(punchgs.TweenLite.to(a,(C+n)/1e3,{top:0+i.height,opacity:1,force3D:"auto",rotation:i.rotate,ease:punchgs.Power2.easeInOut}),0),z.add(P,0)}),s.find(".slotslide").each(function(e){var a=t(this);if(e+1<i.slots/2)var n=90*(e+2);else var n=90*(2+i.slots-e);P.add(punchgs.TweenLite.from(a,(C+n)/1e3,{top:0-i.height,opacity:1,force3D:"auto",rotation:i.rotate,ease:punchgs.Power2.easeInOut}),0),z.add(P,0)})}if(7==h){C=2*C,C>i.delay&&(C=i.delay);var P=new punchgs.TimelineLite;setTimeout(function(){r.find(".defaultimg").css({opacity:0})},100),r.find(".slotslide").each(function(){var e=t(this).find("div");P.add(punchgs.TweenLite.to(e,C/1e3,{left:0-i.slotw/2+"px",top:0-i.height/2+"px",width:2*i.slotw+"px",height:2*i.height+"px",opacity:0,rotation:i.rotate,force3D:"auto",ease:punchgs.Power2.easeOut}),0),z.add(P,0)}),s.find(".slotslide").each(function(e){var a=t(this).find("div");P.add(punchgs.TweenLite.fromTo(a,C/1e3,{left:0,top:0,opacity:0,transformPerspective:600},{left:0-e*i.slotw+"px",ease:punchgs.Power2.easeOut,force3D:"auto",top:"0px",width:i.width,height:i.height,opacity:1,rotation:0,delay:.1}),0),z.add(P,0)})}if(8==h){C=3*C,C>i.delay&&(C=i.delay);var P=new punchgs.TimelineLite;r.find(".slotslide").each(function(){var e=t(this).find("div");P.add(punchgs.TweenLite.to(e,C/1e3,{left:0-i.width/2+"px",top:0-i.sloth/2+"px",width:2*i.width+"px",height:2*i.sloth+"px",force3D:"auto",opacity:0,rotation:i.rotate}),0),z.add(P,0)}),s.find(".slotslide").each(function(e){var a=t(this).find("div");P.add(punchgs.TweenLite.fromTo(a,C/1e3,{left:0,top:0,opacity:0,force3D:"auto"},{left:"0px",top:0-e*i.sloth+"px",width:s.find(".defaultimg").data("neww")+"px",height:s.find(".defaultimg").data("newh")+"px",opacity:1,rotation:0}),0),z.add(P,0)})}if(9==h||10==h){var H=0;s.find(".slotslide").each(function(e){var a=t(this);H++,z.add(punchgs.TweenLite.fromTo(a,C/1e3,{autoAlpha:0,force3D:"auto",transformPerspective:600},{autoAlpha:1,ease:punchgs.Power2.easeInOut,delay:5*e/1e3}),0)})}if(11==h||26==h){var H=0;26==h&&(C=0),s.find(".slotslide").each(function(e){var a=t(this);z.add(punchgs.TweenLite.from(a,C/1e3,{autoAlpha:0,force3D:"auto",ease:punchgs.Power2.easeInOut}),0)})}if(12==h||13==h||14==h||15==h){C=C,C>i.delay&&(C=i.delay),setTimeout(function(){punchgs.TweenLite.set(r.find(".defaultimg"),{autoAlpha:0})},100);var W=i.width,_=i.height,X=s.find(".slotslide"),F=0,R=0,B=1,V=1,q=1,j=punchgs.Power2.easeInOut,E=punchgs.Power2.easeInOut,Z=C/1e3,N=Z;("on"==i.fullWidth||"on"==i.fullScreen)&&(W=X.width(),_=X.height()),12==h?F=W:15==h?F=0-W:13==h?R=_:14==h&&(R=0-_),1==f&&(B=0),2==f&&(B=0),3==f&&(j=punchgs.Power2.easeInOut,E=punchgs.Power1.easeInOut,Z=C/1200),(4==f||5==f)&&(V=.6),6==f&&(V=1.4),(5==f||6==f)&&(q=1.4,B=0,W=0,_=0,F=0,R=0),6==f&&(q=.6);z.add(punchgs.TweenLite.from(X,Z,{left:F,top:R,scale:q,opacity:B,rotation:i.rotate,ease:E,force3D:"auto"}),0);var U=r.find(".slotslide");if((4==f||5==f)&&(W=0,_=0),1!=f)switch(h){case 12:z.add(punchgs.TweenLite.to(U,N,{left:0-W+"px",force3D:"auto",scale:V,opacity:B,rotation:i.rotate,ease:j}),0);break;case 15:z.add(punchgs.TweenLite.to(U,N,{left:W+"px",force3D:"auto",scale:V,opacity:B,rotation:i.rotate,ease:j}),0);break;case 13:z.add(punchgs.TweenLite.to(U,N,{top:0-_+"px",force3D:"auto",scale:V,opacity:B,rotation:i.rotate,ease:j}),0);break;case 14:z.add(punchgs.TweenLite.to(U,N,{top:_+"px",force3D:"auto",scale:V,opacity:B,rotation:i.rotate,ease:j}),0)}}if(16==h){var P=new punchgs.TimelineLite;z.add(punchgs.TweenLite.set(o,{position:"absolute","z-index":20}),0),z.add(punchgs.TweenLite.set(n,{position:"absolute","z-index":15}),0),o.wrapInner('<div class="tp-half-one" style="position:relative; width:100%;height:100%"></div>'),o.find(".tp-half-one").clone(!0).appendTo(o).addClass("tp-half-two"),o.find(".tp-half-two").removeClass("tp-half-one");var W=i.width,_=i.height;"on"==i.autoHeight&&(_=a.height()),o.find(".tp-half-one .defaultimg").wrap('<div class="tp-papercut" style="width:'+W+"px;height:"+_+'px;"></div>'),o.find(".tp-half-two .defaultimg").wrap('<div class="tp-papercut" style="width:'+W+"px;height:"+_+'px;"></div>'),o.find(".tp-half-two .defaultimg").css({position:"absolute",top:"-50%"}),o.find(".tp-half-two .tp-caption").wrapAll('<div style="position:absolute;top:-50%;left:0px;"></div>'),z.add(punchgs.TweenLite.set(o.find(".tp-half-two"),{width:W,height:_,overflow:"hidden",zIndex:15,position:"absolute",top:_/2,left:"0px",transformPerspective:600,transformOrigin:"center bottom"}),0),z.add(punchgs.TweenLite.set(o.find(".tp-half-one"),{width:W,height:_/2,overflow:"visible",zIndex:10,position:"absolute",top:"0px",left:"0px",transformPerspective:600,transformOrigin:"center top"}),0);var $=(o.find(".defaultimg"),Math.round(20*Math.random()-10)),J=Math.round(20*Math.random()-10),Q=Math.round(20*Math.random()-10),K=.4*Math.random()-.2,et=.4*Math.random()-.2,at=1*Math.random()+1,it=1*Math.random()+1,nt=.3*Math.random()+.3;z.add(punchgs.TweenLite.set(o.find(".tp-half-one"),{overflow:"hidden"}),0),z.add(punchgs.TweenLite.fromTo(o.find(".tp-half-one"),C/800,{width:W,height:_/2,position:"absolute",top:"0px",left:"0px",force3D:"auto",transformOrigin:"center top"},{scale:at,rotation:$,y:0-_-_/4,autoAlpha:0,ease:punchgs.Power2.easeInOut}),0),z.add(punchgs.TweenLite.fromTo(o.find(".tp-half-two"),C/800,{width:W,height:_,overflow:"hidden",position:"absolute",top:_/2,left:"0px",force3D:"auto",transformOrigin:"center bottom"},{scale:it,rotation:J,y:_+_/4,ease:punchgs.Power2.easeInOut,autoAlpha:0,onComplete:function(){punchgs.TweenLite.set(o,{position:"absolute","z-index":15}),punchgs.TweenLite.set(n,{position:"absolute","z-index":20}),o.find(".tp-half-one").length>0&&(o.find(".tp-half-one .defaultimg").unwrap(),o.find(".tp-half-one .slotholder").unwrap()),o.find(".tp-half-two").remove()}}),0),P.add(punchgs.TweenLite.set(s.find(".defaultimg"),{autoAlpha:1}),0),null!=o.html()&&z.add(punchgs.TweenLite.fromTo(n,(C-200)/1e3,{scale:nt,x:i.width/4*K,y:_/4*et,rotation:Q,force3D:"auto",transformOrigin:"center center",ease:punchgs.Power2.easeOut},{autoAlpha:1,scale:1,x:0,y:0,rotation:0}),0),z.add(P,0)}if(17==h&&s.find(".slotslide").each(function(e){var a=t(this);z.add(punchgs.TweenLite.fromTo(a,C/800,{opacity:0,rotationY:0,scale:.9,rotationX:-110,force3D:"auto",transformPerspective:600,transformOrigin:"center center"},{opacity:1,top:0,left:0,scale:1,rotation:0,rotationX:0,force3D:"auto",rotationY:0,ease:punchgs.Power3.easeOut,delay:.06*e}),0)}),18==h&&s.find(".slotslide").each(function(e){var a=t(this);z.add(punchgs.TweenLite.fromTo(a,C/500,{autoAlpha:0,rotationY:310,scale:.9,rotationX:10,force3D:"auto",transformPerspective:600,transformOrigin:"center center"},{autoAlpha:1,top:0,left:0,scale:1,rotation:0,rotationX:0,force3D:"auto",rotationY:0,ease:punchgs.Power3.easeOut,delay:.06*e}),0)}),19==h||22==h){var P=new punchgs.TimelineLite;z.add(punchgs.TweenLite.set(o,{zIndex:18}),0),z.add(punchgs.TweenLite.set(n,{zIndex:20}),0),setTimeout(function(){r.find(".defaultimg").css({opacity:0})},100);var ot=(n.css("z-index"),o.css("z-index"),90),B=1,rt="center center ";1==L&&(ot=-90),19==h?(rt=rt+"-"+i.height/2,B=0):rt+=i.height/2,punchgs.TweenLite.set(a,{transformStyle:"flat",backfaceVisibility:"hidden",transformPerspective:600}),s.find(".slotslide").each(function(e){var a=t(this);P.add(punchgs.TweenLite.fromTo(a,C/1e3,{transformStyle:"flat",backfaceVisibility:"hidden",left:0,rotationY:i.rotate,z:10,top:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:rt,rotationX:ot},{left:0,rotationY:0,top:0,z:0,scale:1,force3D:"auto",rotationX:0,delay:50*e/1e3,ease:punchgs.Power2.easeInOut}),0),P.add(punchgs.TweenLite.to(a,.1,{autoAlpha:1,delay:50*e/1e3}),0),z.add(P)}),r.find(".slotslide").each(function(e){var a=t(this),n=-90;1==L&&(n=90),P.add(punchgs.TweenLite.fromTo(a,C/1e3,{transformStyle:"flat",backfaceVisibility:"hidden",autoAlpha:1,rotationY:0,top:0,z:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:rt,rotationX:0},{autoAlpha:1,rotationY:i.rotate,top:0,z:10,scale:1,rotationX:n,delay:50*e/1e3,force3D:"auto",ease:punchgs.Power2.easeInOut}),0),z.add(P)})}if(20==h){setTimeout(function(){r.find(".defaultimg").css({opacity:0})},100);n.css("z-index"),o.css("z-index");if(1==L)var st=-i.width,ot=70,rt="left center -"+i.height/2;else var st=i.width,ot=-70,rt="right center -"+i.height/2;s.find(".slotslide").each(function(e){var a=t(this);z.add(punchgs.TweenLite.fromTo(a,C/1500,{left:st,rotationX:40,z:-600,opacity:B,top:0,force3D:"auto",transformPerspective:600,transformOrigin:rt,rotationY:ot},{left:0,delay:50*e/1e3,ease:punchgs.Power2.easeInOut}),0),z.add(punchgs.TweenLite.fromTo(a,C/1e3,{rotationX:40,z:-600,opacity:B,top:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:rt,rotationY:ot},{rotationX:0,opacity:1,top:0,z:0,scale:1,rotationY:0,delay:50*e/1e3,ease:punchgs.Power2.easeInOut}),0),z.add(punchgs.TweenLite.to(a,.1,{opacity:1,force3D:"auto",delay:50*e/1e3+C/2e3}),0)}),r.find(".slotslide").each(function(e){var a=t(this);if(1!=L)var n=-i.width,o=70,r="left center -"+i.height/2;else var n=i.width,o=-70,r="right center -"+i.height/2;z.add(punchgs.TweenLite.fromTo(a,C/1e3,{opacity:1,rotationX:0,top:0,z:0,scale:1,left:0,force3D:"auto",transformPerspective:600,transformOrigin:r,rotationY:0},{opacity:1,rotationX:40,top:0,z:-600,left:n,force3D:"auto",scale:.8,rotationY:o,delay:50*e/1e3,ease:punchgs.Power2.easeInOut}),0),z.add(punchgs.TweenLite.to(a,.1,{force3D:"auto",opacity:0,delay:50*e/1e3+(C/1e3-C/1e4)}),0)})}if(21==h||25==h){setTimeout(function(){r.find(".defaultimg").css({opacity:0})},100);var ot=(n.css("z-index"),o.css("z-index"),90),st=-i.width,dt=-ot;if(1==L)if(25==h){var rt="center top 0";ot=i.rotate}else{var rt="left center 0";dt=i.rotate}else if(st=i.width,ot=-90,25==h){var rt="center bottom 0";dt=-ot,ot=i.rotate}else{var rt="right center 0";dt=i.rotate}s.find(".slotslide").each(function(e){var a=t(this);z.add(punchgs.TweenLite.fromTo(a,C/1e3,{left:0,transformStyle:"flat",rotationX:dt,z:0,autoAlpha:0,top:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:rt,rotationY:ot},{left:0,rotationX:0,top:0,z:0,autoAlpha:1,scale:1,rotationY:0,force3D:"auto",ease:punchgs.Power3.easeInOut}),0)}),1!=L?(st=-i.width,ot=90,25==h?(rt="center top 0",dt=-ot,ot=i.rotate):(rt="left center 0",dt=i.rotate)):(st=i.width,ot=-90,25==h?(rt="center bottom 0",dt=-ot,ot=i.rotate):(rt="right center 0",dt=i.rotate)),r.find(".slotslide").each(function(e){var a=t(this);z.add(punchgs.TweenLite.fromTo(a,C/1e3,{left:0,transformStyle:"flat",rotationX:0,z:0,autoAlpha:1,top:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:rt,rotationY:0},{left:0,rotationX:dt,top:0,z:0,autoAlpha:1,force3D:"auto",scale:1,rotationY:ot,ease:punchgs.Power1.easeInOut}),0)})}if(23==h||24==h){setTimeout(function(){r.find(".defaultimg").css({opacity:0})},100);var ot=(n.css("z-index"),o.css("z-index"),-90),B=1,lt=0;if(1==L&&(ot=90),23==h){var rt="center center -"+i.width/2;B=0}else var rt="center center "+i.width/2;punchgs.TweenLite.set(a,{transformStyle:"preserve-3d",backfaceVisibility:"hidden",perspective:2500}),s.find(".slotslide").each(function(e){var a=t(this);z.add(punchgs.TweenLite.fromTo(a,C/1e3,{left:lt,rotationX:i.rotate,force3D:"auto",opacity:B,top:0,scale:1,transformPerspective:600,transformOrigin:rt,rotationY:ot},{left:0,rotationX:0,autoAlpha:1,top:0,z:0,scale:1,rotationY:0,delay:50*e/500,ease:punchgs.Power2.easeInOut}),0)}),ot=90,1==L&&(ot=-90),r.find(".slotslide").each(function(e){var a=t(this);z.add(punchgs.TweenLite.fromTo(a,C/1e3,{left:0,autoAlpha:1,rotationX:0,top:0,z:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:rt,rotationY:0},{left:lt,autoAlpha:1,rotationX:i.rotate,top:0,scale:1,rotationY:ot,delay:50*e/500,ease:punchgs.Power2.easeInOut}),0)})}z.pause(),Y(n,i,null,z),punchgs.TweenLite.to(n,.001,{autoAlpha:1});var ht={};ht.slideIndex=i.next+1,ht.slide=n,a.trigger("revolution.slide.onchange",ht),setTimeout(function(){a.trigger("revolution.slide.onafterswap")},C),a.trigger("revolution.slide.onvideostop")},A=function(t,e,a,i,n,o,r){punchgs.TweenLite.to(a.find(".defaultimg"),.001,{autoAlpha:1,onComplete:function(){x(t,e,n)}}),n.index()!=o.index()&&punchgs.TweenLite.to(o,.2,{autoAlpha:0,onComplete:function(){x(t,e,o)}}),e.act=e.next,"thumb"==e.navigationType&&at(t),"on"==a.data("kenburns")&&G(t,e),t.find(".current-sr-slide-visible").removeClass("current-sr-slide-visible"),n.addClass("current-sr-slide-visible"),("scroll"==e.parallax||"scroll+mouse"==e.parallax||"mouse+scroll"==e.parallax)&&tt(t,e),r.clear()},M=function(e){var a=t(e.target.getIframe()),i=a.closest(".tp-simpleresponsive"),n=a.parent().data("player");if(e.data==YT.PlayerState.PLAYING){var o=i.find(".tp-bannertimer"),r=o.data("opt");"mute"==a.closest(".tp-caption").data("volume")&&n.mute(),r.videoplaying=!0,i.trigger("stoptimer"),i.trigger("revolution.slide.onvideoplay")}else{var o=i.find(".tp-bannertimer"),r=o.data("opt");-1!=e.data&&3!=e.data&&(r.videoplaying=!1,i.trigger("starttimer"),i.trigger("revolution.slide.onvideostop")),0==e.data&&1==r.nextslideatend?r.container.revnext():(r.videoplaying=!1,i.trigger("starttimer"),i.trigger("revolution.slide.onvideostop"))}},S=function(t,e,a){t.addEventListener?t.addEventListener(e,a,!1):t.attachEvent(e,a,!1)},P=function(e,a){var i=$f(e),n=t("#"+e),o=n.closest(".tp-simpleresponsive"),r=n.closest(".tp-caption");setTimeout(function(){i.addEvent("ready",function(e){a&&i.api("play"),i.addEvent("play",function(t){var e=o.find(".tp-bannertimer"),a=e.data("opt");a.videoplaying=!0,o.trigger("stoptimer"),o.trigger("revolution.slide.onvideoplay"),"mute"==r.data("volume")&&i.api("setVolume","0")}),i.addEvent("finish",function(t){var e=o.find(".tp-bannertimer"),a=e.data("opt");a.videoplaying=!1,o.trigger("starttimer"),o.trigger("revolution.slide.onvideoplay"),1==a.nextslideatend&&a.container.revnext()}),i.addEvent("pause",function(t){var e=o.find(".tp-bannertimer"),a=e.data("opt");a.videoplaying=!1,o.trigger("starttimer"),o.trigger("revolution.slide.onvideostop")}),r.find(".tp-thumb-image").click(function(){punchgs.TweenLite.to(t(this),.3,{autoAlpha:0,force3D:"auto",ease:punchgs.Power3.easeInOut}),i.api("play")})})},150)},D=function(t,a){var i=a.width(),n=a.height(),o=t.data("mediaAspect");o==e&&(o=1);var r=i/n;t.css({position:"absolute"});t.find("video");o>r?punchgs.TweenLite.to(t,1e-4,{width:n*o,force3D:"auto",top:0,left:0-(n*o-i)/2,height:n}):punchgs.TweenLite.to(t,1e-4,{width:i,force3D:"auto",top:0-(i/o-n)/2,left:0,height:i/o})},H=function(){var t=new Object;return t.x=0,t.y=0,t.rotationX=0,t.rotationY=0,t.rotationZ=0,t.scale=1,t.scaleX=1,t.scaleY=1,t.skewX=0,t.skewY=0,t.opacity=0,t.transformOrigin="center, center",t.transformPerspective=400,t.rotation=0,t},W=function(e,a){var i=a.split(";");return t.each(i,function(t,a){a=a.split(":");var i=a[0],n=a[1];"rotationX"==i&&(e.rotationX=parseInt(n,0)),"rotationY"==i&&(e.rotationY=parseInt(n,0)),"rotationZ"==i&&(e.rotationZ=parseInt(n,0)),"rotationZ"==i&&(e.rotation=parseInt(n,0)),"scaleX"==i&&(e.scaleX=parseFloat(n)),"scaleY"==i&&(e.scaleY=parseFloat(n)),"opacity"==i&&(e.opacity=parseFloat(n)),
"skewX"==i&&(e.skewX=parseInt(n,0)),"skewY"==i&&(e.skewY=parseInt(n,0)),"x"==i&&(e.x=parseInt(n,0)),"y"==i&&(e.y=parseInt(n,0)),"z"==i&&(e.z=parseInt(n,0)),"transformOrigin"==i&&(e.transformOrigin=n.toString()),"transformPerspective"==i&&(e.transformPerspective=parseInt(n,0))}),e},_=function(e){var a=e.split("animation:"),i=new Object;i.animation=W(H(),a[1]);var n=a[0].split(";");return t.each(n,function(t,e){e=e.split(":");var a=e[0],n=e[1];"typ"==a&&(i.typ=n),"speed"==a&&(i.speed=parseInt(n,0)/1e3),"start"==a&&(i.start=parseInt(n,0)/1e3),"elementdelay"==a&&(i.elementdelay=parseFloat(n)),"ease"==a&&(i.ease=n)}),i},Y=function(a,i,n,o){function r(){}function s(){}a.data("ctl")==e&&a.data("ctl",new punchgs.TimelineLite);var l=a.data("ctl"),h=0,c=0,p=a.find(".tp-caption"),u=i.container.find(".tp-static-layers").find(".tp-caption");l.pause(),t.each(u,function(t,e){p.push(e)}),p.each(function(a){var o=n,l=-1,p=t(this);if(p.hasClass("tp-static-layer")){var u=p.data("startslide"),f=p.data("endslide");(-1==u||"-1"==u)&&p.data("startslide",0),(-1==f||"-1"==f)&&p.data("endslide",i.slideamount),0==u&&f==i.slideamount-1&&p.data("endslide",i.slideamount+1),u=p.data("startslide"),f=p.data("endslide"),p.hasClass("tp-is-shown")?l=f==i.next||u>i.next||f<i.next?2:0:u<=i.next&&f>=i.next||u==i.next||f==i.next?(p.addClass("tp-is-shown"),l=1):l=0}h=i.width/2-i.startwidth*i.bw/2;var g=i.bw;i.bh;"on"==i.fullScreen&&(c=i.height/2-i.startheight*i.bh/2),("on"==i.autoHeight||i.minHeight!=e&&i.minHeight>0)&&(c=i.container.height()/2-i.startheight*i.bh/2),0>c&&(c=0);var m=0;if(i.width<i.hideCaptionAtLimit&&"on"==p.data("captionhidden")?(p.addClass("tp-hidden-caption"),m=1):i.width<i.hideAllCaptionAtLimit||i.width<i.hideAllCaptionAtLilmit?(p.addClass("tp-hidden-caption"),m=1):p.removeClass("tp-hidden-caption"),0==m){if(p.data("linktoslide")==e||p.hasClass("hasclicklistener")||(p.addClass("hasclicklistener"),p.css({cursor:"pointer"}),"no"!=p.data("linktoslide")&&p.click(function(){var e=t(this),a=e.data("linktoslide");"next"!=a&&"prev"!=a?(i.container.data("showus",a),i.container.parent().find(".tp-rightarrow").click()):"next"==a?i.container.parent().find(".tp-rightarrow").click():"prev"==a&&i.container.parent().find(".tp-leftarrow").click()})),0>h&&(h=0),p.hasClass("tp-videolayer")||p.find("iframe").length>0||p.find("video").length>0){var v="iframe"+Math.round(1e5*Math.random()+1),w=p.data("videowidth"),b=p.data("videoheight"),y=p.data("videoattributes"),x=p.data("ytid"),T=p.data("vimeoid"),k=p.data("videpreload"),L=p.data("videomp4"),C=p.data("videowebm"),z=p.data("videoogv"),O=p.data("videocontrols"),I="http",A="loop"==p.data("videoloop")?"loop":"loopandnoslidestop"==p.data("videoloop")?"loop":"";if(p.data("thumbimage")!=e&&p.data("videoposter")==e&&p.data("videoposter",p.data("thumbimage")),x!=e&&String(x).length>1&&0==p.find("iframe").length&&(I="https","none"==O&&(y=y.replace("controls=1","controls=0"),-1==y.toLowerCase().indexOf("controls")&&(y+="&controls=0")),p.append('<iframe style="visible:hidden" src="'+I+"://www.youtube.com/embed/"+x+"?"+y+'" width="'+w+'" height="'+b+'" style="width:'+w+"px;height:"+b+'px" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>')),T!=e&&String(T).length>1&&0==p.find("iframe").length&&("https:"===location.protocol&&(I="https"),p.append('<iframe style="visible:hidden" src="'+I+"://player.vimeo.com/video/"+T+"?"+y+'" width="'+w+'" height="'+b+'" style="width:'+w+"px;height:"+b+'px" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>')),(L!=e||C!=e)&&0==p.find("video").length){"controls"!=O&&(O="");var Y="";(100==w||"100%"==w)&&(Y=";width:100% !important; height:100% !important");var V='<video style="visible:hidden'+Y+'" class="" '+A+' preload="'+k+'" width="'+w+'" height="'+b+'" ';p.data("videoposter")!=e&&p.data("videoposter")!=e&&(V=V+'poster="'+p.data("videoposter")+'">'),C!=e&&"firefox"==X().toLowerCase()&&(V=V+'<source src="'+C+'" type="video/webm" />'),L!=e&&(V=V+'<source src="'+L+'" type="video/mp4" />'),z!=e&&(V=V+'<source src="'+z+'" type="video/ogg" />'),V+="</video>",p.append(V),"controls"==O&&p.append('<div class="tp-video-controls"><div class="tp-video-button-wrap"><button type="button" class="tp-video-button tp-vid-play-pause">Play</button></div><div class="tp-video-seek-bar-wrap"><input  type="range" class="tp-seek-bar" value="0"></div><div class="tp-video-button-wrap"><button  type="button" class="tp-video-button tp-vid-mute">Mute</button></div><div class="tp-video-vol-bar-wrap"><input  type="range" class="tp-volume-bar" min="0" max="1" step="0.1" value="1"></div><div class="tp-video-button-wrap"><button  type="button" class="tp-video-button tp-vid-full-screen">Full-Screen</button></div></div>')}var E=!1;(1==p.data("autoplayonlyfirsttime")||"true"==p.data("autoplayonlyfirsttime")||1==p.data("autoplay"))&&(p.data("autoplay",!0),E=!0),p.data("videoposter")!=e&&p.data("videoposter").length>2&&1!=p.data("autoplay")&&!o&&(0==p.find(".tp-thumb-image").length?p.append('<div class="tp-thumb-image" style="cursor:pointer; position:absolute;top:0px;left:0px;width:100%;height:100%;background-image:url('+p.data("videoposter")+'); background-size:cover; background-position:center center"></div>'):punchgs.TweenLite.set(p.find(".tp-thumb-image"),{autoAlpha:1})),p.find("iframe").each(function(){var a=t(this);if(punchgs.TweenLite.to(a,.1,{autoAlpha:1,zIndex:0,transformStyle:"preserve-3d",z:0,rotationX:0,force3D:"auto"}),N()){var o=a.attr("src");a.attr("src",""),a.attr("src",o)}if(i.nextslideatend=p.data("nextslideatend"),a.attr("src").toLowerCase().indexOf("youtube")>=0)if(a.hasClass("HasListener")){if(!n){var r=p.data("player");"on"!=p.data("forcerewind")||N()||r.seekTo(0),(!N()&&1==p.data("autoplay")||E)&&p.data("timerplay",setTimeout(function(){r.playVideo()},p.data("start")))}}else try{a.attr("id",v);var r,s=setInterval(function(){"undefined"!=typeof YT&&YT&&YT!=e&&typeof YT.Player!=e&&"undefined"!=typeof YT.Player&&(r=new YT.Player(v,{events:{onStateChange:M,onReady:function(a){var i=t(a.target.getIframe()),n=i.closest(".tp-caption"),o=n.data("videorate");n.data("videostart");o!=e&&a.target.setPlaybackRate(parseFloat(o)),(!N()&&1==n.data("autoplay")||E)&&n.data("timerplay",setTimeout(function(){a.target.playVideo()},n.data("start"))),n.find(".tp-thumb-image").click(function(){punchgs.TweenLite.to(t(this),.3,{autoAlpha:0,force3D:"auto",ease:punchgs.Power3.easeInOut}),N()||r.playVideo()})}}}),a.addClass("HasListener"),p.data("player",r),clearInterval(s))},100)}catch(d){}else if(a.attr("src").toLowerCase().indexOf("vimeo")>=0)if(a.hasClass("HasListener")){if(!(n||N()||1!=p.data("autoplay")&&"on"!=p.data("forcerewind"))){var a=p.find("iframe"),l=a.attr("id"),h=$f(l);"on"==p.data("forcerewind")&&h.api("seekTo",0),p.data("timerplay",setTimeout(function(){1==p.data("autoplay")&&h.api("play")},p.data("start")))}}else{a.addClass("HasListener"),a.attr("id",v);for(var c,u=a.attr("src"),f={},g=u,m=/([^&=]+)=([^&]*)/g;c=m.exec(g);)f[decodeURIComponent(c[1])]=decodeURIComponent(c[2]);u=f.player_id!=e?u.replace(f.player_id,v):u+"&player_id="+v;try{u=u.replace("api=0","api=1")}catch(d){}u+="&api=1",a.attr("src",u);var r=p.find("iframe")[0],w=setInterval(function(){"undefined"!=typeof $f&&typeof $f(v).api!=e&&"undefined"!=typeof $f(v).api&&($f(r).addEvent("ready",function(){P(v,E)}),clearInterval(w))},100)}}),(N()&&1==p.data("disablevideoonmobile")||d(8))&&p.find("video").remove(),p.find("video").length>0&&p.find("video").each(function(a){var n=this,o=t(this);o.parent().hasClass("html5vid")||o.wrap('<div class="html5vid" style="position:relative;top:0px;left:0px;width:auto;height:auto"></div>');var r=o.parent();S(n,"loadedmetadata",function(t){t.data("metaloaded",1)}(r)),clearInterval(r.data("interval")),r.data("interval",setInterval(function(){if(1==r.data("metaloaded")||NaN!=n.duration){if(clearInterval(r.data("interval")),!r.hasClass("HasListener")){r.addClass("HasListener"),"none"!=p.data("dottedoverlay")&&p.data("dottedoverlay")!=e&&1!=p.find(".tp-dottedoverlay").length&&r.append('<div class="tp-dottedoverlay '+p.data("dottedoverlay")+'"></div>'),o.attr("control")==e&&(0==r.find(".tp-video-play-button").length&&r.append('<div class="tp-video-play-button"><i class="revicon-right-dir"></i><div class="tp-revstop"></div></div>'),r.parent().find("video, .tp-poster, .tp-thumb-image, .tp-video-play-button").click(function(){r.hasClass("videoisplaying")?n.pause():(n.play(),punchgs.TweenLite.to(r.parent().find(".tp-poster, .tp-thumb-image"),.2,{autoAlpha:0}))})),(1==p.data("forcecover")||p.hasClass("fullscreenvideo"))&&(1==p.data("forcecover")&&(D(r,i.container),r.addClass("fullcoveredvideo"),p.addClass("fullcoveredvideo")),r.css({width:"100%",height:"100%"}));var t=p.find(".tp-vid-play-pause")[0],a=p.find(".tp-vid-mute")[0],s=p.find(".tp-vid-full-screen")[0],d=p.find(".tp-seek-bar")[0],l=p.find(".tp-volume-bar")[0];t!=e&&(S(t,"click",function(){1==n.paused?n.play():n.pause()}),S(a,"click",function(){0==n.muted?(n.muted=!0,a.innerHTML="Unmute"):(n.muted=!1,a.innerHTML="Mute")}),S(s,"click",function(){n.requestFullscreen?n.requestFullscreen():n.mozRequestFullScreen?n.mozRequestFullScreen():n.webkitRequestFullscreen&&n.webkitRequestFullscreen()}),S(d,"change",function(){var t=n.duration*(d.value/100);n.currentTime=t}),S(n,"timeupdate",function(){var t=100/n.duration*n.currentTime;d.value=t}),S(d,"mousedown",function(){n.pause()}),S(d,"mouseup",function(){n.play()}),S(l,"change",function(){n.volume=l.value})),S(n,"play",function(){"mute"==p.data("volume")&&(n.muted=!0),r.addClass("videoisplaying"),"loopandnoslidestop"==p.data("videoloop")?(i.videoplaying=!1,i.container.trigger("starttimer"),i.container.trigger("revolution.slide.onvideostop")):(i.videoplaying=!0,i.container.trigger("stoptimer"),i.container.trigger("revolution.slide.onvideoplay"));var t=p.find(".tp-vid-play-pause")[0],a=p.find(".tp-vid-mute")[0];t!=e&&(t.innerHTML="Pause"),a!=e&&n.muted&&(a.innerHTML="Unmute")}),S(n,"pause",function(){r.removeClass("videoisplaying"),i.videoplaying=!1,i.container.trigger("starttimer"),i.container.trigger("revolution.slide.onvideostop");var t=p.find(".tp-vid-play-pause")[0];t!=e&&(t.innerHTML="Play")}),S(n,"ended",function(){r.removeClass("videoisplaying"),i.videoplaying=!1,i.container.trigger("starttimer"),i.container.trigger("revolution.slide.onvideostop"),1==i.nextslideatend&&i.container.revnext()})}var h=!1;(1==p.data("autoplayonlyfirsttime")||"true"==p.data("autoplayonlyfirsttime"))&&(h=!0);var c=16/9;if("4:3"==p.data("aspectratio")&&(c=4/3),r.data("mediaAspect",c),1==r.closest(".tp-caption").data("forcecover")&&(D(r,i.container),r.addClass("fullcoveredvideo")),o.css({display:"block"}),i.nextslideatend=p.data("nextslideatend"),"on"!=p.data("forcerewind")||r.hasClass("videoisplaying")||n.currentTime>0&&(n.currentTime=0),(1==p.data("autoplay")||1==h)&&("loopandnoslidestop"==p.data("videoloop")?(i.videoplaying=!1,i.container.trigger("starttimer"),i.container.trigger("revolution.slide.onvideostop")):(i.videoplaying=!0,i.container.trigger("stoptimer"),i.container.trigger("revolution.slide.onvideoplay")),"on"!=p.data("forcerewind")||r.hasClass("videoisplaying")||n.currentTime>0&&(n.currentTime=0),"mute"==p.data("volume")&&(n.muted=!0),r.data("timerplay",setTimeout(function(){"on"!=p.data("forcerewind")||r.hasClass("videoisplaying")||n.currentTime>0&&(n.currentTime=0),"mute"==p.data("volume")&&(n.muted=!0),n.play(),(1==p.data("autoplayonlyfirsttime")||"true"==p.data("autoplayonlyfirsttime"))&&(p.data("autoplay",!1),p.data("autoplayonlyfirsttime",!1))},10+p.data("start")))),r.data("ww")==e&&r.data("ww",o.attr("width")),r.data("hh")==e&&r.data("hh",o.attr("height")),!p.hasClass("fullscreenvideo")&&1==p.data("forcecover"))try{r.width(r.data("ww")*i.bw),r.height(r.data("hh")*i.bh)}catch(u){}clearInterval(r.data("interval"))}}),100)}),1==p.data("autoplay")&&(setTimeout(function(){"loopandnoslidestop"!=p.data("videoloop")&&(i.videoplaying=!0,i.container.trigger("stoptimer"))},200),"loopandnoslidestop"!=p.data("videoloop")&&(i.videoplaying=!0,i.container.trigger("stoptimer")))}var Z=0,U=0;if(p.find("img").length>0){var G=p.find("img");0==G.width()&&G.css({width:"auto"}),0==G.height()&&G.css({height:"auto"}),G.data("ww")==e&&G.width()>0&&G.data("ww",G.width()),G.data("hh")==e&&G.height()>0&&G.data("hh",G.height());var $=G.data("ww"),J=G.data("hh");$==e&&($=0),J==e&&(J=0),G.width($*i.bw),G.height(J*i.bh),Z=G.width(),U=G.height()}else if(p.find("iframe").length>0||p.find("video").length>0){var Q=!1,G=p.find("iframe");0==G.length&&(G=p.find("video"),Q=!0),G.css({display:"block"}),p.data("ww")==e&&p.data("ww",G.width()),p.data("hh")==e&&p.data("hh",G.height());var $=p.data("ww"),J=p.data("hh"),K=p;K.data("fsize")==e&&K.data("fsize",parseInt(K.css("font-size"),0)||0),K.data("pt")==e&&K.data("pt",parseInt(K.css("paddingTop"),0)||0),K.data("pb")==e&&K.data("pb",parseInt(K.css("paddingBottom"),0)||0),K.data("pl")==e&&K.data("pl",parseInt(K.css("paddingLeft"),0)||0),K.data("pr")==e&&K.data("pr",parseInt(K.css("paddingRight"),0)||0),K.data("mt")==e&&K.data("mt",parseInt(K.css("marginTop"),0)||0),K.data("mb")==e&&K.data("mb",parseInt(K.css("marginBottom"),0)||0),K.data("ml")==e&&K.data("ml",parseInt(K.css("marginLeft"),0)||0),K.data("mr")==e&&K.data("mr",parseInt(K.css("marginRight"),0)||0),K.data("bt")==e&&K.data("bt",parseInt(K.css("borderTop"),0)||0),K.data("bb")==e&&K.data("bb",parseInt(K.css("borderBottom"),0)||0),K.data("bl")==e&&K.data("bl",parseInt(K.css("borderLeft"),0)||0),K.data("br")==e&&K.data("br",parseInt(K.css("borderRight"),0)||0),K.data("lh")==e&&K.data("lh",parseInt(K.css("lineHeight"),0)||0),"auto"==K.data("lh")&&K.data("lh",K.data("fsize")+4);var tt=i.width,et=i.height;if(tt>i.startwidth&&(tt=i.startwidth),et>i.startheight&&(et=i.startheight),p.hasClass("fullscreenvideo")){h=0,c=0,p.data("x",0),p.data("y",0);var at=i.height;"on"==i.autoHeight&&(at=i.container.height()),p.css({width:i.width,height:at})}else p.css({"font-size":K.data("fsize")*i.bw+"px","padding-top":K.data("pt")*i.bh+"px","padding-bottom":K.data("pb")*i.bh+"px","padding-left":K.data("pl")*i.bw+"px","padding-right":K.data("pr")*i.bw+"px","margin-top":K.data("mt")*i.bh+"px","margin-bottom":K.data("mb")*i.bh+"px","margin-left":K.data("ml")*i.bw+"px","margin-right":K.data("mr")*i.bw+"px","border-top":K.data("bt")*i.bh+"px","border-bottom":K.data("bb")*i.bh+"px","border-left":K.data("bl")*i.bw+"px","border-right":K.data("br")*i.bw+"px","line-height":K.data("lh")*i.bh+"px",height:J*i.bh+"px"});0==Q?(G.width($*i.bw),G.height(J*i.bh)):1==p.data("forcecover")||p.hasClass("fullscreenvideo")||(G.width($*i.bw),G.height(J*i.bh)),Z=G.width(),U=G.height()}else{p.find(".tp-resizeme, .tp-resizeme *").each(function(){F(t(this),i)}),p.hasClass("tp-resizeme")&&p.find("*").each(function(){F(t(this),i)}),F(p,i),U=p.outerHeight(!0),Z=p.outerWidth(!0);var it=p.outerHeight(),nt=p.css("backgroundColor");p.find(".frontcorner").css({borderWidth:it+"px",left:0-it+"px",borderRight:"0px solid transparent",borderTopColor:nt}),p.find(".frontcornertop").css({borderWidth:it+"px",left:0-it+"px",borderRight:"0px solid transparent",borderBottomColor:nt}),p.find(".backcorner").css({borderWidth:it+"px",right:0-it+"px",borderLeft:"0px solid transparent",borderBottomColor:nt}),p.find(".backcornertop").css({borderWidth:it+"px",right:0-it+"px",borderLeft:"0px solid transparent",borderTopColor:nt})}"on"==i.fullScreenAlignForce&&(h=0,c=0),p.data("voffset")==e&&p.data("voffset",0),p.data("hoffset")==e&&p.data("hoffset",0);var ot=p.data("voffset")*g,rt=p.data("hoffset")*g,st=i.startwidth*g,dt=i.startheight*g;"on"==i.fullScreenAlignForce&&(st=i.container.width(),dt=i.container.height()),("center"==p.data("x")||"center"==p.data("xcenter"))&&(p.data("xcenter","center"),p.data("x",st/2-p.outerWidth(!0)/2+rt)),("left"==p.data("x")||"left"==p.data("xleft"))&&(p.data("xleft","left"),p.data("x",0/g+rt)),("right"==p.data("x")||"right"==p.data("xright"))&&(p.data("xright","right"),p.data("x",(st-p.outerWidth(!0)+rt)/g)),("center"==p.data("y")||"center"==p.data("ycenter"))&&(p.data("ycenter","center"),p.data("y",dt/2-p.outerHeight(!0)/2+ot)),("top"==p.data("y")||"top"==p.data("ytop"))&&(p.data("ytop","top"),p.data("y",0/i.bh+ot)),("bottom"==p.data("y")||"bottom"==p.data("ybottom"))&&(p.data("ybottom","bottom"),p.data("y",(dt-p.outerHeight(!0)+ot)/g)),p.data("start")==e&&p.data("start",1e3);var lt=p.data("easing");lt==e&&(lt="punchgs.Power1.easeOut");var ht=p.data("start")/1e3,ct=p.data("speed")/1e3;if("center"==p.data("x")||"center"==p.data("xcenter"))var pt=p.data("x")+h;else var pt=g*p.data("x")+h;if("center"==p.data("y")||"center"==p.data("ycenter"))var ut=p.data("y")+c;else var ut=i.bh*p.data("y")+c;if(punchgs.TweenLite.set(p,{top:ut,left:pt,overwrite:"auto"}),0==l&&(o=!0),p.data("timeline")==e||o||(2!=l&&p.data("timeline").gotoAndPlay(0),o=!0),!o){p.data("timeline")!=e;var ft=new punchgs.TimelineLite({smoothChildTiming:!0,onStart:s});ft.pause(),"on"==i.fullScreenAlignForce;var gt=p;p.data("mySplitText")!=e&&p.data("mySplitText").revert(),("chars"==p.data("splitin")||"words"==p.data("splitin")||"lines"==p.data("splitin")||"chars"==p.data("splitout")||"words"==p.data("splitout")||"lines"==p.data("splitout"))&&(p.find("a").length>0?p.data("mySplitText",new punchgs.SplitText(p.find("a"),{type:"lines,words,chars",charsClass:"tp-splitted",wordsClass:"tp-splitted",linesClass:"tp-splitted"})):p.find(".tp-layer-inner-rotation").length>0?p.data("mySplitText",new punchgs.SplitText(p.find(".tp-layer-inner-rotation"),{type:"lines,words,chars",charsClass:"tp-splitted",wordsClass:"tp-splitted",linesClass:"tp-splitted"})):p.data("mySplitText",new punchgs.SplitText(p,{type:"lines,words,chars",charsClass:"tp-splitted",wordsClass:"tp-splitted",linesClass:"tp-splitted"})),p.addClass("splitted")),"chars"==p.data("splitin")&&(gt=p.data("mySplitText").chars),"words"==p.data("splitin")&&(gt=p.data("mySplitText").words),"lines"==p.data("splitin")&&(gt=p.data("mySplitText").lines);var mt=H(),vt=H();p.data("repeat")!=e&&(repeatV=p.data("repeat")),p.data("yoyo")!=e&&(yoyoV=p.data("yoyo")),p.data("repeatdelay")!=e&&(repeatdelayV=p.data("repeatdelay"));var wt=p.attr("class");wt.match("customin")?mt=W(mt,p.data("customin")):wt.match("randomrotate")?(mt.scale=3*Math.random()+1,mt.rotation=Math.round(200*Math.random()-100),mt.x=Math.round(200*Math.random()-100),mt.y=Math.round(200*Math.random()-100)):wt.match("lfr")||wt.match("skewfromright")?mt.x=15+i.width:wt.match("lfl")||wt.match("skewfromleft")?mt.x=-15-Z:wt.match("sfl")||wt.match("skewfromleftshort")?mt.x=-50:wt.match("sfr")||wt.match("skewfromrightshort")?mt.x=50:wt.match("lft")?mt.y=-25-U:wt.match("lfb")?mt.y=25+i.height:wt.match("sft")?mt.y=-50:wt.match("sfb")&&(mt.y=50),wt.match("skewfromright")||p.hasClass("skewfromrightshort")?mt.skewX=-85:(wt.match("skewfromleft")||p.hasClass("skewfromleftshort"))&&(mt.skewX=85),(wt.match("fade")||wt.match("sft")||wt.match("sfl")||wt.match("sfb")||wt.match("skewfromleftshort")||wt.match("sfr")||wt.match("skewfromrightshort"))&&(mt.opacity=0),"safari"==X().toLowerCase();var bt=p.data("elementdelay")==e?0:p.data("elementdelay");vt.ease=mt.ease=p.data("easing")==e?punchgs.Power1.easeInOut:p.data("easing"),mt.data=new Object,mt.data.oldx=mt.x,mt.data.oldy=mt.y,vt.data=new Object,vt.data.oldx=vt.x,vt.data.oldy=vt.y,mt.x=mt.x*g,mt.y=mt.y*g;var yt=new punchgs.TimelineLite;if(2!=l)if(wt.match("customin"))gt!=p&&ft.add(punchgs.TweenLite.set(p,{force3D:"auto",opacity:1,scaleX:1,scaleY:1,rotationX:0,rotationY:0,rotationZ:0,skewX:0,skewY:0,z:0,x:0,y:0,visibility:"visible",delay:0,overwrite:"all"})),mt.visibility="hidden",vt.visibility="visible",vt.overwrite="all",vt.opacity=1,vt.onComplete=r(),vt.delay=ht,vt.force3D="auto",ft.add(yt.staggerFromTo(gt,ct,mt,vt,bt),"frame0");else if(mt.visibility="visible",mt.transformPerspective=600,gt!=p&&ft.add(punchgs.TweenLite.set(p,{force3D:"auto",opacity:1,scaleX:1,scaleY:1,rotationX:0,rotationY:0,rotationZ:0,skewX:0,skewY:0,z:0,x:0,y:0,visibility:"visible",delay:0,overwrite:"all"})),vt.visibility="visible",vt.delay=ht,vt.onComplete=r(),vt.opacity=1,vt.force3D="auto",wt.match("randomrotate")&&gt!=p)for(var a=0;a<gt.length;a++){var xt=new Object,Tt=new Object;t.extend(xt,mt),t.extend(Tt,vt),mt.scale=3*Math.random()+1,mt.rotation=Math.round(200*Math.random()-100),mt.x=Math.round(200*Math.random()-100),mt.y=Math.round(200*Math.random()-100),0!=a&&(Tt.delay=ht+a*bt),ft.append(punchgs.TweenLite.fromTo(gt[a],ct,xt,Tt),"frame0")}else ft.add(yt.staggerFromTo(gt,ct,mt,vt,bt),"frame0");p.data("timeline",ft);new Array;if(p.data("frames")!=e){var kt=p.data("frames");kt=kt.replace(/\s+/g,""),kt=kt.replace("{","");var Lt=kt.split("}");t.each(Lt,function(t,e){if(e.length>0){var a=_(e);q(p,i,a,"frame"+(t+10),g)}})}ft=p.data("timeline"),p.data("end")==e||-1!=l&&2!=l?-1==l||2==l?j(p,i,999999,mt,"frame99",g):j(p,i,999999,mt,"frame99",g):j(p,i,p.data("end")/1e3,mt,"frame99",g),ft=p.data("timeline"),p.data("timeline",ft),R(p,g),ft.resume()}}if(o&&(B(p),R(p,g),p.data("timeline")!=e)){var Ct=p.data("timeline").getTweensOf();t.each(Ct,function(t,a){if(a.vars.data!=e){var i=a.vars.data.oldx*g,n=a.vars.data.oldy*g;if(1!=a.progress()&&0!=a.progress())try{a.vars.x=i,a.vary.y=n}catch(o){}else 1==a.progress()&&punchgs.TweenLite.set(a.target,{x:i,y:n})}})}});var f=t("body").find("#"+i.container.attr("id")).find(".tp-bannertimer");f.data("opt",i),o!=e&&setTimeout(function(){o.resume()},30)},X=function(){var t,e=navigator.appName,a=navigator.userAgent,i=a.match(/(opera|chrome|safari|firefox|msie)\/?\s*(\.?\d+(\.\d+)*)/i);return i&&null!=(t=a.match(/version\/([\.\d]+)/i))&&(i[2]=t[1]),i=i?[i[1],i[2]]:[e,navigator.appVersion,"-?"],i[0]},F=function(t,a){t.data("fsize")==e&&t.data("fsize",parseInt(t.css("font-size"),0)||0),t.data("pt")==e&&t.data("pt",parseInt(t.css("paddingTop"),0)||0),t.data("pb")==e&&t.data("pb",parseInt(t.css("paddingBottom"),0)||0),t.data("pl")==e&&t.data("pl",parseInt(t.css("paddingLeft"),0)||0),t.data("pr")==e&&t.data("pr",parseInt(t.css("paddingRight"),0)||0),t.data("mt")==e&&t.data("mt",parseInt(t.css("marginTop"),0)||0),t.data("mb")==e&&t.data("mb",parseInt(t.css("marginBottom"),0)||0),t.data("ml")==e&&t.data("ml",parseInt(t.css("marginLeft"),0)||0),t.data("mr")==e&&t.data("mr",parseInt(t.css("marginRight"),0)||0),t.data("bt")==e&&t.data("bt",parseInt(t.css("borderTopWidth"),0)||0),t.data("bb")==e&&t.data("bb",parseInt(t.css("borderBottomWidth"),0)||0),t.data("bl")==e&&t.data("bl",parseInt(t.css("borderLeftWidth"),0)||0),t.data("br")==e&&t.data("br",parseInt(t.css("borderRightWidth"),0)||0),t.data("ls")==e&&t.data("ls",parseInt(t.css("letterSpacing"),0)||0),t.data("lh")==e&&t.data("lh",parseInt(t.css("lineHeight"),0)||"auto"),t.data("minwidth")==e&&t.data("minwidth",parseInt(t.css("minWidth"),0)||0),t.data("minheight")==e&&t.data("minheight",parseInt(t.css("minHeight"),0)||0),t.data("maxwidth")==e&&t.data("maxwidth",parseInt(t.css("maxWidth"),0)||"none"),t.data("maxheight")==e&&t.data("maxheight",parseInt(t.css("maxHeight"),0)||"none"),t.data("wii")==e&&t.data("wii",parseInt(t.css("width"),0)||0),t.data("hii")==e&&t.data("hii",parseInt(t.css("height"),0)||0),t.data("wan")==e&&t.data("wan",t.css("-webkit-transition")),t.data("moan")==e&&t.data("moan",t.css("-moz-animation-transition")),t.data("man")==e&&t.data("man",t.css("-ms-animation-transition")),t.data("ani")==e&&t.data("ani",t.css("transition")),"auto"==t.data("lh")&&t.data("lh",t.data("fsize")+4),t.hasClass("tp-splitted")||(t.css("-webkit-transition","none"),t.css("-moz-transition","none"),t.css("-ms-transition","none"),t.css("transition","none"),punchgs.TweenLite.set(t,{fontSize:Math.round(t.data("fsize")*a.bw)+"px",letterSpacing:Math.floor(t.data("ls")*a.bw)+"px",paddingTop:Math.round(t.data("pt")*a.bh)+"px",paddingBottom:Math.round(t.data("pb")*a.bh)+"px",paddingLeft:Math.round(t.data("pl")*a.bw)+"px",paddingRight:Math.round(t.data("pr")*a.bw)+"px",marginTop:t.data("mt")*a.bh+"px",marginBottom:t.data("mb")*a.bh+"px",marginLeft:t.data("ml")*a.bw+"px",marginRight:t.data("mr")*a.bw+"px",borderTopWidth:Math.round(t.data("bt")*a.bh)+"px",borderBottomWidth:Math.round(t.data("bb")*a.bh)+"px",borderLeftWidth:Math.round(t.data("bl")*a.bw)+"px",borderRightWidth:Math.round(t.data("br")*a.bw)+"px",lineHeight:Math.round(t.data("lh")*a.bh)+"px",minWidth:t.data("minwidth")*a.bw+"px",minHeight:t.data("minheight")*a.bh+"px",overwrite:"auto"}),setTimeout(function(){t.css("-webkit-transition",t.data("wan")),t.css("-moz-transition",t.data("moan")),t.css("-ms-transition",t.data("man")),t.css("transition",t.data("ani"))},30),"none"!=t.data("maxheight")&&t.css({maxHeight:t.data("maxheight")*a.bh+"px"}),"none"!=t.data("maxwidth")&&t.css({maxWidth:t.data("maxwidth")*a.bw+"px"}))},R=function(a,i){a.find(".rs-pendulum").each(function(){var a=t(this);if(a.data("timeline")==e){a.data("timeline",new punchgs.TimelineLite);var n=a.data("startdeg")==e?-20:a.data("startdeg"),o=a.data("enddeg")==e?20:a.data("enddeg"),r=a.data("speed")==e?2:a.data("speed"),s=a.data("origin")==e?"50% 50%":a.data("origin"),d=a.data("easing")==e?punchgs.Power2.easeInOut:a.data("ease");n*=i,o*=i,a.data("timeline").append(new punchgs.TweenLite.fromTo(a,r,{force3D:"auto",rotation:n,transformOrigin:s},{rotation:o,ease:d})),a.data("timeline").append(new punchgs.TweenLite.fromTo(a,r,{force3D:"auto",rotation:o,transformOrigin:s},{rotation:n,ease:d,onComplete:function(){a.data("timeline").restart()}}))}}),a.find(".rs-rotate").each(function(){var a=t(this);if(a.data("timeline")==e){a.data("timeline",new punchgs.TimelineLite);var n=a.data("startdeg")==e?0:a.data("startdeg"),o=a.data("enddeg")==e?360:a.data("enddeg");speed=a.data("speed")==e?2:a.data("speed"),origin=a.data("origin")==e?"50% 50%":a.data("origin"),easing=a.data("easing")==e?punchgs.Power2.easeInOut:a.data("easing"),n*=i,o*=i,a.data("timeline").append(new punchgs.TweenLite.fromTo(a,speed,{force3D:"auto",rotation:n,transformOrigin:origin},{rotation:o,ease:easing,onComplete:function(){a.data("timeline").restart()}}))}}),a.find(".rs-slideloop").each(function(){var a=t(this);if(a.data("timeline")==e){a.data("timeline",new punchgs.TimelineLite);var n=a.data("xs")==e?0:a.data("xs"),o=a.data("ys")==e?0:a.data("ys"),r=a.data("xe")==e?0:a.data("xe"),s=a.data("ye")==e?0:a.data("ye"),d=a.data("speed")==e?2:a.data("speed"),l=a.data("easing")==e?punchgs.Power2.easeInOut:a.data("easing");n*=i,o*=i,r*=i,s*=i,a.data("timeline").append(new punchgs.TweenLite.fromTo(a,d,{force3D:"auto",x:n,y:o},{x:r,y:s,ease:l})),a.data("timeline").append(new punchgs.TweenLite.fromTo(a,d,{force3D:"auto",x:r,y:s},{x:n,y:o,onComplete:function(){a.data("timeline").restart()}}))}}),a.find(".rs-pulse").each(function(){var a=t(this);if(a.data("timeline")==e){a.data("timeline",new punchgs.TimelineLite);var i=a.data("zoomstart")==e?0:a.data("zoomstart"),n=a.data("zoomend")==e?0:a.data("zoomend"),o=a.data("speed")==e?2:a.data("speed"),r=a.data("easing")==e?punchgs.Power2.easeInOut:a.data("easing");a.data("timeline").append(new punchgs.TweenLite.fromTo(a,o,{force3D:"auto",scale:i},{scale:n,ease:r})),a.data("timeline").append(new punchgs.TweenLite.fromTo(a,o,{force3D:"auto",scale:n},{scale:i,onComplete:function(){a.data("timeline").restart()}}))}}),a.find(".rs-wave").each(function(){var a=t(this);if(a.data("timeline")==e){a.data("timeline",new punchgs.TimelineLite);var n=a.data("angle")==e?10:a.data("angle"),o=a.data("radius")==e?10:a.data("radius"),r=a.data("speed")==e?-20:a.data("speed");a.data("origin")==e?-20:a.data("origin");n*=i,o*=i;var s={a:0,ang:n,element:a,unit:o};a.data("timeline").append(new punchgs.TweenLite.fromTo(s,r,{a:360},{a:0,force3D:"auto",ease:punchgs.Linear.easeNone,onUpdate:function(){var t=s.a*(Math.PI/180);punchgs.TweenLite.to(s.element,.1,{force3D:"auto",x:Math.cos(t)*s.unit,y:s.unit*(1-Math.sin(t))})},onComplete:function(){a.data("timeline").restart()}}))}})},B=function(a){a.find(".rs-pendulum, .rs-slideloop, .rs-pulse, .rs-wave").each(function(){var a=t(this);a.data("timeline")!=e&&(a.data("timeline").pause(),a.data("timeline",null))})},V=function(a,i){var n=0,o=a.find(".tp-caption"),r=i.container.find(".tp-static-layers").find(".tp-caption");return t.each(r,function(t,e){o.push(e)}),o.each(function(a){var o=-1,r=t(this);if(r.hasClass("tp-static-layer")&&((-1==r.data("startslide")||"-1"==r.data("startslide"))&&r.data("startslide",0),(-1==r.data("endslide")||"-1"==r.data("endslide"))&&r.data("endslide",i.slideamount),r.hasClass("tp-is-shown")?r.data("startslide")>i.next||r.data("endslide")<i.next?(o=2,r.removeClass("tp-is-shown")):o=0:o=2),0!=o){if(B(r),r.find("iframe").length>0){punchgs.TweenLite.to(r.find("iframe"),.2,{autoAlpha:0}),N()&&r.find("iframe").remove();try{var s=r.find("iframe"),d=s.attr("id"),l=$f(d);l.api("pause"),clearTimeout(r.data("timerplay"))}catch(h){}try{var c=r.data("player");c.stopVideo(),clearTimeout(r.data("timerplay"))}catch(h){}}if(r.find("video").length>0)try{r.find("video").each(function(e){var a=t(this).parent();a.attr("id");clearTimeout(a.data("timerplay"));var i=this;i.pause()})}catch(h){}try{var p=r.data("timeline"),u=p.getLabelTime("frame99"),f=p.time();if(u>f){var g=p.getTweensOf(r);if(t.each(g,function(t,e){0!=t&&e.pause()}),0!=r.css("opacity")){var m=r.data("endspeed")==e?r.data("speed"):r.data("endspeed");m>n&&(n=m),p.play("frame99")}else p.progress(1,!1)}}catch(h){}}}),n},q=function(t,a,i,n,o){var r=t.data("timeline"),s=new punchgs.TimelineLite,d=t;"chars"==i.typ?d=t.data("mySplitText").chars:"words"==i.typ?d=t.data("mySplitText").words:"lines"==i.typ&&(d=t.data("mySplitText").lines),i.animation.ease=i.ease,i.animation.rotationZ!=e&&(i.animation.rotation=i.animation.rotationZ),i.animation.data=new Object,i.animation.data.oldx=i.animation.x,i.animation.data.oldy=i.animation.y,i.animation.x=i.animation.x*o,i.animation.y=i.animation.y*o,r.add(s.staggerTo(d,i.speed,i.animation,i.elementdelay),i.start),r.addLabel(n,i.start),t.data("timeline",r)},j=function(t,a,i,n,o,r){var s=t.data("timeline"),d=new punchgs.TimelineLite,l=H(),h=t.data("endspeed")==e?t.data("speed"):t.data("endspeed"),c=t.attr("class");if(l.ease=t.data("endeasing")==e?punchgs.Power1.easeInOut:t.data("endeasing"),h/=1e3,c.match("ltr")||c.match("ltl")||c.match("str")||c.match("stl")||c.match("ltt")||c.match("ltb")||c.match("stt")||c.match("stb")||c.match("skewtoright")||c.match("skewtorightshort")||c.match("skewtoleft")||c.match("skewtoleftshort")||c.match("fadeout")||c.match("randomrotateout")){c.match("skewtoright")||c.match("skewtorightshort")?l.skewX=35:(c.match("skewtoleft")||c.match("skewtoleftshort"))&&(l.skewX=-35),c.match("ltr")||c.match("skewtoright")?l.x=a.width+60:c.match("ltl")||c.match("skewtoleft")?l.x=0-(a.width+60):c.match("ltt")?l.y=0-(a.height+60):c.match("ltb")?l.y=a.height+60:c.match("str")||c.match("skewtorightshort")?(l.x=50,l.opacity=0):c.match("stl")||c.match("skewtoleftshort")?(l.x=-50,l.opacity=0):c.match("stt")?(l.y=-50,l.opacity=0):c.match("stb")?(l.y=50,l.opacity=0):c.match("randomrotateout")?(l.x=Math.random()*a.width,l.y=Math.random()*a.height,l.scale=2*Math.random()+.3,l.rotation=360*Math.random()-180,l.opacity=0):c.match("fadeout")&&(l.opacity=0),c.match("skewtorightshort")?l.x=270:c.match("skewtoleftshort")&&(l.x=-270),l.data=new Object,l.data.oldx=l.x,l.data.oldy=l.y,l.x=l.x*r,l.y=l.y*r,l.overwrite="auto";var p=t,p=t;"chars"==t.data("splitout")?p=t.data("mySplitText").chars:"words"==t.data("splitout")?p=t.data("mySplitText").words:"lines"==t.data("splitout")&&(p=t.data("mySplitText").lines);var u=t.data("endelementdelay")==e?0:t.data("endelementdelay");s.add(d.staggerTo(p,h,l,u),i)}else if(t.hasClass("customout")){l=W(l,t.data("customout"));var p=t;"chars"==t.data("splitout")?p=t.data("mySplitText").chars:"words"==t.data("splitout")?p=t.data("mySplitText").words:"lines"==t.data("splitout")&&(p=t.data("mySplitText").lines);var u=t.data("endelementdelay")==e?0:t.data("endelementdelay");l.onStart=function(){
punchgs.TweenLite.set(t,{transformPerspective:l.transformPerspective,transformOrigin:l.transformOrigin,overwrite:"auto"})},l.data=new Object,l.data.oldx=l.x,l.data.oldy=l.y,l.x=l.x*r,l.y=l.y*r,s.add(d.staggerTo(p,h,l,u),i)}else n.delay=0,s.add(punchgs.TweenLite.to(t,h,n),i);s.addLabel(o,i),t.data("timeline",s)},E=function(e,a){e.children().each(function(){try{t(this).die("click")}catch(e){}try{t(this).die("mouseenter")}catch(e){}try{t(this).die("mouseleave")}catch(e){}try{t(this).unbind("hover")}catch(e){}});try{e.die("click","mouseenter","mouseleave")}catch(i){}clearInterval(a.cdint),e=null},Z=function(a,i){if(i.cd=0,i.loop=0,i.stopAfterLoops!=e&&i.stopAfterLoops>-1?i.looptogo=i.stopAfterLoops:i.looptogo=9999999,i.stopAtSlide!=e&&i.stopAtSlide>-1?i.lastslidetoshow=i.stopAtSlide:i.lastslidetoshow=999,i.stopLoop="off",0==i.looptogo&&(i.stopLoop="on"),i.slideamount>1&&(0!=i.stopAfterLoops||1!=i.stopAtSlide)){var n=a.find(".tp-bannertimer");a.on("stoptimer",function(){var e=t(this).find(".tp-bannertimer");e.data("tween").pause(),"on"==i.hideTimerBar&&e.css({visibility:"hidden"})}),a.on("starttimer",function(){1!=i.conthover&&1!=i.videoplaying&&i.width>i.hideSliderAtLimit&&1!=i.bannertimeronpause&&1!=i.overnav&&("on"==i.stopLoop&&i.next==i.lastslidetoshow-1||1==i.noloopanymore?i.noloopanymore=1:(n.css({visibility:"visible"}),n.data("tween").resume())),"on"==i.hideTimerBar&&n.css({visibility:"hidden"})}),a.on("restarttimer",function(){var e=t(this).find(".tp-bannertimer");"on"==i.stopLoop&&i.next==i.lastslidetoshow-1||1==i.noloopanymore?i.noloopanymore=1:(e.css({visibility:"visible"}),e.data("tween").kill(),e.data("tween",punchgs.TweenLite.fromTo(e,i.delay/1e3,{width:"0%"},{force3D:"auto",width:"100%",ease:punchgs.Linear.easeNone,onComplete:o,delay:1}))),"on"==i.hideTimerBar&&e.css({visibility:"hidden"})}),a.on("nulltimer",function(){n.data("tween").pause(0),"on"==i.hideTimerBar&&n.css({visibility:"hidden"})});var o=function(){0==t("body").find(a).length&&(E(a,i),clearInterval(i.cdint)),a.trigger("revolution.slide.slideatend"),1==a.data("conthover-changed")&&(i.conthover=a.data("conthover"),a.data("conthover-changed",0)),i.act=i.next,i.next=i.next+1,i.next>a.find(">ul >li").length-1&&(i.next=0,i.looptogo=i.looptogo-1,i.looptogo<=0&&(i.stopLoop="on")),"on"==i.stopLoop&&i.next==i.lastslidetoshow-1?(a.find(".tp-bannertimer").css({visibility:"hidden"}),a.trigger("revolution.slide.onstop"),i.noloopanymore=1):n.data("tween").restart(),C(a,i)};n.data("tween",punchgs.TweenLite.fromTo(n,i.delay/1e3,{width:"0%"},{force3D:"auto",width:"100%",ease:punchgs.Linear.easeNone,onComplete:o,delay:1})),n.data("opt",i),a.hover(function(){if("on"==i.onHoverStop&&!N()){a.trigger("stoptimer"),a.trigger("revolution.slide.onpause");var n=a.find(">ul >li:eq("+i.next+") .slotholder");n.find(".defaultimg").each(function(){var a=t(this);a.data("kenburn")!=e&&a.data("kenburn").pause()})}},function(){if(1!=a.data("conthover")){a.trigger("revolution.slide.onresume"),a.trigger("starttimer");var n=a.find(">ul >li:eq("+i.next+") .slotholder");n.find(".defaultimg").each(function(){var a=t(this);a.data("kenburn")!=e&&a.data("kenburn").play()})}})}},N=function(){var t=["android","webos","iphone","ipad","blackberry","Android","webos",,"iPod","iPhone","iPad","Blackberry","BlackBerry"],e=!1;for(var a in t)navigator.userAgent.split(t[a]).length>1&&(e=!0);return e},U=function(t,e,a){var i=e.data("owidth"),n=e.data("oheight");if(i/n>a.width/a.height){var o=a.container.width()/i,r=n*o,s=r/a.container.height()*t;return t*=100/s,s=100,t=t,t+"% "+s+"% 1"}var o=a.container.width()/i,r=n*o,s=r/a.container.height()*t;return t+"% "+s+"%"},G=function(a,i,n,o){try{a.find(">ul:first-child >li:eq("+i.act+")")}catch(r){a.find(">ul:first-child >li:eq(1)")}i.lastslide=i.act;var s=a.find(">ul:first-child >li:eq("+i.next+")"),l=s.find(".slotholder"),h=l.data("bgposition"),c=l.data("bgpositionend"),p=l.data("zoomstart")/100,u=l.data("zoomend")/100,f=l.data("rotationstart"),g=l.data("rotationend"),m=l.data("bgfit"),v=l.data("bgfitend"),w=l.data("easeme"),b=l.data("duration")/1e3,y=100;m==e&&(m=100),v==e&&(v=100);var x=m,T=v;m=U(m,l,i),v=U(v,l,i),y=U(100,l,i),p==e&&(p=1),u==e&&(u=1),f==e&&(f=0),g==e&&(g=0),1>p&&(p=1),1>u&&(u=1);var k=new Object;k.w=parseInt(y.split(" ")[0],0),k.h=parseInt(y.split(" ")[1],0);var L=!1;"1"==y.split(" ")[2]&&(L=!0),l.find(".defaultimg").each(function(){var e=t(this);0==l.find(".kenburnimg").length?l.append('<div class="kenburnimg" style="position:absolute;z-index:1;width:100%;height:100%;top:0px;left:0px;"><img src="'+e.attr("src")+'" style="-webkit-touch-callout: none;-webkit-user-select: none;-khtml-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;position:absolute;width:'+k.w+"%;height:"+k.h+'%;"></div>'):l.find(".kenburnimg img").css({width:k.w+"%",height:k.h+"%"});var a=l.find(".kenburnimg img"),n=$(i,h,m,a,L),r=$(i,c,v,a,L);if(L&&(n.w=x/100,r.w=T/100),o){punchgs.TweenLite.set(a,{autoAlpha:0,transformPerspective:1200,transformOrigin:"0% 0%",top:0,left:0,scale:n.w,x:n.x,y:n.y});var s=n.w,p=s*a.width()-i.width,u=s*a.height()-i.height,f=Math.abs(n.x/p*100),y=Math.abs(n.y/u*100);0==u&&(y=0),0==p&&(f=0),e.data("bgposition",f+"% "+y+"%"),d(8)||e.data("currotate",J(a)),d(8)||e.data("curscale",k.w*s+"%  "+(k.h*s+"%")),l.find(".kenburnimg").remove()}else e.data("kenburn",punchgs.TweenLite.fromTo(a,b,{autoAlpha:1,force3D:punchgs.force3d,transformOrigin:"0% 0%",top:0,left:0,scale:n.w,x:n.x,y:n.y},{autoAlpha:1,rotationZ:g,ease:w,x:r.x,y:r.y,scale:r.w,onUpdate:function(){var t=a[0]._gsTransform.scaleX,n=t*a.width()-i.width,o=t*a.height()-i.height,r=Math.abs(a[0]._gsTransform.x/n*100),s=Math.abs(a[0]._gsTransform.y/o*100);0==o&&(s=0),0==n&&(r=0),e.data("bgposition",r+"% "+s+"%"),d(8)||e.data("currotate",J(a)),d(8)||e.data("curscale",k.w*t+"%  "+(k.h*t+"%"))}}))})},$=function(t,e,a,i,n){var o=new Object;switch(n?o.w=parseInt(a.split(" ")[1],0)/100:o.w=parseInt(a.split(" ")[0],0)/100,e){case"left top":case"top left":o.x=0,o.y=0;break;case"center top":case"top center":o.x=((0-i.width())*o.w+parseInt(t.width,0))/2,o.y=0;break;case"top right":case"right top":o.x=(0-i.width())*o.w+parseInt(t.width,0),o.y=0;break;case"center left":case"left center":o.x=0,o.y=((0-i.height())*o.w+parseInt(t.height,0))/2;break;case"center center":o.x=((0-i.width())*o.w+parseInt(t.width,0))/2,o.y=((0-i.height())*o.w+parseInt(t.height,0))/2;break;case"center right":case"right center":o.x=(0-i.width())*o.w+parseInt(t.width,0),o.y=((0-i.height())*o.w+parseInt(t.height,0))/2;break;case"bottom left":case"left bottom":o.x=0,o.y=(0-i.height())*o.w+parseInt(t.height,0);break;case"bottom center":case"center bottom":o.x=((0-i.width())*o.w+parseInt(t.width,0))/2,o.y=(0-i.height())*o.w+parseInt(t.height,0);break;case"bottom right":case"right bottom":o.x=(0-i.width())*o.w+parseInt(t.width,0),o.y=(0-i.height())*o.w+parseInt(t.height,0)}return o},J=function(t){var e=t.css("-webkit-transform")||t.css("-moz-transform")||t.css("-ms-transform")||t.css("-o-transform")||t.css("transform");if("none"!==e)var a=e.split("(")[1].split(")")[0].split(","),i=a[0],n=a[1],o=Math.round(Math.atan2(n,i)*(180/Math.PI));else var o=0;return 0>o?o+=360:o},Q=function(a,i){try{var n=a.find(">ul:first-child >li:eq("+i.act+")")}catch(o){var n=a.find(">ul:first-child >li:eq(1)")}i.lastslide=i.act;var r=a.find(">ul:first-child >li:eq("+i.next+")");n.find(".slotholder"),r.find(".slotholder");a.find(".defaultimg").each(function(){var a=t(this);punchgs.TweenLite.killTweensOf(a,!1),punchgs.TweenLite.set(a,{scale:1,rotationZ:0}),punchgs.TweenLite.killTweensOf(a.data("kenburn img"),!1),a.data("kenburn")!=e&&a.data("kenburn").pause(),a.data("currotate")!=e&&a.data("bgposition")!=e&&a.data("curscale")!=e&&punchgs.TweenLite.set(a,{rotation:a.data("currotate"),backgroundPosition:a.data("bgposition"),backgroundSize:a.data("curscale")}),a!=e&&a.data("kenburn img")!=e&&a.data("kenburn img").length>0&&punchgs.TweenLite.set(a.data("kenburn img"),{autoAlpha:0})})},K=function(a,i){return N()&&"on"==i.parallaxDisableOnMobile?!1:(a.find(".tp-revslider-mainul >li").each(function(){for(var e=t(this),a=1;10>=a;a++)e.find(".rs-parallaxlevel-"+a).each(function(){var e=t(this);e.wrapInner('<div style="position:relative;" class="tp-parallax-container" data-parallaxlevel="'+i.parallaxLevels[a-1]+'"></div>')})}),("mouse"==i.parallax||"scroll+mouse"==i.parallax||"mouse+scroll"==i.parallax)&&(a.mouseenter(function(t){var e=a.find(".current-sr-slide-visible"),i=a.offset().top,n=a.offset().left,o=t.pageX-n,r=t.pageY-i;e.data("enterx",o),e.data("entery",r)}),a.on("mousemove.hoverdir, mouseleave.hoverdir",function(n){var o=a.find(".current-sr-slide-visible");switch(n.type){case"mousemove":var r=a.offset().top,s=a.offset().left;o.data("enterx")==e&&o.data("enterx",n.pageX-s),o.data("entery")==e&&o.data("entery",n.pageY-r);var d=o.data("enterx"),l=o.data("entery"),h=d-(n.pageX-s),c=l-(n.pageY-r);o.find(".tp-parallax-container").each(function(){var e=t(this),a=parseInt(e.data("parallaxlevel"),0)/100,n=h*a,o=c*a;"scroll+mouse"==i.parallax||"mouse+scroll"==i.parallax?punchgs.TweenLite.to(e,.4,{force3D:"auto",x:n,ease:punchgs.Power3.easeOut,overwrite:"all"}):punchgs.TweenLite.to(e,.4,{force3D:"auto",x:n,y:o,ease:punchgs.Power3.easeOut,overwrite:"all"})});break;case"mouseleave":o.find(".tp-parallax-container").each(function(){var e=t(this);"scroll+mouse"==i.parallax||"mouse+scroll"==i.parallax?punchgs.TweenLite.to(e,1.5,{force3D:"auto",x:0,ease:punchgs.Power3.easeOut}):punchgs.TweenLite.to(e,1.5,{force3D:"auto",x:0,y:0,ease:punchgs.Power3.easeOut})})}}),N()&&(window.ondeviceorientation=function(e){var i=Math.round(e.beta||0),n=Math.round(e.gamma||0),o=a.find(".current-sr-slide-visible");if(t(window).width()>t(window).height()){var r=n;n=i,i=r}var s=360/a.width()*n,d=180/a.height()*i;o.find(".tp-parallax-container").each(function(){var e=t(this),a=parseInt(e.data("parallaxlevel"),0)/100,i=s*a,n=d*a;punchgs.TweenLite.to(e,.2,{force3D:"auto",x:i,y:n,ease:punchgs.Power3.easeOut})})})),void(("scroll"==i.parallax||"scroll+mouse"==i.parallax||"mouse+scroll"==i.parallax)&&t(window).on("scroll",function(t){tt(a,i)})))},tt=function(e,a){if(N()&&"on"==a.parallaxDisableOnMobile)return!1;var i=e.offset().top,n=t(window).scrollTop(),o=i+e.height()/2,r=i+e.height()/2-n,s=t(window).height()/2,d=s-r;s>o&&(d-=s-o);e.find(".current-sr-slide-visible");if(e.find(".tp-parallax-container").each(function(e){var a=t(this),i=parseInt(a.data("parallaxlevel"),0)/100,n=d*i;a.data("parallaxoffset",n),punchgs.TweenLite.to(a,.2,{force3D:"auto",y:n,ease:punchgs.Power3.easeOut})}),"on"!=a.parallaxBgFreeze){var l=a.parallaxLevels[0]/100,h=d*l;punchgs.TweenLite.to(e,.2,{force3D:"auto",y:h,ease:punchgs.Power3.easeOut})}},et=function(a,i){var n=a.parent();("thumb"==i.navigationType||"both"==i.navsecond)&&n.append('<div class="tp-bullets tp-thumbs '+i.navigationStyle+'"><div class="tp-mask"><div class="tp-thumbcontainer"></div></div></div>');var o=n.find(".tp-bullets.tp-thumbs .tp-mask .tp-thumbcontainer"),r=o.parent();r.width(i.thumbWidth*i.thumbAmount),r.height(i.thumbHeight),r.parent().width(i.thumbWidth*i.thumbAmount),r.parent().height(i.thumbHeight),a.find(">ul:first >li").each(function(t){var n=a.find(">ul:first >li:eq("+t+")"),r=n.find(".defaultimg").css("backgroundColor");if(n.data("thumb")!=e)var s=n.data("thumb");else var s=n.find("img:first").attr("src");o.append('<div class="bullet thumb" style="background-color:'+r+";position:relative;width:"+i.thumbWidth+"px;height:"+i.thumbHeight+"px;background-image:url("+s+') !important;background-size:cover;background-position:center center;"></div>');o.find(".bullet:first")});var s=10;o.find(".bullet").each(function(e){var n=t(this);e==i.slideamount-1&&n.addClass("last"),0==e&&n.addClass("first"),n.width(i.thumbWidth),n.height(i.thumbHeight),s<n.outerWidth(!0)&&(s=n.outerWidth(!0)),n.click(function(){0==i.transition&&n.index()!=i.act&&(i.next=n.index(),l(i,a))})});var d=s*a.find(">ul:first >li").length,h=o.parent().width();i.thumbWidth=s,d>h&&(t(document).mousemove(function(e){t("body").data("mousex",e.pageX)}),o.parent().mouseenter(function(){var e=t(this),i=e.offset(),n=t("body").data("mousex")-i.left,o=e.width(),r=e.find(".bullet:first").outerWidth(!0),s=r*a.find(">ul:first >li").length,d=s-o+15,l=d/o;e.addClass("over"),n-=30;var h=0-n*l;h>0&&(h=0),0-s+o>h&&(h=0-s+o),it(e,h,200)}),o.parent().mousemove(function(){var e=t(this),i=e.offset(),n=t("body").data("mousex")-i.left,o=e.width(),r=e.find(".bullet:first").outerWidth(!0),s=r*a.find(">ul:first >li").length-1,d=s-o+15,l=d/o;n-=3,6>n&&(n=0),n+3>o-6&&(n=o);var h=0-n*l;h>0&&(h=0),0-s+o>h&&(h=0-s+o),it(e,h,0)}),o.parent().mouseleave(function(){var e=t(this);e.removeClass("over"),at(a)}))},at=function(t){var e=t.parent().find(".tp-bullets.tp-thumbs .tp-mask .tp-thumbcontainer"),a=e.parent(),i=(a.offset(),a.find(".bullet:first").outerWidth(!0)),n=a.find(".bullet.selected").index()*i,o=a.width(),i=a.find(".bullet:first").outerWidth(!0),r=i*t.find(">ul:first >li").length,s=0-n;s>0&&(s=0),0-r+o>s&&(s=0-r+o),a.hasClass("over")||it(a,s,200)},it=function(t,e,a){punchgs.TweenLite.to(t.find(".tp-thumbcontainer"),.2,{force3D:"auto",left:e,ease:punchgs.Power3.easeOut,overwrite:"auto"})}}(jQuery);