window.thumbnails = {};
															thumbnails[203411] = clik.newPhoto({"id":203411,"src":"Impending Beach Storm Koh Samui Thailand_thumb.jpg","galleries_id":18475,"server_id":18,"link":"photo_203411.html","width":130,"caption":"Impending Beach Storm","height":183});
															thumbnails[203416] = clik.newPhoto({"id":203416,"src":"Perch Rock Lighthouse New Brighton The Wirral Merseyside UK_thumb.jpg","galleries_id":18477,"server_id":18,"link":"photo_203416.html","width":130,"caption":"Perch Rock Lighthouse New Brighton","height":195});
															thumbnails[203425] = clik.newPhoto({"id":203425,"src":"Scaleber Force Waterfall Near Settle North Yorkshire UK_thumb.jpg","galleries_id":18476,"server_id":18,"link":"photo_203425.html","width":130,"caption":"Scaleber Force Waterfall","height":161});
															thumbnails[203431] = clik.newPhoto({"id":203431,"src":"Approaching Beach Storm Koh Samui Thailand_thumb.jpg","galleries_id":18475,"server_id":18,"link":"photo_203431.html","width":130,"caption":"Approaching Beach Storm","height":183});
															thumbnails[203441] = clik.newPhoto({"id":203441,"src":"The Runcorn Road Bridge at Sunset Runcorn Cheshire UK_thumb.jpg","galleries_id":18473,"server_id":18,"link":"photo_203441.html","width":130,"caption":"The Runcorn Road Bridge at Sunset","height":141});
															thumbnails[203444] = clik.newPhoto({"id":203444,"src":"Winter View in Snow of Shutlinsloe Cheshire Uk_thumb.jpg","galleries_id":18473,"server_id":18,"link":"photo_203444.html","width":130,"caption":"Winter View in Snow of Shutlinsloe","height":86});
															thumbnails[203447] = clik.newPhoto({"id":203447,"src":"Autumn View of Shutlinsloe Cheshire UK_thumb.jpg","galleries_id":18473,"server_id":18,"link":"photo_203447.html","width":130,"caption":"Autumn View of Shutlinsloe","height":86});
															thumbnails[203452] = clik.newPhoto({"id":203452,"src":"Little Moreton Hall in Winter Nr Congleton Chesire UK_thumb.jpg","galleries_id":18473,"server_id":18,"link":"photo_203452.html","width":130,"caption":"Little Moreton Hall in Winter","height":91});
															thumbnails[203455] = clik.newPhoto({"id":203455,"src":"Footbridge at Salford Quays Manchester UK_thumb.jpg","galleries_id":18471,"server_id":18,"link":"photo_203455.html","width":130,"caption":"Footbridge at Salford Quays","height":86});
															thumbnails[203458] = clik.newPhoto({"id":203458,"src":"Golden Riverbed at Black Clough Derbyshire UK_thumb.jpg","galleries_id":18474,"server_id":18,"link":"photo_203458.html","width":130,"caption":"Golden Riverbed","height":91});
															thumbnails[203461] = clik.newPhoto({"id":203461,"src":"Winters Morning at Little Moreton Hall Nr Congleton Cheshire UK_thumb.jpg","galleries_id":18473,"server_id":18,"link":"photo_203461.html","width":130,"caption":"Winters Morning at Little Moreton","height":86});
															thumbnails[203463] = clik.newPhoto({"id":203463,"src":"Trig Point at Cloudside Nr Congleton Cheshire UK_thumb.jpg","galleries_id":18473,"server_id":18,"link":"photo_203463.html","width":130,"caption":"Trig Point ","height":196});
															thumbnails[203464] = clik.newPhoto({"id":203464,"src":"Evening Light on Derelict Barn in The Peak District Staffordshire UK_thumb.jpg","galleries_id":18474,"server_id":18,"link":"photo_203464.html","width":130,"caption":"Evening Light on Derelict Barn","height":86});
															thumbnails[203465] = clik.newPhoto({"id":203465,"src":"First Light On Cheweng Beach Thailand_thumb.jpg","galleries_id":18475,"server_id":18,"link":"photo_203465.html","width":130,"caption":"First Light ","height":196});
															thumbnails[203466] = clik.newPhoto({"id":203466,"src":"Evening Snow on Derelict Barn in The Peak District Staffordshire UK_thumb.jpg","galleries_id":18474,"server_id":18,"link":"photo_203466.html","width":130,"caption":"Evening Snow on Derelict Barn","height":86});
															thumbnails[204334] = clik.newPhoto({"id":204334,"src":"Winter Sun at Ashness Bridge and Catbells Near Keswick Lake District National Park Cumbria UK_thumb.jpg","galleries_id":18617,"server_id":18,"link":"photo_204334.html","width":130,"caption":" Ashness Bridge","height":145});
															thumbnails[212018] = clik.newPhoto({"id":212018,"src":"Water Flow Over Riverbed Yorkshire Dales UK_thumb.jpg","galleries_id":18476,"server_id":18,"link":"photo_212018.html","width":130,"caption":"Water Flow Over Riverbed ","height":172});
															thumbnails[212025] = clik.newPhoto({"id":212025,"src":"Moving Flowers in Meadow Yorkshire Dales UK_thumb.jpg","galleries_id":18476,"server_id":18,"link":"photo_212025.html","width":130,"caption":"Moving Flowers in Meadow ","height":86});
															thumbnails[212035] = clik.newPhoto({"id":212035,"src":"Torrevieja by Night Costa Blanca Spain_thumb.jpg","galleries_id":18475,"server_id":18,"link":"photo_212035.html","width":130,"caption":"Torrevieja by Night ","height":64});
															thumbnails[236037] = clik.newPhoto({"id":236037,"src":"DSC_4559 Boston_thumb.jpg","galleries_id":18475,"server_id":18,"link":"photo_236037.html","width":130,"caption":"Boston","height":86});
															thumbnails[238379] = clik.newPhoto({"id":238379,"src":"EDR_0711 Canal Boat Moored By Cottage Cheshire UK _thumb.jpg","galleries_id":18473,"server_id":18,"link":"photo_238379.html","width":130,"caption":"Boat moored by cottage in evening sunshine on the Cheshire Canal","height":84});
															thumbnails[238380] = clik.newPhoto({"id":238380,"src":"EDR_0744 Setting Sun On Cloudside Viewed From Bosley Locks Cheshire UK_thumb.jpg","galleries_id":18473,"server_id":18,"link":"photo_238380.html","width":130,"caption":"Setting sun on Cloudside viewed from Bosley locks Cheshire UK","height":194});
															thumbnails[264878] = clik.newPhoto({"id":264878,"src":"DSC_2634 Perch Rock Lighthouse New Brighton_thumb.jpg","galleries_id":18477,"server_id":18,"link":"photo_264878.html","width":130,"caption":"Perch Rock Lighthouse New Brighton","height":195});
															thumbnails[278680] = clik.newPhoto({"id":278680,"src":"DSC_5983 Cologne Cathedral _thumb.jpg","galleries_id":18475,"server_id":18,"link":"photo_278680.html","width":130,"caption":"Cologne Cathedral Germany","height":88});
															thumbnails[325838] = clik.newPhoto({"id":325838,"src":"EDR_1957 The Burj Al Arab Hotel At Night Dubai United Arab Emirates_thumb.jpg","galleries_id":18475,"server_id":18,"link":"photo_325838.html","width":130,"caption":"The Burj Al Arab ","height":194});
															thumbnails[339293] = clik.newPhoto({"id":339293,"src":"EDR_2163 Hay Bales at Jodrell Bank Cheshire UK_thumb.jpg","galleries_id":18473,"server_id":18,"link":"photo_339293.html","width":130,"caption":"Hay Bales at Jodrell Bank Cheshire","height":194});
															thumbnails[366774] = clik.newPhoto({"id":366774,"src":"EDR_2395Jodrell Bank With Blue Skies_thumb.jpg","galleries_id":18473,"server_id":18,"link":"photo_366774.html","width":130,"caption":"Jodrell Bank Radio Telescope ","height":194});
															thumbnails[463874] = clik.newPhoto({"id":463874,"src":"EDR_2981 Old Shed With Red Rusty Roof And Dark Sky East Coast Barbados W 2_thumb.jpg","galleries_id":18475,"server_id":18,"link":"photo_463874.html","width":130,"caption":"Disused shed ","height":72});
															thumbnails[482762] = clik.newPhoto({"id":482762,"src":"81 Morning Light at Pooley Bridge Boathouse Ullswater Lake District Cumbria UK_thumb.jpg","galleries_id":18617,"server_id":18,"link":"photo_482762.html","width":130,"caption":"Pooley Bridge Boathouse ","height":196});
															thumbnails[500199] = clik.newPhoto({"id":500199,"src":"EDR_3357 First light At Bottoms Reservoir With Croker Hill On The Horizon Langley Nr Macclesfield Cheshire UK_thumb.jpg","galleries_id":18473,"server_id":18,"link":"photo_500199.html","width":130,"caption":"First light ","height":90});
															thumbnails[500200] = clik.newPhoto({"id":500200,"src":"EDR_3370 Waterfall At Scaleber Force Yorkshire UK_thumb.jpg","galleries_id":18476,"server_id":18,"link":"photo_500200.html","width":130,"caption":"Waterfall ","height":87});
															thumbnails[525662] = clik.newPhoto({"id":525662,"src":"EDR_3425 Moss Covered Rock At Scaleber Force Yorkshire UK_thumb.jpg","galleries_id":18476,"server_id":18,"link":"photo_525662.html","width":130,"caption":"Moss Covered Rock At Scaleber ","height":194});
															thumbnails[525670] = clik.newPhoto({"id":525670,"src":"EDR_3441 Scaleber Force Settle Yorkshire UK_thumb.jpg","galleries_id":18476,"server_id":18,"link":"photo_525670.html","width":130,"caption":"Scaleber Force","height":87});
															thumbnails[575242] = clik.newPhoto({"id":575242,"src":"EDR_3864 Icy log On Derwent Water With View Of Catbells Lake District Cumbria UK_thumb.jpg","galleries_id":18617,"server_id":18,"link":"photo_575242.html","width":130,"caption":"Icy log On Derwent Water With View Of Catbells ","height":194});
															thumbnails[596198] = clik.newPhoto({"id":596198,"src":"EDR_3836 Frosted Wooden Rowing Boat At Derwentwater Lake District UK _thumb.jpg","galleries_id":18617,"server_id":18,"link":"photo_596198.html","width":130,"caption":"Wooden Rowing Boat ","height":194});
															thumbnails[632832] = clik.newPhoto({"id":632832,"src":"482 The Packhorse Bridge and River Dane At Three Shires Head Peak District National Park UK_thumb.jpg","galleries_id":18474,"server_id":18,"link":"photo_632832.html","width":130,"caption":"Packhorse Bridge ","height":194});
															thumbnails[632835] = clik.newPhoto({"id":632835,"src":"483 Old Packhorse Bridge and River Dane Three Shires Head Peak District National Park UK_thumb.jpg","galleries_id":18474,"server_id":18,"link":"photo_632835.html","width":130,"caption":"Old Packhorse Bridge and River Dane ","height":87});
															thumbnails[646170] = clik.newPhoto({"id":646170,"src":"EDR_4159 Kaiser Wilhelm Memorial By Night With Light Trails Berlin Germany_thumb.jpg","galleries_id":18475,"server_id":18,"link":"photo_646170.html","width":130,"caption":"Kaiser Wilhelm Memorial By Night With Light Trails ","height":86});
															thumbnails[672259] = clik.newPhoto({"id":672259,"src":"481 Old Packhorse Bridge and River Dane At Three Shires Head Peak District National Park UK_thumb.jpg","galleries_id":18473,"server_id":18,"link":"photo_672259.html","width":130,"caption":"Old Packhorse Bridge and River Dane At Three Shires Head Peak District National Park ","height":194});
															thumbnails[996773] = clik.newPhoto({"id":996773,"src":"EDR_5086 Outdoor Ice Rink At Night Nathan Phillips Square Toronto Canada_thumb.jpg","galleries_id":18475,"server_id":18,"link":"photo_996773.html","width":130,"caption":"Ice Rink At Night","height":86});
															thumbnails[996790] = clik.newPhoto({"id":996790,"src":"EDR_4927 Sunset At The Jodrell Bank Mark One Radio Telescope Near Goostrey Cheshire_thumb.jpg","galleries_id":18473,"server_id":18,"link":"photo_996790.html","width":130,"caption":"Jodrell Sunset ","height":66});
															thumbnails[1416753] = clik.newPhoto({"id":1416753,"src":"Back Tor Losehill_thumb.jpg","galleries_id":18474,"server_id":18,"link":"photo_1416753.html","width":130,"caption":"Back Tor Losehill","height":87});
															thumbnails[1443357] = clik.newPhoto({"id":1443357,"src":"Sun Stones Tree_thumb.jpg","galleries_id":18476,"server_id":18,"link":"photo_1443357.html","width":130,"caption":"Sun Stones & Tree","height":86});
															thumbnails[1852605] = clik.newPhoto({"id":1852605,"src":"1003 EDR_7615 Rainbow Over Lone Tree At Malham Yorkshire UK_thumb.jpg","galleries_id":18476,"server_id":18,"link":"photo_1852605.html","width":130,"caption":"Rainbow Tree","height":194});
															thumbnails[7773427] = clik.newPhoto({"id":7773427,"src":"Nearly-Home..._thumb.jpg","galleries_id":456761,"server_id":18,"link":"photo_7773427.html","width":130,"caption":"Nearly Home","height":195});
															thumbnails[7779477] = clik.newPhoto({"id":7779477,"src":"Lady-in-the-Wind-II2_thumb.jpg","galleries_id":18475,"server_id":18,"link":"photo_7779477.html","width":130,"caption":"Lady in the Wind","height":86});
															thumbnails[7850736] = clik.newPhoto({"id":7850736,"src":"v2_3421_D4E4127_Media_Centre_Salford_Quays_thumb.jpg","galleries_id":18471,"server_id":18,"link":"photo_7850736.html","width":130,"caption":"Media City","height":86});
															thumbnails[8648849] = clik.newPhoto({"id":8648849,"src":"3420_D4E4126_v2_Media_Centre_Salford_Quays_thumb.jpg","galleries_id":18471,"server_id":18,"link":"photo_8648849.html","width":130,"caption":"Media City","height":195});
															thumbnails[8648877] = clik.newPhoto({"id":8648877,"src":"Red-Roaches_thumb.jpg","galleries_id":456759,"server_id":18,"link":"photo_8648877.html","width":130,"caption":"Red Roaches","height":86});
															thumbnails[8648883] = clik.newPhoto({"id":8648883,"src":"Boulder-and-the-Buckle_thumb.jpg","galleries_id":456760,"server_id":18,"link":"photo_8648883.html","width":130,"caption":"Boulder and the Buckle","height":86});
															thumbnails[8648887] = clik.newPhoto({"id":8648887,"src":"Safe-Passage_thumb.jpg","galleries_id":456761,"server_id":18,"link":"photo_8648887.html","width":130,"caption":"Safe Passage","height":86});
															thumbnails[8648894] = clik.newPhoto({"id":8648894,"src":"Massachusetts-USA_thumb.jpg","galleries_id":18475,"server_id":18,"link":"photo_8648894.html","width":130,"caption":"Boston Skyline","height":86});
															thumbnails[8648901] = clik.newPhoto({"id":8648901,"src":"Las-Vegas-USA_thumb.jpg","galleries_id":18475,"server_id":18,"link":"photo_8648901.html","width":130,"caption":"The Bellagio","height":86});
															thumbnails[8662981] = clik.newPhoto({"id":8662981,"src":"Ed_Web_Site__thumb.jpg","galleries_id":18471,"server_id":18,"link":"photo_8662981.html","width":130,"caption":"Ice Station Zebra","height":195});
															thumbnails[8662996] = clik.newPhoto({"id":8662996,"src":"Thames-by-Night_thumb.jpg","galleries_id":457407,"server_id":18,"link":"photo_8662996.html","width":130,"caption":"The Thames by Night","height":87});
															thumbnails[8663008] = clik.newPhoto({"id":8663008,"src":"Guardian-Angel_thumb.jpg","galleries_id":18477,"server_id":18,"link":"photo_8663008.html","width":130,"caption":"Winters Night At Perch Rock Lighthouse","height":86});
															thumbnails[8663027] = clik.newPhoto({"id":8663027,"src":"Lowry-Curves_thumb.jpg","galleries_id":18471,"server_id":18,"link":"photo_8663027.html","width":130,"caption":"Lowry Curves","height":87});
															thumbnails[8663085] = clik.newPhoto({"id":8663085,"src":"101-Seconds..._thumb.jpg","galleries_id":18471,"server_id":18,"link":"photo_8663085.html","width":130,"caption":"101 Seconds.....","height":86});
															thumbnails[8663100] = clik.newPhoto({"id":8663100,"src":"Sailing-Past_thumb.jpg","galleries_id":456761,"server_id":18,"link":"photo_8663100.html","width":130,"caption":"Sailing past...","height":86});
															thumbnails[8663107] = clik.newPhoto({"id":8663107,"src":"Trig-Point_thumb.jpg","galleries_id":18473,"server_id":18,"link":"photo_8663107.html","width":130,"caption":"Trig Point","height":88});
															thumbnails[8664830] = clik.newPhoto({"id":8664830,"src":"Winter-Highlands-2_thumb.jpg","galleries_id":456760,"server_id":18,"link":"photo_8664830.html","width":130,"caption":"Winter Highlands","height":37});
															thumbnails[8664851] = clik.newPhoto({"id":8664851,"src":"The-Resting-Posts_thumb.jpg","galleries_id":18617,"server_id":18,"link":"photo_8664851.html","width":130,"caption":"The Resting Post","height":87});
															thumbnails[8664911] = clik.newPhoto({"id":8664911,"src":"Curbar-Skies-2_thumb.jpg","galleries_id":18474,"server_id":18,"link":"photo_8664911.html","width":130,"caption":"Curbar Skies","height":194});
															thumbnails[8664951] = clik.newPhoto({"id":8664951,"src":"Still-Standing_thumb.jpg","galleries_id":456759,"server_id":18,"link":"photo_8664951.html","width":130,"caption":"Still Standing","height":86});
															thumbnails[8664974] = clik.newPhoto({"id":8664974,"src":"The-Lake-Disrict_thumb.jpg","galleries_id":18617,"server_id":18,"link":"photo_8664974.html","width":130,"caption":"The Lake District","height":87});
															thumbnails[8671440] = clik.newPhoto({"id":8671440,"src":"October_Cover_Cheshire_Life_thumb.jpg","galleries_id":457910,"server_id":18,"link":"photo_8671440.html","width":130,"caption":"Cheshire Life Magazine October 2011","height":185});
															thumbnails[8676570] = clik.newPhoto({"id":8676570,"src":"Digital_SLR_Mag_thumb.jpg","galleries_id":457910,"server_id":18,"link":"photo_8676570.html","width":130,"caption":"Digital SLR Magazine April 2009","height":183});
															thumbnails[8676582] = clik.newPhoto({"id":8676582,"src":"Cheshire_Life_Cover_Bare_image_thumb.jpg","galleries_id":457910,"server_id":18,"link":"photo_8676582.html","width":130,"caption":"Cheshire Life Magazine March 2010","height":178});
															thumbnails[8676589] = clik.newPhoto({"id":8676589,"src":"Staff_Life_Cover_thumb.jpg","galleries_id":457910,"server_id":18,"link":"photo_8676589.html","width":130,"caption":"Staffordshire Life Magazine April 2008","height":184});
															thumbnails[8676602] = clik.newPhoto({"id":8676602,"src":"Cheshire_Life_Cover_Little_Moreton_Hall_thumb.jpg","galleries_id":457910,"server_id":18,"link":"photo_8676602.html","width":130,"caption":"Cheshire Life Magazine November 2010","height":179});
															thumbnails[8676710] = clik.newPhoto({"id":8676710,"src":"Cheshire_Life_July_2011_thumb.jpg","galleries_id":457910,"server_id":18,"link":"photo_8676710.html","width":130,"caption":"Cheshire Life Magazine July 2011","height":179});
															thumbnails[8686946] = clik.newPhoto({"id":8686946,"src":"The_Shackle_D4E8918_thumb.jpg","galleries_id":18471,"server_id":18,"link":"photo_8686946.html","width":130,"caption":"The Shackle","height":194});
															thumbnails[8691154] = clik.newPhoto({"id":8691154,"src":"Salford_Quays_Panorama1_thumb.jpg","galleries_id":18471,"server_id":18,"link":"photo_8691154.html","width":130,"caption":"The Big Picture...","height":36});
															thumbnails[8712313] = clik.newPhoto({"id":8712313,"src":"Bolted_thumb.jpg","galleries_id":459478,"server_id":18,"link":"photo_8712313.html","width":130,"caption":"Bolted","height":195});
															thumbnails[8712323] = clik.newPhoto({"id":8712323,"src":"DSC_4856BW_thumb.jpg","galleries_id":459478,"server_id":18,"link":"photo_8712323.html","width":130,"caption":"Black Roaches","height":86});
															thumbnails[8760681] = clik.newPhoto({"id":8760681,"src":"Moods_of_Blue_thumb.jpg","galleries_id":18471,"server_id":18,"link":"photo_8760681.html","width":130,"caption":"Moods of Blue","height":86});
															thumbnails[8760683] = clik.newPhoto({"id":8760683,"src":"Peak_Moods_thumb.jpg","galleries_id":18474,"server_id":18,"link":"photo_8760683.html","width":130,"caption":"Peak Moods","height":194});
															thumbnails[8773905] = clik.newPhoto({"id":8773905,"src":"Reflected_Light_thumb.jpg","galleries_id":18473,"server_id":18,"link":"photo_8773905.html","width":130,"caption":"Reflected Light","height":195});
															thumbnails[8797647] = clik.newPhoto({"id":8797647,"src":"Scafell_Pike_thumb.jpg","galleries_id":18617,"server_id":18,"link":"photo_8797647.html","width":130,"caption":"Scafell Pike ","height":87});
															thumbnails[8883735] = clik.newPhoto({"id":8883735,"src":"Salford_Manchester1_thumb.jpg","galleries_id":459478,"server_id":18,"link":"photo_8883735.html","width":130,"caption":"The Media Centre In Mono","height":86});
															thumbnails[8951128] = clik.newPhoto({"id":8951128,"src":"The_Horseshoe_Bend_thumb.jpg","galleries_id":18475,"server_id":18,"link":"photo_8951128.html","width":130,"caption":"The Horseshoe Bens","height":86});
															thumbnails[8951201] = clik.newPhoto({"id":8951201,"src":"Rock_Formation_thumb.jpg","galleries_id":18474,"server_id":18,"link":"photo_8951201.html","width":130,"caption":"Rock Formation","height":193});
															thumbnails[8951293] = clik.newPhoto({"id":8951293,"src":"The_Winding_Path_thumb.jpg","galleries_id":18474,"server_id":18,"link":"photo_8951293.html","width":130,"caption":"Three Peaks","height":194});
															thumbnails[8960406] = clik.newPhoto({"id":8960406,"src":"Latest_3894_D4E7397_Old_Boats_Beach_The_Wirral_Cheshire_thumb.jpg","galleries_id":18473,"server_id":18,"link":"photo_8960406.html","width":130,"caption":"Resting","height":86});
															thumbnails[8978662] = clik.newPhoto({"id":8978662,"src":"Runcorn_Bridge_v2_DSC_4755_thumb.jpg","galleries_id":18473,"server_id":18,"link":"photo_8978662.html","width":130,"caption":"Runcorn Expressway","height":86});
															thumbnails[8978665] = clik.newPhoto({"id":8978665,"src":"_D4E9357_thumb.jpg","galleries_id":472845,"server_id":18,"link":"photo_8978665.html","width":130,"caption":"Llanddwyn Island","height":86});
															thumbnails[8978986] = clik.newPhoto({"id":8978986,"src":"Maritime_Mornings_thumb.jpg","galleries_id":472869,"server_id":18,"link":"photo_8978986.html","width":130,"caption":"Maritime Morning","height":86});
															thumbnails[8980762] = clik.newPhoto({"id":8980762,"src":"Albert_Dock_D4E9475_thumb.jpg","galleries_id":472869,"server_id":18,"link":"photo_8980762.html","width":130,"caption":"Albert Dock ","height":195});
															thumbnails[8980842] = clik.newPhoto({"id":8980842,"src":"Museum_of_Liverpool_thumb.jpg","galleries_id":472869,"server_id":18,"link":"photo_8980842.html","width":130,"caption":"Museum of Liverpool","height":86});
															thumbnails[8980901] = clik.newPhoto({"id":8980901,"src":"Atlantic_Pavillion_thumb.jpg","galleries_id":472869,"server_id":18,"link":"photo_8980901.html","width":130,"caption":"Atlantic Pavilion","height":195});
															thumbnails[8981068] = clik.newPhoto({"id":8981068,"src":"Cunard_Building_thumb.jpg","galleries_id":472869,"server_id":18,"link":"photo_8981068.html","width":130,"caption":"The Cunard Buildings","height":86});
															thumbnails[9017681] = clik.newPhoto({"id":9017681,"src":"The_Quays_Theatre_thumb.jpg","galleries_id":18471,"server_id":18,"link":"photo_9017681.html","width":130,"caption":"The Quays Theatre","height":86});
															thumbnails[9028496] = clik.newPhoto({"id":9028496,"src":"_D4E9564_thumb.jpg","galleries_id":18471,"server_id":18,"link":"photo_9028496.html","width":130,"caption":"BBC Manchester","height":86});
															thumbnails[9041156] = clik.newPhoto({"id":9041156,"src":"The_Big_Wheel_thumb.jpg","galleries_id":18471,"server_id":18,"link":"photo_9041156.html","width":130,"caption":"The Big Wheel","height":86});
															thumbnails[9047860] = clik.newPhoto({"id":9047860,"src":"Outlet_Mall_thumb.jpg","galleries_id":18471,"server_id":18,"link":"photo_9047860.html","width":130,"caption":"Lowry Outlet Mall","height":86});
															thumbnails[9047887] = clik.newPhoto({"id":9047887,"src":"Media-Moments_thumb.jpg","galleries_id":18471,"server_id":18,"link":"photo_9047887.html","width":130,"caption":"Media Moments","height":86});
															thumbnails[9069239] = clik.newPhoto({"id":9069239,"src":"Rydal-Ice_thumb.jpg","galleries_id":18617,"server_id":18,"link":"photo_9069239.html","width":130,"caption":"Rydal Ice","height":86});
															thumbnails[9070721] = clik.newPhoto({"id":9070721,"src":"Island_Watch_thumb.jpg","galleries_id":456761,"server_id":18,"link":"photo_9070721.html","width":130,"caption":"Island Watch","height":86});
															thumbnails[9102913] = clik.newPhoto({"id":9102913,"src":"Lake-District-Moods_1_thumb.jpg","galleries_id":459478,"server_id":38,"link":"photo_9102913.html","width":130,"caption":"Lake District Moods","height":87});
															thumbnails[9102926] = clik.newPhoto({"id":9102926,"src":"Manx_Swell_1_thumb.jpg","galleries_id":459478,"server_id":38,"link":"photo_9102926.html","width":130,"caption":"Manx Swell","height":86});
															thumbnails[9103138] = clik.newPhoto({"id":9103138,"src":"Spars__Purlins_1_thumb.jpg","galleries_id":456759,"server_id":37,"link":"photo_9103138.html","width":130,"caption":"Spars & Purlins","height":87});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[459478] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Black and White","link":"gallery_459478.html","maxRecords":0.0,"photoIDs":[8712313.0,8712323.0,8883735.0,9102913.0,9102926.0],"skipIndex":0,"section_code":"gallery","featured_images":"9102926,9102913,8883735,8712323,8712313","id":459478,"singleSection":false});				  						galleries[18473] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Cheshire","link":"gallery_18473.html","maxRecords":0.0,"photoIDs":[203441.0,203444.0,203447.0,203452.0,203461.0,203463.0,238379.0,238380.0,339293.0,366774.0,500199.0,672259.0,996790.0,8663107.0,8773905.0,8960406.0,8978662.0],"skipIndex":0,"section_code":"gallery","featured_images":"8978662,8960406,8773905,8663107,996790,672259,500199,366774,339293,238380","id":18473,"singleSection":false});				  						galleries[457910] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Cover Images","link":"gallery_457910.html","maxRecords":0.0,"photoIDs":[8671440.0,8676570.0,8676582.0,8676589.0,8676602.0,8676710.0],"skipIndex":0,"section_code":"gallery","featured_images":"8676710,8676602,8676589,8676582,8676570,8671440","id":457910,"singleSection":false});				  						galleries[18617] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Cumbria\/Lake District","link":"gallery_18617.html","maxRecords":0.0,"photoIDs":[204334.0,482762.0,575242.0,596198.0,8664851.0,8664974.0,8797647.0,9069239.0],"skipIndex":0,"section_code":"gallery","featured_images":"9069239,8797647,8664974,8664851,596198,575242,482762,204334","id":18617,"singleSection":false});				  						galleries[18474] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Derbyshire","link":"gallery_18474.html","maxRecords":0.0,"photoIDs":[203458.0,203464.0,203466.0,632832.0,632835.0,1416753.0,8664911.0,8760683.0,8951201.0,8951293.0],"skipIndex":0,"section_code":"gallery","featured_images":"8951293,8951201,8760683,8664911,1416753,632835,632832,203466,203464,203458","id":18474,"singleSection":false});				  						galleries[456761] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Isle Of Man","link":"gallery_456761.html","maxRecords":0.0,"photoIDs":[7773427.0,8648887.0,8663100.0,9070721.0],"skipIndex":0,"section_code":"gallery","featured_images":"9070721,8663100,8648887,7773427","id":456761,"singleSection":false});				  						galleries[472869] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Liverpool","link":"gallery_472869.html","maxRecords":0.0,"photoIDs":[8978986.0,8980762.0,8980842.0,8980901.0,8981068.0],"skipIndex":0,"section_code":"gallery","featured_images":"8981068,8980901,8980842,8980762,8978986","id":472869,"singleSection":false});				  						galleries[457407] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"London","link":"gallery_457407.html","maxRecords":0.0,"photoIDs":[8662996.0],"skipIndex":0,"section_code":"gallery","featured_images":8662996.0,"id":457407,"singleSection":false});				  						galleries[456760] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Scotland","link":"gallery_456760.html","maxRecords":0.0,"photoIDs":[8648883.0,8664830.0],"skipIndex":0,"section_code":"gallery","featured_images":"8664830,8648883","id":456760,"singleSection":false});				  						galleries[456759] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Staffordshire","link":"gallery_456759.html","maxRecords":0.0,"photoIDs":[8648877.0,8664951.0,9103138.0],"skipIndex":0,"section_code":"gallery","featured_images":"9103138,8664951,8648877","id":456759,"singleSection":false});				  						galleries[18477] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"The Wirral ","link":"gallery_18477.html","maxRecords":0.0,"photoIDs":[203416.0,264878.0,8663008.0],"skipIndex":0,"section_code":"gallery","featured_images":"8663008,264878,203416","id":18477,"singleSection":false});				  						galleries[18475] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Travel","link":"gallery_18475.html","maxRecords":0.0,"photoIDs":[203411.0,203431.0,203465.0,212035.0,236037.0,278680.0,325838.0,463874.0,646170.0,996773.0,7779477.0,8648894.0,8648901.0,8951128.0],"skipIndex":0,"section_code":"gallery","featured_images":"8951128,8648901,8648894,7779477,996773,646170,463874,325838,278680,236037","id":18475,"singleSection":false});				  						galleries[472845] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wales","link":"gallery_472845.html","maxRecords":0.0,"photoIDs":[8978665.0],"skipIndex":0,"section_code":"gallery","featured_images":8978665.0,"id":472845,"singleSection":false});				  						galleries[18476] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Yorkshire","link":"gallery_18476.html","maxRecords":0.0,"photoIDs":[203425.0,212018.0,212025.0,500200.0,525662.0,525670.0,1443357.0,1852605.0],"skipIndex":0,"section_code":"gallery","featured_images":"1852605,1443357,525670,525662,500200,212025,212018,203425","id":18476,"singleSection":false});				  						galleries[18471] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Manchester","link":"gallery_18471.html","maxRecords":0.0,"photoIDs":[203455.0,7850736.0,8648849.0,8662981.0,8663027.0,8663085.0,8686946.0,8691154.0,8760681.0,9017681.0,9028496.0,9041156.0,9047860.0,9047887.0],"skipIndex":0,"section_code":"gallery","featured_images":"9047887,9047860,9041156,9028496,9017681,8760681,8691154,8686946,8663085,8663027","id":18471,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '9102913,9070721,9047887,9017681,8980762,8978986,8960406,8883735,8797647,8773905,8760681,8664951,8664911,8664851,8663107,8663085,8662981,8648901,8648894,8648883,8648877,8648849,7773427,1852605,1443357,672259,575242';
imageSets[3] = '9103138,9102926,9102913,9070721,9069239,9047887,9047860,9041156,9028496,9017681,8981068,8980901,8980842,8980762,8978986,8978665,8978662,8960406,8951293,8951201,8951128,8883735,8797647,8773905,8760683,8760681,8712323,8712313,8691154,8686946,8676710,8676602,8676589,8676582,8676570,8671440,8664974,8664951,8664911,8664851,8664830,8663107,8663100,8663085,8663027,8663008,8662996,8662981,8648901,8648894';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/edrhodes/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/edrhodes/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/edrhodes/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/edrhodes/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/edrhodes/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/edrhodes/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/edrhodes/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/edrhodes/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/edrhodes/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/edrhodes/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/edrhodes/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/edrhodes/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/edrhodes/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/edrhodes/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/edrhodes/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/edrhodes/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/edrhodes/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/edrhodes/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/edrhodes/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/edrhodes/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/edrhodes/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/edrhodes/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/edrhodes/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/edrhodes/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/edrhodes/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/edrhodes/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/edrhodes/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 = 'Ed Rhodes Photography: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else {
		
	}
	if (this.item_price !== '') {
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

