1234 |
- /*!
- * Fotorama 4.6.4 | http://fotorama.io/license/
- */
- fotoramaVersion="4.6.4",function(a,ye,be,xe,u){"use strict";var _e="fotorama",Ce="fullscreen",Te=_e+"__wrap",Je=Te+"--video",Ze=Te+"--no-controls",to=Te+"--only-active",eo=_e+"__stage",oo=eo+"__frame",no=_e+"__grab",io=_e+"__arr",ao=io+"--disabled",ke=_e+"__nav",ro=ke+"--dots",so=ke+"--thumbs",uo=ke+"__frame",t=_e+"__fade",f=t+"-front",d=t+"-rear",lo="fotorama__shadows",co=_e+"__active",fo=_e+"__select",ho=_e+"--fullscreen",mo=_e+"__error",po=_e+"__loading",vo=_e+"__loaded",N=_e+"__grabbing",wo=_e+"__img",go=_e+"__thumb",t=_e+"__video",yo=t+"-play",Me='" tabindex="0" role="button',t=xe&&xe.fn.jquery.split(".");if(!t||t[0]<1||1==t[0]&&t[1]<8)throw"Fotorama requires jQuery 1.8 or later and will not run without it.";var s=function(c,f){var t,n,e,i={},d=c.documentElement,h="modernizr",a=c.createElement(h).style,o=" -webkit- -moz- -o- -ms- ".split(" "),r="Webkit Moz O ms",m=r.split(" "),p=r.toLowerCase().split(" "),s={},u=[],l=u.slice,v={}.hasOwnProperty;function w(t){a.cssText=t}function g(t,e){return typeof t===e}function y(t,e){for(var o in t){o=t[o];if(!~(""+o).indexOf("-")&&a[o]!==f)return"pfx"!=e||o}return!1}function b(t,e,o){var n=t.charAt(0).toUpperCase()+t.slice(1),i=(t+" "+m.join(n+" ")+n).split(" ");if(g(e,"string")||void 0===e)return y(i,e);var a,r=(t+" "+p.join(n+" ")+n).split(" "),s=e,u=o;for(a in r){var l=s[r[a]];if(l!==f)return!1===u?r[a]:g(l,"function")?l.bind(u||s):l}return!1}for(e in n=void 0!==v&&void 0!==v.call?function(t,e){return v.call(t,e)}:function(t,e){return e in t&&void 0===t.constructor.prototype[e]},Function.prototype.bind||(Function.prototype.bind=function(o){var n=this;if("function"!=typeof n)throw new TypeError;var i=l.call(arguments,1),a=function(){var t,e;return this instanceof a?((t=function(){}).prototype=n.prototype,t=new t,e=n.apply(t,i.concat(l.call(arguments))),Object(e)===e?e:t):n.apply(o,i.concat(l.call(arguments)))};return a}),s.csstransforms3d=function(){return!!b("perspective")},s)n(s,e)&&(t=e.toLowerCase(),i[t]=s[e](),u.push((i[t]?"":"no-")+t));return i.addTest=function(t,e){if("object"==typeof t)for(var o in t)n(t,o)&&i.addTest(o,t[o]);else{if(t=t.toLowerCase(),i[t]!==f)return i;e="function"==typeof e?e():e,"undefined"!=typeof enableClasses&&enableClasses&&(d.className+=" "+(e?"":"no-")+t),i[t]=e}return i},w(""),0,i._version="2.6.2",i._prefixes=o,i._domPrefixes=p,i._cssomPrefixes=m,i.testProp=function(t){return y([t])},i.testAllProps=b,i.testStyles=function(t,e,o,n){var i,a,r,s=c.createElement("div"),u=c.body,l=u||c.createElement("body");if(parseInt(o,10))for(;o--;)(a=c.createElement("div")).id=n?n[o]:h+(o+1),s.appendChild(a);return i=["­",'<style id="s',h,'">',t,"</style>"].join(""),s.id=h,(u?s:l).innerHTML+=i,l.appendChild(s),u||(l.style.background="",l.style.overflow="hidden",r=d.style.overflow,d.style.overflow="hidden",d.appendChild(l)),i=e(s,t),u?s.parentNode.removeChild(s):(l.parentNode.removeChild(l),d.style.overflow=r),!!i},i.prefixed=function(t,e,o){return e?b(t,e,o):b(t,"pfx")},i}(ye),Se={ok:!1,is:function(){return!1},request:function(){},cancel:function(){},event:"",prefix:""},e="webkit moz o ms khtml".split(" ");if(void 0!==ye.cancelFullScreen)Se.ok=!0;else for(var o=0,n=e.length;o<n;o++)if(Se.prefix=e[o],void 0!==ye[Se.prefix+"CancelFullScreen"]){Se.ok=!0;break}Se.ok&&(Se.event=Se.prefix+"fullscreenchange",Se.is=function(){switch(this.prefix){case"":return ye.fullScreen;case"webkit":return ye.webkitIsFullScreen;default:return ye[this.prefix+"FullScreen"]}},Se.request=function(t){return""===this.prefix?t.requestFullScreen():t[this.prefix+"RequestFullScreen"]()},Se.cancel=function(t){return""===this.prefix?ye.cancelFullScreen():ye[this.prefix+"CancelFullScreen"]()});var bo,xo={lines:12,length:5,width:2,radius:7,corners:1,rotate:15,color:"rgba(128, 128, 128, .75)",hwaccel:!0},_o={top:"auto",left:"auto",className:""};bo=function(){"use strict";var a=["webkit","Moz","ms","O"],l={},m;function p(t,e){var o=ye.createElement(t||"div"),n;for(n in e)o[n]=e[n];return o}function c(t){for(var e=1,o=arguments.length;e<o;e++)t.appendChild(arguments[e]);return t}var f=function(){var t=p("style",{type:"text/css"});c(ye.getElementsByTagName("head")[0],t);return t.sheet||t.styleSheet}();function r(t,e,o,n){var i=["opacity",e,~~(t*100),o,n].join("-"),a=.01+o/n*100,r=Math.max(1-(1-t)/e*(100-a),t),s=m.substring(0,m.indexOf("Animation")).toLowerCase(),u=s&&"-"+s+"-"||"";if(!l[i]){f.insertRule("@"+u+"keyframes "+i+"{"+"0%{opacity:"+r+"}"+a+"%{opacity:"+t+"}"+(a+.01)+"%{opacity:1}"+(a+e)%100+"%{opacity:"+t+"}"+"100%{opacity:"+r+"}"+"}",f.cssRules.length);l[i]=1}return i}function n(t,e){var o=t.style,n,i;e=e.charAt(0).toUpperCase()+e.slice(1);for(i=0;i<a.length;i++){n=a[i]+e;if(o[n]!==u)return n}if(o[e]!==u)return e}function v(t,e){for(var o in e)t.style[n(t,o)||o]=e[o];return t}function e(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var n in o)if(t[n]===u)t[n]=o[n]}return t}function w(t){var e={x:t.offsetLeft,y:t.offsetTop};while(t=t.offsetParent)e.x+=t.offsetLeft,e.y+=t.offsetTop;return e}function d(t,e){return typeof t=="string"?t:t[e%t.length]}var o={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"};function i(t){if(typeof this=="undefined")return new i(t);this.opts=e(t||{},i.defaults,o)}function t(){function l(t,e){return p("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="spin-vml">',e)}f.addRule(".spin-vml","behavior:url(#default#VML)");i.prototype.lines=function(t,n){var i=n.length+n.width,e=2*i;function a(){return v(l("group",{coordsize:e+" "+e,coordorigin:-i+" "+-i}),{width:e,height:e})}var o=-(n.width+n.length)*2+"px",r=v(a(),{position:"absolute",top:o,left:o}),s;function u(t,e,o){c(r,c(v(a(),{rotation:360/n.lines*t+"deg",left:~~e}),c(v(l("roundrect",{arcsize:n.corners}),{width:i,height:n.width,left:n.radius,top:-n.width>>1,filter:o}),l("fill",{color:d(n.color,t),opacity:n.opacity}),l("stroke",{opacity:0}))))}if(n.shadow)for(s=1;s<=n.lines;s++)u(s,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(s=1;s<=n.lines;s++)u(s);return c(t,r)};i.prototype.opacity=function(t,e,o,n){var i=t.firstChild;n=n.shadow&&n.lines||0;if(i&&e+n<i.childNodes.length){i=i.childNodes[e+n];i=i&&i.firstChild;i=i&&i.firstChild;if(i)i.opacity=o}}}i.defaults={},e(i.prototype,{spin:function(t){this.stop();var o=this,n=o.opts,i=o.el=v(p(0,{className:n.className}),{position:n.position,width:0,zIndex:n.zIndex}),e=n.radius+n.length+n.width,a,r;if(t){t.insertBefore(i,t.firstChild||null);r=w(t);a=w(i);v(i,{left:(n.left=="auto"?r.x-a.x+(t.offsetWidth>>1):parseInt(n.left,10)+e)+"px",top:(n.top=="auto"?r.y-a.y+(t.offsetHeight>>1):parseInt(n.top,10)+e)+"px"})}i.setAttribute("role","progressbar");o.lines(i,o.opts);if(!m){var s=0,u=(n.lines-1)*(1-n.direction)/2,l,c=n.fps,f=c/n.speed,d=(1-n.opacity)/(f*n.trail/100),h=f/n.lines;(function t(){s++;for(var e=0;e<n.lines;e++){l=Math.max(1-(s+(n.lines-e)*h)%f*d,n.opacity);o.opacity(i,e*n.direction+u,l,n)}o.timeout=o.el&&setTimeout(t,~~(1e3/c))})()}return o},stop:function(){var t=this.el;if(t){clearTimeout(this.timeout);if(t.parentNode)t.parentNode.removeChild(t);this.el=u}return this},lines:function(t,o){var n=0,e=(o.lines-1)*(1-o.direction)/2,i;function a(t,e){return v(p(),{position:"absolute",width:o.length+o.width+"px",height:o.width+"px",background:t,boxShadow:e,transformOrigin:"left",transform:"rotate("+~~(360/o.lines*n+o.rotate)+"deg) translate("+o.radius+"px"+",0)",borderRadius:(o.corners*o.width>>1)+"px"})}for(;n<o.lines;n++){i=v(p(),{position:"absolute",top:1+~(o.width/2)+"px",transform:o.hwaccel?"translate3d(0,0,0)":"",opacity:o.opacity,animation:m&&r(o.opacity,o.trail,e+n*o.direction,o.lines)+" "+1/o.speed+"s linear infinite"});if(o.shadow)c(i,v(a("#000","0 0 4px "+"#000"),{top:2+"px"}));c(t,c(i,a(d(o.color,n),"0 0 1px rgba(0,0,0,.1)")))}return t},opacity:function(t,e,o){if(e<t.childNodes.length)t.childNodes[e].style.opacity=o}});var s=v(p("group"),{behavior:"url(#default#VML)"});if(!n(s,"transform")&&s.adj)t();else m=n(s,"animation");return i}();var Co,Fe,w,g,y,b,Ee=xe(a),Pe=xe(ye),t="quirks"===be.hash.replace("#",""),i=s.csstransforms3d,je=i&&!t,To=i||"CSS1Compat"===ye.compatMode,ko=Se.ok,t=navigator.userAgent.match(/Android|webOS|iPhone|iPad|iPod|BlackBerry|Windows Phone/i),Ne=!je||t,$e=navigator.msPointerEnabled,r="onwheel"in ye.createElement("div")?"wheel":ye.onmousewheel!==u?"mousewheel":"DOMMouseScroll",qe=250,Ae=300,m=1400,ze="$stageFrame",Le="$navDotFrame",Oe="$navThumbFrame",l=function(a){var r,t="bez_"+xe.makeArray(arguments).join("_").replace(".","p");return"function"!=typeof xe.easing[t]&&(r=function(o,n){function a(t,e){return u[e]=3*o[e],s[e]=3*(n[e]-o[e])-u[e],r[e]=1-u[e]-s[e],t*(u[e]+t*(s[e]+t*r[e]))}function e(t){for(var e,o,n=t,i=0;++i<14&&(e=a(n,0)-t,!(Math.abs(e)<.001));)n-=e/(o=n,u[0]+o*(2*s[0]+3*r[0]*o));return n}var r=[null,null],s=[null,null],u=[null,null];return function(t){return a(e(t),1)}},xe.easing[t]=function(t,e,o,n,i){return n*r([a[0],a[1]],[a[2],a[3]])(e/i)+o}),t}([.1,0,.25,1]),h="50%",c={width:null,minwidth:null,maxwidth:"100%",height:null,minheight:null,maxheight:null,ratio:null,margin:2,glimpse:0,fit:"contain",position:h,thumbposition:h,nav:"dots",navposition:"bottom",navwidth:null,thumbwidth:64,thumbheight:64,thumbmargin:2,thumbborderwidth:2,thumbfit:"cover",allowfullscreen:!1,transition:"slide",clicktransition:null,transitionduration:Ae,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},Mo={left:!0,right:!0,down:!1,up:!1,space:!1,home:!1,end:!1};function Ie(){}function De(t,e,o){return Math.max(isNaN(e)?-1/0:e,Math.min(isNaN(o)?1/0:o,t))}function Re(t){var e={};return je?e.transform="translate3d("+t+"px,0,0)":e.left=t,e}function So(t){return{"transition-duration":t+"ms"}}function p(t,e){return isNaN(t)?e:t}function We(t,e){return p(+String(t).replace(e||"px",""))}function He(t,e){return p((/%$/.test(o=t)?We(o,"%"):u)/100*e,We(t));var o}function Ke(t){return(!isNaN(We(t))||!isNaN(We(t,"%")))&&t}function Fo(t,e,o,n){return(t-(n||0))*(e+(o||0))}function v(t,e,o,n){var i,a,r=t.data();r&&(r.onEndFn=function(){i||(i=!0,clearTimeout(r.tT),o())},r.tProp=e,clearTimeout(r.tT),r.tT=setTimeout(function(){r.onEndFn()},1.5*n),(a=(e=t).data()).tEnd||(Ue(e[0],{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",msTransition:"MSTransitionEnd",transition:"transitionend"}[s.prefixed("transition")],function(t){a.tProp&&t.propertyName.match(a.tProp)&&a.onEndFn()}),a.tEnd=!0))}function Eo(o,t){var e;if(o.length)return e=o.data(),je?(o.css(So(0)),e.onEndFn=Ie,clearTimeout(e.tT)):o.stop(),e=Po(t,function(){return t=o,je?+((e=t.css("transform")).match(/ma/)&&e.match(/-?\d+(?!d)/g)[e.match(/3d/)?12:4]):+t.css("left").replace("px","");var t,e}),o.css(Re(e)),e}function Po(){for(var t,e=0,o=arguments.length;e<o&&"number"!=typeof(t=e?arguments[e]():arguments[e]);e++);return t}function $(t,e){return Math.round(t+(e-t)/1.5)}function Ve(){return Ve.p=Ve.p||("https:"===be.protocol?"https://":"http://"),Ve.p}function jo(t,e){var o,n,i,a;return"string"!=typeof t?t:(i=t,(o=ye.createElement("a")).href=i,(t=o).host.match(/youtube\.com/)&&t.search?(a=t.search.split("v=")[1])&&(-1!==(i=a.indexOf("&"))&&(a=a.substring(0,i)),n="youtube"):t.host.match(/youtube\.com|youtu\.be/)?(a=t.pathname.replace(/^\/(embed\/|v\/)?/,"").replace(/\/.*/,""),n="youtube"):t.host.match(/vimeo\.com/)&&(n="vimeo",a=t.pathname.replace(/^\/(video\/)?/,"").replace(/\/.*/,"")),a&&n||!e||(a=t.href,n="custom"),!!a&&{id:a,type:n,s:t.search.replace(/^\?/,""),p:Ve()})}function No(t,e,o,n){for(var i=0,a=t.length;i<a;i++){var r=t[i];if(r.i===o&&r.thumbsReady){var s={videoReady:!0};s[ze]=s[Oe]=s[Le]=!1,n.splice(i,1,xe.extend({},r,s,e));break}}}function $o(t){var c=[];function f(t,e,o){var n=o.thumb&&o.img!==o.thumb,i=We(o.width||t.attr("width")),t=We(o.height||t.attr("height"));xe.extend(o,{width:i,height:t,thumbratio:Do(o.thumbratio||We(o.thumbwidth||e&&e.attr("width")||n||i)/We(o.thumbheight||e&&e.attr("height")||n||t))})}return t.children().each(function(){var t,e,o,n,i,a,r,s,u=xe(this),l=Io(xe.extend(u.data(),{id:u.attr("id")}));if(u.is("a, img"))e=l,o=!0,n=(t=u).children("img").eq(0),i=t.attr("href"),a=t.attr("src"),r=n.attr("src"),s=e.video,(o=!!o&&jo(i,!0===s))?i=!1:o=s,f(t,n,xe.extend(e,{video:o,img:e.img||i||a||r,thumb:e.thumb||r||a||i}));else{if(u.is(":empty"))return;f(u,null,xe.extend(l,{html:this,_html:u.html()}))}c.push(l)}),c}function Be(t,e,o,n){return Be.i||(Be.i=1,Be.ii=[!0]),n=n||Be.i,void 0===Be.ii[n]&&(Be.ii[n]=!0),t()?e():Be.ii[n]&&setTimeout(function(){Be.ii[n]&&Be(t,e,o,n)},o||100),Be.i++}function qo(t,e,o,n){var i,a,r,s,u,l,c,f=t.data(),d=f.measures;return!d||f.l&&f.l.W===d.width&&f.l.H===d.height&&f.l.r===d.ratio&&f.l.w===e.w&&f.l.h===e.h&&f.l.m===o&&f.l.p===n||(i=d.width,a=d.height,r=e.w/e.h,r=d.ratio>=r,s="scaledown"===o,u="contain"===o,l="cover"===o,c={x:Ke((c=((c=n)+"").split(/\s+/))[0])||h,y:Ke(c[1])||h},r&&(s||u)||!r&&l?a=(i=De(e.w,0,s?i:1/0))/d.ratio:(r&&l||!r&&(s||u))&&(i=(a=De(e.h,0,s?a:1/0))*d.ratio),t.css({width:i,height:a,left:He(c.x,e.w-i),top:He(c.y,e.h-a)}),f.l={W:d.width,H:d.height,r:d.ratio,w:e.w,h:e.h,m:o,p:n}),!0}function Ao(t,e,o){return e!==o&&(t<=e?"left":o<=t?"right":"left right")}function zo(t,e,o,n){if(!o)return!1;if(!isNaN(t))return t-(n?0:1);for(var i,a=0,r=e.length;a<r;a++)if(e[a].id===t){i=a;break}return i}function Xe(t,e){return'<div class="'+t+'">'+(e||"")+"</div>"}function Lo(t){for(var e=t.length;e;){var o=Math.floor(Math.random()*e--),n=t[e];t[e]=t[o],t[o]=n}return t}function Oo(t){return"[object Array]"==Object.prototype.toString.call(t)&&xe.map(t,function(t){return xe.extend({},t)})}function Qe(t,e,o){t.scrollLeft(e||0).scrollTop(o||0)}function Io(t){var o;if(t)return o={},xe.each(t,function(t,e){o[t.toLowerCase()]=e}),o}function Do(t){var e;if(t)return e=+t,isNaN(e)?+(e=t.split("/"))[0]/+e[1]||u:e}function Ue(t,e,o,n){e&&(t.addEventListener?t.addEventListener(e,o,!!n):t.attachEvent("on"+e,o))}function Ro(t){return{tabindex:-1*t+"",disabled:t}}function Wo(e,o){Ue(e,"keyup",function(t){e.getAttribute("disabled")||13==t.keyCode&&o.call(e,t)})}function Ho(e,o){Ue(e,"focus",e.onfocusin=function(t){o.call(e,t)},!0)}function Ye(t,e){t.preventDefault?t.preventDefault():t.returnValue=!1,e&&t.stopPropagation&&t.stopPropagation()}function Ko(t){return t?">":"<"}function Ge(t,e){var o=t.data(),n=Math.round(e.pos),i=function(){o.sliding=!1,(e.onEnd||Ie)()},n=(void 0!==e.overPos&&e.overPos!==e.pos&&(n=e.overPos,i=function(){Ge(t,xe.extend({},e,{overPos:e.pos,time:Math.max(Ae,e.time/2)}))}),xe.extend(Re(n),e.width&&{width:e.width}));o.sliding=!0,je?(t.css(xe.extend(So(e.time),n)),10<e.time?v(t,"transform",i,e.time):i()):t.stop().animate(n,e.time,l,i)}function Vo(t,e,o,n,i,a){var r,s,u,l,c=void 0!==a;!c&&(i.push(arguments),Array.prototype.push.call(arguments,i.length),1<i.length)||(t=t||xe(t),e=e||xe(e),r=t[0],s=e[0],u="crossfade"===n.method,l=function(){var t;l.done||(l.done=!0,(t=(c||i.shift())&&i.shift())&&Vo.apply(this,t),(n.onEnd||Ie)(!!t))},a=n.time/(a||1),o.removeClass(d+" "+f),t.stop().addClass(d),e.stop().addClass(f),u&&s&&t.fadeTo(0,0),t.fadeTo(u?a:0,1,u&&l),e.fadeTo(a,0,l),r&&u)||s||l()}function x(t){var e=(t.touches||[])[0]||t;t._x=e.pageX,t._y=e.clientY,t._now=xe.now()}function Bo(t,a){var r,s,o,n,u,e,i,l,c,f=t[0],d={};function h(t){if(o=xe(t.target),d.checked=e=i=c=!1,r||d.flow||t.touches&&1<t.touches.length||1<t.which||w&&w.type!==t.type&&y||(e=a.select&&o.is(a.select,f)))return e;u="touchstart"===t.type,i=o.is("a, a *",f),n=d.control,l=d.noMove||d.noSwipe||n?16:d.snap?0:4,x(t),s=w=t,g=t.type.replace(/down|start/,"move").replace(/Down/,"Move"),(a.onStart||Ie).call(f,t,{control:n,$target:o}),r=d.flow=!0,u&&!d.go||Ye(t)}function m(t){var e,o,n,i;t.touches&&1<t.touches.length||$e&&!t.isPrimary||g!==t.type||!r?(r&&p(),(a.onTouchEnd||Ie)()):(x(t),i=(e=Math.abs(t._x-s._x))-(o=Math.abs(t._y-s._y)),n=(d.go||d.x||0<=i)&&!d.noSwipe,i=i<0,u&&!d.checked?(r=n)&&Ye(t):(Ye(t),(a.onMove||Ie).call(f,t,{touch:u})),!c&&Math.sqrt(Math.pow(e,2)+Math.pow(o,2))>l&&(c=!0),d.checked=d.checked||n||i)}function p(t){(a.onTouchEnd||Ie)();var e=r;d.control=r=!1,e&&(d.flow=!1),!e||i&&!d.checked||(t&&Ye(t),y=!0,clearTimeout(b),b=setTimeout(function(){y=!1},1e3),(a.onEnd||Ie).call(f,{moved:c,$target:o,control:n,touch:u,startEvent:s,aborted:!t||"MSPointerCancel"===t.type}))}function v(){d.flow&&setTimeout(function(){d.flow=!1},qe)}return $e?(Ue(f,"MSPointerDown",h),Ue(ye,"MSPointerMove",m),Ue(ye,"MSPointerCancel",p),Ue(ye,"MSPointerUp",p)):(Ue(f,"touchstart",h),Ue(f,"touchmove",m),Ue(f,"touchend",p),Ue(ye,"touchstart",function(){d.flow||setTimeout(function(){d.flow=!0},10)}),Ue(ye,"touchend",v),Ue(ye,"touchcancel",v),Ee.on("scroll",v),t.on("mousedown",h),Pe.on("mousemove",m).on("mouseup",p)),t.on("click","a",function(t){d.checked&&Ye(t)}),d}function Xo(w,g){var o,y,b,x,n,_,i,C,T,k,M,S,a,F,E=w[0],r=w.data(),P={};function j(t,e){F=!0,o=y=t._x,i=t._now,_=[[i,o]],b=x=P.noMove||e?0:Eo(w,(g.getPos||Ie)()),(g.onStart||Ie).call(E,t)}return P=xe.extend(Bo(g.$wrap,xe.extend({},g,{onStart:function(t,e){T=P.min,k=P.max,M=P.snap,S=t.altKey,F=a=!1,e.control||r.sliding||j(t)},onMove:function(t,e){P.noSwipe||(F||j(t),y=t._x,_.push([t._now,y]),n=Ao(x=b-(o-y),T,k),x<=T?x=$(x,T):k<=x&&(x=$(x,k)),P.noMove)||(w.css(Re(x)),a||(a=!0,e.touch)||$e||w.addClass(N),(g.onMove||Ie).call(E,t,{pos:x,edge:n}))},onEnd:function(t){if(!P.noSwipe||!t.moved){F||j(t.startEvent,!0),t.touch||$e||w.removeClass(N);for(var e,o,n,i,a,r=(C=xe.now())-qe,s=null,u=Ae,l=g.friction,c=_.length-1;0<=c;c--){if(e=_[c][0],o=Math.abs(e-r),null===s||o<n)s=e,i=_[c][1];else if(s===r||n<o)break;n=o}var f=De(x,T,k),d=i-y,h=0<=d,m=C-s,p=qe<m,v=!p&&x!==b&&f===x;M&&(f=De(Math[v?h?"floor":"ceil":"round"](x/M)*M,T,k),T=k=f),v&&(M||f===x)&&(v=-d/m,u*=De(Math.abs(v),g.timeLow,g.timeHigh),d=Math.round(x+v*u/l),M||(f=d),!h&&k<d||h&&d<T)&&(m=h?T:k,a=De((f=M?f:m)+.03*(a=d-m),m-50,m+50),u=Math.abs((x-a)/(v/l))),u*=S?10:1,(g.onEnd||Ie).call(E,xe.extend(t,{moved:t.moved||p&&M,pos:x,newPos:f,overPos:a,time:u}))}}})),P)}function Qo(t,s){var u,l,c,t=t[0],f={prevent:{}};return Ue(t,r,function(t){var e=t.wheelDeltaY||-1*t.deltaY||0,o=t.wheelDeltaX||-1*t.deltaX||0,e=Math.abs(o)&&!Math.abs(e),n=Ko(o<0),i=l===n,a=xe.now(),r=a-c<qe;l=n,c=a,!e||!f.ok||f.prevent[n]&&!u||(Ye(t,!0),u&&i&&r)||(s.shift&&(u=!0,clearTimeout(f.t),f.t=setTimeout(function(){u=!1},m)),(s.onEnd||Ie)(t,s.shift?n:o))}),f}function Uo(){xe.each(xe.Fotorama.instances,function(t,e){e.index=t})}Be.stop=function(t){Be.ii[t]=!1},jQuery.Fotorama=function(a,x){Co=xe("html"),Fe=xe("body");var _,C,I,D,s,u,l,c,f,d,R,W,H,h,m,K,V,B,X,p,Q,U,v,w,Y,g,G,J,t,e,Z,y,i,tt,et,ot,b,nt,it,T=this,at=xe.now(),rt=_e+at,st=a[0],ut=1,lt=a.data(),ct=xe("<style></style>"),ft=xe(Xe("fotorama--hidden")),k=xe(Xe(Te)),M=xe(Xe(eo)).appendTo(k),S=(M[0],xe(Xe("fotorama__stage__shaft")).appendTo(M)),dt=xe(),ht=xe(Xe(io+" fotorama__arr--prev"+Me)),mt=xe(Xe(io+" fotorama__arr--next"+Me)),pt=ht.add(mt).appendTo(M),vt=xe(Xe("fotorama__nav-wrap")),r=xe(Xe(ke)).appendTo(vt),F=xe(Xe("fotorama__nav__shaft")).appendTo(r),wt=xe(),gt=xe(),yt=(S.data(),F.data(),xe(Xe("fotorama__thumb-border")).appendTo(F)),bt=xe(Xe("fotorama__fullscreen-icon"+Me)),xt=bt[0],_t=xe(Xe(yo)),Ct=xe(Xe("fotorama__video-close")).appendTo(M)[0],Tt=xe(Xe("fotorama__spinner")),E=!1,P={},o={},kt={},j={},Mt={},St={},Ft={},Et=0,Pt=[];function jt(){xe.each(_,function(t,e){var o,n,i,a,r,s,u;!e.i&&(e.i=ut++,u=jo(e.video,!0))&&(o={},e.video=u,e.img||e.thumb?e.thumbsReady=!0:(i=_,a=T,"youtube"===(u=(n=e).video).type?(r=(s=Ve()+"img.youtube.com/vi/"+u.id+"/default.jpg").replace(/\/default.jpg$/,"/hqdefault.jpg"),n.thumbsReady=!0):"vimeo"===u.type?xe.ajax({url:Ve()+"vimeo.com/api/v2/video/"+u.id+".json",dataType:"jsonp",success:function(t){n.thumbsReady=!0,No(i,{img:t[0].thumbnail_large,thumb:t[0].thumbnail_small},n.i,a)}}):n.thumbsReady=!0,o={img:r,thumb:s}),No(_,{img:o.img,thumb:o.thumb},e.i,T))})}function N(t){return G[t]||T.fullScreen}function Nt(t){var e,o,n,i;t!==Nt.f&&(t?(a.html("").addClass(_e+" "+rt).append(k).before(ct).before(ft),e=T,xe.Fotorama.instances.push(e)):(k.detach(),ct.detach(),ft.detach(),a.html(lt.urtext).removeClass(rt),e=T,xe.Fotorama.instances.splice(e.index,1)),Uo(),o="keydown."+_e,n="keydown."+(i=_e+at),i="resize."+i+" orientationchange."+i,t?(Pe.on(n,function(t){var e,o;s&&27===t.keyCode?L(s,e=!0,!0):(T.fullScreen||x.keyboard&&!T.index)&&(27===t.keyCode?(e=!0,T.cancelFullScreen()):t.shiftKey&&32===t.keyCode&&N("space")||37===t.keyCode&&N("left")||38===t.keyCode&&N("up")?o="<":32===t.keyCode&&N("space")||39===t.keyCode&&N("right")||40===t.keyCode&&N("down")?o=">":36===t.keyCode&&N("home")?o="<<":35===t.keyCode&&N("end")&&(o=">>")),(e||o)&&Ye(t),o&&T.show({index:o,slow:t.altKey,user:!0})}),T.index||Pe.off(o).on(o,"textarea, input, select",function(t){Fe.hasClass(Ce)||t.stopPropagation()}),Ee.on(i,T.resize)):(Pe.off(n),Ee.off(i)),Nt.f=t)}function $t(){var t=C<2&&!x.enableifsingleframe||s;o.noMove=t||p,o.noSwipe=t||!x.swipe,w||S.toggleClass(no,!x.click&&!o.noMove&&!o.noSwipe),$e&&k.toggleClass("fotorama__wrap--pan-y",!o.noSwipe)}function qt(t){!0===t&&(t=""),x.autoplay=Math.max(+t||5e3,1.5*v)}function $(t){return t<0?(C+t%C)%C:C<=t?t%C:t}function At(t){return De(t,0,C-1)}function zt(t){return(h?$:At)(t)}function Lt(t){return!!(0<t||h)&&t-1}function Ot(t){return!!(t<C-1||h)&&t+1}function It(t,a,r){var s;"number"==typeof t&&(t=new Array(t),s=!0),xe.each(t,function(t,e){var o,n,i;"number"==typeof(e=s?t:e)&&(o=_[$(e)])&&(i=o[n="$"+a+"Frame"],r.call(this,t,e,o,i,n,i&&i.data()))})}function Dt(t,e,o,n){J&&("*"!==J||n!==H)||(t=Ke(x.width)||Ke(t)||500,e=Ke(x.height)||Ke(e)||333,T.resize({width:t,ratio:x.ratio||o||t/e},0,n!==H&&"*"))}function Rt(t,v,w,g,y,b){It(t,v,function(t,o,e,n,i,a){var r,s,u,l,c,f,d;function h(t){var e=$(o);A(t,{index:e,src:f,frame:_[e]})}function m(){u.remove(),xe.Fotorama.cache[f]="error",e.html&&"stage"===v||!d||d===f?(!f||e.html||r?"stage"===v&&(n.trigger("f:load").removeClass(po+" "+mo).addClass(vo),h("load"),Dt()):(n.trigger("f:error").removeClass(po).addClass(mo),h("error")),a.state="error",!(1<C&&_[o]===e)||e.html||e.deleted||e.video||r||(e.deleted=!0,T.splice(o,1))):(e[c]=f=d,Rt([o],v,w,g,y,!0))}function p(){var t=10;Be(function(){return!et||!t--&&!Ne},function(){xe.Fotorama.measures[f]=l.measures=xe.Fotorama.measures[f]||{width:s.width,height:s.height,ratio:s.width/s.height},Dt(l.measures.width,l.measures.height,l.measures.ratio,o),u.off("load error").addClass(wo+(r?" fotorama__img--full":"")).prependTo(n),qo(u,(xe.isFunction(w)?w():w)||P,g||e.fit||x.fit,y||e.position||x.position),xe.Fotorama.cache[f]=a.state="loaded",setTimeout(function(){n.trigger("f:load").removeClass(po+" "+mo).addClass(vo+" "+(r?"fotorama__loaded--full":"fotorama__loaded--img")),"stage"===v?h("load"):"auto"!==e.thumbratio&&(e.thumbratio||"auto"!==x.thumbratio)||(e.thumbratio=l.measures.ratio,O())},0)})}n&&(r=T.fullScreen&&e.full&&e.full!==e.img&&!a.$full&&"stage"===v,a.$img&&!b&&!r||(s=new Image,u=xe(s),l=u.data(),a[r?"$full":"$img"]=u,f=e[c="stage"===v?r?"full":"img":"thumb"],d=r?null:e["stage"===v?"thumb":"img"],"navThumb"===v&&(n=a.$wrap),f?(xe.Fotorama.cache[f]?function t(){"error"===xe.Fotorama.cache[f]?m():"loaded"===xe.Fotorama.cache[f]?setTimeout(p,0):setTimeout(t,100)}():(xe.Fotorama.cache[f]="*",u.on("load",p).on("error",m)),a.state="",s.src=f):m()))})}function Wt(){Tt.detach(),D&&D.stop()}function Ht(){var t,e=u[ze];e&&!e.data().state&&(t=e,Tt.append(D.spin().el).appendTo(t),e.on("f:load f:error",function(){e.off("f:load f:error"),Wt()}))}function Kt(t){Wo(t,me),Ho(t,function(){setTimeout(function(){Qe(r)},0),q({time:v,guessIndex:xe(this).data().eq,minMax:j})})}function Vt(t,r){It(t,r,function(t,e,o,n,i,a){n||(n=o[i]=k[i].clone(),(a=n.data()).data=o,i=n[0],"stage"===r?(o.html&&xe('<div class="fotorama__html"></div>').append(o._html?xe(o.html).removeAttr("id").html(o._html):o.html).appendTo(n),o.caption&&xe(Xe("fotorama__caption",Xe("fotorama__caption__wrap",o.caption))).appendTo(n),o.video&&n.addClass("fotorama__stage__frame--video").append(_t.clone()),Ho(i,function(){setTimeout(function(){Qe(M)},0),de({index:a.eq,user:!0})}),dt=dt.add(n)):"navDot"===r?(Kt(i),wt=wt.add(n)):"navThumb"===r&&(Kt(i),a.$wrap=n.children(":first"),gt=gt.add(n),o.video)&&a.$wrap.append(_t.clone()))})}function Bt(t,e,o,n){return t&&t.length&&qo(t,e,o,n)}function Xt(t){It(t,"stage",function(t,e,o,n,i,a){var r,s,u;n&&(u=$(e),r=o.fit||x.fit,s=o.position||x.position,a.eq=u,Ft[ze][u]=n.css(xe.extend({left:p?0:Fo(e,P.w,x.margin,c)},p&&So(0))),u=n[0],xe.contains(ye.documentElement,u)||(n.appendTo(S),L(o.$video)),Bt(a.$img,P,r,s),Bt(a.$full,P,r,s))})}function Qt(t,r){var s,u;"thumbs"!==m||isNaN(t)||(u=(s=-t)+P.nw,gt.each(function(){function t(){return{h:U,w:e.w}}var e=xe(this).data(),o=e.eq,n=t(),i=_[o]||{},a=i.thumbfit||x.thumbfit,i=i.thumbposition||x.thumbposition;n.w=e.w,e.l+e.w<s||e.l>u||Bt(e.$img,n,a,i)||r&&Rt([o],"navThumb",t,a,i)}))}function Ut(t,e,o){var n,i;Ut[o]||(n="nav"===o&&K,i=0,e.append(t.filter(function(){for(var t,e=xe(this),o=e.data(),n=0,i=_.length;n<i;n++)if(o.data===_[n]){t=!0,o.eq=n;break}return t||e.remove()&&!1}).sort(function(t,e){return xe(t).data().eq-xe(e).data().eq}).each(function(){var t,e,o;n&&(e=(t=xe(this)).data(),o=Math.round(U*e.data.thumbratio)||Q,e.l=i,e.w=o,t.css({width:o}),i+=o+x.thumbmargin)})),Ut[o]=!0)}function Yt(t){return t-Et>P.w/3}function Gt(t){return!(h||E+t&&E-C+t||s)}function Jt(){var t=Gt(0),e=Gt(1);ht.toggleClass(ao,t).attr(Ro(t)),mt.toggleClass(ao,e).attr(Ro(e))}function Zt(){kt.ok&&(kt.prevent={"<":Gt(0),">":Gt(1)})}function te(t){var e,o=t.data(),o=K?(e=o.l,o.w):(e=t.position().left,t.width());return{c:e+o/2,min:-e+10*x.thumbmargin,max:-e+P.w-o-10*x.thumbmargin}}function ee(t){var e=u[b].data();Ge(yt,{time:1.2*t,pos:e.l,width:e.w-2*x.thumbborderwidth})}function q(t){var e,o,n,i=_[t.guessIndex][b];i&&(e=j.min!==j.max,n=t.minMax||e&&te(u[b]),i=e&&(t.keep&&q.l?q.l:De((t.coo||P.nw/2)-te(i).c,n.min,n.max)),o=e&&De(i,j.min,j.max),n=1.1*t.time,Ge(F,{time:n,pos:o||0,onEnd:function(){Qt(o,!0)}}),le(r,Ao(o,j.min,j.max)),q.l=i)}function oe(t){for(var e=St[t];e.length;)e.shift().removeClass(co)}function ne(t){var o=Ft[t];xe.each(l,function(t,e){delete o[$(e)]}),xe.each(o,function(t,e){delete o[t],e.detach()})}function ie(t){c=f=E;var e=u[ze];e&&(oe(ze),St[ze].push(e.addClass(co)),t||T.show.onEnd(!0),Eo(S,0),ne(ze),Xt(l),o.min=h?-1/0:-Fo(C-1,P.w,x.margin,c),o.max=h?1/0:-Fo(0,P.w,x.margin,c),o.snap=P.w+x.margin,j.min=Math.min(0,P.nw-F.width()),j.max=0,F.toggleClass(no,!(j.noMove=j.min===j.max)))}function ae(o,t){o&&xe.each(t,function(t,e){e&&xe.extend(e,{width:o.width||e.width,height:o.height,minwidth:o.minwidth,maxwidth:o.maxwidth,minheight:o.minheight,maxheight:o.maxheight,ratio:Do(o.ratio)})})}function A(t,e){a.trigger(_e+":"+t,[T,e])}function re(){clearTimeout(n.t),et=1,x.stopautoplayontouch?T.stopAutoplay():y=!0}function n(){et&&(x.stopautoplayontouch||(se(),z()),n.t=setTimeout(function(){et=0},Ae+qe))}function se(){y=!(!s&&!i)}function z(){var o,t;clearTimeout(z.t),Be.stop(z.w),!x.autoplay||y?T.autoplay&&(T.autoplay=!1,A("stopautoplay")):(T.autoplay||(T.autoplay=!0,A("startautoplay")),o=E,t=u[ze].data(),z.w=Be(function(){return t.state||o!==E},function(){z.t=setTimeout(function(){var t,e;y||o!==E||(e=_[t=W][ze].data(),z.w=Be(function(){return e.state||t!==W},function(){y||t!==W||T.show(h?Ko(!g):W)}))},x.autoplay)}))}function ue(){T.fullScreen&&(T.fullScreen=!1,ko&&Se.cancel(st),Fe.removeClass(Ce),Co.removeClass(Ce),a.removeClass(ho).insertAfter(ft),P=xe.extend({},tt),L(s,!0,!0),he("x",!1),T.resize(),Rt(l,"stage"),Qe(Ee,e,t),A("fullscreenexit"))}function le(t,e){Y&&(t.removeClass("fotorama__shadows--left fotorama__shadows--right"),e)&&!s&&t.addClass(e.replace(/^|\s/g," "+lo+"--"))}function L(t,e,o){e&&(k.removeClass(Je),s=!1,$t()),t&&t!==s&&(t.remove(),A("unloadvideo")),o&&(se(),z())}function ce(t){k.toggleClass(Ze,t)}function fe(t){var e;o.flow||(e=(t=t?t.pageX:fe.x)&&!Gt(Yt(t))&&x.click,fe.p!==e&&M.toggleClass("fotorama__pointer",e)&&(fe.p=e,fe.x=t))}function de(e){clearTimeout(de.t),x.clicktransition&&x.clicktransition!==x.transition?setTimeout(function(){var t=x.transition;T.setOptions({transition:x.clicktransition}),w=t,de.t=setTimeout(function(){T.show(e)},10)},0):T.show(e)}function he(t,e){o[t]=j[t]=e}function me(t){de({index:xe(this).data().eq,slow:t.altKey,user:!0,coo:t._x-r.offset().left})}function pe(t){de({index:pt.index(this)?">":"<",slow:t.altKey,user:!0})}function ve(t){Ho(t,function(){setTimeout(function(){Qe(M)},0),ce(!1)})}function O(){function t(t,e){n[t?"add":"remove"].push(e)}var e,o,n,i;_=T.data=_||Oo(x.data)||$o(a),C=T.size=_.length,!ge.ok&&x.shuffle&&Lo(_),jt(),E=At(E),C&&Nt(!0),T.options=x=Io(x),p="crossfade"===x.transition||"dissolve"===x.transition,h=x.loop&&(2<C||p&&(!w||"slide"!==w)),v=+x.transitionduration||Ae,g="rtl"===x.direction,G=xe.extend({},x.keyboard&&Mo,x.keyboard),n={add:[],remove:[]},1<C||x.enableifsingleframe?(m=x.nav,V="top"===x.navposition,n.remove.push(fo),pt.toggle(!!x.arrows)):(m=!1,pt.hide()),Wt(),D=new bo(xe.extend(xo,x.spinner,_o,{direction:g?-1:1})),Jt(),Zt(),x.autoplay&&qt(x.autoplay),Q=We(x.thumbwidth)||64,U=We(x.thumbheight)||64,kt.ok=Mt.ok=x.trackpad&&!Ne,$t(),ae(x,[P]),(K="thumbs"===m)?(Vt(C,"navThumb"),I=gt,b=Oe,e=ct,o=xe.Fotorama.jst.style({w:Q,h:U,b:x.thumbborderwidth,m:x.thumbmargin,s:at,q:!To}),(i=e[0]).styleSheet?i.styleSheet.cssText=o:e.html(o),r.addClass(so).removeClass(ro)):"dots"===m?(Vt(C,"navDot"),I=wt,b=Le,r.addClass(ro).removeClass(so)):(m=!1,r.removeClass(so+" "+ro)),m&&(V?vt.insertBefore(M):vt.insertAfter(M),Ut.nav=!1,Ut(I,F,"nav")),B=x.allowfullscreen,X=B?(bt.prependTo(M),ko&&"native"===B):(bt.detach(),!1),t(p,"fotorama__wrap--fade"),t(!p,"fotorama__wrap--slide"),t(!x.captions,"fotorama__wrap--no-captions"),t(g,"fotorama__wrap--rtl"),t("always"!==x.arrows,"fotorama__wrap--toggle-arrows"),t(!(Y=x.shadows&&!Ne),"fotorama__wrap--no-shadows"),k.addClass(n.add.join(" ")).removeClass(n.remove.join(" ")),xe.extend({},x),O.i||(O.i=!0,((i=x.startindex)||x.hash&&be.hash)&&(H=zo(i||be.hash.replace(/^#/,""),_,0===T.index||i,i)),E=c=f=d=H=zt(H)||0),C?we()||(s&&L(s,!0),l=[],ne(ze),O.ok=!0,T.show({index:E,time:0}),T.resize()):T.destroy()}function we(){if(!we.f===g)return we.f=g,E=C-1-E,T.reverse(),!0}function ge(){ge.ok||(ge.ok=!0,A("ready"))}k[ze]=xe(Xe(oo)),k[Oe]=xe(Xe(uo+" fotorama__nav__frame--thumb"+Me,Xe(go))),k[Le]=xe(Xe(uo+" fotorama__nav__frame--dot"+Me,Xe("fotorama__dot"))),St[ze]=[],St[Oe]=[],St[Le]=[],Ft[ze]={},k.addClass(je?"fotorama__wrap--css3":"fotorama__wrap--css2").toggleClass(Ze,!x.controlsonstart),lt.fotorama=this,T.startAutoplay=function(t){return T.autoplay||(y=i=!1,qt(t||x.autoplay),z()),this},T.stopAutoplay=function(){return T.autoplay&&(y=i=!0,z()),this},T.show=function(e){"object"!=typeof e?(o=e,e={}):o=e.index,o=">"===o?f+1:"<"===o?f-1:"<<"===o?0:">>"===o?C-1:o,o=void 0===(o=isNaN(o)?zo(o,_,!0):o)?E||0:o,T.activeIndex=E=zt(o),Z=Lt(E),R=Ot(E),W=$(E+(g?-1:1)),l=[E,Z,R],f=h?o:E;var t=Math.abs(d-f),o=Po(e.time,function(){return Math.min(v*(1+(t-1)/12),2*v)}),n=e.overPos,i=(e.slow&&(o*=10),u),a=(T.activeFrame=u=_[E],i===u&&!e.user),r=(L(s,u.i!==_[$(c)].i),Vt(l,"stage"),Xt(Ne?[f]:[f,Lt(f),Ot(f)]),he("go",!0),a||A("show",{user:e.user,time:o}),y=!0,T.show.onEnd=function(t){r.ok||(r.ok=!0,t||ie(!0),a||A("showend",{user:e.user}),!t&&w&&w!==x.transition?(T.setOptions({transition:w}),w=!1):(Ht(),Rt(l,"stage"),he("go",!1),Zt(),fe(),se(),z()))});return p?Vo(u[ze],E!==d?_[d][ze]:null,dt,{time:o,method:x.transition,onEnd:r},Pt):Ge(S,{pos:-Fo(f,P.w,x.margin,c),overPos:n,time:o,onEnd:r}),Jt(),m&&(oe(b),St[b].push(u[b].addClass(co)),q({time:o,coo:(i=At(E+De(f-d,-1,1)))!==E&&e.coo,guessIndex:void 0!==e.coo?i:E,keep:a}),K)&&ee(o),Z=void 0!==d&&d!==E,d=E,x.hash&&Z&&!T.eq&&(n=u.id||E+1,be.replace(be.protocol+"//"+be.host+be.pathname.replace(/^\/?/,"/")+be.search+"#"+n)),this},T.requestFullScreen=function(){return B&&!T.fullScreen&&(t=Ee.scrollTop(),e=Ee.scrollLeft(),Qe(Ee),he("x",!0),tt=xe.extend({},P),a.addClass(ho).appendTo(Fe.addClass(Ce)),Co.addClass(Ce),L(s,!0,!0),T.fullScreen=!0,X&&Se.request(st),T.resize(),Rt(l,"stage"),Ht(),A("fullscreenenter")),this},T.cancelFullScreen=function(){return X&&Se.is()?Se.cancel(ye):ue(),this},T.toggleFullScreen=function(){return T[(T.fullScreen?"cancel":"request")+"FullScreen"]()},Ue(ye,Se.event,function(){!_||Se.is()||s||ue()}),T.resize=function(t){var e,o,n,i,a;return _&&(e=arguments[1]||0,o=arguments[2],ae(T.fullScreen?{width:"100%",maxwidth:null,minwidth:null,height:"100%",maxheight:null,minheight:null}:Io(t),[P,o||T.fullScreen||x]),t=P.width,n=P.height,i=P.ratio,a=Ee.height()-(m?r.height():0),Ke(t)&&(k.addClass(to).css({width:t,minWidth:P.minwidth||0,maxWidth:P.maxwidth||99999}),t=P.W=P.w=k.width(),P.nw=m&&He(x.navwidth,t)||t,x.glimpse&&(P.w-=Math.round(2*(He(x.glimpse,t)||0))),S.css({width:P.w,marginLeft:(P.W-P.w)/2}),n=(n=He(n,a))||i&&t/i)&&(t=Math.round(t),n=P.h=Math.round(De(n,He(P.minheight,a),He(P.maxheight,a))),M.stop().animate({width:t,height:n},e,function(){k.removeClass(to)}),ie(),m&&(r.stop().animate({width:P.nw},e),q({guessIndex:E,time:e,keep:!0}),K)&&Ut.nav&&ee(e),J=o||!0,ge()),Et=M.offset().left),this},T.setOptions=function(t){return xe.extend(x,t),O(),this},T.shuffle=function(){return _&&Lo(_)&&O(),this},T.destroy=function(){return T.cancelFullScreen(),T.stopAutoplay(),_=T.data=null,Nt(),l=[],ne(ze),O.ok=!1,this},T.playVideo=function(){var t=u,e=t.video,o=E;return"object"==typeof e&&t.videoReady&&(X&&T.fullScreen&&T.cancelFullScreen(),Be(function(){return!Se.is()||o!==E},function(){o===E&&(t.$video=t.$video||xe(xe.Fotorama.jst.video(e)),t.$video.appendTo(t[ze]),k.addClass(Je),s=t.$video,$t(),pt.blur(),bt.blur(),A("loadvideo"))})),this},T.stopVideo=function(){return L(s,!0,!0),this},M.on("mousemove",fe),o=Xo(S,{onStart:re,onMove:function(t,e){le(M,e.edge)},onTouchEnd:n,onEnd:function(t){le(M);var e,o,n,i,a=($e&&!ot||t.touch)&&x.arrows&&"always"!==x.arrows;t.moved||a&&t.pos!==t.newPos&&!t.control?(e=t.newPos,o=P.w,n=x.margin,i=c,e=-Math.round(e/(o+(n||0))-(i||0)),T.show({index:e,time:p?v:t.time,overPos:t.overPos,user:!0})):t.aborted||t.control||(o=t.startEvent,n=a,i=o.target,xe(i).hasClass(yo)?T.playVideo():i===xt?T.toggleFullScreen():s?i===Ct&&L(s,!0,!0):n?ce():x.click&&de({index:o.shiftKey||Ko(Yt(o._x)),slow:o.altKey,user:!0}))},timeLow:1,timeHigh:1,friction:2,select:"."+fo+", ."+fo+" *",$wrap:M}),j=Xo(F,{onStart:re,onMove:function(t,e){le(r,e.edge)},onTouchEnd:n,onEnd:function(t){function e(){q.l=t.newPos,se(),z(),Qt(t.newPos,!0)}var o;t.moved?t.pos!==t.newPos?(y=!0,Ge(F,{time:t.time,pos:t.newPos,overPos:t.overPos,onEnd:e}),Qt(t.newPos),Y&&le(r,Ao(t.newPos,j.min,j.max))):e():(o=t.$target.closest("."+uo,F)[0])&&me.call(o,t.startEvent)},timeLow:.5,timeHigh:2,friction:5,$wrap:r}),kt=Qo(M,{shift:!0,onEnd:function(t,e){re(),n(),T.show({index:e,slow:t.altKey})}}),Mt=Qo(r,{onEnd:function(t,e){re(),n();var o=Eo(F)+.25*e;F.css(Re(De(o,j.min,j.max))),Y&&le(r,Ao(o,j.min,j.max)),Mt.prevent={"<":o>=j.max,">":o<=j.min},clearTimeout(Mt.t),Mt.t=setTimeout(function(){Qt(q.l=o,!0)},qe),Qt(o)}}),k.hover(function(){setTimeout(function(){et||ce(!(ot=!0))},0)},function(){ot&&ce(!(ot=!1))}),nt=function(t){Ye(t),pe.call(this,t)},it=(it={onStart:function(){re(),o.control=!0},onTouchEnd:n})||{},pt.each(function(){var e,t=xe(this),o=t.data();o.clickOn||(o.clickOn=!0,xe.extend(Bo(t,{onStart:function(t){e=t,(it.onStart||Ie).call(this,t)},onMove:it.onMove||Ie,onTouchEnd:it.onTouchEnd||Ie,onEnd:function(t){t.moved||nt.call(this,e)}}),{noMove:!0}))}),pt.each(function(){Wo(this,function(t){pe.call(this,t)}),ve(this)}),Wo(xt,T.toggleFullScreen),ve(xt),xe.each("load push pop shift unshift reverse sort splice".split(" "),function(t,e){T[e]=function(){return _=_||[],"load"!==e?Array.prototype[e].apply(_,arguments):arguments[0]&&"object"==typeof arguments[0]&&arguments[0].length&&(_=Oo(arguments[0])),O(),T}}),O()},xe.fn.fotorama=function(i){return this.each(function(){var e=this,t=xe(this),o=t.data(),n=o.fotorama;n?n.setOptions(i,!0):Be(function(){return!(0===(t=e).offsetWidth&&0===t.offsetHeight);var t},function(){o.urtext=t.html(),new xe.Fotorama(t,xe.extend({},c,a.fotoramaDefaults,i,o))})})},xe.Fotorama.instances=[],xe.Fotorama.cache={},xe.Fotorama.measures={},(xe=xe||{}).Fotorama=xe.Fotorama||{},xe.Fotorama.jst=xe.Fotorama.jst||{},xe.Fotorama.jst.style=function(t){var e,o="";return o+=".fotorama"+(null==(e=t.s)?"":e)+" .fotorama__nav--thumbs .fotorama__nav__frame{\npadding:"+(null==(e=t.m)?"":e)+"px;\nheight:"+(null==(e=t.h)?"":e)+"px}\n.fotorama"+(null==(e=t.s)?"":e)+" .fotorama__thumb-border{\nheight:"+(null==(e=t.h-t.b*(t.q?0:2))?"":e)+"px;\nborder-width:"+(null==(e=t.b)?"":e)+"px;\nmargin-top:"+(null==(e=t.m)?"":e)+"px}"},xe.Fotorama.jst.video=function(t){var e="",o=Array.prototype.join;return e+='<div class="fotorama__video"><iframe src="',function(){e+=o.call(arguments,"")}(("youtube"==t.type?t.p+"youtube.com/embed/"+t.id+"?autoplay=1":"vimeo"==t.type?t.p+"player.vimeo.com/video/"+t.id+"?autoplay=1&badge=0":t.id)+(t.s&&"custom"!=t.type?"&"+t.s:"")),e+='" frameborder="0" allowfullscreen></iframe></div>\n'},xe(function(){xe("."+_e+':not([data-auto="false"])').fotorama()})}(window,document,location,"undefined"!=typeof jQuery&&jQuery);
|