/*! formstone v0.8.35 [lightbox.js] 2015-12-28 | MIT License | formstone.it */ !function(a,b,c){"use strict";function d(){W=b.$body,X=a("html, body"),Y=b.window.location.hash.replace("#","")}function e(){$&&j()}function f(a){this.on(S.click,a,i);var b=this.data(O+"-gallery");!Z&&Y&&b===Y&&(Z=!0,this.trigger(S.click))}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(!$){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),$=a.extend({},{visible:!1,gallery:{active:!1},isMobile:b.isMobile||d.mobile,isTouch:b.support.touch,isAnimating:!0,oldContentHeight:0,oldContentWidth:0},d),$.touch=d.touch&&$.isMobile&&$.isTouch,$.margin*=2,$.type=j?"image":l?"video":"element",j||l){var r=e.data(O+"-gallery");r&&($.gallery.active=!0,$.gallery.id=r,$.gallery.$items=a("a[data-lightbox-gallery= "+$.gallery.id+"], a[rel= "+$.gallery.id+"]"),$.gallery.index=$.gallery.$items.index($.$el),$.gallery.total=$.gallery.$items.length-1)}var t="";$.isMobile||(t+='
');var u=[Q.raw.base,Q.raw.loading,Q.raw.animating,$.customClass];$.fixed&&u.push(Q.raw.fixed),$.isMobile&&u.push(Q.raw.mobile),$.isTouch&&u.push(Q.raw.touch),m&&u.push(Q.raw.iframed),(o||q)&&u.push(Q.raw.inline),t+=''+b+"
":""}function s(b){$.hasScaled=!1,$.$imageContainer=a('Error Loading Resource