/************************************************************************** * jquery.themepunch.revolution.js - jQuery Plugin for Revolution Slider * @version: 4.6.8 (27.02.2015) * @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+="
This includes make eliminates the revolution slider libraries, and make it not work.",e+="

To fix it you can:
    1. In the Slider Settings -> Troubleshooting set option: Put JS Includes To Body option to true.",e+="
    2. Find the double jquery.js include and remove it.",e=""+e+"",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,d){if(i==e)return!1;if(i.data("aimg")!=e&&("enabled"==i.data("aie8")&&s(8)||"enabled"==i.data("amobile")&&Z())&&i.html(''),("preview1"==d.navigationStyle||"preview3"==d.navigationStyle||"preview4"==d.navigationStyle)&&(d.soloArrowLeftHalign="left",d.soloArrowLeftValign="center",d.soloArrowLeftHOffset=0,d.soloArrowLeftVOffset=0,d.soloArrowRightHalign="right",d.soloArrowRightValign="center",d.soloArrowRightHOffset=0,d.soloArrowRightVOffset=0,d.navigationArrows="solo"),"on"==d.simplifyAll&&(s(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")})),d.desktop=!navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry|BB10|mobi|tablet|opera mini|nexus 7)/i),"on"!=d.fullWidth&&"on"!=d.fullScreen&&(d.autoHeight="off"),"on"==d.fullScreen&&(d.autoHeight="on"),"on"!=d.fullWidth&&"on"!=d.fullScreen&&(forceFulWidth="off"),"on"==d.fullWidth&&"off"==d.autoHeight&&i.css({maxHeight:d.startheight+"px"}),Z()&&"on"==d.hideThumbsOnMobile&&"thumb"==d.navigationType&&(d.navigationType="none"),Z()&&"on"==d.hideBulletsOnMobile&&"bullet"==d.navigationType&&(d.navigationType="none"),Z()&&"on"==d.hideBulletsOnMobile&&"both"==d.navigationType&&(d.navigationType="none"),Z()&&"on"==d.hideArrowsOnMobile&&(d.navigationArrows="none"),"on"==d.forceFullWidth&&0==i.closest(".forcefullwidth_wrapper_tp_banner").length){var f=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('
'),i.closest(".forcefullwidth_wrapper_tp_banner").append('
'),i.css({backgroundColor:i.parent().css("backgroundColor"),backgroundImage:i.parent().css("backgroundImage")}),i.parent().css({left:0-f+"px",position:"absolute",width:t(window).width()}),d.width=t(window).width()}try{i.parent().find(".tp-bullets.tp-thumbs").css(d.hideThumbsUnderResolution>t(window).width()&&0!=d.hideThumbsUnderResolution?{display:"none"}:{display:"block"})}catch(w){}if(!i.hasClass("revslider-initialised")){i.addClass("revslider-initialised"),i.attr("id")==e&&i.attr("id","revslider-"+Math.round(1e3*Math.random()+5)),d.firefox13=!1,d.ie=!t.support.opacity,d.ie9=9==document.documentMode,d.origcd=d.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('
The Current Version of jQuery:'+b+"
Please update your jQuery Version to min. 1.7 in Case you wish to use the Revolution Slider Plugin
"),y>1&&(d.ie=!1),t.support.transition||(t.fn.transition=t.fn.animate),i.find(".caption").each(function(){t(this).addClass("tp-caption")}),Z()&&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,C="http";if("https:"===location.protocol&&(C="https"),i.find(".tp-caption").each(function(){try{if((t(this).data("ytid")!=e||t(this).find("iframe").attr("src").toLowerCase().indexOf("youtube")>0)&&0==T){T=1;var a=document.createElement("script"),i="https";a.src=i+"://www.youtube.com/iframe_api";var n=document.getElementsByTagName("script")[0],o=!0;t("head").find("*").each(function(){t(this).attr("src")==i+"://www.youtube.com/iframe_api"&&(o=!1)}),o&&n.parentNode.insertBefore(a,n)}}catch(r){}try{if((t(this).data("vimeoid")!=e||t(this).find("iframe").attr("src").toLowerCase().indexOf("vimeo")>0)&&0==k){k=1;var s=document.createElement("script");s.src=C+"://a.vimeocdn.com/js/froogaloop2.min.js";var n=document.getElementsByTagName("script")[0],o=!0;t("head").find("*").each(function(){t(this).attr("src")==C+"://a.vimeocdn.com/js/froogaloop2.min.js"&&(o=!1)}),o&&n.parentNode.insertBefore(s,n)}}catch(r){}try{t(this).data("videomp4")!=e||t(this).data("videowebm")!=e}catch(r){}}),i.find(".tp-caption video").each(function(){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"==d.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;Iul: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)}d.slots=4,d.act=-1,d.next=0,d.startWithSlide!=e&&(d.next=d.startWithSlide);var S=o("#")[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),d.next=P-1}d.firststart=1,d.navigationHOffset==e&&(d.navOffsetHorizontal=0),d.navigationVOffset==e&&(d.navOffsetVertical=0),i.append('
'),0==i.find(".tp-bannertimer").length&&i.append('');var D=i.find(".tp-bannertimer");if(D.length>0&&D.css({width:"0%"}),i.addClass("tp-simpleresponsive"),d.container=i,d.slideamount=i.find(">ul:first >li").length,0==i.height()&&i.height(d.startheight),(d.startwidth==e||0==d.startwidth)&&(d.startwidth=i.width()),(d.startheight==e||0==d.startheight)&&(d.startheight=i.height()),d.width=i.width(),d.height=i.height(),d.bw=d.startwidth/i.width(),d.bh=d.startheight/i.height(),d.width!=d.startwidth&&(d.height=Math.round(d.startheight*(d.width/d.startwidth)),i.height(d.height)),0!=d.shadow){i.parent().append('
');var f=0;"on"==d.forceFullWidth&&(f=0-d.container.parent().offset().left),i.parent().find(".tp-bannershadow").css({width:d.width,left:f})}i.find("ul").css({display:"none"});i.find("ul").css({display:"block"}),v(i,d),"off"!=d.parallax&&Q(i,d),d.slideamount>1&&l(i,d),d.slideamount>1&&"thumb"==d.navigationType&&te(i,d),d.slideamount>1&&h(i,d),"on"==d.keyboardNavigation&&c(i,d),p(i,d),d.hideThumbs>0&&u(i,d),setTimeout(function(){L(i,d)},d.startDelay),d.startDelay=0,d.slideamount>1&&j(i,d),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"==d.forceFullWidth){var a=d.container.closest(".forcefullwidth_wrapper_tp_banner").offset().left;d.container.parent().css({left:0-a+"px",width:t(window).width()})}(i.outerWidth(!0)!=d.width||i.is(":hidden"))&&r(i,d)});try{0!=d.hideThumbsUnderResoluition&&"thumb"==d.navigationType&&t(".tp-bullets").css(d.hideThumbsUnderResoluition>t(window).width()?{display:"none"}:{display:"block"})}catch(w){}i.find(".tp-scrollbelowslider").on("click",function(){var e=0;try{e=t("body").find(d.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()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})})},revredraw:function(){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");r(a,n)}})},revkill:function(){var a=this,i=t(this);if(i!=e&&i.length>0&&t("body").find("#"+i.attr("id")).length>0){i.data("conthover",1),i.data("conthover-changed",1),i.trigger("revolution.slide.onpause");var n=i.parent().find(".tp-bannertimer"),o=n.data("opt");o.bannertimeronpause=!0,i.trigger("stoptimer"),punchgs.TweenLite.killTweensOf(i.find("*"),!1),punchgs.TweenLite.killTweensOf(i,!1),i.unbind("hover, mouseover, mouseenter,mouseleave, resize");var r="resize.revslider-"+i.attr("id");t(window).off(r),i.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(i.find("*"),!1),punchgs.TweenLite.killTweensOf(i,!1),n.remove();try{i.closest(".forcefullwidth_wrapper_tp_banner").remove()}catch(s){}try{i.closest(".rev_slider_wrapper").remove()}catch(s){}try{i.remove()}catch(s){}return i.empty(),i.html(),i=null,o=null,delete a.container,delete a.opt,!0}return!1},revpause:function(){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")}})},revresume:function(){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")}})},revnext:function(){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()})},revprev:function(){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()})},revmaxslide:function(){return t(this).find(">ul:first-child >li").length},revcurrentslide: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");return n.act}},revlastslide: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");return n.lastslide}},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())})}});var n=(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(){return a==e?!1:void setTimeout(function(){"on"==i.nextSlideOnWindowFocus&&a.revnext(),a.revredraw()},300)},!1),window.addEventListener("blur",function(){},!1)):(window.attachEvent("focus",function(){setTimeout(function(){return a==e?!1:("on"==i.nextSlideOnWindowFocus&&a.revnext(),void a.revredraw())},300)}),window.attachEvent("blur",function(){}))}),o=function(t){for(var e,a=[],i=window.location.href.slice(window.location.href.indexOf(t)+1).split("_"),n=0;nt(window).width()?{display:"none"}:{display:"block"})}catch(n){}a.find(".defaultimg").each(function(){m(t(this),i)});var o=a.parent();t(window).width()ul >li:eq("+i.act+") .slotholder"),l=a.find(">ul >li:eq("+i.next+") .slotholder");y(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(),N(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)}),_(h,i,!0),f(a,i)},s=function(e,a){var i=t('
').appendTo(t("body"));i.html("");var n=i.find("a").length;return i.remove(),n},d=function(t,e){t.next==e.find(">ul >li").length-1&&(t.looptogo=t.looptogo-1,t.looptogo<=0&&(t.stopLoop="on")),L(e,t)},l=function(e,a){var i="hidebullets";0==a.hideThumbs&&(i=""),("bullet"==a.navigationType||"both"==a.navigationType)&&e.parent().append('
');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('
');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,d(a,e))})}),n.append('
'),f(e,a)},h=function(t,a){function i(e){t.parent().append('
')}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&&(a.next=t.data("showus")!=e&&-1!=t.data("showus")?t.data("showus")-1:a.next+1,t.data("showus",-1),a.next>=a.slideamount&&(a.next=0),a.next<0&&(a.next=0),a.act!=a.next&&d(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),d(a,t))}),f(t,a)},c=function(a,i){t(document).keydown(function(t){0==i.transition&&39==t.keyCode&&(i.next=a.data("showus")!=e&&-1!=a.data("showus")?a.data("showus")-1:i.next+1,a.data("showus",-1),i.next>=i.slideamount&&(i.next=0),i.next<0&&(i.next=0),i.act!=i.next&&d(i,a)),0==i.transition&&37==t.keyCode&&(i.next=i.next-1,i.leftarrowpressed=1,i.next<0&&(i.next=i.slideamount-1),d(i,a))}),f(a,i)},p=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){switch(o){case"left":0==a.transition&&(a.next=a.next+1,a.next==a.slideamount&&(a.next=0),d(a,e));break;case"right":0==a.transition&&(a.next=a.next-1,a.leftarrowpressed=1,a.next<0&&(a.next=a.slideamount-1),d(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"})}}}))},u=function(t,e){var a=t.parent().find(".tp-bullets"),i=t.parent().find(".tparrows");if(null==a){t.append('
');var a=t.parent().find(".tp-bullets")}if(null==i){t.append('
');var i=t.parent().find(".tparrows")}if(t.data("hideThumbs",e.hideThumbs),a.addClass("hidebullets"),i.addClass("hidearrows"),Z())try{t.hammer().on("touch",function(){t.addClass("hovered"),"on"==e.onHoverStop&&t.trigger("stoptimer"),clearTimeout(t.data("hideThumbs")),a.removeClass("hidebullets"),i.removeClass("hidearrows")}),t.hammer().on("release",function(){t.removeClass("hovered"),t.trigger("starttimer"),t.hasClass("hovered")||a.hasClass("hovered")||t.data("hideThumbs",setTimeout(function(){a.addClass("hidebullets"),i.addClass("hidearrows"),t.trigger("starttimer")},e.hideNavDelayOnMobile))})}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))})},f=function(e,a){var i=e.parent(),n=i.find(".tp-bullets");if("thumb"==a.navigationType){n.find(".thumb").each(function(){var e=t(this);e.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"})},g=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"),Z()){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"})}))},m=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.bh1&&(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),n1&&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)),nul: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(){var i=t(this);if(i.addClass("tp-revslider-slidesli"),i.css({width:"100%",height:"100%",overflow:"hidden"}),i.data("link")!=e){var n=i.data("link"),o="_self",r=60;"back"==i.data("slideindex")&&(r=0);var s=checksl=i.data("linktoslide");s!=e&&"next"!=s&&"prev"!=s&&a.find(">ul:first-child >li").each(function(){var e=t(this);e.data("origindex")+1==checksl&&(s=e.index()+1)}),i.data("target")!=e&&(o=i.data("target")),"slide"!=n&&(s="no");var d=''),C+=k,s(8)&&(o.find(".slot ").last().find(".slotslide").append(''),b(o,a)),d!=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=d,w.toString().length<4&&(w=U(w,o,a))),"horizontal"==n){if(!i)var v=0-a.slotw;for(var O=0;O
'),d!=e&&l!=e&&punchgs.TweenLite.set(o.find(".slot").last(),{rotationZ:l}),s(8)&&(o.find(".slot ").last().find(".slotslide").append(''),b(o,a))}else{if(!i)var v=0-a.sloth;for(var O=0;O
'),d!=e&&l!=e&&punchgs.TweenLite.set(o.find(".slot").last(),{rotationZ:l}),s(8)&&(o.find(".slot ").last().find(".slotslide").append(''),b(o,a))}}},b=function(t,e){if(s(8)){{var a=t.find(".ieeightfallbackimage");a.width(),a.height()}a.css(e.startwidth/e.startheighti&&n!=e&&"undefined"!=n){if(n!=e&&"undefined"!=n){a.attr("src",n);var o=new Image;o.onload=function(){a.data("lazydone",1),a.hasClass("defaultimg")&&T(a,o)},o.error=function(){a.data("lazydone",1)},o.src=a.attr("src"),o.complete&&(a.hasClass("defaultimg")&&T(a,o),a.data("lazydone",1))}}else if((n===e||"undefined"===n)&&1!=a.data("lazydone")){var o=new Image;o.onload=function(){a.hasClass("defaultimg")&&T(a,o),a.data("lazydone",1)},o.error=function(){a.data("lazydone",1)},o.src=a.attr("src")!=e&&"undefined"!=a.attr("src")?a.attr("src"):a.data("src"),o.complete&&(a.hasClass("defaultimg")&&T(a,o),a.data("lazydone",1))}})},T=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)},k=function(a,i,n){x(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(){1!=t(this).data("lazydone")&&r++}),r>0?x(a,r):(clearInterval(o),i!=e&&i())},100)},L=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")?(s(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"}),k(t.find(".tp-static-layers"),function(){k(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),C(a,o,t))},10);else C(a,o,t)},a)},a)):n.data("loadeddone")===e?(n.data("loadeddone",1),k(n,function(){C(a,o,t)},a)):C(a,o,t)},C=function(t,e,a){t.bannertimeronpause=!1,t.cd=0,a.trigger("nulltimer"),a.find(".tp-loader").css({display:"none"}),m(e,t),f(a,t),m(e,t),z(a,t)},z=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(){g(a)},200);var r=i.find(".slotholder"),s=o.find(".slotholder");("on"==s.data("kenburns")||"on"==r.data("kenburns"))&&(J(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=B(i,a)),"on"!=i.data("saveperformance")&&(d=0),setTimeout(function(){t.trigger("restarttimer"),O(t,a,o,i,r,s)},d)},O=function(a,i,n,o,r,d){function l(){t.each(g,function(t,e){(e[0]==u||e[8]==u)&&(h=e[1],f=e[2],b=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")),s(8)&&(u=11);var f=0;"scroll"==i.parallax&&i.parallaxFirstGo==e&&(i.parallaxFirstGo=!0,K(a,i),setTimeout(function(){K(a,i)},210),setTimeout(function(){K(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,b=0,y=0,x=new Array;"on"==d.data("kenburns")&&(("boxslide"==u||0==u||"boxfade"==u||1==u||"papercut"==u||16==u)&&(u=11),N(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(),s(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=i.delay),x=g[b],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(){I(a,i,d,r,n,o,z)}});if(z.add(punchgs.TweenLite.set(d.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"),i.rotate=n.data("rotate")==e?0:999==n.data("rotate")?Math.round(360*Math.random()):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]&&w(r,i,x[7],x[5]),null!=x[6]&&w(d,i,x[6],x[5]),0==h){var O=Math.ceil(i.height/i.sloth),A=0;d.find(".slotslide").each(function(e){var a=t(this);A+=1,A==O&&(A=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*A)/1500)})}if(1==h){var M,S=0;d.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)}),d.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)}),d.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)}),d.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+1i.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)}),d.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)}),d.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:d.find(".defaultimg").data("neww")+"px",height:d.find(".defaultimg").data("newh")+"px",opacity:1,rotation:0}),0),z.add(P,0)})}if(9==h||10==h){var H=0;d.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),d.find(".slotslide").each(function(){var e=t(this);z.add(punchgs.TweenLite.from(e,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,X=i.height,F=d.find(".slotslide"),Y=0,R=0,B=1,V=1,q=1,E=punchgs.Power2.easeInOut,j=punchgs.Power2.easeInOut,Z=C/1e3,U=Z;("on"==i.fullWidth||"on"==i.fullScreen)&&(W=F.width(),X=F.height()),12==h?Y=W:15==h?Y=0-W:13==h?R=X:14==h&&(R=0-X),1==f&&(B=0),2==f&&(B=0),3==f&&(E=punchgs.Power2.easeInOut,j=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,X=0,Y=0,R=0),6==f&&(q=.6);z.add(punchgs.TweenLite.from(F,Z,{left:Y,top:R,scale:q,opacity:B,rotation:i.rotate,ease:j,force3D:"auto"}),0);var G=r.find(".slotslide");if((4==f||5==f)&&(W=0,X=0),1!=f)switch(h){case 12:z.add(punchgs.TweenLite.to(G,U,{left:0-W+"px",force3D:"auto",scale:V,opacity:B,rotation:i.rotate,ease:E}),0);break;case 15:z.add(punchgs.TweenLite.to(G,U,{left:W+"px",force3D:"auto",scale:V,opacity:B,rotation:i.rotate,ease:E}),0);break;case 13:z.add(punchgs.TweenLite.to(G,U,{top:0-X+"px",force3D:"auto",scale:V,opacity:B,rotation:i.rotate,ease:E}),0);break;case 14:z.add(punchgs.TweenLite.to(G,U,{top:X+"px",force3D:"auto",scale:V,opacity:B,rotation:i.rotate,ease:E}),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('
'),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,X=i.height;"on"==i.autoHeight&&(X=a.height()),o.find(".tp-half-one .defaultimg").wrap('
'),o.find(".tp-half-two .defaultimg").wrap('
'),o.find(".tp-half-two .defaultimg").css({position:"absolute",top:"-50%"}),o.find(".tp-half-two .tp-caption").wrapAll('
'),z.add(punchgs.TweenLite.set(o.find(".tp-half-two"),{width:W,height:X,overflow:"hidden",zIndex:15,position:"absolute",top:X/2,left:"0px",transformPerspective:600,transformOrigin:"center bottom"}),0),z.add(punchgs.TweenLite.set(o.find(".tp-half-one"),{width:W,height:X/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),te=.4*Math.random()-.2,ee=.4*Math.random()-.2,ae=1*Math.random()+1,ie=1*Math.random()+1,ne=.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:X/2,position:"absolute",top:"0px",left:"0px",force3D:"auto",transformOrigin:"center top"},{scale:ae,rotation:$,y:0-X-X/4,autoAlpha:0,ease:punchgs.Power2.easeInOut}),0),z.add(punchgs.TweenLite.fromTo(o.find(".tp-half-two"),C/800,{width:W,height:X,overflow:"hidden",position:"absolute",top:X/2,left:"0px",force3D:"auto",transformOrigin:"center bottom"},{scale:ie,rotation:J,y:X+X/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(d.find(".defaultimg"),{autoAlpha:1}),0),null!=o.html()&&z.add(punchgs.TweenLite.fromTo(n,(C-200)/1e3,{scale:ne,x:i.width/4*te,y:X/4*ee,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&&d.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&&d.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:20}),0),z.add(punchgs.TweenLite.set(n,{zIndex:20}),0),setTimeout(function(){r.find(".defaultimg").css({opacity:0})},100);var oe=(n.css("z-index"),o.css("z-index"),90),B=1,re="center center ";1==L&&(oe=-90),19==h?(re=re+"-"+i.height/2,B=0):re+=i.height/2,punchgs.TweenLite.set(a,{transformStyle:"flat",backfaceVisibility:"hidden",transformPerspective:600}),d.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:re,rotationX:oe},{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:re,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 se=-i.width,oe=70,re="left center -"+i.height/2;else var se=i.width,oe=-70,re="right center -"+i.height/2;d.find(".slotslide").each(function(e){var a=t(this);z.add(punchgs.TweenLite.fromTo(a,C/1500,{left:se,rotationX:40,z:-600,opacity:B,top:0,force3D:"auto",transformPerspective:600,transformOrigin:re,rotationY:oe},{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:re,rotationY:oe},{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 oe=(n.css("z-index"),o.css("z-index"),90),se=-i.width,de=-oe;if(1==L)if(25==h){var re="center top 0";oe=i.rotate}else{var re="left center 0";de=i.rotate}else if(se=i.width,oe=-90,25==h){var re="center bottom 0";de=-oe,oe=i.rotate}else{var re="right center 0";de=i.rotate}d.find(".slotslide").each(function(){var e=t(this);z.add(punchgs.TweenLite.fromTo(e,C/1e3,{left:0,transformStyle:"flat",rotationX:de,z:0,autoAlpha:0,top:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:re,rotationY:oe},{left:0,rotationX:0,top:0,z:0,autoAlpha:1,scale:1,rotationY:0,force3D:"auto",ease:punchgs.Power3.easeInOut}),0)}),1!=L?(se=-i.width,oe=90,25==h?(re="center top 0",de=-oe,oe=i.rotate):(re="left center 0",de=i.rotate)):(se=i.width,oe=-90,25==h?(re="center bottom 0",de=-oe,oe=i.rotate):(re="right center 0",de=i.rotate)),r.find(".slotslide").each(function(){var e=t(this);z.add(punchgs.TweenLite.fromTo(e,C/1e3,{left:0,transformStyle:"flat",rotationX:0,z:0,autoAlpha:1,top:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:re,rotationY:0},{left:0,rotationX:de,top:0,z:0,autoAlpha:1,force3D:"auto",scale:1,rotationY:oe,ease:punchgs.Power1.easeInOut}),0)})}if(23==h||24==h){setTimeout(function(){r.find(".defaultimg").css({opacity:0})},100);var oe=(n.css("z-index"),o.css("z-index"),-90),B=1,le=0;if(1==L&&(oe=90),23==h){var re="center center -"+i.width/2;B=0}else var re="center center "+i.width/2;punchgs.TweenLite.set(a,{transformStyle:"preserve-3d",backfaceVisibility:"hidden",perspective:2500}),d.find(".slotslide").each(function(e){var a=t(this);z.add(punchgs.TweenLite.fromTo(a,C/1e3,{left:le,rotationX:i.rotate,force3D:"auto",opacity:B,top:0,scale:1,transformPerspective:600,transformOrigin:re,rotationY:oe},{left:0,rotationX:0,autoAlpha:1,top:0,z:0,scale:1,rotationY:0,delay:50*e/500,ease:punchgs.Power2.easeInOut}),0)}),oe=90,1==L&&(oe=-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:re,rotationY:0},{left:le,autoAlpha:1,rotationX:i.rotate,top:0,scale:1,rotationY:oe,delay:50*e/500,ease:punchgs.Power2.easeInOut}),0)})}z.pause(),_(n,i,null,z),punchgs.TweenLite.to(n,.001,{autoAlpha:1});var he={};he.slideIndex=i.next+1,he.slide=n,a.trigger("revolution.slide.onchange",he),setTimeout(function(){a.trigger("revolution.slide.onafterswap")},C),a.trigger("revolution.slide.onvideostop")},I=function(t,e,a,i,n,o,r){punchgs.TweenLite.to(a.find(".defaultimg"),.001,{autoAlpha:1,onComplete:function(){y(t,e,n)}}),n.index()!=o.index()&&punchgs.TweenLite.to(o,.2,{autoAlpha:0,onComplete:function(){y(t,e,o)}}),e.act=e.next,"thumb"==e.navigationType&&ee(t),"on"==a.data("kenburns")&&N(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)&&K(t,e),r.clear()},A=function(e){var a=e.target.getVideoEmbedCode(),i=t("#"+a.split('id="')[1].split('"')[0]),n=i.closest(".tp-simpleresponsive"),o=i.parent().data("player");if(e.data==YT.PlayerState.PLAYING){var r=n.find(".tp-bannertimer"),s=r.data("opt");"mute"==i.closest(".tp-caption").data("volume")&&o.mute(),s.videoplaying=!0,n.trigger("stoptimer"),n.trigger("revolution.slide.onvideoplay")}else{var r=n.find(".tp-bannertimer"),s=r.data("opt");-1!=e.data&&3!=e.data&&(s.videoplaying=!1,n.trigger("starttimer"),n.trigger("revolution.slide.onvideostop")),0==e.data&&1==s.nextslideatend?s.container.revnext():(s.videoplaying=!1,n.trigger("starttimer"),n.trigger("revolution.slide.onvideostop"))}},M=function(t,e,a){t.addEventListener?t.addEventListener(e,a,!1):t.attachEvent(e,a,!1)},S=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(){a&&i.api("play"),i.addEvent("play",function(){var t=o.find(".tp-bannertimer"),e=t.data("opt");e.videoplaying=!0,o.trigger("stoptimer"),o.trigger("revolution.slide.onvideoplay"),"mute"==r.data("volume")&&i.api("setVolume","0")}),i.addEvent("finish",function(){var t=o.find(".tp-bannertimer"),e=t.data("opt");e.videoplaying=!1,o.trigger("starttimer"),o.trigger("revolution.slide.onvideoplay"),1==e.nextslideatend&&e.container.revnext()}),i.addEvent("pause",function(){var t=o.find(".tp-bannertimer"),e=t.data("opt");e.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)},P=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})},D=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},H=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},W=function(e){var a=e.split("animation:"),i=new Object;i.animation=H(D(),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},_=function(a,i,n,o){function r(){}function d(){}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||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.widthh&&(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",_="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('')),T!=e&&String(T).length>1&&0==p.find("iframe").length&&("https:"===location.protocol&&(I="https"),p.append('')),(L!=e||C!=e)&&0==p.find("video").length){"controls"!=O&&(O="");var B="";(100==w||"100%"==w)&&(B=";width:100% !important; height:100% !important");var E='",p.append(E),"controls"==O&&p.append('
')}var j=!1;(1==p.data("autoplayonlyfirsttime")||"true"==p.data("autoplayonlyfirsttime")||1==p.data("autoplay"))&&(p.data("autoplay",!0),j=!0),p.data("videoposter")!=e&&p.data("videoposter").length>2&&1!=p.data("autoplay")&&!o&&(0==p.find(".tp-thumb-image").length?p.append('
'):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"}),Z()){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")||Z()||r.seekTo(0),(!Z()&&1==p.data("autoplay")||j)&&p.data("timerplay",setTimeout(function(){r.playVideo()},p.data("start")))}}else try{a.attr("id",v);var r,s=setInterval(function(){YT!=e&&typeof YT.Player!=e&&"undefined"!=typeof YT.Player&&(r=new YT.Player(v,{events:{onStateChange:A,onReady:function(a){{var i=a.target.getVideoEmbedCode(),n=t("#"+i.split('id="')[1].split('"')[0]),o=n.closest(".tp-caption"),s=o.data("videorate");o.data("videostart")}s!=e&&a.target.setPlaybackRate(parseFloat(s)),(!Z()&&1==o.data("autoplay")||j)&&o.data("timerplay",setTimeout(function(){a.target.playVideo()},o.data("start"))),o.find(".tp-thumb-image").click(function(){punchgs.TweenLite.to(t(this),.3,{autoAlpha:0,force3D:"auto",ease:punchgs.Power3.easeInOut}),Z()||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||Z()||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(){$f!=e&&typeof $f(v).api!=e&&"undefined"!=typeof $f(v).api&&($f(r).addEvent("ready",function(){S(v,j)}),clearInterval(w))},100)}}),(Z()&&1==p.data("disablevideoonmobile")||s(8))&&p.find("video").remove(),p.find("video").length>0&&p.find("video").each(function(){var a=this,n=t(this);n.parent().hasClass("html5vid")||n.wrap('
');var o=n.parent();M(a,"loadedmetadata",function(t){t.data("metaloaded",1)}(o)),clearInterval(o.data("interval")),o.data("interval",setInterval(function(){if(1==o.data("metaloaded")||0/0!=a.duration){if(clearInterval(o.data("interval")),!o.hasClass("HasListener")){o.addClass("HasListener"),"none"!=p.data("dottedoverlay")&&p.data("dottedoverlay")!=e&&1!=p.find(".tp-dottedoverlay").length&&o.append('
'),n.attr("control")==e&&(0==o.find(".tp-video-play-button").length&&o.append('
'),o.parent().find("video, .tp-poster, .tp-thumb-image, .tp-video-play-button").click(function(){o.hasClass("videoisplaying")?a.pause():(a.play(),punchgs.TweenLite.to(o.parent().find(".tp-poster, .tp-thumb-image"),.2,{autoAlpha:0}))})),(1==p.data("forcecover")||p.hasClass("fullscreenvideo"))&&(1==p.data("forcecover")&&(P(o,i.container),o.addClass("fullcoveredvideo"),p.addClass("fullcoveredvideo")),o.css({width:"100%",height:"100%"}));var t=p.find(".tp-vid-play-pause")[0],r=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&&(M(t,"click",function(){1==a.paused?a.play():a.pause()}),M(r,"click",function(){0==a.muted?(a.muted=!0,r.innerHTML="Unmute"):(a.muted=!1,r.innerHTML="Mute")}),M(s,"click",function(){a.requestFullscreen?a.requestFullscreen():a.mozRequestFullScreen?a.mozRequestFullScreen():a.webkitRequestFullscreen&&a.webkitRequestFullscreen()}),M(d,"change",function(){var t=a.duration*(d.value/100);a.currentTime=t}),M(a,"timeupdate",function(){var t=100/a.duration*a.currentTime;d.value=t}),M(d,"mousedown",function(){a.pause()}),M(d,"mouseup",function(){a.play()}),M(l,"change",function(){a.volume=l.value})),M(a,"play",function(){"mute"==p.data("volume")&&(a.muted=!0),o.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],n=p.find(".tp-vid-mute")[0];t!=e&&(t.innerHTML="Pause"),n!=e&&a.muted&&(n.innerHTML="Unmute")}),M(a,"pause",function(){o.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")}),M(a,"ended",function(){o.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),o.data("mediaAspect",c),1==o.closest(".tp-caption").data("forcecover")&&(P(o,i.container),o.addClass("fullcoveredvideo")),n.css({display:"block"}),i.nextslideatend=p.data("nextslideatend"),"on"!=p.data("forcerewind")||o.hasClass("videoisplaying")||a.currentTime>0&&(a.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")||o.hasClass("videoisplaying")||a.currentTime>0&&(a.currentTime=0),"mute"==p.data("volume")&&(a.muted=!0),o.data("timerplay",setTimeout(function(){"on"!=p.data("forcerewind")||o.hasClass("videoisplaying")||a.currentTime>0&&(a.currentTime=0),"mute"==p.data("volume")&&(a.muted=!0),a.play()},10+p.data("start")))),o.data("ww")==e&&o.data("ww",n.attr("width")),o.data("hh")==e&&o.data("hh",n.attr("height")),!p.hasClass("fullscreenvideo")&&1==p.data("forcecover"))try{o.width(o.data("ww")*i.bw),o.height(o.data("hh")*i.bh)}catch(u){}clearInterval(o.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")),(1==p.data("autoplayonlyfirsttime")||"true"==p.data("autoplayonlyfirsttime"))&&(p.data("autoplay",!1),p.data("autoplayonlyfirsttime",!1)))}var U=0,N=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),U=G.width(),N=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 te=i.width,ee=i.height;if(te>i.startwidth&&(te=i.startwidth),ee>i.startheight&&(ee=i.startheight),p.hasClass("fullscreenvideo")){h=0,c=0,p.data("x",0),p.data("y",0);var ae=i.height;"on"==i.autoHeight&&(ae=i.container.height()),p.css({width:i.width,height:ae})}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)),U=G.width(),N=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),N=p.outerHeight(!0),U=p.outerWidth(!0);var ie=p.outerHeight(),ne=p.css("backgroundColor");p.find(".frontcorner").css({borderWidth:ie+"px",left:0-ie+"px",borderRight:"0px solid transparent",borderTopColor:ne}),p.find(".frontcornertop").css({borderWidth:ie+"px",left:0-ie+"px",borderRight:"0px solid transparent",borderBottomColor:ne}),p.find(".backcorner").css({borderWidth:ie+"px",right:0-ie+"px",borderLeft:"0px solid transparent",borderBottomColor:ne}),p.find(".backcornertop").css({borderWidth:ie+"px",right:0-ie+"px",borderLeft:"0px solid transparent",borderTopColor:ne})}"on"==i.fullScreenAlignForce&&(h=0,c=0),p.data("voffset")==e&&p.data("voffset",0),p.data("hoffset")==e&&p.data("hoffset",0);var oe=p.data("voffset")*g,re=p.data("hoffset")*g,se=i.startwidth*g,de=i.startheight*g;"on"==i.fullScreenAlignForce&&(se=i.container.width(),de=i.container.height()),("center"==p.data("x")||"center"==p.data("xcenter"))&&(p.data("xcenter","center"),p.data("x",se/2-p.outerWidth(!0)/2+re)),("left"==p.data("x")||"left"==p.data("xleft"))&&(p.data("xleft","left"),p.data("x",0/g+re)),("right"==p.data("x")||"right"==p.data("xright"))&&(p.data("xright","right"),p.data("x",(se-p.outerWidth(!0)+re)/g)),("center"==p.data("y")||"center"==p.data("ycenter"))&&(p.data("ycenter","center"),p.data("y",de/2-p.outerHeight(!0)/2+oe)),("top"==p.data("y")||"top"==p.data("ytop"))&&(p.data("ytop","top"),p.data("y",0/i.bh+oe)),("bottom"==p.data("y")||"bottom"==p.data("ybottom"))&&(p.data("ybottom","bottom"),p.data("y",(de-p.outerHeight(!0)+oe)/g)),p.data("start")==e&&p.data("start",1e3);var le=p.data("easing");le==e&&(le="punchgs.Power1.easeOut");var he=p.data("start")/1e3,ce=p.data("speed")/1e3;if("center"==p.data("x")||"center"==p.data("xcenter"))var pe=p.data("x")+h;else var pe=g*p.data("x")+h;if("center"==p.data("y")||"center"==p.data("ycenter"))var ue=p.data("y")+c;else var ue=i.bh*p.data("y")+c;if(punchgs.TweenLite.set(p,{top:ue,left:pe,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 fe=new punchgs.TimelineLite({smoothChildTiming:!0,onStart:d});fe.pause(),"on"==i.fullScreenAlignForce;var ge=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")&&(ge=p.data("mySplitText").chars),"words"==p.data("splitin")&&(ge=p.data("mySplitText").words),"lines"==p.data("splitin")&&(ge=p.data("mySplitText").lines);var me=D(),ve=D();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 we=p.attr("class");we.match("customin")?me=H(me,p.data("customin")):we.match("randomrotate")?(me.scale=3*Math.random()+1,me.rotation=Math.round(200*Math.random()-100),me.x=Math.round(200*Math.random()-100),me.y=Math.round(200*Math.random()-100)):we.match("lfr")||we.match("skewfromright")?me.x=15+i.width:we.match("lfl")||we.match("skewfromleft")?me.x=-15-U:we.match("sfl")||we.match("skewfromleftshort")?me.x=-50:we.match("sfr")||we.match("skewfromrightshort")?me.x=50:we.match("lft")?me.y=-25-N:we.match("lfb")?me.y=25+i.height:we.match("sft")?me.y=-50:we.match("sfb")&&(me.y=50),we.match("skewfromright")||p.hasClass("skewfromrightshort")?me.skewX=-85:(we.match("skewfromleft")||p.hasClass("skewfromleftshort"))&&(me.skewX=85),(we.match("fade")||we.match("sft")||we.match("sfl")||we.match("sfb")||we.match("skewfromleftshort")||we.match("sfr")||we.match("skewfromrightshort"))&&(me.opacity=0),"safari"==X().toLowerCase();var be=p.data("elementdelay")==e?0:p.data("elementdelay");ve.ease=me.ease=p.data("easing")==e?punchgs.Power1.easeInOut:p.data("easing"),me.data=new Object,me.data.oldx=me.x,me.data.oldy=me.y,ve.data=new Object,ve.data.oldx=ve.x,ve.data.oldy=ve.y,me.x=me.x*g,me.y=me.y*g;var ye=new punchgs.TimelineLite;if(2!=l)if(we.match("customin"))ge!=p&&fe.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"})),me.visibility="hidden",ve.visibility="visible",ve.overwrite="all",ve.opacity=1,ve.onComplete=r(),ve.delay=he,ve.force3D="auto",fe.add(ye.staggerFromTo(ge,ce,me,ve,be),"frame0");else if(me.visibility="visible",me.transformPerspective=600,ge!=p&&fe.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"})),ve.visibility="visible",ve.delay=he,ve.onComplete=r(),ve.opacity=1,ve.force3D="auto",we.match("randomrotate")&&ge!=p)for(var a=0;a0){var a=W(e);V(p,i,a,"frame"+(t+10),g)}})}fe=p.data("timeline"),p.data("end")==e||-1!=l&&2!=l?-1==l||2==l?q(p,i,999999,me,"frame99",g):q(p,i,999999,me,"frame99",g):q(p,i,p.data("end")/1e3,me,"frame99",g),fe=p.data("timeline"),p.data("timeline",fe),Y(p,g),fe.resume()}}if(o&&(R(p),Y(p,g),p.data("timeline")!=e)){var Ce=p.data("timeline").getTweensOf();t.each(Ce,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"}))},Y=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()}}))}})},R=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))})},B=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(){var a=-1,o=t(this);if(o.hasClass("tp-static-layer")&&((-1==o.data("startslide")||"-1"==o.data("startslide"))&&o.data("startslide",0),(-1==o.data("endslide")||"-1"==o.data("endslide"))&&o.data("endslide",i.slideamount),o.hasClass("tp-is-shown")?o.data("startslide")>i.next||o.data("endslide")0){punchgs.TweenLite.to(o.find("iframe"),.2,{autoAlpha:0}),Z()&&o.find("iframe").remove();try{var r=o.find("iframe"),s=r.attr("id"),d=$f(s);d.api("pause"),clearTimeout(o.data("timerplay"))}catch(l){}try{var h=o.data("player");h.stopVideo(),clearTimeout(o.data("timerplay"))}catch(l){}}if(o.find("video").length>0)try{o.find("video").each(function(){{var e=t(this).parent();e.attr("id")}clearTimeout(e.data("timerplay"));var a=this;a.pause()})}catch(l){}try{var c=o.data("timeline"),p=c.getLabelTime("frame99"),u=c.time();if(p>u){var f=c.getTweensOf(o);if(t.each(f,function(t,e){0!=t&&e.pause()}),0!=o.css("opacity")){var g=o.data(o.data("endspeed")==e?"speed":"endspeed");g>n&&(n=g),c.play("frame99")}else c.progress(1,!1)}}catch(l){}}}),n},V=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)},q=function(t,a,i,n,o,r){var s=t.data("timeline"),d=new punchgs.TimelineLite,l=D(),h=t.data(t.data("endspeed")==e?"speed":"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=H(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},j=function(a,i){if(i.cd=0,i.loop=0,i.looptogo=i.stopAfterLoops!=e&&i.stopAfterLoops>-1?i.stopAfterLoops:9999999,i.lastslidetoshow=i.stopAtSlide!=e&&i.stopAtSlide>-1?i.stopAtSlide: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(),L(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&&!Z()){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()})}})}},Z=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+"%"},N=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 d=a.find(">ul:first-child >li:eq("+i.next+")"),l=d.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('
'):l.find(".kenburnimg img").css({width:k.w+"%",height:k.h+"%"});var a=l.find(".kenburnimg img"),n=G(i,h,m,a,L),r=G(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 d=n.w,p=d*a.width()-i.width,u=d*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+"%"),s(8)||e.data("currotate",$(a)),s(8)||e.data("curscale",k.w*d+"% "+(k.h*d+"%")),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),d=Math.abs(a[0]._gsTransform.y/o*100);0==o&&(d=0),0==n&&(r=0),e.data("bgposition",r+"% "+d+"%"),s(8)||e.data("currotate",$(a)),s(8)||e.data("curscale",k.w*t+"% "+(k.h*t+"%"))}}))})},G=function(t,e,a,i,n){var o=new Object;switch(o.w=n?parseInt(a.split(" ")[1],0)/100: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},$=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},J=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})})},Q=function(a,i){return Z()&&"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('
')})}),("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})})}}),Z()&&(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(){K(a,i)})))},K=function(e,a){if(Z()&&"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(){var e=t(this),a=parseInt(e.data("parallaxlevel"),0)/100,i=d*a;e.data("parallaxoffset",i),punchgs.TweenLite.to(e,.2,{force3D:"auto",y:i,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})}},te=function(a,i){var n=a.parent();("thumb"==i.navigationType||"both"==i.navsecond)&&n.append('
');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('
');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),sul:first >li").length,h=o.parent().width();i.thumbWidth=s,l>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),ae(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),ae(e,h,0)}),o.parent().mouseleave(function(){var e=t(this);e.removeClass("over"),ee(a)}))},ee=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")||ae(a,s,200)},ae=function(t,e){punchgs.TweenLite.to(t.find(".tp-thumbcontainer"),.2,{force3D:"auto",left:e,ease:punchgs.Power3.easeOut,overwrite:"auto"})}}(jQuery);