!function(n,t,i,r,u){"use strict";function yu(n){var t="bez_"+r.makeArray(arguments).join("_").replace(".","p"),i;return"function"!=typeof r.easing[t]&&(i=function(n,t){var u=[null,null],r=[null,null],i=[null,null],f=function(f,e){return i[e]=3*n[e],r[e]=3*(t[e]-n[e])-i[e],u[e]=1-i[e]-r[e],f*(i[e]+f*(r[e]+f*u[e]))},e=function(n){return i[0]+n*(2*r[0]+3*u[0]*n)},o=function(n){for(var i,t=n,r=0;++r<14&&(i=f(t,0)-n,!(Math.abs(i)<.001));)t-=i/e(t);return t};return function(n){return f(o(n),1)}},r.easing[t]=function(t,r,u,f,e){return f*i([n[0],n[1]],[n[2],n[3]])(r/e)+u}),t}function s(){}function a(n,t,i){return Math.max(isNaN(t)?-1/0:t,Math.min(isNaN(i)?1/0:i,n))}function pu(n){return n.match(/ma/)&&n.match(/-?\d+(?!d)/g)[n.match(/3d/)?12:4]}function wu(n){return b?+pu(n.css("transform")):+n.css("left").replace("px","")}function ht(n,t){var i={};return b?i.transform="translate3d("+(n+(t?.001:0))+"px,0,0)":i.left=n,i}function ni(n){return{"transition-duration":n+"ms"}}function v(n,t){return+String(n).replace(t||"px","")||u}function bu(n){return/%$/.test(n)&&v(n,"%")}function g(n,t){return bu(n)/100*t||v(n)}function nt(n){return(!!v(n)||!!v(n,"%"))&&n}function ct(n,t,i,r){return(n-(r||0))*(t+(i||0))}function ku(n,t,i,r){return-Math.round(n/(t+(i||0))-(r||0))}function du(n){var t=n.data(),i,r;t.tEnd||(i=n[0],r={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",msTransition:"MSTransitionEnd",transition:"transitionend"},i.addEventListener(r[uu.prefixed("transition")],function(n){t.tProp&&n.propertyName.match(t.tProp)&&t.onEndFn()},!1),t.tEnd=!0)}function gu(n,t,i,r){var f,u=n.data();u&&(u.onEndFn=function(){f||(f=!0,clearTimeout(u.tT),i())},u.tProp=t,clearTimeout(u.tT),u.tT=setTimeout(function(){u.onEndFn()},1.5*r),du(n))}function ti(n,t,i){var r,u;if(n.length)return r=n.data(),b?(n.css(ni(0)),r.onEndFn=s,clearTimeout(r.tT)):n.stop(),u=pi(t,function(){return wu(n)}),n.css(ht(u,i)),u}function pi(){for(var t,n=0,i=arguments.length;i>n&&(t=n?arguments[n]():arguments[n],"number"!=typeof t);n++);return t}function wi(n,t){return Math.round(n+(t-n)/1.5)}function tt(){return tt.p=tt.p||("https:"===i.protocol?"https://":"http://"),tt.p}function nf(n){var i=t.createElement("a");return i.href=n,i}function bi(n,t){var i,r,u;return"string"!=typeof n?n:(n=nf(n),n.host.match(/youtube\.com/)&&n.search?(i=n.search.split("v=")[1])&&(u=i.indexOf("&"),-1!==u&&(i=i.substring(0,u)),r="youtube"):n.host.match(/youtube\.com|youtu\.be/)?(i=n.pathname.replace(/^\/(embed\/|v\/)?/,"").replace(/\/.*/,""),r="youtube"):n.host.match(/vimeo\.com/)&&(r="vimeo",i=n.pathname.replace(/^\/(video\/)?/,"").replace(/\/.*/,"")),i&&r||!t||(i=n.href,r="custom"),i?{id:i,type:r,s:n.search.replace(/^\?/,"")}:!1)}function tf(n,t,i){var e,f,u=n.video;return"youtube"===u.type?(f=tt()+"img.youtube.com/vi/"+u.id+"/default.jpg",e=f.replace(/\/default.jpg$/,"/hqdefault.jpg"),n.thumbsReady=!0):"vimeo"===u.type?r.ajax({url:tt()+"vimeo.com/api/v2/video/"+u.id+".json",dataType:"jsonp",success:function(r){n.thumbsReady=!0;ki(t,{img:r[0].thumbnail_large,thumb:r[0].thumbnail_small},n.i,i)}}):n.thumbsReady=!0,{img:e,thumb:f}}function ki(n,t,i,u){for(var o,e,f=0,s=n.length;s>f;f++)if(o=n[f],o.i===i&&o.thumbsReady){e={videoReady:!0};e[h]=e[gt]=e[dt]=!1;u.splice(f,1,r.extend({},o,e,t));break}}function rf(n){function u(n,i,u){var o=n.children("img").eq(0),f=n.attr("href"),s=n.attr("src"),h=o.attr("src"),c=i.video,e=u?bi(f,c===!0):!1;e?f=!1:e=c;t(n,o,r.extend(i,{video:e,img:i.img||f||s||h,thumb:i.thumb||h||s||f}))}function t(n,t,i){var u=i.thumb&&i.img!==i.thumb,f=v(i.width||n.attr("width")),e=v(i.height||n.attr("height"));r.extend(i,{width:f,height:e,thumbratio:rr(i.thumbratio||v(i.thumbwidth||t&&t.attr("width")||u||f)/v(i.thumbheight||t&&t.attr("height")||u||e))})}var i=[];return n.children().each(function(){var n=r(this),f=ii(r.extend(n.data(),{id:n.attr("id")}));if(n.is("a, img"))u(n,f,!0);else{if(n.is(":empty"))return;t(n,null,r.extend(f,{html:this,_html:n.html()}))}i.push(f)}),i}function uf(n){return 0===n.offsetWidth&&0===n.offsetHeight}function ff(n){return!r.contains(t.documentElement,n)}function it(n,t,i){n()?t():setTimeout(function(){it(n,t)},i||100)}function ef(n){i.replace(i.protocol+"//"+i.host+i.pathname.replace(/^\/?/,"/")+i.search+"#"+n)}function di(n,t,i){var u=n.data(),r=u.measures;if(r&&(!u.l||u.l.W!==r.width||u.l.H!==r.height||u.l.r!==r.ratio||u.l.w!==t.w||u.l.h!==t.h||u.l.m!==i)){var f=r.width,e=r.height,l=t.w/t.h,o=r.ratio>=l,s="scaledown"===i,h="contain"===i,c="cover"===i;o&&(s||h)||!o&&c?(f=a(t.w,0,s?f:1/0),e=f/r.ratio):(o&&c||!o&&(s||h))&&(e=a(t.h,0,s?e:1/0),f=e*r.ratio);n.css({width:Math.ceil(f),height:Math.ceil(e),marginLeft:Math.floor(-f/2),marginTop:Math.floor(-e/2)});u.l={W:r.width,H:r.height,r:r.ratio,w:t.w,h:t.h,m:i}}return!0}function of(n,t){var i=n[0];i.styleSheet?i.styleSheet.cssText=t:n.html(t)}function lt(n,t,i){return t===i?!1:t>=n?"left":n>=i?"right":"left right"}function gi(n,t,i,r){var f,u,e,o;if(!i)return!1;if(!isNaN(n))return n-(r?0:1);for(u=0,e=t.length;e>u;u++)if(o=t[u],o.id===n){f=u;break}return f}function sf(n,t,i){i=i||{};n.each(function(){var n,u=r(this),f=u.data();f.clickOn||(f.clickOn=!0,r.extend(er(u,{onStart:function(t){n=t;(i.onStart||s).call(this,t)},onMove:i.onMove||s,onTouchEnd:i.onTouchEnd||s,onEnd:function(i){i.moved||t.call(this,n)}}),{noMove:!0}))})}function e(n,t){return'<div class="'+n+'">'+(t||"")+"<\/div>"}function nr(n){for(var i,r,t=n.length;t;)i=Math.floor(Math.random()*t--),r=n[t],n[t]=n[i],n[i]=r;return n}function tr(n){return"[object Array]"==Object.prototype.toString.call(n)&&r.map(n,function(n){return r.extend({},n)})}function ir(n,t){w.scrollLeft(n).scrollTop(t)}function ii(n){if(n){var t={};return r.each(n,function(n,i){t[n.toLowerCase()]=i}),t}}function rr(n){if(n){var t=+n;return isNaN(t)?(t=n.split("/"),+t[0]/+t[1]||u):t}}function y(n,t){n.preventDefault();t&&n.stopPropagation()}function ri(n){return n?">":"<"}function rt(n,t){var f=n.data(),e=Math.round(t.pos),i=function(){f.sliding=!1;(t.onEnd||s)()},u;"undefined"!=typeof t.overPos&&t.overPos!==t.pos&&(e=t.overPos,i=function(){rt(n,r.extend({},t,{overPos:t.pos,time:Math.max(st,t.time/2)}))});u=r.extend(ht(e,t._001),t.width&&{width:t.width});f.sliding=!0;b?(n.css(r.extend(ni(t.time),u)),t.time>10?gu(n,"transform",i,t.time):i()):n.stop().animate(u,t.time,lo,i)}function ur(n,t,i,u,f,e){var c="undefined"!=typeof e;if(c||(f.push(arguments),Array.prototype.push.call(arguments,f.length),!(f.length>1))){n=n||r(n);t=t||r(t);var v=n[0],l=t[0],h="crossfade"===u.method,o=function(){if(!o.done){o.done=!0;var n=(c||f.shift())&&f.shift();n&&ur.apply(this,n);(u.onEnd||s)(!!n)}},a=u.time/(e||1);i.removeClass(br+" "+wr);n.stop().addClass(br);t.stop().addClass(wr);h&&l&&n.fadeTo(0,0);n.fadeTo(h?a:0,1,h&&o);t.fadeTo(a,0,o);v&&h||l||o()}}function fr(n){var t=(n.touches||[])[0]||n;n._x=t.pageX;n._y=t.clientY;n._now=r.now()}function er(i,u){function b(n){return l=r(n.target),f.checked=tt=it=w=!1,o||f.flow||n.touches&&n.touches.length>1||n.which>1||ai&&ai.type!==n.type&&vi||(tt=u.select&&l.is(u.select,e))?tt:(a="touchstart"===n.type,it=l.is("a, a *",e),p=f.control,rt=f.noMove||f.noSwipe||p?16:f.snap?0:4,fr(n),v=ai=n,cu=n.type.replace(/down|start/,"move").replace(/Down/,"Move"),(u.onStart||s).call(e,n,{control:p,$target:l}),o=f.flow=!0,void((!a||f.go)&&y(n)))}function g(n){if(n.touches&&n.touches.length>1||k&&!n.isPrimary||cu!==n.type||!o)return o&&h(),void(u.onTouchEnd||s)();fr(n);var t=Math.abs(n._x-v._x),i=Math.abs(n._y-v._y),r=t-i,c=(f.go||f.x||r>=0)&&!f.noSwipe,l=0>r;a&&!f.checked?(o=c)&&y(n):(y(n),(u.onMove||s).call(e,n,{touch:a}));!w&&Math.sqrt(Math.pow(t,2)+Math.pow(i,2))>rt&&(w=!0);f.checked=f.checked||c||l}function h(n){(u.onTouchEnd||s)();var t=o;f.control=o=!1;t&&(f.flow=!1);!t||it&&!f.checked||(n&&y(n),vi=!0,clearTimeout(lu),lu=setTimeout(function(){vi=!1},1e3),(u.onEnd||s).call(e,{moved:w,$target:l,control:p,touch:a,startEvent:v,aborted:!n||"MSPointerCancel"===n.type}))}function ut(){f.flow||setTimeout(function(){f.flow=!0},10)}function nt(){f.flow&&setTimeout(function(){f.flow=!1},d)}var o,v,l,p,a,tt,it,rt,w,e=i[0],f={};return k?(e[c]("MSPointerDown",b,!1),t[c]("MSPointerMove",g,!1),t[c]("MSPointerCancel",h,!1),t[c]("MSPointerUp",h,!1)):(e[c]&&(e[c]("touchstart",b,!1),e[c]("touchmove",g,!1),e[c]("touchend",h,!1),t[c]("touchstart",ut,!1),t[c]("touchend",nt,!1),t[c]("touchcancel",nt,!1),n[c]("scroll",nt,!1)),i.on("mousedown",b),wt.on("mousemove",g).on("mouseup",h)),i.on("click","a",function(n){f.checked&&y(n)}),f}function or(n,t){function v(r,u){l=!0;y=h=r._x;tt=r._now;c=[[tt,y]];p=i=e.noMove||u?0:ti(n,(t.getPos||s)(),t._001);(t.onStart||s).call(g,r)}function ut(n,t){u=e.min;f=e.max;o=e.snap;it=n.altKey;l=b=!1;rt=t.control;rt||ot.sliding||v(n)}function ft(r,o){e.noSwipe||(l||v(r),h=r._x,c.push([r._now,h]),i=p-(y-h),nt=lt(i,u,f),u>=i?i=wi(i,u):i>=f&&(i=wi(i,f)),e.noMove||(n.css(ht(i,t._001)),b||(b=!0,o.touch||k||n.addClass(dr)),(t.onMove||s).call(g,r,{pos:i,edge:nt})))}function et(y){if(!e.noSwipe||!y.moved){l||v(y.startEvent,!0);y.touch||k||n.removeClass(dr);w=r.now();for(var lt,ft,at,vt,nt,tt,b,rt,et,yt=w-d,ot=null,ut=st,pt=t.friction,ht=c.length-1;ht>=0;ht--){if(lt=c[ht][0],ft=Math.abs(lt-yt),null===ot||at>ft)ot=lt,vt=c[ht][1];else if(ot===yt||ft>at)break;at=ft}b=a(i,u,f);var wt=vt-h,ct=wt>=0,bt=w-ot,kt=bt>d,dt=!kt&&i!==p&&b===i;o&&(b=a(Math[dt?ct?"floor":"ceil":"round"](i/o)*o,u,f),u=f=b);dt&&(o||b===i)&&(et=-(wt/bt),ut*=a(Math.abs(et),t.timeLow,t.timeHigh),nt=Math.round(i+et*ut/pt),o||(b=nt),(!ct&&nt>f||ct&&u>nt)&&(tt=ct?u:f,rt=nt-tt,o||(b=tt),rt=a(b+.03*rt,tt-50,tt+50),ut=Math.abs((i-rt)/(et/pt))));ut*=it?10:1;(t.onEnd||s).call(g,r.extend(y,{moved:y.moved||kt&&o,pos:i,newPos:b,overPos:rt,time:ut}))}}var y,h,p,i,nt,c,tt,w,u,f,o,it,rt,b,l,g=n[0],ot=n.data(),e={};return e=r.extend(er(t.$wrap,{onStart:ut,onMove:ft,onTouchEnd:t.onTouchEnd,onEnd:et,select:t.select}),e)}function sr(n,t){var u,f,e,o=n[0],i={prevent:{}};return o[c]&&o[c](eo,function(n){var l=n.wheelDeltaY||-1*n.deltaY||0,h=n.wheelDeltaX||-1*n.deltaX||0,a=Math.abs(h)>Math.abs(l),o=ri(0>h),v=f===o,c=r.now(),p=d>c-e;f=o;e=c;a&&i.ok&&(!i.prevent[o]||u)&&(y(n,!0),u&&v&&p||(t.shift&&(u=!0,clearTimeout(i.t),i.t=setTimeout(function(){u=!1},oo)),(t.onEnd||s)(n,t.shift?o:h)))},!1),i}function hr(){r.each(r.Fotorama.instances,function(n,t){t.index=n})}function hf(n){r.Fotorama.instances.push(n);hr()}function cf(n){r.Fotorama.instances.splice(n.index,1);hr()}var f="fotorama",ut="fullscreen",l=f+"__wrap",lf=l+"--css2",af=l+"--css3",cr=l+"--video",vf=l+"--fade",yf=l+"--slide",pf=l+"--no-controls",wf=l+"--no-shadows",bf=l+"--pan-y",kf=l+"--rtl",lr=l+"--only-active",df=l+"--no-captions",gf=l+"--toggle-arrows",ui=f+"__stage",ar=ui+"__frame",ne=ar+"--video",te=ui+"__shaft",vr=f+"__grab",ie=f+"__pointer",ft=f+"__arr",yr=ft+"--disabled",re=ft+"--prev",ue=ft+"--next",p=f+"__nav",fe=p+"-wrap",ee=p+"__shaft",fi=p+"--dots",ei=p+"--thumbs",et=p+"__frame",oe=et+"--dot",se=et+"--thumb",pr=f+"__fade",wr=pr+"-front",br=pr+"-rear",he=f+"__shadow",oi=he+"s",ce=oi+"--left",le=oi+"--right",si=f+"__active",hi=f+"__select",ae=f+"--hidden",kr=f+"--fullscreen",ve=f+"__fullscreen-icon",ci=f+"__error",li=f+"__loading",at=f+"__loaded",ye=at+"--full",pe=at+"--img",dr=f+"__grabbing",gr=f+"__img",we=gr+"--full",be=f+"__dot",nu=f+"__thumb",ke=nu+"-border",de=f+"__html",tu=f+"__video",iu=tu+"-play",ge=tu+"-close",no=f+"__caption",to=f+"__caption__wrap",io=f+"__spinner",vt=r&&r.fn.jquery.split("."),yt,eu,ou,su,hu;if(!vt||vt[0]<1||1==vt[0]&&vt[1]<8)throw"Fotorama requires jQuery 1.8 or later and will not run without it.";var ru={},uu=function(n,t,i){function nt(n){w.cssText=n}function u(n,t){return typeof n===t}function tt(n,t){return!!~(""+n).indexOf(t)}function y(n,t){var u,r;for(u in n)if(r=n[u],!tt(r,"-")&&w[r]!==i)return"pfx"==t?r:!0;return!1}function it(n,t,r){var e,f;for(e in n)if(f=t[n[e]],f!==i)return r===!1?n[e]:u(f,"function")?f.bind(r||t):f;return!1}function e(n,t,i){var r=n.charAt(0).toUpperCase()+n.slice(1),f=(n+" "+k.join(r+" ")+r).split(" ");return u(t,"string")||u(t,"undefined")?y(f,t):(f=(n+" "+d.join(r+" ")+r).split(" "),it(f,t,i))}var rt,o,l,r={},f=t.documentElement,s="modernizr",p=t.createElement(s),w=p.style,ut=({}.toString," -webkit- -moz- -o- -ms- ".split(" ")),b="Webkit Moz O ms",k=b.split(" "),d=b.toLowerCase().split(" "),h={},g=[],a=g.slice,ft=function(n,i,r,u){var l,a,c,v,e=t.createElement("div"),h=t.body,o=h||t.createElement("body");if(parseInt(r,10))for(;r--;)c=t.createElement("div"),c.id=u?u[r]:s+(r+1),e.appendChild(c);return l=["&#173;",'<style id="s',s,'">',n,"<\/style>"].join(""),e.id=s,(h?e:o).innerHTML+=l,o.appendChild(e),h||(o.style.background="",o.style.overflow="hidden",v=f.style.overflow,f.style.overflow="hidden",f.appendChild(o)),a=i(e,n),h?e.parentNode.removeChild(e):(o.parentNode.removeChild(o),f.style.overflow=v),!!a},v={}.hasOwnProperty,c;l=u(v,"undefined")||u(v.call,"undefined")?function(n,t){return t in n&&u(n.constructor.prototype[t],"undefined")}:function(n,t){return v.call(n,t)};Function.prototype.bind||(Function.prototype.bind=function(n){var t=this,i,r;if("function"!=typeof t)throw new TypeError;return i=a.call(arguments,1),r=function(){var f,e,u;return this instanceof r?(f=function(){},f.prototype=t.prototype,e=new f,u=t.apply(e,i.concat(a.call(arguments))),Object(u)===u?u:e):t.apply(n,i.concat(a.call(arguments)))},r});h.csstransforms3d=function(){return!!e("perspective")};for(c in h)l(h,c)&&(o=c.toLowerCase(),r[o]=h[c](),g.push((r[o]?"":"no-")+o));return r.addTest=function(n,t){if("object"==typeof n)for(var u in n)l(n,u)&&r.addTest(u,n[u]);else{if(n=n.toLowerCase(),r[n]!==i)return r;t="function"==typeof t?t():t;"undefined"!=typeof enableClasses&&enableClasses&&(f.className+=" "+(t?"":"no-")+n);r[n]=t}return r},nt(""),p=rt=null,r._version="2.6.2",r._prefixes=ut,r._domPrefixes=d,r._cssomPrefixes=k,r.testProp=function(n){return y([n])},r.testAllProps=e,r.testStyles=ft,r.prefixed=function(n,t,i){return t?e(n,t,i):e(n,"pfx")},r}(n,t),o={ok:!1,is:function(){return!1},request:function(){},cancel:function(){},event:"",prefix:""},fu="webkit moz o ms khtml".split(" ");if("undefined"!=typeof t.cancelFullScreen)o.ok=!0;else for(yt=0,eu=fu.length;eu>yt;yt++)if(o.prefix=fu[yt],"undefined"!=typeof t[o.prefix+"CancelFullScreen"]){o.ok=!0;break}o.ok&&(o.event=o.prefix+"fullscreenchange",o.is=function(){switch(this.prefix){case"":return t.fullScreen;case"webkit":return t.webkitIsFullScreen;default:return t[this.prefix+"FullScreen"]}},o.request=function(n){return""===this.prefix?n.requestFullScreen():n[this.prefix+"RequestFullScreen"]()},o.cancel=function(){return""===this.prefix?t.cancelFullScreen():t[this.prefix+"CancelFullScreen"]()});su={lines:12,length:5,width:2,radius:7,corners:1,rotate:15,color:"rgba(128, 128, 128, .75)",hwaccel:!0};hu={top:"auto",left:"auto",className:""};!function(n,t){ou=t()}(this,function(){function f(n,i){var r,u=t.createElement(n||"div");for(r in i)u[r]=i[r];return u}function i(n){for(var t=1,i=arguments.length;i>t;t++)n.appendChild(arguments[t]);return n}function p(n,t,i,r){var u=["opacity",t,~~(100*n),i,r].join("-"),f=.01+i/r*100,o=Math.max(1-(1-n)/t*(100-f),n),s=e.substring(0,e.indexOf("Animation")).toLowerCase(),c=s&&"-"+s+"-"||"";return y[u]||(h.insertRule("@"+c+"keyframes "+u+"{0%{opacity:"+o+"}"+f+"%{opacity:"+n+"}"+(f+.01)+"%{opacity:1}"+(f+t)%100+"%{opacity:"+n+"}100%{opacity:"+o+"}}",h.cssRules.length),y[u]=1),u}function s(n,t){var r,i,f=n.style;for(t=t.charAt(0).toUpperCase()+t.slice(1),i=0;i<v.length;i++)if(r=v[i]+t,f[r]!==u)return r;if(f[t]!==u)return t}function n(n,t){for(var i in t)n.style[s(n,i)||i]=t[i];return n}function c(n){for(var r,i,t=1;t<arguments.length;t++){r=arguments[t];for(i in r)n[i]===u&&(n[i]=r[i])}return n}function l(n){for(var t={x:n.offsetLeft,y:n.offsetTop};n=n.offsetParent;)t.x+=n.offsetLeft,t.y+=n.offsetTop;return t}function a(n,t){return"string"==typeof n?n:n[t%n.length]}function r(n){return"undefined"==typeof this?new r(n):void(this.opts=c(n||{},r.defaults,b))}function w(){function t(n,t){return f("<"+n+' xmlns="urn:schemas-microsoft.com:vml" class="spin-vml">',t)}h.addRule(".spin-vml","behavior:url(#default#VML)");r.prototype.lines=function(r,u){function s(){return n(t("group",{coordsize:o+" "+o,coordorigin:-e+" "+-e}),{width:o,height:o})}function h(r,f,o){i(l,i(n(s(),{rotation:360/u.lines*r+"deg",left:~~f}),i(n(t("roundrect",{arcsize:u.corners}),{width:e,height:u.width,left:u.radius,top:-u.width>>1,filter:o}),t("fill",{color:a(u.color,r),opacity:u.opacity}),t("stroke",{opacity:0}))))}var f,e=u.length+u.width,o=2*e,c=2*-(u.width+u.length)+"px",l=n(s(),{position:"absolute",top:c,left:c});if(u.shadow)for(f=1;f<=u.lines;f++)h(f,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(f=1;f<=u.lines;f++)h(f);return i(r,l)};r.prototype.opacity=function(n,t,i,r){var u=n.firstChild;r=r.shadow&&r.lines||0;u&&t+r<u.childNodes.length&&(u=u.childNodes[t+r],u=u&&u.firstChild,u=u&&u.firstChild,u&&(u.opacity=i))}}var e,v=["webkit","Moz","ms","O"],y={},h=function(){var n=f("style",{type:"text/css"});return i(t.getElementsByTagName("head")[0],n),n.sheet||n.styleSheet}(),b={lines:12,length:7,width:5,radius:10,rotate:0,corners:1,color:"#000",direction:1,speed:1,trail:100,opacity:.25,fps:20,zIndex:2e9,className:"spinner",top:"auto",left:"auto",position:"relative"},o;return r.defaults={},c(r.prototype,{spin:function(t){this.stop();var o,s,r=this,i=r.opts,u=r.el=n(f(0,{className:i.className}),{position:i.position,width:0,zIndex:i.zIndex}),c=i.radius+i.length+i.width;if(t&&(t.insertBefore(u,t.firstChild||null),s=l(t),o=l(u),n(u,{left:("auto"==i.left?s.x-o.x+(t.offsetWidth>>1):parseInt(i.left,10)+c)+"px",top:("auto"==i.top?s.y-o.y+(t.offsetHeight>>1):parseInt(i.top,10)+c)+"px"})),u.setAttribute("role","progressbar"),r.lines(u,r.opts),!e){var a,v=0,p=(i.lines-1)*(1-i.direction)/2,y=i.fps,h=y/i.speed,w=(1-i.opacity)/(h*i.trail/100),b=h/i.lines;!function k(){v++;for(var n=0;n<i.lines;n++)a=Math.max(1-(v+(i.lines-n)*b)%h*w,i.opacity),r.opacity(u,n*i.direction+p,a,i);r.timeout=r.el&&setTimeout(k,~~(1e3/y))}()}return r},stop:function(){var n=this.el;return n&&(clearTimeout(this.timeout),n.parentNode&&n.parentNode.removeChild(n),this.el=u),this},lines:function(t,r){function s(t,i){return n(f(),{position:"absolute",width:r.length+r.width+"px",height:r.width+"px",background:t,boxShadow:i,transformOrigin:"left",transform:"rotate("+~~(360/r.lines*u+r.rotate)+"deg) translate("+r.radius+"px,0)",borderRadius:(r.corners*r.width>>1)+"px"})}for(var o,u=0,h=(r.lines-1)*(1-r.direction)/2;u<r.lines;u++)o=n(f(),{position:"absolute",top:1+~(r.width/2)+"px",transform:r.hwaccel?"translate3d(0,0,0)":"",opacity:r.opacity,animation:e&&p(r.opacity,r.trail,h+u*r.direction,r.lines)+" "+1/r.speed+"s linear infinite"}),r.shadow&&i(o,n(s("#000","0 0 4px #000"),{top:"2px"})),i(t,i(o,s(a(r.color,u),"0 0 1px rgba(0,0,0,.1)")));return t},opacity:function(n,t,i){t<n.childNodes.length&&(n.childNodes[t].style.opacity=i)}}),o=n(f("group"),{behavior:"url(#default#VML)"}),!s(o,"transform")&&o.adj?w():e=s(o,"animation"),r});var pt,ot,ai,cu,vi,lu,w=r(n),wt=r(t),ro="quirks"===i.hash.replace("#",""),au=uu.csstransforms3d,b=au&&!ro,uo=au||"CSS1Compat"===t.compatMode,vu=o.ok,fo=navigator.userAgent.match(/Android|webOS|iPhone|iPad|iPod|BlackBerry|Windows Phone/i),bt=!b||fo,c="addEventListener",k=navigator.msPointerEnabled,eo="onwheel"in t.createElement("div")?"wheel":t.onmousewheel!==u?"mousewheel":"DOMMouseScroll",d=250,st=300,oo=1400,so=5e3,yi=2,kt=64,ho=500,co=333,h="$stageFrame",dt="$navDotFrame",gt="$navThumbFrame",lo=yu([.1,0,.25,1]),ao=99999,vo={width:null,minwidth:null,maxwidth:"100%",height:null,minheight:null,maxheight:null,ratio:null,margin:yi,glimpse:0,nav:"dots",navposition:"bottom",navwidth:null,thumbwidth:kt,thumbheight:kt,thumbmargin:yi,thumbborderwidth:yi,allowfullscreen:!1,fit:"contain",transition:"slide",clicktransition:null,transitionduration:st,captions:!0,hash:!1,startindex:0,loop:!1,autoplay:!1,stopautoplayontouch:!0,keyboard:!1,arrows:!0,click:!0,swipe:!0,trackpad:!0,shuffle:!1,direction:"ltr",shadows:!0,spinner:null},yo={left:!0,right:!0,down:!1,up:!1,space:!1,home:!1,end:!1};jQuery.Fotorama=function(n,u){function el(){r.each(vt,function(n,t){var r,i;t.i||(t.i=wl++,r=bi(t.video,!0),r&&(i={},t.video=r,t.img||t.thumb?t.thumbsReady=!0:i=tf(t,vt,s),ki(vt,{img:i.img,thumb:i.thumb},t.i,s)))})}function uu(n){return yc[n]||s.fullScreen}function ol(n){var t="keydown."+f,i="keydown."+f+vs,r="resize."+f+vs;n?(wt.on(i,function(n){var i,t;vi&&27===n.keyCode?(i=!0,eu(vi,!0,!0)):(s.fullScreen||u.keyboard&&!s.index)&&(27===n.keyCode?(i=!0,s.cancelFullScreen()):n.shiftKey&&32===n.keyCode&&uu("space")||37===n.keyCode&&uu("left")||38===n.keyCode&&uu("up")?t="<":32===n.keyCode&&uu("space")||39===n.keyCode&&uu("right")||40===n.keyCode&&uu("down")?t=">":36===n.keyCode&&uu("home")?t="<<":35===n.keyCode&&uu("end")&&(t=">>"));(i||t)&&y(n);t&&s.show({index:t,slow:n.altKey,user:!0})}),s.index||wt.off(t).on(t,"textarea, input, select",function(n){ot.hasClass(ut)||n.stopPropagation()}),w.on(r,s.resize)):(wt.off(i),w.off(r))}function us(t){t!==us.f&&(t?(n.html("").addClass(f+" "+dc).append(yi).before(sh).before(hh),hf(s)):(yi.detach(),sh.detach(),hh.detach(),n.html(nl.urtext).removeClass(dc),cf(s)),ol(t),us.f=t)}function sl(){vt=s.data=vt||tr(u.data)||rf(n);ai=s.size=vt.length;!os.ok&&u.shuffle&&nr(vt);el();tt=ks(tt);ai&&us(!0)}function bs(){var n=2>ai||vi;hr.noMove=n||dr;hr.noSwipe=n||!u.swipe;!yu&&nf.toggleClass(vr,!hr.noMove&&!hr.noSwipe);k&&yi.toggleClass(bf,!hr.noSwipe)}function ph(n){n===!0&&(n="");u.autoplay=Math.max(+n||so,1.5*ts)}function hl(){function n(n,i){t[n?"add":"remove"].push(i)}s.options=u=ii(u);dr="crossfade"===u.transition||"dissolve"===u.transition;ru=u.loop&&(ai>2||dr)&&(!yu||"slide"!==yu);ts=+u.transitionduration||st;gu="rtl"===u.direction;yc=r.extend({},u.keyboard&&yo,u.keyboard);var t={add:[],remove:[]};ai>1?(pr=u.nav,vc="top"===u.navposition,t.remove.push(hi),ys.toggle(!!u.arrows)):(pr=!1,ys.hide());gh();ss=new ou(r.extend(su,u.spinner,hu,{direction:gu?-1:1}));rc();uc();u.autoplay&&ph(u.autoplay);fh=v(u.thumbwidth)||kt;ls=v(u.thumbheight)||kt;ws.ok=rs.ok=u.trackpad&&!bt;bs();hc(u,[c]);fo="thumbs"===pr;fo?(gs(ai,"navThumb"),uh=ps,wu=gt,of(sh,r.Fotorama.jst.style({w:fh,h:ls,b:u.thumbborderwidth,m:u.thumbmargin,s:vs,q:!uo})),fr.addClass(ei).removeClass(fi)):"dots"===pr?(gs(ai,"navDot"),uh=ah,wu=dt,fr.addClass(fi).removeClass(ei)):(pr=!1,fr.removeClass(ei+" "+fi));pr&&(vc?lh.insertBefore(wi):lh.insertAfter(wi),po.nav=!1,po(uh,wr,"nav"));cs=u.allowfullscreen;cs?(vh.appendTo(wi),ns=vu&&"native"===cs):(vh.detach(),ns=!1);n(dr,vf);n(!dr,yf);n(!u.captions,df);n(gu,kf);n("always"!==u.arrows,gf);is=u.shadows&&!bt;n(!is,wf);yi.addClass(t.add.join(" ")).removeClass(t.remove.join(" "));na=r.extend({},u)}function bu(n){return 0>n?(ai+n%ai)%ai:n>=ai?n%ai:n}function ks(n){return a(n,0,ai-1)}function wh(n){return ru?bu(n):ks(n)}function bh(n){return n>0||ru?n-1:!1}function kh(n){return ai-1>n||ru?n+1:!1}function cl(){hr.min=ru?-1/0:-ct(ai-1,c.w,u.margin,lu);hr.max=ru?1/0:-ct(0,c.w,u.margin,lu);hr.snap=c.w+u.margin}function ll(){yt.min=Math.min(0,c.nw-wr.width());yt.max=0;wr.toggleClass(vr,!(yt.noMove=yt.min===yt.max))}function ds(n,t,i){if("number"==typeof n){n=new Array(n);var u=!0}return r.each(n,function(n,r){var f,o,e;(u&&(r=n),"number"==typeof r)&&(f=vt[bu(r)],f&&(o="$"+t+"Frame",e=f[o],i.call(this,n,r,f,e,o,e&&e.data())))})}function dh(n,t,i,r){eh&&("*"!==eh||r!==go)||(n=nt(u.width)||nt(n)||ho,t=nt(u.height)||nt(t)||co,s.resize({width:n,ratio:u.ratio||i||n/t},0,r===go?!0:"*"))}function lo(n,t,i,f,e){ds(n,t,function(n,o,h,l,a,v){function d(n){var t=bu(o);br(n,{index:t,src:y,frame:vt[t]})}function g(){b.remove();r.Fotorama.cache[y]="error";h.html&&"stage"===t||!nt||nt===y?(!y||h.html||p?"stage"===t&&(l.trigger("f:load").removeClass(li+" "+ci).addClass(at),d("load"),dh()):(l.trigger("f:error").removeClass(li).addClass(ci),d("error")),v.state="error",!(ai>1&&vt[o]===h)||h.html||h.deleted||h.video||p||(h.deleted=!0,s.splice(o,1))):(h[rt]=y=nt,lo([o],t,i,f,!0))}function ut(){r.Fotorama.measures[y]=k.measures=r.Fotorama.measures[y]||{width:w.width,height:w.height,ratio:w.width/w.height};dh(k.measures.width,k.measures.height,k.measures.ratio,o);b.off("load error").addClass(gr+(p?" "+we:"")).prependTo(l);di(b,i||c,f||h.fit||u.fit);r.Fotorama.cache[y]=v.state="loaded";setTimeout(function(){l.trigger("f:load").removeClass(li+" "+ci).addClass(at+" "+(p?ye:pe));"stage"===t&&d("load")},5)}function tt(){var n=10;it(function(){return!as||!n--&&!bt},function(){ut()})}var p;if(l&&(p=s.fullScreen&&h.full&&h.full!==h.img&&!v.$full&&"stage"===t,!v.$img||e||p)){var w=new Image,b=r(w),k=b.data();v[p?"$full":"$img"]=b;var rt="stage"===t?p?"full":"img":"thumb",y=h[rt],nt=p?null:h["stage"===t?"thumb":"img"];if("navThumb"===t&&(l=v.$wrap),!y)return void g();r.Fotorama.cache[y]?!function ft(){"error"===r.Fotorama.cache[y]?g():"loaded"===r.Fotorama.cache[y]?setTimeout(tt,0):setTimeout(ft,100)}():(r.Fotorama.cache[y]="*",b.on("load",tt).on("error",g));v.state="";w.src=y}})}function al(n){ul.append(ss.spin().el).appendTo(n)}function gh(){ul.detach();ss&&ss.stop()}function nc(){var n=s.activeFrame[h];n&&!n.data().state&&(al(n),n.on("f:load f:error",function(){n.off("f:load f:error");gh()}))}function gs(n,t){ds(n,t,function(n,i,f,o,s,h){o||(o=f[s]=yi[s].clone(),h=o.data(),h.data=f,"stage"===t?(f.html&&r('<div class="'+de+'"><\/div>').append(f._html?r(f.html).removeAttr("id").html(f._html):f.html).appendTo(o),u.captions&&f.caption&&r(e(no,e(to,f.caption))).appendTo(o),f.video&&o.addClass(ne).append(rl.clone()),ch=ch.add(o)):"navDot"===t?ah=ah.add(o):"navThumb"===t&&(h.$wrap=o.children(":first"),ps=ps.add(o),f.video&&o.append(rl.clone())))})}function nh(n,t,i){return n&&n.length&&di(n,t,i)}function tc(n){ds(n,"stage",function(n,t,i,f,e,o){if(f){yh[h][bu(t)]=f.css(r.extend({left:dr?0:ct(t,c.w,u.margin,lu)},dr&&ni(0)));ff(f[0])&&(f.appendTo(nf),eu(i.$video));var s=i.fit||u.fit;nh(o.$img,c,s);nh(o.$full,c,s)}})}function vo(n,t){if("thumbs"===pr&&!isNaN(n)){var i=-n,u=-n+c.nw;ps.each(function(){var o=r(this),n=o.data(),s=n.eq,f={h:ls},e="cover";f.w=n.w;n.l+n.w<i||n.l>u||nh(n.$img,f,e)||t&&lo([s],"navThumb",f,e)})}}function po(n,t,i){if(!po[i]){var e="nav"===i&&fo,f=0;t.append(n.filter(function(){for(var t,i=r(this),u=i.data(),n=0,f=vt.length;f>n;n++)if(u.data===vt[n]){t=!0;u.eq=n;break}return t||i.remove()&&!1}).sort(function(n,t){return r(n).data().eq-r(t).data().eq}).each(function(){if(e){var i=r(this),n=i.data(),t=Math.round(ls*n.data.thumbratio)||fh;n.l=f;n.w=t;i.css({width:t});f+=t+u.thumbmargin}}));po[i]=!0}}function ic(n){return n-fl>c.w/3}function wo(n){return!(ru||tt+n&&tt-ai+n||vi)}function rc(){tl.toggleClass(yr,wo(0));il.toggleClass(yr,wo(1))}function uc(){ws.ok&&(ws.prevent={"<":wo(0),">":wo(1)})}function fc(n){var t,i,r=n.data();return fo?(t=r.l,i=r.w):(t=n.position().left,i=n.width()),{c:t+i/2,min:-t+10*u.thumbmargin,max:-t+c.w-i-10*u.thumbmargin}}function ec(n){var t=s.activeFrame[wu].data();rt(bl,{time:.9*n,pos:t.l,width:t.w-2*u.thumbborderwidth})}function uf(n){var r=vt[n.guessIndex][wu];if(r){var t=yt.min!==yt.max,u=t&&fc(s.activeFrame[wu]),f=t&&(n.keep&&uf.l?uf.l:a((n.coo||c.nw/2)-fc(r).c,u.min,u.max)),i=t&&a(f,yt.min,yt.max),e=.9*n.time;rt(wr,{time:e,pos:i||0,onEnd:function(){vo(i,!0)}});he(fr,lt(i,yt.min,yt.max));uf.l=f}}function vl(){oc(wu);oo[wu].push(s.activeFrame[wu].addClass(si))}function oc(n){for(var t=oo[n];t.length;)t.shift().removeClass(si)}function th(n){var t=yh[n];r.each(tu,function(n,i){delete t[bu(i)]});r.each(t,function(n,i){delete t[n];i.detach()})}function sc(n){lu=er=tt;var i=s.activeFrame,t=i[h];t&&(oc(h),oo[h].push(t.addClass(si)),n||s.show.onEnd(!0),ti(nf,0,!0),th(h),tc(tu),cl(),ll())}function hc(n,t){n&&r.each(t,function(t,i){i&&r.extend(i,{width:n.width||i.width,height:n.height,minwidth:n.minwidth,maxwidth:n.maxwidth,minheight:n.minheight,maxheight:n.maxheight,ratio:rr(n.ratio)})})}function br(t,i){n.trigger(f+":"+t,[s,i])}function bo(){clearTimeout(du.t);as=1;u.stopautoplayontouch?s.stopAutoplay():pu=!0}function du(){u.stopautoplayontouch||(fs(),fu());du.t=setTimeout(function(){as=0},st+d)}function fs(){pu=!(!vi&&!oh)}function fu(){if(clearTimeout(fu.t),!u.autoplay||pu)return void(s.autoplay&&(s.autoplay=!1,br("stopautoplay")));s.autoplay||(s.autoplay=!0,br("startautoplay"));var n=tt,t=s.activeFrame[h].data();it(function(){return t.state||n!==tt},function(){fu.t=setTimeout(function(){pu||n!==tt||s.show(ru?ri(!gu):bu(tt+(gu?-1:1)))},u.autoplay)})}function cc(){s.fullScreen&&(s.fullScreen=!1,vu&&o.cancel(gc),ot.removeClass(ut),pt.removeClass(ut),n.removeClass(kr).insertAfter(hh),c=r.extend({},kc),eu(vi,!0,!0),es("x",!1),s.resize(),lo(tu,"stage"),ir(wc,pc),br("fullscreenexit"))}function he(n,t){is&&(n.removeClass(ce+" "+le),t&&!vi&&n.addClass(t.replace(/^|\s/g," "+oi+"--")))}function eu(n,t,i){t&&(yi.removeClass(cr),vi=!1,bs());n&&n!==vi&&(n.remove(),br("unloadvideo"));i&&(fs(),fu())}function ih(n){yi.toggleClass(pf,n)}function ro(n){if(!hr.flow){var t=n?n.pageX:ro.x,i=t&&!wo(ic(t))&&u.click;ro.p!==i&&(dr||!u.swipe)&&wi.toggleClass(ie,i)&&(ro.p=i,ro.x=t)}}function ko(n){clearTimeout(ko.t);u.clicktransition&&u.clicktransition!==u.transition?(yu=u.transition,s.setOptions({transition:u.clicktransition}),ko.t=setTimeout(function(){s.show(n)},10)):s.show(n)}function yl(n,t){var i=n.target,f=r(i);f.hasClass(iu)?s.playVideo():i===kl?s[(s.fullScreen?"cancel":"request")+"FullScreen"]():vi?i===gl&&eu(vi,!0,!0):t?ih():u.click&&ko({index:n.shiftKey||ri(ic(n._x)),slow:n.altKey,user:!0})}function es(n,t){hr[n]=yt[n]=t}function pl(n,t){var i=r(this).data().eq;ko({index:i,slow:n.altKey,user:!0,coo:n._x-fr.offset().left,time:t})}function cu(){if(sl(),hl(),!cu.i){cu.i=!0;var n=u.startindex;(n||u.hash&&i.hash)&&(go=gi(n||i.hash.replace(/^#/,""),vt,0===s.index||n,n));tt=lu=er=au=go=wh(go)||0}if(ai){if(rh())return;vi&&eu(vi,!0);tu=[];th(h);s.show({index:tt,time:0,reset:cu.ok});s.resize()}else s.destroy();cu.ok=!0}function rh(){if(!rh.f===gu)return(rh.f=gu,tt=ai-1-tt,s.reverse(),!0)}function os(){os.ok||(os.ok=!0,br("ready"))}pt=pt||r("html");ot=ot||r("body");var vt,ai,uh,ss,vi,hs,tu,lu,er,au,lc,ac,go,ru,pr,fo,vc,cs,ns,dr,fh,ls,ts,yu,is,gu,yc,eh,pc,wc,bc,pu,oh,kc,as,eo,wu,s=this,vs=r.now(),dc=f+vs,gc=n[0],wl=1,nl=n.data(),sh=r("<style><\/style>"),hh=r(e(ae)),yi=r(e(l)),wi=r(e(ui)).appendTo(yi),nf=(wi[0],r(e(te)).appendTo(wi)),ch=r(),tl=r(e(ft+" "+re)),il=r(e(ft+" "+ue)),ys=tl.add(il).appendTo(wi),lh=r(e(fe)),fr=r(e(p)).appendTo(lh),wr=r(e(ee)).appendTo(fr),ah=r(),ps=r(),bl=(nf.data(),wr.data(),r(e(ke)).appendTo(wr)),vh=r(e(ve)),kl=vh[0],rl=r(e(iu)),dl=r(e(ge)).appendTo(wi),gl=dl[0],ul=r(e(io)),tt=!1,na={},c={},hr={},ws={},yt={},rs={},oo={},yh={},fl=0,ta=[];yi[h]=r(e(ar));yi[gt]=r(e(et+" "+se,e(nu)));yi[dt]=r(e(et+" "+oe,e(be)));oo[h]=[];oo[gt]=[];oo[dt]=[];yh[h]={};yi.addClass(b?af:lf);nl.fotorama=this;s.startAutoplay=function(n){return s.autoplay?this:(pu=oh=!1,ph(n||u.autoplay),fu(),this)};s.stopAutoplay=function(){return s.autoplay&&(pu=oh=!0,fu()),this};s.show=function(n){var t,r,e,o,f;"object"!=typeof n?(t=n,n={}):t=n.index;t=">"===t?er+1:"<"===t?er-1:"<<"===t?0:">>"===t?ai-1:t;t=isNaN(t)?gi(t,vt,!0):t;t="undefined"==typeof t?tt||0:t;s.activeIndex=tt=wh(t);lc=bh(tt);ac=kh(tt);tu=[tt,lc,ac];er=ru?t:tt;var l=Math.abs(au-er),i=pi(n.time,function(){return Math.min(ts*(1+(l-1)/12),2*ts)}),v=n.overPos;return n.slow&&(i*=10),s.activeFrame=hs=vt[tt],eu(vi,hs.i!==vt[bu(lu)].i),gs(tu,"stage"),tc(bt?[er]:[er,bh(er),kh(er)]),es("go",!0),n.reset||br("show",{user:n.user,time:i}),pu=!0,r=s.show.onEnd=function(t){if(!r.ok){if(r.ok=!0,t||sc(!0),!n.reset&&(br("showend",{user:n.user}),!t&&yu&&yu!==u.transition))return s.setOptions({transition:yu}),void(yu=!1);nc();lo(tu,"stage");es("go",!1);uc();ro();fs();fu()}},dr?(e=hs[h],o=tt!==au?vt[au][h]:null,ur(e,o,ch,{time:i,method:u.transition,onEnd:r},ta)):rt(nf,{pos:-ct(er,c.w,u.margin,lu),overPos:v,time:i,onEnd:r,_001:!0}),(rc(),pr)&&(vl(),f=ks(tt+a(er-au,-1,1)),uf({time:i,coo:f!==tt&&n.coo,guessIndex:"undefined"!=typeof n.coo?f:tt,keep:n.reset}),fo&&ec(i)),bc="undefined"!=typeof au&&au!==tt,au=tt,u.hash&&bc&&!s.eq&&ef(hs.id||tt+1),this};s.requestFullScreen=function(){return cs&&!s.fullScreen&&(pc=w.scrollTop(),wc=w.scrollLeft(),ir(0,0),es("x",!0),kc=r.extend({},c),n.addClass(kr).appendTo(ot.addClass(ut)),pt.addClass(ut),eu(vi,!0,!0),s.fullScreen=!0,ns&&o.request(gc),s.resize(),lo(tu,"stage"),nc(),br("fullscreenenter")),this};s.cancelFullScreen=function(){return ns&&o.is()?o.cancel(t):cc(),this};t.addEventListener&&t.addEventListener(o.event,function(){!vt||o.is()||vi||cc()},!1);s.resize=function(n){if(!vt)return this;hc(s.fullScreen?{width:"100%",maxwidth:null,minwidth:null,height:"100%",maxheight:null,minheight:null}:ii(n),[c,s.fullScreen||u]);var r=arguments[1]||0,o=arguments[2],t=c.width,i=c.height,e=c.ratio,f=w.height()-(pr?fr.height():0);return nt(t)&&(yi.addClass(lr).css({width:t,minWidth:c.minwidth||0,maxWidth:c.maxwidth||ao}),t=c.W=c.w=yi.width(),c.nw=pr&&g(u.navwidth,t)||t,u.glimpse&&(c.w-=Math.round(2*(g(u.glimpse,t)||0))),nf.css({width:c.w,marginLeft:(c.W-c.w)/2}),i=g(i,f),i=i||e&&t/e,i&&(t=Math.round(t),i=c.h=Math.round(a(i,g(c.minheight,f),g(c.maxheight,f))),wi.stop().animate({width:t,height:i},r,function(){yi.removeClass(lr)}),sc(),pr&&(fr.stop().animate({width:c.nw},r),uf({guessIndex:tt,time:r,keep:!0}),fo&&po.nav&&ec(r)),eh=o||!0,os())),fl=wi.offset().left,this};s.setOptions=function(n){return r.extend(u,n),cu(),this};s.shuffle=function(){return vt&&nr(vt)&&cu(),this};s.destroy=function(){return s.cancelFullScreen(),s.stopAutoplay(),vt=s.data=null,us(),tu=[],th(h),this};s.playVideo=function(){var n=s.activeFrame,t=n.video,i=tt;return"object"==typeof t&&n.videoReady&&(ns&&s.fullScreen&&s.cancelFullScreen(),it(function(){return!o.is()||i!==tt},function(){i===tt&&(n.$video=n.$video||r(r.Fotorama.jst.video(t)),n.$video.appendTo(n[h]),yi.addClass(cr),vi=n.$video,bs(),br("loadvideo"))})),this};s.stopVideo=function(){return eu(vi,!0,!0),this};wi.on("mousemove",ro);hr=or(nf,{onStart:bo,onMove:function(n,t){he(wi,t.edge)},onTouchEnd:du,onEnd:function(n){var t,i;he(wi);t=(k&&!eo||n.touch)&&u.arrows&&"always"!==u.arrows;n.moved||t&&n.pos!==n.newPos&&!n.control?(i=ku(n.newPos,c.w,u.margin,lu),s.show({index:i,time:dr?ts:n.time,overPos:n.overPos,user:!0})):n.aborted||n.control||yl(n.startEvent,t)},_001:!0,timeLow:1,timeHigh:1,friction:2,select:"."+hi+", ."+hi+" *",$wrap:wi});yt=or(wr,{onStart:bo,onMove:function(n,t){he(fr,t.edge)},onTouchEnd:du,onEnd:function(n){function t(){uf.l=n.newPos;fs();fu();vo(n.newPos,!0)}if(n.moved)n.pos!==n.newPos?(pu=!0,rt(wr,{time:n.time,pos:n.newPos,overPos:n.overPos,onEnd:t}),vo(n.newPos),is&&he(fr,lt(n.newPos,yt.min,yt.max))):t();else{var i=n.$target.closest("."+et,wr)[0];i&&pl.call(i,n.startEvent)}},timeLow:.5,timeHigh:2,friction:5,$wrap:fr});ws=sr(wi,{shift:!0,onEnd:function(n,t){bo();du();s.show({index:t,slow:n.altKey})}});rs=sr(fr,{onEnd:function(n,t){bo();du();var i=ti(wr)+.25*t;wr.css(ht(a(i,yt.min,yt.max)));is&&he(fr,lt(i,yt.min,yt.max));rs.prevent={"<":i>=yt.max,">":i<=yt.min};clearTimeout(rs.t);rs.t=setTimeout(function(){vo(i,!0)},d);vo(i)}});yi.hover(function(){setTimeout(function(){as||(eo=!0,ih(!eo))},0)},function(){eo&&(eo=!1,ih(!eo))});sf(ys,function(n){y(n);ko({index:ys.index(this)?">":"<",slow:n.altKey,user:!0})},{onStart:function(){bo();hr.control=!0},onTouchEnd:du});r.each("load push pop shift unshift reverse sort splice".split(" "),function(n,t){s[t]=function(){return vt=vt||[],"load"!==t?Array.prototype[t].apply(vt,arguments):arguments[0]&&"object"==typeof arguments[0]&&arguments[0].length&&(vt=tr(arguments[0])),cu(),s}});cu()};r.fn.fotorama=function(t){return this.each(function(){var e=this,i=r(this),u=i.data(),f=u.fotorama;f?f.setOptions(t):it(function(){return!uf(e)},function(){u.urtext=i.html();new r.Fotorama(i,r.extend({},vo,n.fotoramaDefaults,t,u))})})};r.Fotorama.instances=[];r.Fotorama.cache={};r.Fotorama.measures={};r=r||{};r.Fotorama=r.Fotorama||{};r.Fotorama.jst=r.Fotorama.jst||{};r.Fotorama.jst.style=function(n){var t;return ru.escape,""+(".fotorama"+(null==(t=n.s)?"":t)+" .fotorama__nav--thumbs .fotorama__nav__frame{\npadding:"+(null==(t=n.m)?"":t)+"px;\nheight:"+(null==(t=n.h)?"":t)+"px}\n.fotorama"+(null==(t=n.s)?"":t)+" .fotorama__thumb-border{\nheight:"+(null==(t=n.h-n.b*(n.q?0:2))?"":t)+"px;\nborder-width:"+(null==(t=n.b)?"":t)+"px;\nmargin-top:"+(null==(t=n.m)?"":t)+"px}")};r.Fotorama.jst.video=function(n){function i(){t+=r.call(arguments,"")}var t="",r=(ru.escape,Array.prototype.join);return t+='<div class="fotorama__video"><iframe src="',i(("youtube"==n.type?"http://youtube.com/embed/"+n.id+"?autoplay=1":"vimeo"==n.type?"http://player.vimeo.com/video/"+n.id+"?autoplay=1&badge=0":n.id)+(n.s&&"custom"!=n.type?"&"+n.s:"")),t+='" frameborder="0" allowfullscreen><\/iframe><\/div>'};r(function(){r("."+f+':not([data-auto="false"])').fotorama()})}(window,document,location,"undefined"!=typeof jQuery&&jQuery)