/*! * Fotorama 4.6.4 | http://fotorama.io/license/ */ fotoramaVersion="4.6.4",function(a,ye,be,xe,u){"use strict";var _e="fotorama",Ce="fullscreen",Te=_e+"__wrap",Je=Te+"--video",Ze=Te+"--no-controls",to=Te+"--only-active",eo=_e+"__stage",oo=eo+"__frame",no=_e+"__grab",io=_e+"__arr",ao=io+"--disabled",ke=_e+"__nav",ro=ke+"--dots",so=ke+"--thumbs",uo=ke+"__frame",t=_e+"__fade",f=t+"-front",d=t+"-rear",lo="fotorama__shadows",co=_e+"__active",fo=_e+"__select",ho=_e+"--fullscreen",mo=_e+"__error",po=_e+"__loading",vo=_e+"__loaded",N=_e+"__grabbing",wo=_e+"__img",go=_e+"__thumb",t=_e+"__video",yo=t+"-play",Me='" tabindex="0" role="button',t=xe&&xe.fn.jquery.split(".");if(!t||t[0]<1||1==t[0]&&t[1]<8)throw"Fotorama requires jQuery 1.8 or later and will not run without it.";var s=function(c,f){var t,n,e,i={},d=c.documentElement,h="modernizr",a=c.createElement(h).style,o=" -webkit- -moz- -o- -ms- ".split(" "),r="Webkit Moz O ms",m=r.split(" "),p=r.toLowerCase().split(" "),s={},u=[],l=u.slice,v={}.hasOwnProperty;function w(t){a.cssText=t}function g(t,e){return typeof t===e}function y(t,e){for(var o in t){o=t[o];if(!~(""+o).indexOf("-")&&a[o]!==f)return"pfx"!=e||o}return!1}function b(t,e,o){var n=t.charAt(0).toUpperCase()+t.slice(1),i=(t+" "+m.join(n+" ")+n).split(" ");if(g(e,"string")||void 0===e)return y(i,e);var a,r=(t+" "+p.join(n+" ")+n).split(" "),s=e,u=o;for(a in r){var l=s[r[a]];if(l!==f)return!1===u?r[a]:g(l,"function")?l.bind(u||s):l}return!1}for(e in n=void 0!==v&&void 0!==v.call?function(t,e){return v.call(t,e)}:function(t,e){return e in t&&void 0===t.constructor.prototype[e]},Function.prototype.bind||(Function.prototype.bind=function(o){var n=this;if("function"!=typeof n)throw new TypeError;var i=l.call(arguments,1),a=function(){var t,e;return this instanceof a?((t=function(){}).prototype=n.prototype,t=new t,e=n.apply(t,i.concat(l.call(arguments))),Object(e)===e?e:t):n.apply(o,i.concat(l.call(arguments)))};return a}),s.csstransforms3d=function(){return!!b("perspective")},s)n(s,e)&&(t=e.toLowerCase(),i[t]=s[e](),u.push((i[t]?"":"no-")+t));return i.addTest=function(t,e){if("object"==typeof t)for(var o in t)n(t,o)&&i.addTest(o,t[o]);else{if(t=t.toLowerCase(),i[t]!==f)return i;e="function"==typeof e?e():e,"undefined"!=typeof enableClasses&&enableClasses&&(d.className+=" "+(e?"":"no-")+t),i[t]=e}return i},w(""),0,i._version="2.6.2",i._prefixes=o,i._domPrefixes=p,i._cssomPrefixes=m,i.testProp=function(t){return y([t])},i.testAllProps=b,i.testStyles=function(t,e,o,n){var i,a,r,s=c.createElement("div"),u=c.body,l=u||c.createElement("body");if(parseInt(o,10))for(;o--;)(a=c.createElement("div")).id=n?n[o]:h+(o+1),s.appendChild(a);return i=["­",'"].join(""),s.id=h,(u?s:l).innerHTML+=i,l.appendChild(s),u||(l.style.background="",l.style.overflow="hidden",r=d.style.overflow,d.style.overflow="hidden",d.appendChild(l)),i=e(s,t),u?s.parentNode.removeChild(s):(l.parentNode.removeChild(l),d.style.overflow=r),!!i},i.prefixed=function(t,e,o){return e?b(t,e,o):b(t,"pfx")},i}(ye),Se={ok:!1,is:function(){return!1},request:function(){},cancel:function(){},event:"",prefix:""},e="webkit moz o ms khtml".split(" ");if(void 0!==ye.cancelFullScreen)Se.ok=!0;else for(var o=0,n=e.length;o',e)}f.addRule(".spin-vml","behavior:url(#default#VML)");i.prototype.lines=function(t,n){var i=n.length+n.width,e=2*i;function a(){return v(l("group",{coordsize:e+" "+e,coordorigin:-i+" "+-i}),{width:e,height:e})}var o=-(n.width+n.length)*2+"px",r=v(a(),{position:"absolute",top:o,left:o}),s;function u(t,e,o){c(r,c(v(a(),{rotation:360/n.lines*t+"deg",left:~~e}),c(v(l("roundrect",{arcsize:n.corners}),{width:i,height:n.width,left:n.radius,top:-n.width>>1,filter:o}),l("fill",{color:d(n.color,t),opacity:n.opacity}),l("stroke",{opacity:0}))))}if(n.shadow)for(s=1;s<=n.lines;s++)u(s,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(s=1;s<=n.lines;s++)u(s);return c(t,r)};i.prototype.opacity=function(t,e,o,n){var i=t.firstChild;n=n.shadow&&n.lines||0;if(i&&e+n>1):parseInt(n.left,10)+e)+"px",top:(n.top=="auto"?r.y-a.y+(t.offsetHeight>>1):parseInt(n.top,10)+e)+"px"})}i.setAttribute("role","progressbar");o.lines(i,o.opts);if(!m){var s=0,u=(n.lines-1)*(1-n.direction)/2,l,c=n.fps,f=c/n.speed,d=(1-n.opacity)/(f*n.trail/100),h=f/n.lines;(function t(){s++;for(var e=0;e>1)+"px"})}for(;n=r,s="scaledown"===o,u="contain"===o,l="cover"===o,c={x:Ke((c=((c=n)+"").split(/\s+/))[0])||h,y:Ke(c[1])||h},r&&(s||u)||!r&&l?a=(i=De(e.w,0,s?i:1/0))/d.ratio:(r&&l||!r&&(s||u))&&(i=(a=De(e.h,0,s?a:1/0))*d.ratio),t.css({width:i,height:a,left:He(c.x,e.w-i),top:He(c.y,e.h-a)}),f.l={W:d.width,H:d.height,r:d.ratio,w:e.w,h:e.h,m:o,p:n}),!0}function Ao(t,e,o){return e!==o&&(t<=e?"left":o<=t?"right":"left right")}function zo(t,e,o,n){if(!o)return!1;if(!isNaN(t))return t-(n?0:1);for(var i,a=0,r=e.length;a'+(e||"")+""}function Lo(t){for(var e=t.length;e;){var o=Math.floor(Math.random()*e--),n=t[e];t[e]=t[o],t[o]=n}return t}function Oo(t){return"[object Array]"==Object.prototype.toString.call(t)&&xe.map(t,function(t){return xe.extend({},t)})}function Qe(t,e,o){t.scrollLeft(e||0).scrollTop(o||0)}function Io(t){var o;if(t)return o={},xe.each(t,function(t,e){o[t.toLowerCase()]=e}),o}function Do(t){var e;if(t)return e=+t,isNaN(e)?+(e=t.split("/"))[0]/+e[1]||u:e}function Ue(t,e,o,n){e&&(t.addEventListener?t.addEventListener(e,o,!!n):t.attachEvent("on"+e,o))}function Ro(t){return{tabindex:-1*t+"",disabled:t}}function Wo(e,o){Ue(e,"keyup",function(t){e.getAttribute("disabled")||13==t.keyCode&&o.call(e,t)})}function Ho(e,o){Ue(e,"focus",e.onfocusin=function(t){o.call(e,t)},!0)}function Ye(t,e){t.preventDefault?t.preventDefault():t.returnValue=!1,e&&t.stopPropagation&&t.stopPropagation()}function Ko(t){return t?">":"<"}function Ge(t,e){var o=t.data(),n=Math.round(e.pos),i=function(){o.sliding=!1,(e.onEnd||Ie)()},n=(void 0!==e.overPos&&e.overPos!==e.pos&&(n=e.overPos,i=function(){Ge(t,xe.extend({},e,{overPos:e.pos,time:Math.max(Ae,e.time/2)}))}),xe.extend(Re(n),e.width&&{width:e.width}));o.sliding=!0,je?(t.css(xe.extend(So(e.time),n)),10l&&(c=!0),d.checked=d.checked||n||i)}function p(t){(a.onTouchEnd||Ie)();var e=r;d.control=r=!1,e&&(d.flow=!1),!e||i&&!d.checked||(t&&Ye(t),y=!0,clearTimeout(b),b=setTimeout(function(){y=!1},1e3),(a.onEnd||Ie).call(f,{moved:c,$target:o,control:n,touch:u,startEvent:s,aborted:!t||"MSPointerCancel"===t.type}))}function v(){d.flow&&setTimeout(function(){d.flow=!1},qe)}return $e?(Ue(f,"MSPointerDown",h),Ue(ye,"MSPointerMove",m),Ue(ye,"MSPointerCancel",p),Ue(ye,"MSPointerUp",p)):(Ue(f,"touchstart",h),Ue(f,"touchmove",m),Ue(f,"touchend",p),Ue(ye,"touchstart",function(){d.flow||setTimeout(function(){d.flow=!0},10)}),Ue(ye,"touchend",v),Ue(ye,"touchcancel",v),Ee.on("scroll",v),t.on("mousedown",h),Pe.on("mousemove",m).on("mouseup",p)),t.on("click","a",function(t){d.checked&&Ye(t)}),d}function Xo(w,g){var o,y,b,x,n,_,i,C,T,k,M,S,a,F,E=w[0],r=w.data(),P={};function j(t,e){F=!0,o=y=t._x,i=t._now,_=[[i,o]],b=x=P.noMove||e?0:Eo(w,(g.getPos||Ie)()),(g.onStart||Ie).call(E,t)}return P=xe.extend(Bo(g.$wrap,xe.extend({},g,{onStart:function(t,e){T=P.min,k=P.max,M=P.snap,S=t.altKey,F=a=!1,e.control||r.sliding||j(t)},onMove:function(t,e){P.noSwipe||(F||j(t),y=t._x,_.push([t._now,y]),n=Ao(x=b-(o-y),T,k),x<=T?x=$(x,T):k<=x&&(x=$(x,k)),P.noMove)||(w.css(Re(x)),a||(a=!0,e.touch)||$e||w.addClass(N),(g.onMove||Ie).call(E,t,{pos:x,edge:n}))},onEnd:function(t){if(!P.noSwipe||!t.moved){F||j(t.startEvent,!0),t.touch||$e||w.removeClass(N);for(var e,o,n,i,a,r=(C=xe.now())-qe,s=null,u=Ae,l=g.friction,c=_.length-1;0<=c;c--){if(e=_[c][0],o=Math.abs(e-r),null===s||o"),ft=xe(Xe("fotorama--hidden")),k=xe(Xe(Te)),M=xe(Xe(eo)).appendTo(k),S=(M[0],xe(Xe("fotorama__stage__shaft")).appendTo(M)),dt=xe(),ht=xe(Xe(io+" fotorama__arr--prev"+Me)),mt=xe(Xe(io+" fotorama__arr--next"+Me)),pt=ht.add(mt).appendTo(M),vt=xe(Xe("fotorama__nav-wrap")),r=xe(Xe(ke)).appendTo(vt),F=xe(Xe("fotorama__nav__shaft")).appendTo(r),wt=xe(),gt=xe(),yt=(S.data(),F.data(),xe(Xe("fotorama__thumb-border")).appendTo(F)),bt=xe(Xe("fotorama__fullscreen-icon"+Me)),xt=bt[0],_t=xe(Xe(yo)),Ct=xe(Xe("fotorama__video-close")).appendTo(M)[0],Tt=xe(Xe("fotorama__spinner")),E=!1,P={},o={},kt={},j={},Mt={},St={},Ft={},Et=0,Pt=[];function jt(){xe.each(_,function(t,e){var o,n,i,a,r,s,u;!e.i&&(e.i=ut++,u=jo(e.video,!0))&&(o={},e.video=u,e.img||e.thumb?e.thumbsReady=!0:(i=_,a=T,"youtube"===(u=(n=e).video).type?(r=(s=Ve()+"img.youtube.com/vi/"+u.id+"/default.jpg").replace(/\/default.jpg$/,"/hqdefault.jpg"),n.thumbsReady=!0):"vimeo"===u.type?xe.ajax({url:Ve()+"vimeo.com/api/v2/video/"+u.id+".json",dataType:"jsonp",success:function(t){n.thumbsReady=!0,No(i,{img:t[0].thumbnail_large,thumb:t[0].thumbnail_small},n.i,a)}}):n.thumbsReady=!0,o={img:r,thumb:s}),No(_,{img:o.img,thumb:o.thumb},e.i,T))})}function N(t){return G[t]||T.fullScreen}function Nt(t){var e,o,n,i;t!==Nt.f&&(t?(a.html("").addClass(_e+" "+rt).append(k).before(ct).before(ft),e=T,xe.Fotorama.instances.push(e)):(k.detach(),ct.detach(),ft.detach(),a.html(lt.urtext).removeClass(rt),e=T,xe.Fotorama.instances.splice(e.index,1)),Uo(),o="keydown."+_e,n="keydown."+(i=_e+at),i="resize."+i+" orientationchange."+i,t?(Pe.on(n,function(t){var e,o;s&&27===t.keyCode?L(s,e=!0,!0):(T.fullScreen||x.keyboard&&!T.index)&&(27===t.keyCode?(e=!0,T.cancelFullScreen()):t.shiftKey&&32===t.keyCode&&N("space")||37===t.keyCode&&N("left")||38===t.keyCode&&N("up")?o="<":32===t.keyCode&&N("space")||39===t.keyCode&&N("right")||40===t.keyCode&&N("down")?o=">":36===t.keyCode&&N("home")?o="<<":35===t.keyCode&&N("end")&&(o=">>")),(e||o)&&Ye(t),o&&T.show({index:o,slow:t.altKey,user:!0})}),T.index||Pe.off(o).on(o,"textarea, input, select",function(t){Fe.hasClass(Ce)||t.stopPropagation()}),Ee.on(i,T.resize)):(Pe.off(n),Ee.off(i)),Nt.f=t)}function $t(){var t=C<2&&!x.enableifsingleframe||s;o.noMove=t||p,o.noSwipe=t||!x.swipe,w||S.toggleClass(no,!x.click&&!o.noMove&&!o.noSwipe),$e&&k.toggleClass("fotorama__wrap--pan-y",!o.noSwipe)}function qt(t){!0===t&&(t=""),x.autoplay=Math.max(+t||5e3,1.5*v)}function $(t){return t<0?(C+t%C)%C:C<=t?t%C:t}function At(t){return De(t,0,C-1)}function zt(t){return(h?$:At)(t)}function Lt(t){return!!(0').append(o._html?xe(o.html).removeAttr("id").html(o._html):o.html).appendTo(n),o.caption&&xe(Xe("fotorama__caption",Xe("fotorama__caption__wrap",o.caption))).appendTo(n),o.video&&n.addClass("fotorama__stage__frame--video").append(_t.clone()),Ho(i,function(){setTimeout(function(){Qe(M)},0),de({index:a.eq,user:!0})}),dt=dt.add(n)):"navDot"===r?(Kt(i),wt=wt.add(n)):"navThumb"===r&&(Kt(i),a.$wrap=n.children(":first"),gt=gt.add(n),o.video)&&a.$wrap.append(_t.clone()))})}function Bt(t,e,o,n){return t&&t.length&&qo(t,e,o,n)}function Xt(t){It(t,"stage",function(t,e,o,n,i,a){var r,s,u;n&&(u=$(e),r=o.fit||x.fit,s=o.position||x.position,a.eq=u,Ft[ze][u]=n.css(xe.extend({left:p?0:Fo(e,P.w,x.margin,c)},p&&So(0))),u=n[0],xe.contains(ye.documentElement,u)||(n.appendTo(S),L(o.$video)),Bt(a.$img,P,r,s),Bt(a.$full,P,r,s))})}function Qt(t,r){var s,u;"thumbs"!==m||isNaN(t)||(u=(s=-t)+P.nw,gt.each(function(){function t(){return{h:U,w:e.w}}var e=xe(this).data(),o=e.eq,n=t(),i=_[o]||{},a=i.thumbfit||x.thumbfit,i=i.thumbposition||x.thumbposition;n.w=e.w,e.l+e.wu||Bt(e.$img,n,a,i)||r&&Rt([o],"navThumb",t,a,i)}))}function Ut(t,e,o){var n,i;Ut[o]||(n="nav"===o&&K,i=0,e.append(t.filter(function(){for(var t,e=xe(this),o=e.data(),n=0,i=_.length;nP.w/3}function Gt(t){return!(h||E+t&&E-C+t||s)}function Jt(){var t=Gt(0),e=Gt(1);ht.toggleClass(ao,t).attr(Ro(t)),mt.toggleClass(ao,e).attr(Ro(e))}function Zt(){kt.ok&&(kt.prevent={"<":Gt(0),">":Gt(1)})}function te(t){var e,o=t.data(),o=K?(e=o.l,o.w):(e=t.position().left,t.width());return{c:e+o/2,min:-e+10*x.thumbmargin,max:-e+P.w-o-10*x.thumbmargin}}function ee(t){var e=u[b].data();Ge(yt,{time:1.2*t,pos:e.l,width:e.w-2*x.thumbborderwidth})}function q(t){var e,o,n,i=_[t.guessIndex][b];i&&(e=j.min!==j.max,n=t.minMax||e&&te(u[b]),i=e&&(t.keep&&q.l?q.l:De((t.coo||P.nw/2)-te(i).c,n.min,n.max)),o=e&&De(i,j.min,j.max),n=1.1*t.time,Ge(F,{time:n,pos:o||0,onEnd:function(){Qt(o,!0)}}),le(r,Ao(o,j.min,j.max)),q.l=i)}function oe(t){for(var e=St[t];e.length;)e.shift().removeClass(co)}function ne(t){var o=Ft[t];xe.each(l,function(t,e){delete o[$(e)]}),xe.each(o,function(t,e){delete o[t],e.detach()})}function ie(t){c=f=E;var e=u[ze];e&&(oe(ze),St[ze].push(e.addClass(co)),t||T.show.onEnd(!0),Eo(S,0),ne(ze),Xt(l),o.min=h?-1/0:-Fo(C-1,P.w,x.margin,c),o.max=h?1/0:-Fo(0,P.w,x.margin,c),o.snap=P.w+x.margin,j.min=Math.min(0,P.nw-F.width()),j.max=0,F.toggleClass(no,!(j.noMove=j.min===j.max)))}function ae(o,t){o&&xe.each(t,function(t,e){e&&xe.extend(e,{width:o.width||e.width,height:o.height,minwidth:o.minwidth,maxwidth:o.maxwidth,minheight:o.minheight,maxheight:o.maxheight,ratio:Do(o.ratio)})})}function A(t,e){a.trigger(_e+":"+t,[T,e])}function re(){clearTimeout(n.t),et=1,x.stopautoplayontouch?T.stopAutoplay():y=!0}function n(){et&&(x.stopautoplayontouch||(se(),z()),n.t=setTimeout(function(){et=0},Ae+qe))}function se(){y=!(!s&&!i)}function z(){var o,t;clearTimeout(z.t),Be.stop(z.w),!x.autoplay||y?T.autoplay&&(T.autoplay=!1,A("stopautoplay")):(T.autoplay||(T.autoplay=!0,A("startautoplay")),o=E,t=u[ze].data(),z.w=Be(function(){return t.state||o!==E},function(){z.t=setTimeout(function(){var t,e;y||o!==E||(e=_[t=W][ze].data(),z.w=Be(function(){return e.state||t!==W},function(){y||t!==W||T.show(h?Ko(!g):W)}))},x.autoplay)}))}function ue(){T.fullScreen&&(T.fullScreen=!1,ko&&Se.cancel(st),Fe.removeClass(Ce),Co.removeClass(Ce),a.removeClass(ho).insertAfter(ft),P=xe.extend({},tt),L(s,!0,!0),he("x",!1),T.resize(),Rt(l,"stage"),Qe(Ee,e,t),A("fullscreenexit"))}function le(t,e){Y&&(t.removeClass("fotorama__shadows--left fotorama__shadows--right"),e)&&!s&&t.addClass(e.replace(/^|\s/g," "+lo+"--"))}function L(t,e,o){e&&(k.removeClass(Je),s=!1,$t()),t&&t!==s&&(t.remove(),A("unloadvideo")),o&&(se(),z())}function ce(t){k.toggleClass(Ze,t)}function fe(t){var e;o.flow||(e=(t=t?t.pageX:fe.x)&&!Gt(Yt(t))&&x.click,fe.p!==e&&M.toggleClass("fotorama__pointer",e)&&(fe.p=e,fe.x=t))}function de(e){clearTimeout(de.t),x.clicktransition&&x.clicktransition!==x.transition?setTimeout(function(){var t=x.transition;T.setOptions({transition:x.clicktransition}),w=t,de.t=setTimeout(function(){T.show(e)},10)},0):T.show(e)}function he(t,e){o[t]=j[t]=e}function me(t){de({index:xe(this).data().eq,slow:t.altKey,user:!0,coo:t._x-r.offset().left})}function pe(t){de({index:pt.index(this)?">":"<",slow:t.altKey,user:!0})}function ve(t){Ho(t,function(){setTimeout(function(){Qe(M)},0),ce(!1)})}function O(){function t(t,e){n[t?"add":"remove"].push(e)}var e,o,n,i;_=T.data=_||Oo(x.data)||$o(a),C=T.size=_.length,!ge.ok&&x.shuffle&&Lo(_),jt(),E=At(E),C&&Nt(!0),T.options=x=Io(x),p="crossfade"===x.transition||"dissolve"===x.transition,h=x.loop&&(2"===o?f+1:"<"===o?f-1:"<<"===o?0:">>"===o?C-1:o,o=void 0===(o=isNaN(o)?zo(o,_,!0):o)?E||0:o,T.activeIndex=E=zt(o),Z=Lt(E),R=Ot(E),W=$(E+(g?-1:1)),l=[E,Z,R],f=h?o:E;var t=Math.abs(d-f),o=Po(e.time,function(){return Math.min(v*(1+(t-1)/12),2*v)}),n=e.overPos,i=(e.slow&&(o*=10),u),a=(T.activeFrame=u=_[E],i===u&&!e.user),r=(L(s,u.i!==_[$(c)].i),Vt(l,"stage"),Xt(Ne?[f]:[f,Lt(f),Ot(f)]),he("go",!0),a||A("show",{user:e.user,time:o}),y=!0,T.show.onEnd=function(t){r.ok||(r.ok=!0,t||ie(!0),a||A("showend",{user:e.user}),!t&&w&&w!==x.transition?(T.setOptions({transition:w}),w=!1):(Ht(),Rt(l,"stage"),he("go",!1),Zt(),fe(),se(),z()))});return p?Vo(u[ze],E!==d?_[d][ze]:null,dt,{time:o,method:x.transition,onEnd:r},Pt):Ge(S,{pos:-Fo(f,P.w,x.margin,c),overPos:n,time:o,onEnd:r}),Jt(),m&&(oe(b),St[b].push(u[b].addClass(co)),q({time:o,coo:(i=At(E+De(f-d,-1,1)))!==E&&e.coo,guessIndex:void 0!==e.coo?i:E,keep:a}),K)&&ee(o),Z=void 0!==d&&d!==E,d=E,x.hash&&Z&&!T.eq&&(n=u.id||E+1,be.replace(be.protocol+"//"+be.host+be.pathname.replace(/^\/?/,"/")+be.search+"#"+n)),this},T.requestFullScreen=function(){return B&&!T.fullScreen&&(t=Ee.scrollTop(),e=Ee.scrollLeft(),Qe(Ee),he("x",!0),tt=xe.extend({},P),a.addClass(ho).appendTo(Fe.addClass(Ce)),Co.addClass(Ce),L(s,!0,!0),T.fullScreen=!0,X&&Se.request(st),T.resize(),Rt(l,"stage"),Ht(),A("fullscreenenter")),this},T.cancelFullScreen=function(){return X&&Se.is()?Se.cancel(ye):ue(),this},T.toggleFullScreen=function(){return T[(T.fullScreen?"cancel":"request")+"FullScreen"]()},Ue(ye,Se.event,function(){!_||Se.is()||s||ue()}),T.resize=function(t){var e,o,n,i,a;return _&&(e=arguments[1]||0,o=arguments[2],ae(T.fullScreen?{width:"100%",maxwidth:null,minwidth:null,height:"100%",maxheight:null,minheight:null}:Io(t),[P,o||T.fullScreen||x]),t=P.width,n=P.height,i=P.ratio,a=Ee.height()-(m?r.height():0),Ke(t)&&(k.addClass(to).css({width:t,minWidth:P.minwidth||0,maxWidth:P.maxwidth||99999}),t=P.W=P.w=k.width(),P.nw=m&&He(x.navwidth,t)||t,x.glimpse&&(P.w-=Math.round(2*(He(x.glimpse,t)||0))),S.css({width:P.w,marginLeft:(P.W-P.w)/2}),n=(n=He(n,a))||i&&t/i)&&(t=Math.round(t),n=P.h=Math.round(De(n,He(P.minheight,a),He(P.maxheight,a))),M.stop().animate({width:t,height:n},e,function(){k.removeClass(to)}),ie(),m&&(r.stop().animate({width:P.nw},e),q({guessIndex:E,time:e,keep:!0}),K)&&Ut.nav&&ee(e),J=o||!0,ge()),Et=M.offset().left),this},T.setOptions=function(t){return xe.extend(x,t),O(),this},T.shuffle=function(){return _&&Lo(_)&&O(),this},T.destroy=function(){return T.cancelFullScreen(),T.stopAutoplay(),_=T.data=null,Nt(),l=[],ne(ze),O.ok=!1,this},T.playVideo=function(){var t=u,e=t.video,o=E;return"object"==typeof e&&t.videoReady&&(X&&T.fullScreen&&T.cancelFullScreen(),Be(function(){return!Se.is()||o!==E},function(){o===E&&(t.$video=t.$video||xe(xe.Fotorama.jst.video(e)),t.$video.appendTo(t[ze]),k.addClass(Je),s=t.$video,$t(),pt.blur(),bt.blur(),A("loadvideo"))})),this},T.stopVideo=function(){return L(s,!0,!0),this},M.on("mousemove",fe),o=Xo(S,{onStart:re,onMove:function(t,e){le(M,e.edge)},onTouchEnd:n,onEnd:function(t){le(M);var e,o,n,i,a=($e&&!ot||t.touch)&&x.arrows&&"always"!==x.arrows;t.moved||a&&t.pos!==t.newPos&&!t.control?(e=t.newPos,o=P.w,n=x.margin,i=c,e=-Math.round(e/(o+(n||0))-(i||0)),T.show({index:e,time:p?v:t.time,overPos:t.overPos,user:!0})):t.aborted||t.control||(o=t.startEvent,n=a,i=o.target,xe(i).hasClass(yo)?T.playVideo():i===xt?T.toggleFullScreen():s?i===Ct&&L(s,!0,!0):n?ce():x.click&&de({index:o.shiftKey||Ko(Yt(o._x)),slow:o.altKey,user:!0}))},timeLow:1,timeHigh:1,friction:2,select:"."+fo+", ."+fo+" *",$wrap:M}),j=Xo(F,{onStart:re,onMove:function(t,e){le(r,e.edge)},onTouchEnd:n,onEnd:function(t){function e(){q.l=t.newPos,se(),z(),Qt(t.newPos,!0)}var o;t.moved?t.pos!==t.newPos?(y=!0,Ge(F,{time:t.time,pos:t.newPos,overPos:t.overPos,onEnd:e}),Qt(t.newPos),Y&&le(r,Ao(t.newPos,j.min,j.max))):e():(o=t.$target.closest("."+uo,F)[0])&&me.call(o,t.startEvent)},timeLow:.5,timeHigh:2,friction:5,$wrap:r}),kt=Qo(M,{shift:!0,onEnd:function(t,e){re(),n(),T.show({index:e,slow:t.altKey})}}),Mt=Qo(r,{onEnd:function(t,e){re(),n();var o=Eo(F)+.25*e;F.css(Re(De(o,j.min,j.max))),Y&&le(r,Ao(o,j.min,j.max)),Mt.prevent={"<":o>=j.max,">":o<=j.min},clearTimeout(Mt.t),Mt.t=setTimeout(function(){Qt(q.l=o,!0)},qe),Qt(o)}}),k.hover(function(){setTimeout(function(){et||ce(!(ot=!0))},0)},function(){ot&&ce(!(ot=!1))}),nt=function(t){Ye(t),pe.call(this,t)},it=(it={onStart:function(){re(),o.control=!0},onTouchEnd:n})||{},pt.each(function(){var e,t=xe(this),o=t.data();o.clickOn||(o.clickOn=!0,xe.extend(Bo(t,{onStart:function(t){e=t,(it.onStart||Ie).call(this,t)},onMove:it.onMove||Ie,onTouchEnd:it.onTouchEnd||Ie,onEnd:function(t){t.moved||nt.call(this,e)}}),{noMove:!0}))}),pt.each(function(){Wo(this,function(t){pe.call(this,t)}),ve(this)}),Wo(xt,T.toggleFullScreen),ve(xt),xe.each("load push pop shift unshift reverse sort splice".split(" "),function(t,e){T[e]=function(){return _=_||[],"load"!==e?Array.prototype[e].apply(_,arguments):arguments[0]&&"object"==typeof arguments[0]&&arguments[0].length&&(_=Oo(arguments[0])),O(),T}}),O()},xe.fn.fotorama=function(i){return this.each(function(){var e=this,t=xe(this),o=t.data(),n=o.fotorama;n?n.setOptions(i,!0):Be(function(){return!(0===(t=e).offsetWidth&&0===t.offsetHeight);var t},function(){o.urtext=t.html(),new xe.Fotorama(t,xe.extend({},c,a.fotoramaDefaults,i,o))})})},xe.Fotorama.instances=[],xe.Fotorama.cache={},xe.Fotorama.measures={},(xe=xe||{}).Fotorama=xe.Fotorama||{},xe.Fotorama.jst=xe.Fotorama.jst||{},xe.Fotorama.jst.style=function(t){var e,o="";return o+=".fotorama"+(null==(e=t.s)?"":e)+" .fotorama__nav--thumbs .fotorama__nav__frame{\npadding:"+(null==(e=t.m)?"":e)+"px;\nheight:"+(null==(e=t.h)?"":e)+"px}\n.fotorama"+(null==(e=t.s)?"":e)+" .fotorama__thumb-border{\nheight:"+(null==(e=t.h-t.b*(t.q?0:2))?"":e)+"px;\nborder-width:"+(null==(e=t.b)?"":e)+"px;\nmargin-top:"+(null==(e=t.m)?"":e)+"px}"},xe.Fotorama.jst.video=function(t){var e="",o=Array.prototype.join;return e+='
\n'},xe(function(){xe("."+_e+':not([data-auto="false"])').fotorama()})}(window,document,location,"undefined"!=typeof jQuery&&jQuery);