window.thumbnails = {};
															thumbnails[6411216] = clik.newPhoto({"id":6411216,"src":"BornOfTheSpirit-1_thumb.jpg","galleries_id":149488,"server_id":1,"link":"photo_6411216.html","width":130,"caption":"Born of the Spirit","height":173});
															thumbnails[6411246] = clik.newPhoto({"id":6411246,"src":"HumbleThemselves-1_thumb.jpg","galleries_id":151263,"server_id":1,"link":"photo_6411246.html","width":130,"caption":"Humble Themselves","height":88});
															thumbnails[6411255] = clik.newPhoto({"id":6411255,"src":"WildernessLikeEden-1_thumb.jpg","galleries_id":49751,"server_id":1,"link":"photo_6411255.html","width":130,"caption":"Wilderness Like Eden","height":98});
															thumbnails[6193010] = clik.newPhoto({"id":6193010,"src":"LeftTheirFirstEstate-1_thumb.jpg","galleries_id":345715,"server_id":1,"link":"photo_6193010.html","width":130,"caption":"Left Their First Estate","height":102});
															thumbnails[5712026] = clik.newPhoto({"id":5712026,"src":"ABetterAndAnEnduringSubstan-1_thumb.jpg","galleries_id":149491,"server_id":1,"link":"photo_5712026.html","width":130,"caption":"A Better and an Enduring Substance","height":85});
															thumbnails[5712047] = clik.newPhoto({"id":5712047,"src":"FellowshipoftheTrinity-1_thumb.jpg","galleries_id":149490,"server_id":1,"link":"photo_5712047.html","width":130,"caption":"Fellowship of the Trinity","height":78});
															thumbnails[5599715] = clik.newPhoto({"id":5599715,"src":"InYourLight-1_thumb.jpg","galleries_id":49750,"server_id":1,"link":"photo_5599715.html","width":130,"caption":"In Your Light","height":101});
															thumbnails[5473925] = clik.newPhoto({"id":5473925,"src":"NewJerusalem-2_thumb.jpg","galleries_id":269875,"server_id":1,"link":"photo_5473925.html","width":130,"caption":"New Jerusalem","height":97});
															thumbnails[5474012] = clik.newPhoto({"id":5474012,"src":"LookingForAndHasting-1_thumb.jpg","galleries_id":149486,"server_id":1,"link":"photo_5474012.html","width":130,"caption":"Looking for and Hasting","height":96});
															thumbnails[5553253] = clik.newPhoto({"id":5553253,"src":"AnEndToDarkness-1_thumb.jpg","galleries_id":49754,"server_id":1,"link":"photo_5553253.html","width":130,"caption":"An End to Darkness","height":173});
															thumbnails[5288720] = clik.newPhoto({"id":5288720,"src":"FaithfulMessenger-1_thumb.jpg","galleries_id":55682,"server_id":1,"link":"photo_5288720.html","width":130,"caption":"Faithful Messenger","height":86});
															thumbnails[5288725] = clik.newPhoto({"id":5288725,"src":"HoarfrostLikeAshes-1_thumb.jpg","galleries_id":49750,"server_id":1,"link":"photo_5288725.html","width":130,"caption":"Hoarfrost Like Ashes","height":98});
															thumbnails[5288745] = clik.newPhoto({"id":5288745,"src":"RenewARightSpirit-1_thumb.jpg","galleries_id":49750,"server_id":1,"link":"photo_5288745.html","width":130,"caption":"Renew a Right Spirit","height":98});
															thumbnails[5288748] = clik.newPhoto({"id":5288748,"src":"SummerAndWinter-1_thumb.jpg","galleries_id":49750,"server_id":1,"link":"photo_5288748.html","width":130,"caption":"Summer and Winter","height":77});
															thumbnails[5226736] = clik.newPhoto({"id":5226736,"src":"BeNotFarFromMe-1_thumb.jpg","galleries_id":49750,"server_id":1,"link":"photo_5226736.html","width":130,"caption":"Be Not Far From Me","height":98});
															thumbnails[5226737] = clik.newPhoto({"id":5226737,"src":"GoldTriedInTheFire-1_thumb.jpg","galleries_id":269875,"server_id":1,"link":"photo_5226737.html","width":130,"caption":"Gold Tried in the Fire","height":98});
															thumbnails[5027921] = clik.newPhoto({"id":5027921,"src":"DwellSafely-1_thumb.jpg","galleries_id":241374,"server_id":1,"link":"photo_5027921.html","width":130,"caption":"Dwell Safely","height":69});
															thumbnails[5027955] = clik.newPhoto({"id":5027955,"src":"LookUntotheHeavens-1_thumb.jpg","galleries_id":49754,"server_id":1,"link":"photo_5027955.html","width":130,"caption":"Look Unto the Heavens","height":84});
															thumbnails[5028000] = clik.newPhoto({"id":5028000,"src":"TreesoftheWoodRejoice-1_C3D6F130-1EC9-DFB6-0916BB9FAB47C8E8_thumb.jpg","galleries_id":49750,"server_id":1,"link":"photo_5028000.html","width":130,"caption":"Trees of the Wood Rejoice","height":93});
															thumbnails[4920785] = clik.newPhoto({"id":4920785,"src":"TheLordShallPreserve-1_thumb.jpg","galleries_id":49750,"server_id":1,"link":"photo_4920785.html","width":130,"caption":"The Lord Shall Preserve","height":98});
															thumbnails[4690083] = clik.newPhoto({"id":4690083,"src":"WalkWhileThereIsLight-1_thumb.jpg","galleries_id":149488,"server_id":1,"link":"photo_4690083.html","width":130,"caption":"Walk Whilst There is Light","height":80});
															thumbnails[4690092] = clik.newPhoto({"id":4690092,"src":"HeavenScroll-1_thumb.jpg","galleries_id":269875,"server_id":1,"link":"photo_4690092.html","width":130,"caption":"Heaven Scroll","height":98});
															thumbnails[4690104] = clik.newPhoto({"id":4690104,"src":"StablishYourHearts-1_thumb.jpg","galleries_id":269880,"server_id":1,"link":"photo_4690104.html","width":130,"caption":"Stablish Your Hearts","height":63});
															thumbnails[4160808] = clik.newPhoto({"id":4160808,"src":"WhereWastThou-1_thumb.jpg","galleries_id":49754,"server_id":1,"link":"photo_4160808.html","width":130,"caption":"Where Wast Thou?","height":59});
															thumbnails[4073874] = clik.newPhoto({"id":4073874,"src":"HoldingForthTheWordOfLife-1_thumb.jpg","galleries_id":244956,"server_id":1,"link":"photo_4073874.html","width":130,"caption":"Holding Forth the Word of Life","height":98});
															thumbnails[4073878] = clik.newPhoto({"id":4073878,"src":"PeacefulHabitation-1_thumb.jpg","galleries_id":49751,"server_id":1,"link":"photo_4073878.html","width":130,"caption":"Peaceful Habitation","height":97});
															thumbnails[4073883] = clik.newPhoto({"id":4073883,"src":"TheThirdPart-1_thumb.jpg","galleries_id":144930,"server_id":1,"link":"photo_4073883.html","width":130,"caption":"The Third Part","height":98});
															thumbnails[4073889] = clik.newPhoto({"id":4073889,"src":"ThroneInHeaven-1_thumb.jpg","galleries_id":49750,"server_id":1,"link":"photo_4073889.html","width":130,"caption":"Throne in Heaven","height":76});
															thumbnails[4073896] = clik.newPhoto({"id":4073896,"src":"WhatWeShallBe-1_thumb.jpg","galleries_id":244959,"server_id":1,"link":"photo_4073896.html","width":130,"caption":"What we Shall Be","height":89});
															thumbnails[3989886] = clik.newPhoto({"id":3989886,"src":"AFountainOfGardens-1_thumb.jpg","galleries_id":241371,"server_id":1,"link":"photo_3989886.html","width":130,"caption":"A Fountain of Gardens","height":80});
															thumbnails[3989902] = clik.newPhoto({"id":3989902,"src":"WondrousWorksOfGod-1_thumb.jpg","galleries_id":49754,"server_id":1,"link":"photo_3989902.html","width":130,"caption":"Golden Splendor","height":97});
															thumbnails[3989913] = clik.newPhoto({"id":3989913,"src":"SleepintheWoods-1_thumb.jpg","galleries_id":241374,"server_id":1,"link":"photo_3989913.html","width":130,"caption":"Sleep in the Woods","height":98});
															thumbnails[3757666] = clik.newPhoto({"id":3757666,"src":"TwoareBetter-1_thumb.jpg","galleries_id":229273,"server_id":1,"link":"photo_3757666.html","width":130,"caption":"Two are Better","height":59});
															thumbnails[3757670] = clik.newPhoto({"id":3757670,"src":"DivideroftheSea-1_thumb.jpg","galleries_id":49751,"server_id":1,"link":"photo_3757670.html","width":130,"caption":"Divider of the Sea","height":98});
															thumbnails[3757673] = clik.newPhoto({"id":3757673,"src":"FaceoftheWaters-1_thumb.jpg","galleries_id":55683,"server_id":1,"link":"photo_3757673.html","width":130,"caption":"Face of the Waters","height":85});
															thumbnails[3757677] = clik.newPhoto({"id":3757677,"src":"LightenmyDarkness-1_thumb.jpg","galleries_id":68201,"server_id":1,"link":"photo_3757677.html","width":130,"caption":"Lighten my Darkness","height":97});
															thumbnails[3757682] = clik.newPhoto({"id":3757682,"src":"HeisRisen-1_thumb.jpg","galleries_id":229277,"server_id":1,"link":"photo_3757682.html","width":130,"caption":"He is Risen","height":102});
															thumbnails[3757687] = clik.newPhoto({"id":3757687,"src":"TowerandaFortress-1_thumb.jpg","galleries_id":229278,"server_id":1,"link":"photo_3757687.html","width":130,"caption":"Tower and a Fortress","height":76});
															thumbnails[3757693] = clik.newPhoto({"id":3757693,"src":"Leviathan-1_thumb.jpg","galleries_id":49754,"server_id":1,"link":"photo_3757693.html","width":130,"caption":"Leviathan","height":67});
															thumbnails[3160631] = clik.newPhoto({"id":3160631,"src":"SetTheTrumpet-1_thumb.jpg","galleries_id":193604,"server_id":1,"link":"photo_3160631.html","width":130,"caption":"One Like a Vulture","height":78});
															thumbnails[3121058] = clik.newPhoto({"id":3121058,"src":"EveryHillandValley-1_thumb.jpg","galleries_id":149487,"server_id":1,"link":"photo_3121058.html","width":130,"caption":"Every Hill and Valley","height":71});
															thumbnails[2535870] = clik.newPhoto({"id":2535870,"src":"AncientisWisdom-1_thumb.jpg","galleries_id":49754,"server_id":1,"link":"photo_2535870.html","width":130,"caption":"Ancient Wisdom","height":98});
															thumbnails[2535882] = clik.newPhoto({"id":2535882,"src":"CaughtupintoParadise600_thumb.jpg","galleries_id":149490,"server_id":1,"link":"photo_2535882.html","width":130,"caption":"Caught up into Paradise","height":113});
															thumbnails[2535898] = clik.newPhoto({"id":2535898,"src":"GlassDarkly-1_thumb.jpg","galleries_id":149490,"server_id":1,"link":"photo_2535898.html","width":130,"caption":"Glass Darkly","height":98});
															thumbnails[2535940] = clik.newPhoto({"id":2535940,"src":"TimeofTrouble-1_thumb.jpg","galleries_id":49750,"server_id":1,"link":"photo_2535940.html","width":130,"caption":"Time of Trouble","height":84});
															thumbnails[2313939] = clik.newPhoto({"id":2313939,"src":"HolyAttire-1_thumb.jpg","galleries_id":151263,"server_id":1,"link":"photo_2313939.html","width":130,"caption":"Sing to the LORD","height":87});
															thumbnails[2264273] = clik.newPhoto({"id":2264273,"src":"ShallNotCease-1_thumb.jpg","galleries_id":55683,"server_id":1,"link":"photo_2264273.html","width":130,"caption":"Shall Not Cease","height":96});
															thumbnails[2273948] = clik.newPhoto({"id":2273948,"src":"RighteouswillFlourish-1_thumb.jpg","galleries_id":55682,"server_id":1,"link":"photo_2273948.html","width":130,"caption":"Righteous will Flourish","height":98});
															thumbnails[2273953] = clik.newPhoto({"id":2273953,"src":"ShadowofYourWings-1_thumb.jpg","galleries_id":49750,"server_id":1,"link":"photo_2273953.html","width":130,"caption":"Shadow of Your Wings","height":98});
															thumbnails[2189635] = clik.newPhoto({"id":2189635,"src":"StillWaters-1_thumb.jpg","galleries_id":49750,"server_id":1,"link":"photo_2189635.html","width":130,"caption":"Still Waters","height":72});
															thumbnails[1866647] = clik.newPhoto({"id":1866647,"src":"BreathofGod-1_thumb.jpg","galleries_id":49754,"server_id":1,"link":"photo_1866647.html","width":130,"caption":"Breath of God","height":95});
															thumbnails[1866649] = clik.newPhoto({"id":1866649,"src":"SplendourandMajesty-1_thumb.jpg","galleries_id":49750,"server_id":1,"link":"photo_1866649.html","width":130,"caption":"Splendour and Majesty","height":99});
															thumbnails[1687135] = clik.newPhoto({"id":1687135,"src":"EastfromWest-1_thumb.jpg","galleries_id":49750,"server_id":1,"link":"photo_1687135.html","width":130,"caption":"East from West","height":98});
															thumbnails[1687141] = clik.newPhoto({"id":1687141,"src":"Purge-1_thumb.jpg","galleries_id":49751,"server_id":1,"link":"photo_1687141.html","width":130,"caption":"Purge","height":98});
															thumbnails[1687178] = clik.newPhoto({"id":1687178,"src":"TabernacleofDavid-1_thumb.jpg","galleries_id":113675,"server_id":1,"link":"photo_1687178.html","width":130,"caption":"Tabernacle of David","height":98});
															thumbnails[1651638] = clik.newPhoto({"id":1651638,"src":"GodofLiving-1_thumb.jpg","galleries_id":149485,"server_id":1,"link":"photo_1651638.html","width":130,"caption":"God of the Living","height":98});
															thumbnails[1651640] = clik.newPhoto({"id":1651640,"src":"RevivefromDepths-1_thumb.jpg","galleries_id":49750,"server_id":1,"link":"photo_1651640.html","width":130,"caption":"Revive from Depths","height":98});
															thumbnails[1651706] = clik.newPhoto({"id":1651706,"src":"ComingwiththeClouds-1_thumb.jpg","galleries_id":149485,"server_id":1,"link":"photo_1651706.html","width":130,"caption":"Coming with the Clouds","height":98});
															thumbnails[1651710] = clik.newPhoto({"id":1651710,"src":"GiveLight-1_thumb.jpg","galleries_id":149487,"server_id":1,"link":"photo_1651710.html","width":130,"caption":"Light in Darkness","height":96});
															thumbnails[1590039] = clik.newPhoto({"id":1590039,"src":"RighteousPeace-1_thumb.jpg","galleries_id":49751,"server_id":1,"link":"photo_1590039.html","width":130,"caption":"Righteous Peace","height":98});
															thumbnails[1590046] = clik.newPhoto({"id":1590046,"src":"GoldTree-1_thumb.jpg","galleries_id":49754,"server_id":1,"link":"photo_1590046.html","width":130,"caption":"Tried Gold","height":98});
															thumbnails[1463898] = clik.newPhoto({"id":1463898,"src":"ManyRooms-1_thumb.jpg","galleries_id":149488,"server_id":1,"link":"photo_1463898.html","width":130,"caption":"Many Rooms","height":98});
															thumbnails[1463900] = clik.newPhoto({"id":1463900,"src":"PathofLight-1_thumb.jpg","galleries_id":49750,"server_id":1,"link":"photo_1463900.html","width":130,"caption":"Path of Light","height":93});
															thumbnails[1118268] = clik.newPhoto({"id":1118268,"src":"ArisenLightGreen-1_thumb.jpg","galleries_id":49751,"server_id":1,"link":"photo_1118268.html","width":130,"caption":"Arise and Shine (Green)","height":98});
															thumbnails[1118357] = clik.newPhoto({"id":1118357,"src":"ArisenLightRed-1_thumb.jpg","galleries_id":49751,"server_id":1,"link":"photo_1118357.html","width":130,"caption":"Arise and Shine (Red)","height":98});
															thumbnails[1118711] = clik.newPhoto({"id":1118711,"src":"SunTent-1_thumb.jpg","galleries_id":49750,"server_id":1,"link":"photo_1118711.html","width":130,"caption":"Sun Tent","height":98});
															thumbnails[1129308] = clik.newPhoto({"id":1129308,"src":"MeekQuiet-1_thumb.jpg","galleries_id":149486,"server_id":1,"link":"photo_1129308.html","width":130,"caption":"Meek & Quiet","height":98});
															thumbnails[953760] = clik.newPhoto({"id":953760,"src":"BrassWood-1_thumb.jpg","galleries_id":49754,"server_id":1,"link":"photo_953760.html","width":130,"caption":"Brass Wood","height":98});
															thumbnails[953790] = clik.newPhoto({"id":953790,"src":"TrumpetIncorruptible-1_thumb.jpg","galleries_id":149490,"server_id":1,"link":"photo_953790.html","width":130,"caption":"The Last Trump","height":110});
															thumbnails[889142] = clik.newPhoto({"id":889142,"src":"GodofmyRock-1_thumb.jpg","galleries_id":68201,"server_id":1,"link":"photo_889142.html","width":130,"caption":"God of my Rock","height":98});
															thumbnails[889145] = clik.newPhoto({"id":889145,"src":"ProsperingTree-1_thumb.jpg","galleries_id":49750,"server_id":1,"link":"photo_889145.html","width":130,"caption":"Prospering Tree","height":96});
															thumbnails[889147] = clik.newPhoto({"id":889147,"src":"PeaceandEvil-1_thumb.jpg","galleries_id":49751,"server_id":1,"link":"photo_889147.html","width":130,"caption":"Light and Darkness","height":98});
															thumbnails[723302] = clik.newPhoto({"id":723302,"src":"FlowerCleave-1_thumb.jpg","galleries_id":55683,"server_id":1,"link":"photo_723302.html","width":130,"caption":"Cleaving Flowers","height":98});
															thumbnails[723303] = clik.newPhoto({"id":723303,"src":"PreparedHorse-1_thumb.jpg","galleries_id":55682,"server_id":1,"link":"photo_723303.html","width":130,"caption":"Prepared Horse","height":98});
															thumbnails[718602] = clik.newPhoto({"id":718602,"src":"PureSwan-1_thumb.jpg","galleries_id":149491,"server_id":1,"link":"photo_718602.html","width":130,"caption":"Pure Swan","height":98});
															thumbnails[652508] = clik.newPhoto({"id":652508,"src":"FixedHeart-1_thumb.jpg","galleries_id":49750,"server_id":1,"link":"photo_652508.html","width":130,"caption":"Fixed Heart","height":93});
															thumbnails[652510] = clik.newPhoto({"id":652510,"src":"HollowWaters-1_thumb.jpg","galleries_id":49751,"server_id":1,"link":"photo_652510.html","width":130,"caption":"Hollow Waters","height":96});
															thumbnails[652511] = clik.newPhoto({"id":652511,"src":"LittleHills-1_thumb.jpg","galleries_id":49750,"server_id":1,"link":"photo_652511.html","width":130,"caption":"Little Hills","height":96});
															thumbnails[652512] = clik.newPhoto({"id":652512,"src":"MorningLight-1_thumb.jpg","galleries_id":49751,"server_id":1,"link":"photo_652512.html","width":130,"caption":"Morning Light","height":98});
															thumbnails[652513] = clik.newPhoto({"id":652513,"src":"NightRiver-1_thumb.jpg","galleries_id":49750,"server_id":1,"link":"photo_652513.html","width":130,"caption":"Night River","height":98});
															thumbnails[652514] = clik.newPhoto({"id":652514,"src":"NotbeMoved-1_thumb.jpg","galleries_id":49750,"server_id":1,"link":"photo_652514.html","width":130,"caption":"My Defense","height":94});
															thumbnails[652515] = clik.newPhoto({"id":652515,"src":"OpenRock-1_thumb.jpg","galleries_id":49750,"server_id":1,"link":"photo_652515.html","width":130,"caption":"Open Rock","height":98});
															thumbnails[652516] = clik.newPhoto({"id":652516,"src":"PathofLife-11_thumb.jpg","galleries_id":49750,"server_id":1,"link":"photo_652516.html","width":130,"caption":"Path of Life","height":75});
															thumbnails[652517] = clik.newPhoto({"id":652517,"src":"PerfectionofBeauty-1_thumb.jpg","galleries_id":49750,"server_id":1,"link":"photo_652517.html","width":130,"caption":"Perfection of Beauty","height":95});
															thumbnails[652518] = clik.newPhoto({"id":652518,"src":"PreciousThing-1_thumb.jpg","galleries_id":49754,"server_id":1,"link":"photo_652518.html","width":130,"caption":"Precious Thing","height":98});
															thumbnails[652519] = clik.newPhoto({"id":652519,"src":"RiverTrees-1_thumb.jpg","galleries_id":49754,"server_id":1,"link":"photo_652519.html","width":130,"caption":"Protective Trees","height":98});
															thumbnails[652520] = clik.newPhoto({"id":652520,"src":"SmokingHills-1_thumb.jpg","galleries_id":49750,"server_id":1,"link":"photo_652520.html","width":130,"caption":"Smoking Hills","height":98});
															thumbnails[1463897] = clik.newPhoto({"id":1463897,"src":"LightArmour-1_thumb.jpg","galleries_id":149484,"server_id":1,"link":"photo_1463897.html","width":130,"caption":"Armour of Light","height":95});
															thumbnails[2189627] = clik.newPhoto({"id":2189627,"src":"HourHasCome-1_thumb.jpg","galleries_id":149484,"server_id":1,"link":"photo_2189627.html","width":130,"caption":"Hour Has Come","height":98});
															thumbnails[2273961] = clik.newPhoto({"id":2273961,"src":"EagerLonging-1_thumb.jpg","galleries_id":149484,"server_id":1,"link":"photo_2273961.html","width":130,"caption":"Eager Longing","height":67});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[49739] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Old Testament - 64 Photos","link":"gallery_49739.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"2273948,723302,652518,652513","id":49739,"singleSection":false});				  						galleries[49733] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"New Testament - 26 Photos","link":"gallery_49733.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"4690083,2535898,1651638,1463897,1129308,718602","id":49733,"singleSection":false});				  						galleries[55683] = clik.newGallery({"parentGallery":49739,"usePopups":true,"title":"Genesis - 3 Photos","link":"gallery_55683.html","maxRecords":0.0,"photoIDs":[3757673.0,2264273.0,723302.0],"skipIndex":0,"section_code":"gallery","featured_images":723302.0,"id":55683,"singleSection":false});				  						galleries[68201] = clik.newGallery({"parentGallery":49739,"usePopups":true,"title":"II Samuel - 2 Photos","link":"gallery_68201.html","maxRecords":0.0,"photoIDs":[3757677.0,889142.0],"skipIndex":0,"section_code":"gallery","featured_images":"3757677,889142","id":68201,"singleSection":false});				  						galleries[151263] = clik.newGallery({"parentGallery":49739,"usePopups":true,"title":"Chronicles - 2 Photos","link":"gallery_151263.html","maxRecords":0.0,"photoIDs":[6411246.0,2313939.0],"skipIndex":0,"section_code":"gallery","featured_images":"6411246,2313939","id":151263,"singleSection":false});				  						galleries[49754] = clik.newGallery({"parentGallery":49739,"usePopups":true,"title":"Job - 11 Photos","link":"gallery_49754.html","maxRecords":0.0,"photoIDs":[5553253.0,5027955.0,4160808.0,3989902.0,3757693.0,2535870.0,1866647.0,1590046.0,953760.0,652518.0,652519.0],"skipIndex":0,"section_code":"gallery","featured_images":652518.0,"id":49754,"singleSection":false});				  						galleries[49750] = clik.newGallery({"parentGallery":49739,"usePopups":true,"title":"Psalms - 25 Photos","link":"gallery_49750.html","maxRecords":0.0,"photoIDs":[5599715.0,5288725.0,5288745.0,5288748.0,5226736.0,5028000.0,4920785.0,4073889.0,2535940.0,2273953.0,2189635.0,1866649.0,1687135.0,1651640.0,1463900.0,1118711.0,889145.0,652508.0,652511.0,652513.0,652514.0,652515.0,652516.0,652517.0,652520.0],"skipIndex":0,"section_code":"gallery","featured_images":652513.0,"id":49750,"singleSection":false});				  						galleries[55682] = clik.newGallery({"parentGallery":49739,"usePopups":true,"title":"Proverbs - 3 Photos","link":"gallery_55682.html","maxRecords":0.0,"photoIDs":[5288720.0,2273948.0,723303.0],"skipIndex":0,"section_code":"gallery","featured_images":2273948.0,"id":55682,"singleSection":false});				  						galleries[229273] = clik.newGallery({"parentGallery":49739,"usePopups":true,"title":"Ecclesiastes - 1 Photo","link":"gallery_229273.html","maxRecords":0.0,"photoIDs":[3757666.0],"skipIndex":0,"section_code":"gallery","featured_images":3757666.0,"id":229273,"singleSection":false});				  						galleries[241371] = clik.newGallery({"parentGallery":49739,"usePopups":true,"title":"Song of Solomon - 1 Photo","link":"gallery_241371.html","maxRecords":0.0,"photoIDs":[3989886.0],"skipIndex":0,"section_code":"gallery","featured_images":3989886.0,"id":241371,"singleSection":false});				  						galleries[49751] = clik.newGallery({"parentGallery":49739,"usePopups":true,"title":"Isaiah - 10 Photos","link":"gallery_49751.html","maxRecords":0.0,"photoIDs":[6411255.0,4073878.0,3757670.0,1687141.0,1590039.0,1118268.0,1118357.0,889147.0,652510.0,652512.0],"skipIndex":0,"section_code":"gallery","featured_images":"6411255,4073878,3757670,1687141,1590039,1118357,1118268,889147,652512,652510","id":49751,"singleSection":false});				  						galleries[229278] = clik.newGallery({"parentGallery":49739,"usePopups":true,"title":"Jeremiah - 1 Photo","link":"gallery_229278.html","maxRecords":0.0,"photoIDs":[3757687.0],"skipIndex":0,"section_code":"gallery","featured_images":3757687.0,"id":229278,"singleSection":false});				  						galleries[241374] = clik.newGallery({"parentGallery":49739,"usePopups":true,"title":"Ezekiel - 2 Photos","link":"gallery_241374.html","maxRecords":0.0,"photoIDs":[5027921.0,3989913.0],"skipIndex":0,"section_code":"gallery","featured_images":"5027921,3989913","id":241374,"singleSection":false});				  						galleries[193604] = clik.newGallery({"parentGallery":49739,"usePopups":true,"title":"Hosea - 1 Photo","link":"gallery_193604.html","maxRecords":0.0,"photoIDs":[3160631.0],"skipIndex":0,"section_code":"gallery","featured_images":3160631.0,"id":193604,"singleSection":false});				  						galleries[113675] = clik.newGallery({"parentGallery":49739,"usePopups":true,"title":"Amos - 1 Photo","link":"gallery_113675.html","maxRecords":0.0,"photoIDs":[1687178.0],"skipIndex":0,"section_code":"gallery","featured_images":1687178.0,"id":113675,"singleSection":false});				  						galleries[144930] = clik.newGallery({"parentGallery":49739,"usePopups":true,"title":"Zechariah - 1 Photo","link":"gallery_144930.html","maxRecords":0.0,"photoIDs":[4073883.0],"skipIndex":0,"section_code":"gallery","featured_images":4073883.0,"id":144930,"singleSection":false});				  						galleries[229277] = clik.newGallery({"parentGallery":49733,"usePopups":true,"title":"Matthew - 1 Photo","link":"gallery_229277.html","maxRecords":0.0,"photoIDs":[3757682.0],"skipIndex":0,"section_code":"gallery","featured_images":3757682.0,"id":229277,"singleSection":false});				  						galleries[149485] = clik.newGallery({"parentGallery":49733,"usePopups":true,"title":"Mark - 2 Photos","link":"gallery_149485.html","maxRecords":0.0,"photoIDs":[1651638.0,1651706.0],"skipIndex":0,"section_code":"gallery","featured_images":1651638.0,"id":149485,"singleSection":false});				  						galleries[149487] = clik.newGallery({"parentGallery":49733,"usePopups":true,"title":"Luke - 2 Photos","link":"gallery_149487.html","maxRecords":0.0,"photoIDs":[3121058.0,1651710.0],"skipIndex":0,"section_code":"gallery","featured_images":"3121058,1651710","id":149487,"singleSection":false});				  						galleries[149488] = clik.newGallery({"parentGallery":49733,"usePopups":true,"title":"John - 3 Photos","link":"gallery_149488.html","maxRecords":0.0,"photoIDs":[6411216.0,4690083.0,1463898.0],"skipIndex":0,"section_code":"gallery","featured_images":4690083.0,"id":149488,"singleSection":false});				  						galleries[149484] = clik.newGallery({"parentGallery":49733,"usePopups":true,"title":"Romans - 3 Photos","link":"gallery_149484.html","maxRecords":0.0,"photoIDs":[1463897.0,2189627.0,2273961.0],"skipIndex":0,"section_code":"gallery","featured_images":1463897.0,"id":149484,"singleSection":false});				  						galleries[149490] = clik.newGallery({"parentGallery":49733,"usePopups":true,"title":"Corinthians - 4 Photos","link":"gallery_149490.html","maxRecords":0.0,"photoIDs":[5712047.0,2535882.0,2535898.0,953790.0],"skipIndex":0,"section_code":"gallery","featured_images":2535898.0,"id":149490,"singleSection":false});				  						galleries[244956] = clik.newGallery({"parentGallery":49733,"usePopups":true,"title":"Philippians - 1 Photo","link":"gallery_244956.html","maxRecords":0.0,"photoIDs":[4073874.0],"skipIndex":0,"section_code":"gallery","featured_images":4073874.0,"id":244956,"singleSection":false});				  						galleries[149491] = clik.newGallery({"parentGallery":49733,"usePopups":true,"title":"Hebrews - 2 Photos","link":"gallery_149491.html","maxRecords":0.0,"photoIDs":[5712026.0,718602.0],"skipIndex":0,"section_code":"gallery","featured_images":718602.0,"id":149491,"singleSection":false});				  						galleries[149486] = clik.newGallery({"parentGallery":49733,"usePopups":true,"title":"1 & 2 Peter - 2 Photos","link":"gallery_149486.html","maxRecords":0.0,"photoIDs":[5474012.0,1129308.0],"skipIndex":0,"section_code":"gallery","featured_images":1129308.0,"id":149486,"singleSection":false});				  						galleries[244959] = clik.newGallery({"parentGallery":49733,"usePopups":true,"title":"1 John - 1 Photo","link":"gallery_244959.html","maxRecords":0.0,"photoIDs":[4073896.0],"skipIndex":0,"section_code":"gallery","featured_images":4073896.0,"id":244959,"singleSection":false});				  						galleries[269875] = clik.newGallery({"parentGallery":49733,"usePopups":true,"title":"Revelation - 3 Photos","link":"gallery_269875.html","maxRecords":0.0,"photoIDs":[5473925.0,5226737.0,4690092.0],"skipIndex":0,"section_code":"gallery","featured_images":"5473925,5226737,4690092","id":269875,"singleSection":false});				  						galleries[269880] = clik.newGallery({"parentGallery":49733,"usePopups":true,"title":"James - 1 Photo","link":"gallery_269880.html","maxRecords":0.0,"photoIDs":[4690104.0],"skipIndex":0,"section_code":"gallery","featured_images":4690104.0,"id":269880,"singleSection":false});				  						galleries[345715] = clik.newGallery({"parentGallery":49733,"usePopups":true,"title":"Jude - 1 Photo","link":"gallery_345715.html","maxRecords":0.0,"photoIDs":[6193010.0],"skipIndex":0,"section_code":"gallery","featured_images":6193010.0,"id":345715,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '652517';
