window.thumbnails = {};
															thumbnails[240001] = clik.newPhoto({"id":240001,"src":"3rd place print of year_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Sunrise at Hengistbury Head","height":86});
															thumbnails[400178] = clik.newPhoto({"id":400178,"src":"lottery logo1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Lottery Funded","height":104});
															thumbnails[3693917] = clik.newPhoto({"id":3693917,"src":"Colour_Creative_Eddie_Woods_Flowers_on_Glass_Clik_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Flowers on Glass","height":98});
															thumbnails[3693920] = clik.newPhoto({"id":3693920,"src":"Colour_Creative_Jack_Adamson_Arrows_Cross_clik_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Arrows Cross","height":98});
															thumbnails[3693922] = clik.newPhoto({"id":3693922,"src":"Colour_Creative_Janet_Gogerty_Beach_huts_clik_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Beach Huts","height":98});
															thumbnails[3693929] = clik.newPhoto({"id":3693929,"src":"Colour_Creative_Ken_Thomas_Three_Orchids_clik_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"three Orchids","height":180});
															thumbnails[3693930] = clik.newPhoto({"id":3693930,"src":"Colour_creative_Lesley_Foot_Children_clik_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":173});
															thumbnails[3693932] = clik.newPhoto({"id":3693932,"src":"Colour_Creative_Margaret_Adamson_Begonia_clik_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Begonia","height":98});
															thumbnails[5074244] = clik.newPhoto({"id":5074244,"src":"person_thumb.gif","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Alone in a crowd.","height":97});
															thumbnails[5074251] = clik.newPhoto({"id":5074251,"src":"Salisbury_thumb.gif","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Sightseeing from every angle.","height":98});
															thumbnails[6657097] = clik.newPhoto({"id":6657097,"src":"Close_up_Brian_Wadie_Spider_Crab_with_Hoverfly_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Crab Spider with Hoverfly","height":87});
															thumbnails[6657106] = clik.newPhoto({"id":6657106,"src":"Close_up_Colin_Gogerty_Busy_Bee_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Busy Bee","height":163});
															thumbnails[6657110] = clik.newPhoto({"id":6657110,"src":"Close_Up_Dee_Maddams_common_mayfly_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Common Mayfly","height":87});
															thumbnails[6657113] = clik.newPhoto({"id":6657113,"src":"Close_up_Reg_Clark_Me_and_my_shadow_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Me and My shadow","height":118});
															thumbnails[6657173] = clik.newPhoto({"id":6657173,"src":"Close_Up_stan_maddams_marbled_white_and_small_skipper_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Marbled White with Small Skipper","height":151});
															thumbnails[6657217] = clik.newPhoto({"id":6657217,"src":"Portrait_Ken_Thomas_Jack_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Jack","height":176});
															thumbnails[6657299] = clik.newPhoto({"id":6657299,"src":"portrait_Brian_Wadie_The_New_Baby_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"The New Baby","height":163});
															thumbnails[6657308] = clik.newPhoto({"id":6657308,"src":"Portrait_Reg_Clark_Reluctant_Poser_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"The Reluctant Poser","height":163});
															thumbnails[6704981] = clik.newPhoto({"id":6704981,"src":"Portrait_stan_maddams_red_fox_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Portrait of a Fox","height":104});
															thumbnails[6704987] = clik.newPhoto({"id":6704987,"src":"Humour_Jayne_Lucas_My_favourite_book_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"My Favourite Book","height":92});
															thumbnails[6704989] = clik.newPhoto({"id":6704989,"src":"Humour_Reg_Clark_They_dont_give_us_much_room_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"They Don't Give Us Much Room!","height":180});
															thumbnails[6705017] = clik.newPhoto({"id":6705017,"src":"Humour_stan_maddams_do_you_love_me_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Do You Love Me?","height":104});
															thumbnails[4968474] = clik.newPhoto({"id":4968474,"src":"2009-07-02_01-28-22_-_0015_sm_thumb.JPG","galleries_id":267506,"server_id":1,"link":"photo_4968474.html","width":130,"caption":"The moon over Boscombe Pier (MKD)","height":87});
															thumbnails[4968478] = clik.newPhoto({"id":4968478,"src":"2009-09-27_11-29-55_cr_sm_thumb.JPG","galleries_id":267506,"server_id":1,"link":"photo_4968478.html","width":130,"caption":"Lake District (MKD)","height":88});
															thumbnails[4968485] = clik.newPhoto({"id":4968485,"src":"2009-09-27_12-47-41_cc_sm_thumb.JPG","galleries_id":267506,"server_id":1,"link":"photo_4968485.html","width":130,"caption":"Lake District (MKD)","height":87});
															thumbnails[4968492] = clik.newPhoto({"id":4968492,"src":"2009-10-12_18-47-08_-_0063_cc_sm_thumb.JPG","galleries_id":267506,"server_id":1,"link":"photo_4968492.html","width":130,"caption":"Sunset Over Boscombe Pier (MKD)","height":87});
															thumbnails[4968496] = clik.newPhoto({"id":4968496,"src":"glassesblackbg_thumb.jpg","galleries_id":267506,"server_id":1,"link":"photo_4968496.html","width":130,"caption":"Glasses on the Table (MKD)","height":98});
															thumbnails[4896399] = clik.newPhoto({"id":4896399,"src":"Bosc_Pier111_11662BW_thumb.jpg","galleries_id":267506,"server_id":1,"link":"photo_4896399.html","width":130,"caption":"Boscombe Revisited","height":87});
															thumbnails[4753690] = clik.newPhoto({"id":4753690,"src":"DSC_0072b_thumb.jpg","galleries_id":181823,"server_id":1,"link":"photo_4753690.html","width":130,"caption":"Helen","height":183});
															thumbnails[4753711] = clik.newPhoto({"id":4753711,"src":"DSC_0053c_thumb.jpg","galleries_id":181823,"server_id":1,"link":"photo_4753711.html","width":130,"caption":"Helen","height":183});
															thumbnails[5072207] = clik.newPhoto({"id":5072207,"src":"GIRL_STATUE_2009_thumb.jpg","galleries_id":267506,"server_id":1,"link":"photo_5072207.html","width":130,"caption":"Two Faces Are Better Than One","height":195});
															thumbnails[4221302] = clik.newPhoto({"id":4221302,"src":"one_small_step_thumb.jpg","galleries_id":250346,"server_id":1,"link":"photo_4221302.html","width":130,"caption":"One Small Step - - ","height":87});
															thumbnails[3628695] = clik.newPhoto({"id":3628695,"src":"Dawn_thumb.jpg","galleries_id":181823,"server_id":1,"link":"photo_3628695.html","width":130,"caption":"Dawn","height":104});
															thumbnails[5072209] = clik.newPhoto({"id":5072209,"src":"HORSE_RIDER_2006_thumb.jpg","galleries_id":267506,"server_id":1,"link":"photo_5072209.html","width":130,"caption":"Hang On Tight!","height":83});
															thumbnails[231033] = clik.newPhoto({"id":231033,"src":"Lesley's pipes smaller_thumb.jpg","galleries_id":19673,"server_id":1,"link":"photo_231033.html","width":130,"caption":"Pipes","height":103});
															thumbnails[230878] = clik.newPhoto({"id":230878,"src":"Martin Foot image2_thumb.jpg","galleries_id":19673,"server_id":1,"link":"photo_230878.html","width":130,"caption":"City view through a Clock","height":101});
															thumbnails[236583] = clik.newPhoto({"id":236583,"src":"vince dicentra 600pix_thumb.jpg","galleries_id":19673,"server_id":1,"link":"photo_236583.html","width":130,"caption":"Ace of Hearts","height":146});
															thumbnails[237749] = clik.newPhoto({"id":237749,"src":"margarets-swans-600pix_thumb.jpg","galleries_id":19673,"server_id":1,"link":"photo_237749.html","width":130,"caption":"Early morning Swans","height":81});
															thumbnails[239362] = clik.newPhoto({"id":239362,"src":"colin gogerty marina_thumb.jpg","galleries_id":19673,"server_id":1,"link":"photo_239362.html","width":130,"caption":"Christchurch Marina","height":180});
															thumbnails[239367] = clik.newPhoto({"id":239367,"src":"janet gogerty waverly_thumb.jpg","galleries_id":19673,"server_id":1,"link":"photo_239367.html","width":130,"caption":"Paddle Steamer Waverly","height":97});
															thumbnails[317203] = clik.newPhoto({"id":317203,"src":"mike street Boat at Weymouth_thumb.jpg","galleries_id":19673,"server_id":1,"link":"photo_317203.html","width":130,"caption":"Boat at Weymouth","height":173});
															thumbnails[317204] = clik.newPhoto({"id":317204,"src":"mike street egret_thumb.jpg","galleries_id":19673,"server_id":1,"link":"photo_317204.html","width":130,"caption":"Egret","height":173});
															thumbnails[317206] = clik.newPhoto({"id":317206,"src":"mike street Punk Rocker_thumb.jpg","galleries_id":19673,"server_id":1,"link":"photo_317206.html","width":130,"caption":"Punk Rocker","height":195});
															thumbnails[317218] = clik.newPhoto({"id":317218,"src":"mike street Roundabout_thumb.jpg","galleries_id":19673,"server_id":1,"link":"photo_317218.html","width":130,"caption":"Round About","height":87});
															thumbnails[317219] = clik.newPhoto({"id":317219,"src":"mike street Row boat_thumb.jpg","galleries_id":19673,"server_id":1,"link":"photo_317219.html","width":130,"caption":"Row Boat","height":195});
															thumbnails[623189] = clik.newPhoto({"id":623189,"src":"Burning Sky_thumb.jpg","galleries_id":19673,"server_id":1,"link":"photo_623189.html","width":130,"caption":"Burning Sky","height":72});
															thumbnails[1183513] = clik.newPhoto({"id":1183513,"src":"Try Me_thumb.JPG","galleries_id":19673,"server_id":1,"link":"photo_1183513.html","width":130,"caption":"Try Me","height":194});
															thumbnails[1826695] = clik.newPhoto({"id":1826695,"src":"dee maddams columns_thumb.jpg","galleries_id":47911,"server_id":1,"link":"photo_1826695.html","width":130,"caption":"Well done Dee on winning this round of the Digital Delight","height":172});
															thumbnails[1826707] = clik.newPhoto({"id":1826707,"src":"Ricardo Cifuentes UpAndDown_thumb.jpg","galleries_id":47911,"server_id":1,"link":"photo_1826707.html","width":130,"caption":"Second equal in your first Digital competition - nice work Ricardo","height":92});
															thumbnails[1826708] = clik.newPhoto({"id":1826708,"src":"Ken Thomas Hotel_thumb.jpg","galleries_id":47911,"server_id":1,"link":"photo_1826708.html","width":130,"caption":"another 2nd equal Ken","height":171});
															thumbnails[1826711] = clik.newPhoto({"id":1826711,"src":"Colin Gogerty circles_thumb.jpg","galleries_id":47911,"server_id":1,"link":"photo_1826711.html","width":130,"caption":"your first of two 2nd equals in this round Colin","height":65});
															thumbnails[1826718] = clik.newPhoto({"id":1826718,"src":"Colin Gogerty Steps & Angles_thumb.jpg","galleries_id":47911,"server_id":1,"link":"photo_1826718.html","width":130,"caption":"This is your second 2nd equal Colin","height":98});
															thumbnails[2215322] = clik.newPhoto({"id":2215322,"src":"Dee-Surfer BCC_thumb.jpg","galleries_id":72725,"server_id":1,"link":"photo_2215322.html","width":130,"caption":"Surfer","height":105});
															thumbnails[2215357] = clik.newPhoto({"id":2215357,"src":"stan-robin BCC_thumb.jpg","galleries_id":72725,"server_id":1,"link":"photo_2215357.html","width":130,"caption":"Robin","height":88});
															thumbnails[2215361] = clik.newPhoto({"id":2215361,"src":"stan-wine-glass-reflection BCC_thumb.jpg","galleries_id":72725,"server_id":1,"link":"photo_2215361.html","width":130,"caption":"Wine Glass Reflection","height":153});
															thumbnails[2418774] = clik.newPhoto({"id":2418774,"src":"lynne burry port 2007 7_thumb.jpg","galleries_id":19673,"server_id":1,"link":"photo_2418774.html","width":130,"caption":"Beach Pals","height":86});
															thumbnails[3188244] = clik.newPhoto({"id":3188244,"src":"common mayfly_thumb.jpg","galleries_id":19673,"server_id":1,"link":"photo_3188244.html","width":130,"caption":"Stan Maddams's Mayfly image which won in the National Insect week competition recently ","height":87});
															thumbnails[3285216] = clik.newPhoto({"id":3285216,"src":"Wind Surfer edit_thumb.jpg","galleries_id":200345,"server_id":1,"link":"photo_3285216.html","width":130,"caption":"Dee Maddams strikes again with this winning shot of a Kite Surfer at speed","height":58});
															thumbnails[3365954] = clik.newPhoto({"id":3365954,"src":"ken's LILY_1045A_thumb.jpg","galleries_id":72725,"server_id":1,"link":"photo_3365954.html","width":130,"caption":"Lily","height":169});
															thumbnails[3365959] = clik.newPhoto({"id":3365959,"src":"ken M AX0495MOD 2_thumb.jpg","galleries_id":72725,"server_id":1,"link":"photo_3365959.html","width":130,"caption":"Max","height":116});
															thumbnails[3365962] = clik.newPhoto({"id":3365962,"src":"ken through the fire_thumb.jpg","galleries_id":19673,"server_id":1,"link":"photo_3365962.html","width":130,"caption":"Through the Fire","height":171});
															thumbnails[3583628] = clik.newPhoto({"id":3583628,"src":"hoopoe_thumb.jpg","galleries_id":19673,"server_id":1,"link":"photo_3583628.html","width":130,"caption":"Hoopoe","height":105});
															thumbnails[3583635] = clik.newPhoto({"id":3583635,"src":"Nautical_Stan_thumb.jpg","galleries_id":19673,"server_id":1,"link":"photo_3583635.html","width":130,"caption":"Mobile","height":104});
															thumbnails[3583644] = clik.newPhoto({"id":3583644,"src":"weather_vane_thumb.jpg","galleries_id":19673,"server_id":1,"link":"photo_3583644.html","width":130,"caption":"Weather Vane","height":124});
															thumbnails[3583648] = clik.newPhoto({"id":3583648,"src":"Life_buoy_thumb.jpg","galleries_id":19673,"server_id":1,"link":"photo_3583648.html","width":130,"caption":"Life Bouy","height":195});
															thumbnails[3583651] = clik.newPhoto({"id":3583651,"src":"Narrowboat_landscape_thumb.jpg","galleries_id":19673,"server_id":1,"link":"photo_3583651.html","width":130,"caption":"Narrow Boat Landscape","height":195});
															thumbnails[3584550] = clik.newPhoto({"id":3584550,"src":"Avon_Trots_thumb.jpg","galleries_id":19673,"server_id":1,"link":"photo_3584550.html","width":130,"caption":"Avon Trots","height":87});
															thumbnails[3584551] = clik.newPhoto({"id":3584551,"src":"quayside_christchurch_thumb.jpg","galleries_id":19673,"server_id":1,"link":"photo_3584551.html","width":130,"caption":"Quayside Living","height":76});
															thumbnails[3726759] = clik.newPhoto({"id":3726759,"src":"bishopsteignton_july_2008_004_thumb.jpg","galleries_id":19673,"server_id":1,"link":"photo_3726759.html","width":130,"caption":"High & Dry","height":98});
															thumbnails[4146531] = clik.newPhoto({"id":4146531,"src":"cozumel_2008_011_lynne_thumb.jpg","galleries_id":19673,"server_id":1,"link":"photo_4146531.html","width":130,"caption":"Red Ball","height":99});
															thumbnails[4247712] = clik.newPhoto({"id":4247712,"src":"BIC4_Lesley_thumb.jpg","galleries_id":250346,"server_id":1,"link":"photo_4247712.html","width":130,"caption":"BIC windows","height":105});
															thumbnails[4247715] = clik.newPhoto({"id":4247715,"src":"BIC1_Lesley_thumb.jpg","galleries_id":250346,"server_id":1,"link":"photo_4247715.html","width":130,"caption":"Stage Struck","height":93});
															thumbnails[4247718] = clik.newPhoto({"id":4247718,"src":"BIC1_Martin_thumb.jpg","galleries_id":250346,"server_id":1,"link":"photo_4247718.html","width":130,"caption":"Seats","height":76});
															thumbnails[4247721] = clik.newPhoto({"id":4247721,"src":"BIC2_Martin_thumb.jpg","galleries_id":250346,"server_id":1,"link":"photo_4247721.html","width":130,"caption":"Its a long way down","height":90});
															thumbnails[4247725] = clik.newPhoto({"id":4247725,"src":"cast_a_little_light_thumb.jpg","galleries_id":250346,"server_id":1,"link":"photo_4247725.html","width":130,"caption":"Cast a Little Light","height":130});
															thumbnails[4264147] = clik.newPhoto({"id":4264147,"src":"Ken_bic_1_thumb.jpg","galleries_id":250346,"server_id":1,"link":"photo_4264147.html","width":130,"caption":"The Big Roof","height":189});
															thumbnails[4264149] = clik.newPhoto({"id":4264149,"src":"ken_bic_2_thumb.jpg","galleries_id":250346,"server_id":1,"link":"photo_4264149.html","width":130,"caption":"Stage Struck - 2","height":176});
															thumbnails[4265255] = clik.newPhoto({"id":4265255,"src":"reg_bic1_2_thumb.jpg","galleries_id":250346,"server_id":1,"link":"photo_4265255.html","width":130,"caption":"Structure","height":107});
															thumbnails[4265260] = clik.newPhoto({"id":4265260,"src":"reg_bic_Curves_thumb.jpg","galleries_id":250346,"server_id":1,"link":"photo_4265260.html","width":130,"caption":"Curves","height":107});
															thumbnails[4272222] = clik.newPhoto({"id":4272222,"src":"stan_red_filtered_lights_thumb.jpg","galleries_id":250346,"server_id":1,"link":"photo_4272222.html","width":130,"caption":"Cyberbabies?","height":91});
															thumbnails[4272236] = clik.newPhoto({"id":4272236,"src":"stan_roof_centre_thumb.jpg","galleries_id":250346,"server_id":1,"link":"photo_4272236.html","width":130,"caption":"Roof Centre","height":90});
															thumbnails[4292264] = clik.newPhoto({"id":4292264,"src":"eddie_bigg_bic2_thumb.jpg","galleries_id":250346,"server_id":1,"link":"photo_4292264.html","width":130,"caption":"That's a Good One","height":81});
															thumbnails[4306231] = clik.newPhoto({"id":4306231,"src":"Eddie_Biggs_BIC_Ken_thumb.jpg","galleries_id":250346,"server_id":1,"link":"photo_4306231.html","width":130,"caption":"Ken considering his shot","height":81});
															thumbnails[4492407] = clik.newPhoto({"id":4492407,"src":"colin_BW_thumb.jpg","galleries_id":181823,"server_id":1,"link":"photo_4492407.html","width":130,"caption":"Colin","height":130});
															thumbnails[4492408] = clik.newPhoto({"id":4492408,"src":"josephine_thumb.jpg","galleries_id":181823,"server_id":1,"link":"photo_4492408.html","width":130,"caption":"Josephine","height":173});
															thumbnails[4492425] = clik.newPhoto({"id":4492425,"src":"Reg_thumb.jpg","galleries_id":181823,"server_id":1,"link":"photo_4492425.html","width":130,"caption":"Reg","height":163});
															thumbnails[4647934] = clik.newPhoto({"id":4647934,"src":"lion_edit_1_thumb.jpg","galleries_id":267506,"server_id":1,"link":"photo_4647934.html","width":130,"caption":"Lion Lick","height":193});
															thumbnails[4647972] = clik.newPhoto({"id":4647972,"src":"snow_leopard_tight_crop_thumb.jpg","galleries_id":267506,"server_id":1,"link":"photo_4647972.html","width":130,"caption":"Snow Leopard","height":130});
															thumbnails[4648122] = clik.newPhoto({"id":4648122,"src":"serval_thumb.jpg","galleries_id":267506,"server_id":1,"link":"photo_4648122.html","width":130,"caption":"Serval","height":163});
															thumbnails[4648129] = clik.newPhoto({"id":4648129,"src":"leopard_1_thumb.jpg","galleries_id":267506,"server_id":1,"link":"photo_4648129.html","width":130,"caption":"Leopard","height":87});
															thumbnails[4648162] = clik.newPhoto({"id":4648162,"src":"tiger_thumb.jpg","galleries_id":267506,"server_id":1,"link":"photo_4648162.html","width":130,"caption":"Tiger","height":163});
															thumbnails[4657714] = clik.newPhoto({"id":4657714,"src":"Crab_Spider_female_thumb.jpg","galleries_id":267506,"server_id":1,"link":"photo_4657714.html","width":130,"caption":"Crab Spider Female","height":78});
															thumbnails[4657720] = clik.newPhoto({"id":4657720,"src":"Cranefly_thumb.jpg","galleries_id":267506,"server_id":1,"link":"photo_4657720.html","width":130,"caption":"Cranefly ","height":87});
															thumbnails[4657727] = clik.newPhoto({"id":4657727,"src":"Holly_Blue_thumb.jpg","galleries_id":267506,"server_id":1,"link":"photo_4657727.html","width":130,"caption":"Holly Blue Butterfly","height":104});
															thumbnails[4657736] = clik.newPhoto({"id":4657736,"src":"painted_lady_on_David_Bowles_thumb.jpg","galleries_id":267506,"server_id":1,"link":"photo_4657736.html","width":130,"caption":"Painted Lady on Geranium David Bowles","height":94});
															thumbnails[4657740] = clik.newPhoto({"id":4657740,"src":"fly_portrait_thumb.jpg","galleries_id":267506,"server_id":1,"link":"photo_4657740.html","width":130,"caption":"Portrait of a Fly","height":195});
															thumbnails[4700896] = clik.newPhoto({"id":4700896,"src":"IMG_0247_thumb.jpg","galleries_id":270353,"server_id":1,"link":"photo_4700896.html","width":130,"caption":"Drink anyone?","height":98});
															thumbnails[4700906] = clik.newPhoto({"id":4700906,"src":"IMG_0253_thumb.jpg","galleries_id":270353,"server_id":1,"link":"photo_4700906.html","width":130,"caption":"Let's dance!","height":101});
															thumbnails[4700924] = clik.newPhoto({"id":4700924,"src":"P1070717_thumb.jpg","galleries_id":270353,"server_id":1,"link":"photo_4700924.html","width":130,"caption":"Have you seen these swirls before? ","height":98});
															thumbnails[4700927] = clik.newPhoto({"id":4700927,"src":"P1070792_edited-1_thumb.jpg","galleries_id":270353,"server_id":1,"link":"photo_4700927.html","width":130,"caption":"Bannisters","height":104});
															thumbnails[4787947] = clik.newPhoto({"id":4787947,"src":"G1_test_by_Vince_thumb.jpg","galleries_id":267506,"server_id":1,"link":"photo_4787947.html","width":130,"caption":"G1 test shot by Vince last night - Aperture priority + flash","height":163});
															thumbnails[4787962] = clik.newPhoto({"id":4787962,"src":"G1_test_by_Vince_watch_thumb.jpg","galleries_id":267506,"server_id":1,"link":"photo_4787962.html","width":130,"caption":"Zooming on on Mike's watch from the previous shot","height":85});
															thumbnails[4944910] = clik.newPhoto({"id":4944910,"src":"Des-Res_thumb.jpg","galleries_id":267506,"server_id":1,"link":"photo_4944910.html","width":130,"caption":"For sale. needs TLC","height":96});
															thumbnails[4947373] = clik.newPhoto({"id":4947373,"src":"Hoverfly_thumb.jpg","galleries_id":267506,"server_id":1,"link":"photo_4947373.html","width":130,"caption":"Hoverfly","height":125});
															thumbnails[4947396] = clik.newPhoto({"id":4947396,"src":"Long_eared_owl_thumb.jpg","galleries_id":267506,"server_id":1,"link":"photo_4947396.html","width":130,"caption":"Long Eared owl","height":157});
															thumbnails[4947422] = clik.newPhoto({"id":4947422,"src":"Teaching_thumb.jpg","galleries_id":267506,"server_id":1,"link":"photo_4947422.html","width":130,"caption":"","height":98});
															thumbnails[4947436] = clik.newPhoto({"id":4947436,"src":"Thomas__thumb.jpg","galleries_id":267506,"server_id":1,"link":"photo_4947436.html","width":130,"caption":"Thomas","height":162});
															thumbnails[4949093] = clik.newPhoto({"id":4949093,"src":"Graham_Fox_thumb.jpg","galleries_id":181823,"server_id":1,"link":"photo_4949093.html","width":130,"caption":"Checking the Light","height":132});
															thumbnails[5074218] = clik.newPhoto({"id":5074218,"src":"Bath_thumb.gif","galleries_id":19673,"server_id":1,"link":"photo_5074218.html","width":130,"caption":"I like people watching, a quiet moment in Bath.","height":98});
															thumbnails[5074227] = clik.newPhoto({"id":5074227,"src":"Boat_thumb.gif","galleries_id":19673,"server_id":1,"link":"photo_5074227.html","width":130,"caption":"Wherever you go in Britain, you can find water.","height":98});
															thumbnails[5074238] = clik.newPhoto({"id":5074238,"src":"Boscombe-pier_thumb.gif","galleries_id":19673,"server_id":1,"link":"photo_5074238.html","width":130,"caption":"wild and wet.","height":98});
															thumbnails[5094833] = clik.newPhoto({"id":5094833,"src":"moth_Ivan_Palmer_thumb.jpg","galleries_id":267506,"server_id":1,"link":"photo_5094833.html","width":130,"caption":"Abstract Moth","height":87});
															thumbnails[5094840] = clik.newPhoto({"id":5094840,"src":"soldier_Ivan_Palmer_thumb.jpg","galleries_id":267506,"server_id":1,"link":"photo_5094840.html","width":130,"caption":"Soldier","height":87});
															thumbnails[5094843] = clik.newPhoto({"id":5094843,"src":"stainedglass_Ivan_Palmer_thumb.jpg","galleries_id":267506,"server_id":1,"link":"photo_5094843.html","width":130,"caption":"Stained Glass","height":195});
															thumbnails[5168760] = clik.newPhoto({"id":5168760,"src":"Senior_Moment_val_clark_happy_97th_birthdayjpg_thumb.jpg","galleries_id":111419,"server_id":1,"link":"photo_5168760.html","width":130,"caption":"Happy 97th Birthday","height":130});
															thumbnails[5168761] = clik.newPhoto({"id":5168761,"src":"Open_Ivan_Palmer_Alex-Yeah_thumb.jpg","galleries_id":111419,"server_id":1,"link":"photo_5168761.html","width":130,"caption":"Alex-Yeah!","height":195});
															thumbnails[5168767] = clik.newPhoto({"id":5168767,"src":"senior_moment_Brian_Wadie_Hanging_Loosejpg_thumb.jpg","galleries_id":111419,"server_id":1,"link":"photo_5168767.html","width":130,"caption":"Hanging Loose","height":163});
															thumbnails[5168768] = clik.newPhoto({"id":5168768,"src":"Senior_Moment_Edward_Bigg_John_thumb.jpg","galleries_id":111419,"server_id":1,"link":"photo_5168768.html","width":130,"caption":"John","height":98});
															thumbnails[5168769] = clik.newPhoto({"id":5168769,"src":"Senior_Moment_Reg_Clark_I_can_see_clearly_now_the_brain_has_gonejpg_thumb.jpg","galleries_id":111419,"server_id":1,"link":"photo_5168769.html","width":130,"caption":"I can see clearly now my brain has gone","height":102});
															thumbnails[5168770] = clik.newPhoto({"id":5168770,"src":"Open_Brian_Wadie_Red_Eyesjpg_thumb.jpg","galleries_id":111419,"server_id":1,"link":"photo_5168770.html","width":130,"caption":"Red Eyes","height":195});
															thumbnails[5168771] = clik.newPhoto({"id":5168771,"src":"Open_Ken_Thomas_Bluebells_thumb.jpg","galleries_id":111419,"server_id":1,"link":"photo_5168771.html","width":130,"caption":"Blue Bells","height":52});
															thumbnails[5168776] = clik.newPhoto({"id":5168776,"src":"Open_stan_maddams_motorcycle_racing_thumb.jpg","galleries_id":111419,"server_id":1,"link":"photo_5168776.html","width":130,"caption":"Motorcycle Racing","height":88});
															thumbnails[5270796] = clik.newPhoto({"id":5270796,"src":"ezybox_thumb.jpg","galleries_id":181823,"server_id":1,"link":"photo_5270796.html","width":130,"caption":"Is it Working?","height":130});
															thumbnails[5359246] = clik.newPhoto({"id":5359246,"src":"a_brief_interlude_thumb.jpg","galleries_id":181823,"server_id":1,"link":"photo_5359246.html","width":130,"caption":"A Brief Interlude","height":87});
															thumbnails[5361888] = clik.newPhoto({"id":5361888,"src":"rhodes_1_sept_2009_105_monastery_laerma_thumb.jpg","galleries_id":19673,"server_id":1,"link":"photo_5361888.html","width":130,"caption":"Rhodes Monasterly Laerma","height":144});
															thumbnails[5805060] = clik.newPhoto({"id":5805060,"src":"african-fish-eagle_thumb.jpg","galleries_id":19676,"server_id":1,"link":"photo_5805060.html","width":130,"caption":"African Fish Eagle","height":87});
															thumbnails[5805076] = clik.newPhoto({"id":5805076,"src":"banded-demoiselle_thumb.jpg","galleries_id":19676,"server_id":1,"link":"photo_5805076.html","width":130,"caption":"Banded Demoiselle","height":87});
															thumbnails[5805077] = clik.newPhoto({"id":5805077,"src":"boscombe-groyne_thumb.jpg","galleries_id":19676,"server_id":1,"link":"photo_5805077.html","width":130,"caption":"Boscombe Groyne","height":86});
															thumbnails[5805078] = clik.newPhoto({"id":5805078,"src":"lion-lick_thumb.jpg","galleries_id":19676,"server_id":1,"link":"photo_5805078.html","width":130,"caption":"Lion Lick","height":197});
															thumbnails[5805079] = clik.newPhoto({"id":5805079,"src":"snowy-owl_thumb.jpg","galleries_id":19676,"server_id":1,"link":"photo_5805079.html","width":130,"caption":"Snowy Owl","height":104});
															thumbnails[5805080] = clik.newPhoto({"id":5805080,"src":"Steam-Fair1_thumb.jpg","galleries_id":19676,"server_id":1,"link":"photo_5805080.html","width":130,"caption":"Steam Fair","height":85});
															thumbnails[5805081] = clik.newPhoto({"id":5805081,"src":"traction-engine_thumb.jpg","galleries_id":19676,"server_id":1,"link":"photo_5805081.html","width":130,"caption":"Traction Engine","height":92});
															thumbnails[6067716] = clik.newPhoto({"id":6067716,"src":"llangennith_2007_2_1_thumb.jpg","galleries_id":19673,"server_id":1,"link":"photo_6067716.html","width":130,"caption":"llangennith 2007","height":89});
															thumbnails[6437794] = clik.newPhoto({"id":6437794,"src":"Open_Reg_Clark_Do_you_feel_lucky_thumb.jpg","galleries_id":236022,"server_id":1,"link":"photo_6437794.html","width":130,"caption":"Do You Feel Lucky","height":119});
															thumbnails[6437796] = clik.newPhoto({"id":6437796,"src":"Open_Ken_Thomas_Flat_out_thumb.jpg","galleries_id":236022,"server_id":1,"link":"photo_6437796.html","width":130,"caption":"Flat Out","height":97});
															thumbnails[6604906] = clik.newPhoto({"id":6604906,"src":"throop_composite_1_thumb.jpg","galleries_id":25534,"server_id":1,"link":"photo_6604906.html","width":130,"caption":"Throop Composite 1","height":108});
															thumbnails[6604908] = clik.newPhoto({"id":6604908,"src":"RandyandRita_Throop20Mill_thumb.jpg","galleries_id":25534,"server_id":1,"link":"photo_6604908.html","width":130,"caption":"Randy and Rita's Throop Mill","height":73});
															thumbnails[6604911] = clik.newPhoto({"id":6604911,"src":"Photoshoot_Stuart20Nourse_Collage1_thumb.jpg","galleries_id":25534,"server_id":1,"link":"photo_6604911.html","width":130,"caption":"Stuart Nourse's Throop Mill composite","height":98});
															thumbnails[6605383] = clik.newPhoto({"id":6605383,"src":"Martin_ThroopMill_thumb.jpg","galleries_id":25534,"server_id":1,"link":"photo_6605383.html","width":130,"caption":"Martin's view of Throop Mill","height":184});
															thumbnails[7921032] = clik.newPhoto({"id":7921032,"src":"lynne_bucklers_hard_pic_thumb.jpg","galleries_id":19673,"server_id":1,"link":"photo_7921032.html","width":130,"caption":"Rooftop 2","height":98});
															thumbnails[7921033] = clik.newPhoto({"id":7921033,"src":"lynnes_lanzarote_pic_thumb.jpg","galleries_id":19673,"server_id":1,"link":"photo_7921033.html","width":130,"caption":"Rooftop 1","height":50});
															thumbnails[8019381] = clik.newPhoto({"id":8019381,"src":"Butterfly_thumb.jpg","galleries_id":267506,"server_id":1,"link":"photo_8019381.html","width":130,"caption":"","height":108});
															thumbnails[8541421] = clik.newPhoto({"id":8541421,"src":"Landscape_Colin_Gogerty_On_a_Clear_day_thumb.jpg","galleries_id":451322,"server_id":1,"link":"photo_8541421.html","width":130,"caption":"On a Clear Day","height":67});
															thumbnails[8541424] = clik.newPhoto({"id":8541424,"src":"Seascape_stan_maddams_early_light_at_Southbourne_thumb.jpg","galleries_id":451322,"server_id":1,"link":"photo_8541424.html","width":130,"caption":"Early Light at Southbourne","height":62});
															thumbnails[8541428] = clik.newPhoto({"id":8541428,"src":"Seascape_val_clark_Holywell_Bay_thumb.jpg","galleries_id":451322,"server_id":1,"link":"photo_8541428.html","width":130,"caption":"Holywell Bay","height":92});
															thumbnails[8541436] = clik.newPhoto({"id":8541436,"src":"Urbanscape_james_hume_identity_thumb.jpg","galleries_id":451322,"server_id":1,"link":"photo_8541436.html","width":130,"caption":"Identity","height":86});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[250346] = clik.newGallery({"parentGallery":270376,"usePopups":false,"title":"BIC Tour","link":"gallery_250346.html","maxRecords":0.0,"photoIDs":[4221302.0,4247712.0,4247715.0,4247718.0,4247721.0,4247725.0,4264147.0,4264149.0,4265255.0,4265260.0,4272222.0,4272236.0,4292264.0,4306231.0],"skipIndex":0,"section_code":"gallery","featured_images":"4306231,4292264,4272236,4272222,4265260,4265255,4264149,4264147,4247725,4247721","id":250346,"singleSection":false});				  						galleries[270353] = clik.newGallery({"parentGallery":270376,"usePopups":false,"title":"Bournemouth Pavillion Tour","link":"gallery_270353.html","maxRecords":0.0,"photoIDs":[4700896.0,4700906.0,4700924.0,4700927.0],"skipIndex":0,"section_code":"gallery","featured_images":"4700927,4700924,4700906,4700896","id":270353,"singleSection":false});				  						galleries[270377] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Competitions","link":"gallery_270377.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"8541436,8541428,8541424,8541421,6437796,6437794,5805081,5805080,5805079,5805078","id":270377,"singleSection":false});				  						galleries[111419] = clik.newGallery({"parentGallery":270377,"usePopups":false,"title":"Digital Drain","link":"gallery_111419.html","maxRecords":0.0,"photoIDs":[5168760.0,5168761.0,5168767.0,5168768.0,5168769.0,5168770.0,5168771.0,5168776.0],"skipIndex":0,"section_code":"gallery","featured_images":"5168776,5168771,5168770,5168769,5168768,5168767,5168761,5168760","id":111419,"singleSection":false});				  						galleries[267506] = clik.newGallery({"parentGallery":270379,"usePopups":false,"title":"Digital Group","link":"gallery_267506.html","maxRecords":0.0,"photoIDs":[4968474.0,4968478.0,4968485.0,4968492.0,4968496.0,4896399.0,5072207.0,5072209.0,4647934.0,4647972.0,4648122.0,4648129.0,4648162.0,4657714.0,4657720.0,4657727.0,4657736.0,4657740.0,4787947.0,4787962.0,4944910.0,4947373.0,4947396.0,4947422.0,4947436.0,5094833.0,5094840.0,5094843.0,8019381.0],"skipIndex":0,"section_code":"gallery","featured_images":"8019381,5094843,5094840,5094833,5072209,5072207,4968496,4968492,4968485,4968478","id":267506,"singleSection":false});				  						galleries[236022] = clik.newGallery({"parentGallery":270377,"usePopups":false,"title":"Digital League PIDDI Cup 2010 - 2011","link":"gallery_236022.html","maxRecords":0.0,"photoIDs":[6437794.0,6437796.0],"skipIndex":0,"section_code":"gallery","featured_images":"6437796,6437794","id":236022,"singleSection":false});				  						galleries[47911] = clik.newGallery({"parentGallery":270377,"usePopups":false,"title":"Digital Projection Competition","link":"gallery_47911.html","maxRecords":0.0,"photoIDs":[1826695.0,1826707.0,1826708.0,1826711.0,1826718.0],"skipIndex":0,"section_code":"gallery","featured_images":"1826718,1826711,1826708,1826707,1826695","id":47911,"singleSection":false});				  						galleries[270376] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Events","link":"gallery_270376.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"6605383,6604911,6604908,6604906,4700927,4700924,4700906,4700896,4306231,4292264","id":270376,"singleSection":false});				  						galleries[451322] = clik.newGallery({"parentGallery":270377,"usePopups":false,"title":"John Diffey Trophy 2011","link":"gallery_451322.html","maxRecords":0.0,"photoIDs":[8541421.0,8541424.0,8541428.0,8541436.0],"skipIndex":0,"section_code":"gallery","featured_images":"8541436,8541428,8541424,8541421","id":451322,"singleSection":false});				  						galleries[270379] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Members' Work","link":"gallery_270379.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"8019381,7921033,7921032,6067716,5361888,5359246,5270796,5094843,5094840,5094833","id":270379,"singleSection":false});				  						galleries[200345] = clik.newGallery({"parentGallery":270377,"usePopups":false,"title":"Nicola Hutchinson Print Trophy","link":"gallery_200345.html","maxRecords":0.0,"photoIDs":[3285216.0],"skipIndex":0,"section_code":"gallery","featured_images":3285216.0,"id":200345,"singleSection":false});				  						galleries[72725] = clik.newGallery({"parentGallery":270377,"usePopups":false,"title":"Print and Slide of the Year Images","link":"gallery_72725.html","maxRecords":0.0,"photoIDs":[2215322.0,2215357.0,2215361.0,3365954.0,3365959.0],"skipIndex":0,"section_code":"gallery","featured_images":"3365959,3365954,2215361,2215357,2215322","id":72725,"singleSection":false});				  						galleries[181823] = clik.newGallery({"parentGallery":270379,"usePopups":false,"title":"Studio Group","link":"gallery_181823.html","maxRecords":0.0,"photoIDs":[4753690.0,4753711.0,3628695.0,4492407.0,4492408.0,4492425.0,4949093.0,5270796.0,5359246.0],"skipIndex":0,"section_code":"gallery","featured_images":"5359246,5270796,4949093,4753711,4753690,4492425,4492408,4492407,3628695","id":181823,"singleSection":false});				  						galleries[19673] = clik.newGallery({"parentGallery":270379,"usePopups":false,"title":"Other Work","link":"gallery_19673.html","maxRecords":0.0,"photoIDs":[231033.0,230878.0,236583.0,237749.0,239362.0,239367.0,317203.0,317204.0,317206.0,317218.0,317219.0,623189.0,1183513.0,2418774.0,3188244.0,3365962.0,3583628.0,3583635.0,3583644.0,3583648.0,3583651.0,3584550.0,3584551.0,3726759.0,4146531.0,5074218.0,5074227.0,5074238.0,5361888.0,6067716.0,7921032.0,7921033.0],"skipIndex":0,"section_code":"gallery","featured_images":"7921033,7921032,6067716,5361888,5074238,5074227,5074218,4146531,3726759,3584551","id":19673,"singleSection":false});				  						galleries[19676] = clik.newGallery({"parentGallery":270377,"usePopups":false,"title":"Castle Cameras Cup competition Winning Images","link":"gallery_19676.html","maxRecords":0.0,"photoIDs":[5805060.0,5805076.0,5805077.0,5805078.0,5805079.0,5805080.0,5805081.0],"skipIndex":0,"section_code":"gallery","featured_images":"5805081,5805080,5805079,5805078,5805077,5805076,5805060","id":19676,"singleSection":false});				  						galleries[25534] = clik.newGallery({"parentGallery":270376,"usePopups":false,"title":"Outdoor Shoot - Throop Mill","link":"gallery_25534.html","maxRecords":0.0,"photoIDs":[6604906.0,6604908.0,6604911.0,6605383.0],"skipIndex":0,"section_code":"gallery","featured_images":"6605383,6604911,6604908,6604906","id":25534,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8541436,8541428,8541424,8541421,8019381,7921033,7921032,6705017,6704989,6704987,6704981,6657308,6657299,6657217,6657173,6657113,6657110,6657106,6657097,6605383,6604911,6604908,6604906,6437796,6437794,6067716,5805081,5805080,5805079,5805078,5805077,5805076,5805060,5361888,5359246,5270796,5168776,5168771,5168770,5168769,5168768,5168767,5168761,5168760,5094843,5094840,5094833,5074251,5074244,5074238';
imageSets[3] = '8541436,8541428,8541424,8541421,8019381,7921033,7921032,6705017,6704989,6704987,6704981,6657308,6657299,6657217,6657173,6657113,6657110,6657106,6657097,6605383,6604911,6604908,6604906,6437796,6437794,6067716,5805081,5805080,5805079,5805078,5805077,5805076,5805060,5361888,5359246,5270796,5168776,5168771,5168770,5168769,5168768,5168767,5168761,5168760,5094843,5094840,5094833,5074251,5074244,5074238';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/boscombecc/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/boscombecc/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/boscombecc/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/boscombecc/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/boscombecc/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/boscombecc/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/boscombecc/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/boscombecc/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/boscombecc/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/boscombecc/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/boscombecc/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/boscombecc/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/boscombecc/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/boscombecc/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/boscombecc/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/boscombecc/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/boscombecc/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/boscombecc/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/boscombecc/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/boscombecc/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/boscombecc/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/boscombecc/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/boscombecc/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/boscombecc/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/boscombecc/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/boscombecc/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/boscombecc/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 = 'Boscombe Camera Club: ' + 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;
	}
}

		

