(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: "2 Samuel", imgList: [576,577,578,579,580,581,582,583,584,585,586,587,588,589,590,591,592,593,594,595,596,597,598,599,600,601,602,603,604,605,606,607,608,609,610,611,612,613,621,622,630,631,632,637,638,1134,1135,1136,1137,1138,1139,1144,1146,1149,1150,1151,1152,1153,1154,1155,1188,1246,1247,1249,1251,1352,1356,1360,1361,1390,1391,1440,1446,1685,1710,1766,1482,1484,2232,1558,1981,1497,2252,2318,2319,2320], cropped: {img_576:'hs2_218_a.jpg',img_577:'lb2_2sa_3_26_a.jpg',img_578:'hs2_219_a.jpg',img_579:'lb2_2sa_6_12_a.jpg',img_580:'hs2_220_a.jpg',img_581:'hs2_221_a.jpg',img_582:'hs2_222_a.jpg',img_583:'hs2_223_a.jpg',img_584:'LLS_043_a.jpg',img_585:'hs2_224_a.jpg',img_586:'hs2_225_a.jpg',img_587:'lb2_2sa_13_22_a.jpg',img_588:'hs2_226_a.jpg',img_589:'lb2_2sa_16_5_a.jpg',img_590:'lb2_2sa_18_19_a.jpg',img_591:'hs2_227_a.jpg',img_592:'hs2_228_a.jpg',img_593:'hs2_229_a.jpg',img_594:'hs2_230_a.jpg',img_595:'lb2_2sa_24_16_a.jpg',img_596:'llh_010_a.jpg',img_597:'llh_034_a.jpg',img_598:'llh_065_a.jpg',img_599:'llh_152_a.jpg',img_600:'llh_173_a.jpg',img_601:'llh_176_a.jpg',img_602:'llh_177_a.jpg',img_603:'llh_178_a.jpg',img_604:'llh_179_a.jpg',img_605:'llh_197_1_a.jpg',img_606:'llh_197_2_a.jpg',img_607:'llh_198_1_a.jpg',img_608:'llh_198_2_a.jpg',img_609:'llh_305_a.jpg',img_610:'llh_375_a.jpg',img_611:'llh_376_a.jpg',img_612:'llh_377_a.jpg',img_613:'llh_378_a.jpg',img_621:'sb_024_a.jpg',img_622:'sb_020a_a.jpg',img_630:'sb_028b_a.jpg',img_631:'sb_028c_a.jpg',img_632:'sb_028d_a.jpg',img_637:'sb_020c_a.jpg',img_638:'sb_020d_a.jpg',img_1134:'sb32a_a.jpg',img_1135:'sb32b_a.jpg',img_1136:'sb32c_a.jpg',img_1137:'sb32d_a.jpg',img_1138:'sb32e_a.jpg',img_1139:'sb32f_a.jpg',img_1144:'sb32k_a.jpg',img_1146:'sb32l_a.jpg',img_1149:'sb32o_a.jpg',img_1150:'sb32p_a.jpg',img_1151:'sb32q_a.jpg',img_1152:'sb32r_a.jpg',img_1153:'sb32s_a.jpg',img_1154:'sb32t_a.jpg',img_1155:'sb32u_a.jpg',img_1188:'jh_003_a.jpg',img_1246:'tgb_042_a.jpg',img_1247:'tgb_043_a.jpg',img_1249:'tgb_045_a.jpg',img_1251:'tgb_049_a.jpg',img_1352:'beersheba_a.jpg',img_1356:'tower_david_a.jpg',img_1360:'hebron_a.jpg',img_1361:'mtolives_jerusalem_a.jpg',img_1390:'david_absalom1_a.jpg',img_1391:'solomon1_a.jpg',img_1440:'ark1_a.jpg',img_1446:'OT_timeline2_a.jpg',img_1685:'c29_a.jpg',img_1710:'c54_a.jpg',img_1766:'c54_a.jpg',img_1482:'wc_00bible_a.jpg',img_1484:'wc_00ot_a.jpg',img_2232:'chart_07_02_a.jpg',img_1558:'wc_00ot_2histories_a.jpg',img_1981:'blb_protect_2sa_22_3_csb_a.jpg',img_1497:'wc_102sa_a.jpg',img_2252:'illustration_10_jerusalem-in-the-time-of-david_a.jpg',img_2318:'map_10_01_a.jpg',img_2319:'map_10_03_a.jpg',img_2320:'map_10_06_a.jpg'}, thumbs: {img_576:'hs2_218_b',img_577:'lb2_2sa_3_26_b',img_578:'hs2_219_b',img_579:'lb2_2sa_6_12_b',img_580:'hs2_220_b',img_581:'hs2_221_b',img_582:'hs2_222_b',img_583:'hs2_223_b',img_584:'LLS_043_b',img_585:'hs2_224_b',img_586:'hs2_225_b',img_587:'lb2_2sa_13_22_b',img_588:'hs2_226_b',img_589:'lb2_2sa_16_5_b',img_590:'lb2_2sa_18_19_b',img_591:'hs2_227_b',img_592:'hs2_228_b',img_593:'hs2_229_b',img_594:'hs2_230_b',img_595:'lb2_2sa_24_16_b',img_596:'llh_010_b',img_597:'llh_034_b',img_598:'llh_065_b',img_599:'llh_152_b',img_600:'llh_173_b',img_601:'llh_176_b',img_602:'llh_177_b',img_603:'llh_178_b',img_604:'llh_179_b',img_605:'llh_197_1_b',img_606:'llh_197_2_b',img_607:'llh_198_1_b',img_608:'llh_198_2_b',img_609:'llh_305_b',img_610:'llh_375_b',img_611:'llh_376_b',img_612:'llh_377_b',img_613:'llh_378_b',img_621:'sb_024_b',img_622:'sb_020a_b',img_630:'sb_028b_b',img_631:'sb_028c_b',img_632:'sb_028d_b',img_637:'sb_020c_b',img_638:'sb_020d_b',img_1134:'sb32a_b',img_1135:'sb32b_b',img_1136:'sb32c_b',img_1137:'sb32d_b',img_1138:'sb32e_b',img_1139:'sb32f_b',img_1144:'sb32k_b',img_1146:'sb32l_b',img_1149:'sb32o_b',img_1150:'sb32p_b',img_1151:'sb32q_b',img_1152:'sb32r_b',img_1153:'sb32s_b',img_1154:'sb32t_b',img_1155:'sb32u_b',img_1188:'jh_003_b',img_1246:'tgb_042_b',img_1247:'tgb_043_b',img_1249:'tgb_045_b',img_1251:'tgb_049_b',img_1352:'beersheba_b',img_1356:'tower_david_b',img_1360:'hebron_b',img_1361:'mtolives_jerusalem_b',img_1390:'david_absalom1_b',img_1391:'solomon1_b',img_1440:'ark1_b',img_1446:'OT_timeline2_b',img_1685:'c29_b',img_1710:'c54_b',img_1766:'c54_b',img_1482:'wc_00bible_b',img_1484:'wc_00ot_b',img_2232:'chart_07_02_b',img_1558:'wc_00ot_2histories_b',img_1981:'blb_protect_2sa_22_3_csb_b',img_1497:'wc_102sa_b',img_2252:'illustration_10_jerusalem-in-the-time-of-david_b',img_2318:'map_10_01_b',img_2319:'map_10_03_b',img_2320:'map_10_06_b'}, imgFull: {img_576:'hs2_218.jpg',img_577:'lb2_2sa_3_26.jpg',img_578:'hs2_219.jpg',img_579:'lb2_2sa_6_12.jpg',img_580:'hs2_220.jpg',img_581:'hs2_221.jpg',img_582:'hs2_222.jpg',img_583:'hs2_223.jpg',img_584:'LLS_043.jpg',img_585:'hs2_224.jpg',img_586:'hs2_225.jpg',img_587:'lb2_2sa_13_22.jpg',img_588:'hs2_226.jpg',img_589:'lb2_2sa_16_5.jpg',img_590:'lb2_2sa_18_19.jpg',img_591:'hs2_227.jpg',img_592:'hs2_228.jpg',img_593:'hs2_229.jpg',img_594:'hs2_230.jpg',img_595:'lb2_2sa_24_16.jpg',img_596:'llh_010.jpg',img_597:'llh_034.jpg',img_598:'llh_065.jpg',img_599:'llh_152.jpg',img_600:'llh_173.jpg',img_601:'llh_176.jpg',img_602:'llh_177.jpg',img_603:'llh_178.jpg',img_604:'llh_179.jpg',img_605:'llh_197_1.jpg',img_606:'llh_197_2.jpg',img_607:'llh_198_1.jpg',img_608:'llh_198_2.jpg',img_609:'llh_305.jpg',img_610:'llh_375.jpg',img_611:'llh_376.jpg',img_612:'llh_377.jpg',img_613:'llh_378.jpg',img_621:'sb_024.jpg',img_622:'sb_020a.jpg',img_630:'sb_028b.jpg',img_631:'sb_028c.jpg',img_632:'sb_028d.jpg',img_637:'sb_020c.jpg',img_638:'sb_020d.jpg',img_1134:'sb32a.jpg',img_1135:'sb32b.jpg',img_1136:'sb32c.jpg',img_1137:'sb32d.jpg',img_1138:'sb32e.jpg',img_1139:'sb32f.jpg',img_1144:'sb32.jpg',img_1146:'sb32.jpg',img_1149:'sb32.jpg',img_1150:'sb32.jpg',img_1151:'sb32.jpg',img_1152:'sb32.jpg',img_1153:'sb32.jpg',img_1154:'sb32.jpg',img_1155:'sb32.jpg',img_1188:'jh_003.jpg',img_1246:'tgb_042.jpg',img_1247:'tgb_043.jpg',img_1249:'tgb_045.jpg',img_1251:'tgb_049.jpg',img_1352:'beersheba.jpg',img_1356:'tower_david.jpg',img_1360:'hebron.jpg',img_1361:'mtolives_jerusalem.jpg',img_1390:'david_absalom1.jpg',img_1391:'solomon1.jpg',img_1440:'ark1.jpg',img_1446:'OT_timeline2.jpg',img_1685:'c29.jpg',img_1710:'c54.jpg',img_1766:'c54.jpg',img_1482:'wc_00bible.jpg',img_1484:'wc_00ot.jpg',img_2232:'chart_07_02.jpg',img_1558:'wc_00ot_2histories.jpg',img_1981:'blb_protect_2sa_22_3_csb.jpg',img_1497:'wc_102sa.jpg',img_2252:'illustration_10_jerusalem-in-the-time-of-david.jpg',img_2318:'map_10_01.jpg',img_2319:'map_10_03.jpg',img_2320:'map_10_06.jpg'}, imgPDF: {img_576:'',img_577:'',img_578:'',img_579:'',img_580:'',img_581:'',img_582:'',img_583:'',img_584:'',img_585:'',img_586:'',img_587:'',img_588:'',img_589:'',img_590:'',img_591:'',img_592:'',img_593:'',img_594:'',img_595:'',img_596:'',img_597:'',img_598:'',img_599:'',img_600:'',img_601:'',img_602:'',img_603:'',img_604:'',img_605:'',img_606:'',img_607:'',img_608:'',img_609:'',img_610:'',img_611:'',img_612:'',img_613:'',img_621:'',img_622:'',img_630:'',img_631:'',img_632:'',img_637:'',img_638:'',img_1134:'',img_1135:'',img_1136:'',img_1137:'',img_1138:'',img_1139:'',img_1144:'',img_1146:'',img_1149:'',img_1150:'',img_1151:'',img_1152:'',img_1153:'',img_1154:'',img_1155:'',img_1188:'',img_1246:'',img_1247:'',img_1249:'',img_1251:'',img_1352:'',img_1356:'',img_1360:'',img_1361:'',img_1390:'',img_1391:'',img_1440:'',img_1446:'',img_1685:'',img_1710:'',img_1766:'',img_1482:'wc_00bible.pdf',img_1484:'wc_00ot.pdf',img_2232:'',img_1558:'wc_00ot_2histories.pdf',img_1981:'',img_1497:'wc_102sa.pdf',img_2252:'',img_2318:'',img_2319:'',img_2320:''}, titles: {img_576:'David Kills the Murderer of Saul',img_577:'Abner Killed by Joab',img_578:'Uzzah Dies',img_579:'David Dancing before the Lord',img_580:'David Dances before the Lord',img_581:'Triumph of King David',img_582:'David\'s Servants Are Insulted',img_583:'David\'s Sin',img_584:'David Sending a Letter to Joab by Uriah',img_585:'David Repents',img_586:'Amnon Is Killed by Absalom',img_587:'Absalom Kills Amnon',img_588:'Shimei Curses David',img_589:'David Suffers Injuries from Shimei',img_590:'The Death of Absalom',img_591:'Absalom\'s Death',img_592:'Sheba\'s Head Is Thrown to Joab',img_593:'Seven of Saul\'s Descendents Are Hung',img_594:'Israel Is Plagued with Pestilence',img_595:'The Plague Ceases',img_596:'The Ark Removed from the House of Obededom',img_597:'David Dancing before the Ark',img_598:'King David',img_599:'Amnon Assassinated by Order of His Brother Absalom',img_600:'David Sending a Letter to Joab by Uriah',img_601:'David Lamenting the Death of Absalom',img_602:'Messengers Sent to Require the Attendance of Bathsheba on King David',img_603:'David and Bathsheba',img_604:'David Dances before the Ark',img_605:'Nathan Reproving David',img_606:'Absalom Hanging on a Tree',img_607:'David Playing before the Ark',img_608:'Joram Brings Presents to David',img_609:'David Plays before the Ark',img_610:'Abishai Saving the Life of David',img_611:'David Mourning the Death of Absalom',img_612:'The Death of Absalom',img_613:'Combat between the Champions of Ish-Bosheth and David',img_621:'View and Elevation of Solomon\'s Temple',img_622:'Plan of the Temple and of Its Buildings',img_630:'Court of the Sea of Bronze',img_631:'Sea of Brass (Jewish)',img_632:'Sea of Brass (Villalpando)',img_637:'Elevation of the Temple and Its Buildings of the West',img_638:'Court of the Temple from East to the West along the Building',img_1134:'Harp 1',img_1135:'Harp 2',img_1136:'Harp 3',img_1137:'Harp 4',img_1138:'Harp 5',img_1139:'Harp 6',img_1144:'Horn 1',img_1146:'Horn 3',img_1149:'Bells/cymbals 1',img_1150:'Bells/cymbals 2',img_1151:'Bells/cymbals 3',img_1152:'Bells/cymbals 4',img_1153:'Bells/cymbals 5',img_1154:'Bells/cymbals 6',img_1155:'Bells/cymbals 7',img_1188:'Nathan Rebuking David',img_1246:'David Becomes a King',img_1247:'The Growth of an Empire',img_1249:'The Realm of David',img_1251:'The Phoenicians',img_1352:'Beer-Sheeba (engraving)',img_1356:'Tower of David (engraving)',img_1360:'Hebron (engraving)',img_1361:'Mt. of Olives and Jerusalem (engraving)',img_1390:'David Mourning for Absalom (engraving)',img_1391:'King Solomon (engraving)',img_1440:'The Ark and Mercy Seat (engraving)',img_1446:'Old Testament Time Line (Part 2 of 2)',img_1685:'5. Ecclesiastical Dispensation (Grace)',img_1710:'The Church versus the Kingdom',img_1766:'The Church versus the Kingdom',img_1482:'The Bible - Word Cloud',img_1484:'The Old Testament - Word Cloud',img_2232:'Common Cycle for Each Judge',img_1558:'The Histories - Word Cloud',img_1981:'2 Samuel 22:3 (CSB)',img_1497:'2 Samuel - Word Cloud',img_2252:'Jerusalem in the Time of David',img_2318:'The Setting of 2 Samuel',img_2319:'David Captures the Stronghold of Zion',img_2320:'David and Absalom'}, paths: {img_576:'2Sa',img_577:'2Sa',img_578:'2Sa',img_579:'2Sa',img_580:'2Sa',img_581:'2Sa',img_582:'2Sa',img_583:'2Sa',img_584:'2Sa',img_585:'2Sa',img_586:'2Sa',img_587:'2Sa',img_588:'2Sa',img_589:'2Sa',img_590:'2Sa',img_591:'2Sa',img_592:'2Sa',img_593:'2Sa',img_594:'2Sa',img_595:'2Sa',img_596:'2Sa',img_597:'2Sa',img_598:'2Sa',img_599:'2Sa',img_600:'2Sa',img_601:'2Sa',img_602:'2Sa',img_603:'2Sa',img_604:'2Sa',img_605:'2Sa',img_606:'2Sa',img_607:'2Sa',img_608:'2Sa',img_609:'2Sa',img_610:'2Sa',img_611:'2Sa',img_612:'2Sa',img_613:'2Sa',img_621:'1Ki',img_622:'1Ki',img_630:'1Ki',img_631:'1Ki',img_632:'1Ki',img_637:'1Ki',img_638:'1Ki',img_1134:'Instruments',img_1135:'Instruments',img_1136:'Instruments',img_1137:'Instruments',img_1138:'Instruments',img_1139:'Instruments',img_1144:'Instruments',img_1146:'Instruments',img_1149:'Instruments',img_1150:'Instruments',img_1151:'Instruments',img_1152:'Instruments',img_1153:'Instruments',img_1154:'Instruments',img_1155:'Instruments',img_1188:'hewlett_john',img_1246:'TheGraphicBible',img_1247:'TheGraphicBible',img_1249:'TheGraphicBible',img_1251:'TheGraphicBible',img_1352:'blb_classics',img_1356:'blb_classics',img_1360:'blb_classics',img_1361:'blb_classics',img_1390:'blb_classics',img_1391:'blb_classics',img_1440:'blb_classics',img_1446:'rosepub',img_1685:'larkin',img_1710:'larkin',img_1766:'eschatalogical',img_1482:'wordclouds',img_1484:'wordclouds',img_2232:'ESV-Global-Study-Bible',img_1558:'wordclouds',img_1981:'blbsocial',img_1497:'wordclouds',img_2252:'ESV-Global-Study-Bible',img_2318:'ESV-Global-Study-Bible',img_2319:'ESV-Global-Study-Bible',img_2320:'ESV-Global-Study-Bible'}, imgKeywords: {img_576:'David; Amalekite; Saul;',img_577:'Killed, Abner, Joab, Smote',img_578:'Uzzah; ark; Uzza;',img_579:'David; dance; ephod;',img_580:'David; dance; ephod;',img_581:'David;',img_582:'Hanun; David;',img_583:'David; Bathsheba;',img_584:'David; Joab; Uriah; Letter',img_585:'David; Nathan;',img_586:'Absalom; Amnon;',img_587:'Absalom, Amnon, Smite, Kill',img_588:'David; Shimei;',img_589:'David, Shimei',img_590:'Death, Absalom',img_591:'Absalom; Joab;',img_592:'Joab; Sheba; ',img_593:'Gibeonites;',img_594:'David; Gad;',img_595:'Plague;',img_596:'ark; Obededom; David;',img_597:'David; ark;',img_598:'David;',img_599:'Amnon; Absalom;',img_600:'David; Joab; Uriah;',img_601:'David; Joab; Absalom;',img_602:'David; Bathsheba;',img_603:'David; Bathsheba;',img_604:'David; ark;',img_605:'David; Nathan; Bathsheba;',img_606:'Absalom; David; Joab;',img_607:'David; ark;',img_608:'Joram; David;',img_609:'David; ark;',img_610:'David; Abishai; Ishbibenob;',img_611:'David; Absalom;',img_612:'Absalom; Joab;',img_613:'Ish-Bosheth; David;',img_621:'temple; Solomon; ',img_622:'temple;',img_630:'brasen; brazen;',img_631:'brasen; brazen;',img_632:'brasen; brazen;',img_637:'temple;',img_638:'temple;',img_1134:'harp; harps;',img_1135:'harp; harps;',img_1136:'harp; harps;',img_1137:'harp; harps;',img_1138:'harp; harps;',img_1139:'harp; harps;',img_1144:'horn; horns; trumpet;',img_1146:'horn; horns; trumpet;',img_1149:'bell; bells; cymbal; cymbals;',img_1150:'bell; bells; cymbal; cymbals;',img_1151:'bell; bells; cymbal; cymbals;',img_1152:'bell; bells; cymbal; cymbals;',img_1153:'bell; bells; cymbal; cymbals;',img_1154:'bell; bells; cymbal; cymbals;',img_1155:'bell; bells; cymbal; cymbals;',img_1188:'David; Nathan; Bathsheba;',img_1246:'David; Ishbosheth; Eshbaal; Ishball; Kingdom; United;',img_1247:'David; Kingdom; Empire; Territory; United; Growth;',img_1249:'David; Fertile Crescent; Conquer; Kingdom; United; Hittites; Egypt; Chittim; Nineveh; Babylon; Chaldea; Elam',img_1251:'Sidon; Tyre; Hiram; Lebanon; Phoenicians; Galilee; Bashan; Chinnereth; Meron; Sarephat; Akko',img_1352:'Beersheba; Well',img_1356:'Castle; City of David; David; Jerusalem',img_1360:'Abraham; Arba; Caleb; David; Hebron; Heth; Hoham; Isaac; Israel; Jacob; Joshua; Judah; Kirjath-Arba; Leah; Machpelah; Mamre; Rebekah; Saul; Sarah',img_1361:'Disciples; Gethsemane; Jerusalem; Jesus; Mount of Olives',img_1390:'Absalom; David',img_1391:'Solomon',img_1440:'Ark of the Covenant; Mercy Seat',img_1446:'Amos; Cyrus; David; Eli; Elijah; Elisha; Habakkuk; Haggai; Hezekiah; Hosea; Hoshea; Jeroboam; Jonah; Josiah; Judges; Malachi; Manasseh; Micah; Nahum; Nehemiah; Nineveh; Obadiah; Rebuilding the Temple; Ruth; Samuel; Saul; Solomon; Zechariah; Zephaniah',img_1685:'Dispensation;Grace;Kingdom;Mystery;David;Covenant;Sign;Son;Church;Jew;Nations;Israel',img_1710:'Church;Kingdom;Virgin;Birth;King;Solomon;David;Adam;Abraham;Prophet;Priest;Heaven;Mystery;Grave;Antichrist;Man;Judgment;Marriage;Jerusalem',img_1766:'Church;Kingdom;Virgin;Birth;King;Solomon;David;Adam;Abraham;Prophet;Priest;Heaven;Mystery;Grave;Antichrist;Man;Judgment;Marriage;Jerusalem',img_1482:'',img_1484:'',img_2232:'apostasy; judge; salvation; servitude; supplication',img_1558:'',img_1981:'protection; rock; shield; stronghold; Savior',img_1497:'',img_2252:'Araunah; city; David; Jerusalem; Kidron Valley; Melchizedek; Mount Moriah',img_2318:'Ammon; David; Edom; Hamath; Israel; Moab; Palestine; Syria; Tyre; Zobah',img_2319:'city of David; David; Gihon spring; Hebron; Jebusites; Jerusalem; Judah; Zion',img_2320:'Absalom; Ammon; Baalhazor; David; Ephraim; Geshur; Hebron; Jerusalem; Mahanaim'}, imgScripture: {img_576:'2Sa 1:13-16',img_577:'2Sa 3:26-39',img_578:'2Sa 6:2-10; 1Ch 13:5-11',img_579:'2Sa 6:12-15; 1Ch 15:27-28',img_580:'2Sa 6:12-15; 1Ch 15:27-28',img_581:'2Sa 8:1-8; 1Ki 11:23-25; 1Ch 18:1-7',img_582:'2Sa 10:1-5; 1Ch 19:1-5',img_583:'2Sa 11:2-5',img_584:'2Sa 11:14-17',img_585:'2Sa 12:13-15; Psa 51:1-19',img_586:'2Sa 13:23-36',img_587:'2Sa 13:23-36',img_588:'2Sa 16:5-13',img_589:'2Sa 16:5-13',img_590:'2Sa 18:9-33',img_591:'2Sa 18:9-33',img_592:'2Sa 20:16-22',img_593:'2Sa 21:8-14',img_594:'2Sa 24:10-25; 1Ch 21:7-30',img_595:'2Sa 24:18-25; 1Ch 21:18-30',img_596:'2Sa 6:12-15',img_597:'2Sa 6:11-15',img_598:'2Sa 22:1-51',img_599:'2Sa 13:28-32',img_600:'2Sa 11:14-17',img_601:'2Sa 18:33',img_602:'2Sa 11:2-5',img_603:'2Sa 11:2-5',img_604:'2Sa 6:11-15',img_605:'2Sa 12:1-14',img_606:'2Sa 18:9-15',img_607:'2Sa 6:11-15',img_608:'2Sa 8:9-15',img_609:'2Sa 6:11-15',img_610:'2Sa 21:15-17',img_611:'2Sa 18:33',img_612:'2Sa 18:9-15',img_613:'2Sa 2:12-17',img_621:'1Ki 6:1-38; 1Ch 17:1-15; 1Ch 22:1-19; 2Ch 2:1-18; 2Ch 3:1-17; 2Ch 5:1; Psa 132:1-18; Jer 52:13; 2Sa 7:1-17; ',img_622:'1Ki 6:1-38; 1Ch 17:1-15; 1Ch 22:1-19; 2Ch 2:1-18; 2Ch 3:1-17; 2Ch 5:1; Psa 132:1-18; Jer 52:13; 2Sa 7:1-17; ',img_630:'1Ki 6:1-38; 1Ki 8:10-66; 2Sa 7:1-17',img_631:'1Ki 6:1-38; 1Ki 7:23-26;1Ch 22:1-19; 2Ch 2:1-18; 2Ch 3:1-17; 2Ch 5:1; Psa 132:1-18; 2Sa 7:1-17; Jer 52:13',img_632:'1Ki 6:1-38; 1Ki 7:23-26;1Ch 22:1-19; 2Ch 2:1-18; 2Ch 3:1-17; 2Ch 5:1; Psa 132:1-18; 2Sa 7:1-17; Jer 52:13',img_637:'1Ch 17:1-15; 1Ch 22:1-19; 1Ki 6:1-38; 2Ch 2:1-18; 2Ch 3:1-17; 2Ch 5:1; 2Sa 7:1-17; Psa 132:1-18',img_638:'1Ch 17:1-15; 1Ch 22:1-19; 1Ki 6:1-38; 2Ch 2:1-18; 2Ch 3:1-17; 2Ch 5:1; 2Sa 7:1-17; Jer 52:13',img_1134:'Gen 4:21; Gen 31:27; 1Sa 10:5; 1Sa 16:23; 2Sa 6:5; Job 21:12; Psa 33:2; Psa 43:4; Psa 147:7; Isa 5:12',img_1135:'Gen 4:21; Gen 31:27; 1Sa 10:5; 1Sa 16:23; 2Sa 6:5; Job 21:12; Psa 33:2; Psa 43:4; Psa 147:7; Isa 5:12',img_1136:'Gen 4:21; Gen 31:27; 1Sa 10:5; 1Sa 16:23; 2Sa 6:5; Job 21:12; Psa 33:2; Psa 43:4; Psa 147:7; Isa 5:12',img_1137:'Gen 4:21; Gen 31:27; 1Sa 10:5; 1Sa 16:23; 2Sa 6:5; Job 21:12; Psa 33:2; Psa 43:4; Psa 147:7; Isa 5:12',img_1138:'Gen 4:21; Gen 31:27; 1Sa 10:5; 1Sa 16:23; 2Sa 6:5; Job 21:12; Psa 33:2; Psa 43:4; Psa 147:7; Isa 5:12',img_1139:'Gen 4:21; Gen 31:27; 1Sa 10:5; 1Sa 16:23; 2Sa 6:5; Job 21:12; Psa 33:2; Psa 43:4; Psa 147:7; Isa 5:12',img_1144:'2Sa 2:28; 2Sa 6:15; 2Sa 15:10; 2Sa 18:16; 2Sa 20:1',img_1146:'Exd 19:13-25; Lev 25:9; Num 10:1-10; Jos 6:5; Jdg 3:27; Jdg 6:34; Jdg 7:16; 1Sa 13:3; 2Sa 2:28; 2Sa 6:15; 2Sa 15:10; 2Sa 18:16; 2Sa 20:1; 1Ki 1:34; Neh 4:18; Job 39:24',img_1149:'Exd 28:33; Exd 39:25; 2Sa 6:5; 1Ch 13:8; 1Ch 15:16; 1Ch 16:5; 1Ch 25:1; 2Ch 5:12; 2Ch 29:25; Ezr 3:10; Neh 12:27; Psa 150:5; Zec 14:20; 1Cr 13:1',img_1150:'Exd 28:33; Exd 39:25; 2Sa 6:5; 1Ch 13:8; 1Ch 15:16; 1Ch 16:5; 1Ch 25:1; 2Ch 5:12; 2Ch 29:25; Ezr 3:10; Neh 12:27; Psa 150:5; Zec 14:20; 1Cr 13:1',img_1151:'Exd 28:33; Exd 39:25; 2Sa 6:5; 1Ch 13:8; 1Ch 15:16; 1Ch 16:5; 1Ch 25:1; 2Ch 5:12; 2Ch 29:25; Ezr 3:10; Neh 12:27; Psa 150:5; Zec 14:20; 1Cr 13:1',img_1152:'Exd 28:33; Exd 39:25; 2Sa 6:5; 1Ch 13:8; 1Ch 15:16; 1Ch 16:5; 1Ch 25:1; 2Ch 5:12; 2Ch 29:25; Ezr 3:10; Neh 12:27; Psa 150:5; Zec 14:20; 1Cr 13:1',img_1153:'Exd 28:33; Exd 39:25; 2Sa 6:5; 1Ch 13:8; 1Ch 15:16; 1Ch 16:5; 1Ch 25:1; 2Ch 5:12; 2Ch 29:25; Ezr 3:10; Neh 12:27; Psa 150:5; Zec 14:20; 1Cr 13:1',img_1154:'Exd 28:33; Exd 39:25; 2Sa 6:5; 1Ch 13:8; 1Ch 15:16; 1Ch 16:5; 1Ch 25:1; 2Ch 5:12; 2Ch 29:25; Ezr 3:10; Neh 12:27; Psa 150:5; Zec 14:20; 1Cr 13:1',img_1155:'Exd 28:33; Exd 39:25; 2Sa 6:5; 1Ch 13:8; 1Ch 15:16; 1Ch 16:5; 1Ch 25:1; 2Ch 5:12; 2Ch 29:25; Ezr 3:10; Neh 12:27; Psa 150:5; Zec 14:20; 1Cr 13:1',img_1188:'2Sa 12:1-14',img_1246:'2Sa 2:1-32; 2Sa 3:1-39; 2Sa 4:1-12',img_1247:'2Sa 5:1-25;',img_1249:'2Sa 5:1-25;',img_1251:'2Sa 5:11; 1Ki 5:1 ; 1Ki 7:13; 1Ki 9:11; 1Ki 9:12; 1Ch 14:1; Mat 11:21; Mat 11:22; Mat 15:21; Mar 3:8; Mar 7:24; Mar 7:31; Luk 6:17; Luk 10:13; Luk 10:14; Act 12:20',img_1352:'Gen 21:14-33; Gen 22:19; Gen 26:23-33; Gen 28:10; Gen 46:1-5; Jos 15:28; Jos 19:2; Jdg 20:1; 1Sa 3:20; 1Sa 8:2; 2Sa 3:10; 2Sa 17:11; 2Sa 24:2-15; 1Ki 4:25; 1Ki 19:3; 2Ki 12:1; 2Ki 23:8; 1Ch 4:28; 1Ch 21:2; 2Ch 19:4; 2Ch 24:1; 2Ch 30:5; Neh 11:27-30; Amo 5:5; Amo 8:14',img_1356:'2Sa 5:1-16; 2Sa 6:10-16; 1Ki 2:10; 1Ki 3:1; 1Ki 8:1; 1Ki 9:24; 1Ki 11:27-43; 1Ki 14:31; 1Ki 15:8-24; 1Ki 22:50; 2Ki 8:24; 2Ki 9:28; 2Ki 12:21; 2Ki 14:20; 2Ki 15:7-38; 2Ki 16:20; 1Ch 11:5-7; 1Ch 13:13; 1Ch 15:1-29; 2Ch 5:2; 2Ch 8:11; 2Ch 9:31; 2Ch 12:16; 2Ch 14:1; 2Ch 16:14; 2Ch 21:1-20; 2Ch 24:16-25; 2Ch 27:9; 2Ch 32:5-30; 2Ch 33:14; Neh 3:15; Neh 12:37; Sng 4:4; Isa 22:9; Luk 2:4-11',img_1360:'Gen 13:18; Gen 23:2-19; Gen 35:27; Gen 37:14; Num 13:22; Jos 10:3-39; Jos 11:21; Jos 12:10; Jos 14:13-15; Jos 15:13-54; Jos 19:28; Jos 20:7; Jos 21:11-13; Jdg 1:10-20; Jdg 16:3; 1Sa 30:31; 2Sa 2:1-32; 2Sa 3:2-32; 2Sa 4:1-12; 2Sa 5:1-13; 2Sa 15:7-10; 1Ki 2:11; 1Ch 2:42-43; 1Ch 3:1-4; 1Ch 6:2-57; 1Ch 11:1-3; 1Ch 12:23-38; 1Ch 15:9; 1Ch 23:12-19; 1Ch 24:23; 1Ch 29:27; 2Ch 11:10',img_1361:'2Sa 15:30; Zec 14:4; Mat 21:1-2; Mat 24:3; Mat 26:30; Mar 11:1; Mar 13:3; Mar 14:26; Luk 19:29; Luk 19:37; Luk 21:37; Luk 22:39; Jhn 8:1; Act 1:6-12',img_1390:'2Sa 18:9-33; 2Sa 19:1-8',img_1391:'2Sa 5:14; 2Sa 12:24; 1Ki 1-11; 1Ch 3; 1Ch 22:5-19; 1Ch 23:1; 1Ch 28:5-21; 1Ch 29:1-28; 2Ch 1-9; Psa 72:1; Psa 127:1; Pro 1-29; Ecc 1-12; Sng 1-8; Jer 52:20; Mat 1:6-7; Mat 6:29; Mat 12:42; Luk 11:31; Luk 12:27; Act 7:47',img_1440:'Exo 25:10-22; Exo 26:33-34; Exo 30:6, 26; Exo 31:7; Exo 35:12; Exo 37:1-15; Exo 39:35; Exo 40:3, 5, 20-21; Lev 16:2; Num 3:31; Num 4:5; Num 7:89; Num 10:33-36; Num 14:44; Deu 10:1-3, 5, 8; Deu 31:9, 25-26; Jos 3:3, 6, 8, 11, 13-17; Jos 4:5, 7, 9-11, 16, 18; Jos 4:7; Jos 6:4, 6-9, 11-13; Jos 7:6; Jos 8:33; Jdg 20:27; 1Sa 3:3; 1Sa 4:3-11, 13, 17-19, 21-22; 1Sa 5:1-11; 1Sa 6:1-3, 8, 11, 13, 15, 18-21; 1Sa 7:1-2; 1Sa 14:18; 2Sa 6:2-4, 6-17; 2Sa 7:2; 2Sa 11:11; 2Sa 15:24-29; 1Ki 2:26; 1Ki 3:15; 1Ki 6:19; 1Ki 8:1-9, 21; 1Ch 6:31; 1Ch 8:11; 1Ch 13:3-14; 1Ch 15:1-3, 12-15, 23-29; 1Ch 16:1, 4, 6, 37; 1Ch 17:1; 1Ch 22:19; 1Ch 28:2, 18; 2Ch 1:4; 2Ch 2:5-10; 2Ch 6:11, 41; 2Ch 8:11; 2Ch 35:3; Psa 132:8; Jer 3:16; Heb 9:4; Rev 11:19',img_1446:'Jdg 1-21; Rth 4:13; 1Sam 1-15; 2Sam 1-20; 2Ch 1-4; 2Ch 10; 2Ch 33; 1Ki 12; 1Ki 17-19; 1Ki 21; 2Ki 1-8; 2Ki 13; 2Ki 18-23; Ezr 1:1-4; Ezr 3:8-13; Ezr 4-6; Neh 1-13; Hos 1-14; Amo 1-9; Oba 1; Jon 1-4; Mic 1-7; Nah 1-3; Hab 1-3; Zep 1-3; Hag 1-2; Zec 1-14; Mal 1-4;',img_1685:'2Sa 7:4-17;Mat 13:44;Mat 13:45-46;Luk 1:30-33;Act 2:1-4;Luk 2:12;Eph 1:22-23',img_1710:'Deu 28:13;2Sa 7:11-17;1Ch 3:5;Neh 3-6;Jer 22:24-30;Jer 23:5;Eze 21:26-27;Dan 2:34-35;Dan 7:9-10, 13-14;Dan 7:13-14;Dan 9:20-27;Zec 8:23;Mat 1:1-17;Mat 3:1-6;Mat 4:23;Mat 13:1-52;Mat 13:44;Mat 13:45-46;Mat 21:1-11;Mat 22:1-14;Mat 25:31;Mat 25:33-34;Mar 16:19;Luk 3:23-38;Luk 10:1-9;Luk 19:11-27;Luk 21:24;Jhn 1:1;Act 1:10-12;Rom 8:34;Rom 14:10;2Co 5:10;Eph 1:22-23;Col 3:4;1Th 3:13;1Th 4:14-18;1Th 4:16-17;2Th 1:7-10;2Ti 2:12;Heb 4:14-16;2Pe 3:10-13;Rev 5:10;Rev 17:1-18;Rev 19:7-9;Rev 19:14;Rev 20:4-6;Rev 20:11;Rev 21:9-10',img_1766:'Deu 28:13;2Sa 7:11-17;1Ch 3:5;Neh 3-6;Jer 22:24-30;Jer 23:5;Eze 21:26-27;Dan 2:34-35;Dan 7:9-10, 13-14;Dan 7:13-14;Dan 9:20-27;Zec 8:23;Mat 1:1-17;Mat 3:1-6;Mat 4:23;Mat 13:1-52;Mat 13:44;Mat 13:45-46;Mat 21:1-11;Mat 22:1-14;Mat 25:31;Mat 25:33-34;Mar 16:19;Luk 3:23-38;Luk 10:1-9;Luk 19:11-27;Luk 21:24;Jhn 1:1;Act 1:10-12;Rom 8:34;Rom 14:10;2Co 5:10;Eph 1:22-23;Col 3:4;1Th 3:13;1Th 4:14-18;1Th 4:16-17;2Th 1:7-10;2Ti 2:12;Heb 4:14-16;2Pe 3:10-13;Rev 5:10;Rev 17:1-18;Rev 19:7-9;Rev 19:14;Rev 20:4-6;Rev 20:11;Rev 21:9-10',img_1482:'',img_1484:'',img_2232:'2Sa 22:3, 47; Psa 18:2, 46; Psa 25:5; Psa 27:9; Psa 51:14; Psa 62:1; Psa 74:12; Psa 88:1; Psa 89:26; Isa 61:10; Jer 2:19; Lam 1:3; Hos 14:4; Mic 7:7; Hab 3:18; Eph 6:18; Phl 4:6',img_1558:'',img_1981:'2Sa 22:3 CSB',img_1497:'',img_2252:'Gen 14:18; Gen 22:2; 2Sa 5:5-7; 2Sa 24:16, 18-25; 1Ch 11:4-6; 2Ch 3:1',img_2318:'2 Samuel',img_2319:'2Sa 5:6-9; 1Ch 11:4-9',img_2320:'2Sa 13:1-39; 2Sa 14:1-33; 2Sa 15:1-37; 2Sa 16:1-23; 2Sa 17:1-29; 2Sa 18:1-33; 2Sa 19:1-15'}, imgDescription: {img_576:'',img_577:'',img_578:'',img_579:'',img_580:'',img_581:'',img_582:'',img_583:'',img_584:'',img_585:'',img_586:'',img_587:'',img_588:'',img_589:'',img_590:'',img_591:'',img_592:'',img_593:'',img_594:'',img_595:'',img_596:'',img_597:'',img_598:'',img_599:'',img_600:'',img_601:'',img_602:'',img_603:'',img_604:'',img_605:'',img_606:'',img_607:'',img_608:'',img_609:'',img_610:'',img_611:'',img_612:'',img_613:'',img_621:'',img_622:'',img_630:'',img_631:'',img_632:'',img_637:'',img_638:'',img_1134:'',img_1135:'',img_1136:'',img_1137:'',img_1138:'',img_1139:'',img_1144:'',img_1146:'',img_1149:'',img_1150:'',img_1151:'',img_1152:'',img_1153:'',img_1154:'',img_1155:'',img_1188:'',img_1246:'',img_1247:'',img_1249:'',img_1251:'',img_1352:'',img_1356:'',img_1360:'',img_1361:'',img_1390:'',img_1391:'',img_1440:'',img_1446:'',img_1685:'',img_1710:'',img_1766:'',img_1482:'

These Bible word clouds feature the top 150 to 300 words used in the indicated section of Scripture.

',img_1484:'

These Bible word clouds feature the top 150 to 300 words used in the indicated section of Scripture.

',img_2232:'
Detailed study information about this image:
Common Cycle for Each Judge
',img_1558:'

These Bible word clouds feature the top 150 to 300 words used in the indicated section of Scripture.

',img_1981:'',img_1497:'

These Bible word clouds feature the top 150 to 300 words used in the indicated section of Scripture.

',img_2252:'
Detailed study information about this image:
Jerusalem in the Time of David
',img_2318:'
Detailed study information about this image:
The Setting of Second Samuel
',img_2319:'
Detailed study information about this image:
David Captures the Stronghold of Zion
',img_2320:'
Detailed study information about this image:
David and Absalom
'}, 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); } // Resize left/right expand controls to fit image area setTimeout(function() { let lefty = document.querySelector('#siteExpandLeft'); let righty = document.querySelector('#siteExpandRight'); let imgBody = document.querySelector('.bubBody.imgBody'); if (lefty && righty && imgBody) { let height = parseInt(imgBody.getBoundingClientRect().height); if (!isNaN(height) && height > 145) { lefty.style.maxHeight = height + 37 + 'px'; righty.style.maxHeight = height + 37 + 'px'; console.log(height); } } }, 500) 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); })();