window.thumbnails = {};
															thumbnails[2567647] = clik.newPhoto({"id":2567647,"src":"Parade_gdns_Pola_copy_edited_rsze2_thumb.jpg","galleries_id":93635,"server_id":18,"link":"photo_2567647.html","width":130,"caption":"Parade Gardens, Bath","height":82});
															thumbnails[1209372] = clik.newPhoto({"id":1209372,"src":"Stilt_woman_thumb.jpg","galleries_id":85531,"server_id":18,"link":"photo_1209372.html","width":130,"caption":"Stilt Woman","height":90});
															thumbnails[1191557] = clik.newPhoto({"id":1191557,"src":"afrodancer_thumb.jpg","galleries_id":85531,"server_id":18,"link":"photo_1191557.html","width":130,"caption":"Afro Dancer.","height":193});
															thumbnails[1191904] = clik.newPhoto({"id":1191904,"src":"Manversstreetbus_thumb.jpg","galleries_id":85555,"server_id":18,"link":"photo_1191904.html","width":130,"caption":"Night Bus, Manvers Street","height":68});
															thumbnails[1191990] = clik.newPhoto({"id":1191990,"src":"woman_with_bags_upd_thumb.jpg","galleries_id":85553,"server_id":18,"link":"photo_1191990.html","width":130,"caption":"Woman with Bags","height":184});
															thumbnails[1196152] = clik.newPhoto({"id":1196152,"src":"Galagirls1_thumb.jpg","galleries_id":85556,"server_id":18,"link":"photo_1196152.html","width":130,"caption":"Radstock Gala Girls","height":91});
															thumbnails[1247831] = clik.newPhoto({"id":1247831,"src":"929_conga_upd_thumb.jpg","galleries_id":88978,"server_id":18,"link":"photo_1247831.html","width":130,"caption":"Union Street Conga","height":83});
															thumbnails[5299997] = clik.newPhoto({"id":5299997,"src":"Haydonallotment_ed3_thumb.jpg","galleries_id":93635,"server_id":18,"link":"photo_5299997.html","width":130,"caption":"Haydon Allotments","height":85});
															thumbnails[5303475] = clik.newPhoto({"id":5303475,"src":"Pristonfield_ed_thumb.jpg","galleries_id":93635,"server_id":18,"link":"photo_5303475.html","width":130,"caption":"Summer landscape near Priston ","height":86});
															thumbnails[5302872] = clik.newPhoto({"id":5302872,"src":"Farmborough_Roundhill_ed_thumb.jpg","galleries_id":93635,"server_id":18,"link":"photo_5302872.html","width":130,"caption":"Farmborough Round Hill","height":86});
															thumbnails[5303492] = clik.newPhoto({"id":5303492,"src":"Wellowroad-snow_ed_thumb.jpg","galleries_id":93635,"server_id":18,"link":"photo_5303492.html","width":130,"caption":"Winter landscape near Wellow","height":84});
															thumbnails[5302877] = clik.newPhoto({"id":5302877,"src":"sunsettree_thumb.jpg","galleries_id":93635,"server_id":18,"link":"photo_5302877.html","width":130,"caption":"Tree at Dusk, Peasedown","height":198});
															thumbnails[5303503] = clik.newPhoto({"id":5303503,"src":"Weltonfield_ed_thumb.jpg","galleries_id":93635,"server_id":18,"link":"photo_5303503.html","width":130,"caption":"Welton Vale ","height":87});
															thumbnails[5302949] = clik.newPhoto({"id":5302949,"src":"Fosseway-horsemist_ed2_thumb.jpg","galleries_id":93635,"server_id":18,"link":"photo_5302949.html","width":130,"caption":"Pony in mist with sunrise: Fosseway, Peasedown","height":198});
															thumbnails[5303514] = clik.newPhoto({"id":5303514,"src":"mudfield_ed_thumb.jpg","galleries_id":93635,"server_id":18,"link":"photo_5303514.html","width":130,"caption":"Field at dusk; Writhlington","height":86});
															thumbnails[5302926] = clik.newPhoto({"id":5302926,"src":"Gull_ed_thumb.jpg","galleries_id":93635,"server_id":18,"link":"photo_5302926.html","width":130,"caption":"Herring Gull","height":196});
															thumbnails[5303518] = clik.newPhoto({"id":5303518,"src":"Compton-sheep_ed_thumb.jpg","galleries_id":93635,"server_id":18,"link":"photo_5303518.html","width":130,"caption":"Landscape with sheepcote, Compton Dando","height":84});
															thumbnails[5302970] = clik.newPhoto({"id":5302970,"src":"Crystal_grazing_ed_thumb.jpg","galleries_id":93635,"server_id":18,"link":"photo_5302970.html","width":130,"caption":"Haydon Batch, Crystal Grazing","height":86});
															thumbnails[5303524] = clik.newPhoto({"id":5303524,"src":"Cornfield_ed_thumb.jpg","galleries_id":93635,"server_id":18,"link":"photo_5303524.html","width":130,"caption":"Cornfield","height":93});
															thumbnails[5302987] = clik.newPhoto({"id":5302987,"src":"Hosewalking_ed_thumb.jpg","galleries_id":93635,"server_id":18,"link":"photo_5302987.html","width":130,"caption":"Horse walking: Dunkerton","height":86});
															thumbnails[5303538] = clik.newPhoto({"id":5303538,"src":"Fosseway_tumulus_thumb.jpg","galleries_id":93635,"server_id":18,"link":"photo_5303538.html","width":130,"caption":"Tumulus on the Fosseway: Radstock","height":91});
															thumbnails[1191810] = clik.newPhoto({"id":1191810,"src":"Busstationcafe_thumb.jpg","galleries_id":85531,"server_id":18,"link":"photo_1191810.html","width":130,"caption":"Bus Station Cafe","height":80});
															thumbnails[1191929] = clik.newPhoto({"id":1191929,"src":"Nightbus2_thumb.jpg","galleries_id":85555,"server_id":18,"link":"photo_1191929.html","width":130,"caption":"Night Bus 2","height":86});
															thumbnails[1192026] = clik.newPhoto({"id":1192026,"src":"Tourist_family_upd2_thumb.jpg","galleries_id":85553,"server_id":18,"link":"photo_1192026.html","width":130,"caption":"Tourist Family","height":86});
															thumbnails[1196154] = clik.newPhoto({"id":1196154,"src":"Gala_Kids_3_band_upd_thumb.jpg","galleries_id":85556,"server_id":18,"link":"photo_1196154.html","width":130,"caption":"Radstock Gala, Children's Band","height":87});
															thumbnails[1247862] = clik.newPhoto({"id":1247862,"src":"5_40_14A_Union_St_Florida_thumb.jpg","galleries_id":88978,"server_id":18,"link":"photo_1247862.html","width":130,"caption":"Florida","height":85});
															thumbnails[5303015] = clik.newPhoto({"id":5303015,"src":"Compton_Dando_ed_thumb.jpg","galleries_id":93635,"server_id":18,"link":"photo_5303015.html","width":130,"caption":"Wick Farm, Compton Dando","height":87});
															thumbnails[5303547] = clik.newPhoto({"id":5303547,"src":"Wellowsheep_ed_thumb.jpg","galleries_id":93635,"server_id":18,"link":"photo_5303547.html","width":130,"caption":"A field with sheep near Combe Hay","height":81});
															thumbnails[5303002] = clik.newPhoto({"id":5303002,"src":"Haydonhorse_ed3webv_thumb.jpg","galleries_id":93635,"server_id":18,"link":"photo_5303002.html","width":130,"caption":"Horses in Fog: Haydon","height":85});
															thumbnails[5494717] = clik.newPhoto({"id":5494717,"src":"Laugharne5_webed_thumb.jpg","galleries_id":93635,"server_id":18,"link":"photo_5494717.html","width":130,"caption":"Pendine, South Wales","height":87});
															thumbnails[5495704] = clik.newPhoto({"id":5495704,"src":"8A-Wave-Study-5_websize_thumb.jpg","galleries_id":93635,"server_id":18,"link":"photo_5495704.html","width":130,"caption":"Wave Breaking","height":195});
															thumbnails[1329128] = clik.newPhoto({"id":1329128,"src":"Duomo_Museum_Florence_thumb.jpg","galleries_id":93635,"server_id":18,"link":"photo_1329128.html","width":130,"caption":"In the Duomo Museum, Florence ","height":89});
															thumbnails[1329180] = clik.newPhoto({"id":1329180,"src":"Sta_Maria_del_Carmine_thumb.jpg","galleries_id":93635,"server_id":18,"link":"photo_1329180.html","width":130,"caption":"Santa Maria del Carmine, Florence","height":88});
															thumbnails[1191846] = clik.newPhoto({"id":1191846,"src":"manjesusstatue_thumb.jpg","galleries_id":85531,"server_id":18,"link":"photo_1191846.html","width":130,"caption":"Man with Jesus Statue","height":166});
															thumbnails[1192039] = clik.newPhoto({"id":1192039,"src":"Harmonica_Man_upd_thumb.jpg","galleries_id":85553,"server_id":18,"link":"photo_1192039.html","width":130,"caption":"Harmonica Man","height":191});
															thumbnails[1196011] = clik.newPhoto({"id":1196011,"src":"NightBus3_thumb.jpg","galleries_id":85555,"server_id":18,"link":"photo_1196011.html","width":130,"caption":"Night Bus 3 (James Street West)","height":77});
															thumbnails[1196156] = clik.newPhoto({"id":1196156,"src":"tractionenginedriver_thumb.jpg","galleries_id":85556,"server_id":18,"link":"photo_1196156.html","width":130,"caption":"Radstock Gala (Traction Engine Driver)","height":173});
															thumbnails[1247902] = clik.newPhoto({"id":1247902,"src":"5_18_33_Market_York_St_thumb.jpg","galleries_id":88978,"server_id":18,"link":"photo_1247902.html","width":130,"caption":"York Street Market(the breeze)","height":94});
															thumbnails[1329141] = clik.newPhoto({"id":1329141,"src":"Pazzi_Chapel_Florence_2_thumb.jpg","galleries_id":93635,"server_id":18,"link":"photo_1329141.html","width":130,"caption":"Pazzi Chapel, Florence","height":192});
															thumbnails[1237917] = clik.newPhoto({"id":1237917,"src":"Saxplayerupd2_thumb.jpg","galleries_id":85553,"server_id":18,"link":"photo_1237917.html","width":130,"caption":"Zen Hussy Sax Player","height":226});
															thumbnails[5495880] = clik.newPhoto({"id":5495880,"src":"Shop-Temple-Meads_websize_e_thumb.jpg","galleries_id":93635,"server_id":18,"link":"photo_5495880.html","width":130,"caption":"Temple Meads","height":86});
															thumbnails[1257215] = clik.newPhoto({"id":1257215,"src":"Tour_Guide_portrait_thumb.jpg","galleries_id":85553,"server_id":18,"link":"photo_1257215.html","width":130,"caption":"Tour Guide","height":191});
															thumbnails[1191875] = clik.newPhoto({"id":1191875,"src":"Manheritagedolls_thumb.jpg","galleries_id":85531,"server_id":18,"link":"photo_1191875.html","width":130,"caption":"Man with Heritage Dolls","height":195});
															thumbnails[1196019] = clik.newPhoto({"id":1196019,"src":"NightBus4saint1_thumb.jpg","galleries_id":85555,"server_id":18,"link":"photo_1196019.html","width":130,"caption":"Night Bus 4 (The Saint)","height":86});
															thumbnails[1196159] = clik.newPhoto({"id":1196159,"src":"painted_face_man_upd_thumb.jpg","galleries_id":85556,"server_id":18,"link":"photo_1196159.html","width":130,"caption":"Radstock Gala (Man with Painted Face)","height":88});
															thumbnails[1209434] = clik.newPhoto({"id":1209434,"src":"5511Agreenjacket_thumb.jpg","galleries_id":85553,"server_id":18,"link":"photo_1209434.html","width":130,"caption":"Green Jacket","height":188});
															thumbnails[1247920] = clik.newPhoto({"id":1247920,"src":"916A_Abbey_Churchyard_Preacher_thumb.jpg","galleries_id":88978,"server_id":18,"link":"photo_1247920.html","width":130,"caption":"Abbey Churchyard (Silent Preacher)","height":85});
															thumbnails[1329186] = clik.newPhoto({"id":1329186,"src":"Star_models_6_comp_thumb.jpg","galleries_id":93635,"server_id":18,"link":"photo_1329186.html","width":130,"caption":"still life 1,Milsom Street ","height":85});
															thumbnails[1196026] = clik.newPhoto({"id":1196026,"src":"NightBus5Kingswood_thumb.jpg","galleries_id":85555,"server_id":18,"link":"photo_1196026.html","width":130,"caption":"Night Bus 5 (Kingswood)","height":87});
															thumbnails[1196162] = clik.newPhoto({"id":1196162,"src":"Gala_Face_Masks_upd_thumb.jpg","galleries_id":85556,"server_id":18,"link":"photo_1196162.html","width":130,"caption":"Radstock Gala (Face Masks)","height":87});
															thumbnails[1209449] = clik.newPhoto({"id":1209449,"src":"913Agirl_yellowshirt_thumb.jpg","galleries_id":85553,"server_id":18,"link":"photo_1209449.html","width":130,"caption":"Yellow Shirt","height":193});
															thumbnails[1247957] = clik.newPhoto({"id":1247957,"src":"5_53_7A_Bench_3_ices_thumb.jpg","galleries_id":88978,"server_id":18,"link":"photo_1247957.html","width":130,"caption":"Three Ices","height":95});
															thumbnails[1329194] = clik.newPhoto({"id":1329194,"src":"936E_star_models_2_thumb.jpg","galleries_id":93635,"server_id":18,"link":"photo_1329194.html","width":130,"caption":"still life 2, Radstock","height":85});
															thumbnails[1212360] = clik.newPhoto({"id":1212360,"src":"Night_Bus7_Head_thumb.jpg","galleries_id":85555,"server_id":18,"link":"photo_1212360.html","width":130,"caption":"Night Bus 6 (Head)","height":90});
															thumbnails[1212368] = clik.newPhoto({"id":1212368,"src":"Night_Bus_6_mobile_phone_thumb.jpg","galleries_id":85555,"server_id":18,"link":"photo_1212368.html","width":130,"caption":"Night Bus 7 (the mobile phone)","height":188});
															thumbnails[1341497] = clik.newPhoto({"id":1341497,"src":"0382_limbo_dancer_union_st_thumb.jpg","galleries_id":85553,"server_id":18,"link":"photo_1341497.html","width":130,"caption":"Limbo dancer, Union Street","height":96});
															thumbnails[1191971] = clik.newPhoto({"id":1191971,"src":"Trafficwarden+rhino_thumb.jpg","galleries_id":85531,"server_id":18,"link":"photo_1191971.html","width":130,"caption":"Traffic Warden and Rhino ","height":106});
															thumbnails[1196039] = clik.newPhoto({"id":1196039,"src":"Bus_listener_upd_thumb.jpg","galleries_id":85555,"server_id":18,"link":"photo_1196039.html","width":130,"caption":"Bus Picture (The Listener)","height":89});
															thumbnails[1196167] = clik.newPhoto({"id":1196167,"src":"Trumpeter_thumb.jpg","galleries_id":85556,"server_id":18,"link":"photo_1196167.html","width":130,"caption":"Radstock Gala (The Trumpeter)","height":193});
															thumbnails[1209460] = clik.newPhoto({"id":1209460,"src":"5718waterbottle_thumb.jpg","galleries_id":85553,"server_id":18,"link":"photo_1209460.html","width":130,"caption":"Woman with a water bottle","height":197});
															thumbnails[1248102] = clik.newPhoto({"id":1248102,"src":"Two_women_chatting_thumb.jpg","galleries_id":88978,"server_id":18,"link":"photo_1248102.html","width":130,"caption":"Two Women Chatting","height":87});
															thumbnails[1329206] = clik.newPhoto({"id":1329206,"src":"Star_model_1_thumb.jpg","galleries_id":93635,"server_id":18,"link":"photo_1329206.html","width":130,"caption":"still life 3 Stall Street","height":194});
															thumbnails[1191979] = clik.newPhoto({"id":1191979,"src":"Pigeonfeeder_thumb.jpg","galleries_id":85531,"server_id":18,"link":"photo_1191979.html","width":130,"caption":"The Pigeon Feeder","height":172});
															thumbnails[1196044] = clik.newPhoto({"id":1196044,"src":"BusSleeper_thumb.jpg","galleries_id":85555,"server_id":18,"link":"photo_1196044.html","width":130,"caption":"Bus Picture 2 (Sleeper)","height":89});
															thumbnails[1196178] = clik.newPhoto({"id":1196178,"src":"Gala_Kids_1_upd_thumb.jpg","galleries_id":85556,"server_id":18,"link":"photo_1196178.html","width":130,"caption":"Radstock Gala (2 Boys in Procession)","height":87});
															thumbnails[1248144] = clik.newPhoto({"id":1248144,"src":"935A_Bus_Driver_Bath_thumb.jpg","galleries_id":88978,"server_id":18,"link":"photo_1248144.html","width":130,"caption":"The Break","height":199});
															thumbnails[5518738] = clik.newPhoto({"id":5518738,"src":"Star_Model_4_thumb.jpg","galleries_id":93635,"server_id":18,"link":"photo_5518738.html","width":130,"caption":"Still Life 4: Radstock ","height":194});
															thumbnails[5518796] = clik.newPhoto({"id":5518796,"src":"Star_ModeI_5ed_thumb.jpg","galleries_id":93635,"server_id":18,"link":"photo_5518796.html","width":130,"caption":"Still Life 5: Glasgow","height":198});
															thumbnails[1192050] = clik.newPhoto({"id":1192050,"src":"Lost_Tourists_thumb.jpg","galleries_id":85531,"server_id":18,"link":"photo_1192050.html","width":130,"caption":"Lost Tourists","height":82});
															thumbnails[1196051] = clik.newPhoto({"id":1196051,"src":"PortraitBusStation_thumb.jpg","galleries_id":85555,"server_id":18,"link":"photo_1196051.html","width":130,"caption":"Bus Picture 3.(Waiting at Bath Bus Station) ","height":84});
															thumbnails[1196190] = clik.newPhoto({"id":1196190,"src":"FredWedGala_thumb.jpg","galleries_id":85556,"server_id":18,"link":"photo_1196190.html","width":130,"caption":"Radstock Gala (The Fred Wedlock Set)","height":188});
															thumbnails[1213527] = clik.newPhoto({"id":1213527,"src":"5_55_18A Man in Hat_thumb.jpg","galleries_id":85553,"server_id":18,"link":"photo_1213527.html","width":130,"caption":"The man in the hat","height":184});
															thumbnails[1213608] = clik.newPhoto({"id":1213608,"src":"6_20_28A_benchgirl_thumb.jpg","galleries_id":85553,"server_id":18,"link":"photo_1213608.html","width":130,"caption":"Young Girl and older woman, Stall Street.","height":178});
															thumbnails[1248170] = clik.newPhoto({"id":1248170,"src":"6_14_36A_Floyds_Radstock_thumb.jpg","galleries_id":88978,"server_id":18,"link":"photo_1248170.html","width":130,"caption":"Floyds","height":188});
															thumbnails[1192089] = clik.newPhoto({"id":1192089,"src":"Wren_ Milsom_Street_thumb.jpg","galleries_id":85531,"server_id":18,"link":"photo_1192089.html","width":130,"caption":"Wren, Remembrance Sunday, Milsom Street","height":193});
															thumbnails[1196195] = clik.newPhoto({"id":1196195,"src":"GalaKids2strawgame_thumb.jpg","galleries_id":85556,"server_id":18,"link":"photo_1196195.html","width":130,"caption":"Radstock Gala (Clearing Up)","height":89});
															thumbnails[1248245] = clik.newPhoto({"id":1248245,"src":"923_Young_girl_with_wings_Stall St_Bath_thumb.jpg","galleries_id":88978,"server_id":18,"link":"photo_1248245.html","width":130,"caption":"Girl with wings","height":195});
															thumbnails[5369376] = clik.newPhoto({"id":5369376,"src":"bus_breath_copy_rsze_thumb.jpg","galleries_id":85555,"server_id":18,"link":"photo_5369376.html","width":130,"caption":"Bus Picture 4: Top Deck, Odd Down","height":85});
															thumbnails[1209337] = clik.newPhoto({"id":1209337,"src":"AbbeyDoors_thumb.jpg","galleries_id":85531,"server_id":18,"link":"photo_1209337.html","width":130,"caption":"Bath Abbey Doors(Poppy Seller)","height":203});
															thumbnails[5266916] = clik.newPhoto({"id":5266916,"src":"_6_17_05_Stall_St_thumb.jpg","galleries_id":88978,"server_id":18,"link":"photo_5266916.html","width":130,"caption":"Pedestrians, Stall Street","height":84});
															thumbnails[5423531] = clik.newPhoto({"id":5423531,"src":"Busportrait_thumb.jpg","galleries_id":85555,"server_id":18,"link":"photo_5423531.html","width":130,"caption":"Bus Picture 5","height":195});
															thumbnails[5495653] = clik.newPhoto({"id":5495653,"src":"white-statue-96_websize_thumb.jpg","galleries_id":85553,"server_id":18,"link":"photo_5495653.html","width":130,"caption":"White Statue","height":176});
															thumbnails[1209396] = clik.newPhoto({"id":1209396,"src":"Pump_Room_ Xmas_thumb.jpg","galleries_id":85531,"server_id":18,"link":"photo_1209396.html","width":130,"caption":"Christmas, Bath Pump Room","height":193});
															thumbnails[5275799] = clik.newPhoto({"id":5275799,"src":"girlwithdog_5_17_5Aed_thumb.jpg","galleries_id":88978,"server_id":18,"link":"photo_5275799.html","width":130,"caption":"Girl carrying a dog, Westgate Street. ","height":168});
															thumbnails[5423544] = clik.newPhoto({"id":5423544,"src":"Bus_5_4_03_thumb.jpg","galleries_id":85555,"server_id":18,"link":"photo_5423544.html","width":130,"caption":"Bus Picture 6 ","height":85});
															thumbnails[5423895] = clik.newPhoto({"id":5423895,"src":"busgirl-919A_thumb.jpg","galleries_id":85555,"server_id":18,"link":"photo_5423895.html","width":130,"caption":"Bus Picture 7","height":91});
															thumbnails[5262388] = clik.newPhoto({"id":5262388,"src":"UpperBoroughWallsDec05_thumb.jpg","galleries_id":85531,"server_id":18,"link":"photo_5262388.html","width":130,"caption":"Christmas, Upper Borough Walls","height":196});
															thumbnails[5275851] = clik.newPhoto({"id":5275851,"src":"lapdog_4_42_7_thumb.jpg","galleries_id":88978,"server_id":18,"link":"photo_5275851.html","width":130,"caption":"The lapdog","height":85});
															thumbnails[5303551] = clik.newPhoto({"id":5303551,"src":"Corridor-statues_ed_thumb.jpg","galleries_id":93635,"server_id":18,"link":"photo_5303551.html","width":130,"caption":"Still Life 6:The Corridor, Bath ","height":199});
															thumbnails[1329098] = clik.newPhoto({"id":1329098,"src":"Blue_Cardigan_4_11_adj2_thumb.jpg","galleries_id":85553,"server_id":18,"link":"photo_1329098.html","width":130,"caption":"Blue cardigan ","height":172});
															thumbnails[5369410] = clik.newPhoto({"id":5369410,"src":"Chinese-Girls-98_1164rsze_thumb.jpg","galleries_id":88978,"server_id":18,"link":"photo_5369410.html","width":130,"caption":"Oriental Girls, Stall Street, 1998","height":177});
															thumbnails[5423542] = clik.newPhoto({"id":5423542,"src":"Bubbleblower-5-12-18A_thumb.jpg","galleries_id":88978,"server_id":18,"link":"photo_5423542.html","width":130,"caption":"Man with Bubble gun, Stall Street.","height":77});
															thumbnails[5496528] = clik.newPhoto({"id":5496528,"src":"red_shirt_6_68_910A_websize_thumb.jpg","galleries_id":85553,"server_id":18,"link":"photo_5496528.html","width":130,"caption":"Red Dress","height":85});
															thumbnails[5423547] = clik.newPhoto({"id":5423547,"src":"Spa-roof_thumb.jpg","galleries_id":88978,"server_id":18,"link":"photo_5423547.html","width":130,"caption":"Bath Spa ","height":87});
															thumbnails[5492420] = clik.newPhoto({"id":5492420,"src":"rain_hood-6-8-37_thumb.jpg","galleries_id":88978,"server_id":18,"link":"photo_5492420.html","width":130,"caption":"Woman in a Rain hood, man passing by.","height":165});
															thumbnails[5492435] = clik.newPhoto({"id":5492435,"src":"kidsinstreet_6-6-9_thumb.jpg","galleries_id":88978,"server_id":18,"link":"photo_5492435.html","width":130,"caption":"Bath, Westgate Street: 2003","height":89});
															thumbnails[5494767] = clik.newPhoto({"id":5494767,"src":"Woman-and-water-statue_webe_thumb.jpg","galleries_id":88978,"server_id":18,"link":"photo_5494767.html","width":130,"caption":"The Water Statue, Bath","height":198});
															thumbnails[5495660] = clik.newPhoto({"id":5495660,"src":"Pigeon_Feeder_headless_webs_thumb.jpg","galleries_id":88978,"server_id":18,"link":"photo_5495660.html","width":130,"caption":"Pigeon Feeder, Lower Borough Walls.","height":84});
															thumbnails[5495949] = clik.newPhoto({"id":5495949,"src":"queue_websize_thumb.jpg","galleries_id":88978,"server_id":18,"link":"photo_5495949.html","width":130,"caption":"A Queue","height":85});
															thumbnails[5496543] = clik.newPhoto({"id":5496543,"src":"togaman_2_25A_websize2_thumb.jpg","galleries_id":88978,"server_id":18,"link":"photo_5496543.html","width":130,"caption":"Westgate Street Roman","height":79});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[85531] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Bath Streetlife","link":"gallery_85531.html","maxRecords":0.0,"photoIDs":[1209372.0,1191557.0,1191810.0,1191846.0,1191875.0,1191971.0,1191979.0,1192050.0,1192089.0,1209337.0,1209396.0,5262388.0],"skipIndex":0,"section_code":"gallery","featured_images":"1209337,1192089,1191557","id":85531,"singleSection":false});				  						galleries[85555] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"On Buses","link":"gallery_85555.html","maxRecords":0.0,"photoIDs":[1191904.0,1191929.0,1196011.0,1196019.0,1196026.0,1212360.0,1212368.0,1196039.0,1196044.0,1196051.0,5369376.0,5423531.0,5423544.0,5423895.0],"skipIndex":0,"section_code":"gallery","featured_images":1212368.0,"id":85555,"singleSection":false});				  						galleries[85556] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Radstock Gala","link":"gallery_85556.html","maxRecords":0.0,"photoIDs":[1196152.0,1196154.0,1196156.0,1196159.0,1196162.0,1196167.0,1196178.0,1196190.0,1196195.0],"skipIndex":0,"section_code":"gallery","featured_images":"1196167,1196156","id":85556,"singleSection":false});				  						galleries[85553] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portraits","link":"gallery_85553.html","maxRecords":0.0,"photoIDs":[1191990.0,1192026.0,1192039.0,1237917.0,1257215.0,1209434.0,1209449.0,1341497.0,1209460.0,1213527.0,1213608.0,5495653.0,1329098.0,5496528.0],"skipIndex":0,"section_code":"gallery","featured_images":1191990.0,"id":85553,"singleSection":false});				  						galleries[88978] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Streetlife (Colour)","link":"gallery_88978.html","maxRecords":0.0,"photoIDs":[1247831.0,1247862.0,1247902.0,1247920.0,1247957.0,1248102.0,1248144.0,1248170.0,1248245.0,5266916.0,5275799.0,5275851.0,5369410.0,5423542.0,5423547.0,5492420.0,5492435.0,5494767.0,5495660.0,5495949.0,5496543.0],"skipIndex":0,"section_code":"gallery","featured_images":"1248245,1248170,1248144","id":88978,"singleSection":false});				  						galleries[93635] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Other Things","link":"gallery_93635.html","maxRecords":0.0,"photoIDs":[2567647.0,5299997.0,5303475.0,5302872.0,5303492.0,5302877.0,5303503.0,5302949.0,5303514.0,5302926.0,5303518.0,5302970.0,5303524.0,5302987.0,5303538.0,5303015.0,5303547.0,5303002.0,5494717.0,5495704.0,1329128.0,1329180.0,1329141.0,5495880.0,1329186.0,1329194.0,1329206.0,5518738.0,5518796.0,5303551.0],"skipIndex":0,"section_code":"gallery","featured_images":5302926.0,"id":93635,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '2567647,1209372,1247831,1196152,1191990,1191904,1191557,5299997,5302872,5303503,5303514,5302949,5302926,5302970,5303538,5302987,5303015,1247862,1192026,1191929,1191810,5494717,5495704,1329128,1329141,1247902,1196156,5495880,1237917,1329186,1209434,1196159,1196019,1191875,1247957,1209449,1196162,1196026,1212360,1341497,1248102,1209460,1196167,1196039,5518738,1196178,1196044,1191979,5518796,1248170,1213608,1196051,1192050,5369376,1248245,1196195,1192089,5495653,5423531,5266916,5423895,5423544,5275799,5303551,5275851,5262388,5369410,1329098,5496528,5423542,5423547,5492420,5492435,5494767,5495949,5495660,5496543';
imageSets[2] = '1191990,1191557,5302926,1196156,1212368,1196167,1248144,1248170,1248245,1192089,1209337';
imageSets[3] = '5518796,5518738,5496543,5496528,5495949,5495880,5495704,5495660,5495653,5494767,5494717,5492435,5492420,5423895,5423547,5423544,5423542,5423531,5369410,5369376,5303551,5303547,5303538,5303524,5303518,5303514,5303503,5303492,5303475,5303015,5303002,5302987,5302970,5302949,5302926,5302877,5302872,5299997,5275851,5275799,5266916,5262388,2567647,1341497,1329206,1329194,1329186,1329180,1329141,1329128';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/pauleff/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/pauleff/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/pauleff/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/pauleff/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/pauleff/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/pauleff/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/pauleff/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/pauleff/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/pauleff/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/pauleff/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/pauleff/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/pauleff/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/pauleff/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/pauleff/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/pauleff/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/pauleff/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/pauleff/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/pauleff/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/pauleff/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/pauleff/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/pauleff/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/pauleff/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/pauleff/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/pauleff/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/pauleff/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 && backgrounds[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 = 'Paul Francis Photographs: ' + 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.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp += '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
	else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
			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;
	}
}

			

