function revslider_showDoubleJqueryError(n){var t="Revolution Slider Error: You have some jquery.js library include that comes after the revolution files js include.";t+="<br> This includes make eliminates the revolution slider libraries, and make it not work.";t+="<br><br> To fix it you can:<br>&nbsp;&nbsp;&nbsp; 1. In the Slider Settings -> Troubleshooting set option:  <strong><b>Put JS Includes To Body<\/b><\/strong> option to true.";t+="<br>&nbsp;&nbsp;&nbsp; 2. Find the double jquery.js include and remove it.";t="<span style='font-size:16px;color:#BC0C06;'>"+t+"<\/span>";jQuery(n).show().html(t)}function onYouTubePlayerAPIReady(){ytp.YTAPIReady||(ytp.YTAPIReady=!0,jQuery(document).trigger("YTAPIReady"))}var console,oldgs,punchgs,_gsScope,ytp;if($(function(){var n=$(".ndot-tabs-active");(n==null||n==undefined||n.length==0)&&$(".ndot-tabs").children().first().addClass("ndot-tabs-active");n.length>1&&(n.each(function(){$(this).removeClass("ndot-tabs-active")}),$(".ndot-tabs").children().first().addClass("ndot-tabs-active"));$(".ndot-tabs").find("a").each(function(){$(this).parent().hasClass("ndot-tabs-active")||$($(this).attr("href")).hide();$(this).click(function(n){var t,i,r;n.preventDefault();t=$(".ndot-tabs-active");t.removeClass("ndot-tabs-active");i=t.find("a").attr("href");$(i).hide();$(".email-sent").hide();r=$(this).attr("href");$(r).fadeIn("slow");$(this).parent().addClass("ndot-tabs-active")})})}),jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(n,t,i,r,u){return jQuery.easing[jQuery.easing.def](n,t,i,r,u)},easeInQuad:function(n,t,i,r,u){return r*(t/=u)*t+i},easeOutQuad:function(n,t,i,r,u){return-r*(t/=u)*(t-2)+i},easeInOutQuad:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t+i:-r/2*(--t*(t-2)-1)+i},easeInCubic:function(n,t,i,r,u){return r*(t/=u)*t*t+i},easeOutCubic:function(n,t,i,r,u){return r*((t=t/u-1)*t*t+1)+i},easeInOutCubic:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t+i:r/2*((t-=2)*t*t+2)+i},easeInQuart:function(n,t,i,r,u){return r*(t/=u)*t*t*t+i},easeOutQuart:function(n,t,i,r,u){return-r*((t=t/u-1)*t*t*t-1)+i},easeInOutQuart:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t*t+i:-r/2*((t-=2)*t*t*t-2)+i},easeInQuint:function(n,t,i,r,u){return r*(t/=u)*t*t*t*t+i},easeOutQuint:function(n,t,i,r,u){return r*((t=t/u-1)*t*t*t*t+1)+i},easeInOutQuint:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t*t*t+i:r/2*((t-=2)*t*t*t*t+2)+i},easeInSine:function(n,t,i,r,u){return-r*Math.cos(t/u*(Math.PI/2))+r+i},easeOutSine:function(n,t,i,r,u){return r*Math.sin(t/u*(Math.PI/2))+i},easeInOutSine:function(n,t,i,r,u){return-r/2*(Math.cos(Math.PI*t/u)-1)+i},easeInExpo:function(n,t,i,r,u){return t==0?i:r*Math.pow(2,10*(t/u-1))+i},easeOutExpo:function(n,t,i,r,u){return t==u?i+r:r*(-Math.pow(2,-10*t/u)+1)+i},easeInOutExpo:function(n,t,i,r,u){return t==0?i:t==u?i+r:(t/=u/2)<1?r/2*Math.pow(2,10*(t-1))+i:r/2*(-Math.pow(2,-10*--t)+2)+i},easeInCirc:function(n,t,i,r,u){return-r*(Math.sqrt(1-(t/=u)*t)-1)+i},easeOutCirc:function(n,t,i,r,u){return r*Math.sqrt(1-(t=t/u-1)*t)+i},easeInOutCirc:function(n,t,i,r,u){return(t/=u/2)<1?-r/2*(Math.sqrt(1-t*t)-1)+i:r/2*(Math.sqrt(1-(t-=2)*t)+1)+i},easeInElastic:function(n,t,i,r,u){var f=1.70158,e=0,o=r;return t==0?i:(t/=u)==1?i+r:(e||(e=u*.3),o<Math.abs(r)?(o=r,f=e/4):f=e/(2*Math.PI)*Math.asin(r/o),-(o*Math.pow(2,10*(t-=1))*Math.sin((t*u-f)*2*Math.PI/e))+i)},easeOutElastic:function(n,t,i,r,u){var f=1.70158,e=0,o=r;return t==0?i:(t/=u)==1?i+r:(e||(e=u*.3),o<Math.abs(r)?(o=r,f=e/4):f=e/(2*Math.PI)*Math.asin(r/o),o*Math.pow(2,-10*t)*Math.sin((t*u-f)*2*Math.PI/e)+r+i)},easeInOutElastic:function(n,t,i,r,u){var f=1.70158,e=0,o=r;return t==0?i:(t/=u/2)==2?i+r:(e||(e=u*.3*1.5),o<Math.abs(r)?(o=r,f=e/4):f=e/(2*Math.PI)*Math.asin(r/o),t<1)?-.5*o*Math.pow(2,10*(t-=1))*Math.sin((t*u-f)*2*Math.PI/e)+i:o*Math.pow(2,-10*(t-=1))*Math.sin((t*u-f)*2*Math.PI/e)*.5+r+i},easeInBack:function(n,t,i,r,u,f){return f==undefined&&(f=1.70158),r*(t/=u)*t*((f+1)*t-f)+i},easeOutBack:function(n,t,i,r,u,f){return f==undefined&&(f=1.70158),r*((t=t/u-1)*t*((f+1)*t+f)+1)+i},easeInOutBack:function(n,t,i,r,u,f){return(f==undefined&&(f=1.70158),(t/=u/2)<1)?r/2*t*t*(((f*=1.525)+1)*t-f)+i:r/2*((t-=2)*t*(((f*=1.525)+1)*t+f)+2)+i},easeInBounce:function(n,t,i,r,u){return r-jQuery.easing.easeOutBounce(n,u-t,0,r,u)+i},easeOutBounce:function(n,t,i,r,u){return(t/=u)<1/2.75?r*7.5625*t*t+i:t<2/2.75?r*(7.5625*(t-=1.5/2.75)*t+.75)+i:t<2.5/2.75?r*(7.5625*(t-=2.25/2.75)*t+.9375)+i:r*(7.5625*(t-=2.625/2.75)*t+.984375)+i},easeInOutBounce:function(n,t,i,r,u){return t<u/2?jQuery.easing.easeInBounce(n,t*2,0,r,u)*.5+i:jQuery.easing.easeOutBounce(n,t*2-u,0,r,u)*.5+r*.5+i}}),function(n){var u={topSpacing:0,bottomSpacing:0,className:"is-sticky",wrapperClassName:"sticky-wrapper",center:!1,getWidthFrom:""},f=n(window),s=n(document),t=[],e=f.height(),r=function(){for(var u=f.scrollTop(),h=s.height(),c=h-e,l=u>c?c-u:0,r,o=0;o<t.length;o++){var i=t[o],a=i.stickyWrapper.offset().top,v=a-i.topSpacing-l;u<=v?i.currentTop!==null&&(i.stickyElement.css("position","").css("top",""),i.stickyElement.parent().removeClass(i.className),i.currentTop=null):(r=h-i.stickyElement.outerHeight()-i.topSpacing-i.bottomSpacing-u-l,r=r<0?r+i.topSpacing:i.topSpacing,i.currentTop!=r&&(i.stickyElement.css("position","fixed").css("top",r),typeof i.getWidthFrom!="undefined"&&i.stickyElement.css("width",n(i.getWidthFrom).width()),i.stickyElement.parent().addClass(i.className),i.currentTop=r))}},o=function(){e=f.height()},i={init:function(i){var r=n.extend({},u,i);return this.each(function(){var i=n(this),f=i.attr("id"),s=f?f+"-"+u.wrapperClassName:u.wrapperClassName,o=n("<div><\/div>").attr("id",f+"-sticky-wrapper").addClass(r.wrapperClassName),e;i.wrapAll(o);r.center&&i.parent().css({width:i.outerWidth(),marginLeft:"auto",marginRight:"auto"});i.css("float")=="right"&&i.css({float:"none"}).parent().css({float:"right"});e=i.parent();e.css("height",i.outerHeight());t.push({topSpacing:r.topSpacing,bottomSpacing:r.bottomSpacing,stickyElement:i,currentTop:null,stickyWrapper:e,className:r.className,getWidthFrom:r.getWidthFrom})})},update:r,unstick:function(){return this.each(function(){for(var r=n(this),u=-1,i=0;i<t.length;i++)t[i].stickyElement.get(0)==r.get(0)&&(u=i);u!=-1&&(t.splice(u,1),r.unwrap(),r.removeAttr("style"))})}};window.addEventListener?(window.addEventListener("scroll",r,!1),window.addEventListener("resize",o,!1)):window.attachEvent&&(window.attachEvent("onscroll",r),window.attachEvent("onresize",o));n.fn.sticky=function(t){if(i[t])return i[t].apply(this,Array.prototype.slice.call(arguments,1));if(typeof t!="object"&&t)n.error("Method "+t+" does not exist on jQuery.sticky");else return i.init.apply(this,arguments)};n.fn.unstick=function(t){if(i[t])return i[t].apply(this,Array.prototype.slice.call(arguments,1));if(typeof t!="object"&&t)n.error("Method "+t+" does not exist on jQuery.sticky");else return i.unstick.apply(this,arguments)};n(function(){setTimeout(r,0)})}(jQuery),function(n){n.flexslider=function(t,i){var r=n(t);r.vars=n.extend({},n.flexslider.defaults,i);var f=r.vars.namespace,v=window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture,y=("ontouchstart"in window||v||window.DocumentTouch&&document instanceof DocumentTouch)&&r.vars.touch,a="click touchend MSPointerUp",s="",p,h=r.vars.direction==="vertical",o=r.vars.reverse,e=r.vars.itemWidth>0,c=r.vars.animation==="fade",l=r.vars.asNavFor!=="",u={},w=!0;n.data(t,"flexslider",r);u={init:function(){r.animating=!1;r.currentSlide=parseInt(r.vars.startAt?r.vars.startAt:0);isNaN(r.currentSlide)&&(r.currentSlide=0);r.animatingTo=r.currentSlide;r.atEnd=r.currentSlide===0||r.currentSlide===r.last;r.containerSelector=r.vars.selector.substr(0,r.vars.selector.search(" "));r.slides=n(r.vars.selector,r);r.container=n(r.containerSelector,r);r.count=r.slides.length;r.syncExists=n(r.vars.sync).length>0;r.vars.animation==="slide"&&(r.vars.animation="swing");r.prop=h?"top":"marginLeft";r.args={};r.manualPause=!1;r.stopped=!1;r.started=!1;r.startTimeout=null;r.transitions=!r.vars.video&&!c&&r.vars.useCSS&&function(){var i=document.createElement("div"),n=["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"],t;for(t in n)if(i.style[n[t]]!==undefined)return r.pfx=n[t].replace("Perspective","").toLowerCase(),r.prop="-"+r.pfx+"-transform",!0;return!1}();r.vars.controlsContainer!==""&&(r.controlsContainer=n(r.vars.controlsContainer).length>0&&n(r.vars.controlsContainer));r.vars.manualControls!==""&&(r.manualControls=n(r.vars.manualControls).length>0&&n(r.vars.manualControls));r.vars.randomize&&(r.slides.sort(function(){return Math.round(Math.random())-.5}),r.container.empty().append(r.slides));r.doMath();r.setup("init");r.vars.controlNav&&u.controlNav.setup();r.vars.directionNav&&u.directionNav.setup();r.vars.keyboard&&(n(r.containerSelector).length===1||r.vars.multipleKeyboard)&&n(document).bind("keyup",function(n){var t=n.keyCode,i;r.animating||t!==39&&t!==37||(i=t===39?r.getTarget("next"):t===37?r.getTarget("prev"):!1,r.flexAnimate(i,r.vars.pauseOnAction))});r.vars.mousewheel&&r.bind("mousewheel",function(n,t){n.preventDefault();var i=t<0?r.getTarget("next"):r.getTarget("prev");r.flexAnimate(i,r.vars.pauseOnAction)});r.vars.pausePlay&&u.pausePlay.setup();r.vars.slideshow&&r.vars.pauseInvisible&&u.pauseInvisible.init();r.vars.slideshow&&(r.vars.pauseOnHover&&r.hover(function(){r.manualPlay||r.manualPause||r.pause()},function(){r.manualPause||r.manualPlay||r.stopped||r.play()}),r.vars.pauseInvisible&&u.pauseInvisible.isHidden()||(r.vars.initDelay>0?r.startTimeout=setTimeout(r.play,r.vars.initDelay):r.play()));l&&u.asNav.setup();y&&r.vars.touch&&u.touch();(!c||c&&r.vars.smoothHeight)&&n(window).bind("resize orientationchange focus",u.resize);r.find("img").attr("draggable","false");setTimeout(function(){r.vars.start(r)},200)},asNav:{setup:function(){r.asNav=!0;r.animatingTo=Math.floor(r.currentSlide/r.move);r.currentItem=r.currentSlide;r.slides.removeClass(f+"active-slide").eq(r.currentItem).addClass(f+"active-slide");v?(t._slider=r,r.slides.each(function(){var t=this;t._gesture=new MSGesture;t._gesture.target=t;t.addEventListener("MSPointerDown",function(n){n.preventDefault();n.currentTarget._gesture&&n.currentTarget._gesture.addPointer(n.pointerId)},!1);t.addEventListener("MSGestureTap",function(t){t.preventDefault();var i=n(this),u=i.index();n(r.vars.asNavFor).data("flexslider").animating||i.hasClass("active")||(r.direction=r.currentItem<u?"next":"prev",r.flexAnimate(u,r.vars.pauseOnAction,!1,!0,!0))})})):r.slides.click(function(t){t.preventDefault();var i=n(this),u=i.index(),e=i.offset().left-n(r).scrollLeft();e<=0&&i.hasClass(f+"active-slide")?r.flexAnimate(r.getTarget("prev"),!0):n(r.vars.asNavFor).data("flexslider").animating||i.hasClass(f+"active-slide")||(r.direction=r.currentItem<u?"next":"prev",r.flexAnimate(u,r.vars.pauseOnAction,!1,!0,!0))})}},controlNav:{setup:function(){r.manualControls?u.controlNav.setupManual():u.controlNav.setupPaging()},setupPaging:function(){var c=r.vars.controlNav==="thumbnails"?"control-thumbs":"control-paging",h=1,e,o,t,i;if(r.controlNavScaffold=n('<ol class="'+f+"control-nav "+f+c+'"><\/ol>'),r.pagingCount>1)for(t=0;t<r.pagingCount;t++)o=r.slides.eq(t),e=r.vars.controlNav==="thumbnails"?'<img src="'+o.attr("data-thumb")+'"/>':"<a>"+h+"<\/a>","thumbnails"===r.vars.controlNav&&!0===r.vars.thumbCaptions&&(i=o.attr("data-thumbcaption"),""!=i&&undefined!=i&&(e+='<span class="'+f+'caption">'+i+"<\/span>")),r.controlNavScaffold.append("<li>"+e+"<\/li>"),h++;r.controlsContainer?n(r.controlsContainer).append(r.controlNavScaffold):r.append(r.controlNavScaffold);u.controlNav.set();u.controlNav.active();r.controlNavScaffold.delegate("a, img",a,function(t){if(t.preventDefault(),s===""||s===t.type){var i=n(this),e=r.controlNav.index(i);i.hasClass(f+"active")||(r.direction=e>r.currentSlide?"next":"prev",r.flexAnimate(e,r.vars.pauseOnAction))}s===""&&(s=t.type);u.setToClearWatchedEvent()})},setupManual:function(){r.controlNav=r.manualControls;u.controlNav.active();r.controlNav.bind(a,function(t){if(t.preventDefault(),s===""||s===t.type){var i=n(this),e=r.controlNav.index(i);i.hasClass(f+"active")||(r.direction=e>r.currentSlide?"next":"prev",r.flexAnimate(e,r.vars.pauseOnAction))}s===""&&(s=t.type);u.setToClearWatchedEvent()})},set:function(){var t=r.vars.controlNav==="thumbnails"?"img":"a";r.controlNav=n("."+f+"control-nav li "+t,r.controlsContainer?r.controlsContainer:r)},active:function(){r.controlNav.removeClass(f+"active").eq(r.animatingTo).addClass(f+"active")},update:function(t,i){r.pagingCount>1&&t==="add"?r.controlNavScaffold.append(n("<li><a>"+r.count+"<\/a><\/li>")):r.pagingCount===1?r.controlNavScaffold.find("li").remove():r.controlNav.eq(i).closest("li").remove();u.controlNav.set();r.pagingCount>1&&r.pagingCount!==r.controlNav.length?r.update(i,t):u.controlNav.active()}},directionNav:{setup:function(){var t=n('<ul class="'+f+'direction-nav"><li><a class="'+f+'prev" href="#">'+r.vars.prevText+'<\/a><\/li><li><a class="'+f+'next" href="#">'+r.vars.nextText+"<\/a><\/li><\/ul>");r.controlsContainer?(n(r.controlsContainer).append(t),r.directionNav=n("."+f+"direction-nav li a",r.controlsContainer)):(r.append(t),r.directionNav=n("."+f+"direction-nav li a",r));u.directionNav.update();r.directionNav.bind(a,function(t){t.preventDefault();var i;(s===""||s===t.type)&&(i=n(this).hasClass(f+"next")?r.getTarget("next"):r.getTarget("prev"),r.flexAnimate(i,r.vars.pauseOnAction));s===""&&(s=t.type);u.setToClearWatchedEvent()})},update:function(){var n=f+"disabled";r.pagingCount===1?r.directionNav.addClass(n).attr("tabindex","-1"):r.vars.animationLoop?r.directionNav.removeClass(n).removeAttr("tabindex"):r.animatingTo===0?r.directionNav.removeClass(n).filter("."+f+"prev").addClass(n).attr("tabindex","-1"):r.animatingTo===r.last?r.directionNav.removeClass(n).filter("."+f+"next").addClass(n).attr("tabindex","-1"):r.directionNav.removeClass(n).removeAttr("tabindex")}},pausePlay:{setup:function(){var t=n('<div class="'+f+'pauseplay"><a><\/a><\/div>');r.controlsContainer?(r.controlsContainer.append(t),r.pausePlay=n("."+f+"pauseplay a",r.controlsContainer)):(r.append(t),r.pausePlay=n("."+f+"pauseplay a",r));u.pausePlay.update(r.vars.slideshow?f+"pause":f+"play");r.pausePlay.bind(a,function(t){t.preventDefault();(s===""||s===t.type)&&(n(this).hasClass(f+"pause")?(r.manualPause=!0,r.manualPlay=!1,r.pause()):(r.manualPause=!1,r.manualPlay=!0,r.play()));s===""&&(s=t.type);u.setToClearWatchedEvent()})},update:function(n){n==="play"?r.pausePlay.removeClass(f+"pause").addClass(f+"play").html(r.vars.playText):r.pausePlay.removeClass(f+"play").addClass(f+"pause").html(r.vars.pauseText)}},touch:function(){var p,w,f,i,n,s,l=!1,a=0,y=0,u=0;if(v){t.style.msTouchAction="none";t._gesture=new MSGesture;t._gesture.target=t;t.addEventListener("MSPointerDown",g,!1);t._slider=r;t.addEventListener("MSGestureChange",nt,!1);t.addEventListener("MSGestureEnd",tt,!1);function g(n){n.stopPropagation();r.animating?n.preventDefault():(r.pause(),t._gesture.addPointer(n.pointerId),u=0,i=h?r.h:r.w,s=Number(new Date),f=e&&o&&r.animatingTo===r.last?0:e&&o?r.limit-(r.itemW+r.vars.itemMargin)*r.move*r.animatingTo:e&&r.currentSlide===r.last?r.limit:e?(r.itemW+r.vars.itemMargin)*r.move*r.currentSlide:o?(r.last-r.currentSlide+r.cloneOffset)*i:(r.currentSlide+r.cloneOffset)*i)}function nt(r){var e,o,a;if(r.stopPropagation(),e=r.target._slider,e){if(o=-r.translationX,a=-r.translationY,u+=h?a:o,n=u,l=h?Math.abs(u)<Math.abs(-o):Math.abs(u)<Math.abs(-a),r.detail===r.MSGESTURE_FLAG_INERTIA){setImmediate(function(){t._gesture.stop()});return}(!l||Number(new Date)-s>500)&&(r.preventDefault(),!c&&e.transitions&&(e.vars.animationLoop||(n=u/(e.currentSlide===0&&u<0||e.currentSlide===e.last&&u>0?Math.abs(u)/i+2:1)),e.setProps(f+n,"setTouch")))}}function tt(t){var r,e,h;(t.stopPropagation(),r=t.target._slider,r)&&(r.animatingTo!==r.currentSlide||l||n===null||(e=o?-n:n,h=e>0?r.getTarget("next"):r.getTarget("prev"),r.canAdvance(h)&&(Number(new Date)-s<550&&Math.abs(e)>50||Math.abs(e)>i/2)?r.flexAnimate(h,r.vars.pauseOnAction):c||r.flexAnimate(r.currentSlide,r.vars.pauseOnAction,!0)),p=null,w=null,n=null,f=null,u=0)}}else{t.addEventListener("touchstart",d,!1);function d(n){r.animating?n.preventDefault():(window.navigator.msPointerEnabled||n.touches.length===1)&&(r.pause(),i=h?r.h:r.w,s=Number(new Date),a=n.touches[0].pageX,y=n.touches[0].pageY,f=e&&o&&r.animatingTo===r.last?0:e&&o?r.limit-(r.itemW+r.vars.itemMargin)*r.move*r.animatingTo:e&&r.currentSlide===r.last?r.limit:e?(r.itemW+r.vars.itemMargin)*r.move*r.currentSlide:o?(r.last-r.currentSlide+r.cloneOffset)*i:(r.currentSlide+r.cloneOffset)*i,p=h?y:a,w=h?a:y,t.addEventListener("touchmove",b,!1),t.addEventListener("touchend",k,!1))}function b(t){a=t.touches[0].pageX;y=t.touches[0].pageY;n=h?p-y:p-a;l=h?Math.abs(n)<Math.abs(a-w):Math.abs(n)<Math.abs(y-w);(!l||Number(new Date)-s>500)&&(t.preventDefault(),!c&&r.transitions&&(r.vars.animationLoop||(n/=r.currentSlide===0&&n<0||r.currentSlide===r.last&&n>0?Math.abs(n)/i+2:1),r.setProps(f+n,"setTouch")))}function k(){if(t.removeEventListener("touchmove",b,!1),r.animatingTo===r.currentSlide&&!l&&n!==null){var u=o?-n:n,e=u>0?r.getTarget("next"):r.getTarget("prev");r.canAdvance(e)&&(Number(new Date)-s<550&&Math.abs(u)>50||Math.abs(u)>i/2)?r.flexAnimate(e,r.vars.pauseOnAction):c||r.flexAnimate(r.currentSlide,r.vars.pauseOnAction,!0)}t.removeEventListener("touchend",k,!1);p=null;w=null;n=null;f=null}}},resize:function(){!r.animating&&r.is(":visible")&&(e||r.doMath(),c?u.smoothHeight():e?(r.slides.width(r.computedW),r.update(r.pagingCount),r.setProps()):h?(r.viewport.height(r.h),r.setProps(r.h,"setTotal")):(r.vars.smoothHeight&&u.smoothHeight(),r.newSlides.width(r.computedW),r.setProps(r.computedW,"setTotal")))},smoothHeight:function(n){if(!h||c){var t=c?r:r.viewport;n?t.animate({height:r.slides.eq(r.animatingTo).height()},n):t.height(r.slides.eq(r.animatingTo).height())}},sync:function(t){var i=n(r.vars.sync).data("flexslider"),u=r.animatingTo;switch(t){case"animate":i.flexAnimate(u,r.vars.pauseOnAction,!1,!0);break;case"play":i.playing||i.asNav||i.play();break;case"pause":i.pause()}},pauseInvisible:{visProp:null,init:function(){var t=["webkit","moz","ms","o"],n,i;if("hidden"in document)return"hidden";for(n=0;n<t.length;n++)t[n]+"Hidden"in document&&(u.pauseInvisible.visProp=t[n]+"Hidden");u.pauseInvisible.visProp&&(i=u.pauseInvisible.visProp.replace(/[H|h]idden/,"")+"visibilitychange",document.addEventListener(i,function(){u.pauseInvisible.isHidden()?r.startTimeout?clearTimeout(r.startTimeout):r.pause():r.started?r.play():r.vars.initDelay>0?setTimeout(r.play,r.vars.initDelay):r.play()}))},isHidden:function(){return document[u.pauseInvisible.visProp]||!1}},setToClearWatchedEvent:function(){clearTimeout(p);p=setTimeout(function(){s=""},3e3)}};r.flexAnimate=function(t,i,s,a,v){var w,p,d,b,k;if(r.vars.animationLoop||t===r.currentSlide||(r.direction=t>r.currentSlide?"next":"prev"),l&&r.pagingCount===1&&(r.direction=r.currentItem<t?"next":"prev"),!r.animating&&(r.canAdvance(t,v)||s)&&r.is(":visible")){if(l&&a){if(w=n(r.vars.asNavFor).data("flexslider"),r.atEnd=t===0||t===r.count-1,w.flexAnimate(t,!0,!1,!0,v),r.direction=r.currentItem<t?"next":"prev",w.direction=r.direction,Math.ceil((t+1)/r.visible)-1===r.currentSlide||t===0)return r.currentItem=t,r.slides.removeClass(f+"active-slide").eq(t).addClass(f+"active-slide"),!1;r.currentItem=t;r.slides.removeClass(f+"active-slide").eq(t).addClass(f+"active-slide");t=Math.floor(t/r.visible)}r.animating=!0;r.animatingTo=t;i&&r.pause();r.vars.before(r);r.syncExists&&!v&&u.sync("animate");r.vars.controlNav&&u.controlNav.active();e||r.slides.removeClass(f+"active-slide").eq(t).addClass(f+"active-slide");r.atEnd=t===0||t===r.last;r.vars.directionNav&&u.directionNav.update();t===r.last&&(r.vars.end(r),r.vars.animationLoop||r.pause());c?y?(r.slides.eq(r.currentSlide).css({opacity:0,zIndex:1}),r.slides.eq(t).css({opacity:1,zIndex:2}),r.wrapup(p)):(r.slides.eq(r.currentSlide).css({zIndex:1}).animate({opacity:0},r.vars.animationSpeed,r.vars.easing),r.slides.eq(t).css({zIndex:2}).animate({opacity:1},r.vars.animationSpeed,r.vars.easing,r.wrapup)):(p=h?r.slides.filter(":first").height():r.computedW,e?(d=r.vars.itemMargin,k=(r.itemW+d)*r.move*r.animatingTo,b=k>r.limit&&r.visible!==1?r.limit:k):b=r.currentSlide===0&&t===r.count-1&&r.vars.animationLoop&&r.direction!=="next"?o?(r.count+r.cloneOffset)*p:0:r.currentSlide===r.last&&t===0&&r.vars.animationLoop&&r.direction!=="prev"?o?0:(r.count+1)*p:o?(r.count-1-t+r.cloneOffset)*p:(t+r.cloneOffset)*p,r.setProps(b,"",r.vars.animationSpeed),r.transitions?(r.vars.animationLoop&&r.atEnd||(r.animating=!1,r.currentSlide=r.animatingTo),r.container.unbind("webkitTransitionEnd transitionend"),r.container.bind("webkitTransitionEnd transitionend",function(){r.wrapup(p)})):r.container.animate(r.args,r.vars.animationSpeed,r.vars.easing,function(){r.wrapup(p)}));r.vars.smoothHeight&&u.smoothHeight(r.vars.animationSpeed)}};r.wrapup=function(n){c||e||(r.currentSlide===0&&r.animatingTo===r.last&&r.vars.animationLoop?r.setProps(n,"jumpEnd"):r.currentSlide===r.last&&r.animatingTo===0&&r.vars.animationLoop&&r.setProps(n,"jumpStart"));r.animating=!1;r.currentSlide=r.animatingTo;r.vars.after(r)};r.animateSlides=function(){!r.animating&&w&&r.flexAnimate(r.getTarget("next"))};r.pause=function(){clearInterval(r.animatedSlides);r.animatedSlides=null;r.playing=!1;r.vars.pausePlay&&u.pausePlay.update("play");r.syncExists&&u.sync("pause")};r.play=function(){r.playing&&clearInterval(r.animatedSlides);r.animatedSlides=r.animatedSlides||setInterval(r.animateSlides,r.vars.slideshowSpeed);r.started=r.playing=!0;r.vars.pausePlay&&u.pausePlay.update("pause");r.syncExists&&u.sync("play")};r.stop=function(){r.pause();r.stopped=!0};r.canAdvance=function(n,t){var i=l?r.pagingCount-1:r.last;return t?!0:l&&r.currentItem===r.count-1&&n===0&&r.direction==="prev"?!0:l&&r.currentItem===0&&n===r.pagingCount-1&&r.direction!=="next"?!1:n===r.currentSlide&&!l?!1:r.vars.animationLoop?!0:r.atEnd&&r.currentSlide===0&&n===i&&r.direction!=="next"?!1:r.atEnd&&r.currentSlide===i&&n===0&&r.direction==="next"?!1:!0};r.getTarget=function(n){return r.direction=n,n==="next"?r.currentSlide===r.last?0:r.currentSlide+1:r.currentSlide===0?r.last:r.currentSlide-1};r.setProps=function(n,t,i){var u=function(){var i=n?n:(r.itemW+r.vars.itemMargin)*r.move*r.animatingTo,u=function(){if(e)return t==="setTouch"?n:o&&r.animatingTo===r.last?0:o?r.limit-(r.itemW+r.vars.itemMargin)*r.move*r.animatingTo:r.animatingTo===r.last?r.limit:i;switch(t){case"setTotal":return o?(r.count-1-r.currentSlide+r.cloneOffset)*n:(r.currentSlide+r.cloneOffset)*n;case"setTouch":return o?n:n;case"jumpEnd":return o?n:r.count*n;case"jumpStart":return o?r.count*n:n;default:return n}}();return u*-1+"px"}();r.transitions&&(u=h?"translate3d(0,"+u+",0)":"translate3d("+u+",0,0)",i=i!==undefined?i/1e3+"s":"0s",r.container.css("-"+r.pfx+"-transition-duration",i));r.args[r.prop]=u;(r.transitions||i===undefined)&&r.container.css(r.args)};r.setup=function(t){if(c)r.slides.css({width:"100%",float:"left",marginRight:"-100%",position:"relative"}),t==="init"&&(y?r.slides.css({opacity:0,display:"block",webkitTransition:"opacity "+r.vars.animationSpeed/1e3+"s ease",zIndex:1}).eq(r.currentSlide).css({opacity:1,zIndex:2}):r.slides.css({opacity:0,display:"block",zIndex:1}).eq(r.currentSlide).css({zIndex:2}).animate({opacity:1},r.vars.animationSpeed,r.vars.easing)),r.vars.smoothHeight&&u.smoothHeight();else{var i,s;t==="init"&&(r.viewport=n('<div class="'+f+'viewport"><\/div>').css({overflow:"hidden",position:"relative"}).appendTo(r).append(r.container),r.cloneCount=0,r.cloneOffset=0,o&&(s=n.makeArray(r.slides).reverse(),r.slides=n(s),r.container.empty().append(r.slides)));r.vars.animationLoop&&!e&&(r.cloneCount=2,r.cloneOffset=1,t!=="init"&&r.container.find(".clone").remove(),r.container.append(r.slides.first().clone().addClass("clone").attr("aria-hidden","true")).prepend(r.slides.last().clone().addClass("clone").attr("aria-hidden","true")));r.newSlides=n(r.vars.selector,r);i=o?r.count-1-r.currentSlide+r.cloneOffset:r.currentSlide+r.cloneOffset;h&&!e?(r.container.height((r.count+r.cloneCount)*200+"%").css("position","absolute").width("100%"),setTimeout(function(){r.newSlides.css({display:"block"});r.doMath();r.viewport.height(r.h);r.setProps(i*r.h,"init")},t==="init"?100:0)):(r.container.width((r.count+r.cloneCount)*200+"%"),r.setProps(i*r.computedW,"init"),setTimeout(function(){r.doMath();r.newSlides.css({width:r.computedW,float:"left",display:"block"});r.vars.smoothHeight&&u.smoothHeight()},t==="init"?100:0))}e||r.slides.removeClass(f+"active-slide").eq(r.currentSlide).addClass(f+"active-slide")};r.doMath=function(){var u=r.slides.first(),n=r.vars.itemMargin,t=r.vars.minItems,i=r.vars.maxItems;r.w=r.viewport===undefined?r.width():r.viewport.width();r.h=u.height();r.boxPadding=u.outerWidth()-u.width();e?(r.itemT=r.vars.itemWidth+n,r.minW=t?t*r.itemT:r.w,r.maxW=i?i*r.itemT-n:r.w,r.itemW=r.minW>r.w?(r.w-n*(t-1))/t:r.maxW<r.w?(r.w-n*(i-1))/i:r.vars.itemWidth>r.w?r.w:r.vars.itemWidth,r.visible=Math.floor(r.w/r.itemW),r.move=r.vars.move>0&&r.vars.move<r.visible?r.vars.move:r.visible,r.pagingCount=Math.ceil((r.count-r.visible)/r.move+1),r.last=r.pagingCount-1,r.limit=r.pagingCount===1?0:r.vars.itemWidth>r.w?r.itemW*(r.count-1)+n*(r.count-1):(r.itemW+n)*r.count-r.w-n):(r.itemW=r.w,r.pagingCount=r.count,r.last=r.count-1);r.computedW=r.itemW-r.boxPadding};r.update=function(n,t){r.doMath();e||(n<r.currentSlide?r.currentSlide+=1:n<=r.currentSlide&&n!==0&&(r.currentSlide-=1),r.animatingTo=r.currentSlide);r.vars.controlNav&&!r.manualControls&&(t==="add"&&!e||r.pagingCount>r.controlNav.length?u.controlNav.update("add"):(t==="remove"&&!e||r.pagingCount<r.controlNav.length)&&(e&&r.currentSlide>r.last&&(r.currentSlide-=1,r.animatingTo-=1),u.controlNav.update("remove",r.last)));r.vars.directionNav&&u.directionNav.update()};r.addSlide=function(t,i){var u=n(t);r.count+=1;r.last=r.count-1;h&&o?i!==undefined?r.slides.eq(r.count-i).after(u):r.container.prepend(u):i!==undefined?r.slides.eq(i).before(u):r.container.append(u);r.update(i,"add");r.slides=n(r.vars.selector+":not(.clone)",r);r.setup();r.vars.added(r)};r.removeSlide=function(t){var i=isNaN(t)?r.slides.index(n(t)):t;r.count-=1;r.last=r.count-1;isNaN(t)?n(t,r.slides).remove():h&&o?r.slides.eq(r.last).remove():r.slides.eq(t).remove();r.doMath();r.update(i,"remove");r.slides=n(r.vars.selector+":not(.clone)",r);r.setup();r.vars.removed(r)};u.init()};n(window).blur(function(){focused=!1}).focus(function(){focused=!0});n.flexslider.defaults={namespace:"flex-",selector:".slides > li",animation:"fade",easing:"swing",direction:"horizontal",reverse:!1,animationLoop:!0,smoothHeight:!1,startAt:0,slideshow:!0,slideshowSpeed:7e3,animationSpeed:600,initDelay:0,randomize:!1,thumbCaptions:!1,pauseOnAction:!0,pauseOnHover:!1,pauseInvisible:!0,useCSS:!0,touch:!0,video:!1,controlNav:!0,directionNav:!0,prevText:"Previous",nextText:"Next",keyboard:!0,multipleKeyboard:!1,mousewheel:!1,pausePlay:!1,pauseText:"Pause",playText:"Play",controlsContainer:"",manualControls:"",sync:"",asNavFor:"",itemWidth:0,itemMargin:0,minItems:1,maxItems:0,move:0,allowOneSlide:!0,start:function(){},before:function(){},after:function(){},end:function(){},added:function(){},removed:function(){}};n.fn.flexslider=function(t){if(t===undefined&&(t={}),typeof t=="object")return this.each(function(){var i=n(this),u=t.selector?t.selector:".slides > li",r=i.find(u);r.length===1&&t.allowOneSlide===!0||r.length===0?(r.fadeIn(400),t.start&&t.start(i)):i.data("flexslider")===undefined&&new n.flexslider(this,t)});var i=n(this).data("flexslider");switch(t){case"play":i.play();break;case"pause":i.pause();break;case"stop":i.stop();break;case"next":i.flexAnimate(i.getTarget("next"),!0);break;case"prev":case"previous":i.flexAnimate(i.getTarget("prev"),!0);break;default:typeof t=="number"&&i.flexAnimate(t,!0)}}}(jQuery),!function(n,t,i,r){function f(t,i){this.element=t;this.options=n.extend({},h,i);this._defaults=h;this._name=u;this.init()}var u="stellar",h={scrollProperty:"scroll",positionProperty:"position",horizontalScrolling:!0,verticalScrolling:!0,horizontalOffset:0,verticalOffset:0,responsive:!1,parallaxBackgrounds:!0,parallaxElements:!0,hideDistantElements:!0,hideElement:function(n){n.hide()},showElement:function(n){n.show()}},e={scroll:{getLeft:function(n){return n.scrollLeft()},setLeft:function(n,t){n.scrollLeft(t)},getTop:function(n){return n.scrollTop()},setTop:function(n,t){n.scrollTop(t)}},position:{getLeft:function(n){return-1*parseInt(n.css("left"),10)},getTop:function(n){return-1*parseInt(n.css("top"),10)}},margin:{getLeft:function(n){return-1*parseInt(n.css("margin-left"),10)},getTop:function(n){return-1*parseInt(n.css("margin-top"),10)}},transform:{getLeft:function(n){var t=getComputedStyle(n[0])[o];return"none"!==t?-1*parseInt(t.match(/(-?[0-9]+)/g)[4],10):0},getTop:function(n){var t=getComputedStyle(n[0])[o];return"none"!==t?-1*parseInt(t.match(/(-?[0-9]+)/g)[5],10):0}}},c={position:{setLeft:function(n,t){n.css("left",t)},setTop:function(n,t){n.css("top",t)}},transform:{setPosition:function(n,t,i,r,u){n[0].style[o]="translate3d("+(t-i)+"px, "+(r-u)+"px, 0)"}}},v=function(){var i,u=/^(Moz|Webkit|Khtml|O|ms|Icab)(?=[A-Z])/,r=n("script")[0].style,t="";for(i in r)if(u.test(i)){t=i.match(u)[0];break}return"WebkitOpacity"in r&&(t="Webkit"),"KhtmlOpacity"in r&&(t="Khtml"),function(n){return t+(t.length>0?n.charAt(0).toUpperCase()+n.slice(1):n)}}(),o=v("transform"),l=n("<div />",{style:"background:#fff"}).css("background-position-x")!==r,s=l?function(n,t,i){n.css({"background-position-x":t,"background-position-y":i})}:function(n,t,i){n.css("background-position",t+" "+i)},y=l?function(n){return[n.css("background-position-x"),n.css("background-position-y")]}:function(n){return n.css("background-position").split(" ")},a=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||t.msRequestAnimationFrame||function(n){setTimeout(n,1e3/60)};f.prototype={init:function(){this.options.name=u+"_"+Math.floor(1e9*Math.random());this._defineElements();this._defineGetters();this._defineSetters();this._handleWindowLoadAndResize();this._detectViewport();this.refresh({firstLoad:!0});"scroll"===this.options.scrollProperty?this._handleScrollEvent():this._startAnimationLoop()},_defineElements:function(){this.element===i.body&&(this.element=t);this.$scrollElement=n(this.element);this.$element=this.element===t?n("body"):this.$scrollElement;this.$viewportElement=this.options.viewportElement!==r?n(this.options.viewportElement):this.$scrollElement[0]===t||"scroll"===this.options.scrollProperty?this.$scrollElement:this.$scrollElement.parent()},_defineGetters:function(){var n=this,t=e[n.options.scrollProperty];this._getScrollLeft=function(){return t.getLeft(n.$scrollElement)};this._getScrollTop=function(){return t.getTop(n.$scrollElement)}},_defineSetters:function(){var t=this,r=e[t.options.scrollProperty],i=c[t.options.positionProperty],u=r.setLeft,f=r.setTop;this._setScrollLeft="function"==typeof u?function(n){u(t.$scrollElement,n)}:n.noop;this._setScrollTop="function"==typeof f?function(n){f(t.$scrollElement,n)}:n.noop;this._setPosition=i.setPosition||function(n,r,u,f,e){t.options.horizontalScrolling&&i.setLeft(n,r,u);t.options.verticalScrolling&&i.setTop(n,f,e)}},_handleWindowLoadAndResize:function(){var i=this,r=n(t);i.options.responsive&&r.bind("load."+this.name,function(){i.refresh()});r.bind("resize."+this.name,function(){i._detectViewport();i.options.responsive&&i.refresh()})},refresh:function(i){var r=this,u=r._getScrollLeft(),f=r._getScrollTop();i&&i.firstLoad||this._reset();this._setScrollLeft(0);this._setScrollTop(0);this._setOffsets();this._findParticles();this._findBackgrounds();i&&i.firstLoad&&/WebKit/.test(navigator.userAgent)&&n(t).load(function(){var n=r._getScrollLeft(),t=r._getScrollTop();r._setScrollLeft(n+1);r._setScrollTop(t+1);r._setScrollLeft(n);r._setScrollTop(t)});this._setScrollLeft(u);this._setScrollTop(f)},_detectViewport:function(){var n=this.$viewportElement.offset(),t=null!==n&&n!==r;this.viewportWidth=this.$viewportElement.width();this.viewportHeight=this.$viewportElement.height();this.viewportOffsetTop=t?n.top:0;this.viewportOffsetLeft=t?n.left:0},_findParticles:function(){var t=this,i;if(this._getScrollLeft(),this._getScrollTop(),this.particles!==r)for(i=this.particles.length-1;i>=0;i--)this.particles[i].$element.data("stellar-elementIsActive",r);this.particles=[];this.options.parallaxElements&&this.$element.find("[data-stellar-ratio]").each(function(){var f,e,o,s,h,c,u,l,a,i=n(this),v=0,y=0,p=0,w=0;if(i.data("stellar-elementIsActive")){if(i.data("stellar-elementIsActive")!==this)return}else i.data("stellar-elementIsActive",this);t.options.showElement(i);i.data("stellar-startingLeft")?(i.css("left",i.data("stellar-startingLeft")),i.css("top",i.data("stellar-startingTop"))):(i.data("stellar-startingLeft",i.css("left")),i.data("stellar-startingTop",i.css("top")));o=i.position().left;s=i.position().top;h="auto"===i.css("margin-left")?0:parseInt(i.css("margin-left"),10);c="auto"===i.css("margin-top")?0:parseInt(i.css("margin-top"),10);l=i.offset().left-h;a=i.offset().top-c;i.parents().each(function(){var t=n(this);return t.data("stellar-offset-parent")===!0?(v=p,y=w,u=t,!1):(p+=t.position().left,void(w+=t.position().top))});f=i.data("stellar-horizontal-offset")!==r?i.data("stellar-horizontal-offset"):u!==r&&u.data("stellar-horizontal-offset")!==r?u.data("stellar-horizontal-offset"):t.horizontalOffset;e=i.data("stellar-vertical-offset")!==r?i.data("stellar-vertical-offset"):u!==r&&u.data("stellar-vertical-offset")!==r?u.data("stellar-vertical-offset"):t.verticalOffset;t.particles.push({$element:i,$offsetParent:u,isFixed:"fixed"===i.css("position"),horizontalOffset:f,verticalOffset:e,startingPositionLeft:o,startingPositionTop:s,startingOffsetLeft:l,startingOffsetTop:a,parentOffsetLeft:v,parentOffsetTop:y,stellarRatio:i.data("stellar-ratio")!==r?i.data("stellar-ratio"):1,width:i.outerWidth(!0),height:i.outerHeight(!0),isHidden:!1})})},_findBackgrounds:function(){var t,i=this,u=this._getScrollLeft(),f=this._getScrollTop();this.backgrounds=[];this.options.parallaxBackgrounds&&(t=this.$element.find("[data-stellar-background-ratio]"),this.$element.data("stellar-background-ratio")&&(t=t.add(this.$element)),t.each(function(){var h,c,l,a,v,p,e,t=n(this),o=y(t),w=0,b=0,k=0,d=0;if(t.data("stellar-backgroundIsActive")){if(t.data("stellar-backgroundIsActive")!==this)return}else t.data("stellar-backgroundIsActive",this);t.data("stellar-backgroundStartingLeft")?s(t,t.data("stellar-backgroundStartingLeft"),t.data("stellar-backgroundStartingTop")):(t.data("stellar-backgroundStartingLeft",o[0]),t.data("stellar-backgroundStartingTop",o[1]));l="auto"===t.css("margin-left")?0:parseInt(t.css("margin-left"),10);a="auto"===t.css("margin-top")?0:parseInt(t.css("margin-top"),10);v=t.offset().left-l-u;p=t.offset().top-a-f;t.parents().each(function(){var t=n(this);return t.data("stellar-offset-parent")===!0?(w=k,b=d,e=t,!1):(k+=t.position().left,void(d+=t.position().top))});h=t.data("stellar-horizontal-offset")!==r?t.data("stellar-horizontal-offset"):e!==r&&e.data("stellar-horizontal-offset")!==r?e.data("stellar-horizontal-offset"):i.horizontalOffset;c=t.data("stellar-vertical-offset")!==r?t.data("stellar-vertical-offset"):e!==r&&e.data("stellar-vertical-offset")!==r?e.data("stellar-vertical-offset"):i.verticalOffset;i.backgrounds.push({$element:t,$offsetParent:e,isFixed:"fixed"===t.css("background-attachment"),horizontalOffset:h,verticalOffset:c,startingValueLeft:o[0],startingValueTop:o[1],startingBackgroundPositionLeft:isNaN(parseInt(o[0],10))?0:parseInt(o[0],10),startingBackgroundPositionTop:isNaN(parseInt(o[1],10))?0:parseInt(o[1],10),startingPositionLeft:t.position().left,startingPositionTop:t.position().top,startingOffsetLeft:v,startingOffsetTop:p,parentOffsetLeft:w,parentOffsetTop:b,stellarRatio:t.data("stellar-background-ratio")===r?1:t.data("stellar-background-ratio")})}))},_reset:function(){for(var t,r,u,i,n=this.particles.length-1;n>=0;n--)t=this.particles[n],r=t.$element.data("stellar-startingLeft"),u=t.$element.data("stellar-startingTop"),this._setPosition(t.$element,r,r,u,u),this.options.showElement(t.$element),t.$element.data("stellar-startingLeft",null).data("stellar-elementIsActive",null).data("stellar-backgroundIsActive",null);for(n=this.backgrounds.length-1;n>=0;n--)i=this.backgrounds[n],i.$element.data("stellar-backgroundStartingLeft",null).data("stellar-backgroundStartingTop",null),s(i.$element,i.startingValueLeft,i.startingValueTop)},destroy:function(){this._reset();this.$scrollElement.unbind("resize."+this.name).unbind("scroll."+this.name);this._animationLoop=n.noop;n(t).unbind("load."+this.name).unbind("resize."+this.name)},_setOffsets:function(){var i=this,r=n(t);r.unbind("resize.horizontal-"+this.name).unbind("resize.vertical-"+this.name);"function"==typeof this.options.horizontalOffset?(this.horizontalOffset=this.options.horizontalOffset(),r.bind("resize.horizontal-"+this.name,function(){i.horizontalOffset=i.options.horizontalOffset()})):this.horizontalOffset=this.options.horizontalOffset;"function"==typeof this.options.verticalOffset?(this.verticalOffset=this.options.verticalOffset(),r.bind("resize.vertical-"+this.name,function(){i.verticalOffset=i.options.verticalOffset()})):this.verticalOffset=this.options.verticalOffset},_repositionElements:function(){var n,r,t,l,a,e,o,h,c,i,u=this._getScrollLeft(),f=this._getScrollTop(),v=!0,y=!0;if(this.currentScrollLeft!==u||this.currentScrollTop!==f||this.currentWidth!==this.viewportWidth||this.currentHeight!==this.viewportHeight){for(this.currentScrollLeft=u,this.currentScrollTop=f,this.currentWidth=this.viewportWidth,this.currentHeight=this.viewportHeight,i=this.particles.length-1;i>=0;i--)n=this.particles[i],r=n.isFixed?1:0,this.options.horizontalScrolling?(e=(u+n.horizontalOffset+this.viewportOffsetLeft+n.startingPositionLeft-n.startingOffsetLeft+n.parentOffsetLeft)*-(n.stellarRatio+r-1)+n.startingPositionLeft,h=e-n.startingPositionLeft+n.startingOffsetLeft):(e=n.startingPositionLeft,h=n.startingOffsetLeft),this.options.verticalScrolling?(o=(f+n.verticalOffset+this.viewportOffsetTop+n.startingPositionTop-n.startingOffsetTop+n.parentOffsetTop)*-(n.stellarRatio+r-1)+n.startingPositionTop,c=o-n.startingPositionTop+n.startingOffsetTop):(o=n.startingPositionTop,c=n.startingOffsetTop),this.options.hideDistantElements&&(y=!this.options.horizontalScrolling||h+n.width>(n.isFixed?0:u)&&h<(n.isFixed?0:u)+this.viewportWidth+this.viewportOffsetLeft,v=!this.options.verticalScrolling||c+n.height>(n.isFixed?0:f)&&c<(n.isFixed?0:f)+this.viewportHeight+this.viewportOffsetTop),y&&v?(n.isHidden&&(this.options.showElement(n.$element),n.isHidden=!1),this._setPosition(n.$element,e,n.startingPositionLeft,o,n.startingPositionTop)):n.isHidden||(this.options.hideElement(n.$element),n.isHidden=!0);for(i=this.backgrounds.length-1;i>=0;i--)t=this.backgrounds[i],r=t.isFixed?0:1,l=this.options.horizontalScrolling?(u+t.horizontalOffset-this.viewportOffsetLeft-t.startingOffsetLeft+t.parentOffsetLeft-t.startingBackgroundPositionLeft)*(r-t.stellarRatio)+"px":t.startingValueLeft,a=this.options.verticalScrolling?(f+t.verticalOffset-this.viewportOffsetTop-t.startingOffsetTop+t.parentOffsetTop-t.startingBackgroundPositionTop)*(r-t.stellarRatio)+"px":t.startingValueTop,s(t.$element,l,a)}},_handleScrollEvent:function(){var i=this,n=!1,r=function(){i._repositionElements();n=!1},t=function(){n||(a(r),n=!0)};this.$scrollElement.bind("scroll."+this.name,t);t()},_startAnimationLoop:function(){var n=this;this._animationLoop=function(){a(n._animationLoop);n._repositionElements()};this._animationLoop()}};n.fn[u]=function(t){var i=arguments;return t===r||"object"==typeof t?this.each(function(){n.data(this,"plugin_"+u)||n.data(this,"plugin_"+u,new f(this,t))}):"string"==typeof t&&"_"!==t[0]&&"init"!==t?this.each(function(){var r=n.data(this,"plugin_"+u);r instanceof f&&"function"==typeof r[t]&&r[t].apply(r,Array.prototype.slice.call(i,1));"destroy"===t&&n.data(this,"plugin_"+u,null)}):void 0};n[u]=function(){var i=n(t);return i.stellar.apply(i,Array.prototype.slice.call(arguments,0))};n[u].scrollProperty=e;n[u].positionProperty=c;t.Stellar=f}(jQuery,this,document),function(n){function t(t,r,f,e,o){function w(){l.unbind("webkitTransitionEnd transitionend otransitionend oTransitionEnd");r&&i(r,f,e,o);o.startOrder=[];o.newOrder=[];o.origSort=[];o.checkSort=[];k.removeStyle(o.prefix+"filter, filter, "+o.prefix+"transform, transform, opacity, display").css(o.clean).removeAttr("data-checksum");window.atob||k.css({display:"none",opacity:"0"});l.removeStyle(o.prefix+"transition, transition, "+o.prefix+"perspective, perspective, "+o.prefix+"perspective-origin, perspective-origin, "+(o.resizeContainer?"height":""));"list"==o.layoutMode?(a.css({display:o.targetDisplayList,opacity:"1"}),o.origDisplay=o.targetDisplayList):(a.css({display:o.targetDisplayGrid,opacity:"1"}),o.origDisplay=o.targetDisplayGrid);o.origLayout=o.layoutMode;setTimeout(function(){if(k.removeStyle(o.prefix+"transition, transition"),o.mixing=!1,"function"==typeof o.onMixEnd){var n=o.onMixEnd.call(this,o);o=n?n:o}})}var v,s,h,g,k,l;for(clearInterval(o.failsafe),o.mixing=!0,o.filter=t,"function"==typeof o.onMixStart&&(s=o.onMixStart.call(this,o),o=s?s:o),v=o.transitionSpeed,s=0;2>s;s++)h=0==s?h=o.prefix:"",o.transition[h+"transition"]="all "+v+"ms linear",o.transition[h+"transform"]=h+"translate3d(0,0,0)",o.perspective[h+"perspective"]=o.perspectiveDistance+"px",o.perspective[h+"perspective-origin"]=o.perspectiveOrigin;g=o.targetSelector;k=e.find(g);k.each(function(){this.data={}});l=k.parent();l.css(o.perspective);o.easingFallback="ease-in-out";"smooth"==o.easing&&(o.easing="cubic-bezier(0.25, 0.46, 0.45, 0.94)");"snap"==o.easing&&(o.easing="cubic-bezier(0.77, 0, 0.175, 1)");"windback"==o.easing&&(o.easing="cubic-bezier(0.175, 0.885, 0.320, 1.275)",o.easingFallback="cubic-bezier(0.175, 0.885, 0.320, 1)");"windup"==o.easing&&(o.easing="cubic-bezier(0.6, -0.28, 0.735, 0.045)",o.easingFallback="cubic-bezier(0.6, 0.28, 0.735, 0.045)");s="list"==o.layoutMode&&null!=o.listEffects?o.listEffects:o.effects;Array.prototype.indexOf&&(o.fade=-1<s.indexOf("fade")?"0":"",o.scale=-1<s.indexOf("scale")?"scale(.01)":"",o.rotateZ=-1<s.indexOf("rotateZ")?"rotate(180deg)":"",o.rotateY=-1<s.indexOf("rotateY")?"rotateY(90deg)":"",o.rotateX=-1<s.indexOf("rotateX")?"rotateX(90deg)":"",o.blur=-1<s.indexOf("blur")?"blur(8px)":"",o.grayscale=-1<s.indexOf("grayscale")?"grayscale(100%)":"");var a=n(),p=n(),b=[],nt=!1;"string"==typeof t?b=u(t):(nt=!0,n.each(t,function(n){b[n]=u(this)}));"or"==o.filterLogic?(""==b[0]&&b.shift(),1>b.length?p=p.add(e.find(g+":visible")):k.each(function(){var t=n(this),i;nt?(i=0,n.each(b,function(){this.length?t.is("."+this.join(", ."))&&i++:0<i&&i++}),i==b.length?a=a.add(t):p=p.add(t)):t.is("."+b.join(", ."))?a=a.add(t):p=p.add(t)})):(a=a.add(l.find(g+"."+b.join("."))),p=p.add(l.find(g+":not(."+b.join(".")+"):visible")));t=a.length;var d=n(),y=n(),c=n();if(p.each(function(){var t=n(this);"none"!=t.css("display")&&(d=d.add(t),c=c.add(t))}),a.filter(":visible").length==t&&!d.length&&!r){if(o.origLayout==o.layoutMode)return w(),!1;if(1==a.length)return"list"==o.layoutMode?(e.addClass(o.listClass),e.removeClass(o.gridClass),c.css("display",o.targetDisplayList)):(e.addClass(o.gridClass),e.removeClass(o.listClass),c.css("display",o.targetDisplayGrid)),w(),!1}if(o.origHeight=l.height(),a.length){if(e.removeClass(o.failClass),a.each(function(){var t=n(this);"none"==t.css("display")?y=y.add(t):c=c.add(t)}),o.origLayout!=o.layoutMode&&!1==o.animateGridList)return"list"==o.layoutMode?(e.addClass(o.listClass),e.removeClass(o.gridClass),c.css("display",o.targetDisplayList)):(e.addClass(o.gridClass),e.removeClass(o.listClass),c.css("display",o.targetDisplayGrid)),w(),!1;if(!window.atob)return w(),!1;if(k.css(o.clean),c.each(function(){this.data.origPos=n(this).offset()}),"list"==o.layoutMode?(e.addClass(o.listClass),e.removeClass(o.gridClass),y.css("display",o.targetDisplayList)):(e.addClass(o.gridClass),e.removeClass(o.listClass),y.css("display",o.targetDisplayGrid)),y.each(function(){this.data.showInterPos=n(this).offset()}),d.each(function(){this.data.hideInterPos=n(this).offset()}),c.each(function(){this.data.preInterPos=n(this).offset()}),"list"==o.layoutMode?c.css("display",o.targetDisplayList):c.css("display",o.targetDisplayGrid),r&&i(r,f,e,o),t=r)n:if(t=o.origSort,s=o.checkSort,t.length!=s.length)t=!1;else{for(h=0;h<s.length;h++)if(t[h].compare&&!t[h].compare(s[h])||t[h]!==s[h]){t=!1;break n}t=!0}if(t)return w(),!1;for(d.hide(),y.each(function(){this.data.finalPos=n(this).offset()}),c.each(function(){this.data.finalPrePos=n(this).offset()}),o.newHeight=l.height(),r&&i("reset",null,e,o),y.hide(),c.css("display",o.origDisplay),"block"==o.origDisplay?(e.addClass(o.listClass),y.css("display",o.targetDisplayList)):(e.removeClass(o.listClass),y.css("display",o.targetDisplayGrid)),o.resizeContainer&&l.css("height",o.origHeight+"px"),t={},s=0;2>s;s++)h=0==s?h=o.prefix:"",t[h+"transform"]=o.scale+" "+o.rotateX+" "+o.rotateY+" "+o.rotateZ,t[h+"filter"]=o.blur+" "+o.grayscale;y.css(t);c.each(function(){var t=this.data,f=n(this),r,i,u;for(f.hasClass("mix_tohide")?(t.preTX=t.origPos.left-t.hideInterPos.left,t.preTY=t.origPos.top-t.hideInterPos.top):(t.preTX=t.origPos.left-t.preInterPos.left,t.preTY=t.origPos.top-t.preInterPos.top),r={},i=0;2>i;i++)u=0==i?u=o.prefix:"",r[u+"transform"]="translate("+t.preTX+"px,"+t.preTY+"px)";f.css(r)});"list"==o.layoutMode?(e.addClass(o.listClass),e.removeClass(o.gridClass)):(e.addClass(o.gridClass),e.removeClass(o.listClass));setTimeout(function(){var t,r,i;if(o.resizeContainer){for(t={},r=0;2>r;r++)i=0==r?i=o.prefix:"",t[i+"transition"]="all "+v+"ms ease-in-out",t.height=o.newHeight+"px";l.css(t)}for(d.css("opacity",o.fade),y.css("opacity",1),y.each(function(){var i=this.data,r,u,t;for(i.tX=i.finalPos.left-i.showInterPos.left,i.tY=i.finalPos.top-i.showInterPos.top,r={},u=0;2>u;u++)t=0==u?t=o.prefix:"",r[t+"transition-property"]=t+"transform, "+t+"filter, opacity",r[t+"transition-timing-function"]=o.easing+", linear, linear",r[t+"transition-duration"]=v+"ms",r[t+"transition-delay"]="0",r[t+"transform"]="translate("+i.tX+"px,"+i.tY+"px)",r[t+"filter"]="none";n(this).css("-webkit-transition","all "+v+"ms "+o.easingFallback).css(r)}),c.each(function(){var t=this.data,i,r,u;for(t.tX=0!=t.finalPrePos.left?t.finalPrePos.left-t.preInterPos.left:0,t.tY=0!=t.finalPrePos.left?t.finalPrePos.top-t.preInterPos.top:0,i={},r=0;2>r;r++)u=0==r?u=o.prefix:"",i[u+"transition"]="all "+v+"ms "+o.easing,i[u+"transform"]="translate("+t.tX+"px,"+t.tY+"px)";n(this).css("-webkit-transition","all "+v+"ms "+o.easingFallback).css(i)}),t={},r=0;2>r;r++)i=0==r?i=o.prefix:"",t[i+"transition"]="all "+v+"ms "+o.easing+", "+i+"filter "+v+"ms linear, opacity "+v+"ms linear",t[i+"transform"]=o.scale+" "+o.rotateX+" "+o.rotateY+" "+o.rotateZ,t[i+"filter"]=o.blur+" "+o.grayscale,t.opacity=o.fade;d.css(t);l.bind("webkitTransitionEnd transitionend otransitionend oTransitionEnd",function(t){(-1<t.originalEvent.propertyName.indexOf("transform")||-1<t.originalEvent.propertyName.indexOf("opacity"))&&(-1<g.indexOf(".")?n(t.target).hasClass(g.replace(".",""))&&w():n(t.target).is(g)&&w())})},10);o.failsafe=setTimeout(function(){o.mixing&&w()},v+400)}else{if(o.resizeContainer&&l.css("height",o.origHeight+"px"),!window.atob)return w(),!1;d=p;setTimeout(function(){var n,t,i;if(l.css(o.perspective),o.resizeContainer){for(n={},t=0;2>t;t++)i=0==t?i=o.prefix:"",n[i+"transition"]="height "+v+"ms ease-in-out",n.height=o.minHeight+"px";l.css(n)}if(k.css(o.transition),p.length){for(n={},t=0;2>t;t++)i=0==t?i=o.prefix:"",n[i+"transform"]=o.scale+" "+o.rotateX+" "+o.rotateY+" "+o.rotateZ,n[i+"filter"]=o.blur+" "+o.grayscale,n.opacity=o.fade;d.css(n);l.bind("webkitTransitionEnd transitionend otransitionend oTransitionEnd",function(n){(-1<n.originalEvent.propertyName.indexOf("transform")||-1<n.originalEvent.propertyName.indexOf("opacity"))&&(e.addClass(o.failClass),w())})}else o.mixing=!1},10)}}function i(t,i,r,u){function a(n,i){var r=isNaN(1*n.attr(t))?n.attr(t).toLowerCase():1*n.attr(t),u=isNaN(1*i.attr(t))?i.attr(t).toLowerCase():1*i.attr(t);return r<u?-1:r>u?1:0}function o(n){"asc"==i?f.prepend(n).prepend(" "):f.append(n).append(" ")}var f,h,l;if(r.find(u.targetSelector).wrapAll('<div class="mix_sorter"/>'),f=r.find(".mix_sorter"),u.origSort.length||f.find(u.targetSelector+":visible").each(function(){n(this).wrap("<s/>");u.origSort.push(n(this).parent().html().replace(/\s+/g,""));n(this).unwrap()}),f.empty(),"reset"==t)n.each(u.startOrder,function(){f.append(this).append(" ")});else if("default"==t)n.each(u.origOrder,function(){o(this)});else if("random"==t){if(!u.newOrder.length){for(var e=u.startOrder.slice(),c=e.length,s=c;s--;)h=parseInt(Math.random()*c),l=e[s],e[s]=e[h],e[h]=l;u.newOrder=e}n.each(u.newOrder,function(){f.append(this).append(" ")})}else if("custom"==t)n.each(i,function(){o(this)});else{if("undefined"==typeof u.origOrder[0].attr(t))return console.log("No such attribute found. Terminating"),!1;u.newOrder.length||(n.each(u.origOrder,function(){u.newOrder.push(n(this))}),u.newOrder.sort(a));n.each(u.newOrder,function(){o(this)})}u.checkSort=[];f.find(u.targetSelector+":visible").each(function(t){var i=n(this);0==t&&i.attr("data-checksum","1");i.wrap("<s/>");u.checkSort.push(i.parent().html().replace(/\s+/g,""));i.unwrap()});r.find(u.targetSelector).unwrap()}function u(t){t=t.replace(/\s{2,}/g," ");var i=t.split(" ");return n.each(i,function(n){"all"==this&&(i[n]="mix_all")}),""==i[0]&&i.shift(),i}var r={init:function(r){return this.each(function(){var u={targetSelector:".mix",filterSelector:".filter",sortSelector:".sort",buttonEvent:"click",effects:["fade","scale"],listEffects:null,easing:"smooth",layoutMode:"grid",targetDisplayGrid:"inline-block",targetDisplayList:"block",listClass:"",gridClass:"",transitionSpeed:600,showOnLoad:"all",sortOnLoad:!1,multiFilter:!1,filterLogic:"or",resizeContainer:!0,minHeight:0,failClass:"fail",perspectiveDistance:"3000",perspectiveOrigin:"50% 50%",animateGridList:!0,onMixLoad:null,onMixStart:null,onMixEnd:null,container:null,origOrder:[],startOrder:[],newOrder:[],origSort:[],checkSort:[],filter:"",mixing:!1,origDisplay:"",origLayout:"",origHeight:0,newHeight:0,isTouch:!1,resetDelay:0,failsafe:null,prefix:"",easingFallback:"ease-in-out",transition:{},perspective:{},clean:{},fade:"1",scale:"",rotateX:"",rotateY:"",rotateZ:"",blur:"",grayscale:""},o,f,c,h,e,s;r&&n.extend(u,r);this.config=u;n.support.touch="ontouchend"in document;n.support.touch&&(u.isTouch=!0,u.resetDelay=350);u.container=n(this);o=u.container;n:{for(f=o[0],c=["Webkit","Moz","O","ms"],h=0;h<c.length;h++)if(c[h]+"Transition"in f.style){f=c[h];break n}f="transition"in f.style?"":!1}for(u.prefix=f,u.prefix=u.prefix?"-"+u.prefix.toLowerCase()+"-":"",o.find(u.targetSelector).each(function(){u.origOrder.push(n(this))}),u.sortOnLoad&&(n.isArray(u.sortOnLoad)?(f=u.sortOnLoad[0],e=u.sortOnLoad[1],n(u.sortSelector+"[data-sort="+u.sortOnLoad[0]+"][data-order="+u.sortOnLoad[1]+"]").addClass("active")):(n(u.sortSelector+"[data-sort="+u.sortOnLoad+"]").addClass("active"),f=u.sortOnLoad,u.sortOnLoad="desc"),i(f,e,o,u)),e=0;2>e;e++)f=0==e?f=u.prefix:"",u.transition[f+"transition"]="all "+u.transitionSpeed+"ms ease-in-out",u.perspective[f+"perspective"]=u.perspectiveDistance+"px",u.perspective[f+"perspective-origin"]=u.perspectiveOrigin;for(e=0;2>e;e++)f=0==e?f=u.prefix:"",u.clean[f+"transition"]="none";"list"==u.layoutMode?(o.addClass(u.listClass),u.origDisplay=u.targetDisplayList):(o.addClass(u.gridClass),u.origDisplay=u.targetDisplayGrid);u.origLayout=u.layoutMode;e=u.showOnLoad.split(" ");n.each(e,function(){n(u.filterSelector+'[data-filter="'+this+'"]').addClass("active")});o.find(u.targetSelector).addClass("mix_all");"all"==e[0]&&(e[0]="mix_all",u.showOnLoad="mix_all");s=n();n.each(e,function(){s=s.add(n("."+this))});s.each(function(){var t=n(this);"list"==u.layoutMode?t.css("display",u.targetDisplayList):t.css("display",u.targetDisplayGrid);t.css(u.transition)});setTimeout(function(){u.mixing=!0;s.css("opacity","1");setTimeout(function(){if("list"==u.layoutMode?s.removeStyle(u.prefix+"transition, transition").css({display:u.targetDisplayList,opacity:1}):s.removeStyle(u.prefix+"transition, transition").css({display:u.targetDisplayGrid,opacity:1}),u.mixing=!1,"function"==typeof u.onMixLoad){var n=u.onMixLoad.call(this,u);u=n?n:u}},u.transitionSpeed)},10);u.filter=u.showOnLoad;n(u.sortSelector).bind(u.buttonEvent,function(){if(!u.mixing){var i=n(this),r=i.attr("data-sort"),f=i.attr("data-order");if(i.hasClass("active")){if("random"!=r)return!1}else n(u.sortSelector).removeClass("active"),i.addClass("active");o.find(u.targetSelector).each(function(){u.startOrder.push(n(this))});t(u.filter,r,f,o,u)}});n(u.filterSelector).bind(u.buttonEvent,function(){var i,r;u.mixing||(i=n(this),!1==u.multiFilter?(n(u.filterSelector).removeClass("active"),i.addClass("active"),u.filter=i.attr("data-filter"),n(u.filterSelector+'[data-filter="'+u.filter+'"]').addClass("active")):(r=i.attr("data-filter"),i.hasClass("active")?(i.removeClass("active"),u.filter=u.filter.replace(RegExp("(\\s|^)"+r),"")):(i.addClass("active"),u.filter=u.filter+" "+r)),t(u.filter,null,null,o,u))})})},toGrid:function(){return this.each(function(){var i=this.config;"grid"!=i.layoutMode&&(i.layoutMode="grid",t(i.filter,null,null,n(this),i))})},toList:function(){return this.each(function(){var i=this.config;"list"!=i.layoutMode&&(i.layoutMode="list",t(i.filter,null,null,n(this),i))})},filter:function(i){return this.each(function(){var r=this.config;r.mixing||(n(r.filterSelector).removeClass("active"),n(r.filterSelector+'[data-filter="'+i+'"]').addClass("active"),t(i,null,null,n(this),r))})},sort:function(i){return this.each(function(){var r=this.config,e=n(this),u,f;r.mixing||(n(r.sortSelector).removeClass("active"),n.isArray(i)?(u=i[0],f=i[1],n(r.sortSelector+'[data-sort="'+i[0]+'"][data-order="'+i[1]+'"]').addClass("active")):(n(r.sortSelector+'[data-sort="'+i+'"]').addClass("active"),u=i,f="desc"),e.find(r.targetSelector).each(function(){r.startOrder.push(n(this))}),t(r.filter,u,f,e,r))})},multimix:function(i){return this.each(function(){var r=this.config,u=n(this);multiOut={filter:r.filter,sort:null,order:"desc",layoutMode:r.layoutMode};n.extend(multiOut,i);r.mixing||(n(r.filterSelector).add(r.sortSelector).removeClass("active"),n(r.filterSelector+'[data-filter="'+multiOut.filter+'"]').addClass("active"),"undefined"!=typeof multiOut.sort&&(n(r.sortSelector+'[data-sort="'+multiOut.sort+'"][data-order="'+multiOut.order+'"]').addClass("active"),u.find(r.targetSelector).each(function(){r.startOrder.push(n(this))})),r.layoutMode=multiOut.layoutMode,t(multiOut.filter,multiOut.sort,multiOut.order,u,r))})},remix:function(i){return this.each(function(){var r=this.config,u=n(this);r.origOrder=[];u.find(r.targetSelector).each(function(){var t=n(this);t.addClass("mix_all");r.origOrder.push(t)});r.mixing||"undefined"==typeof i||(n(r.filterSelector).removeClass("active"),n(r.filterSelector+'[data-filter="'+i+'"]').addClass("active"),t(i,null,null,u,r))})}};n.fn.mixitup=function(n){return r[n]?r[n].apply(this,Array.prototype.slice.call(arguments,1)):"object"==typeof n||!n?r.init.apply(this,arguments):void 0};n.fn.removeStyle=function(t){return this.each(function(){var r=n(this),i;t=t.replace(/\s+/g,"");i=t.split(",");n.each(i,function(){var n=RegExp(this.toString()+"[^;]+;?","g");r.attr("style",function(t,i){if(i)return i.replace(n,"")})})})}}(jQuery),function(n){"use strict";n.fn.counterUp=function(t){var i=n.extend({time:400,delay:10},t);return this.each(function(){var t=n(this),r=i,u=function(){var e=[],f=r.time/r.delay,n=t.text(),h=/[0-9]+,[0-9]+/.test(n),u,i,s;n=n.replace(/,/g,"");var l=/^[0-9]+$/.test(n),o=/^[0-9]+\.[0-9]+$/.test(n),c=o?(n.split(".")[1]||[]).length:0;for(u=f;u>=1;u--){if(i=parseInt(n/f*u),o&&(i=parseFloat(n/f*u).toFixed(c)),h)while(/(\d+)(\d{3})/.test(i.toString()))i=i.toString().replace(/(\d+)(\d{3})/,"$1,$2");e.unshift(i)}t.data("counterup-nums",e);t.text("0");s=function(){t.text(t.data("counterup-nums").shift());t.data("counterup-nums").length?setTimeout(t.data("counterup-func"),r.delay):(delete t.data("counterup-nums"),t.data("counterup-nums",null),t.data("counterup-func",null))};t.data("counterup-func",s);setTimeout(t.data("counterup-func"),r.delay)};t.waypoint(u,{offset:"100%",triggerOnce:!0})})}}(jQuery),jQuery(document).ready(function(){revapi=jQuery(".tp-banner").revolution({delay:6e3,startwidth:1170,startheight:400,hideThumbs:10,fullWidth:"on",forceFullWidth:"on",navigationStyle:"preview4"})}),jQuery(document).ready(function(){revapi=jQuery(".tp-banner-boxed").revolution({delay:6e3,startwidth:1170,startheight:400,hideThumbs:10,navigationStyle:"preview4"})}),jQuery(document).ready(function(){revapi=jQuery(".tp-fullscreen-banner").revolution({delay:15e3,startwidth:1170,startheight:400,hideThumbs:10,fullWidth:"off",fullScreen:"on",fullScreenOffsetContainer:""})}),jQuery(document).ready(function(){revapi=jQuery(".ken-burns-banner").revolution({dottedOverlay:"none",delay:16e3,startwidth:1140,startheight:700,hideThumbs:200,thumbWidth:100,thumbHeight:50,thumbAmount:5,navigationType:"bullet",navigationArrows:"solo",navigationStyle:"preview4",touchenabled:"on",onHoverStop:"on",swipe_velocity:.7,swipe_min_touches:1,swipe_max_touches:1,drag_block_vertical:!1,parallax:"mouse",parallaxBgFreeze:"on",parallaxLevels:[7,4,3,2,5,4,3,2,1,0],keyboardNavigation:"off",navigationHAlign:"center",navigationVAlign:"bottom",navigationHOffset:0,navigationVOffset:20,soloArrowLeftHalign:"left",soloArrowLeftValign:"center",soloArrowLeftHOffset:20,soloArrowLeftVOffset:0,soloArrowRightHalign:"right",soloArrowRightValign:"center",soloArrowRightHOffset:20,soloArrowRightVOffset:0,shadow:0,fullWidth:"off",fullScreen:"on",spinner:"spinner4",stopLoop:"off",stopAfterLoops:-1,stopAtSlide:-1,shuffle:"off",autoHeight:"off",forceFullWidth:"off",hideThumbsOnMobile:"off",hideNavDelayOnMobile:1500,hideBulletsOnMobile:"off",hideArrowsOnMobile:"off",hideThumbsUnderResolution:0,hideSliderAtLimit:0,hideCaptionAtLimit:0,hideAllCaptionAtLilmit:0,startWithSlide:0})}),function(n){typeof define=="function"&&define.amd&&define.amd.jQuery?define(["jquery"],n):n(jQuery)}(function(n){function ft(t){return t&&t.allowPageScroll===undefined&&(t.swipe!==undefined||t.swipeStatus!==undefined)&&(t.allowPageScroll=p),t.click!==undefined&&t.tap===undefined&&(t.tap=t.click),t||(t={}),t=n.extend({},n.fn.swipe.defaults,t),this.each(function(){var r=n(this),i=r.data(h);i||(i=new et(this,t),r.data(h,i))})}function et(ft,et){function di(t){if(!vu()&&!(n(t.target).closest(et.excludedElements,ot).length>0)){var u=t.originalEvent?t.originalEvent:t,f,e=r?u.touches[0]:u;return(ht=rt,r?ct=u.touches.length:t.preventDefault(),at=0,vt=null,bt=null,lt=0,kt=0,dt=0,yt=1,wt=0,st=pu(),si=bu(),br(),!r||ct===et.fingers||et.fingers===l||ui()?(er(0,e),wi=ni(),ct==2&&(er(1,u.touches[1]),kt=dt=or(st[0].start,st[1].start)),(et.swipeStatus||et.pinchStatus)&&(f=pt(u,ht))):f=!1,f===!1)?(ht=i,pt(u,ht),f):(et.hold&&(ki=setTimeout(n.proxy(function(){ot.trigger("hold",[u.target]);et.hold&&(f=et.hold.call(ot,u,u.target))},this),et.longTapThreshold)),ai(!0),null)}}function gi(n){var u=n.originalEvent?n.originalEvent:n,o,h,f,e,c;ht===t||ht===i||kr()||(h=r?u.touches[0]:u,f=dr(h),hi=ni(),r&&(ct=u.touches.length),et.hold&&clearTimeout(ki),ht=s,ct==2&&(kt==0?(er(1,u.touches[1]),kt=dt=or(st[0].start,st[1].start)):(dr(u.touches[1]),dt=or(st[0].end,st[1].end),bt=du(st[0].end,st[1].end)),yt=ku(kt,dt),wt=Math.abs(kt-dt)),ct===et.fingers||et.fingers===l||!r||ui()?(vt=tf(f.start,f.end),iu(n,vt),at=gu(f.start,f.end),lt=nu(),wu(vt,at),(et.swipeStatus||et.pinchStatus)&&(o=pt(u,ht)),(!et.triggerOnTouchEnd||et.triggerOnTouchLeave)&&(e=!0,et.triggerOnTouchLeave&&(c=rf(this),e=uf(f.end,c)),!et.triggerOnTouchEnd&&e?ht=ir(s):et.triggerOnTouchLeave&&!e&&(ht=ir(t)),(ht==i||ht==t)&&pt(u,ht))):(ht=i,pt(u,ht)),o===!1&&(ht=i,pt(u,ht)))}function nr(n){var u=n.originalEvent;return r&&u.touches.length>0?(au(),!0):(kr()&&(ct=bi),hi=ni(),lt=nu(),ur()||!rr()?(ht=i,pt(u,ht)):et.triggerOnTouchEnd||et.triggerOnTouchEnd==!1&&ht===s?(n.preventDefault(),ht=t,pt(u,ht)):!et.triggerOnTouchEnd&&pr()?(ht=t,ri(u,ht,w)):ht===s&&(ht=i,pt(u,ht)),ai(!1),null)}function ii(){ct=0;hi=0;wi=0;kt=0;dt=0;yt=1;br();ai(!1)}function tr(n){var i=n.originalEvent;et.triggerOnTouchLeave&&(ht=ir(t),pt(i,ht))}function sr(){ot.unbind(ei,di);ot.unbind(oi,ii);ot.unbind(yi,gi);ot.unbind(pi,nr);ti&&ot.unbind(ti,tr);ai(!1)}function ir(n){var r=n,f=hr(),u=rr(),e=ur();return!f||e?r=i:u&&n==s&&(!et.triggerOnTouchEnd||et.triggerOnTouchLeave)?r=t:!u&&n==t&&et.triggerOnTouchLeave&&(r=i),r}function pt(n,u){var f=undefined;return uu()||ar()?f=ri(n,u,g):(ru()||ui())&&f!==!1&&(f=ri(n,u,nt)),cu()&&f!==!1?f=ri(n,u,tt):lu()&&f!==!1?f=ri(n,u,it):hu()&&f!==!1&&(f=ri(n,u,w)),u===i&&ii(n),u===t&&(r?n.touches.length==0&&ii(n):ii(n)),f}function ri(r,s,h){var c=undefined;if(h==g){if(ot.trigger("swipeStatus",[s,vt||null,at||0,lt||0,ct,st]),et.swipeStatus&&(c=et.swipeStatus.call(ot,r,s,vt||null,at||0,lt||0,ct,st),c===!1))return!1;if(s==t&&lr()){if(ot.trigger("swipe",[vt,at,lt,ct,st]),et.swipe&&(c=et.swipe.call(ot,r,vt,at,lt,ct,st),c===!1))return!1;switch(vt){case u:ot.trigger("swipeLeft",[vt,at,lt,ct,st]);et.swipeLeft&&(c=et.swipeLeft.call(ot,r,vt,at,lt,ct,st));break;case f:ot.trigger("swipeRight",[vt,at,lt,ct,st]);et.swipeRight&&(c=et.swipeRight.call(ot,r,vt,at,lt,ct,st));break;case e:ot.trigger("swipeUp",[vt,at,lt,ct,st]);et.swipeUp&&(c=et.swipeUp.call(ot,r,vt,at,lt,ct,st));break;case o:ot.trigger("swipeDown",[vt,at,lt,ct,st]);et.swipeDown&&(c=et.swipeDown.call(ot,r,vt,at,lt,ct,st))}}}if(h==nt){if(ot.trigger("pinchStatus",[s,bt||null,wt||0,lt||0,ct,yt,st]),et.pinchStatus&&(c=et.pinchStatus.call(ot,r,s,bt||null,wt||0,lt||0,ct,yt,st),c===!1))return!1;if(s==t&&cr())switch(bt){case v:ot.trigger("pinchIn",[bt||null,wt||0,lt||0,ct,yt,st]);et.pinchIn&&(c=et.pinchIn.call(ot,r,bt||null,wt||0,lt||0,ct,yt,st));break;case y:ot.trigger("pinchOut",[bt||null,wt||0,lt||0,ct,yt,st]);et.pinchOut&&(c=et.pinchOut.call(ot,r,bt||null,wt||0,lt||0,ct,yt,st))}}return h==w?(s===i||s===t)&&(clearTimeout(li),clearTimeout(ki),fr()&&!eu()?(gt=ni(),li=setTimeout(n.proxy(function(){gt=null;ot.trigger("tap",[r.target]);et.tap&&(c=et.tap.call(ot,r,r.target))},this),et.doubleTapThreshold)):(gt=null,ot.trigger("tap",[r.target]),et.tap&&(c=et.tap.call(ot,r,r.target)))):h==tt?(s===i||s===t)&&(clearTimeout(li),gt=null,ot.trigger("doubletap",[r.target]),et.doubleTap&&(c=et.doubleTap.call(ot,r,r.target))):h==it&&(s===i||s===t)&&(clearTimeout(li),gt=null,ot.trigger("longtap",[r.target]),et.longTap&&(c=et.longTap.call(ot,r,r.target))),c}function rr(){var n=!0;return et.threshold!==null&&(n=at>=et.threshold),n}function ur(){var n=!1;return et.cancelThreshold!==null&&vt!==null&&(n=gr(vt)-at>=et.cancelThreshold),n}function tu(){return et.pinchThreshold!==null?wt>=et.pinchThreshold:!0}function hr(){return et.maxTimeThreshold?lt>=et.maxTimeThreshold?!1:!0:!0}function iu(n,t){if(et.allowPageScroll===p||ui())n.preventDefault();else{var i=et.allowPageScroll===d;switch(t){case u:(et.swipeLeft&&i||!i&&et.allowPageScroll!=b)&&n.preventDefault();break;case f:(et.swipeRight&&i||!i&&et.allowPageScroll!=b)&&n.preventDefault();break;case e:(et.swipeUp&&i||!i&&et.allowPageScroll!=k)&&n.preventDefault();break;case o:(et.swipeDown&&i||!i&&et.allowPageScroll!=k)&&n.preventDefault()}}}function cr(){var n=vr(),t=yr(),i=tu();return n&&t&&i}function ui(){return!!(et.pinchStatus||et.pinchIn||et.pinchOut)}function ru(){return!!(cr()&&ui())}function lr(){var n=hr(),t=rr(),i=vr(),r=yr(),u=ur();return!u&&r&&i&&t&&n}function ar(){return!!(et.swipe||et.swipeStatus||et.swipeLeft||et.swipeRight||et.swipeUp||et.swipeDown)}function uu(){return!!(lr()&&ar())}function vr(){return ct===et.fingers||et.fingers===l||!r}function yr(){return st[0].end.x!==0}function pr(){return!!et.tap}function fr(){return!!et.doubleTap}function fu(){return!!et.longTap}function wr(){if(gt==null)return!1;var n=ni();return fr()&&n-gt<=et.doubleTapThreshold}function eu(){return wr()}function ou(){return(ct===1||!r)&&(isNaN(at)||at<et.threshold)}function su(){return lt>et.longTapThreshold&&at<ut}function hu(){return!!(ou()&&pr())}function cu(){return!!(wr()&&fr())}function lu(){return!!(su()&&fu())}function au(){ci=ni();bi=event.touches.length+1}function br(){ci=0;bi=0}function kr(){var n=!1,t;return ci&&(t=ni()-ci,t<=et.fingerReleaseThreshold&&(n=!0)),n}function vu(){return!!(ot.data(h+"_intouch")===!0)}function ai(n){n===!0?(ot.bind(yi,gi),ot.bind(pi,nr),ti&&ot.bind(ti,tr)):(ot.unbind(yi,gi,!1),ot.unbind(pi,nr,!1),ti&&ot.unbind(ti,tr,!1));ot.data(h+"_intouch",n===!0)}function er(n,t){var i=t.identifier!==undefined?t.identifier:0;return st[n].identifier=i,st[n].start.x=st[n].end.x=t.pageX||t.clientX,st[n].start.y=st[n].end.y=t.pageY||t.clientY,st[n]}function dr(n){var i=n.identifier!==undefined?n.identifier:0,t=yu(i);return t.end.x=n.pageX||n.clientX,t.end.y=n.pageY||n.clientY,t}function yu(n){for(var t=0;t<st.length;t++)if(st[t].identifier==n)return st[t]}function pu(){for(var t=[],n=0;n<=5;n++)t.push({start:{x:0,y:0},end:{x:0,y:0},identifier:0});return t}function wu(n,t){t=Math.max(t,gr(n));si[n].distance=t}function gr(n){return si[n]?si[n].distance:undefined}function bu(){var n={};return n[u]=vi(u),n[f]=vi(f),n[e]=vi(e),n[o]=vi(o),n}function vi(n){return{direction:n,distance:0}}function nu(){return hi-wi}function or(n,t){var i=Math.abs(n.x-t.x),r=Math.abs(n.y-t.y);return Math.round(Math.sqrt(i*i+r*r))}function ku(n,t){var i=t/n*1;return i.toFixed(2)}function du(){return yt<1?y:v}function gu(n,t){return Math.round(Math.sqrt(Math.pow(t.x-n.x,2)+Math.pow(t.y-n.y,2)))}function nf(n,t){var r=n.x-t.x,u=t.y-n.y,f=Math.atan2(u,r),i=Math.round(f*180/Math.PI);return i<0&&(i=360-Math.abs(i)),i}function tf(n,t){var i=nf(n,t);return i<=45&&i>=0?u:i<=360&&i>=315?u:i>=135&&i<=225?f:i>45&&i<135?o:e}function ni(){var n=new Date;return n.getTime()}function rf(t){t=n(t);var i=t.offset();return{left:i.left,right:i.left+t.outerWidth(),top:i.top,bottom:i.top+t.outerHeight()}}function uf(n,t){return n.x>t.left&&n.x<t.right&&n.y>t.top&&n.y<t.bottom}var fi=r||c||!et.fallbackToMouseEvents,ei=fi?c?a?"MSPointerDown":"pointerdown":"touchstart":"mousedown",yi=fi?c?a?"MSPointerMove":"pointermove":"touchmove":"mousemove",pi=fi?c?a?"MSPointerUp":"pointerup":"touchend":"mouseup",ti=fi?null:"mouseleave",oi=c?a?"MSPointerCancel":"pointercancel":"touchcancel",at=0,vt=null,lt=0,kt=0,dt=0,yt=1,wt=0,bt=0,si=null,ot=n(ft),ht="start",ct=0,st=null,wi=0,hi=0,ci=0,bi=0,gt=0,li=null,ki=null;try{ot.bind(ei,di);ot.bind(oi,ii)}catch(ff){n.error("events not supported "+ei+","+oi+" on jQuery.swipe")}this.enable=function(){return ot.bind(ei,di),ot.bind(oi,ii),ot};this.disable=function(){return sr(),ot};this.destroy=function(){return sr(),ot.data(h,null),ot};this.option=function(t,i){if(et[t]!==undefined){if(i===undefined)return et[t];et[t]=i}else n.error("Option "+t+" does not exist on jQuery.swipe.options");return null}}var u="left",f="right",e="up",o="down",v="in",y="out",p="none",d="auto",g="swipe",nt="pinch",w="tap",tt="doubletap",it="longtap",b="horizontal",k="vertical",l="all",ut=10,rt="start",s="move",t="end",i="cancel",r="ontouchstart"in window,a=window.navigator.msPointerEnabled&&!window.navigator.pointerEnabled,c=window.navigator.pointerEnabled||window.navigator.msPointerEnabled,h="TouchSwipe";n.fn.swipe=function(t){var r=n(this),i=r.data(h);if(i&&typeof t=="string"){if(i[t])return i[t].apply(this,Array.prototype.slice.call(arguments,1));n.error("Method "+t+" does not exist on jQuery.swipe")}else if(!i&&(typeof t=="object"||!t))return ft.apply(this,arguments);return r};n.fn.swipe.defaults={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,hold:null,triggerOnTouchEnd:!0,triggerOnTouchLeave:!1,allowPageScroll:"auto",fallbackToMouseEvents:!0,excludedElements:"label, button, input, select, textarea, a, .noSwipe"};n.fn.swipe.phases={PHASE_START:rt,PHASE_MOVE:s,PHASE_END:t,PHASE_CANCEL:i};n.fn.swipe.directions={LEFT:u,RIGHT:f,UP:e,DOWN:o,IN:v,OUT:y};n.fn.swipe.pageScroll={NONE:p,HORIZONTAL:b,VERTICAL:k,AUTO:d};n.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,ALL:l}}),typeof console=="undefined"&&(console={},console.log=console.error=console.info=console.debug=console.warn=console.trace=console.dir=console.dirxml=console.group=console.groupEnd=console.time=console.timeEnd=console.assert=console.profile=console.groupCollapsed=function(){}),window.tplogs==!0)try{console.groupCollapsed("ThemePunch GreenSocks Logs")}catch(e){}if(oldgs=window.GreenSockGlobals,oldgs_queue=window._gsQueue,punchgs=window.GreenSockGlobals={},window.tplogs==!0)try{console.info("Build GreenSock SandBox for ThemePunch Plugins");console.info("GreenSock TweenLite Engine Initalised by ThemePunch Plugin")}catch(e){}(function(n,t){"use strict";var ot=n.GreenSockGlobals=n.GreenSockGlobals||n,lt,o,vt,ut,c;if(!ot.TweenLite){var s,f,i,u,h,gt=function(n){for(var r=n.split("."),i=ot,t=0;r.length>t;t++)i[r[t]]=i=i[r[t]]||{};return i},v=gt("com.greensock"),e=1e-10,ni=function(n){for(var i=[],r=n.length,t=0;t!==r;i.push(n[t++]));return i},ti=function(){},d=function(){var n=Object.prototype.toString,t=n.call([]);return function(i){return null!=i&&(i instanceof Array||"object"==typeof i&&!!i.push&&n.call(i)===t)}}(),g={},ii=function(i,r,u,f){this.sc=g[i]?g[i].sc:[];g[i]=this;this.gsClass=null;this.func=u;var e=[];this.check=function(o){for(var c,l,a,h,s=r.length,v=s;--s>-1;)(c=g[r[s]]||new ii(r[s],[])).gsClass?(e[s]=c.gsClass,v--):o&&c.sc.push(this);if(0===v&&u)for(l=("com.greensock."+i).split("."),a=l.pop(),h=gt(l.join("."))[a]=this.gsClass=u.apply(u,e),f&&(ot[a]=h,"function"==typeof define&&define.amd?define((n.GreenSockAMDPath?n.GreenSockAMDPath+"/":"")+i.split(".").pop(),[],function(){return h}):i===t&&"undefined"!=typeof module&&module.exports&&(module.exports=h)),s=0;this.sc.length>s;s++)this.sc[s].check()};this.check(!0)},st=n._gsDefine=function(n,t,i,r){return new ii(n,t,i,r)},l=v._class=function(n,t,i){return t=t||function(){},st(n,[],function(){return t},i),t};st.globals=ot;var ri=[0,0,1,1],ht=[],a=l("easing.Ease",function(n,t,i,r){this._func=n;this._type=i||0;this._power=r||0;this._params=t?ri.concat(t):ri},!0),nt=a.map={},ct=a.register=function(n,t,i,r){for(var o,u,e,f,s=t.split(","),h=s.length,c=(i||"easeIn,easeOut,easeInOut").split(",");--h>-1;)for(u=s[h],o=r?l("easing."+u,null,!0):v.easing[u]||{},e=c.length;--e>-1;)f=c[e],nt[u+"."+f]=nt[f+u]=o[f]=n.getRatio?n:n[f]||new n};for(i=a.prototype,i._calcEnd=!1,i.getRatio=function(n){if(this._func)return this._params[0]=n,this._func.apply(null,this._params);var i=this._type,r=this._power,t=1===i?1-n:2===i?n:.5>n?2*n:2*(1-n);return 1===r?t*=t:2===r?t*=t*t:3===r?t*=t*t*t:4===r&&(t*=t*t*t*t),1===i?1-t:2===i?t:.5>n?t/2:1-t/2},s=["Linear","Quad","Cubic","Quart","Quint,Strong"],f=s.length;--f>-1;)i=s[f]+",Power"+f,ct(new a(null,null,1,f),i,"easeOut",!0),ct(new a(null,null,2,f),i,"easeIn"+(0===f?",easeNone":"")),ct(new a(null,null,3,f),i,"easeInOut");nt.linear=v.easing.Linear.easeIn;nt.swing=v.easing.Quad.easeInOut;lt=l("events.EventDispatcher",function(n){this._listeners={};this._eventTarget=n||this});i=lt.prototype;i.addEventListener=function(n,t,i,r,f){f=f||0;var s,o,e=this._listeners[n],c=0;for(null==e&&(this._listeners[n]=e=[]),o=e.length;--o>-1;)s=e[o],s.c===t&&s.s===i?e.splice(o,1):0===c&&f>s.pr&&(c=o+1);e.splice(c,0,{c:t,s:i,up:r,pr:f});this!==u||h||u.wake()};i.removeEventListener=function(n,t){var i,r=this._listeners[n];if(r)for(i=r.length;--i>-1;)if(r[i].c===t)return r.splice(i,1),void 0};i.dispatchEvent=function(n){var r,i,t,u=this._listeners[n];if(u)for(r=u.length,i=this._eventTarget;--r>-1;)t=u[r],t&&(t.up?t.c.call(t.s||i,{type:n,target:i}):t.c.call(t.s||i))};var tt=n.requestAnimationFrame,at=n.cancelAnimationFrame,it=Date.now||function(){return(new Date).getTime()},rt=it();for(s=["ms","moz","webkit","o"],f=s.length;--f>-1&&!tt;)tt=n[s[f]+"RequestAnimationFrame"],at=n[s[f]+"CancelAnimationFrame"]||n[s[f]+"CancelRequestAnimationFrame"];l("Ticker",function(n,t){var f,a,r,s,c,i=this,y=it(),o=t!==!1&&tt,l=500,p=33,v=function(n){var t,e,u=it()-rt;u>l&&(y+=u-p);rt+=u;i.time=(rt-y)/1e3;t=i.time-c;(!f||t>0||n===!0)&&(i.frame++,c+=t+(t>=s?.004:s-t),e=!0);n!==!0&&(r=a(v));e&&i.dispatchEvent("tick")};lt.call(i);i.time=i.frame=0;i.tick=function(){v(!0)};i.lagSmoothing=function(n,t){l=n||1/e;p=Math.min(t,l,0)};i.sleep=function(){null!=r&&(o&&at?at(r):clearTimeout(r),a=ti,r=null,i===u&&(h=!1))};i.wake=function(){null!==r?i.sleep():i.frame>10&&(rt=it()-l+5);a=0===f?ti:o&&tt?tt:function(n){return setTimeout(n,0|1e3*(c-i.time)+1)};i===u&&(h=!0);v(2)};i.fps=function(n){return arguments.length?(f=n,s=1/(f||60),c=this.time+s,i.wake(),void 0):f};i.useRAF=function(n){return arguments.length?(i.sleep(),o=n,i.fps(f),void 0):o};i.fps(n);setTimeout(function(){o&&(!r||5>i.frame)&&i.useRAF(!1)},1500)});i=v.Ticker.prototype=new v.events.EventDispatcher;i.constructor=v.Ticker;o=l("core.Animation",function(n,t){if(this.vars=t=t||{},this._duration=this._totalDuration=n||0,this._delay=Number(t.delay)||0,this._timeScale=1,this._active=t.immediateRender===!0,this.data=t.data,this._reversed=t.reversed===!0,p){h||u.wake();var i=this.vars.useFrames?k:p;i.add(this,i._time);this.vars.paused&&this.paused(!0)}});u=o.ticker=new v.Ticker;i=o.prototype;i._dirty=i._gc=i._initted=i._paused=!1;i._totalTime=i._time=0;i._rawPrevTime=-1;i._next=i._last=i._onUpdate=i._timeline=i.timeline=null;i._paused=!1;vt=function(){h&&it()-rt>2e3&&u.wake();setTimeout(vt,2e3)};vt();i.play=function(n,t){return null!=n&&this.seek(n,t),this.reversed(!1).paused(!1)};i.pause=function(n,t){return null!=n&&this.seek(n,t),this.paused(!0)};i.resume=function(n,t){return null!=n&&this.seek(n,t),this.paused(!1)};i.seek=function(n,t){return this.totalTime(Number(n),t!==!1)};i.restart=function(n,t){return this.reversed(!1).paused(!1).totalTime(n?-this._delay:0,t!==!1,!0)};i.reverse=function(n,t){return null!=n&&this.seek(n||this.totalDuration(),t),this.reversed(!0).paused(!1)};i.render=function(){};i.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,(this._gc||!this.timeline)&&this._enabled(!0),this};i.isActive=function(){var t,n=this._timeline,i=this._startTime;return!n||!this._gc&&!this._paused&&n.isActive()&&(t=n.rawTime())>=i&&i+this.totalDuration()/this._timeScale>t};i._enabled=function(n,t){return h||u.wake(),this._gc=!n,this._active=this.isActive(),t!==!0&&(n&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!n&&this.timeline&&this._timeline._remove(this,!0)),!1};i._kill=function(){return this._enabled(!1,!1)};i.kill=function(n,t){return this._kill(n,t),this};i._uncache=function(n){for(var t=n?this:this.timeline;t;)t._dirty=!0,t=t.timeline;return this};i._swapSelfInParams=function(n){for(var t=n.length,i=n.concat();--t>-1;)"{self}"===n[t]&&(i[t]=this);return i};i.eventCallback=function(n,t,i,r){if("on"===(n||"").substr(0,2)){var u=this.vars;if(1===arguments.length)return u[n];null==t?delete u[n]:(u[n]=t,u[n+"Params"]=d(i)&&-1!==i.join("").indexOf("{self}")?this._swapSelfInParams(i):i,u[n+"Scope"]=r);"onUpdate"===n&&(this._onUpdate=t)}return this};i.delay=function(n){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+n-this._delay),this._delay=n,this):this._delay};i.duration=function(n){return arguments.length?(this._duration=this._totalDuration=n,this._uncache(!0),this._timeline.smoothChildTiming&&this._time>0&&this._time<this._duration&&0!==n&&this.totalTime(this._totalTime*(n/this._duration),!0),this):(this._dirty=!1,this._duration)};i.totalDuration=function(n){return this._dirty=!1,arguments.length?this.duration(n):this._totalDuration};i.time=function(n,t){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(n>this._duration?this._duration:n,t)):this._time};i.totalTime=function(n,t,i){if(h||u.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(0>n&&!i&&(n+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var f=this._totalDuration,r=this._timeline;if(n>f&&!i&&(n=f),this._startTime=(this._paused?this._pauseTime:r._time)-(this._reversed?f-n:n)/this._timeScale,r._dirty||this._uncache(!1),r._timeline)for(;r._timeline;)r._timeline._time!==(r._startTime+r._totalTime)/r._timeScale&&r.totalTime(r._totalTime,!0),r=r._timeline}this._gc&&this._enabled(!0,!1);(this._totalTime!==n||0===this._duration)&&(this.render(n,t,!1),y.length&&ft())}return this};i.progress=i.totalProgress=function(n,t){return arguments.length?this.totalTime(this.duration()*n,t):this._time/this.duration()};i.startTime=function(n){return arguments.length?(n!==this._startTime&&(this._startTime=n,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,n-this._delay)),this):this._startTime};i.endTime=function(n){return this._startTime+(0!=n?this.totalDuration():this.duration())/this._timeScale};i.timeScale=function(n){if(!arguments.length)return this._timeScale;if(n=n||e,this._timeline&&this._timeline.smoothChildTiming){var t=this._pauseTime,i=t||0===t?t:this._timeline.totalTime();this._startTime=i-(i-this._startTime)*this._timeScale/n}return this._timeScale=n,this._uncache(!1)};i.reversed=function(n){return arguments.length?(n!=this._reversed&&(this._reversed=n,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed};i.paused=function(n){if(!arguments.length)return this._paused;if(n!=this._paused&&this._timeline){h||n||u.wake();var t=this._timeline,i=t.rawTime(),r=i-this._pauseTime;!n&&t.smoothChildTiming&&(this._startTime+=r,this._uncache(!1));this._pauseTime=n?i:null;this._paused=n;this._active=this.isActive();!n&&0!==r&&this._initted&&this.duration()&&this.render(t.smoothChildTiming?this._totalTime:(i-this._startTime)/this._timeScale,!0,!0)}return this._gc&&!n&&this._enabled(!0,!1),this};ut=l("core.SimpleTimeline",function(n){o.call(this,0,n);this.autoRemoveChildren=this.smoothChildTiming=!0});i=ut.prototype=new o;i.constructor=ut;i.kill()._gc=!1;i._first=i._last=i._recent=null;i._sortChildren=!1;i.add=i.insert=function(n,t){var i,r;if(n._startTime=Number(t||0)+n._delay,n._paused&&this!==n._timeline&&(n._pauseTime=n._startTime+(this.rawTime()-n._startTime)/n._timeScale),n.timeline&&n.timeline._remove(n,!0),n.timeline=n._timeline=this,n._gc&&n._enabled(!0,!0),i=this._last,this._sortChildren)for(r=n._startTime;i&&i._startTime>r;)i=i._prev;return i?(n._next=i._next,i._next=n):(n._next=this._first,this._first=n),n._next?n._next._prev=n:this._last=n,n._prev=i,this._recent=n,this._timeline&&this._uncache(!0),this};i._remove=function(n,t){return n.timeline===this&&(t||n._enabled(!1,!0),n._prev?n._prev._next=n._next:this._first===n&&(this._first=n._next),n._next?n._next._prev=n._prev:this._last===n&&(this._last=n._prev),n._next=n._prev=n.timeline=null,n===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this};i.render=function(n,t,i){var u,r=this._first;for(this._totalTime=this._time=this._rawPrevTime=n;r;)u=r._next,(r._active||n>=r._startTime&&!r._paused)&&(r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(n-r._startTime)*r._timeScale,t,i):r.render((n-r._startTime)*r._timeScale,t,i)),r=u};i.rawTime=function(){return h||u.wake(),this._totalTime};var r=l("TweenLite",function(t,i,u){if(o.call(this,i,u),this.render=r.prototype.render,null==t)throw"Cannot tween a null target.";this.target=t="string"!=typeof t?t:r.selector(t)||t;var s,f,h,l=t.jquery||t.length&&t!==n&&t[0]&&(t[0]===n||t[0].nodeType&&t[0].style&&!t.nodeType),c=this.vars.overwrite;if(this._overwrite=c=null==c?ui[r.defaultOverwrite]:"number"==typeof c?c>>0:ui[c],(l||t instanceof Array||t.push&&d(t))&&"number"!=typeof t[0])for(this._targets=h=ni(t),this._propLookup=[],this._siblings=[],s=0;h.length>s;s++)f=h[s],f?"string"!=typeof f?f.length&&f!==n&&f[0]&&(f[0]===n||f[0].nodeType&&f[0].style&&!f.nodeType)?(h.splice(s--,1),this._targets=h=h.concat(ni(f))):(this._siblings[s]=et(f,this,!1),1===c&&this._siblings[s].length>1&&dt(f,this,null,1,this._siblings[s])):(f=h[s--]=r.selector(f),"string"==typeof f&&h.splice(s+1,1)):h.splice(s--,1);else this._propLookup={},this._siblings=et(t,this,!1),1===c&&this._siblings.length>1&&dt(t,this,null,1,this._siblings);(this.vars.immediateRender||0===i&&0===this._delay&&this.vars.immediateRender!==!1)&&(this._time=-e,this.render(-this._delay))},!0),yt=function(t){return t&&t.length&&t!==n&&t[0]&&(t[0]===n||t[0].nodeType&&t[0].style&&!t.nodeType)},ei=function(n,t){var i,r={};for(i in n)bt[i]||i in t&&"transform"!==i&&"x"!==i&&"y"!==i&&"width"!==i&&"height"!==i&&"className"!==i&&"border"!==i||!(!w[i]||w[i]&&w[i]._autoCSS)||(r[i]=n[i],delete n[i]);n.css=r};i=r.prototype=new o;i.constructor=r;i.kill()._gc=!1;i.ratio=0;i._firstPT=i._targets=i._overwrittenProps=i._startAt=null;i._notifyPluginsOfEnabled=i._lazy=!1;r.version="1.14.2";r.defaultEase=i._ease=new a(null,null,1,1);r.defaultOverwrite="auto";r.ticker=u;r.autoSleep=!0;r.lagSmoothing=function(n,t){u.lagSmoothing(n,t)};r.selector=n.$||n.jQuery||function(t){var i=n.$||n.jQuery;return i?(r.selector=i,i(t)):"undefined"==typeof document?t:document.querySelectorAll?document.querySelectorAll(t):document.getElementById("#"===t.charAt(0)?t.substr(1):t)};var y=[],pt={},wt=r._internals={isArray:d,isSelector:yt,lazyTweens:y},w=r._plugins={},b=wt.tweenLookup={},oi=0,bt=wt.reservedProps={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1,lazy:1,onOverwrite:1},ui={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,"true":1,"false":0},k=o._rootFramesTimeline=new ut,p=o._rootTimeline=new ut,ft=wt.lazyRender=function(){var n,t=y.length;for(pt={};--t>-1;)n=y[t],n&&n._lazy!==!1&&(n.render(n._lazy[0],n._lazy[1],!0),n._lazy=!1);y.length=0};p._startTime=u.time;k._startTime=u.frame;p._active=k._active=!0;setTimeout(ft,1);o._updateRoot=r.render=function(){var i,t,n;if(y.length&&ft(),p.render((u.time-p._startTime)*p._timeScale,!1,!1),k.render((u.frame-k._startTime)*k._timeScale,!1,!1),y.length&&ft(),!(u.frame%120)){for(n in b){for(t=b[n].tweens,i=t.length;--i>-1;)t[i]._gc&&t.splice(i,1);0===t.length&&delete b[n]}if(n=p._first,(!n||n._paused)&&r.autoSleep&&!k._first&&1===u._listeners.tick.length){for(;n&&n._paused;)n=n._next;n||u.sleep()}}};u.addEventListener("tick",o._updateRoot);var et=function(n,t,i){var r,f,u=n._gsTweenID;if(b[u||(n._gsTweenID=u="t"+oi++)]||(b[u]={target:n,tweens:[]}),t&&(r=b[u].tweens,r[f=r.length]=t,i))for(;--f>-1;)r[f]===t&&r.splice(f,1);return b[u].tweens},kt=function(n,t,i,u){var e,o,f=n.vars.onOverwrite;return f&&(e=f(n,t,i,u)),f=r.onOverwrite,f&&(o=f(n,t,i,u)),e!==!1&&o!==!1},dt=function(n,t,i,r,u){var o,s,f,y;if(1===r||r>=4){for(y=u.length,o=0;y>o;o++)if((f=u[o])!==t)f._gc||kt(f,t)&&f._enabled(!1,!1)&&(s=!0);else if(5===r)break;return s}var h,c=t._startTime+e,l=[],a=0,v=0===t._duration;for(o=u.length;--o>-1;)(f=u[o])===t||f._gc||f._paused||(f._timeline!==t._timeline?(h=h||fi(t,0,v),0===fi(f,h,v)&&(l[a++]=f)):c>=f._startTime&&f._startTime+f.totalDuration()/f._timeScale>c&&((v||!f._initted)&&2e-10>=c-f._startTime||(l[a++]=f)));for(o=a;--o>-1;)if(f=l[o],2===r&&f._kill(i,n,t)&&(s=!0),2!==r||!f._firstPT&&f._initted){if(2!==r&&!kt(f,t))continue;f._enabled(!1,!1)&&(s=!0)}return s},fi=function(n,t,i){for(var u=n._timeline,f=u._timeScale,r=n._startTime;u._timeline;){if(r+=u._startTime,f*=u._timeScale,u._paused)return-100;u=u._timeline}return r/=f,r>t?r-t:i&&r===t||!n._initted&&2*e>r-t?e:(r+=n.totalDuration()/n._timeScale/f)>t+e?0:r-t-e};if(i._init=function(){var e,h,n,u,f,t=this.vars,s=this._overwrittenProps,c=this._duration,o=!!t.immediateRender,i=t.ease;if(t.startAt){this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill());f={};for(u in t.startAt)f[u]=t.startAt[u];if(f.overwrite=!1,f.immediateRender=!0,f.lazy=o&&t.lazy!==!1,f.startAt=f.delay=null,this._startAt=r.to(this.target,0,f),o)if(this._time>0)this._startAt=null;else if(0!==c)return}else if(t.runBackwards&&0!==c)if(this._startAt)this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null;else{0!==this._time&&(o=!1);n={};for(u in t)bt[u]&&"autoCSS"!==u||(n[u]=t[u]);if(n.overwrite=0,n.data="isFromStart",n.lazy=o&&t.lazy!==!1,n.immediateRender=o,this._startAt=r.to(this.target,0,n),o){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=i=i?i instanceof a?i:"function"==typeof i?new a(i,t.easeParams):nt[i]||r.defaultEase:r.defaultEase,t.easeParams instanceof Array&&i.config&&(this._ease=i.config.apply(i,t.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(e=this._targets.length;--e>-1;)this._initProps(this._targets[e],this._propLookup[e]={},this._siblings[e],s?s[e]:null)&&(h=!0);else h=this._initProps(this.target,this._propLookup,this._siblings,s);if(h&&r._onPluginEvent("_onInitAllProps",this),s&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),t.runBackwards)for(n=this._firstPT;n;)n.s+=n.c,n.c=-n.c,n=n._next;this._onUpdate=t.onUpdate;this._initted=!0},i._initProps=function(t,i,r,u){var f,h,c,s,o,e;if(null==t)return!1;pt[t._gsTweenID]&&ft();this.vars.css||t.style&&t!==n&&t.nodeType&&w.css&&this.vars.autoCSS!==!1&&ei(this.vars,t);for(f in this.vars){if(e=this.vars[f],bt[f])e&&(e instanceof Array||e.push&&d(e))&&-1!==e.join("").indexOf("{self}")&&(this.vars[f]=e=this._swapSelfInParams(e,this));else if(w[f]&&(s=new w[f])._onInitTween(t,this.vars[f],this)){for(this._firstPT=o={_next:this._firstPT,t:s,p:"setRatio",s:0,c:1,f:!0,n:f,pg:!0,pr:s._priority},h=s._overwriteProps.length;--h>-1;)i[s._overwriteProps[h]]=this._firstPT;(s._priority||s._onInitAllProps)&&(c=!0);(s._onDisable||s._onEnable)&&(this._notifyPluginsOfEnabled=!0)}else this._firstPT=i[f]=o={_next:this._firstPT,t:t,p:f,f:"function"==typeof t[f],n:f,pg:!1,pr:0},o.s=o.f?t[f.indexOf("set")||"function"!=typeof t["get"+f.substr(3)]?f:"get"+f.substr(3)]():parseFloat(t[f]),o.c="string"==typeof e&&"="===e.charAt(1)?parseInt(e.charAt(0)+"1",10)*Number(e.substr(2)):Number(e)-o.s||0;o&&o._next&&(o._next._prev=o)}return u&&this._kill(u,t)?this._initProps(t,i,r,u):this._overwrite>1&&this._firstPT&&r.length>1&&dt(t,this,i,this._overwrite,r)?(this._kill(i,t),this._initProps(t,i,r,u)):(this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration)&&(pt[t._gsTweenID]=!0),c)},i.render=function(n,t,i){var h,o,u,v,c=this._time,f=this._duration,s=this._rawPrevTime;if(n>=f)this._totalTime=this._time=f,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(h=!0,o="onComplete"),0===f&&(this._initted||!this.vars.lazy||i)&&(this._startTime===this._timeline._duration&&(n=0),(0===n||0>s||s===e)&&s!==n&&(i=!0,s>e&&(o="onReverseComplete")),this._rawPrevTime=v=!t||n||s===n?n:e);else if(1e-7>n)this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==c||0===f&&s>0&&s!==e)&&(o="onReverseComplete",h=this._reversed),0>n&&(this._active=!1,0===f&&(this._initted||!this.vars.lazy||i)&&(s>=0&&(i=!0),this._rawPrevTime=v=!t||n||s===n?n:e)),this._initted||(i=!0);else if(this._totalTime=this._time=n,this._easeType){var r=n/f,l=this._easeType,a=this._easePower;(1===l||3===l&&r>=.5)&&(r=1-r);3===l&&(r*=2);1===a?r*=r:2===a?r*=r*r:3===a?r*=r*r*r:4===a&&(r*=r*r*r*r);this.ratio=1===l?1-r:2===l?r:.5>n/f?r/2:1-r/2}else this.ratio=this._ease.getRatio(n/f);if(this._time!==c||i){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!i&&this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totalTime=c,this._rawPrevTime=s,y.push(this),this._lazy=[n,t],void 0;this._time&&!h?this.ratio=this._ease.getRatio(this._time/f):h&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==c&&n>=0&&(this._active=!0),0===c&&(this._startAt&&(n>=0?this._startAt.render(n,t,i):o||(o="_dummyGS")),this.vars.onStart&&(0!==this._time||0===f)&&(t||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||ht))),u=this._firstPT;u;)u.f?u.t[u.p](u.c*this.ratio+u.s):u.t[u.p]=u.c*this.ratio+u.s,u=u._next;this._onUpdate&&(0>n&&this._startAt&&n!==-.0001&&this._startAt.render(n,t,i),t||(this._time!==c||h)&&this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||ht));o&&(!this._gc||i)&&(0>n&&this._startAt&&!this._onUpdate&&n!==-.0001&&this._startAt.render(n,t,i),h&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!t&&this.vars[o]&&this.vars[o].apply(this.vars[o+"Scope"]||this,this.vars[o+"Params"]||ht),0===f&&this._rawPrevTime===e&&v!==e&&(this._rawPrevTime=0))}},i._kill=function(n,t,i){if("all"===n&&(n=null),null==n&&(null==t||t===this.target))return this._lazy=!1,this._enabled(!1,!1);t="string"!=typeof t?t||this._targets||this.target:r.selector(t)||t;var f,s,o,u,e,l,h,a,c;if((d(t)||yt(t))&&"number"!=typeof t[0])for(f=t.length;--f>-1;)this._kill(n,t[f])&&(l=!0);else{if(this._targets){for(f=this._targets.length;--f>-1;)if(t===this._targets[f]){e=this._propLookup[f]||{};this._overwrittenProps=this._overwrittenProps||[];s=this._overwrittenProps[f]=n?this._overwrittenProps[f]||{}:"all";break}}else{if(t!==this.target)return!1;e=this._propLookup;s=this._overwrittenProps=n?this._overwrittenProps||{}:"all"}if(e){if(h=n||e,a=n!==s&&"all"!==s&&n!==e&&("object"!=typeof n||!n._tempKill),i&&(r.onOverwrite||this.vars.onOverwrite)){for(o in h)e[o]&&(c||(c=[]),c.push(o));if(!kt(this,i,t,c))return!1}for(o in h)(u=e[o])&&(u.pg&&u.t._kill(h)&&(l=!0),u.pg&&0!==u.t._overwriteProps.length||(u._prev?u._prev._next=u._next:u===this._firstPT&&(this._firstPT=u._next),u._next&&(u._next._prev=u._prev),u._next=u._prev=null),delete e[o]),a&&(s[o]=1);!this._firstPT&&this._initted&&this._enabled(!1,!1)}}return l},i.invalidate=function(){return this._notifyPluginsOfEnabled&&r._onPluginEvent("_onDisable",this),this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],o.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-e,this.render(-this._delay)),this},i._enabled=function(n,t){if(h||u.wake(),n&&this._gc){var i,f=this._targets;if(f)for(i=f.length;--i>-1;)this._siblings[i]=et(f[i],this,!0);else this._siblings=et(this.target,this,!0)}return o.prototype._enabled.call(this,n,t),this._notifyPluginsOfEnabled&&this._firstPT?r._onPluginEvent(n?"_onEnable":"_onDisable",this):!1},r.to=function(n,t,i){return new r(n,t,i)},r.from=function(n,t,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new r(n,t,i)},r.fromTo=function(n,t,i,u){return u.startAt=i,u.immediateRender=0!=u.immediateRender&&0!=i.immediateRender,new r(n,t,u)},r.delayedCall=function(n,t,i,u,f){return new r(t,0,{delay:n,onComplete:t,onCompleteParams:i,onCompleteScope:u,onReverseComplete:t,onReverseCompleteParams:i,onReverseCompleteScope:u,immediateRender:!1,useFrames:f,overwrite:0})},r.set=function(n,t){return new r(n,0,t)},r.getTweensOf=function(n,t){if(null==n)return[];n="string"!=typeof n?n:r.selector(n)||n;var i,u,f,e;if((d(n)||yt(n))&&"number"!=typeof n[0]){for(i=n.length,u=[];--i>-1;)u=u.concat(r.getTweensOf(n[i],t));for(i=u.length;--i>-1;)for(e=u[i],f=i;--f>-1;)e===u[f]&&u.splice(i,1)}else for(u=et(n).concat(),i=u.length;--i>-1;)(u[i]._gc||t&&!u[i].isActive())&&u.splice(i,1);return u},r.killTweensOf=r.killDelayedCallsTo=function(n,t,i){"object"==typeof t&&(i=t,t=!1);for(var u=r.getTweensOf(n,t),f=u.length;--f>-1;)u[f]._kill(i,n)},c=l("plugins.TweenPlugin",function(n,t){this._overwriteProps=(n||"").split(",");this._propName=this._overwriteProps[0];this._priority=t||0;this._super=c.prototype},!0),i=c.prototype,c.version="1.10.1",c.API=2,i._firstPT=null,i._addTween=function(n,t,i,r,u,f){var o,e;if(null!=r&&(o="number"==typeof r||"="!==r.charAt(1)?Number(r)-i:parseInt(r.charAt(0)+"1",10)*Number(r.substr(2))))return(this._firstPT=e={_next:this._firstPT,t:n,p:t,s:i,c:o,f:"function"==typeof n[t],n:u||t,r:f},e._next&&(e._next._prev=e),e)},i.setRatio=function(n){for(var i,t=this._firstPT,r=1e-6;t;)i=t.c*n+t.s,t.r?i=Math.round(i):r>i&&i>-r&&(i=0),t.f?t.t[t.p](i):t.t[t.p]=i,t=t._next},i._kill=function(n){var i,r=this._overwriteProps,t=this._firstPT;if(null!=n[this._propName])this._overwriteProps=[];else for(i=r.length;--i>-1;)null!=n[r[i]]&&r.splice(i,1);for(;t;)null!=n[t.n]&&(t._next&&(t._next._prev=t._prev),t._prev?(t._prev._next=t._next,t._prev=null):this._firstPT===t&&(this._firstPT=t._next)),t=t._next;return!1},i._roundProps=function(n,t){for(var i=this._firstPT;i;)(n[this._propName]||null!=i.n&&n[i.n.split(this._propName+"_").join("")])&&(i.r=t),i=i._next},r._onPluginEvent=function(n,t){var f,r,u,e,o,i=t._firstPT;if("_onInitAllProps"===n){for(;i;){for(o=i._next,r=u;r&&r.pr>i.pr;)r=r._next;(i._prev=r?r._prev:e)?i._prev._next=i:u=i;(i._next=r)?r._prev=i:e=i;i=o}i=t._firstPT=u}for(;i;)i.pg&&"function"==typeof i.t[n]&&i.t[n]()&&(f=!0),i=i._next;return f},c.activate=function(n){for(var t=n.length;--t>-1;)n[t].API===c.API&&(w[(new n[t])._propName]=n[t]);return!0},st.plugin=function(n){if(!(n&&n.propName&&n.init&&n.API))throw"illegal plugin definition.";var i,r=n.propName,e=n.priority||0,o=n.overwriteProps,u={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_roundProps",initAll:"_onInitAllProps"},t=l("plugins."+r.charAt(0).toUpperCase()+r.substr(1)+"Plugin",function(){c.call(this,r,e);this._overwriteProps=o||[]},n.global===!0),f=t.prototype=new c(r);f.constructor=t;t.API=n.API;for(i in u)"function"==typeof n[i]&&(f[u[i]]=n[i]);return t.version=n.version,c.activate([t]),t},s=n._gsQueue){for(f=0;s.length>f;f++)s[f]();for(i in g)g[i].func||n.console.log("GSAP encountered missing dependency: com.greensock."+i)}h=!1}})("undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window,"TweenLite");_gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(n,t,i){var u=function(n){t.call(this,n);this._labels={};this.autoRemoveChildren=this.vars.autoRemoveChildren===!0;this.smoothChildTiming=this.vars.smoothChildTiming===!0;this._sortChildren=!0;this._onUpdate=this.vars.onUpdate;var r,u,i=this.vars;for(u in i)r=i[u],f(r)&&-1!==r.join("").indexOf("{self}")&&(i[u]=this._swapSelfInParams(r));f(i.tweens)&&this.add(i.tweens,0,i.align,i.stagger)},e=1e-10,o=i._internals,y=o.isSelector,f=o.isArray,c=o.lazyTweens,l=o.lazyRender,s=[],h=_gsScope._gsDefine.globals,a=function(n){var t,i={};for(t in n)i[t]=n[t];return i},p=function(n,t,i,r){var u=n._timeline._totalTime;(t||!this._forcingPlayhead)&&(n._timeline.pause(n._startTime),t&&t.apply(r||n._timeline,i||s),this._forcingPlayhead&&n._timeline.seek(u))},v=function(n){for(var i=[],r=n.length,t=0;t!==r;i.push(n[t++]));return i},r=u.prototype=new t;return u.version="1.14.2",r.constructor=u,r.kill()._gc=r._forcingPlayhead=!1,r.to=function(n,t,r,u){var f=r.repeat&&h.TweenMax||i;return t?this.add(new f(n,t,r),u):this.set(n,r,u)},r.from=function(n,t,r,u){return this.add((r.repeat&&h.TweenMax||i).from(n,t,r),u)},r.fromTo=function(n,t,r,u,f){var e=u.repeat&&h.TweenMax||i;return t?this.add(e.fromTo(n,t,r,u),f):this.set(n,u,f)},r.staggerTo=function(n,t,r,f,e,o,s,h){var c,l=new u({onComplete:o,onCompleteParams:s,onCompleteScope:h,smoothChildTiming:this.smoothChildTiming});for("string"==typeof n&&(n=i.selector(n)||n),n=n||[],y(n)&&(n=v(n)),f=f||0,0>f&&(n=v(n),n.reverse(),f*=-1),c=0;n.length>c;c++)r.startAt&&(r.startAt=a(r.startAt)),l.to(n[c],t,a(r),c*f);return this.add(l,e)},r.staggerFrom=function(n,t,i,r,u,f,e,o){return i.immediateRender=0!=i.immediateRender,i.runBackwards=!0,this.staggerTo(n,t,i,r,u,f,e,o)},r.staggerFromTo=function(n,t,i,r,u,f,e,o,s){return r.startAt=i,r.immediateRender=0!=r.immediateRender&&0!=i.immediateRender,this.staggerTo(n,t,r,u,f,e,o,s)},r.call=function(n,t,r,u){return this.add(i.delayedCall(0,n,t,r),u)},r.set=function(n,t,r){return r=this._parseTimeOrLabel(r,0,!0),null==t.immediateRender&&(t.immediateRender=r===this._time&&!this._paused),this.add(new i(n,0,t),r)},u.exportRoot=function(n,t){n=n||{};null==n.smoothChildTiming&&(n.smoothChildTiming=!0);var r,o,f=new u(n),e=f._timeline;for(null==t&&(t=!0),e._remove(f,!0),f._startTime=0,f._rawPrevTime=f._time=f._totalTime=e._time,r=e._first;r;)o=r._next,t&&r instanceof i&&r.target===r.vars.onComplete||f.add(r,r._startTime-r._delay),r=o;return e.add(f,0),f},r.add=function(r,e,o,s){var l,v,a,h,c,y;if("number"!=typeof e&&(e=this._parseTimeOrLabel(e,0,!0,r)),!(r instanceof n)){if(r instanceof Array||r&&r.push&&f(r)){for(o=o||"normal",s=s||0,l=e,v=r.length,a=0;v>a;a++)f(h=r[a])&&(h=new u({tweens:h})),this.add(h,l),"string"!=typeof h&&"function"!=typeof h&&("sequence"===o?l=h._startTime+h.totalDuration()/h._timeScale:"start"===o&&(h._startTime-=h.delay())),l+=s;return this._uncache(!0)}if("string"==typeof r)return this.addLabel(r,e);if("function"!=typeof r)throw"Cannot add "+r+" into the timeline; it is not a tween, timeline, function, or string.";r=i.delayedCall(0,r)}if(t.prototype.add.call(this,r,e),(this._gc||this._time===this._duration)&&!this._paused&&this._duration<this.duration())for(c=this,y=c.rawTime()>r._startTime;c._timeline;)y&&c._timeline.smoothChildTiming?c.totalTime(c._totalTime,!0):c._gc&&c._enabled(!0,!1),c=c._timeline;return this},r.remove=function(t){if(t instanceof n)return this._remove(t,!1);if(t instanceof Array||t&&t.push&&f(t)){for(var i=t.length;--i>-1;)this.remove(t[i]);return this}return"string"==typeof t?this.removeLabel(t):this.kill(null,t)},r._remove=function(n,i){t.prototype._remove.call(this,n,i);var r=this._last;return r?this._time>r._startTime+r._totalDuration/r._timeScale&&(this._time=this.duration(),this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},r.append=function(n,t){return this.add(n,this._parseTimeOrLabel(null,t,!0,n))},r.insert=r.insertMultiple=function(n,t,i,r){return this.add(n,t||0,i,r)},r.appendMultiple=function(n,t,i,r){return this.add(n,this._parseTimeOrLabel(null,t,!0,n),i,r)},r.addLabel=function(n,t){return this._labels[n]=this._parseTimeOrLabel(t),this},r.addPause=function(n,t,i,r){return this.call(p,["{self}",t,i,r],this,n)},r.removeLabel=function(n){return delete this._labels[n],this},r.getLabelTime=function(n){return null!=this._labels[n]?this._labels[n]:-1},r._parseTimeOrLabel=function(t,i,r,u){var e;if(u instanceof n&&u.timeline===this)this.remove(u);else if(u&&(u instanceof Array||u.push&&f(u)))for(e=u.length;--e>-1;)u[e]instanceof n&&u[e].timeline===this&&this.remove(u[e]);if("string"==typeof i)return this._parseTimeOrLabel(i,r&&"number"==typeof t&&null==this._labels[i]?t-this.duration():0,r);if(i=i||0,"string"==typeof t&&(isNaN(t)||null!=this._labels[t])){if(e=t.indexOf("="),-1===e)return null==this._labels[t]?r?this._labels[t]=this.duration()+i:i:this._labels[t]+i;i=parseInt(t.charAt(e-1)+"1",10)*Number(t.substr(e+1));t=e>1?this._parseTimeOrLabel(t.substr(0,e-1),0,r):this.duration()}else null==t&&(t=this.duration());return Number(t)+i},r.seek=function(n,t){return this.totalTime("number"==typeof n?n:this._parseTimeOrLabel(n),t!==!1)},r.stop=function(){return this.paused(!0)},r.gotoAndPlay=function(n,t){return this.play(n,t)},r.gotoAndStop=function(n,t){return this.pause(n,t)},r.render=function(n,t,i){this._gc&&this._enabled(!0,!1);var r,v,o,u,h,a=this._dirty?this.totalDuration():this._totalDuration,f=this._time,p=this._startTime,w=this._timeScale,y=this._paused;if(n>=a?(this._totalTime=this._time=a,this._reversed||this._hasPausedChild()||(v=!0,u="onComplete",0===this._duration&&(0===n||0>this._rawPrevTime||this._rawPrevTime===e)&&this._rawPrevTime!==n&&this._first&&(h=!0,this._rawPrevTime>e&&(u="onReverseComplete"))),this._rawPrevTime=this._duration||!t||n||this._rawPrevTime===n?n:e,n=a+.0001):1e-7>n?(this._totalTime=this._time=0,(0!==f||0===this._duration&&this._rawPrevTime!==e&&(this._rawPrevTime>0||0>n&&this._rawPrevTime>=0))&&(u="onReverseComplete",v=this._reversed),0>n?(this._active=!1,this._rawPrevTime>=0&&this._first&&(h=!0),this._rawPrevTime=n):(this._rawPrevTime=this._duration||!t||n||this._rawPrevTime===n?n:e,n=0,this._initted||(h=!0))):this._totalTime=this._time=this._rawPrevTime=n,this._time!==f&&this._first||i||h){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==f&&n>0&&(this._active=!0),0===f&&this.vars.onStart&&0!==this._time&&(t||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||s)),this._time>=f)for(r=this._first;r&&(o=r._next,!this._paused||y);)(r._active||r._startTime<=this._time&&!r._paused&&!r._gc)&&(r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(n-r._startTime)*r._timeScale,t,i):r.render((n-r._startTime)*r._timeScale,t,i)),r=o;else for(r=this._last;r&&(o=r._prev,!this._paused||y);)(r._active||f>=r._startTime&&!r._paused&&!r._gc)&&(r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(n-r._startTime)*r._timeScale,t,i):r.render((n-r._startTime)*r._timeScale,t,i)),r=o;this._onUpdate&&(t||(c.length&&l(),this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||s)));u&&(this._gc||(p===this._startTime||w!==this._timeScale)&&(0===this._time||a>=this.totalDuration())&&(v&&(c.length&&l(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!t&&this.vars[u]&&this.vars[u].apply(this.vars[u+"Scope"]||this,this.vars[u+"Params"]||s)))}},r._hasPausedChild=function(){for(var n=this._first;n;){if(n._paused||n instanceof u&&n._hasPausedChild())return!0;n=n._next}return!1},r.getChildren=function(n,t,r,u){u=u||-9999999999;for(var e=[],f=this._first,o=0;f;)u>f._startTime||(f instanceof i?t!==!1&&(e[o++]=f):(r!==!1&&(e[o++]=f),n!==!1&&(e=e.concat(f.getChildren(!0,t,r)),o=e.length))),f=f._next;return e},r.getTweensOf=function(n,t){var r,u,f=this._gc,e=[],o=0;for(f&&this._enabled(!0,!0),r=i.getTweensOf(n),u=r.length;--u>-1;)(r[u].timeline===this||t&&this._contains(r[u]))&&(e[o++]=r[u]);return f&&this._enabled(!1,!0),e},r.recent=function(){return this._recent},r._contains=function(n){for(var t=n.timeline;t;){if(t===this)return!0;t=t.timeline}return!1},r.shiftChildren=function(n,t,i){i=i||0;for(var u,r=this._first,f=this._labels;r;)r._startTime>=i&&(r._startTime+=n),r=r._next;if(t)for(u in f)f[u]>=i&&(f[u]+=n);return this._uncache(!0)},r._kill=function(n,t){if(!n&&!t)return this._enabled(!1,!1);for(var i=t?this.getTweensOf(t):this.getChildren(!0,!0,!1),r=i.length,u=!1;--r>-1;)i[r]._kill(n,t)&&(u=!0);return u},r.clear=function(n){var t=this.getChildren(!1,!0,!0),i=t.length;for(this._time=this._totalTime=0;--i>-1;)t[i]._enabled(!1,!1);return n!==!1&&(this._labels={}),this._uncache(!0)},r.invalidate=function(){for(var t=this._first;t;)t.invalidate(),t=t._next;return n.prototype.invalidate.call(this)},r._enabled=function(n,i){if(n===this._gc)for(var r=this._first;r;)r._enabled(n,!0),r=r._next;return t.prototype._enabled.call(this,n,i)},r.totalTime=function(){this._forcingPlayhead=!0;var t=n.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,t},r.duration=function(n){return arguments.length?(0!==this.duration()&&0!==n&&this.timeScale(this._duration/n),this):(this._dirty&&this.totalDuration(),this._duration)},r.totalDuration=function(n){if(!arguments.length){if(this._dirty){for(var f,r,i=0,t=this._last,u=999999999999;t;)f=t._prev,t._dirty&&t.totalDuration(),t._startTime>u&&this._sortChildren&&!t._paused?this.add(t,t._startTime-t._delay):u=t._startTime,0>t._startTime&&!t._paused&&(i-=t._startTime,this._timeline.smoothChildTiming&&(this._startTime+=t._startTime/this._timeScale),this.shiftChildren(-t._startTime,!1,-9999999999),u=0),r=t._startTime+t._totalDuration/t._timeScale,r>i&&(i=r),t=f;this._duration=this._totalDuration=i;this._dirty=!1}return this._totalDuration}return 0!==this.totalDuration()&&0!==n&&this.timeScale(this._totalDuration/n),this},r.usesFrames=function(){for(var t=this._timeline;t._timeline;)t=t._timeline;return t===n._rootFramesTimeline},r.rawTime=function(){return this._paused?this._totalTime:(this._timeline.rawTime()-this._startTime)*this._timeScale},u},!0)});_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(n){"use strict";var t=function(){return(_gsScope.GreenSockGlobals||_gsScope)[n]};"function"==typeof define&&define.amd?define(["TweenLite"],t):"undefined"!=typeof module&&module.exports&&(require("./TweenLite.js"),module.exports=t())}("TimelineLite");_gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("easing.Back",["easing.Ease"],function(n){var f,u,h,v=_gsScope.GreenSockGlobals||_gsScope,p=v.com.greensock,s=2*Math.PI,y=Math.PI/2,r=p._class,t=function(t,i){var u=r("easing."+t,function(){},!0),f=u.prototype=new n;return f.constructor=u,f.getRatio=i,u},c=n.register||function(){},e=function(n,t,i,u){var f=r("easing."+n,{easeOut:new t,easeIn:new i,easeInOut:new u},!0);return c(f,n),f},l=function(n,t,i){this.t=n;this.v=t;i&&(this.next=i,i.prev=this,this.c=i.v-t,this.gap=i.t-n)},a=function(t,i){var u=r("easing."+t,function(n){this._p1=n||0===n?n:1.70158;this._p2=1.525*this._p1},!0),f=u.prototype=new n;return f.constructor=u,f.getRatio=i,f.config=function(n){return new u(n)},u},w=e("Back",a("BackOut",function(n){return(n-=1)*n*((this._p1+1)*n+this._p1)+1}),a("BackIn",function(n){return n*n*((this._p1+1)*n-this._p1)}),a("BackInOut",function(n){return 1>(n*=2)?.5*n*n*((this._p2+1)*n-this._p2):.5*((n-=2)*n*((this._p2+1)*n+this._p2)+2)})),o=r("easing.SlowMo",function(n,t,i){t=t||0===t?t:.7;null==n?n=.7:n>1&&(n=1);this._p=1!==n?t:0;this._p1=(1-n)/2;this._p2=n;this._p3=this._p1+this._p2;this._calcEnd=i===!0},!0),i=o.prototype=new n;return i.constructor=o,i.getRatio=function(n){var t=n+(.5-n)*this._p;return this._p1>n?this._calcEnd?1-(n=1-n/this._p1)*n:t-(n=1-n/this._p1)*n*n*n*t:n>this._p3?this._calcEnd?1-(n=(n-this._p3)/this._p1)*n:t+(n-t)*(n=(n-this._p3)/this._p1)*n*n*n:this._calcEnd?1:t},o.ease=new o(.7,.7),i.config=o.config=function(n,t,i){return new o(n,t,i)},f=r("easing.SteppedEase",function(n){n=n||1;this._p1=1/n;this._p2=n+1},!0),i=f.prototype=new n,i.constructor=f,i.getRatio=function(n){return 0>n?n=0:n>=1&&(n=.999999999),(this._p2*n>>0)*this._p1},i.config=f.config=function(n){return new f(n)},u=r("easing.RoughEase",function(t){t=t||{};for(var i,r,u,f,h,e,c=t.taper||"none",a=[],w=0,v=0|(t.points||20),o=v,y=t.randomize!==!1,b=t.clamp===!0,p=t.template instanceof n?t.template:null,s="number"==typeof t.strength?.4*t.strength:.4;--o>-1;)i=y?Math.random():1/v*o,r=p?p.getRatio(i):i,"none"===c?u=s:"out"===c?(f=1-i,u=f*f*s):"in"===c?u=i*i*s:.5>i?(f=2*i,u=.5*f*f*s):(f=2*(1-i),u=.5*f*f*s),y?r+=Math.random()*u-.5*u:o%2?r+=.5*u:r-=.5*u,b&&(r>1?r=1:0>r&&(r=0)),a[w++]={x:i,y:r};for(a.sort(function(n,t){return n.x-t.x}),e=new l(1,1,null),o=v;--o>-1;)h=a[o],e=new l(h.x,h.y,e);this._prev=new l(0,0,0!==e.t?e:e.next)},!0),i=u.prototype=new n,i.constructor=u,i.getRatio=function(n){var t=this._prev;if(n>t.t){for(;t.next&&n>=t.t;)t=t.next;t=t.prev}else for(;t.prev&&t.t>=n;)t=t.prev;return this._prev=t,t.v+(n-t.t)/t.gap*t.c},i.config=function(n){return new u(n)},u.ease=new u,e("Bounce",t("BounceOut",function(n){return 1/2.75>n?7.5625*n*n:2/2.75>n?7.5625*(n-=1.5/2.75)*n+.75:2.5/2.75>n?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375}),t("BounceIn",function(n){return 1/2.75>(n=1-n)?1-7.5625*n*n:2/2.75>n?1-(7.5625*(n-=1.5/2.75)*n+.75):2.5/2.75>n?1-(7.5625*(n-=2.25/2.75)*n+.9375):1-(7.5625*(n-=2.625/2.75)*n+.984375)}),t("BounceInOut",function(n){var t=.5>n;return n=t?1-2*n:2*n-1,n=1/2.75>n?7.5625*n*n:2/2.75>n?7.5625*(n-=1.5/2.75)*n+.75:2.5/2.75>n?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375,t?.5*(1-n):.5*n+.5})),e("Circ",t("CircOut",function(n){return Math.sqrt(1-(n-=1)*n)}),t("CircIn",function(n){return-(Math.sqrt(1-n*n)-1)}),t("CircInOut",function(n){return 1>(n*=2)?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1)})),h=function(t,i,u){var f=r("easing."+t,function(n,t){this._p1=n||1;this._p2=t||u;this._p3=this._p2/s*(Math.asin(1/this._p1)||0)},!0),e=f.prototype=new n;return e.constructor=f,e.getRatio=i,e.config=function(n,t){return new f(n,t)},f},e("Elastic",h("ElasticOut",function(n){return this._p1*Math.pow(2,-10*n)*Math.sin((n-this._p3)*s/this._p2)+1},.3),h("ElasticIn",function(n){return-(this._p1*Math.pow(2,10*(n-=1))*Math.sin((n-this._p3)*s/this._p2))},.3),h("ElasticInOut",function(n){return 1>(n*=2)?-.5*this._p1*Math.pow(2,10*(n-=1))*Math.sin((n-this._p3)*s/this._p2):.5*this._p1*Math.pow(2,-10*(n-=1))*Math.sin((n-this._p3)*s/this._p2)+1},.45)),e("Expo",t("ExpoOut",function(n){return 1-Math.pow(2,-10*n)}),t("ExpoIn",function(n){return Math.pow(2,10*(n-1))-.001}),t("ExpoInOut",function(n){return 1>(n*=2)?.5*Math.pow(2,10*(n-1)):.5*(2-Math.pow(2,-10*(n-1)))})),e("Sine",t("SineOut",function(n){return Math.sin(n*y)}),t("SineIn",function(n){return-Math.cos(n*y)+1}),t("SineInOut",function(n){return-.5*(Math.cos(Math.PI*n)-1)})),r("easing.EaseLookup",{find:function(t){return n.map[t]}},!0),c(v.SlowMo,"SlowMo","ease,"),c(u,"RoughEase","ease,"),c(f,"SteppedEase","ease,"),w},!0)});_gsScope._gsDefine&&_gsScope._gsQueue.pop()();_gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(n,t){var ut,vt,f,gt,e=function(){n.call(this,"css");this._overwriteProps.length=0;this.setRatio=e.prototype.setRatio},l={},i=e.prototype=new n("css"),yr,dt,pr,wr,br,at;i.constructor=e;e.version="1.14.2";e.API=2;e.defaultTransformPerspective=0;e.defaultSkewType="compensated";i="px";e.suffixMap={top:i,right:i,bottom:i,left:i,width:i,height:i,fontSize:i,padding:i,margin:i,perspective:i,lineHeight:""};var ni,yi,ti,pi,wi,g,yt=/(?:\d|\-\d|\.\d|\-\.\d)+/g,bi=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,ii=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,pt=/(?![+-]?\d*\.?\d+|e[+-]\d+)[^0-9]/g,ri=/(?:\d|\-|\+|=|#|\.)*/g,ui=/opacity *= *([^)]*)/i,kr=/opacity:([^;]*)/i,dr=/alpha\(opacity *=.+?\)/i,ki=/^(rgb|hsl)/,di=/([A-Z])/g,gi=/-([a-z])/gi,gr=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,nr=function(n,t){return t.toUpperCase()},nu=/(?:Left|Right|Width)/i,tu=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,iu=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,a=/,(?=[^\)]*(?:\(|$))/gi,v=Math.PI/180,nt=180/Math.PI,wt={},y=document,d=y.createElement("div"),fi=y.createElement("img"),p=e._internals={_specialProps:l},w=navigator.userAgent,tt=function(){var n,t=w.indexOf("Android"),i=y.createElement("div");return ti=-1!==w.indexOf("Safari")&&-1===w.indexOf("Chrome")&&(-1===t||Number(w.substr(t+8,1))>3),wi=ti&&6>Number(w.substr(w.indexOf("Version/")+8,1)),pi=-1!==w.indexOf("Firefox"),(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(w)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(w))&&(g=parseFloat(RegExp.$1)),i.innerHTML="<a style='top:1px;opacity:.55;'>a<\/a>",n=i.getElementsByTagName("a")[0],n?/^0.55/.test(n.style.opacity):!1}(),tr=function(n){return ui.test("string"==typeof n?n:(n.currentStyle?n.currentStyle.filter:n.style.filter)||"")?parseFloat(RegExp.$1)/100:1},ir=function(n){window.console&&console.log(n)},rr="",ei="",ft=function(n,t){t=t||d;var r,i,u=t.style;if(void 0!==u[n])return n;for(n=n.charAt(0).toUpperCase()+n.substr(1),r=["O","Moz","ms","Ms","Webkit"],i=5;--i>-1&&void 0===u[r[i]+n];);return i>=0?(ei=3===i?"ms":r[i],rr="-"+ei.toLowerCase()+"-",ei+n):null},et=y.defaultView?y.defaultView.getComputedStyle:function(){},r=e.getStyle=function(n,t,i,r,u){var f;return tt||"opacity"!==t?(!r&&n.style[t]?f=n.style[t]:(i=i||et(n))?f=i[t]||i.getPropertyValue(t)||i.getPropertyValue(t.replace(di,"-$1").toLowerCase()):n.currentStyle&&(f=n.currentStyle[t]),null==u||f&&"none"!==f&&"auto"!==f&&"auto auto"!==f?f:u):tr(n)},b=p.convertToPixels=function(n,i,u,f,o){if("px"===f||!f)return u;if("auto"===f||!u)return 0;var s,h,a,l=nu.test(i),c=n,v=d.style,p=0>u;if(p&&(u=-u),"%"===f&&-1!==i.indexOf("border"))s=u/100*(l?n.clientWidth:n.clientHeight);else{if(v.cssText="border:0 solid red;position:"+r(n,"position")+";line-height:0;","%"!==f&&c.appendChild)v[l?"borderLeftWidth":"borderTopWidth"]=u+f;else{if(c=n.parentNode||y.body,h=c._gsCache,a=t.ticker.frame,h&&l&&h.time===a)return h.width*u/100;v[l?"width":"height"]=u+f}c.appendChild(d);s=parseFloat(d[l?"offsetWidth":"offsetHeight"]);c.removeChild(d);l&&"%"===f&&e.cacheWidths!==!1&&(h=c._gsCache=c._gsCache||{},h.time=a,h.width=100*(s/u));0!==s||o||(s=b(n,i,u,f,!0))}return p?-s:s},ur=p.calculateOffset=function(n,t,i){if("absolute"!==r(n,"position",i))return 0;var u="left"===t?"Left":"Top",f=r(n,"margin"+u,i);return n["offset"+u]-(b(n,t,parseFloat(f),f.replace(ri,""))||0)},ot=function(n,t){var r,u,i={};if(t=t||et(n,null))if(r=t.length)for(;--r>-1;)i[t[r].replace(gi,nr)]=t.getPropertyValue(t[r]);else for(r in t)i[r]=t[r];else if(t=n.currentStyle||n.style)for(r in t)"string"==typeof r&&void 0===i[r]&&(i[r.replace(gi,nr)]=t[r]);return tt||(i.opacity=tr(n)),u=lt(n,t,!1),i.rotation=u.rotation,i.skewX=u.skewX,i.scaleX=u.scaleX,i.scaleY=u.scaleY,i.x=u.x,i.y=u.y,k&&(i.z=u.z,i.rotationX=u.rotationX,i.rotationY=u.rotationY,i.scaleZ=u.scaleZ),i.filters&&delete i.filters,i},oi=function(n,t,i,r,u){var e,f,o,s={},h=n.style;for(f in i)"cssText"!==f&&"length"!==f&&isNaN(f)&&(t[f]!==(e=i[f])||u&&u[f])&&-1===f.indexOf("Origin")&&("number"==typeof e||"string"==typeof e)&&(s[f]="auto"!==e||"left"!==f&&"top"!==f?""!==e&&"auto"!==e&&"none"!==e||"string"!=typeof t[f]||""===t[f].replace(pt,"")?e:0:ur(n,f),void 0!==h[f]&&(o=new li(h,f,h[f],o)));if(r)for(f in r)"className"!==f&&(s[f]=r[f]);return{difs:s,firstMPT:o}},ru={width:["Left","Right"],height:["Top","Bottom"]},uu=["marginLeft","marginRight","marginTop","marginBottom"],fu=function(n,t,i){var u=parseFloat("width"===t?n.offsetWidth:n.offsetHeight),f=ru[t],e=f.length;for(i=i||et(n,null);--e>-1;)u-=parseFloat(r(n,"padding"+f[e],i,!0))||0,u-=parseFloat(r(n,"border"+f[e]+"Width",i,!0))||0;return u},bt=function(n,t){(null==n||""===n||"auto"===n||"auto auto"===n)&&(n="0 0");var u=n.split(" "),i=-1!==n.indexOf("left")?"0%":-1!==n.indexOf("right")?"100%":u[0],r=-1!==n.indexOf("top")?"0%":-1!==n.indexOf("bottom")?"100%":u[1];return null==r?r="0":"center"===r&&(r="50%"),("center"===i||isNaN(parseFloat(i))&&-1===(i+"").indexOf("="))&&(i="50%"),t&&(t.oxp=-1!==i.indexOf("%"),t.oyp=-1!==r.indexOf("%"),t.oxr="="===i.charAt(1),t.oyr="="===r.charAt(1),t.ox=parseFloat(i.replace(pt,"")),t.oy=parseFloat(r.replace(pt,""))),i+" "+r+(u.length>2?" "+u[2]:"")},fr=function(n,t){return"string"==typeof n&&"="===n.charAt(1)?parseInt(n.charAt(0)+"1",10)*parseFloat(n.substr(2)):parseFloat(n)-parseFloat(t)},c=function(n,t){return null==n?t:"string"==typeof n&&"="===n.charAt(1)?parseInt(n.charAt(0)+"1",10)*parseFloat(n.substr(2))+t:parseFloat(n)},st=function(n,t,i,r){var f,o,u,e,s=1e-6;return null==n?e=t:"number"==typeof n?e=n:(f=360,o=n.split("_"),u=Number(o[0].replace(pt,""))*(-1===n.indexOf("rad")?1:nt)-("="===n.charAt(1)?0:t),o.length&&(r&&(r[i]=t+u),-1!==n.indexOf("short")&&(u%=f,u!==u%(f/2)&&(u=0>u?u+f:u-f)),-1!==n.indexOf("_cw")&&0>u?u=(u+9999999999*f)%f-(0|u/f)*f:-1!==n.indexOf("ccw")&&u>0&&(u=(u-9999999999*f)%f-(0|u/f)*f)),e=t+u),s>e&&e>-s&&(e=0),e},it={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},si=function(n,t,i){return n=0>n?n+1:n>1?n-1:n,0|255*(1>6*n?t+6*(i-t)*n:.5>n?i:2>3*n?t+6*(i-t)*(2/3-n):t)+.5},hi=e.parseColor=function(n){var i,t,e,u,f,r;return n&&""!==n?"number"==typeof n?[n>>16,255&n>>8,255&n]:(","===n.charAt(n.length-1)&&(n=n.substr(0,n.length-1)),it[n]?it[n]:"#"===n.charAt(0)?(4===n.length&&(i=n.charAt(1),t=n.charAt(2),e=n.charAt(3),n="#"+i+i+t+t+e+e),n=parseInt(n.substr(1),16),[n>>16,255&n>>8,255&n]):"hsl"===n.substr(0,3)?(n=n.match(yt),u=Number(n[0])%360/360,f=Number(n[1])/100,r=Number(n[2])/100,t=.5>=r?r*(f+1):r+f-r*f,i=2*r-t,n.length>3&&(n[3]=Number(n[3])),n[0]=si(u+1/3,i,t),n[1]=si(u,i,t),n[2]=si(u-1/3,i,t),n):(n=n.match(yt)||it.transparent,n[0]=Number(n[0]),n[1]=Number(n[1]),n[2]=Number(n[2]),n.length>3&&(n[3]=Number(n[3])),n)):it.black},rt="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#.+?\\b";for(i in it)rt+="|"+i+"\\b";rt=RegExp(rt+")","gi");var er=function(n,t,i,r){if(null==n)return function(n){return n};var e,s=t?(n.match(rt)||[""])[0]:"",f=n.split(s).join("").match(ii)||[],h=n.substr(0,n.indexOf(f[0])),c=")"===n.charAt(n.length-1)?")":"",o=-1!==n.indexOf(" ")?" ":",",u=f.length,l=u>0?f[0].replace(yt,""):"";return u?e=t?function(n){var p,v,t,y;if("number"==typeof n)n+=l;else if(r&&a.test(n)){for(y=n.replace(a,"|").split("|"),t=0;y.length>t;t++)y[t]=e(y[t]);return y.join(",")}if(p=(n.match(rt)||[s])[0],v=n.split(p).join("").match(ii)||[],t=v.length,u>t--)for(;u>++t;)v[t]=i?v[0|(t-1)/2]:f[t];return h+v.join(o)+o+p+c+(-1!==n.indexOf("inset")?" inset":"")}:function(n){var s,v,t;if("number"==typeof n)n+=l;else if(r&&a.test(n)){for(v=n.replace(a,"|").split("|"),t=0;v.length>t;t++)v[t]=e(v[t]);return v.join(",")}if(s=n.match(ii)||[],t=s.length,u>t--)for(;u>++t;)s[t]=i?s[0|(t-1)/2]:f[t];return h+s.join(o)+c}:function(n){return n}},ci=function(n){return n=n.split(","),function(t,i,r,u,f,e,o){var s,h=(i+"").split(" ");for(o={},s=0;4>s;s++)o[n[s]]=h[s]=h[s]||h[(s-1)/2>>0];return u.parse(t,o,f,e)}},li=(p._setPluginRatio=function(n){this.plugin.setRatio(n);for(var r,t,u,e,f=this.data,o=f.proxy,i=f.firstMPT,s=1e-6;i;)r=o[i.v],i.r?r=Math.round(r):s>r&&r>-s&&(r=0),i.t[i.p]=r,i=i._next;if(f.autoRotate&&(f.autoRotate.rotation=o.rotation),1===n)for(i=f.firstMPT;i;){if(t=i.t,t.type){if(1===t.type){for(e=t.xs0+t.s+t.xs1,u=1;t.l>u;u++)e+=t["xn"+u]+t["xs"+(u+1)];t.e=e}}else t.e=t.s+t.xs0;i=i._next}},function(n,t,i,r,u){this.t=n;this.p=t;this.v=i;this.r=u;r&&(r._prev=this,this._next=r)}),o=(p._parseToProxy=function(n,t,i,r,u,f){var c,e,o,s,v,h=r,l={},a={},y=i._transform,p=wt;for(i._transform=null,wt=t,r=v=i.parse(n,t,r,u),wt=p,f&&(i._transform=y,h&&(h._prev=null,h._prev&&(h._prev._next=null)));r&&r!==h;){if(1>=r.type&&(e=r.p,a[e]=r.s+r.c,l[e]=r.s,f||(s=new li(r,"s",e,s,r.r),r.c=0),1===r.type))for(c=r.l;--c>0;)o="xn"+c,e=r.p+"_"+o,a[e]=r.data[o],l[e]=r[o],f||(s=new li(r,o,e,s,r.rxp[o]));r=r._next}return{proxy:l,end:a,firstMPT:s,pt:v}},p.CSSPropTween=function(n,t,i,r,u,f,e,s,h,c,l){this.t=n;this.p=t;this.s=i;this.c=r;this.n=e||t;n instanceof o||gt.push(this.n);this.r=s;this.type=f||0;h&&(this.pr=h,ut=!0);this.b=void 0===c?i:c;this.e=void 0===l?i+r:l;u&&(this._next=u,u._prev=this)}),kt=e.parseComplex=function(n,t,i,r,u,f,e,s,h,c){i=i||f||"";e=new o(n,t,0,0,e,c?2:1,null,!1,s,i,r);r+="";var y,w,b,l,v,ut,ft,nt,k,et,d,g,p=i.split(", ").join(",").split(" "),rt=r.split(", ").join(",").split(" "),ot=p.length,st=ni!==!1;for((-1!==r.indexOf(",")||-1!==i.indexOf(","))&&(p=p.join(" ").replace(a,", ").split(" "),rt=rt.join(" ").replace(a,", ").split(" "),ot=p.length),ot!==rt.length&&(p=(f||"").split(" "),ot=p.length),e.plugin=h,e.setRatio=c,y=0;ot>y;y++)if(l=p[y],v=rt[y],nt=parseFloat(l),nt||0===nt)e.appendXtra("",nt,fr(v,nt),v.replace(bi,""),st&&-1!==v.indexOf("px"),!0);else if(u&&("#"===l.charAt(0)||it[l]||ki.test(l)))g=","===v.charAt(v.length-1)?"),":")",l=hi(l),v=hi(v),k=l.length+v.length>6,k&&!tt&&0===v[3]?(e["xs"+e.l]+=e.l?" transparent":"transparent",e.e=e.e.split(rt[y]).join("transparent")):(tt||(k=!1),e.appendXtra(k?"rgba(":"rgb(",l[0],v[0]-l[0],",",!0,!0).appendXtra("",l[1],v[1]-l[1],",",!0).appendXtra("",l[2],v[2]-l[2],k?",":g,!0),k&&(l=4>l.length?1:l[3],e.appendXtra("",l,(4>v.length?1:v[3])-l,g,!1)));else if(ut=l.match(yt)){if(ft=v.match(bi),!ft||ft.length!==ut.length)return e;for(b=0,w=0;ut.length>w;w++)d=ut[w],et=l.indexOf(d,b),e.appendXtra(l.substr(b,et-b),Number(d),fr(ft[w],d),"",st&&"px"===l.substr(et+d.length,2),0===w),b=et+d.length;e["xs"+e.l]+=l.substr(b)}else e["xs"+e.l]+=e.l?" "+l:l;if(-1!==r.indexOf("=")&&e.data){for(g=e.xs0+e.data.s,y=1;e.l>y;y++)g+=e["xs"+y]+e.data["xn"+y];e.e=g+e["xs"+y]}return e.l||(e.type=-1,e.xs0=e.e),e.xfirst||e},s=9;for(i=o.prototype,i.l=i.pr=0;--s>0;)i["xn"+s]=0,i["xs"+s]="";i.xs0="";i._next=i._prev=i.xfirst=i.data=i.plugin=i.setRatio=i.rxp=null;i.appendXtra=function(n,t,i,r,u,f){var e=this,s=e.l;return e["xs"+s]+=f&&s?" "+n:n||"",i||0===s||e.plugin?(e.l++,e.type=e.setRatio?2:1,e["xs"+e.l]=r||"",s>0?(e.data["xn"+s]=t+i,e.rxp["xn"+s]=u,e["xn"+s]=t,e.plugin||(e.xfirst=new o(e,"xn"+s,t,i,e.xfirst||e,0,e.n,u,e.pr),e.xfirst.xs0=0),e):(e.data={s:t+i},e.rxp={},e.s=t,e.c=i,e.r=u,e)):(e["xs"+s]+=t+(r||""),e)};var or=function(n,t){t=t||{};this.p=t.prefix?ft(n)||n:n;l[n]=l[this.p]=this;this.format=t.formatter||er(t.defaultValue,t.color,t.collapsible,t.multi);t.parser&&(this.parse=t.parser);this.clrs=t.color;this.multi=t.multi;this.keyword=t.keyword;this.dflt=t.defaultValue;this.pr=t.priority||0},u=p._registerComplexSpecialProp=function(n,t,i){"object"!=typeof t&&(t={parser:i});var r,e,u=n.split(","),f=t.defaultValue;for(i=i||[f],r=0;u.length>r;r++)t.prefix=0===r&&t.prefix,t.defaultValue=i[r]||f,e=new or(u[r],t)},eu=function(n){if(!l[n]){var t=n.charAt(0).toUpperCase()+n.substr(1)+"Plugin";u(n,{parser:function(n,i,r,u,f,e,o){var s=(_gsScope.GreenSockGlobals||_gsScope).com.greensock.plugins[t];return s?(s._cssRegister(),l[r].parse(n,i,r,u,f,e,o)):(ir("Error: "+t+" js file not loaded."),f)}})}};i=or.prototype;i.parseComplex=function(n,t,i,r,u,f){var o,s,e,l,v,c,h=this.keyword;if(this.multi&&(a.test(i)||a.test(t)?(s=t.replace(a,"|").split("|"),e=i.replace(a,"|").split("|")):h&&(s=[t],e=[i])),e){for(l=e.length>s.length?e.length:s.length,o=0;l>o;o++)t=s[o]=s[o]||this.dflt,i=e[o]=e[o]||this.dflt,h&&(v=t.indexOf(h),c=i.indexOf(h),v!==c&&(i=-1===c?e:s,i[o]+=" "+h));t=s.join(", ");i=e.join(", ")}return kt(n,this.p,t,i,this.clrs,this.dflt,r,this.pr,u,f)};i.parse=function(n,t,i,u,e,o){return this.parseComplex(n.style,this.format(r(n,this.p,f,!1,this.dflt)),this.format(t),e,o)};e.registerSpecialProp=function(n,t,i){u(n,{parser:function(n,r,u,f,e,s){var h=new o(n,u,0,0,e,2,u,!1,i);return h.plugin=s,h.setRatio=t(n,r,f._tween,u),h},priority:i})};var ht,sr="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","),h=ft("transform"),ou=rr+"transform",ct=ft("transformOrigin"),k=null!==ft("perspective"),hr=p.Transform=function(){this.skewY=0},ai=window.SVGElement,cr=function(n,t,i){var r,u=y.createElementNS("http://www.w3.org/2000/svg",n),f=/([a-z])([A-Z])/g;for(r in i)u.setAttributeNS(null,r.replace(f,"$1-$2").toLowerCase(),i[r]);return t.appendChild(u),u},lr=document.documentElement,su=function(){var t,n,r,i=g||/Android/i.test(w)&&!window.chrome;return y.createElementNS&&!i&&(t=cr("svg",lr),n=cr("rect",t,{width:100,height:50,x:100}),r=n.getBoundingClientRect().left,n.style[ct]="50% 50%",n.style[h]="scale(0.5,0.5)",i=r===n.getBoundingClientRect().left,lr.removeChild(t)),i}(),ar=function(n,t,i){var r=n.getBBox();t=bt(t).split(" ");i.xOrigin=(-1!==t[0].indexOf("%")?parseFloat(t[0])/100*r.width:parseFloat(t[0]))+r.x;i.yOrigin=(-1!==t[1].indexOf("%")?parseFloat(t[1])/100*r.height:parseFloat(t[1]))+r.y},lt=p.getTransform=function(n,t,i,u){if(n._gsTransform&&i&&!u)return n._gsTransform;var y,s,tt,yt,oi,wt,bt,ft,it,si,hi,kt,dt,o=i?n._gsTransform||new hr:new hr,ki=0>o.scaleX,ot=2e-5,p=1e5,pt=179.99,st=pt*v,di=k?parseFloat(r(n,ct,t,!1,"0 0 0").split(" ")[2])||o.zOrigin||0:0,vi=parseFloat(e.defaultTransformPerspective)||0;if(h?y=r(n,ou,t,!0):n.currentStyle&&(y=n.currentStyle.filter.match(tu),y=y&&4===y.length?[y[0].substr(4),Number(y[2].substr(4)),Number(y[1].substr(4)),y[3].substr(4),o.x||0,o.y||0].join(","):""),y&&"none"!==y&&"matrix(1, 0, 0, 1, 0, 0)"!==y){for(s=(y||"").match(/(?:\-|\b)[\d\-\.e]+\b/gi)||[],tt=s.length;--tt>-1;)yt=Number(s[tt]),s[tt]=(oi=yt-(yt|=0))?(0|oi*p+(0>oi?-.5:.5))/p+yt:yt;if(16===s.length){var lt=s[8],b=s[9],w=s[10],yi=s[12],pi=s[13],at=s[14];if(o.zOrigin&&(at=-o.zOrigin,yi=lt*at-s[12],pi=b*at-s[13],at=w*at+o.zOrigin-s[14]),!i||u||null==o.rotationX){var gt,vt,ni,c,l,ci,li,et=s[0],d=s[1],ti=s[2],gi=s[3],ii=s[4],g=s[5],rt=s[6],nr=s[7],ut=s[11],a=Math.atan2(rt,w),wi=-st>a||a>st;o.rotationX=a*nt;a&&(c=Math.cos(-a),l=Math.sin(-a),gt=ii*c+lt*l,vt=g*c+b*l,ni=rt*c+w*l,lt=ii*-l+lt*c,b=g*-l+b*c,w=rt*-l+w*c,ut=nr*-l+ut*c,ii=gt,g=vt,rt=ni);a=Math.atan2(lt,et);o.rotationY=a*nt;a&&(ci=-st>a||a>st,c=Math.cos(-a),l=Math.sin(-a),gt=et*c-lt*l,vt=d*c-b*l,ni=ti*c-w*l,b=d*l+b*c,w=ti*l+w*c,ut=gi*l+ut*c,et=gt,d=vt,ti=ni);a=Math.atan2(d,g);o.rotation=a*nt;a&&(li=-st>a||a>st,c=Math.cos(-a),l=Math.sin(-a),et=et*c+ii*l,vt=d*c+g*l,g=d*-l+g*c,rt=ti*-l+rt*c,d=vt);li&&wi?o.rotation=o.rotationX=0:li&&ci?o.rotation=o.rotationY=0:ci&&wi&&(o.rotationY=o.rotationX=0);o.scaleX=(0|Math.sqrt(et*et+d*d)*p+.5)/p;o.scaleY=(0|Math.sqrt(g*g+b*b)*p+.5)/p;o.scaleZ=(0|Math.sqrt(rt*rt+w*w)*p+.5)/p;o.skewX=0;o.perspective=ut?1/(0>ut?-ut:ut):0;o.x=yi;o.y=pi;o.z=at}}else if(!(k&&!u&&s.length&&o.x===s[4]&&o.y===s[5]&&(o.rotationX||o.rotationY)||void 0!==o.x&&"none"===r(n,"display",t))){var bi=s.length>=6,ri=bi?s[0]:1,ui=s[1]||0,fi=s[2]||0,ei=bi?s[3]:1;o.x=s[4]||0;o.y=s[5]||0;wt=Math.sqrt(ri*ri+ui*ui);bt=Math.sqrt(ei*ei+fi*fi);ft=ri||ui?Math.atan2(ui,ri)*nt:o.rotation||0;it=fi||ei?Math.atan2(fi,ei)*nt+ft:o.skewX||0;si=wt-Math.abs(o.scaleX||0);hi=bt-Math.abs(o.scaleY||0);Math.abs(it)>90&&270>Math.abs(it)&&(ki?(wt*=-1,it+=0>=ft?180:-180,ft+=0>=ft?180:-180):(bt*=-1,it+=0>=it?180:-180));kt=(ft-o.rotation)%180;dt=(it-o.skewX)%180;(void 0===o.skewX||si>ot||-ot>si||hi>ot||-ot>hi||kt>-pt&&pt>kt&&!1|kt*p||dt>-pt&&pt>dt&&!1|dt*p)&&(o.scaleX=wt,o.scaleY=bt,o.rotation=ft,o.skewX=it);k&&(o.rotationX=o.rotationY=o.z=0,o.perspective=vi,o.scaleZ=1)}o.zOrigin=di;for(tt in o)ot>o[tt]&&o[tt]>-ot&&(o[tt]=0)}else o={x:0,y:0,z:0,scaleX:1,scaleY:1,scaleZ:1,skewX:0,skewY:0,perspective:vi,rotation:0,rotationX:0,rotationY:0,zOrigin:0};return i&&(n._gsTransform=o),o.svg=ai&&n instanceof ai&&n.parentNode instanceof ai,o.svg&&(ar(n,r(n,ct,f,!1,"50% 50%")+"",o),ht=e.useSVGTransformAttr||su),o.xPercent=o.yPercent=0,o},hu=function(n){var o,p,t=this.data,tt=-t.rotation*v,ft=tt+t.skewX*v,e=1e5,h=(0|Math.cos(tt)*t.scaleX*e)/e,u=(0|Math.sin(tt)*t.scaleX*e)/e,f=(0|Math.sin(ft)*-t.scaleY*e)/e,c=(0|Math.cos(ft)*t.scaleY*e)/e,d=this.t.style,nt=this.t.currentStyle,k,y,et,ot;if(nt){p=u;u=-f;f=-p;o=nt.filter;d.filter="";var i,r,l=this.t.offsetWidth,a=this.t.offsetHeight,it="absolute"!==nt.position,w="progid:DXImageTransform.Microsoft.Matrix(M11="+h+", M12="+u+", M21="+f+", M22="+c,rt=t.x+l*t.xPercent/100,ut=t.y+a*t.yPercent/100;if(null!=t.ox&&(i=(t.oxp?.01*l*t.ox:t.ox)-l/2,r=(t.oyp?.01*a*t.oy:t.oy)-a/2,rt+=i-(i*h+r*u),ut+=r-(i*f+r*c)),it?(i=l/2,r=a/2,w+=", Dx="+(i-(i*h+r*u)+rt)+", Dy="+(r-(i*f+r*c)+ut)+")"):w+=", sizingMethod='auto expand')",d.filter=-1!==o.indexOf("DXImageTransform.Microsoft.Matrix(")?o.replace(iu,w):w+" "+o,(0===n||1===n)&&1===h&&0===u&&0===f&&1===c&&(it&&-1===w.indexOf("Dx=0, Dy=0")||ui.test(o)&&100!==parseFloat(RegExp.$1)||-1===o.indexOf("gradient("&&o.indexOf("Alpha"))&&d.removeAttribute("filter")),!it)for(ot=8>g?1:-1,i=t.ieOffsetX||0,r=t.ieOffsetY||0,t.ieOffsetX=Math.round((l-((0>h?-h:h)*l+(0>u?-u:u)*a))/2+rt),t.ieOffsetY=Math.round((a-((0>c?-c:c)*a+(0>f?-f:f)*l))/2+ut),s=0;4>s;s++)y=uu[s],k=nt[y],p=-1!==k.indexOf("px")?parseFloat(k):b(this.t,y,parseFloat(k),k.replace(ri,""))||0,et=p!==t[y]?2>s?-t.ieOffsetX:-t.ieOffsetY:2>s?i-t.ieOffsetX:r-t.ieOffsetY,d[y]=(t[y]=Math.round(p-et*(0===s||2===s?1:ot)))+"px"}},vi=p.set3DTransformRatio=function(n){var tt,w,b,l,it,k,d,a,et,rt,y,o,ot,ut,g,st,i,r,u,f,ct,lt,at,t=this.data,vt=this.t.style,e=t.rotation*v,s=t.scaleX,c=t.scaleY,p=t.scaleZ,yt=t.x,pt=t.y,ht=t.z,nt=t.perspective,ft;if(!(1!==n&&0!==n||"auto"!==t.force3D||t.rotationY||t.rotationX||1!==p||nt||ht))return vr.call(this,n),void 0;if(pi&&(ft=.0001,ft>s&&s>-ft&&(s=p=2e-5),ft>c&&c>-ft&&(c=p=2e-5),!nt||t.z||t.rotationX||t.rotationY||(nt=0)),e||t.skewX)r=Math.cos(e),u=Math.sin(e),tt=r,it=u,t.skewX&&(e-=t.skewX*v,r=Math.cos(e),u=Math.sin(e),"simple"===t.skewType&&(f=Math.tan(t.skewX*v),f=Math.sqrt(1+f*f),r*=f,u*=f)),w=-u,k=r;else{if(!(t.rotationY||t.rotationX||1!==p||nt||t.svg))return vt[h]=(t.xPercent||t.yPercent?"translate("+t.xPercent+"%,"+t.yPercent+"%) translate3d(":"translate3d(")+yt+"px,"+pt+"px,"+ht+"px)"+(1!==s||1!==c?" scale("+s+","+c+")":""),void 0;tt=k=1;w=it=0}y=1;b=l=d=a=et=rt=o=ot=ut=0;g=nt?-1/nt:0;st=t.zOrigin;i=1e5;e=t.rotationY*v;e&&(r=Math.cos(e),u=Math.sin(e),et=y*-u,ot=g*-u,b=tt*u,d=it*u,y*=r,g*=r,tt*=r,it*=r);e=t.rotationX*v;e&&(r=Math.cos(e),u=Math.sin(e),f=w*r+b*u,ct=k*r+d*u,lt=rt*r+y*u,at=ut*r+g*u,b=w*-u+b*r,d=k*-u+d*r,y=rt*-u+y*r,g=ut*-u+g*r,w=f,k=ct,rt=lt,ut=at);1!==p&&(b*=p,d*=p,y*=p,g*=p);1!==c&&(w*=c,k*=c,rt*=c,ut*=c);1!==s&&(tt*=s,it*=s,et*=s,ot*=s);st&&(o-=st,l=b*o,a=d*o,o=y*o+st);t.svg&&(l+=t.xOrigin-(t.xOrigin*tt+t.yOrigin*w),a+=t.yOrigin-(t.xOrigin*it+t.yOrigin*k));l=(f=(l+=yt)-(l|=0))?(0|f*i+(0>f?-.5:.5))/i+l:l;a=(f=(a+=pt)-(a|=0))?(0|f*i+(0>f?-.5:.5))/i+a:a;o=(f=(o+=ht)-(o|=0))?(0|f*i+(0>f?-.5:.5))/i+o:o;vt[h]=(t.xPercent||t.yPercent?"translate("+t.xPercent+"%,"+t.yPercent+"%) matrix3d(":"matrix3d(")+[(0|tt*i)/i,(0|it*i)/i,(0|et*i)/i,(0|ot*i)/i,(0|w*i)/i,(0|k*i)/i,(0|rt*i)/i,(0|ut*i)/i,(0|b*i)/i,(0|d*i)/i,(0|y*i)/i,(0|g*i)/i,l,a,o,nt?1+-o/nt:1].join(",")+")"},vr=p.set2DTransformRatio=function(n){var e,c,i,o,s,l,a,y,p,w,f,t=this.data,b=this.t,d=b.style,r=t.x,u=t.y;return!(t.rotationX||t.rotationY||t.z||t.force3D===!0||"auto"===t.force3D&&1!==n&&0!==n)||t.svg&&ht||!k?(o=t.scaleX,s=t.scaleY,t.rotation||t.skewX||t.svg?(e=t.rotation*v,c=e-t.skewX*v,i=1e5,l=Math.cos(e)*o,a=Math.sin(e)*o,y=Math.sin(c)*-s,p=Math.cos(c)*s,t.svg&&(r+=t.xOrigin-(t.xOrigin*l+t.yOrigin*y),u+=t.yOrigin-(t.xOrigin*a+t.yOrigin*p),f=1e-6,f>r&&r>-f&&(r=0),f>u&&u>-f&&(u=0)),w=(0|l*i)/i+","+(0|a*i)/i+","+(0|y*i)/i+","+(0|p*i)/i+","+r+","+u+")",t.svg&&ht?b.setAttribute("transform","matrix("+w):d[h]=(t.xPercent||t.yPercent?"translate("+t.xPercent+"%,"+t.yPercent+"%) matrix(":"matrix(")+w):d[h]=(t.xPercent||t.yPercent?"translate("+t.xPercent+"%,"+t.yPercent+"%) matrix(":"matrix(")+o+",0,0,"+s+","+r+","+u+")",void 0):(this.setRatio=vi,vi.call(this,n),void 0)};for(u("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent",{parser:function(n,t,i,u,s,l,a){if(u._transform)return s;var w,ut,g,b,it,rt,nt,p=u._transform=lt(n,f,!0,a.parseTransform),ft=n.style,et=1e-6,ot=sr.length,v=a,tt={};if("string"==typeof v.transform&&h)g=d.style,g[h]=v.transform,g.display="block",g.position="absolute",y.body.appendChild(d),w=lt(d,null,!1),y.body.removeChild(d);else if("object"==typeof v){if(w={scaleX:c(null!=v.scaleX?v.scaleX:v.scale,p.scaleX),scaleY:c(null!=v.scaleY?v.scaleY:v.scale,p.scaleY),scaleZ:c(v.scaleZ,p.scaleZ),x:c(v.x,p.x),y:c(v.y,p.y),z:c(v.z,p.z),xPercent:c(v.xPercent,p.xPercent),yPercent:c(v.yPercent,p.yPercent),perspective:c(v.transformPerspective,p.perspective)},nt=v.directionalRotation,null!=nt)if("object"==typeof nt)for(g in nt)v[g]=nt[g];else v.rotation=nt;"string"==typeof v.x&&-1!==v.x.indexOf("%")&&(w.x=0,w.xPercent=c(v.x,p.xPercent));"string"==typeof v.y&&-1!==v.y.indexOf("%")&&(w.y=0,w.yPercent=c(v.y,p.yPercent));w.rotation=st("rotation"in v?v.rotation:"shortRotation"in v?v.shortRotation+"_short":"rotationZ"in v?v.rotationZ:p.rotation,p.rotation,"rotation",tt);k&&(w.rotationX=st("rotationX"in v?v.rotationX:"shortRotationX"in v?v.shortRotationX+"_short":p.rotationX||0,p.rotationX,"rotationX",tt),w.rotationY=st("rotationY"in v?v.rotationY:"shortRotationY"in v?v.shortRotationY+"_short":p.rotationY||0,p.rotationY,"rotationY",tt));w.skewX=null==v.skewX?p.skewX:st(v.skewX,p.skewX);w.skewY=null==v.skewY?p.skewY:st(v.skewY,p.skewY);(ut=w.skewY-p.skewY)&&(w.skewX+=ut,w.rotation+=ut)}for(k&&null!=v.force3D&&(p.force3D=v.force3D,rt=!0),p.skewType=v.skewType||p.skewType||e.defaultSkewType,it=p.force3D||p.z||p.rotationX||p.rotationY||w.z||w.rotationX||w.rotationY||w.perspective,it||null==v.scale||(w.scaleZ=1);--ot>-1;)i=sr[ot],b=w[i]-p[i],(b>et||-et>b||null!=v[i]||null!=wt[i])&&(rt=!0,s=new o(p,i,p[i],b,s),i in tt&&(s.e=tt[i]),s.xs0=0,s.plugin=l,u._overwriteProps.push(s.n));return b=v.transformOrigin,b&&p.svg&&(ar(n,b,w),s=new o(p,"xOrigin",p.xOrigin,w.xOrigin-p.xOrigin,s,-1,"transformOrigin"),s.b=p.xOrigin,s.e=s.xs0=w.xOrigin,s=new o(p,"yOrigin",p.yOrigin,w.yOrigin-p.yOrigin,s,-1,"transformOrigin"),s.b=p.yOrigin,s.e=s.xs0=w.yOrigin,b="0px 0px"),(b||k&&it&&p.zOrigin)&&(h?(rt=!0,i=ct,b=(b||r(n,i,f,!1,"50% 50%"))+"",s=new o(ft,i,0,0,s,-1,"transformOrigin"),s.b=ft[i],s.plugin=l,k?(g=p.zOrigin,b=b.split(" "),p.zOrigin=(b.length>2&&(0===g||"0px"!==b[2])?parseFloat(b[2]):g)||0,s.xs0=s.e=b[0]+" "+(b[1]||"50%")+" 0px",s=new o(p,"zOrigin",0,0,s,-1,s.n),s.b=g,s.xs0=s.e=p.zOrigin):s.xs0=s.e=b):bt(b+"",p)),rt&&(u._transformType=p.svg&&ht||!it&&3!==this._transformType?2:3),s},prefix:!0}),u("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),u("borderRadius",{defaultValue:"0px",parser:function(n,t,i,u,e){t=this.format(t);var tt,l,d,h,o,s,p,a,it,rt,c,v,g,w,k,nt,y=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],ut=n.style;for(it=parseFloat(n.offsetWidth),rt=parseFloat(n.offsetHeight),tt=t.split(" "),l=0;y.length>l;l++)this.p.indexOf("border")&&(y[l]=ft(y[l])),o=h=r(n,y[l],f,!1,"0px"),-1!==o.indexOf(" ")&&(h=o.split(" "),o=h[0],h=h[1]),s=d=tt[l],p=parseFloat(o),v=o.substr((p+"").length),g="="===s.charAt(1),g?(a=parseInt(s.charAt(0)+"1",10),s=s.substr(2),a*=parseFloat(s),c=s.substr((a+"").length-(0>a?1:0))||""):(a=parseFloat(s),c=s.substr((a+"").length)),""===c&&(c=vt[i]||v),c!==v&&(w=b(n,"borderLeft",p,v),k=b(n,"borderTop",p,v),"%"===c?(o=100*(w/it)+"%",h=100*(k/rt)+"%"):"em"===c?(nt=b(n,"borderLeft",1,"em"),o=w/nt+"em",h=k/nt+"em"):(o=w+"px",h=k+"px"),g&&(s=parseFloat(o)+a+c,d=parseFloat(h)+a+c)),e=kt(ut,y[l],o+" "+h,s+" "+d,!1,"0px",e);return e},prefix:!0,formatter:er("0px 0px 0px 0px",!1,!0)}),u("backgroundPosition",{defaultValue:"0 0",parser:function(n,t,i,u,e,o){var c,b,h,v,y,l,p="background-position",a=f||et(n,null),s=this.format((a?g?a.getPropertyValue(p+"-x")+" "+a.getPropertyValue(p+"-y"):a.getPropertyValue(p):n.currentStyle.backgroundPositionX+" "+n.currentStyle.backgroundPositionY)||"0 0"),w=this.format(t);if(-1!==s.indexOf("%")!=(-1!==w.indexOf("%"))&&(l=r(n,"backgroundImage").replace(gr,""),l&&"none"!==l)){for(c=s.split(" "),b=w.split(" "),fi.setAttribute("src",l),h=2;--h>-1;)s=c[h],v=-1!==s.indexOf("%"),v!==(-1!==b[h].indexOf("%"))&&(y=0===h?n.offsetWidth-fi.width:n.offsetHeight-fi.height,c[h]=v?parseFloat(s)/100*y+"px":100*(parseFloat(s)/y)+"%");s=c.join(" ")}return this.parseComplex(n.style,s,w,e,o)},formatter:bt}),u("backgroundSize",{defaultValue:"0 0",formatter:bt}),u("perspective",{defaultValue:"0px",prefix:!0}),u("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),u("transformStyle",{prefix:!0}),u("backfaceVisibility",{prefix:!0}),u("userSelect",{prefix:!0}),u("margin",{parser:ci("marginTop,marginRight,marginBottom,marginLeft")}),u("padding",{parser:ci("paddingTop,paddingRight,paddingBottom,paddingLeft")}),u("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(n,t,i,u,e,o){var c,s,h;return 9>g?(s=n.currentStyle,h=8>g?" ":",",c="rect("+s.clipTop+h+s.clipRight+h+s.clipBottom+h+s.clipLeft+")",t=this.format(t).split(",").join(h)):(c=this.format(r(n,this.p,f,!1,this.dflt)),t=this.format(t)),this.parseComplex(n.style,c,t,e,o)}}),u("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),u("autoRound,strictUnits",{parser:function(n,t,i,r,u){return u}}),u("border",{defaultValue:"0px solid #000",parser:function(n,t,i,u,e,o){return this.parseComplex(n.style,this.format(r(n,"borderTopWidth",f,!1,"0px")+" "+r(n,"borderTopStyle",f,!1,"solid")+" "+r(n,"borderTopColor",f,!1,"#000")),this.format(t),e,o)},color:!0,formatter:function(n){var t=n.split(" ");return t[0]+" "+(t[1]||"solid")+" "+(n.match(rt)||["#000"])[0]}}),u("borderWidth",{parser:ci("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),u("float,cssFloat,styleFloat",{parser:function(n,t,i,r,u){var f=n.style,e="cssFloat"in f?"cssFloat":"styleFloat";return new o(f,e,0,0,u,-1,i,!1,0,f[e],t)}}),yr=function(n){var f,i=this.t,t=i.filter||r(this.data,"filter")||"",u=0|this.s+this.c*n;100===u&&(-1===t.indexOf("atrix(")&&-1===t.indexOf("radient(")&&-1===t.indexOf("oader(")?(i.removeAttribute("filter"),f=!r(this.data,"filter")):(i.filter=t.replace(dr,""),f=!0));f||(this.xn1&&(i.filter=t=t||"alpha(opacity="+u+")"),-1===t.indexOf("pacity")?0===u&&this.xn1||(i.filter=t+" alpha(opacity="+u+")"):i.filter=t.replace(ui,"opacity="+u))},u("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(n,t,i,u,e,s){var h=parseFloat(r(n,"opacity",f,!1,"1")),c=n.style,l="autoAlpha"===i;return"string"==typeof t&&"="===t.charAt(1)&&(t=("-"===t.charAt(0)?-1:1)*parseFloat(t.substr(2))+h),l&&1===h&&"hidden"===r(n,"visibility",f)&&0!==t&&(h=0),tt?e=new o(c,"opacity",h,t-h,e):(e=new o(c,"opacity",100*h,100*(t-h),e),e.xn1=l?1:0,c.zoom=1,e.type=2,e.b="alpha(opacity="+e.s+")",e.e="alpha(opacity="+(e.s+e.c)+")",e.data=n,e.plugin=s,e.setRatio=yr),l&&(e=new o(c,"visibility",0,0,e,-1,null,!1,0,0!==h?"inherit":"hidden",0===t?"hidden":"inherit"),e.xs0="inherit",u._overwriteProps.push(e.n),u._overwriteProps.push(i)),e}}),dt=function(n,t){t&&(n.removeProperty?("ms"===t.substr(0,2)&&(t="M"+t.substr(1)),n.removeProperty(t.replace(di,"-$1").toLowerCase())):n.removeAttribute(t))},pr=function(n){if(this.t._gsClassPT=this,1===n||0===n){this.t.setAttribute("class",0===n?this.b:this.e);for(var t=this.data,i=this.t.style;t;)t.v?i[t.p]=t.v:dt(i,t.p),t=t._next;1===n&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)},u("className",{parser:function(n,t,i,r,u,e,s){var c,y,l,a,h,v=n.getAttribute("class")||"",p=n.style.cssText;if(u=r._classNamePT=new o(n,i,0,0,u,2),u.setRatio=pr,u.pr=-11,ut=!0,u.b=v,y=ot(n,f),l=n._gsClassPT){for(a={},h=l.data;h;)a[h.p]=1,h=h._next;l.setRatio(1)}return n._gsClassPT=u,u.e="="!==t.charAt(1)?t:v.replace(RegExp("\\s*\\b"+t.substr(2)+"\\b"),"")+("+"===t.charAt(0)?" "+t.substr(2):""),r._tween._duration&&(n.setAttribute("class",u.e),c=oi(n,y,ot(n),s,a),n.setAttribute("class",v),u.data=c.firstMPT,n.style.cssText=p,u=u.xfirst=r.parse(n,c.difs,u,e)),u}}),wr=function(n){if((1===n||0===n)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var i,t,r,u,f=this.t.style,e=l.transform.parse;if("all"===this.e)f.cssText="",u=!0;else for(i=this.e.split(" ").join("").split(","),r=i.length;--r>-1;)t=i[r],l[t]&&(l[t].parse===e?u=!0:t="transformOrigin"===t?ct:l[t].p),dt(f,t);u&&(dt(f,h),this.t._gsTransform&&delete this.t._gsTransform)}},u("clearProps",{parser:function(n,t,i,r,u){return u=new o(n,i,0,0,u,2),u.setRatio=wr,u.e=t,u.pr=-10,u.data=r._tween,ut=!0,u}}),i="bezier,throwProps,physicsProps,physics2D".split(","),s=i.length;s--;)eu(i[s]);return i=e.prototype,i._firstPT=null,i._onInitTween=function(n,t,i){if(!n.nodeType)return!1;this._target=n;this._tween=i;this._vars=t;ni=t.autoRound;ut=!1;vt=t.suffixMap||e.suffixMap;f=et(n,"");gt=this._overwriteProps;var l,s,u,a,w,b,y,v,p,c=n.style;if(yi&&""===c.zIndex&&(l=r(n,"zIndex",f),("auto"===l||""===l)&&this._addLazySet(c,"zIndex",0)),"string"==typeof t&&(a=c.cssText,l=ot(n,f),c.cssText=a+";"+t,l=oi(n,l,ot(n)).difs,!tt&&kr.test(t)&&(l.opacity=parseFloat(RegExp.$1)),t=l,c.cssText=a),this._firstPT=s=this.parse(n,t,null),this._transformType){for(p=3===this._transformType,h?ti&&(yi=!0,""===c.zIndex&&(y=r(n,"zIndex",f),("auto"===y||""===y)&&this._addLazySet(c,"zIndex",0)),wi&&this._addLazySet(c,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(p?"visible":"hidden"))):c.zoom=1,u=s;u&&u._next;)u=u._next;v=new o(n,"transform",0,0,null,2);this._linkCSSP(v,null,u);v.setRatio=p&&k?vi:h?vr:hu;v.data=this._transform||lt(n,f,!0);gt.pop()}if(ut){for(;s;){for(b=s._next,u=a;u&&u.pr>s.pr;)u=u._next;(s._prev=u?u._prev:w)?s._prev._next=s:a=s;(s._next=u)?u._prev=s:w=s;s=b}this._firstPT=a}return!0},i.parse=function(n,t,i,u){var e,d,h,c,v,s,y,a,p,w,k=n.style;for(e in t)s=t[e],d=l[e],d?i=d.parse(n,s,e,this,i,u,t):(v=r(n,e,f)+"",p="string"==typeof s,"color"===e||"fill"===e||"stroke"===e||-1!==e.indexOf("Color")||p&&ki.test(s)?(p||(s=hi(s),s=(s.length>3?"rgba(":"rgb(")+s.join(",")+")"),i=kt(k,e,v,s,!0,"transparent",i,0,u)):!p||-1===s.indexOf(" ")&&-1===s.indexOf(",")?(h=parseFloat(v),y=h||0===h?v.substr((h+"").length):"",(""===v||"auto"===v)&&("width"===e||"height"===e?(h=fu(n,e,f),y="px"):"left"===e||"top"===e?(h=ur(n,e,f),y="px"):(h="opacity"!==e?0:1,y="")),w=p&&"="===s.charAt(1),w?(c=parseInt(s.charAt(0)+"1",10),s=s.substr(2),c*=parseFloat(s),a=s.replace(ri,"")):(c=parseFloat(s),a=p?s.substr((c+"").length)||"":""),""===a&&(a=e in vt?vt[e]:y),s=c||0===c?(w?c+h:c)+a:t[e],y!==a&&""!==a&&(c||0===c)&&h&&(h=b(n,e,h,y),"%"===a?(h/=b(n,e,100,"%")/100,t.strictUnits!==!0&&(v=h+"%")):"em"===a?h/=b(n,e,1,"em"):"px"!==a&&(c=b(n,e,c,a),a="px"),w&&(c||0===c)&&(s=c+h+a)),w&&(c+=h),!h&&0!==h||!c&&0!==c?void 0!==k[e]&&(s||"NaN"!=s+""&&null!=s)?(i=new o(k,e,c||h||0,0,i,-1,e,!1,0,v,s),i.xs0="none"!==s||"display"!==e&&-1===e.indexOf("Style")?s:v):ir("invalid "+e+" tween value: "+t[e]):(i=new o(k,e,h,c-h,i,0,e,ni!==!1&&("px"===a||"zIndex"===e),0,v,s),i.xs0=a)):i=kt(k,e,v,s,!0,null,i,0,u)),u&&i&&!i.plugin&&(i.plugin=u);return i},i.setRatio=function(n){var i,u,r,t=this._firstPT,f=1e-6;if(1!==n||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(n||this._tween._time!==this._tween._duration&&0!==this._tween._time||this._tween._rawPrevTime===-1e-6)for(;t;){if(i=t.c*n+t.s,t.r?i=Math.round(i):f>i&&i>-f&&(i=0),t.type)if(1===t.type)if(r=t.l,2===r)t.t[t.p]=t.xs0+i+t.xs1+t.xn1+t.xs2;else if(3===r)t.t[t.p]=t.xs0+i+t.xs1+t.xn1+t.xs2+t.xn2+t.xs3;else if(4===r)t.t[t.p]=t.xs0+i+t.xs1+t.xn1+t.xs2+t.xn2+t.xs3+t.xn3+t.xs4;else if(5===r)t.t[t.p]=t.xs0+i+t.xs1+t.xn1+t.xs2+t.xn2+t.xs3+t.xn3+t.xs4+t.xn4+t.xs5;else{for(u=t.xs0+i+t.xs1,r=1;t.l>r;r++)u+=t["xn"+r]+t["xs"+(r+1)];t.t[t.p]=u}else-1===t.type?t.t[t.p]=t.xs0:t.setRatio&&t.setRatio(n);else t.t[t.p]=i+t.xs0;t=t._next}else for(;t;)2!==t.type?t.t[t.p]=t.b:t.setRatio(n),t=t._next;else for(;t;)2!==t.type?t.t[t.p]=t.e:t.setRatio(n),t=t._next},i._enableTransforms=function(n){this._transform=this._transform||lt(this._target,f,!0);this._transformType=this._transform.svg&&ht||!n&&3!==this._transformType?2:3},br=function(){this.t[this.p]=this.e;this.data._linkCSSP(this,this._next,null,!0)},i._addLazySet=function(n,t,i){var r=this._firstPT=new o(n,t,0,0,this._firstPT,2);r.e=i;r.setRatio=br;r.data=this},i._linkCSSP=function(n,t,i,r){return n&&(t&&(t._prev=n),n._next&&(n._next._prev=n._prev),n._prev?n._prev._next=n._next:this._firstPT===n&&(this._firstPT=n._next,r=!0),i?i._next=n:r||null!==this._firstPT||(this._firstPT=n),n._next=t,n._prev=i),n},i._kill=function(t){var i,f,r,u=t;if(t.autoAlpha||t.alpha){u={};for(f in t)u[f]=t[f];u.opacity=1;u.autoAlpha&&(u.visibility=1)}return t.className&&(i=this._classNamePT)&&(r=i.xfirst,r&&r._prev?this._linkCSSP(r._prev,i._next,r._prev._prev):r===this._firstPT&&(this._firstPT=i._next),i._next&&this._linkCSSP(i._next,i._next._next,r._prev),this._classNamePT=null),n.prototype._kill.call(this,u)},at=function(n,t,i){var e,u,r,f;if(n.slice)for(u=n.length;--u>-1;)at(n[u],t,i);else for(e=n.childNodes,u=e.length;--u>-1;)r=e[u],f=r.type,r.style&&(t.push(ot(r)),i&&i.push(r)),1!==f&&9!==f&&11!==f||!r.childNodes.length||at(r,t,i)},e.cascadeTo=function(n,i,r){var u,f,o,e=t.to(n,i,r),h=[e],c=[],l=[],s=[],a=t._internals.reservedProps;for(n=e._targets||e.target,at(n,c,s),e.render(i,!0),at(n,l),e.render(0,!0),e._enabled(!0),u=s.length;--u>-1;)if(f=oi(s[u],c[u],l[u]),f.firstMPT){f=f.difs;for(o in r)a[o]&&(f[o]=r[o]);h.push(t.to(s[u],i,f))}return h},n.activate([e]),e},!0)});_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(n){"use strict";var t=function(){return(_gsScope.GreenSockGlobals||_gsScope)[n]};"function"==typeof define&&define.amd?define(["TweenLite"],t):"undefined"!=typeof module&&module.exports&&(require("../TweenLite.js"),module.exports=t())}("CSSPlugin");_gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window,function(n){"use strict";var o=n.GreenSockGlobals||n,y=function(n){for(var r=n.split("."),i=o,t=0;r.length>t;t++)i[r[t]]=i=i[r[t]]||{};return i},p=y("com.greensock.utils"),f=function(n){var t=n.nodeType,i="";if(1===t||9===t||11===t){if("string"==typeof n.textContent)return n.textContent;for(n=n.firstChild;n;n=n.nextSibling)i+=f(n)}else if(3===t||4===t)return n.nodeValue;return i},i=document,s=i.defaultView?i.defaultView.getComputedStyle:function(){},w=/([A-Z])/g,t=function(n,t,i,r){var u;return(i=i||s(n,null))?(n=i.getPropertyValue(t.replace(w,"-$1").toLowerCase()),u=n||i.length?n:i[t]):n.currentStyle&&(i=n.currentStyle,u=i[t]),r?u:parseInt(u,10)||0},h=function(n){return n.length&&n[0]&&(n[0].nodeType&&n[0].style&&!n.nodeType||n[0].length&&n[0][0])?!0:!1},b=function(n){for(var t,i,u=[],f=n.length,r=0;f>r;r++)if(t=n[r],h(t))for(i=t.length,i=0;t.length>i;i++)u.push(t[i]);else u.push(t);return u},r=")eefec303079ad17405c",c=/(?:<br>|<br\/>|<br \/>)/gi,k=i.all&&!i.addEventListener,d="<div style='position:relative;display:inline-block;"+(k?"*display:inline;*zoom:1;'":"'"),l=function(n){n=n||"";var t=-1!==n.indexOf("++"),i=1;return t&&(n=n.split("++").join("")),function(){return d+(n?" class='"+n+(t?i++:"")+"'>":">")}},u=p.SplitText=o.SplitText=function(n,t){if("string"==typeof n&&(n=u.selector(n)),!n)throw"cannot split a null element.";this.elements=h(n)?b(n):[n];this.chars=[];this.words=[];this.lines=[];this._originals=[];this.vars=t||{};this.split(t)},a=function(n,t,i){var r=n.nodeType;if(1===r||9===r||11===r)for(n=n.firstChild;n;n=n.nextSibling)a(n,t,i);else(3===r||4===r)&&(n.nodeValue=n.nodeValue.split(t).join(i))},e=function(n,t){for(var i=t.length;--i>-1;)n.push(t[i])},g=function(n,u,o,h,v){c.test(n.innerHTML)&&(n.innerHTML=n.innerHTML.replace(c,r));var b,ot,g,ft,p,rt,lt,st,y,nt,w,ut,dt,gt,d=f(n),pt=u.type||u.split||"chars,words,lines",tt=-1!==pt.indexOf("lines")?[]:null,et=-1!==pt.indexOf("words"),ht=-1!==pt.indexOf("chars"),k="absolute"===u.position||u.absolute===!0,ni=k?"&#173; ":" ",ti=-999,it=s(n),ii=t(n,"paddingLeft",it),oi=t(n,"borderBottomWidth",it)+t(n,"borderTopWidth",it),si=t(n,"borderLeftWidth",it)+t(n,"borderRightWidth",it),hi=t(n,"paddingTop",it)+t(n,"paddingBottom",it),ci=t(n,"paddingLeft",it)+t(n,"paddingRight",it),li=t(n,"textAlign",it,!0),at=n.clientHeight,vt=n.clientWidth,wt="<\/div>",bt=l(u.wordsClass),ai=l(u.charsClass),ri=-1!==(u.linesClass||"").indexOf("++"),yt=u.linesClass,ui=-1!==d.indexOf("<"),ct=!0,kt=[],fi=[],ei=[];for(ri&&(yt=yt.split("++").join("")),ui&&(d=d.split("<").join("{{LT}}")),b=d.length,ft=bt(),p=0;b>p;p++)if(lt=d.charAt(p),")"===lt&&d.substr(p,20)===r)ft+=(ct?wt:"")+"<BR/>",ct=!1,p!==b-20&&d.substr(p+20,20)!==r&&(ft+=" "+bt(),ct=!0),p+=19;else if(" "===lt&&" "!==d.charAt(p-1)&&p!==b-1&&d.substr(p-20,20)!==r){for(ft+=ct?wt:"",ct=!1;" "===d.charAt(p+1);)ft+=ni,p++;(")"!==d.charAt(p+1)||d.substr(p+1,20)!==r)&&(ft+=ni+bt(),ct=!0)}else ft+=ht&&" "!==lt?ai()+lt+"<\/div>":lt;for(n.innerHTML=ft+(ct?wt:""),ui&&a(n,"{{LT}}","<"),rt=n.getElementsByTagName("*"),b=rt.length,st=[],p=0;b>p;p++)st[p]=rt[p];if(tt||k)for(p=0;b>p;p++)y=st[p],g=y.parentNode===n,(g||k||ht&&!et)&&(nt=y.offsetTop,tt&&g&&nt!==ti&&"BR"!==y.nodeName&&(ot=[],tt.push(ot),ti=nt),k&&(y._x=y.offsetLeft,y._y=nt,y._w=y.offsetWidth,y._h=y.offsetHeight),tt&&(et!==g&&ht||(ot.push(y),y._x-=ii),g&&p&&(st[p-1]._wordEnd=!0),"BR"===y.nodeName&&y.nextSibling&&"BR"===y.nextSibling.nodeName&&tt.push([])));for(p=0;b>p;p++)y=st[p],g=y.parentNode===n,"BR"!==y.nodeName?(k&&(ut=y.style,et||g||(y._x+=y.parentNode._x,y._y+=y.parentNode._y),ut.left=y._x+"px",ut.top=y._y+"px",ut.position="absolute",ut.display="block",ut.width=y._w+1+"px",ut.height=y._h+"px"),et?g&&""!==y.innerHTML?fi.push(y):ht&&kt.push(y):g?(n.removeChild(y),st.splice(p--,1),b--):!g&&ht&&(nt=!tt&&!k&&y.nextSibling,n.appendChild(y),nt||n.appendChild(i.createTextNode(" ")),kt.push(y))):tt||k?(n.removeChild(y),st.splice(p--,1),b--):et||n.appendChild(y);if(tt){for(k&&(w=i.createElement("div"),n.appendChild(w),dt=w.offsetWidth+"px",nt=w.offsetParent===n?0:n.offsetLeft,n.removeChild(w)),ut=n.style.cssText,n.style.cssText="display:none;";n.firstChild;)n.removeChild(n.firstChild);for(gt=!k||!et&&!ht,p=0;tt.length>p;p++){for(ot=tt[p],w=i.createElement("div"),w.style.cssText="display:block;text-align:"+li+";position:"+(k?"absolute;":"relative;"),yt&&(w.className=yt+(ri?p+1:"")),ei.push(w),b=ot.length,rt=0;b>rt;rt++)"BR"!==ot[rt].nodeName&&(y=ot[rt],w.appendChild(y),gt&&(y._wordEnd||et)&&w.appendChild(i.createTextNode(" ")),k&&(0===rt&&(w.style.top=y._y+"px",w.style.left=ii+nt+"px"),y.style.top="0px",nt&&(y.style.left=y._x-nt+"px")));0===b&&(w.innerHTML="&nbsp;");et||ht||(w.innerHTML=f(w).split(String.fromCharCode(160)).join(" "));k&&(w.style.width=dt,w.style.height=y._h+"px");n.appendChild(w)}n.style.cssText=ut}k&&(at>n.clientHeight&&(n.style.height=at-hi+"px",at>n.clientHeight&&(n.style.height=at+oi+"px")),vt>n.clientWidth&&(n.style.width=vt-ci+"px",vt>n.clientWidth&&(n.style.width=vt+si+"px")));e(o,kt);e(h,fi);e(v,ei)},v=u.prototype;v.split=function(n){this.isSplit&&this.revert();this.vars=n||this.vars;this._originals.length=this.chars.length=this.words.length=this.lines.length=0;for(var t=this.elements.length;--t>-1;)this._originals[t]=this.elements[t].innerHTML,g(this.elements[t],this.vars,this.chars,this.words,this.lines);return this.chars.reverse(),this.words.reverse(),this.lines.reverse(),this.isSplit=!0,this};v.revert=function(){if(!this._originals)throw"revert() call wasn't scoped properly.";for(var n=this._originals.length;--n>-1;)this.elements[n].innerHTML=this._originals[n];return this.chars=[],this.words=[],this.lines=[],this.isSplit=!1,this};u.selector=n.$||n.jQuery||function(t){var i=n.$||n.jQuery;return i?(u.selector=i,i(t)):"undefined"==typeof document?t:document.querySelectorAll?document.querySelectorAll(t):document.getElementById("#"===t.charAt(0)?t.substr(1):t)};u.version="0.3.3"}(_gsScope),function(n){"use strict";var t=function(){return(_gsScope.GreenSockGlobals||_gsScope)[n]};"function"==typeof define&&define.amd?define(["TweenLite"],t):"undefined"!=typeof module&&module.exports&&(module.exports=t())}("SplitText");try{window.GreenSockGlobals=null;window._gsQueue=null;window._gsDefine=null;delete window.GreenSockGlobals;delete window._gsQueue;delete window._gsDefine}catch(e){}try{window.GreenSockGlobals=oldgs;window._gsQueue=oldgs_queue}catch(e){}if(window.tplogs==!0)try{console.groupEnd()}catch(e){}(function(n){n.waitForImages={hasImageProperties:["backgroundImage","listStyleImage","borderImage","borderCornerImage"]};n.expr[":"].uncached=function(t){var i=document.createElement("img");return i.src=t.src,n(t).is('img[src!=""]')&&!i.complete};n.fn.waitForImages=function(t,i,r){if(n.isPlainObject(arguments[0])&&(i=t.each,r=t.waitForAll,t=t.finished),t=t||n.noop,i=i||n.noop,r=!!r,!n.isFunction(t)||!n.isFunction(i))throw new TypeError("An invalid callback was supplied.");return this.each(function(){var f=n(this),u=[],s,h,e,o;r?(s=n.waitForImages.hasImageProperties||[],h=/url\((['"]?)(.*?)\1\)/g,f.find("*").each(function(){var t=n(this);t.is("img:uncached")&&u.push({src:t.attr("src"),element:t[0]});n.each(s,function(n,i){var r=t.css(i),f;if(!r)return!0;while(f=h.exec(r))u.push({src:f[2],element:t[0]})})})):f.find("img:uncached").each(function(){u.push({src:this.src,element:this})});e=u.length;o=0;e==0&&t.call(f[0]);n.each(u,function(r,u){var s=new Image;n(s).bind("load error",function(n){return o++,i.call(u.element,o,e,n.type=="load"),o==e?(t.call(f[0]),!1):void 0});s.src=u.src})})}})(jQuery),function(n,t){function at(){var n=!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)&&(n=!0):n=!1,n}function vt(u,f){var e,l,d,rt,a,y,o,g,s,et,ut,h;if(u==t)return!1;if(u.data("aimg")!=t&&(u.data("aie8")=="enabled"&&r(8)||u.data("amobile")=="enabled"&&i())&&u.html('<img class="tp-slider-alternative-image" src="'+u.data("aimg")+'">'),(f.navigationStyle=="preview1"||f.navigationStyle=="preview3"||f.navigationStyle=="preview4")&&(f.soloArrowLeftHalign="left",f.soloArrowLeftValign="center",f.soloArrowLeftHOffset=0,f.soloArrowLeftVOffset=0,f.soloArrowRightHalign="right",f.soloArrowRightValign="center",f.soloArrowRightHOffset=0,f.soloArrowRightVOffset=0,f.navigationArrows="solo"),f.simplifyAll=="on"&&(r(8)||at())&&(u.find(".tp-caption").each(function(){var t=n(this);t.removeClass("customin").removeClass("customout").addClass("fadein").addClass("fadeout");t.data("splitin","");t.data("speed",400)}),u.find(">ul>li").each(function(){var t=n(this),i;t.data("transition","fade");t.data("masterspeed",500);t.data("slotamount",1);i=t.find(">img").first();i.data("kenburns","off")})),f.desktop=!navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry|BB10|mobi|tablet|opera mini|nexus 7)/i),f.fullWidth!="on"&&f.fullScreen!="on"&&(f.autoHeight="off"),f.fullScreen=="on"&&(f.autoHeight="on"),f.fullWidth!="on"&&f.fullScreen!="on"&&(forceFulWidth="off"),f.fullWidth=="on"&&f.autoHeight=="off"&&u.css({maxHeight:f.startheight+"px"}),i()&&f.hideThumbsOnMobile=="on"&&f.navigationType=="thumb"&&(f.navigationType="none"),i()&&f.hideBulletsOnMobile=="on"&&f.navigationType=="bullet"&&(f.navigationType="none"),i()&&f.hideBulletsOnMobile=="on"&&f.navigationType=="both"&&(f.navigationType="none"),i()&&f.hideArrowsOnMobile=="on"&&(f.navigationArrows="none"),f.forceFullWidth=="on"&&u.closest(".forcefullwidth_wrapper_tp_banner").length==0){var s=u.parent().offset().left,p=u.parent().css("marginBottom"),w=u.parent().css("marginTop");p==t&&(p=0);w==t&&(w=0);u.parent().wrap('<div style="position:relative;width:100%;height:auto;margin-top:'+w+";margin-bottom:"+p+'" class="forcefullwidth_wrapper_tp_banner"><\/div>');u.closest(".forcefullwidth_wrapper_tp_banner").append('<div class="tp-fullwidth-forcer" style="width:100%;height:'+u.height()+'px"><\/div>');u.css({backgroundColor:u.parent().css("backgroundColor"),backgroundImage:u.parent().css("backgroundImage")});u.parent().css({left:0-s+"px",position:"absolute",width:n(window).width()});f.width=n(window).width()}try{f.hideThumbsUnderResolution>n(window).width()&&f.hideThumbsUnderResolution!=0?u.parent().find(".tp-bullets.tp-thumbs").css({display:"none"}):u.parent().find(".tp-bullets.tp-thumbs").css({display:"block"})}catch(ot){}if(!u.hasClass("revslider-initialised")){u.addClass("revslider-initialised");u.attr("id")==t&&u.attr("id","revslider-"+Math.round(Math.random()*1e3+5));f.firefox13=!1;f.ie=!n.support.opacity;f.ie9=document.documentMode==9;f.origcd=f.delay;var c=n.fn.jquery.split("."),nt=parseFloat(c[0]),ft=parseFloat(c[1]),st=parseFloat(c[2]||"0");nt==1&&ft<7&&u.html('<div style="text-align:center; padding:40px 0px; font-size:20px; color:#992222;"> The Current Version of jQuery:'+c+" <br>Please update your jQuery Version to min. 1.7 in Case you wish to use the Revolution Slider Plugin<\/div>");nt>1&&(f.ie=!1);n.support.transition||(n.fn.transition=n.fn.animate);u.find(".caption").each(function(){n(this).addClass("tp-caption")});i()&&u.find(".tp-caption").each(function(){var t=n(this);(t.data("autoplayonlyfirsttime")==!0||t.data("autoplayonlyfirsttime")=="true")&&t.data("autoplayonlyfirsttime","false");(t.data("autoplay")==!0||t.data("autoplay")=="true")&&t.data("autoplay",!1)});var tt=0,it=0,k="http";if(location.protocol==="https:"&&(k="https"),u.find(".tp-caption").each(function(){var u,f,e,i,r;try{(n(this).data("ytid")!=t||n(this).find("iframe").attr("src").toLowerCase().indexOf("youtube")>0)&&tt==0&&(tt=1,u=document.createElement("script"),f="https",u.src=f+"://www.youtube.com/iframe_api",i=document.getElementsByTagName("script")[0],r=!0,n("head").find("*").each(function(){n(this).attr("src")==f+"://www.youtube.com/iframe_api"&&(r=!1)}),r&&i.parentNode.insertBefore(u,i))}catch(o){}try{(n(this).data("vimeoid")!=t||n(this).find("iframe").attr("src").toLowerCase().indexOf("vimeo")>0)&&it==0&&(it=1,e=document.createElement("script"),e.src=k+"://a.vimeocdn.com/js/froogaloop2.min.js",i=document.getElementsByTagName("script")[0],r=!0,n("head").find("*").each(function(){n(this).attr("src")==k+"://a.vimeocdn.com/js/froogaloop2.min.js"&&(r=!1)}),r&&i.parentNode.insertBefore(e,i))}catch(o){}try{n(this).data("videomp4")!=t||n(this).data("videowebm")!=t}catch(o){}}),u.find(".tp-caption video").each(function(){n(this).removeClass("video-js").removeClass("vjs-default-skin");n(this).attr("preload","");n(this).css({display:"none"})}),u.find(">ul:first-child >li").each(function(){var t=n(this);t.data("origindex",t.index())}),f.shuffle=="on"){for(e={},l=u.find(">ul:first-child >li:first-child"),e.fstransition=l.data("fstransition"),e.fsmasterspeed=l.data("fsmasterspeed"),e.fsslotamount=l.data("fsslotamount"),d=0;d<u.find(">ul:first-child >li").length;d++)rt=Math.round(Math.random()*u.find(">ul:first-child >li").length),u.find(">ul:first-child >li:eq("+rt+")").prependTo(u.find(">ul:first-child"));a=u.find(">ul:first-child >li:first-child");a.data("fstransition",e.fstransition);a.data("fsmasterspeed",e.fsmasterspeed);a.data("fsslotamount",e.fsslotamount)}f.slots=4;f.act=-1;f.next=0;f.startWithSlide!=t&&(f.next=f.startWithSlide);y=pt("#")[0];y.length<9&&y.split("slide").length>1&&(o=parseInt(y.split("slide")[1],0),o<1&&(o=1),o>u.find(">ul:first >li").length&&(o=u.find(">ul:first >li").length),f.next=o-1);f.firststart=1;f.navigationHOffset==t&&(f.navOffsetHorizontal=0);f.navigationVOffset==t&&(f.navOffsetVertical=0);u.append('<div class="tp-loader '+f.spinner+'"><div class="dot1"><\/div><div class="dot2"><\/div><div class="bounce1"><\/div><div class="bounce2"><\/div><div class="bounce3"><\/div><\/div>');u.find(".tp-bannertimer").length==0&&u.append('<div class="tp-bannertimer" style="visibility:hidden"><\/div>');g=u.find(".tp-bannertimer");g.length>0&&g.css({width:"0%"});u.addClass("tp-simpleresponsive");f.container=u;f.slideamount=u.find(">ul:first >li").length;u.height()==0&&u.height(f.startheight);(f.startwidth==t||f.startwidth==0)&&(f.startwidth=u.width());(f.startheight==t||f.startheight==0)&&(f.startheight=u.height());f.width=u.width();f.height=u.height();f.bw=f.startwidth/u.width();f.bh=f.startheight/u.height();f.width!=f.startwidth&&(f.height=Math.round(f.startheight*(f.width/f.startwidth)),u.height(f.height));f.shadow!=0&&(u.parent().append('<div class="tp-bannershadow tp-shadow'+f.shadow+'"><\/div>'),s=0,f.forceFullWidth=="on"&&(s=0-f.container.parent().offset().left),u.parent().find(".tp-bannershadow").css({width:f.width,left:s}));u.find("ul").css({display:"none"});et=u;u.find("ul").css({display:"block"});ti(u,f);f.parallax!="off"&&vi(u,f);f.slideamount>1&&wt(u,f);f.slideamount>1&&f.navigationType=="thumb"&&yi(u,f);f.slideamount>1&&bt(u,f);f.keyboardNavigation=="on"&&kt(u,f);dt(u,f);f.hideThumbs>0&&gt(u,f);setTimeout(function(){b(u,f)},f.startDelay);f.startDelay=0;f.slideamount>1&&li(u,f);setTimeout(function(){u.trigger("revolution.slide.onloaded")},500);n("body").data("rs-fullScreenMode",!1);n(window).on("mozfullscreenchange webkitfullscreenchange fullscreenchange",function(){n("body").data("rs-fullScreenMode",!n("body").data("rs-fullScreenMode"));n("body").data("rs-fullScreenMode")&&setTimeout(function(){n(window).trigger("resize")},200)});ut="resize.revslider-"+u.attr("id");n(window).on(ut,function(){if(u==t)return!1;if(n("body").find(u)!=0&&f.forceFullWidth=="on"){var i=f.container.closest(".forcefullwidth_wrapper_tp_banner").offset().left;f.container.parent().css({left:0-i+"px",width:n(window).width()})}(u.outerWidth(!0)!=f.width||u.is(":hidden"))&&v(u,f)});try{f.hideThumbsUnderResoluition!=0&&f.navigationType=="thumb"&&(f.hideThumbsUnderResoluition>n(window).width()?n(".tp-bullets").css({display:"none"}):n(".tp-bullets").css({display:"block"}))}catch(ot){}u.find(".tp-scrollbelowslider").on("click",function(){var t=0;try{t=n("body").find(f.fullScreenOffsetContainer).height()}catch(i){}try{t=t-parseInt(n(this).data("scrolloffset"),0)}catch(i){}n("body,html").animate({scrollTop:u.offset().top+u.find(">ul >li").height()-t+"px"},{duration:400})});h=u.parent();n(window).width()<f.hideSliderAtLimit&&(u.trigger("stoptimer"),h.css("display")!="none"&&h.data("olddisplay",h.css("display")),h.css({display:"none"}));yt(u,f)}}n.fn.extend({revolution:function(i){return i=n.extend({},{delay:9e3,startheight:500,startwidth:960,fullScreenAlignForce:"off",autoHeight:"off",hideTimerBar:"off",hideThumbs:200,hideNavDelayOnMobile:1500,thumbWidth:100,thumbHeight:50,thumbAmount:3,navigationType:"bullet",navigationArrows:"solo",navigationInGrid:"off",hideThumbsOnMobile:"off",hideBulletsOnMobile:"off",hideArrowsOnMobile:"off",hideThumbsUnderResoluition:0,navigationStyle:"round",navigationHAlign:"center",navigationVAlign:"bottom",navigationHOffset:0,navigationVOffset:20,soloArrowLeftHalign:"left",soloArrowLeftValign:"center",soloArrowLeftHOffset:20,soloArrowLeftVOffset:0,soloArrowRightHalign:"right",soloArrowRightValign:"center",soloArrowRightHOffset:20,soloArrowRightVOffset:0,keyboardNavigation:"on",touchenabled:"on",onHoverStop:"on",stopAtSlide:-1,stopAfterLoops:-1,hideCaptionAtLimit:0,hideAllCaptionAtLimit:0,hideSliderAtLimit:0,shadow:0,fullWidth:"off",fullScreen:"off",minFullScreenHeight:0,fullScreenOffsetContainer:"",fullScreenOffset:"0",dottedOverlay:"none",forceFullWidth:"off",spinner:"spinner0",swipe_treshold:75,swipe_min_touches:1,drag_block_vertical:!1,isJoomla:!1,parallax:"off",parallaxLevels:[10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85],parallaxBgFreeze:"off",parallaxOpacity:"on",parallaxDisableOnMobile:"off",panZoomDisableOnMobile:"off",simplifyAll:"on",minHeight:0,nextSlideOnWindowFocus:"off",startDelay:0},i),this.each(function(){if(window.tplogs==!0)try{console.groupCollapsed("Slider Revolution 4.6.3 Initialisation on "+n(this).attr("id"));console.groupCollapsed("Used Options:");console.info(i);console.groupEnd();console.groupCollapsed("Tween Engine:")}catch(r){}if(punchgs.TweenLite==t){if(window.tplogs==!0)try{console.error("GreenSock Engine Does not Exist!")}catch(r){}return!1}if(punchgs.force3D=!0,window.tplogs==!0)try{console.info("GreenSock Engine Version in Slider Revolution:"+punchgs.TweenLite.version)}catch(r){}if(i.simplifyAll=="on"||(punchgs.TweenLite.lagSmoothing(1e3,16),punchgs.force3D="true"),window.tplogs==!0)try{console.groupEnd();console.groupEnd()}catch(r){}vt(n(this),i)})},revscroll:function(i){return this.each(function(){var r=n(this);r!=t&&r.length>0&&n("body").find("#"+r.attr("id")).length>0&&n("body,html").animate({scrollTop:r.offset().top+r.find(">ul >li").height()-i+"px"},{duration:400})})},revredraw:function(){return this.each(function(){var i=n(this),r,u;i!=t&&i.length>0&&n("body").find("#"+i.attr("id")).length>0&&(r=i.parent().find(".tp-bannertimer"),u=r.data("opt"),v(i,u))})},revkill:function(){var f=this,i=n(this),r,u,e;if(i!=t&&i.length>0&&n("body").find("#"+i.attr("id")).length>0){i.data("conthover",1);i.data("conthover-changed",1);i.trigger("revolution.slide.onpause");r=i.parent().find(".tp-bannertimer");u=r.data("opt");u.bannertimeronpause=!0;i.trigger("stoptimer");punchgs.TweenLite.killTweensOf(i.find("*"),!1);punchgs.TweenLite.killTweensOf(i,!1);i.unbind("hover, mouseover, mouseenter,mouseleave, resize");e="resize.revslider-"+i.attr("id");n(window).off(e);i.find("*").each(function(){var i=n(this);i.unbind("on, hover, mouseenter,mouseleave,mouseover, resize,restarttimer, stoptimer");i.off("on, hover, mouseenter,mouseleave,mouseover, resize");i.data("mySplitText",null);i.data("ctl",null);i.data("tween")!=t&&i.data("tween").kill();i.data("kenburn")!=t&&i.data("kenburn").kill();i.remove();i.empty();i=null});punchgs.TweenLite.killTweensOf(i.find("*"),!1);punchgs.TweenLite.killTweensOf(i,!1);r.remove();try{i.closest(".forcefullwidth_wrapper_tp_banner").remove()}catch(o){}try{i.closest(".rev_slider_wrapper").remove()}catch(o){}try{i.remove()}catch(o){}return i.empty(),i.html(),i=null,u=null,delete f.container,delete f.opt,!0}return!1},revpause:function(){return this.each(function(){var i=n(this),r,u;i!=t&&i.length>0&&n("body").find("#"+i.attr("id")).length>0&&(i.data("conthover",1),i.data("conthover-changed",1),i.trigger("revolution.slide.onpause"),r=i.parent().find(".tp-bannertimer"),u=r.data("opt"),u.bannertimeronpause=!0,i.trigger("stoptimer"))})},revresume:function(){return this.each(function(){var i=n(this),r,u;i!=t&&i.length>0&&n("body").find("#"+i.attr("id")).length>0&&(i.data("conthover",0),i.data("conthover-changed",1),i.trigger("revolution.slide.onresume"),r=i.parent().find(".tp-bannertimer"),u=r.data("opt"),u.bannertimeronpause=!1,i.trigger("starttimer"))})},revnext:function(){return this.each(function(){var i=n(this);i!=t&&i.length>0&&n("body").find("#"+i.attr("id")).length>0&&i.parent().find(".tp-rightarrow").click()})},revprev:function(){return this.each(function(){var i=n(this);i!=t&&i.length>0&&n("body").find("#"+i.attr("id")).length>0&&i.parent().find(".tp-leftarrow").click()})},revmaxslide:function(){return n(this).find(">ul:first-child >li").length},revcurrentslide:function(){var i=n(this),r,u;if(i!=t&&i.length>0&&n("body").find("#"+i.attr("id")).length>0)return r=i.parent().find(".tp-bannertimer"),u=r.data("opt"),u.act},revlastslide:function(){var i=n(this),r,u;if(i!=t&&i.length>0&&n("body").find("#"+i.attr("id")).length>0)return r=i.parent().find(".tp-bannertimer"),u=r.data("opt"),u.lastslide},revshowslide:function(i){return this.each(function(){var r=n(this);r!=t&&r.length>0&&n("body").find("#"+r.attr("id")).length>0&&(r.data("showus",i),r.parent().find(".tp-rightarrow").click())})}});var pi=function(){var n,t,i={hidden:"visibilitychange",webkitHidden:"webkitvisibilitychange",mozHidden:"mozvisibilitychange",msHidden:"msvisibilitychange"};for(n in i)if(n in document){t=i[n];break}return function(i){return i&&document.addEventListener(t,i),!document[n]}}(),yt=function(i,r){var u=document.documentMode===t,f=window.chrome;if(u&&!f)n(window).on("focusin",function(){if(i==t)return!1;setTimeout(function(){r.nextSlideOnWindowFocus=="on"&&i.revnext();i.revredraw()},300)}).on("focusout",function(){});else window.addEventListener?(window.addEventListener("focus",function(){if(i==t)return!1;setTimeout(function(){r.nextSlideOnWindowFocus=="on"&&i.revnext();i.revredraw()},300)},!1),window.addEventListener("blur",function(){},!1)):(window.attachEvent("focus",function(){setTimeout(function(){if(i==t)return!1;r.nextSlideOnWindowFocus=="on"&&i.revnext();i.revredraw()},300)}),window.attachEvent("blur",function(){}))},pt=function(n){for(var u=[],i,r=window.location.href.slice(window.location.href.indexOf(n)+1).split("_"),t=0;t<r.length;t++)r[t]=r[t].replace("%3D","="),i=r[t].split("="),u.push(i[0]),u[i[0]]=i[1];return u},v=function(i,r){var u,s,c,h,l,f;if(i==t)return!1;try{r.hideThumbsUnderResoluition!=0&&r.navigationType=="thumb"&&(r.hideThumbsUnderResoluition>n(window).width()?n(".tp-bullets").css({display:"none"}):n(".tp-bullets").css({display:"block"}))}catch(a){}i.find(".defaultimg").each(function(){o(n(this),r)});u=i.parent();n(window).width()<r.hideSliderAtLimit?(i.trigger("stoptimer"),u.css("display")!="none"&&u.data("olddisplay",u.css("display")),u.css({display:"none"})):i.is(":hidden")&&(u.data("olddisplay")!=t&&u.data("olddisplay")!="undefined"&&u.data("olddisplay")!="none"?u.css({display:u.data("olddisplay")}):u.css({display:"block"}),i.trigger("restarttimer"),setTimeout(function(){v(i,r)},150));s=0;r.forceFullWidth=="on"&&(s=0-r.container.parent().offset().left);try{i.parent().find(".tp-bannershadow").css({width:r.width,left:s})}catch(a){}c=i.find(">ul >li:eq("+r.act+") .slotholder");h=i.find(">ul >li:eq("+r.next+") .slotholder");p(i,r,i);punchgs.TweenLite.set(h.find(".defaultimg"),{opacity:0});c.find(".defaultimg").css({opacity:1});h.find(".defaultimg").each(function(){var u=n(this);r.panZoomDisableOnMobile=="on"||u.data("kenburn")!=t&&(u.data("kenburn").restart(),nt(i,r,!0))});l=i.find(">ul >li:eq("+r.next+")");f=i.parent().find(".tparrows");f.hasClass("preview2")&&f.css({width:parseInt(f.css("minWidth"),0)});ft(l,r,!0);e(i,r)},r=function(t,i){var r=n('<div style="display:none;"/>').appendTo(n("body")),u;return r.html("<!--[if "+(i||"")+" IE "+(t||"")+"]><a>&nbsp;<\/a><![endif]-->"),u=r.find("a").length,r.remove(),u},f=function(n,t){n.next==t.find(">ul >li").length-1&&(n.looptogo=n.looptogo-1,n.looptogo<=0&&(n.stopLoop="on"));b(t,n)},wt=function(t,i){var u="hidebullets",r;i.hideThumbs==0&&(u="");(i.navigationType=="bullet"||i.navigationType=="both")&&t.parent().append('<div class="tp-bullets '+u+" simplebullets "+i.navigationStyle+'"><\/div>');r=t.parent().find(".tp-bullets");t.find(">ul:first >li").each(function(n){var u=t.find(">ul:first >li:eq("+n+") img:first").attr("src"),i;r.append('<div class="bullet"><\/div>');i=r.find(".bullet:first")});r.find(".bullet").each(function(r){var u=n(this);r==i.slideamount-1&&u.addClass("last");r==0&&u.addClass("first");u.click(function(){var r=!1,n=u.index();(i.navigationArrows=="withbullet"||i.navigationArrows=="nexttobullets")&&(n=u.index()-1);n==i.act&&(r=!0);i.transition!=0||r||(i.next=n,f(i,t))})});r.append('<div class="tpclear"><\/div>');e(t,i)},bt=function(n,i){function r(t){n.parent().append('<div style="'+u+'" class="tp-'+t+"arrow "+o+" tparrows "+s+'"><div class="tp-arr-allwrapper"><div class="tp-arr-iwrapper"><div class="tp-arr-imgholder"><\/div><div class="tp-arr-imgholder2"><\/div><div class="tp-arr-titleholder"><\/div><div class="tp-arr-subtitleholder"><\/div><\/div><\/div><\/div>')}var h=n.find(".tp-bullets"),u="",o="hidearrows",s=i.navigationStyle;i.hideThumbs==0&&(o="");i.navigationArrows=="none"&&(u="visibility:hidden;display:none");i.soloArrowStyle="default "+i.navigationStyle;i.navigationArrows!="none"&&i.navigationArrows!="nexttobullets"&&(s=i.soloArrowStyle);r("left");r("right");n.parent().find(".tp-rightarrow").click(function(){i.transition==0&&(i.next=n.data("showus")!=t&&n.data("showus")!=-1?n.data("showus")-1:i.next+1,n.data("showus",-1),i.next>=i.slideamount&&(i.next=0),i.next<0&&(i.next=0),i.act!=i.next&&f(i,n))});n.parent().find(".tp-leftarrow").click(function(){i.transition==0&&(i.next=i.next-1,i.leftarrowpressed=1,i.next<0&&(i.next=i.slideamount-1),f(i,n))});e(n,i)},kt=function(i,r){n(document).keydown(function(n){r.transition==0&&n.keyCode==39&&(r.next=i.data("showus")!=t&&i.data("showus")!=-1?i.data("showus")-1:r.next+1,i.data("showus",-1),r.next>=r.slideamount&&(r.next=0),r.next<0&&(r.next=0),r.act!=r.next&&f(r,i));r.transition==0&&n.keyCode==37&&(r.next=r.next-1,r.leftarrowpressed=1,r.next<0&&(r.next=r.slideamount-1),f(r,i))});e(i,r)},dt=function(t,i){var r="vertical";i.touchenabled=="on"&&(i.drag_block_vertical==!0&&(r="none"),t.swipe({allowPageScroll:r,fingers:i.swipe_min_touches,treshold:i.swipe_treshold,swipe:function(u,e){switch(e){case"left":i.transition==0&&(i.next=i.next+1,i.next==i.slideamount&&(i.next=0),f(i,t));break;case"right":i.transition==0&&(i.next=i.next-1,i.leftarrowpressed=1,i.next<0&&(i.next=i.slideamount-1),f(i,t));break;case"up":r=="none"&&n("html, body").animate({scrollTop:t.offset().top+t.height()+"px"});break;case"down":r=="none"&&n("html, body").animate({scrollTop:t.offset().top-n(window).height()+"px"})}}}))},gt=function(n,t){var r=n.parent().find(".tp-bullets"),u=n.parent().find(".tparrows");if(r==null&&(n.append('<div class=".tp-bullets"><\/div>'),r=n.parent().find(".tp-bullets")),u==null&&(n.append('<div class=".tparrows"><\/div>'),u=n.parent().find(".tparrows")),n.data("hideThumbs",t.hideThumbs),r.addClass("hidebullets"),u.addClass("hidearrows"),i())try{n.hammer().on("touch",function(){n.addClass("hovered");t.onHoverStop=="on"&&n.trigger("stoptimer");clearTimeout(n.data("hideThumbs"));r.removeClass("hidebullets");u.removeClass("hidearrows")});n.hammer().on("release",function(){n.removeClass("hovered");n.trigger("starttimer");n.hasClass("hovered")||r.hasClass("hovered")||n.data("hideThumbs",setTimeout(function(){r.addClass("hidebullets");u.addClass("hidearrows");n.trigger("starttimer")},t.hideNavDelayOnMobile))})}catch(f){}else{r.hover(function(){t.overnav=!0;t.onHoverStop=="on"&&n.trigger("stoptimer");r.addClass("hovered");clearTimeout(n.data("hideThumbs"));r.removeClass("hidebullets");u.removeClass("hidearrows")},function(){t.overnav=!1;n.trigger("starttimer");r.removeClass("hovered");n.hasClass("hovered")||r.hasClass("hovered")||n.data("hideThumbs",setTimeout(function(){r.addClass("hidebullets");u.addClass("hidearrows")},t.hideThumbs))});u.hover(function(){t.overnav=!0;t.onHoverStop=="on"&&n.trigger("stoptimer");r.addClass("hovered");clearTimeout(n.data("hideThumbs"));r.removeClass("hidebullets");u.removeClass("hidearrows")},function(){t.overnav=!1;n.trigger("starttimer");r.removeClass("hovered")});n.on("mouseenter",function(){n.addClass("hovered");t.onHoverStop=="on"&&n.trigger("stoptimer");clearTimeout(n.data("hideThumbs"));r.removeClass("hidebullets");u.removeClass("hidearrows")});n.on("mouseleave",function(){n.removeClass("hovered");n.trigger("starttimer");n.hasClass("hovered")||r.hasClass("hovered")||n.data("hideThumbs",setTimeout(function(){r.addClass("hidebullets");u.addClass("hidearrows")},t.hideThumbs))})}},e=function(t,i){var h=t.parent(),f=h.find(".tp-bullets"),s,r,u,e,o,tt;if(i.navigationType=="thumb"&&(f.find(".thumb").each(function(){var t=n(this);t.css({width:i.thumbWidth*i.bw+"px",height:i.thumbHeight*i.bh+"px"})}),s=f.find(".tp-mask"),s.width(i.thumbWidth*i.thumbAmount*i.bw),s.height(i.thumbHeight*i.bh),s.parent().width(i.thumbWidth*i.thumbAmount*i.bw),s.parent().height(i.thumbHeight*i.bh)),r=h.find(".tp-leftarrow"),u=h.find(".tp-rightarrow"),i.navigationType=="thumb"&&i.navigationArrows=="nexttobullets"&&(i.navigationArrows="solo"),i.navigationArrows=="nexttobullets"&&(r.prependTo(f).css({float:"left"}),u.insertBefore(f.find(".tpclear")).css({float:"left"})),e=0,i.forceFullWidth=="on"&&(e=0-i.container.parent().offset().left),o=0,tt=0,i.navigationInGrid=="on"&&(o=t.width()>i.startwidth?(t.width()-i.startwidth)/2:0,tt=t.height()>i.startheight?(t.height()-i.startheight)/2:0),i.navigationArrows!="none"&&i.navigationArrows!="nexttobullets"){var c=i.soloArrowLeftValign,l=i.soloArrowLeftHalign,a=i.soloArrowRightValign,v=i.soloArrowRightHalign,y=i.soloArrowLeftVOffset,p=i.soloArrowLeftHOffset,w=i.soloArrowRightVOffset,b=i.soloArrowRightHOffset;r.css({position:"absolute"});u.css({position:"absolute"});c=="center"?r.css({top:"50%",marginTop:y-Math.round(r.innerHeight()/2)+"px"}):c=="bottom"?r.css({top:"auto",bottom:0+y+"px"}):c=="top"&&r.css({bottom:"auto",top:0+y+"px"});l=="center"?r.css({left:"50%",marginLeft:e+p-Math.round(r.innerWidth()/2)+"px"}):l=="left"?r.css({left:o+p+e+"px"}):l=="right"&&r.css({right:o+p-e+"px"});a=="center"?u.css({top:"50%",marginTop:w-Math.round(u.innerHeight()/2)+"px"}):a=="bottom"?u.css({top:"auto",bottom:0+w+"px"}):a=="top"&&u.css({bottom:"auto",top:0+w+"px"});v=="center"?u.css({left:"50%",marginLeft:e+b-Math.round(u.innerWidth()/2)+"px"}):v=="left"?u.css({left:o+b+e+"px"}):v=="right"&&u.css({right:o+b-e+"px"});r.position()!=null&&r.css({top:Math.round(parseInt(r.position().top,0))+"px"});u.position()!=null&&u.css({top:Math.round(parseInt(u.position().top,0))+"px"})}i.navigationArrows=="none"&&(r.css({visibility:"hidden"}),u.css({visibility:"hidden"}));var k=i.navigationVAlign,d=i.navigationHAlign,g=i.navigationVOffset*i.bh,nt=i.navigationHOffset*i.bw;k=="center"&&f.css({top:"50%",marginTop:g-Math.round(f.innerHeight()/2)+"px"});k=="bottom"&&f.css({bottom:0+g+"px"});k=="top"&&f.css({top:0+g+"px"});d=="center"&&f.css({left:"50%",marginLeft:e+nt-Math.round(f.innerWidth()/2)+"px"});d=="left"&&f.css({left:0+nt+e+"px"});d=="right"&&f.css({right:0+nt-e+"px"})},ni=function(r){var s=r.container,f,w;r.beforli=r.next-1;r.comingli=r.next+1;r.beforli<0&&(r.beforli=r.slideamount-1);r.comingli>=r.slideamount&&(r.comingli=0);var h=s.find(">ul:first-child >li:eq("+r.comingli+")"),c=s.find(">ul:first-child >li:eq("+r.beforli+")"),l=c.find(".defaultimg").attr("src"),a=h.find(".defaultimg").attr("src");r.arr==t&&(r.arr=s.parent().find(".tparrows"),r.rar=s.parent().find(".tp-rightarrow"),r.lar=s.parent().find(".tp-leftarrow"),r.raimg=r.rar.find(".tp-arr-imgholder"),r.laimg=r.lar.find(".tp-arr-imgholder"),r.raimg_b=r.rar.find(".tp-arr-imgholder2"),r.laimg_b=r.lar.find(".tp-arr-imgholder2"),r.ratit=r.rar.find(".tp-arr-titleholder"),r.latit=r.lar.find(".tp-arr-titleholder"));var f=r.arr,e=r.rar,v=r.lar,u=r.raimg,o=r.laimg,y=r.raimg_b,p=r.laimg_b,b=r.ratit,k=r.latit;h.data("title")!=t&&b.html(h.data("title"));c.data("title")!=t&&k.html(c.data("title"));e.hasClass("itishovered")&&e.width(b.outerWidth(!0)+parseInt(e.css("minWidth"),0));v.hasClass("itishovered")&&v.width(k.outerWidth(!0)+parseInt(v.css("minWidth"),0));f.hasClass("preview2")&&!f.hasClass("hashoveralready")&&(f.addClass("hashoveralready"),i()?(f=n(this),w=f.find(".tp-arr-titleholder"),w.addClass("alwayshidden"),punchgs.TweenLite.set(w,{autoAlpha:0})):f.hover(function(){var t=n(this),i=t.find(".tp-arr-titleholder");n(window).width()>767&&t.width(i.outerWidth(!0)+parseInt(t.css("minWidth"),0));t.addClass("itishovered")},function(){var t=n(this),i=t.find(".tp-arr-titleholder");t.css({width:parseInt(t.css("minWidth"),0)});t.removeClass("itishovered")}));c.data("thumb")!=t&&(l=c.data("thumb"));h.data("thumb")!=t&&(a=h.data("thumb"));f.hasClass("preview4")?(y.css({backgroundImage:"url("+a+")"}),p.css({backgroundImage:"url("+l+")"}),punchgs.TweenLite.fromTo(y,.8,{force3D:punchgs.force3d,x:0},{x:-u.width(),ease:punchgs.Power3.easeOut,delay:1,onComplete:function(){u.css({backgroundImage:"url("+a+")"});punchgs.TweenLite.set(y,{x:0})}}),punchgs.TweenLite.fromTo(p,.8,{force3D:punchgs.force3d,x:0},{x:u.width(),ease:punchgs.Power3.easeOut,delay:1,onComplete:function(){o.css({backgroundImage:"url("+l+")"});punchgs.TweenLite.set(p,{x:0})}}),punchgs.TweenLite.fromTo(u,.8,{x:0},{force3D:punchgs.force3d,x:-u.width(),ease:punchgs.Power3.easeOut,delay:1,onComplete:function(){punchgs.TweenLite.set(u,{x:0})}}),punchgs.TweenLite.fromTo(o,.8,{x:0},{force3D:punchgs.force3d,x:u.width(),ease:punchgs.Power3.easeOut,delay:1,onComplete:function(){punchgs.TweenLite.set(o,{x:0})}})):(punchgs.TweenLite.to(u,.5,{autoAlpha:0,onComplete:function(){u.css({backgroundImage:"url("+a+")"});o.css({backgroundImage:"url("+l+")"})}}),punchgs.TweenLite.to(o,.5,{autoAlpha:0,onComplete:function(){punchgs.TweenLite.to(u,.5,{autoAlpha:1,delay:.2});punchgs.TweenLite.to(o,.5,{autoAlpha:1,delay:.2})}}));e.hasClass("preview4")&&!e.hasClass("hashoveralready")&&(e.addClass("hashoveralready"),e.hover(function(){var t=n(this).find(".tp-arr-iwrapper"),i=n(this).find(".tp-arr-allwrapper");punchgs.TweenLite.fromTo(t,.4,{x:t.width()},{x:0,delay:.3,ease:punchgs.Power3.easeOut,overwrite:"all"});punchgs.TweenLite.to(i,.2,{autoAlpha:1,overwrite:"all"})},function(){var t=n(this).find(".tp-arr-iwrapper"),i=n(this).find(".tp-arr-allwrapper");punchgs.TweenLite.to(t,.4,{x:t.width(),ease:punchgs.Power3.easeOut,delay:.2,overwrite:"all"});punchgs.TweenLite.to(i,.2,{delay:.6,autoAlpha:0,overwrite:"all"})}),v.hover(function(){var t=n(this).find(".tp-arr-iwrapper"),i=n(this).find(".tp-arr-allwrapper");punchgs.TweenLite.fromTo(t,.4,{x:0-t.width()},{x:0,delay:.3,ease:punchgs.Power3.easeOut,overwrite:"all"});punchgs.TweenLite.to(i,.2,{autoAlpha:1,overwrite:"all"})},function(){var t=n(this).find(".tp-arr-iwrapper"),i=n(this).find(".tp-arr-allwrapper");punchgs.TweenLite.to(t,.4,{x:0-t.width(),ease:punchgs.Power3.easeOut,delay:.2,overwrite:"all"});punchgs.TweenLite.to(i,.2,{delay:.6,autoAlpha:0,overwrite:"all"})}))},o=function(i,r){var e,u,f;if(r.container.closest(".forcefullwidth_wrapper_tp_banner").find(".tp-fullwidth-forcer").css({height:r.container.height()}),r.container.closest(".rev_slider_wrapper").css({height:r.container.height()}),r.width=parseInt(r.container.width(),0),r.height=parseInt(r.container.height(),0),r.bw=r.width/r.startwidth,r.bh=r.height/r.startheight,r.bh>r.bw&&(r.bh=r.bw),r.bh<r.bw&&(r.bw=r.bh),r.bw<r.bh&&(r.bh=r.bw),r.bh>1&&(r.bw=1,r.bh=1),r.bw>1&&(r.bw=1,r.bh=1),r.height=Math.round(r.startheight*(r.width/r.startwidth)),r.height>r.startheight&&r.autoHeight!="on"&&(r.height=r.startheight),r.fullScreen=="on"){if(r.height=r.bw*r.startheight,e=r.container.parent().width(),u=n(window).height(),r.fullScreenOffsetContainer!=t){try{f=r.fullScreenOffsetContainer.split(",");n.each(f,function(t,i){u=u-n(i).outerHeight(!0);u<r.minFullScreenHeight&&(u=r.minFullScreenHeight)})}catch(o){}try{r.fullScreenOffset.split("%").length>1&&r.fullScreenOffset!=t&&r.fullScreenOffset.length>0?u=u-n(window).height()*parseInt(r.fullScreenOffset,0)/100:r.fullScreenOffset!=t&&r.fullScreenOffset.length>0&&(u=u-parseInt(r.fullScreenOffset,0));u<r.minFullScreenHeight&&(u=r.minFullScreenHeight)}catch(o){}}r.container.parent().height(u);r.container.closest(".rev_slider_wrapper").height(u);r.container.css({height:"100%"});r.height=u;r.minHeight!=t&&r.height<r.minHeight&&(r.height=r.minHeight)}else r.minHeight!=t&&r.height<r.minHeight&&(r.height=r.minHeight),r.container.height(r.height);r.slotw=Math.ceil(r.width/r.slots);r.sloth=r.fullScreen=="on"?Math.ceil(n(window).height()/r.slots):Math.ceil(r.height/r.slots);r.autoHeight=="on"&&(r.sloth=Math.ceil(i.height()/r.slots))},ti=function(u,f){u.find(".tp-caption").each(function(){n(this).addClass(n(this).data("transition"));n(this).addClass("start")});u.find(">ul:first").css({overflow:"hidden",width:"100%",height:"100%",maxHeight:u.parent().css("maxHeight")}).addClass("tp-revslider-mainul");f.autoHeight=="on"&&(u.find(">ul:first").css({overflow:"hidden",width:"100%",height:"100%",maxHeight:"none"}),u.css({maxHeight:"none"}),u.parent().css({maxHeight:"none"}));u.find(">ul:first >li").each(function(){var i=n(this),r,f;if(i.addClass("tp-revslider-slidesli"),i.css({width:"100%",height:"100%",overflow:"hidden"}),i.data("link")!=t){var e=i.data("link"),o="_self",s=60;i.data("slideindex")=="back"&&(s=0);r=checksl=i.data("linktoslide");r!=t&&r!="next"&&r!="prev"&&u.find(">ul:first-child >li").each(function(){var t=n(this);t.data("origindex")+1==checksl&&(r=t.index()+1)});i.data("target")!=t&&(o=i.data("target"));e!="slide"&&(r="no");f='<div class="tp-caption sft slidelink" style="width:100%;height:100%;z-index:'+s+';" data-x="center" data-y="center" data-linktoslide="'+r+'" data-start="0"><a style="width:100%;height:100%;display:block"';e!="slide"&&(f=f+' target="'+o+'" href="'+e+'"');f=f+'><span style="width:100%;height:100%;display:block"><\/span><\/a><\/div>';i.append(f)}});u.parent().css({overflow:"visible"});u.find(">ul:first >li >img").each(function(u){var e=n(this),a;e.addClass("defaultimg");e.data("lazyload")!=t&&e.data("lazydone")!=1||o(e,f);r(8)&&e.data("kenburns","off");f.panZoomDisableOnMobile=="on"&&i()&&(e.data("kenburns","off"),e.data("bgfit","cover"));e.wrap('<div class="slotholder" style="width:100%;height:100%;"data-duration="'+e.data("duration")+'"data-zoomstart="'+e.data("zoomstart")+'"data-zoomend="'+e.data("zoomend")+'"data-rotationstart="'+e.data("rotationstart")+'"data-rotationend="'+e.data("rotationend")+'"data-ease="'+e.data("ease")+'"data-duration="'+e.data("duration")+'"data-bgpositionend="'+e.data("bgpositionend")+'"data-bgposition="'+e.data("bgposition")+'"data-duration="'+e.data("duration")+'"data-kenburns="'+e.data("kenburns")+'"data-easeme="'+e.data("ease")+'"data-bgfit="'+e.data("bgfit")+'"data-bgfitend="'+e.data("bgfitend")+'"data-owidth="'+e.data("owidth")+'"data-oheight="'+e.data("oheight")+'"><\/div>');f.dottedOverlay!="none"&&f.dottedOverlay!=t&&e.closest(".slotholder").append('<div class="tp-dottedoverlay '+f.dottedOverlay+'"><\/div>');var s=e.attr("src"),v=e.data("lazyload"),h=e.data("bgfit"),c=e.data("bgrepeat"),l=e.data("bgposition");h==t&&(h="cover");c==t&&(c="no-repeat");l==t&&(l="center center");a=e.closest(".slotholder");e.replaceWith('<div class="tp-bgimg defaultimg" data-lazyload="'+e.data("lazyload")+'" data-bgfit="'+h+'"data-bgposition="'+l+'" data-bgrepeat="'+c+'" data-lazydone="'+e.data("lazydone")+'" src="'+s+'" data-src="'+s+'" style="background-color:'+e.css("backgroundColor")+";background-repeat:"+c+";background-image:url("+s+");background-size:"+h+";background-position:"+l+';width:100%;height:100%;"><\/div>');r(8)&&(a.find(".tp-bgimg").css({backgroundImage:"none","background-image":"none"}),a.find(".tp-bgimg").append('<img class="ieeightfallbackimage defaultimg" src="'+s+'" style="width:100%">'));e.css({opacity:0});e.data("li-id",u)})},it=function(n,i,u,f){var e=n,c=e.find(".defaultimg"),w=e.data("zoomstart"),b=e.data("rotationstart"),ut,k,p,ot,v,h;c.data("currotate")!=t&&(b=c.data("currotate"));c.data("curscale")!=t&&f=="box"?w=c.data("curscale")*100:c.data("curscale")!=t&&(w=c.data("curscale"));o(c,i);var g=c.data("src"),ft=c.css("backgroundColor"),nt=i.width,d=i.height,tt=c.data("fxof"),et=0;i.autoHeight=="on"&&(d=i.container.height());tt==t&&(tt=0);var v=0,l=c.data("bgfit"),it=c.data("bgrepeat"),rt=c.data("bgposition");l==t&&(l="cover");it==t&&(it="no-repeat");rt==t&&(rt="center center");r(8)&&(e.data("kenburns","off"),ut=g,g="");switch(f){case"box":var a=0,k=0,p=0;for(a=i.sloth>i.slotw?i.sloth:i.slotw,u||(v=0-a),i.slotw=a,i.sloth=a,k=0,p=0,e.data("kenburns")=="on"&&(l=w,l.toString().length<4&&(l=s(l,e,i))),ot=0;ot<i.slots;ot++){for(p=0,h=0;h<i.slots;h++)e.append('<div class="slot" style="position:absolute;top:'+(et+p)+"px;left:"+(tt+k)+"px;width:"+a+"px;height:"+a+'px;overflow:hidden;"><div class="slotslide" data-x="'+k+'" data-y="'+p+'" style="position:absolute;top:0px;left:0px;width:'+a+"px;height:"+a+'px;overflow:hidden;"><div style="position:absolute;top:'+(0-p)+"px;left:"+(0-k)+"px;width:"+nt+"px;height:"+d+"px;background-color:"+ft+";background-image:url("+g+");background-repeat:"+it+";background-size:"+l+";background-position:"+rt+';"><\/div><\/div><\/div>'),p=p+a,r(8)&&(e.find(".slot ").last().find(".slotslide").append('<img src="'+ut+'">'),y(e,i)),w!=t&&b!=t&&punchgs.TweenLite.set(e.find(".slot").last(),{rotationZ:b});k=k+a}break;case"vertical":case"horizontal":if(e.data("kenburns")=="on"&&(l=w,l.toString().length<4&&(l=s(l,e,i))),f=="horizontal")for(u||(v=0-i.slotw),h=0;h<i.slots;h++)e.append('<div class="slot" style="position:absolute;top:'+(0+et)+"px;left:"+(tt+h*i.slotw)+"px;overflow:hidden;width:"+(i.slotw+.6)+"px;height:"+d+'px"><div class="slotslide" style="position:absolute;top:0px;left:'+v+"px;width:"+(i.slotw+.6)+"px;height:"+d+'px;overflow:hidden;"><div style="background-color:'+ft+";position:absolute;top:0px;left:"+(0-h*i.slotw)+"px;width:"+nt+"px;height:"+d+"px;background-image:url("+g+");background-repeat:"+it+";background-size:"+l+";background-position:"+rt+';"><\/div><\/div><\/div>'),w!=t&&b!=t&&punchgs.TweenLite.set(e.find(".slot").last(),{rotationZ:b}),r(8)&&(e.find(".slot ").last().find(".slotslide").append('<img class="ieeightfallbackimage" src="'+ut+'" style="width:100%;height:auto">'),y(e,i));else for(u||(v=0-i.sloth),h=0;h<i.slots+2;h++)e.append('<div class="slot" style="position:absolute;top:'+(et+h*i.sloth)+"px;left:"+tt+"px;overflow:hidden;width:"+nt+"px;height:"+i.sloth+'px"><div class="slotslide" style="position:absolute;top:'+v+"px;left:0px;width:"+nt+"px;height:"+i.sloth+'px;overflow:hidden;"><div style="background-color:'+ft+";position:absolute;top:"+(0-h*i.sloth)+"px;left:0px;width:"+nt+"px;height:"+d+"px;background-image:url("+g+");background-repeat:"+it+";background-size:"+l+";background-position:"+rt+';"><\/div><\/div><\/div>'),w!=t&&b!=t&&punchgs.TweenLite.set(e.find(".slot").last(),{rotationZ:b}),r(8)&&(e.find(".slot ").last().find(".slotslide").append('<img class="ieeightfallbackimage" src="'+ut+'" style="width:100%;height:auto;">'),y(e,i))}},y=function(n,t){if(r(8)){var i=n.find(".ieeightfallbackimage"),u=i.width(),f=i.height();t.startwidth/t.startheight<n.data("owidth")/n.data("oheight")?i.css({width:"auto",height:"100%"}):i.css({width:"100%",height:"auto"});setTimeout(function(){var u=i.width(),f=i.height(),r=n.data("bgposition");r=="center center"&&i.css({position:"absolute",top:t.height/2-f/2+"px",left:t.width/2-u/2+"px"});(r=="center top"||r=="top center")&&i.css({position:"absolute",top:"0px",left:t.width/2-u/2+"px"});(r=="center bottom"||r=="bottom center")&&i.css({position:"absolute",bottom:"0px",left:t.width/2-u/2+"px"});(r=="right top"||r=="top right")&&i.css({position:"absolute",top:"0px",right:"0px"});(r=="right bottom"||r=="bottom right")&&i.css({position:"absolute",bottom:"0px",right:"0px"});(r=="right center"||r=="center right")&&i.css({position:"absolute",top:t.height/2-f/2+"px",right:"0px"});(r=="left bottom"||r=="bottom left")&&i.css({position:"absolute",bottom:"0px",left:"0px"});(r=="left center"||r=="center left")&&i.css({position:"absolute",top:t.height/2-f/2+"px",left:"0px"})},20)}},p=function(t,i,r){r.find(".slot").each(function(){n(this).remove()});i.transition=0},rt=function(i,r){i.find("img, .defaultimg").each(function(){var i=n(this),f=i.data("lazyload"),u;f!=i.attr("src")&&r<3&&f!=t&&f!="undefined"?f!=t&&f!="undefined"&&(i.attr("src",f),u=new Image,u.onload=function(){i.data("lazydone",1);i.hasClass("defaultimg")&&c(i,u)},u.error=function(){i.data("lazydone",1)},u.src=i.attr("src"),u.complete&&(i.hasClass("defaultimg")&&c(i,u),i.data("lazydone",1))):(f===t||f==="undefined")&&i.data("lazydone")!=1&&(u=new Image,u.onload=function(){i.hasClass("defaultimg")&&c(i,u);i.data("lazydone",1)},u.error=function(){i.data("lazydone",1)},u.src=i.attr("src")!=t&&i.attr("src")!="undefined"?i.attr("src"):i.data("src"),u.complete&&(i.hasClass("defaultimg")&&c(i,u),i.data("lazydone",1)))})},c=function(n,t){var i=n.closest("li"),r=t.width,u=t.height;i.data("owidth",r);i.data("oheight",u);i.find(".slotholder").data("owidth",r);i.find(".slotholder").data("oheight",u);i.data("loadeddone",1)},w=function(i,r,u){rt(i,0);var f=setInterval(function(){u.bannertimeronpause=!0;u.container.trigger("stoptimer");u.cd=0;var e=0;i.find("img, .defaultimg").each(function(){n(this).data("lazydone")!=1&&e++});e>0?rt(i,e):(clearInterval(f),r!=t&&r())},100)},b=function(n,i){var e,f,u;try{e=n.find(">ul:first-child >li:eq("+i.act+")")}catch(o){e=n.find(">ul:first-child >li:eq(1)")}i.lastslide=i.act;f=n.find(">ul:first-child >li:eq("+i.next+")");u=f.find(".defaultimg");i.bannertimeronpause=!0;n.trigger("stoptimer");i.cd=0;u.data("lazyload")!=t&&u.data("lazyload")!="undefined"&&u.data("lazydone")!=1?(r(8)?u.attr("src",f.find(".defaultimg").data("lazyload")):u.css({backgroundImage:'url("'+f.find(".defaultimg").data("lazyload")+'")'}),u.data("src",f.find(".defaultimg").data("lazyload")),u.data("lazydone",1),u.data("orgw",0),f.data("loadeddone",1),n.find(".tp-loader").css({display:"block"}),w(n.find(".tp-static-layers"),function(){w(f,function(){var t=f.find(".slotholder"),r;t.data("kenburns")=="on"?r=setInterval(function(){var f=t.data("owidth");f>=0&&(clearInterval(r),l(i,u,n))},10):l(i,u,n)},i)},i)):f.data("loadeddone")===t?(f.data("loadeddone",1),w(f,function(){l(i,u,n)},i)):l(i,u,n)},l=function(n,t,i){n.bannertimeronpause=!1;n.cd=0;i.trigger("nulltimer");i.find(".tp-loader").css({display:"none"});o(t,n);e(i,n);o(t,n);ii(i,n)},ii=function(n,i){var r,u,e,o,f;n.trigger("revolution.slide.onbeforeswap");i.transition=1;i.videoplaying=!1;try{r=n.find(">ul:first-child >li:eq("+i.act+")")}catch(s){r=n.find(">ul:first-child >li:eq(1)")}i.lastslide=i.act;u=n.find(">ul:first-child >li:eq("+i.next+")");setTimeout(function(){ni(i)},200);e=r.find(".slotholder");o=u.find(".slotholder");(o.data("kenburns")=="on"||e.data("kenburns")=="on")&&(ai(n,i),n.find(".kenburnimg").remove());u.data("delay")!=t?(i.cd=0,i.delay=u.data("delay")):i.delay=i.origcd;i.firststart==1&&punchgs.TweenLite.set(r,{autoAlpha:0});punchgs.TweenLite.set(r,{zIndex:18});punchgs.TweenLite.set(u,{autoAlpha:0,zIndex:20});f=0;r.index()!=u.index()&&i.firststart!=1&&(f=si(r,i));r.data("saveperformance")!="on"&&(f=0);setTimeout(function(){n.trigger("restarttimer");ri(n,i,u,r,e,o)},f)},ri=function(i,u,f,e,o,s){function hi(){n.each(yt,function(n,t){(t[0]==l||t[8]==l)&&(c=t[1],k=t[2],ci=bt);bt=bt+1})}var l,k,li,ct,rt,a,v,ai,lt,vi,yi,kt,bi,wt,d,b,y,ti,ii,p,ri;f.data("differentissplayed")=="prepared"&&(f.data("differentissplayed","done"),f.data("transition",f.data("savedtransition")),f.data("slotamount",f.data("savedslotamount")),f.data("masterspeed",f.data("savedmasterspeed")));f.data("fstransition")!=t&&f.data("differentissplayed")!="done"&&(f.data("savedtransition",f.data("transition")),f.data("savedslotamount",f.data("slotamount")),f.data("savedmasterspeed",f.data("masterspeed")),f.data("transition",f.data("fstransition")),f.data("slotamount",f.data("fsslotamount")),f.data("masterspeed",f.data("fsmasterspeed")),f.data("differentissplayed","prepared"));i.find(".active-revslide").removeClass(".active-revslide");f.addClass("active-revslide");f.data("transition")==t&&f.data("transition","random");var c=0,fi=f.data("transition").split(","),ht=f.data("nexttransid")==t?-1:f.data("nexttransid");ht=f.data("randomtransition")=="on"?Math.round(Math.random()*fi.length):ht+1;ht==fi.length&&(ht=0);f.data("nexttransid",ht);l=fi[ht];u.ie&&(l=="boxfade"&&(l="boxslide"),l=="slotfade-vertical"&&(l="slotzoom-vertical"),l=="slotfade-horizontal"&&(l="slotzoom-horizontal"));r(8)&&(l=11);k=0;u.parallax=="scroll"&&u.parallaxFirstGo==t&&(u.parallaxFirstGo=!0,h(i,u),setTimeout(function(){h(i,u)},210),setTimeout(function(){h(i,u)},420));l=="slidehorizontal"&&(l="slideleft",u.leftarrowpressed==1&&(l="slideright"));l=="slidevertical"&&(l="slideup",u.leftarrowpressed==1&&(l="slidedown"));l=="parallaxhorizontal"&&(l="parallaxtoleft",u.leftarrowpressed==1&&(l="parallaxtoright"));l=="parallaxvertical"&&(l="parallaxtotop",u.leftarrowpressed==1&&(l="parallaxtobottom"));var yt=[["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]],et=[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],ot=[16,17,18,19,20,21,22,23,24,25,26,27],c=0,k=1,ci=0,bt=0,tt=[];if(s.data("kenburns")=="on"&&((l=="boxslide"||l==0||l=="boxfade"||l==1||l=="papercut"||l==16)&&(l=11),nt(i,u,!0,!0)),l=="random"&&(l=Math.round(Math.random()*yt.length-1),l>yt.length-1&&(l=yt.length-1)),l=="random-static"&&(l=Math.round(Math.random()*et.length-1),l>et.length-1&&(l=et.length-1),l=et[l]),l=="random-premium"&&(l=Math.round(Math.random()*ot.length-1),l>ot.length-1&&(l=ot.length-1),l=ot[l]),li=[12,13,14,15,16,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],u.isJoomla==!0&&window.MooTools!=t&&li.indexOf(l)!=-1&&(ct=Math.round(Math.random()*(ot.length-2))+1,ct>ot.length-1&&(ct=ot.length-1),ct==0&&(ct=1),l=ot[ct]),hi(),r(8)&&c>15&&c<28&&(l=Math.round(Math.random()*et.length-1),l>et.length-1&&(l=et.length-1),l=et[l],bt=0,hi()),rt=-1,(u.leftarrowpressed==1||u.act>u.next)&&(rt=1),u.leftarrowpressed=0,c>26&&(c=26),c<0&&(c=0),a=300,f.data("masterspeed")!=t&&f.data("masterspeed")>99&&f.data("masterspeed")<u.delay&&(a=f.data("masterspeed")),f.data("masterspeed")!=t&&f.data("masterspeed")>u.delay&&(a=u.delay),tt=yt[ci],i.parent().find(".bullet").each(function(){var t=n(this),i=t.index();t.removeClass("selected");(u.navigationArrows=="withbullet"||u.navigationArrows=="nexttobullets")&&(i=t.index()-1);i==u.next&&t.addClass("selected")}),v=new punchgs.TimelineLite({onComplete:function(){ui(i,u,s,o,f,e,v)}}),v.add(punchgs.TweenLite.set(s.find(".defaultimg"),{opacity:0})),v.pause(),f.data("slotamount")==t||f.data("slotamount")<1?(u.slots=Math.round(Math.random()*12+4),l=="boxslide"?u.slots=Math.round(Math.random()*6+3):l=="flyin"&&(u.slots=Math.round(Math.random()*4+1))):u.slots=f.data("slotamount"),u.rotate=f.data("rotate")==t?0:f.data("rotate")==999?Math.round(Math.random()*360):f.data("rotate"),(!n.support.transition||u.ie||u.ie9)&&(u.rotate=0),u.firststart==1&&(u.firststart=0),a=a+tt[4],(c==4||c==5||c==6)&&u.slots<3&&(u.slots=3),tt[3]!=0&&(u.slots=Math.min(u.slots,tt[3])),c==9&&(u.slots=u.width/20),c==10&&(u.slots=u.height/20),tt[7]!=null&&it(o,u,tt[7],tt[5]),tt[6]!=null&&it(s,u,tt[6],tt[5]),c==0&&(ai=Math.ceil(u.height/u.sloth),lt=0,s.find(".slotslide").each(function(t){var i=n(this);lt=lt+1;lt==ai&&(lt=0);v.add(punchgs.TweenLite.from(i,a/600,{opacity:0,top:0-u.sloth,left:0-u.slotw,rotation:u.rotate,force3D:"auto",ease:punchgs.Power2.easeOut}),(t*15+lt*30)/1500)})),c==1&&(yi=0,s.find(".slotslide").each(function(t){var f=n(this),r=Math.random()*a+300,i=Math.random()*500+200;r+i>vi&&(vi=i+i,yi=t);v.add(punchgs.TweenLite.from(f,r/1e3,{autoAlpha:0,force3D:"auto",rotation:u.rotate,ease:punchgs.Power2.easeInOut}),i/1e3)})),c==2&&(y=new punchgs.TimelineLite,o.find(".slotslide").each(function(){var t=n(this);y.add(punchgs.TweenLite.to(t,a/1e3,{left:u.slotw,force3D:"auto",rotation:0-u.rotate}),0);v.add(y,0)}),s.find(".slotslide").each(function(){var t=n(this);y.add(punchgs.TweenLite.from(t,a/1e3,{left:0-u.slotw,force3D:"auto",rotation:u.rotate}),0);v.add(y,0)})),c==3&&(y=new punchgs.TimelineLite,o.find(".slotslide").each(function(){var t=n(this);y.add(punchgs.TweenLite.to(t,a/1e3,{top:u.sloth,rotation:u.rotate,force3D:"auto",transformPerspective:600}),0);v.add(y,0)}),s.find(".slotslide").each(function(){var t=n(this);y.add(punchgs.TweenLite.from(t,a/1e3,{top:0-u.sloth,rotation:u.rotate,ease:punchgs.Power2.easeOut,force3D:"auto",transformPerspective:600}),0);v.add(y,0)})),c==4||c==5){setTimeout(function(){o.find(".defaultimg").css({opacity:0})},100);var st=a/1e3,fr=st,y=new punchgs.TimelineLite;o.find(".slotslide").each(function(t){var r=n(this),i=t*st/u.slots;c==5&&(i=(u.slots-t-1)*st/u.slots/1.5);y.add(punchgs.TweenLite.to(r,st*3,{transformPerspective:600,force3D:"auto",top:0+u.height,opacity:.5,rotation:u.rotate,ease:punchgs.Power2.easeInOut,delay:i}),0);v.add(y,0)});s.find(".slotslide").each(function(t){var r=n(this),i=t*st/u.slots;c==5&&(i=(u.slots-t-1)*st/u.slots/1.5);y.add(punchgs.TweenLite.from(r,st*3,{top:0-u.height,opacity:.5,rotation:u.rotate,force3D:"auto",ease:punchgs.Power2.easeInOut,delay:i}),0);v.add(y,0)})}if(c==6&&(u.slots<2&&(u.slots=2),u.slots%2&&(u.slots=u.slots+1),y=new punchgs.TimelineLite,setTimeout(function(){o.find(".defaultimg").css({opacity:0})},100),o.find(".slotslide").each(function(t){var r=n(this),i;i=t+1<u.slots/2?(t+2)*90:(2+u.slots-t)*90;y.add(punchgs.TweenLite.to(r,(a+i)/1e3,{top:0+u.height,opacity:1,force3D:"auto",rotation:u.rotate,ease:punchgs.Power2.easeInOut}),0);v.add(y,0)}),s.find(".slotslide").each(function(t){var r=n(this),i;i=t+1<u.slots/2?(t+2)*90:(2+u.slots-t)*90;y.add(punchgs.TweenLite.from(r,(a+i)/1e3,{top:0-u.height,opacity:1,force3D:"auto",rotation:u.rotate,ease:punchgs.Power2.easeInOut}),0);v.add(y,0)})),c==7&&(a=a*2,a>u.delay&&(a=u.delay),y=new punchgs.TimelineLite,setTimeout(function(){o.find(".defaultimg").css({opacity:0})},100),o.find(".slotslide").each(function(){var t=n(this).find("div");y.add(punchgs.TweenLite.to(t,a/1e3,{left:0-u.slotw/2+"px",top:0-u.height/2+"px",width:u.slotw*2+"px",height:u.height*2+"px",opacity:0,rotation:u.rotate,force3D:"auto",ease:punchgs.Power2.easeOut}),0);v.add(y,0)}),s.find(".slotslide").each(function(t){var i=n(this).find("div");y.add(punchgs.TweenLite.fromTo(i,a/1e3,{left:0,top:0,opacity:0,transformPerspective:600},{left:0-t*u.slotw+"px",ease:punchgs.Power2.easeOut,force3D:"auto",top:"0px",width:u.width,height:u.height,opacity:1,rotation:0,delay:.1}),0);v.add(y,0)})),c==8&&(a=a*3,a>u.delay&&(a=u.delay),y=new punchgs.TimelineLite,o.find(".slotslide").each(function(){var t=n(this).find("div");y.add(punchgs.TweenLite.to(t,a/1e3,{left:0-u.width/2+"px",top:0-u.sloth/2+"px",width:u.width*2+"px",height:u.sloth*2+"px",force3D:"auto",opacity:0,rotation:u.rotate}),0);v.add(y,0)}),s.find(".slotslide").each(function(t){var i=n(this).find("div");y.add(punchgs.TweenLite.fromTo(i,a/1e3,{left:0,top:0,opacity:0,force3D:"auto"},{left:"0px",top:0-t*u.sloth+"px",width:s.find(".defaultimg").data("neww")+"px",height:s.find(".defaultimg").data("newh")+"px",opacity:1,rotation:0}),0);v.add(y,0)})),(c==9||c==10)&&(kt=0,s.find(".slotslide").each(function(t){var i=n(this);kt++;v.add(punchgs.TweenLite.fromTo(i,a/1e3,{autoAlpha:0,force3D:"auto",transformPerspective:600},{autoAlpha:1,ease:punchgs.Power2.easeInOut,delay:t/200}),0)})),(c==11||c==26)&&(kt=0,c==26&&(a=0),s.find(".slotslide").each(function(){var t=n(this);v.add(punchgs.TweenLite.from(t,a/1e3,{autoAlpha:0,force3D:"auto",ease:punchgs.Power2.easeInOut}),0)})),c==12||c==13||c==14||c==15){a=a;a>u.delay&&(a=u.delay);setTimeout(function(){punchgs.TweenLite.set(o.find(".defaultimg"),{autoAlpha:0})},100);var d=u.width,b=u.height,ei=s.find(".slotslide"),dt=0,gt=0,g=1,at=1,oi=1,pt=punchgs.Power2.easeInOut,pi=punchgs.Power2.easeInOut,si=a/1e3,ni=si;if((u.fullWidth=="on"||u.fullScreen=="on")&&(d=ei.width(),b=ei.height()),c==12?dt=d:c==15?dt=0-d:c==13?gt=b:c==14&&(gt=0-b),k==1&&(g=0),k==2&&(g=0),k==3&&(pt=punchgs.Power2.easeInOut,pi=punchgs.Power1.easeInOut,si=a/1200),(k==4||k==5)&&(at=.6),k==6&&(at=1.4),(k==5||k==6)&&(oi=1.4,g=0,d=0,b=0,dt=0,gt=0),k==6&&(oi=.6),bi=0,v.add(punchgs.TweenLite.from(ei,si,{left:dt,top:gt,scale:oi,opacity:g,rotation:u.rotate,ease:pi,force3D:"auto"}),0),wt=o.find(".slotslide"),(k==4||k==5)&&(d=0,b=0),k!=1)switch(c){case 12:v.add(punchgs.TweenLite.to(wt,ni,{left:0-d+"px",force3D:"auto",scale:at,opacity:g,rotation:u.rotate,ease:pt}),0);break;case 15:v.add(punchgs.TweenLite.to(wt,ni,{left:d+"px",force3D:"auto",scale:at,opacity:g,rotation:u.rotate,ease:pt}),0);break;case 13:v.add(punchgs.TweenLite.to(wt,ni,{top:0-b+"px",force3D:"auto",scale:at,opacity:g,rotation:u.rotate,ease:pt}),0);break;case 14:v.add(punchgs.TweenLite.to(wt,ni,{top:b+"px",force3D:"auto",scale:at,opacity:g,rotation:u.rotate,ease:pt}),0)}}if(c==16){y=new punchgs.TimelineLite;v.add(punchgs.TweenLite.set(e,{position:"absolute","z-index":20}),0);v.add(punchgs.TweenLite.set(f,{position:"absolute","z-index":15}),0);e.wrapInner('<div class="tp-half-one" style="position:relative; width:100%;height:100%"><\/div>');e.find(".tp-half-one").clone(!0).appendTo(e).addClass("tp-half-two");e.find(".tp-half-two").removeClass("tp-half-one");d=u.width;b=u.height;u.autoHeight=="on"&&(b=i.height());e.find(".tp-half-one .defaultimg").wrap('<div class="tp-papercut" style="width:'+d+"px;height:"+b+'px;"><\/div>');e.find(".tp-half-two .defaultimg").wrap('<div class="tp-papercut" style="width:'+d+"px;height:"+b+'px;"><\/div>');e.find(".tp-half-two .defaultimg").css({position:"absolute",top:"-50%"});e.find(".tp-half-two .tp-caption").wrapAll('<div style="position:absolute;top:-50%;left:0px;"><\/div>');v.add(punchgs.TweenLite.set(e.find(".tp-half-two"),{width:d,height:b,overflow:"hidden",zIndex:15,position:"absolute",top:b/2,left:"0px",transformPerspective:600,transformOrigin:"center bottom"}),0);v.add(punchgs.TweenLite.set(e.find(".tp-half-one"),{width:d,height:b/2,overflow:"visible",zIndex:10,position:"absolute",top:"0px",left:"0px",transformPerspective:600,transformOrigin:"center top"}),0);var er=e.find(".defaultimg"),ki=Math.round(Math.random()*20-10),di=Math.round(Math.random()*20-10),gi=Math.round(Math.random()*20-10),nr=Math.random()*.4-.2,tr=Math.random()*.4-.2,ir=Math.random()*1+1,rr=Math.random()*1+1,ur=Math.random()*.3+.3;v.add(punchgs.TweenLite.set(e.find(".tp-half-one"),{overflow:"hidden"}),0);v.add(punchgs.TweenLite.fromTo(e.find(".tp-half-one"),a/800,{width:d,height:b/2,position:"absolute",top:"0px",left:"0px",force3D:"auto",transformOrigin:"center top"},{scale:ir,rotation:ki,y:0-b-b/4,autoAlpha:0,ease:punchgs.Power2.easeInOut}),0);v.add(punchgs.TweenLite.fromTo(e.find(".tp-half-two"),a/800,{width:d,height:b,overflow:"hidden",position:"absolute",top:b/2,left:"0px",force3D:"auto",transformOrigin:"center bottom"},{scale:rr,rotation:di,y:b+b/4,ease:punchgs.Power2.easeInOut,autoAlpha:0,onComplete:function(){punchgs.TweenLite.set(e,{position:"absolute","z-index":15});punchgs.TweenLite.set(f,{position:"absolute","z-index":20});e.find(".tp-half-one").length>0&&(e.find(".tp-half-one .defaultimg").unwrap(),e.find(".tp-half-one .slotholder").unwrap());e.find(".tp-half-two").remove()}}),0);y.add(punchgs.TweenLite.set(s.find(".defaultimg"),{autoAlpha:1}),0);e.html()!=null&&v.add(punchgs.TweenLite.fromTo(f,(a-200)/1e3,{scale:ur,x:u.width/4*nr,y:b/4*tr,rotation:gi,force3D:"auto",transformOrigin:"center center",ease:punchgs.Power2.easeOut},{autoAlpha:1,scale:1,x:0,y:0,rotation:0}),0);v.add(y,0)}if(c==17&&s.find(".slotslide").each(function(t){var i=n(this);v.add(punchgs.TweenLite.fromTo(i,a/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:t*.06}),0)}),c==18&&s.find(".slotslide").each(function(t){var i=n(this);v.add(punchgs.TweenLite.fromTo(i,a/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:t*.06}),0)}),c==19||c==22){y=new punchgs.TimelineLite;v.add(punchgs.TweenLite.set(e,{zIndex:20}),0);v.add(punchgs.TweenLite.set(f,{zIndex:20}),0);setTimeout(function(){o.find(".defaultimg").css({opacity:0})},100);var ti=f.css("z-index"),ii=e.css("z-index"),w=90,g=1,p="center center ";rt==1&&(w=-90);c==19?(p=p+"-"+u.height/2,g=0):p=p+u.height/2;punchgs.TweenLite.set(i,{transformStyle:"flat",backfaceVisibility:"hidden",transformPerspective:600});s.find(".slotslide").each(function(t){var i=n(this);y.add(punchgs.TweenLite.fromTo(i,a/1e3,{transformStyle:"flat",backfaceVisibility:"hidden",left:0,rotationY:u.rotate,z:10,top:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:p,rotationX:w},{left:0,rotationY:0,top:0,z:0,scale:1,force3D:"auto",rotationX:0,delay:t/20,ease:punchgs.Power2.easeInOut}),0);y.add(punchgs.TweenLite.to(i,.1,{autoAlpha:1,delay:t/20}),0);v.add(y)});o.find(".slotslide").each(function(t){var r=n(this),i=-90;rt==1&&(i=90);y.add(punchgs.TweenLite.fromTo(r,a/1e3,{transformStyle:"flat",backfaceVisibility:"hidden",autoAlpha:1,rotationY:0,top:0,z:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:p,rotationX:0},{autoAlpha:1,rotationY:u.rotate,top:0,z:10,scale:1,rotationX:i,delay:t/20,force3D:"auto",ease:punchgs.Power2.easeInOut}),0);v.add(y)})}if(c==20){if(setTimeout(function(){o.find(".defaultimg").css({opacity:0})},100),ti=f.css("z-index"),ii=e.css("z-index"),rt==1)var vt=-u.width,w=70,p="left center -"+u.height/2;else var vt=u.width,w=-70,p="right center -"+u.height/2;s.find(".slotslide").each(function(t){var i=n(this);v.add(punchgs.TweenLite.fromTo(i,a/1500,{left:vt,rotationX:40,z:-600,opacity:g,top:0,force3D:"auto",transformPerspective:600,transformOrigin:p,rotationY:w},{left:0,delay:t/20,ease:punchgs.Power2.easeInOut}),0);v.add(punchgs.TweenLite.fromTo(i,a/1e3,{rotationX:40,z:-600,opacity:g,top:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:p,rotationY:w},{rotationX:0,opacity:1,top:0,z:0,scale:1,rotationY:0,delay:t/20,ease:punchgs.Power2.easeInOut}),0);v.add(punchgs.TweenLite.to(i,.1,{opacity:1,force3D:"auto",delay:t/20+a/2e3}),0)});o.find(".slotslide").each(function(t){var i=n(this);if(rt!=1)var r=-u.width,f=70,e="left center -"+u.height/2;else var r=u.width,f=-70,e="right center -"+u.height/2;v.add(punchgs.TweenLite.fromTo(i,a/1e3,{opacity:1,rotationX:0,top:0,z:0,scale:1,left:0,force3D:"auto",transformPerspective:600,transformOrigin:e,rotationY:0},{opacity:1,rotationX:40,top:0,z:-600,left:r,force3D:"auto",scale:.8,rotationY:f,delay:t/20,ease:punchgs.Power2.easeInOut}),0);v.add(punchgs.TweenLite.to(i,.1,{force3D:"auto",opacity:0,delay:t/20+(a/1e3-a/1e4)}),0)})}if(c==21||c==25){setTimeout(function(){o.find(".defaultimg").css({opacity:0})},100);var ti=f.css("z-index"),ii=e.css("z-index"),w=90,vt=-u.width,ut=-w;rt==1?c==25?(p="center top 0",w=u.rotate):(p="left center 0",ut=u.rotate):(vt=u.width,w=-90,c==25?(p="center bottom 0",ut=-w,w=u.rotate):(p="right center 0",ut=u.rotate));s.find(".slotslide").each(function(){var t=n(this);v.add(punchgs.TweenLite.fromTo(t,a/1e3,{left:0,transformStyle:"flat",rotationX:ut,z:0,autoAlpha:0,top:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:p,rotationY:w},{left:0,rotationX:0,top:0,z:0,autoAlpha:1,scale:1,rotationY:0,force3D:"auto",ease:punchgs.Power3.easeInOut}),0)});rt!=1?(vt=-u.width,w=90,c==25?(p="center top 0",ut=-w,w=u.rotate):(p="left center 0",ut=u.rotate)):(vt=u.width,w=-90,c==25?(p="center bottom 0",ut=-w,w=u.rotate):(p="right center 0",ut=u.rotate));o.find(".slotslide").each(function(){var t=n(this);v.add(punchgs.TweenLite.fromTo(t,a/1e3,{left:0,transformStyle:"flat",rotationX:0,z:0,autoAlpha:1,top:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:p,rotationY:0},{left:0,rotationX:ut,top:0,z:0,autoAlpha:1,force3D:"auto",scale:1,rotationY:w,ease:punchgs.Power1.easeInOut}),0)})}if(c==23||c==24){setTimeout(function(){o.find(".defaultimg").css({opacity:0})},100);var ti=f.css("z-index"),ii=e.css("z-index"),w=-90,g=1,wi=0;rt==1&&(w=90);c==23?(p="center center -"+u.width/2,g=0):p="center center "+u.width/2;punchgs.TweenLite.set(i,{transformStyle:"preserve-3d",backfaceVisibility:"hidden",perspective:2500});s.find(".slotslide").each(function(t){var i=n(this);v.add(punchgs.TweenLite.fromTo(i,a/1e3,{left:wi,rotationX:u.rotate,force3D:"auto",opacity:g,top:0,scale:1,transformPerspective:600,transformOrigin:p,rotationY:w},{left:0,rotationX:0,autoAlpha:1,top:0,z:0,scale:1,rotationY:0,delay:t/10,ease:punchgs.Power2.easeInOut}),0)});w=90;rt==1&&(w=-90);o.find(".slotslide").each(function(t){var i=n(this);v.add(punchgs.TweenLite.fromTo(i,a/1e3,{left:0,autoAlpha:1,rotationX:0,top:0,z:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:p,rotationY:0},{left:wi,autoAlpha:1,rotationX:u.rotate,top:0,scale:1,rotationY:w,delay:t/10,ease:punchgs.Power2.easeInOut}),0)})}v.pause();ft(f,u,null,v);punchgs.TweenLite.to(f,.001,{autoAlpha:1});ri={};ri.slideIndex=u.next+1;ri.slide=f;i.trigger("revolution.slide.onchange",ri);setTimeout(function(){i.trigger("revolution.slide.onafterswap")},a);i.trigger("revolution.slide.onvideostop")},ui=function(n,t,i,r,u,f,e){punchgs.TweenLite.to(i.find(".defaultimg"),.001,{autoAlpha:1,onComplete:function(){p(n,t,u)}});u.index()!=f.index()&&punchgs.TweenLite.to(f,.2,{autoAlpha:0,onComplete:function(){p(n,t,f)}});t.act=t.next;t.navigationType=="thumb"&&lt(n);i.data("kenburns")=="on"&&nt(n,t);n.find(".current-sr-slide-visible").removeClass("current-sr-slide-visible");u.addClass("current-sr-slide-visible");(t.parallax=="scroll"||t.parallax=="scroll+mouse"||t.parallax=="mouse+scroll")&&h(n,t);e.clear()},fi=function(t){var e=t.target.getVideoEmbedCode(),f=n("#"+e.split('id="')[1].split('"')[0]),i=f.closest(".tp-simpleresponsive"),o=f.parent().data("player"),u,r;t.data==YT.PlayerState.PLAYING?(u=i.find(".tp-bannertimer"),r=u.data("opt"),f.closest(".tp-caption").data("volume")=="mute"&&o.mute(),r.videoplaying=!0,i.trigger("stoptimer"),i.trigger("revolution.slide.onvideoplay")):(u=i.find(".tp-bannertimer"),r=u.data("opt"),t.data!=-1&&t.data!=3&&(r.videoplaying=!1,i.trigger("starttimer"),i.trigger("revolution.slide.onvideostop")),t.data==0&&r.nextslideatend==!0?r.container.revnext():(r.videoplaying=!1,i.trigger("starttimer"),i.trigger("revolution.slide.onvideostop")))},u=function(n,t,i){n.addEventListener?n.addEventListener(t,i,!1):n.attachEvent(t,i,!1)},ei=function(t,i){var u=$f(t),f=n("#"+t),r=f.closest(".tp-simpleresponsive"),e=f.closest(".tp-caption");setTimeout(function(){u.addEvent("ready",function(){i&&u.api("play");u.addEvent("play",function(){var n=r.find(".tp-bannertimer"),t=n.data("opt");t.videoplaying=!0;r.trigger("stoptimer");e.data("volume")=="mute"&&u.api("setVolume","0")});u.addEvent("finish",function(){var t=r.find(".tp-bannertimer"),n=t.data("opt");n.videoplaying=!1;r.trigger("starttimer");r.trigger("revolution.slide.onvideoplay");n.nextslideatend==!0&&n.container.revnext()});u.addEvent("pause",function(){var n=r.find(".tp-bannertimer"),t=n.data("opt");t.videoplaying=!1;r.trigger("starttimer");r.trigger("revolution.slide.onvideostop")});e.find(".tp-thumb-image").click(function(){punchgs.TweenLite.to(n(this),.3,{autoAlpha:0,force3D:"auto",ease:punchgs.Power3.easeInOut});u.api("play")})})},150)},ut=function(n,i){var u=i.width(),f=i.height(),r=n.data("mediaAspect"),e,o;r==t&&(r=1);e=u/f;n.css({position:"absolute"});o=n.find("video");e<r?punchgs.TweenLite.to(n,.0001,{width:f*r,force3D:"auto",top:0,left:0-(f*r-u)/2,height:f}):punchgs.TweenLite.to(n,.0001,{width:u,force3D:"auto",top:0-(u/r-f)/2,left:0,height:u/r})},a=function(){var n={};return n.x=0,n.y=0,n.rotationX=0,n.rotationY=0,n.rotationZ=0,n.scale=1,n.scaleX=1,n.scaleY=1,n.skewX=0,n.skewY=0,n.opacity=0,n.transformOrigin="center, center",n.transformPerspective=400,n.rotation=0,n},k=function(t,i){var r=i.split(";");return n.each(r,function(n,i){i=i.split(":");var r=i[0],u=i[1];r=="rotationX"&&(t.rotationX=parseInt(u,0));r=="rotationY"&&(t.rotationY=parseInt(u,0));r=="rotationZ"&&(t.rotationZ=parseInt(u,0));r=="rotationZ"&&(t.rotation=parseInt(u,0));r=="scaleX"&&(t.scaleX=parseFloat(u));r=="scaleY"&&(t.scaleY=parseFloat(u));r=="opacity"&&(t.opacity=parseFloat(u));r=="skewX"&&(t.skewX=parseInt(u,0));r=="skewY"&&(t.skewY=parseInt(u,0));r=="x"&&(t.x=parseInt(u,0));r=="y"&&(t.y=parseInt(u,0));r=="z"&&(t.z=parseInt(u,0));r=="transformOrigin"&&(t.transformOrigin=u.toString());r=="transformPerspective"&&(t.transformPerspective=parseInt(u,0))}),t},oi=function(t){var r=t.split("animation:"),i={},u;return i.animation=k(a(),r[1]),u=r[0].split(";"),n.each(u,function(n,t){t=t.split(":");var r=t[0],u=t[1];r=="typ"&&(i.typ=u);r=="speed"&&(i.speed=parseInt(u,0)/1e3);r=="start"&&(i.start=parseInt(u,0)/1e3);r=="elementdelay"&&(i.elementdelay=parseFloat(u));r=="ease"&&(i.ease=u)}),i},ft=function(f,e,o,s){function l(){}function p(){}var y;f.data("ctl")==t&&f.data("ctl",new punchgs.TimelineLite);var w=f.data("ctl"),c=0,h=0,v=f.find(".tp-caption"),b=e.container.find(".tp-static-layers").find(".tp-caption");w.pause();n.each(b,function(n,t){v.push(t)});v.each(function(f){var bt=o,ht=-1,s=n(this),at,ct,tt,yr,ui,it,ni,ti,ii,wt,yt,di,w,gi,nr,tr,lt,ri,er,li,ai,or,sr,rt,ft,y,nt,b,vi,hr,f,cr,yi,br,kt,ar,vr;if(s.hasClass("tp-static-layer")&&(at=s.data("startslide"),ct=s.data("endslide"),(at==-1||at=="-1")&&s.data("startslide",0),(ct==-1||ct=="-1")&&s.data("endslide",e.slideamount),at==0&&ct==e.slideamount-1&&s.data("endslide",e.slideamount+1),at=s.data("startslide"),ct=s.data("endslide"),s.hasClass("tp-is-shown")?ht=ct==e.next||at>e.next||ct<e.next?2:0:at<=e.next&&ct>=e.next||at==e.next||ct==e.next?(s.addClass("tp-is-shown"),ht=1):ht=0),c=e.width/2-e.startwidth*e.bw/2,tt=e.bw,yr=e.bh,e.fullScreen=="on"&&(h=e.height/2-e.startheight*e.bh/2),(e.autoHeight=="on"||e.minHeight!=t&&e.minHeight>0)&&(h=e.container.height()/2-e.startheight*e.bh/2),h<0&&(h=0),ui=0,e.width<e.hideCaptionAtLimit&&s.data("captionhidden")=="on"?(s.addClass("tp-hidden-caption"),ui=1):e.width<e.hideAllCaptionAtLimit||e.width<e.hideAllCaptionAtLilmit?(s.addClass("tp-hidden-caption"),ui=1):s.removeClass("tp-hidden-caption"),ui==0){if(s.data("linktoslide")==t||s.hasClass("hasclicklistener")||(s.addClass("hasclicklistener"),s.css({cursor:"pointer"}),s.data("linktoslide")!="no"&&s.click(function(){var i=n(this),t=i.data("linktoslide");t!="next"&&t!="prev"?(e.container.data("showus",t),e.container.parent().find(".tp-rightarrow").click()):t=="next"?e.container.parent().find(".tp-rightarrow").click():t=="prev"&&e.container.parent().find(".tp-leftarrow").click()})),c<0&&(c=0),s.hasClass("tp-videolayer")||s.find("iframe").length>0||s.find("video").length>0){var vt="iframe"+Math.round(Math.random()*1e5+1),dt=s.data("videowidth"),gt=s.data("videoheight"),pt=s.data("videoattributes"),pi=s.data("ytid"),wi=s.data("vimeoid"),pr=s.data("videpreload"),bi=s.data("videomp4"),ki=s.data("videowebm"),lr=s.data("videoogv"),si=s.data("videocontrols"),ci="http",wr=s.data("videoloop")=="loop"?"loop":s.data("videoloop")=="loopandnoslidestop"?"loop":"";s.data("thumbimage")!=t&&s.data("videoposter")==t&&s.data("videoposter",s.data("thumbimage"));pi!=t&&String(pi).length>1&&s.find("iframe").length==0&&(ci="https",si=="none"&&(pt=pt.replace("controls=1","controls=0"),pt.toLowerCase().indexOf("controls")==-1&&(pt=pt+"&controls=0")),s.append('<iframe style="visible:hidden" src="'+ci+"://www.youtube.com/embed/"+pi+"?"+pt+'" width="'+dt+'" height="'+gt+'" style="width:'+dt+"px;height:"+gt+'px"><\/iframe>'));wi!=t&&String(wi).length>1&&s.find("iframe").length==0&&(location.protocol==="https:"&&(ci="https"),s.append('<iframe style="visible:hidden" src="'+ci+"://player.vimeo.com/video/"+wi+"?"+pt+'" width="'+dt+'" height="'+gt+'" style="width:'+dt+"px;height:"+gt+'px"><\/iframe>'));(bi!=t||ki!=t)&&s.find("video").length==0&&(si!="controls"&&(si=""),it='<video style="visible:hidden" class="" '+wr+' preload="'+pr+'" width="'+dt+'" height="'+gt+'"',s.data("videoposter")!=t&&s.data("videoposter")!=t&&(it=it+'poster="'+s.data("videoposter")+'">'),ki!=t&&et().toLowerCase()=="firefox"&&(it=it+'<source src="'+ki+'" type="video/webm" />'),bi!=t&&(it=it+'<source src="'+bi+'" type="video/mp4" />'),lr!=t&&(it=it+'<source src="'+lr+'" type="video/ogg" />'),it=it+"<\/video>",s.append(it),si=="controls"&&s.append('<div class="tp-video-controls"><div class="tp-video-button-wrap"><button type="button" class="tp-video-button tp-vid-play-pause">Play<\/button><\/div><div class="tp-video-seek-bar-wrap"><input  type="range" class="tp-seek-bar" value="0"><\/div><div class="tp-video-button-wrap"><button  type="button" class="tp-video-button tp-vid-mute">Mute<\/button><\/div><div class="tp-video-vol-bar-wrap"><input  type="range" class="tp-volume-bar" min="0" max="1" step="0.1" value="1"><\/div><div class="tp-video-button-wrap"><button  type="button" class="tp-video-button tp-vid-full-screen">Full-Screen<\/button><\/div><\/div>'));ni=!1;(s.data("autoplayonlyfirsttime")==!0||s.data("autoplayonlyfirsttime")=="true"||s.data("autoplay")==!0)&&(s.data("autoplay",!0),ni=!0);s.find("iframe").each(function(){var r=n(this),l,a,u,v;if(punchgs.TweenLite.to(r,.1,{autoAlpha:1,zIndex:0,transformStyle:"preserve-3d",z:0,rotationX:0,force3D:"auto"}),i()&&(l=r.attr("src"),r.attr("src",""),r.attr("src",l)),e.nextslideatend=s.data("nextslideatend"),s.data("videoposter")!=t&&s.data("videoposter").length>2&&s.data("autoplay")!=!0&&!bt&&(s.find(".tp-thumb-image").length==0?s.append('<div class="tp-thumb-image" style="cursor:pointer; position:absolute;top:0px;left:0px;width:100%;height:100%;background-image:url('+s.data("videoposter")+'); background-size:cover"><\/div>'):punchgs.TweenLite.set(s.find(".tp-thumb-image"),{autoAlpha:1})),r.attr("src").toLowerCase().indexOf("youtube")>=0)if(r.hasClass("HasListener"))o||(u=s.data("player"),s.data("forcerewind")!="on"||i()||u.seekTo(0),(!i()&&s.data("autoplay")==!0||ni)&&s.data("timerplay",setTimeout(function(){u.playVideo()},s.data("start"))));else try{r.attr("id",vt);a=setInterval(function(){YT!=t&&typeof YT.Player!=t&&typeof YT.Player!="undefined"&&(u=new YT.Player(vt,{events:{onStateChange:fi,onReady:function(r){var o=r.target.getVideoEmbedCode(),s=n("#"+o.split('id="')[1].split('"')[0]),f=s.closest(".tp-caption"),e=f.data("videorate"),h=f.data("videostart");e!=t&&r.target.setPlaybackRate(parseFloat(e));(!i()&&f.data("autoplay")==!0||ni)&&f.data("timerplay",setTimeout(function(){r.target.playVideo()},f.data("start")));f.find(".tp-thumb-image").click(function(){punchgs.TweenLite.to(n(this),.3,{autoAlpha:0,force3D:"auto",ease:punchgs.Power3.easeInOut});i()||u.playVideo()})}}}));r.addClass("HasListener");s.data("player",u);clearInterval(a)},100)}catch(k){}else if(r.attr("src").toLowerCase().indexOf("vimeo")>=0)if(r.hasClass("HasListener")){if(!o&&!i()&&(s.data("autoplay")==!0||s.data("forcerewind")=="on")){var r=s.find("iframe"),b=r.attr("id"),y=$f(b);s.data("forcerewind")=="on"&&y.api("seekTo",0);s.data("timerplay",setTimeout(function(){s.data("autoplay")==!0&&y.api("play")},s.data("start")))}}else{r.addClass("HasListener");r.attr("id",vt);for(var f=r.attr("src"),h={},p=f,w=/([^&=]+)=([^&]*)/g,c;c=w.exec(p);)h[decodeURIComponent(c[1])]=decodeURIComponent(c[2]);f=h.player_id!=t?f.replace(h.player_id,vt):f+"&player_id="+vt;try{f=f.replace("api=0","api=1")}catch(k){}f=f+"&api=1";r.attr("src",f);u=s.find("iframe")[0];v=setInterval(function(){$f!=t&&typeof $f(vt).api!=t&&typeof $f(vt).api!="undefined"&&($f(u).addEvent("ready",function(){ei(vt,ni)}),clearInterval(v))},100)}});(i()&&s.data("disablevideoonmobile")==1||r(8))&&s.find("video").remove();s.find("video").length>0&&s.find("video").each(function(){var i=this,f=n(this),r;f.parent().hasClass("html5vid")||f.wrap('<div class="html5vid" style="position:relative;top:0px;left:0px;width:auto;height:auto"><\/div>');r=f.parent();u(i,"loadedmetadata",function(n){n.data("metaloaded",1)}(r));clearInterval(r.data("interval"));r.data("interval",setInterval(function(){var h,c;if(r.data("metaloaded")==1||i.duration!=NaN){if(clearInterval(r.data("interval")),!r.hasClass("HasListener")){r.addClass("HasListener");s.data("dottedoverlay")!="none"&&s.data("dottedoverlay")!=t&&s.find(".tp-dottedoverlay").length!=1&&r.append('<div class="tp-dottedoverlay '+s.data("dottedoverlay")+'"><\/div>');f.attr("control")==t&&(r.find(".tp-video-play-button").length==0&&r.append('<div class="tp-video-play-button"><i class="revicon-right-dir"><\/i><div class="tp-revstop"><\/div><\/div>'),r.find("video, .tp-poster, .tp-video-play-button").click(function(){r.hasClass("videoisplaying")?i.pause():i.play()}));(s.data("forcecover")==1||s.hasClass("fullscreenvideo"))&&(s.data("forcecover")==1&&(ut(r,e.container),r.addClass("fullcoveredvideo"),s.addClass("fullcoveredvideo")),r.css({width:"100%",height:"100%"}));var l=s.find(".tp-vid-play-pause")[0],o=s.find(".tp-vid-mute")[0],v=s.find(".tp-vid-full-screen")[0],n=s.find(".tp-seek-bar")[0],a=s.find(".tp-volume-bar")[0];l!=t&&(u(l,"click",function(){i.paused==!0?i.play():i.pause()}),u(o,"click",function(){i.muted==!1?(i.muted=!0,o.innerHTML="Unmute"):(i.muted=!1,o.innerHTML="Mute")}),u(v,"click",function(){i.requestFullscreen?i.requestFullscreen():i.mozRequestFullScreen?i.mozRequestFullScreen():i.webkitRequestFullscreen&&i.webkitRequestFullscreen()}),u(n,"change",function(){var t=i.duration*(n.value/100);i.currentTime=t}),u(i,"timeupdate",function(){var t=100/i.duration*i.currentTime;n.value=t}),u(n,"mousedown",function(){i.pause()}),u(n,"mouseup",function(){i.play()}),u(a,"change",function(){i.volume=a.value}));u(i,"play",function(){s.data("volume")=="mute"&&(i.muted=!0);r.addClass("videoisplaying");s.data("videoloop")=="loopandnoslidestop"?(e.videoplaying=!1,e.container.trigger("starttimer"),e.container.trigger("revolution.slide.onvideostop")):(e.videoplaying=!0,e.container.trigger("stoptimer"),e.container.trigger("revolution.slide.onvideoplay"));var n=s.find(".tp-vid-play-pause")[0],u=s.find(".tp-vid-mute")[0];n!=t&&(n.innerHTML="Pause");u!=t&&i.muted&&(u.innerHTML="Unmute")});u(i,"pause",function(){r.removeClass("videoisplaying");e.videoplaying=!1;e.container.trigger("starttimer");e.container.trigger("revolution.slide.onvideostop");var n=s.find(".tp-vid-play-pause")[0];n!=t&&(n.innerHTML="Play")});u(i,"ended",function(){r.removeClass("videoisplaying");e.videoplaying=!1;e.container.trigger("starttimer");e.container.trigger("revolution.slide.onvideostop");e.nextslideatend==!0&&e.container.revnext()})}if(h=!1,(s.data("autoplayonlyfirsttime")==!0||s.data("autoplayonlyfirsttime")=="true")&&(h=!0),c=16/9,s.data("aspectratio")=="4:3"&&(c=4/3),r.data("mediaAspect",c),r.closest(".tp-caption").data("forcecover")==1&&(ut(r,e.container),r.addClass("fullcoveredvideo")),f.css({display:"block"}),e.nextslideatend=s.data("nextslideatend"),(s.data("autoplay")==!0||h==!0)&&(s.data("videoloop")=="loopandnoslidestop"?(e.videoplaying=!1,e.container.trigger("starttimer"),e.container.trigger("revolution.slide.onvideostop")):(e.videoplaying=!0,e.container.trigger("stoptimer"),e.container.trigger("revolution.slide.onvideoplay")),s.data("forcerewind")!="on"||r.hasClass("videoisplaying")||i.currentTime>0&&(i.currentTime=0),s.data("volume")=="mute"&&(i.muted=!0),r.data("timerplay",setTimeout(function(){s.data("forcerewind")!="on"||r.hasClass("videoisplaying")||i.currentTime>0&&(i.currentTime=0);s.data("volume")=="mute"&&(i.muted=!0);i.play()},10+s.data("start")))),r.data("ww")==t&&r.data("ww",f.attr("width")),r.data("hh")==t&&r.data("hh",f.attr("height")),!s.hasClass("fullscreenvideo")&&s.data("forcecover")==1)try{r.width(r.data("ww")*e.bw);r.height(r.data("hh")*e.bh)}catch(y){}clearInterval(r.data("interval"))}}),100)});s.data("autoplay")==!0&&(setTimeout(function(){s.data("videoloop")!="loopandnoslidestop"&&(e.videoplaying=!0,e.container.trigger("stoptimer"))},200),s.data("videoloop")!="loopandnoslidestop"&&(e.videoplaying=!0,e.container.trigger("stoptimer")),(s.data("autoplayonlyfirsttime")==!0||s.data("autoplayonlyfirsttime")=="true")&&(s.data("autoplay",!1),s.data("autoplayonlyfirsttime",!1)))}if(ti=0,ii=0,s.find("img").length>0)w=s.find("img"),w.width()==0&&w.css({width:"auto"}),w.height()==0&&w.css({height:"auto"}),w.data("ww")==t&&w.width()>0&&w.data("ww",w.width()),w.data("hh")==t&&w.height()>0&&w.data("hh",w.height()),wt=w.data("ww"),yt=w.data("hh"),wt==t&&(wt=0),yt==t&&(yt=0),w.width(wt*e.bw),w.height(yt*e.bh),ti=w.width(),ii=w.height();else if(s.find("iframe").length>0||s.find("video").length>0){di=!1;w=s.find("iframe");w.length==0&&(w=s.find("video"),di=!0);w.css({display:"block"});s.data("ww")==t&&s.data("ww",w.width());s.data("hh")==t&&s.data("hh",w.height());var wt=s.data("ww"),yt=s.data("hh"),v=s;v.data("fsize")==t&&v.data("fsize",parseInt(v.css("font-size"),0)||0);v.data("pt")==t&&v.data("pt",parseInt(v.css("paddingTop"),0)||0);v.data("pb")==t&&v.data("pb",parseInt(v.css("paddingBottom"),0)||0);v.data("pl")==t&&v.data("pl",parseInt(v.css("paddingLeft"),0)||0);v.data("pr")==t&&v.data("pr",parseInt(v.css("paddingRight"),0)||0);v.data("mt")==t&&v.data("mt",parseInt(v.css("marginTop"),0)||0);v.data("mb")==t&&v.data("mb",parseInt(v.css("marginBottom"),0)||0);v.data("ml")==t&&v.data("ml",parseInt(v.css("marginLeft"),0)||0);v.data("mr")==t&&v.data("mr",parseInt(v.css("marginRight"),0)||0);v.data("bt")==t&&v.data("bt",parseInt(v.css("borderTop"),0)||0);v.data("bb")==t&&v.data("bb",parseInt(v.css("borderBottom"),0)||0);v.data("bl")==t&&v.data("bl",parseInt(v.css("borderLeft"),0)||0);v.data("br")==t&&v.data("br",parseInt(v.css("borderRight"),0)||0);v.data("lh")==t&&v.data("lh",parseInt(v.css("lineHeight"),0)||0);v.data("lh")=="auto"&&v.data("lh",v.data("fsize")+4);gi=e.width;nr=e.height;gi>e.startwidth&&(gi=e.startwidth);nr>e.startheight&&(nr=e.startheight);s.hasClass("fullscreenvideo")?(c=0,h=0,s.data("x",0),s.data("y",0),tr=e.height,e.autoHeight=="on"&&(tr=e.container.height()),s.css({width:e.width,height:tr})):s.css({"font-size":v.data("fsize")*e.bw+"px","padding-top":v.data("pt")*e.bh+"px","padding-bottom":v.data("pb")*e.bh+"px","padding-left":v.data("pl")*e.bw+"px","padding-right":v.data("pr")*e.bw+"px","margin-top":v.data("mt")*e.bh+"px","margin-bottom":v.data("mb")*e.bh+"px","margin-left":v.data("ml")*e.bw+"px","margin-right":v.data("mr")*e.bw+"px","border-top":v.data("bt")*e.bh+"px","border-bottom":v.data("bb")*e.bh+"px","border-left":v.data("bl")*e.bw+"px","border-right":v.data("br")*e.bw+"px","line-height":v.data("lh")*e.bh+"px",height:yt*e.bh+"px"});di==!1?(w.width(wt*e.bw),w.height(yt*e.bh)):s.data("forcecover")==1||s.hasClass("fullscreenvideo")||(w.width(wt*e.bw),w.height(yt*e.bh));ti=w.width();ii=w.height()}else s.find(".tp-resizeme, .tp-resizeme *").each(function(){d(n(this),e)}),s.hasClass("tp-resizeme")&&s.find("*").each(function(){d(n(this),e)}),d(s,e),ii=s.outerHeight(!0),ti=s.outerWidth(!0),lt=s.outerHeight(),ri=s.css("backgroundColor"),s.find(".frontcorner").css({borderWidth:lt+"px",left:0-lt+"px",borderRight:"0px solid transparent",borderTopColor:ri}),s.find(".frontcornertop").css({borderWidth:lt+"px",left:0-lt+"px",borderRight:"0px solid transparent",borderBottomColor:ri}),s.find(".backcorner").css({borderWidth:lt+"px",right:0-lt+"px",borderLeft:"0px solid transparent",borderBottomColor:ri}),s.find(".backcornertop").css({borderWidth:lt+"px",right:0-lt+"px",borderLeft:"0px solid transparent",borderTopColor:ri});e.fullScreenAlignForce=="on"&&(c=0,h=0);s.data("voffset")==t&&s.data("voffset",0);s.data("hoffset")==t&&s.data("hoffset",0);var ir=s.data("voffset")*tt,rr=s.data("hoffset")*tt,ur=e.startwidth*tt,fr=e.startheight*tt;if(e.fullScreenAlignForce=="on"&&(ur=e.container.width(),fr=e.container.height()),(s.data("x")=="center"||s.data("xcenter")=="center")&&(s.data("xcenter","center"),s.data("x",ur/2-s.outerWidth(!0)/2+rr)),(s.data("x")=="left"||s.data("xleft")=="left")&&(s.data("xleft","left"),s.data("x",0/tt+rr)),(s.data("x")=="right"||s.data("xright")=="right")&&(s.data("xright","right"),s.data("x",(ur-s.outerWidth(!0)+rr)/tt)),(s.data("y")=="center"||s.data("ycenter")=="center")&&(s.data("ycenter","center"),s.data("y",fr/2-s.outerHeight(!0)/2+ir)),(s.data("y")=="top"||s.data("ytop")=="top")&&(s.data("ytop","top"),s.data("y",0/e.bh+ir)),(s.data("y")=="bottom"||s.data("ybottom")=="bottom")&&(s.data("ybottom","bottom"),s.data("y",(fr-s.outerHeight(!0)+ir)/tt)),s.data("start")==t&&s.data("start",1e3),er=s.data("easing"),er==t&&(er="punchgs.Power1.easeOut"),li=s.data("start")/1e3,ai=s.data("speed")/1e3,or=s.data("x")=="center"||s.data("xcenter")=="center"?s.data("x")+c:tt*s.data("x")+c,sr=s.data("y")=="center"||s.data("ycenter")=="center"?s.data("y")+h:e.bh*s.data("y")+h,punchgs.TweenLite.set(s,{top:sr,left:or,overwrite:"auto"}),ht==0&&(bt=!0),s.data("timeline")==t||bt||(ht!=2&&s.data("timeline").gotoAndPlay(0),bt=!0),!bt){if(s.data("timeline")!=t,rt=new punchgs.TimelineLite({smoothChildTiming:!0,onStart:p}),rt.pause(),e.fullScreenAlignForce=="on",ft=s,s.data("mySplitText")!=t&&s.data("mySplitText").revert(),(s.data("splitin")=="chars"||s.data("splitin")=="words"||s.data("splitin")=="lines"||s.data("splitout")=="chars"||s.data("splitout")=="words"||s.data("splitout")=="lines")&&(s.find("a").length>0?s.data("mySplitText",new punchgs.SplitText(s.find("a"),{type:"lines,words,chars",charsClass:"tp-splitted",wordsClass:"tp-splitted",linesClass:"tp-splitted"})):s.find(".tp-layer-inner-rotation").length>0?s.data("mySplitText",new punchgs.SplitText(s.find(".tp-layer-inner-rotation"),{type:"lines,words,chars",charsClass:"tp-splitted",wordsClass:"tp-splitted",linesClass:"tp-splitted"})):s.data("mySplitText",new punchgs.SplitText(s,{type:"lines,words,chars",charsClass:"tp-splitted",wordsClass:"tp-splitted",linesClass:"tp-splitted"})),s.addClass("splitted")),s.data("splitin")=="chars"&&(ft=s.data("mySplitText").chars),s.data("splitin")=="words"&&(ft=s.data("mySplitText").words),s.data("splitin")=="lines"&&(ft=s.data("mySplitText").lines),y=a(),nt=a(),s.data("repeat")!=t&&(repeatV=s.data("repeat")),s.data("yoyo")!=t&&(yoyoV=s.data("yoyo")),s.data("repeatdelay")!=t&&(repeatdelayV=s.data("repeatdelay")),b=s.attr("class"),b.match("customin")?y=k(y,s.data("customin")):b.match("randomrotate")?(y.scale=Math.random()*3+1,y.rotation=Math.round(Math.random()*200-100),y.x=Math.round(Math.random()*200-100),y.y=Math.round(Math.random()*200-100)):b.match("lfr")||b.match("skewfromright")?y.x=15+e.width:b.match("lfl")||b.match("skewfromleft")?y.x=-15-ti:b.match("sfl")||b.match("skewfromleftshort")?y.x=-50:b.match("sfr")||b.match("skewfromrightshort")?y.x=50:b.match("lft")?y.y=-25-ii:b.match("lfb")?y.y=25+e.height:b.match("sft")?y.y=-50:b.match("sfb")&&(y.y=50),b.match("skewfromright")||s.hasClass("skewfromrightshort")?y.skewX=-85:(b.match("skewfromleft")||s.hasClass("skewfromleftshort"))&&(y.skewX=85),(b.match("fade")||b.match("sft")||b.match("sfl")||b.match("sfb")||b.match("skewfromleftshort")||b.match("sfr")||b.match("skewfromrightshort"))&&(y.opacity=0),et().toLowerCase()=="safari",vi=s.data("elementdelay")==t?0:s.data("elementdelay"),nt.ease=y.ease=s.data("easing")==t?punchgs.Power1.easeInOut:s.data("easing"),y.data={},y.data.oldx=y.x,y.data.oldy=y.y,nt.data={},nt.data.oldx=nt.x,nt.data.oldy=nt.y,y.x=y.x*tt,y.y=y.y*tt,hr=new punchgs.TimelineLite,ht!=2)if(b.match("customin"))ft!=s&&rt.add(punchgs.TweenLite.set(s,{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"})),y.visibility="hidden",nt.visibility="visible",nt.overwrite="all",nt.opacity=1,nt.onComplete=l(),nt.delay=li,nt.force3D="auto",rt.add(hr.staggerFromTo(ft,ai,y,nt,vi),"frame0");else if(y.visibility="visible",y.transformPerspective=600,ft!=s&&rt.add(punchgs.TweenLite.set(s,{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"})),nt.visibility="visible",nt.delay=li,nt.onComplete=l(),nt.opacity=1,nt.force3D="auto",b.match("randomrotate")&&ft!=s)for(f=0;f<ft.length;f++)cr={},yi={},n.extend(cr,y),n.extend(yi,nt),y.scale=Math.random()*3+1,y.rotation=Math.round(Math.random()*200-100),y.x=Math.round(Math.random()*200-100),y.y=Math.round(Math.random()*200-100),f!=0&&(yi.delay=li+f*vi),rt.append(punchgs.TweenLite.fromTo(ft[f],ai,cr,yi),"frame0");else rt.add(hr.staggerFromTo(ft,ai,y,nt,vi),"frame0");s.data("timeline",rt);br=[];s.data("frames")!=t&&(kt=s.data("frames"),kt=kt.replace(/\s+/g,""),kt=kt.replace("{",""),ar=kt.split("}"),n.each(ar,function(n,t){if(t.length>0){var i=oi(t);hi(s,e,i,"frame"+(n+10),tt)}}));rt=s.data("timeline");s.data("end")!=t&&(ht==-1||ht==2)?g(s,e,s.data("end")/1e3,y,"frame99",tt):ht==-1||ht==2?g(s,e,999999,y,"frame99",tt):g(s,e,200,y,"frame99",tt);rt=s.data("timeline");s.data("timeline",rt);ot(s,tt);rt.resume()}}bt&&(st(s),ot(s,tt),s.data("timeline")!=t&&(vr=s.data("timeline").getTweensOf(),n.each(vr,function(n,i){if(i.vars.data!=t){var r=i.vars.data.oldx*tt,u=i.vars.data.oldy*tt;if(i.progress()!=1&&i.progress()!=0)try{i.vars.x=r;i.vary.y=u}catch(f){}else i.progress()==1&&punchgs.TweenLite.set(i.target,{x:r,y:u})}})))});y=n("body").find("#"+e.container.attr("id")).find(".tp-bannertimer");y.data("opt",e);s!=t&&setTimeout(function(){s.resume()},30)},et=function(){var r=navigator.appName,t=navigator.userAgent,i,n=t.match(/(opera|chrome|safari|firefox|msie)\/?\s*(\.?\d+(\.\d+)*)/i);return n&&(i=t.match(/version\/([\.\d]+)/i))!=null&&(n[2]=i[1]),n=n?[n[1],n[2]]:[r,navigator.appVersion,"-?"],n[0]},wi=function(){var r=navigator.appName,t=navigator.userAgent,i,n=t.match(/(opera|chrome|safari|firefox|msie)\/?\s*(\.?\d+(\.\d+)*)/i);return n&&(i=t.match(/version\/([\.\d]+)/i))!=null&&(n[2]=i[1]),n=n?[n[1],n[2]]:[r,navigator.appVersion,"-?"],n[1]},d=function(n,i){n.data("fsize")==t&&n.data("fsize",parseInt(n.css("font-size"),0)||0);n.data("pt")==t&&n.data("pt",parseInt(n.css("paddingTop"),0)||0);n.data("pb")==t&&n.data("pb",parseInt(n.css("paddingBottom"),0)||0);n.data("pl")==t&&n.data("pl",parseInt(n.css("paddingLeft"),0)||0);n.data("pr")==t&&n.data("pr",parseInt(n.css("paddingRight"),0)||0);n.data("mt")==t&&n.data("mt",parseInt(n.css("marginTop"),0)||0);n.data("mb")==t&&n.data("mb",parseInt(n.css("marginBottom"),0)||0);n.data("ml")==t&&n.data("ml",parseInt(n.css("marginLeft"),0)||0);n.data("mr")==t&&n.data("mr",parseInt(n.css("marginRight"),0)||0);n.data("bt")==t&&n.data("bt",parseInt(n.css("borderTopWidth"),0)||0);n.data("bb")==t&&n.data("bb",parseInt(n.css("borderBottomWidth"),0)||0);n.data("bl")==t&&n.data("bl",parseInt(n.css("borderLeftWidth"),0)||0);n.data("br")==t&&n.data("br",parseInt(n.css("borderRightWidth"),0)||0);n.data("ls")==t&&n.data("ls",parseInt(n.css("letterSpacing"),0)||0);n.data("lh")==t&&n.data("lh",parseInt(n.css("lineHeight"),0)||"auto");n.data("minwidth")==t&&n.data("minwidth",parseInt(n.css("minWidth"),0)||0);n.data("minheight")==t&&n.data("minheight",parseInt(n.css("minHeight"),0)||0);n.data("maxwidth")==t&&n.data("maxwidth",parseInt(n.css("maxWidth"),0)||"none");n.data("maxheight")==t&&n.data("maxheight",parseInt(n.css("maxHeight"),0)||"none");n.data("wii")==t&&n.data("wii",parseInt(n.css("width"),0)||0);n.data("hii")==t&&n.data("hii",parseInt(n.css("height"),0)||0);n.data("wan")==t&&n.data("wan",n.css("-webkit-transition"));n.data("moan")==t&&n.data("moan",n.css("-moz-animation-transition"));n.data("man")==t&&n.data("man",n.css("-ms-animation-transition"));n.data("ani")==t&&n.data("ani",n.css("transition"));n.data("lh")=="auto"&&n.data("lh",n.data("fsize")+4);n.hasClass("tp-splitted")||(n.css("-webkit-transition","none"),n.css("-moz-transition","none"),n.css("-ms-transition","none"),n.css("transition","none"),punchgs.TweenLite.set(n,{fontSize:Math.round(n.data("fsize")*i.bw)+"px",letterSpacing:Math.floor(n.data("ls")*i.bw)+"px",paddingTop:Math.round(n.data("pt")*i.bh)+"px",paddingBottom:Math.round(n.data("pb")*i.bh)+"px",paddingLeft:Math.round(n.data("pl")*i.bw)+"px",paddingRight:Math.round(n.data("pr")*i.bw)+"px",marginTop:n.data("mt")*i.bh+"px",marginBottom:n.data("mb")*i.bh+"px",marginLeft:n.data("ml")*i.bw+"px",marginRight:n.data("mr")*i.bw+"px",borderTopWidth:Math.round(n.data("bt")*i.bh)+"px",borderBottomWidth:Math.round(n.data("bb")*i.bh)+"px",borderLeftWidth:Math.round(n.data("bl")*i.bw)+"px",borderRightWidth:Math.round(n.data("br")*i.bw)+"px",lineHeight:Math.round(n.data("lh")*i.bh)+"px",minWidth:n.data("minwidth")*i.bw+"px",minHeight:n.data("minheight")*i.bh+"px",overwrite:"auto"}),setTimeout(function(){n.css("-webkit-transition",n.data("wan"));n.css("-moz-transition",n.data("moan"));n.css("-ms-transition",n.data("man"));n.css("transition",n.data("ani"))},30),n.data("maxheight")!="none"&&n.css({maxHeight:n.data("maxheight")*i.bh+"px"}),n.data("maxwidth")!="none"&&n.css({maxWidth:n.data("maxwidth")*i.bw+"px"}))},ot=function(i,r){i.find(".rs-pendulum").each(function(){var i=n(this);if(i.data("timeline")==t){i.data("timeline",new punchgs.TimelineLite);var u=i.data("startdeg")==t?-20:i.data("startdeg"),f=i.data("enddeg")==t?20:i.data("enddeg"),e=i.data("speed")==t?2:i.data("speed"),o=i.data("origin")==t?"50% 50%":i.data("origin"),s=i.data("easing")==t?punchgs.Power2.easeInOut:i.data("ease");u=u*r;f=f*r;i.data("timeline").append(new punchgs.TweenLite.fromTo(i,e,{force3D:"auto",rotation:u,transformOrigin:o},{rotation:f,ease:s}));i.data("timeline").append(new punchgs.TweenLite.fromTo(i,e,{force3D:"auto",rotation:f,transformOrigin:o},{rotation:u,ease:s,onComplete:function(){i.data("timeline").restart()}}))}});i.find(".rs-rotate").each(function(){var i=n(this),u,f;i.data("timeline")==t&&(i.data("timeline",new punchgs.TimelineLite),u=i.data("startdeg")==t?0:i.data("startdeg"),f=i.data("enddeg")==t?360:i.data("enddeg"),speed=i.data("speed")==t?2:i.data("speed"),origin=i.data("origin")==t?"50% 50%":i.data("origin"),easing=i.data("easing")==t?punchgs.Power2.easeInOut:i.data("easing"),u=u*r,f=f*r,i.data("timeline").append(new punchgs.TweenLite.fromTo(i,speed,{force3D:"auto",rotation:u,transformOrigin:origin},{rotation:f,ease:easing,onComplete:function(){i.data("timeline").restart()}})))});i.find(".rs-slideloop").each(function(){var i=n(this);if(i.data("timeline")==t){i.data("timeline",new punchgs.TimelineLite);var u=i.data("xs")==t?0:i.data("xs"),f=i.data("ys")==t?0:i.data("ys"),e=i.data("xe")==t?0:i.data("xe"),o=i.data("ye")==t?0:i.data("ye"),s=i.data("speed")==t?2:i.data("speed"),h=i.data("easing")==t?punchgs.Power2.easeInOut:i.data("easing");u=u*r;f=f*r;e=e*r;o=o*r;i.data("timeline").append(new punchgs.TweenLite.fromTo(i,s,{force3D:"auto",x:u,y:f},{x:e,y:o,ease:h}));i.data("timeline").append(new punchgs.TweenLite.fromTo(i,s,{force3D:"auto",x:e,y:o},{x:u,y:f,onComplete:function(){i.data("timeline").restart()}}))}});i.find(".rs-pulse").each(function(){var i=n(this);if(i.data("timeline")==t){i.data("timeline",new punchgs.TimelineLite);var r=i.data("zoomstart")==t?0:i.data("zoomstart"),u=i.data("zoomend")==t?0:i.data("zoomend"),f=i.data("speed")==t?2:i.data("speed"),e=i.data("easing")==t?punchgs.Power2.easeInOut:i.data("easing");i.data("timeline").append(new punchgs.TweenLite.fromTo(i,f,{force3D:"auto",scale:r},{scale:u,ease:e}));i.data("timeline").append(new punchgs.TweenLite.fromTo(i,f,{force3D:"auto",scale:u},{scale:r,onComplete:function(){i.data("timeline").restart()}}))}});i.find(".rs-wave").each(function(){var i=n(this),u;if(i.data("timeline")==t){i.data("timeline",new punchgs.TimelineLite);var f=i.data("angle")==t?10:i.data("angle"),e=i.data("radius")==t?10:i.data("radius"),o=i.data("speed")==t?-20:i.data("speed"),s=i.data("origin")==t?-20:i.data("origin");f=f*r;e=e*r;u={a:0,ang:f,element:i,unit:e};i.data("timeline").append(new punchgs.TweenLite.fromTo(u,o,{a:360},{a:0,force3D:"auto",ease:punchgs.Linear.easeNone,onUpdate:function(){var n=u.a*(Math.PI/180);punchgs.TweenLite.to(u.element,.1,{force3D:"auto",x:Math.cos(n)*u.unit,y:u.unit*(1-Math.sin(n))})},onComplete:function(){i.data("timeline").restart()}}))}})},st=function(i){i.find(".rs-pendulum, .rs-slideloop, .rs-pulse, .rs-wave").each(function(){var i=n(this);i.data("timeline")!=t&&(i.data("timeline").pause(),i.data("timeline",null))})},si=function(r,u){var f=0,e=r.find(".tp-caption"),o=u.container.find(".tp-static-layers").find(".tp-caption");return n.each(o,function(n,t){e.push(t)}),e.each(function(){var o=-1,r=n(this),h,c,s;if(r.hasClass("tp-static-layer")&&((r.data("startslide")==-1||r.data("startslide")=="-1")&&r.data("startslide",0),(r.data("endslide")==-1||r.data("endslide")=="-1")&&r.data("endslide",u.slideamount),r.hasClass("tp-is-shown")?r.data("startslide")>u.next||r.data("endslide")<u.next?(o=2,r.removeClass("tp-is-shown")):o=0:o=2),o!=0){if(st(r),r.find("iframe").length>0){punchgs.TweenLite.to(r.find("iframe"),.2,{autoAlpha:0});i()&&r.find("iframe").remove();try{var l=r.find("iframe"),a=l.attr("id"),v=$f(a);v.api("pause");clearTimeout(r.data("timerplay"))}catch(w){}try{h=r.data("player");h.stopVideo();clearTimeout(r.data("timerplay"))}catch(w){}}if(r.find("video").length>0)try{r.find("video").each(function(){var t=n(this).parent(),r=t.attr("id"),i;clearTimeout(t.data("timerplay"));i=this;i.pause()})}catch(w){}try{var e=r.data("timeline"),y=e.getLabelTime("frame99"),p=e.time();y>p&&(c=e.getTweensOf(r),n.each(c,function(n,t){n!=0&&t.pause()}),r.css("opacity")!=0?(s=r.data("endspeed")==t?r.data("speed"):r.data("endspeed"),s>f&&(f=s),e.play("frame99")):e.progress(1,!1))}catch(w){}}}),f},hi=function(n,i,r,u,f){var o=n.data("timeline"),s=new punchgs.TimelineLite,e=n;r.typ=="chars"?e=n.data("mySplitText").chars:r.typ=="words"?e=n.data("mySplitText").words:r.typ=="lines"&&(e=n.data("mySplitText").lines);r.animation.ease=r.ease;r.animation.rotationZ!=t&&(r.animation.rotation=r.animation.rotationZ);r.animation.data={};r.animation.data.oldx=r.animation.x;r.animation.data.oldy=r.animation.y;r.animation.x=r.animation.x*f;r.animation.y=r.animation.y*f;o.add(s.staggerTo(e,r.speed,r.animation,r.elementdelay),r.start);o.addLabel(u,r.start);n.data("timeline",o)},g=function(n,i,r,u,f,e){var c=n.data("timeline"),y=new punchgs.TimelineLite,o=a(),l=n.data("endspeed")==t?n.data("speed"):n.data("endspeed"),s=n.attr("class"),h,v;o.ease=n.data("endeasing")==t?punchgs.Power1.easeInOut:n.data("endeasing");l=l/1e3;s.match("ltr")||s.match("ltl")||s.match("str")||s.match("stl")||s.match("ltt")||s.match("ltb")||s.match("stt")||s.match("stb")||s.match("skewtoright")||s.match("skewtorightshort")||s.match("skewtoleft")||s.match("skewtoleftshort")||s.match("fadeout")||s.match("randomrotateout")?(s.match("skewtoright")||s.match("skewtorightshort")?o.skewX=35:(s.match("skewtoleft")||s.match("skewtoleftshort"))&&(o.skewX=-35),s.match("ltr")||s.match("skewtoright")?o.x=i.width+60:s.match("ltl")||s.match("skewtoleft")?o.x=0-(i.width+60):s.match("ltt")?o.y=0-(i.height+60):s.match("ltb")?o.y=i.height+60:s.match("str")||s.match("skewtorightshort")?(o.x=50,o.opacity=0):s.match("stl")||s.match("skewtoleftshort")?(o.x=-50,o.opacity=0):s.match("stt")?(o.y=-50,o.opacity=0):s.match("stb")?(o.y=50,o.opacity=0):s.match("randomrotateout")?(o.x=Math.random()*i.width,o.y=Math.random()*i.height,o.scale=Math.random()*2+.3,o.rotation=Math.random()*360-180,o.opacity=0):s.match("fadeout")&&(o.opacity=0),s.match("skewtorightshort")?o.x=270:s.match("skewtoleftshort")&&(o.x=-270),o.data={},o.data.oldx=o.x,o.data.oldy=o.y,o.x=o.x*e,o.y=o.y*e,o.overwrite="auto",h=n,h=n,n.data("splitout")=="chars"?h=n.data("mySplitText").chars:n.data("splitout")=="words"?h=n.data("mySplitText").words:n.data("splitout")=="lines"&&(h=n.data("mySplitText").lines),v=n.data("endelementdelay")==t?0:n.data("endelementdelay"),c.add(y.staggerTo(h,l,o,v),r)):n.hasClass("customout")?(o=k(o,n.data("customout")),h=n,n.data("splitout")=="chars"?h=n.data("mySplitText").chars:n.data("splitout")=="words"?h=n.data("mySplitText").words:n.data("splitout")=="lines"&&(h=n.data("mySplitText").lines),v=n.data("endelementdelay")==t?0:n.data("endelementdelay"),o.onStart=function(){punchgs.TweenLite.set(n,{transformPerspective:o.transformPerspective,transformOrigin:o.transformOrigin,overwrite:"auto"})},o.data={},o.data.oldx=o.x,o.data.oldy=o.y,o.x=o.x*e,o.y=o.y*e,c.add(y.staggerTo(h,l,o,v),r)):(u.delay=0,c.add(punchgs.TweenLite.to(n,l,u),r));c.addLabel(f,r);n.data("timeline",c)},ci=function(t,i){t.children().each(function(){try{n(this).die("click")}catch(t){}try{n(this).die("mouseenter")}catch(t){}try{n(this).die("mouseleave")}catch(t){}try{n(this).unbind("hover")}catch(t){}});try{t.die("click","mouseenter","mouseleave")}catch(r){}clearInterval(i.cdint);t=null},li=function(r,u){var f,e;if(u.cd=0,u.loop=0,u.looptogo=u.stopAfterLoops!=t&&u.stopAfterLoops>-1?u.stopAfterLoops:9999999,u.lastslidetoshow=u.stopAtSlide!=t&&u.stopAtSlide>-1?u.stopAtSlide:999,u.stopLoop="off",u.looptogo==0&&(u.stopLoop="on"),u.slideamount>1&&!(u.stopAfterLoops==0&&u.stopAtSlide==1)){f=r.find(".tp-bannertimer");r.on("stoptimer",function(){var t=n(this).find(".tp-bannertimer");t.data("tween").pause();u.hideTimerBar=="on"&&t.css({visibility:"hidden"})});r.on("starttimer",function(){u.conthover!=1&&u.videoplaying!=!0&&u.width>u.hideSliderAtLimit&&u.bannertimeronpause!=!0&&u.overnav!=!0&&(u.stopLoop=="on"&&u.next==u.lastslidetoshow-1||u.noloopanymore==1?u.noloopanymore=1:(f.css({visibility:"visible"}),f.data("tween").resume()));u.hideTimerBar=="on"&&f.css({visibility:"hidden"})});r.on("restarttimer",function(){var t=n(this).find(".tp-bannertimer");u.stopLoop=="on"&&u.next==u.lastslidetoshow-1||u.noloopanymore==1?u.noloopanymore=1:(t.css({visibility:"visible"}),t.data("tween").kill(),t.data("tween",punchgs.TweenLite.fromTo(t,u.delay/1e3,{width:"0%"},{force3D:"auto",width:"100%",ease:punchgs.Linear.easeNone,onComplete:e,delay:1})));u.hideTimerBar=="on"&&t.css({visibility:"hidden"})});r.on("nulltimer",function(){f.data("tween").pause(0);u.hideTimerBar=="on"&&f.css({visibility:"hidden"})});e=function(){n("body").find(r).length==0&&(ci(r,u),clearInterval(u.cdint));r.trigger("revolution.slide.slideatend");r.data("conthover-changed")==1&&(u.conthover=r.data("conthover"),r.data("conthover-changed",0));u.act=u.next;u.next=u.next+1;u.next>r.find(">ul >li").length-1&&(u.next=0,u.looptogo=u.looptogo-1,u.looptogo<=0&&(u.stopLoop="on"));u.stopLoop=="on"&&u.next==u.lastslidetoshow-1?(r.find(".tp-bannertimer").css({visibility:"hidden"}),r.trigger("revolution.slide.onstop"),u.noloopanymore=1):f.data("tween").restart();b(r,u)};f.data("tween",punchgs.TweenLite.fromTo(f,u.delay/1e3,{width:"0%"},{force3D:"auto",width:"100%",ease:punchgs.Linear.easeNone,onComplete:e,delay:1}));f.data("opt",u);r.hover(function(){if(u.onHoverStop=="on"&&!i()){r.trigger("stoptimer");r.trigger("revolution.slide.onpause");var f=r.find(">ul >li:eq("+u.next+") .slotholder");f.find(".defaultimg").each(function(){var i=n(this);i.data("kenburn")!=t&&i.data("kenburn").pause()})}},function(){if(r.data("conthover")!=1){r.trigger("revolution.slide.onresume");r.trigger("starttimer");var i=r.find(">ul >li:eq("+u.next+") .slotholder");i.find(".defaultimg").each(function(){var i=n(this);i.data("kenburn")!=t&&i.data("kenburn").play()})}})}},i=function(){var n=["android","webos","iphone","ipad","blackberry","Android","webos",,"iPod","iPhone","iPad","Blackberry","BlackBerry"],t=!1,i;for(i in n)navigator.userAgent.split(n[i]).length>1&&(t=!0);return t},s=function(n,t,i){var u=t.data("owidth"),f=t.data("oheight");if(u/f>i.width/i.height){var e=i.container.width()/u,o=f*e,r=o/i.container.height()*n;return n=n*(100/r),r=100,n=n,n+"% "+r+"% 1"}var e=i.container.width()/u,o=f*e,r=o/i.container.height()*n;return n+"% "+r+"%"},nt=function(i,u,f,e){var w,d,g,h,a;try{w=i.find(">ul:first-child >li:eq("+u.act+")")}catch(ft){w=i.find(">ul:first-child >li:eq(1)")}u.lastslide=u.act;var nt=i.find(">ul:first-child >li:eq("+u.next+")"),o=nt.find(".slotholder"),tt=o.data("bgposition"),it=o.data("bgpositionend"),v=o.data("zoomstart")/100,y=o.data("zoomend")/100,k=o.data("rotationstart"),b=o.data("rotationend"),c=o.data("bgfit"),l=o.data("bgfitend"),rt=o.data("easeme"),ut=o.data("duration")/1e3,p=100;c==t&&(c=100);l==t&&(l=100);d=c;g=l;c=s(c,o,u);l=s(l,o,u);p=s(100,o,u);v==t&&(v=1);y==t&&(y=1);k==t&&(k=0);b==t&&(b=0);v<1&&(v=1);y<1&&(y=1);h={};h.w=parseInt(p.split(" ")[0],0);h.h=parseInt(p.split(" ")[1],0);a=!1;p.split(" ")[2]=="1"&&(a=!0);o.find(".defaultimg").each(function(){var f=n(this);o.find(".kenburnimg").length==0?o.append('<div class="kenburnimg" style="position:absolute;z-index:1;width:100%;height:100%;top:0px;left:0px;"><img src="'+f.attr("src")+'" style="-webkit-touch-callout: none;-webkit-user-select: none;-khtml-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;position:absolute;width:'+h.w+"%;height:"+h.h+'%;"><\/div>'):o.find(".kenburnimg img").css({width:h.w+"%",height:h.h+"%"});var t=o.find(".kenburnimg img"),i=ht(u,tt,c,t,a),s=ht(u,it,l,t,a);if(a&&(i.w=d/100,s.w=g/100),e){punchgs.TweenLite.set(t,{autoAlpha:0,transformPerspective:1200,transformOrigin:"0% 0%",top:0,left:0,scale:i.w,x:i.x,y:i.y});var v=i.w,y=v*t.width()-u.width,p=v*t.height()-u.height,w=Math.abs(i.x/y*100),k=Math.abs(i.y/p*100);p==0&&(k=0);y==0&&(w=0);f.data("bgposition",w+"% "+k+"%");r(8)||f.data("currotate",ct(t));r(8)||f.data("curscale",h.w*v+"%  "+(h.h*v+"%"));o.find(".kenburnimg").remove()}else f.data("kenburn",punchgs.TweenLite.fromTo(t,ut,{autoAlpha:1,force3D:punchgs.force3d,transformOrigin:"0% 0%",top:0,left:0,scale:i.w,x:i.x,y:i.y},{autoAlpha:1,rotationZ:b,ease:rt,x:s.x,y:s.y,scale:s.w,onUpdate:function(){var n=t[0]._gsTransform.scaleX,i=n*t.width()-u.width,e=n*t.height()-u.height,o=Math.abs(t[0]._gsTransform.x/i*100),s=Math.abs(t[0]._gsTransform.y/e*100);e==0&&(s=0);i==0&&(o=0);f.data("bgposition",o+"% "+s+"%");r(8)||f.data("currotate",ct(t));r(8)||f.data("curscale",h.w*n+"%  "+(h.h*n+"%"))}}))})},ht=function(n,t,i,r,u){var f={};f.w=u?parseInt(i.split(" ")[1],0)/100:parseInt(i.split(" ")[0],0)/100;switch(t){case"left top":case"top left":f.x=0;f.y=0;break;case"center top":case"top center":f.x=((0-r.width())*f.w+parseInt(n.width,0))/2;f.y=0;break;case"top right":case"right top":f.x=(0-r.width())*f.w+parseInt(n.width,0);f.y=0;break;case"center left":case"left center":f.x=0;f.y=((0-r.height())*f.w+parseInt(n.height,0))/2;break;case"center center":f.x=((0-r.width())*f.w+parseInt(n.width,0))/2;f.y=((0-r.height())*f.w+parseInt(n.height,0))/2;break;case"center right":case"right center":f.x=(0-r.width())*f.w+parseInt(n.width,0);f.y=((0-r.height())*f.w+parseInt(n.height,0))/2;break;case"bottom left":case"left bottom":f.x=0;f.y=(0-r.height())*f.w+parseInt(n.height,0);break;case"bottom center":case"center bottom":f.x=((0-r.width())*f.w+parseInt(n.width,0))/2;f.y=(0-r.height())*f.w+parseInt(n.height,0);break;case"bottom right":case"right bottom":f.x=(0-r.width())*f.w+parseInt(n.width,0);f.y=(0-r.height())*f.w+parseInt(n.height,0)}return f},ct=function(n){var i=n.css("-webkit-transform")||n.css("-moz-transform")||n.css("-ms-transform")||n.css("-o-transform")||n.css("transform"),t;if(i!=="none")var r=i.split("(")[1].split(")")[0].split(","),u=r[0],f=r[1],t=Math.round(Math.atan2(f,u)*(180/Math.PI));else t=0;return t<0?t+=360:t},ai=function(i,r){var u;try{u=i.find(">ul:first-child >li:eq("+r.act+")")}catch(e){u=i.find(">ul:first-child >li:eq(1)")}r.lastslide=r.act;var f=i.find(">ul:first-child >li:eq("+r.next+")"),o=u.find(".slotholder"),s=f.find(".slotholder");i.find(".defaultimg").each(function(){var i=n(this);punchgs.TweenLite.killTweensOf(i,!1);punchgs.TweenLite.set(i,{scale:1,rotationZ:0});punchgs.TweenLite.killTweensOf(i.data("kenburn img"),!1);i.data("kenburn")!=t&&i.data("kenburn").pause();i.data("currotate")!=t&&i.data("bgposition")!=t&&i.data("curscale")!=t&&punchgs.TweenLite.set(i,{rotation:i.data("currotate"),backgroundPosition:i.data("bgposition"),backgroundSize:i.data("curscale")});i!=t&&i.data("kenburn img")!=t&&i.data("kenburn img").length>0&&punchgs.TweenLite.set(i.data("kenburn img"),{autoAlpha:0})})},vi=function(t,r){if(i()&&r.parallaxDisableOnMobile=="on")return!1;if(t.find(">ul:first-child >li").each(function(){for(var i=n(this),t=1;t<=10;t++)i.find(".rs-parallaxlevel-"+t).each(function(){var i=n(this);i.wrap('<div style="position:absolute;top:0px;left:0px;width:100%;height:100%;z-index:'+i.css("zIndex")+'" class="tp-parallax-container" data-parallaxlevel="'+r.parallaxLevels[t-1]+'"><\/div>')})}),r.parallax=="mouse"||r.parallax=="scroll+mouse"||r.parallax=="mouse+scroll"){t.mouseenter(function(n){var i=t.find(".current-sr-slide-visible"),r=t.offset().top,u=t.offset().left,f=n.pageX-u,e=n.pageY-r;i.data("enterx",f);i.data("entery",e)});t.on("mousemove.hoverdir, mouseleave.hoverdir",function(i){var u=t.find(".current-sr-slide-visible");switch(i.type){case"mousemove":var f=t.offset().top,e=t.offset().left,o=u.data("enterx"),s=u.data("entery"),h=o-(i.pageX-e),c=s-(i.pageY-f);u.find(".tp-parallax-container").each(function(){var t=n(this),i=parseInt(t.data("parallaxlevel"),0)/100,u=h*i,f=c*i;r.parallax=="scroll+mouse"||r.parallax=="mouse+scroll"?punchgs.TweenLite.to(t,.4,{force3D:"auto",x:u,ease:punchgs.Power3.easeOut,overwrite:"all"}):punchgs.TweenLite.to(t,.4,{force3D:"auto",x:u,y:f,ease:punchgs.Power3.easeOut,overwrite:"all"})});break;case"mouseleave":u.find(".tp-parallax-container").each(function(){var t=n(this);r.parallax=="scroll+mouse"||r.parallax=="mouse+scroll"?punchgs.TweenLite.to(t,1.5,{force3D:"auto",x:0,ease:punchgs.Power3.easeOut}):punchgs.TweenLite.to(t,1.5,{force3D:"auto",x:0,y:0,ease:punchgs.Power3.easeOut})})}});i()&&(window.ondeviceorientation=function(i){var r=Math.round(i.beta||0),u=Math.round(i.gamma||0),s=t.find(".current-sr-slide-visible"),f,e,o;n(window).width()>n(window).height()&&(f=u,u=r,r=f);e=360/t.width()*u;o=180/t.height()*r;s.find(".tp-parallax-container").each(function(){var t=n(this),i=parseInt(t.data("parallaxlevel"),0)/100,r=e*i,u=o*i;punchgs.TweenLite.to(t,.2,{force3D:"auto",x:r,y:u,ease:punchgs.Power3.easeOut})})})}if(r.parallax=="scroll"||r.parallax=="scroll+mouse"||r.parallax=="mouse+scroll")n(window).on("scroll",function(){h(t,r)})},h=function(t,r){var a,s,h;if(i()&&r.parallaxDisableOnMobile=="on")return!1;var e=t.offset().top,c=n(window).scrollTop(),o=e+t.height()/2,l=e+t.height()/2-c,f=n(window).height()/2,u=f-l;o<f&&(u=u-(f-o));a=t.find(".current-sr-slide-visible");t.find(".tp-parallax-container").each(function(){var t=n(this),r=parseInt(t.data("parallaxlevel"),0)/100,i=u*r;t.data("parallaxoffset",i);punchgs.TweenLite.to(t,.2,{force3D:"auto",y:i,ease:punchgs.Power3.easeOut})});r.parallaxBgFreeze!="on"&&(s=r.parallaxLevels[0]/100,h=u*s,punchgs.TweenLite.to(t,.2,{force3D:"auto",y:h,ease:punchgs.Power3.easeOut}))},yi=function(i,r){var s=i.parent(),u,e,o,h,c;(r.navigationType=="thumb"||r.navsecond=="both")&&s.append('<div class="tp-bullets tp-thumbs '+r.navigationStyle+'"><div class="tp-mask"><div class="tp-thumbcontainer"><\/div><\/div><\/div>');u=s.find(".tp-bullets.tp-thumbs .tp-mask .tp-thumbcontainer");e=u.parent();e.width(r.thumbWidth*r.thumbAmount);e.height(r.thumbHeight);e.parent().width(r.thumbWidth*r.thumbAmount);e.parent().height(r.thumbHeight);i.find(">ul:first >li").each(function(n){var f=i.find(">ul:first >li:eq("+n+")"),o=f.find(".defaultimg").css("backgroundColor"),e,s;e=f.data("thumb")!=t?f.data("thumb"):f.find("img:first").attr("src");u.append('<div class="bullet thumb" style="background-color:'+o+";position:relative;width:"+r.thumbWidth+"px;height:"+r.thumbHeight+"px;background-image:url("+e+') !important;background-size:cover;background-position:center center;"><\/div>');s=u.find(".bullet:first")});o=10;u.find(".bullet").each(function(t){var u=n(this);t==r.slideamount-1&&u.addClass("last");t==0&&u.addClass("first");u.width(r.thumbWidth);u.height(r.thumbHeight);o<u.outerWidth(!0)&&(o=u.outerWidth(!0));u.click(function(){r.transition==0&&u.index()!=r.act&&(r.next=u.index(),f(r,i))})});h=o*i.find(">ul:first >li").length;c=u.parent().width();r.thumbWidth=o;c<h&&(n(document).mousemove(function(t){n("body").data("mousex",t.pageX)}),u.parent().mouseenter(function(){var r=n(this),o=r.offset(),f=n("body").data("mousex")-o.left,u=r.width(),s=r.find(".bullet:first").outerWidth(!0),e=s*i.find(">ul:first >li").length,h=e-u+15,c=h/u,t;r.addClass("over");f=f-30;t=0-f*c;t>0&&(t=0);t<0-e+u&&(t=0-e+u);tt(r,t,200)}),u.parent().mousemove(function(){var f=n(this),o=f.offset(),t=n("body").data("mousex")-o.left,r=f.width(),s=f.find(".bullet:first").outerWidth(!0),e=s*i.find(">ul:first >li").length-1,h=e-r+15,c=h/r,u;t=t-3;t<6&&(t=0);t+3>r-6&&(t=r);u=0-t*c;u>0&&(u=0);u<0-e+r&&(u=0-e+r);tt(f,u,0)}),u.parent().mouseleave(function(){var t=n(this);t.removeClass("over");lt(i)}))},lt=function(n){var e=n.parent().find(".tp-bullets.tp-thumbs .tp-mask .tp-thumbcontainer"),t=e.parent(),h=t.offset(),u=t.find(".bullet:first").outerWidth(!0),o=t.find(".bullet.selected").index()*u,r=t.width(),u=t.find(".bullet:first").outerWidth(!0),f=u*n.find(">ul:first >li").length,s=f-r,c=s/r,i=0-o;i>0&&(i=0);i<0-f+r&&(i=0-f+r);t.hasClass("over")||tt(t,i,200)},tt=function(n,t){punchgs.TweenLite.to(n.find(".tp-thumbcontainer"),.2,{force3D:"auto",left:t,ease:punchgs.Power3.easeOut,overwrite:"auto"})}}(jQuery),function(){var n,f,t,i,r,u=function(n,t){return function(){return n.apply(t,arguments)}},e=[].indexOf||function(n){for(var t=0,i=this.length;i>t;t++)if(t in this&&this[t]===n)return t;return-1};f=function(){function n(){}return n.prototype.extend=function(n,t){var i,r;for(i in t)r=t[i],null==n[i]&&(n[i]=r);return n},n.prototype.isMobile=function(n){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(n)},n.prototype.addEvent=function(n,t,i){return null!=n.addEventListener?n.addEventListener(t,i,!1):null!=n.attachEvent?n.attachEvent("on"+t,i):n[t]=i},n.prototype.removeEvent=function(n,t,i){return null!=n.removeEventListener?n.removeEventListener(t,i,!1):null!=n.detachEvent?n.detachEvent("on"+t,i):delete n[t]},n.prototype.innerHeight=function(){return"innerHeight"in window?window.innerHeight:document.documentElement.clientHeight},n}();t=this.WeakMap||this.MozWeakMap||(t=function(){function n(){this.keys=[];this.values=[]}return n.prototype.get=function(n){var t,u,i,f,r;for(r=this.keys,t=i=0,f=r.length;f>i;t=++i)if(u=r[t],u===n)return this.values[t]},n.prototype.set=function(n,t){var i,f,r,e,u;for(u=this.keys,i=r=0,e=u.length;e>r;i=++r)if(f=u[i],f===n)return void(this.values[i]=t);return this.keys.push(n),this.values.push(t)},n}());n=this.MutationObserver||this.WebkitMutationObserver||this.MozMutationObserver||(n=function(){function n(){"undefined"!=typeof console&&null!==console&&console.warn("MutationObserver is not supported by your browser.");"undefined"!=typeof console&&null!==console&&console.warn("WOW.js cannot detect dom mutations, please call .sync() after loading new content.")}return n.notSupported=!0,n.prototype.observe=function(){},n}());i=this.getComputedStyle||function(n){return this.getPropertyValue=function(t){var i;return"float"===t&&(t="styleFloat"),r.test(t)&&t.replace(r,function(n,t){return t.toUpperCase()}),(null!=(i=n.currentStyle)?i[t]:void 0)||null},this};r=/(\-([a-z]){1})/g;this.WOW=function(){function r(n){null==n&&(n={});this.scrollCallback=u(this.scrollCallback,this);this.scrollHandler=u(this.scrollHandler,this);this.start=u(this.start,this);this.scrolled=!0;this.config=this.util().extend(n,this.defaults);this.animationNameCache=new t}return r.prototype.defaults={boxClass:"wow",animateClass:"animated",offset:0,mobile:!0,live:!0,callback:null},r.prototype.init=function(){var n;return this.element=window.document.documentElement,"interactive"===(n=document.readyState)||"complete"===n?this.start():this.util().addEvent(document,"DOMContentLoaded",this.start),this.finished=[]},r.prototype.start=function(){var t,i,u,r;if(this.stopped=!1,this.boxes=function(){var n,u,i,r;for(i=this.element.querySelectorAll("."+this.config.boxClass),r=[],n=0,u=i.length;u>n;n++)t=i[n],r.push(t);return r}.call(this),this.all=function(){var n,u,i,r;for(i=this.boxes,r=[],n=0,u=i.length;u>n;n++)t=i[n],r.push(t);return r}.call(this),this.boxes.length)if(this.disabled())this.resetStyle();else for(r=this.boxes,i=0,u=r.length;u>i;i++)t=r[i],this.applyStyle(t,!0);return this.disabled()||(this.util().addEvent(window,"scroll",this.scrollHandler),this.util().addEvent(window,"resize",this.scrollHandler),this.interval=setInterval(this.scrollCallback,50)),this.config.live?new n(function(n){return function(t){var u,f,i,e,r;for(r=[],i=0,e=t.length;e>i;i++)f=t[i],r.push(function(){var n,r,t,i;for(t=f.addedNodes||[],i=[],n=0,r=t.length;r>n;n++)u=t[n],i.push(this.doSync(u));return i}.call(n));return r}}(this)).observe(document.body,{childList:!0,subtree:!0}):void 0},r.prototype.stop=function(){return this.stopped=!0,this.util().removeEvent(window,"scroll",this.scrollHandler),this.util().removeEvent(window,"resize",this.scrollHandler),null!=this.interval?clearInterval(this.interval):void 0},r.prototype.sync=function(){if(n.notSupported)return this.doSync(this.element)},r.prototype.doSync=function(n){var t,i,f,u,r;if(null==n&&(n=this.element),1===n.nodeType){for(n=n.parentNode||n,u=n.querySelectorAll("."+this.config.boxClass),r=[],i=0,f=u.length;f>i;i++)t=u[i],e.call(this.all,t)<0?(this.boxes.push(t),this.all.push(t),this.stopped||this.disabled()?this.resetStyle():this.applyStyle(t,!0),r.push(this.scrolled=!0)):r.push(void 0);return r}},r.prototype.show=function(n){return this.applyStyle(n),n.className=""+n.className+" "+this.config.animateClass,null!=this.config.callback?this.config.callback(n):void 0},r.prototype.applyStyle=function(n,t){var i,r,u;return r=n.getAttribute("data-wow-duration"),i=n.getAttribute("data-wow-delay"),u=n.getAttribute("data-wow-iteration"),this.animate(function(f){return function(){return f.customStyle(n,t,r,i,u)}}(this))},r.prototype.animate=function(){return"requestAnimationFrame"in window?function(n){return window.requestAnimationFrame(n)}:function(n){return n()}}(),r.prototype.resetStyle=function(){var r,n,u,t,i;for(t=this.boxes,i=[],n=0,u=t.length;u>n;n++)r=t[n],i.push(r.style.visibility="visible");return i},r.prototype.customStyle=function(n,t,i,r,u){return t&&this.cacheAnimationName(n),n.style.visibility=t?"hidden":"visible",i&&this.vendorSet(n.style,{animationDuration:i}),r&&this.vendorSet(n.style,{animationDelay:r}),u&&this.vendorSet(n.style,{animationIterationCount:u}),this.vendorSet(n.style,{animationName:t?"none":this.cachedAnimationName(n)}),n},r.prototype.vendors=["moz","webkit"],r.prototype.vendorSet=function(n,t){var i,r,u,f=[];for(i in t)r=t[i],n[""+i]=r,f.push(function(){var t,o,f,e;for(f=this.vendors,e=[],t=0,o=f.length;o>t;t++)u=f[t],e.push(n[""+u+i.charAt(0).toUpperCase()+i.substr(1)]=r);return e}.call(this));return f},r.prototype.vendorCSS=function(n,t){var r,f,o,u,s,e;for(f=i(n),r=f.getPropertyCSSValue(t),e=this.vendors,u=0,s=e.length;s>u;u++)o=e[u],r=r||f.getPropertyCSSValue("-"+o+"-"+t);return r},r.prototype.animationName=function(n){var t;try{t=this.vendorCSS(n,"animation-name").cssText}catch(r){t=i(n).getPropertyValue("animation-name")}return"none"===t?"":t},r.prototype.cacheAnimationName=function(n){return this.animationNameCache.set(n,this.animationName(n))},r.prototype.cachedAnimationName=function(n){return this.animationNameCache.get(n)},r.prototype.scrollHandler=function(){return this.scrolled=!0},r.prototype.scrollCallback=function(){var n;if(this.scrolled&&!(this.scrolled=!1,this.boxes=function(){var t,u,i,r;for(i=this.boxes,r=[],t=0,u=i.length;u>t;t++)n=i[t],n&&(this.isVisible(n)?this.show(n):r.push(n));return r}.call(this),this.boxes.length||this.config.live))return this.stop()},r.prototype.offsetTop=function(n){for(var t;void 0===n.offsetTop;)n=n.parentNode;for(t=n.offsetTop;n=n.offsetParent;)t+=n.offsetTop;return t},r.prototype.isVisible=function(n){var r,u,t,f,i;return u=n.getAttribute("data-wow-offset")||this.config.offset,i=window.pageYOffset,f=i+Math.min(this.element.clientHeight,this.util().innerHeight())-u,t=this.offsetTop(n),r=t+n.clientHeight,f>=t&&r>=i},r.prototype.util=function(){return null!=this._util?this._util:this._util=new f},r.prototype.disabled=function(){return!this.config.mobile&&this.util().isMobile(navigator.userAgent)},r}()}.call(this);"function"!=typeof Object.create&&(Object.create=function(n){function t(){}return t.prototype=n,new t}),function(n,t,i){var r={init:function(t,i){this.$elem=n(i);this.options=n.extend({},n.fn.owlCarousel.options,this.$elem.data(),t);this.userOptions=t;this.loadContent()},loadContent:function(){function r(n){var i,r="";if("function"==typeof t.options.jsonSuccess)t.options.jsonSuccess.apply(this,[n]);else{for(i in n.owl)n.owl.hasOwnProperty(i)&&(r+=n.owl[i].item);t.$elem.html(r)}t.logIn()}var t=this,i;"function"==typeof t.options.beforeInit&&t.options.beforeInit.apply(this,[t.$elem]);"string"==typeof t.options.jsonPath?(i=t.options.jsonPath,n.getJSON(i,r)):t.logIn()},logIn:function(){this.$elem.data("owl-originalStyles",this.$elem.attr("style"));this.$elem.data("owl-originalClasses",this.$elem.attr("class"));this.$elem.css({opacity:0});this.orignalItems=this.options.items;this.checkBrowser();this.wrapperWidth=0;this.checkVisible=null;this.setVars()},setVars:function(){if(0===this.$elem.children().length)return!1;this.baseClass();this.eventTypes();this.$userItems=this.$elem.children();this.itemsAmount=this.$userItems.length;this.wrapItems();this.$owlItems=this.$elem.find(".owl-item");this.$owlWrapper=this.$elem.find(".owl-wrapper");this.playDirection="next";this.prevItem=0;this.prevArr=[0];this.currentItem=0;this.customEvents();this.onStartup()},onStartup:function(){this.updateItems();this.calculateAll();this.buildControls();this.updateControls();this.response();this.moveEvents();this.stopOnHover();this.owlStatus();!1!==this.options.transitionStyle&&this.transitionTypes(this.options.transitionStyle);!0===this.options.autoPlay&&(this.options.autoPlay=5e3);this.play();this.$elem.find(".owl-wrapper").css("display","block");this.$elem.is(":visible")?this.$elem.css("opacity",1):this.watchVisibility();this.onstartup=!1;this.eachMoveUpdate();"function"==typeof this.options.afterInit&&this.options.afterInit.apply(this,[this.$elem])},eachMoveUpdate:function(){!0===this.options.lazyLoad&&this.lazyLoad();!0===this.options.autoHeight&&this.autoHeight();this.onVisibleItems();"function"==typeof this.options.afterAction&&this.options.afterAction.apply(this,[this.$elem])},updateVars:function(){"function"==typeof this.options.beforeUpdate&&this.options.beforeUpdate.apply(this,[this.$elem]);this.watchVisibility();this.updateItems();this.calculateAll();this.updatePosition();this.updateControls();this.eachMoveUpdate();"function"==typeof this.options.afterUpdate&&this.options.afterUpdate.apply(this,[this.$elem])},reload:function(){var n=this;t.setTimeout(function(){n.updateVars()},0)},watchVisibility:function(){var n=this;if(!1===n.$elem.is(":visible"))n.$elem.css({opacity:0}),t.clearInterval(n.autoPlayInterval),t.clearInterval(n.checkVisible);else return!1;n.checkVisible=t.setInterval(function(){n.$elem.is(":visible")&&(n.reload(),n.$elem.animate({opacity:1},200),t.clearInterval(n.checkVisible))},500)},wrapItems:function(){this.$userItems.wrapAll('<div class="owl-wrapper">').wrap('<div class="owl-item"><\/div>');this.$elem.find(".owl-wrapper").wrap('<div class="owl-wrapper-outer">');this.wrapperOuter=this.$elem.find(".owl-wrapper-outer");this.$elem.css("display","block")},baseClass:function(){var n=this.$elem.hasClass(this.options.baseClass),t=this.$elem.hasClass(this.options.theme);n||this.$elem.addClass(this.options.baseClass);t||this.$elem.addClass(this.options.theme)},updateItems:function(){var t,i;if(!1===this.options.responsive)return!1;if(!0===this.options.singleItem)return this.options.items=this.orignalItems=1,this.options.itemsCustom=!1,this.options.itemsDesktop=!1,this.options.itemsDesktopSmall=!1,this.options.itemsTablet=!1,this.options.itemsTabletSmall=!1,this.options.itemsMobile=!1;if(t=n(this.options.responsiveBaseWidth).width(),t>(this.options.itemsDesktop[0]||this.orignalItems)&&(this.options.items=this.orignalItems),!1!==this.options.itemsCustom)for(this.options.itemsCustom.sort(function(n,t){return n[0]-t[0]}),i=0;i<this.options.itemsCustom.length;i+=1)this.options.itemsCustom[i][0]<=t&&(this.options.items=this.options.itemsCustom[i][1]);else t<=this.options.itemsDesktop[0]&&!1!==this.options.itemsDesktop&&(this.options.items=this.options.itemsDesktop[1]),t<=this.options.itemsDesktopSmall[0]&&!1!==this.options.itemsDesktopSmall&&(this.options.items=this.options.itemsDesktopSmall[1]),t<=this.options.itemsTablet[0]&&!1!==this.options.itemsTablet&&(this.options.items=this.options.itemsTablet[1]),t<=this.options.itemsTabletSmall[0]&&!1!==this.options.itemsTabletSmall&&(this.options.items=this.options.itemsTabletSmall[1]),t<=this.options.itemsMobile[0]&&!1!==this.options.itemsMobile&&(this.options.items=this.options.itemsMobile[1]);this.options.items>this.itemsAmount&&!0===this.options.itemsScaleUp&&(this.options.items=this.itemsAmount)},response:function(){var i=this,u,r;if(!0!==i.options.responsive)return!1;r=n(t).width();i.resizer=function(){n(t).width()!==r&&(!1!==i.options.autoPlay&&t.clearInterval(i.autoPlayInterval),t.clearTimeout(u),u=t.setTimeout(function(){r=n(t).width();i.updateVars()},i.options.responsiveRefreshRate))};n(t).resize(i.resizer)},updatePosition:function(){this.jumpTo(this.currentItem);!1!==this.options.autoPlay&&this.checkAp()},appendItemsSizes:function(){var t=this,i=0,r=t.itemsAmount-t.options.items;t.$owlItems.each(function(u){var f=n(this);f.css({width:t.itemWidth}).data("owl-item",Number(u));(0==u%t.options.items||u===r)&&(u>r||(i+=1));f.data("owl-roundPages",i)})},appendWrapperSizes:function(){this.$owlWrapper.css({width:this.$owlItems.length*this.itemWidth*2,left:0});this.appendItemsSizes()},calculateAll:function(){this.calculateWidth();this.appendWrapperSizes();this.loops();this.max()},calculateWidth:function(){this.itemWidth=Math.round(this.$elem.width()/this.options.items)},max:function(){var n=-1*(this.itemsAmount*this.itemWidth-this.options.items*this.itemWidth);return this.options.items>this.itemsAmount?this.maximumPixels=n=this.maximumItem=0:(this.maximumItem=this.itemsAmount-this.options.items,this.maximumPixels=n),n},min:function(){return 0},loops:function(){var r=0,u=0,t,i;for(this.positionsInArray=[0],this.pagesInArray=[],t=0;t<this.itemsAmount;t+=1)u+=this.itemWidth,this.positionsInArray.push(-u),!0===this.options.scrollPerPage&&(i=n(this.$owlItems[t]),i=i.data("owl-roundPages"),i!==r&&(this.pagesInArray[r]=this.positionsInArray[t],r=i))},buildControls:function(){(!0===this.options.navigation||!0===this.options.pagination)&&(this.owlControls=n('<div class="owl-controls"/>').toggleClass("clickable",!this.browser.isTouch).appendTo(this.$elem));!0===this.options.pagination&&this.buildPagination();!0===this.options.navigation&&this.buildButtons()},buildButtons:function(){var t=this,i=n('<div class="owl-buttons"/>');t.owlControls.append(i);t.buttonPrev=n("<div/>",{"class":"owl-prev",html:t.options.navigationText[0]||""});t.buttonNext=n("<div/>",{"class":"owl-next",html:t.options.navigationText[1]||""});i.append(t.buttonPrev).append(t.buttonNext);i.on("touchstart.owlControls mousedown.owlControls",'div[class^="owl"]',function(n){n.preventDefault()});i.on("touchend.owlControls mouseup.owlControls",'div[class^="owl"]',function(i){i.preventDefault();n(this).hasClass("owl-next")?t.next():t.prev()})},buildPagination:function(){var t=this;t.paginationWrapper=n('<div class="owl-pagination"/>');t.owlControls.append(t.paginationWrapper);t.paginationWrapper.on("touchend.owlControls mouseup.owlControls",".owl-page",function(i){i.preventDefault();Number(n(this).data("owl-page"))!==t.currentItem&&t.goTo(Number(n(this).data("owl-page")),!0)})},updatePagination:function(){var r,u,f,t,i,e;if(!1===this.options.pagination)return!1;for(this.paginationWrapper.html(""),r=0,u=this.itemsAmount-this.itemsAmount%this.options.items,t=0;t<this.itemsAmount;t+=1)0==t%this.options.items&&(r+=1,u===t&&(f=this.itemsAmount-this.options.items),i=n("<div/>",{"class":"owl-page"}),e=n("<span><\/span>",{text:!0===this.options.paginationNumbers?r:"","class":!0===this.options.paginationNumbers?"owl-numbers":""}),i.append(e),i.data("owl-page",u===t?f:t),i.data("owl-roundPages",r),this.paginationWrapper.append(i));this.checkPagination()},checkPagination:function(){var t=this;if(!1===t.options.pagination)return!1;t.paginationWrapper.find(".owl-page").each(function(){n(this).data("owl-roundPages")===n(t.$owlItems[t.currentItem]).data("owl-roundPages")&&(t.paginationWrapper.find(".owl-page").removeClass("active"),n(this).addClass("active"))})},checkNavigation:function(){if(!1===this.options.navigation)return!1;!1===this.options.rewindNav&&(0===this.currentItem&&0===this.maximumItem?(this.buttonPrev.addClass("disabled"),this.buttonNext.addClass("disabled")):0===this.currentItem&&0!==this.maximumItem?(this.buttonPrev.addClass("disabled"),this.buttonNext.removeClass("disabled")):this.currentItem===this.maximumItem?(this.buttonPrev.removeClass("disabled"),this.buttonNext.addClass("disabled")):0!==this.currentItem&&this.currentItem!==this.maximumItem&&(this.buttonPrev.removeClass("disabled"),this.buttonNext.removeClass("disabled")))},updateControls:function(){this.updatePagination();this.checkNavigation();this.owlControls&&(this.options.items>=this.itemsAmount?this.owlControls.hide():this.owlControls.show())},destroyControls:function(){this.owlControls&&this.owlControls.remove()},next:function(n){if(this.isTransition)return!1;if(this.currentItem+=!0===this.options.scrollPerPage?this.options.items:1,this.currentItem>this.maximumItem+(!0===this.options.scrollPerPage?this.options.items-1:0))if(!0===this.options.rewindNav)this.currentItem=0,n="rewind";else return this.currentItem=this.maximumItem,!1;this.goTo(this.currentItem,n)},prev:function(n){if(this.isTransition)return!1;if(this.currentItem=!0===this.options.scrollPerPage&&0<this.currentItem&&this.currentItem<this.options.items?0:this.currentItem-(!0===this.options.scrollPerPage?this.options.items:1),0>this.currentItem)if(!0===this.options.rewindNav)this.currentItem=this.maximumItem,n="rewind";else return this.currentItem=0,!1;this.goTo(this.currentItem,n)},goTo:function(n,i,r){var u=this;if(u.isTransition)return!1;if("function"==typeof u.options.beforeMove&&u.options.beforeMove.apply(this,[u.$elem]),n>=u.maximumItem?n=u.maximumItem:0>=n&&(n=0),u.currentItem=u.owl.currentItem=n,!1!==u.options.transitionStyle&&"drag"!==r&&1===u.options.items&&!0===u.browser.support3d)return u.swapSpeed(0),!0===u.browser.support3d?u.transition3d(u.positionsInArray[n]):u.css2slide(u.positionsInArray[n],1),u.afterGo(),u.singleItemTransition(),!1;n=u.positionsInArray[n];!0===u.browser.support3d?(u.isCss3Finish=!1,!0===i?(u.swapSpeed("paginationSpeed"),t.setTimeout(function(){u.isCss3Finish=!0},u.options.paginationSpeed)):"rewind"===i?(u.swapSpeed(u.options.rewindSpeed),t.setTimeout(function(){u.isCss3Finish=!0},u.options.rewindSpeed)):(u.swapSpeed("slideSpeed"),t.setTimeout(function(){u.isCss3Finish=!0},u.options.slideSpeed)),u.transition3d(n)):!0===i?u.css2slide(n,u.options.paginationSpeed):"rewind"===i?u.css2slide(n,u.options.rewindSpeed):u.css2slide(n,u.options.slideSpeed);u.afterGo()},jumpTo:function(n){"function"==typeof this.options.beforeMove&&this.options.beforeMove.apply(this,[this.$elem]);n>=this.maximumItem||-1===n?n=this.maximumItem:0>=n&&(n=0);this.swapSpeed(0);!0===this.browser.support3d?this.transition3d(this.positionsInArray[n]):this.css2slide(this.positionsInArray[n],1);this.currentItem=this.owl.currentItem=n;this.afterGo()},afterGo:function(){this.prevArr.push(this.currentItem);this.prevItem=this.owl.prevItem=this.prevArr[this.prevArr.length-2];this.prevArr.shift(0);this.prevItem!==this.currentItem&&(this.checkPagination(),this.checkNavigation(),this.eachMoveUpdate(),!1!==this.options.autoPlay&&this.checkAp());"function"==typeof this.options.afterMove&&this.prevItem!==this.currentItem&&this.options.afterMove.apply(this,[this.$elem])},stop:function(){this.apStatus="stop";t.clearInterval(this.autoPlayInterval)},checkAp:function(){"stop"!==this.apStatus&&this.play()},play:function(){var n=this;if(n.apStatus="play",!1===n.options.autoPlay)return!1;t.clearInterval(n.autoPlayInterval);n.autoPlayInterval=t.setInterval(function(){n.next(!0)},n.options.autoPlay)},swapSpeed:function(n){"slideSpeed"===n?this.$owlWrapper.css(this.addCssSpeed(this.options.slideSpeed)):"paginationSpeed"===n?this.$owlWrapper.css(this.addCssSpeed(this.options.paginationSpeed)):"string"!=typeof n&&this.$owlWrapper.css(this.addCssSpeed(n))},addCssSpeed:function(n){return{"-webkit-transition":"all "+n+"ms ease","-moz-transition":"all "+n+"ms ease","-o-transition":"all "+n+"ms ease",transition:"all "+n+"ms ease"}},removeTransition:function(){return{"-webkit-transition":"","-moz-transition":"","-o-transition":"",transition:""}},doTranslate:function(n){return{"-webkit-transform":"translate3d("+n+"px, 0px, 0px)","-moz-transform":"translate3d("+n+"px, 0px, 0px)","-o-transform":"translate3d("+n+"px, 0px, 0px)","-ms-transform":"translate3d("+n+"px, 0px, 0px)",transform:"translate3d("+n+"px, 0px,0px)"}},transition3d:function(n){this.$owlWrapper.css(this.doTranslate(n))},css2move:function(n){this.$owlWrapper.css({left:n})},css2slide:function(n,t){var i=this;i.isCssFinish=!1;i.$owlWrapper.stop(!0,!0).animate({left:n},{duration:t||i.options.slideSpeed,complete:function(){i.isCssFinish=!0}})},checkBrowser:function(){var n=i.createElement("div");n.style.cssText="  -moz-transform:translate3d(0px, 0px, 0px); -ms-transform:translate3d(0px, 0px, 0px); -o-transform:translate3d(0px, 0px, 0px); -webkit-transform:translate3d(0px, 0px, 0px); transform:translate3d(0px, 0px, 0px)";n=n.style.cssText.match(/translate3d\(0px, 0px, 0px\)/g);this.browser={support3d:null!==n&&1===n.length,isTouch:"ontouchstart"in t||t.navigator.msMaxTouchPoints}},moveEvents:function(){(!1!==this.options.mouseDrag||!1!==this.options.touchDrag)&&(this.gestures(),this.disabledEvents())},eventTypes:function(){var n=["s","e","x"];this.ev_types={};!0===this.options.mouseDrag&&!0===this.options.touchDrag?n=["touchstart.owl mousedown.owl","touchmove.owl mousemove.owl","touchend.owl touchcancel.owl mouseup.owl"]:!1===this.options.mouseDrag&&!0===this.options.touchDrag?n=["touchstart.owl","touchmove.owl","touchend.owl touchcancel.owl"]:!0===this.options.mouseDrag&&!1===this.options.touchDrag&&(n=["mousedown.owl","mousemove.owl","mouseup.owl"]);this.ev_types.start=n[0];this.ev_types.move=n[1];this.ev_types.end=n[2]},disabledEvents:function(){this.$elem.on("dragstart.owl",function(n){n.preventDefault()});this.$elem.on("mousedown.disableTextSelect",function(t){return n(t.target).is("input, textarea, select, option")})},gestures:function(){function f(n){if(void 0!==n.touches)return{x:n.touches[0].pageX,y:n.touches[0].pageY};if(void 0===n.touches){if(void 0!==n.pageX)return{x:n.pageX,y:n.pageY};if(void 0===n.pageX)return{x:n.clientX,y:n.clientY}}}function e(t){"on"===t?(n(i).on(r.ev_types.move,o),n(i).on(r.ev_types.end,s)):"off"===t&&(n(i).off(r.ev_types.move),n(i).off(r.ev_types.end))}function o(e){e=e.originalEvent||e||t.event;r.newPosX=f(e).x-u.offsetX;r.newPosY=f(e).y-u.offsetY;r.newRelativeX=r.newPosX-u.relativePos;"function"==typeof r.options.startDragging&&!0!==u.dragging&&0!==r.newRelativeX&&(u.dragging=!0,r.options.startDragging.apply(r,[r.$elem]));(8<r.newRelativeX||-8>r.newRelativeX)&&!0===r.browser.isTouch&&(void 0!==e.preventDefault?e.preventDefault():e.returnValue=!1,u.sliding=!0);(10<r.newPosY||-10>r.newPosY)&&!1===u.sliding&&n(i).off("touchmove.owl");r.newPosX=Math.max(Math.min(r.newPosX,r.newRelativeX/5),r.maximumPixels+r.newRelativeX/5);!0===r.browser.support3d?r.transition3d(r.newPosX):r.css2move(r.newPosX)}function s(i){i=i.originalEvent||i||t.event;var f;i.target=i.target||i.srcElement;u.dragging=!1;!0!==r.browser.isTouch&&r.$owlWrapper.removeClass("grabbing");r.dragDirection=r.owl.dragDirection=0>r.newRelativeX?"left":"right";0!==r.newRelativeX&&(f=r.getNewPosition(),r.goTo(f,!1,"drag"),u.targetElement===i.target&&!0!==r.browser.isTouch&&(n(i.target).on("click.disable",function(t){t.stopImmediatePropagation();t.stopPropagation();t.preventDefault();n(t.target).off("click.disable")}),i=n._data(i.target,"events").click,f=i.pop(),i.splice(0,0,f)));e("off")}var r=this,u={offsetX:0,offsetY:0,baseElWidth:0,relativePos:0,position:null,minSwipe:null,maxSwipe:null,sliding:null,dargging:null,targetElement:null};r.isCssFinish=!0;r.$elem.on(r.ev_types.start,".owl-wrapper",function(i){i=i.originalEvent||i||t.event;var o;if(3===i.which)return!1;if(!(r.itemsAmount<=r.options.items)){if(!1===r.isCssFinish&&!r.options.dragBeforeAnimFinish||!1===r.isCss3Finish&&!r.options.dragBeforeAnimFinish)return!1;!1!==r.options.autoPlay&&t.clearInterval(r.autoPlayInterval);!0===r.browser.isTouch||r.$owlWrapper.hasClass("grabbing")||r.$owlWrapper.addClass("grabbing");r.newPosX=0;r.newRelativeX=0;n(this).css(r.removeTransition());o=n(this).position();u.relativePos=o.left;u.offsetX=f(i).x-o.left;u.offsetY=f(i).y-o.top;e("on");u.sliding=!1;u.targetElement=i.target||i.srcElement}})},getNewPosition:function(){var n=this.closestItem();return n>this.maximumItem?n=this.currentItem=this.maximumItem:0<=this.newPosX&&(this.currentItem=n=0),n},closestItem:function(){var t=this,i=!0===t.options.scrollPerPage?t.pagesInArray:t.positionsInArray,u=t.newPosX,r=null;return n.each(i,function(f,e){u-t.itemWidth/20>i[f+1]&&u-t.itemWidth/20<e&&"left"===t.moveDirection()?(r=e,t.currentItem=!0===t.options.scrollPerPage?n.inArray(r,t.positionsInArray):f):u+t.itemWidth/20<e&&u+t.itemWidth/20>(i[f+1]||i[f]-t.itemWidth)&&"right"===t.moveDirection()&&(!0===t.options.scrollPerPage?(r=i[f+1]||i[i.length-1],t.currentItem=n.inArray(r,t.positionsInArray)):(r=i[f+1],t.currentItem=f+1))}),t.currentItem},moveDirection:function(){var n;return 0>this.newRelativeX?(n="right",this.playDirection="next"):(n="left",this.playDirection="prev"),n},customEvents:function(){var n=this;n.$elem.on("owl.next",function(){n.next()});n.$elem.on("owl.prev",function(){n.prev()});n.$elem.on("owl.play",function(t,i){n.options.autoPlay=i;n.play();n.hoverStatus="play"});n.$elem.on("owl.stop",function(){n.stop();n.hoverStatus="stop"});n.$elem.on("owl.goTo",function(t,i){n.goTo(i)});n.$elem.on("owl.jumpTo",function(t,i){n.jumpTo(i)})},stopOnHover:function(){var n=this;!0===n.options.stopOnHover&&!0!==n.browser.isTouch&&!1!==n.options.autoPlay&&(n.$elem.on("mouseover",function(){n.stop()}),n.$elem.on("mouseout",function(){"stop"!==n.hoverStatus&&n.play()}))},lazyLoad:function(){var r,t,u,i,f;if(!1===this.options.lazyLoad)return!1;for(r=0;r<this.itemsAmount;r+=1)t=n(this.$owlItems[r]),"loaded"!==t.data("owl-loaded")&&(u=t.data("owl-item"),i=t.find(".lazyOwl"),"string"!=typeof i.data("src")?t.data("owl-loaded","loaded"):(void 0===t.data("owl-loaded")&&(i.hide(),t.addClass("loading").data("owl-loaded","checked")),(f=!0===this.options.lazyFollow?u>=this.currentItem:!0)&&u<this.currentItem+this.options.items&&i.length&&this.lazyPreload(t,i)))},lazyPreload:function(n,i){function u(){n.data("owl-loaded","loaded").removeClass("loading");i.removeAttr("data-src");"fade"===r.options.lazyEffect?i.fadeIn(400):i.show();"function"==typeof r.options.afterLazyLoad&&r.options.afterLazyLoad.apply(this,[r.$elem])}function f(){e+=1;r.completeImg(i.get(0))||!0===o?u():100>=e?t.setTimeout(f,100):u()}var r=this,e=0,o;"DIV"===i.prop("tagName")?(i.css("background-image","url("+i.data("src")+")"),o=!0):i[0].src=i.data("src");f()},autoHeight:function(){function u(){var r=n(i.$owlItems[i.currentItem]).height();i.wrapperOuter.css("height",r+"px");i.wrapperOuter.hasClass("autoHeight")||t.setTimeout(function(){i.wrapperOuter.addClass("autoHeight")},0)}function f(){r+=1;i.completeImg(e.get(0))?u():100>=r?t.setTimeout(f,100):i.wrapperOuter.css("height","")}var i=this,e=n(i.$owlItems[i.currentItem]).find("img"),r;void 0!==e.get(0)?(r=0,f()):u()},completeImg:function(n){return!n.complete||"undefined"!=typeof n.naturalWidth&&0===n.naturalWidth?!1:!0},onVisibleItems:function(){var t;for(!0===this.options.addClassActive&&this.$owlItems.removeClass("active"),this.visibleItems=[],t=this.currentItem;t<this.currentItem+this.options.items;t+=1)this.visibleItems.push(t),!0===this.options.addClassActive&&n(this.$owlItems[t]).addClass("active");this.owl.visibleItems=this.visibleItems},transitionTypes:function(n){this.outClass="owl-"+n+"-out";this.inClass="owl-"+n+"-in"},singleItemTransition:function(){var n=this,u=n.outClass,f=n.inClass,t=n.$owlItems.eq(n.currentItem),i=n.$owlItems.eq(n.prevItem),e=Math.abs(n.positionsInArray[n.currentItem])+n.positionsInArray[n.prevItem],r=Math.abs(n.positionsInArray[n.currentItem])+n.itemWidth/2;n.isTransition=!0;n.$owlWrapper.addClass("owl-origin").css({"-webkit-transform-origin":r+"px","-moz-perspective-origin":r+"px","perspective-origin":r+"px"});i.css({position:"relative",left:e+"px"}).addClass(u).on("webkitAnimationEnd oAnimationEnd MSAnimationEnd animationend",function(){n.endPrev=!0;i.off("webkitAnimationEnd oAnimationEnd MSAnimationEnd animationend");n.clearTransStyle(i,u)});t.addClass(f).on("webkitAnimationEnd oAnimationEnd MSAnimationEnd animationend",function(){n.endCurrent=!0;t.off("webkitAnimationEnd oAnimationEnd MSAnimationEnd animationend");n.clearTransStyle(t,f)})},clearTransStyle:function(n,t){n.css({position:"",left:""}).removeClass(t);this.endPrev&&this.endCurrent&&(this.$owlWrapper.removeClass("owl-origin"),this.isTransition=this.endCurrent=this.endPrev=!1)},owlStatus:function(){this.owl={userOptions:this.userOptions,baseElement:this.$elem,userItems:this.$userItems,owlItems:this.$owlItems,currentItem:this.currentItem,prevItem:this.prevItem,visibleItems:this.visibleItems,isTouch:this.browser.isTouch,browser:this.browser,dragDirection:this.dragDirection}},clearEvents:function(){this.$elem.off(".owl owl mousedown.disableTextSelect");n(i).off(".owl owl");n(t).off("resize",this.resizer)},unWrap:function(){0!==this.$elem.children().length&&(this.$owlWrapper.unwrap(),this.$userItems.unwrap().unwrap(),this.owlControls&&this.owlControls.remove());this.clearEvents();this.$elem.attr("style",this.$elem.data("owl-originalStyles")||"").attr("class",this.$elem.data("owl-originalClasses"))},destroy:function(){this.stop();t.clearInterval(this.checkVisible);this.unWrap();this.$elem.removeData()},reinit:function(t){t=n.extend({},this.userOptions,t);this.unWrap();this.init(t,this.$elem)},addItem:function(n,t){var i;if(!n)return!1;if(0===this.$elem.children().length)return this.$elem.append(n),this.setVars(),!1;this.unWrap();i=void 0===t||-1===t?-1:t;i>=this.$userItems.length||-1===i?this.$userItems.eq(-1).after(n):this.$userItems.eq(i).before(n);this.setVars()},removeItem:function(n){if(0===this.$elem.children().length)return!1;n=void 0===n||-1===n?-1:n;this.unWrap();this.$userItems.eq(n).remove();this.setVars()}};n.fn.owlCarousel=function(t){return this.each(function(){if(!0===n(this).data("owl-init"))return!1;n(this).data("owl-init",!0);var i=Object.create(r);i.init(t,this);n.data(this,"owlCarousel",i)})};n.fn.owlCarousel.options={items:5,itemsCustom:!1,itemsDesktop:[1199,4],itemsDesktopSmall:[979,3],itemsTablet:[768,2],itemsTabletSmall:!1,itemsMobile:[479,1],singleItem:!1,itemsScaleUp:!1,slideSpeed:200,paginationSpeed:800,rewindSpeed:1e3,autoPlay:!1,stopOnHover:!1,navigation:!1,navigationText:["prev","next"],rewindNav:!0,scrollPerPage:!1,pagination:!0,paginationNumbers:!1,responsive:!0,responsiveRefreshRate:200,responsiveBaseWidth:t,baseClass:"owl-carousel",theme:"owl-theme",lazyLoad:!1,lazyFollow:!0,lazyEffect:"fade",autoHeight:!1,jsonPath:!1,jsonSuccess:!1,dragBeforeAnimFinish:!0,mouseDrag:!0,touchDrag:!0,addClassActive:!1,transitionStyle:!1,beforeUpdate:!1,afterUpdate:!1,beforeInit:!1,afterInit:!1,beforeMove:!1,afterMove:!1,afterAction:!1,startDragging:!1,afterLazyLoad:!1}}(jQuery,window,document),function(n){var t,ut,v,o,w,h,wt,c="Close",bt="BeforeClose",ii="AfterClose",ri="BeforeAppend",ft="MarkupParse",et="Open",kt="Change",ot="mfp",u="."+ot,b="mfp-ready",dt="mfp-removing",st="mfp-prevent-close",k=function(){},ht=!!window.jQuery,f=n(window),r=function(n,i){t.ev.on(ot+n+u,i)},e=function(t,i,r,u){var f=document.createElement("div");return f.className="mfp-"+t,r&&(f.innerHTML=r),u?i&&i.appendChild(f):(f=n(f),i&&f.appendTo(i)),f},i=function(i,r){t.ev.triggerHandler(ot+i,r);t.st.callbacks&&(i=i.charAt(0).toLowerCase()+i.slice(1),t.st.callbacks[i]&&t.st.callbacks[i].apply(t,n.isArray(r)?r:[r]))},ct=function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).focus()},lt=function(i){return i===wt&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=n(t.st.closeMarkup.replace("%title%",t.st.tClose)),wt=i),t.currTemplate.closeBtn},gt=function(){n.magnificPopup.instance||(t=new k,t.init(),n.magnificPopup.instance=t)},ui=function(i){if(!n(i).hasClass(st)){var r=t.st.closeOnContentClick,u=t.st.closeOnBgClick;if(r&&u||!t.content||n(i).hasClass("mfp-close")||t.preloader&&i===t.preloader[0])return!0;if(i===t.content[0]||n.contains(t.content[0],i)){if(r)return!0}else if(u&&n.contains(document,i))return!0;return!1}},fi=function(){var n=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==n.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in n)return!0;return!1},a,d,g,nt,at,y,p,tt,s,ni,vt,ti,it,pt,rt;k.prototype={constructor:k,init:function(){var i=navigator.appVersion;t.isIE7=-1!==i.indexOf("MSIE 7.");t.isIE8=-1!==i.indexOf("MSIE 8.");t.isLowIE=t.isIE7||t.isIE8;t.isAndroid=/android/gi.test(i);t.isIOS=/iphone|ipad|ipod/gi.test(i);t.supportsTransition=fi();t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent);v=n(document.body);o=n(document);t.popupsCache={}},open:function(s){var c,l,p,w,a,k,v,d,y;if(s.isObj===!1){for(t.items=s.items.toArray(),t.index=0,p=s.items,c=0;p.length>c;c++)if(l=p[c],l.parsed&&(l=l.el[0]),l===s.el[0]){t.index=c;break}}else t.items=n.isArray(s.items)?s.items:[s.items],t.index=s.index||0;if(t.isOpen)return t.updateItemHTML(),void 0;for(t.types=[],h="",t.ev=s.mainEl&&s.mainEl.length?s.mainEl.eq(0):o,s.key?(t.popupsCache[s.key]||(t.popupsCache[s.key]={}),t.currTemplate=t.popupsCache[s.key]):t.currTemplate={},t.st=n.extend(!0,{},n.magnificPopup.defaults,s),t.fixedContentPos="auto"===t.st.fixedContentPos?!t.probablyMobile:t.st.fixedContentPos,t.st.modal&&(t.st.closeOnContentClick=!1,t.st.closeOnBgClick=!1,t.st.showCloseBtn=!1,t.st.enableEscapeKey=!1),t.bgOverlay||(t.bgOverlay=e("bg").on("click"+u,function(){t.close()}),t.wrap=e("wrap").attr("tabindex",-1).on("click"+u,function(n){ui(n.target)&&t.close()}),t.container=e("container",t.wrap)),t.contentContainer=e("content"),t.st.preloader&&(t.preloader=e("preloader",t.container,t.st.tLoading)),w=n.magnificPopup.modules,c=0;w.length>c;c++)a=w[c],a=a.charAt(0).toUpperCase()+a.slice(1),t["init"+a].call(t);i("BeforeOpen");t.st.showCloseBtn&&(t.st.closeBtnInside?(r(ft,function(n,t,i,r){i.close_replaceWith=lt(r.type)}),h+=" mfp-close-btn-in"):t.wrap.append(lt()));t.st.alignTop&&(h+=" mfp-align-top");t.fixedContentPos?t.wrap.css({overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}):t.wrap.css({top:f.scrollTop(),position:"absolute"});(t.st.fixedBgPos===!1||"auto"===t.st.fixedBgPos&&!t.fixedContentPos)&&t.bgOverlay.css({height:o.height(),position:"absolute"});t.st.enableEscapeKey&&o.on("keyup"+u,function(n){27===n.keyCode&&t.close()});f.on("resize"+u,function(){t.updateSize()});t.st.closeOnContentClick||(h+=" mfp-auto-cursor");h&&t.wrap.addClass(h);k=t.wH=f.height();v={};t.fixedContentPos&&t._hasScrollBar(k)&&(d=t._getScrollbarSize(),d&&(v.paddingRight=d));t.fixedContentPos&&(t.isIE7?n("body, html").css("overflow","hidden"):v.overflow="hidden");y=t.st.mainClass;t.isIE7&&(y+=" mfp-ie7");y&&t._addClassToMFP(y);t.updateItemHTML();i("BuildControls");n("html").css(v);t.bgOverlay.add(t.wrap).prependTo(document.body);t._lastFocusedEl=document.activeElement;setTimeout(function(){t.content?(t._addClassToMFP(b),ct()):t.bgOverlay.addClass(b);o.on("focusin"+u,function(i){if(i.target!==t.wrap[0]&&!n.contains(t.wrap[0],i.target))return(ct(),!1)})},16);t.isOpen=!0;t.updateSize(k);i(et)},close:function(){t.isOpen&&(i(bt),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP(dt),setTimeout(function(){t._close()},t.st.removalDelay)):t._close())},_close:function(){var r,f;i(c);r=dt+" "+b+" ";(t.bgOverlay.detach(),t.wrap.detach(),t.container.empty(),t.st.mainClass&&(r+=t.st.mainClass+" "),t._removeClassFromMFP(r),t.fixedContentPos)&&(f={paddingRight:""},t.isIE7?n("body, html").css("overflow",""):f.overflow="",n("html").css(f));o.off("keyup"+u+" focusin"+u);t.ev.off(u);t.wrap.attr("class","mfp-wrap").removeAttr("style");t.bgOverlay.attr("class","mfp-bg");t.container.attr("class","mfp-container");!t.st.showCloseBtn||t.st.closeBtnInside&&t.currTemplate[t.currItem.type]!==!0||t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach();t._lastFocusedEl&&n(t._lastFocusedEl).focus();t.currItem=null;t.content=null;t.currTemplate=null;t.prevHeight=0;i(ii)},updateSize:function(n){if(t.isIOS){var u=document.documentElement.clientWidth/window.innerWidth,r=window.innerHeight*u;t.wrap.css("height",r);t.wH=r}else t.wH=n||f.height();t.fixedContentPos||t.wrap.css("height",t.wH);i("Resize")},updateItemHTML:function(){var u=t.items[t.index],r,f,e;t.contentContainer.detach();t.content&&t.content.detach();u.parsed||(u=t.parseEl(t.index));r=u.type;(i("BeforeChange",[t.currItem?t.currItem.type:"",r]),t.currItem=u,t.currTemplate[r])||(f=t.st[r]?t.st[r].markup:!1,i("FirstMarkupParse",f),t.currTemplate[r]=f?n(f):!0);w&&w!==u.type&&t.container.removeClass("mfp-"+w+"-holder");e=t["get"+r.charAt(0).toUpperCase()+r.slice(1)](u,t.currTemplate[r]);t.appendContent(e,r);u.preloaded=!0;i(kt,u);w=u.type;t.container.prepend(t.contentContainer);i("AfterChange")},appendContent:function(n,r){t.content=n;n?t.st.showCloseBtn&&t.st.closeBtnInside&&t.currTemplate[r]===!0?t.content.find(".mfp-close").length||t.content.append(lt()):t.content=n:t.content="";i(ri);t.container.addClass("mfp-"+r+"-holder");t.contentContainer.append(t.content)},parseEl:function(r){var u=t.items[r],o=u.type,e,f;if(u=u.tagName?{el:n(u)}:{data:u,src:u.src},u.el){for(e=t.types,f=0;e.length>f;f++)if(u.el.hasClass("mfp-"+e[f])){o=e[f];break}u.src=u.el.attr("data-mfp-src");u.src||(u.src=u.el.attr("href"))}return u.type=o||t.st.type||"inline",u.index=r,u.parsed=!0,t.items[r]=u,i("ElementParse",u),t.items[r]},addGroup:function(n,i){var u=function(r){r.mfpEl=this;t._openClick(r,n,i)},r;i||(i={});r="click.magnificPopup";i.mainEl=n;i.items?(i.isObj=!0,n.off(r).on(r,u)):(i.isObj=!1,i.delegate?n.off(r).on(r,i.delegate,u):(i.items=n,n.off(r).on(r,u)))},_openClick:function(i,r,u){var o=void 0!==u.midClick?u.midClick:n.magnificPopup.defaults.midClick,e;if(o||2!==i.which&&!i.ctrlKey&&!i.metaKey){if(e=void 0!==u.disableOn?u.disableOn:n.magnificPopup.defaults.disableOn,e)if(n.isFunction(e)){if(!e.call(t))return!0}else if(e>f.width())return!0;i.type&&(i.preventDefault(),t.isOpen&&i.stopPropagation());u.el=n(i.mfpEl);u.delegate&&(u.items=r.find(u.delegate));t.open(u)}},updateStatus:function(n,r){if(t.preloader){ut!==n&&t.container.removeClass("mfp-s-"+ut);r||"loading"!==n||(r=t.st.tLoading);var u={status:n,text:r};i("UpdateStatus",u);n=u.status;r=u.text;t.preloader.html(r);t.preloader.find("a").on("click",function(n){n.stopImmediatePropagation()});t.container.addClass("mfp-s-"+n);ut=n}},_addClassToMFP:function(n){t.bgOverlay.addClass(n);t.wrap.addClass(n)},_removeClassFromMFP:function(n){this.bgOverlay.removeClass(n);t.wrap.removeClass(n)},_hasScrollBar:function(n){return(t.isIE7?o.height():document.body.scrollHeight)>(n||f.height())},_parseMarkup:function(t,r,f){var e;f.data&&(r=n.extend(f.data,r));i(ft,[t,r,f]);n.each(r,function(n,i){var r,f;if(void 0===i||i===!1)return!0;(e=n.split("_"),e.length>1)?(r=t.find(u+"-"+e[0]),r.length>0&&(f=e[1],"replaceWith"===f?r[0]!==i[0]&&r.replaceWith(i):"img"===f?r.is("img")?r.attr("src",i):r.replaceWith('<img src="'+i+'" class="'+r.attr("class")+'" />'):r.attr(e[1],i))):t.find(u+"-"+n).html(i)})},_getScrollbarSize:function(){if(void 0===t.scrollbarSize){var n=document.createElement("div");n.id="mfp-sbm";n.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;";document.body.appendChild(n);t.scrollbarSize=n.offsetWidth-n.clientWidth;document.body.removeChild(n)}return t.scrollbarSize}};n.magnificPopup={instance:null,proto:k.prototype,modules:[],open:function(n,t){return gt(),n||(n={}),n.isObj=!0,n.index=t||0,this.instance.open(n)},close:function(){return n.magnificPopup.instance.close()},registerModule:function(t,i){i.options&&(n.magnificPopup.defaults[t]=i.options);n.extend(this.proto,i.proto);this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&times;<\/button>',tClose:"Close (Esc)",tLoading:"Loading..."}};n.fn.magnificPopup=function(i){var r,u,f,e;return gt(),r=n(this),"string"==typeof i?"open"===i?(f=ht?r.data("magnificPopup"):r[0].magnificPopup,e=parseInt(arguments[1],10)||0,f.items?u=f.items[e]:(u=r,f.delegate&&(u=u.find(f.delegate)),u=u.eq(e)),t._openClick({mfpEl:u},r,f)):t.isOpen&&t[i].apply(t,Array.prototype.slice.call(arguments,1)):(ht?r.data("magnificPopup",i):r[0].magnificPopup=i,t.addGroup(r,i)),r};nt="inline";at=function(){g&&(d.after(g.addClass(a)).detach(),g=null)};n.magnificPopup.registerModule(nt,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push(nt);r(c+"."+nt,function(){at()})},getInline:function(i,r){var f,u,o;return(at(),i.src)?(f=t.st.inline,u=n(i.src),u.length?(o=u[0].parentNode,o&&o.tagName&&(d||(a=f.hiddenClass,d=e(a),a="mfp-"+a),g=u.after(d).detach().removeClass(a)),t.updateStatus("ready")):(t.updateStatus("error",f.tNotFound),u=n("<div>")),i.inlineElement=u,u):(t.updateStatus("ready"),t._parseMarkup(r,{},i),r)}}});p="ajax";tt=function(){y&&v.removeClass(y)};n.magnificPopup.registerModule(p,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content<\/a> could not be loaded.'},proto:{initAjax:function(){t.types.push(p);y=t.st.ajax.cursor;r(c+"."+p,function(){tt();t.req&&t.req.abort()})},getAjax:function(r){y&&v.addClass(y);t.updateStatus("loading");var u=n.extend({url:r.src,success:function(u,f,e){var o={data:u,xhr:e};i("ParseAjax",o);t.appendContent(n(o.data),p);r.finished=!0;tt();ct();setTimeout(function(){t.wrap.addClass(b)},16);t.updateStatus("ready");i("AjaxContentAdded")},error:function(){tt();r.finished=r.loadError=!0;t.updateStatus("error",t.st.ajax.tError.replace("%url%",r.src))}},t.st.ajax.settings);return t.req=n.ajax(u),""}}});ni=function(i){if(i.data&&void 0!==i.data.title)return i.data.title;var r=t.st.image.titleSrc;if(r){if(n.isFunction(r))return r.call(t,i);if(i.el)return i.el.attr(r)||""}return""};n.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"><\/div><div class="mfp-img"><\/div><div class="mfp-bottom-bar"><div class="mfp-title"><\/div><div class="mfp-counter"><\/div><\/div><\/div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image<\/a> could not be loaded.'},proto:{initImage:function(){var n=t.st.image,i=".image";t.types.push("image");r(et+i,function(){"image"===t.currItem.type&&n.cursor&&v.addClass(n.cursor)});r(c+i,function(){n.cursor&&v.removeClass(n.cursor);f.off("resize"+u)});r("Resize"+i,t.resizeImage);t.isLowIE&&r("AfterChange",t.resizeImage)},resizeImage:function(){var n=t.currItem,i;n&&n.img&&t.st.image.verticalFit&&(i=0,t.isLowIE&&(i=parseInt(n.img.css("padding-top"),10)+parseInt(n.img.css("padding-bottom"),10)),n.img.css("max-height",t.wH-i))},_onImageHasSize:function(n){n.img&&(n.hasSize=!0,s&&clearInterval(s),n.isCheckingImgSize=!1,i("ImageHasSize",n),n.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),n.imgHidden=!1))},findImageSize:function(n){var i=0,u=n.img[0],r=function(f){s&&clearInterval(s);s=setInterval(function(){return u.naturalWidth>0?(t._onImageHasSize(n),void 0):(i>200&&clearInterval(s),i++,3===i?r(10):40===i?r(50):100===i&&r(500),void 0)},f)};r(1)},getImage:function(r,u){var e=0,o=function(){r&&(r.img[0].complete?(r.img.off(".mfploader"),r===t.currItem&&(t._onImageHasSize(r),t.updateStatus("ready")),r.hasSize=!0,r.loaded=!0,i("ImageLoadComplete")):(e++,200>e?setTimeout(o,100):h()))},h=function(){r&&(r.img.off(".mfploader"),r===t.currItem&&(t._onImageHasSize(r),t.updateStatus("error",c.tError.replace("%url%",r.src))),r.hasSize=!0,r.loaded=!0,r.loadError=!0)},c=t.st.image,l=u.find(".mfp-img"),f;return l.length&&(f=document.createElement("img"),f.className="mfp-img",r.img=n(f).on("load.mfploader",o).on("error.mfploader",h),f.src=r.src,l.is("img")&&(r.img=r.img.clone()),r.img[0].naturalWidth>0&&(r.hasSize=!0)),t._parseMarkup(u,{title:ni(r),img_replaceWith:r.img},r),t.resizeImage(),r.hasSize?(s&&clearInterval(s),r.loadError?(u.addClass("mfp-loading"),t.updateStatus("error",c.tError.replace("%url%",r.src))):(u.removeClass("mfp-loading"),t.updateStatus("ready")),u):(t.updateStatus("loading"),r.loading=!0,r.hasSize||(r.imgHidden=!0,u.addClass("mfp-loading"),t.findImageSize(r)),u)}}});ti=function(){return void 0===vt&&(vt=void 0!==document.createElement("p").style.MozTransform),vt};n.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(n){return n.is("img")?n:n.find("img")}},proto:{initZoom:function(){var u=t.st.zoom,e=".zoom";if(u.enabled&&t.supportsTransition){var f,n,s=u.duration,h=function(n){var r=n.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),f="all "+u.duration/1e3+"s "+u.easing,t={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},i="transition";return t["-webkit-"+i]=t["-moz-"+i]=t["-o-"+i]=t[i]=f,r.css(t),r},o=function(){t.content.css("visibility","visible")};r("BuildControls"+e,function(){if(t._allowZoom()){if(clearTimeout(f),t.content.css("visibility","hidden"),image=t._getItemToZoom(),!image)return o(),void 0;n=h(image);n.css(t._getOffset());t.wrap.append(n);f=setTimeout(function(){n.css(t._getOffset(!0));f=setTimeout(function(){o();setTimeout(function(){n.remove();image=n=null;i("ZoomAnimationEnded")},16)},s)},16)}});r(bt+e,function(){if(t._allowZoom()){if(clearTimeout(f),t.st.removalDelay=s,!image){if(image=t._getItemToZoom(),!image)return;n=h(image)}n.css(t._getOffset(!0));t.wrap.append(n);t.content.css("visibility","hidden");setTimeout(function(){n.css(t._getOffset())},16)}});r(c+e,function(){t._allowZoom()&&(o(),n&&n.remove())})}},_allowZoom:function(){return"image"===t.currItem.type},_getItemToZoom:function(){return t.currItem.hasSize?t.currItem.img:!1},_getOffset:function(i){var r,u;r=i?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem);var f=r.offset(),e=parseInt(r.css("padding-top"),10),o=parseInt(r.css("padding-bottom"),10);return f.top-=n(window).scrollTop()-e,u={width:r.width(),height:(ht?r.innerHeight():r[0].offsetHeight)-o-e},ti()?u["-moz-transform"]=u.transform="translate("+f.left+"px,"+f.top+"px)":(u.left=f.left,u.top=f.top),u}}});var l="iframe",ei="//about:blank",yt=function(n){if(t.currTemplate[l]){var i=t.currTemplate[l].find("iframe");i.length&&(n||(i[0].src=ei),t.isIE8&&i.css("display",n?"block":"none"))}};n.magnificPopup.registerModule(l,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"><\/div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen><\/iframe><\/div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){t.types.push(l);r("BeforeChange",function(n,t,i){t!==i&&(t===l?yt():i===l&&yt(!0))});r(c+"."+l,function(){yt()})},getIframe:function(i,r){var u=i.src,f=t.st.iframe,e;return n.each(f.patterns,function(){if(u.indexOf(this.index)>-1)return(this.id&&(u="string"==typeof this.id?u.substr(u.lastIndexOf(this.id)+this.id.length,u.length):this.id.call(this,u)),u=this.src.replace("%id%",u),!1)}),e={},f.srcAction&&(e[f.srcAction]=u),t._parseMarkup(r,e,i),t.updateStatus("ready"),r}}});it=function(n){var i=t.items.length;return n>i-1?n-i:0>n?i+n:n};pt=function(n,t,i){return n.replace("%curr%",t+1).replace("%total%",i)};n.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"><\/button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var u=t.st.gallery,i=".mfp-gallery",f=Boolean(n.fn.mfpFastClick);return t.direction=!0,u&&u.enabled?(h+=" mfp-gallery",r(et+i,function(){u.navigateByImgClick&&t.wrap.on("click"+i,".mfp-img",function(){if(t.items.length>1)return(t.next(),!1)});o.on("keydown"+i,function(n){37===n.keyCode?t.prev():39===n.keyCode&&t.next()})}),r("UpdateStatus"+i,function(n,i){i.text&&(i.text=pt(i.text,t.currItem.index,t.items.length))}),r(ft+i,function(n,i,r,f){var e=t.items.length;r.counter=e>1?pt(u.tCounter,f.index,e):""}),r("BuildControls"+i,function(){if(t.items.length>1&&u.arrows&&!t.arrowLeft){var o=u.arrowMarkup,i=t.arrowLeft=n(o.replace("%title%",u.tPrev).replace("%dir%","left")).addClass(st),r=t.arrowRight=n(o.replace("%title%",u.tNext).replace("%dir%","right")).addClass(st),s=f?"mfpFastClick":"click";i[s](function(){t.prev()});r[s](function(){t.next()});t.isIE7&&(e("b",i[0],!1,!0),e("a",i[0],!1,!0),e("b",r[0],!1,!0),e("a",r[0],!1,!0));t.container.append(i.add(r))}}),r(kt+i,function(){t._preloadTimeout&&clearTimeout(t._preloadTimeout);t._preloadTimeout=setTimeout(function(){t.preloadNearbyImages();t._preloadTimeout=null},16)}),r(c+i,function(){o.off(i);t.wrap.off("click"+i);t.arrowLeft&&f&&t.arrowLeft.add(t.arrowRight).destroyMfpFastClick();t.arrowRight=t.arrowLeft=null}),void 0):!1},next:function(){t.direction=!0;t.index=it(t.index+1);t.updateItemHTML()},prev:function(){t.direction=!1;t.index=it(t.index-1);t.updateItemHTML()},goTo:function(n){t.direction=n>=t.index;t.index=n;t.updateItemHTML()},preloadNearbyImages:function(){for(var i=t.st.gallery.preload,r=Math.min(i[0],t.items.length),u=Math.min(i[1],t.items.length),n=1;(t.direction?u:r)>=n;n++)t._preloadItem(t.index+n);for(n=1;(t.direction?r:u)>=n;n++)t._preloadItem(t.index-n)},_preloadItem:function(r){if(r=it(r),!t.items[r].preloaded){var u=t.items[r];u.parsed||(u=t.parseEl(r));i("LazyLoad",u);"image"===u.type&&(u.img=n('<img class="mfp-img" />').on("load.mfploader",function(){u.hasSize=!0}).on("error.mfploader",function(){u.hasSize=!0;u.loadError=!0;i("LazyLoadError",u)}).attr("src",u.src));u.preloaded=!0}}}});rt="retina";n.magnificPopup.registerModule(rt,{options:{replaceSrc:function(n){return n.src.replace(/\.\w+$/,function(n){return"@2x"+n})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var i=t.st.retina,n=i.ratio;n=isNaN(n)?n():n;n>1&&(r("ImageHasSize."+rt,function(t,i){i.img.css({"max-width":i.img[0].naturalWidth/n,width:"100%"})}),r("ElementParse."+rt,function(t,r){r.src=i.replaceSrc(r,n)}))}}}}),function(){var u=1e3,i="ontouchstart"in window,r=function(){f.off("touchmove"+t+" touchend"+t)},t=".mfpFastClick";n.fn.mfpFastClick=function(e){return n(this).each(function(){var s,l=n(this),a,v,y,h,o,c;if(i)l.on("touchstart"+t,function(n){h=!1;c=1;o=n.originalEvent?n.originalEvent.touches[0]:n.touches[0];v=o.clientX;y=o.clientY;f.on("touchmove"+t,function(n){o=n.originalEvent?n.originalEvent.touches:n.touches;c=o.length;o=o[0];(Math.abs(o.clientX-v)>10||Math.abs(o.clientY-y)>10)&&(h=!0,r())}).on("touchend"+t,function(n){r();h||c>1||(s=!0,n.preventDefault(),clearTimeout(a),a=setTimeout(function(){s=!1},u),e())})});l.on("click"+t,function(){s||e()})})};n.fn.destroyMfpFastClick=function(){n(this).off("touchstart"+t+" click"+t);i&&f.off("touchmove"+t+" touchend"+t)}}()}(window.jQuery||window.Zepto);ytp=ytp||{};!function(n,t){var i=navigator.userAgent,o,r,f,e,s,u;n.browser||(n.browser={},n.browser.mozilla=!1,n.browser.webkit=!1,n.browser.opera=!1,n.browser.safari=!1,n.browser.chrome=!1,n.browser.msie=!1,n.browser.ua=i,n.browser.name=navigator.appName,n.browser.fullVersion=""+parseFloat(navigator.appVersion),n.browser.majorVersion=parseInt(navigator.appVersion,10),-1!=(r=i.indexOf("Opera"))?(n.browser.opera=!0,n.browser.name="Opera",n.browser.fullVersion=i.substring(r+6),-1!=(r=i.indexOf("Version"))&&(n.browser.fullVersion=i.substring(r+8))):-1!=(r=i.indexOf("MSIE"))?(n.browser.msie=!0,n.browser.name="Microsoft Internet Explorer",n.browser.fullVersion=i.substring(r+5)):-1!=i.indexOf("Trident")?(n.browser.msie=!0,n.browser.name="Microsoft Internet Explorer",e=i.indexOf("rv:")+3,s=e+4,n.browser.fullVersion=i.substring(e,s)):-1!=(r=i.indexOf("Chrome"))?(n.browser.webkit=!0,n.browser.chrome=!0,n.browser.name="Chrome",n.browser.fullVersion=i.substring(r+7)):-1!=(r=i.indexOf("Safari"))?(n.browser.webkit=!0,n.browser.safari=!0,n.browser.name="Safari",n.browser.fullVersion=i.substring(r+7),-1!=(r=i.indexOf("Version"))&&(n.browser.fullVersion=i.substring(r+8))):-1!=(r=i.indexOf("AppleWebkit"))?(n.browser.webkit=!0,n.browser.name="Safari",n.browser.fullVersion=i.substring(r+7),-1!=(r=i.indexOf("Version"))&&(n.browser.fullVersion=i.substring(r+8))):-1!=(r=i.indexOf("Firefox"))?(n.browser.mozilla=!0,n.browser.name="Firefox",n.browser.fullVersion=i.substring(r+8)):(o=i.lastIndexOf(" ")+1)<(r=i.lastIndexOf("/"))&&(n.browser.name=i.substring(o,r),n.browser.fullVersion=i.substring(r+1),n.browser.name.toLowerCase()==n.browser.name.toUpperCase()&&(n.browser.name=navigator.appName)),-1!=(f=n.browser.fullVersion.indexOf(";"))&&(n.browser.fullVersion=n.browser.fullVersion.substring(0,f)),-1!=(f=n.browser.fullVersion.indexOf(" "))&&(n.browser.fullVersion=n.browser.fullVersion.substring(0,f)),n.browser.majorVersion=parseInt(""+n.browser.fullVersion,10),isNaN(n.browser.majorVersion)&&(n.browser.fullVersion=""+parseFloat(navigator.appVersion),n.browser.majorVersion=parseInt(navigator.appVersion,10)),n.browser.version=n.browser.majorVersion);n.browser.android=/Android/i.test(i);n.browser.blackberry=/BlackBerry|BB|PlayBook/i.test(i);n.browser.ios=/iPhone|iPad|iPod|webOS/i.test(i);n.browser.operaMobile=/Opera Mini/i.test(i);n.browser.kindle=/Kindle|Silk/i.test(i);n.browser.windowsMobile=/IEMobile|Windows Phone/i.test(i);n.browser.mobile=n.browser.android||n.browser.blackberry||n.browser.ios||n.browser.windowsMobile||n.browser.operaMobile||n.browser.kindle;n.fn.CSSAnimate=function(t,i,r,u,f){function o(n){return n.replace(/([A-Z])/g,function(n){return"-"+n.toLowerCase()})}function e(n,t){return"string"!=typeof n||n.match(/^[\-0-9\.]+$/)?""+n+t:n}return n.support.CSStransition=function(){var n=(document.body||document.documentElement).style;return void 0!==n.transition||void 0!==n.WebkitTransition||void 0!==n.MozTransition||void 0!==n.MsTransition||void 0!==n.OTransition}(),this.each(function(){var l=this,a=n(this),v,s,c,y,h;if(l.id=l.id||"CSSA_"+(new Date).getTime(),v=v||{type:"noEvent"},l.CSSAIsRunning&&l.eventType==v.type)l.CSSqueue=function(){a.CSSAnimate(t,i,r,u,f)};else if(l.CSSqueue=null,l.eventType=v.type,0!==a.length&&t){if(l.CSSAIsRunning=!0,"function"==typeof i&&(f=i,i=n.fx.speeds._default),"function"==typeof r&&(f=r,r=0),"function"==typeof u&&(f=u,u="cubic-bezier(0.65,0.03,0.36,0.72)"),"string"==typeof i)for(s in n.fx.speeds){if(i==s){i=n.fx.speeds[s];break}i=n.fx.speeds._default}if(i||(i=n.fx.speeds._default),n.support.CSStransition){v={"default":"ease","in":"ease-in",out:"ease-out","in-out":"ease-in-out",snap:"cubic-bezier(0,1,.5,1)",easeOutCubic:"cubic-bezier(.215,.61,.355,1)",easeInOutCubic:"cubic-bezier(.645,.045,.355,1)",easeInCirc:"cubic-bezier(.6,.04,.98,.335)",easeOutCirc:"cubic-bezier(.075,.82,.165,1)",easeInOutCirc:"cubic-bezier(.785,.135,.15,.86)",easeInExpo:"cubic-bezier(.95,.05,.795,.035)",easeOutExpo:"cubic-bezier(.19,1,.22,1)",easeInOutExpo:"cubic-bezier(1,0,0,1)",easeInQuad:"cubic-bezier(.55,.085,.68,.53)",easeOutQuad:"cubic-bezier(.25,.46,.45,.94)",easeInOutQuad:"cubic-bezier(.455,.03,.515,.955)",easeInQuart:"cubic-bezier(.895,.03,.685,.22)",easeOutQuart:"cubic-bezier(.165,.84,.44,1)",easeInOutQuart:"cubic-bezier(.77,0,.175,1)",easeInQuint:"cubic-bezier(.755,.05,.855,.06)",easeOutQuint:"cubic-bezier(.23,1,.32,1)",easeInOutQuint:"cubic-bezier(.86,0,.07,1)",easeInSine:"cubic-bezier(.47,0,.745,.715)",easeOutSine:"cubic-bezier(.39,.575,.565,1)",easeInOutSine:"cubic-bezier(.445,.05,.55,.95)",easeInBack:"cubic-bezier(.6,-.28,.735,.045)",easeOutBack:"cubic-bezier(.175, .885,.32,1.275)",easeInOutBack:"cubic-bezier(.68,-.55,.265,1.55)"};v[u]&&(u=v[u]);c="";y="transitionEnd";n.browser.webkit?(c="-webkit-",y="webkitTransitionEnd"):n.browser.mozilla?(c="-moz-",y="transitionend"):n.browser.opera?(c="-o-",y="otransitionend"):n.browser.msie&&(c="-ms-",y="msTransitionEnd");v=[];for(h in t)s=h,"transform"===s&&(s=c+"transform",t[s]=t[h],delete t[h]),"filter"===s&&(s=c+"filter",t[s]=t[h],delete t[h]),("transform-origin"===s||"origin"===s)&&(s=c+"transform-origin",t[s]=t[h],delete t[h]),"x"===s&&(s=c+"transform",t[s]=t[s]||"",t[s]+=" translateX("+e(t[h],"px")+")",delete t[h]),"y"===s&&(s=c+"transform",t[s]=t[s]||"",t[s]+=" translateY("+e(t[h],"px")+")",delete t[h]),"z"===s&&(s=c+"transform",t[s]=t[s]||"",t[s]+=" translateZ("+e(t[h],"px")+")",delete t[h]),"rotate"===s&&(s=c+"transform",t[s]=t[s]||"",t[s]+=" rotate("+e(t[h],"deg")+")",delete t[h]),"rotateX"===s&&(s=c+"transform",t[s]=t[s]||"",t[s]+=" rotateX("+e(t[h],"deg")+")",delete t[h]),"rotateY"===s&&(s=c+"transform",t[s]=t[s]||"",t[s]+=" rotateY("+e(t[h],"deg")+")",delete t[h]),"rotateZ"===s&&(s=c+"transform",t[s]=t[s]||"",t[s]+=" rotateZ("+e(t[h],"deg")+")",delete t[h]),"scale"===s&&(s=c+"transform",t[s]=t[s]||"",t[s]+=" scale("+e(t[h],"")+")",delete t[h]),"scaleX"===s&&(s=c+"transform",t[s]=t[s]||"",t[s]+=" scaleX("+e(t[h],"")+")",delete t[h]),"scaleY"===s&&(s=c+"transform",t[s]=t[s]||"",t[s]+=" scaleY("+e(t[h],"")+")",delete t[h]),"scaleZ"===s&&(s=c+"transform",t[s]=t[s]||"",t[s]+=" scaleZ("+e(t[h],"")+")",delete t[h]),"skew"===s&&(s=c+"transform",t[s]=t[s]||"",t[s]+=" skew("+e(t[h],"deg")+")",delete t[h]),"skewX"===s&&(s=c+"transform",t[s]=t[s]||"",t[s]+=" skewX("+e(t[h],"deg")+")",delete t[h]),"skewY"===s&&(s=c+"transform",t[s]=t[s]||"",t[s]+=" skewY("+e(t[h],"deg")+")",delete t[h]),"perspective"===s&&(s=c+"transform",t[s]=t[s]||"",t[s]+=" perspective("+e(t[h],"px")+")",delete t[h]),0>v.indexOf(s)&&v.push(o(s));var h=v.join(","),w=function(){a.off(y+"."+l.id);clearTimeout(l.timeout);a.css(c+"transition","");"function"==typeof f&&f(a);l.called=!0;l.CSSAIsRunning=!1;"function"==typeof l.CSSqueue&&(l.CSSqueue(),l.CSSqueue=null)},p={};n.extend(p,t);p[c+"transition-property"]=h;p[c+"transition-duration"]=i+"ms";p[c+"transition-delay"]=r+"ms";p[c+"transition-style"]="preserve-3d";p[c+"transition-timing-function"]=u;setTimeout(function(){a.one(y+"."+l.id,w);a.css(p)},1);l.timeout=setTimeout(function(){a.called||!f?(a.called=!1,l.CSSAIsRunning=!1):(a.css(c+"transition",""),f(a),l.CSSAIsRunning=!1,"function"==typeof l.CSSqueue&&(l.CSSqueue(),l.CSSqueue=null))},i+r+100)}else{for(h in t)"transform"===h&&delete t[h],"filter"===h&&delete t[h],"transform-origin"===h&&delete t[h],"auto"===t[h]&&delete t[h];f&&"string"!=typeof f||(f="linear");a.animate(t,i,f)}}})};u=function(n){var t,i;return n.indexOf("youtu.be")>0?(t=n.substr(n.lastIndexOf("/")+1,n.length),i=t.indexOf("?list=")>0?t.substr(t.lastIndexOf("="),t.length):null,t=i?t.substr(0,t.lastIndexOf("?")):t):n.indexOf("http")>-1?(t=n.match(/[\\?&]v=([^&#]*)/)[1],i=n.indexOf("list=")>0?n.match(/[\\?&]list=([^&#]*)/)[1]:null):(t=n.length>15?null:n,i=t?null:n),{videoID:t,playlistID:i}};t.isDevice=n.browser.mobile;n.mbYTPlayer={name:"jquery.mb.YTPlayer",version:"2.7.5",author:"Matteo Bicocchi",defaults:{containment:"body",ratio:"16/9",videoURL:null,playlistURL:null,startAt:0,stopAt:0,autoPlay:!0,vol:100,addRaster:!1,opacity:1,quality:"default",mute:!1,loop:!0,showControls:!0,showAnnotations:!1,showYTLogo:!0,stopMovieOnClick:!1,realfullscreen:!0,gaTrack:!0,onReady:function(){}},controls:{play:"P",pause:"p",mute:"M",unmute:"A",onlyYT:"O",showSite:"R",ytLogo:"Y"},locationProtocol:"https:",buildPlayer:function(i){return this.each(function(){var YTPlayer=this,$YTPlayer=n(YTPlayer),property,canGoFullscreen,playerID,videoID,playlistID,playerBox,overlay,classN,retina,wrapper,tag;YTPlayer.loop=0;YTPlayer.opt={};$YTPlayer.addClass("mb_YTVPlayer");property=$YTPlayer.data("property")&&"string"==typeof $YTPlayer.data("property")?eval("("+$YTPlayer.data("property")+")"):$YTPlayer.data("property");"undefined"!=typeof property&&"undefined"!=typeof property.vol&&(property.vol=0==property.vol?property.vol=1:property.vol);n.extend(YTPlayer.opt,n.mbYTPlayer.defaults,i,property);canGoFullscreen=!(n.browser.msie||n.browser.opera||self.location.href!=top.location.href);canGoFullscreen||(YTPlayer.opt.realfullscreen=!1);$YTPlayer.attr("id")||$YTPlayer.attr("id","video_"+(new Date).getTime());playerID="mbYTP_"+YTPlayer.id;YTPlayer.isAlone=!1;YTPlayer.hasFocus=!0;videoID=this.opt.videoURL?u(this.opt.videoURL).videoID:$YTPlayer.attr("href")?u($YTPlayer.attr("href")).videoID:!1;playlistID=this.opt.videoURL?u(this.opt.videoURL).playlistID:$YTPlayer.attr("href")?u($YTPlayer.attr("href")).playlistID:!1;YTPlayer.videoID=videoID;YTPlayer.playlistID=playlistID;YTPlayer.opt.showAnnotations=YTPlayer.opt.showAnnotations?"0":"3";var playerVars={autoplay:0,modestbranding:1,controls:0,showinfo:0,rel:0,enablejsapi:1,version:3,playerapiid:playerID,origin:"*",allowfullscreen:!0,wmode:"transparent",iv_load_policy:YTPlayer.opt.showAnnotations},canPlayHTML5=!1,v=document.createElement("video");if(v.canPlayType&&(canPlayHTML5=!0),canPlayHTML5&&n.extend(playerVars,{html5:1}),n.browser.msie&&n.browser.version<9&&(this.opt.opacity=1),playerBox=n("<div/>").attr("id",playerID).addClass("playerBox"),overlay=n("<div/>").css({position:"absolute",top:0,left:0,width:"100%",height:"100%"}).addClass("YTPOverlay"),YTPlayer.isSelf="self"==YTPlayer.opt.containment,YTPlayer.opt.containment="self"==YTPlayer.opt.containment?n(this):n(YTPlayer.opt.containment),YTPlayer.isBackground="body"==YTPlayer.opt.containment.get(0).tagName.toLowerCase(),!YTPlayer.isBackground||!t.backgroundIsInited){if(YTPlayer.opt.containment.is(n(this))?YTPlayer.isPlayer=!0:$YTPlayer.hide(),t.isDevice&&YTPlayer.isBackground)return $YTPlayer.remove(),void 0;YTPlayer.opt.addRaster?(classN="dot"==YTPlayer.opt.addRaster?"raster-dot":"raster",retina=window.retina||window.devicePixelRatio>1,overlay.addClass(retina?classN+" retina":classN)):overlay.removeClass(function(t,i){var u=i.split(" "),r=[];return n.each(u,function(n,t){/raster-.*/.test(t)&&r.push(t)}),r.push("retina"),r.join(" ")});wrapper=n("<div/>").addClass("mbYTP_wrapper").attr("id","wrapper_"+playerID);(wrapper.css({position:"absolute",zIndex:0,minWidth:"100%",minHeight:"100%",left:0,top:0,overflow:"hidden",opacity:0}),playerBox.css({position:"absolute",zIndex:0,width:"100%",height:"100%",top:0,left:0,overflow:"hidden"}),wrapper.append(playerBox),YTPlayer.opt.containment.children().not("script, style").each(function(){"static"==n(this).css("position")&&n(this).css("position","relative")}),YTPlayer.isBackground?(n("body").css({position:"absolute",minWidth:"100%",minHeight:"100%",zIndex:1,boxSizing:"border-box"}),wrapper.css({position:"fixed",top:0,left:0,zIndex:0,webkitTransform:"translateZ(0)"}),$YTPlayer.hide()):"static"==YTPlayer.opt.containment.css("position")&&YTPlayer.opt.containment.css({position:"relative"}),YTPlayer.opt.containment.prepend(wrapper),YTPlayer.wrapper=wrapper,playerBox.css({opacity:1}),t.isDevice||(playerBox.after(overlay),YTPlayer.overlay=overlay),YTPlayer.isBackground||overlay.on("mouseenter",function(){$YTPlayer.find(".mb_YTVPBar").addClass("visible")}).on("mouseleave",function(){$YTPlayer.find(".mb_YTVPBar").removeClass("visible")}),t.YTAPIReady)?setTimeout(function(){n(document).trigger("YTAPIReady")},100):(n("#YTAPI").remove(),tag=n("<script><\/script>").attr({src:n.mbYTPlayer.locationProtocol+"//www.youtube.com/player_api?v="+n.mbYTPlayer.version,id:"YTAPI"}),n("head title").after(tag));n(document).on("YTAPIReady",function(){YTPlayer.isBackground&&t.backgroundIsInited||YTPlayer.isInit||(YTPlayer.isBackground&&YTPlayer.opt.stopMovieOnClick&&n(document).off("mousedown.ytplayer").on("mousedown,.ytplayer",function(t){var i=n(t.target);(i.is("a")||i.parents().is("a"))&&$YTPlayer.pauseYTP()}),YTPlayer.isBackground&&(t.backgroundIsInited=!0),YTPlayer.opt.autoPlay="undefined"==typeof YTPlayer.opt.autoPlay?YTPlayer.isBackground?!0:!1:YTPlayer.opt.autoPlay,YTPlayer.opt.vol=YTPlayer.opt.vol?YTPlayer.opt.vol:100,n.mbYTPlayer.getDataFromFeed(YTPlayer),n(YTPlayer).on("YTPChanged",function(){if(!YTPlayer.isInit)return(YTPlayer.isInit=!0,t.isDevice&&!YTPlayer.isBackground?(new YT.Player(playerID,{videoId:YTPlayer.videoID.toString(),height:"100%",width:"100%",videoId:YTPlayer.videoID,events:{onReady:function(n){YTPlayer.player=n.target;playerBox.css({opacity:1});YTPlayer.wrapper.css({opacity:YTPlayer.opt.opacity});$YTPlayer.optimizeDisplay()},onStateChange:function(){}}}),void 0):(new YT.Player(playerID,{videoId:YTPlayer.videoID.toString(),playerVars:playerVars,events:{onReady:function(t){if(YTPlayer.player=t.target,!YTPlayer.isReady){YTPlayer.isReady=!0;YTPlayer.playerEl=YTPlayer.player.getIframe();$YTPlayer.optimizeDisplay();YTPlayer.videoID=videoID;n(window).on("resize.YTP",function(){$YTPlayer.optimizeDisplay()});YTPlayer.opt.showControls&&n(YTPlayer).buildYTPControls();var i=YTPlayer.opt.startAt?YTPlayer.opt.startAt:1;YTPlayer.player.setVolume(0);n(YTPlayer).muteYTPVolume();n.mbYTPlayer.checkForState(YTPlayer);YTPlayer.checkForStartAt=setInterval(function(){var t=YTPlayer.player.getVideoLoadedFraction()>i/YTPlayer.player.getDuration();YTPlayer.player.getDuration()>0&&YTPlayer.player.getCurrentTime()>=i&&t?(clearInterval(YTPlayer.checkForStartAt),YTPlayer.player.setVolume(0),n(YTPlayer).muteYTPVolume(),"function"==typeof YTPlayer.opt.onReady&&YTPlayer.opt.onReady(YTPlayer),YTPlayer.opt.mute||n(YTPlayer).unmuteYTP(),n.mbYTPlayer.checkForState(YTPlayer),YTPlayer.player.pauseVideo(),setTimeout(function(){YTPlayer.canTrigger=!0;YTPlayer.opt.autoPlay?($YTPlayer.playYTP(),$YTPlayer.css("background-image","none"),YTPlayer.wrapper.CSSAnimate({opacity:YTPlayer.isAlone?1:YTPlayer.opt.opacity},2e3)):YTPlayer.player.pauseVideo()},100)):(YTPlayer.player.playVideo(),YTPlayer.player.seekTo(i,!0))},n.browser.chrome?1e3:1)}},onStateChange:function(event){var state,controls,data,eventType,startAt,YTPevent;if("function"==typeof event.target.getPlayerState&&(state=event.target.getPlayerState(),YTPlayer.state!=state)){YTPlayer.state=state;controls=n("#controlBar_"+YTPlayer.id);data=YTPlayer.opt;switch(state){case-1:eventType="YTPUnstarted";break;case 0:eventType="YTPEnd";YTPlayer.player.pauseVideo();startAt=YTPlayer.opt.startAt?YTPlayer.opt.startAt:1;data.loop?(YTPlayer.wrapper.css({opacity:0}),$YTPlayer.playYTP(),YTPlayer.player.seekTo(startAt,!0)):YTPlayer.isBackground||(YTPlayer.player.seekTo(startAt,!0),$YTPlayer.playYTP(),setTimeout(function(){$YTPlayer.pauseYTP()},10));!data.loop&&YTPlayer.isBackground?YTPlayer.wrapper.CSSAnimate({opacity:0},2e3):data.loop&&YTPlayer.loop++;controls.find(".mb_YTVPPlaypause").html(n.mbYTPlayer.controls.play);break;case 1:eventType="YTPStart";n.browser.chrome||YTPlayer.player.setPlaybackQuality(YTPlayer.opt.quality);controls.find(".mb_YTVPPlaypause").html(n.mbYTPlayer.controls.pause);"undefined"!=typeof _gaq&&eval(YTPlayer.opt.gaTrack)&&_gaq.push(["_trackEvent","YTPlayer","Play",YTPlayer.title||YTPlayer.videoID.toString()]);"undefined"!=typeof ga&&eval(YTPlayer.opt.gaTrack)&&ga("send","event","YTPlayer","play",YTPlayer.title||YTPlayer.videoID.toString());break;case 2:eventType="YTPPause";controls.find(".mb_YTVPPlaypause").html(n.mbYTPlayer.controls.play);break;case 3:eventType="YTPBuffering";n.browser.chrome||YTPlayer.player.setPlaybackQuality(YTPlayer.opt.quality);controls.find(".mb_YTVPPlaypause").html(n.mbYTPlayer.controls.play);break;case 5:eventType="YTPCued"}YTPevent=n.Event(eventType);YTPevent.time=YTPlayer.player.time;YTPlayer.canTrigger&&n(YTPlayer).trigger(YTPevent)}},onPlaybackQualityChange:function(t){var r=t.target.getPlaybackQuality(),i=n.Event("YTPQualityChange");i.quality=r;n(YTPlayer).trigger(i)},onError:function(t){150==t.data&&(console.log("Embedding this video is restricted by Youtube."),YTPlayer.isPlayList&&n(YTPlayer).playNext());2==t.data&&YTPlayer.isPlayList&&n(YTPlayer).playNext();"function"==typeof YTPlayer.opt.onError&&YTPlayer.opt.onError($YTPlayer,t)}}}),void 0))}))})}})},getDataFromFeed:function(t){n.browser.msie&&n.browser.version<9?("auto"==t.opt.ratio?t.opt.ratio="16/9":t.opt.ratio,t.hasData||(t.hasData=!0,setTimeout(function(){n(t).trigger("YTPChanged")},100))):(n.getJSON(n.mbYTPlayer.locationProtocol+"//gdata.youtube.com/feeds/api/videos/"+t.videoID+"?v=2&alt=jsonc",function(i){var r,u,f;t.dataReceived=!0;t.videoData=i.data;n(t).trigger("YTPChanged");r=n.Event("YTPData");r.prop={};for(u in t.videoData)r.prop[u]=t.videoData[u];(n(t).trigger(r),t.title=t.videoData.title,"auto"==t.opt.ratio&&(t.opt.ratio=t.videoData.aspectRatio&&"widescreen"===t.videoData.aspectRatio?"16/9":"4/3"),!t.hasData&&(t.hasData=!0,t.isPlayer))&&(f=t.videoData.thumbnail.hqDefault,t.opt.containment.css({background:"rgba(0,0,0,0.5) url("+f+") center center",backgroundSize:"cover"}))}),setTimeout(function(){t.dataReceived||t.hasData||(t.hasData=!0,n(t).trigger("YTPChanged"))},1500))},getVideoData:function(){var n=this.get(0);return n.videoData},getVideoID:function(){var n=this.get(0);return n.videoID||!1},setVideoQuality:function(t){var i=this.get(0);n.browser.chrome||i.player.setPlaybackQuality(t)},YTPlaylist:function(t,i,r){var u=this.get(0);u.isPlayList=!0;i&&(t=n.shuffle(t));u.videoID||(u.videos=t,u.videoCounter=0,u.videoLength=t.length,n(u).data("property",t[0]),n(u).mb_YTPlayer());"function"==typeof r&&n(u).on("YTPChanged",function(){r(u)});n(u).on("YTPEnd",function(){n(u).playNext()})},playNext:function(){var t=this.get(0);t.videoCounter++;t.videoCounter>=t.videoLength&&(t.videoCounter=0);n(t.playerEl).css({opacity:0});n(t).changeMovie(t.videos[t.videoCounter])},playPrev:function(){var t=this.get(0);t.videoCounter--;t.videoCounter<0&&(t.videoCounter=t.videoLength-1);n(t.playerEl).css({opacity:0});n(t).changeMovie(t.videos[t.videoCounter])},changeMovie:function(t){var i=this.get(0),r,f;i.opt.startAt=0;i.opt.stopAt=0;i.opt.mute=!0;t&&n.extend(i.opt,t);i.videoID=u(i.opt.videoURL).videoID;n(i).pauseYTP();r=n.browser.msie?1e3:0;(n(i.playerEl).CSSAnimate({opacity:0},r),setTimeout(function(){var t=n.browser.chrome?"default":i.opt.quality;n(i).getPlayer().cueVideoByUrl(encodeURI(n.mbYTPlayer.locationProtocol+"//www.youtube.com/v/"+i.videoID),1,t);n(i).playYTP();n(i).one("YTPStart",function(){i.wrapper.CSSAnimate({opacity:i.isAlone?1:i.opt.opacity},1e3);n(i.playerEl).CSSAnimate({opacity:1},r);i.opt.startAt&&i.player.seekTo(i.opt.startAt);n.mbYTPlayer.checkForState(i);i.opt.autoPlay||n(i).pauseYTP()});i.opt.mute?n(i).muteYTPVolume():n(i).unmuteYTP()},r),i.opt.addRaster)?(f=window.retina||window.devicePixelRatio>1,i.overlay.addClass(f?"raster retina":"raster")):(i.overlay.removeClass("raster"),i.overlay.removeClass("retina"));n("#controlBar_"+i.id).remove();i.opt.showControls&&n(i).buildYTPControls();n.mbYTPlayer.getDataFromFeed(i);n(i).optimizeDisplay()},getPlayer:function(){return n(this).get(0).player},playerDestroy:function(){var i=this.get(0),r;t.YTAPIReady=!1;t.backgroundIsInited=!1;i.isInit=!1;i.videoID=null;r=i.wrapper;r.remove();n("#controlBar_"+i.id).remove()},fullscreen:function(real){function RunPrefixMethod(n,t){for(var i,f,r=["webkit","moz","ms","o",""],u=0;u<r.length&&!n[i];){if(i=t,""==r[u]&&(i=i.substr(0,1).toLowerCase()+i.substr(1)),i=r[u]+i,f=typeof n[i],"undefined"!=f)return r=[r[u]],"function"==f?n[i]():n[i];u++}}function launchFullscreen(n){RunPrefixMethod(n,"RequestFullScreen")}function cancelFullscreen(){(RunPrefixMethod(document,"FullScreen")||RunPrefixMethod(document,"IsFullScreen"))&&RunPrefixMethod(document,"CancelFullScreen")}var YTPlayer=this.get(0),fullscreenchange;"undefined"==typeof real&&(real=YTPlayer.opt.realfullscreen);real=eval(real);var controls=n("#controlBar_"+YTPlayer.id),fullScreenBtn=controls.find(".mb_OnlyYT"),videoWrapper=YTPlayer.isSelf?YTPlayer.opt.containment:YTPlayer.wrapper;if(real){fullscreenchange=n.browser.mozilla?"mozfullscreenchange":n.browser.webkit?"webkitfullscreenchange":"fullscreenchange";n(document).off(fullscreenchange).on(fullscreenchange,function(){var t=RunPrefixMethod(document,"IsFullScreen")||RunPrefixMethod(document,"FullScreen");t?(n(YTPlayer).setVideoQuality("default"),n(YTPlayer).trigger("YTPFullScreenStart")):(YTPlayer.isAlone=!1,fullScreenBtn.html(n.mbYTPlayer.controls.onlyYT),n(YTPlayer).setVideoQuality(YTPlayer.opt.quality),videoWrapper.removeClass("fullscreen"),videoWrapper.CSSAnimate({opacity:YTPlayer.opt.opacity},500),videoWrapper.css({zIndex:0}),YTPlayer.isBackground?n("body").after(controls):YTPlayer.wrapper.before(controls),n(window).resize(),n(YTPlayer).trigger("YTPFullScreenEnd"))})}YTPlayer.isAlone?(real?cancelFullscreen():(videoWrapper.CSSAnimate({opacity:YTPlayer.opt.opacity},500),videoWrapper.css({zIndex:0})),fullScreenBtn.html(n.mbYTPlayer.controls.onlyYT),YTPlayer.isAlone=!1):(real?(videoWrapper.css({opacity:0}),videoWrapper.addClass("fullscreen"),launchFullscreen(videoWrapper.get(0)),setTimeout(function(){videoWrapper.CSSAnimate({opacity:1},1e3);YTPlayer.wrapper.append(controls);n(YTPlayer).optimizeDisplay();YTPlayer.player.seekTo(YTPlayer.player.getCurrentTime()+.1,!0)},500)):videoWrapper.css({zIndex:1e4}).CSSAnimate({opacity:1},1e3),fullScreenBtn.html(n.mbYTPlayer.controls.showSite),YTPlayer.isAlone=!0)},playYTP:function(){var t=this.get(0),i,r;"undefined"!=typeof t.player&&(i=n("#controlBar_"+t.id),r=i.find(".mb_YTVPPlaypause"),r.html(n.mbYTPlayer.controls.pause),t.player.playVideo(),n(t).on("YTPStart",function(){n(t).css("background-image","none")}))},toggleLoops:function(){var t=this.get(0),n=t.opt;1==n.loop?n.loop=0:(n.startAt?t.player.seekTo(n.startAt):t.player.playVideo(),n.loop=1)},stopYTP:function(){var t=this.get(0),i=n("#controlBar_"+t.id),r=i.find(".mb_YTVPPlaypause");r.html(n.mbYTPlayer.controls.play);t.player.stopVideo()},pauseYTP:function(){var t=this.get(0),i,r;t.opt;i=n("#controlBar_"+t.id);r=i.find(".mb_YTVPPlaypause");r.html(n.mbYTPlayer.controls.play);t.player.pauseVideo()},seekToYTP:function(n){var t=this.get(0);t.player.seekTo(n,!0)},setYTPVolume:function(t){var i=this.get(0);t||i.opt.vol||0!=i.player.getVolume()?!t&&i.player.getVolume()>0||t&&i.player.getVolume()==t?n(i).muteYTPVolume():i.opt.vol=t:n(i).unmuteYTP();i.player.setVolume(i.opt.vol)},muteYTP:function(){var t=this.get(0),i,r;t.player.mute();t.player.setVolume(0);i=n("#controlBar_"+t.id);r=i.find(".mb_YTVPMuteUnmute");r.html(n.mbYTPlayer.controls.unmute);n(t).addClass("isMuted");n(t).trigger("YTPMuted")},unmuteYTP:function(){var t=this.get(0),i,r;t.player.unMute();t.player.setVolume(t.opt.vol);i=n("#controlBar_"+t.id);r=i.find(".mb_YTVPMuteUnmute");r.html(n.mbYTPlayer.controls.mute);n(t).removeClass("isMuted");n(t).trigger("YTPUnmuted")},manageYTPProgress:function(){var t=this.get(0),i=n("#controlBar_"+t.id),f=i.find(".mb_YTVPProgress"),e=i.find(".mb_YTVPLoaded"),o=i.find(".mb_YTVTime"),s=f.outerWidth(),r=Math.floor(t.player.getCurrentTime()),u=Math.floor(t.player.getDuration()),h=r*s/u,c=100*t.player.getVideoLoadedFraction();return e.css({left:0,width:c+"%"}),o.css({left:0,width:h}),{totalTime:u,currentTime:r}},buildYTPControls:function(){var YTPlayer=this.get(0),data=YTPlayer.opt;if(data.showYTLogo=data.showYTLogo||data.printUrl,!n("#controlBar_"+YTPlayer.id).length){var controlBar=n("<span/>").attr("id","controlBar_"+YTPlayer.id).addClass("mb_YTVPBar").css({whiteSpace:"noWrap",position:YTPlayer.isBackground?"fixed":"absolute",zIndex:YTPlayer.isBackground?1e4:1e3}).hide(),buttonBar=n("<div/>").addClass("buttonBar"),playpause=n("<span>"+n.mbYTPlayer.controls.play+"<\/span>").addClass("mb_YTVPPlaypause ytpicon").click(function(){1==YTPlayer.player.getPlayerState()?n(YTPlayer).pauseYTP():n(YTPlayer).playYTP()}),MuteUnmute=n("<span>"+n.mbYTPlayer.controls.mute+"<\/span>").addClass("mb_YTVPMuteUnmute ytpicon").click(function(){0==YTPlayer.player.getVolume()?n(YTPlayer).unmuteYTP():n(YTPlayer).muteYTP()}),idx=n("<span/>").addClass("mb_YTVPTime"),vURL=data.videoURL?data.videoURL:"";vURL.indexOf("http")<0&&(vURL=n.mbYTPlayer.locationProtocol+"//www.youtube.com/watch?v="+data.videoURL);var movieUrl=n("<span/>").html(n.mbYTPlayer.controls.ytLogo).addClass("mb_YTVPUrl ytpicon").attr("title","view on YouTube").on("click",function(){window.open(vURL,"viewOnYT")}),onlyVideo=n("<span/>").html(n.mbYTPlayer.controls.onlyYT).addClass("mb_OnlyYT ytpicon").on("click",function(){n(YTPlayer).fullscreen(data.realfullscreen)}),progressBar=n("<div/>").addClass("mb_YTVPProgress").css("position","absolute").click(function(n){timeBar.css({width:n.clientX-timeBar.offset().left});YTPlayer.timeW=n.clientX-timeBar.offset().left;controlBar.find(".mb_YTVPLoaded").css({width:0});var t=Math.floor(YTPlayer.player.getDuration());YTPlayer.goto=timeBar.outerWidth()*t/progressBar.outerWidth();YTPlayer.player.seekTo(parseFloat(YTPlayer.goto),!0);controlBar.find(".mb_YTVPLoaded").css({width:0})}),loadedBar=n("<div/>").addClass("mb_YTVPLoaded").css("position","absolute"),timeBar=n("<div/>").addClass("mb_YTVTime").css("position","absolute");progressBar.append(loadedBar).append(timeBar);buttonBar.append(playpause).append(MuteUnmute).append(idx);data.showYTLogo&&buttonBar.append(movieUrl);(YTPlayer.isBackground||eval(YTPlayer.opt.realfullscreen)&&!YTPlayer.isBackground)&&buttonBar.append(onlyVideo);controlBar.append(buttonBar).append(progressBar);YTPlayer.isBackground?n("body").after(controlBar):(controlBar.addClass("inlinePlayer"),YTPlayer.wrapper.before(controlBar));controlBar.fadeIn()}},checkForState:function(t){var i=t.opt.showControls?10:1e3;clearInterval(t.getState);t.getState=setInterval(function(){var i=n(t).manageYTPProgress(),u=n(t),o=n("#controlBar_"+t.id),h=t.opt,s=t.opt.startAt?t.opt.startAt:1,r=t.opt.stopAt>t.opt.startAt?t.opt.stopAt:0,f,e;if((r=r<t.player.getDuration()?r:0,t.player.time!=i.currentTime)&&(f=n.Event("YTPTime"),f.time=t.player.time,n(t).trigger(f)),t.player.time=i.currentTime,0==t.player.getVolume()?u.addClass("isMuted"):u.removeClass("isMuted"),t.opt.showControls&&(i.totalTime?o.find(".mb_YTVPTime").html(n.mbYTPlayer.formatTime(i.currentTime)+" / "+n.mbYTPlayer.formatTime(i.totalTime)):o.find(".mb_YTVPTime").html("-- : -- / -- : --")),document.hasFocus()?document.hasFocus()&&!t.hasFocus&&(t.hasFocus=!0,u.playYTP()):1==t.state&&(t.hasFocus=!1,u.pauseYTP()),1==t.player.getPlayerState()&&(parseFloat(t.player.getDuration()-3)<t.player.getCurrentTime()||r>0&&parseFloat(t.player.getCurrentTime())>r)){if(t.isEnded)return;if(t.isEnded=!0,setTimeout(function(){t.isEnded=!1},2e3),t.isPlayList)return clearInterval(t.getState),e=n.Event("YTPEnd"),e.time=t.player.time,n(t).trigger(e),void 0;h.loop?t.player.seekTo(s,!0):(t.player.pauseVideo(),t.wrapper.CSSAnimate({opacity:0},1e3,function(){var i=n.Event("YTPEnd"),r;(i.time=t.player.time,n(t).trigger(i),t.player.seekTo(s,!0),t.isBackground)||(r=t.videoData.thumbnail.hqDefault,n(t).css({background:"rgba(0,0,0,0.5) url("+r+") center center",backgroundSize:"cover"}))}))}},i)},formatTime:function(n){var t=Math.floor(n/60),i=Math.floor(n-60*t);return(9>=t?"0"+t:t)+" : "+(9>=i?"0"+i:i)}};n.fn.toggleVolume=function(){var t=this.get(0);if(t)return t.player.isMuted()?(n(t).unmuteYTP(),!0):(n(t).muteYTP(),!1)};n.fn.optimizeDisplay=function(){var f=this.get(0),e=f.opt,s=n(f.playerEl),i={},o=f.wrapper;i.width=o.outerWidth();i.height=o.outerHeight();var r=24,u=100,t={};t.width=i.width+i.width*r/100;t.height="16/9"==e.ratio?Math.ceil(9*i.width/16):Math.ceil(3*i.width/4);t.marginTop=-((t.height-i.height)/2);t.marginLeft=-(i.width*(r/2)/100);t.height<i.height&&(t.height=i.height+i.height*r/100,t.width="16/9"==e.ratio?Math.floor(16*i.height/9):Math.floor(4*i.height/3),t.marginTop=-(i.height*(r/2)/100),t.marginLeft=-((t.width-i.width)/2));t.width+=u;t.height+=u;t.marginTop-=u/2;t.marginLeft-=u/2;s.css({width:t.width,height:t.height,marginTop:t.marginTop,marginLeft:t.marginLeft})};n.shuffle=function(n){for(var r,f,t=n.slice(),u=t.length,i=u;i--;)r=parseInt(Math.random()*u),f=t[i],t[i]=t[r],t[r]=f;return t};n.fn.YTPlayer=n.mbYTPlayer.buildPlayer;n.fn.YTPlaylist=n.mbYTPlayer.YTPlaylist;n.fn.playNext=n.mbYTPlayer.playNext;n.fn.playPrev=n.mbYTPlayer.playPrev;n.fn.changeMovie=n.mbYTPlayer.changeMovie;n.fn.getVideoID=n.mbYTPlayer.getVideoID;n.fn.getPlayer=n.mbYTPlayer.getPlayer;n.fn.playerDestroy=n.mbYTPlayer.playerDestroy;n.fn.fullscreen=n.mbYTPlayer.fullscreen;n.fn.buildYTPControls=n.mbYTPlayer.buildYTPControls;n.fn.playYTP=n.mbYTPlayer.playYTP;n.fn.toggleLoops=n.mbYTPlayer.toggleLoops;n.fn.stopYTP=n.mbYTPlayer.stopYTP;n.fn.pauseYTP=n.mbYTPlayer.pauseYTP;n.fn.seekToYTP=n.mbYTPlayer.seekToYTP;n.fn.muteYTP=n.mbYTPlayer.muteYTP;n.fn.unmuteYTP=n.mbYTPlayer.unmuteYTP;n.fn.setYTPVolume=n.mbYTPlayer.setYTPVolume;n.fn.setVideoQuality=n.mbYTPlayer.setVideoQuality;n.fn.manageYTPProgress=n.mbYTPlayer.manageYTPProgress;n.fn.getDataFromFeed=n.mbYTPlayer.getVideoData;n.fn.mb_YTPlayer=n.fn.YTPlayer;n.fn.muteYTPVolume=n.mbYTPlayer.muteYTP;n.fn.unmuteYTPVolume=n.mbYTPlayer.unmuteYTP}(jQuery,ytp),function(n){function at(n,t){return function(i){return u(n.call(this,i),t)}}function wi(n,t){return function(i){return this.lang().ordinal(n.call(this,i),t)}}function vt(){}function nt(n){dt(n);s(this,n)}function tt(n){var t=pt(n),i=t.year||0,r=t.month||0,u=t.week||0,f=t.day||0,e=t.hour||0,o=t.minute||0,s=t.second||0,h=t.millisecond||0;this._input=n;this._milliseconds=+h+1e3*s+6e4*o+36e5*e;this._days=+f+7*u;this._months=+r+12*i;this._data={};this._bubble()}function s(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);return t.hasOwnProperty("toString")&&(n.toString=t.toString),t.hasOwnProperty("valueOf")&&(n.valueOf=t.valueOf),n}function a(n){return 0>n?Math.ceil(n):Math.floor(n)}function u(n,t){for(var i=n+"";i.length<t;)i="0"+i;return i}function it(n,i,r,u){var s,h,o=i._milliseconds,f=i._days,e=i._months;o&&n._d.setTime(+n._d+o*r);(f||e)&&(s=n.minute(),h=n.hour());f&&n.date(n.date()+f*r);e&&n.month(n.month()+e*r);o&&!u&&t.updateOffset(n);(f||e)&&(n.minute(s),n.hour(h))}function rt(n){return"[object Array]"===Object.prototype.toString.call(n)}function bi(n){return"[object Date]"===Object.prototype.toString.call(n)}function yt(n,t,r){for(var e=Math.min(n.length,t.length),o=Math.abs(n.length-t.length),f=0,u=0;e>u;u++)(r&&n[u]!==t[u]||!r&&i(n[u])!==i(t[u]))&&f++;return f+o}function h(n){if(n){var t=n.toLowerCase().replace(/(.)s$/,"$1");n=su[n]||hu[t]||t}return n}function pt(n){var i,t,r={};for(t in n)n.hasOwnProperty(t)&&(i=h(t),i&&(r[i]=n[t]));return r}function ki(i){var r,u;if(0===i.indexOf("week"))r=7,u="day";else{if(0!==i.indexOf("month"))return;r=12;u="month"}t[i]=function(f,e){var o,s,c=t.fn._lang[i],h=[];if("number"==typeof f&&(e=f,f=n),s=function(n){var i=t().utc().set(u,n);return c.call(t.fn._lang,i,f||"")},null!=e)return s(e);for(o=0;r>o;o++)h.push(s(o));return h}}function i(n){var t=+n,i=0;return 0!==t&&isFinite(t)&&(i=t>=0?Math.floor(t):Math.ceil(t)),i}function wt(n,t){return new Date(Date.UTC(n,t+1,0)).getUTCDate()}function bt(n){return kt(n)?366:365}function kt(n){return 0==n%4&&0!=n%100||0==n%400}function dt(n){var t;n._a&&-2===n._pf.overflow&&(t=n._a[v]<0||n._a[v]>11?v:n._a[c]<1||n._a[c]>wt(n._a[e],n._a[v])?c:n._a[o]<0||n._a[o]>23?o:n._a[w]<0||n._a[w]>59?w:n._a[b]<0||n._a[b]>59?b:n._a[k]<0||n._a[k]>999?k:-1,n._pf._overflowDayOfYear&&(e>t||t>c)&&(t=c),n._pf.overflow=t)}function gt(n){n._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1}}function ni(n){return null==n._isValid&&(n._isValid=!isNaN(n._d.getTime())&&n._pf.overflow<0&&!n._pf.empty&&!n._pf.invalidMonth&&!n._pf.nullInput&&!n._pf.invalidFormat&&!n._pf.userInvalidated,n._strict&&(n._isValid=n._isValid&&0===n._pf.charsLeftOver&&0===n._pf.unusedTokens.length)),n._isValid}function ut(n){return n?n.toLowerCase().replace("_","-"):n}function di(n,t){return t.abbr=n,y[n]||(y[n]=new vt),y[n].set(t),y[n]}function gi(n){delete y[n]}function f(n){var r,u,i,f,e=0,o=function(n){if(!y[n]&&ci)try{require("./lang/"+n)}catch(t){}return y[n]};if(!n)return t.fn._lang;if(!rt(n)){if(u=o(n))return u;n=[n]}for(;e<n.length;){for(f=ut(n[e]).split("-"),r=f.length,i=ut(n[e+1]),i=i?i.split("-"):null;r>0;){if(u=o(f.slice(0,r).join("-")))return u;if(i&&i.length>=r&&yt(f,i,!0)>=r-1)break;r--}e++}return t.fn._lang}function nr(n){return n.match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"")}function tr(n){for(var i=n.match(li),t=0,r=i.length;r>t;t++)i[t]=l[i[t]]?l[i[t]]:nr(i[t]);return function(u){var f="";for(t=0;r>t;t++)f+=i[t]instanceof Function?i[t].call(u,n):i[t];return f}}function ti(n,t){return n.isValid()?(t=ii(t,n.lang()),lt[t]||(lt[t]=tr(t)),lt[t](n)):n.lang().invalidDate()}function ii(n,t){function r(n){return t.longDateFormat(n)||n}var i=5;for(g.lastIndex=0;i>=0&&g.test(n);)n=n.replace(g,r),g.lastIndex=0,i-=1;return n}function ir(n,t){switch(n){case"DDDD":return gr;case"YYYY":case"GGGG":case"gggg":return nu;case"YYYYY":case"GGGGG":case"ggggg":return tu;case"S":case"SS":case"SSS":case"DDD":return dr;case"MMM":case"MMMM":case"dd":case"ddd":case"dddd":return iu;case"a":case"A":return f(t._l)._meridiemParse;case"X":return uu;case"Z":case"ZZ":return st;case"T":return ru;case"MM":case"DD":case"YY":case"GG":case"gg":case"HH":case"hh":case"mm":case"ss":case"M":case"D":case"d":case"H":case"h":case"m":case"s":case"w":case"ww":case"W":case"WW":case"e":case"E":return kr;default:return new RegExp(or(er(n.replace("\\","")),"i"))}}function ri(n){var u=(st.exec(n)||[])[0],t=(u+"").match(ou)||["-",0,0],r=+(60*t[1])+i(t[2]);return"+"===t[0]?-r:r}function rr(n,t,r){var s,u=r._a;switch(n){case"M":case"MM":null!=t&&(u[v]=i(t)-1);break;case"MMM":case"MMMM":s=f(r._l).monthsParse(t);null!=s?u[v]=s:r._pf.invalidMonth=t;break;case"D":case"DD":null!=t&&(u[c]=i(t));break;case"DDD":case"DDDD":null!=t&&(r._dayOfYear=i(t));break;case"YY":u[e]=i(t)+(i(t)>68?1900:2e3);break;case"YYYY":case"YYYYY":u[e]=i(t);break;case"a":case"A":r._isPm=f(r._l).isPM(t);break;case"H":case"HH":case"h":case"hh":u[o]=i(t);break;case"m":case"mm":u[w]=i(t);break;case"s":case"ss":u[b]=i(t);break;case"S":case"SS":case"SSS":u[k]=i(1e3*("0."+t));break;case"X":r._d=new Date(1e3*parseFloat(t));break;case"Z":case"ZZ":r._useUTC=!0;r._tzm=ri(t);break;case"w":case"ww":case"W":case"WW":case"d":case"dd":case"ddd":case"dddd":case"e":case"E":n=n.substr(0,1);case"gg":case"gggg":case"GG":case"GGGG":case"GGGGG":n=n.substr(0,2);t&&(r._w=r._w||{},r._w[n]=t)}}function ft(n){var r,a,y,p,b,u,l,s,k,d,h=[];if(!n._d){for(y=fr(n),n._w&&null==n._a[c]&&null==n._a[v]&&(b=function(i){return i?i.length<3?parseInt(i,10)>68?"19"+i:"20"+i:i:null==n._a[e]?t().weekYear():n._a[e]},u=n._w,null!=u.GG||null!=u.W||null!=u.E?l=ei(b(u.GG),u.W||1,u.E,4,1):(s=f(n._l),k=null!=u.d?fi(u.d,s):null!=u.e?parseInt(u.e,10)+s._week.dow:0,d=parseInt(u.w,10)||1,null!=u.d&&k<s._week.dow&&d++,l=ei(b(u.gg),d,k,s._week.doy,s._week.dow)),n._a[e]=l.year,n._dayOfYear=l.dayOfYear),n._dayOfYear&&(p=null==n._a[e]?y[e]:n._a[e],n._dayOfYear>bt(p)&&(n._pf._overflowDayOfYear=!0),a=ui(p,0,n._dayOfYear),n._a[v]=a.getUTCMonth(),n._a[c]=a.getUTCDate()),r=0;3>r&&null==n._a[r];++r)n._a[r]=h[r]=y[r];for(;7>r;r++)n._a[r]=h[r]=null==n._a[r]?2===r?1:0:n._a[r];h[o]+=i((n._tzm||0)/60);h[w]+=i((n._tzm||0)%60);n._d=(n._useUTC?ui:lr).apply(null,h)}}function ur(n){var t;n._d||(t=pt(n._i),n._a=[t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond],ft(n))}function fr(n){var t=new Date;return n._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function et(n){n._a=[];n._pf.empty=!0;for(var t,r,s,c=f(n._l),i=""+n._i,a=i.length,h=0,e=ii(n._f,c).match(li)||[],u=0;u<e.length;u++)r=e[u],t=(ir(r,n).exec(i)||[])[0],t&&(s=i.substr(0,i.indexOf(t)),s.length>0&&n._pf.unusedInput.push(s),i=i.slice(i.indexOf(t)+t.length),h+=t.length),l[r]?(t?n._pf.empty=!1:n._pf.unusedTokens.push(r),rr(r,t,n)):n._strict&&!t&&n._pf.unusedTokens.push(r);n._pf.charsLeftOver=a-h;i.length>0&&n._pf.unusedInput.push(i);n._isPm&&n._a[o]<12&&(n._a[o]+=12);n._isPm===!1&&12===n._a[o]&&(n._a[o]=0);ft(n);dt(n)}function er(n){return n.replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(n,t,i,r,u){return t||i||r||u})}function or(n){return n.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function sr(n){var t,f,u,r,i;if(0===n._f.length)return n._pf.invalidFormat=!0,n._d=new Date(NaN),void 0;for(r=0;r<n._f.length;r++)i=0,t=s({},n),gt(t),t._f=n._f[r],et(t),ni(t)&&(i+=t._pf.charsLeftOver,i+=10*t._pf.unusedTokens.length,t._pf.score=i,(null==u||u>i)&&(u=i,f=t));s(n,f||t)}function hr(n){var t,i=n._i,r=fu.exec(i);if(r){for(t=4;t>0;t--)if(r[t]){n._f=eu[t-1]+(r[6]||" ");break}for(t=0;4>t;t++)if(ai[t][1].exec(i)){n._f+=ai[t][0];break}st.exec(i)&&(n._f+=" Z");et(n)}else n._d=new Date(i)}function cr(t){var i=t._i,r=pr.exec(i);i===n?t._d=new Date:r?t._d=new Date(+r[1]):"string"==typeof i?hr(t):rt(i)?(t._a=i.slice(0),ft(t)):bi(i)?t._d=new Date(+i):"object"==typeof i?ur(t):t._d=new Date(i)}function lr(n,t,i,r,u,f,e){var o=new Date(n,t,i,r,u,f,e);return 1970>n&&o.setFullYear(n),o}function ui(n){var t=new Date(Date.UTC.apply(null,arguments));return 1970>n&&t.setUTCFullYear(n),t}function fi(n,t){if("string"==typeof n)if(isNaN(n)){if(n=t.weekdaysParse(n),"number"!=typeof n)return null}else n=parseInt(n,10);return n}function ar(n,t,i,r,u){return u.relativeTime(t||1,!!i,n,r)}function vr(n,t,i){var o=p(Math.abs(n)/1e3),u=p(o/60),f=p(u/60),r=p(f/24),s=p(r/365),e=45>o&&["s",o]||1===u&&["m"]||45>u&&["mm",u]||1===f&&["h"]||22>f&&["hh",f]||1===r&&["d"]||25>=r&&["dd",r]||45>=r&&["M"]||345>r&&["MM",p(r/30)]||1===s&&["y"]||["yy",s];return e[2]=t,e[3]=n>0,e[4]=i,ar.apply({},e)}function d(n,i,r){var f,e=r-i,u=r-n.day();return u>e&&(u-=7),e-7>u&&(u+=7),f=t(n).add("d",u),{week:Math.ceil(f.dayOfYear()/7),year:f.year()}}function ei(n,t,i,r,u){var e,f,o=new Date(Date.UTC(n,0)).getUTCDay();return i=null!=i?i:u,e=u-o+(o>r?7:0),f=7*(t-1)+(i-u)+e+1,{year:f>0?n:n-1,dayOfYear:f>0?f:bt(n-1)+f}}function oi(n){var i=n._i,r=n._f;return"undefined"==typeof n._pf&&gt(n),null===i?t.invalid({nullInput:!0}):("string"==typeof i&&(n._i=i=f().preparse(i)),t.isMoment(i)?(n=s({},i),n._d=new Date(+i._d)):r?rt(r)?sr(n):et(n):cr(n),new nt(n))}function si(n,i){t.fn[n]=t.fn[n+"s"]=function(n){var r=this._isUTC?"UTC":"";return null!=n?(this._d["set"+r+i](n),t.updateOffset(this),this):this._d["get"+r+i]()}}function yr(n){t.duration.fn[n]=function(){return this._data[n]}}function hi(n,i){t.duration.fn["as"+n]=function(){return+this/i}}function ot(){"undefined"==typeof ender&&(this.moment=t)}for(var t,r,p=Math.round,e=0,v=1,c=2,o=3,w=4,b=5,k=6,y={},ci="undefined"!=typeof module&&module.exports,pr=/^\/?Date\((\-?\d+)/i,wr=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,br=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/,li=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|SS?S?|X|zz?|ZZ?|.)/g,g=/(\[[^\[]*\])|(\\)?(LT|LL?L?L?|l{1,4})/g,kr=/\d\d?/,dr=/\d{1,3}/,gr=/\d{3}/,nu=/\d{1,4}/,tu=/[+\-]?\d{1,6}/,iu=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,st=/Z|[\+\-]\d\d:?\d\d/i,ru=/T/i,uu=/[\+\-]?\d+(\.\d{1,3})?/,fu=/^\s*\d{4}-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d\d?\d?)?)?)?)?([\+\-]\d\d:?\d\d)?)?$/,eu=["YYYY-MM-DD","GGGG-[W]WW","GGGG-[W]WW-E","YYYY-DDD"],ai=[["HH:mm:ss.S",/(T| )\d\d:\d\d:\d\d\.\d{1,3}/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],ou=/([\+\-]|\d\d)/gi,ht="Date|Hours|Minutes|Seconds|Milliseconds".split("|"),ct={Milliseconds:1,Seconds:1e3,Minutes:6e4,Hours:36e5,Days:864e5,Months:2592e6,Years:31536e6},su={ms:"millisecond",s:"second",m:"minute",h:"hour",d:"day",D:"date",w:"week",W:"isoWeek",M:"month",y:"year",DDD:"dayOfYear",e:"weekday",E:"isoWeekday",gg:"weekYear",GG:"isoWeekYear"},hu={dayofyear:"dayOfYear",isoweekday:"isoWeekday",isoweek:"isoWeek",weekyear:"weekYear",isoweekyear:"isoWeekYear"},lt={},vi="DDD w W M D d".split(" "),yi="M D H h m s w W".split(" "),l={M:function(){return this.month()+1},MMM:function(n){return this.lang().monthsShort(this,n)},MMMM:function(n){return this.lang().months(this,n)},D:function(){return this.date()},DDD:function(){return this.dayOfYear()},d:function(){return this.day()},dd:function(n){return this.lang().weekdaysMin(this,n)},ddd:function(n){return this.lang().weekdaysShort(this,n)},dddd:function(n){return this.lang().weekdays(this,n)},w:function(){return this.week()},W:function(){return this.isoWeek()},YY:function(){return u(this.year()%100,2)},YYYY:function(){return u(this.year(),4)},YYYYY:function(){return u(this.year(),5)},gg:function(){return u(this.weekYear()%100,2)},gggg:function(){return this.weekYear()},ggggg:function(){return u(this.weekYear(),5)},GG:function(){return u(this.isoWeekYear()%100,2)},GGGG:function(){return this.isoWeekYear()},GGGGG:function(){return u(this.isoWeekYear(),5)},e:function(){return this.weekday()},E:function(){return this.isoWeekday()},a:function(){return this.lang().meridiem(this.hours(),this.minutes(),!0)},A:function(){return this.lang().meridiem(this.hours(),this.minutes(),!1)},H:function(){return this.hours()},h:function(){return this.hours()%12||12},m:function(){return this.minutes()},s:function(){return this.seconds()},S:function(){return i(this.milliseconds()/100)},SS:function(){return u(i(this.milliseconds()/10),2)},SSS:function(){return u(this.milliseconds(),3)},Z:function(){var n=-this.zone(),t="+";return 0>n&&(n=-n,t="-"),t+u(i(n/60),2)+":"+u(i(n)%60,2)},ZZ:function(){var n=-this.zone(),t="+";return 0>n&&(n=-n,t="-"),t+u(i(10*n/6),4)},z:function(){return this.zoneAbbr()},zz:function(){return this.zoneName()},X:function(){return this.unix()}},pi=["months","monthsShort","weekdays","weekdaysShort","weekdaysMin"];vi.length;)r=vi.pop(),l[r+"o"]=wi(l[r],r);for(;yi.length;)r=yi.pop(),l[r+r]=at(l[r],2);for(l.DDDD=at(l.DDD,3),s(vt.prototype,{set:function(n){var t,i;for(i in n)t=n[i],"function"==typeof t?this[i]=t:this["_"+i]=t},_months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),months:function(n){return this._months[n.month()]},_monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),monthsShort:function(n){return this._monthsShort[n.month()]},monthsParse:function(n){var i,r,u;for(this._monthsParse||(this._monthsParse=[]),i=0;12>i;i++)if(this._monthsParse[i]||(r=t.utc([2e3,i]),u="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(u.replace(".",""),"i")),this._monthsParse[i].test(n))return i},_weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdays:function(n){return this._weekdays[n.day()]},_weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysShort:function(n){return this._weekdaysShort[n.day()]},_weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysMin:function(n){return this._weekdaysMin[n.day()]},weekdaysParse:function(n){var i,r,u;for(this._weekdaysParse||(this._weekdaysParse=[]),i=0;7>i;i++)if(this._weekdaysParse[i]||(r=t([2e3,1]).day(i),u="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(u.replace(".",""),"i")),this._weekdaysParse[i].test(n))return i},_longDateFormat:{LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D YYYY",LLL:"MMMM D YYYY LT",LLLL:"dddd, MMMM D YYYY LT"},longDateFormat:function(n){var t=this._longDateFormat[n];return!t&&this._longDateFormat[n.toUpperCase()]&&(t=this._longDateFormat[n.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(n){return n.slice(1)}),this._longDateFormat[n]=t),t},isPM:function(n){return"p"===(n+"").toLowerCase().charAt(0)},_meridiemParse:/[ap]\.?m?\.?/i,meridiem:function(n,t,i){return n>11?i?"pm":"PM":i?"am":"AM"},_calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},calendar:function(n,t){var i=this._calendar[n];return"function"==typeof i?i.apply(t):i},_relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},relativeTime:function(n,t,i,r){var u=this._relativeTime[i];return"function"==typeof u?u(n,t,i,r):u.replace(/%d/i,n)},pastFuture:function(n,t){var i=this._relativeTime[n>0?"future":"past"];return"function"==typeof i?i(t):i.replace(/%s/i,t)},ordinal:function(n){return this._ordinal.replace("%d",n)},_ordinal:"%d",preparse:function(n){return n},postformat:function(n){return n},week:function(n){return d(n,this._week.dow,this._week.doy).week},_week:{dow:0,doy:6},_invalidDate:"Invalid date",invalidDate:function(){return this._invalidDate}}),t=function(t,i,r,u){return"boolean"==typeof r&&(u=r,r=n),oi({_i:t,_f:i,_l:r,_strict:u,_isUTC:!1})},t.utc=function(t,i,r,u){var f;return"boolean"==typeof r&&(u=r,r=n),f=oi({_useUTC:!0,_isUTC:!0,_l:r,_i:t,_f:i,_strict:u}).utc()},t.unix=function(n){return t(1e3*n)},t.duration=function(n,r){var f,h,e,l=t.isDuration(n),a="number"==typeof n,s=l?n._input:a?{}:n,u=null;return a?r?s[r]=n:s.milliseconds=n:(u=wr.exec(n))?(f="-"===u[1]?-1:1,s={y:0,d:i(u[c])*f,h:i(u[o])*f,m:i(u[w])*f,s:i(u[b])*f,ms:i(u[k])*f}):(u=br.exec(n))&&(f="-"===u[1]?-1:1,e=function(n){var t=n&&parseFloat(n.replace(",","."));return(isNaN(t)?0:t)*f},s={y:e(u[2]),M:e(u[3]),d:e(u[4]),h:e(u[5]),m:e(u[6]),s:e(u[7]),w:e(u[8])}),h=new tt(s),l&&n.hasOwnProperty("_lang")&&(h._lang=n._lang),h},t.version="2.3.1",t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.updateOffset=function(){},t.lang=function(n,i){var r;return n?(i?di(ut(n),i):null===i?(gi(n),n="en"):y[n]||f(n),r=t.duration.fn._lang=t.fn._lang=f(n),r._abbr):t.fn._lang._abbr},t.langData=function(n){return n&&n._lang&&n._lang._abbr&&(n=n._lang._abbr),f(n)},t.isMoment=function(n){return n instanceof nt},t.isDuration=function(n){return n instanceof tt},r=pi.length-1;r>=0;--r)ki(pi[r]);for(t.normalizeUnits=function(n){return h(n)},t.invalid=function(n){var i=t.utc(NaN);return null!=n?s(i._pf,n):i._pf.userInvalidated=!0,i},t.parseZone=function(n){return t(n).parseZone()},s(t.fn=nt.prototype,{clone:function(){return t(this)},valueOf:function(){return+this._d+6e4*(this._offset||0)},unix:function(){return Math.floor(+this/1e3)},toString:function(){return this.clone().lang("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},toDate:function(){return this._offset?new Date(+this):this._d},toISOString:function(){return ti(t(this).utc(),"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]")},toArray:function(){var n=this;return[n.year(),n.month(),n.date(),n.hours(),n.minutes(),n.seconds(),n.milliseconds()]},isValid:function(){return ni(this)},isDSTShifted:function(){return this._a?this.isValid()&&yt(this._a,(this._isUTC?t.utc(this._a):t(this._a)).toArray())>0:!1},parsingFlags:function(){return s({},this._pf)},invalidAt:function(){return this._pf.overflow},utc:function(){return this.zone(0)},local:function(){return this.zone(0),this._isUTC=!1,this},format:function(n){var i=ti(this,n||t.defaultFormat);return this.lang().postformat(i)},add:function(n,i){var r;return r="string"==typeof n?t.duration(+i,n):t.duration(n,i),it(this,r,1),this},subtract:function(n,i){var r;return r="string"==typeof n?t.duration(+i,n):t.duration(n,i),it(this,r,-1),this},diff:function(n,i,r){var u,e,f=this._isUTC?t(n).zone(this._offset||0):t(n).local(),o=6e4*(this.zone()-f.zone());return i=h(i),"year"===i||"month"===i?(u=432e5*(this.daysInMonth()+f.daysInMonth()),e=12*(this.year()-f.year())+(this.month()-f.month()),e+=(this-t(this).startOf("month")-(f-t(f).startOf("month")))/u,e-=6e4*(this.zone()-t(this).startOf("month").zone()-(f.zone()-t(f).startOf("month").zone()))/u,"year"===i&&(e/=12)):(u=this-f,e="second"===i?u/1e3:"minute"===i?u/6e4:"hour"===i?u/36e5:"day"===i?(u-o)/864e5:"week"===i?(u-o)/6048e5:u),r?e:a(e)},from:function(n,i){return t.duration(this.diff(n)).lang(this.lang()._abbr).humanize(!i)},fromNow:function(n){return this.from(t(),n)},calendar:function(){var n=this.diff(t().zone(this.zone()).startOf("day"),"days",!0),i=-6>n?"sameElse":-1>n?"lastWeek":0>n?"lastDay":1>n?"sameDay":2>n?"nextDay":7>n?"nextWeek":"sameElse";return this.format(this.lang().calendar(i,this))},isLeapYear:function(){return kt(this.year())},isDST:function(){return this.zone()<this.clone().month(0).zone()||this.zone()<this.clone().month(5).zone()},day:function(n){var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=n?(n=fi(n,this.lang()),this.add({d:n-t})):t},month:function(n){var i,r=this._isUTC?"UTC":"";return null!=n?"string"==typeof n&&(n=this.lang().monthsParse(n),"number"!=typeof n)?this:(i=this.date(),this.date(1),this._d["set"+r+"Month"](n),this.date(Math.min(i,this.daysInMonth())),t.updateOffset(this),this):this._d["get"+r+"Month"]()},startOf:function(n){switch(n=h(n)){case"year":this.month(0);case"month":this.date(1);case"week":case"isoWeek":case"day":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===n?this.weekday(0):"isoWeek"===n&&this.isoWeekday(1),this},endOf:function(n){return n=h(n),this.startOf(n).add("isoWeek"===n?"week":n,1).subtract("ms",1)},isAfter:function(n,i){return i="undefined"!=typeof i?i:"millisecond",+this.clone().startOf(i)>+t(n).startOf(i)},isBefore:function(n,i){return i="undefined"!=typeof i?i:"millisecond",+this.clone().startOf(i)<+t(n).startOf(i)},isSame:function(n,i){return i="undefined"!=typeof i?i:"millisecond",+this.clone().startOf(i)==+t(n).startOf(i)},min:function(n){return n=t.apply(null,arguments),this>n?this:n},max:function(n){return n=t.apply(null,arguments),n>this?this:n},zone:function(n){var i=this._offset||0;return null==n?this._isUTC?i:this._d.getTimezoneOffset():("string"==typeof n&&(n=ri(n)),Math.abs(n)<16&&(n=60*n),this._offset=n,this._isUTC=!0,i!==n&&it(this,t.duration(i-n,"m"),1,!0),this)},zoneAbbr:function(){return this._isUTC?"UTC":""},zoneName:function(){return this._isUTC?"Coordinated Universal Time":""},parseZone:function(){return"string"==typeof this._i&&this.zone(this._i),this},hasAlignedHourOffset:function(n){return n=n?t(n).zone():0,0==(this.zone()-n)%60},daysInMonth:function(){return wt(this.year(),this.month())},dayOfYear:function(n){var i=p((t(this).startOf("day")-t(this).startOf("year"))/864e5)+1;return null==n?i:this.add("d",n-i)},weekYear:function(n){var t=d(this,this.lang()._week.dow,this.lang()._week.doy).year;return null==n?t:this.add("y",n-t)},isoWeekYear:function(n){var t=d(this,1,4).year;return null==n?t:this.add("y",n-t)},week:function(n){var t=this.lang().week(this);return null==n?t:this.add("d",7*(n-t))},isoWeek:function(n){var t=d(this,1,4).week;return null==n?t:this.add("d",7*(n-t))},weekday:function(n){var t=(this.day()+7-this.lang()._week.dow)%7;return null==n?t:this.add("d",n-t)},isoWeekday:function(n){return null==n?this.day()||7:this.day(this.day()%7?n:n-7)},get:function(n){return n=h(n),this[n]()},set:function(n,t){return n=h(n),"function"==typeof this[n]&&this[n](t),this},lang:function(t){return t===n?this._lang:(this._lang=f(t),this)}}),r=0;r<ht.length;r++)si(ht[r].toLowerCase().replace(/s$/,""),ht[r]);si("year","FullYear");t.fn.days=t.fn.day;t.fn.months=t.fn.month;t.fn.weeks=t.fn.week;t.fn.isoWeeks=t.fn.isoWeek;t.fn.toJSON=t.fn.toISOString;s(t.duration.fn=tt.prototype,{_bubble:function(){var t,i,r,e,o=this._milliseconds,u=this._days,f=this._months,n=this._data;n.milliseconds=o%1e3;t=a(o/1e3);n.seconds=t%60;i=a(t/60);n.minutes=i%60;r=a(i/60);n.hours=r%24;u+=a(r/24);n.days=u%30;f+=a(u/30);n.months=f%12;e=a(f/12);n.years=e},weeks:function(){return a(this.days()/7)},valueOf:function(){return this._milliseconds+864e5*this._days+2592e6*(this._months%12)+31536e6*i(this._months/12)},humanize:function(n){var i=+this,t=vr(i,!n,this.lang());return n&&(t=this.lang().pastFuture(i,t)),this.lang().postformat(t)},add:function(n,i){var r=t.duration(n,i);return this._milliseconds+=r._milliseconds,this._days+=r._days,this._months+=r._months,this._bubble(),this},subtract:function(n,i){var r=t.duration(n,i);return this._milliseconds-=r._milliseconds,this._days-=r._days,this._months-=r._months,this._bubble(),this},get:function(n){return n=h(n),this[n.toLowerCase()+"s"]()},as:function(n){return n=h(n),this["as"+n.charAt(0).toUpperCase()+n.slice(1)+"s"]()},lang:t.fn.lang,toIsoString:function(){var r=Math.abs(this.years()),u=Math.abs(this.months()),f=Math.abs(this.days()),n=Math.abs(this.hours()),t=Math.abs(this.minutes()),i=Math.abs(this.seconds()+this.milliseconds()/1e3);return this.asSeconds()?(this.asSeconds()<0?"-":"")+"P"+(r?r+"Y":"")+(u?u+"M":"")+(f?f+"D":"")+(n||t||i?"T":"")+(n?n+"H":"")+(t?t+"M":"")+(i?i+"S":""):"P0D"}});for(r in ct)ct.hasOwnProperty(r)&&(hi(r,ct[r]),yr(r.toLowerCase()));hi("Weeks",6048e5);t.duration.fn.asMonths=function(){return(+this-31536e6*this.years())/2592e6+12*this.years()};t.lang("en",{ordinal:function(n){var t=n%10,r=1===i(n%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return n+r}});ci?(module.exports=t,ot()):"function"==typeof define&&define.amd?define("moment",function(n,i,r){return r.config().noGlobal!==!0&&ot(),t}):ot()}.call(this);$(document).ready(function(){$(window).load(function(){$(".sticky").sticky({topSpacing:0})})});$(document).ready(function(){var n=new WOW({boxClass:"wow",animateClass:"animated",offset:100,mobile:!1});n.init()});$(document).ready(function(){$(window).stellar({horizontalScrolling:!1,responsive:!0})});$(document).ready(function(){$("#work-carousel").owlCarousel({items:4,itemsCustom:!1,itemsDesktop:[1199,3],itemsDesktopSmall:[980,3],itemsTablet:[768,3],itemsTabletSmall:!1,itemsMobile:[479,1],singleItem:!1,startDragging:!0,autoPlay:6e3})});$(document).ready(function(){$("#news-carousel").owlCarousel({items:2,itemsCustom:!1,itemsDesktop:[1199,2],itemsDesktopSmall:[980,2],itemsTablet:[768,2],itemsTabletSmall:!1,itemsMobile:[479,1],singleItem:!1,startDragging:!0,autoPlay:4e3})});$(document).ready(function(){$("#testi-carousel").owlCarousel({items:1,itemsCustom:!1,itemsDesktop:[1199,1],itemsDesktopSmall:[980,1],itemsTablet:[768,1],itemsTabletSmall:!1,itemsMobile:[479,1],singleItem:!1,startDragging:!0,autoPlay:4e3})});$(document).ready(function(){$("#featured-work").owlCarousel({autoPlay:5e3,navigation:!0,navigationText:["<i class='fa fa-angle-left'><\/i>","<i class='fa fa-angle-right'><\/i>"],pagination:!1,items:4,itemsDesktop:[1199,3],itemsDesktopSmall:[979,3],stopOnHover:!0})});jQuery(document).ready(function(n){n(".counter").counterUp({delay:100,time:800})});$(document).ready(function(){$("#grid").mixitup()});$(document).ready(function(){$(".show-image").magnificPopup({type:"image"})});$(document).ready(function(){$(".main-flex-slider,.testi-slide").flexslider({slideshowSpeed:5e3,directionNav:!1,animation:"fade"})});$(document).ready(function(){$("#clients-slider").owlCarousel({autoPlay:3e3,pagination:!1,items:4,itemsDesktop:[1199,3],itemsDesktopSmall:[991,2]})});$(document).ready(function(){$("[data-toggle=popover]").popover();$("[data-toggle=tooltip]").tooltip()});$(document).ready(function(){jQuery(function(){jQuery(".player").mb_YTPlayer()})});$(document).ready(function(){$(window).scroll(function(){$(this).scrollTop()>100?$(".transparent-header").css("background","#252525"):$(".transparent-header").css("background","transparent")})})