text: !function(p){function s(e,i){var r=this,t=navigator.userAgent.toLowerCase();r.uid=p.rsModules.uid++,r.ns=".rs"+r.uid;for(var s,n,o=document.createElement("div").style,a=["webkit","Moz","ms","O"],d="",l=0,_=0;_<a.length;_++)s=a[_],!d&&s+"Transform"in o&&(d=s),s=s.toLowerCase(),window.requestAnimationFrame||(window.requestAnimationFrame=window[s+"RequestAnimationFrame"],window.cancelAnimationFrame=window[s+"CancelAnimationFrame"]||window[s+"CancelRequestAnimationFrame"]);window.requestAnimationFrame||(window.requestAnimationFrame=function(e,i){var t=(new Date).getTime(),s=Math.max(0,16-(t-l)),n=window.setTimeout(function(){e(t+s)},s);return l=t+s,n}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){clearTimeout(e)}),r.isIPAD=t.match(/(ipad)/),r.isIOS=r.isIPAD||t.match(/(iphone|ipod)/),a={},(_={browser:(n=/(chrome)[ \/]([\w.]+)/.exec(n=t)||/(webkit)[ \/]([\w.]+)/.exec(n)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(n)||/(msie) ([\w.]+)/.exec(n)||n.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(n)||[])[1]||"",version:n[2]||"0"}).browser&&(a[_.browser]=!0,a.version=_.version),a.chrome&&(a.webkit=!0),r._a=a,r.isAndroid=-1<t.indexOf("android"),r.slider=p(e),r.ev=p(r),r._b=p(document),r.st=p.extend({},p.fn.royalSlider.defaults,i),r._c=r.st.transitionSpeed,r._d=0,!r.st.allowCSS3||a.webkit&&!r.st.allowCSS3OnWebkit||(_=d+(d?"T":"t"),r._e=_+"ransform"in o&&_+"ransition"in o,r._e&&(r._f=d+(d?"P":"p")+"erspective"in o)),d=d.toLowerCase(),r._g="-"+d+"-",r._h="vertical"!==r.st.slidesOrientation,r._i=r._h?"left":"top",r._j=r._h?"width":"height",r._k=-1,r._l="fade"!==r.st.transitionType,r._l||(r.st.sliderDrag=!1,r._m=10),r._n="z-index:0; display:none; opacity:0;",r._o=0,r._p=0,r._q=0,p.each(p.rsModules,function(e,i){"uid"!==e&&i.call(r)}),r.slides=[],r._r=0,(r.st.slides?p(r.st.slides):r.slider.children().detach()).each(function(){r._s(this,!0)}),r.st.randomizeSlides&&r.slides.sort(function(){return.5-Math.random()}),r.numSlides=r.slides.length,r._t(),r.st.startSlideId?r.st.startSlideId>r.numSlides-1&&(r.st.startSlideId=r.numSlides-1):r.st.startSlideId=0,r._o=r.staticSlideId=r.currSlideId=r._u=r.st.startSlideId,r.currSlide=r.slides[r.currSlideId],r._v=0,r.msTouch=!1,r.slider.addClass((r._h?"rsHor":"rsVer")+(r._l?"":" rsFade")),o='<div class="rsOverflow"><div class="rsContainer">',r.slidesSpacing=r.st.slidesSpacing,r._w=(r._h?r.slider.width():r.slider.height())+r.st.slidesSpacing,r._x=Boolean(0<r._y),r.numSlides<=1&&(r._z=!1),r._a1=r._z&&r._l?2===r.numSlides?1:2:0,r._b1=r.numSlides<6?r.numSlides:6,r._c1=0,r._d1=0,r.slidesJQ=[];for(_=0;_<r.numSlides;_++)r.slidesJQ.push(p('<div style="'+(r._l?"":_!==r.currSlideId?r._n:"z-index:0;")+'" class="rsSlide "></div>'));r._e1=o=p(o+"</div></div>");var c,u=r.ns,d=function(e,i,t,s,n){r._j1=e+i+u,r._k1=e+t+u,r._l1=e+s+u,n&&(r._m1=e+n+u)};r.msEnabled=window.navigator.msPointerEnabled,r.msEnabled?(r.msTouch=Boolean(1<window.navigator.msMaxTouchPoints),r.hasTouch=!1,r._n1=.2,d("MSPointer","Down","Move","Up","Cancel")):(r.isIOS?r._j1=r._k1=r._l1=r._m1="":d("mouse","down","move","up","up"),"ontouchstart"in window||"createTouch"in document?(r.hasTouch=!0,r._j1+=" touchstart"+u,r._k1+=" touchmove"+u,r._l1+=" touchend"+u,r._m1+=" touchcancel"+u,r._n1=.5,r.st.sliderTouch&&(r._f1=!0)):(r.hasTouch=!1,r._n1=.2)),r.st.sliderDrag&&(r._f1=!0,a.msie||a.opera?r._g1=r._h1="move":a.mozilla?(r._g1="-moz-grab",r._h1="-moz-grabbing"):a.webkit&&-1!=navigator.platform.indexOf("Mac")&&(r._g1="-webkit-grab",r._h1="-webkit-grabbing"),r._i1()),r.slider.html(o),r._o1=r.st.controlsInside?r._e1:r.slider,r._p1=r._e1.children(".rsContainer"),r.msEnabled&&r._p1.css("-ms-touch-action",r._h?"pan-y":"pan-x"),r._q1=p('<div class="rsPreloader"></div>'),o=r._p1.children(".rsSlide"),r._r1=r.slidesJQ[r.currSlideId],r._s1=0,r._e?(r._t1="transition-property",r._u1="transition-duration",r._v1="transition-timing-function",r._w1=r._x1=r._g+"transform",r._f?(a.webkit&&!a.chrome&&r.slider.addClass("rsWebkit3d"),/iphone|ipad|ipod/gi.test(navigator.appVersion),r._y1="translate3d(",r._z1="px, ",r._a2="px, 0px)"):(r._y1="translate(",r._z1="px, ",r._a2="px)"),r._l?r._p1[r._g+r._t1]=r._g+"transform":((a={})[r._g+r._t1]="opacity",a[r._g+r._u1]=r.st.transitionSpeed+"ms",a[r._g+r._v1]=r.st.css3easeInOut,o.css(a))):(r._x1="left",r._w1="top"),p(window).on("resize"+r.ns,function(){c&&clearTimeout(c),c=setTimeout(function(){r.updateSliderSize()},50)}),r.ev.trigger("rsAfterPropsSetup"),r.updateSliderSize(),r.st.keyboardNavEnabled&&r._b2(),r.st.arrowsNavHideOnTouch&&(r.hasTouch||r.msTouch)&&(r.st.arrowsNav=!1),r.st.arrowsNav&&(a=r._o1,p('<div class="rsArrow rsArrowLeft"><div class="rsArrowIcn"></div></div><div class="rsArrow rsArrowRight"><div class="rsArrowIcn"></div></div>').appendTo(a),r._c2=a.children(".rsArrowLeft").click(function(e){e.preventDefault(),r.prev()}),r._d2=a.children(".rsArrowRight").click(function(e){e.preventDefault(),r.next()}),r.st.arrowsNavAutoHide&&!r.hasTouch&&(r._c2.addClass("rsHidden"),r._d2.addClass("rsHidden"),a.one("mousemove.arrowshover",function(){r._c2.removeClass("rsHidden"),r._d2.removeClass("rsHidden")}),a.hover(function(){r._e2||(r._c2.removeClass("rsHidden"),r._d2.removeClass("rsHidden"))},function(){r._e2||(r._c2.addClass("rsHidden"),r._d2.addClass("rsHidden"))})),r.ev.on("rsOnUpdateNav",function(){r._f2()}),r._f2()),r._f1?r._p1.on(r._j1,function(e){r._g2(e)}):r.dragSuccess=!1;var h=["rsPlayBtnIcon","rsPlayBtn","rsCloseVideoBtn","rsCloseVideoIcn"];r._p1.click(function(e){if(!r.dragSuccess){var i=p(e.target).attr("class");if(-1!==p.inArray(i,h)&&r.toggleVideo())return!1;if(r.st.navigateByClick&&!r._h2){if(p(e.target).closest(".rsNoDrag",r._r1).length)return!0;r._i2(e)}r.ev.trigger("rsSlideClick")}}).on("click.rs","a",function(e){return!r.dragSuccess&&(r._h2=!0,void setTimeout(function(){r._h2=!1},3))}),r.ev.trigger("rsAfterInit")}p.rsModules||(p.rsModules={uid:0}),s.prototype={constructor:s,_i2:function(e){(e=e[this._h?"pageX":"pageY"]-this._j2)>=this._q?this.next():e<0&&this.prev()},_t:function(){var e=this.st.numImagesToPreload;(this._z=this.st.loop)&&(2===this.numSlides?(this._z=!1,this.st.loopRewind=!0):this.numSlides<2&&(this.st.loopRewind=this._z=!1)),this._z&&0<e&&(this.numSlides<=4?e=1:this.st.numImagesToPreload>(this.numSlides-1)/2&&(e=Math.floor((this.numSlides-1)/2))),this._y=e},_s:function(e,i){function t(e,i){var t,s;i?o.images.push(e.attr(i)):o.images.push(e.text()),a&&(a=!1,o.caption="src"===i?e.attr("alt"):e.contents(),o.image=o.images[0],o.videoURL=e.attr("data-rsVideo"),t=e.attr("data-rsw"),s=e.attr("data-rsh"),void 0!==t&&!1!==t&&void 0!==s&&!1!==s?(o.iW=parseInt(t,10),o.iH=parseInt(s,10)):r.st.imgWidth&&r.st.imgHeight&&(o.iW=r.st.imgWidth,o.iH=r.st.imgHeight))}var s,n,r=this,o={},a=!0;if(e=p(e),r._k2=e,r.ev.trigger("rsBeforeParseNode",[e,o]),!o.stopParsing)return e=r._k2,o.id=r._r,o.contentAdded=!1,r._r++,o.images=[],o.isBig=!1,o.hasCover||(e.hasClass("rsImg")?(n=e,s=!0):(n=e.find(".rsImg")).length&&(s=!0),s?(o.bigImage=n.eq(0).attr("data-rsBigImg"),n.each(function(){var e=p(this);e.is("a")?t(e,"href"):e.is("img")?t(e,"src"):t(e)})):e.is("img")&&(e.addClass("rsImg rsMainSlideImage"),t(e,"src"))),(n=e.find(".rsCaption")).length&&(o.caption=n.remove()),o.content=e,r.ev.trigger("rsAfterParseNode",[e,o]),i&&r.slides.push(o),0===o.images.length&&(o.isLoaded=!0,o.isRendered=!1,o.isLoading=!1,o.images=null),o},_b2:function(){function i(e){37===e?n.prev():39===e&&n.next()}var t,s,n=this;n._b.on("keydown"+n.ns,function(e){n._l2||(37!==(s=e.keyCode)&&39!==s||t||(i(s),t=setInterval(function(){i(s)},700)))}).on("keyup"+n.ns,function(e){t&&(clearInterval(t),t=null)})},goTo:function(e,i){e!==this.currSlideId&&this._m2(e,this.st.transitionSpeed,!0,!i)},destroy:function(e){this.ev.trigger("rsBeforeDestroy"),this._b.off("keydown"+this.ns+" keyup"+this.ns+" "+this._k1+" "+this._l1),this._p1.off(this._j1+" click"),this.slider.data("royalSlider",null),p.removeData(this.slider,"royalSlider"),p(window).off("resize"+this.ns),e&&this.slider.remove(),this.ev=this.slider=this.slides=null},_n2:function(s,e){function i(e,i,t){e.isAdded?(n(0,e),r(i)):(t=t||a.slidesJQ[i],e.holder?t=e.holder:(t=a.slidesJQ[i]=p(t),e.holder=t),e.appendOnLoaded=!1,r(i,0,t),n(0,e),a._p2(e,t,s),e.isAdded=!0)}function n(e,i){i.contentAdded||(a.setItemHtml(i,s),s||(i.contentAdded=!0))}function r(e,i,t){a._l&&(t=t||a.slidesJQ[e]).css(a._i,(e+a._d1+_)*a._w)}function t(e){if(d){if(l-1<e)return t(e-l);if(e<0)return t(l+e)}return e}var o,a=this,d=a._z,l=a.numSlides;if(!isNaN(e))return t(e);for(var _,c,u=a.currSlideId,h=s?Math.abs(a._o2-a.currSlideId)>=a.numSlides-1?0:1:a._y,f=Math.min(2,h),m=!1,v=!1,g=u;g<u+1+f;g++)if(c=t(g),(o=a.slides[c])&&(!o.isAdded||!o.positionSet)){m=!0;break}for(g=u-1;u-1-f<g;g--)if(c=t(g),(o=a.slides[c])&&(!o.isAdded||!o.positionSet)){v=!0;break}if(m)for(g=u;g<u+h+1;g++)c=t(g),_=Math.floor((a._u-(u-g))/a.numSlides)*a.numSlides,(o=a.slides[c])&&i(o,c);if(v)for(g=u-1;u-1-h<g;g--)c=t(g),_=Math.floor((a._u-(u-g))/l)*l,(o=a.slides[c])&&i(o,c);if(!s)for(f=t(u-h),h=(u=t(u+h))<f?0:f,g=0;g<l;g++)u<f&&f-1<g||!(g<h||u<g)||(o=a.slides[g])&&o.holder&&(o.holder.detach(),o.isAdded=!1)},setItemHtml:function(n,t){function e(){if(n.images){if(!n.isLoading){var e,t;if(n.content.hasClass("rsImg")?(e=n.content,t=!0):e=n.content.find(".rsImg:not(img)"),e&&!e.is("img")&&e.each(function(){var e=p(this),i='<img class="rsImg" src="'+(e.is("a")?e.attr("href"):e.text())+'" />';t?n.content=p(i):e.replaceWith(i)}),e=t?n.content:n.content.find("img.rsImg"),l(),e.eq(0).addClass("rsMainSlideImage"),n.iW&&n.iH&&(n.isLoaded||r._q2(n),d()),n.isLoading=!0,n.isBig)p("<img />").on("load.rs error.rs",function(e){p(this).off("load.rs error.rs"),o([this],!0)}).attr("src",n.image);else{n.loaded=[],e=function(e){p(this).off("load.rs error.rs"),n.loaded.push(this),n.loaded.length===n.numStartedLoad&&o(n.loaded,!1)};for(var i=n.numStartedLoad=0;i<n.images.length;i++){var s=p("<img />");n.numStartedLoad++,s.on("load.rs error.rs",e).attr("src",n.images[i])}}}}else n.isRendered=!0,n.isLoaded=!0,n.isLoading=!1,d(!0)}var r=this,o=function(e,i){var t,s;e.length?(t=e[0],i!==n.isBig?(t=n.holder.children())&&1<t.length&&_():n.iW&&n.iH?a():(n.iW=t.width,n.iH=t.height,n.iW&&n.iH?a():((s=new Image).onload=function(){s.width?(n.iW=s.width,n.iH=s.height,a()):setTimeout(function(){s.width&&(n.iW=s.width,n.iH=s.height),a()},1e3)},s.src=t.src))):a()},a=function(){n.isLoaded=!0,n.isLoading=!1,d(),_(),s()},d=function(){var e,i;!n.isAppended&&r.ev&&(e=r.st.visibleNearby,i=n.id-r._o,t||n.appendOnLoaded||!r.st.fadeinLoadedSlide||0!=i&&(!(e||r._r2||r._l2)||-1!=i&&1!=i)||((e={visibility:"visible",opacity:0})[r._g+"transition"]="opacity 400ms ease-in-out",n.content.css(e),setTimeout(function(){n.content.css("opacity",1)},16)),n.holder.find(".rsPreloader").length?n.holder.append(n.content):n.holder.html(n.content),n.isAppended=!0,n.isLoaded&&(r._q2(n),s()),n.sizeReady||(n.sizeReady=!0,setTimeout(function(){r.ev.trigger("rsMaybeSizeReady",n)},100)))},s=function(){!n.loadedTriggered&&r.ev&&(n.isLoaded=n.loadedTriggered=!0,n.holder.trigger("rsAfterContentSet"),r.ev.trigger("rsAfterContentSet",n))},l=function(){r.st.usePreloader&&n.holder.html(r._q1.clone())},_=function(e){r.st.usePreloader&&((e=n.holder.find(".rsPreloader")).length&&e.remove())};n.isLoaded?d():!t||!r._l&&n.images&&n.iW&&n.iH?e():(n.holder.isWaiting=!0,l(),n.holder.slideId=-99)},_p2:function(e,i,t){this._p1.append(e.holder),e.appendOnLoaded=!1},_g2:function(e,i){var t,s=this,n="touchstart"===e.type;if(s._s2=n,s.ev.trigger("rsDragStart"),p(e.target).closest(".rsNoDrag",s._r1).length)return!(s.dragSuccess=!1);if(!i&&s._r2&&(s._t2=!0,s._u2()),s.dragSuccess=!1,s._l2)n&&(s._v2=!0);else{if(n&&(s._v2=!1),s._w2(),n){var r=e.originalEvent.touches;if(!(r&&0<r.length))return;t=r[0],1<r.length&&(s._v2=!0)}else e.preventDefault(),t=e,s.msEnabled&&(t=t.originalEvent);s._l2=!0,s._b.on(s._k1,function(e){s._x2(e,i)}).on(s._l1,function(e){s._y2(e,i)}),s._z2="",s._a3=!1,s._b3=t.pageX,s._c3=t.pageY,s._d3=s._v=(i?s._e3:s._h)?t.pageX:t.pageY,s._f3=0,s._g3=0,s._h3=i?s._i3:s._p,s._j3=(new Date).getTime(),n&&s._e1.on(s._m1,function(e){s._y2(e,i)})}},_k3:function(e,i){var t,s,n,r,o,a;this._l3&&(t=this._m3,s=e.pageX-this._b3,n=e.pageY-this._c3,o=this._h3+s,a=this._h3+n,o=(r=i?this._e3:this._h)?o:a,a=this._z2,this._a3=!0,this._b3=e.pageX,this._c3=e.pageY,"x"===a&&0!==s?this._f3=0<s?1:-1:"y"===a&&0!=n&&(this._g3=0<n?1:-1),a=r?this._b3:this._c3,s=r?s:n,i?(o>this._n3||o<this._o3)&&(o=this._h3+s*this._n1):this._z||(this.currSlideId<=0&&0<a-this._d3&&(o=this._h3+s*this._n1),this.currSlideId>=this.numSlides-1&&a-this._d3<0&&(o=this._h3+s*this._n1)),this._h3=o,200<t-this._j3&&(this._j3=t,this._v=a),i?this._q3(this._h3):this._l&&this._p3(this._h3))},_x2:function(e,i){var t,s=this,n="touchmove"===e.type;if(!s._s2||n){if(n){if(s._r3)return;var r=e.originalEvent.touches;if(!r)return;if(1<r.length)return;t=r[0]}else t=e,s.msEnabled&&(t=t.originalEvent);if(s._a3||(s._e&&(i?s._s3:s._p1).css(s._g+s._u1,"0s"),function e(){s._l2&&(s._t3=requestAnimationFrame(e),s._u3&&s._k3(s._u3,i))}()),s._l3)e.preventDefault(),s._m3=(new Date).getTime(),s._u3=t;else if(r=i?s._e3:s._h,7<(t=Math.abs(t.pageX-s._b3)-Math.abs(t.pageY-s._c3)-(r?-7:7))){if(r)e.preventDefault(),s._z2="x";else if(n)return void s._v3(e);s._l3=!0}else if(t<-7){if(r){if(n)return void s._v3(e)}else e.preventDefault(),s._z2="y";s._l3=!0}}},_v3:function(e,i){this._r3=!0,this._a3=this._l2=!1,this._y2(e)},_y2:function(e,t){function s(e){return e<100?100:500<e?500:e}function i(e,i){(a._l||t)&&(r=(-a._u-a._d1)*a._w,o=Math.abs(a._p-r),a._c=o/i,e&&(a._c+=250),a._c=s(a._c),a._x3(r,!1))}var n,r,o,a=this;if(_=-1<e.type.indexOf("touch"),!a._s2||_)if(a._s2=!1,a.ev.trigger("rsDragRelease"),a._u3=null,a._l2=!1,a._r3=!1,a._l3=!1,a._m3=0,cancelAnimationFrame(a._t3),a._a3&&(t?a._q3(a._h3):a._l&&a._p3(a._h3)),a._b.off(a._k1).off(a._l1),_&&a._e1.off(a._m1),a._i1(),!a._a3&&!a._v2&&t&&a._w3){var d=p(e.target).closest(".rsNavItem");d.length&&a.goTo(d.index())}else{if(n=t?a._e3:a._h,!a._a3||"y"===a._z2&&n||"x"===a._z2&&!n){if(t||!a._t2)return a._t2=!1,void(a.dragSuccess=!1);if(a._t2=!1,a.st.navigateByClick)return a._i2(a.msEnabled?e.originalEvent:e),void(a.dragSuccess=!0);a.dragSuccess=!0}else a.dragSuccess=!0;a._t2=!1,a._z2="";var l=a.st.minSlideOffset,_=_?e.originalEvent.changedTouches[0]:a.msEnabled?e.originalEvent:e,c=n?_.pageX:_.pageY,u=a._d3;_=a._v;var h=a.currSlideId,f=a.numSlides,m=n?a._f3:a._g3,v=a._z;if(Math.abs(c-u),n=c-_,_=(new Date).getTime()-a._j3,_=Math.abs(n)/_,0===m||f<=1)i(!0,_);else{if(!v&&!t)if(h<=0){if(0<m)return void i(!0,_)}else if(f-1<=h&&m<0)return void i(!0,_);if(t){if((r=a._i3)>a._n3)r=a._n3;else if(r<a._o3)r=a._o3;else{if(l=_*_/.006,d=-a._i3,c=a._y3-a._z3+a._i3,0<n&&d<l?(_=_*(d+=a._z3/(15/(l/_*.003)))/l,l=d):n<0&&c<l&&(_=_*(c+=a._z3/(15/(l/_*.003)))/l,l=c),d=Math.max(Math.round(_/.003),50),(r+=l*(n<0?-1:1))>a._n3)return void a._a4(r,d,!0,a._n3,200);if(r<a._o3)return void a._a4(r,d,!0,a._o3,200)}a._a4(r,d,!0)}else u+l<c?m<0?i(!1,_):a._m2("prev",s(Math.abs(a._p-(-a._u-a._d1+1)*a._w)/_),!1,!0,!0):!(c<u-l)||0<m?i(!1,_):a._m2("next",s(Math.abs(a._p-(-a._u-a._d1-1)*a._w)/_),!1,!0,!0)}}},_p3:function(e){e=this._p=e,this._e?this._p1.css(this._x1,this._y1+(this._h?e+this._z1+0:0+this._z1+e)+this._a2):this._p1.css(this._h?this._x1:this._w1,e)},updateSliderSize:function(e){var i,t,s,n;if(this.st.autoScaleSlider?(s=this.st.autoScaleSliderWidth,n=this.st.autoScaleSliderHeight,this.st.autoScaleHeight?((i=this.slider.width())!=this.width&&(this.slider.css("height",i*(n/s)),i=this.slider.width()),t=this.slider.height()):((t=this.slider.height())!=this.height&&(this.slider.css("width",t*(s/n)),t=this.slider.height()),i=this.slider.width())):(i=this.slider.width(),t=this.slider.height()),e||i!=this.width||t!=this.height){for(this.width=i,this.height=t,this._b4=i,this._c4=t,this.ev.trigger("rsBeforeSizeSet"),this.ev.trigger("rsAfterSizePropSet"),this._e1.css({width:this._b4,height:this._c4}),this._w=(this._h?this._b4:this._c4)+this.st.slidesSpacing,this._d4=this.st.imageScalePadding,i=0;i<this.slides.length;i++)(e=this.slides[i]).positionSet=!1,e&&e.images&&e.isLoaded&&(e.isRendered=!1,this._q2(e));if(this._e4)for(i=0;i<this._e4.length;i++)(e=this._e4[i]).holder.css(this._i,(e.id+this._d1)*this._w);this._n2(),this._l&&(this._e&&this._p1.css(this._g+"transition-duration","0s"),this._p3((-this._u-this._d1)*this._w)),this.ev.trigger("rsOnUpdateNav")}this._j2=this._e1.offset(),this._j2=this._j2[this._i]},appendSlide:function(e,i){var t=this._s(e);(isNaN(i)||i>this.numSlides)&&(i=this.numSlides),this.slides.splice(i,0,t),this.slidesJQ.splice(i,0,p('<div style="'+(this._l?"position:absolute;":this._n)+'" class="rsSlide"></div>')),i<this.currSlideId&&this.currSlideId++,this.ev.trigger("rsOnAppendSlide",[t,i]),this._f4(i),i===this.currSlideId&&this.ev.trigger("rsAfterSlideChange")},removeSlide:function(e){var i=this.slides[e];i&&(i.holder&&i.holder.remove(),e<this.currSlideId&&this.currSlideId--,this.slides.splice(e,1),this.slidesJQ.splice(e,1),this.ev.trigger("rsOnRemoveSlide",[e]),this._f4(e),e===this.currSlideId&&this.ev.trigger("rsAfterSlideChange"))},_f4:function(e){var i=this;for(e=i.numSlides,e=i._u<=0?0:Math.floor(i._u/e),i.numSlides=i.slides.length,0===i.numSlides?(i.currSlideId=i._d1=i._u=0,i.currSlide=i._g4=null):i._u=e*i.numSlides+i.currSlideId,e=0;e<i.numSlides;e++)i.slides[e].id=e;i.currSlide=i.slides[i.currSlideId],i._r1=i.slidesJQ[i.currSlideId],i.currSlideId>=i.numSlides?i.goTo(i.numSlides-1):i.currSlideId<0&&i.goTo(0),i._t(),i._l&&i._z&&i._p1.css(i._g+i._u1,"0ms"),i._h4&&clearTimeout(i._h4),i._h4=setTimeout(function(){i._l&&i._p3((-i._u-i._d1)*i._w),i._n2(),i._l||i._r1.css({display:"block",opacity:1})},14),i.ev.trigger("rsOnUpdateNav")},_i1:function(){this._f1&&this._l&&(this._g1?this._e1.css("cursor",this._g1):(this._e1.removeClass("grabbing-cursor"),this._e1.addClass("grab-cursor")))},_w2:function(){this._f1&&this._l&&(this._h1?this._e1.css("cursor",this._h1):(this._e1.removeClass("grab-cursor"),this._e1.addClass("grabbing-cursor")))},next:function(e){this._m2("next",this.st.transitionSpeed,!0,!e)},prev:function(e){this._m2("prev",this.st.transitionSpeed,!0,!e)},_m2:function(e,i,t,s,n){var r,o,a=this;if(a.ev.trigger("rsBeforeMove",[e,s]),o="next"===e?a.currSlideId+1:"prev"===e?a.currSlideId-1:e=parseInt(e,10),!a._z){if(o<0)return void a._i4("left",!s);if(o>=a.numSlides)return void a._i4("right",!s)}a._r2&&(a._u2(!0),t=!1),c=o-a.currSlideId,o=a._o2=a.currSlideId;var d,l=a.currSlideId+c;s=a._u,a._z?(l=a._n2(!1,l),s+=c):s=l,a._o=l,a._g4=a.slidesJQ[a.currSlideId],a._u=s,a.currSlideId=a._o,a.currSlide=a.slides[a.currSlideId],a._r1=a.slidesJQ[a.currSlideId];var l=a.st.slidesDiff,_=Boolean(0<c),c=Math.abs(c),u=Math.floor(o/a._y),h=Math.floor((o+(_?l:-l))/a._y);if((u=(_?Math.max(u,h):Math.min(u,h))*a._y+(_?a._y-1:0))>a.numSlides-1?u=a.numSlides-1:u<0&&(u=0),(o=_?u-o:o-u)>a._y&&(o=a._y),o+l<c)for(a._d1+=(c-(o+l))*(_?-1:1),i*=1.4,o=0;o<a.numSlides;o++)a.slides[o].positionSet=!1;a._c=i,a._n2(!0),n||(d=!0),r=(-s-a._d1)*a._w,d?setTimeout(function(){a._j4=!1,a._x3(r,e,!1,t),a.ev.trigger("rsOnUpdateNav")},0):(a._x3(r,e,!1,t),a.ev.trigger("rsOnUpdateNav"))},_f2:function(){this.st.arrowsNav&&(this.numSlides<=1?(this._c2.css("display","none"),this._d2.css("display","none")):(this._c2.css("display","block"),this._d2.css("display","block"),this._z||this.st.loopRewind||(0===this.currSlideId?this._c2.addClass("rsArrowDisabled"):this._c2.removeClass("rsArrowDisabled"),this.currSlideId===this.numSlides-1?this._d2.addClass("rsArrowDisabled"):this._d2.removeClass("rsArrowDisabled"))))},_x3:function(e,i,t,s,n){function r(){var e;o&&(e=o.data("rsTimeout"))&&(o!==a&&o.css({opacity:0,display:"none",zIndex:0}),clearTimeout(e),o.data("rsTimeout","")),(e=a.data("rsTimeout"))&&(clearTimeout(e),a.data("rsTimeout",""))}var o,a,d=this,l={};isNaN(d._c)&&(d._c=400),d._p=d._h3=e,d.ev.trigger("rsBeforeAnimStart"),d._e?d._l?(d._c=parseInt(d._c,10),t=d._g+d._v1,l[d._g+d._u1]=d._c+"ms",l[t]=s?p.rsCSS3Easing[d.st.easeInOut]:p.rsCSS3Easing[d.st.easeOut],d._p1.css(l),s||!d.hasTouch?setTimeout(function(){d._p3(e)},5):d._p3(e)):(d._c=d.st.transitionSpeed,o=d._g4,(a=d._r1).data("rsTimeout")&&a.css("opacity",0),r(),o&&o.data("rsTimeout",setTimeout(function(){l[d._g+d._u1]="0ms",l.zIndex=0,l.display="none",o.data("rsTimeout",""),o.css(l),setTimeout(function(){o.css("opacity",0)},16)},d._c+60)),l.display="block",l.zIndex=d._m,l.opacity=0,l[d._g+d._u1]="0ms",l[d._g+d._v1]=p.rsCSS3Easing[d.st.easeInOut],a.css(l),a.data("rsTimeout",setTimeout(function(){a.css(d._g+d._u1,d._c+"ms"),a.data("rsTimeout",setTimeout(function(){a.css("opacity",1),a.data("rsTimeout","")},20))},20))):d._l?(l[d._h?d._x1:d._w1]=e+"px",d._p1.animate(l,d._c,s?d.st.easeInOut:d.st.easeOut)):(o=d._g4,(a=d._r1).stop(!0,!0).css({opacity:0,display:"block",zIndex:d._m}),d._c=d.st.transitionSpeed,a.animate({opacity:1},d._c,d.st.easeInOut),r(),o&&o.data("rsTimeout",setTimeout(function(){o.stop(!0,!0).css({opacity:0,display:"none",zIndex:0})},d._c+60))),d._r2=!0,d.loadingTimeout&&clearTimeout(d.loadingTimeout),d.loadingTimeout=n?setTimeout(function(){d.loadingTimeout=null,n.call()},d._c+60):setTimeout(function(){d.loadingTimeout=null,d._k4(i)},d._c+60)},_u2:function(e){var i;this._r2=!1,clearTimeout(this.loadingTimeout),this._l?this._e?e||(e=this._p,i=this._h3=this._l4(),this._p1.css(this._g+this._u1,"0ms"),e!==i&&this._p3(i)):(this._p1.stop(!0),this._p=parseInt(this._p1.css(this._x1),10)):20<this._m?this._m=10:this._m++},_l4:function(){var e=window.getComputedStyle(this._p1.get(0),null).getPropertyValue(this._g+"transform").replace(/^matrix\(/i,"").split(/, |\)$/g),i=0===e[0].indexOf("matrix3d");return parseInt(e[this._h?i?12:4:i?13:5],10)},_m4:function(e,i){return this._e?this._y1+(i?e+this._z1+0:0+this._z1+e)+this._a2:e},_k4:function(e){this._l||(this._r1.css("z-index",0),this._m=10),this._r2=!1,this.staticSlideId=this.currSlideId,this._n2(),this._n4=!1,this.ev.trigger("rsAfterSlideChange")},_i4:function(e,i){var t,s=this,n=(-s._u-s._d1)*s._w;0===s.numSlides||s._r2||(s.st.loopRewind?s.goTo("left"===e?s.numSlides-1:0,i):s._l&&(s._c=200,t=function(){s._r2=!1},s._x3(n+("left"===e?30:-30),"",!1,!0,function(){s._r2=!1,s._x3(n,"",!1,!0,t)})))},_q2:function(e,i){var t,s,n,r,o,a,d,l,_,c,u,h;e.isRendered||(t=e.content,s="rsMainSlideImage",r=this.st.imageAlignCenter,o=this.st.imageScaleMode,e.videoURL&&(s="rsVideoContainer","fill"!==o?n=!0:((a=t).hasClass(s)||(a=a.find("."+s)),a.css({width:"100%",height:"100%"}),s="rsMainSlideImage")),t.hasClass(s)||(t=t.find("."+s)),t&&(d=e.iW,l=e.iH,e.isRendered=!0,"none"===o&&!r||(s="fill"!==o?this._d4:0,a=this._b4-2*s,_=this._c4-2*s,h={},"fit-if-smaller"===o&&(a<d||_<l)&&(o="fit"),"fill"!==o&&"fit"!==o||(c=a/d,u=_/l,c="fill"==o?u<c?c:u:"fit"==o?c<u?c:u:1,d=Math.ceil(d*c,10),l=Math.ceil(l*c,10)),"none"!==o&&(h.width=d,h.height=l,n&&t.find(".rsImg").css({width:"100%",height:"100%"})),r&&(h.marginLeft=Math.floor((a-d)/2)+s,h.marginTop=Math.floor((_-l)/2)+s),t.css(h))))}},p.rsProto=s.prototype,p.fn.royalSlider=function(i){var t=arguments;return this.each(function(){var e=p(this);if("object"!=typeof i&&i){if((e=e.data("royalSlider"))&&e[i])return e[i].apply(e,Array.prototype.slice.call(t,1))}else e.data("royalSlider")||e.data("royalSlider",new s(e,i))})},p.fn.royalSlider.defaults={slidesSpacing:8,startSlideId:0,loop:!1,loopRewind:!1,numImagesToPreload:4,fadeinLoadedSlide:!0,slidesOrientation:"horizontal",transitionType:"fade",transitionSpeed:600,controlNavigation:"bullets",controlsInside:!0,arrowsNav:!0,arrowsNavAutoHide:!0,navigateByClick:!0,randomizeSlides:!1,sliderDrag:!0,sliderTouch:!0,keyboardNavEnabled:!1,fadeInAfterLoaded:!0,allowCSS3:!0,allowCSS3OnWebkit:!0,addActiveClass:!1,autoHeight:!1,easeOut:"easeOutSine",easeInOut:"easeInOutSine",minSlideOffset:10,imageScaleMode:"fit-if-smaller",imageAlignCenter:!0,imageScalePadding:0,usePreloader:!0,autoScaleSlider:!1,autoScaleSliderWidth:800,autoScaleSliderHeight:400,autoScaleHeight:!0,arrowsNavHideOnTouch:!1,globalCaption:!1,slidesDiff:2},p.rsCSS3Easing={easeOutSine:"cubic-bezier(0.390, 0.575, 0.565, 1.000)",easeInOutSine:"cubic-bezier(0.445, 0.050, 0.550, 0.950)"},p.extend(jQuery.easing,{easeInOutSine:function(e,i,t,s,n){return-s/2*(Math.cos(Math.PI*i/n)-1)+t},easeOutSine:function(e,i,t,s,n){return s*Math.sin(i/n*(Math.PI/2))+t},easeOutCubic:function(e,i,t,s,n){return s*((i=i/n-1)*i*i+1)+t}})}(jQuery,window),function(e){e.rsProto._o4=function(){var e,i=this;i.st.addActiveClass&&i.ev.on("rsOnUpdateNav",function(){e&&clearTimeout(e),e=setTimeout(function(){i._g4&&i._g4.removeClass("rsActiveSlide"),i._r1&&i._r1.addClass("rsActiveSlide"),e=null},50)})},e.rsModules.activeClass=e.rsProto._o4}(jQuery),function(v){v.extend(v.rsProto,{_p4:function(){function t(){var e,i=n.currSlide;if(n.currSlide&&n.currSlide.isLoaded&&n._t4!==i){if(0<n._s4.length){for(s=0;s<n._s4.length;s++)clearTimeout(n._s4[s]);n._s4=[]}if(0<n._r4.length){for(s=0;s<n._r4.length;s++)(e=n._r4[s])&&(n._e?(e.block.css(n._g+n._u1,"0s"),e.block.css(e.css)):e.block.stop(!0).css(e.css),n._t4=null,i.animBlocksDisplayed=!1);n._r4=[]}i.animBlocks&&(i.animBlocksDisplayed=!0,n._t4=i,n._u4(i.animBlocks))}}var s,n=this;n._q4={fadeEffect:!0,moveEffect:"top",moveOffset:20,speed:400,easing:"easeOutSine",delay:200},n.st.block=v.extend({},n._q4,n.st.block),n._r4=[],n._s4=[],n.ev.on("rsAfterInit",function(){t()}),n.ev.on("rsBeforeParseNode",function(e,i,t){i=v(i),t.animBlocks=i.find(".rsABlock").css("display","none"),t.animBlocks.length||(i.hasClass("rsABlock")?t.animBlocks=i.css("display","none"):t.animBlocks=!1)}),n.ev.on("rsAfterContentSet",function(e,i){i.id===n.slides[n.currSlideId].id&&setTimeout(function(){t()},n.st.fadeinLoadedSlide?300:0)}),n.ev.on("rsAfterSlideChange",function(){t()})},_v4:function(e,i){setTimeout(function(){e.css(i)},6)},_u4:function(e){var d,l,_,c,u,h,f,m=this;m._s4=[],e.each(function(e){d=v(this),l={},_={},c=null;var i,t,s,n,r,o,a=d.attr("data-move-offset");0<(a=a?parseInt(a,10):m.st.block.moveOffset)&&((h=d.data("move-effect"))?"none"===(h=h.toLowerCase())?h=!1:"left"!==h&&"top"!==h&&"bottom"!==h&&"right"!==h&&("none"===(h=m.st.block.moveEffect)&&(h=!1)):h=m.st.block.moveEffect,h&&"none"!==h)&&(t="right"===h||"left"===h,f=!1,m._e?(i=0,u=m._x1):(t?isNaN(parseInt(d.css("right"),10))?u="left":(u="right",f=!0):isNaN(parseInt(d.css("bottom"),10))?u="top":(u="bottom",f=!0),u="margin-"+u,f&&(a=-a),m._e?i=parseInt(d.css(u),10):void 0===(i=d.data("rs-start-move-prop"))&&(i=parseInt(d.css(u),10),isNaN(i)&&(i=0),d.data("rs-start-move-prop",i))),_[u]=m._m4("top"===h||"left"===h?i-a:i+a,t),l[u]=m._m4(i,t)),(a=d.attr("data-fade-effect"))?"none"!==a.toLowerCase()&&"false"!==a.toLowerCase()||(a=!1):a=m.st.block.fadeEffect,a&&(_.opacity=0,l.opacity=1),(a||h)&&((c={}).hasFade=Boolean(a),Boolean(h)&&(c.moveProp=u,c.hasMove=!0),c.speed=d.data("speed"),isNaN(c.speed)&&(c.speed=m.st.block.speed),c.easing=d.data("easing"),c.easing||(c.easing=m.st.block.easing),c.css3Easing=v.rsCSS3Easing[c.easing],c.delay=d.data("delay"),isNaN(c.delay)&&(c.delay=m.st.block.delay*e)),a={},m._e&&(a[m._g+m._u1]="0ms"),a.moveProp=l.moveProp,a.opacity=l.opacity,a.display="none",m._r4.push({block:d,css:a}),m._v4(d,_),m._s4.push(setTimeout((s=d,n=l,o=e,function(){var e,i;s.css("display","block"),r&&(e={},m._e?(i="",r.hasMove&&(i+=r.moveProp),r.hasFade&&(r.hasMove&&(i+=", "),i+="opacity"),e[m._g+m._t1]=i,e[m._g+m._u1]=r.speed+"ms",e[m._g+m._v1]=r.css3Easing,s.css(e),setTimeout(function(){s.css(n)},24)):setTimeout(function(){s.animate(n,r.speed,r.easing)},16)),delete m._s4[o]}),(r=c).delay<=6?12:c.delay))})}}),v.rsModules.animatedBlocks=v.rsProto._p4}(jQuery),function(e){e.extend(e.rsProto,{_w4:function(){var i,t,s,n,r=this;r.st.autoHeight&&(n=function(e){s=r.slides[r.currSlideId],(i=s.holder)&&(t=i.height())&&void 0!==t&&(r._c4=t,r._e||!e?r._e1.css("height",t):r._e1.stop(!0,!0).animate({height:t},r.st.transitionSpeed))},r.ev.on("rsMaybeSizeReady.rsAutoHeight",function(e,i){s===i&&n()}),r.ev.on("rsAfterContentSet.rsAutoHeight",function(e,i){s===i&&n()}),r.slider.addClass("rsAutoHeight"),r.ev.one("rsAfterInit",function(){setTimeout(function(){n(!1),setTimeout(function(){r.slider.append('<div style="clear:both; float: none;"></div>'),r._e&&r._e1.css(r._g+"transition","height "+r.st.transitionSpeed+"ms ease-in-out")},16)},16)}),r.ev.on("rsBeforeAnimStart",function(){n(!0)}),r.ev.on("rsBeforeSizeSet",function(){setTimeout(function(){n(!1)},16)}))}}),e.rsModules.autoHeight=e.rsProto._w4}(jQuery),function(n){n.extend(n.rsProto,{_x4:function(){var s,e=this;e._y4={enabled:!1,stopAtAction:!0,pauseOnHover:!0,delay:2e3},!e.st.autoPlay&&e.st.autoplay&&(e.st.autoPlay=e.st.autoplay),e.st.autoPlay=n.extend({},e._y4,e.st.autoPlay),e.st.autoPlay.enabled&&(e.ev.on("rsBeforeParseNode",function(e,i,t){i=n(i),(s=i.attr("data-rsDelay"))&&(t.customDelay=parseInt(s,10))}),e.ev.one("rsAfterInit",function(){e._z4()}),e.ev.on("rsBeforeDestroy",function(){e.stopAutoPlay(),e.slider.off("mouseenter mouseleave"),n(window).off("blur"+e.ns+" focus"+e.ns)}))},_z4:function(){var s=this;s.startAutoPlay(),s.ev.on("rsAfterContentSet",function(e,i){s._l2||s._r2||!s._a5||i!==s.currSlide||s._b5()}),s.ev.on("rsDragRelease",function(){s._a5&&s._c5&&(s._c5=!1,s._b5())}),s.ev.on("rsAfterSlideChange",function(){s._a5&&s._c5&&(s._c5=!1,s.currSlide.isLoaded&&s._b5())}),s.ev.on("rsDragStart",function(){s._a5&&(s.st.autoPlay.stopAtAction?s.stopAutoPlay():(s._c5=!0,s._d5()))}),s.ev.on("rsBeforeMove",function(e,i,t){s._a5&&(t&&s.st.autoPlay.stopAtAction?s.stopAutoPlay():(s._c5=!0,s._d5()))}),s._e5=!1,s.ev.on("rsVideoStop",function(){s._a5&&(s._e5=!1,s._b5())}),s.ev.on("rsVideoPlay",function(){s._a5&&(s._c5=!1,s._d5(),s._e5=!0)}),n(window).on("blur"+s.ns,function(){s._a5&&(s._c5=!0,s._d5())}).on("focus"+s.ns,function(){s._a5&&s._c5&&(s._c5=!1,s._b5())}),s.st.autoPlay.pauseOnHover&&(s._f5=!1,s.slider.hover(function(){s._a5&&(s._c5=!1,s._d5(),s._f5=!0)},function(){s._a5&&(s._f5=!1,s._b5())}))},toggleAutoPlay:function(){this._a5?this.stopAutoPlay():this.startAutoPlay()},startAutoPlay:function(){this._a5=!0,this.currSlide.isLoaded&&this._b5()},stopAutoPlay:function(){this._e5=this._f5=this._c5=this._a5=!1,this._d5()},_b5:function(){var i=this;i._f5||i._e5||(i._g5=!0,i._h5&&clearTimeout(i._h5),i._h5=setTimeout(function(){var e;i._z||i.st.loopRewind||(e=!0,i.st.loopRewind=!0),i.next(!0),e&&(i.st.loopRewind=!1)},i.currSlide.customDelay?i.currSlide.customDelay:i.st.autoPlay.delay))},_d5:function(){this._f5||this._e5||(this._g5=!1,this._h5&&(clearTimeout(this._h5),this._h5=null))}}),n.rsModules.autoplay=n.rsProto._x4}(jQuery),function(t){t.extend(t.rsProto,{_i5:function(){var s=this;"bullets"===s.st.controlNavigation&&(s.ev.one("rsAfterPropsSetup",function(){s._j5=!0,s.slider.addClass("rsWithBullets");for(var e='<div class="rsNav rsBullets">',i=0;i<s.numSlides;i++)e+='<div class="rsNavItem rsBullet"><span></span></div>';s._k5=e=t(e+"</div>"),s._l5=e.appendTo(s.slider).children(),s._k5.on("click.rs",".rsNavItem",function(e){s._m5||s.goTo(t(this).index())})}),s.ev.on("rsOnAppendSlide",function(e,i,t){t>=s.numSlides?s._k5.append('<div class="rsNavItem rsBullet"><span></span></div>'):s._l5.eq(t).before('<div class="rsNavItem rsBullet"><span></span></div>'),s._l5=s._k5.children()}),s.ev.on("rsOnRemoveSlide",function(e,i){var t=s._l5.eq(i);t&&t.length&&(t.remove(),s._l5=s._k5.children())}),s.ev.on("rsOnUpdateNav",function(){var e=s.currSlideId;s._n5&&s._n5.removeClass("rsNavSelected"),(e=s._l5.eq(e)).addClass("rsNavSelected"),s._n5=e}))}}),t.rsModules.bullets=t.rsProto._i5}(jQuery),function(l){l.extend(l.rsProto,{_o5:function(){var i,e,t,s,n,r,o,a,d=this;d._p5={enabled:!1,change:!1,prefix:""},d.st.deeplinking=l.extend({},d._p5,d.st.deeplinking),d.st.deeplinking.enabled&&(s=d.st.deeplinking.change,n=d.st.deeplinking.prefix,r="#"+n,-1!==(a=(o=function(){var e=window.location.hash;return e&&0<e.indexOf(n)&&0<=(e=parseInt(e.substring(r.length),10))?e-1:-1})())&&(d.st.startSlideId=a),s&&(l(window).on("hashchange"+d.ns,function(e){i||((e=o())<0||(e>d.numSlides-1&&(e=d.numSlides-1),d.goTo(e)))}),d.ev.on("rsBeforeAnimStart",function(){e&&clearTimeout(e),t&&clearTimeout(t)}),d.ev.on("rsAfterSlideChange",function(){e&&clearTimeout(e),t&&clearTimeout(t),t=setTimeout(function(){i=!0,window.location.replace((""+window.location).split("#")[0]+r+(d.currSlideId+1)),e=setTimeout(function(){i=!1,e=null},60)},400)})),d.ev.on("rsBeforeDestroy",function(){e=t=null,s&&l(window).off("hashchange"+d.ns)}))}}),l.rsModules.deeplinking=l.rsProto._o5}(jQuery),function(n,t){function s(e){return"#"+(e=e||location.href).replace(/^[^#]*#?(.*)$/,"$1")}var e,r,o,i,a,d,l,_,c="hashchange",u=document,h=n.event.special,f=u.documentMode,m="on"+c in t&&(void 0===f||7<f);function v(){var e=s(),i=_(d);e!==d?(l(d=e,i),n(t).trigger(c)):i!==d&&(location.href=location.href.replace(/#.*/,"")+i),r=setTimeout(v,n.fn[c].delay)}function g(e){return e}n.fn[c]=function(e){return e?this.bind(c,e):this.trigger(c)},n.fn[c].delay=50,h[c]=n.extend(h[c],{setup:function(){if(m)return!1;n(e.start)},teardown:function(){if(m)return!1;n(e.stop)}}),a={},d=s(),_=l=g,a.start=function(){r||v()},a.stop=function(){r&&clearTimeout(r),r=void 0},!t.attachEvent||t.addEventListener||m||(a.start=function(){o||(i=(i=n.fn[c].src)&&i+s(),o=n('<iframe tabindex="-1" title="empty"/>').hide().one("load",function(){i||l(s()),v()}).attr("src",i||"javascript:0").insertAfter("body")[0].contentWindow,u.onpropertychange=function(){try{"title"===event.propertyName&&(o.document.title=u.title)}catch(e){}})},a.stop=g,_=function(){return s(o.location.href)},l=function(e,i){var t=o.document,s=n.fn[c].domain;e!==i&&(t.title=u.title,t.open(),s&&t.write('<script>document.domain="'+s+'"<\/script>'),t.close(),o.location.hash=e)}),e=a}(jQuery,this),function(s){s.extend(s.rsProto,{_q5:function(){var e=this;e._r5={enabled:!1,keyboardNav:!0,buttonFS:!0,nativeFS:!1,doubleTap:!0},e.st.fullscreen=s.extend({},e._r5,e.st.fullscreen),e.st.fullscreen.enabled&&e.ev.one("rsBeforeSizeSet",function(){e._s5()})},_s5:function(){var e=this;if(e._t5=!e.st.keyboardNavEnabled&&e.st.fullscreen.keyboardNav,e.st.fullscreen.nativeFS){e._u5={supportsFullScreen:!1,isFullScreen:function(){return!1},requestFullScreen:function(){},cancelFullScreen:function(){},fullScreenEventName:"",prefix:""};var i=["webkit","moz","o","ms","khtml"];if(!e.isAndroid)if(void 0!==document.cancelFullScreen)e._u5.supportsFullScreen=!0;else for(var t=0;t<i.length;t++)if(e._u5.prefix=i[t],void 0!==document[e._u5.prefix+"CancelFullScreen"]){e._u5.supportsFullScreen=!0;break}e._u5.supportsFullScreen?(e.nativeFS=!0,e._u5.fullScreenEventName=e._u5.prefix+"fullscreenchange"+e.ns,e._u5.isFullScreen=function(){switch(this.prefix){case"":return document.fullScreen;case"webkit":return document.webkitIsFullScreen;default:return document[this.prefix+"FullScreen"]}},e._u5.requestFullScreen=function(e){return""===this.prefix?e.requestFullScreen():e[this.prefix+"RequestFullScreen"]()},e._u5.cancelFullScreen=function(e){return""===this.prefix?document.cancelFullScreen():document[this.prefix+"CancelFullScreen"]()}):e._u5=!1}e.st.fullscreen.buttonFS&&(e._v5=s('<div class="rsFullscreenBtn"><div class="rsFullscreenIcn"></div></div>').appendTo(e._o1).on("click.rs",function(){e.isFullscreen?e.exitFullscreen():e.enterFullscreen()}))},enterFullscreen:function(e){var i,t=this;if(t._u5){if(!e)return t._b.on(t._u5.fullScreenEventName,function(e){t._u5.isFullScreen()?t.enterFullscreen(!0):t.exitFullscreen(!0)}),void t._u5.requestFullScreen(s("html")[0]);t._u5.requestFullScreen(s("html")[0])}if(!t._w5){for(t._w5=!0,t._b.on("keyup"+t.ns+"fullscreen",function(e){27===e.keyCode&&t.exitFullscreen()}),t._t5&&t._b2(),e=s(window),t._x5=e.scrollTop(),t._y5=e.scrollLeft(),t._z5=s("html").attr("style"),t._a6=s("body").attr("style"),t._b6=t.slider.attr("style"),s("body, html").css({overflow:"hidden",height:"100%",width:"100%",margin:"0",padding:"0"}),t.slider.addClass("rsFullscreen"),i=0;i<t.numSlides;i++)(e=t.slides[i]).isRendered=!1,e.bigImage&&(e.isBig=!0,e.isMedLoaded=e.isLoaded,e.isMedLoading=e.isLoading,e.medImage=e.image,e.medIW=e.iW,e.medIH=e.iH,e.slideId=-99,e.bigImage!==e.medImage&&(e.sizeType="big"),e.isLoaded=e.isBigLoaded,e.isLoading=!1,e.image=e.bigImage,e.images[0]=e.bigImage,e.iW=e.bigIW,e.iH=e.bigIH,e.isAppended=e.contentAdded=!1,t._c6(e));t.isFullscreen=!0,t._w5=!1,t.updateSliderSize(),t.ev.trigger("rsEnterFullscreen")}},exitFullscreen:function(e){var i,t=this;if(t._u5){if(!e)return void t._u5.cancelFullScreen(s("html")[0]);t._b.off(t._u5.fullScreenEventName)}if(!t._w5){for(t._w5=!0,t._b.off("keyup"+t.ns+"fullscreen"),t._t5&&t._b.off("keydown"+t.ns),s("html").attr("style",t._z5||""),s("body").attr("style",t._a6||""),i=0;i<t.numSlides;i++)(e=t.slides[i]).isRendered=!1,e.bigImage&&(e.isBig=!1,e.slideId=-99,e.isBigLoaded=e.isLoaded,e.isBigLoading=e.isLoading,e.bigImage=e.image,e.bigIW=e.iW,e.bigIH=e.iH,e.isLoaded=e.isMedLoaded,e.isLoading=!1,e.image=e.medImage,e.images[0]=e.medImage,e.iW=e.medIW,e.iH=e.medIH,e.isAppended=e.contentAdded=!1,t._c6(e,!0),e.bigImage!==e.medImage&&(e.sizeType="med"));t.isFullscreen=!1,(e=s(window)).scrollTop(t._x5),e.scrollLeft(t._y5),t._w5=!1,t.slider.removeClass("rsFullscreen"),t.updateSliderSize(),setTimeout(function(){t.updateSliderSize()},1),t.ev.trigger("rsExitFullscreen")}},_c6:function(e,i){var t=e.isLoaded||e.isLoading?'<img class="rsImg rsMainSlideImage" src="'+e.image+'"/>':'<a class="rsImg rsMainSlideImage" href="'+e.image+'"></a>';e.content.hasClass("rsImg")?e.content=s(t):e.content.find(".rsImg").eq(0).replaceWith(t),e.isLoaded||e.isLoading||!e.holder||e.holder.html(e.content)}}),s.rsModules.fullscreen=s.rsProto._q5}(jQuery),function(i){i.extend(i.rsProto,{_d6:function(){var e=this;e.st.globalCaption&&(e.ev.on("rsAfterInit",function(){e.globalCaption=i('<div class="rsGCaption"></div>').appendTo(e.st.globalCaptionInside?e._e1:e.slider),e.globalCaption.html(e.currSlide.caption)}),e.ev.on("rsBeforeAnimStart",function(){e.globalCaption.html(e.currSlide.caption)}))}}),i.rsModules.globalCaption=i.rsProto._d6}(jQuery),function(e){e.extend(e.rsProto,{_e6:function(){var i=this;i.st.navAutoHide&&!i.hasTouch&&i.ev.one("rsAfterInit",function(){var e;i._k5&&(i._k5.addClass("rsHidden"),(e=i.slider).one("mousemove.controlnav",function(){i._k5.removeClass("rsHidden")}),e.hover(function(){i._k5.removeClass("rsHidden")},function(){i._k5.addClass("rsHidden")}))})}}),e.rsModules.autoHideNav=e.rsProto._e6}(jQuery),function(n){n.extend(n.rsProto,{_f6:function(){var s=this;"tabs"===s.st.controlNavigation&&(s.ev.on("rsBeforeParseNode",function(e,i,t){i=n(i),t.thumbnail=i.find(".rsTmb").remove(),t.thumbnail.length?t.thumbnail=n(document.createElement("div")).append(t.thumbnail).html():(t.thumbnail=i.attr("data-rsTmb"),t.thumbnail||(t.thumbnail=i.find(".rsImg").attr("data-rsTmb")),t.thumbnail=t.thumbnail?'<img src="'+t.thumbnail+'"/>':"")}),s.ev.one("rsAfterPropsSetup",function(){s._g6()}),s.ev.on("rsOnAppendSlide",function(e,i,t){t>=s.numSlides?s._k5.append('<div class="rsNavItem rsTab">'+i.thumbnail+"</div>"):s._l5.eq(t).before('<div class="rsNavItem rsTab">'+item.thumbnail+"</div>"),s._l5=s._k5.children()}),s.ev.on("rsOnRemoveSlide",function(e,i){var t=s._l5.eq(i);t&&(t.remove(),s._l5=s._k5.children())}),s.ev.on("rsOnUpdateNav",function(){var e=s.currSlideId;s._n5&&s._n5.removeClass("rsNavSelected"),(e=s._l5.eq(e)).addClass("rsNavSelected"),s._n5=e}))},_g6:function(){var e,i=this;i._j5=!0,e='<div class="rsNav rsTabs">';for(var t=0;t<i.numSlides;t++)e+='<div class="rsNavItem rsTab">'+i.slides[t].thumbnail+"</div>";e=n(e+"</div>"),i._k5=e,i._l5=e.children(".rsNavItem"),i.slider.append(e),i._k5.click(function(e){(e=n(e.target).closest(".rsNavItem")).length&&i.goTo(e.index())})}}),n.rsModules.tabs=n.rsProto._f6}(jQuery),function(d){d.extend(d.rsProto,{_h6:function(){var s=this;"thumbnails"===s.st.controlNavigation&&(s._i6={drag:!0,touch:!0,orientation:"horizontal",navigation:!0,arrows:!0,arrowLeft:null,arrowRight:null,spacing:4,arrowsAutoHide:!1,appendSpan:!1,transitionSpeed:600,autoCenter:!0,fitInViewport:!0,firstMargin:!0,paddingTop:0,paddingBottom:0},s.st.thumbs=d.extend({},s._i6,s.st.thumbs),!(s._j6=!0)===s.st.thumbs.firstMargin?s.st.thumbs.firstMargin=0:!0===s.st.thumbs.firstMargin&&(s.st.thumbs.firstMargin=s.st.thumbs.spacing),s.ev.on("rsBeforeParseNode",function(e,i,t){i=d(i),t.thumbnail=i.find(".rsTmb").remove(),t.thumbnail.length?t.thumbnail=d(document.createElement("div")).append(t.thumbnail).html():(t.thumbnail=i.attr("data-rsTmb"),t.thumbnail||(t.thumbnail=i.find(".rsImg").attr("data-rsTmb")),t.thumbnail=t.thumbnail?'<img src="'+t.thumbnail+'"/>':"")}),s.ev.one("rsAfterPropsSetup",function(){s._k6()}),s._n5=null,s.ev.on("rsOnUpdateNav",function(){var e=d(s._l5[s.currSlideId]);e!==s._n5&&(s._n5&&(s._n5.removeClass("rsNavSelected"),s._n5=null),s._l6&&s._m6(s.currSlideId),s._n5=e.addClass("rsNavSelected"))}),s.ev.on("rsOnAppendSlide",function(e,i,t){e="<div"+s._n6+' class="rsNavItem rsThumb">'+s._o6+i.thumbnail+"</div>",t>=s.numSlides?s._s3.append(e):s._l5.eq(t).before(e),s._l5=s._s3.children(),s.updateThumbsSize()}),s.ev.on("rsOnRemoveSlide",function(e,i){var t=s._l5.eq(i);t&&(t.remove(),s._l5=s._s3.children(),s.updateThumbsSize())}))},_k6:function(){var e,i,t=this,s="rsThumbs",n=t.st.thumbs,r="",o=n.spacing;t._j5=!0,t._e3="vertical"!==n.orientation,t._n6=e=o?' style="margin-'+(t._e3?"right":"bottom")+":"+o+'px;"':"",t._i3=0,t._p6=!1,t._m5=!1,t._l6=!1,t._q6=n.arrows&&n.navigation,i=t._e3?"Hor":"Ver",t.slider.addClass("rsWithThumbs rsWithThumbs"+i),r+='<div class="rsNav rsThumbs rsThumbs'+i+'"><div class="'+s+'Container">',t._o6=n.appendSpan?'<span class="thumbIco"></span>':"";for(var a=0;a<t.numSlides;a++)r+="<div"+e+' class="rsNavItem rsThumb">'+(i=t.slides[a]).thumbnail+t._o6+"</div>";r=d(r+"</div></div>"),e={},n.paddingTop&&(e[t._e3?"paddingTop":"paddingLeft"]=n.paddingTop),n.paddingBottom&&(e[t._e3?"paddingBottom":"paddingRight"]=n.paddingBottom),r.css(e),t._s3=d(r).find("."+s+"Container"),t._q6&&(s+="Arrow",n.arrowLeft?t._r6=n.arrowLeft:(t._r6=d('<div class="'+s+" "+s+'Left"><div class="'+s+'Icn"></div></div>'),r.append(t._r6)),n.arrowRight?t._s6=n.arrowRight:(t._s6=d('<div class="'+s+" "+s+'Right"><div class="'+s+'Icn"></div></div>'),r.append(t._s6)),t._r6.click(function(){var e=(Math.floor(t._i3/t._t6)+t._u6)*t._t6+t._v6;t._a4(e>t._n3?t._n3:e)}),t._s6.click(function(){var e=(Math.floor(t._i3/t._t6)-t._u6)*t._t6+t._v6;t._a4(e<t._o3?t._o3:e)}),n.arrowsAutoHide&&!t.hasTouch&&(t._r6.css("opacity",0),t._s6.css("opacity",0),r.one("mousemove.rsarrowshover",function(){t._l6&&(t._r6.css("opacity",1),t._s6.css("opacity",1))}),r.hover(function(){t._l6&&(t._r6.css("opacity",1),t._s6.css("opacity",1))},function(){t._l6&&(t._r6.css("opacity",0),t._s6.css("opacity",0))}))),t._k5=r,t._l5=t._s3.children(),t.msEnabled&&t.st.thumbs.navigation&&t._s3.css("-ms-touch-action",t._e3?"pan-y":"pan-x"),t.slider.append(r),t._w3=!0,t._v6=o,n.navigation&&t._e&&t._s3.css(t._g+"transition-property",t._g+"transform"),t._k5.on("click.rs",".rsNavItem",function(e){t._m5||t.goTo(d(this).index())}),t.ev.off("rsBeforeSizeSet.thumbs").on("rsBeforeSizeSet.thumbs",function(){t._w6=t._e3?t._c4:t._b4,t.updateThumbsSize(!0)})},updateThumbsSize:function(e){var i=this;e=i._l5.first();var t={},s=i._l5.length;i._t6=(i._e3?e.outerWidth():e.outerHeight())+i._v6,i._y3=s*i._t6-i._v6,t[i._e3?"width":"height"]=i._y3+i._v6,i._z3=i._e3?i._k5.width():i._k5.height(),i._o3=-(i._y3-i._z3)-i.st.thumbs.firstMargin,i._n3=i.st.thumbs.firstMargin,i._u6=Math.floor(i._z3/i._t6),i._y3<i._z3?(i.st.thumbs.autoCenter&&i._q3((i._z3-i._y3)/2),i.st.thumbs.arrows&&i._r6&&(i._r6.addClass("rsThumbsArrowDisabled"),i._s6.addClass("rsThumbsArrowDisabled")),i._l6=!1,i._m5=!1,i._k5.off(i._j1)):i.st.thumbs.navigation&&!i._l6&&(i._l6=!0,!i.hasTouch&&i.st.thumbs.drag||i.hasTouch&&i.st.thumbs.touch)&&(i._m5=!0,i._k5.on(i._j1,function(e){i._g2(e,!0)})),i._e&&(t[i._g+"transition-duration"]="0ms"),i._s3.css(t),i._w3&&(i.isFullscreen||i.st.thumbs.fitInViewport)&&(i._e3?i._c4=i._w6-i._k5.outerHeight():i._b4=i._w6-i._k5.outerWidth())},setThumbsOrientation:function(e,i){this._w3&&(this.st.thumbs.orientation=e,this._k5.remove(),this.slider.removeClass("rsWithThumbsHor rsWithThumbsVer"),this._k6(),this._k5.off(this._j1),i||this.updateSliderSize(!0))},_q3:function(e){this._i3=e,this._e?this._s3.css(this._x1,this._y1+(this._e3?e+this._z1+0:0+this._z1+e)+this._a2):this._s3.css(this._e3?this._x1:this._w1,e)},_a4:function(e,i,t,s,n){var r,o=this;o._l6&&(i=i||o.st.thumbs.transitionSpeed,o._i3=e,o._x6&&clearTimeout(o._x6),o._p6&&(o._e||o._s3.stop(),t=!0),r={},o._p6=!0,o._e?(r[o._g+"transition-duration"]=i+"ms",r[o._g+"transition-timing-function"]=t?d.rsCSS3Easing[o.st.easeOut]:d.rsCSS3Easing[o.st.easeInOut],o._s3.css(r),o._q3(e)):(r[o._e3?o._x1:o._w1]=e+"px",o._s3.animate(r,i,t?"easeOutCubic":o.st.easeInOut)),s&&(o._i3=s),o._y6(),o._x6=setTimeout(function(){o._p6=!1,n&&(o._a4(s,n,!0),n=null)},i))},_y6:function(){this._q6&&(this._i3===this._n3?this._r6.addClass("rsThumbsArrowDisabled"):this._r6.removeClass("rsThumbsArrowDisabled"),this._i3===this._o3?this._s6.addClass("rsThumbsArrowDisabled"):this._s6.removeClass("rsThumbsArrowDisabled"))},_m6:function(e,i){var t,s=0,n=e*this._t6+2*this._t6-this._v6+this._n3;Math.floor(this._i3/this._t6);this._l6&&(this._j6&&(i=!0,this._j6=!1),n+this._i3>this._z3?(e===this.numSlides-1&&(s=1),t=(-e+this._u6-2+s)*this._t6+this._z3%this._t6+this._v6-this._n3):0!==e?(e-1)*this._t6<=-this._i3+this._n3&&e-1<=this.numSlides-this._u6&&(t=(1-e)*this._t6+this._n3):t=this._n3,t!==this._i3&&((s=void 0===t?this._i3:t)>this._n3?this._q3(this._n3):s<this._o3?this._q3(this._o3):void 0!==t&&(i?this._q3(t):this._a4(t))),this._y6())}}),d.rsModules.thumbnails=d.rsProto._h6}(jQuery),function(o){o.extend(o.rsProto,{_z6:function(){var n=this;n._a7={autoHideArrows:!0,autoHideControlNav:!1,autoHideBlocks:!1,autoHideCaption:!1,disableCSS3inFF:!0,youTubeCode:'<iframe src="http://www.youtube.com/embed/%id%?rel=1&autoplay=1&showinfo=0&autoplay=1&wmode=transparent" frameborder="no"></iframe>',vimeoCode:'<iframe src="http://player.vimeo.com/video/%id%?byline=0&amp;portrait=0&amp;autoplay=1" frameborder="no" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>'},n.st.video=o.extend({},n._a7,n.st.video),n.ev.on("rsBeforeSizeSet",function(){n._b7&&setTimeout(function(){var e=(e=n._r1).hasClass("rsVideoContainer")?e:e.find(".rsVideoContainer");n._c7&&n._c7.css({width:e.width(),height:e.height()})},32)});var r=n._a.mozilla;n.ev.on("rsAfterParseNode",function(e,i,t){var s;e=o(i),t.videoURL&&(n.st.video.disableCSS3inFF&&r&&(n._e=n._f=!1),i=o('<div class="rsVideoContainer"></div>'),s=o('<div class="rsBtnCenterer"><div class="rsPlayBtn"><div class="rsPlayBtnIcon"></div></div></div>'),e.hasClass("rsImg")?t.content=i.append(e).append(s):t.content.find(".rsImg").wrap(i).after(s))}),n.ev.on("rsAfterSlideChange",function(){n.stopVideo()})},toggleVideo:function(){return this._b7?this.stopVideo():this.playVideo()},playVideo:function(){var i=this;if(i._b7)return!1;var e=i.currSlide;if(!e.videoURL)return!1;i._d7=e;var t,s,n=i._e7=e.content;return(e=e.videoURL).match(/youtu\.be/i)||e.match(/youtube\.com/i)?(s=/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#\&\?]*).*/,(s=e.match(s))&&11==s[7].length&&(t=s[7]),void 0!==t&&(i._c7=i.st.video.youTubeCode.replace("%id%",t))):e.match(/vimeo\.com/i)&&(s=/(www\.)?vimeo.com\/(\d+)($|\/)/,(s=e.match(s))&&(t=s[2]),void 0!==t&&(i._c7=i.st.video.vimeoCode.replace("%id%",t))),i.videoObj=o(i._c7),i.ev.trigger("rsOnCreateVideoElement",[e]),i.videoObj.length&&(i._c7=o('<div class="rsVideoFrameHolder"><div class="rsPreloader"></div><div class="rsCloseVideoBtn"><div class="rsCloseVideoIcn"></div></div></div>'),i._c7.find(".rsPreloader").after(i.videoObj),n=n.hasClass("rsVideoContainer")?n:n.find(".rsVideoContainer"),i._c7.css({width:n.width(),height:n.height()}).find(".rsCloseVideoBtn").off("click.rsv").on("click.rsv",function(e){return i.stopVideo(),e.preventDefault(),e.stopPropagation(),!1}),n.append(i._c7),i.isIPAD&&n.addClass("rsIOSVideo"),i._f7(!1),setTimeout(function(){i._c7.addClass("rsVideoActive")},10),i.ev.trigger("rsVideoPlay"),i._b7=!0),!0},stopVideo:function(){var i=this;return!!i._b7&&(i.isIPAD&&i.slider.find(".rsCloseVideoBtn").remove(),i._f7(!0),setTimeout(function(){i.ev.trigger("rsOnDestroyVideoElement",[i.videoObj]);var e=i._c7.find("iframe");if(e.length)try{e.attr("src","")}catch(e){}i._c7.remove(),i._c7=null},16),i.ev.trigger("rsVideoStop"),!(i._b7=!1))},_f7:function(e,i){var t=[],s=this.st.video;if(s.autoHideArrows&&(this._c2&&(t.push(this._c2,this._d2),this._e2=!e),this._v5&&t.push(this._v5)),s.autoHideControlNav&&this._k5&&t.push(this._k5),s.autoHideBlocks&&this._d7.animBlocks&&t.push(this._d7.animBlocks),s.autoHideCaption&&this.globalCaption&&t.push(this.globalCaption),this.slider[e?"removeClass":"addClass"]("rsVideoPlaying"),t.length)for(s=0;s<t.length;s++)e?t[s].removeClass("rsHidden"):t[s].addClass("rsHidden")}}),o.rsModules.video=o.rsProto._z6}(jQuery),function(e){e.rsProto._g7=function(){var t=this;t.st.visibleNearby&&t.st.visibleNearby.enabled&&(t._h7={enabled:!0,centerArea:.6,center:!0,breakpoint:0,breakpointCenterArea:.8,hiddenOverflow:!0,navigateByCenterClick:!1},t.st.visibleNearby=e.extend({},t._h7,t.st.visibleNearby),t.ev.one("rsAfterPropsSetup",function(){t._i7=t._e1.css("overflow","visible").wrap('<div class="rsVisibleNearbyWrap"></div>').parent(),t.st.visibleNearby.hiddenOverflow||t._i7.css("overflow","visible"),t._o1=t.st.controlsInside?t._i7:t.slider}),t.ev.on("rsAfterSizePropSet",function(){var e=t.st.visibleNearby,i=e.breakpoint&&t.width<e.breakpoint?e.breakpointCenterArea:e.centerArea;t._h?(t._b4*=i,t._i7.css({height:t._c4,width:t._b4/i}),t._d=t._b4*(1-i)/2/i):(t._c4*=i,t._i7.css({height:t._c4/i,width:t._b4}),t._d=t._c4*(1-i)/2/i),e.navigateByCenterClick||(t._q=t._h?t._b4:t._c4),e.center&&t._e1.css("margin-"+(t._h?"left":"top"),t._d)}))},e.rsModules.visibleNearby=e.rsProto._g7}(jQuery);