';$body.appendChild($modal);$modalImage = $('#' + this.id + '-modal img');$modalImage.addEventListener('load', function() {window.setTimeout(function() {if (!$modal.classList.contains('visible'))return;$modal.classList.add('loaded');}, 275);});$modal.show = function(href) {if (_this.locked)return;_this.locked = true;$modalImage.src = href;$modal.classList.add('visible');$modal.focus();window.setTimeout(function() {_this.locked = false;}, 600);};$modal.hide = function() {if (_this.locked)return;if (!$modal.classList.contains('visible'))return;_this.locked = true;$modal.classList.remove('visible');$modal.classList.remove('loaded');window.setTimeout(function() {$modalImage.src = '';_this.locked = false;$body.focus();}, 600);};$modal.addEventListener('click', function(event) {$modal.hide();});$modal.addEventListener('keydown', function(event) {if (event.keyCode == 27)$modal.hide();});this.$modal = $modal;};lightboxGallery.prototype.initLinks = function() {var _this = this;for (i=0; i < this.$links.length; i++)this.$links[i].addEventListener('click', function(event) {event.stopPropagation();event.preventDefault();_this.show(this.href);});};lightboxGallery.prototype.show = function(href) {this.$modal.show(href);};new lightboxGallery('gallery09');new lightboxGallery('gallery02');new lightboxGallery('gallery03');new lightboxGallery('gallery04');new lightboxGallery('gallery05');new lightboxGallery('gallery01');new lightboxGallery('gallery07');new lightboxGallery('gallery08');new lightboxGallery('gallery06');