(function(e,t){if(!e)return t;var n=function(){this.el=t;this.items=t;this.sizes=[];this.max=[0,0];this.current=0;this.interval=t;this.opts={speed:500,delay:3e3,complete:t,keys:!t,dots:t,fluid:t};var n=this;this.init=function(t,n){this.el=t;this.ul=t.children("ul");this.max=[t.outerWidth(),t.outerHeight()];this.items=this.ul.children("li").each(this.calculate);this.opts=e.extend(this.opts,n);this.setup();return this};this.calculate=function(t){var r=e(this),i=r.outerWidth(),s=r.outerHeight();n.sizes[t]=[i,s];if(i>n.max[0])n.max[0]=i;if(s>n.max[1])n.max[1]=s};this.setup=function(){this.el.css({overflow:"hidden",width:n.max[0],height:this.items.first().outerHeight()});this.ul.css({width:this.items.length*100+"%",position:"relative"});this.items.css("width",100/this.items.length+"%");if(this.opts.delay!==t){this.start();this.el.hover(this.stop,this.start)}this.opts.keys&&e(document).keydown(this.keys);this.opts.dots&&this.dots();if(this.opts.fluid){var r=function(){n.el.css("width",Math.min(Math.round(n.el.outerWidth()/n.el.parent().outerWidth()*100),100)+"%")};r();e(window).resize(r)}if(this.opts.arrows){this.el.parent().append('<p class="arrows"><span class="prev">â†</span><span class="next">â†’</span></p>').find(".arrows span").click(function(){e.isFunction(n[this.className])&&n[this.className]()})}if(e.event.swipe){this.el.on("swipeleft",n.prev).on("swiperight",n.next)}};this.move=function(t,r){if(!this.items.eq(t).length)t=0;if(t<0)t=this.items.length-1;var i=this.items.eq(t);var s={height:i.outerHeight()};var o=r?5:this.opts.speed;if(!this.ul.is(":animated")){n.el.find(".dot:eq("+t+")").addClass("active").siblings().removeClass("active");this.el.animate(s,o)&&this.ul.animate(e.extend({left:"-"+t+"00%"},s),o,function(i){n.current=t;e.isFunction(n.opts.complete)&&!r&&n.opts.complete(n.el)})}};this.start=function(){n.interval=setInterval(function(){n.move(n.current+1)},n.opts.delay)};this.stop=function(){n.interval=clearInterval(n.interval);return n};this.keys=function(t){var r=t.which;var i={37:n.prev,39:n.next,27:n.stop};if(e.isFunction(i[r])){i[r]()}};this.next=function(){return n.stop().move(n.current+1)};this.prev=function(){return n.stop().move(n.current-1)};this.dots=function(){var t='<ol class="dots">';e.each(this.items,function(e){t+='<li class="dot'+(e<1?" active":"")+'">'+(e+1)+"</li>"});t+="</ol>";this.el.addClass("has-dots").append(t).find(".dot").click(function(){n.move(e(this).index())})}};e.fn.unslider=function(t){var r=this.length;return this.each(function(i){var s=e(this);var u=(new n).init(s,t);s.data("unslider"+(r>1?"-"+(i+1):""),u)})}})(window.jQuery,false)




