window.thumbnails = {};
															thumbnails[4686400] = clik.newPhoto({"id":4686400,"src":"EdwinYoungTrophy_thumb.JPG","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Edwin Young Trophy","height":122});
															thumbnails[4688715] = clik.newPhoto({"id":4688715,"src":"Daby_Balde_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Daby Balde - 2007","height":94});
															thumbnails[4690606] = clik.newPhoto({"id":4690606,"src":"MagpieLaneColourL_thumb.JPG","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Magpie Lane","height":103});
															thumbnails[4690633] = clik.newPhoto({"id":4690633,"src":"RFCwatercolour_thumb.JPG","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":145});
															thumbnails[4690758] = clik.newPhoto({"id":4690758,"src":"Hhorses_thumb.JPG","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Heavy horses at Somerley","height":68});
															thumbnails[4777380] = clik.newPhoto({"id":4777380,"src":"IMG_5193_thumb.JPG","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":98});
															thumbnails[4777381] = clik.newPhoto({"id":4777381,"src":"IMG_5194_thumb.JPG","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":98});
															thumbnails[5386681] = clik.newPhoto({"id":5386681,"src":"PC050013_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":98});
															thumbnails[5386848] = clik.newPhoto({"id":5386848,"src":"P2130013_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":98});
															thumbnails[5386850] = clik.newPhoto({"id":5386850,"src":"P2270031_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":98});
															thumbnails[5386854] = clik.newPhoto({"id":5386854,"src":"PICT0025_436319E9-2219-B5B5-4CA90D589E3E1474_thumb.JPG","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":87});
															thumbnails[5386858] = clik.newPhoto({"id":5386858,"src":"PICT0044_thumb.JPG","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":87});
															thumbnails[5386860] = clik.newPhoto({"id":5386860,"src":"PICT0094_thumb.JPG","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":87});
															thumbnails[5787438] = clik.newPhoto({"id":5787438,"src":"NZWOMADboyswatching_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Drawing at WOMAD NZ","height":98});
															thumbnails[6107787] = clik.newPhoto({"id":6107787,"src":"young_musicians_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":90});
															thumbnails[6107825] = clik.newPhoto({"id":6107825,"src":"Them_Boonies_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Them Boonies ","height":91});
															thumbnails[6116039] = clik.newPhoto({"id":6116039,"src":"vicky_jonny_by_olivia_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Vicki Swan & Jonny Dyer","height":75});
															thumbnails[6324171] = clik.newPhoto({"id":6324171,"src":"Jemima_head_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Jemima","height":173});
															thumbnails[6325633] = clik.newPhoto({"id":6325633,"src":"InTheNewInnGarden_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":93});
															thumbnails[6381968] = clik.newPhoto({"id":6381968,"src":"TheSocial_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":93,"caption":"The Social","height":130});
															thumbnails[6382017] = clik.newPhoto({"id":6382017,"src":"RuthTheodore_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Ruth Theodore","height":101});
															thumbnails[6411286] = clik.newPhoto({"id":6411286,"src":"Dancers_II1_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"The carnival procession passes by . . .","height":100});
															thumbnails[7645174] = clik.newPhoto({"id":7645174,"src":"Adrian_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":98,"caption":"","height":130});
															thumbnails[7645181] = clik.newPhoto({"id":7645181,"src":"Ecropped_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":120,"caption":"","height":130});
															thumbnails[7645187] = clik.newPhoto({"id":7645187,"src":"P4120002_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":127,"caption":"","height":130});
															thumbnails[7645192] = clik.newPhoto({"id":7645192,"src":"P4120004_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":98,"caption":"","height":130});
															thumbnails[7775464] = clik.newPhoto({"id":7775464,"src":"basketdetail_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":98});
															thumbnails[7783268] = clik.newPhoto({"id":7783268,"src":"ToumaniDiabate_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":98});
															thumbnails[8162146] = clik.newPhoto({"id":8162146,"src":"BeerTentUpping_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":85,"caption":"","height":130});
															thumbnails[8162149] = clik.newPhoto({"id":8162149,"src":"MixerTent_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":85,"caption":"","height":130});
															thumbnails[8162151] = clik.newPhoto({"id":8162151,"src":"TentPeacock_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":86});
															thumbnails[8162153] = clik.newPhoto({"id":8162153,"src":"Padding_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":85,"caption":"","height":130});
															thumbnails[8162154] = clik.newPhoto({"id":8162154,"src":"StirUp_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":86});
															thumbnails[8162155] = clik.newPhoto({"id":8162155,"src":"MexicanSetUp_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":81});
															thumbnails[8162157] = clik.newPhoto({"id":8162157,"src":"JulieNetPegging_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":81});
															thumbnails[8162159] = clik.newPhoto({"id":8162159,"src":"WaterGarden_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":86,"caption":"","height":130});
															thumbnails[8162160] = clik.newPhoto({"id":8162160,"src":"BooklessBookTree_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":85,"caption":"","height":130});
															thumbnails[8162162] = clik.newPhoto({"id":8162162,"src":"GateZero_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":85});
															thumbnails[8162163] = clik.newPhoto({"id":8162163,"src":"JimGS_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":88,"caption":"","height":130});
															thumbnails[8162164] = clik.newPhoto({"id":8162164,"src":"BarnabyKeen_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":83});
															thumbnails[8162165] = clik.newPhoto({"id":8162165,"src":"StrawWorkshop_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":84});
															thumbnails[8162166] = clik.newPhoto({"id":8162166,"src":"KnittingNoras_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":85});
															thumbnails[8162167] = clik.newPhoto({"id":8162167,"src":"Megan_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":85,"caption":"","height":130});
															thumbnails[8162168] = clik.newPhoto({"id":8162168,"src":"PaulArmfield_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":84,"caption":"","height":130});
															thumbnails[8162169] = clik.newPhoto({"id":8162169,"src":"KidnapAlice_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":85});
															thumbnails[8162170] = clik.newPhoto({"id":8162170,"src":"DodgeBrothers_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":86,"caption":"","height":130});
															thumbnails[8162171] = clik.newPhoto({"id":8162171,"src":"JaipurBrass_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":84});
															thumbnails[8162173] = clik.newPhoto({"id":8162173,"src":"P7180037_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":88,"caption":"","height":130});
															thumbnails[8162182] = clik.newPhoto({"id":8162182,"src":"FoodStalls_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":86});
															thumbnails[8162184] = clik.newPhoto({"id":8162184,"src":"Gramophone_Party_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":98,"caption":"","height":130});
															thumbnails[8162186] = clik.newPhoto({"id":8162186,"src":"P71800371_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":88,"caption":"","height":130});
															thumbnails[6079754] = clik.newPhoto({"id":6079754,"src":"garden_stage_portrait1_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"On the main lawn at the Larmer Tree Festival 2009","height":174});
															thumbnails[8162908] = clik.newPhoto({"id":8162908,"src":"P7180039_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":108});
															thumbnails[8171408] = clik.newPhoto({"id":8171408,"src":"senbazuru2_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":98,"caption":"","height":130});
															thumbnails[8189749] = clik.newPhoto({"id":8189749,"src":"Moscow_Drug_Club_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":97,"caption":"","height":130});
															thumbnails[4683670] = clik.newPhoto({"id":4683670,"src":"MelstockBand_thumb.jpg","galleries_id":269542,"server_id":18,"link":"photo_4683670.html","width":130,"caption":"","height":129});
															thumbnails[4683709] = clik.newPhoto({"id":4683709,"src":"001_thumb.jpg","galleries_id":269542,"server_id":18,"link":"photo_4683709.html","width":130,"caption":"","height":132});
															thumbnails[4685580] = clik.newPhoto({"id":4685580,"src":"AlexatLighthouse_thumb.jpg","galleries_id":269542,"server_id":18,"link":"photo_4685580.html","width":130,"caption":"","height":187});
															thumbnails[4685692] = clik.newPhoto({"id":4685692,"src":"noahafloatlandscape_thumb.jpg","galleries_id":421239,"server_id":18,"link":"photo_4685692.html","width":130,"caption":"","height":87});
															thumbnails[4685694] = clik.newPhoto({"id":4685694,"src":"Waca_thumb.JPG","galleries_id":421239,"server_id":18,"link":"photo_4685694.html","width":130,"caption":"","height":87});
															thumbnails[4685696] = clik.newPhoto({"id":4685696,"src":"WakehurstArch_thumb.JPG","galleries_id":421239,"server_id":18,"link":"photo_4685696.html","width":130,"caption":"","height":96});
															thumbnails[4685698] = clik.newPhoto({"id":4685698,"src":"wakehurstmermaid_thumb.jpg","galleries_id":421239,"server_id":18,"link":"photo_4685698.html","width":130,"caption":"","height":137});
															thumbnails[4687963] = clik.newPhoto({"id":4687963,"src":"ElephantTalk_thumb.JPG","galleries_id":269542,"server_id":18,"link":"photo_4687963.html","width":130,"caption":"","height":99});
															thumbnails[4688331] = clik.newPhoto({"id":4688331,"src":"adultsbaskets_thumb.JPG","galleries_id":303862,"server_id":18,"link":"photo_4688331.html","width":130,"caption":"","height":98});
															thumbnails[4688333] = clik.newPhoto({"id":4688333,"src":"BoatBasket_thumb.JPG","galleries_id":303862,"server_id":18,"link":"photo_4688333.html","width":130,"caption":"","height":98});
															thumbnails[4688335] = clik.newPhoto({"id":4688335,"src":"GuiderFishDish_thumb.JPG","galleries_id":303862,"server_id":18,"link":"photo_4688335.html","width":130,"caption":"","height":173});
															thumbnails[4688336] = clik.newPhoto({"id":4688336,"src":"mompdragonfly_thumb.jpg","galleries_id":303862,"server_id":18,"link":"photo_4688336.html","width":130,"caption":"","height":173});
															thumbnails[4688345] = clik.newPhoto({"id":4688345,"src":"MompessonDragonfly1_thumb.JPG","galleries_id":303862,"server_id":18,"link":"photo_4688345.html","width":130,"caption":"","height":173});
															thumbnails[4688673] = clik.newPhoto({"id":4688673,"src":"GardenStage_thumb.jpg","galleries_id":269542,"server_id":18,"link":"photo_4688673.html","width":130,"caption":"","height":175});
															thumbnails[4688676] = clik.newPhoto({"id":4688676,"src":"MorrisDancersBanbury_thumb.JPG","galleries_id":416340,"server_id":18,"link":"photo_4688676.html","width":130,"caption":"","height":98});
															thumbnails[4688713] = clik.newPhoto({"id":4688713,"src":"LaXula_thumb.jpg","galleries_id":269542,"server_id":18,"link":"photo_4688713.html","width":130,"caption":"","height":94});
															thumbnails[4690378] = clik.newPhoto({"id":4690378,"src":"KapaHaka_thumb.jpg","galleries_id":269542,"server_id":18,"link":"photo_4690378.html","width":130,"caption":"","height":98});
															thumbnails[4690419] = clik.newPhoto({"id":4690419,"src":"SarahMcQuaidx2_thumb.jpg","galleries_id":269542,"server_id":18,"link":"photo_4690419.html","width":130,"caption":"","height":205});
															thumbnails[4690622] = clik.newPhoto({"id":4690622,"src":"MagpieLaneColourP_thumb.JPG","galleries_id":269542,"server_id":18,"link":"photo_4690622.html","width":130,"caption":"","height":179});
															thumbnails[4690627] = clik.newPhoto({"id":4690627,"src":"RattleontheStoveipeColour_thumb.JPG","galleries_id":269542,"server_id":18,"link":"photo_4690627.html","width":130,"caption":"","height":93});
															thumbnails[4690632] = clik.newPhoto({"id":4690632,"src":"JohnKirkpatrickRFC_thumb.JPG","galleries_id":269542,"server_id":18,"link":"photo_4690632.html","width":130,"caption":"","height":184});
															thumbnails[4690755] = clik.newPhoto({"id":4690755,"src":"AtHindon_thumb.JPG","galleries_id":416340,"server_id":18,"link":"photo_4690755.html","width":130,"caption":"","height":98});
															thumbnails[4690756] = clik.newPhoto({"id":4690756,"src":"hedgelaying_thumb.JPG","galleries_id":416340,"server_id":18,"link":"photo_4690756.html","width":130,"caption":"","height":104});
															thumbnails[4690759] = clik.newPhoto({"id":4690759,"src":"hindonmonochrome_thumb.jpg","galleries_id":416340,"server_id":18,"link":"photo_4690759.html","width":130,"caption":"","height":104});
															thumbnails[4690761] = clik.newPhoto({"id":4690761,"src":"MiddletonMajor_thumb.JPG","galleries_id":416340,"server_id":18,"link":"photo_4690761.html","width":130,"caption":"","height":98});
															thumbnails[4690764] = clik.newPhoto({"id":4690764,"src":"NewForestWSD_thumb.JPG","galleries_id":416340,"server_id":18,"link":"photo_4690764.html","width":130,"caption":"","height":74});
															thumbnails[4690767] = clik.newPhoto({"id":4690767,"src":"NormanThatching_thumb.JPG","galleries_id":416340,"server_id":18,"link":"photo_4690767.html","width":130,"caption":"","height":163});
															thumbnails[4690768] = clik.newPhoto({"id":4690768,"src":"ploughingtoandfro_thumb.JPG","galleries_id":416340,"server_id":18,"link":"photo_4690768.html","width":130,"caption":"","height":167});
															thumbnails[4777284] = clik.newPhoto({"id":4777284,"src":"IMG_5165_thumb.JPG","galleries_id":303863,"server_id":18,"link":"photo_4777284.html","width":130,"caption":"","height":98});
															thumbnails[4777376] = clik.newPhoto({"id":4777376,"src":"IMG_5170_thumb.JPG","galleries_id":303863,"server_id":18,"link":"photo_4777376.html","width":130,"caption":"","height":173});
															thumbnails[4777377] = clik.newPhoto({"id":4777377,"src":"IMG_5179_thumb.JPG","galleries_id":303862,"server_id":18,"link":"photo_4777377.html","width":130,"caption":"","height":98});
															thumbnails[4777378] = clik.newPhoto({"id":4777378,"src":"IMG_5185_thumb.JPG","galleries_id":303863,"server_id":18,"link":"photo_4777378.html","width":130,"caption":"","height":173});
															thumbnails[4777383] = clik.newPhoto({"id":4777383,"src":"IMG_5225_thumb.JPG","galleries_id":303863,"server_id":18,"link":"photo_4777383.html","width":130,"caption":"","height":98});
															thumbnails[4777386] = clik.newPhoto({"id":4777386,"src":"AvonHeathpigments_thumb.JPG","galleries_id":303863,"server_id":18,"link":"photo_4777386.html","width":130,"caption":"","height":98});
															thumbnails[4777500] = clik.newPhoto({"id":4777500,"src":"IMG_5159_thumb.JPG","galleries_id":303862,"server_id":18,"link":"photo_4777500.html","width":130,"caption":"","height":98});
															thumbnails[4806764] = clik.newPhoto({"id":4806764,"src":"NoahHead_thumb.jpg","galleries_id":421239,"server_id":18,"link":"photo_4806764.html","width":130,"caption":"","height":173});
															thumbnails[4828645] = clik.newPhoto({"id":4828645,"src":"greenManFelt_thumb.JPG","galleries_id":293135,"server_id":18,"link":"photo_4828645.html","width":130,"caption":"","height":127});
															thumbnails[5191155] = clik.newPhoto({"id":5191155,"src":"prep-prep21_thumb.jpg","galleries_id":421239,"server_id":18,"link":"photo_5191155.html","width":130,"caption":"","height":86});
															thumbnails[5191168] = clik.newPhoto({"id":5191168,"src":"cradled_thumb.jpg","galleries_id":421239,"server_id":18,"link":"photo_5191168.html","width":130,"caption":"","height":83});
															thumbnails[5198698] = clik.newPhoto({"id":5198698,"src":"spinaltwist_thumb.jpg","galleries_id":293135,"server_id":18,"link":"photo_5198698.html","width":130,"caption":"","height":213});
															thumbnails[5198699] = clik.newPhoto({"id":5198699,"src":"furfeathermask_thumb.jpg","galleries_id":293135,"server_id":18,"link":"photo_5198699.html","width":130,"caption":"","height":199});
															thumbnails[5198700] = clik.newPhoto({"id":5198700,"src":"boxhilldragon_thumb.jpg","galleries_id":421239,"server_id":18,"link":"photo_5198700.html","width":130,"caption":"","height":89});
															thumbnails[5198701] = clik.newPhoto({"id":5198701,"src":"hurricanelsc_thumb.jpg","galleries_id":421239,"server_id":18,"link":"photo_5198701.html","width":130,"caption":"","height":87});
															thumbnails[5198702] = clik.newPhoto({"id":5198702,"src":"mftcarpet_thumb.JPG","galleries_id":421239,"server_id":18,"link":"photo_5198702.html","width":130,"caption":"","height":173});
															thumbnails[5198703] = clik.newPhoto({"id":5198703,"src":"ribcage2_thumb.jpg","galleries_id":293135,"server_id":18,"link":"photo_5198703.html","width":130,"caption":"","height":87});
															thumbnails[5386680] = clik.newPhoto({"id":5386680,"src":"PC050011_thumb.jpg","galleries_id":421239,"server_id":18,"link":"photo_5386680.html","width":130,"caption":"","height":173});
															thumbnails[5386685] = clik.newPhoto({"id":5386685,"src":"martin_thumb.jpg","galleries_id":421239,"server_id":18,"link":"photo_5386685.html","width":130,"caption":"","height":98});
															thumbnails[5386704] = clik.newPhoto({"id":5386704,"src":"P5250008_thumb.jpg","galleries_id":303861,"server_id":18,"link":"photo_5386704.html","width":130,"caption":"","height":98});
															thumbnails[5386780] = clik.newPhoto({"id":5386780,"src":"facelessrolling_4355F6A4-2219-B5B5-4C5B664B0A3D569D_thumb.jpg","galleries_id":303861,"server_id":18,"link":"photo_5386780.html","width":130,"caption":"","height":173});
															thumbnails[5386783] = clik.newPhoto({"id":5386783,"src":"feltcreature_thumb.JPG","galleries_id":303861,"server_id":18,"link":"photo_5386783.html","width":130,"caption":"","height":173});
															thumbnails[5386938] = clik.newPhoto({"id":5386938,"src":"Lucy_Goose_3_thumb.jpg","galleries_id":293135,"server_id":18,"link":"photo_5386938.html","width":130,"caption":"","height":217});
															thumbnails[5386940] = clik.newPhoto({"id":5386940,"src":"P1020001_thumb.jpg","galleries_id":293135,"server_id":18,"link":"photo_5386940.html","width":130,"caption":"","height":173});
															thumbnails[5398190] = clik.newPhoto({"id":5398190,"src":"inhand_thumb.JPG","galleries_id":303861,"server_id":18,"link":"photo_5398190.html","width":130,"caption":"","height":173});
															thumbnails[5398193] = clik.newPhoto({"id":5398193,"src":"vegbundles_thumb.JPG","galleries_id":303861,"server_id":18,"link":"photo_5398193.html","width":130,"caption":"","height":98});
															thumbnails[5398194] = clik.newPhoto({"id":5398194,"src":"aubergine1_thumb.JPG","galleries_id":303861,"server_id":18,"link":"photo_5398194.html","width":130,"caption":"","height":98});
															thumbnails[5398195] = clik.newPhoto({"id":5398195,"src":"aubergine2_thumb.JPG","galleries_id":303861,"server_id":18,"link":"photo_5398195.html","width":130,"caption":"","height":98});
															thumbnails[5398748] = clik.newPhoto({"id":5398748,"src":"minotaurbeetle_thumb.jpg","galleries_id":303862,"server_id":18,"link":"photo_5398748.html","width":130,"caption":"","height":98});
															thumbnails[5787435] = clik.newPhoto({"id":5787435,"src":"KapaHakaDetail_thumb.jpg","galleries_id":269542,"server_id":18,"link":"photo_5787435.html","width":130,"caption":"","height":98});
															thumbnails[5787445] = clik.newPhoto({"id":5787445,"src":"TarankiTrees_thumb.jpg","galleries_id":269542,"server_id":18,"link":"photo_5787445.html","width":130,"caption":"","height":98});
															thumbnails[5787481] = clik.newPhoto({"id":5787481,"src":"003_thumb.jpg","galleries_id":269542,"server_id":18,"link":"photo_5787481.html","width":130,"caption":"","height":104});
															thumbnails[5787716] = clik.newPhoto({"id":5787716,"src":"atLarmerTree_thumb.JPG","galleries_id":269542,"server_id":18,"link":"photo_5787716.html","width":130,"caption":"","height":98});
															thumbnails[6107747] = clik.newPhoto({"id":6107747,"src":"church_service_thumb.jpg","galleries_id":416340,"server_id":18,"link":"photo_6107747.html","width":130,"caption":"","height":89});
															thumbnails[6107832] = clik.newPhoto({"id":6107832,"src":"Morris_thumb.jpg","galleries_id":416340,"server_id":18,"link":"photo_6107832.html","width":130,"caption":"","height":91});
															thumbnails[6116483] = clik.newPhoto({"id":6116483,"src":"OLK-02_Mompesson_House_thumb.jpg","galleries_id":269542,"server_id":18,"link":"photo_6116483.html","width":130,"caption":"","height":129});
															thumbnails[6116492] = clik.newPhoto({"id":6116492,"src":"OLK-04_Sarum_Orchestra_thumb.jpg","galleries_id":269542,"server_id":18,"link":"photo_6116492.html","width":130,"caption":"","height":103});
															thumbnails[6120120] = clik.newPhoto({"id":6120120,"src":"ceildh_1CB68EAD-24E8-5EC4-4F3099F3D7C46119_thumb.jpg","galleries_id":269542,"server_id":18,"link":"photo_6120120.html","width":130,"caption":"","height":104});
															thumbnails[6171279] = clik.newPhoto({"id":6171279,"src":"Alfie__Lovejoy_thumb.jpg","galleries_id":416340,"server_id":18,"link":"photo_6171279.html","width":130,"caption":"","height":92});
															thumbnails[6260870] = clik.newPhoto({"id":6260870,"src":"she_scarecrow_thumb.jpg","galleries_id":293135,"server_id":18,"link":"photo_6260870.html","width":130,"caption":"","height":173});
															thumbnails[6323197] = clik.newPhoto({"id":6323197,"src":"Grimspound_pose_thumb.jpg","galleries_id":269542,"server_id":18,"link":"photo_6323197.html","width":130,"caption":"","height":173});
															thumbnails[6323910] = clik.newPhoto({"id":6323910,"src":"GrimspoundDancing_thumb.jpg","galleries_id":269542,"server_id":18,"link":"photo_6323910.html","width":130,"caption":"","height":97});
															thumbnails[6381919] = clik.newPhoto({"id":6381919,"src":"FairiesLighting_thumb.jpg","galleries_id":269542,"server_id":18,"link":"photo_6381919.html","width":92,"caption":"","height":130});
															thumbnails[6381924] = clik.newPhoto({"id":6381924,"src":"PicklePlum1_thumb.jpg","galleries_id":269542,"server_id":18,"link":"photo_6381924.html","width":95,"caption":"","height":130});
															thumbnails[6381928] = clik.newPhoto({"id":6381928,"src":"HealersintheSecretGarden_thumb.jpg","galleries_id":269542,"server_id":18,"link":"photo_6381928.html","width":130,"caption":"","height":94});
															thumbnails[6381931] = clik.newPhoto({"id":6381931,"src":"DemobyBodgersBarn_thumb.jpg","galleries_id":416340,"server_id":18,"link":"photo_6381931.html","width":130,"caption":"","height":92});
															thumbnails[6381964] = clik.newPhoto({"id":6381964,"src":"OcarinaNina_thumb.jpg","galleries_id":269542,"server_id":18,"link":"photo_6381964.html","width":130,"caption":"","height":155});
															thumbnails[6382452] = clik.newPhoto({"id":6382452,"src":"Thursday2_thumb.jpg","galleries_id":269542,"server_id":18,"link":"photo_6382452.html","width":130,"caption":"","height":94});
															thumbnails[6382988] = clik.newPhoto({"id":6382988,"src":"Larmer_Lawn_I_thumb.jpg","galleries_id":269542,"server_id":18,"link":"photo_6382988.html","width":130,"caption":"","height":100});
															thumbnails[7598369] = clik.newPhoto({"id":7598369,"src":"wren3portrait_thumb.jpg","galleries_id":303862,"server_id":18,"link":"photo_7598369.html","width":98,"caption":"","height":130});
															thumbnails[7687541] = clik.newPhoto({"id":7687541,"src":"will2_81C94898-1EC9-D45B-1CDFC00ED815ECC6_thumb.jpg","galleries_id":269542,"server_id":18,"link":"photo_7687541.html","width":111,"caption":"","height":130});
															thumbnails[7688081] = clik.newPhoto({"id":7688081,"src":"breamoreclub_thumb.jpg","galleries_id":416340,"server_id":18,"link":"photo_7688081.html","width":130,"caption":"","height":96});
															thumbnails[7688084] = clik.newPhoto({"id":7688084,"src":"batniks_thumb.jpg","galleries_id":416340,"server_id":18,"link":"photo_7688084.html","width":94,"caption":"","height":130});
															thumbnails[7707253] = clik.newPhoto({"id":7707253,"src":"Breamore_Cider_9311894A-1EC9-D45B-1C0B15BB26225424_thumb.jpg","galleries_id":416340,"server_id":18,"link":"photo_7707253.html","width":130,"caption":"","height":105});
															thumbnails[7716135] = clik.newPhoto({"id":7716135,"src":"White_Van_Ascending_thumb.JPG","galleries_id":416340,"server_id":18,"link":"photo_7716135.html","width":130,"caption":"","height":102});
															thumbnails[7737431] = clik.newPhoto({"id":7737431,"src":"swimmingpoolfelt_thumb.jpg","galleries_id":303861,"server_id":18,"link":"photo_7737431.html","width":130,"caption":"","height":98});
															thumbnails[7775457] = clik.newPhoto({"id":7775457,"src":"wave_cropped_thumb.jpg","galleries_id":421239,"server_id":18,"link":"photo_7775457.html","width":130,"caption":" ","height":98});
															thumbnails[7775462] = clik.newPhoto({"id":7775462,"src":"potatolove_thumb.jpg","galleries_id":293135,"server_id":18,"link":"photo_7775462.html","width":89,"caption":"","height":130});
															thumbnails[7775463] = clik.newPhoto({"id":7775463,"src":"help-stick_thumb.jpg","galleries_id":293135,"server_id":18,"link":"photo_7775463.html","width":89,"caption":"","height":130});
															thumbnails[7775465] = clik.newPhoto({"id":7775465,"src":"4._harvest_thumb.jpg","galleries_id":293135,"server_id":18,"link":"photo_7775465.html","width":130,"caption":"","height":81});
															thumbnails[7775467] = clik.newPhoto({"id":7775467,"src":"birdheadreversed_thumb.jpg","galleries_id":293135,"server_id":18,"link":"photo_7775467.html","width":98,"caption":"","height":130});
															thumbnails[7775468] = clik.newPhoto({"id":7775468,"src":"familytree_thumb.jpg","galleries_id":293135,"server_id":18,"link":"photo_7775468.html","width":88,"caption":"","height":130});
															thumbnails[7804978] = clik.newPhoto({"id":7804978,"src":"Boscombe_Down_thumb.jpg","galleries_id":269542,"server_id":18,"link":"photo_7804978.html","width":130,"caption":"","height":104});
															thumbnails[7805006] = clik.newPhoto({"id":7805006,"src":"Minstead_thumb.jpg","galleries_id":421239,"server_id":18,"link":"photo_7805006.html","width":98,"caption":"","height":130});
															thumbnails[7805021] = clik.newPhoto({"id":7805021,"src":"SalisburyWedding_thumb.jpg","galleries_id":416340,"server_id":18,"link":"photo_7805021.html","width":130,"caption":"","height":104});
															thumbnails[7805027] = clik.newPhoto({"id":7805027,"src":"waterside_thumb.JPG","galleries_id":416340,"server_id":18,"link":"photo_7805027.html","width":130,"caption":"","height":100});
															thumbnails[7805076] = clik.newPhoto({"id":7805076,"src":"ribcage1_thumb.jpg","galleries_id":293135,"server_id":18,"link":"photo_7805076.html","width":130,"caption":"","height":86});
															thumbnails[7805096] = clik.newPhoto({"id":7805096,"src":"salisbury_food_festival_thumb.JPG","galleries_id":269542,"server_id":18,"link":"photo_7805096.html","width":130,"caption":"","height":98});
															thumbnails[7805107] = clik.newPhoto({"id":7805107,"src":"Main_stage_III_thumb.jpg","galleries_id":269542,"server_id":18,"link":"photo_7805107.html","width":130,"caption":"","height":100});
															thumbnails[7805115] = clik.newPhoto({"id":7805115,"src":"Kapa_Haka_thumb.jpg","galleries_id":269542,"server_id":18,"link":"photo_7805115.html","width":130,"caption":"","height":103});
															thumbnails[7805121] = clik.newPhoto({"id":7805121,"src":"Fukushima_I_thumb.jpg","galleries_id":293135,"server_id":18,"link":"photo_7805121.html","width":101,"caption":"","height":130});
															thumbnails[7805143] = clik.newPhoto({"id":7805143,"src":"Fukushima_II_thumb.jpg","galleries_id":293135,"server_id":18,"link":"photo_7805143.html","width":98,"caption":"","height":130});
															thumbnails[7805158] = clik.newPhoto({"id":7805158,"src":"colourowen_thumb.jpg","galleries_id":416340,"server_id":18,"link":"photo_7805158.html","width":105,"caption":"","height":130});
															thumbnails[7805166] = clik.newPhoto({"id":7805166,"src":"WOMAD_diptych_thumb.jpg","galleries_id":269542,"server_id":18,"link":"photo_7805166.html","width":130,"caption":"","height":54});
															thumbnails[7805175] = clik.newPhoto({"id":7805175,"src":"Hot_Fingers_thumb.jpg","galleries_id":269542,"server_id":18,"link":"photo_7805175.html","width":92,"caption":"","height":130});
															thumbnails[7805186] = clik.newPhoto({"id":7805186,"src":"PPlooking_thumb.JPG","galleries_id":269542,"server_id":18,"link":"photo_7805186.html","width":130,"caption":"","height":98});
															thumbnails[7805193] = clik.newPhoto({"id":7805193,"src":"ForestMela_F40450E2-1EC9-D45B-1C5CF8F9AF047D89_thumb.JPG","galleries_id":269542,"server_id":18,"link":"photo_7805193.html","width":130,"caption":"","height":108});
															thumbnails[7805284] = clik.newPhoto({"id":7805284,"src":"pigments003_thumb.jpg","galleries_id":303863,"server_id":18,"link":"photo_7805284.html","width":126,"caption":"","height":130});
															thumbnails[7805289] = clik.newPhoto({"id":7805289,"src":"memorial_seat_thumb.jpg","galleries_id":421239,"server_id":18,"link":"photo_7805289.html","width":130,"caption":"","height":98});
															thumbnails[7805292] = clik.newPhoto({"id":7805292,"src":"Lutra_thumb.jpg","galleries_id":421239,"server_id":18,"link":"photo_7805292.html","width":130,"caption":"","height":98});
															thumbnails[7903658] = clik.newPhoto({"id":7903658,"src":"treepruning_thumb.jpg","galleries_id":416340,"server_id":18,"link":"photo_7903658.html","width":93,"caption":"","height":130});
															thumbnails[7903659] = clik.newPhoto({"id":7903659,"src":"maltings_thumb.jpg","galleries_id":416340,"server_id":18,"link":"photo_7903659.html","width":104,"caption":"","height":130});
															thumbnails[8076193] = clik.newPhoto({"id":8076193,"src":"Breamore_horseshowE_thumb.jpg","galleries_id":416340,"server_id":18,"link":"photo_8076193.html","width":130,"caption":"","height":96});
															thumbnails[8076195] = clik.newPhoto({"id":8076195,"src":"BreamorehorseshowN_thumb.jpg","galleries_id":416340,"server_id":18,"link":"photo_8076195.html","width":130,"caption":"","height":91});
															thumbnails[8076196] = clik.newPhoto({"id":8076196,"src":"judgement_thumb.jpg","galleries_id":416340,"server_id":18,"link":"photo_8076196.html","width":130,"caption":"","height":94});
															thumbnails[8211844] = clik.newPhoto({"id":8211844,"src":"P7270011_thumb.jpg","galleries_id":416340,"server_id":18,"link":"photo_8211844.html","width":130,"caption":"","height":96});
															thumbnails[4683651] = clik.newPhoto({"id":4683651,"src":"CooperandBolton_thumb.jpg","galleries_id":269542,"server_id":18,"link":"photo_4683651.html","width":130,"caption":"","height":128});
															thumbnails[5191170] = clik.newPhoto({"id":5191170,"src":"handtool_thumb.jpg","galleries_id":293135,"server_id":18,"link":"photo_5191170.html","width":130,"caption":"","height":181});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[303861] = clik.newGallery({"parentGallery":303854,"usePopups":false,"title":"Felt making","link":"gallery_303861.html","maxRecords":0.0,"photoIDs":[5386704.0,5386780.0,5386783.0,5398190.0,5398193.0,5398194.0,5398195.0,7737431.0],"skipIndex":0,"section_code":"gallery","featured_images":"7737431,5386704","id":303861,"singleSection":false});				  						galleries[421239] = clik.newGallery({"parentGallery":303852,"usePopups":false,"title":"Large 3D work","link":"gallery_421239.html","maxRecords":0.0,"photoIDs":[4685692.0,4685694.0,4685696.0,4685698.0,4806764.0,5191155.0,5191168.0,5198700.0,5198701.0,5198702.0,5386680.0,5386685.0,7775457.0,7805006.0,7805289.0,7805292.0],"skipIndex":0,"section_code":"gallery","featured_images":"5198700,4806764,4685698,4685696,4685692","id":421239,"singleSection":false});				  						galleries[269542] = clik.newGallery({"parentGallery":416339,"usePopups":false,"title":"music + festivals","link":"gallery_269542.html","maxRecords":0.0,"photoIDs":[4683670.0,4683709.0,4685580.0,4687963.0,4688673.0,4688713.0,4690378.0,4690419.0,4690622.0,4690627.0,4690632.0,5787435.0,5787445.0,5787481.0,5787716.0,6116483.0,6116492.0,6120120.0,6323197.0,6323910.0,6381919.0,6381924.0,6381928.0,6381964.0,6382452.0,6382988.0,7687541.0,7804978.0,7805096.0,7805107.0,7805115.0,7805166.0,7805175.0,7805186.0,7805193.0,4683651.0],"skipIndex":0,"section_code":"gallery","featured_images":"7805175,7687541,6382988,6382452,6381928,6381919,6120120,6116492,6116483,5787716,4690627,4688713,4683651","id":269542,"singleSection":false});				  						galleries[303863] = clik.newGallery({"parentGallery":303854,"usePopups":false,"title":"Natural pigments","link":"gallery_303863.html","maxRecords":0.0,"photoIDs":[4777284.0,4777376.0,4777378.0,4777383.0,4777386.0,7805284.0],"skipIndex":0,"section_code":"gallery","featured_images":"7805284,4777386,4777383,4777378,4777376,4777284","id":303863,"singleSection":false});				  						galleries[293135] = clik.newGallery({"parentGallery":303852,"usePopups":false,"title":"portable 3D","link":"gallery_293135.html","maxRecords":0.0,"photoIDs":[4828645.0,5198698.0,5198699.0,5198703.0,5386938.0,5386940.0,6260870.0,7775462.0,7775463.0,7775465.0,7775467.0,7775468.0,7805076.0,7805121.0,7805143.0,5191170.0],"skipIndex":0,"section_code":"gallery","featured_images":"7805143,7805121,7775468,7775465,7775463,7775462,6260870,5386938,5198703,5198699,5191170","id":293135,"singleSection":false});				  						galleries[416340] = clik.newGallery({"parentGallery":416339,"usePopups":false,"title":"rural life","link":"gallery_416340.html","maxRecords":0.0,"photoIDs":[4688676.0,4690755.0,4690756.0,4690759.0,4690761.0,4690764.0,4690767.0,4690768.0,6107747.0,6107832.0,6171279.0,6381931.0,7688081.0,7688084.0,7707253.0,7716135.0,7805021.0,7805027.0,7805158.0,7903658.0,7903659.0,8076193.0,8076195.0,8076196.0,8211844.0],"skipIndex":0,"section_code":"gallery","featured_images":"7716135,7688081,6171279,4690761,4690759,4690756,4690755,4688676","id":416340,"singleSection":false});				  						galleries[303862] = clik.newGallery({"parentGallery":303854,"usePopups":false,"title":"Willow-work","link":"gallery_303862.html","maxRecords":0.0,"photoIDs":[4688331.0,4688333.0,4688335.0,4688336.0,4688345.0,4777377.0,4777500.0,5398748.0,7598369.0],"skipIndex":0,"section_code":"gallery","featured_images":"7598369,5398748,4777500,4777377,4688345,4688336,4688335,4688333,4688331","id":303862,"singleSection":false});				  						galleries[416339] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"drawing+painting","link":"gallery_416339.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"7805175,7716135,7688081,7687541,6382988,6382452,6381928,6381919,6171279,6120120,6116492,6116483,5787716,4690761,4690759,4690756,4690755,4690627,4688713,4688676,4683651","id":416339,"singleSection":false});				  						galleries[303852] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"3 dimensional work","link":"gallery_303852.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"7805143,7805121,7775468,7775465,7775463,7775462,6260870,5386938,5198703,5198700,5198699,5191170,4806764,4685698,4685696,4685692","id":303852,"singleSection":false});				  						galleries[303854] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Workshops","link":"gallery_303854.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"7737431,5386704","id":303854,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '5191155,4690755,4688676,4685696,4685694,4685580,6079754';
imageSets[2] = '7805175,7805143,7805121,7775468,7775465,7775463,7775462,7737431,7716135,7688081,7687541,6382988,6382452,6382017,6381968,6381928,6381919,6325633,6324171,6260870,6171279,6120120,6116492,6116483,5787716,5386938,5386704,5198703,5198700,5198699,4806764,4690761,4690759,4690756,4690755,4690627,4688715,4688713,4688676,4685698,4685696,4685692,8162908,5191170,4683651';
imageSets[3] = '8211844,8189749,8171408,8162908,8162186,8162184,8162182,8162173,8162171,8162170,8162169,8162168,8162167,8162166,8162165,8162164,8162163,8162162,8162160,8162159,8162157,8162155,8162154,8162153,8162151,8162149,8162146,8076196,8076195,8076193,7903659,7903658,7805292,7805289,7805284,7805193,7805186,7805175,7805166,7805158,7805143,7805121,7805115,7805107,7805096,7805076,7805027,7805021,7805006,7804978';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/oliviakeith/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/oliviakeith/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/oliviakeith/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/oliviakeith/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/oliviakeith/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/oliviakeith/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/oliviakeith/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/oliviakeith/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/oliviakeith/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/oliviakeith/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/oliviakeith/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/oliviakeith/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/oliviakeith/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/oliviakeith/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/oliviakeith/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/oliviakeith/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/oliviakeith/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/oliviakeith/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/oliviakeith/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/oliviakeith/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/oliviakeith/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/oliviakeith/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/oliviakeith/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/oliviakeith/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/oliviakeith/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/oliviakeith/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/oliviakeith/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 = 'Olivia Keith Artist: ' + 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;
	}
}

			

