window.thumbnails = {};
															thumbnails[5232765] = clik.newPhoto({"id":5232765,"src":"MITRA_CP27980_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":129,"caption":"","height":71});
															thumbnails[7260257] = clik.newPhoto({"id":7260257,"src":"Carey__David_CP28985home_page_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":129,"caption":"","height":108});
															thumbnails[7270775] = clik.newPhoto({"id":7270775,"src":"Misty_winter_day_9_frame_3_533px_high_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":129,"caption":"","height":198});
															thumbnails[7313946] = clik.newPhoto({"id":7313946,"src":"_DSC4431_Hop_Blossom_13th_Jan_2011__thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":129,"caption":"Andy Johnson, folk musician","height":213});
															thumbnails[9051349] = clik.newPhoto({"id":9051349,"src":"Frensham_winter_trees___DSC4359__thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":129,"caption":"","height":101});
															thumbnails[9051355] = clik.newPhoto({"id":9051355,"src":"Frensham_winter_trees___DSC4380__9F26D63A-1EC9-D45B-1CBFA6A29B5C91D2_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":129,"caption":"","height":129});
															thumbnails[3435772] = clik.newPhoto({"id":3435772,"src":"FrenshamChurch_thumb.jpg","galleries_id":260326,"server_id":32,"link":"photo_3435772.html","width":130,"caption":"Frensham Church, Surrey.","height":100});
															thumbnails[3435794] = clik.newPhoto({"id":3435794,"src":"Caitlin5CP206021_thumb.jpg","galleries_id":209753,"server_id":32,"link":"photo_3435794.html","width":130,"caption":"Caitlin Jenkins, potter, Ewenny Pottery, South Wales","height":177});
															thumbnails[3435898] = clik.newPhoto({"id":3435898,"src":"Dashwood_phoenix_CP19682_thumb.jpg","galleries_id":214547,"server_id":32,"link":"photo_3435898.html","width":130,"caption":"Bronze sculpture: Phoenix by Geoffrey Dashwood. Height 78 cms, edition of 12.","height":218});
															thumbnails[3435907] = clik.newPhoto({"id":3435907,"src":"_CP23855-02_JEFF_WILLIAMSedited_thumb.jpg","galleries_id":209753,"server_id":32,"link":"photo_3435907.html","width":129,"caption":"Dan Darling and his Lovely Chaps.","height":95});
															thumbnails[3435920] = clik.newPhoto({"id":3435920,"src":"MoLASGuildhallYard_thumb.jpg","galleries_id":209749,"server_id":32,"link":"photo_3435920.html","width":130,"caption":"Guildhall Yard, London","height":162});
															thumbnails[3435947] = clik.newPhoto({"id":3435947,"src":"MoLASReview2003henry8thgateedited_thumb.jpg","galleries_id":209749,"server_id":32,"link":"photo_3435947.html","width":130,"caption":"Henry VIII gate, Windsor Castle.","height":194});
															thumbnails[3437378] = clik.newPhoto({"id":3437378,"src":"LouiseMizenDSC0026-01_thumb.jpg","galleries_id":209753,"server_id":32,"link":"photo_3437378.html","width":130,"caption":"Louise Mizen, artist.","height":157});
															thumbnails[3437493] = clik.newPhoto({"id":3437493,"src":"Misty winter day 9 frame 3_thumb.jpg","galleries_id":260326,"server_id":32,"link":"photo_3437493.html","width":130,"caption":"Misty winter morning, Frensham Great Pond, Surrey.","height":198});
															thumbnails[3437936] = clik.newPhoto({"id":3437936,"src":"wealddownland_2_CP18599_thumb.jpg","galleries_id":209749,"server_id":32,"link":"photo_3437936.html","width":130,"caption":"Weald and Downland Open Air Museum, Singleton, Sussex. © Croft Photography.","height":86});
															thumbnails[3437956] = clik.newPhoto({"id":3437956,"src":"weald&downland2CP18599_thumb.jpg","galleries_id":209749,"server_id":32,"link":"photo_3437956.html","width":130,"caption":"Weald and Downland Open Air Museum, Sussex. © Croft Photography","height":86});
															thumbnails[3438123] = clik.newPhoto({"id":3438123,"src":"andy&charlieCP24391_thumb.jpg","galleries_id":260326,"server_id":32,"link":"photo_3438123.html","width":130,"caption":"Andy & Charlie on the Bluebell Railway","height":182});
															thumbnails[3438125] = clik.newPhoto({"id":3438125,"src":"SteveMillionCP21553_thumb.jpg","galleries_id":209753,"server_id":32,"link":"photo_3438125.html","width":130,"caption":"Steve Million, Chicago jazz pianist.","height":143});
															thumbnails[3438139] = clik.newPhoto({"id":3438139,"src":"Andy&Steve2CP21538_thumb.jpg","galleries_id":209753,"server_id":32,"link":"photo_3438139.html","width":130,"caption":"Chicago jazz session.","height":93});
															thumbnails[3508010] = clik.newPhoto({"id":3508010,"src":"kate&michaelCPH3558 copy_thumb.jpg","galleries_id":260322,"server_id":32,"link":"photo_3508010.html","width":130,"caption":"Katy & Michael's wedding.","height":123});
															thumbnails[3508094] = clik.newPhoto({"id":3508094,"src":"1984 spring plateau 2_thumb.jpg","galleries_id":260326,"server_id":32,"link":"photo_3508094.html","width":130,"caption":"Grandfather and grandsons against an evening sky.","height":139});
															thumbnails[3508105] = clik.newPhoto({"id":3508105,"src":"KatherineMorling2CPH2378_bobble_thumb.jpg","galleries_id":214547,"server_id":32,"link":"photo_3508105.html","width":130,"caption":"Bobble Fruit, ceramic sculptures by Katherine Morling. © Katherine Morling.","height":124});
															thumbnails[3508817] = clik.newPhoto({"id":3508817,"src":"Bar Celona Painting 1_CPH3719-02 copy_thumb.jpg","galleries_id":214547,"server_id":32,"link":"photo_3508817.html","width":130,"caption":"BarCelona Painting 1 by Susan Czopor. Oil on Canvas. © Susan Czopor.","height":96});
															thumbnails[3512148] = clik.newPhoto({"id":3512148,"src":"Boxed Lovers 5a height 33 cms 2004_thumb.jpg","galleries_id":214547,"server_id":32,"link":"photo_3512148.html","width":130,"caption":"Boxed Lovers 5, by Susan Czopor. Ceramic planter, height 33 cms. © Susan Czopor.","height":122});
															thumbnails[3512214] = clik.newPhoto({"id":3512214,"src":"Katy_CPH3347_thumb.jpg","galleries_id":260322,"server_id":32,"link":"photo_3512214.html","width":130,"caption":"Katy and Michael's wedding.","height":86});
															thumbnails[3512249] = clik.newPhoto({"id":3512249,"src":"Killa_CPH1526_thumb.jpg","galleries_id":209753,"server_id":32,"link":"photo_3512249.html","width":130,"caption":"Killa Kela, beatbox artist.","height":119});
															thumbnails[3517028] = clik.newPhoto({"id":3517028,"src":"MoLAS ar 2003 gasworks 28202021_thumb.jpg","galleries_id":209749,"server_id":32,"link":"photo_3517028.html","width":130,"caption":"18th century gasworks, east London.  © Museum of London Archaeology. Used with permission.","height":186});
															thumbnails[3576943] = clik.newPhoto({"id":3576943,"src":"Mark_B_CP25014_thumb.jpg","galleries_id":209753,"server_id":32,"link":"photo_3576943.html","width":130,"caption":"Mark Banning, World War 1 Battlefield Tour Guide.","height":106});
															thumbnails[3599511] = clik.newPhoto({"id":3599511,"src":"trollstigen_CP25228_thumb.jpg","galleries_id":260326,"server_id":32,"link":"photo_3599511.html","width":130,"caption":"Trollstigen, Norway.","height":133});
															thumbnails[3599529] = clik.newPhoto({"id":3599529,"src":"midnight__CP25178_thumb.jpg","galleries_id":260326,"server_id":32,"link":"photo_3599529.html","width":130,"caption":"Midsummer midnight on the Trondheim Fjord, Norway","height":132});
															thumbnails[3599543] = clik.newPhoto({"id":3599543,"src":"sutton_hoo_buckle___CP25144__1_thumb.jpg","galleries_id":209749,"server_id":32,"link":"photo_3599543.html","width":129,"caption":"The gold buckle from the Sutton Hoo treasure.","height":69});
															thumbnails[3599564] = clik.newPhoto({"id":3599564,"src":"queen_mother___CP25146__1_thumb.JPG","galleries_id":209749,"server_id":35,"link":"photo_3599564.html","width":129,"caption":"Head of a Queen Mother. ","height":223});
															thumbnails[3599618] = clik.newPhoto({"id":3599618,"src":"bellarmines_CP25135__1_thumb1_1.JPG","galleries_id":209749,"server_id":38,"link":"photo_3599618.html","width":129,"caption":"Three bellarmine jug heads. Copyright MOLA. Used with permission.","height":89});
															thumbnails[3599638] = clik.newPhoto({"id":3599638,"src":"intaglio___CP25142__1_thumb1_2.JPG","galleries_id":209749,"server_id":38,"link":"photo_3599638.html","width":129,"caption":"Roman intaglio from a finger-ring found during excavations at Canon Street Station, London.","height":149});
															thumbnails[3599685] = clik.newPhoto({"id":3599685,"src":"skulls____CP25138__1_thumb.JPG","galleries_id":209749,"server_id":35,"link":"photo_3599685.html","width":129,"caption":"Human skulls from excavations in London","height":88});
															thumbnails[3599690] = clik.newPhoto({"id":3599690,"src":"romsdalen_CP25165__1_thumb1_1.JPG","galleries_id":260326,"server_id":35,"link":"photo_3599690.html","width":129,"caption":"Romsdalen, Norway. Evening sunlight.","height":102});
															thumbnails[3599697] = clik.newPhoto({"id":3599697,"src":"erkebispegaarden1_CP25154_thumb.jpg","galleries_id":209749,"server_id":32,"link":"photo_3599697.html","width":130,"caption":"Excavations in progress at Erkebispegaarden (The archbishop's palace), Trondheim, Norway.","height":129});
															thumbnails[3599794] = clik.newPhoto({"id":3599794,"src":"fjord3CP25163_thumb.jpg","galleries_id":260326,"server_id":32,"link":"photo_3599794.html","width":130,"caption":"Fjord near Bergen, Norway","height":113});
															thumbnails[3599824] = clik.newPhoto({"id":3599824,"src":"fjordCP25158_thumb.jpg","galleries_id":260326,"server_id":32,"link":"photo_3599824.html","width":130,"caption":"Norwegian fjordland.","height":130});
															thumbnails[3599830] = clik.newPhoto({"id":3599830,"src":"haymaking_CP25247_thumb.jpg","galleries_id":260326,"server_id":32,"link":"photo_3599830.html","width":130,"caption":"Traditional haymaking at Aastfjorden, Norway.","height":114});
															thumbnails[3599845] = clik.newPhoto({"id":3599845,"src":"kentfield_CP25162_thumb.jpg","galleries_id":260326,"server_id":32,"link":"photo_3599845.html","width":130,"caption":"A field in Kent","height":129});
															thumbnails[3600017] = clik.newPhoto({"id":3600017,"src":"vaagen_CP25238_thumb.jpg","galleries_id":260326,"server_id":32,"link":"photo_3600017.html","width":130,"caption":"Vaagen, Bergen, Norway.","height":130});
															thumbnails[3600072] = clik.newPhoto({"id":3600072,"src":"stave_CP25205_thumb.jpg","galleries_id":260326,"server_id":32,"link":"photo_3600072.html","width":130,"caption":"Stave church at Vik, Sognfjord, Norway.","height":133});
															thumbnails[3600080] = clik.newPhoto({"id":3600080,"src":"stela_CP25196_thumb.jpg","galleries_id":209749,"server_id":32,"link":"photo_3600080.html","width":130,"caption":"Standing stones near Millstreet, Co. Cork, Ireland.","height":132});
															thumbnails[3600085] = clik.newPhoto({"id":3600085,"src":"glacier_CP25219_thumb.jpg","galleries_id":260326,"server_id":32,"link":"photo_3600085.html","width":130,"caption":"Isterdalen glacier, Norway.","height":106});
															thumbnails[3600089] = clik.newPhoto({"id":3600089,"src":"bergen_CP25235_thumb.jpg","galleries_id":260326,"server_id":32,"link":"photo_3600089.html","width":130,"caption":"Bergen Cathedral, Norway.","height":130});
															thumbnails[3637642] = clik.newPhoto({"id":3637642,"src":"Mette_CP25145_thumb.jpg","galleries_id":209749,"server_id":32,"link":"photo_3637642.html","width":129,"caption":"Mette-Sophie Gad, Mme. Gaugin, 1877, by Paul Gaugin. White marble.","height":194});
															thumbnails[3637824] = clik.newPhoto({"id":3637824,"src":"courtauld___CP25136__1_thumb.JPG","galleries_id":209749,"server_id":38,"link":"photo_3637824.html","width":129,"caption":"Lord Lee of Fareham, by Benno Elkan.","height":179});
															thumbnails[3643635] = clik.newPhoto({"id":3643635,"src":"_CPH4933roxana_21_thumb.jpg","galleries_id":214547,"server_id":32,"link":"photo_3643635.html","width":129,"caption":"Mimi: Daredevil Queen of the Slack Rope, by Roxana Halls. 2005, Oil on Linen, 72 x 60 inches.<br>\r\n","height":160});
															thumbnails[3652488] = clik.newPhoto({"id":3652488,"src":"_CP196331_thumb.jpg","galleries_id":214547,"server_id":32,"link":"photo_3652488.html","width":129,"caption":"House Sparrow, bronze sculpture by Geoffrey Dashwood. Height 16 cms, edition of 15.","height":160});
															thumbnails[3715984] = clik.newPhoto({"id":3715984,"src":"borderlands__CP25129__1_thumb.JPG","galleries_id":209749,"server_id":38,"link":"photo_3715984.html","width":129,"caption":"Pottery from the Surrey- Hampshire border.","height":156});
															thumbnails[3758643] = clik.newPhoto({"id":3758643,"src":"venice_glass_CP25131_thumb.jpg","galleries_id":209749,"server_id":32,"link":"photo_3758643.html","width":130,"caption":"A Venetian glass tumbler excavated by Museum of London Archaeology.","height":166});
															thumbnails[3817007] = clik.newPhoto({"id":3817007,"src":"_CP18641_nicola_godden__Ayesha1_thumb.jpg","galleries_id":214547,"server_id":32,"link":"photo_3817007.html","width":130,"caption":"\"Ayesha\", bronze sculpture by Nicola Godden. BA. ARBS. 122 cm tall (twice life size)","height":196});
															thumbnails[3817032] = clik.newPhoto({"id":3817032,"src":"_CP18703_nicola_godden_La_Famille_thumb.jpg","galleries_id":214547,"server_id":32,"link":"photo_3817032.html","width":129,"caption":"\"La Famille\", bronze sculpture by Nicola Godden, BA. ARBS. 28 cms tall, edition of 9.","height":185});
															thumbnails[4461042] = clik.newPhoto({"id":4461042,"src":"Atlantic_College__CP27068_9th_July_2009_thumb.jpg","galleries_id":209753,"server_id":32,"link":"photo_4461042.html","width":130,"caption":"The Pluck & Squeeze Twmpath (Welsh folkdance) Band at Atlantic College, South Wales. This band appeared at Gavin & Stacey's wedding in the BBC TV series.","height":106});
															thumbnails[5062904] = clik.newPhoto({"id":5062904,"src":"Carey__David__CP293151_thumb.jpg","galleries_id":260322,"server_id":32,"link":"photo_5062904.html","width":129,"caption":"Carey and David","height":182});
															thumbnails[5062915] = clik.newPhoto({"id":5062915,"src":"Carey__David__CP29445_thumb.jpg","galleries_id":260322,"server_id":32,"link":"photo_5062915.html","width":129,"caption":"Carey and David's Wedding","height":108});
															thumbnails[5062943] = clik.newPhoto({"id":5062943,"src":"Carey__David_CP28985_thumb.jpg","galleries_id":260322,"server_id":32,"link":"photo_5062943.html","width":129,"caption":"Carey and David's Wedding: the Pastor and the Bridesmaids.","height":108});
															thumbnails[5062955] = clik.newPhoto({"id":5062955,"src":"Carey__David__CP29088_thumb.jpg","galleries_id":260322,"server_id":32,"link":"photo_5062955.html","width":129,"caption":"Carey and David.","height":98});
															thumbnails[5063052] = clik.newPhoto({"id":5063052,"src":"_CP23980_jeff_williams1_thumb.jpg","galleries_id":209753,"server_id":32,"link":"photo_5063052.html","width":129,"caption":"Jeff Williams' \"Jazz not Jazz\"","height":86});
															thumbnails[5063070] = clik.newPhoto({"id":5063070,"src":"_CP23956_jeff_williams1_thumb.jpg","galleries_id":209753,"server_id":32,"link":"photo_5063070.html","width":129,"caption":"Jeff Williams \"Jazz not Jazz\".","height":86});
															thumbnails[5063408] = clik.newPhoto({"id":5063408,"src":"jeffwilliams_CP24102_PINK1_thumb.jpg","galleries_id":209753,"server_id":32,"link":"photo_5063408.html","width":129,"caption":"Jeff Williams' \"Jazz not Jazz\"","height":214});
															thumbnails[5232772] = clik.newPhoto({"id":5232772,"src":"MITRA_CP279801_thumb.jpg","galleries_id":260322,"server_id":32,"link":"photo_5232772.html","width":129,"caption":"Mitra and Tim's Wedding (with Sarah and Mark)","height":71});
															thumbnails[5232773] = clik.newPhoto({"id":5232773,"src":"mitra__CP27920-2_thumb.jpg","galleries_id":260322,"server_id":32,"link":"photo_5232773.html","width":129,"caption":"Mitra and Tim's Wedding (with Sarah and Mark)","height":101});
															thumbnails[5232778] = clik.newPhoto({"id":5232778,"src":"Mitra_CP27887_thumb.jpg","galleries_id":260322,"server_id":32,"link":"photo_5232778.html","width":129,"caption":"Mitra with her parents","height":80});
															thumbnails[5232782] = clik.newPhoto({"id":5232782,"src":"Mitra_CP27839_1_thumb.jpg","galleries_id":260322,"server_id":32,"link":"photo_5232782.html","width":129,"caption":"Mitra","height":228});
															thumbnails[5232783] = clik.newPhoto({"id":5232783,"src":"MITRA_CP27808_thumb.jpg","galleries_id":260322,"server_id":32,"link":"photo_5232783.html","width":129,"caption":"Mitra","height":114});
															thumbnails[6677429] = clik.newPhoto({"id":6677429,"src":"queen_mary_hospital_DSC2058_QNM10__PCA_Ltd_2010__copy_1_thumb.jpg","galleries_id":209749,"server_id":38,"link":"photo_6677429.html","width":129,"caption":"Historic Building Documentation","height":86});
															thumbnails[7088903] = clik.newPhoto({"id":7088903,"src":"_DSC3875frensham_pond_evening__thumb.jpg","galleries_id":260326,"server_id":32,"link":"photo_7088903.html","width":129,"caption":"Frensham Little Pond, Surrey, evening","height":160});
															thumbnails[7211625] = clik.newPhoto({"id":7211625,"src":"AndySteveCP21540_thumb.jpg","galleries_id":209753,"server_id":32,"link":"photo_7211625.html","width":129,"caption":"Chicago Jazz Session","height":82});
															thumbnails[7313937] = clik.newPhoto({"id":7313937,"src":"_DSC4431_Hop_Blossom_13th_Jan_2011_h533px___thumb.jpg","galleries_id":209753,"server_id":32,"link":"photo_7313937.html","width":129,"caption":"Andy Johnson, folk musician.","height":214});
															thumbnails[8028341] = clik.newPhoto({"id":8028341,"src":"Susie_Clarke_Collective__Queens_Arms_Farnham_19-06-11___DSC6414__thumb.jpg","galleries_id":209753,"server_id":32,"link":"photo_8028341.html","width":129,"caption":"Susie Clarke, singer-songwriter.","height":144});
															thumbnails[8597621] = clik.newPhoto({"id":8597621,"src":"_DSC7834_____Rachel__James_Wedding____12th_August_2011_1_thumb.jpg","galleries_id":260322,"server_id":32,"link":"photo_8597621.html","width":129,"caption":"Rachel & James' wedding.","height":124});
															thumbnails[8597622] = clik.newPhoto({"id":8597622,"src":"_DSC7924_____Rachel__James_Wedding____12th_August_2011_thumb.jpg","galleries_id":260322,"server_id":32,"link":"photo_8597622.html","width":129,"caption":"Rachel & James' wedding.","height":129});
															thumbnails[8597626] = clik.newPhoto({"id":8597626,"src":"_DSC7945_____Rachel__James_Wedding____12th_August_2011_thumb.jpg","galleries_id":260322,"server_id":32,"link":"photo_8597626.html","width":129,"caption":"Rachel & James' wedding.","height":114});
															thumbnails[8597653] = clik.newPhoto({"id":8597653,"src":"_DSC8026_____Rachel__James_Wedding____12th_August_2011_thumb.jpg","galleries_id":260322,"server_id":32,"link":"photo_8597653.html","width":129,"caption":"Rachel & James' wedding.","height":105});
															thumbnails[8597720] = clik.newPhoto({"id":8597720,"src":"_DSC8053_____Rachel__James_Wedding____12th_August_2011_thumb.jpg","galleries_id":260322,"server_id":32,"link":"photo_8597720.html","width":129,"caption":"Rachel & james' wedding","height":105});
															thumbnails[8597849] = clik.newPhoto({"id":8597849,"src":"_DSC8188_____Rachel__James_Wedding____12th_August_2011_thumb.jpg","galleries_id":260322,"server_id":32,"link":"photo_8597849.html","width":129,"caption":"Rachel & James' wedding.","height":86});
															thumbnails[8597921] = clik.newPhoto({"id":8597921,"src":"_DSC8210_____Rachel__James_Wedding____12th_August_2011_thumb.jpg","galleries_id":260322,"server_id":32,"link":"photo_8597921.html","width":129,"caption":"Rachel & James' wedding","height":194});
															thumbnails[8597953] = clik.newPhoto({"id":8597953,"src":"Dreaming_of_the_Sea_42__front__back__thumb.jpg","galleries_id":214547,"server_id":32,"link":"photo_8597953.html","width":129,"caption":"Dreaming of the Sea 42.","height":111});
															thumbnails[8597965] = clik.newPhoto({"id":8597965,"src":"Dreaming_of_the_Garden_41_front__back__thumb.jpg","galleries_id":214547,"server_id":32,"link":"photo_8597965.html","width":129,"caption":"Dreaming of the Garden 41.","height":110});
															thumbnails[8678174] = clik.newPhoto({"id":8678174,"src":"Bognor_beach_DSC0033a_thumb.jpg","galleries_id":260326,"server_id":32,"link":"photo_8678174.html","width":129,"caption":"Bognor Regis, Sussex","height":196});
															thumbnails[8792119] = clik.newPhoto({"id":8792119,"src":"_DSC8616_____Nicola_Godden_2011__thumb.JPG","galleries_id":214547,"server_id":32,"link":"photo_8792119.html","width":129,"caption":"Atalanta, by Nicola Godden.","height":231});
															thumbnails[8792199] = clik.newPhoto({"id":8792199,"src":"_DSC8641_____Nicola_Godden_2011__thumb.JPG","galleries_id":214547,"server_id":32,"link":"photo_8792199.html","width":129,"caption":"Ensemble 1, by Nicola Godden.","height":275});
															thumbnails[9051331] = clik.newPhoto({"id":9051331,"src":"Frensham_winter_trees___DSC4358__thumb.JPG","galleries_id":260326,"server_id":32,"link":"photo_9051331.html","width":129,"caption":"Snow after the fire, Frensham Common","height":164});
															thumbnails[9051625] = clik.newPhoto({"id":9051625,"src":"Frensham_winter_trees___DSC4380__9EBBF929-1EC9-D45B-1C1857504457B970_thumb.JPG","galleries_id":260326,"server_id":32,"link":"photo_9051625.html","width":129,"caption":"Winter at Frensham Little Pond, Surrey","height":129});
															thumbnails[9053488] = clik.newPhoto({"id":9053488,"src":"Frensham_winter_trees___DSC4359_1_thumb.JPG","galleries_id":260326,"server_id":32,"link":"photo_9053488.html","width":129,"caption":"Winter's day, Frensham Common, Surrey.","height":101});
															thumbnails[3435769] = clik.newPhoto({"id":3435769,"src":"Andy wedding1_thumb.jpg","galleries_id":260322,"server_id":32,"link":"photo_3435769.html","width":129,"caption":"Krissy & Andy's wedding.","height":89});
															thumbnails[3435832] = clik.newPhoto({"id":3435832,"src":"Katherine_Morling1CPH2365_zebra_thumb.jpg","galleries_id":214547,"server_id":32,"link":"photo_3435832.html","width":129,"caption":"Zebra Crossing, ceramic sculpture by Katherine Morling.","height":148});
															thumbnails[3435813] = clik.newPhoto({"id":3435813,"src":"Killer4CPH1438 copy_thumb.jpg","galleries_id":209753,"server_id":32,"link":"photo_3435813.html","width":130,"caption":"Killa Kela, beatbox artist.","height":86});
															thumbnails[3435744] = clik.newPhoto({"id":3435744,"src":"Monknash1CP20628_thumb.jpg","galleries_id":260326,"server_id":32,"link":"photo_3435744.html","width":130,"caption":"Monknash, Glamorgan.","height":195});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[214547] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Artists' Documentation","link":"gallery_214547.html","maxRecords":0.0,"photoIDs":[3435898.0,3508105.0,3508817.0,3512148.0,3643635.0,3652488.0,3817007.0,3817032.0,8597953.0,8597965.0,8792119.0,8792199.0,3435832.0],"skipIndex":0,"section_code":"gallery","featured_images":"8792199,8792119,8597965,8597953","id":214547,"singleSection":false});				  						galleries[209749] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Museums and Archaeology","link":"gallery_209749.html","maxRecords":0.0,"photoIDs":[3435920.0,3435947.0,3437936.0,3437956.0,3517028.0,3599543.0,3599564.0,3599618.0,3599638.0,3599685.0,3599697.0,3600080.0,3637642.0,3637824.0,3715984.0,3758643.0,6677429.0],"skipIndex":0,"section_code":"gallery","featured_images":"3715984,3599638,3599564,3599543","id":209749,"singleSection":false});				  						galleries[260326] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Personal Work","link":"gallery_260326.html","maxRecords":0.0,"photoIDs":[3435772.0,3437493.0,3438123.0,3508094.0,3599511.0,3599529.0,3599690.0,3599794.0,3599824.0,3599830.0,3599845.0,3600017.0,3600072.0,3600085.0,3600089.0,7088903.0,8678174.0,9051331.0,9051625.0,9053488.0,3435744.0],"skipIndex":0,"section_code":"gallery","featured_images":"8678174,3599690","id":260326,"singleSection":false});				  						galleries[209753] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"PR & Publicity Photography","link":"gallery_209753.html","maxRecords":0.0,"photoIDs":[3435794.0,3435907.0,3437378.0,3438125.0,3438139.0,3512249.0,3576943.0,4461042.0,5063052.0,5063070.0,5063408.0,7211625.0,7313937.0,8028341.0,3435813.0],"skipIndex":0,"section_code":"gallery","featured_images":"4461042,3435907","id":209753,"singleSection":false});				  						galleries[260322] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Weddings","link":"gallery_260322.html","maxRecords":0.0,"photoIDs":[3508010.0,3512214.0,5062904.0,5062915.0,5062943.0,5062955.0,5232772.0,5232773.0,5232778.0,5232782.0,5232783.0,8597621.0,8597622.0,8597626.0,8597653.0,8597720.0,8597849.0,8597921.0,3435769.0],"skipIndex":0,"section_code":"gallery","featured_images":"8597849,8597653,8597626,8597622,8597621","id":260322,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8792199,8792119,8597965,8597953,8597849,8597622,8597621,7313946,7313937,7270775,7260257,6677429,4461042,3599638,3599564,3599543,3437936,3435907,3435813';
imageSets[2] = '8792199,8792119,8678174,8597965,8597953,8597849,8597653,8597626,8597622,8597621,7313946,4461042,3715984,3599690,3599638,3599564,3599543,3435907';
imageSets[3] = '8597965,8597953';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/croftphotography/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/croftphotography/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/croftphotography/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/croftphotography/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/croftphotography/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/croftphotography/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/croftphotography/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/croftphotography/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/croftphotography/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/croftphotography/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/croftphotography/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/croftphotography/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/croftphotography/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/croftphotography/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/croftphotography/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/croftphotography/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/croftphotography/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/croftphotography/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/croftphotography/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/croftphotography/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/croftphotography/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/croftphotography/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/croftphotography/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/croftphotography/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/croftphotography/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/croftphotography/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/croftphotography/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 = 'Professional Photography: ' + 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;
	}
}

		

