Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 
 

2 linhas
25 KiB

  1. (function(nt){var w=jQuery.fn.revolution,L=w.is_mobile(),F={alias:"Navigation Min JS",name:"revolution.extensions.navigation.min.js",min_core:"5.4.0",version:"1.3.5"};jQuery.extend(!0,w,{hideUnHideNav:function(e){var t=e.c.width(),n=e.navigation.arrows,i=e.navigation.bullets,a=e.navigation.thumbnails,r=e.navigation.tabs;T(n)&&R(e.c.find(".tparrows"),n.hide_under,t,n.hide_over),T(i)&&R(e.c.find(".tp-bullets"),i.hide_under,t,i.hide_over),T(a)&&R(e.c.parent().find(".tp-thumbs"),a.hide_under,t,a.hide_over),T(r)&&R(e.c.parent().find(".tp-tabs"),r.hide_under,t,r.hide_over),$(e)},resizeThumbsTabs:function(e,t){if(e.navigation&&e.navigation.tabs.enable||e.navigation&&e.navigation.thumbnails.enable){var n=(jQuery(window).width()-480)/500,i=new punchgs.TimelineLite,a=e.navigation.tabs,r=e.navigation.thumbnails,s=e.navigation.bullets;if(i.pause(),n=n>1?1:n<0?0:n,T(a)&&(t||a.width>a.min_width)&&J(n,i,e.c,a,e.slideamount,"tab"),T(r)&&(t||r.width>r.min_width)&&J(n,i,e.c,r,e.slideamount,"thumb"),T(s)&&t){var d=e.c.find(".tp-bullets");d.find(".tp-bullet").each(function(p){var l=jQuery(this),o=p+1,g=l.outerWidth()+parseInt(s.space===void 0?0:s.space,0),v=l.outerHeight()+parseInt(s.space===void 0?0:s.space,0);s.direction==="vertical"?(l.css({top:(o-1)*v+"px",left:"0px"}),d.css({height:(o-1)*v+l.outerHeight(),width:l.outerWidth()})):(l.css({left:(o-1)*g+"px",top:"0px"}),d.css({width:(o-1)*g+l.outerWidth(),height:l.outerHeight()}))})}i.play(),$(e)}return!0},updateNavIndexes:function(e){function t(i){n.find(i).lenght>0&&n.find(i).each(function(a){jQuery(this).data("liindex",a)})}var n=e.c;t(".tp-tab"),t(".tp-bullet"),t(".tp-thumb"),w.resizeThumbsTabs(e,!0),w.manageNavigation(e)},manageNavigation:function(e){var t=w.getHorizontalOffset(e.c.parent(),"left"),n=w.getHorizontalOffset(e.c.parent(),"right");T(e.navigation.bullets)&&(e.sliderLayout!="fullscreen"&&e.sliderLayout!="fullwidth"&&(e.navigation.bullets.h_offset_old=e.navigation.bullets.h_offset_old===void 0?e.navigation.bullets.h_offset:e.navigation.bullets.h_offset_old,e.navigation.bullets.h_offset=e.navigation.bullets.h_align==="center"?e.navigation.bullets.h_offset_old+t/2-n/2:e.navigation.bullets.h_offset_old+t-n),Q(e.c.find(".tp-bullets"),e.navigation.bullets,e)),T(e.navigation.thumbnails)&&Q(e.c.parent().find(".tp-thumbs"),e.navigation.thumbnails,e),T(e.navigation.tabs)&&Q(e.c.parent().find(".tp-tabs"),e.navigation.tabs,e),T(e.navigation.arrows)&&(e.sliderLayout!="fullscreen"&&e.sliderLayout!="fullwidth"&&(e.navigation.arrows.left.h_offset_old=e.navigation.arrows.left.h_offset_old===void 0?e.navigation.arrows.left.h_offset:e.navigation.arrows.left.h_offset_old,e.navigation.arrows.left.h_offset=e.navigation.arrows.left.h_align==="right"?e.navigation.arrows.left.h_offset_old+n:e.navigation.arrows.left.h_offset_old+t,e.navigation.arrows.right.h_offset_old=e.navigation.arrows.right.h_offset_old===void 0?e.navigation.arrows.right.h_offset:e.navigation.arrows.right.h_offset_old,e.navigation.arrows.right.h_offset=e.navigation.arrows.right.h_align==="right"?e.navigation.arrows.right.h_offset_old+n:e.navigation.arrows.right.h_offset_old+t),Q(e.c.find(".tp-leftarrow.tparrows"),e.navigation.arrows.left,e),Q(e.c.find(".tp-rightarrow.tparrows"),e.navigation.arrows.right,e)),T(e.navigation.thumbnails)&&H(e.c.parent().find(".tp-thumbs"),e.navigation.thumbnails),T(e.navigation.tabs)&&H(e.c.parent().find(".tp-tabs"),e.navigation.tabs)},createNavigation:function(e,t){if(w.compare_version(F).check==="stop")return!1;var n=e.parent(),i=t.navigation.arrows,a=t.navigation.bullets,r=t.navigation.thumbnails,s=t.navigation.tabs,d=T(i),p=T(a),l=T(r),o=T(s);A(e,t),G(e,t),d&&tt(e,i,t),t.li.each(function(g){var v=jQuery(t.li[t.li.length-1-g]),f=jQuery(this);p&&(t.navigation.bullets.rtl?V(e,a,v,t):V(e,a,f,t)),l&&(t.navigation.thumbnails.rtl?D(e,r,v,"tp-thumb",t):D(e,r,f,"tp-thumb",t)),o&&(t.navigation.tabs.rtl?D(e,s,v,"tp-tab",t):D(e,s,f,"tp-tab",t))}),e.bind("revolution.slide.onafterswap revolution.nextslide.waiting",function(){var g=e.find(".next-revslide").length==0?e.find(".active-revslide").data("index"):e.find(".next-revslide").data("index");e.find(".tp-bullet").each(function(){var x=jQuery(this);x.data("liref")===g?x.addClass("selected"):x.removeClass("selected")}),n.find(".tp-thumb, .tp-tab").each(function(){var x=jQuery(this);x.data("liref")===g?(x.addClass("selected"),x.hasClass("tp-tab")?H(n.find(".tp-tabs"),s):H(n.find(".tp-thumbs"),r)):x.removeClass("selected")});var v=0,f=!1;t.thumbs&&jQuery.each(t.thumbs,function(x,S){v=f===!1?x:v,f=S.id===g||x===g||f});var y=v>0?v-1:t.slideamount-1,c=v+1==t.slideamount?0:v+1;if(i.enable===!0){var m=i.tmp;if(t.thumbs[y]!=null&&jQuery.each(t.thumbs[y].params,function(x,S){m=m.replace(S.from,S.to)}),i.left.j.html(m),m=i.tmp,c>t.slideamount)return;jQuery.each(t.thumbs[c].params,function(x,S){m=m.replace(S.from,S.to)}),i.right.j.html(m),i.rtl?(punchgs.TweenLite.set(i.left.j.find(".tp-arr-imgholder"),{backgroundImage:"url("+t.thumbs[c].src+")"}),punchgs.TweenLite.set(i.right.j.find(".tp-arr-imgholder"),{backgroundImage:"url("+t.thumbs[y].src+")"})):(punchgs.TweenLite.set(i.left.j.find(".tp-arr-imgholder"),{backgroundImage:"url("+t.thumbs[y].src+")"}),punchgs.TweenLite.set(i.right.j.find(".tp-arr-imgholder"),{backgroundImage:"url("+t.thumbs[c].src+")"}))}}),N(i),N(a),N(r),N(s),n.on("mouseenter mousemove",function(){n.hasClass("tp-mouseover")||(n.addClass("tp-mouseover"),punchgs.TweenLite.killDelayedCallsTo(j),d&&i.hide_onleave&&j(n.find(".tparrows"),i,"show"),p&&a.hide_onleave&&j(n.find(".tp-bullets"),a,"show"),l&&r.hide_onleave&&j(n.find(".tp-thumbs"),r,"show"),o&&s.hide_onleave&&j(n.find(".tp-tabs"),s,"show"),L&&(n.removeClass("tp-mouseover"),U(e,t)))}),n.on("mouseleave",function(){n.removeClass("tp-mouseover"),U(e,t)}),d&&i.hide_onleave&&j(n.find(".tparrows"),i,"hide",0),p&&a.hide_onleave&&j(n.find(".tp-bullets"),a,"hide",0),l&&r.hide_onleave&&j(n.find(".tp-thumbs"),r,"hide",0),o&&s.hide_onleave&&j(n.find(".tp-tabs"),s,"hide",0),l&&W(n.find(".tp-thumbs"),t),o&&W(n.find(".tp-tabs"),t),t.sliderType==="carousel"&&W(e,t,!0),(t.navigation.touch.touchOnDesktop==="on"||t.navigation.touch.touchenabled=="on"&&L)&&W(e,t,"swipebased")}});var H=function(e,t){var n=(e.hasClass("tp-thumbs"),e.hasClass("tp-thumbs")?".tp-thumb-mask":".tp-tab-mask"),i=e.hasClass("tp-thumbs")?".tp-thumbs-inner-wrapper":".tp-tabs-inner-wrapper",a=e.hasClass("tp-thumbs")?".tp-thumb":".tp-tab",r=e.find(n),s=r.find(i),d=t.direction,p=d==="vertical"?r.find(a).first().outerHeight(!0)+t.space:r.find(a).first().outerWidth(!0)+t.space,l=d==="vertical"?r.height():r.width(),o=parseInt(r.find(a+".selected").data("liindex"),0),g=l/p,v=d==="vertical"?r.height():r.width(),f=0-o*p,y=d==="vertical"?s.height():s.width(),c=f<0-(y-v)?0-(y-v):c>0?0:f,m=s.data("offset");g>2&&(c=f-(m+p)<=0?f-(m+p)<0-p?m:c+p:c,c=f-p+m+l<p&&f+(Math.round(g)-2)*p<m?f+(Math.round(g)-2)*p:c),c=c<0-(y-v)?0-(y-v):c>0?0:c,d!=="vertical"&&r.width()>=s.width()&&(c=0),d==="vertical"&&r.height()>=s.height()&&(c=0),e.hasClass("dragged")||(d==="vertical"?s.data("tmmove",punchgs.TweenLite.to(s,.5,{top:c+"px",ease:punchgs.Power3.easeInOut})):s.data("tmmove",punchgs.TweenLite.to(s,.5,{left:c+"px",ease:punchgs.Power3.easeInOut})),s.data("offset",c))},J=function(e,t,n,i,a,r){var s=n.parent().find(".tp-"+r+"s"),d=s.find(".tp-"+r+"s-inner-wrapper"),p=s.find(".tp-"+r+"-mask"),l=i.width*e<i.min_width?i.min_width:Math.round(i.width*e),o=Math.round(l/i.width*i.height),g=i.direction==="vertical"?l:l*a+i.space*(a-1),v=i.direction==="vertical"?o*a+i.space*(a-1):o,f=i.direction==="vertical"?{width:l+"px"}:{height:o+"px"};t.add(punchgs.TweenLite.set(s,f)),t.add(punchgs.TweenLite.set(d,{width:g+"px",height:v+"px"})),t.add(punchgs.TweenLite.set(p,{width:g+"px",height:v+"px"}));var y=d.find(".tp-"+r);return y&&jQuery.each(y,function(c,m){i.direction==="vertical"?t.add(punchgs.TweenLite.set(m,{top:c*(o+parseInt(i.space===void 0?0:i.space,0)),width:l+"px",height:o+"px"})):i.direction==="horizontal"&&t.add(punchgs.TweenLite.set(m,{left:c*(l+parseInt(i.space===void 0?0:i.space,0)),width:l+"px",height:o+"px"}))}),t},B=function(e){var t=0,n=0,i=0,a=0,r=1,s=1,d=1;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),i=t*r,a=n*r,"deltaY"in e&&(a=e.deltaY),"deltaX"in e&&(i=e.deltaX),(i||a)&&e.deltaMode&&(e.deltaMode==1?(i*=s,a*=s):(i*=d,a*=d)),i&&!t&&(t=i<1?-1:1),a&&!n&&(n=a<1?-1:1),a=navigator.userAgent.match(/mozilla/i)?10*a:a,(a>300||a<-300)&&(a/=10),{spinX:t,spinY:n,pixelX:i,pixelY:a}},A=function(e,t){t.navigation.keyboardNavigation==="on"&&jQuery(document).keydown(function(n){(t.navigation.keyboard_direction=="horizontal"&&n.keyCode==39||t.navigation.keyboard_direction=="vertical"&&n.keyCode==40)&&(t.sc_indicator="arrow",t.sc_indicator_dir=0,w.callingNewSlide(e,1)),(t.navigation.keyboard_direction=="horizontal"&&n.keyCode==37||t.navigation.keyboard_direction=="vertical"&&n.keyCode==38)&&(t.sc_indicator="arrow",t.sc_indicator_dir=1,w.callingNewSlide(e,-1))})},G=function(e,t){if(t.navigation.mouseScrollNavigation==="on"||t.navigation.mouseScrollNavigation==="carousel"){t.isIEEleven=!!navigator.userAgent.match(/Trident.*rv\:11\./),t.isSafari=!!navigator.userAgent.match(/safari/i),t.ischrome=!!navigator.userAgent.match(/chrome/i);var n=t.ischrome?-49:t.isIEEleven||t.isSafari?-9:navigator.userAgent.match(/mozilla/i)?-29:-49,i=t.ischrome?49:t.isIEEleven||t.isSafari?9:navigator.userAgent.match(/mozilla/i)?29:49;e.on("mousewheel DOMMouseScroll",function(a){var r=B(a.originalEvent),s=e.find(".tp-revslider-slidesli.active-revslide").index(),d=e.find(".tp-revslider-slidesli.processing-revslide").index(),p=s!=-1&&s==0||d!=-1&&d==0,l=s!=-1&&s==t.slideamount-1||d!=1&&d==t.slideamount-1,o=!0;t.navigation.mouseScrollNavigation=="carousel"&&(p=l=!1),d==-1?r.pixelY<n?(p||(t.sc_indicator="arrow",t.navigation.mouseScrollReverse!=="reverse"&&(t.sc_indicator_dir=1,w.callingNewSlide(e,-1)),o=!1),l||(t.sc_indicator="arrow",t.navigation.mouseScrollReverse==="reverse"&&(t.sc_indicator_dir=0,w.callingNewSlide(e,1)),o=!1)):r.pixelY>i&&(l||(t.sc_indicator="arrow",t.navigation.mouseScrollReverse!=="reverse"&&(t.sc_indicator_dir=0,w.callingNewSlide(e,1)),o=!1),p||(t.sc_indicator="arrow",t.navigation.mouseScrollReverse==="reverse"&&(t.sc_indicator_dir=1,w.callingNewSlide(e,-1)),o=!1)):o=!1;var g=t.c.offset().top-jQuery("body").scrollTop(),v=g+t.c.height();return t.navigation.mouseScrollNavigation!="carousel"?(t.navigation.mouseScrollReverse!=="reverse"&&(g>0&&r.pixelY>0||v<jQuery(window).height()&&r.pixelY<0)&&(o=!0),t.navigation.mouseScrollReverse==="reverse"&&(g<0&&r.pixelY<0||v>jQuery(window).height()&&r.pixelY>0)&&(o=!0)):o=!1,o==0?(a.preventDefault(a),!1):void 0})}},E=function(e,t,n){return e=L?jQuery(n.target).closest("."+e).length||jQuery(n.srcElement).closest("."+e).length:jQuery(n.toElement).closest("."+e).length||jQuery(n.originalTarget).closest("."+e).length,e===!0||e===1?1:0},W=function(e,t,n){var i=t.carousel;jQuery(".bullet, .bullets, .tp-bullets, .tparrows").addClass("noSwipe"),i.Limit="endless";var a=(L||w.get_browser(),e),r=t.navigation.thumbnails.direction==="vertical"||t.navigation.tabs.direction==="vertical"?"none":"vertical",s=t.navigation.touch.swipe_direction||"horizontal";r=n=="swipebased"&&s=="vertical"?"none":n?"vertical":r,jQuery.fn.swipetp||(jQuery.fn.swipetp=jQuery.fn.swipe),jQuery.fn.swipetp.defaults&&jQuery.fn.swipetp.defaults.excludedElements||jQuery.fn.swipetp.defaults||(jQuery.fn.swipetp.defaults=new Object),jQuery.fn.swipetp.defaults.excludedElements="label, button, input, select, textarea, .noSwipe",a.swipetp({allowPageScroll:r,triggerOnTouchLeave:!0,treshold:t.navigation.touch.swipe_treshold,fingers:t.navigation.touch.swipe_min_touches,excludeElements:jQuery.fn.swipetp.defaults.excludedElements,swipeStatus:function(d,p,l,o,g,v,f){var y=E("rev_slider_wrapper",e,d),c=E("tp-thumbs",e,d),m=E("tp-tabs",e,d),x=jQuery(this).attr("class"),S=!!x.match(/tp-tabs|tp-thumb/gi);if(t.sliderType==="carousel"&&((p==="move"||p==="end"||p=="cancel")&&t.dragStartedOverSlider&&!t.dragStartedOverThumbs&&!t.dragStartedOverTabs||p==="start"&&y>0&&c===0&&m===0)){if(L&&(l==="up"||l==="down"))return;switch(t.dragStartedOverSlider=!0,o=l&&l.match(/left|up/g)?Math.round(-1*o):o=Math.round(1*o),p){case"start":i.positionanim!==void 0&&(i.positionanim.kill(),i.slide_globaloffset=i.infinity==="off"?i.slide_offset:w.simp(i.slide_offset,i.maxwidth)),i.overpull="none",i.wrap.addClass("dragged");break;case"move":if(t.c.find(".tp-withaction").addClass("tp-temporarydisabled"),i.slide_offset=i.infinity==="off"?i.slide_globaloffset+o:w.simp(i.slide_globaloffset+o,i.maxwidth),i.infinity==="off"){var _=i.horizontal_align==="center"?(i.wrapwidth/2-i.slide_width/2-i.slide_offset)/i.slide_width:(0-i.slide_offset)/i.slide_width;i.overpull!=="none"&&i.overpull!==0||!(_<0||_>t.slideamount-1)?_>=0&&_<=t.slideamount-1&&(_>=0&&o>i.overpull||_<=t.slideamount-1&&o<i.overpull)&&(i.overpull=0):i.overpull=o,i.slide_offset=_<0?i.slide_offset+(i.overpull-o)/1.1+Math.sqrt(Math.abs((i.overpull-o)/1.1)):_>t.slideamount-1?i.slide_offset+(i.overpull-o)/1.1-Math.sqrt(Math.abs((i.overpull-o)/1.1)):i.slide_offset}w.organiseCarousel(t,l,!0,!0);break;case"end":case"cancel":i.slide_globaloffset=i.slide_offset,i.wrap.removeClass("dragged"),w.carouselToEvalPosition(t,l),t.dragStartedOverSlider=!1,t.dragStartedOverThumbs=!1,t.dragStartedOverTabs=!1,setTimeout(function(){t.c.find(".tp-withaction").removeClass("tp-temporarydisabled")},19)}}else{if((p!=="move"&&p!=="end"&&p!="cancel"||t.dragStartedOverSlider||!t.dragStartedOverThumbs&&!t.dragStartedOverTabs)&&!(p==="start"&&y>0&&(c>0||m>0))){if(p=="end"&&!S){if(t.sc_indicator="arrow",s=="horizontal"&&l=="left"||s=="vertical"&&l=="up")return t.sc_indicator_dir=0,w.callingNewSlide(t.c,1),!1;if(s=="horizontal"&&l=="right"||s=="vertical"&&l=="down")return t.sc_indicator_dir=1,w.callingNewSlide(t.c,-1),!1}return t.dragStartedOverSlider=!1,t.dragStartedOverThumbs=!1,t.dragStartedOverTabs=!1,!0}c>0&&(t.dragStartedOverThumbs=!0),m>0&&(t.dragStartedOverTabs=!0);var I=t.dragStartedOverThumbs?".tp-thumbs":".tp-tabs",P=t.dragStartedOverThumbs?".tp-thumb-mask":".tp-tab-mask",X=t.dragStartedOverThumbs?".tp-thumbs-inner-wrapper":".tp-tabs-inner-wrapper",q=t.dragStartedOverThumbs?".tp-thumb":".tp-tab",k=t.dragStartedOverThumbs?t.navigation.thumbnails:t.navigation.tabs;o=l&&l.match(/left|up/g)?Math.round(-1*o):o=Math.round(1*o);var b=e.parent().find(P),u=b.find(X),C=k.direction,et=C==="vertical"?u.height():u.width(),it=C==="vertical"?b.height():b.width(),O=C==="vertical"?b.find(q).first().outerHeight(!0)+k.space:b.find(q).first().outerWidth(!0)+k.space,z=u.data("offset")===void 0?0:parseInt(u.data("offset"),0),h=0;switch(p){case"start":e.parent().find(I).addClass("dragged"),z=C==="vertical"?u.position().top:u.position().left,u.data("offset",z),u.data("tmmove")&&u.data("tmmove").pause();break;case"move":if(et<=it)return!1;h=z+o,h=h>0?C==="horizontal"?h-u.width()*(h/u.width()*h/u.width()):h-u.height()*(h/u.height()*h/u.height()):h;var M=C==="vertical"?0-(u.height()-b.height()):0-(u.width()-b.width());h=h<M?C==="horizontal"?h+u.width()*(h-M)/u.width()*(h-M)/u.width():h+u.height()*(h-M)/u.height()*(h-M)/u.height():h,C==="vertical"?punchgs.TweenLite.set(u,{top:h+"px"}):punchgs.TweenLite.set(u,{left:h+"px"});break;case"end":case"cancel":if(S)return h=z+o,h=C==="vertical"?h<0-(u.height()-b.height())?0-(u.height()-b.height()):h:h<0-(u.width()-b.width())?0-(u.width()-b.width()):h,h=h>0?0:h,h=Math.abs(o)>O/10?o<=0?Math.floor(h/O)*O:Math.ceil(h/O)*O:o<0?Math.ceil(h/O)*O:Math.floor(h/O)*O,h=C==="vertical"?h<0-(u.height()-b.height())?0-(u.height()-b.height()):h:h<0-(u.width()-b.width())?0-(u.width()-b.width()):h,h=h>0?0:h,C==="vertical"?punchgs.TweenLite.to(u,.5,{top:h+"px",ease:punchgs.Power3.easeOut}):punchgs.TweenLite.to(u,.5,{left:h+"px",ease:punchgs.Power3.easeOut}),h=h||(C==="vertical"?u.position().top:u.position().left),u.data("offset",h),u.data("distance",o),setTimeout(function(){t.dragStartedOverSlider=!1,t.dragStartedOverThumbs=!1,t.dragStartedOverTabs=!1},100),e.parent().find(I).removeClass("dragged"),!1}}}})},N=function(e){e.hide_delay=jQuery.isNumeric(parseInt(e.hide_delay,0))?e.hide_delay/1e3:.2,e.hide_delay_mobile=jQuery.isNumeric(parseInt(e.hide_delay_mobile,0))?e.hide_delay_mobile/1e3:.2},T=function(e){return e&&e.enable},Y=function(e){return e&&e.enable&&e.hide_onleave===!0&&(e.position===void 0||!e.position.match(/outer/g))},U=function(e,t){var n=e.parent();Y(t.navigation.arrows)&&punchgs.TweenLite.delayedCall(L?t.navigation.arrows.hide_delay_mobile:t.navigation.arrows.hide_delay,j,[n.find(".tparrows"),t.navigation.arrows,"hide"]),Y(t.navigation.bullets)&&punchgs.TweenLite.delayedCall(L?t.navigation.bullets.hide_delay_mobile:t.navigation.bullets.hide_delay,j,[n.find(".tp-bullets"),t.navigation.bullets,"hide"]),Y(t.navigation.thumbnails)&&punchgs.TweenLite.delayedCall(L?t.navigation.thumbnails.hide_delay_mobile:t.navigation.thumbnails.hide_delay,j,[n.find(".tp-thumbs"),t.navigation.thumbnails,"hide"]),Y(t.navigation.tabs)&&punchgs.TweenLite.delayedCall(L?t.navigation.tabs.hide_delay_mobile:t.navigation.tabs.hide_delay,j,[n.find(".tp-tabs"),t.navigation.tabs,"hide"])},j=function(e,t,n,i){switch(i=i===void 0?.5:i,n){case"show":punchgs.TweenLite.to(e,i,{autoAlpha:1,ease:punchgs.Power3.easeInOut,overwrite:"auto"});break;case"hide":punchgs.TweenLite.to(e,i,{autoAlpha:0,ease:punchgs.Power3.easeInOu,overwrite:"auto"})}},tt=function(e,t,n){t.style=t.style===void 0?"":t.style,t.left.style=t.left.style===void 0?"":t.left.style,t.right.style=t.right.style===void 0?"":t.right.style,e.find(".tp-leftarrow.tparrows").length===0&&e.append('<div class="tp-leftarrow tparrows '+t.style+" "+t.left.style+'">'+t.tmp+"</div>"),e.find(".tp-rightarrow.tparrows").length===0&&e.append('<div class="tp-rightarrow tparrows '+t.style+" "+t.right.style+'">'+t.tmp+"</div>");var i=e.find(".tp-leftarrow.tparrows"),a=e.find(".tp-rightarrow.tparrows");t.rtl?(i.click(function(){n.sc_indicator="arrow",n.sc_indicator_dir=0,e.revnext()}),a.click(function(){n.sc_indicator="arrow",n.sc_indicator_dir=1,e.revprev()})):(a.click(function(){n.sc_indicator="arrow",n.sc_indicator_dir=0,e.revnext()}),i.click(function(){n.sc_indicator="arrow",n.sc_indicator_dir=1,e.revprev()})),t.right.j=e.find(".tp-rightarrow.tparrows"),t.left.j=e.find(".tp-leftarrow.tparrows"),t.padding_top=parseInt(n.carousel.padding_top||0,0),t.padding_bottom=parseInt(n.carousel.padding_bottom||0,0),Q(i,t.left,n),Q(a,t.right,n),t.left.opt=n,t.right.opt=n,t.position!="outer-left"&&t.position!="outer-right"||(n.outernav=!0)},Z=function(e,t,n){var i=e.outerHeight(!0),a=(e.outerWidth(!0),t.opt==null?0:n.conh==0?n.height:n.conh),r=t.container=="layergrid"?n.sliderLayout=="fullscreen"?n.height/2-n.gridheight[n.curWinRange]*n.bh/2:n.autoHeight=="on"||n.minHeight!=null&&n.minHeight>0?a/2-n.gridheight[n.curWinRange]*n.bh/2:0:0,s=t.v_align==="top"?{top:"0px",y:Math.round(t.v_offset+r)+"px"}:t.v_align==="center"?{top:"50%",y:Math.round(0-i/2+t.v_offset)+"px"}:{top:"100%",y:Math.round(0-(i+t.v_offset+r))+"px"};e.hasClass("outer-bottom")||punchgs.TweenLite.set(e,s)},K=function(e,t,n){var i=(e.outerHeight(!0),e.outerWidth(!0)),a=t.container=="layergrid"?n.sliderType==="carousel"?0:n.width/2-n.gridwidth[n.curWinRange]*n.bw/2:0,r=t.h_align==="left"?{left:"0px",x:Math.round(t.h_offset+a)+"px"}:t.h_align==="center"?{left:"50%",x:Math.round(0-i/2+t.h_offset)+"px"}:{left:"100%",x:Math.round(0-(i+t.h_offset+a))+"px"};punchgs.TweenLite.set(e,r)},Q=function(e,t,n){var i=e.closest(".tp-simpleresponsive").length>0?e.closest(".tp-simpleresponsive"):e.closest(".tp-revslider-mainul").length>0?e.closest(".tp-revslider-mainul"):e.closest(".rev_slider_wrapper").length>0?e.closest(".rev_slider_wrapper"):e.parent().find(".tp-revslider-mainul"),a=i.width(),r=i.height();if(Z(e,t,n),K(e,t,n),t.position!=="outer-left"||t.sliderLayout!="fullwidth"&&t.sliderLayout!="fullscreen"?t.position!=="outer-right"||t.sliderLayout!="fullwidth"&&t.sliderLayout!="fullscreen"||punchgs.TweenLite.set(e,{right:0-e.outerWidth()+"px",x:t.h_offset+"px"}):punchgs.TweenLite.set(e,{left:0-e.outerWidth()+"px",x:t.h_offset+"px"}),e.hasClass("tp-thumbs")||e.hasClass("tp-tabs")){var s=e.data("wr_padding"),d=e.data("maxw"),p=e.data("maxh"),l=e.hasClass("tp-thumbs")?e.find(".tp-thumb-mask"):e.find(".tp-tab-mask"),o=parseInt(t.padding_top||0,0),g=parseInt(t.padding_bottom||0,0);d>a&&t.position!=="outer-left"&&t.position!=="outer-right"?(punchgs.TweenLite.set(e,{left:"0px",x:0,maxWidth:a-2*s+"px"}),punchgs.TweenLite.set(l,{maxWidth:a-2*s+"px"})):(punchgs.TweenLite.set(e,{maxWidth:d+"px"}),punchgs.TweenLite.set(l,{maxWidth:d+"px"})),p+2*s>r&&t.position!=="outer-bottom"&&t.position!=="outer-top"?(punchgs.TweenLite.set(e,{top:"0px",y:0,maxHeight:o+g+(r-2*s)+"px"}),punchgs.TweenLite.set(l,{maxHeight:o+g+(r-2*s)+"px"})):(punchgs.TweenLite.set(e,{maxHeight:p+"px"}),punchgs.TweenLite.set(l,{maxHeight:p+"px"})),t.position!=="outer-left"&&t.position!=="outer-right"&&(o=0,g=0),t.span===!0&&t.direction==="vertical"?(punchgs.TweenLite.set(e,{maxHeight:o+g+(r-2*s)+"px",height:o+g+(r-2*s)+"px",top:0-o,y:0}),Z(l,t,n)):t.span===!0&&t.direction==="horizontal"&&(punchgs.TweenLite.set(e,{maxWidth:"100%",width:a-2*s+"px",left:0,x:0}),K(l,t,n))}},V=function(e,t,n,i){e.find(".tp-bullets").length===0&&(t.style=t.style===void 0?"":t.style,e.append('<div class="tp-bullets '+t.style+" "+t.direction+'"></div>'));var a=e.find(".tp-bullets"),r=n.data("index"),s=t.tmp;jQuery.each(i.thumbs[n.index()].params,function(g,v){s=s.replace(v.from,v.to)}),a.append('<div class="justaddedbullet tp-bullet">'+s+"</div>");var d=e.find(".justaddedbullet"),p=e.find(".tp-bullet").length,l=d.outerWidth()+parseInt(t.space===void 0?0:t.space,0),o=d.outerHeight()+parseInt(t.space===void 0?0:t.space,0);t.direction==="vertical"?(d.css({top:(p-1)*o+"px",left:"0px"}),a.css({height:(p-1)*o+d.outerHeight(),width:d.outerWidth()})):(d.css({left:(p-1)*l+"px",top:"0px"}),a.css({width:(p-1)*l+d.outerWidth(),height:d.outerHeight()})),d.find(".tp-bullet-image").css({backgroundImage:"url("+i.thumbs[n.index()].src+")"}),d.data("liref",r),d.click(function(){i.sc_indicator="bullet",e.revcallslidewithid(r),e.find(".tp-bullet").removeClass("selected"),jQuery(this).addClass("selected")}),d.removeClass("justaddedbullet"),t.padding_top=parseInt(i.carousel.padding_top||0,0),t.padding_bottom=parseInt(i.carousel.padding_bottom||0,0),t.opt=i,t.position!="outer-left"&&t.position!="outer-right"||(i.outernav=!0),a.addClass("nav-pos-hor-"+t.h_align),a.addClass("nav-pos-ver-"+t.v_align),a.addClass("nav-dir-"+t.direction),Q(a,t,i)},D=function(e,t,n,i,a){var r=i==="tp-thumb"?".tp-thumbs":".tp-tabs",s=i==="tp-thumb"?".tp-thumb-mask":".tp-tab-mask",d=i==="tp-thumb"?".tp-thumbs-inner-wrapper":".tp-tabs-inner-wrapper",p=i==="tp-thumb"?".tp-thumb":".tp-tab",l=i==="tp-thumb"?".tp-thumb-image":".tp-tab-image";if(t.visibleAmount=t.visibleAmount>a.slideamount?a.slideamount:t.visibleAmount,t.sliderLayout=a.sliderLayout,e.parent().find(r).length===0){t.style=t.style===void 0?"":t.style;var o=t.span===!0?"tp-span-wrapper":"",g='<div class="'+i+"s "+o+" "+t.position+" "+t.style+'"><div class="'+i+'-mask"><div class="'+i+'s-inner-wrapper" style="position:relative;"></div></div></div>';t.position==="outer-top"?e.parent().prepend(g):t.position==="outer-bottom"?e.after(g):e.append(g),t.padding_top=parseInt(a.carousel.padding_top||0,0),t.padding_bottom=parseInt(a.carousel.padding_bottom||0,0),t.position!="outer-left"&&t.position!="outer-right"||(a.outernav=!0)}var v=n.data("index"),f=e.parent().find(r),y=f.find(s),c=y.find(d),m=t.direction==="horizontal"?t.width*t.visibleAmount+t.space*(t.visibleAmount-1):t.width,x=t.direction==="horizontal"?t.height:t.height*t.visibleAmount+t.space*(t.visibleAmount-1),S=t.tmp;jQuery.each(a.thumbs[n.index()].params,function(k,b){S=S.replace(b.from,b.to)}),c.append('<div data-liindex="'+n.index()+'" data-liref="'+v+'" class="justaddedthumb '+i+'" style="width:'+t.width+"px;height:"+t.height+'px;">'+S+"</div>");var _=f.find(".justaddedthumb"),I=f.find(p).length,P=_.outerWidth()+parseInt(t.space===void 0?0:t.space,0),X=_.outerHeight()+parseInt(t.space===void 0?0:t.space,0);_.find(l).css({backgroundImage:"url("+a.thumbs[n.index()].src+")"}),t.direction==="vertical"?(_.css({top:(I-1)*X+"px",left:"0px"}),c.css({height:(I-1)*X+_.outerHeight(),width:_.outerWidth()})):(_.css({left:(I-1)*P+"px",top:"0px"}),c.css({width:(I-1)*P+_.outerWidth(),height:_.outerHeight()})),f.data("maxw",m),f.data("maxh",x),f.data("wr_padding",t.wrapper_padding);var q=t.position==="outer-top"||t.position==="outer-bottom"?"relative":"absolute";t.position!=="outer-top"&&t.position!=="outer-bottom"||t.h_align,y.css({maxWidth:m+"px",maxHeight:x+"px",overflow:"hidden",position:"relative"}),f.css({maxWidth:m+"px",maxHeight:x+"px",overflow:"visible",position:q,background:t.wrapper_color,padding:t.wrapper_padding+"px",boxSizing:"contet-box"}),_.click(function(){a.sc_indicator="bullet";var k=e.parent().find(d).data("distance");k=k===void 0?0:k,Math.abs(k)<10&&(e.revcallslidewithid(v),e.parent().find(r).removeClass("selected"),jQuery(this).addClass("selected"))}),_.removeClass("justaddedthumb"),t.opt=a,f.addClass("nav-pos-hor-"+t.h_align),f.addClass("nav-pos-ver-"+t.v_align),f.addClass("nav-dir-"+t.direction),Q(f,t,a)},$=function(e){var t=e.c.parent().find(".outer-top"),n=e.c.parent().find(".outer-bottom");e.top_outer=t.hasClass("tp-forcenotvisible")?0:t.outerHeight()||0,e.bottom_outer=n.hasClass("tp-forcenotvisible")?0:n.outerHeight()||0},R=function(e,t,n,i){t>n||n>i?e.addClass("tp-forcenotvisible"):e.removeClass("tp-forcenotvisible")}})(jQuery);