/*! formstone v0.8.29 [lightbox.js] 2015-11-25 | MIT License | formstone.it */ !function(a,b,c){"use strict";function d(){W=b.$body,X=a("html, body")}function e(){Y&&j()}function f(a){this.on(S.click,a,i)}function g(){k(),this.off(S.namespace)}function h(b,c){b instanceof a&&i.apply(U,[{data:a.extend(!0,{},{$object:b},P,c||{})}])}function i(c){if(!Y){var d=c.data,e=d.$el,f=d.$object,g=e&&e[0].href?e[0].href||"":"",h=e&&e[0].hash?e[0].hash||"":"",i=(g.toLowerCase().split(".").pop().split(/\#|\?/),e?e.data(O+"-type"):""),j="image"===i||g.match(d.fileTypes)||"data:image"===g.substr(0,10),l=M(g),m="url"===i||!j&&!l&&"http"===g.substr(0,4)&&!h,o="element"===i||!j&&!l&&!m&&"#"===h.substr(0,1),q="undefined"!=typeof f;if(o&&(g=h),!(j||l||m||o||q))return;if(T.killEvent(c),Y=a.extend({},{visible:!1,gallery:{active:!1},isMobile:b.isMobile||d.mobile,isTouch:b.support.touch,isAnimating:!0,oldContentHeight:0,oldContentWidth:0},d),Y.touch=d.touch&&Y.isMobile&&Y.isTouch,Y.margin*=2,Y.type=j?"image":l?"video":"element",j||l){var r=e.data(O+"-gallery");r&&(Y.gallery.active=!0,Y.gallery.id=r,Y.gallery.$items=a("a[data-lightbox-gallery= "+Y.gallery.id+"], a[rel= "+Y.gallery.id+"]"),Y.gallery.index=Y.gallery.$items.index(Y.$el),Y.gallery.total=Y.gallery.$items.length-1)}var t="";Y.isMobile||(t+='
');var u=[Q.raw.base,Q.raw.loading,Q.raw.animating,Y.customClass];Y.fixed&&u.push(Q.raw.fixed),Y.isMobile&&u.push(Q.raw.mobile),Y.isTouch&&u.push(Q.raw.touch),m&&u.push(Q.raw.iframed),(o||q)&&u.push(Q.raw.inline),t+=''+b+"
":""}function s(b){Y.hasScaled=!1,Y.$imageContainer=a('Error Loading Resource