!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 st(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 l(n,t){return+String(n).replace(t||"px","")||u}function ht(n){return/%$/.test(n)&&l(n,"%")}function g(n){return(!!l(n)||!!l(n,"%"))&&n}function ct(n,t,i,r){return(n-(r||0))*(t+(i||0))}function bu(n,t,i,r){return-Math.round(n/(t+(i||0))-(r||0))}function ku(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 du(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),ku(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=bi(t,function(){return wu(n)}),n.css(st(u,i)),u}function bi(){for(var t,n=0,i=arguments.length;i>n&&(t=n?arguments[n]():arguments[n],"number"!=typeof t);n++);return t}function ki(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 gu(n){var i=t.createElement("a");return i.href=n,i}function di(n,t){var i,r,u;return"string"!=typeof n?n:(n=gu(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 nf(n,t,i){var e,f,u=n.video;return"youtube"===u.type?(f=nt()+"img.youtube.com/vi/"+u.id+"/default.jpg",e=f.replace(/\/default.jpg$/,"/hqdefault.jpg"),n.thumbsReady=!0):"vimeo"===u.type?r.ajax({url:nt()+"vimeo.com/api/v2/video/"+u.id+".json",dataType:"jsonp",success:function(r){n.thumbsReady=!0;gi(t,{img:r[0].thumbnail_large,thumb:r[0].thumbnail_small},n.i,i)}}):n.thumbsReady=!0,{img:e,thumb:f}}function gi(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 tf(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?di(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=l(i.width||n.attr("width")),e=l(i.height||n.attr("height"));r.extend(i,{width:f,height:e,thumbratio:fr(i.thumbratio||l(i.thumbwidth||t&&t.attr("width")||u||f)/l(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 rf(n){return 0===n.offsetWidth&&0===n.offsetHeight}function uf(n){return!r.contains(t.documentElement,n)}function tt(n,t,i){n()?t():setTimeout(function(){tt(n,t)},i||100)}function ff(n){i.replace(i.protocol+"//"+i.host+i.pathname.replace(/^\/?/,"/")+i.search+"#"+n)}function nr(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 ef(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 tr(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 of(n,t,i){i=i||{};n.each(function(){var n,u=r(this),f=u.data();f.clickOn||(f.clickOn=!0,r.extend(sr(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 ir(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 rr(n){return"[object Array]"==Object.prototype.toString.call(n)&&r.map(n,function(n){return r.extend({},n)})}function ur(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 fr(n){if(n){var t=+n;return isNaN(t)?(t=n.split("/"),+t[0]/+t[1]||u):t}}function v(n,t){n.preventDefault();t&&n.stopPropagation()}function ri(n){return n?">":"<"}function it(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(){it(n,r.extend({},t,{overPos:t.pos,time:Math.max(ot,t.time/2)}))});u=r.extend(st(e,t._001),t.width&&{width:t.width});f.sliding=!0;b?(n.css(r.extend(ni(t.time),u)),t.time>10?du(n,"transform",i,t.time):i()):n.stop().animate(u,t.time,so,i)}function er(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&&er.apply(this,n);(u.onEnd||s)(!!n)}},a=u.time/(e||1);i.not(n.addClass(si).removeClass(oi)).not(t.addClass(oi).removeClass(si)).removeClass(si+" "+oi);n.stop();t.stop();h&&l&&n.fadeTo(0,0);n.fadeTo(h?a:1,1,h&&o);t.fadeTo(a,0,o);v&&h||l||o()}}function or(n){var t=(n.touches||[])[0]||n;n._x=t.pageX;n._y=t.clientY;n._now=r.now()}function sr(i,u){function w(n){return l=r(n.target),f.checked=tt=it=p=!1,o||f.flow||n.touches&&n.touches.length>1||n.which>1||yi&&yi.type!==n.type&&pi||(tt=u.select&&l.is(u.select,e))?tt:(a="touchstart"===n.type,it=l.is("a, a *",e),rt=f.noMove||f.noSwipe?16:f.snap?0:4,or(n),y=yi=n,cu=n.type.replace(/down|start/,"move").replace(/Down/,"Move"),nt=f.control,(u.onStart||s).call(e,n,{control:nt,$target:l}),o=f.flow=!0,(!a||f.go)&&v(n),void 0)}function b(n){if(n.touches&&n.touches.length>1||k&&!n.isPrimary||cu!==n.type||!o)return o&&h(),(u.onTouchEnd||s)(),void 0;or(n);var t=Math.abs(n._x-y._x),i=Math.abs(n._y-y._y),r=t-i,c=(f.go||f.x||r>=0)&&!f.noSwipe,l=0>r;a&&!f.checked?(o=c)&&v(n):(v(n),(u.onMove||s).call(e,n,{touch:a}));!p&&Math.sqrt(Math.pow(t,2)+Math.pow(i,2))>rt&&(p=!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&&v(n),pi=!0,clearTimeout(lu),lu=setTimeout(function(){pi=!1},1e3),(u.onEnd||s).call(e,{moved:p,$target:l,control:nt,touch:a,startEvent:y,aborted:!n||"MSPointerCancel"===n.type}))}function ut(){f.flow||setTimeout(function(){f.flow=!0},10)}function g(){f.flow&&setTimeout(function(){f.flow=!1},d)}var o,y,l,nt,a,tt,it,rt,p,e=i[0],f={};return k?(e[c]("MSPointerDown",w,!1),t[c]("MSPointerMove",b,!1),t[c]("MSPointerCancel",h,!1),t[c]("MSPointerUp",h,!1)):(e[c]&&(e[c]("touchstart",w,!1),e[c]("touchmove",b,!1),e[c]("touchend",h,!1),t[c]("touchstart",ut,!1),t[c]("touchend",g,!1),t[c]("touchcancel",g,!1),n[c]("scroll",g,!1)),i.on("mousedown",w),wt.on("mousemove",b).on("mouseup",h)),i.on("click","a",function(n){f.checked&&v(n)}),f}function hr(n,t){function y(r){v=!0;p=h=r._x;it=r._now;c=[[it,p]];w=i=o.noMove?0:ti(n,(t.getPos||s)(),t._001);(t.onStart||s).call(nt,r)}function ut(n,t){u=o.min;f=o.max;e=o.snap;rt=n.altKey;v=g=!1;l=t.control;l||ht.sliding||y(n)}function ft(r,e){v||(l=!1,y(r));o.noSwipe||(h=r._x,c.push([r._now,h]),i=w-(p-h),tt=lt(i,u,f),u>=i?i=ki(i,u):i>=f&&(i=ki(i,f)),o.noMove||(n.css(st(i,t._001)),g||(g=!0,e.touch||k||n.addClass(dr)),(t.onMove||s).call(nt,r,{pos:i,edge:tt})))}function et(o){if(!l){v||y(o.startEvent);o.touch||k||n.removeClass(dr);b=r.now();for(var lt,ft,at,vt,g,tt,p,it,et,yt=b-d,st=null,ut=ot,pt=t.friction,ht=c.length-1;ht>=0;ht--){if(lt=c[ht][0],ft=Math.abs(lt-yt),null===st||at>ft)st=lt,vt=c[ht][1];else if(st===yt||ft>at)break;at=ft}p=a(i,u,f);var wt=vt-h,ct=wt>=0,bt=b-st,kt=bt>d,dt=!kt&&i!==w&&p===i;e&&(p=a(Math[dt?ct?"floor":"ceil":"round"](i/e)*e,u,f),u=f=p);dt&&(e||p===i)&&(et=-(wt/bt),ut*=a(Math.abs(et),t.timeLow,t.timeHigh),g=Math.round(i+et*ut/pt),e||(p=g),(!ct&&g>f||ct&&u>g)&&(tt=ct?u:f,it=g-tt,e||(p=tt),it=a(p+.03*it,tt-50,tt+50),ut=Math.abs((i-it)/(et/pt))));ut*=rt?10:1;(t.onEnd||s).call(nt,r.extend(o,{moved:o.moved||kt&&e,pos:i,newPos:p,overPos:it,time:ut}))}}var p,h,w,i,tt,c,it,b,u,f,e,rt,l,g,v,nt=n[0],ht=n.data(),o={};return o=r.extend(sr(t.$wrap,{onStart:ut,onMove:ft,onTouchEnd:t.onTouchEnd,onEnd:et,select:t.select}),o)}function cr(n,t){var u,f,e,o=n[0],i={prevent:{}};return o[c]&&o[c](ro,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),y=f===o,c=r.now(),p=d>c-e;f=o;e=c;a&&i.ok&&(!i.prevent[o]||u)&&(v(n,!0),u&&y&&p||(t.shift&&(u=!0,clearTimeout(i.t),i.t=setTimeout(function(){u=!1},uo)),(t.onEnd||s)(n,t.shift?o:h)))},!1),i}function lr(){r.each(r.Fotorama.instances,function(n,t){t.index=n})}function sf(n){r.Fotorama.instances.push(n);lr()}function hf(n){r.Fotorama.instances.splice(n.index,1);lr()}var f="fotorama",rt="fullscreen",y=f+"__wrap",cf=y+"--css2",lf=y+"--css3",ar=y+"--video",af=y+"--fade",vf=y+"--slide",yf=y+"--no-controls",pf=y+"--no-shadows",wf=y+"--pan-y",bf=y+"--rtl",vr=y+"--only-active",ui=f+"__stage",yr=ui+"__frame",kf=yr+"--video",df=ui+"__shaft",pr=f+"__grab",gf=f+"__pointer",ut=f+"__arr",wr=ut+"--disabled",ne=ut+"--prev",te=ut+"--next",p=f+"__nav",ie=p+"-wrap",re=p+"__shaft",fi=p+"--dots",ei=p+"--thumbs",ft=p+"__frame",ue=ft+"--dot",fe=ft+"--thumb",br=f+"__fade",oi=br+"-front",si=br+"-rear",ee=f+"__shadow",hi=ee+"s",oe=hi+"--left",se=hi+"--right",ci=f+"__active",li=f+"__select",he=f+"--hidden",kr=f+"--fullscreen",ce=f+"__fullscreen-icon",ai=f+"__error",vi=f+"__loading",at=f+"__loaded",le=at+"--full",ae=at+"--img",dr=f+"__grabbing",gr=f+"__img",ve=gr+"--full",ye=f+"__dot",nu=f+"__thumb",pe=nu+"-border",we=f+"__html",tu=f+"__video",iu=tu+"-play",be=tu+"-close",ke=f+"__caption",de=f+"__caption__wrap",ge=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+100*(i/r),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):(this.opts=c(n||{},r.defaults,b),void 0)}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,et,yi,cu,pi,lu,w=r(n),wt=r(t),no="quirks"===i.hash.replace("#",""),au=uu.csstransforms3d,b=au&&!no,to=au||"CSS1Compat"===t.compatMode,vu=o.ok,io=navigator.userAgent.match(/Android|webOS|iPhone|iPad|iPod|BlackBerry|Windows Phone/i),bt=!b||io,c="addEventListener",k=n.navigator.msPointerEnabled,ro="onwheel"in t.createElement("div")?"wheel":t.onmousewheel!==u?"mousewheel":"DOMMouseScroll",d=250,ot=300,uo=1400,fo=5e3,wi=2,kt=64,eo=500,oo=333,h="$stageFrame",dt="$navDotFrame",gt="$navThumbFrame",so=yu([.1,0,.25,1]);jQuery.Fotorama=function(n,u){function gc(){r.each(vt,function(n,t){var r,i;t.i||(t.i=hl++,r=di(t.video,!0),r&&(i={},t.video=r,t.img||t.thumb?t.thumbsReady=!0:i=nf(t,vt,s),gi(vt,{img:i.img,thumb:i.thumb},t.i,s)))})}function nl(n){var t="keydown."+f,i="keydown."+f+es,r="resize."+f+es;n?(wt.on(i,function(n){si&&27===n.keyCode?(v(n),uu(si,!0,!0)):(s.fullScreen||u.keyboard&&!s.index)&&(27===n.keyCode?(v(n),s.cancelFullScreen()):39===n.keyCode||40===n.keyCode&&s.fullScreen?(v(n),s.show({index:">",slow:n.altKey,user:!0})):(37===n.keyCode||38===n.keyCode&&s.fullScreen)&&(v(n),s.show({index:"<",slow:n.altKey,user:!0})))}),s.index||wt.off(t).on(t,"textarea, input, select",function(n){et.hasClass(rt)||n.stopPropagation()}),w.on(r,s.resize)):(wt.off(i),w.off(r))}function bo(t){t!==bo.f&&(t?(n.html("").addClass(f+" "+ac).append(yi).before(ih).before(rh),sf(s)):(yi.detach(),ih.detach(),rh.detach(),n.html(yc.urtext).removeClass(ac),hf(s)),nl(t),bo.f=t)}function tl(){vt=s.data=vt||rr(u.data)||tf(n);oi=s.size=vt.length;!ns.ok&&u.shuffle&&ir(vt);gc();nt=ls(nt);oi&&bo(!0)}function cs(){var n=2>oi||si;or.noMove=n||dr;or.noSwipe=n||!u.swipe;ku.toggleClass(pr,!or.noMove&&!or.noSwipe);k&&yi.toggleClass(wf,!or.noSwipe)}function hh(n){n===!0&&(n="");u.autoplay=Math.max(+n||fo,1.5*yo)}function ko(n){return n?"add":"remove"}function il(){s.options=u=ii(u);dr="crossfade"===u.transition||"dissolve"===u.transition;ru=u.loop&&(oi>2||dr);yo=+u.transitionduration||ot;wu="rtl"===u.direction;var n={add:[],remove:[]};oi>1?(br=u.nav,oc="top"===u.navposition,n.remove.push(li),os.toggle(u.arrows)):(br=!1,os.hide());yh();ts=new ou(r.extend(su,u.spinner,hu,{direction:wu?-1:1}));kh();dh();u.autoplay&&hh(u.autoplay);gs=l(u.thumbwidth)||kt;us=l(u.thumbheight)||kt;hs.ok=wo.ok=u.trackpad&&!bt;cs();rc(u,!0);ee="thumbs"===br;ee?(vs(oi,"navThumb"),ds=ss,lu=gt,ef(ih,r.Fotorama.jst.style({w:gs,h:us,b:u.thumbborderwidth,m:u.thumbmargin,s:es,q:!to})),wi.addClass(ei).removeClass(fi)):"dots"===br?(vs(oi,"navDot"),ds=eh,lu=dt,wi.addClass(fi).removeClass(ei)):(br=!1,wi.removeClass(ei+" "+fi));br&&(oc?fh.insertBefore(pi):fh.insertAfter(pi),ho.nav=!1,ho(ds,sr,"nav"));rs=u.allowfullscreen;rs?(oh.appendTo(pi),vo=vu&&"native"===rs):(oh.detach(),vo=!1);n[ko(dr)].push(af);n[ko(!dr)].push(vf);n[ko(wu)].push(bf);po=u.shadows&&!bt;n[ko(!po)].push(pf);yi.addClass(n.add.join(" ")).removeClass(n.remove.join(" "));yl=r.extend({},u)}function au(n){return 0>n?(oi+n%oi)%oi:n>=oi?n%oi:n}function ls(n){return a(n,0,oi-1)}function ch(n){return ru?au(n):ls(n)}function lh(n){return n>0||ru?n-1:!1}function ah(n){return oi-1>n||ru?n+1:!1}function rl(){or.min=ru?-1/0:-ct(oi-1,c.w,u.margin,eu);or.max=ru?1/0:-ct(0,c.w,u.margin,eu);or.snap=c.w+u.margin}function ul(){yt.min=Math.min(0,c.W-sr.width());yt.max=0;sr.toggleClass(pr,!(yt.noMove=yt.min===yt.max))}function as(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[au(r)],f&&(o="$"+t+"Frame",e=f[o],i.call(this,n,r,f,e,o,e&&e.data())))})}function vh(n,t,i,r){nh&&("*"!==nh||r!==ao)||(n=g(u.width)||g(n)||eo,t=g(u.height)||g(t)||oo,s.resize({width:n,ratio:u.ratio||i||n/t},0,r===ao?!0:"*"))}function uo(n,t,i,f,e){as(n,t,function(n,o,h,l,a,v){function d(n){var t=au(o);lr(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(vi+" "+ai).addClass(at),d("load"),vh()):(l.trigger("f:error").removeClass(vi).addClass(ai),d("error")),v.state="error",!(oi>1&&vt[o]===h)||h.html||h.deleted||h.video||p||(h.deleted=!0,s.splice(o,1))):(h[rt]=y=nt,uo([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};vh(k.measures.width,k.measures.height,k.measures.ratio,o);b.off("load error").addClass(gr+(p?" "+ve:"")).prependTo(l);nr(b,i||c,f||h.fit||u.fit);r.Fotorama.cache[y]=v.state="loaded";setTimeout(function(){l.trigger("f:load").removeClass(vi+" "+ai).addClass(at+" "+(p?le:ae));"stage"===t&&d("load")},5)}function it(){var n=10;tt(function(){return!fs||!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 g(),void 0;r.Fotorama.cache[y]?!function ft(){"error"===r.Fotorama.cache[y]?g():"loaded"===r.Fotorama.cache[y]?setTimeout(it,0):setTimeout(ft,100)}():(r.Fotorama.cache[y]="*",b.on("load",it).on("error",g));v.state="";w.src=y}})}function fl(n){kc.append(ts.spin().el).appendTo(n)}function yh(){kc.detach();ts&&ts.stop()}function ph(){var n=s.activeFrame[h];n&&!n.data().state&&(fl(n),n.on("f:load f:error",function(){n.off("f:load f:error");yh()}))}function vs(n,t){as(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="'+we+'"><\/div>').append(f._html?r(f.html).removeAttr("id").html(f._html):f.html).appendTo(o),u.captions&&f.caption&&r(e(ke,e(de,f.caption))).appendTo(o),f.video&&o.addClass(kf).append(bc.clone()),uh=uh.add(o)):"navDot"===t?eh=eh.add(o):"navThumb"===t&&(h.$wrap=o.children(":first"),ss=ss.add(o),f.video&&o.append(bc.clone())))})}function ys(n,t,i){return n&&n.length&&nr(n,t,i)}function wh(n){as(n,"stage",function(n,t,i,f,e,o){if(f){sh[h][au(t)]=f.css(r.extend({left:dr?0:ct(t,c.w,u.margin,eu)},dr&&ni(0)));uf(f[0])&&(f.appendTo(ku),uu(i.$video));var s=i.fit||u.fit;ys(o.$img,c,s);ys(o.$full,c,s)}})}function so(n,t){if("thumbs"===br&&!isNaN(n)){var i=-n,u=-n+c.w;ss.each(function(){var o=r(this),n=o.data(),s=n.eq,f={h:us},e="cover";f.w=n.w;n.l+n.w<i||n.l>u||ys(n.$img,f,e)||t&&uo([s],"navThumb",f,e)})}}function ho(n,t,i){if(!ho[i]){var e="nav"===i&&ee,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(us*n.data.thumbratio)||gs;n.l=f;n.w=t;i.css({width:t});f+=t+u.thumbmargin}}));ho[i]=!0}}function bh(n){return n-dc>c.w/3}function co(n){return!(ru||nt+n&&nt-oi+n||si)}function kh(){pc.toggleClass(wr,co(0));wc.toggleClass(wr,co(1))}function dh(){hs.ok&&(hs.prevent={"<":co(0),">":co(1)})}function gh(n){var t,i,r=n.data();return ee?(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 nc(n){var t=s.activeFrame[lu].data();it(cl,{time:.9*n,pos:t.l,width:t.w-2*u.thumbborderwidth})}function du(n){var r=vt[n.guessIndex][lu];if(r){var t=yt.min!==yt.max,u=t&&gh(s.activeFrame[lu]),f=t&&(n.keep&&du.l?du.l:a((n.coo||c.w/2)-gh(r).c,u.min,u.max)),i=t&&a(f,yt.min,yt.max),e=.9*n.time;it(sr,{time:e,pos:i||0,onEnd:function(){so(i,!0)}});gu(wi,lt(i,yt.min,yt.max));du.l=f}}function el(){tc(lu);ro[lu].push(s.activeFrame[lu].addClass(ci))}function tc(n){for(var t=ro[n];t.length;)t.shift().removeClass(ci)}function ps(n){var t=sh[n];r.each(tu,function(n,i){delete t[au(i)]});r.each(t,function(n,i){delete t[n];i.detach()})}function ic(n){eu=ki=nt;var i=s.activeFrame,t=i[h];t&&(tc(h),ro[h].push(t.addClass(ci)),n||s.show.onEnd(!0),ti(ku,0,!0),ps(h),wh(tu),rl(),ul())}function rc(n,t){n&&r.extend(c,{width:n.width||c.width,height:n.height,minwidth:n.minwidth,maxwidth:n.maxwidth,minheight:n.minheight,maxheight:n.maxheight,ratio:fr(n.ratio)})&&!t&&r.extend(u,{width:c.width,height:c.height,minwidth:c.minwidth,maxwidth:c.maxwidth,minheight:c.minheight,maxheight:c.maxheight,ratio:c.ratio})}function lr(t,i){n.trigger(f+":"+t,[s,i])}function lo(){clearTimeout(yu.t);fs=1;u.stopautoplayontouch?s.stopAutoplay():no=!0}function yu(){yu.t=setTimeout(function(){fs=0},ot+d)}function ws(){no=!(!si&&!th)}function pu(){if(clearTimeout(pu.t),!u.autoplay||no)return s.autoplay&&(s.autoplay=!1,lr("stopautoplay")),void 0;s.autoplay||(s.autoplay=!0,lr("startautoplay"));var n=nt,t=s.activeFrame[h].data();tt(function(){return t.state||n!==nt},function(){pu.t=setTimeout(function(){no||n!==nt||s.show(ru?ri(!wu):au(nt+(wu?-1:1)))},u.autoplay)})}function uc(){s.fullScreen&&(s.fullScreen=!1,vu&&o.cancel(vc),et.removeClass(rt),pt.removeClass(rt),n.removeClass(kr).insertAfter(rh),c=r.extend({},lc),uu(si,!0,!0),go("x",!1),s.resize(),uo(tu,"stage"),ur(hc,sc),lr("fullscreenexit"))}function gu(n,t){po&&(n.removeClass(oe+" "+se),t&&!si&&n.addClass(t.replace(/^|\s/g," "+hi+"--")))}function uu(n,t,i){t&&(yi.removeClass(ar),si=!1,cs());n&&n!==si&&(n.remove(),lr("unloadvideo"));i&&(ws(),pu())}function bs(n){yi.toggleClass(yf,n)}function rf(n){if(!or.flow){var t=n?n.pageX:rf.x,i=t&&!co(bh(t))&&u.click;rf.p!==i&&(dr||!u.swipe)&&pi.toggleClass(gf,i)&&(rf.p=i,rf.x=t)}}function ol(n,t){var i=n.target,f=r(i);f.hasClass(iu)?s.playVideo():i===ll?s[(s.fullScreen?"cancel":"request")+"FullScreen"]():si?i===vl&&uu(si,!0,!0):t?bs():u.click&&s.show({index:n.shiftKey||ri(bh(n._x)),slow:n.altKey,user:!0})}function go(n,t){or[n]=yt[n]=t}function sl(n,t){var i=r(this).data().eq;s.show({index:i,slow:n.altKey,user:!0,coo:n._x-wi.offset().left,time:t})}function fu(){if(tl(),il(),!fu.i){fu.i=!0;var n=u.startindex;(n||u.hash&&i.hash)&&(ao=tr(n||i.hash.replace(/^#/,""),vt,0===s.index||n,n));nt=eu=ki=cu=ao=ch(ao)||0}if(oi){if(ks())return;si&&uu(si,!0);tu=[];ps(h);s.show({index:nt,time:0,reset:fu.ok});s.resize()}else s.destroy();fu.ok=!0}function ks(){if(!ks.f===wu)return(ks.f=wu,nt=oi-1-nt,s.reverse(),!0)}function ns(){ns.ok||(ns.ok=!0,lr("ready"))}pt=pt||r("html");et=et||r("body");var vt,oi,ds,ts,si,is,tu,eu,ki,cu,fc,ec,ao,ru,br,ee,oc,rs,vo,dr,gs,us,yo,po,wu,nh,sc,hc,cc,no,th,lc,fs,io,lu,s=this,es=r.now(),ac=f+es,vc=n[0],hl=1,yc=n.data(),ih=r("<style><\/style>"),rh=r(e(he)),yi=r(e(y)),pi=r(e(ui)).appendTo(yi),ku=(pi[0],r(e(df)).appendTo(pi)),uh=r(),pc=r(e(ut+" "+ne)),wc=r(e(ut+" "+te)),os=pc.add(wc).appendTo(pi),fh=r(e(ie)),wi=r(e(p)).appendTo(fh),sr=r(e(re)).appendTo(wi),eh=r(),ss=r(),cl=(ku.data(),sr.data(),r(e(pe)).appendTo(sr)),oh=r(e(ce)),ll=oh[0],bc=r(e(iu)),al=r(e(be)).appendTo(pi),vl=al[0],kc=r(e(ge)),nt=!1,yl={},c={},or={},hs={},yt={},wo={},ro={},sh={},dc=0,pl=[];yi[h]=r(e(yr));yi[gt]=r(e(ft+" "+fe,e(nu)));yi[dt]=r(e(ft+" "+ue,e(ye)));ro[h]=[];ro[gt]=[];ro[dt]=[];sh[h]={};yi.addClass(b?lf:cf);yc.fotorama=this;s.startAutoplay=function(n){return s.autoplay?this:(no=th=!1,hh(n||u.autoplay),pu(),this)};s.stopAutoplay=function(){return s.autoplay&&(no=th=!0,pu()),this};s.show=function(n){var t,r,e,o,f;"object"!=typeof n?(t=n,n={}):t=n.index;t=">"===t?ki+1:"<"===t?ki-1:"<<"===t?0:">>"===t?oi-1:t;t=isNaN(t)?tr(t,vt,!0):t;t="undefined"==typeof t?nt||0:t;s.activeIndex=nt=ch(t);fc=lh(nt);ec=ah(nt);tu=[nt,fc,ec];ki=ru?t:nt;var l=Math.abs(cu-ki),i=bi(n.time,function(){return Math.min(yo*(1+(l-1)/12),2*yo)}),v=n.overPos;return n.slow&&(i*=10),s.activeFrame=is=vt[nt],uu(si,is.i!==vt[au(eu)].i),vs(tu,"stage"),wh(bt?[ki]:[ki,lh(ki),ah(ki)]),go("go",!0),n.reset||lr("show",{user:n.user,time:i}),r=s.show.onEnd=function(t){r.ok||(r.ok=!0,ph(),uo(tu,"stage"),t||ic(!0),n.reset||lr("showend",{user:n.user}),go("go",!1),dh(),rf(),ws(),pu())},dr?(e=is[h],o=nt!==cu?vt[cu][h]:null,er(e,o,uh,{time:i,method:u.transition,onEnd:r},pl)):it(ku,{pos:-ct(ki,c.w,u.margin,eu),overPos:v,time:i,onEnd:r,_001:!0}),(kh(),br)&&(el(),f=ls(nt+a(ki-cu,-1,1)),du({time:i,coo:f!==nt&&n.coo,guessIndex:"undefined"!=typeof n.coo?f:nt}),ee&&nc(i)),cc="undefined"!=typeof cu&&cu!==nt,cu=nt,u.hash&&cc&&!s.eq&&ff(is.id||nt+1),this};s.requestFullScreen=function(){return rs&&!s.fullScreen&&(sc=w.scrollTop(),hc=w.scrollLeft(),ur(0,0),go("x",!0),lc=r.extend({},c),n.addClass(kr).appendTo(et.addClass(rt)),pt.addClass(rt),uu(si,!0,!0),s.fullScreen=!0,vo&&o.request(vc),s.resize(),uo(tu,"stage"),ph(),lr("fullscreenenter")),this};s.cancelFullScreen=function(){return vo&&o.is()?o.cancel(t):uc(),this};t.addEventListener&&t.addEventListener(o.event,function(){!vt||o.is()||si||uc()},!1);s.resize=function(n){if(!vt)return this;rc(s.fullScreen?{width:"100%",maxwidth:null,minwidth:null,height:"100%",maxheight:null,minheight:null}:ii(n),s.fullScreen);var r=arguments[1]||0,o=arguments[2],t=c.width,i=c.height,e=c.ratio,f=w.height()-(br?wi.height():0);return g(t)&&(yi.addClass(vr).css({width:t,minWidth:c.minwidth,maxWidth:c.maxwidth}),t=c.W=c.w=yi.width(),u.glimpse&&(c.w-=Math.round(2*(ht(u.glimpse)/100*t||l(u.glimpse)||0))),ku.css({width:c.w,marginLeft:(c.W-c.w)/2}),i=ht(i)/100*f||l(i),i=i||e&&t/e,i&&(t=Math.round(t),i=c.h=Math.round(a(i,ht(c.minheight)/100*f||l(c.minheight),ht(c.maxheight)/100*f||l(c.maxheight))),ic(),pi.stop().animate({width:t,height:i},r,function(){yi.removeClass(vr)}),br&&(wi.stop().animate({width:t},r),du({guessIndex:nt,time:r,keep:!0}),ee&&ho.nav&&nc(r)),nh=o||!0,ns())),dc=pi.offset().left,this};s.setOptions=function(n){return r.extend(u,n),fu(),this};s.shuffle=function(){return vt&&ir(vt)&&fu(),this};s.destroy=function(){return s.cancelFullScreen(),s.stopAutoplay(),vt=s.data=null,bo(),tu=[],ps(h),this};s.playVideo=function(){var n=s.activeFrame,t=n.video,i=nt;return"object"==typeof t&&n.videoReady&&(vo&&s.fullScreen&&s.cancelFullScreen(),tt(function(){return!o.is()||i!==nt},function(){i===nt&&(n.$video=n.$video||r(r.Fotorama.jst.video(t)),n.$video.appendTo(n[h]),yi.addClass(ar),si=n.$video,cs(),lr("loadvideo"))})),this};s.stopVideo=function(){return uu(si,!0,!0),this};pi.on("mousemove",rf);or=hr(ku,{onStart:lo,onMove:function(n,t){gu(pi,t.edge)},onTouchEnd:yu,onEnd:function(n){var t,i;gu(pi);t=(k&&!io||n.touch)&&u.arrows;n.moved||t&&n.pos!==n.newPos?(i=bu(n.newPos,c.w,u.margin,eu),s.show({index:i,time:dr?yo:n.time,overPos:n.overPos,user:!0})):n.aborted||ol(n.startEvent,t)},_001:!0,timeLow:1,timeHigh:1,friction:2,select:"."+li+", ."+li+" *",$wrap:pi});yt=hr(sr,{onStart:lo,onMove:function(n,t){gu(wi,t.edge)},onTouchEnd:yu,onEnd:function(n){function t(){du.l=n.newPos;ws();pu();so(n.newPos,!0)}if(n.moved)n.pos!==n.newPos?(it(sr,{time:n.time,pos:n.newPos,overPos:n.overPos,onEnd:t}),so(n.newPos),po&&gu(wi,lt(n.newPos,yt.min,yt.max))):t();else{var i=n.$target.closest("."+ft,sr)[0];i&&sl.call(i,n.startEvent)}},timeLow:.5,timeHigh:2,friction:5,$wrap:wi});hs=cr(pi,{shift:!0,onEnd:function(n,t){lo();yu();s.show({index:t,slow:n.altKey})}});wo=cr(wi,{onEnd:function(n,t){lo();yu();var i=ti(sr)+.25*t;sr.css(st(a(i,yt.min,yt.max)));po&&gu(wi,lt(i,yt.min,yt.max));wo.prevent={"<":i>=yt.max,">":i<=yt.min};clearTimeout(wo.t);wo.t=setTimeout(function(){so(i,!0)},d);so(i)}});yi.hover(function(){setTimeout(function(){fs||(io=!0,bs(!io))},0)},function(){io&&(io=!1,bs(!io))});of(os,function(n){v(n);s.show({index:os.index(this)?">":"<",slow:n.altKey,user:!0})},{onStart:function(){lo();or.control=!0},onTouchEnd:yu});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=rr(arguments[0])),fu(),s}});fu()};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):tt(function(){return!rf(e)},function(){u.urtext=i.html();new r.Fotorama(i,r.extend({},{width:null,minwidth:null,maxwidth:"100%",height:null,minheight:null,maxheight:null,ratio:null,margin:wi,glimpse:0,nav:"dots",navposition:"bottom",thumbwidth:kt,thumbheight:kt,thumbmargin:wi,thumbborderwidth:wi,allowfullscreen:!1,fit:"contain",transition:"slide",transitionduration:ot,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},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,window.jQuery)