!function(t){function i(){o=function(t){return s+"-"+t;},a=function(t){return s+"-"+t;},r=function(t){return t+"."+s;},t.each([o,a,r],function(t,i){i.add=function(t){t=t.split(" ");for(var e in t){i[t[e]]=i(t[e]);}};}),o.add("touch desktop scale-1 scale-2 scale-3 wrapper opened opening fixed inline hover slider slide loading noanimation fastanimation"),a.add("slide anchor"),r.add("open opening close closing prev next slideTo sliding click pinch scroll resize orientationchange load loading loaded transitionend webkitTransitionEnd"),d={complObject:function(i,e){return t.isPlainObject(i)||(i=e),i;},complBoolean:function(t,i){return"boolean"!=typeof t&&(t=i),t;},complNumber:function(i,e){return t.isNumeric(i)||(i=e),i;},complString:function(t,i){return"string"!=typeof t&&(t=i),t;},isPercentage:function(t){return"string"==typeof t&&"%"==t.slice(-1);},getPercentage:function(t){return parseInt(t.slice(0,-1));},resizeRatio:function(t,i,e,s,n){if(i.is(":visible")){var o=i.width(),a=i.height();e&&o>e&&(o=e),s&&a>s&&(a=s),n>o/a?a=o/n:o=a*n,t.width(o).height(a);}},transitionend:function(t,i,e){var s=!1,n=function(){s||i.call(t[0]),s=!0;};t.one(r.transitionend,n),t.one(r.webkitTransitionEnd,n),setTimeout(n,1.1*e);},setViewportScale:function(){if(l.viewportScale){var t=l.viewportScale.getScale();"undefined"!=typeof t&&(t=1/t,l.$body.removeClass(o["scale-1"]).removeClass(o["scale-2"]).removeClass(o["scale-3"]).addClass(o["scale-"+Math.max(Math.min(Math.round(t),3),1)]));}}},l={$wndw:t(window),$html:t("html"),$body:t("body"),scrollPosition:0,viewportScale:null,viewportScaleInterval:null},l.$body.addClass(t[e].support.touch?o.touch:o.desktop),l.$wndw.on(r.scroll,function(t){l.$body.hasClass(o.opened)&&(window.scrollTo(0,l.scrollPosition),t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation());}),!l.viewportScale&&t[e].support.touch&&"undefined"!=typeof FlameViewportScale&&(l.viewportScale=new FlameViewportScale,d.setViewportScale(),l.$wndw.on(r.orientationchange+" "+r.resize,function(t){l.viewportScaleInterval&&(clearTimeout(l.viewportScaleInterval),l.viewportScaleInterval=null),l.viewportScaleInterval=setTimeout(function(){d.setViewportScale();},500);})),t[e]._c=o,t[e]._d=a,t[e]._e=r,t[e]._f=d,t[e]._g=l;}var e="tosrus",s="tos",n="2.5.0";if(!t[e]){var o={},a={},r={},d={},l={};t[e]=function(t,i,e){return this.$node=t,this.opts=i,this.conf=e,this.vars={},this.nodes={},this.slides={},this._init(),this;},t[e].prototype={_init:function(){var i=this;this._complementOptions(),this.vars.fixed="window"==this.opts.wrapper.target,this.nodes.$wrpr=t('
'),this.nodes.$sldr=t('
').appendTo(this.nodes.$wrpr),this.nodes.$wrpr.addClass(this.vars.fixed?o.fixed:o.inline).addClass(o("fx-"+this.opts.effect)).addClass(o(this.opts.slides.scale)).addClass(this.opts.wrapper.classes),this.nodes.$wrpr.on(r.open+" "+r.close+" "+r.prev+" "+r.next+" "+r.slideTo,function(t){arguments=Array.prototype.slice.call(arguments);var t=arguments.shift(),e=t.type;t.stopPropagation(),"function"==typeof i[e]&&i[e].apply(i,arguments);}).on(r.opening+" "+r.closing+" "+r.sliding+" "+r.loading+" "+r.loaded,function(t){t.stopPropagation();}).on(r.click,function(e){switch(e.stopPropagation(),i.opts.wrapper.onClick){case"toggleUI":i.nodes.$wrpr.toggleClass(o.hover);break;case"close":t(e.target).is("img")||i.close();}}),this.nodes.$anchors=this._initAnchors(),this.nodes.$slides=this._initSlides(),this.slides.total=this.nodes.$slides.length,this.slides.visible=this.opts.slides.visible,this.slides.index=0,this.vars.opened=!0;for(var s=0;si){var a=0==this.slides.index;this.opts.infinite?i=a?this.slides.total-this.slides.visible:0:(i=0,a&&(n=!1));}if(i+this.slides.visible>this.slides.total){var l=this.slides.index+this.slides.visible>=this.slides.total;this.opts.infinite?i=l?0:this.slides.total-this.slides.visible:(i=this.slides.total-this.slides.visible,l&&(n=!1));}if(this.slides.index=i,this._loadContents(),n){var p=0-this.slides.index*this.opts.slides.width+this.opts.slides.offset;this.slides.widthPercentage&&(p+="%"),s&&(this.nodes.$sldr.addClass(o.noanimation),d.transitionend(this.nodes.$sldr,function(){t(this).removeClass(o.noanimation);},5));for(var c in t[e].effects){if(c==this.opts.effect){t[e].effects[c].call(this,p,s);break;}}this.nodes.$wrpr.trigger(r.sliding,[i,s]);}},_initAnchors:function(){var i=this,s=t();if(this.$node.is("a")){for(var n in t[e].media){s=s.add(this.$node.filter(function(){if(i.opts.media[n]&&i.opts.media[n].filterAnchors){var s=i.opts.media[n].filterAnchors.call(i,t(this));if("boolean"==typeof s){return s;}}return t[e].media[n].filterAnchors.call(i,t(this));}));}}return s;},_initSlides:function(){return this[this.$node.is("a")?"_initSlidesFromAnchors":"_initSlidesFromContent"](),this.nodes.$sldr.children().css("width",this.opts.slides.width+(this.slides.widthPercentage?"%":"px"));},_initSlidesFromAnchors:function(){var i=this;this.nodes.$anchors.each(function(e){var s=t(this),n=t('
').data(a.anchor,s).appendTo(i.nodes.$sldr);s.data(a.slide,n).on(r.click,function(t){t.preventDefault(),i.open(e);});});},_initSlidesFromContent:function(){var i=this;this.$node.children().each(function(){var s=t(this);t('
').append(s).appendTo(i.nodes.$sldr);for(var n in t[e].media){var a=null;if(i.opts.media[n]&&i.opts.media[n].filterSlides&&(a=i.opts.media[n].filterSlides.call(i,s)),"boolean"!=typeof a&&(a=t[e].media[n].filterSlides.call(i,s)),a){t[e].media[n].initSlides.call(i,s),s.parent().addClass(o(n));break;}}});},_loadContents:function(){var t=this;switch(this.opts.slides.load){case"all":this._loadContent(0,this.slides.total);break;case"visible":this._loadContent(this.slides.index,this.slides.index+this.slides.visible);break;case"near-visible":default:this._loadContent(this.slides.index,this.slides.index+this.slides.visible),setTimeout(function(){t._loadContent(t.slides.index-t.slides.visible,t.slides.index),t._loadContent(t.slides.index+t.slides.visible,t.slides.index+2*t.slides.visible);},this.conf.transitionDuration);}},_loadContent:function(i,s){var n=this;this.nodes.$slides.slice(i,s).each(function(){var i=t(this);if(0==i.children().length){var s=i.data(a.anchor),d=s.attr("href");for(var l in t[e].media){var p=null;if(n.opts.media[l]&&n.opts.media[l].filterAnchors&&(p=n.opts.media[l].filterAnchors.call(n,s)),"boolean"!=typeof p&&(p=t[e].media[l].filterAnchors.call(n,s)),p){t[e].media[l].initAnchors.call(n,i,d),i.addClass(o(l));break;}}i.trigger(r.loading,[i.data(a.anchor)]);}});},_complementOptions:function(){if("undefined"==typeof this.opts.wrapper.target&&(this.opts.wrapper.target=this.$node.is("a")?"window":this.$node),"window"!=this.opts.wrapper.target&&"string"==typeof this.opts.wrapper.target&&(this.opts.wrapper.target=t(this.opts.wrapper.target)),this.opts.show=d.complBoolean(this.opts.show,"window"!=this.opts.wrapper.target),t.isNumeric(this.opts.slides.width)){this.slides.widthPercentage=!1,this.opts.slides.visible=d.complNumber(this.opts.slides.visible,1);}else{var i=d.isPercentage(this.opts.slides.width)?d.getPercentage(this.opts.slides.width):!1;this.slides.widthPercentage=!0,this.opts.slides.visible=d.complNumber(this.opts.slides.visible,i?Math.floor(100/i):1),this.opts.slides.width=i?i:Math.ceil(10000/this.opts.slides.visible)/100;}this.opts.slides.slide=d.complNumber(this.opts.slides.slide,this.opts.slides.visible),this.opts.slides.offset=d.isPercentage(this.opts.slides.offset)?d.getPercentage(this.opts.slides.offset):d.complNumber(this.opts.slides.offset,0);},_uniqueID:function(){return this.__uniqueID||(this.__uniqueID=0),this.__uniqueID++,o("uid-"+this.__uniqueID);}},t.fn[e]=function(s,n,o,a){l.$wndw||i(),s=t.extend(!0,{},t[e].defaults,s),s=t.extend(!0,{},s,t[e].support.touch?o:n),a=t.extend(!0,{},t[e].configuration,a);var r=new t[e](this,s,a);return this.data(e,r),r.nodes.$wrpr;},t[e].support={touch:"ontouchstart" in window.document||navigator.msMaxTouchPoints},t[e].defaults={infinite:!1,effect:"slide",wrapper:{classes:"",onClick:"toggleUI"},slides:{offset:0,scale:"fit",load:"near-visible",visible:1},media:{}},t[e].configuration={transitionDuration:400},t[e].constants={},t[e].debug=function(t){},t[e].deprecated=function(t,i){"undefined"!=typeof console&&"undefined"!=typeof console.warn&&console.warn(e+": "+t+" is deprecated, use "+i+" instead.");},t[e].effects={slide:function(t){this.nodes.$sldr.css("left",t);},fade:function(i){d.transitionend(this.nodes.$sldr,function(){t(this).css("left",i).css("opacity",1);},this.conf.transitionDuration),this.nodes.$sldr.css("opacity",0);}},t[e].version=n,t[e].media={},t[e].addons=[],t[e].ui=[];}}(jQuery),function(t){var i="tosrus",e="html";t[i].media[e]={filterAnchors:function(i){var e=i.attr("href");return"#"==e.slice(0,1)&&t(e).is("div");},initAnchors:function(e,s){t('
').append(t(s)).appendTo(e),e.removeClass(t[i]._c.loading).trigger(t[i]._e.loaded);},filterSlides:function(t){return t.is("div");},initSlides:function(t){}},t[i].defaults.media[e]={};}(jQuery),function(t){var i="tosrus",e="image";t[i].media[e]={filterAnchors:function(i){return t.inArray(i.attr("href").toLowerCase().split(".").pop().split("?")[0],["jpg","jpe","jpeg","gif","png"])>-1;},initAnchors:function(e,s){t('').on(t[i]._e.load,function(s){s.stopPropagation(),e.removeClass(t[i]._c.loading).trigger(t[i]._e.loaded);}).appendTo(e).attr("src",s);},filterSlides:function(t){return t.is("img");},initSlides:function(t){}},t[i].defaults.media[e]={};}(jQuery),function(t){function i(i){function p(){c.length&&(c.attr("src",""),c.attr("src",u));}l||(e=t[r]._c,s=t[r]._d,n=t[r]._e,o=t[r]._f,a=t[r]._g,s.add("ratio maxWidth maxHeight"),l=!0);var c=i.children(),h=i.data(t[r]._d.anchor)||t(),u=c.attr("src"),f=h.data(s.ratio)||this.opts[d].ratio,g=h.data(s.maxWidth)||this.opts[d].maxWidth,v=h.data(s.maxHeight)||this.opts[d].maxHeight;i.removeClass(e.loading).trigger(n.loaded).on(n.loading,function(t){o.resizeRatio(c,i,g,v,f);}),this.nodes.$wrpr.on(n.sliding,function(t){p();}).on(n.opening,function(t){o.resizeRatio(c,i,g,v,f);}).on(n.closing,function(t){p();}),a.$wndw.on(n.resize,function(t){o.resizeRatio(c,i,g,v,f);});}var e,s,n,o,a,r="tosrus",d="vimeo",l=!1;t[r].media[d]={filterAnchors:function(t){return t.attr("href").toLowerCase().indexOf("vimeo.com/")>-1;},initAnchors:function(e,s){var n=this._uniqueID();s=s.split("vimeo.com/")[1].split("?")[0]+"?api=1&player_id="+n,t('