(function() { window.addEventListener('resize', function(ev) { BLB.Images.vpW = BLB.getViewportWidth(); var thumbsCount = Math.floor(BLB.Images.vpW/BLB.Images.thumbWidth)-2; thumbsCount = (thumbsCount%2?thumbsCount:thumbsCount-1); if(thumbsCount != BLB.Images.thumbsCount) { for(var tmpThumbsCount=BLB.Images.thumbsCount;tmpThumbsCount<=thumbsCount;tmpThumbsCount+=2) { var thumbsHalfway = Math.ceil(tmpThumbsCount/2); if(BLB.Images.imgListHalfway-thumbsHalfway-BLB.Images.thumbDistance+1 >= 0) BLB.Images.prefetchThumbnail(BLB.Images.imgListHalfway-thumbsHalfway-BLB.Images.thumbDistance+1); if(BLB.Images.imgListHalfway+thumbsHalfway+BLB.Images.thumbDistance-1 < BLB.Images.imgList.length) BLB.Images.prefetchThumbnail(BLB.Images.imgListHalfway+thumbsHalfway+BLB.Images.thumbDistance-1); } BLB.Images.windowShift((thumbsCount-BLB.Images.thumbsCount)/2); BLB.Images.thumbsCount = thumbsCount; BLB.Images.setCarouselWindowWidth(); } }); BLB.Images = { currentThumb: null, currentImgId: null, thumbsCount: 0, thumbDistance: 3, thumbWidth: 69, imgListHalfway: 0, carouselClick: false, callBackStack: [], galleryName: "Snapboards", imgList: [1888,1889,1894,1891,1887,1890,1892,1884,1886,1896,1893,1900,1895,1902,1897,1898,1899,1901], cropped: {img_1888:'snapboard_exo_20_a.jpg',img_1889:'snapboard_exo_31_3_a.jpg',img_1894:'snapboard_job_38-39_a.jpg',img_1891:'snapboard_gen_19_1-38_a.jpg',img_1887:'snapboard_exo_18_10_a.jpg',img_1890:'snapboard_gen_18_25_a.jpg',img_1892:'snapboard_gen_25_8_a.jpg',img_1884:'snapboard_dan_5_29_a.jpg',img_1886:'snapboard_exo_14_4_a.jpg',img_1896:'snapboard_lev_10_3_a.jpg',img_1893:'snapboard_job_8_2_a.jpg',img_1900:'snapboard_mar_6_48_a.jpg',img_1895:'snapboard_job_42_4_a.jpg',img_1902:'snapboard_rev_8_13_a.jpg',img_1897:'snapboard_mar_4_35-41_a.jpg',img_1898:'snapboard_mar_5_1-20_a.jpg',img_1899:'snapboard_mar_6_7-29_a.jpg',img_1901:'snapboard_phl_1_6_a.jpg'}, thumbs: {img_1888:'snapboard_exo_20_b',img_1889:'snapboard_exo_31_3_b',img_1894:'snapboard_job_38-39_b',img_1891:'snapboard_gen_19_1-38_b',img_1887:'snapboard_exo_18_10_b',img_1890:'snapboard_gen_18_25_b',img_1892:'snapboard_gen_25_8_b',img_1884:'snapboard_dan_5_29_b',img_1886:'snapboard_exo_14_4_b',img_1896:'snapboard_lev_10_3_b',img_1893:'snapboard_job_8_2_b',img_1900:'snapboard_mar_6_48_b',img_1895:'snapboard_job_42_4_b',img_1902:'snapboard_rev_8_13_b',img_1897:'snapboard_mar_4_35-41_b',img_1898:'snapboard_mar_5_1-20_b',img_1899:'snapboard_mar_6_7-29_b',img_1901:'snapboard_phl_1_6_b'}, imgFull: {img_1888:'snapboard_exo_20.jpg',img_1889:'snapboard_exo_31_3.jpg',img_1894:'snapboard_job_38-39.jpg',img_1891:'snapboard_gen_19_1-38.jpg',img_1887:'snapboard_exo_18_10.jpg',img_1890:'snapboard_gen_18_25.jpg',img_1892:'snapboard_gen_25_8.jpg',img_1884:'snapboard_dan_5_29.jpg',img_1886:'snapboard_exo_14_4.jpg',img_1896:'snapboard_lev_10_3.jpg',img_1893:'snapboard_job_8_2.jpg',img_1900:'snapboard_mar_6_48.jpg',img_1895:'snapboard_job_42_4.jpg',img_1902:'snapboard_rev_8_13.jpg',img_1897:'snapboard_mar_4_35-41.jpg',img_1898:'snapboard_mar_5_1-20.jpg',img_1899:'snapboard_mar_6_7-29.jpg',img_1901:'snapboard_phl_1_6.jpg'}, imgPDF: {img_1888:'',img_1889:'',img_1894:'',img_1891:'',img_1887:'',img_1890:'',img_1892:'',img_1884:'',img_1886:'',img_1896:'',img_1893:'',img_1900:'',img_1895:'',img_1902:'',img_1897:'',img_1898:'',img_1899:'',img_1901:''}, titles: {img_1888:'Ten Commandments Found in Genesis',img_1889:'The Spirit of God',img_1894:'God\'s Dialogue with Job Retells All Six Days of Creation',img_1891:'Sodom & Gomorrah Imitates the Flood',img_1887:'Jethro is Strikingly Similar to Melchizedek',img_1890:'Abraham Quotes Elihu from the Job Story?',img_1892:'Abraham\'s Death is Described Almost Exactly Like Job\'s',img_1884:'Joseph & Daniel Exalted to Positions of Power',img_1886:'Hebrew Word for Harden = Glory',img_1896:'A Personal Relationship with God Demands Personal Holiness',img_1893:'Lessons in How Not to Counsel',img_1900:'Jesus Walking on Water & Job 9',img_1895:'Humbling Moment in Job',img_1902:'The Eagle from Isaiah Returns in Revelation',img_1897:'Jesus is the Jonah Jonah Never Was',img_1898:'Eyes of the Crowd on Christ',img_1899:'Jesus Sending & Herod Sending',img_1901:'Philippians 1:6 & the Creation of the World'}, paths: {img_1888:'snapboards',img_1889:'snapboards',img_1894:'snapboards',img_1891:'snapboards',img_1887:'snapboards',img_1890:'snapboards',img_1892:'snapboards',img_1884:'snapboards',img_1886:'snapboards',img_1896:'snapboards',img_1893:'snapboards',img_1900:'snapboards',img_1895:'snapboards',img_1902:'snapboards',img_1897:'snapboards',img_1898:'snapboards',img_1899:'snapboards',img_1901:'snapboards'}, imgKeywords: {img_1888:'10 Commandments',img_1889:'Spirit of God; tabernacle',img_1894:'creation; Job; Genesis',img_1891:'Sodom; Gomorrah; flood; Noah',img_1887:'Jethro; priest; blessing; deliverance; Melchizedek; Abraham; Abram',img_1890:'Abraham; Elihu; Job',img_1892:'Abraham; Job',img_1884:'Joseph; Daniel; Exalted; Power; Gold; Linen; Purple; Ruler',img_1886:'hardened; heart; Pharoah; Glory',img_1896:'holiness; Moses; Aaron; Nadab; Abihu',img_1893:'Job; great wind',img_1900:'Jesus',img_1895:'Job; ',img_1902:'eagle',img_1897:'Jesus; Jonah',img_1898:'Jesus; demons',img_1899:'Jesus; Herod Antipas; John the Baptist',img_1901:'creation; Jesus'}, imgScripture: {img_1888:'Gen 1-3; Exo 20:3, Gen 1:1; Exo 20:4-6; Gen 1:26, Exo 20:8-11; Gen 2:2; Exo 20:12; Gen 1:26; Exo 20:13; Gen 2:9; Exo 20:14; Gen 2:25; Gen 3:7; Exo 20:15; Gen 2:17; Gen 3:6,11; Exo 20:16; Gen 3:12-13; Exo 20:17; Gen 3:6',img_1889:'Gen 1:2; Exo 31:3',img_1894:'Gen 1:3; Job 38:19; Gen 1:14; Job 38:31-33; Gen 1:6; Job 38:8-11; Gen 1:20; Job 39:26-27; Gen 1:11; Job 38:25-27; Gen 1:24; Job 39:1,5,9; Gen 3:15',img_1891:'Gen 6:8; Gen 7:4; Gen 8:1; Gen 9:21; Gen 19:19; Gen 19:24; Gen 19:29; Gen 19:33',img_1887:'Gen 14:18; Exo 18:1; Gen 14:20; Exo 18:10',img_1890:'Gen 18:25; Job 34:10',img_1892:'Job 42:17; Gen 25:8',img_1884:'Dan 5:29, Gen 41:42-43',img_1886:'Exo 14:4; Exo 8:15; Exo 8:32; Exo 9:7 Exo 9:34; Exo 10:1; Exo 14:17-18',img_1896:'Lev 10:3',img_1893:'Job 8:1-2; Job 1:19',img_1900:'Job 9; Job 9:8; Job 9:11; Job 9:4,11; Mar 6:45-52; Mar 6:48; Mar 6:52',img_1895:'Job 38:3; Job 42:4',img_1902:'Isa 40:31; Rev 8:13; Exo 19:4',img_1897:'Jon 1:1-17; Jon 1:4; Jon 1:5; Jon 1:16; Mar 4:35-41; Mar 4:37; Mar 4:38; Mar 4:41',img_1898:'Mar 5:10; Mar 5:17',img_1899:'Mar 6:7; Mar 6:17,27',img_1901:'Phi 1:6; Gen 1-2; Gen 1:1, 4,10, 12, 18, 21, 25; Gen 2:1-2'}, imgDescription: {img_1888:'',img_1889:'',img_1894:'',img_1891:'',img_1887:'',img_1890:'',img_1892:'',img_1884:'',img_1886:'',img_1896:'',img_1893:'',img_1900:'',img_1895:'',img_1902:'',img_1897:'',img_1898:'',img_1899:'',img_1901:''}, init: function() { if(BLB.blbIsLoaded) { YEvent.delegate("imgCarousel", "click", BLB.Images.onClickHndlr, "div"); YEvent.delegate("imgParade", "click", BLB.Images.onClickHndlr, "div.imgParBrowse"); YEvent.delegate("imgBody", "click", BLB.Images.onClickHndlr, "div"); YEvent.delegate("imgBody", "click", BLB.Images.onClickHndlr, "img"); YEvent.delegate("imgShareLinks", "click", BLB.Images.onClickHndlr, "img"); YEvent.delegate("imgLegend", "click", BLB.Images.onClickHndlr, "a[class=imgpop]"); lftRtArrow = new KeyListener(document, {shift:false, ctrl:false, alt:false, keys:[BLB.keyCodes.leftArrow, BLB.keyCodes.rightArrow]}, function(ev, evA) { if(evA[1].target.tagName == 'INPUT') return false; if(evA[1].target.tagName == 'TEXTAREA') return false; if(BLB.Images.imgList.length > 1) { var currentImg = document.querySelector('#' + BLB.Images.currentImgId); switch(evA[0]) { case BLB.keyCodes.leftArrow: var nextState = BLB.Images.thumbs[currentImg.previousSibling.id]; BLB.Images.historyNavigate(nextState); break; case BLB.keyCodes.rightArrow: var nextState = BLB.Images.thumbs[currentImg.nextSibling.id]; BLB.Images.historyNavigate(nextState); break; default: break; }; } }, 'keydown'); lftRtArrow.enable(); window.addEventListener('popstate', BLB.Images.popstateEventHandler); var state = BLB.Images.getBookmarkedState(); if(state.toLowerCase() == 'imagedisplay' && document.location.hash != '') { var h = document.location.hash.split(/=/)[1]; document.location.href = document.location.pathname + h; } var distance = 0; var thumbsCount = 0; var imgCount = BLB.Images.imgList.length; var imgListHalfway = Math.floor(imgCount/2); for(var thumb in BLB.Images.thumbs) { if(state == BLB.Images.thumbs[thumb]) { BLB.Images.currentThumb = state; BLB.Images.currentImgId = thumb; break; } distance++; } BLB.Images.vpW = BLB.getViewportWidth(); thumbsCount = Math.floor(BLB.Images.vpW/BLB.Images.thumbWidth)-2; BLB.Images.thumbsCount = (thumbsCount%2?thumbsCount:thumbsCount-1); BLB.Images.imgListHalfway = (imgCount%2?imgListHalfway:imgListHalfway-1); BLB.Images.setCarouselWidth(); BLB.Images.setCarouselWindowWidth(); var imgCarousel = document.querySelector('#imgCarousel'); imgCarousel.style.left = '-12px'; if(BLB.Images.imgListHalfway > distance) for(var i=0;i 1) { var nextState = BLB.Images.thumbs[currentImg.nextSibling.id]; BLB.Images.historyNavigate(nextState); } else if(matchedEl.id == 'imgNavL' && BLB.Images.imgList.length > 1) { var nextState = BLB.Images.thumbs[currentImg.previousSibling.id]; BLB.Images.historyNavigate(nextState); } else if(matchedEl.id == 'imgExact' || matchedEl.id == 'imgZoom') { var fullImg = BLB.Images.imgFull[BLB.Images.currentImgId]; var path = BLB.Images.paths[BLB.Images.currentImgId]; location.href = '/assets-v3/images/bibleMedia/' + path + '/' + fullImg; } break; case 'imgCarousel': if(BLB.Images.imgList.length > 1) if(matchedEl.classList.contains('imgParCenter')) { var nextState = BLB.Images.thumbs[currentImg.nextSibling.id]; BLB.Images.historyNavigate(nextState); } else { var nextState = BLB.Images.thumbs[matchedEl.id]; BLB.Images.historyNavigate(nextState); } break; case 'imgParade': if(BLB.Images.imgList.length > 1) if(matchedEl.id=='imgParBrowseRt') { var nextState = BLB.Images.thumbs[currentImg.nextSibling.id]; BLB.Images.historyNavigate(nextState); } else { var nextState = BLB.Images.thumbs[currentImg.previousSibling.id]; BLB.Images.historyNavigate(nextState); } break; case 'imgShareLinks': if (matchedEl.dataset !== undefined && matchedEl.dataset.sharer !== undefined) { var platform = matchedEl.dataset.sharer; if (platform == 'shareLink') { document.querySelector('#pageLink').click(); document.querySelector('#imgShareFeedback').innerHTML = "

Please click on the [COPY] button at the top of this page to copy a link to this image.
"; setTimeout(function() { document.querySelector('#imgShareFeedback').innerHTML = ""; }, 7000); } else if (platform == 'shareEmail') { var email=('<>'); var subject = ('An image from Blue Letter Bible'); var body = 'I wanted to share this wonderful image with you: '+window.location.href; var emailLink = document.createElement('a'); emailLink.href = 'mailto:' + email+'?subject=' +subject+'&body=' +body; emailLink.target = '_blank'; emailLink.click(); } else { BLB.sharePage(platform); } } break; case 'imgLegend': var linkName = matchedEl.rel; var param = location.href; var popupDiv = document.querySelector('#popupDiv'); document.querySelector('#popupDivContents').innerHTML = BLB.popupDivContents; popupDiv.classList.remove('hidden'); popupDiv.style.width = '500px'; BLB.setXY(matchedEl, popupDiv); BLB.toolTipPopup(linkName, param); YEvent.stopPropagation(ev); break; default: break; }; }, slideCarouselWindow: function(direction, count) { var thisThumb = document.querySelector('#' + BLB.Images.currentImgId); var nextThumb = (direction=='left' ? thisThumb.nextSibling : thisThumb.previousSibling); var thumbsHalfway = Math.ceil(BLB.Images.thumbsCount/2); var imgCarousel = document.querySelector('#imgCarousel'); var thumbWidth = parseInt(imgCarousel.style.width, 10); var thumbMarginLeft = parseInt(imgCarousel.style.marginLeft, 10); var windowDistance = 69 * (direction=='left'?-1:1); var imgCarouselLeft = parseInt(imgCarousel.style.left, 10); var imgCarouselKeyFrames = new KeyframeEffect(imgCarousel, [ { left: (imgCarouselLeft + windowDistance) + 'px' } ], 100 ); var imgCarouselKeyAnimation = new Animation(imgCarouselKeyFrames, document.timeline); imgCarouselKeyAnimation.addEventListener("finish", () => { imgCarouselKeyAnimation.commitStyles(); if(direction=='left') { imgCarousel.appendChild(imgCarousel.firstChild) BLB.Images.imgList.push(BLB.Images.imgList.shift()); if (thumbsHalfway+BLB.Images.thumbDistance <= BLB.Images.imgListHalfway) BLB.Images.prefetchThumbnail(BLB.Images.imgListHalfway+thumbsHalfway+BLB.Images.thumbDistance); } else { imgCarousel.insertBefore(imgCarousel.lastChild, imgCarousel.firstChild) BLB.Images.imgList.unshift(BLB.Images.imgList.pop()); if (thumbsHalfway+BLB.Images.thumbDistance <= BLB.Images.imgListHalfway) BLB.Images.prefetchThumbnail(BLB.Images.imgListHalfway-thumbsHalfway-BLB.Images.thumbDistance); } if(count > 1) BLB.Images.slideCarouselWindow(direction, --count); else if(BLB.Images.callBackStack.length > 0) BLB.Images.slideCarouselWindowCaller(); else BLB.Images.updateImgMainBody() }); imgCarouselKeyAnimation.play(); thisThumb.classList.remove('imgParCenter'); nextThumb.classList.add('imgParCenter'); BLB.Images.currentImgId = nextThumb.id; BLB.Images.currentThumb = BLB.Images.thumbs[BLB.Images.currentImgId]; }, slideCarouselWindowCaller: function() { var state = BLB.Images.callBackStack.shift(); var ill = BLB.Images.imgList.length; var direction = 'left'; var count = 0; for(var i=0;i 0) { if(thumbState == BLB.Images.currentThumb || thumbState == state) break; count++; } else if(thumbState == BLB.Images.currentThumb) { direction='left'; count++; } else if (thumbState == state) { direction='right'; count++; } } BLB.Images.slideCarouselWindow(direction, count); }, updateImgMainBody: function() { var title = BLB.Images.titles[BLB.Images.currentImgId]; var cropped = BLB.Images.cropped[BLB.Images.currentImgId]; var path = BLB.Images.paths[BLB.Images.currentImgId]; var imgSrc = '/assets-v3/images/bibleMedia/'+path+'/' + cropped; var tmpImg = document.createElement('img'); var imgWidth = 72; var imgHeight = 0; var metaDescTemplate = "Image from the {galleryName} gallery. Images for {scripture} are provided by the Blue Letter Bible and its partner ministries." var imgDataTitle = document.querySelector('#imgDataTitle'); var imgRespTitle = document.querySelector('#imgTitle_Resp'); var imgDataCr = document.querySelector('#imgDataCr'); var imgDataSe = document.querySelector('#imgDataSe'); var imgDataSrc = document.querySelector('#imgDataSrc'); var imgDataBtn = document.querySelector('#imgDataBtn'); var imgDataDesc = document.querySelector('#imgDataDesc'); var imgDataBtn = document.querySelector('#imgDataBtn'); var scripturesA = BLB.Images.imgScripture[BLB.Images.currentImgId].replace(/(^\s*|;?\s*$)/g, '').replace(/(\d);([a-zA-Z])/g, '$1; $2'); var keywordsA = BLB.Images.imgKeywords[BLB.Images.currentImgId].replace(/(^\s*|;?\s*$)/g, ''); var b = null; pb = null; var c = null; var v = null; var v1 = null; var bid = null; keywordsA = (keywordsA==''?[]:keywordsA.split(/;/)); tmpImg.src = imgSrc; imgDataBtn.addEventListener('mouseover', function() { var img = this.firstChild; img.src = img.src.replace(/_a\.svg/, '_b.svg'); }); imgDataBtn.addEventListener('mouseout', function() { var img = this.firstChild; img.src = img.src.replace(/_b\.svg/, '_a.svg'); }); tmpImg.addEventListener('load', function() { document.querySelector('#imgTitle').innerHTML = title; document.querySelector('#imgTitle_Resp').innerHTML = title; // Update title and meta data tags var metaDesc = metaDescTemplate; metaDesc = metaDesc.replace('{galleryName}', BLB.Images.galleryName).replace('{scripture}', title); document.title = title +' - '+ BLB.Images.galleryName; document.head.querySelector("meta[name='Description']").content = metaDesc; document.head.querySelector("meta[property='og:title']").content = document.title; document.head.querySelector("meta[property='og:description']").content = metaDesc; document.head.querySelector("meta[property='og:image']").content = 'https://www.blueletterbible.org/assets-v3/images/bibleMedia/' + path + '/' + BLB.Images.thumbs[BLB.Images.currentImgId] + '.jpg'; document.querySelector('#imgExact').innerHTML = ''; document.querySelector('#imgPrint').firstChild.src = imgSrc; imgDataDesc.innerHTML = ''; imgDataCr.innerHTML = ''; imgDataSe.innerHTML = ''; imgDataSrc.innerHTML = ''; imgDataTitle.innerHTML = title; imgRespTitle.innerHTML = title; var imgLinks = document.querySelector('#imgLinks'); var imgDesc = BLB.Images.imgDescription[BLB.Images.currentImgId]; var imgDataDescP = document.querySelector('#imgDataDescP'); var imgDataDescTop = document.querySelector('#imgDataDescTop'); var imgDesc = BLB.Images.imgDescription[BLB.Images.currentImgId]; imgDataDescTop.style.display='none'; imgDataDescTop.innerHTML=''; imgDataDescP.style.display='none'; var showDescOnTop = false; if (path == "ESV-Global-Study-Bible") {showDescOnTop = true} if (imgDesc.length > 0) { if (showDescOnTop == true) { imgDataDescTop.style.display="block"; imgDataDescTop.innerHTML = imgDesc; } else { imgDataDescP.style.display="block"; imgDataDesc.innerHTML = imgDesc; } } var imgDataCrP = document.querySelector('#imgDataCrP'); if(scripturesA.length == 0) { imgDataCrP.style.display="none"; } else { imgDataCrP.style.display="block"; imgDataCr.innerHTML = scripturesA; BLB.Tagger.walkDomTree(imgDataCr); } var imgDataSeP = document.querySelector('#imgDataSeP'); if(keywordsA.length == 0) { imgDataSeP.style.display="none"; } else { imgDataSeP.style.display="block"; for(var i=0;iDownload PDF
'; }); BLB.Images.carouselClick=false; if(!BLB.firstLoad) BLB.Menu.evDispatch({event: 'page_view'}); // Tell Google about the page_view change due to AJAX call BLB.firstLoad = false; }, windowShift: function(count) { var imgCarousel = document.querySelector('#imgCarousel'); var windowLeft = parseInt(imgCarousel.style.left, 10); imgCarousel.style.left = windowLeft + (BLB.Images.thumbWidth*count) + 'px'; }, setCarouselWidth: function() { var imgCarousel = document.querySelector('#imgCarousel'); var carouselWidth = BLB.Images.imgList.length*BLB.Images.thumbWidth+15+9+78; imgCarousel.style.width = carouselWidth+'px'; }, setCarouselWindowWidth: function() { var imgCarouselWindow = document.querySelector('#imgCarouselWindow'); var carouselWindowWidth = BLB.Images.thumbsCount*BLB.Images.thumbWidth+15; imgCarouselWindow.style.width = carouselWindowWidth+'px'; }, prefetchThumbnail: function(thmbPos) { var imgCarousel = document.querySelector('#imgCarousel'); var thumbDiv = imgCarousel.children[thmbPos]; if(thumbDiv != undefined) { var imgKey = thumbDiv.id; var thumber = BLB.Images.thumbs[imgKey]; var thumbsCount = Math.floor(BLB.Images.vpW/BLB.Images.thumbWidth)-2; thumbsCount = (thumbsCount%2?thumbsCount:thumbsCount-1); thumber = thumber.replace(/.$/, 'd'); thumbDiv.firstChild.src = '/assets-v3/images/bibleMedia/' + BLB.Images.paths[imgKey] + '/' + thumber + '.jpg'; } }, getBookmarkedState: function() { var pathname = document.location.pathname.replace(/\/+$/, ''); var pa = pathname.split(/\//); var state = pa[pa.length-1]; return state; }, getHistoryState: function() { var historyState = history.state; var state = null; if(historyState != undefined) state = historyState.state; return state; }, historyNavigate: function(state) { if(BLB.Images.carouselClick) return false; BLB.Images.carouselClick=true; var pathname = document.location.pathname.replace(/\/+$/, ''); var pa = pathname.split(/\//); pa.pop(); pa.push(state); history.replaceState({state:state}, null, pa.join('/')); BLB.Images.sectionStateChangeHandler(state); }, sectionStateChangeHandler: function(state) { BLB.Images.callBackStack.push(state); BLB.Images.slideCarouselWindowCaller(); }, popstateEventHandler: function(ev) { var state = ev.state; BLB.Images.sectionStateChangeHandler(state.state); } }; YEvent.onDOMReady(BLB.Images.init, BLB.Images.init, true); })();