/* Standalone (no jQuery) lightweight Lightbox implementation with minimal CSS3 animations Based on and mostly compatible with Slimbox2 (c) 2012+ Vitaliy Filippov MIT-style license. Version 2015-05-01 */ window.addListener = (function() { return window.addEventListener ? function(el, type, fn) { el.addEventListener(type, fn, false); } : function(el, type, fn) { el.attachEvent('on'+type, fn); }; })(); window.removeListener = (function() { return window.removeEventListener ? function(el, type, fn) { el.removeEventListener(type, fn, false); } : function(el, type, fn) { el.detachEvent('on'+type, fn); }; })(); addListener(window, 'load', function() { // Global variables, accessible to Slimbox only var options, images, activeImage = -1, activeURL, prevImage, nextImage, noFixed, middle, centerWidth, centerHeight, ie6 = !window.XMLHttpRequest, hiddenElements = [], els = {}, css, keyActions, // Preload images preload = {}, preloadPrev = new Image(), preloadNext = new Image(); // Initialization // Append the Slimbox HTML code at the bottom of the document var d = document.createElement('div'); d.innerHTML = ''+ '