window.thumbnails = {};
															thumbnails[8152671] = clik.newPhoto({"id":8152671,"src":"derwent_water_-_hawes_end_tree-h6001_thumb.jpg","galleries_id":435733,"server_id":32,"link":"photo_8152671.html","width":130,"caption":"Tree at Hawes End, Derwent Water","height":130});
															thumbnails[8152747] = clik.newPhoto({"id":8152747,"src":"wasdale1g600_thumb.jpg","galleries_id":435733,"server_id":32,"link":"photo_8152747.html","width":130,"caption":"Wasdale Dawn","height":130});
															thumbnails[7990439] = clik.newPhoto({"id":7990439,"src":"aira_force_-_ullswater-600_thumb.jpg","galleries_id":311785,"server_id":32,"link":"photo_7990439.html","width":130,"caption":"Aira Force, Ullswater, The Lake District","height":130});
															thumbnails[6707582] = clik.newPhoto({"id":6707582,"src":"100910zigzag2a600_thumb.jpg","galleries_id":311785,"server_id":32,"link":"photo_6707582.html","width":130,"caption":"Zig-zag","height":86});
															thumbnails[6689056] = clik.newPhoto({"id":6689056,"src":"100902bend-cloud2-600_thumb.jpg","galleries_id":311785,"server_id":32,"link":"photo_6689056.html","width":130,"caption":"Cloud over Jenny Brown's Point","height":195});
															thumbnails[6667309] = clik.newPhoto({"id":6667309,"src":"another_place2g-600s_thumb.jpg","galleries_id":311785,"server_id":32,"link":"photo_6667309.html","width":130,"caption":"Another Place","height":86});
															thumbnails[6667313] = clik.newPhoto({"id":6667313,"src":"allalone600-s_thumb.jpg","galleries_id":311785,"server_id":32,"link":"photo_6667313.html","width":130,"caption":"All Alone","height":130});
															thumbnails[6667248] = clik.newPhoto({"id":6667248,"src":"tower_bridge2q600_thumb.jpg","galleries_id":311718,"server_id":32,"link":"photo_6667248.html","width":130,"caption":"Tower Bridge","height":130});
															thumbnails[5518961] = clik.newPhoto({"id":5518961,"src":"liverbuildingstudy1_thumb.jpg","galleries_id":312958,"server_id":32,"link":"photo_5518961.html","width":130,"caption":"Liver Building study 1","height":74});
															thumbnails[5518972] = clik.newPhoto({"id":5518972,"src":"slaterbridge-littlelangdale_thumb.jpg","galleries_id":311718,"server_id":32,"link":"photo_5518972.html","width":130,"caption":"The Old Slaters Bridge, Little Langdale, Lake District","height":86});
															thumbnails[5595823] = clik.newPhoto({"id":5595823,"src":"bend-a-100405jl_thumb.jpg","galleries_id":311785,"server_id":32,"link":"photo_5595823.html","width":130,"caption":"Morecambe Bay, Study 1","height":86});
															thumbnails[5595827] = clik.newPhoto({"id":5595827,"src":"bend-b-100405jl_thumb.jpg","galleries_id":311785,"server_id":32,"link":"photo_5595827.html","width":130,"caption":"Morecambe Bay, Study 2","height":86});
															thumbnails[5670409] = clik.newPhoto({"id":5670409,"src":"iwm11a-100307jl_thumb.jpg","galleries_id":312958,"server_id":32,"link":"photo_5670409.html","width":130,"caption":"Imperial War Museum, Study 11","height":86});
															thumbnails[7896095] = clik.newPhoto({"id":7896095,"src":"chimneys3_thumb.jpg","galleries_id":312958,"server_id":32,"link":"photo_7896095.html","width":130,"caption":"Chimneys, Grange over Sands","height":130});
															thumbnails[7896115] = clik.newPhoto({"id":7896115,"src":"conway_castleQ6_thumb.jpg","galleries_id":311785,"server_id":32,"link":"photo_7896115.html","width":130,"caption":"Conwy Castle, North Wales","height":130});
															thumbnails[7896185] = clik.newPhoto({"id":7896185,"src":"maryport_light-T3_thumb.jpg","galleries_id":311785,"server_id":32,"link":"photo_7896185.html","width":130,"caption":"Maryport, Cumbria","height":130});
															thumbnails[7896193] = clik.newPhoto({"id":7896193,"src":"scarborough2_thumb.jpg","galleries_id":312958,"server_id":32,"link":"photo_7896193.html","width":130,"caption":"The Promenade, Scarborough","height":130});
															thumbnails[7896203] = clik.newPhoto({"id":7896203,"src":"tree1e_thumb.jpg","galleries_id":311785,"server_id":32,"link":"photo_7896203.html","width":130,"caption":"Spreading tree, Dallam Towers","height":130});
															thumbnails[7896212] = clik.newPhoto({"id":7896212,"src":"zig2_thumb.jpg","galleries_id":311785,"server_id":32,"link":"photo_7896212.html","width":130,"caption":"Zig-zag channel, Morecambe Bay","height":130});
															thumbnails[7896544] = clik.newPhoto({"id":7896544,"src":"rock2_thumb.jpg","galleries_id":311785,"server_id":32,"link":"photo_7896544.html","width":130,"caption":"Rock tree, Hampsfell, Grange over Sands","height":130});
															thumbnails[8912447] = clik.newPhoto({"id":8912447,"src":"dawn_11-11-07_600_thumb.jpg","galleries_id":435733,"server_id":32,"link":"photo_8912447.html","width":130,"caption":"Morecambe Bay Dawn 07-11-11","height":130});
															thumbnails[8912451] = clik.newPhoto({"id":8912451,"src":"s-600_thumb.jpg","galleries_id":435733,"server_id":32,"link":"photo_8912451.html","width":130,"caption":"Morecambe Bay","height":130});
															thumbnails[8912453] = clik.newPhoto({"id":8912453,"src":"low_cloud_600_thumb.jpg","galleries_id":435733,"server_id":32,"link":"photo_8912453.html","width":130,"caption":"Low cloud, Morecambe Bay","height":130});
															thumbnails[8912681] = clik.newPhoto({"id":8912681,"src":"bend_111121-600_thumb.jpg","galleries_id":435733,"server_id":32,"link":"photo_8912681.html","width":130,"caption":"Bend 21-11-11","height":130});
															thumbnails[8912686] = clik.newPhoto({"id":8912686,"src":"backlight_on_the_bend-600_thumb.jpg","galleries_id":435733,"server_id":32,"link":"photo_8912686.html","width":130,"caption":"Early light, Hest Bank, Morecambe Bay","height":130});
															thumbnails[8912689] = clik.newPhoto({"id":8912689,"src":"dawn_ray-600_thumb.jpg","galleries_id":435733,"server_id":32,"link":"photo_8912689.html","width":130,"caption":"Dawn Ray, Morecambe Bay","height":130});
															thumbnails[8912697] = clik.newPhoto({"id":8912697,"src":"pastel_bay_600_thumb.jpg","galleries_id":435733,"server_id":32,"link":"photo_8912697.html","width":130,"caption":"Pastel Bay","height":130});
															thumbnails[8912702] = clik.newPhoto({"id":8912702,"src":"wintery_arnside_knot_600_thumb.jpg","galleries_id":435733,"server_id":32,"link":"photo_8912702.html","width":130,"caption":"Arnside Knot, Winter","height":130});
															thumbnails[8912703] = clik.newPhoto({"id":8912703,"src":"wintery_bay_600_thumb.jpg","galleries_id":435733,"server_id":32,"link":"photo_8912703.html","width":130,"caption":"Morecambe Bay, Winter","height":130});
															thumbnails[8912735] = clik.newPhoto({"id":8912735,"src":"york_minster3-500_thumb.jpg","galleries_id":435733,"server_id":32,"link":"photo_8912735.html","width":130,"caption":"York Minster","height":130});
															thumbnails[8912738] = clik.newPhoto({"id":8912738,"src":"last_leaf_york_minster_thumb.jpg","galleries_id":435733,"server_id":32,"link":"photo_8912738.html","width":130,"caption":"Last Leaf, York Minster","height":130});
															thumbnails[8912745] = clik.newPhoto({"id":8912745,"src":"hest_bank_cloud-b6001_thumb.jpg","galleries_id":435733,"server_id":32,"link":"photo_8912745.html","width":130,"caption":"Hest Bank Cloud","height":130});
															thumbnails[8913480] = clik.newPhoto({"id":8913480,"src":"curve_600_thumb.jpg","galleries_id":435733,"server_id":32,"link":"photo_8913480.html","width":130,"caption":"Channel ring, Morecambe Bay","height":130});
															thumbnails[8915778] = clik.newPhoto({"id":8915778,"src":"s_grainy_C_thumb.jpg","galleries_id":435733,"server_id":32,"link":"photo_8915778.html","width":130,"caption":"Morecambe Bay 'S'","height":130});
															thumbnails[7705268] = clik.newPhoto({"id":7705268,"src":"greetingscards-8-upt_thumb.jpg","galleries_id":417012,"server_id":32,"link":"photo_7705268.html","width":130,"caption":"Greetings cards","height":130});
															thumbnails[6667054] = clik.newPhoto({"id":6667054,"src":"cyborgkissAcr3-600s_thumb.jpg","galleries_id":312958,"server_id":32,"link":"photo_6667054.html","width":130,"caption":"Cyborg Kiss ~ The Lloyds Building, London","height":195});
															thumbnails[5518523] = clik.newPhoto({"id":5518523,"src":"mistarnsideknot_thumb.jpg","galleries_id":311785,"server_id":32,"link":"photo_5518523.html","width":130,"caption":"Mist, Arnside Knot","height":86});
															thumbnails[7706054] = clik.newPhoto({"id":7706054,"src":"postcards-8-upt_thumb.jpg","galleries_id":417012,"server_id":32,"link":"photo_7706054.html","width":130,"caption":"Set of 8 different postcards","height":130});
															thumbnails[5518127] = clik.newPhoto({"id":5518127,"src":"dawnbendwithred_thumb.jpg","galleries_id":311785,"server_id":32,"link":"photo_5518127.html","width":130,"caption":"Dawn s-bend with red","height":86});
															thumbnails[5518155] = clik.newPhoto({"id":5518155,"src":"hamsfelsnowtreestudy5_thumb.jpg","galleries_id":311718,"server_id":32,"link":"photo_5518155.html","width":130,"caption":"Hampsfell Snow Tree study 5","height":86});
															thumbnails[5518141] = clik.newPhoto({"id":5518141,"src":"elterwatercottages_thumb.jpg","galleries_id":311785,"server_id":32,"link":"photo_5518141.html","width":130,"caption":"Slaters' cottages, Elterwater","height":130});
															thumbnails[5518718] = clik.newPhoto({"id":5518718,"src":"ribblehead_thumb.jpg","galleries_id":312958,"server_id":32,"link":"photo_5518718.html","width":130,"caption":"Ribble Head Viaduct","height":195});
															thumbnails[5518002] = clik.newPhoto({"id":5518002,"src":"chimneys_thumb.jpg","galleries_id":312958,"server_id":32,"link":"photo_5518002.html","width":130,"caption":"Cartmel Chimneys","height":195});
															thumbnails[5518575] = clik.newPhoto({"id":5518575,"src":"pinkfarmwhitefarm_thumb.jpg","galleries_id":311785,"server_id":32,"link":"photo_5518575.html","width":130,"caption":"Pink farm, white farm","height":195});
															thumbnails[5518424] = clik.newPhoto({"id":5518424,"src":"knotsand_thumb.jpg","galleries_id":311718,"server_id":32,"link":"photo_5518424.html","width":130,"caption":"Knot and sand","height":195});
															thumbnails[5518177] = clik.newPhoto({"id":5518177,"src":"inletandknot_thumb.jpg","galleries_id":312958,"server_id":32,"link":"photo_5518177.html","width":130,"caption":"Inlet and Knot","height":130});
															thumbnails[5518121] = clik.newPhoto({"id":5518121,"src":"cloudoverknot_thumb.jpg","galleries_id":311785,"server_id":32,"link":"photo_5518121.html","width":130,"caption":"Cloud over the Knot, Study 1","height":130});
															thumbnails[7896138] = clik.newPhoto({"id":7896138,"src":"howgills-800_thumb.jpg","galleries_id":311785,"server_id":32,"link":"photo_7896138.html","width":130,"caption":"Distant Howgills, Cumbria","height":130});
															thumbnails[5518162] = clik.newPhoto({"id":5518162,"src":"hamsfelsnowtreestudy8_thumb.jpg","galleries_id":311718,"server_id":32,"link":"photo_5518162.html","width":130,"caption":"Hampsfell Snow Tree study 8","height":130});
															thumbnails[7966577] = clik.newPhoto({"id":7966577,"src":"to_grassmere-aCRb600_thumb.jpg","galleries_id":311785,"server_id":32,"link":"photo_7966577.html","width":130,"caption":"Above Grasmere, Tree study 3","height":130});
															thumbnails[5518146] = clik.newPhoto({"id":5518146,"src":"grasmere6stark_thumb.jpg","galleries_id":312958,"server_id":32,"link":"photo_5518146.html","width":130,"caption":"Grasmere reflections","height":130});
															thumbnails[7966579] = clik.newPhoto({"id":7966579,"src":"to_grassmere2b600_thumb.jpg","galleries_id":311785,"server_id":32,"link":"photo_7966579.html","width":130,"caption":"Above Grasmere, Tree study 4","height":130});
															thumbnails[5517999] = clik.newPhoto({"id":5517999,"src":"cartmelmisttree_thumb.jpg","galleries_id":311718,"server_id":32,"link":"photo_5517999.html","width":130,"caption":"Tree in mist","height":130});
															thumbnails[5518272] = clik.newPhoto({"id":5518272,"src":"inletknotcloud_thumb.jpg","galleries_id":311785,"server_id":32,"link":"photo_5518272.html","width":130,"caption":"Inlet, Knot and cloud","height":195});
															thumbnails[5518603] = clik.newPhoto({"id":5518603,"src":"pumphouse2_thumb.jpg","galleries_id":312958,"server_id":32,"link":"photo_5518603.html","width":130,"caption":"The Pumphouse, Albert Dock","height":195});
															thumbnails[5518748] = clik.newPhoto({"id":5518748,"src":"springbankfarm050708_thumb.jpg","galleries_id":311785,"server_id":32,"link":"photo_5518748.html","width":130,"caption":"Springbank Farm elephant clouds","height":195});
															thumbnails[5518726] = clik.newPhoto({"id":5518726,"src":"roatopeelisland_thumb.jpg","galleries_id":311785,"server_id":32,"link":"photo_5518726.html","width":130,"caption":"Roa jetty with Peel Island","height":197});
															thumbnails[5518742] = clik.newPhoto({"id":5518742,"src":"springbankfarm_thumb.jpg","galleries_id":311785,"server_id":32,"link":"photo_5518742.html","width":130,"caption":"Springbank Farm track","height":195});
															thumbnails[5518787] = clik.newPhoto({"id":5518787,"src":"thesnicket_thumb.jpg","galleries_id":311785,"server_id":32,"link":"photo_5518787.html","width":130,"caption":"The Snicket, Grange over Sands","height":195});
															thumbnails[5518729] = clik.newPhoto({"id":5518729,"src":"snowyinlet_thumb.jpg","galleries_id":311718,"server_id":32,"link":"photo_5518729.html","width":130,"caption":"Snowy inlet","height":86});
															thumbnails[5506337] = clik.newPhoto({"id":5506337,"src":"elterwater-lingmoor-fell_thumb.jpg","galleries_id":311718,"server_id":32,"link":"photo_5506337.html","width":130,"caption":"Lingmoor Fell from Little Langdale","height":86});
															thumbnails[5518799] = clik.newPhoto({"id":5518799,"src":"weekendretreat_thumb.jpg","galleries_id":311785,"server_id":32,"link":"photo_5518799.html","width":130,"caption":"Surprise view, Derwent Water","height":86});
															thumbnails[5505905] = clik.newPhoto({"id":5505905,"src":"bend_thumb.jpg","galleries_id":312958,"server_id":32,"link":"photo_5505905.html","width":130,"caption":"The main channel in Morecambe Bay from Grange over Sands","height":86});
															thumbnails[5518952] = clik.newPhoto({"id":5518952,"src":"devilsbridgedark_thumb.jpg","galleries_id":311718,"server_id":32,"link":"photo_5518952.html","width":130,"caption":"Devils Bridge Reflections","height":86});
															thumbnails[5517993] = clik.newPhoto({"id":5517993,"src":"cartmelchurchyard_thumb.jpg","galleries_id":311718,"server_id":32,"link":"photo_5517993.html","width":130,"caption":"Church Yard","height":130});
															thumbnails[5518600] = clik.newPhoto({"id":5518600,"src":"priory500_thumb.jpg","galleries_id":311785,"server_id":32,"link":"photo_5518600.html","width":130,"caption":"Cartmel Priory","height":130});
															thumbnails[5518143] = clik.newPhoto({"id":5518143,"src":"gargoyle-ronchamp_thumb.jpg","galleries_id":312958,"server_id":32,"link":"photo_5518143.html","width":130,"caption":"Gargoyle, Ronchamp","height":130});
															thumbnails[5518779] = clik.newPhoto({"id":5518779,"src":"theeleven_thumb.jpg","galleries_id":311785,"server_id":32,"link":"photo_5518779.html","width":130,"caption":"The Eleven","height":130});
															thumbnails[5518612] = clik.newPhoto({"id":5518612,"src":"rc2_thumb.jpg","galleries_id":312958,"server_id":32,"link":"photo_5518612.html","width":130,"caption":"Paddy's Wigwam","height":130});
															thumbnails[5518427] = clik.newPhoto({"id":5518427,"src":"liverpoolanglican_thumb.jpg","galleries_id":311785,"server_id":32,"link":"photo_5518427.html","width":130,"caption":"Liverpool Anglican Cathedral","height":130});
															thumbnails[6667305] = clik.newPhoto({"id":6667305,"src":"breakfast_at_Hotel_Florida600_thumb.jpg","galleries_id":311718,"server_id":32,"link":"photo_6667305.html","width":130,"caption":"Breakfast at the Florida Hotel, Biarritz","height":86});
															thumbnails[5518880] = clik.newPhoto({"id":5518880,"src":"cambridgekingscollege_thumb.jpg","galleries_id":311785,"server_id":32,"link":"photo_5518880.html","width":130,"caption":"Kings College Chapel, Cambridge","height":130});
															thumbnails[5515395] = clik.newPhoto({"id":5515395,"src":"fallingsnow-study1_thumb.jpg","galleries_id":311718,"server_id":32,"link":"photo_5515395.html","width":130,"caption":"Falling snow, study 1","height":195});
															thumbnails[7892265] = clik.newPhoto({"id":7892265,"src":"dad_thumb.jpg","galleries_id":312267,"server_id":32,"link":"photo_7892265.html","width":130,"caption":"Grampa","height":130});
															thumbnails[7896043] = clik.newPhoto({"id":7896043,"src":"micksBG600_thumb.jpg","galleries_id":312267,"server_id":32,"link":"photo_7896043.html","width":130,"caption":"Mick's BG","height":130});
															thumbnails[7896247] = clik.newPhoto({"id":7896247,"src":"gill1486_thumb.jpg","galleries_id":312267,"server_id":32,"link":"photo_7896247.html","width":130,"caption":"The Gills","height":130});
															thumbnails[7896300] = clik.newPhoto({"id":7896300,"src":"linda-alan-doorway1_thumb.jpg","galleries_id":417024,"server_id":32,"link":"photo_7896300.html","width":130,"caption":"Wedding photography - Linda and Alan","height":130});
															thumbnails[7896303] = clik.newPhoto({"id":7896303,"src":"linda-alan-car_thumb.jpg","galleries_id":417024,"server_id":32,"link":"photo_7896303.html","width":130,"caption":"Wedding photography - Linda and Alan","height":130});
															thumbnails[7896305] = clik.newPhoto({"id":7896305,"src":"linda-alan-buggy_thumb.jpg","galleries_id":417024,"server_id":32,"link":"photo_7896305.html","width":130,"caption":"Wedding photography - Linda and Alan","height":130});
															thumbnails[7706390] = clik.newPhoto({"id":7706390,"src":"lindalaugh-s_thumb.jpg","galleries_id":417024,"server_id":32,"link":"photo_7706390.html","width":130,"caption":"Linda and Alan","height":130});
															thumbnails[5518568] = clik.newPhoto({"id":5518568,"src":"mum_thumb.jpg","galleries_id":312267,"server_id":32,"link":"photo_5518568.html","width":130,"caption":"Gran","height":195});
															thumbnails[5518429] = clik.newPhoto({"id":5518429,"src":"liz_thumb.jpg","galleries_id":312267,"server_id":32,"link":"photo_5518429.html","width":130,"caption":"Liz","height":196});
															thumbnails[5518571] = clik.newPhoto({"id":5518571,"src":"newguitar_thumb.jpg","galleries_id":312267,"server_id":32,"link":"photo_5518571.html","width":130,"caption":"New guitar","height":195});
															thumbnails[5519346] = clik.newPhoto({"id":5519346,"src":"110au-vienna-st-stephens400_thumb.jpg","galleries_id":312523,"server_id":32,"link":"photo_5519346.html","width":130,"caption":"St Stephens Cathedral, Vienna","height":195});
															thumbnails[5519349] = clik.newPhoto({"id":5519349,"src":"120au-vienna-museum-square600_thumb.jpg","galleries_id":312523,"server_id":32,"link":"photo_5519349.html","width":130,"caption":"Museum Square, Vienna","height":88});
															thumbnails[8933573] = clik.newPhoto({"id":8933573,"src":"notre_dame_-_st_omer-s600_thumb.jpg","galleries_id":312523,"server_id":32,"link":"photo_8933573.html","width":130,"caption":"Notre Dame Cathedral, St Omer","height":130});
															thumbnails[8933579] = clik.newPhoto({"id":8933579,"src":"amiens_cathedral-s600_thumb.jpg","galleries_id":312523,"server_id":32,"link":"photo_8933579.html","width":130,"caption":"Amiens Cathedral, France","height":130});
															thumbnails[8933583] = clik.newPhoto({"id":8933583,"src":"bayeux_cathedral-s600_thumb.jpg","galleries_id":312523,"server_id":32,"link":"photo_8933583.html","width":130,"caption":"Bayeux Cathedral, France","height":130});
															thumbnails[8933602] = clik.newPhoto({"id":8933602,"src":"rouen_cathedral-s600_thumb.jpg","galleries_id":312523,"server_id":32,"link":"photo_8933602.html","width":130,"caption":"Rouen Cathedral","height":130});
															thumbnails[8933608] = clik.newPhoto({"id":8933608,"src":"st_maclou_church_-_rouen-s600_thumb.jpg","galleries_id":312523,"server_id":32,"link":"photo_8933608.html","width":130,"caption":"St Maclou Church, Rouen","height":130});
															thumbnails[5519341] = clik.newPhoto({"id":5519341,"src":"100au-vienna-belvedere400_thumb.jpg","galleries_id":312523,"server_id":32,"link":"photo_5519341.html","width":130,"caption":"Belvedere, Vienna, Austria","height":192});
															thumbnails[5519352] = clik.newPhoto({"id":5519352,"src":"300fr-paris-notre-damme600_thumb.jpg","galleries_id":312523,"server_id":32,"link":"photo_5519352.html","width":130,"caption":"Notre Dame, Paris","height":194});
															thumbnails[5519359] = clik.newPhoto({"id":5519359,"src":"400fr-reims-cathedral600_thumb.jpg","galleries_id":312523,"server_id":32,"link":"photo_5519359.html","width":130,"caption":"Reims Cathedral","height":194});
															thumbnails[5519361] = clik.newPhoto({"id":5519361,"src":"500fr-strasbourg-cathedral_thumb.jpg","galleries_id":312523,"server_id":32,"link":"photo_5519361.html","width":130,"caption":"Strasbourg Cathedral","height":194});
															thumbnails[5519363] = clik.newPhoto({"id":5519363,"src":"1100en-st-pauls-london_thumb.jpg","galleries_id":312268,"server_id":32,"link":"photo_5519363.html","width":130,"caption":"St Pauls Cathedral, London","height":137});
															thumbnails[5519366] = clik.newPhoto({"id":5519366,"src":"1200en-natural-history-museum_thumb.jpg","galleries_id":312268,"server_id":32,"link":"photo_5519366.html","width":130,"caption":"Natural History Museum, London","height":126});
															thumbnails[5519368] = clik.newPhoto({"id":5519368,"src":"1300en-london-towerbridge1-600_thumb.jpg","galleries_id":312268,"server_id":32,"link":"photo_5519368.html","width":130,"caption":"Tower Bridge, London","height":193});
															thumbnails[5519370] = clik.newPhoto({"id":5519370,"src":"1500en-hampton-court-ent_thumb.jpg","galleries_id":312268,"server_id":32,"link":"photo_5519370.html","width":130,"caption":"Hampton Court, London","height":160});
															thumbnails[5519371] = clik.newPhoto({"id":5519371,"src":"2100en-liver-building_thumb.jpg","galleries_id":312268,"server_id":32,"link":"photo_5519371.html","width":130,"caption":"Liver Building, Liverpool","height":183});
															thumbnails[5519372] = clik.newPhoto({"id":5519372,"src":"2200en-baltic-fleet_thumb.jpg","galleries_id":312268,"server_id":32,"link":"photo_5519372.html","width":130,"caption":"The Baltic Fleet, Liverpool","height":189});
															thumbnails[5519373] = clik.newPhoto({"id":5519373,"src":"3000en-bowes-museum600_thumb.jpg","galleries_id":312268,"server_id":32,"link":"photo_5519373.html","width":130,"caption":"Bowes Museum, County Durham","height":192});
															thumbnails[5519376] = clik.newPhoto({"id":5519376,"src":"3100en-corfe-castle600_thumb.jpg","galleries_id":312268,"server_id":32,"link":"photo_5519376.html","width":130,"caption":"Corfe Castle, Dorset","height":88});
															thumbnails[5519377] = clik.newPhoto({"id":5519377,"src":"4000en-keswick-moot-hall500_thumb.jpg","galleries_id":312268,"server_id":32,"link":"photo_5519377.html","width":130,"caption":"Moot Hall, Keswick","height":198});
															thumbnails[5519386] = clik.newPhoto({"id":5519386,"src":"5000genevacafes_thumb.jpg","galleries_id":312523,"server_id":32,"link":"photo_5519386.html","width":130,"caption":"Geneva Cafes","height":193});
															thumbnails[5519379] = clik.newPhoto({"id":5519379,"src":"6100en-manchester_stannes400_thumb.jpg","galleries_id":312268,"server_id":32,"link":"photo_5519379.html","width":130,"caption":"St Annes, Manchester","height":194});
															thumbnails[5519380] = clik.newPhoto({"id":5519380,"src":"7000gatehousecanterbury_thumb.jpg","galleries_id":312268,"server_id":32,"link":"photo_5519380.html","width":130,"caption":"Gate House, Canterbury Cathedral","height":193});
															thumbnails[5519382] = clik.newPhoto({"id":5519382,"src":"9000wa-carew-castle500_thumb.jpg","galleries_id":312268,"server_id":32,"link":"photo_5519382.html","width":130,"caption":"Carew Castle, Pembrokeshire, Wales","height":192});
															thumbnails[5519384] = clik.newPhoto({"id":5519384,"src":"9100wa-st-davids-cathedral500_thumb.jpg","galleries_id":312268,"server_id":32,"link":"photo_5519384.html","width":130,"caption":"St Davids Cathedral, Wales","height":192});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[435733] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"New","link":"gallery_435733.html","maxRecords":0.0,"photoIDs":[8152671.0,8152747.0,8912447.0,8912451.0,8912453.0,8912681.0,8912686.0,8912689.0,8912697.0,8912702.0,8912703.0,8912735.0,8912738.0,8912745.0,8913480.0,8915778.0],"skipIndex":0,"section_code":"gallery","featured_images":"8915778,8913480,8912745,8912738,8912735,8912703,8912702,8912697,8912689,8912686","id":435733,"singleSection":false});				  						galleries[312958] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Bold","link":"gallery_312958.html","maxRecords":0.0,"photoIDs":[5518961.0,5670409.0,7896095.0,7896193.0,6667054.0,5518718.0,5518002.0,5518177.0,5518146.0,5518603.0,5505905.0,5518143.0,5518612.0],"skipIndex":0,"section_code":"gallery","featured_images":"7896193,7896095,6667054,5670409,5518961,5518718,5518612,5518603,5518177,5518146","id":312958,"singleSection":false});				  						galleries[311785] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Moody","link":"gallery_311785.html","maxRecords":0.0,"photoIDs":[7990439.0,6707582.0,6689056.0,6667309.0,6667313.0,5595823.0,5595827.0,7896115.0,7896185.0,7896203.0,7896212.0,7896544.0,5518523.0,5518127.0,5518141.0,5518575.0,5518121.0,7896138.0,7966577.0,7966579.0,5518272.0,5518748.0,5518726.0,5518742.0,5518787.0,5518799.0,5518600.0,5518779.0,5518427.0,5518880.0],"skipIndex":0,"section_code":"gallery","featured_images":5518523.0,"id":311785,"singleSection":false});				  						galleries[311718] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Pictorial","link":"gallery_311718.html","maxRecords":0.0,"photoIDs":[6667248.0,5518972.0,5518155.0,5518424.0,5518162.0,5517999.0,5518729.0,5506337.0,5518952.0,5517993.0,6667305.0,5515395.0],"skipIndex":0,"section_code":"gallery","featured_images":"6667305,6667248,5518972,5518952,5518729,5518424,5518162,5518155,5517999,5517993","id":311718,"singleSection":false});				  						galleries[417012] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Cards","link":"gallery_417012.html","maxRecords":0.0,"photoIDs":[7705268.0,7706054.0],"skipIndex":0,"section_code":"gallery","featured_images":"7706054,7705268","id":417012,"singleSection":false});				  						galleries[417024] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wedding photography","link":"section511449_417024.html","maxRecords":0.0,"photoIDs":[7896300.0,7896303.0,7896305.0,7706390.0],"skipIndex":0,"section_code":"section511449","featured_images":"7896305,7896303,7896300,7706390","id":417024,"singleSection":false});				  						galleries[312267] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portrait photography","link":"section511449_312267.html","maxRecords":0.0,"photoIDs":[7892265.0,7896043.0,7896247.0,5518568.0,5518429.0,5518571.0],"skipIndex":0,"section_code":"section511449","featured_images":"7896247,7896043,7892265,5518571,5518568,5518429","id":312267,"singleSection":false});				  						galleries[312268] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Watercolours, UK","link":"section374206_312268.html","maxRecords":0.0,"photoIDs":[5519363.0,5519366.0,5519368.0,5519370.0,5519371.0,5519372.0,5519373.0,5519376.0,5519377.0,5519379.0,5519380.0,5519382.0,5519384.0],"skipIndex":0,"section_code":"section374206","featured_images":5519363.0,"id":312268,"singleSection":false});				  						galleries[312523] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Watercolour paintings, Europe","link":"section374206_312523.html","maxRecords":0.0,"photoIDs":[5519346.0,5519349.0,8933573.0,8933579.0,8933583.0,8933602.0,8933608.0,5519341.0,5519352.0,5519359.0,5519361.0,5519386.0],"skipIndex":0,"section_code":"section374206","featured_images":5519352.0,"id":312523,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[234676] = '6707582,6689056,6667054,5518718,7966577,7966579,5505905';
