window.thumbnails = {};
															thumbnails[7857751] = clik.newPhoto({"id":7857751,"src":"brandshatch_thumb.jpg","galleries_id":424093,"server_id":18,"link":"photo_7857751.html","width":150,"caption":"Brands Hatch","height":79});
															thumbnails[7857771] = clik.newPhoto({"id":7857771,"src":"brighteyes_thumb.jpg","galleries_id":424093,"server_id":18,"link":"photo_7857771.html","width":150,"caption":" Bright Eyes","height":101});
															thumbnails[7857798] = clik.newPhoto({"id":7857798,"src":"dandilion_thumb.jpg","galleries_id":424093,"server_id":18,"link":"photo_7857798.html","width":150,"caption":"Dandilion","height":150});
															thumbnails[7857817] = clik.newPhoto({"id":7857817,"src":"DustStorm_thumb.jpg","galleries_id":424093,"server_id":18,"link":"photo_7857817.html","width":150,"caption":"Dust Storm","height":107});
															thumbnails[7857819] = clik.newPhoto({"id":7857819,"src":"gerbera_thumb.jpg","galleries_id":424093,"server_id":18,"link":"photo_7857819.html","width":150,"caption":"Gerbera","height":150});
															thumbnails[7857821] = clik.newPhoto({"id":7857821,"src":"grasstrack_thumb.jpg","galleries_id":424093,"server_id":18,"link":"photo_7857821.html","width":150,"caption":"Grass track","height":101});
															thumbnails[7857822] = clik.newPhoto({"id":7857822,"src":"hisfinallap_thumb.jpg","galleries_id":424093,"server_id":18,"link":"photo_7857822.html","width":150,"caption":"His Final lap","height":101});
															thumbnails[7857824] = clik.newPhoto({"id":7857824,"src":"iris-2_thumb.jpg","galleries_id":424093,"server_id":18,"link":"photo_7857824.html","width":101,"caption":"Iris","height":150});
															thumbnails[7857827] = clik.newPhoto({"id":7857827,"src":"lisa2_thumb.jpg","galleries_id":424093,"server_id":18,"link":"photo_7857827.html","width":121,"caption":"Lisa","height":150});
															thumbnails[7857829] = clik.newPhoto({"id":7857829,"src":"the2fishermen_thumb.jpg","galleries_id":424093,"server_id":18,"link":"photo_7857829.html","width":150,"caption":"The Two Fishermen","height":101});
															thumbnails[7857833] = clik.newPhoto({"id":7857833,"src":"thoughtfull_thumb.jpg","galleries_id":424093,"server_id":18,"link":"photo_7857833.html","width":101,"caption":"Thoughtfull","height":150});
															thumbnails[7857836] = clik.newPhoto({"id":7857836,"src":"timetrial_thumb.jpg","galleries_id":424093,"server_id":18,"link":"photo_7857836.html","width":150,"caption":"Timetrial","height":120});
															thumbnails[7857838] = clik.newPhoto({"id":7857838,"src":"tulips_thumb.jpg","galleries_id":424093,"server_id":18,"link":"photo_7857838.html","width":101,"caption":"Tulips","height":150});
															thumbnails[7904584] = clik.newPhoto({"id":7904584,"src":"Lastingham-Crypt_thumb.jpg","galleries_id":426355,"server_id":18,"link":"photo_7904584.html","width":150,"caption":"Lastingham Crypt","height":100});
															thumbnails[7904589] = clik.newPhoto({"id":7904589,"src":"pollenated_bee_print_2_thumb.jpg","galleries_id":426355,"server_id":18,"link":"photo_7904589.html","width":150,"caption":"Pollenated bee","height":103});
															thumbnails[7904595] = clik.newPhoto({"id":7904595,"src":"waiting-for-our-leader_emai_thumb.jpg","galleries_id":426355,"server_id":18,"link":"photo_7904595.html","width":150,"caption":"Waiting for our leader","height":113});
															thumbnails[7904632] = clik.newPhoto({"id":7904632,"src":"Herrigfleet_Windpump_thumb.jpg","galleries_id":426370,"server_id":18,"link":"photo_7904632.html","width":150,"caption":"Herrigfleet Windpump","height":104});
															thumbnails[7904633] = clik.newPhoto({"id":7904633,"src":"Moos_in_the_mist_thumb.jpg","galleries_id":426370,"server_id":18,"link":"photo_7904633.html","width":150,"caption":"Moos in the mist","height":104});
															thumbnails[7904636] = clik.newPhoto({"id":7904636,"src":"Desert_Girl_thumb.jpg","galleries_id":426370,"server_id":18,"link":"photo_7904636.html","width":150,"caption":"Desert Girl","height":102});
															thumbnails[7904661] = clik.newPhoto({"id":7904661,"src":"Parisian-bridge---resizedC_thumb.jpg","galleries_id":426357,"server_id":18,"link":"photo_7904661.html","width":150,"caption":"Parisian bridge","height":116});
															thumbnails[7904662] = clik.newPhoto({"id":7904662,"src":"Chequred_arches_thumb.jpg","galleries_id":426357,"server_id":18,"link":"photo_7904662.html","width":150,"caption":"Chequred arches","height":113});
															thumbnails[7904664] = clik.newPhoto({"id":7904664,"src":"Up__over_thumb.jpg","galleries_id":426357,"server_id":18,"link":"photo_7904664.html","width":150,"caption":"Up and Over","height":121});
															thumbnails[7905606] = clik.newPhoto({"id":7905606,"src":"DSCF8420_edited-1_thumb.jpg","galleries_id":426358,"server_id":18,"link":"photo_7905606.html","width":133,"caption":"Winter Reflections","height":150});
															thumbnails[7905613] = clik.newPhoto({"id":7905613,"src":"Steam_thumb.jpg","galleries_id":426358,"server_id":18,"link":"photo_7905613.html","width":150,"caption":"Steam","height":94});
															thumbnails[7905616] = clik.newPhoto({"id":7905616,"src":"Frozen_burdock_thumb.jpg","galleries_id":426358,"server_id":18,"link":"photo_7905616.html","width":150,"caption":"Frozen burdock","height":100});
															thumbnails[7905619] = clik.newPhoto({"id":7905619,"src":"SDCCwebHUGH002_thumb.jpg","galleries_id":426362,"server_id":18,"link":"photo_7905619.html","width":150,"caption":"The Chair","height":100});
															thumbnails[7905624] = clik.newPhoto({"id":7905624,"src":"B---GoingUp-HHoman_thumb.jpg","galleries_id":426362,"server_id":18,"link":"photo_7905624.html","width":150,"caption":"Going up","height":97});
															thumbnails[7905626] = clik.newPhoto({"id":7905626,"src":"P---CactusH_Homan_thumb.jpg","galleries_id":426362,"server_id":18,"link":"photo_7905626.html","width":150,"caption":"Cactus","height":100});
															thumbnails[7905630] = clik.newPhoto({"id":7905630,"src":"SDCCwebANN004_thumb.jpg","galleries_id":426363,"server_id":18,"link":"photo_7905630.html","width":150,"caption":"","height":119});
															thumbnails[7905636] = clik.newPhoto({"id":7905636,"src":"SDCCwebANN001_thumb.jpg","galleries_id":426363,"server_id":18,"link":"photo_7905636.html","width":130,"caption":"","height":87});
															thumbnails[7905640] = clik.newPhoto({"id":7905640,"src":"Ann-_4_Figures_Looking_out_to_sea_thumb.jpg","galleries_id":426363,"server_id":18,"link":"photo_7905640.html","width":102,"caption":"","height":130});
															thumbnails[7905648] = clik.newPhoto({"id":7905648,"src":"Liquid-Lunch_thumb.jpg","galleries_id":426360,"server_id":18,"link":"photo_7905648.html","width":150,"caption":"Liquid Lunch","height":95});
															thumbnails[7905654] = clik.newPhoto({"id":7905654,"src":"Italian-POW-Chapel-interior_thumb.jpg","galleries_id":426360,"server_id":18,"link":"photo_7905654.html","width":150,"caption":"Italian POW Chapel","height":113});
															thumbnails[7905655] = clik.newPhoto({"id":7905655,"src":"Italian-POW-Chapel-built-Or_thumb.jpg","galleries_id":426360,"server_id":18,"link":"photo_7905655.html","width":150,"caption":"Italian POW Chapel","height":113});
															thumbnails[7905658] = clik.newPhoto({"id":7905658,"src":"Opera-window_thumb.jpg","galleries_id":426364,"server_id":18,"link":"photo_7905658.html","width":150,"caption":"Opera window","height":113});
															thumbnails[7905660] = clik.newPhoto({"id":7905660,"src":"Scene_and_herd_thumb.jpg","galleries_id":426364,"server_id":18,"link":"photo_7905660.html","width":150,"caption":"Scene and herd","height":67});
															thumbnails[7905661] = clik.newPhoto({"id":7905661,"src":"Ickworth_thumb.jpg","galleries_id":426364,"server_id":18,"link":"photo_7905661.html","width":150,"caption":"Ickworth","height":100});
															thumbnails[7914952] = clik.newPhoto({"id":7914952,"src":"Droplets_thumb.jpg","galleries_id":426365,"server_id":18,"link":"photo_7914952.html","width":150,"caption":"Droplets","height":113});
															thumbnails[7914954] = clik.newPhoto({"id":7914954,"src":"Splashdown_thumb.jpg","galleries_id":426365,"server_id":18,"link":"photo_7914954.html","width":150,"caption":"Splashdown","height":113});
															thumbnails[8276345] = clik.newPhoto({"id":8276345,"src":"IMG_4479_thumb.jpg","galleries_id":426363,"server_id":18,"link":"photo_8276345.html","width":150,"caption":"","height":97});
															thumbnails[8276349] = clik.newPhoto({"id":8276349,"src":"IMG_8174_thumb.jpg","galleries_id":426363,"server_id":18,"link":"photo_8276349.html","width":150,"caption":"","height":115});
															thumbnails[8276352] = clik.newPhoto({"id":8276352,"src":"Lanz25_thumb.jpg","galleries_id":426363,"server_id":18,"link":"photo_8276352.html","width":150,"caption":"","height":100});
															thumbnails[8276353] = clik.newPhoto({"id":8276353,"src":"ManCactusGar31_thumb.jpg","galleries_id":426363,"server_id":18,"link":"photo_8276353.html","width":150,"caption":"","height":143});
															thumbnails[8293094] = clik.newPhoto({"id":8293094,"src":"IMG_8077_thumb.jpg","galleries_id":426363,"server_id":18,"link":"photo_8293094.html","width":150,"caption":"","height":136});
															thumbnails[8691470] = clik.newPhoto({"id":8691470,"src":"City-Hall-bannister_thumb.jpg","galleries_id":458619,"server_id":18,"link":"photo_8691470.html","width":107,"caption":"City Hall bannister","height":150});
															thumbnails[8691474] = clik.newPhoto({"id":8691474,"src":"Danni-rules_thumb.jpg","galleries_id":458619,"server_id":18,"link":"photo_8691474.html","width":116,"caption":"Danni rules!","height":150});
															thumbnails[8691478] = clik.newPhoto({"id":8691478,"src":"Graffiti-Liz-2_thumb.jpg","galleries_id":458619,"server_id":18,"link":"photo_8691478.html","width":150,"caption":"Graffiti Liz (1)","height":99});
															thumbnails[8691481] = clik.newPhoto({"id":8691481,"src":"Graffiti-Liz.-1_thumb.jpg","galleries_id":458619,"server_id":18,"link":"photo_8691481.html","width":110,"caption":"Graffiti Liz (2)","height":150});
															thumbnails[8716063] = clik.newPhoto({"id":8716063,"src":"Burton-Bradstock-Cliffs_thumb.jpg","galleries_id":426364,"server_id":18,"link":"photo_8716063.html","width":150,"caption":"Burton Bradstock Cliffs","height":76});
															thumbnails[8716068] = clik.newPhoto({"id":8716068,"src":"Lupins_thumb.jpg","galleries_id":426364,"server_id":18,"link":"photo_8716068.html","width":150,"caption":"Lupins","height":105});
															thumbnails[8716090] = clik.newPhoto({"id":8716090,"src":"out-of-the-darkness_thumb.jpg","galleries_id":426364,"server_id":18,"link":"photo_8716090.html","width":150,"caption":"Out of the Darkness","height":120});
															thumbnails[8780807] = clik.newPhoto({"id":8780807,"src":"427cobra3_thumb.jpg","galleries_id":426370,"server_id":18,"link":"photo_8780807.html","width":150,"caption":"427 Cobra","height":106});
															thumbnails[8781261] = clik.newPhoto({"id":8781261,"src":"bleatarn2_thumb.jpg","galleries_id":426370,"server_id":18,"link":"photo_8781261.html","width":150,"caption":"Blea Tarn","height":103});
															thumbnails[8781263] = clik.newPhoto({"id":8781263,"src":"bleatarn22_thumb.jpg","galleries_id":426370,"server_id":18,"link":"photo_8781263.html","width":101,"caption":"Blea Tarn 2","height":150});
															thumbnails[8781271] = clik.newPhoto({"id":8781271,"src":"curbarview2_thumb.jpg","galleries_id":426370,"server_id":18,"link":"photo_8781271.html","width":150,"caption":"Curbar View","height":105});
															thumbnails[8781277] = clik.newPhoto({"id":8781277,"src":"dovercourtdawn1_thumb.jpg","galleries_id":426370,"server_id":18,"link":"photo_8781277.html","width":150,"caption":"Dovercourt Dawn","height":98});
															thumbnails[8781284] = clik.newPhoto({"id":8781284,"src":"firstlovelastlove1_thumb.jpg","galleries_id":426370,"server_id":18,"link":"photo_8781284.html","width":150,"caption":"First Love Last Love","height":100});
															thumbnails[8781290] = clik.newPhoto({"id":8781290,"src":"gerberapair2_thumb.jpg","galleries_id":426370,"server_id":18,"link":"photo_8781290.html","width":150,"caption":"Gerbera Pair","height":82});
															thumbnails[8781295] = clik.newPhoto({"id":8781295,"src":"holytrinity2_thumb.jpg","galleries_id":426370,"server_id":18,"link":"photo_8781295.html","width":150,"caption":"Holy Trinity","height":106});
															thumbnails[8781307] = clik.newPhoto({"id":8781307,"src":"lightandshade2_thumb.jpg","galleries_id":426370,"server_id":18,"link":"photo_8781307.html","width":106,"caption":"Light and Shade","height":150});
															thumbnails[8781342] = clik.newPhoto({"id":8781342,"src":"limelight2_thumb.jpg","galleries_id":426370,"server_id":18,"link":"photo_8781342.html","width":101,"caption":"Limelight","height":150});
															thumbnails[8781380] = clik.newPhoto({"id":8781380,"src":"oldbathingplace1_thumb.jpg","galleries_id":426370,"server_id":18,"link":"photo_8781380.html","width":150,"caption":"Old Bathing Place","height":106});
															thumbnails[8781382] = clik.newPhoto({"id":8781382,"src":"rememberingsomeone2_thumb.jpg","galleries_id":426370,"server_id":18,"link":"photo_8781382.html","width":101,"caption":"Rembering Someone","height":150});
															thumbnails[8781385] = clik.newPhoto({"id":8781385,"src":"shelflifetxt1_thumb.jpg","galleries_id":426370,"server_id":18,"link":"photo_8781385.html","width":150,"caption":"Shelf Life","height":100});
															thumbnails[8781389] = clik.newPhoto({"id":8781389,"src":"staithescropdesatvigfrm8002_thumb.jpg","galleries_id":426370,"server_id":18,"link":"photo_8781389.html","width":101,"caption":"Staithes","height":150});
															thumbnails[8781392] = clik.newPhoto({"id":8781392,"src":"stourwinterdawn2_thumb.jpg","galleries_id":426370,"server_id":18,"link":"photo_8781392.html","width":108,"caption":"Stour Winter Dawn","height":150});
															thumbnails[8781394] = clik.newPhoto({"id":8781394,"src":"whitescar800frmtxt1_thumb.jpg","galleries_id":426370,"server_id":18,"link":"photo_8781394.html","width":150,"caption":"Ingleborough from White Scar","height":105});
															thumbnails[7265887] = clik.newPhoto({"id":7265887,"src":"Dubai_by_night_thumb.jpg","galleries_id":393019,"server_id":18,"link":"photo_7265887.html","width":150,"caption":"Dubai by night","height":110});
															thumbnails[8726302] = clik.newPhoto({"id":8726302,"src":"Amidst_the_yellow_thumb.jpg","galleries_id":426359,"server_id":18,"link":"photo_8726302.html","width":150,"caption":"Amidst the yellow","height":100});
															thumbnails[8747971] = clik.newPhoto({"id":8747971,"src":"Red-Deer-Stag_FAEBC492-24E8-5EC4-4FE399C3E9F261BD_thumb.jpg","galleries_id":460830,"server_id":18,"link":"photo_8747971.html","width":150,"caption":"Autumn Antlers","height":97});
															thumbnails[9082573] = clik.newPhoto({"id":9082573,"src":"A_Wheelwright_edited-2_12CF8585-24E8-5EC4-4F69757A3A4EC499_thumb.jpg","galleries_id":426361,"server_id":18,"link":"photo_9082573.html","width":150,"caption":"The Wheelwright ","height":148});
															thumbnails[7265925] = clik.newPhoto({"id":7265925,"src":"Wash_Day_thumb.jpg","galleries_id":393019,"server_id":18,"link":"photo_7265925.html","width":150,"caption":"Wash Day","height":100});
															thumbnails[8726303] = clik.newPhoto({"id":8726303,"src":"Autumn_morning_thumb.jpg","galleries_id":426359,"server_id":18,"link":"photo_8726303.html","width":150,"caption":"Autumn morning","height":100});
															thumbnails[8747101] = clik.newPhoto({"id":8747101,"src":"Borley-Church_thumb.jpg","galleries_id":460830,"server_id":18,"link":"photo_8747101.html","width":150,"caption":"Borley Church","height":100});
															thumbnails[8747972] = clik.newPhoto({"id":8747972,"src":"Chalkhill-Blue_thumb.jpg","galleries_id":460830,"server_id":18,"link":"photo_8747972.html","width":150,"caption":"Blue Chalkhill","height":107});
															thumbnails[9082574] = clik.newPhoto({"id":9082574,"src":"Heather_edited-2_12CFFE0E-24E8-5EC4-4F409107EC5E5113_thumb.jpg","galleries_id":426361,"server_id":18,"link":"photo_9082574.html","width":150,"caption":"Heather","height":100});
															thumbnails[8726304] = clik.newPhoto({"id":8726304,"src":"Blue_shutters_thumb.jpg","galleries_id":426359,"server_id":18,"link":"photo_8726304.html","width":150,"caption":"Blue shutters","height":100});
															thumbnails[8747973] = clik.newPhoto({"id":8747973,"src":"Halfpenny-Pier_thumb.jpg","galleries_id":460830,"server_id":18,"link":"photo_8747973.html","width":150,"caption":"Halfpenny Pier","height":141});
															thumbnails[9082575] = clik.newPhoto({"id":9082575,"src":"Juvenile_Cormorant_12D0826D-24E8-5EC4-4F3620E1EE0F0373_thumb.jpg","galleries_id":426361,"server_id":18,"link":"photo_9082575.html","width":100,"caption":"Juvenile Cormorant","height":150});
															thumbnails[8726305] = clik.newPhoto({"id":8726305,"src":"Contrast_thumb.jpg","galleries_id":426359,"server_id":18,"link":"photo_8726305.html","width":150,"caption":"Contrast","height":100});
															thumbnails[8747102] = clik.newPhoto({"id":8747102,"src":"ChalkhillBlue_thumb.jpg","galleries_id":460830,"server_id":18,"link":"photo_8747102.html","width":150,"caption":"Chalkhill Blue","height":102});
															thumbnails[8747974] = clik.newPhoto({"id":8747974,"src":"Harwich-Sunrise_thumb.jpg","galleries_id":460830,"server_id":18,"link":"photo_8747974.html","width":150,"caption":"Harwich Sunrise","height":102});
															thumbnails[9082576] = clik.newPhoto({"id":9082576,"src":"Meadow_Brown_Butterfly_card-1_edited-1_12D130E3-24E8-5EC4-4F36197717B6728A_thumb.jpg","galleries_id":426361,"server_id":18,"link":"photo_9082576.html","width":101,"caption":"Meadow Brown Butterfly","height":150});
															thumbnails[8726306] = clik.newPhoto({"id":8726306,"src":"Gray_Wagtail_thumb.jpg","galleries_id":426359,"server_id":18,"link":"photo_8726306.html","width":150,"caption":"Gray Wagtail","height":100});
															thumbnails[8747975] = clik.newPhoto({"id":8747975,"src":"Hover-Fly_thumb.jpg","galleries_id":460830,"server_id":18,"link":"photo_8747975.html","width":150,"caption":"Hover Fly","height":116});
															thumbnails[9082577] = clik.newPhoto({"id":9082577,"src":"ST_Michaels_Mount_3_edited-1_12D1C1A0-24E8-5EC4-4F5E6844271FB735_thumb.jpg","galleries_id":426361,"server_id":18,"link":"photo_9082577.html","width":150,"caption":"St Michaels Mount","height":68});
															thumbnails[8726307] = clik.newPhoto({"id":8726307,"src":"Mist_on_the_river_Brett_thumb.jpg","galleries_id":426359,"server_id":18,"link":"photo_8726307.html","width":150,"caption":"Mist on the river Brett","height":100});
															thumbnails[8747976] = clik.newPhoto({"id":8747976,"src":"Misty-Avenue_thumb.jpg","galleries_id":460830,"server_id":18,"link":"photo_8747976.html","width":150,"caption":"Misty Avenue","height":100});
															thumbnails[9082578] = clik.newPhoto({"id":9082578,"src":"Sydney_Opera_House_12D27D1D-24E8-5EC4-4FA227C813C613F1_thumb.jpg","galleries_id":426361,"server_id":18,"link":"photo_9082578.html","width":150,"caption":"Sydney Opera House","height":100});
															thumbnails[8726310] = clik.newPhoto({"id":8726310,"src":"Morning_at_the_mill_pond_thumb.jpg","galleries_id":426359,"server_id":18,"link":"photo_8726310.html","width":150,"caption":"Morning at the mill pond","height":100});
															thumbnails[8747977] = clik.newPhoto({"id":8747977,"src":"Red-Deer-Stag_thumb.jpg","galleries_id":460830,"server_id":18,"link":"photo_8747977.html","width":150,"caption":"Red Deer-Stag","height":97});
															thumbnails[9082579] = clik.newPhoto({"id":9082579,"src":"The_coil_12D2D96C-24E8-5EC4-4FF39EB4C43FBBF5_thumb.jpg","galleries_id":426361,"server_id":18,"link":"photo_9082579.html","width":100,"caption":"The coil","height":150});
															thumbnails[8726314] = clik.newPhoto({"id":8726314,"src":"Stag_Beetle_or_Lucanus_cervus_thumb.jpg","galleries_id":426359,"server_id":18,"link":"photo_8726314.html","width":150,"caption":"Stag Beetle or Lucanus cervus","height":100});
															thumbnails[8726315] = clik.newPhoto({"id":8726315,"src":"Stepping_out_thumb.jpg","galleries_id":426359,"server_id":18,"link":"photo_8726315.html","width":150,"caption":"Stepping out","height":100});
															thumbnails[8726317] = clik.newPhoto({"id":8726317,"src":"The_old_Custom_House_thumb.jpg","galleries_id":426359,"server_id":18,"link":"photo_8726317.html","width":150,"caption":"The old Custom House","height":100});
															thumbnails[8747978] = clik.newPhoto({"id":8747978,"src":"Silky-Sea_thumb.jpg","galleries_id":460830,"server_id":18,"link":"photo_8747978.html","width":150,"caption":"Silky Sea","height":100});
															thumbnails[9082580] = clik.newPhoto({"id":9082580,"src":"Two_poppies_against_the_sky_edited-1_12D3ABD5-24E8-5EC4-4F6442F52D1294F1_thumb.jpg","galleries_id":426361,"server_id":18,"link":"photo_9082580.html","width":150,"caption":"Two poppies against the sky","height":106});
															thumbnails[8726312] = clik.newPhoto({"id":8726312,"src":"RGB_thumb.jpg","galleries_id":426359,"server_id":18,"link":"photo_8726312.html","width":100,"caption":"RGB","height":150});
															thumbnails[8747979] = clik.newPhoto({"id":8747979,"src":"Small-White_thumb.jpg","galleries_id":460830,"server_id":18,"link":"photo_8747979.html","width":150,"caption":"Small White","height":105});
															thumbnails[9082581] = clik.newPhoto({"id":9082581,"src":"Wild_poppies_edited-1_12D47A4D-24E8-5EC4-4FAECA525212E8F0_thumb.jpg","galleries_id":426361,"server_id":18,"link":"photo_9082581.html","width":150,"caption":"Wild poppies","height":100});
															thumbnails[7265930] = clik.newPhoto({"id":7265930,"src":"Yes-he-did-2_thumb.jpg","galleries_id":393019,"server_id":18,"link":"photo_7265930.html","width":122,"caption":"Yes he did","height":150});
															thumbnails[7265871] = clik.newPhoto({"id":7265871,"src":"Brunei-Mosque_thumb.jpg","galleries_id":393019,"server_id":18,"link":"photo_7265871.html","width":100,"caption":"Brunei Mosque","height":150});
															thumbnails[8726313] = clik.newPhoto({"id":8726313,"src":"Shadows_thumb.jpg","galleries_id":426359,"server_id":18,"link":"photo_8726313.html","width":100,"caption":"Shadows","height":150});
															thumbnails[8747980] = clik.newPhoto({"id":8747980,"src":"Southwold-Beach-Huts_thumb.jpg","galleries_id":460830,"server_id":18,"link":"photo_8747980.html","width":150,"caption":"Southwold Beach-Huts","height":103});
															thumbnails[7265916] = clik.newPhoto({"id":7265916,"src":"St-Marys-Light_thumb.jpg","galleries_id":393019,"server_id":18,"link":"photo_7265916.html","width":100,"caption":"St Mary`s Light","height":150});
															thumbnails[8747103] = clik.newPhoto({"id":8747103,"src":"Small-Tortoiseshell_thumb.jpg","galleries_id":460830,"server_id":18,"link":"photo_8747103.html","width":120,"caption":"Small Tortoiseshell","height":150});
															thumbnails[8747981] = clik.newPhoto({"id":8747981,"src":"Young-Starling_thumb.jpg","galleries_id":460830,"server_id":18,"link":"photo_8747981.html","width":150,"caption":"Young Starling","height":126});
															thumbnails[8726316] = clik.newPhoto({"id":8726316,"src":"Take_off_thumb.jpg","galleries_id":426359,"server_id":18,"link":"photo_8726316.html","width":150,"caption":"Take off!","height":61});
															thumbnails[8726318] = clik.newPhoto({"id":8726318,"src":"The_pathway_thumb.jpg","galleries_id":426359,"server_id":18,"link":"photo_8726318.html","width":150,"caption":"The pathway","height":65});
															thumbnails[8726311] = clik.newPhoto({"id":8726311,"src":"Rain_droplets_thumb.jpg","galleries_id":426359,"server_id":18,"link":"photo_8726311.html","width":150,"caption":"Rain droplets","height":76});
															thumbnails[8105731] = clik.newPhoto({"id":8105731,"src":"Curves-around-the-date_thumb.jpg","galleries_id":433947,"server_id":18,"link":"photo_8105731.html","width":150,"caption":"Curves around the date","height":100});
															thumbnails[8269689] = clik.newPhoto({"id":8269689,"src":"Bury-St-Edmunds-Cathedral_thumb.jpg","galleries_id":439398,"server_id":18,"link":"photo_8269689.html","width":100,"caption":"Bury St Edmunds Cathedral","height":150});
															thumbnails[8292930] = clik.newPhoto({"id":8292930,"src":"IMG_8301_thumb.jpg","galleries_id":439398,"server_id":18,"link":"photo_8292930.html","width":150,"caption":"Reflection","height":107});
															thumbnails[8292968] = clik.newPhoto({"id":8292968,"src":"IMG_83192_thumb.jpg","galleries_id":439398,"server_id":18,"link":"photo_8292968.html","width":150,"caption":"Cathedral and Ruins","height":107});
															thumbnails[8292975] = clik.newPhoto({"id":8292975,"src":"IMG_8339_thumb.jpg","galleries_id":439398,"server_id":18,"link":"photo_8292975.html","width":150,"caption":"Abbey Garden Tree","height":100});
															thumbnails[8292981] = clik.newPhoto({"id":8292981,"src":"IMG_8343_thumb.jpg","galleries_id":439398,"server_id":18,"link":"photo_8292981.html","width":150,"caption":"Tree Bark","height":98});
															thumbnails[8293015] = clik.newPhoto({"id":8293015,"src":"2197forweb_thumb.jpg","galleries_id":439398,"server_id":18,"link":"photo_8293015.html","width":150,"caption":"Gardener's Gloves","height":100});
															thumbnails[8293017] = clik.newPhoto({"id":8293017,"src":"2211forweb_thumb.jpg","galleries_id":439398,"server_id":18,"link":"photo_8293017.html","width":139,"caption":"What do you think?","height":150});
															thumbnails[8293020] = clik.newPhoto({"id":8293020,"src":"2212forweb_thumb.jpg","galleries_id":439398,"server_id":18,"link":"photo_8293020.html","width":150,"caption":"And another view","height":94});
															thumbnails[8293033] = clik.newPhoto({"id":8293033,"src":"2217forweb_thumb.jpg","galleries_id":439398,"server_id":18,"link":"photo_8293033.html","width":150,"caption":"White Rose","height":118});
															thumbnails[8293039] = clik.newPhoto({"id":8293039,"src":"2219forweb_thumb.jpg","galleries_id":439398,"server_id":18,"link":"photo_8293039.html","width":150,"caption":"Butterfly and Lavender","height":96});
															thumbnails[8293059] = clik.newPhoto({"id":8293059,"src":"0028-2011-08-03-Bury-St-Edmunds-Abbeyl-Gardens--img-1368-cr2_thumb.jpg","galleries_id":439398,"server_id":18,"link":"photo_8293059.html","width":100,"caption":"Twin Birches","height":150});
															thumbnails[8293063] = clik.newPhoto({"id":8293063,"src":"0031-2011-08-03-Bury-St-Edmunds-Abbeyl-Gardens--img-1374-cr2_thumb.jpg","galleries_id":439398,"server_id":18,"link":"photo_8293063.html","width":150,"caption":"Blanket Weed","height":100});
															thumbnails[8446071] = clik.newPhoto({"id":8446071,"src":"Sir-Bobby-Robson-Bridge_thumb.jpg","galleries_id":447053,"server_id":18,"link":"photo_8446071.html","width":150,"caption":"Sir Bobby Robson bridge","height":100});
															thumbnails[8446299] = clik.newPhoto({"id":8446299,"src":"The-Manor_thumb.jpg","galleries_id":447079,"server_id":18,"link":"photo_8446299.html","width":150,"caption":"The Manor","height":100});
															thumbnails[8500305] = clik.newPhoto({"id":8500305,"src":"Andy_1_thumb.jpg","galleries_id":447053,"server_id":18,"link":"photo_8500305.html","width":150,"caption":"Lymington Marina","height":92});
															thumbnails[8500324] = clik.newPhoto({"id":8500324,"src":"Andy_2_thumb.jpg","galleries_id":447053,"server_id":18,"link":"photo_8500324.html","width":150,"caption":"Pylon","height":100});
															thumbnails[8500333] = clik.newPhoto({"id":8500333,"src":"Andy_31_thumb.jpg","galleries_id":447053,"server_id":18,"link":"photo_8500333.html","width":150,"caption":"","height":117});
															thumbnails[8500365] = clik.newPhoto({"id":8500365,"src":"Andy_4_thumb.jpg","galleries_id":447053,"server_id":18,"link":"photo_8500365.html","width":150,"caption":"","height":100});
															thumbnails[8500369] = clik.newPhoto({"id":8500369,"src":"Andy_5_thumb.jpg","galleries_id":447053,"server_id":18,"link":"photo_8500369.html","width":150,"caption":"","height":150});
															thumbnails[8500373] = clik.newPhoto({"id":8500373,"src":"Door-knocker_Rosey_thumb.jpg","galleries_id":447079,"server_id":18,"link":"photo_8500373.html","width":150,"caption":"Door Knocker","height":100});
															thumbnails[8500382] = clik.newPhoto({"id":8500382,"src":"In_need_of_some_TLC_Rosey_thumb.jpg","galleries_id":447079,"server_id":18,"link":"photo_8500382.html","width":100,"caption":"In Need of Some TLC","height":150});
															thumbnails[8500393] = clik.newPhoto({"id":8500393,"src":"Copy_1_of__DSC4140mod1a6_proj_1_thumb.jpg","galleries_id":447053,"server_id":18,"link":"photo_8500393.html","width":125,"caption":"","height":150});
															thumbnails[8500409] = clik.newPhoto({"id":8500409,"src":"Door_adornments_Laurence_thumb.jpg","galleries_id":447079,"server_id":18,"link":"photo_8500409.html","width":150,"caption":"Door Adornments","height":100});
															thumbnails[8500919] = clik.newPhoto({"id":8500919,"src":"IMG_5372b1_thumb.jpg","galleries_id":447053,"server_id":18,"link":"photo_8500919.html","width":150,"caption":"Glasgow Bridge","height":109});
															thumbnails[8501190] = clik.newPhoto({"id":8501190,"src":"0009---2011-09-07----Lavenham-Water-Street--1442-CR-2_thumb.jpg","galleries_id":447079,"server_id":18,"link":"photo_8501190.html","width":150,"caption":"Lavenham Water Street","height":92});
															thumbnails[8579124] = clik.newPhoto({"id":8579124,"src":"Eyewash_available_thumb.JPG","galleries_id":453589,"server_id":18,"link":"photo_8579124.html","width":150,"caption":"Eyewash available!","height":95});
															thumbnails[8590108] = clik.newPhoto({"id":8590108,"src":"0011aa--2011-10-05--Long-Melford-IMG-2072-CR-2_thumb.jpg","galleries_id":453589,"server_id":18,"link":"photo_8590108.html","width":150,"caption":"The Church","height":100});
															thumbnails[8590804] = clik.newPhoto({"id":8590804,"src":"0020aa--2011-10-05--Long-Melford-IMG-2095-CR-2_thumb.jpg","galleries_id":453589,"server_id":18,"link":"photo_8590804.html","width":150,"caption":"Church Flintwork","height":73});
															thumbnails[8590812] = clik.newPhoto({"id":8590812,"src":"0039aa--2011-10-05--Long-Melford-IMG-2128-CR-2_thumb.jpg","galleries_id":453589,"server_id":18,"link":"photo_8590812.html","width":150,"caption":"Red box, red car and rectangles","height":100});
															thumbnails[8590829] = clik.newPhoto({"id":8590829,"src":"Open_for_postal_services_L_thumb.JPG","galleries_id":453589,"server_id":18,"link":"photo_8590829.html","width":120,"caption":"Open for Postal Services","height":150});
															thumbnails[8590836] = clik.newPhoto({"id":8590836,"src":"Rectangles_L_thumb.JPG","galleries_id":453589,"server_id":18,"link":"photo_8590836.html","width":150,"caption":"Rectangles","height":105});
															thumbnails[8590841] = clik.newPhoto({"id":8590841,"src":"The_Lord_and_the_Red_rose_L_thumb.JPG","galleries_id":453589,"server_id":18,"link":"photo_8590841.html","width":150,"caption":"The Lord and the Red Rose","height":100});
															thumbnails[8656815] = clik.newPhoto({"id":8656815,"src":"Graffiti_thumb.jpg","galleries_id":457155,"server_id":18,"link":"photo_8656815.html","width":150,"caption":"Graffiti","height":100});
															thumbnails[8680884] = clik.newPhoto({"id":8680884,"src":"David_Winstanley_thumb.jpg","galleries_id":457155,"server_id":18,"link":"photo_8680884.html","width":150,"caption":"Neptune","height":100});
															thumbnails[8680892] = clik.newPhoto({"id":8680892,"src":"David_Winstanley3_thumb.jpg","galleries_id":457155,"server_id":18,"link":"photo_8680892.html","width":92,"caption":"No Longer Used","height":150});
															thumbnails[8680898] = clik.newPhoto({"id":8680898,"src":"David_Winstanley5_thumb.jpg","galleries_id":457155,"server_id":18,"link":"photo_8680898.html","width":150,"caption":"For Sale","height":122});
															thumbnails[8680908] = clik.newPhoto({"id":8680908,"src":"Fishes-on-the-wall_Rodney_Watts_thumb.jpg","galleries_id":457155,"server_id":18,"link":"photo_8680908.html","width":150,"caption":"Fishes on the Wall","height":113});
															thumbnails[8680921] = clik.newPhoto({"id":8680921,"src":"Pattern_Rodney_Watts_thumb.jpg","galleries_id":457155,"server_id":18,"link":"photo_8680921.html","width":113,"caption":"Pattern","height":150});
															thumbnails[8680925] = clik.newPhoto({"id":8680925,"src":"Rippling-Water_thumb.jpg","galleries_id":457155,"server_id":18,"link":"photo_8680925.html","width":150,"caption":"Rippling Water","height":113});
															thumbnails[8680930] = clik.newPhoto({"id":8680930,"src":"Decay-Laurence_thumb.jpg","galleries_id":457155,"server_id":18,"link":"photo_8680930.html","width":100,"caption":"Decay","height":150});
															thumbnails[8680934] = clik.newPhoto({"id":8680934,"src":"The-Chain-Laurence_thumb.jpg","galleries_id":457155,"server_id":18,"link":"photo_8680934.html","width":107,"caption":"The Chain","height":150});
															thumbnails[8680973] = clik.newPhoto({"id":8680973,"src":"Bobby-Robson-Bridge_thumb.jpg","galleries_id":457155,"server_id":18,"link":"photo_8680973.html","width":85,"caption":"Bobby Robson Bridge","height":150});
															thumbnails[8680976] = clik.newPhoto({"id":8680976,"src":"Old-and-new_thumb.jpg","galleries_id":457155,"server_id":18,"link":"photo_8680976.html","width":100,"caption":"Old and New","height":150});
															thumbnails[8680978] = clik.newPhoto({"id":8680978,"src":"Reflection_thumb.jpg","galleries_id":457155,"server_id":18,"link":"photo_8680978.html","width":150,"caption":"Upside Down Flats","height":100});
															thumbnails[8710590] = clik.newPhoto({"id":8710590,"src":"Autumn_Light_thumb.jpg","galleries_id":459408,"server_id":18,"link":"photo_8710590.html","width":150,"caption":"Shafts of light","height":100});
															thumbnails[8715668] = clik.newPhoto({"id":8715668,"src":"Carpet_of_leaves_Laurence_thumb.jpg","galleries_id":459408,"server_id":18,"link":"photo_8715668.html","width":150,"caption":"Carpet of Leaves","height":100});
															thumbnails[8715695] = clik.newPhoto({"id":8715695,"src":"A_seat_in_Autumn__Rosey_thumb.jpg","galleries_id":459408,"server_id":18,"link":"photo_8715695.html","width":150,"caption":"Autumn Seat","height":100});
															thumbnails[8715696] = clik.newPhoto({"id":8715696,"src":"Autumn_colours_Rosey_thumb.jpg","galleries_id":459408,"server_id":18,"link":"photo_8715696.html","width":150,"caption":"Autumn Colours","height":101});
															thumbnails[8715699] = clik.newPhoto({"id":8715699,"src":"Autumn_Chesnut_leaves_thumb.jpg","galleries_id":459408,"server_id":18,"link":"photo_8715699.html","width":150,"caption":"Chestnut Leaves","height":100});
															thumbnails[8715916] = clik.newPhoto({"id":8715916,"src":"Christchurch-Tree_thumb.jpg","galleries_id":459408,"server_id":18,"link":"photo_8715916.html","width":150,"caption":"Christchurch Park Tree","height":100});
															thumbnails[8715918] = clik.newPhoto({"id":8715918,"src":"Soaring-upwards_thumb.jpg","galleries_id":459408,"server_id":18,"link":"photo_8715918.html","width":150,"caption":"Soaring Upwards","height":100});
															thumbnails[8715922] = clik.newPhoto({"id":8715922,"src":"Oak-leaves_thumb.jpg","galleries_id":459408,"server_id":18,"link":"photo_8715922.html","width":150,"caption":"Oak Leaves","height":100});
															thumbnails[8715978] = clik.newPhoto({"id":8715978,"src":"Chains_thumb.jpg","galleries_id":457155,"server_id":18,"link":"photo_8715978.html","width":150,"caption":"Chains","height":100});
															thumbnails[8716022] = clik.newPhoto({"id":8716022,"src":"Hoardings_thumb.jpg","galleries_id":457155,"server_id":18,"link":"photo_8716022.html","width":150,"caption":"Hoardings","height":100});
															thumbnails[8105686] = clik.newPhoto({"id":8105686,"src":"Curves-on-bindweed_thumb.jpg","galleries_id":433947,"server_id":18,"link":"photo_8105686.html","width":150,"caption":"Curves on bindweed","height":150});
															thumbnails[8117058] = clik.newPhoto({"id":8117058,"src":"IMG_1267_Jane_thumb.JPG","galleries_id":433947,"server_id":18,"link":"photo_8117058.html","width":150,"caption":"IMG 1267 Jane","height":100});
															thumbnails[8255460] = clik.newPhoto({"id":8255460,"src":"A-zoom-of-Bury-cathedral_thumb.jpg","galleries_id":439398,"server_id":18,"link":"photo_8255460.html","width":150,"caption":"Zoom Burst of Bury cathedral","height":100});
															thumbnails[8288050] = clik.newPhoto({"id":8288050,"src":"CC-Web-1_thumb.jpg","galleries_id":439398,"server_id":18,"link":"photo_8288050.html","width":150,"caption":"Abbey through ruins","height":100});
															thumbnails[8105687] = clik.newPhoto({"id":8105687,"src":"Curves_thumb.jpg","galleries_id":433947,"server_id":18,"link":"photo_8105687.html","width":150,"caption":"Poppy Curves","height":81});
															thumbnails[8117059] = clik.newPhoto({"id":8117059,"src":"IMG_1270_Jane_thumb.JPG","galleries_id":433947,"server_id":18,"link":"photo_8117059.html","width":150,"caption":"IMG 1270 Jane","height":107});
															thumbnails[8255461] = clik.newPhoto({"id":8255461,"src":"Bark-patterns_thumb.jpg","galleries_id":439398,"server_id":18,"link":"photo_8255461.html","width":100,"caption":"Bark patterns","height":150});
															thumbnails[8105688] = clik.newPhoto({"id":8105688,"src":"IMG_8172_thumb.jpg","galleries_id":433947,"server_id":18,"link":"photo_8105688.html","width":150,"caption":"Organ pipes","height":99});
															thumbnails[8255462] = clik.newPhoto({"id":8255462,"src":"Holly-Blue-Celastrina-argi_thumb.jpg","galleries_id":439398,"server_id":18,"link":"photo_8255462.html","width":100,"caption":"Holly Blue","height":150});
															thumbnails[8288051] = clik.newPhoto({"id":8288051,"src":"CC-Web-3_thumb.jpg","galleries_id":439398,"server_id":18,"link":"photo_8288051.html","width":100,"caption":"In Bury gardens","height":150});
															thumbnails[8255477] = clik.newPhoto({"id":8255477,"src":"Passion-flower_thumb.jpg","galleries_id":439398,"server_id":18,"link":"photo_8255477.html","width":150,"caption":"Passion flower","height":150});
															thumbnails[8288052] = clik.newPhoto({"id":8288052,"src":"CC-web-4_thumb.jpg","galleries_id":439398,"server_id":18,"link":"photo_8288052.html","width":150,"caption":"Bury Abbey ruins","height":100});
															thumbnails[8501194] = clik.newPhoto({"id":8501194,"src":"0023---2011-09-07----Lavenham-doorway--1468-CR-2_thumb.jpg","galleries_id":447079,"server_id":18,"link":"photo_8501194.html","width":100,"caption":"Doorway","height":150});
															thumbnails[8590824] = clik.newPhoto({"id":8590824,"src":"Victorian-Post-Box_thumb.jpg","galleries_id":453589,"server_id":18,"link":"photo_8590824.html","width":100,"caption":"Victorian Postbox","height":150});
															thumbnails[8715767] = clik.newPhoto({"id":8715767,"src":"Trunks-and-shadows_thumb.jpg","galleries_id":459408,"server_id":18,"link":"photo_8715767.html","width":89,"caption":"Shadows and Trunks","height":150});
															thumbnails[8715925] = clik.newPhoto({"id":8715925,"src":"Cogs_thumb.jpg","galleries_id":457155,"server_id":18,"link":"photo_8715925.html","width":100,"caption":"Cogs","height":150});
															thumbnails[8501192] = clik.newPhoto({"id":8501192,"src":"0015b---2011-09-07----Lavenham-Angel-Window---1463-CR-2_thumb.jpg","galleries_id":447079,"server_id":18,"link":"photo_8501192.html","width":95,"caption":"Angel Window","height":150});
															thumbnails[8590821] = clik.newPhoto({"id":8590821,"src":"Autumn-Shades_thumb.jpg","galleries_id":453589,"server_id":18,"link":"photo_8590821.html","width":100,"caption":"Autumn Shades","height":150});
															thumbnails[8715728] = clik.newPhoto({"id":8715728,"src":"Red-Leaves_thumb.jpg","galleries_id":459408,"server_id":18,"link":"photo_8715728.html","width":110,"caption":"Red Leaves","height":150});
															thumbnails[8590814] = clik.newPhoto({"id":8590814,"src":"Autumn-Leaves-on-Wood_thumb.jpg","galleries_id":453589,"server_id":18,"link":"photo_8590814.html","width":100,"caption":"Autumn Leaves on Wood","height":150});
															thumbnails[8715694] = clik.newPhoto({"id":8715694,"src":"Gone_for_a_coffee_Laurence_thumb.jpg","galleries_id":459408,"server_id":18,"link":"photo_8715694.html","width":100,"caption":"Gone for Coffee","height":150});
															thumbnails[8715693] = clik.newPhoto({"id":8715693,"src":"Clapsed_Hands_Laurence_thumb.jpg","galleries_id":459408,"server_id":18,"link":"photo_8715693.html","width":100,"caption":"Clasped Hands","height":150});
															thumbnails[8717828] = clik.newPhoto({"id":8717828,"src":"Norwich-cathedral_thumb.jpg","galleries_id":447053,"server_id":18,"link":"photo_8717828.html","width":100,"caption":"Norwich Cathedral","height":150});
															thumbnails[8500902] = clik.newPhoto({"id":8500902,"src":"IMG_0253aa_thumb.jpg","galleries_id":447053,"server_id":18,"link":"photo_8500902.html","width":68,"caption":"Ely Cathedral","height":150});
															thumbnails[8807340] = clik.newPhoto({"id":8807340,"src":"Bleak-mid-winter-by-David-W_thumb.jpg","galleries_id":463664,"server_id":18,"link":"photo_8807340.html","width":150,"caption":"Bleak mid winter","height":104});
															thumbnails[8817582] = clik.newPhoto({"id":8817582,"src":"AlgarvianMansmall_thumb.jpg","galleries_id":463664,"server_id":18,"link":"photo_8817582.html","width":150,"caption":"Algarvian Man","height":101});
															thumbnails[9086339] = clik.newPhoto({"id":9086339,"src":"sallybcompsmall_1_thumb.jpg","galleries_id":458923,"server_id":37,"link":"photo_9086339.html","width":150,"caption":"Sally B","height":100});
															thumbnails[8698542] = clik.newPhoto({"id":8698542,"src":"Lone_Photographer_Paul_thumb.jpg","galleries_id":458923,"server_id":18,"link":"photo_8698542.html","width":150,"caption":"Lone Photographer","height":113});
															thumbnails[9064665] = clik.newPhoto({"id":9064665,"src":"Heather_410A79DA-1EC9-D45B-1CEDDA5BF3F756C2_thumb.jpg","galleries_id":478007,"server_id":18,"link":"photo_9064665.html","width":150,"caption":"Heather","height":100});
															thumbnails[9064805] = clik.newPhoto({"id":9064805,"src":"Fire_in_the_Sky_41EFFA67-1EC9-D45B-1C30751AF9F797B8_thumb.jpg","galleries_id":478007,"server_id":18,"link":"photo_9064805.html","width":150,"caption":"Fire in the Sky","height":75});
															thumbnails[9070302] = clik.newPhoto({"id":9070302,"src":"RainStopsPlaysmall_9602949E-1EC9-D45B-1C1682900DE776EB_thumb.jpg","galleries_id":478007,"server_id":18,"link":"photo_9070302.html","width":150,"caption":"Rain Stops Play","height":120});
															thumbnails[9081479] = clik.newPhoto({"id":9081479,"src":"Cool_Cloisters_09680D79-1EC9-D45B-1C9CD0FFFCED00AD_thumb.jpg","galleries_id":463664,"server_id":18,"link":"photo_9081479.html","width":123,"caption":"Cool Cloisters","height":150});
															thumbnails[9081933] = clik.newPhoto({"id":9081933,"src":"goldenglow8007_0BBC34E7-24E8-5EC4-4F02BF048CE573CB_thumb.jpg","galleries_id":478007,"server_id":18,"link":"photo_9081933.html","width":150,"caption":"Golden Glow","height":107});
															thumbnails[8698561] = clik.newPhoto({"id":8698561,"src":"Shutters_Ann_thumb.jpg","galleries_id":458923,"server_id":18,"link":"photo_8698561.html","width":150,"caption":"Shutters","height":102});
															thumbnails[8807319] = clik.newPhoto({"id":8807319,"src":"Martha-May-feb2011-144_thumb.jpg","galleries_id":463664,"server_id":18,"link":"photo_8807319.html","width":150,"caption":"Martha","height":100});
															thumbnails[9064666] = clik.newPhoto({"id":9064666,"src":"Meadow_Brown_Butterfly_410B4B80-1EC9-D45B-1C5492788EA5835F_thumb.jpg","galleries_id":478007,"server_id":18,"link":"photo_9064666.html","width":101,"caption":"Meadow Brown Butterfly","height":150});
															thumbnails[9064806] = clik.newPhoto({"id":9064806,"src":"LargeWhite_41F04D56-1EC9-D45B-1C9984B9EACCCB6E_thumb.jpg","galleries_id":478007,"server_id":18,"link":"photo_9064806.html","width":114,"caption":"LargeWhite","height":150});
															thumbnails[9070303] = clik.newPhoto({"id":9070303,"src":"ReflectionsOfAChildhoodPastimesmall_960301B8-1EC9-D45B-1C7B0ABFB64F4147_thumb.jpg","galleries_id":478007,"server_id":18,"link":"photo_9070303.html","width":150,"caption":"Reflections Of A Childhood Pastime","height":100});
															thumbnails[9081480] = clik.newPhoto({"id":9081480,"src":"Garlic_Allium_Sativum_09689FB8-1EC9-D45B-1CA4B82E43A8C151_thumb.jpg","galleries_id":463664,"server_id":18,"link":"photo_9081480.html","width":150,"caption":"Garlic (Allium Sativum)","height":107});
															thumbnails[9081935] = clik.newPhoto({"id":9081935,"src":"the20golden20hour3_0BBCC0D9-24E8-5EC4-4F577AEC70B8A7AC_thumb.jpg","galleries_id":478007,"server_id":18,"link":"photo_9081935.html","width":150,"caption":"The Golden Hour","height":108});
															thumbnails[8703604] = clik.newPhoto({"id":8703604,"src":"Beeston-Regis-for-Comp-winn_thumb.jpg","galleries_id":458923,"server_id":18,"link":"photo_8703604.html","width":150,"caption":"Beeston Regis","height":97});
															thumbnails[8807320] = clik.newPhoto({"id":8807320,"src":"Silky-Sea_94AEE007-1EC9-DFB6-091B13E399D40ED6_thumb.jpg","galleries_id":463664,"server_id":18,"link":"photo_8807320.html","width":150,"caption":"Silky Sea","height":100});
															thumbnails[9064807] = clik.newPhoto({"id":9064807,"src":"SilkySea_41F0F7F0-1EC9-D45B-1C00F29B66497EE0_thumb.jpg","galleries_id":478007,"server_id":18,"link":"photo_9064807.html","width":150,"caption":"Silky Sea","height":75});
															thumbnails[9070304] = clik.newPhoto({"id":9070304,"src":"StormyStoursmall_9603A567-1EC9-D45B-1C9A6B779A02066D_thumb.jpg","galleries_id":478007,"server_id":18,"link":"photo_9070304.html","width":150,"caption":"Stormy Stour","height":100});
															thumbnails[9081481] = clik.newPhoto({"id":9081481,"src":"I_know_you_are_there_09694EC8-1EC9-D45B-1CDD8CFA5399765E_thumb.jpg","galleries_id":463664,"server_id":18,"link":"photo_9081481.html","width":116,"caption":"I know you are there","height":150});
															thumbnails[8698549] = clik.newPhoto({"id":8698549,"src":"Mist_morning_walk_Marcia_thumb.jpg","galleries_id":458923,"server_id":18,"link":"photo_8698549.html","width":150,"caption":"Mist Morning Walk","height":102});
															thumbnails[8807321] = clik.newPhoto({"id":8807321,"src":"Stranded-by-David-Winstanle_thumb.jpg","galleries_id":463664,"server_id":18,"link":"photo_8807321.html","width":150,"caption":"Stranded","height":96});
															thumbnails[9070305] = clik.newPhoto({"id":9070305,"src":"innocent-alice-copy_9604546A-1EC9-D45B-1CDB32567D379269_thumb.jpg","galleries_id":478007,"server_id":18,"link":"photo_9070305.html","width":93,"caption":"Innocent Alice","height":150});
															thumbnails[9081485] = clik.newPhoto({"id":9081485,"src":"The_Arc_097294CF-1EC9-D45B-1C5EA420922606D3_thumb.jpg","galleries_id":478007,"server_id":18,"link":"photo_9081485.html","width":150,"caption":"The Arc","height":106});
															thumbnails[8698487] = clik.newPhoto({"id":8698487,"src":"Derwent_Calm_Tony_thumb.jpg","galleries_id":458923,"server_id":18,"link":"photo_8698487.html","width":150,"caption":"Derwent Calm","height":109});
															thumbnails[9070306] = clik.newPhoto({"id":9070306,"src":"k_rose_final_4_9604D8F0-1EC9-D45B-1CC77176884A4AFB_thumb.jpg","galleries_id":478007,"server_id":18,"link":"photo_9070306.html","width":150,"caption":"Pretty in Pink","height":100});
															thumbnails[8698556] = clik.newPhoto({"id":8698556,"src":"Musical_litter_bin_Laurence_thumb.jpg","galleries_id":458923,"server_id":18,"link":"photo_8698556.html","width":100,"caption":"Musical Litter Bin","height":150});
															thumbnails[8698728] = clik.newPhoto({"id":8698728,"src":"Cool-Cloisters_1_thumb.jpg","galleries_id":458923,"server_id":18,"link":"photo_8698728.html","width":124,"caption":"Cool Cloisters","height":150});
															thumbnails[8741214] = clik.newPhoto({"id":8741214,"src":"i---X-Man---TG_thumb.jpg","galleries_id":458923,"server_id":18,"link":"photo_8741214.html","width":150,"caption":"X-Man","height":108});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[426365] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Andy Bowes","link":"gallery_426365.html","maxRecords":0.0,"photoIDs":[7914952.0,7914954.0],"skipIndex":0,"section_code":"gallery","featured_images":"7914954,7914952","id":426365,"singleSection":false});				  						galleries[426363] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Ann Homan","link":"gallery_426363.html","maxRecords":0.0,"photoIDs":[7905630.0,7905636.0,7905640.0,8276345.0,8276349.0,8276352.0,8276353.0,8293094.0],"skipIndex":0,"section_code":"gallery","featured_images":"8293094,8276353,8276352,8276349,8276345,7905640,7905636,7905630","id":426363,"singleSection":false});				  						galleries[458619] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Claire Steele","link":"gallery_458619.html","maxRecords":0.0,"photoIDs":[8691470.0,8691474.0,8691478.0,8691481.0],"skipIndex":0,"section_code":"gallery","featured_images":"8691481,8691478,8691474,8691470","id":458619,"singleSection":false});				  						galleries[447053] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Converging Lines","link":"section521350_447053.html","maxRecords":0.0,"photoIDs":[8446071.0,8500305.0,8500324.0,8500333.0,8500365.0,8500369.0,8500393.0,8500919.0,8717828.0,8500902.0],"skipIndex":0,"section_code":"section521350","featured_images":"8717828,8500919,8500902,8500393,8500369,8500365,8500333,8500324,8500305,8446071","id":447053,"singleSection":false});				  						galleries[393019] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"David Winstanley","link":"gallery_393019.html","maxRecords":0.0,"photoIDs":[7265887.0,7265925.0,7265930.0,7265871.0,7265916.0],"skipIndex":0,"section_code":"gallery","featured_images":7265925.0,"id":393019,"singleSection":false});				  						galleries[426362] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Hugh Homan","link":"gallery_426362.html","maxRecords":0.0,"photoIDs":[7905619.0,7905624.0,7905626.0],"skipIndex":0,"section_code":"gallery","featured_images":"7905626,7905624,7905619","id":426362,"singleSection":false});				  						galleries[426364] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Jane Hart","link":"gallery_426364.html","maxRecords":0.0,"photoIDs":[7905658.0,7905660.0,7905661.0,8716063.0,8716068.0,8716090.0],"skipIndex":0,"section_code":"gallery","featured_images":"8716090,8716068,8716063,7905661","id":426364,"singleSection":false});				  						galleries[426355] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Jim Walker","link":"gallery_426355.html","maxRecords":0.0,"photoIDs":[7904584.0,7904589.0,7904595.0],"skipIndex":0,"section_code":"gallery","featured_images":"7904595,7904589,7904584","id":426355,"singleSection":false});				  						galleries[426358] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"John Harris","link":"gallery_426358.html","maxRecords":0.0,"photoIDs":[7905606.0,7905613.0,7905616.0],"skipIndex":0,"section_code":"gallery","featured_images":"7905616,7905613,7905606","id":426358,"singleSection":false});				  						galleries[426359] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Laurence Nicholls","link":"gallery_426359.html","maxRecords":0.0,"photoIDs":[8726302.0,8726303.0,8726304.0,8726305.0,8726306.0,8726307.0,8726310.0,8726314.0,8726315.0,8726317.0,8726312.0,8726313.0,8726316.0,8726318.0,8726311.0],"skipIndex":0,"section_code":"gallery","featured_images":"8726307,8726306","id":426359,"singleSection":false});				  						galleries[424093] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Marcia Mellor","link":"gallery_424093.html","maxRecords":0.0,"photoIDs":[7857751.0,7857771.0,7857798.0,7857817.0,7857819.0,7857821.0,7857822.0,7857824.0,7857827.0,7857829.0,7857833.0,7857836.0,7857838.0],"skipIndex":0,"section_code":"gallery","featured_images":7857771.0,"id":424093,"singleSection":false});				  						galleries[460830] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Paul Smith","link":"gallery_460830.html","maxRecords":0.0,"photoIDs":[8747971.0,8747101.0,8747972.0,8747973.0,8747102.0,8747974.0,8747975.0,8747976.0,8747977.0,8747978.0,8747979.0,8747980.0,8747103.0,8747981.0],"skipIndex":0,"section_code":"gallery","featured_images":8747973.0,"id":460830,"singleSection":false});				  						galleries[426360] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Roger Borrowman","link":"gallery_426360.html","maxRecords":0.0,"photoIDs":[7905648.0,7905654.0,7905655.0],"skipIndex":0,"section_code":"gallery","featured_images":"7905655,7905654,7905648","id":426360,"singleSection":false});				  						galleries[426361] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Rosey Nicholls","link":"gallery_426361.html","maxRecords":0.0,"photoIDs":[9082573.0,9082574.0,9082575.0,9082576.0,9082577.0,9082578.0,9082579.0,9082580.0,9082581.0],"skipIndex":0,"section_code":"gallery","featured_images":9082574.0,"id":426361,"singleSection":false});				  						galleries[426370] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Tony Burch","link":"gallery_426370.html","maxRecords":0.0,"photoIDs":[7904632.0,7904633.0,7904636.0,8780807.0,8781261.0,8781263.0,8781271.0,8781277.0,8781284.0,8781290.0,8781295.0,8781307.0,8781342.0,8781380.0,8781382.0,8781385.0,8781389.0,8781392.0,8781394.0],"skipIndex":0,"section_code":"gallery","featured_images":"8781394,8781392,8781389,8781385,8781382,8781380,8781342,8781307,8781295,8781290","id":426370,"singleSection":false});				  						galleries[426357] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Trevor Green","link":"gallery_426357.html","maxRecords":0.0,"photoIDs":[7904661.0,7904662.0,7904664.0],"skipIndex":0,"section_code":"gallery","featured_images":"7904664,7904662,7904661","id":426357,"singleSection":false});				  						galleries[458923] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Competition (1)","link":"section315906_458923.html","maxRecords":0.0,"photoIDs":[9086339.0,8698542.0,8698561.0,8703604.0,8698549.0,8698487.0,8698556.0,8698728.0,8741214.0],"skipIndex":0,"section_code":"section315906","featured_images":"9086339,8741214,8703604,8698728,8698561,8698556,8698549,8698542,8698487","id":458923,"singleSection":false});				  						galleries[433947] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"An amble around Hadleigh","link":"section521350_433947.html","maxRecords":0.0,"photoIDs":[8105731.0,8105686.0,8117058.0,8105687.0,8117059.0,8105688.0],"skipIndex":0,"section_code":"section521350","featured_images":"8117059,8117058,8105731,8105688,8105687,8105686","id":433947,"singleSection":false});				  						galleries[463664] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Competition (2)","link":"section315906_463664.html","maxRecords":0.0,"photoIDs":[8807340.0,8817582.0,9081479.0,8807319.0,9081480.0,8807320.0,9081481.0,8807321.0],"skipIndex":0,"section_code":"section315906","featured_images":8807319.0,"id":463664,"singleSection":false});				  						galleries[439398] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"A visit to Bury St Edmunds","link":"section521350_439398.html","maxRecords":0.0,"photoIDs":[8269689.0,8292930.0,8292968.0,8292975.0,8292981.0,8293015.0,8293017.0,8293020.0,8293033.0,8293039.0,8293059.0,8293063.0,8255460.0,8288050.0,8255461.0,8255462.0,8288051.0,8255477.0,8288052.0],"skipIndex":0,"section_code":"section521350","featured_images":"8293063,8293059,8293039,8293033,8293020,8293017,8293015,8292981,8292975,8292968","id":439398,"singleSection":false});				  						galleries[447079] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Lavenham","link":"section521350_447079.html","maxRecords":0.0,"photoIDs":[8446299.0,8500373.0,8500382.0,8500409.0,8501190.0,8501194.0,8501192.0],"skipIndex":0,"section_code":"section521350","featured_images":"8501194,8501192,8501190,8500409,8500382,8500373,8446299","id":447079,"singleSection":false});				  						galleries[453589] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"A morning in Melford.","link":"section521350_453589.html","maxRecords":0.0,"photoIDs":[8579124.0,8590108.0,8590804.0,8590812.0,8590829.0,8590836.0,8590841.0,8590824.0,8590821.0,8590814.0],"skipIndex":0,"section_code":"section521350","featured_images":"8590841,8590836,8590829,8590824,8590821,8590814,8590812,8590804,8590108,8579124","id":453589,"singleSection":false});				  						galleries[478007] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Competition (3)","link":"section315906_478007.html","maxRecords":0.0,"photoIDs":[9064665.0,9064805.0,9070302.0,9081933.0,9064666.0,9064806.0,9070303.0,9081935.0,9064807.0,9070304.0,9070305.0,9081485.0,9070306.0],"skipIndex":0,"section_code":"section315906","featured_images":"9081935,9081933","id":478007,"singleSection":false});				  						galleries[457155] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Ipswich Waterfront","link":"section521350_457155.html","maxRecords":0.0,"photoIDs":[8656815.0,8680884.0,8680892.0,8680898.0,8680908.0,8680921.0,8680925.0,8680930.0,8680934.0,8680973.0,8680976.0,8680978.0,8715978.0,8716022.0,8715925.0],"skipIndex":0,"section_code":"section521350","featured_images":"8680978,8680908","id":457155,"singleSection":false});				  						galleries[459408] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Autumn Colours","link":"section521350_459408.html","maxRecords":0.0,"photoIDs":[8710590.0,8715668.0,8715695.0,8715696.0,8715699.0,8715916.0,8715918.0,8715922.0,8715767.0,8715728.0,8715694.0,8715693.0],"skipIndex":0,"section_code":"section521350","featured_images":"8715922,8715918,8715916,8715767,8715728,8715699,8715696,8715695,8715694,8715693","id":459408,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[247470] = '9064805,9064665,9064806,9064666,9064807';