!function(d,a,s){var l,c,g,u,f,p,m,w,v,x,y,b,T,C,h,H,r,k,W,E,L,M,S,I,R,F,K,P,B,O,_,D,n,o={html:!1,photo:!1,iframe:!1,inline:!1,transition:"elastic",speed:300,fadeOut:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,opacity:.9,preloading:!0,className:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:void 0,closeButton:!0,fastIframe:!0,open:!1,reposition:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",photoRegex:/\.(gif|png|jp(e|g|eg)|bmp|ico|webp|jxr|svg)((#|\?).*)?$/i,retinaImage:!1,retinaUrl:!1,retinaSuffix:"@2x.$1",current:"image {current} of {total}",previous:"previous",next:"next",close:"close",xhrError:"This content failed to load.",imgError:"This image failed to load.",returnFocus:!0,trapFocus:!0,onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,rel:function(){return this.rel},href:function(){return d(this).attr("href")},title:function(){return this.title}},N="colorbox",j="cbox",A=j+"Element",z=j+"_open",U=j+"_load",$=j+"_complete",q=j+"_cleanup",G=j+"_closed",Q=j+"_purge",J=d("<a/>"),V="div",X=0,Y={};function Z(t,e,i){var n=a.createElement(t);return e&&(n.id=j+e),i&&(n.style.cssText=i),d(n)}function tt(){return s.innerHeight?s.innerHeight:d(s).height()}function et(t,i){i!==Object(i)&&(i={}),this.cache={},this.el=t,this.value=function(t){var e;return void 0===this.cache[t]&&(void 0!==(e=d(this.el).attr("data-cbox-"+t))?this.cache[t]=e:void 0!==i[t]?this.cache[t]=i[t]:void 0!==o[t]&&(this.cache[t]=o[t])),this.cache[t]},this.get=function(t){var e=this.value(t);return d.isFunction(e)?e.call(this.el,this):e}}function it(t){var e=v.length,i=(F+t)%e;return i<0?e+i:i}function nt(t,e){return Math.round((/%/.test(t)?("x"===e?x.width():tt())/100:1)*parseInt(t,10))}function ot(t,e){return t.get("photo")||t.get("photoRegex").test(e)}function ht(t,e){return t.get("retinaUrl")&&1<s.devicePixelRatio?e.replace(t.get("photoRegex"),t.get("retinaSuffix")):e}function rt(t){"contains"in c[0]&&!c[0].contains(t.target)&&t.target!==l[0]&&(t.stopPropagation(),c.focus())}function at(t){at.str!==t&&(c.add(l).removeClass(at.str).addClass(t),at.str=t)}function st(t){d(a).trigger(t),J.triggerHandler(t)}var lt=function(){var t,e,i=j+"Slideshow_",n="click."+j;function o(){clearTimeout(e)}function h(){(L.get("loop")||v[F+1])&&(o(),e=setTimeout(D.next,L.get("slideshowSpeed")))}function r(){H.html(L.get("slideshowStop")).unbind(n).one(n,a),J.bind($,h).bind(U,o),c.removeClass(i+"off").addClass(i+"on")}function a(){o(),J.unbind($,h).unbind(U,o),H.html(L.get("slideshowStart")).unbind(n).one(n,function(){D.next(),r()}),c.removeClass(i+"on").addClass(i+"off")}function s(){t=!1,H.hide(),o(),J.unbind($,h).unbind(U,o),c.removeClass(i+"off "+i+"on")}return function(){t?L.get("slideshow")||(J.unbind(q,s),s()):L.get("slideshow")&&v[1]&&(t=!0,J.one(q,s),L.get("slideshowAuto")?r():a(),H.show())}}();function dt(t){var e,i;if(!O){if(e=d(t).data(N),L=new et(t,e),i=L.get("rel"),F=0,i&&!1!==i&&"nofollow"!==i?(v=d("."+A).filter(function(){return new et(this,d.data(this,N)).get("rel")===i}),-1===(F=v.index(L.el))&&(v=v.add(L.el),F=v.length-1)):v=d(L.el),!P){P=B=!0,at(L.get("className")),c.css({visibility:"hidden",display:"block",opacity:""}),y=Z(V,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden"),u.css({width:"",height:""}).append(y),M=f.height()+w.height()+u.outerHeight(!0)-u.height(),S=p.width()+m.width()+u.outerWidth(!0)-u.width(),I=y.outerHeight(!0),R=y.outerWidth(!0);var n=nt(L.get("initialWidth"),"x"),o=nt(L.get("initialHeight"),"y"),h=L.get("maxWidth"),r=L.get("maxHeight");L.w=(!1!==h?Math.min(n,nt(h,"x")):n)-R-S,L.h=(!1!==r?Math.min(o,nt(r,"y")):o)-I-M,y.css({width:"",height:L.h}),D.position(),st(z),L.get("onOpen"),E.add(C).hide(),c.focus(),L.get("trapFocus")&&a.addEventListener&&(a.addEventListener("focus",rt,!0),J.one(G,function(){a.removeEventListener("focus",rt,!0)})),L.get("returnFocus")&&J.one(G,function(){d(L.el).focus()})}l.css({opacity:parseFloat(L.get("opacity"))||"",cursor:L.get("overlayClose")?"pointer":"",visibility:"visible"}).show(),L.get("closeButton")?W.html(L.get("close")).appendTo(u):W.appendTo("<div/>"),function(){var t,e,i,n=D.prep,o=++X;K=!(B=!0),st(Q),st(U),L.get("onLoad"),L.h=L.get("height")?nt(L.get("height"),"y")-I-M:L.get("innerHeight")&&nt(L.get("innerHeight"),"y"),L.w=L.get("width")?nt(L.get("width"),"x")-R-S:L.get("innerWidth")&&nt(L.get("innerWidth"),"x"),L.mw=L.w,L.mh=L.h,L.get("maxWidth")&&(L.mw=nt(L.get("maxWidth"),"x")-R-S,L.mw=L.w&&L.w<L.mw?L.w:L.mw);L.get("maxHeight")&&(L.mh=nt(L.get("maxHeight"),"y")-I-M,L.mh=L.h&&L.h<L.mh?L.h:L.mh);if(t=L.get("href"),_=setTimeout(function(){T.show()},100),L.get("inline")){var h=d(t);i=d('<div id="cboxNone">').hide().insertBefore(h),J.one(Q,function(){i.replaceWith(h)}),n(h)}else L.get("iframe")?n(" "):L.get("html")?n(L.get("html")):ot(L,t)?(t=ht(L,t),K=new Image,d(K).addClass(j+"Photo").bind("error",function(){n(Z(V,"Error").html(L.get("imgError")))}).one("load",function(){o===X&&setTimeout(function(){var t;d.each(["alt","longdesc","aria-describedby"],function(t,e){var i=d(L.el).attr(e)||d(L.el).attr("data-"+e);i&&K.setAttribute(e,i)}),L.get("retinaImage")&&1<s.devicePixelRatio&&(K.height=K.height/s.devicePixelRatio,K.width=K.width/s.devicePixelRatio),L.get("scalePhotos")&&(e=function(){K.height-=K.height*t,K.width-=K.width*t},L.mw&&K.width>L.mw&&(t=(K.width-L.mw)/K.width,e()),L.mh&&K.height>L.mh&&(t=(K.height-L.mh)/K.height,e())),L.h&&(K.style.marginTop=Math.max(L.mh-K.height,0)/2+"px"),v[1]&&(L.get("loop")||v[F+1])&&(K.style.cursor="pointer",K.onclick=function(){D.next()}),K.style.width=K.width+"px",K.style.height=K.height+"px",n(K)},1)}),K.src=t):t&&b.load(t,L.get("data"),function(t,e){o===X&&n("error"===e?Z(V,"Error").html(L.get("xhrError")):d(this).contents())})}()}}function ct(){!c&&a.body&&(n=!1,x=d(s),c=Z(V).attr({id:N,class:!1===d.support.opacity?j+"IE":"",role:"dialog",tabindex:"-1"}).hide(),l=Z(V,"Overlay").hide(),T=d([Z(V,"LoadingOverlay")[0],Z(V,"LoadingGraphic")[0]]),g=Z(V,"Wrapper"),u=Z(V,"Content").append(C=Z(V,"Title"),h=Z(V,"Current"),k=d('<button type="button"/>').attr({id:j+"Previous"}),r=d('<button type="button"/>').attr({id:j+"Next"}),H=Z("button","Slideshow"),T),W=d('<button type="button"/>').attr({id:j+"Close"}),g.append(Z(V).append(Z(V,"TopLeft"),f=Z(V,"TopCenter"),Z(V,"TopRight")),Z(V,!1,"clear:left").append(p=Z(V,"MiddleLeft"),u,m=Z(V,"MiddleRight")),Z(V,!1,"clear:left").append(Z(V,"BottomLeft"),w=Z(V,"BottomCenter"),Z(V,"BottomRight"))).find("div div").css({float:"left"}),b=Z(V,!1,"position:absolute; width:9999px; visibility:hidden; display:none; max-width:none;"),E=r.add(k).add(h).add(H),d(a.body).append(l,c.append(g,b)))}d.colorbox||(d(ct),(D=d.fn[N]=d[N]=function(e,t){var i=this;if(e=e||{},d.isFunction(i))i=d("<a/>"),e.open=!0;else if(!i[0])return i;return i[0]&&(ct(),function(){function t(t){1<t.which||t.shiftKey||t.altKey||t.metaKey||t.ctrlKey||(t.preventDefault(),dt(this))}return!!c&&(n||(n=!0,r.click(function(){D.next()}),k.click(function(){D.prev()}),W.click(function(){D.close()}),l.click(function(){L.get("overlayClose")&&D.close()}),d(a).bind("keydown."+j,function(t){var e=t.keyCode;P&&L.get("escKey")&&27===e&&(t.preventDefault(),D.close()),P&&L.get("arrowKey")&&v[1]&&!t.altKey&&(37===e?(t.preventDefault(),k.click()):39===e&&(t.preventDefault(),r.click()))}),d.isFunction(d.fn.on)?d(a).on("click."+j,"."+A,t):d("."+A).live("click."+j,t)),!0)}()&&(t&&(e.onComplete=t),i.each(function(){var t=d.data(this,N)||{};d.data(this,N,d.extend(t,e))}).addClass(A),new et(i[0],e).get("open")&&dt(i[0]))),i}).position=function(e,t){var i,n,o,h=0,r=0,a=c.offset();function s(){f[0].style.width=w[0].style.width=u[0].style.width=parseInt(c[0].style.width,10)-S+"px",u[0].style.height=p[0].style.height=m[0].style.height=parseInt(c[0].style.height,10)-M+"px"}if(x.unbind("resize."+j),c.css({top:-9e4,left:-9e4}),n=x.scrollTop(),o=x.scrollLeft(),L.get("fixed")?(a.top-=n,a.left-=o,c.css({position:"fixed"})):(h=n,r=o,c.css({position:"absolute"})),!1!==L.get("right")?r+=Math.max(x.width()-L.w-R-S-nt(L.get("right"),"x"),0):!1!==L.get("left")?r+=nt(L.get("left"),"x"):r+=Math.round(Math.max(x.width()-L.w-R-S,0)/2),!1!==L.get("bottom")?h+=Math.max(tt()-L.h-I-M-nt(L.get("bottom"),"y"),0):!1!==L.get("top")?h+=nt(L.get("top"),"y"):h+=Math.round(Math.max(tt()-L.h-I-M,0)/2),c.css({top:a.top,left:a.left,visibility:"visible"}),g[0].style.width=g[0].style.height="9999px",i={width:L.w+R+S,height:L.h+I+M,top:h,left:r},e){var l=0;d.each(i,function(t){i[t]===Y[t]||(l=e)}),e=l}Y=i,e||c.css(i),c.dequeue().animate(i,{duration:e||0,complete:function(){s(),B=!1,g[0].style.width=L.w+R+S+"px",g[0].style.height=L.h+I+M+"px",L.get("reposition")&&setTimeout(function(){x.bind("resize."+j,D.position)},1),t&&t()},step:s})},D.resize=function(t){var e;P&&((t=t||{}).width&&(L.w=nt(t.width,"x")-R-S),t.innerWidth&&(L.w=nt(t.innerWidth,"x")),y.css({width:L.w}),t.height&&(L.h=nt(t.height,"y")-I-M),t.innerHeight&&(L.h=nt(t.innerHeight,"y")),t.innerHeight||t.height||(e=y.scrollTop(),y.css({height:"auto"}),L.h=y.height()),y.css({height:L.h}),e&&y.scrollTop(e),D.position("none"===L.get("transition")?0:L.get("speed")))},D.prep=function(t){if(P){var e,o="none"===L.get("transition")?0:L.get("speed");y.remove(),(y=Z(V,"LoadedContent").append(t)).hide().appendTo(b.show()).css({width:(L.w=L.w||y.width(),L.w=L.mw&&L.mw<L.w?L.mw:L.w,L.w),overflow:L.get("scrolling")?"auto":"hidden"}).css({height:(L.h=L.h||y.height(),L.h=L.mh&&L.mh<L.h?L.mh:L.h,L.h)}).prependTo(u),b.hide(),d(K).css({float:"none"}),at(L.get("className")),e=function(){var t,e,i=v.length;function n(){!1===d.support.opacity&&c[0].style.removeAttribute("filter")}P&&(e=function(){clearTimeout(_),T.hide(),st($),L.get("onComplete")},C.html(L.get("title")).show(),y.show(),1<i?("string"==typeof L.get("current")&&h.html(L.get("current").replace("{current}",F+1).replace("{total}",i)).show(),r[L.get("loop")||F<i-1?"show":"hide"]().html(L.get("next")),k[L.get("loop")||F?"show":"hide"]().html(L.get("previous")),lt(),L.get("preloading")&&d.each([it(-1),it(1)],function(){var t=v[this],e=new et(t,d.data(t,N)),i=e.get("href");i&&ot(e,i)&&(i=ht(e,i),a.createElement("img").src=i)})):E.hide(),L.get("iframe")?("frameBorder"in(t=a.createElement("iframe"))&&(t.frameBorder=0),"allowTransparency"in t&&(t.allowTransparency="true"),L.get("scrolling")||(t.scrolling="no"),d(t).attr({src:L.get("href"),name:(new Date).getTime(),class:j+"Iframe",allowFullScreen:!0}).one("load",e).appendTo(y),J.one(Q,function(){t.src="//about:blank"}),L.get("fastIframe")&&d(t).trigger("load")):e(),"fade"===L.get("transition")?c.fadeTo(o,1,n):n())},"fade"===L.get("transition")?c.fadeTo(o,0,function(){D.position(0,e)}):D.position(o,e)}},D.next=function(){!B&&v[1]&&(L.get("loop")||v[F+1])&&(F=it(1),dt(v[F]))},D.prev=function(){!B&&v[1]&&(L.get("loop")||F)&&(F=it(-1),dt(v[F]))},D.close=function(){P&&!O&&(P=!(O=!0),st(q),L.get("onCleanup"),x.unbind("."+j),l.fadeTo(L.get("fadeOut")||0,0),c.stop().fadeTo(L.get("fadeOut")||0,0,function(){c.hide(),l.hide(),st(Q),y.remove(),setTimeout(function(){O=!1,st(G),L.get("onClosed")},1)}))},D.remove=function(){c&&(c.stop(),d.colorbox.close(),c.stop(!1,!0).remove(),l.remove(),O=!1,c=null,d("."+A).removeData(N).removeClass(A),d(a).unbind("click."+j).unbind("keydown."+j))},D.element=function(){return d(L.el)},D.settings=o)}(jQuery,document,window);