imageSets[1] = '8915778,8913480,8912745,8912703,8912702,8912697,8912453,8912447';
imageSets[2] = '5518523,5519352,5519363';
imageSets[3] = '8933608,8933602,8933583,8933579,8933573,8915778,8913480,8912745,8912738,8912735,8912703,8912702,8912697,8912689,8912686,8912681,8912453,8912451,8912447,8152747,8152671,7990439,7966579,7966577,7896544,7896305,7896303,7896300,7896247,7896212,7896203,7896193,7896185,7896138,7896115,7896095,7896043,7892265,7706390,7706054,7705268,6707582,6689056,6667313,6667309,6667305,6667248,6667054,5670409,5595827';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/leechy/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/leechy/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/leechy/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/leechy/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/leechy/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/leechy/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/leechy/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/leechy/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/leechy/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/leechy/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/leechy/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/leechy/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/leechy/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/leechy/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/leechy/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/leechy/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/leechy/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/leechy/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/leechy/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/leechy/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/leechy/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/leechy/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/leechy/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/leechy/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/leechy/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/leechy/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/leechy/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 = 'The John Leech Studio: ' + 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>';
	}
				
	temp += this.fnGetPaymentInfo();
				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>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else if (this.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="updateCartValue($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';
		
		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 += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm">';
			temp += '	<input type="hidden" name="item_option" value="' + item_option + '">';
			temp += '	<input type="hidden" name="site" value="LEECHY">';
			temp += '	<input type="hidden" name="item_number" value="'+ this.id +'">';
			temp += '	<input type="hidden" name="quantity" value="1">';
						temp += '	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\'\;" onmouseout="this.className=\'button\'\;" type="Button">';
							temp += '	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';
			temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
			temp += '<div id="confirmContainer">';
			temp += '<div id="paymentConfirm">Item added to cart</div>';
			temp += '</div>';
			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;
	}
}

			

