1/*! 2 * Fotorama 4.6.3 | http://fotorama.io/license/ 3 */ 4fotoramaVersion="4.6.3";(function(bh,k,aU,bS,aL){var ae="fotorama",bB="fullscreen",ad=ae+"__wrap",af=ad+"--css2",aQ=ad+"--css3",bm=ad+"--video",ap=ad+"--fade",at=ad+"--slide",N=ad+"--no-controls",aI=ad+"--no-shadows",S=ad+"--pan-y",aS=ad+"--rtl",av=ad+"--only-active",bH=ad+"--no-captions",f=ad+"--toggle-arrows",aX=ae+"__stage",x=aX+"__frame",l=x+"--video",A=aX+"__shaft",ay=ae+"__grab",bx=ae+"__pointer",aG=ae+"__arr",E=aG+"--disabled",a4=aG+"--prev",q=aG+"--next",bJ=aG+"__arr",bK=ae+"__nav",bj=bK+"-wrap",aD=bK+"__shaft",bT=bK+"--dots",ag=bK+"--thumbs",aC=bK+"__frame",aY=aC+"--dot",bR=aC+"--thumb",bk=ae+"__fade",aj=bk+"-front",n=bk+"-rear",aP=ae+"__shadow",bt=aP+"s",Q=bt+"--left",aH=bt+"--right",aV=ae+"__active",a0=ae+"__select",bl=ae+"--hidden",K=ae+"--fullscreen",aF=ae+"__fullscreen-icon",bL=ae+"__error",bG=ae+"__loading",c=ae+"__loaded",bZ=c+"--full",a9=c+"--img",bN=ae+"__grabbing",H=ae+"__img",W=H+"--full",b4=ae+"__dot",bO=ae+"__thumb",b6=bO+"-border",a5=ae+"__html",bD=ae+"__video",R=bD+"-play",v=bD+"-close",a7=ae+"__caption",aB=ae+"__caption__wrap",Y=ae+"__spinner",bI='" tabindex="0" role="button';var D=bS&&bS.fn.jquery.split(".");if(!D||D[0]<1||(D[0]==1&&D[1]<8)){throw"Fotorama requires jQuery 1.8 or later and will not run without it."}var br={};var an=(function(cj,co,ce){var ca="2.6.2",ch={},cy=co.documentElement,cz="modernizr",cw=co.createElement(cz),ck=cw.style,cb,cr={}.toString,ct=" -webkit- -moz- -o- -ms- ".split(" "),b8="Webkit Moz O ms",cB=b8.split(" "),cl=b8.toLowerCase().split(" "),cf={},b9={},cp={},cv=[],cq=cv.slice,b7,cu=function(cL,cN,cF,cM){var cE,cK,cH,cI,cD=co.createElement("div"),cJ=co.body,cG=cJ||co.createElement("body");if(parseInt(cF,10)){while(cF--){cH=co.createElement("div");cH.id=cM?cM[cF]:cz+(cF+1);cD.appendChild(cH)}}cE=["­",'<style id="s',cz,'">',cL,"</style>"].join("");cD.id=cz;(cJ?cD:cG).innerHTML+=cE;cG.appendChild(cD);if(!cJ){cG.style.background="";cG.style.overflow="hidden";cI=cy.style.overflow;cy.style.overflow="hidden";cy.appendChild(cG)}cK=cN(cD,cL);if(!cJ){cG.parentNode.removeChild(cG);cy.style.overflow=cI}else{cD.parentNode.removeChild(cD)}return !!cK},cn=({}).hasOwnProperty,cx;if(!cg(cn,"undefined")&&!cg(cn.call,"undefined")){cx=function(cD,cE){return cn.call(cD,cE)}}else{cx=function(cD,cE){return((cE in cD)&&cg(cD.constructor.prototype[cE],"undefined"))}}if(!Function.prototype.bind){Function.prototype.bind=function cC(cF){var cG=this;if(typeof cG!="function"){throw new TypeError()}var cD=cq.call(arguments,1),cE=function(){if(this instanceof cE){var cJ=function(){};cJ.prototype=cG.prototype;var cI=new cJ();var cH=cG.apply(cI,cD.concat(cq.call(arguments)));if(Object(cH)===cH){return cH}return cI}else{return cG.apply(cF,cD.concat(cq.call(arguments)))}};return cE}}function cm(cD){ck.cssText=cD}function cd(cE,cD){return cm(ct.join(cE+";")+(cD||""))}function cg(cE,cD){return typeof cE===cD}function ci(cE,cD){return !!~(""+cE).indexOf(cD)}function cA(cF,cD){for(var cE in cF){var cG=cF[cE];if(!ci(cG,"-")&&ck[cG]!==ce){return cD=="pfx"?cG:true}}return false}function cs(cE,cH,cG){for(var cD in cE){var cF=cH[cE[cD]];if(cF!==ce){if(cG===false){return cE[cD]}if(cg(cF,"function")){return cF.bind(cG||cH)}return cF}}return false}function i(cH,cD,cG){var cE=cH.charAt(0).toUpperCase()+cH.slice(1),cF=(cH+" "+cB.join(cE+" ")+cE).split(" ");if(cg(cD,"string")||cg(cD,"undefined")){return cA(cF,cD)}else{cF=(cH+" "+(cl).join(cE+" ")+cE).split(" ");return cs(cF,cD,cG)}}cf.csstransforms3d=function(){var cD=!!i("perspective");return cD};for(var cc in cf){if(cx(cf,cc)){b7=cc.toLowerCase();ch[b7]=cf[cc]();cv.push((ch[b7]?"":"no-")+b7)}}ch.addTest=function(cE,cF){if(typeof cE=="object"){for(var cD in cE){if(cx(cE,cD)){ch.addTest(cD,cE[cD])}}}else{cE=cE.toLowerCase();if(ch[cE]!==ce){return ch}cF=typeof cF=="function"?cF():cF;if(typeof enableClasses!=="undefined"&&enableClasses){cy.className+=" "+(cF?"":"no-")+cE}ch[cE]=cF}return ch};cm("");cw=cb=null;ch._version=ca;ch._prefixes=ct;ch._domPrefixes=cl;ch._cssomPrefixes=cB;ch.testProp=function(cD){return cA([cD])};ch.testAllProps=i;ch.testStyles=cu;ch.prefixed=function(cF,cE,cD){if(!cE){return i(cF,"pfx")}else{return i(cF,cE,cD)}};return ch})(bh,k);var bw={ok:false,is:function(){return false},request:function(){},cancel:function(){},event:"",prefix:""},h="webkit moz o ms khtml".split(" ");if(typeof k.cancelFullScreen!="undefined"){bw.ok=true}else{for(var bo=0,L=h.length;bo<L;bo++){bw.prefix=h[bo];if(typeof k[bw.prefix+"CancelFullScreen"]!="undefined"){bw.ok=true;break}}}if(bw.ok){bw.event=bw.prefix+"fullscreenchange";bw.is=function(){switch(this.prefix){case"":return k.fullScreen;case"webkit":return k.webkitIsFullScreen;default:return k[this.prefix+"FullScreen"]}};bw.request=function(i){return(this.prefix==="")?i.requestFullScreen():i[this.prefix+"RequestFullScreen"]()};bw.cancel=function(i){return(this.prefix==="")?k.cancelFullScreen():k[this.prefix+"CancelFullScreen"]()}}var bv,bW={lines:12,length:5,width:2,radius:7,corners:1,rotate:15,color:"rgba(128, 128, 128, .75)",hwaccel:true},b={top:"auto",left:"auto",className:""};(function(i,b7){bv=b7()}(this,function(){var ca=["webkit","Moz","ms","O"],cl={}
4,ck;function cc(cm,cp){var cn=k.createElement(cm||"div"),co;for(co in cp){cn[co]=cp[co]}return cn}function cd(cn){for(var cm=1,co=arguments.length;cm<co;cm++){cn.appendChild(arguments[cm])}return cn}var ce=(function(){var cm=cc("style",{type:"text/css"});cd(k.getElementsByTagName("head")[0],cm);return cm.sheet||cm.styleSheet}());function b8(cq,cm,cr,cu){var cn=["opacity",cm,~~(cq*100),cr,cu].join("-"),co=0.01+cr/cu*100,ct=Math.max(1-(1-cq)/cm*(100-co),cq),cs=ck.substring(0,ck.indexOf("Animation")).toLowerCase(),cp=cs&&"-"+cs+"-"||"";if(!cl[cn]){ce.insertRule("@"+cp+"keyframes "+cn+"{0%{opacity:"+ct+"}"+co+"%{opacity:"+cq+"}"+(co+0.01)+"%{opacity:1}"+(co+cm)%100+"%{opacity:"+cq+"}100%{opacity:"+ct+"}}",ce.cssRules.length);cl[cn]=1}return cn}function ci(cp,cq){var co=cp.style,cm,cn;cq=cq.charAt(0).toUpperCase()+cq.slice(1);for(cn=0;cn<ca.length;cn++){cm=ca[cn]+cq;if(co[cm]!==aL){return cm}}if(co[cq]!==aL){return cq}}function cb(cm,co){for(var cn in co){cm.style[ci(cm,cn)||cn]=co[cn]}return cm}function cg(co){for(var cm=1;cm<arguments.length;cm++){var cn=arguments[cm];for(var cp in cn){if(co[cp]===aL){co[cp]=cn[cp]}}}return co}function cf(cm){var cn={x:cm.offsetLeft,y:cm.offsetTop};while((cm=cm.offsetParent)){cn.x+=cm.offsetLeft,cn.y+=cm.offsetTop}return cn}function cj(cn,cm){return typeof cn=="string"?cn:cn[cm%cn.length]}var b9={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:2000000000,className:"spinner",top:"auto",left:"auto",position:"relative"};function b7(cm){if(typeof this=="undefined"){return new b7(cm)}this.opts=cg(cm||{},b7.defaults,b9)}b7.defaults={};cg(b7.prototype,{spin:function(cv){this.stop();var cz=this,cn=cz.opts,co=cz.el=cb(cc(0,{className:cn.className}),{position:cn.position,width:0,zIndex:cn.zIndex}),cy=cn.radius+cn.length+cn.width,cA,cx;if(cv){cv.insertBefore(co,cv.firstChild||null);cx=cf(cv);cA=cf(co);cb(co,{left:(cn.left=="auto"?cx.x-cA.x+(cv.offsetWidth>>1):parseInt(cn.left,10)+cy)+"px",top:(cn.top=="auto"?cx.y-cA.y+(cv.offsetHeight>>1):parseInt(cn.top,10)+cy)+"px"})}co.setAttribute("role","progressbar");cz.lines(co,cz.opts);if(!ck){var cs=0,cm=(cn.lines-1)*(1-cn.direction)/2,cr,cp=cn.fps,cu=cp/cn.speed,ct=(1-cn.opacity)/(cu*cn.trail/100),cw=cu/cn.lines;(function cq(){cs++;for(var cB=0;cB<cn.lines;cB++){cr=Math.max(1-(cs+(cn.lines-cB)*cw)%cu*ct,cn.opacity);cz.opacity(co,cB*cn.direction+cm,cr,cn)}cz.timeout=cz.el&&setTimeout(cq,~~(1000/cp))})()}return cz},stop:function(){var cm=this.el;if(cm){clearTimeout(this.timeout);if(cm.parentNode){cm.parentNode.removeChild(cm)}this.el=aL}return this},lines:function(co,cq){var cn=0,cr=(cq.lines-1)*(1-cq.direction)/2,cm;function cp(cs,ct){return cb(cc(),{position:"absolute",width:(cq.length+cq.width)+"px",height:cq.width+"px",background:cs,boxShadow:ct,transformOrigin:"left",transform:"rotate("+~~(360/cq.lines*cn+cq.rotate)+"deg) translate("+cq.radius+"px,0)",borderRadius:(cq.corners*cq.width>>1)+"px"})}for(;cn<cq.lines;cn++){cm=cb(cc(),{position:"absolute",top:1+~(cq.width/2)+"px",transform:cq.hwaccel?"translate3d(0,0,0)":"",opacity:cq.opacity,animation:ck&&b8(cq.opacity,cq.trail,cr+cn*cq.direction,cq.lines)+" "+1/cq.speed+"s linear infinite"});if(cq.shadow){cd(cm,cb(cp("#000","0 0 4px #000"),{top:2+"px"}))}cd(co,cd(cm,cp(cj(cq.color,cn),"0 0 1px rgba(0,0,0,.1)")))}return co},opacity:function(cn,cm,co){if(cm<cn.childNodes.length){cn.childNodes[cm].style.opacity=co}}});function ch(){function cm(co,cn){return cc("<"+co+' xmlns="urn:schemas-microsoft.com:vml" class="spin-vml">',cn)}ce.addRule(".spin-vml","behavior:url(#default#VML)");b7.prototype.lines=function(cp,co){var cn=co.length+co.width,cv=2*cn;function cu(){return cb(cm("group",{coordsize:cv+" "+cv,coordorigin:-cn+" "+-cn}),{width:cv,height:cv})}var cq=-(co.width+co.length)*2+"px",ct=cb(cu(),{position:"absolute",top:cq,left:cq}),cs;function cr(cx,cw,cy){cd(ct,cd(cb(cu(),{rotation:360/co.lines*cx+"deg",left:~~cw}),cd(cb(cm("roundrect",{arcsize:co.corners}),{width:cn,height:co.width,left:co.radius,top:-co.width>>1,filter:cy}
4),cm("fill",{color:cj(co.color,cx),opacity:co.opacity}),cm("stroke",{opacity:0}))))}if(co.shadow){for(cs=1;cs<=co.lines;cs++){cr(cs,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)")}}for(cs=1;cs<=co.lines;cs++){cr(cs)}return cd(cp,ct)};b7.prototype.opacity=function(co,cn,cq,cp){var cr=co.firstChild;cp=cp.shadow&&cp.lines||0;if(cr&&cn+cp<cr.childNodes.length){cr=cr.childNodes[cn+cp];cr=cr&&cr.firstChild;cr=cr&&cr.firstChild;if(cr){cr.opacity=cq}}}}var i=cb(cc("group"),{behavior:"url(#default#VML)"});if(!ci(i,"transform")&&i.adj){ch()}else{ck=ci(i,"animation")}return b7}));function aW(i){var b7="bez_"+bS.makeArray(arguments).join("_").replace(".","p");if(typeof bS.easing[b7]!=="function"){var b8=function(cf,cd){var ca=[null,null],cg=[null,null],ce=[null,null],cc=function(ch,ci){ce[ci]=3*cf[ci];cg[ci]=3*(cd[ci]-cf[ci])-ce[ci];ca[ci]=1-ce[ci]-cg[ci];return ch*(ce[ci]+ch*(cg[ci]+ch*ca[ci]))},cb=function(ch){return ce[0]+ch*(2*cg[0]+3*ca[0]*ch)},b9=function(cj){var ch=cj,ci=0,ck;while(++ci<14){ck=cc(ch,0)-cj;if(Math.abs(ck)<0.001){break}ch-=ck/cb(ch)}return ch};return function(ch){return cc(b9(ch),1)}};bS.easing[b7]=function(ca,cb,b9,cd,cc){return cd*b8([i[0],i[1]],[i[2],i[3]])(cb/cc)+b9}}return b7}var a8=bS(bh),bp=bS(k),P,G,bP=aU.hash.replace("#","")==="quirks",aa=an.csstransforms3d,ax=aa&&!bP,aJ=aa||k.compatMode==="CSS1Compat",r=bw.ok,ak=navigator.userAgent.match(/Android|webOS|iPhone|iPad|iPod|BlackBerry|Windows Phone/i),ba=!ax||ak,aR=navigator.msPointerEnabled,y="onwheel" in k.createElement("div")?"wheel":k.onmousewheel!==aL?"mousewheel":"DOMMouseScroll",b3=250,a1=300,bV=1400,bM=5000,b5=2,J=64,bd=500,by=333,bn="$stageFrame",b2="$navDotFrame",be="$navThumbFrame",bz="auto",t=aW([0.1,0,0.25,1]),bE=99999,ab="50%",O={width:null,minwidth:null,maxwidth:"100%",height:null,minheight:null,maxheight:null,ratio:null,margin:b5,glimpse:0,fit:"contain",position:ab,thumbposition:ab,nav:"dots",navposition:"bottom",navwidth:null,thumbwidth:J,thumbheight:J,thumbmargin:b5,thumbborderwidth:b5,thumbfit:"cover",allowfullscreen:false,transition:"slide",clicktransition:null,transitionduration:a1,captions:true,hash:false,startindex:0,loop:false,autoplay:false,stopautoplayontouch:true,keyboard:false,arrows:true,click:true,swipe:true,trackpad:false,enableifsingleframe:false,controlsonstart:true,shuffle:false,direction:"ltr",shadows:true,spinner:null},p={left:true,right:true,down:false,up:false,space:false,home:false,end:false};function g(){}function a3(b8,b7,i){return Math.max(isNaN(b7)?-Infinity:b7,Math.min(isNaN(i)?Infinity:i,b8))}function bb(i){return i.match(/ma/)&&i.match(/-?\d+(?!d)/g)[i.match(/3d/)?12:4]}function X(i){if(ax){return +bb(i.css("transform"))}else{return +i.css("left").replace("px","")}}function bY(b7){var i={};if(ax){i.transform="translate3d("+(b7)+"px,0,0)"}else{i.left=b7}return i}function b1(i){return{"transition-duration":i+"ms"}}function aO(b7,i){return isNaN(b7)?i:b7}function m(b7,i){return aO(+String(b7).replace(i||"px",""))}function I(i){return/%$/.test(i)?m(i,"%"):aL}function d(b7,i){return aO(I(b7)/100*i,m(b7))}function s(i){return(!isNaN(m(i))||!isNaN(m(i,"%")))&&i}function aZ(b7,b8,b9,i){return(b7-(i||0))*(b8+(b9||0))}function bs(b9,b7,b8,i){return -Math.round(b9/(b7+(b8||0))-(i||0))}function aK(b8){var b7=b8.data();if(b7.tEnd){return}var b9=b8[0],i={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",msTransition:"MSTransitionEnd",transition:"transitionend"};C(b9,i[an.prefixed("transition")],function(ca){b7.tProp&&ca.propertyName.match(b7.tProp)&&b7.onEndFn()});b7.tEnd=true}function V(b8,ca,b9,cb){var b7,i=b8.data();if(i){i.onEndFn=function(){if(b7){return}b7=true;clearTimeout(i.tT);b9()};i.tProp=ca;clearTimeout(i.tT);i.tT=setTimeout(function(){i.onEndFn()},cb*1.5);aK(b8)}}function aT(b8,b9){if(b8.length){var b7=b8.data();if(ax){b8.css(b1(0));b7.onEndFn=g;clearTimeout(b7.tT)}else{b8.stop()}var i=bc(b9,function(){return X(b8)});b8.css(bY(i));return i}}function bc(){var b7;for(var b8=0,i=arguments.length;b8<i;b8++){b7=b8?arguments[b8]():arguments[b8];if(typeof b7==="number"){break}}return b7}function aA(b7,i){return Math.round(b7+((i-b7)/1.5))}function aN(){aN.p=aN.p||(aU.protocol==="https:"?"https://":"http://");return aN.p}function ai(b7){var i=k.createElement("a");i.href=b7;return i}function aq(i,b8){if(typeof i!=="string"){return i}i=ai(i);var ca,b9;if(i.host.match(/youtube\.com/)&&i.search){ca=i.search.split("v=")[1];if(ca){var b7=ca.indexOf("&");if(b7!==-1){ca=ca.substring(0,b7)}b9="youtube"}}else{if(i.host.match(/youtube\.com|youtu\.be/)){ca=i.pathname.replace(/^\/(embed\/|v\/)?/,"").replace(/\/.*/,"");b9="youtube"}else{if(i.host.match(/vimeo\.com/)){b9="vimeo";ca=i.pathname.replace(/^\/(video\/)?/,"").replace(/\/.*/,"")}}}if((!ca||!b9)&&b8){ca=i.href;b9="custom"}return ca?{id:ca,type:b9,s:i.search.replace(/^\?/,""),p:aN()}:false}function aM(cb,b9,ca){var b7,i,b8=cb.video;
4if(b8.type==="youtube"){i=aN()+"img.youtube.com/vi/"+b8.id+"/default.jpg";b7=i.replace(/\/default.jpg$/,"/hqdefault.jpg");cb.thumbsReady=true}else{if(b8.type==="vimeo"){bS.ajax({url:aN()+"vimeo.com/api/v2/video/"+b8.id+".json",dataType:"jsonp",success:function(cc){cb.thumbsReady=true;u(b9,{img:cc[0].thumbnail_large,thumb:cc[0].thumbnail_small},cb.i,ca)}})}else{cb.thumbsReady=true}}return{img:b7,thumb:i}}function u(cc,b8,ca,cd){for(var cb=0,b9=cc.length;cb<b9;cb++){var ce=cc[cb];if(ce.i===ca&&ce.thumbsReady){var b7={videoReady:true};b7[bn]=b7[be]=b7[b2]=false;cd.splice(cb,1,bS.extend({},ce,b7,b8));break}}}function bC(b7){var b9=[];function b8(ca,cc,ci){var cd=ca.children("img").eq(0),ch=ca.attr("href"),cf=ca.attr("src"),cg=cd.attr("src"),ce=cc.video,cb=ci?aq(ch,ce===true):false;if(cb){ch=false}else{cb=ce}i(ca,cd,bS.extend(cc,{video:cb,img:cc.img||ch||cf||cg,thumb:cc.thumb||cg||cf||ch}))}function i(cb,ce,cf){var cd=cf.thumb&&cf.img!==cf.thumb,cc=m(cf.width||cb.attr("width")),ca=m(cf.height||cb.attr("height"));bS.extend(cf,{width:cc,height:ca,thumbratio:bf(cf.thumbratio||(m(cf.thumbwidth||(ce&&ce.attr("width"))||cd||cc)/m(cf.thumbheight||(ce&&ce.attr("height"))||cd||ca)))})}b7.children().each(function(){var ca=bS(this),cb=bu(bS.extend(ca.data(),{id:ca.attr("id")}));if(ca.is("a, img")){b8(ca,cb,true)}else{if(!ca.is(":empty")){i(ca,null,bS.extend(cb,{html:this,_html:ca.html()}))}else{return}}b9.push(cb)});return b9}function U(i){return i.offsetWidth===0&&i.offsetHeight===0}function a6(i){return !bS.contains(k.documentElement,i)}function bU(ca,b8,b9,b7){if(!bU.i){bU.i=1;bU.ii=[true]}b7=b7||bU.i;if(typeof bU.ii[b7]==="undefined"){bU.ii[b7]=true}if(ca()){b8()}else{bU.ii[b7]&&setTimeout(function(){bU.ii[b7]&&bU(ca,b8,b9,b7)},b9||100)}return bU.i++}bU.stop=function(b7){bU.ii[b7]=false};function aw(i){aU.replace(aU.protocol+"//"+aU.host+aU.pathname.replace(/^\/?/,"/")+aU.search+"#"+i)}function T(cj,b8,b7,ce){var cc=cj.data(),b9=cc.measures;if(b9&&(!cc.l||cc.l.W!==b9.width||cc.l.H!==b9.height||cc.l.r!==b9.ratio||cc.l.w!==b8.w||cc.l.h!==b8.h||cc.l.m!==b7||cc.l.p!==ce)){console.log("fit");var ca=b9.width,ch=b9.height,cf=b8.w/b8.h,i=b9.ratio>=cf,ci=b7==="scaledown",cb=b7==="contain",cd=b7==="cover",cg=bq(ce);if(i&&(ci||cb)||!i&&cd){ca=a3(b8.w,0,ci?ca:Infinity);ch=ca/b9.ratio}else{if(i&&cd||!i&&(ci||cb)){ch=a3(b8.h,0,ci?ch:Infinity);ca=ch*b9.ratio}}cj.css({width:ca,height:ch,left:d(cg.x,b8.w-ca),top:d(cg.y,b8.h-ch)});cc.l={W:b9.width,H:b9.height,r:b9.ratio,w:b8.w,h:b8.h,m:b7,p:ce}}return true}function al(i,b8){var b7=i[0];if(b7.styleSheet){b7.styleSheet.cssText=b8}else{i.html(b8)}}function bi(b8,b7,i){return b7===i?false:b8<=b7?"left":b8>=i?"right":"left right"}function a2(cc,cb,b9,b7){if(!b9){return false}if(!isNaN(cc)){return cc-(b7?0:1)}var i;for(var ca=0,b8=cb.length;ca<b8;ca++){var cd=cb[ca];if(cd.id===cc){i=ca;break}}return i}function w(b7,b8,i){i=i||{};b7.each(function(){var cb=bS(this),ca=cb.data(),b9;if(ca.clickOn){return}ca.clickOn=true;bS.extend(aE(cb,{onStart:function(cc){b9=cc;(i.onStart||g).call(this,cc)},onMove:i.onMove||g,onTouchEnd:i.onTouchEnd||g,onEnd:function(cc){if(cc.moved){return}b8.call(this,b9)}}),{noMove:true})})}function Z(i,b7){return'<div class="'+i+'">'+(b7||"")+"</div>"}function az(ca){var b7=ca.length;while(b7){var b9=Math.floor(Math.random()*b7--);var b8=ca[b7];ca[b7]=ca[b9];ca[b9]=b8}return ca}function bA(i){return Object.prototype.toString.call(i)=="[object Array]"&&bS.map(i,function(b7){return bS.extend({},b7)})}function bQ(i,b8,b7){i.scrollLeft(b8||0).scrollTop(b7||0)}function bu(i){if(i){var b7={};bS.each(i,function(b8,b9){b7[b8.toLowerCase()]=b9});return b7}}function bf(i){if(!i){return}var b7=+i;if(!isNaN(b7)){return b7}else{b7=i.split("/");return +b7[0]/+b7[1]||aL}}function C(b8,b9,b7,i){if(!b9){return}b8.addEventListener?b8.addEventListener(b9,b7,!!i):b8.attachEvent("on"+b9,b7)}function ah(i){return !!i.getAttribute("disabled")}function ac(i){return{tabindex:i*-1+"",disabled:i}}function a(b7,i){C(b7,"keyup",function(b8){ah(b7)||b8.keyCode==13&&i.call(b7,b8)})}function bF(b7,i){C(b7,"focus",b7.onfocusin=function(b8){i.call(b7,b8)},true)}function M(b7,i){b7.preventDefault?b7.preventDefault():(b7.returnValue=false);i&&b7.stopPropagation&&b7.stopPropagation()}function au(i){return i?">":"<"}function bq(i){i=(i+"").split(/\s+/);return{x:s(i[0])||ab,y:s(i[1])||ab}}function z(b9,b8){var b7=b9.data(),i=Math.round(b8.pos),ca=function(){b7.sliding=false;(b8.onEnd||g)()};if(typeof b8.overPos!=="undefined"&&b8.overPos!==b8.pos){i=b8.overPos;ca=function(){z(b9,bS.extend({},b8,{overPos:b8.pos,time:Math.max(a1,b8.time/2)}))}}var cb=bS.extend(bY(i),b8.width&&{width:b8.width});b7.sliding=true;if(ax){b9.css(bS.extend(b1(b8.time),cb));if(b8.time>10){V(b9,"transform",ca,b8.time)}else{ca()}}else{b9.stop().animate(cb,b8.time,t,ca)}}function ao(cf,ce,b7,ch,b9,i){var cc=typeof i!=="undefined";if(!cc){b9.push(arguments);Array.prototype.push.call(arguments,b9.length);if(b9.length>1){return}}cf=cf||bS(cf);ce=ce||bS(ce);var cd=cf[0],cb=ce[0],ca=ch.method==="crossfade",cg=function(){if(!cg.done){cg.done=true;var ci=(cc||b9.shift())&&b9.shift();ci&&ao.apply(this,ci);(ch.onEnd||g)(!!ci)}},b8=ch.time/(i||1);b7.removeClass(n+" "+aj);cf.stop().addClass(n);ce.stop().addClass(aj);ca&&cb&&cf.fadeTo(0,0);cf.fadeTo(ca?b8:0,1,ca&&cg);ce.fadeTo(b8,0,cg);(cd&&ca)||cb||cg()}var F,b0,e,j;function bg(i){var b7=(i.touches||[])[0]||i;i._x=b7.pageX;i._y=b7.clientY;i._now=bS.now()}function aE(cm,cb){var b7=cm[0],ce={}
4,i,cg,ca,ci,cn,b8,b9,cj,cc;function cl(co){ca=bS(co.target);ce.checked=b8=b9=cc=false;if(i||ce.flow||(co.touches&&co.touches.length>1)||co.which>1||(F&&F.type!==co.type&&e)||(b8=cb.select&&ca.is(cb.select,b7))){return b8}cn=co.type==="touchstart";b9=ca.is("a, a *",b7);ci=ce.control;cj=(ce.noMove||ce.noSwipe||ci)?16:!ce.snap?4:0;bg(co);cg=F=co;b0=co.type.replace(/down|start/,"move").replace(/Down/,"Move");(cb.onStart||g).call(b7,co,{control:ci,$target:ca});i=ce.flow=true;if(!cn||ce.go){M(co)}}function cf(cs){if((cs.touches&&cs.touches.length>1)||(aR&&!cs.isPrimary)||b0!==cs.type||!i){i&&cd();(cb.onTouchEnd||g)();return}bg(cs);var ct=Math.abs(cs._x-cg._x),cp=Math.abs(cs._y-cg._y),cr=ct-cp,cq=(ce.go||ce.x||cr>=0)&&!ce.noSwipe,co=cr<0;if(cn&&!ce.checked){if(i=cq){M(cs)}}else{M(cs);(cb.onMove||g).call(b7,cs,{touch:cn})}if(!cc&&Math.sqrt(Math.pow(ct,2)+Math.pow(cp,2))>cj){cc=true}ce.checked=ce.checked||cq||co}function cd(cp){(cb.onTouchEnd||g)();var co=i;ce.control=i=false;if(co){ce.flow=false}if(!co||(b9&&!ce.checked)){return}cp&&M(cp);e=true;clearTimeout(j);j=setTimeout(function(){e=false},1000);(cb.onEnd||g).call(b7,{moved:cc,$target:ca,control:ci,touch:cn,startEvent:cg,aborted:!cp||cp.type==="MSPointerCancel"})}function ch(){if(ce.flow){return}setTimeout(function(){ce.flow=true},10)}function ck(){if(!ce.flow){return}setTimeout(function(){ce.flow=false},b3)}if(aR){C(b7,"MSPointerDown",cl);C(k,"MSPointerMove",cf);C(k,"MSPointerCancel",cd);C(k,"MSPointerUp",cd)}else{C(b7,"touchstart",cl);C(b7,"touchmove",cf);C(b7,"touchend",cd);C(k,"touchstart",ch);C(k,"touchend",ck);C(k,"touchcancel",ck);a8.on("scroll",ck);cm.on("mousedown",cl);bp.on("mousemove",cf).on("mouseup",cd)}cm.on("click","a",function(co){ce.checked&&M(co)});return ce}function am(ct,b8){var b7=ct[0],b9=ct.data(),ch={},cq,ca,cr,ce,cc,cs,cj,cb,cl,cn,ck,i,cp,cd,ci;function cm(cu,cv){ci=true;cq=ca=cu._x;cj=cu._now;cs=[[cj,cq]];cr=ce=ch.noMove||cv?0:aT(ct,(b8.getPos||g)());(b8.onStart||g).call(b7,cu)}function co(cv,cu){cl=ch.min;cn=ch.max;ck=ch.snap;i=cv.altKey;ci=cd=false;cp=cu.control;if(!cp&&!b9.sliding){cm(cv)}}function cg(cv,cu){if(!ch.noSwipe){if(!ci){cm(cv)}ca=cv._x;cs.push([cv._now,ca]);ce=cr-(cq-ca);cc=bi(ce,cl,cn);if(ce<=cl){ce=aA(ce,cl)}else{if(ce>=cn){ce=aA(ce,cn)}}if(!ch.noMove){ct.css(bY(ce));if(!cd){cd=true;cu.touch||aR||ct.addClass(bN)}(b8.onMove||g).call(b7,cv,{pos:ce,edge:cc})}}}function cf(cD){if(ch.noSwipe&&cD.moved){return}if(!ci){cm(cD.startEvent,true)}cD.touch||aR||ct.removeClass(bN);cb=bS.now();var cA=cb-b3,cE,cJ,cK,cM=null,cu,cy,cH,cx,cz,cC=a1,cI,cB=b8.friction;for(var cw=cs.length-1;cw>=0;cw--){cE=cs[cw][0];cJ=Math.abs(cE-cA);if(cM===null||cJ<cK){cM=cE;cu=cs[cw][1]}else{if(cM===cA||cJ>cK){break}}cK=cJ}cx=a3(ce,cl,cn);var cN=cu-ca,cL=cN>=0,cF=cb-cM,cv=cF>b3,cG=!cv&&ce!==cr&&cx===ce;if(ck){cx=a3(Math[cG?(cL?"floor":"ceil"):"round"](ce/ck)*ck,cl,cn);cl=cn=cx}if(cG&&(ck||cx===ce)){cI=-(cN/cF);cC*=a3(Math.abs(cI),b8.timeLow,b8.timeHigh);cy=Math.round(ce+cI*cC/cB);if(!ck){cx=cy}if(!cL&&cy>cn||cL&&cy<cl){cH=cL?cl:cn;cz=cy-cH;if(!ck){cx=cH}cz=a3(cx+cz*0.03,cH-50,cH+50);cC=Math.abs((ce-cz)/(cI/cB))}}cC*=i?10:1;(b8.onEnd||g).call(b7,bS.extend(cD,{moved:cD.moved||cv&&ck,pos:ce,newPos:cx,overPos:cz,time:cC}))}ch=bS.extend(aE(b8.$wrap,bS.extend({},b8,{onStart:co,onMove:cg,onEnd:cf})),ch);return ch}function o(b9,b8){var cb=b9[0],cc,ca,i,b7={prevent:{}};C(cb,y,function(cj){var cg=cj.wheelDeltaY||-1*cj.deltaY||0,ci=cj.wheelDeltaX||-1*cj.deltaX||0,cf=Math.abs(ci)&&!Math.abs(cg),ch=au(ci<0),ck=ca===ch,cd=bS.now(),ce=cd-i<b3;ca=ch;i=cd;if(!cf||!b7.ok||b7.prevent[ch]&&!cc){return}else{M(cj,true);if(cc&&ck&&ce){return}}if(b8.shift){cc=true;clearTimeout(b7.t);b7.t=setTimeout(function(){cc=false},bV)}(b8.onEnd||g)(cj,b8.shift?ch:ci)});return b7}jQuery.Fotorama=function(dx,ek){P=bS("html");G=bS("body");var cZ=this,b8=bS.now(),cF=ae+b8,dK=dx[0],cs,dG=1,dr=dx.data(),cT,cm=bS("<style></style>"),dH=bS(Z(bl)),cY=bS(Z(ad)),dT=bS(Z(aX)).appendTo(cY),cd=dT[0],ei=bS(Z(A)).appendTo(dT),dp=bS(),cJ=bS(Z(aG+" "+a4+bI)),du=bS(Z(aG+" "+q+bI)),cc=cJ.add(du).appendTo(dT),cR=bS(Z(bj)),ci=bS(Z(bK)).appendTo(cR),cq=bS(Z(aD)).appendTo(ci),eb,cr=bS(),cg=bS(),de=ei.data(),dt=cq.data(),ej=bS(Z(b6)).appendTo(cq),d3=bS(Z(aF+bI)),dh=d3[0],dB=bS(Z(R)),cy=bS(Z(v)).appendTo(dT),ce=cy[0],dm,cQ=bS(Z(Y)),cU,dN=false,cv,dS,ed,c2,cO,ca,cK,di,cj,ck,dX,df,dv,dC,dj,cA,dM,ef,c0,dY,i,ds,cI,cz={},d6={},c9,cn={},co={},dW={},cD={},cx,dP,dq,dJ,dI,cV={},cN={},dg,cP,cE,cl,c5=0,dR=[];cY[bn]=bS(Z(x));cY[be]=bS(Z(aC+" "+bR+bI,Z(bO)));cY[b2]=bS(Z(aC+" "+aY+bI,Z(b4)));cV[bn]=[];cV[be]=[];cV[b2]=[];cN[bn]={};cY.addClass(ax?aQ:af).toggleClass(N,!ek.controlsonstart);dr.fotorama=this;function cu(){bS.each(cs,function(en,ep){if(!ep.i){ep.i=dG++;var eo=aq(ep.video,true);if(eo){var em={};ep.video=eo;if(!ep.img&&!ep.thumb){em=aM(ep,cs,cZ)}else{ep.thumbsReady=true}u(cs,{img:em.img,thumb:em.thumb},ep.i,cZ)}}})}function dO(em){return cI[em]||cZ.fullScreen}function dZ(eo){var ep="keydown."+ae,eq=ae+b8,em="keydown."+eq,en="resize."+eq+" orientationchange."+eq;if(eo){bp.on(em,function(et){var es,er;if(cU&&et.keyCode===27){es=true;dk(cU,true,true)}else{if(cZ.fullScreen||(ek.keyboard&&!cZ.index)){if(et.keyCode===27){es=true;cZ.cancelFullScreen()}else{if((et.shiftKey&&et.keyCode===32&&dO("space"))||(et.keyCode===37&&dO("left"))||(et.keyCode===38&&dO("up"))){er="<"}else{if((et.keyCode===32&&dO("space"))||(et.keyCode===39&&dO("right"))||(et.keyCode===40&&dO("down"))){er=">"}else{if(et.keyCode===36&&dO("home")){er="<<"}else{if(et.keyCode===35&&dO("end")){er=">>"}}}}}}}(es||er)&&M(et);er&&cZ.show({index:er,slow:et.altKey,user:true})});if(!cZ.index){bp.off(ep).on(ep,"textarea, input, select",function(er){!G.hasClass(bB)&&er.stopPropagation()})}a8.on(en,cZ.resize)}else{bp.off(em);a8.off(en)}}function d5(em){if(em===d5.f){return}if(em){dx.html("").addClass(ae+" "+cF).append(cY).before(cm).before(dH);B(cZ)}else{cY.detach();cm.detach();dH.detach();dx.html(dr.urtext).removeClass(cF);ar(cZ)}dZ(em);d5.f=em}function d8(){cs=cZ.data=cs||bA(ek.data)||bC(dx);cT=cZ.size=cs.length;!ct.ok&&ek.shuffle&&az(cs);cu();dN=dd(dN);cT&&d5(true)}function cX(){var em=(cT<2&&!ek.enableifsingleframe)||cU;cn.noMove=em||cA;cn.noSwipe=em||!ek.swipe;!dY&&ei.toggleClass(ay,!ek.click&&!cn.noMove&&!cn.noSwipe);aR&&cY.toggleClass(S,!cn.noSwipe)}function d1(em){if(em===true){em=""}ek.autoplay=Math.max(+em||bM,c0*1.5)}function dA(){cZ.options=ek=bu(ek);cA=(ek.transition==="crossfade"||ek.transition==="dissolve");ck=ek.loop&&(cT>2||(cA&&(!dY||dY!=="slide")));c0=+ek.transitionduration||a1;ds=ek.direction==="rtl";cI=bS.extend({},ek.keyboard&&p,ek.keyboard);var en={add:[],remove:[]};function em(eo,ep){en[eo?"add":"remove"].push(ep)}if(cT>1||ek.enableifsingleframe){dX=ek.nav;dv=ek.navposition==="top";en.remove.push(a0);cc.toggle(!!ek.arrows)}else{dX=false;cc.hide()}dU();dm=new bv(bS.extend(bW,ek.spinner,b,{direction:ds?-1:1}));d0();dE();if(ek.autoplay){d1(ek.autoplay)}dM=m(ek.thumbwidth)||J;ef=m(ek.thumbheight)||J;co.ok=cD.ok=ek.trackpad&&!ba;cX();cB(ek,[d6]);df=dX==="thumbs";if(df){dc(cT,"navThumb");eb=cg;cl=be;al(cm,bS.Fotorama.jst.style({w:dM,h:ef,b:ek.thumbborderwidth,m:ek.thumbmargin,s:b8,q:!aJ}));ci.addClass(ag).removeClass(bT)}else{if(dX==="dots"){dc(cT,"navDot");eb=cr;cl=b2;ci.addClass(bT).removeClass(ag)}else{dX=false;ci.removeClass(ag+" "+bT)}}if(dX){if(dv){cR.insertBefore(dT)}else{cR.insertAfter(dT)}cH.nav=false;cH(eb,cq,"nav")}dC=ek.allowfullscreen;if(dC){d3.prependTo(dT);dj=r&&dC==="native"}else{d3.detach();dj=false}em(cA,ap);em(!cA,at);em(!ek.captions,bH);em(ds,aS);em(ek.arrows!=="always",f);i=ek.shadows&&!ba;em(!i,aI);cY.addClass(en.add.join(" ")).removeClass(en.remove.join(" "));cz=bS.extend({},ek)}function dz(em){return em<0?(cT+(em%cT))%cT:em>=cT?em%cT:em}function dd(em){return a3(em,0,cT-1)}function cC(em){return ck?dz(em):dd(em)}function eh(em){return em>0||ck?em-1:false}function cp(em){return em<cT-1||ck?em+1:false}function d2(){cn.min=ck?-Infinity:-aZ(cT-1,d6.w,ek.margin,ed);cn.max=ck?Infinity:-aZ(0,d6.w,ek.margin,ed);cn.snap=d6.w+ek.margin}function c8(){dW.min=Math.min(0,d6.nw-cq.width());dW.max=0;cq.toggleClass(ay,!(dW.noMove=dW.min===dW.max))}function cf(en,ep,eo){if(typeof en==="number"){en=new Array(en);var em=true}return bS.each(en,function(es,eq){if(em){eq=es}if(typeof eq==="number"){var eu=cs[dz(eq)];if(eu){var er="$"+ep+"Frame",et=eu[er];eo.call(this,es,eq,eu,et,er,et&&et.data())}}})}function b9(ep,em,eo,en){if(!c9||(c9==="*"&&en===cj)){ep=s(ek.width)||s(ep)||bd;em=s(ek.height)||s(em)||by;cZ.resize({width:ep,ratio:ek.ratio||eo||ep/em},0,en!==cj&&"*")}}function d7(en,eo,eq,er,em,ep){cf(en,eo,function(eD,ev,eu,et,eI,es){if(!et){return}var eE=cZ.fullScreen&&eu.full&&eu.full!==eu.img&&!es.$full&&eo==="stage";if(es.$img&&!ep&&!eE){return}var eJ=new Image(),ex=bS(eJ),eF=ex.data();es[eE?"$full":"$img"]=ex;var eA=eo==="stage"?(eE?"full":"img"):"thumb",ew=eu[eA],eG=eE?null:eu[eo==="stage"?"thumb":"img"];if(eo==="navThumb"){et=es.$wrap}function ey(eK){var eL=dz(ev);
4d4(eK,{index:eL,src:ew,frame:cs[eL]})}function eB(){ex.remove();bS.Fotorama.cache[ew]="error";if((!eu.html||eo!=="stage")&&eG&&eG!==ew){eu[eA]=ew=eG;d7([ev],eo,eq,er,em,true)}else{if(ew&&!eu.html&&!eE){et.trigger("f:error").removeClass(bG).addClass(bL);ey("error")}else{if(eo==="stage"){et.trigger("f:load").removeClass(bG+" "+bL).addClass(c);ey("load");b9()}}es.state="error";if(cT>1&&cs[ev]===eu&&!eu.html&&!eu.deleted&&!eu.video&&!eE){eu.deleted=true;cZ.splice(ev,1)}}}function eC(){bS.Fotorama.measures[ew]=eF.measures=bS.Fotorama.measures[ew]||{width:eJ.width,height:eJ.height,ratio:eJ.width/eJ.height};b9(eF.measures.width,eF.measures.height,eF.measures.ratio,ev);ex.off("load error").addClass(H+(eE?" "+W:"")).prependTo(et);T(ex,(bS.isFunction(eq)?eq():eq)||d6,er||eu.fit||ek.fit,em||eu.position||ek.position);bS.Fotorama.cache[ew]=es.state="loaded";setTimeout(function(){et.trigger("f:load").removeClass(bG+" "+bL).addClass(c+" "+(eE?bZ:a9));if(eo==="stage"){ey("load")}else{if(eu.thumbratio===bz||!eu.thumbratio&&ek.thumbratio===bz){eu.thumbratio=eF.measures.ratio;dn()}}},0)}if(!ew){eB();return}function ez(){var eK=10;bU(function(){return !cP||!eK--&&!ba},function(){eC()})}if(!bS.Fotorama.cache[ew]){bS.Fotorama.cache[ew]="*";ex.on("load",ez).on("error",eB)}else{(function eH(){if(bS.Fotorama.cache[ew]==="error"){eB()}else{if(bS.Fotorama.cache[ew]==="loaded"){setTimeout(ez,0)}else{setTimeout(eH,100)}}})()}es.state="";eJ.src=ew})}function ea(em){cQ.append(dm.spin().el).appendTo(em)}function dU(){cQ.detach();dm&&dm.stop()}function eg(){var em=cv[bn];if(em&&!em.data().state){ea(em);em.on("f:load f:error",function(){em.off("f:load f:error");dU()})}}function cM(em){a(em,dl);bF(em,function(){setTimeout(function(){bQ(ci)},0);db({time:c0,guessIndex:bS(this).data().eq,minMax:dW})})}function dc(em,en){cf(em,en,function(eq,eo,eu,es,ep,er){if(es){return}es=eu[ep]=cY[ep].clone();er=es.data();er.data=eu;var et=es[0];if(en==="stage"){if(eu.html){bS('<div class="'+a5+'"></div>').append(eu._html?bS(eu.html).removeAttr("id").html(eu._html):eu.html).appendTo(es)}eu.caption&&bS(Z(a7,Z(aB,eu.caption))).appendTo(es);eu.video&&es.addClass(l).append(dB.clone());bF(et,function(){setTimeout(function(){bQ(dT)},0);el({index:er.eq,user:true})});dp=dp.add(es)}else{if(en==="navDot"){cM(et);cr=cr.add(es)}else{if(en==="navThumb"){cM(et);er.$wrap=es.children(":first");cg=cg.add(es);if(eu.video){er.$wrap.append(dB.clone())}}}}})}function cb(eo,en,ep,em){return eo&&eo.length&&T(eo,en,ep,em)}function cS(em){cf(em,"stage",function(eq,et,ep,eo,ev,eu){if(!eo){return}var es=dz(et),en=ep.fit||ek.fit,er=ep.position||ek.position;eu.eq=es;cN[bn][es]=eo.css(bS.extend({left:cA?0:aZ(et,d6.w,ek.margin,ed)},cA&&b1(0)));if(a6(eo[0])){eo.appendTo(ei);dk(ep.$video)}cb(eu.$img,d6,en,er);cb(eu.$full,d6,en,er)})}function dF(ep,em){if(dX!=="thumbs"||isNaN(ep)){return}var en=-ep,eo=-ep+d6.nw;cg.each(function(){var ew=bS(this),et=ew.data(),es=et.eq,ev=function(){return{h:ef,w:et.w}},eu=ev(),ey=cs[es]||{},ex=ey.thumbfit||ek.thumbfit,er=ey.thumbposition||ek.thumbposition;eu.w=et.w;if(et.l+et.w<en||et.l>eo||cb(et.$img,eu,ex,er)){return}em&&d7([es],"navThumb",ev,ex,er)})}function cH(em,eq,en){if(!cH[en]){var ep=en==="nav"&&df,eo=0;eq.append(em.filter(function(){var ev,eu=bS(this),es=eu.data();for(var et=0,er=cs.length;et<er;et++){if(es.data===cs[et]){ev=true;es.eq=et;break}}return ev||eu.remove()&&false}).sort(function(es,er){return bS(es).data().eq-bS(er).data().eq}).each(function(){if(!ep){return}var es=bS(this),er=es.data(),et=Math.round(ef*er.data.thumbratio)||dM;er.l=eo;er.w=et;es.css({width:et});eo+=et+ek.thumbmargin}));cH[en]=true}}function dy(em){return em-c5>d6.w/3}function b7(em){return !ck&&(!(dN+em)||!(dN-cT+em))&&!cU}function d0(){var en=b7(0),em=b7(1);cJ.toggleClass(E,en).attr(ac(en));du.toggleClass(E,em).attr(ac(em))}function dE(){if(co.ok){co.prevent={"<":b7(0),">":b7(1)}}}function cw(ep){var en=ep.data(),eo,em;if(df){eo=en.l;em=en.w}else{eo=ep.position().left;em=ep.width()}return{c:eo+em/2,min:-eo+ek.thumbmargin*10,max:-eo+d6.w-em-ek.thumbmargin*10}}function dw(en){var em=cv[cl].data();z(ej,{time:en*1.2,pos:em.l,width:em.w-ek.thumbborderwidth*2})}function db(ep){var eo=cs[ep.guessIndex][cl];if(eo){var eq=dW.min!==dW.max,en=ep.minMax||eq&&cw(cv[cl]),em=eq&&(ep.keep&&db.l?db.l:a3((ep.coo||d6.nw/2)-cw(eo).c,en.min,en.max)),es=eq&&a3(em,dW.min,dW.max),er=ep.time*1.1;z(cq,{time:er,pos:es||0,onEnd:function(){dF(es,true)}});c1(ci,bi(es,dW.min,dW.max));db.l=em}}function ch(){c4(cl);cV[cl].push(cv[cl].addClass(aV))}function c4(en){var em=cV[en];while(em.length){em.shift().removeClass(aV)}}function d9(en){var em=cN[en];bS.each(dS,function(ep,eo){delete em[dz(eo)]});bS.each(em,function(eo,ep){delete em[eo];ep.detach()})}function dD(en){ed=c2=dN;var em=cv[bn];if(em){c4(bn);cV[bn].push(em.addClass(aV));en||cZ.show.onEnd(true);aT(ei,0,true);d9(bn);cS(dS);d2();c8()}}function cB(en,em){if(!en){return}bS.each(em,function(eo,ep){if(!ep){return}bS.extend(ep,{width:en.width||ep.width,height:en.height,minwidth:en.minwidth,maxwidth:en.maxwidth,minheight:en.minheight,maxheight:en.maxheight,ratio:bf(en.ratio)})})}function d4(en,em){dx.trigger(ae+":"+en,[cZ,em])}function ec(){clearTimeout(c7.t);cP=1;
4if(ek.stopautoplayontouch){cZ.stopAutoplay()}else{dJ=true}}function c7(){if(!cP){return}if(!ek.stopautoplayontouch){cW();dQ()}c7.t=setTimeout(function(){cP=0},a1+b3)}function cW(){dJ=!!(cU||dI)}function dQ(){clearTimeout(dQ.t);bU.stop(dQ.w);if(!ek.autoplay||dJ){if(cZ.autoplay){cZ.autoplay=false;d4("stopautoplay")}return}if(!cZ.autoplay){cZ.autoplay=true;d4("startautoplay")}var en=dN;var em=cv[bn].data();dQ.w=bU(function(){return em.state||en!==dN},function(){dQ.t=setTimeout(function(){if(dJ||en!==dN){return}var eo=di,ep=cs[eo][bn].data();dQ.w=bU(function(){return ep.state||eo!==di},function(){if(dJ||eo!==di){return}cZ.show(ck?au(!ds):di)})},ek.autoplay)})}cZ.startAutoplay=function(em){if(cZ.autoplay){return this}dJ=dI=false;d1(em||ek.autoplay);dQ();return this};cZ.stopAutoplay=function(){if(cZ.autoplay){dJ=dI=true;dQ()}return this};cZ.show=function(ew){var eq;if(typeof ew!=="object"){eq=ew;ew={}}else{eq=ew.index}eq=eq===">"?c2+1:eq==="<"?c2-1:eq==="<<"?0:eq===">>"?cT-1:eq;eq=isNaN(eq)?a2(eq,cs,true):eq;eq=typeof eq==="undefined"?dN||0:eq;cZ.activeIndex=dN=cC(eq);ca=eh(dN);cK=cp(dN);di=dz(dN+(ds?-1:1));dS=[dN,ca,cK];c2=ck?eq:dN;var eo=Math.abs(cO-c2),en=bc(ew.time,function(){return Math.min(c0*(1+(eo-1)/12),c0*2)}),et=ew.overPos;if(ew.slow){en*=10}var eu=cv;cZ.activeFrame=cv=cs[dN];var er=eu===cv&&!ew.user;dk(cU,cv.i!==cs[dz(ed)].i);dc(dS,"stage");cS(ba?[c2]:[c2,eh(c2),cp(c2)]);dL("go",true);er||d4("show",{user:ew.user,time:en});dJ=true;var em=cZ.show.onEnd=function(ex){if(em.ok){return}em.ok=true;ex||dD(true);if(!er){d4("showend",{user:ew.user})}if(!ex&&dY&&dY!==ek.transition){cZ.setOptions({transition:dY});dY=false;return}eg();d7(dS,"stage");dL("go",false);dE();da();cW();dQ()};if(!cA){z(ei,{pos:-aZ(c2,d6.w,ek.margin,ed),overPos:et,time:en,onEnd:em})}else{var ep=cv[bn],es=dN!==cO?cs[cO][bn]:null;ao(ep,es,dp,{time:en,method:ek.transition,onEnd:em},dR)}d0();if(dX){ch();var ev=dd(dN+a3(c2-cO,-1,1));db({time:en,coo:ev!==dN&&ew.coo,guessIndex:typeof ew.coo!=="undefined"?ev:dN,keep:er});if(df){dw(en)}}dq=typeof cO!=="undefined"&&cO!==dN;cO=dN;ek.hash&&dq&&!cZ.eq&&aw(cv.id||dN+1);return this};cZ.requestFullScreen=function(){if(dC&&!cZ.fullScreen){cx=a8.scrollTop();dP=a8.scrollLeft();bQ(a8);dL("x",true);dg=bS.extend({},d6);dx.addClass(K).appendTo(G.addClass(bB));P.addClass(bB);dk(cU,true,true);cZ.fullScreen=true;if(dj){bw.request(dK)}cZ.resize();d7(dS,"stage");eg();d4("fullscreenenter")}return this};function c6(){if(cZ.fullScreen){cZ.fullScreen=false;if(r){bw.cancel(dK)}G.removeClass(bB);P.removeClass(bB);dx.removeClass(K).insertAfter(dH);d6=bS.extend({},dg);dk(cU,true,true);dL("x",false);cZ.resize();d7(dS,"stage");bQ(a8,dP,cx);d4("fullscreenexit")}}cZ.cancelFullScreen=function(){if(dj&&bw.is()){bw.cancel(k)}else{c6()}return this};cZ.toggleFullScreen=function(){return cZ[(cZ.fullScreen?"cancel":"request")+"FullScreen"]()};C(k,bw.event,function(){if(cs&&!bw.is()&&!cU){c6()}});cZ.resize=function(eo){if(!cs){return this}var er=arguments[1]||0,en=arguments[2];cB(!cZ.fullScreen?bu(eo):{width:"100%",maxwidth:null,minwidth:null,height:"100%",maxheight:null,minheight:null},[d6,en||cZ.fullScreen||ek]);var eq=d6.width,em=d6.height,ep=d6.ratio,es=a8.height()-(dX?ci.height():0);if(s(eq)){cY.addClass(av).css({width:eq,minWidth:d6.minwidth||0,maxWidth:d6.maxwidth||bE});eq=d6.W=d6.w=cY.width();d6.nw=dX&&d(ek.navwidth,eq)||eq;if(ek.glimpse){d6.w-=Math.round((d(ek.glimpse,eq)||0)*2)}ei.css({width:d6.w,marginLeft:(d6.W-d6.w)/2});em=d(em,es);em=em||(ep&&eq/ep);if(em){eq=Math.round(eq);em=d6.h=Math.round(a3(em,d(d6.minheight,es),d(d6.maxheight,es)));dT.stop().animate({width:eq,height:em},er,function(){cY.removeClass(av)});dD();if(dX){ci.stop().animate({width:d6.nw},er);db({guessIndex:dN,time:er,keep:true});if(df&&cH.nav){dw(er)}}c9=en||true;ct()}}c5=dT.offset().left;return this};cZ.setOptions=function(em){bS.extend(ek,em);dn();return this};cZ.shuffle=function(){cs&&az(cs)&&dn();return this};function c1(em,en){if(i){em.removeClass(Q+" "+aH);en&&!cU&&em.addClass(en.replace(/^|\s/g," "+bt+"--"))}}cZ.destroy=function(){cZ.cancelFullScreen();cZ.stopAutoplay();cs=cZ.data=null;d5();dS=[];d9(bn);dn.ok=false;return this};cZ.playVideo=function(){var eo=cv,em=eo.video,en=dN;if(typeof em==="object"&&eo.videoReady){dj&&cZ.fullScreen&&cZ.cancelFullScreen();bU(function(){return !bw.is()||en!==dN},function(){if(en===dN){eo.$video=eo.$video||bS(bS.Fotorama.jst.video(em));eo.$video.appendTo(eo[bn]);cY.addClass(bm);cU=eo.$video;cX();cc.blur();d3.blur();d4("loadvideo")}})}return this};cZ.stopVideo=function(){dk(cU,true,true);return this};function dk(em,eo,en){if(eo){cY.removeClass(bm);cU=false;cX()}if(em&&em!==cU){em.remove();d4("unloadvideo")}if(en){cW();dQ()}}function ee(em){cY.toggleClass(N,em)}function da(eo){if(cn.flow){return}var em=eo?eo.pageX:da.x,en=em&&!b7(dy(em))&&ek.click;
4if(da.p!==en&&dT.toggleClass(bx,en)){da.p=en;da.x=em}}dT.on("mousemove",da);function el(em){clearTimeout(el.t);if(ek.clicktransition&&ek.clicktransition!==ek.transition){setTimeout(function(){var en=ek.transition;cZ.setOptions({transition:ek.clicktransition});dY=en;el.t=setTimeout(function(){cZ.show(em)},10)},0)}else{cZ.show(em)}}function dV(ep,en){var eo=ep.target,em=bS(eo);if(em.hasClass(R)){cZ.playVideo()}else{if(eo===dh){cZ.toggleFullScreen()}else{if(cU){eo===ce&&dk(cU,true,true)}else{if(en){ee()}else{if(ek.click){el({index:ep.shiftKey||au(dy(ep._x)),slow:ep.altKey,user:true})}}}}}}function dL(em,en){cn[em]=dW[em]=en}cn=am(ei,{onStart:ec,onMove:function(en,em){c1(dT,em.edge)},onTouchEnd:c7,onEnd:function(em){c1(dT);var eo=(aR&&!cE||em.touch)&&ek.arrows&&ek.arrows!=="always";if(em.moved||(eo&&em.pos!==em.newPos&&!em.control)){var en=bs(em.newPos,d6.w,ek.margin,ed);cZ.show({index:en,time:cA?c0:em.time,overPos:em.overPos,user:true})}else{if(!em.aborted&&!em.control){dV(em.startEvent,eo)}}},timeLow:1,timeHigh:1,friction:2,select:"."+a0+", ."+a0+" *",$wrap:dT});dW=am(cq,{onStart:ec,onMove:function(en,em){c1(ci,em.edge)},onTouchEnd:c7,onEnd:function(em){function en(){db.l=em.newPos;cW();dQ();dF(em.newPos,true)}if(!em.moved){var eo=em.$target.closest("."+aC,cq)[0];eo&&dl.call(eo,em.startEvent)}else{if(em.pos!==em.newPos){dJ=true;z(cq,{time:em.time,pos:em.newPos,overPos:em.overPos,onEnd:en});dF(em.newPos);i&&c1(ci,bi(em.newPos,dW.min,dW.max))}else{en()}}},timeLow:0.5,timeHigh:2,friction:5,$wrap:ci});co=o(dT,{shift:true,onEnd:function(en,em){ec();c7();cZ.show({index:em,slow:en.altKey})}});cD=o(ci,{onEnd:function(eo,en){ec();c7();var em=aT(cq)+en*0.25;cq.css(bY(a3(em,dW.min,dW.max)));i&&c1(ci,bi(em,dW.min,dW.max));cD.prevent={"<":em>=dW.max,">":em<=dW.min};clearTimeout(cD.t);cD.t=setTimeout(function(){db.l=em;dF(em,true)},b3);dF(em)}});cY.hover(function(){setTimeout(function(){if(cP){return}ee(!(cE=true))},0)},function(){if(!cE){return}ee(!(cE=false))});function dl(en){var em=bS(this).data().eq;el({index:em,slow:en.altKey,user:true,coo:en._x-ci.offset().left})}function cG(em){el({index:cc.index(this)?">":"<",slow:em.altKey,user:true})}w(cc,function(em){M(em);cG.call(this,em)},{onStart:function(){ec();cn.control=true},onTouchEnd:c7});function c3(em){bF(em,function(){setTimeout(function(){bQ(dT)},0);ee(false)})}cc.each(function(){a(this,function(em){cG.call(this,em)});c3(this)});a(dh,cZ.toggleFullScreen);c3(dh);function dn(){d8();dA();if(!dn.i){dn.i=true;var em=ek.startindex;if(em||ek.hash&&aU.hash){cj=a2(em||aU.hash.replace(/^#/,""),cs,cZ.index===0||em,em)}dN=ed=c2=cO=cj=cC(cj)||0}if(cT){if(cL()){return}if(cU){dk(cU,true)}dS=[];d9(bn);dn.ok=true;cZ.show({index:dN,time:0});cZ.resize()}else{cZ.destroy()}}function cL(){if(!cL.f===ds){cL.f=ds;dN=cT-1-dN;cZ.reverse();return true}}bS.each("load push pop shift unshift reverse sort splice".split(" "),function(em,en){cZ[en]=function(){cs=cs||[];if(en!=="load"){Array.prototype[en].apply(cs,arguments)}else{if(arguments[0]&&typeof arguments[0]==="object"&&arguments[0].length){cs=bA(arguments[0])}}dn();return cZ}});function ct(){if(!ct.ok){ct.ok=true;d4("ready")}}dn()};bS.fn.fotorama=function(i){return this.each(function(){var b9=this,b8=bS(this),b7=b8.data(),ca=b7.fotorama;if(!ca){bU(function(){return !U(b9)},function(){b7.urtext=b8.html();new bS.Fotorama(b8,bS.extend({},O,bh.fotoramaDefaults,i,b7))})}else{ca.setOptions(i,true)}})};bS.Fotorama.instances=[];function bX(){bS.each(bS.Fotorama.instances,function(b7,i){i.index=b7})}function B(i){bS.Fotorama.instances.push(i);bX()}function ar(i){bS.Fotorama.instances.splice(i.index,1);bX()}bS.Fotorama.cache={};bS.Fotorama.measures={};bS=bS||{};bS.Fotorama=bS.Fotorama||{};bS.Fotorama.jst=bS.Fotorama.jst||{};bS.Fotorama.jst.style=function(b7){var i,b9="",b8=br.escape;b9+=".fotorama"+((i=(b7.s))==null?"":i)+" .fotorama__nav--thumbs .fotorama__nav__frame{\npadding:"+((i=(b7.m))==null?"":i)+"px;\nheight:"+((i=(b7.h))==null?"":i)+"px}\n.fotorama"+((i=(b7.s))==null?"":i)+" .fotorama__thumb-border{\nheight:"+((i=(b7.h-b7.b*(b7.q?0:2)))==null?"":i)+"px;\nborder-width:"+((i=(b7.b))==null?"":i)+"px;\nmargin-top:"+((i=(b7.m))==null?"":i)+"px}";return b9};bS.Fotorama.jst.video=function(b9){var b7,cb="",ca=br.escape,i=Array.prototype.join;function b8(){cb+=i.call(arguments,"")}cb+='<div class="fotorama__video"><iframe src="';b8((b9.type=="youtube"?b9.p+"youtube.com/embed/"+b9.id+"?autoplay=1":b9.type=="vimeo"?b9.p+"player.vimeo.com/video/"+b9.id+"?autoplay=1&badge=0":b9.id)+(b9.
4s&&b9.type!="custom"?"&"+b9.s:""));cb+='" frameborder="0" allowfullscreen></iframe></div>\n';return cb};bS(function(){bS("."+ae+':not([data-auto="false"])').fotorama()})})(window,document,location,typeof jQuery!=="undefined"&&jQuery);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.