(function() { var mobile = (/iphone|ipod|android|blackberry|mini|windows\sce|palm/i.test(navigator.userAgent.toLowerCase())); var ipad = (/ipad/i.test(navigator.userAgent.toLowerCase())); var t = function(str, data) { // template helper for (var i in data) { str = str.replace(new RegExp('{ ' + i + ' }', 'g'), data[i]); } return str; } // Global options var options = { user: 'user23', album: 'dinamo--lnz--10-foto--yuyurev', title: 'Динамо — ЛНЗ — 1:0. Фото — Ю.Юрьев', base_url: 'https://photo.torba.com', css_url: 'https://photo.torba.com/media/lightbox2/light.css?v1', default_size: '128', preview_size: 128, preview_css: 'display:inline; margin:0 3px 0 0; border:1px solid #ccc;', image_size: 1000, image_crop_type: (false) ? 'c': 'f', popup_html: '\u0009\u0009\u003Cdiv id\u003D\u0022torba\u002Dfader\u0022\u003E\u003C/div\u003E\u000A\u0009\u0009\u003Cdiv id\u003D\u0022torba\u002Dlightbox\u0022\u003E\u000A\u0009\u0009\u0009\u003Cdiv class\u003D\u0022torba\u002Dlightbox\u002Dside\u002Dwrap\u0022\u003E\u000A\u0009\u0009\u0009\u0009\u003Cdiv class\u003D\u0022torba\u002Dlightbox\u002Dside\u0022\u003E\u000A\u0009\u0009\u0009\u0009\u0009\u003Cdiv class\u003D\u0022torba\u002Dlightbox\u002Dside\u002Dcont\u0022\u003E\u000A\u0009\u0009\u0009\u0009\u0009\u0009\u003Ca class\u003D\u0022torba\u002Dlightbox\u002Dclose\u0022\u003E\u003C/a\u003E\u000A\u0009\u0009\u0009\u0009\u0009\u0009\u003Cspan class\u003D\u0022torba\u002Dlightbox\u002Dimg\u002Dnum\u0022\u003E\u003C/span\u003E\u000A\u0009\u0009\u0009\u0009\u0009\u0009\u003Cdiv class\u003D\u0022torba\u002Dlightbox\u002Dtitle\u0022\u003E\u003C/div\u003E\u000A\u0009\u0009\u0009\u0009\u0009\u0009\u003Cdiv class\u003D\u0022torba\u002Dlightbox\u002Ddescr\u0022\u003E\u003C/div\u003E\u000A\u0009\u0009\u0009\u0009\u0009\u003C/div\u003E\u000A\u0009\u0009\u0009\u0009\u0009\u003Cdiv class\u003D\u0022torba\u002Dlightbox\u002Dbanner\u0022\u003E\u000A\u0009\u0009\u0009\u0009\u0009\u0009\u003Ciframe id\u003D\u0022torba\u002Dlightbox\u002Diframe\u0022 style\u003D\u0022border: 0\u003B\u0022 width\u003D\u0022300\u0022 height\u003D\u0022610\u0022 src\u003D\u0022https://photo.torba.com/media/lightbox2/banner.html\u0022\u003E\u003C/iframe\u003E\u000A\u0009\u0009\u0009\u0009\u0009\u003C/div\u003E\u000A\u0009\u0009\u0009\u0009\u003C/div\u003E\u000A\u0009\u0009\u0009\u003C/div\u003E\u000A\u0009\u0009\u0009\u003Cdiv class\u003D\u0022torba\u002Dlightbox\u002Dcont\u002Dwrap\u0022\u003E\u000A\u0009\u0009\u0009\u0009\u003Cdiv class\u003D\u0022torba\u002Dlightbox\u002Dcont\u0022\u003E\u000A\u0009\u0009\u0009\u0009\u0009\u003Cimg id\u003D\u0022torba\u002Dlightbox\u002Dimage\u0022 src\u003D\u0022\u0022 alt\u003D\u0022\u0022 /\u003E\u000A\u000A\u0009\u0009\u0009\u0009\u0009\u003Cdiv class\u003D\u0022torba\u002Dlightbox\u002Dnav\u002Dwrap\u0022\u003E\u000A\u0009\u0009\u0009\u0009\u0009\u0009\u003Cdiv class\u003D\u0022torba\u002Dlightbox\u002Dnav\u0022\u003E\u000A\u0009\u0009\u0009\u0009\u0009\u0009\u0009\u003Cspan class\u003D\u0022torba\u002Dlightbox\u002Dnav\u002Dleft\u0022\u003E\u000A\u0009\u0009\u0009\u0009\u0009\u0009\u0009\u0009\u003Cspan class\u003D\u0022torba\u002Dlightbox\u002Dnav\u002Dleft\u002Dshad\u0022\u003E\u000A\u0009\u0009\u0009\u0009\u0009\u0009\u0009\u0009\u0009\u003Cspan class\u003D\u0022torba\u002Dlightbox\u002Dnav\u002Dleft\u002Dimg\u0022\u003E\u003C/span\u003E\u000A\u0009\u0009\u0009\u0009\u0009\u0009\u0009\u0009\u003C/span\u003E\u000A\u0009\u0009\u0009\u0009\u0009\u0009\u0009\u003C/span\u003E\u000A\u0009\u0009\u0009\u0009\u0009\u0009\u0009\u003Cspan class\u003D\u0022torba\u002Dlightbox\u002Dnav\u002Dright\u0022\u003E\u000A\u0009\u0009\u0009\u0009\u0009\u0009\u0009\u0009\u003Cspan class\u003D\u0022torba\u002Dlightbox\u002Dnav\u002Dright\u002Dshad\u0022\u003E\u000A\u0009\u0009\u0009\u0009\u0009\u0009\u0009\u0009\u0009\u003Cspan class\u003D\u0022torba\u002Dlightbox\u002Dnav\u002Dright\u002Dimg\u0022\u003E\u003C/span\u003E\u000A\u0009\u0009\u0009\u0009\u0009\u0009\u0009\u0009\u003C/span\u003E\u000A\u0009\u0009\u0009\u0009\u0009\u0009\u0009\u003C/span\u003E\u000A\u0009\u0009\u0009\u0009\u0009\u0009\u003C/div\u003E\u000A\u0009\u0009\u0009\u0009\u0009\u003C/div\u003E\u000A\u0009\u0009\u0009\u0009\u003C/div\u003E\u000A\u0009\u0009\u0009\u003C/div\u003E\u000A\u0009\u0009\u003C/div\u003E\u000A', url_template: 'user23/dinamo--lnz--10-foto--yuyurev/photo{ number }', url_re: new RegExp('(user\\d+)\/([\\w-]+)\/photo(\\d+)') } // append album container after script document.write(t( '
', {user: options.user, album: options.album} )); // TorbaAlbum class var TorbaAlbum = function(options) { var self = this; self.options = options; self.album_name = self.options.user + '-' + self.options.album; self.init(); } TorbaAlbum.prototype.init = function() { var self = this; // init album container & album wrapper self.album = $('#' + self.album_name); self.album.css({ width: '100%', overflow: 'hidden', margin:'10px 0', position: 'relative' }); self.album_inner = $('div.torba-album-inner', self.album); if (!self.album_inner.length) { self.album.append(''); self.album_inner = $('div.torba-album-inner', self.album); } self.parse([["/images/shurikdk/c128/mlpf4wSTq9bVeDqkrYKS.jpg", ""],["/images/shurikdk/c128/xg9w8JecXoQPYaSsXvPD.jpg", ""],["/images/shurikdk/c128/5czAOBOEgF0RPz4HqfI4.jpg", ""],["/images/shurikdk/c128/VLDcSRtwBDUfVg0ibhqx.jpg", ""],["/images/shurikdk/c128/Eb8zSGN7QoffyRHiX0cf.jpg", ""],["/images/shurikdk/c128/lcDaAgEPlsnkcbs56nN5.jpg", ""],["/images/shurikdk/c128/5nZBsIaNXlSQorVlpRBB.jpg", ""],["/images/shurikdk/c128/pCiCfehi5knTmpV0Ja6D.jpg", ""],["/images/shurikdk/c128/MB7tegbKtoKGRRciKbya.jpg", ""],["/images/shurikdk/c128/lyHPvG68gQNHsfwyhZYc.jpg", ""],["/images/shurikdk/c128/4A1h7uUydOSRTZ9SRc59.jpg", ""],["/images/shurikdk/c128/H4TOhHcYWbw1vgZP0RB8.jpg", ""],["/images/shurikdk/c128/n7Ox6DsbY7h53sbDEf9A.jpg", ""],["/images/shurikdk/c128/SuorDGIeeVID3VuZ7jCU.jpg", ""],["/images/shurikdk/c128/v8T7vDkGmzg2Ed2Mmn4f.jpg", ""],["/images/shurikdk/c128/pOQyvMee9guk0mHiuVUE.jpg", ""],["/images/shurikdk/c128/0eSMWvtwm7qZMeMXN4kq.jpg", ""],["/images/shurikdk/c128/mFplTdaJNhkMr4Pz0EkR.jpg", ""],["/images/shurikdk/c128/nBXyiBQh2X80X0rgFuln.jpg", ""],["/images/shurikdk/c128/sYeABtwR0DfKj2qmNSPv.jpg", ""],["/images/shurikdk/c128/X4DmysaCPvx2Oog0FeyW.jpg", ""],["/images/shurikdk/c128/bJiNVplLtmOiK1du2dK7.jpg", ""],["/images/shurikdk/c128/Ufxe4pDX70d5gSl0CBI3.jpg", ""],["/images/shurikdk/c128/YMh96lPG2BSnHJ2tgPSk.jpg", ""],["/images/shurikdk/c128/RoHIase2MsTyoHVLZW0V.jpg", ""],["/images/shurikdk/c128/2KyvtDc7CYU3dSzyhAym.jpg", ""],["/images/shurikdk/c128/ZXEl6HNh1L9hCakIkxKG.jpg", ""],["/images/shurikdk/c128/RTfwLEbHSlS9blF8cMAl.jpg", ""],["/images/shurikdk/c128/f1YXedTThnFHtBlhRO4N.jpg", ""],["/images/shurikdk/c128/EeY7IKYQocqu9V0WHU7o.jpg", ""],["/images/shurikdk/c128/NPmlPdJG8wqvCiwlih5h.jpg", ""],["/images/shurikdk/c128/l0vX5TT9uCaVFtI2dai5.jpg", ""],["/images/shurikdk/c128/8G08fNCAeW8HXeWyCD0A.jpg", ""],["/images/shurikdk/c128/XXeWK4qSYXW1NyzcBWXz.jpg", ""],["/images/shurikdk/c128/bXD8KW1aVHyjgNjvo0vM.jpg", ""],["/images/shurikdk/c128/lMVI2hZ0ub8q5r9FtqLd.jpg", ""],["/images/shurikdk/c128/2jMTzWDBM6BZK4UAVHMN.jpg", ""],["/images/shurikdk/c128/ZETCYZKbyloUhiV796no.jpg", ""],["/images/shurikdk/c128/Jx9QxJdXdn8CIrxo3ZFU.jpg", ""],["/images/shurikdk/c128/LEdxdenYBkT4amXAnDOn.jpg", ""],["/images/shurikdk/c128/WjyzagUR7J0DjzDXmLRg.jpg", ""],["/images/shurikdk/c128/UuTsNCy4vFFR0bEKZmKY.jpg", ""],["/images/shurikdk/c128/Xvuq1XPxetbeVYO1peSo.jpg", ""],["/images/shurikdk/c128/TA1h3CAhnEQyQUpcJNuf.jpg", ""]]); } TorbaAlbum.prototype.parse = function(photos) { var self = this; var photos_html = ''; var re = new RegExp('c' + self.options.default_size); var preview_size = 'c' + self.options.preview_size; var image_size = self.options.image_crop_type + self.options.image_size; var gallery_photos = []; // parse photos, generate html for (var i = 0; i < photos.length; i += 1) { // Task #6137 var photo = photos[i]; var title = ''; if (typeof(photo) != 'string') { title = photo[1]; photo = photo[0]; } var template = ' \