window.thumbnails = {};
															thumbnails[8596261] = clik.newPhoto({"id":8596261,"src":"OCC_58ABD17A-1EC9-DFB6-09E53A7A7CBEFB2B_thumb.JPG","galleries_id":"","server_id":4,"link":"#","width":130,"caption":"Operation Christmas Child","height":117});
															thumbnails[8597175] = clik.newPhoto({"id":8597175,"src":"Jesus_the_best_gift_of_all_thumb.JPG","galleries_id":"","server_id":4,"link":"#","width":130,"caption":"","height":48});
															thumbnails[8597625] = clik.newPhoto({"id":8597625,"src":"Girls_Brigade_Badge_Blk1_thumb.JPG","galleries_id":"","server_id":4,"link":"#","width":130,"caption":"","height":205});
															thumbnails[8846921] = clik.newPhoto({"id":8846921,"src":"The_Methodist_Church_thumb.jpg","galleries_id":"","server_id":4,"link":"#","width":130,"caption":"","height":196});
															thumbnails[3541292] = clik.newPhoto({"id":3541292,"src":"Banner now w_thumb.JPG","galleries_id":"","server_id":4,"link":"#","width":130,"caption":"Everyday Banner","height":197});
															thumbnails[3541295] = clik.newPhoto({"id":3541295,"src":"christmas banner w_thumb.JPG","galleries_id":"","server_id":4,"link":"#","width":130,"caption":"Christmas Banner","height":187});
															thumbnails[3541296] = clik.newPhoto({"id":3541296,"src":"Harvest banner w_thumb.JPG","galleries_id":"","server_id":4,"link":"#","width":130,"caption":"Harvest Banner","height":206});
															thumbnails[8011028] = clik.newPhoto({"id":8011028,"src":"Bobby_Malik_thumb.JPG","galleries_id":"","server_id":4,"link":"#","width":130,"caption":"Bobby Malik","height":195});
															thumbnails[3205139] = clik.newPhoto({"id":3205139,"src":"2 Kings_thumb.JPG","galleries_id":"","server_id":4,"link":"#","width":130,"caption":"2 Kings at the Nativity 2008","height":144});
															thumbnails[3205153] = clik.newPhoto({"id":3205153,"src":"M & J1_thumb.JPG","galleries_id":"","server_id":4,"link":"#","width":130,"caption":"Mary & Joseph searching for the Stable","height":135});
															thumbnails[3205159] = clik.newPhoto({"id":3205159,"src":"Mary & Joseph1_thumb.JPG","galleries_id":"","server_id":4,"link":"#","width":130,"caption":"Mary & Joseph coming out of Church","height":97});
															thumbnails[3331088] = clik.newPhoto({"id":3331088,"src":"Angel1_thumb.JPG","galleries_id":"","server_id":4,"link":"#","width":130,"caption":"Angel Banner","height":98});
															thumbnails[7290176] = clik.newPhoto({"id":7290176,"src":"IMG1355tiny1_thumb.jpg","galleries_id":"","server_id":4,"link":"#","width":130,"caption":"TEST IMAGE","height":195});
															thumbnails[2795095] = clik.newPhoto({"id":2795095,"src":"3 customers_thumb.JPG","galleries_id":"","server_id":4,"link":"#","width":130,"caption":"Shirley, Hugh & Bob - 3 happy customers","height":98});
															thumbnails[2795125] = clik.newPhoto({"id":2795125,"src":"Andrew_thumb.JPG","galleries_id":"","server_id":4,"link":"#","width":130,"caption":"Andrew","height":98});
															thumbnails[2795132] = clik.newPhoto({"id":2795132,"src":"caterers_thumb.JPG","galleries_id":"","server_id":4,"link":"#","width":130,"caption":"3 of the cooks again!","height":98});
															thumbnails[220044] = clik.newPhoto({"id":220044,"src":"catterpillars1_thumb.jpg","galleries_id":"","server_id":4,"link":"#","width":130,"caption":"<b>Caterpillars invade the Church<\/b>","height":98});
															thumbnails[285011] = clik.newPhoto({"id":285011,"src":"cake3_thumb.JPG","galleries_id":"","server_id":4,"link":"#","width":130,"caption":"<b>A confirmation cake!! - Yummy!!<\/b>","height":98});
															thumbnails[8827251] = clik.newPhoto({"id":8827251,"src":"Light_of_the_World_thumb.JPG","galleries_id":197185,"server_id":4,"link":"photo_8827251.html","width":130,"caption":"Light of the World","height":93});
															thumbnails[8777475] = clik.newPhoto({"id":8777475,"src":"GB_Gossip_Nov_2011_thumb.JPG","galleries_id":397887,"server_id":4,"link":"photo_8777475.html","width":130,"caption":"GB Gossip November 2011","height":185});
															thumbnails[8778424] = clik.newPhoto({"id":8778424,"src":"Praying_Hands_Old3_thumb.JPG","galleries_id":440454,"server_id":4,"link":"photo_8778424.html","width":130,"caption":"Praying Hands","height":100});
															thumbnails[8564374] = clik.newPhoto({"id":8564374,"src":"All_good_gifts_around_us_thumb.JPG","galleries_id":452674,"server_id":4,"link":"photo_8564374.html","width":130,"caption":"All good gifts around us","height":98});
															thumbnails[8564378] = clik.newPhoto({"id":8564378,"src":"All_things_near_and_far_thumb.JPG","galleries_id":452674,"server_id":4,"link":"photo_8564378.html","width":130,"caption":"All things near and far","height":98});
															thumbnails[8564379] = clik.newPhoto({"id":8564379,"src":"He_gives_our_daily_bread_thumb.JPG","galleries_id":452674,"server_id":4,"link":"photo_8564379.html","width":130,"caption":"He gives our daily bread","height":98});
															thumbnails[8564384] = clik.newPhoto({"id":8564384,"src":"He_gives_our_daily_bread1_thumb.JPG","galleries_id":452674,"server_id":4,"link":"photo_8564384.html","width":130,"caption":"He gives our daily_bread","height":98});
															thumbnails[8564454] = clik.newPhoto({"id":8564454,"src":"He_sends_the_snow_in_winter_thumb.JPG","galleries_id":452674,"server_id":4,"link":"photo_8564454.html","width":130,"caption":"He sends the snow in winter","height":98});
															thumbnails[8564456] = clik.newPhoto({"id":8564456,"src":"Seed_time_and_harvest_thumb.JPG","galleries_id":452674,"server_id":4,"link":"photo_8564456.html","width":130,"caption":"Seed time and harvest","height":98});
															thumbnails[8564563] = clik.newPhoto({"id":8564563,"src":"The_breezes__the_sunshine_thumb.JPG","galleries_id":452674,"server_id":4,"link":"photo_8564563.html","width":130,"caption":"The breezes & the sunshine","height":173});
															thumbnails[8564594] = clik.newPhoto({"id":8564594,"src":"Wayside_flowers_thumb.JPG","galleries_id":452674,"server_id":4,"link":"photo_8564594.html","width":130,"caption":"Wayside flowers","height":98});
															thumbnails[8564595] = clik.newPhoto({"id":8564595,"src":"Window_flowers_thumb.JPG","galleries_id":452674,"server_id":4,"link":"photo_8564595.html","width":130,"caption":"Window flowers","height":98});
															thumbnails[8564596] = clik.newPhoto({"id":8564596,"src":"Harvest_gifts_from_the_children_thumb.JPG","galleries_id":452674,"server_id":4,"link":"photo_8564596.html","width":130,"caption":"Harvest gifts","height":173});
															thumbnails[8456383] = clik.newPhoto({"id":8456383,"src":"Jesus_Crew_Party_July_2011_01_thumb.jpg","galleries_id":430837,"server_id":4,"link":"photo_8456383.html","width":130,"caption":"Jesus Crew Party July 2011","height":98});
															thumbnails[8564597] = clik.newPhoto({"id":8564597,"src":"Lyndon_sings_out_thumb.JPG","galleries_id":452674,"server_id":4,"link":"photo_8564597.html","width":130,"caption":"Lyndon sings out","height":98});
															thumbnails[8522365] = clik.newPhoto({"id":8522365,"src":"Jesus_Crew_Party_July_2011_02_thumb.jpg","galleries_id":430837,"server_id":4,"link":"photo_8522365.html","width":130,"caption":"Jesus Crew Party July 2011","height":98});
															thumbnails[8522381] = clik.newPhoto({"id":8522381,"src":"Jesus_Crew_Party_July_2011_03_thumb.jpg","galleries_id":430837,"server_id":4,"link":"photo_8522381.html","width":130,"caption":"Jesus Crew Party July 2011","height":98});
															thumbnails[8522391] = clik.newPhoto({"id":8522391,"src":"Jesus_Crew_Party_July_2011_04_thumb.jpg","galleries_id":430837,"server_id":4,"link":"photo_8522391.html","width":130,"caption":"Jesus Crew Party July 2011","height":98});
															thumbnails[8522406] = clik.newPhoto({"id":8522406,"src":"Jesus_Crew_Party_July_2011_071_thumb.jpg","galleries_id":430837,"server_id":4,"link":"photo_8522406.html","width":130,"caption":"Jesus Crew Party July 2011","height":98});
															thumbnails[8522477] = clik.newPhoto({"id":8522477,"src":"Jesus_Crew_Party_July_2011_09_thumb.jpg","galleries_id":430837,"server_id":4,"link":"photo_8522477.html","width":130,"caption":"Jesus Crew Party July 2011","height":98});
															thumbnails[8522511] = clik.newPhoto({"id":8522511,"src":"Jesus_Crew_Party_July_2011_11_thumb.jpg","galleries_id":430837,"server_id":4,"link":"photo_8522511.html","width":130,"caption":"Jesus Crew Party July 2011","height":98});
															thumbnails[8522549] = clik.newPhoto({"id":8522549,"src":"Jesus_Crew_Party_July_2011_12_thumb.jpg","galleries_id":430837,"server_id":4,"link":"photo_8522549.html","width":130,"caption":"Jesus Crew Party July 2011","height":98});
															thumbnails[8522567] = clik.newPhoto({"id":8522567,"src":"Jesus_Crew_Party_July_2011_13_thumb.jpg","galleries_id":430837,"server_id":4,"link":"photo_8522567.html","width":130,"caption":"Jesus Crew Party July 2011","height":98});
															thumbnails[8522570] = clik.newPhoto({"id":8522570,"src":"Jesus_Crew_Party_July_2011_15_thumb.jpg","galleries_id":430837,"server_id":4,"link":"photo_8522570.html","width":130,"caption":"Jesus Crew Party July 2011","height":98});
															thumbnails[8522572] = clik.newPhoto({"id":8522572,"src":"Jesus_Crew_Party_July_2011_18_thumb.jpg","galleries_id":430837,"server_id":4,"link":"photo_8522572.html","width":130,"caption":"Jesus Crew Party July 2011","height":98});
															thumbnails[8528742] = clik.newPhoto({"id":8528742,"src":"Jesus_Crew_Party_July_2011_05_thumb.jpg","galleries_id":430837,"server_id":4,"link":"photo_8528742.html","width":130,"caption":"Jesus Crew Party July 2011","height":173});
															thumbnails[8528796] = clik.newPhoto({"id":8528796,"src":"Jesus_Crew_Party_July_2011_06_thumb.jpg","galleries_id":430837,"server_id":4,"link":"photo_8528796.html","width":130,"caption":"Jesus Crew Party July 2011","height":98});
															thumbnails[8528797] = clik.newPhoto({"id":8528797,"src":"Jesus_Crew_Party_July_2011_08_thumb.jpg","galleries_id":430837,"server_id":4,"link":"photo_8528797.html","width":130,"caption":"Jesus Crew Party July 2011","height":173});
															thumbnails[8528845] = clik.newPhoto({"id":8528845,"src":"Jesus_Crew_Party_July_2011_10_thumb.jpg","galleries_id":430837,"server_id":4,"link":"photo_8528845.html","width":130,"caption":"Jesus Crew Party July 2011","height":98});
															thumbnails[8528848] = clik.newPhoto({"id":8528848,"src":"Jesus_Crew_Party_July_2011_14_thumb.jpg","galleries_id":430837,"server_id":4,"link":"photo_8528848.html","width":130,"caption":"Jesus Crew Party July 2011","height":98});
															thumbnails[8528849] = clik.newPhoto({"id":8528849,"src":"Jesus_Crew_Party_July_2011_16_thumb.jpg","galleries_id":430837,"server_id":4,"link":"photo_8528849.html","width":130,"caption":"Jesus Crew Party July 2011","height":98});
															thumbnails[8528853] = clik.newPhoto({"id":8528853,"src":"Jesus_Crew_Party_July_2011_17_thumb.jpg","galleries_id":430837,"server_id":4,"link":"photo_8528853.html","width":130,"caption":"Jesus Crew Party July 2011","height":98});
															thumbnails[8272177] = clik.newPhoto({"id":8272177,"src":"Carrs_Lane_Lectures_2011_thumb.JPG","galleries_id":440454,"server_id":4,"link":"photo_8272177.html","width":130,"caption":"Carrs Lane Lectures 2011","height":187});
															thumbnails[7352455] = clik.newPhoto({"id":7352455,"src":"awards_2010_officers_small_thumb.jpg","galleries_id":397887,"server_id":4,"link":"photo_7352455.html","width":130,"caption":"AWARDS 2010 OFFICERS","height":96});
															thumbnails[7352458] = clik.newPhoto({"id":7352458,"src":"GB_Meal__Christmas_thumb.jpg","galleries_id":397887,"server_id":4,"link":"photo_7352458.html","width":130,"caption":"officers district meal","height":98});
															thumbnails[7352475] = clik.newPhoto({"id":7352475,"src":"awards_company_small_thumb.jpg","galleries_id":397887,"server_id":4,"link":"photo_7352475.html","width":130,"caption":"Company at Awards evening","height":58});
															thumbnails[2527475] = clik.newPhoto({"id":2527475,"src":"Awards2_thumb.jpg","galleries_id":161921,"server_id":4,"link":"photo_2527475.html","width":130,"caption":"Boys receive Awards","height":142});
															thumbnails[1994479] = clik.newPhoto({"id":1994479,"src":"Terry Trophy Winners_thumb.jpg","galleries_id":133844,"server_id":4,"link":"photo_1994479.html","width":130,"caption":"Terry Trophy Winners","height":103});
															thumbnails[1946943] = clik.newPhoto({"id":1946943,"src":"Band 28_thumb.jpg","galleries_id":133844,"server_id":4,"link":"photo_1946943.html","width":130,"caption":"Parade Service 9th March 2008","height":97});
															thumbnails[1946945] = clik.newPhoto({"id":1946945,"src":"Band 42_thumb.jpg","galleries_id":133844,"server_id":4,"link":"photo_1946945.html","width":130,"caption":"","height":80});
															thumbnails[8022070] = clik.newPhoto({"id":8022070,"src":"Jesus_Crew_End_Year_Party_Poster_thumb.JPG","galleries_id":430837,"server_id":4,"link":"photo_8022070.html","width":130,"caption":"Jesus Crew End of Year Party","height":172});
															thumbnails[8083333] = clik.newPhoto({"id":8083333,"src":"JMA_Awards_2010_01_1_thumb.jpg","galleries_id":432866,"server_id":4,"link":"photo_8083333.html","width":130,"caption":"JMA Awards 2010","height":86});
															thumbnails[1994483] = clik.newPhoto({"id":1994483,"src":"JmaChildrenLogo1_thumb.jpg","galleries_id":432866,"server_id":4,"link":"photo_1994483.html","width":130,"caption":"JMA - Junior Mission for All","height":69});
															thumbnails[4969864] = clik.newPhoto({"id":4969864,"src":"l2_thumb.jpg","galleries_id":282495,"server_id":4,"link":"photo_4969864.html","width":130,"caption":"","height":96});
															thumbnails[4969865] = clik.newPhoto({"id":4969865,"src":"l12_thumb.jpg","galleries_id":282495,"server_id":4,"link":"photo_4969865.html","width":130,"caption":"","height":81});
															thumbnails[4969866] = clik.newPhoto({"id":4969866,"src":"l13_thumb.jpg","galleries_id":282495,"server_id":4,"link":"photo_4969866.html","width":130,"caption":"","height":84});
															thumbnails[4969867] = clik.newPhoto({"id":4969867,"src":"l14_thumb.jpg","galleries_id":282495,"server_id":4,"link":"photo_4969867.html","width":130,"caption":"","height":73});
															thumbnails[3652289] = clik.newPhoto({"id":3652289,"src":"Anchors w_thumb.JPG","galleries_id":223189,"server_id":4,"link":"photo_3652289.html","width":130,"caption":"Anchor Boys being beans!","height":90});
															thumbnails[3652294] = clik.newPhoto({"id":3652294,"src":"Anchors w 2_thumb.JPG","galleries_id":223189,"server_id":4,"link":"photo_3652294.html","width":130,"caption":"Anchor Boys ready to play games","height":100});
															thumbnails[3652296] = clik.newPhoto({"id":3652296,"src":"Band w 2_thumb.JPG","galleries_id":223189,"server_id":4,"link":"photo_3652296.html","width":130,"caption":"BB\/GB Band marching ","height":79});
															thumbnails[3652300] = clik.newPhoto({"id":3652300,"src":"Band w 3_thumb.JPG","galleries_id":223189,"server_id":4,"link":"photo_3652300.html","width":130,"caption":"Three of the GB including a new instrument this year called a Marimba.","height":108});
															thumbnails[3652303] = clik.newPhoto({"id":3652303,"src":"Band w 4_thumb.JPG","galleries_id":223189,"server_id":4,"link":"photo_3652303.html","width":130,"caption":"Band stepping out!","height":84});
															thumbnails[3652307] = clik.newPhoto({"id":3652307,"src":"watching w_thumb.JPG","galleries_id":223189,"server_id":4,"link":"photo_3652307.html","width":130,"caption":"Watching the older performers.","height":98});
															thumbnails[3652310] = clik.newPhoto({"id":3652310,"src":"abbba w_thumb.JPG","galleries_id":223189,"server_id":4,"link":"photo_3652310.html","width":130,"caption":"Here we go again - Abba","height":97});
															thumbnails[3652312] = clik.newPhoto({"id":3652312,"src":"glads w_thumb.JPG","galleries_id":223189,"server_id":4,"link":"photo_3652312.html","width":130,"caption":"Gladiators in the ring","height":98});
															thumbnails[3652337] = clik.newPhoto({"id":3652337,"src":"glads w 2_thumb.JPG","galleries_id":223189,"server_id":4,"link":"photo_3652337.html","width":130,"caption":"Gladiators again","height":98});
															thumbnails[3652343] = clik.newPhoto({"id":3652343,"src":"Signing w_thumb.JPG","galleries_id":223189,"server_id":4,"link":"photo_3652343.html","width":130,"caption":"Signing a Rainbow","height":72});
															thumbnails[3652353] = clik.newPhoto({"id":3652353,"src":"Juniors w_thumb.JPG","galleries_id":223189,"server_id":4,"link":"photo_3652353.html","width":130,"caption":"Juniors singing enthusiastically!","height":72});
															thumbnails[3652425] = clik.newPhoto({"id":3652425,"src":"Juniors w 2_thumb.JPG","galleries_id":223189,"server_id":4,"link":"photo_3652425.html","width":130,"caption":"Juniors singing.","height":98});
															thumbnails[3652430] = clik.newPhoto({"id":3652430,"src":"Expl w_thumb.JPG","galleries_id":223189,"server_id":4,"link":"photo_3652430.html","width":130,"caption":"Explorers saying hello from many countries.","height":86});
															thumbnails[6186643] = clik.newPhoto({"id":6186643,"src":"Altar_thumb.JPG","galleries_id":345530,"server_id":4,"link":"photo_6186643.html","width":130,"caption":"Altar for baptism","height":97});
															thumbnails[6186645] = clik.newPhoto({"id":6186645,"src":"blessing_1_thumb.JPG","galleries_id":345530,"server_id":4,"link":"photo_6186645.html","width":130,"caption":"Confirming Matt","height":98});
															thumbnails[6186648] = clik.newPhoto({"id":6186648,"src":"blessing_2_thumb.JPG","galleries_id":345530,"server_id":4,"link":"photo_6186648.html","width":130,"caption":"Confirming Lesley","height":98});
															thumbnails[6186654] = clik.newPhoto({"id":6186654,"src":"Water_ready_thumb.JPG","galleries_id":345530,"server_id":4,"link":"photo_6186654.html","width":130,"caption":"Water ready","height":107});
															thumbnails[6186758] = clik.newPhoto({"id":6186758,"src":"3_21_thumb.JPG","galleries_id":345530,"server_id":4,"link":"photo_6186758.html","width":130,"caption":"Three New Members","height":106});
															thumbnails[6186763] = clik.newPhoto({"id":6186763,"src":"candles3_thumb.JPG","galleries_id":345530,"server_id":4,"link":"photo_6186763.html","width":130,"caption":"Lesley & Matt with their candles after Baptism","height":97});
															thumbnails[4969716] = clik.newPhoto({"id":4969716,"src":"l15_thumb.jpg","galleries_id":282493,"server_id":4,"link":"photo_4969716.html","width":130,"caption":"","height":98});
															thumbnails[4969719] = clik.newPhoto({"id":4969719,"src":"l16_thumb.jpg","galleries_id":282493,"server_id":4,"link":"photo_4969719.html","width":130,"caption":"","height":98});
															thumbnails[4969720] = clik.newPhoto({"id":4969720,"src":"l18_thumb.jpg","galleries_id":282493,"server_id":4,"link":"photo_4969720.html","width":130,"caption":"","height":98});
															thumbnails[4969721] = clik.newPhoto({"id":4969721,"src":"l19_thumb.jpg","galleries_id":282493,"server_id":4,"link":"photo_4969721.html","width":130,"caption":"","height":98});
															thumbnails[4969722] = clik.newPhoto({"id":4969722,"src":"l20_thumb.jpg","galleries_id":282493,"server_id":4,"link":"photo_4969722.html","width":130,"caption":"","height":98});
															thumbnails[4970946] = clik.newPhoto({"id":4970946,"src":"l28_thumb.jpg","galleries_id":282493,"server_id":4,"link":"photo_4970946.html","width":130,"caption":"","height":95});
															thumbnails[4131356] = clik.newPhoto({"id":4131356,"src":"2 friends w1_thumb.JPG","galleries_id":247367,"server_id":4,"link":"photo_4131356.html","width":130,"caption":"2 friends at the Tea Party","height":86});
															thumbnails[4131357] = clik.newPhoto({"id":4131357,"src":"A with strawbs w_thumb.JPG","galleries_id":247367,"server_id":4,"link":"photo_4131357.html","width":130,"caption":"Anneleen enjoying some Strawberries","height":105});
															thumbnails[4131361] = clik.newPhoto({"id":4131361,"src":"biscuits w1_thumb.JPG","galleries_id":247367,"server_id":4,"link":"photo_4131361.html","width":130,"caption":"Concentrating on biscuit decorating","height":118});
															thumbnails[4131418] = clik.newPhoto({"id":4131418,"src":"Connect 4 w_thumb.JPG","galleries_id":247367,"server_id":4,"link":"photo_4131418.html","width":130,"caption":"Ernest in charge of the Giant Connect 4","height":98});
															thumbnails[4131422] = clik.newPhoto({"id":4131422,"src":"Emily w_thumb.JPG","galleries_id":247367,"server_id":4,"link":"photo_4131422.html","width":130,"caption":"Love the Hat!","height":111});
															thumbnails[4131425] = clik.newPhoto({"id":4131425,"src":"face painting w_thumb.JPG","galleries_id":247367,"server_id":4,"link":"photo_4131425.html","width":130,"caption":"Face & Arm Painting","height":91});
															thumbnails[4131432] = clik.newPhoto({"id":4131432,"src":"Jenga w_thumb.JPG","galleries_id":247367,"server_id":4,"link":"photo_4131432.html","width":130,"caption":"Giant Jenga","height":146});
															thumbnails[4131435] = clik.newPhoto({"id":4131435,"src":"Lib w_thumb.JPG","galleries_id":247367,"server_id":4,"link":"photo_4131435.html","width":130,"caption":"Libby & friends","height":99});
															thumbnails[4131438] = clik.newPhoto({"id":4131438,"src":"nursery w_thumb.JPG","galleries_id":247367,"server_id":4,"link":"photo_4131438.html","width":130,"caption":"Nursery staff","height":93});
															thumbnails[4131443] = clik.newPhoto({"id":4131443,"src":"Tea Party Rich w_thumb.JPG","galleries_id":247367,"server_id":4,"link":"photo_4131443.html","width":130,"caption":"Tidying up!","height":107});
															thumbnails[4131450] = clik.newPhoto({"id":4131450,"src":"wall w_thumb.JPG","galleries_id":247367,"server_id":4,"link":"photo_4131450.html","width":130,"caption":"Lynette & Danni by the Handprints Wall","height":86});
															thumbnails[219044] = clik.newPhoto({"id":219044,"src":"garden_thumb.jpg","galleries_id":133841,"server_id":4,"link":"photo_219044.html","width":130,"caption":"The Garden","height":98});
															thumbnails[220041] = clik.newPhoto({"id":220041,"src":"easter cross21_thumb.jpg","galleries_id":133841,"server_id":4,"link":"photo_220041.html","width":130,"caption":"<b>The lovely flower covered Easter Cross<\/b>","height":126});
															thumbnails[220042] = clik.newPhoto({"id":220042,"src":"easter cross1_thumb.jpg","galleries_id":133841,"server_id":4,"link":"photo_220042.html","width":130,"caption":"<b>The Cross on the Wall!<\/b>","height":58});
															thumbnails[1954412] = clik.newPhoto({"id":1954412,"src":"flowers cross1_thumb.jpg","galleries_id":133841,"server_id":4,"link":"photo_1954412.html","width":130,"caption":"","height":143});
															thumbnails[1994495] = clik.newPhoto({"id":1994495,"src":"Palm sunday 1a1_thumb.jpg","galleries_id":133841,"server_id":4,"link":"photo_1994495.html","width":130,"caption":"Palm Sunday","height":91});
															thumbnails[1994515] = clik.newPhoto({"id":1994515,"src":"Palm sunday 2_thumb.jpg","galleries_id":133841,"server_id":4,"link":"photo_1994515.html","width":130,"caption":"Evening Service","height":195});
															thumbnails[3821329] = clik.newPhoto({"id":3821329,"src":"Cake 1_thumb.JPG","galleries_id":232897,"server_id":4,"link":"photo_3821329.html","width":130,"caption":"50th Anniversary Cake.","height":104});
															thumbnails[3821334] = clik.newPhoto({"id":3821334,"src":"50th Flowers_thumb.JPG","galleries_id":232897,"server_id":4,"link":"photo_3821334.html","width":130,"caption":"Foundation Stone.","height":107});
															thumbnails[3821339] = clik.newPhoto({"id":3821339,"src":"Cake cutting_thumb.JPG","galleries_id":232897,"server_id":4,"link":"photo_3821339.html","width":130,"caption":"Tom & Hugh cutting the cake.","height":120});
															thumbnails[3821344] = clik.newPhoto({"id":3821344,"src":"Millie showing archives_thumb.JPG","galleries_id":232897,"server_id":4,"link":"photo_3821344.html","width":130,"caption":"Millie showing some young people the Archives","height":82});
															thumbnails[3821349] = clik.newPhoto({"id":3821349,"src":"Millie showing archives 2_thumb.JPG","galleries_id":232897,"server_id":4,"link":"photo_3821349.html","width":130,"caption":"Another youngster, looking at how we used to be.","height":93});
															thumbnails[3821355] = clik.newPhoto({"id":3821355,"src":"Outside Banner_thumb.JPG","galleries_id":232897,"server_id":4,"link":"photo_3821355.html","width":130,"caption":"The new Banner which hangs on the outside wall.","height":71});
															thumbnails[3914477] = clik.newPhoto({"id":3914477,"src":"P2020707_thumb.JPG","galleries_id":237627,"server_id":4,"link":"photo_3914477.html","width":130,"caption":"Happy customer from Face Painting","height":98});
															thumbnails[3914485] = clik.newPhoto({"id":3914485,"src":"P2020712_thumb.JPG","galleries_id":237627,"server_id":4,"link":"photo_3914485.html","width":130,"caption":"Thanks to this young man for his work selling mugs, bookmarks etc","height":98});
															thumbnails[3914486] = clik.newPhoto({"id":3914486,"src":"P2020713_thumb.JPG","galleries_id":237627,"server_id":4,"link":"photo_3914486.html","width":130,"caption":"Eric & Dorothy on the book stall ","height":87});
															thumbnails[3914488] = clik.newPhoto({"id":3914488,"src":"P2020714_thumb.JPG","galleries_id":237627,"server_id":4,"link":"photo_3914488.html","width":130,"caption":"Mary with helpers on the White Elephant stall","height":122});
															thumbnails[3914492] = clik.newPhoto({"id":3914492,"src":"P20207111_thumb.JPG","galleries_id":237627,"server_id":4,"link":"photo_3914492.html","width":130,"caption":"Sam being creative with paint, watched by Julia.","height":98});
															thumbnails[4969868] = clik.newPhoto({"id":4969868,"src":"l22_harvest_thumb.jpg","galleries_id":175104,"server_id":4,"link":"photo_4969868.html","width":130,"caption":"","height":105});
															thumbnails[4969871] = clik.newPhoto({"id":4969871,"src":"l23_harvest_thumb.jpg","galleries_id":175104,"server_id":4,"link":"photo_4969871.html","width":130,"caption":"","height":113});
															thumbnails[4969874] = clik.newPhoto({"id":4969874,"src":"l24_harvest_thumb.jpg","galleries_id":175104,"server_id":4,"link":"photo_4969874.html","width":130,"caption":"","height":51});
															thumbnails[4969875] = clik.newPhoto({"id":4969875,"src":"l25_harvest_thumb.jpg","galleries_id":175104,"server_id":4,"link":"photo_4969875.html","width":130,"caption":"","height":134});
															thumbnails[4151301] = clik.newPhoto({"id":4151301,"src":"JC Action w_thumb.JPG","galleries_id":248001,"server_id":4,"link":"photo_4151301.html","width":130,"caption":"Jesus Crew action song","height":93});
															thumbnails[4151359] = clik.newPhoto({"id":4151359,"src":"JC Cards 2 w_thumb.JPG","galleries_id":248001,"server_id":4,"link":"photo_4151359.html","width":130,"caption":"Jesus Crew with Father's Day cards","height":98});
															thumbnails[4151362] = clik.newPhoto({"id":4151362,"src":"JC sing w_thumb.JPG","galleries_id":248001,"server_id":4,"link":"photo_4151362.html","width":130,"caption":"Jesus Crew singing","height":96});
															thumbnails[4151365] = clik.newPhoto({"id":4151365,"src":"JC cards w_thumb.JPG","galleries_id":248001,"server_id":4,"link":"photo_4151365.html","width":130,"caption":"Jesus Crew again","height":98});
															thumbnails[3478230] = clik.newPhoto({"id":3478230,"src":"Church in Spring_thumb.JPG","galleries_id":138032,"server_id":4,"link":"photo_3478230.html","width":130,"caption":"","height":96});
															thumbnails[3143592] = clik.newPhoto({"id":3143592,"src":"Church in Summer_thumb.jpg","galleries_id":138032,"server_id":4,"link":"photo_3143592.html","width":130,"caption":"Church in Summer","height":92});
															thumbnails[3147741] = clik.newPhoto({"id":3147741,"src":"Advent ring_thumb.JPG","galleries_id":138032,"server_id":4,"link":"photo_3147741.html","width":130,"caption":"Advent Ring","height":106});
															thumbnails[3541254] = clik.newPhoto({"id":3541254,"src":"inside church1_thumb.jpg","galleries_id":138032,"server_id":4,"link":"photo_3541254.html","width":130,"caption":"Inside Church for wedding","height":93});
															thumbnails[1999289] = clik.newPhoto({"id":1999289,"src":"Church 1_thumb.jpg","galleries_id":138032,"server_id":4,"link":"photo_1999289.html","width":130,"caption":"Church in Winter","height":96});
															thumbnails[2220728] = clik.newPhoto({"id":2220728,"src":"chrismas_thumb.jpg","galleries_id":138032,"server_id":4,"link":"photo_2220728.html","width":130,"caption":"Christmas","height":98});
															thumbnails[2220729] = clik.newPhoto({"id":2220729,"src":"Lentern cross_thumb.jpg","galleries_id":138032,"server_id":4,"link":"photo_2220729.html","width":130,"caption":"Lentern Cross","height":98});
															thumbnails[2220734] = clik.newPhoto({"id":2220734,"src":"Cross in church2_thumb.jpg","galleries_id":138032,"server_id":4,"link":"photo_2220734.html","width":130,"caption":"Cross above the altar","height":164});
															thumbnails[2508517] = clik.newPhoto({"id":2508517,"src":"Empty church_thumb.jpg","galleries_id":138032,"server_id":4,"link":"photo_2508517.html","width":130,"caption":"Empty church","height":86});
															thumbnails[6699589] = clik.newPhoto({"id":6699589,"src":"group_small1_thumb.JPG","galleries_id":365719,"server_id":4,"link":"photo_6699589.html","width":130,"caption":"A group of friend's with Rev Karen Hilsden at her welcome service ","height":98});
															thumbnails[6699592] = clik.newPhoto({"id":6699592,"src":"karen_small_thumb.JPG","galleries_id":365719,"server_id":4,"link":"photo_6699592.html","width":130,"caption":"Rev. Karen Hilsden ","height":173});
															thumbnails[3228809] = clik.newPhoto({"id":3228809,"src":"christmas church1_thumb.JPG","galleries_id":197185,"server_id":4,"link":"photo_3228809.html","width":130,"caption":"Candlelit Church at the Carol Service","height":98});
															thumbnails[3228816] = clik.newPhoto({"id":3228816,"src":"Marions flowers_thumb.JPG","galleries_id":197185,"server_id":4,"link":"photo_3228816.html","width":130,"caption":"<b>Pedestal Display","height":127});
															thumbnails[3228819] = clik.newPhoto({"id":3228819,"src":"Porch flowers_thumb.JPG","galleries_id":197185,"server_id":4,"link":"photo_3228819.html","width":130,"caption":"<b>Vestibule flowers","height":91});
															thumbnails[3228824] = clik.newPhoto({"id":3228824,"src":"vestibule flowers_thumb.JPG","galleries_id":197185,"server_id":4,"link":"photo_3228824.html","width":130,"caption":"<b>More Vestibule flowers","height":179});
															thumbnails[5676045] = clik.newPhoto({"id":5676045,"src":"Colour_song_thumb.JPG","galleries_id":321594,"server_id":4,"link":"photo_5676045.html","width":130,"caption":"Jesus Crew marching to the Salvation song","height":98});
															thumbnails[5676047] = clik.newPhoto({"id":5676047,"src":"Colour_song2_thumb.JPG","galleries_id":321594,"server_id":4,"link":"photo_5676047.html","width":130,"caption":"Jesus Crew using coloured flags to depict the song","height":85});
															thumbnails[5676053] = clik.newPhoto({"id":5676053,"src":"J_Crew1_thumb.JPG","galleries_id":321594,"server_id":4,"link":"photo_5676053.html","width":130,"caption":"Jesus Crew after the revived Sunday Scool Anniversary","height":96});
															thumbnails[5676057] = clik.newPhoto({"id":5676057,"src":"J_Crew2_thumb.JPG","galleries_id":321594,"server_id":4,"link":"photo_5676057.html","width":130,"caption":"Jesus Crew at Sunday School Anniversary","height":95});
															thumbnails[7290156] = clik.newPhoto({"id":7290156,"src":"IMG1355tiny_thumb.jpg","galleries_id":321594,"server_id":4,"link":"photo_7290156.html","width":130,"caption":"TEST IMAGE","height":195});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[440454] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Notice Board","link":"gallery_440454.html","maxRecords":0.0,"photoIDs":[8778424.0,8272177.0],"skipIndex":0,"section_code":"gallery","featured_images":"8778424,8272177","id":440454,"singleSection":false});				  						galleries[397887] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Girl's Brigade ","link":"gallery_397887.html","maxRecords":0.0,"photoIDs":[8777475.0,7352455.0,7352458.0,7352475.0],"skipIndex":0,"section_code":"gallery","featured_images":"8777475,7352475,7352458,7352455","id":397887,"singleSection":false});				  						galleries[161921] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"BB","link":"gallery_161921.html","maxRecords":0.0,"photoIDs":[2527475.0],"skipIndex":0,"section_code":"gallery","featured_images":2527475.0,"id":161921,"singleSection":false});				  						galleries[133844] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"BB\/GB Band","link":"gallery_133844.html","maxRecords":0.0,"photoIDs":[1994479.0,1946943.0,1946945.0],"skipIndex":0,"section_code":"gallery","featured_images":"1994479,1946945,1946943","id":133844,"singleSection":false});				  						galleries[430837] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Jesus Crew","link":"gallery_430837.html","maxRecords":0.0,"photoIDs":[8456383.0,8522365.0,8522381.0,8522391.0,8522406.0,8522477.0,8522511.0,8522549.0,8522567.0,8522570.0,8522572.0,8528742.0,8528796.0,8528797.0,8528845.0,8528848.0,8528849.0,8528853.0,8022070.0],"skipIndex":0,"section_code":"gallery","featured_images":"8528853,8528849,8528848,8528845,8528797,8528796,8528742,8522572,8522570,8522567","id":430837,"singleSection":false});				  						galleries[432866] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"JMA","link":"gallery_432866.html","maxRecords":0.0,"photoIDs":[8083333.0,1994483.0],"skipIndex":0,"section_code":"gallery","featured_images":"8083333,1994483","id":432866,"singleSection":false});				  						galleries[282495] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Julia's Ordination","link":"gallery_282495.html","maxRecords":0.0,"photoIDs":[4969864.0,4969865.0,4969866.0,4969867.0],"skipIndex":0,"section_code":"gallery","featured_images":"4969867,4969866,4969865,4969864","id":282495,"singleSection":false});				  						galleries[223189] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"BB\/GB display 2009","link":"gallery_223189.html","maxRecords":0.0,"photoIDs":[3652289.0,3652294.0,3652296.0,3652300.0,3652303.0,3652307.0,3652310.0,3652312.0,3652337.0,3652343.0,3652353.0,3652425.0,3652430.0],"skipIndex":0,"section_code":"gallery","featured_images":3652353.0,"id":223189,"singleSection":false});				  						galleries[345530] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Fathers Day 2010","link":"gallery_345530.html","maxRecords":0.0,"photoIDs":[6186643.0,6186645.0,6186648.0,6186654.0,6186758.0,6186763.0],"skipIndex":0,"section_code":"gallery","featured_images":"6186763,6186758,6186654,6186648,6186645,6186643","id":345530,"singleSection":false});				  						galleries[282493] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"The BB Celebrate 70 years and Founders Day Parade","link":"gallery_282493.html","maxRecords":0.0,"photoIDs":[4969716.0,4969719.0,4969720.0,4969721.0,4969722.0,4970946.0],"skipIndex":0,"section_code":"gallery","featured_images":"4970946,4969722,4969721,4969720,4969719,4969716","id":282493,"singleSection":false});				  						galleries[247367] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Community Fun Day 20 June 2009","link":"gallery_247367.html","maxRecords":0.0,"photoIDs":[4131356.0,4131357.0,4131361.0,4131418.0,4131422.0,4131425.0,4131432.0,4131435.0,4131438.0,4131443.0,4131450.0],"skipIndex":0,"section_code":"gallery","featured_images":4131356.0,"id":247367,"singleSection":false});				  						galleries[133841] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Easter","link":"gallery_133841.html","maxRecords":0.0,"photoIDs":[219044.0,220041.0,220042.0,1954412.0,1994495.0,1994515.0],"skipIndex":0,"section_code":"gallery","featured_images":"1994515,1994495,1954412,220042,220041,219044","id":133841,"singleSection":false});				  						galleries[232897] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Memories Afternoon.","link":"gallery_232897.html","maxRecords":0.0,"photoIDs":[3821329.0,3821334.0,3821339.0,3821344.0,3821349.0,3821355.0],"skipIndex":0,"section_code":"gallery","featured_images":3821329.0,"id":232897,"singleSection":false});				  						galleries[237627] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"May Market 2009","link":"gallery_237627.html","maxRecords":0.0,"photoIDs":[3914477.0,3914485.0,3914486.0,3914488.0,3914492.0],"skipIndex":0,"section_code":"gallery","featured_images":"3914492,3914488,3914486,3914485,3914477","id":237627,"singleSection":false});				  						galleries[175104] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Harvest 2009","link":"gallery_175104.html","maxRecords":0.0,"photoIDs":[4969868.0,4969871.0,4969874.0,4969875.0],"skipIndex":0,"section_code":"gallery","featured_images":"4969875,4969874,4969871,4969868","id":175104,"singleSection":false});				  						galleries[248001] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Sunday 21 June","link":"gallery_248001.html","maxRecords":0.0,"photoIDs":[4151301.0,4151359.0,4151362.0,4151365.0],"skipIndex":0,"section_code":"gallery","featured_images":"4151365,4151362,4151359,4151301","id":248001,"singleSection":false});				  						galleries[138032] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Church building","link":"gallery_138032.html","maxRecords":0.0,"photoIDs":[3478230.0,3143592.0,3147741.0,3541254.0,1999289.0,2220728.0,2220729.0,2220734.0,2508517.0],"skipIndex":0,"section_code":"gallery","featured_images":"3541254,3478230,3147741,3143592,2508517,2220734,2220729,2220728,1999289","id":138032,"singleSection":false});				  						galleries[365719] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Rev Karen Hilsden's Welcome Service","link":"gallery_365719.html","maxRecords":0.0,"photoIDs":[6699589.0,6699592.0],"skipIndex":0,"section_code":"gallery","featured_images":"6699592,6699589","id":365719,"singleSection":false});				  						galleries[197185] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Christmas Services","link":"gallery_197185.html","maxRecords":0.0,"photoIDs":[8827251.0,3228809.0,3228816.0,3228819.0,3228824.0],"skipIndex":0,"section_code":"gallery","featured_images":3228809.0,"id":197185,"singleSection":false});				  						galleries[321594] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Sunday School Anniversary 2010","link":"gallery_321594.html","maxRecords":0.0,"photoIDs":[5676045.0,5676047.0,5676053.0,5676057.0,7290156.0],"skipIndex":0,"section_code":"gallery","featured_images":"7290156,5676057,5676053,5676047,5676045","id":321594,"singleSection":false});				  						galleries[452674] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Harvest Festival 2011","link":"gallery_452674.html","maxRecords":0.0,"photoIDs":[8564374.0,8564378.0,8564379.0,8564384.0,8564454.0,8564456.0,8564563.0,8564594.0,8564595.0,8564596.0,8564597.0],"skipIndex":0,"section_code":"gallery","featured_images":"8564597,8564596,8564595,8564594,8564563,8564456,8564454,8564384,8564379,8564378","id":452674,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '6699592';
imageSets[2] = '3205153,3652353,4131356,3821329,3228809';
imageSets[3] = '8846921,8827251,8778424,8777475,8597625,8597175,8596261,8564597,8564596,8564595,8564594,8564563,8564456,8564454,8564384,8564379,8564378,8564374,8528853,8528849,8528848,8528845,8528797,8528796,8528742,8522572,8522570,8522567,8522549,8522511,8522477,8522406,8522391,8522381,8522365,8456383,8272177,8083333,8022070,8011028,7352475,7352458,7352455,7290176,7290156,6699592,6699589,6186763,6186758,6186654';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/richandjud/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/richandjud/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/richandjud/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/richandjud/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/richandjud/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/richandjud/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/richandjud/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/richandjud/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/richandjud/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/richandjud/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/richandjud/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/richandjud/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/richandjud/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/richandjud/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/richandjud/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/richandjud/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/richandjud/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/richandjud/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/richandjud/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/richandjud/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/richandjud/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/richandjud/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/richandjud/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/richandjud/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/richandjud/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/richandjud/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/richandjud/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 = 'Lyndon Methodist Church, Solihull: ' + 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>';
	}
				
				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>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (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.item_price !== '') {
			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;
	}
}

			