imageSets[1] = '9086339,8817582,8807340,8781394,8781385,8781290,8781284,8781277,8780807,8716090,8715978,8691478,8680978,8680925,8680884,8656815,8446299,8293015,8292930,7905613,7904662,7904636,7904633,7904632,7857836,7857822,7857817,7857771,9082573,9081933,9070302,9064805,9064665,8698542,9082574,9081935,9081480,9070303,8807319,8747972,8698561,9070304,9064807,8747973,8726304,8703604,9081485,8807321,8747102,8698549,9082577,9070306,8698487,8747976,8726307,8747977,8726315,9082580,8747978,9082581,8747980,8747981';
imageSets[2] = '8716090,8716068,8716063,8691481,8691478,8691474,8691470,8680978,8680908,7905661,7857771,9081933,9082574,9081935,8807319,7265925,8747973,8726306,8726307';
imageSets[3] = '9086339,7857821,9064807';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/sudburycamera/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/sudburycamera/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/sudburycamera/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/sudburycamera/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/sudburycamera/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/sudburycamera/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/sudburycamera/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/sudburycamera/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/sudburycamera/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/sudburycamera/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/sudburycamera/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/sudburycamera/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/sudburycamera/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/sudburycamera/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/sudburycamera/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/sudburycamera/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/sudburycamera/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/sudburycamera/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/sudburycamera/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/sudburycamera/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/sudburycamera/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/sudburycamera/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/sudburycamera/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/sudburycamera/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/sudburycamera/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/sudburycamera/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/sudburycamera/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 = 'Sudbury  & District 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> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else {
		
	}
	if (this.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;
	}
}

			