imageSets[2] = '4690083,2535898,2273948,1651638,1129308,723302,718602,652518,652513,1463897';
imageSets[3] = '6411255,6411246,6411216,6193010,5712047,5712026,5599715,5553253,5474012,5473925,5288748,5288745,5288725,5288720,5226737,5226736,5028000,5027955,5027921,4920785,4690104,4690092,4690083,4160808,4073896,4073889,4073883,4073878,4073874,3989913,3989902,3989886,3757693,3757687,3757682,3757677,3757673,3757670,3757666,3160631,3121058,2535940,2535898,2535882,2535870,2313939,2273961,2273953,2273948,2264273';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/stuartwall/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/stuartwall/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/stuartwall/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/stuartwall/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/stuartwall/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/stuartwall/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/stuartwall/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/stuartwall/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/stuartwall/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/stuartwall/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/stuartwall/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/stuartwall/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/stuartwall/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/stuartwall/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/stuartwall/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/stuartwall/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/stuartwall/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/stuartwall/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/stuartwall/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/stuartwall/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/stuartwall/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/stuartwall/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/stuartwall/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/stuartwall/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/stuartwall/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/stuartwall/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/stuartwall/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = (backgrounds || photos || {})[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$detailContainer:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
		op = $.extend({},defaults,options),
		html = '', temp = '',
		photoId = op.nextPhoto.id,
		photoCaption = ''+op.nextPhoto.caption,
		photoSrc = op.nextPhoto.src;
	
	if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'Pictures & Scriptures: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
	temp += this.fnGetPaymentInfo();
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
																		temp += '<p>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp += '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
		else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
																		temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="stuartalive@googlemail.com">';
					temp += '<input type="hidden" name="currency_code" value="GBP">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="stuartalive@googlemail.com">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

