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