window.thumbnails = {};
															thumbnails[4769561] = clik.newPhoto({"id":4769561,"src":"Cold_air_purple_tint_thumb.jpg","galleries_id":271211,"server_id":18,"link":"photo_4769561.html","width":130,"caption":"cold air, purple tint","height":131});
															thumbnails[4769617] = clik.newPhoto({"id":4769617,"src":"lakeland_in_greys_thumb.jpg","galleries_id":271211,"server_id":18,"link":"photo_4769617.html","width":130,"caption":"lakeland in greys SOLD","height":129});
															thumbnails[4777598] = clik.newPhoto({"id":4777598,"src":"High_ridge_thumb.jpg","galleries_id":271211,"server_id":18,"link":"photo_4777598.html","width":130,"caption":"high ridge SOLD","height":132});
															thumbnails[4777661] = clik.newPhoto({"id":4777661,"src":"sun_on_shingle_thumb.jpg","galleries_id":271211,"server_id":18,"link":"photo_4777661.html","width":130,"caption":"sun on shingle SOLD","height":131});
															thumbnails[4777871] = clik.newPhoto({"id":4777871,"src":"Blue_light_thumb.jpg","galleries_id":271211,"server_id":18,"link":"photo_4777871.html","width":130,"caption":"blue light SOLD","height":131});
															thumbnails[4777883] = clik.newPhoto({"id":4777883,"src":"Brightness_to_come_thumb.jpg","galleries_id":271211,"server_id":18,"link":"photo_4777883.html","width":130,"caption":"brightness to come SOLD","height":131});
															thumbnails[4777901] = clik.newPhoto({"id":4777901,"src":"Mist_rain_and_meltwater_thumb.jpg","galleries_id":271211,"server_id":18,"link":"photo_4777901.html","width":130,"caption":"mist, rain and meltwater","height":131});
															thumbnails[4777903] = clik.newPhoto({"id":4777903,"src":"Shoreline_breaking_cloud_thumb.jpg","galleries_id":271211,"server_id":18,"link":"photo_4777903.html","width":130,"caption":"shoreline, breaking cloud SOLD","height":131});
															thumbnails[4777925] = clik.newPhoto({"id":4777925,"src":"showing_promise_thumb.jpg","galleries_id":271211,"server_id":18,"link":"photo_4777925.html","width":130,"caption":"showing promise SOLD","height":129});
															thumbnails[4777929] = clik.newPhoto({"id":4777929,"src":"Wetland_late_sun_thumb.jpg","galleries_id":271211,"server_id":18,"link":"photo_4777929.html","width":130,"caption":"wetland, late sun SOLD","height":129});
															thumbnails[4777934] = clik.newPhoto({"id":4777934,"src":"winter_veil_of_light_thumb.jpg","galleries_id":271211,"server_id":18,"link":"photo_4777934.html","width":130,"caption":"winter, veil of light","height":131});
															thumbnails[5537266] = clik.newPhoto({"id":5537266,"src":"blue_evening_thumb.jpg","galleries_id":271211,"server_id":18,"link":"photo_5537266.html","width":130,"caption":"Blue evening SOLD","height":77});
															thumbnails[5537294] = clik.newPhoto({"id":5537294,"src":"refreshing_rain_thumb.JPG","galleries_id":271211,"server_id":18,"link":"photo_5537294.html","width":130,"caption":"Refreshing rain SOLD","height":78});
															thumbnails[5537308] = clik.newPhoto({"id":5537308,"src":"snow_road_thumb.JPG","galleries_id":271211,"server_id":18,"link":"photo_5537308.html","width":130,"caption":"Snow road SOLD","height":77});
															thumbnails[5537317] = clik.newPhoto({"id":5537317,"src":"fugitive_light_thumb.JPG","galleries_id":271211,"server_id":18,"link":"photo_5537317.html","width":130,"caption":"Fugitive light SOLD","height":76});
															thumbnails[5537323] = clik.newPhoto({"id":5537323,"src":"glowing_light_thumb.JPG","galleries_id":271211,"server_id":18,"link":"photo_5537323.html","width":130,"caption":"Glowing light SOLD","height":76});
															thumbnails[5537326] = clik.newPhoto({"id":5537326,"src":"snow_on_the_marshes_thumb.JPG","galleries_id":271211,"server_id":18,"link":"photo_5537326.html","width":130,"caption":"Snow on the marshes SOLD","height":78});
															thumbnails[5537333] = clik.newPhoto({"id":5537333,"src":"shining_colour_thumb.JPG","galleries_id":271211,"server_id":18,"link":"photo_5537333.html","width":130,"caption":"Shining colour SOLD","height":75});
															thumbnails[5537341] = clik.newPhoto({"id":5537341,"src":"fleeing_cloud_thumb.JPG","galleries_id":271211,"server_id":18,"link":"photo_5537341.html","width":130,"caption":"Fleeing cloud SOLD","height":77});
															thumbnails[5537349] = clik.newPhoto({"id":5537349,"src":"red_earth_gold_light_thumb.JPG","galleries_id":271211,"server_id":18,"link":"photo_5537349.html","width":130,"caption":"Red earth, gold light","height":79});
															thumbnails[5932123] = clik.newPhoto({"id":5932123,"src":"Blue_waters_thumb.jpg","galleries_id":271211,"server_id":18,"link":"photo_5932123.html","width":130,"caption":"Blue waters SOLD","height":76});
															thumbnails[5932126] = clik.newPhoto({"id":5932126,"src":"Clearing_to_blue_thumb.jpg","galleries_id":271211,"server_id":18,"link":"photo_5932126.html","width":130,"caption":"Clearing to blue SOLD","height":77});
															thumbnails[5932129] = clik.newPhoto({"id":5932129,"src":"Cool_blues_reflected_thumb.jpg","galleries_id":271211,"server_id":18,"link":"photo_5932129.html","width":130,"caption":"Cool blues reflected SOLD","height":77});
															thumbnails[5932133] = clik.newPhoto({"id":5932133,"src":"Marsh_mirror_thumb.jpg","galleries_id":271211,"server_id":18,"link":"photo_5932133.html","width":130,"caption":"Marsh mirror SOLD","height":77});
															thumbnails[5932136] = clik.newPhoto({"id":5932136,"src":"Winter_beach_thumb.jpg","galleries_id":271211,"server_id":18,"link":"photo_5932136.html","width":130,"caption":"Winter beach SOLD","height":76});
															thumbnails[5932137] = clik.newPhoto({"id":5932137,"src":"dark_skies_sandbanks_thumb.jpg","galleries_id":271211,"server_id":18,"link":"photo_5932137.html","width":130,"caption":"Dark skies, sandbanks SOLD","height":76});
															thumbnails[5932145] = clik.newPhoto({"id":5932145,"src":"Marshland_burnt_sienna_thumb.jpg","galleries_id":271211,"server_id":18,"link":"photo_5932145.html","width":130,"caption":"Marshland, burnt sienna SOLD","height":78});
															thumbnails[5932164] = clik.newPhoto({"id":5932164,"src":"Marshland_dark_grey-green_thumb.jpg","galleries_id":271211,"server_id":18,"link":"photo_5932164.html","width":130,"caption":"Marshland, dark grey-green","height":77});
															thumbnails[7472615] = clik.newPhoto({"id":7472615,"src":"Marshland_under_cloud_72B2CEFA-1EC9-D45B-1CE67A2B99F9ABEE_thumb.jpg","galleries_id":271211,"server_id":18,"link":"photo_7472615.html","width":160,"caption":"Marshland under Cloud","height":161});
															thumbnails[7473036] = clik.newPhoto({"id":7473036,"src":"blustery_weather_thumb.jpg","galleries_id":271211,"server_id":18,"link":"photo_7473036.html","width":160,"caption":"Blustery Weather","height":95});
															thumbnails[7473013] = clik.newPhoto({"id":7473013,"src":"under_lively_skies_thumb.jpg","galleries_id":271211,"server_id":18,"link":"photo_7473013.html","width":160,"caption":"Under lively skies","height":96});
															thumbnails[5329571] = clik.newPhoto({"id":5329571,"src":"Above_the_lake_thumb.jpg","galleries_id":271211,"server_id":18,"link":"photo_5329571.html","width":130,"caption":"Above the lake SOLD","height":130});
															thumbnails[7473027] = clik.newPhoto({"id":7473027,"src":"windswept_coast_thumb.jpg","galleries_id":271211,"server_id":18,"link":"photo_7473027.html","width":160,"caption":"Windswept Coast SOLD","height":124});
															thumbnails[7472630] = clik.newPhoto({"id":7472630,"src":"Distant_snow_thumb.jpg","galleries_id":271211,"server_id":18,"link":"photo_7472630.html","width":160,"caption":"Distant Snow SOLD","height":120});
															thumbnails[7472816] = clik.newPhoto({"id":7472816,"src":"swirling_waters_thumb.jpg","galleries_id":271211,"server_id":18,"link":"photo_7472816.html","width":160,"caption":"Swirling Waters SOLD","height":94});
															thumbnails[7472814] = clik.newPhoto({"id":7472814,"src":"sienna_landscape_thumb.jpg","galleries_id":271211,"server_id":18,"link":"photo_7472814.html","width":160,"caption":"Sienna Landscape SOLD","height":93});
															thumbnails[7472774] = clik.newPhoto({"id":7472774,"src":"racing_tide_thumb.jpg","galleries_id":271211,"server_id":18,"link":"photo_7472774.html","width":160,"caption":"Racing Tide SOLD","height":94});
															thumbnails[7472658] = clik.newPhoto({"id":7472658,"src":"headland_low_tide_thumb.jpg","galleries_id":271211,"server_id":18,"link":"photo_7472658.html","width":160,"caption":"Headland, Low Tide SOLD","height":94});
															thumbnails[4777664] = clik.newPhoto({"id":4777664,"src":"Wrapped_in_cloud_thumb.jpg","galleries_id":271211,"server_id":18,"link":"photo_4777664.html","width":130,"caption":"wrapped in cloud","height":91});
															thumbnails[5329696] = clik.newPhoto({"id":5329696,"src":"cool_breeze_thumb.jpg","galleries_id":271211,"server_id":18,"link":"photo_5329696.html","width":130,"caption":"Cool breeze","height":131});
															thumbnails[4777889] = clik.newPhoto({"id":4777889,"src":"cool_early_morning_thumb.jpg","galleries_id":271211,"server_id":18,"link":"photo_4777889.html","width":130,"caption":"cool early morning SOLD","height":90});
															thumbnails[5329744] = clik.newPhoto({"id":5329744,"src":"Northern_shores_thumb.jpg","galleries_id":271211,"server_id":18,"link":"photo_5329744.html","width":130,"caption":"Northern shores SOLD","height":131});
															thumbnails[4777893] = clik.newPhoto({"id":4777893,"src":"Fresh_and_bright_thumb.jpg","galleries_id":271211,"server_id":18,"link":"photo_4777893.html","width":130,"caption":"fresh and bright SOLD","height":91});
															thumbnails[5329722] = clik.newPhoto({"id":5329722,"src":"Secluded_cove_thumb.jpg","galleries_id":271211,"server_id":18,"link":"photo_5329722.html","width":130,"caption":"Secluded cove SOLD","height":130});
															thumbnails[4777900] = clik.newPhoto({"id":4777900,"src":"high_ridge_bright_cloud_thumb.jpg","galleries_id":271211,"server_id":18,"link":"photo_4777900.html","width":130,"caption":"high ridge, bright cloud SOLD","height":91});
															thumbnails[5329679] = clik.newPhoto({"id":5329679,"src":"Catching_the_light_thumb.jpg","galleries_id":271211,"server_id":18,"link":"photo_5329679.html","width":130,"caption":"Catching the light SOLD","height":131});
															thumbnails[4777927] = clik.newPhoto({"id":4777927,"src":"warming_light_thumb.jpg","galleries_id":271211,"server_id":18,"link":"photo_4777927.html","width":130,"caption":"warming light","height":90});
															thumbnails[5329712] = clik.newPhoto({"id":5329712,"src":"Out_on_the_ledges_thumb.jpg","galleries_id":271211,"server_id":18,"link":"photo_5329712.html","width":130,"caption":"Out on the ledges SOLD","height":131});
															thumbnails[5329755] = clik.newPhoto({"id":5329755,"src":"blue_northern_light_thumb.jpg","galleries_id":271211,"server_id":18,"link":"photo_5329755.html","width":130,"caption":"Blue northern light SOLD","height":91});
															thumbnails[5329781] = clik.newPhoto({"id":5329781,"src":"early_evening_thumb.jpg","galleries_id":271211,"server_id":18,"link":"photo_5329781.html","width":130,"caption":"Early evening SOLD","height":102});
															thumbnails[5329787] = clik.newPhoto({"id":5329787,"src":"under_moonlight_thumb.jpg","galleries_id":271211,"server_id":18,"link":"photo_5329787.html","width":130,"caption":"Under moonlight SOLD","height":105});
															thumbnails[5329785] = clik.newPhoto({"id":5329785,"src":"shining_water_thumb.jpg","galleries_id":271211,"server_id":18,"link":"photo_5329785.html","width":130,"caption":"Shining water SOLD","height":104});
															thumbnails[5329764] = clik.newPhoto({"id":5329764,"src":"september_morning_thumb.jpg","galleries_id":271211,"server_id":18,"link":"photo_5329764.html","width":130,"caption":"September morning","height":90});
															thumbnails[5329769] = clik.newPhoto({"id":5329769,"src":"under_clearing_skies_thumb.jpg","galleries_id":271211,"server_id":18,"link":"photo_5329769.html","width":130,"caption":"Under clearing skies SOLD","height":92});
															thumbnails[5329778] = clik.newPhoto({"id":5329778,"src":"veil_of_rain_thumb.jpg","galleries_id":271211,"server_id":18,"link":"photo_5329778.html","width":130,"caption":"Veil of rain SOLD","height":92});
															thumbnails[4721249] = clik.newPhoto({"id":4721249,"src":"shining_afternoon_thumb.jpg","galleries_id":271211,"server_id":18,"link":"photo_4721249.html","width":130,"caption":"shining afternoon","height":92});
															thumbnails[8403819] = clik.newPhoto({"id":8403819,"src":"rainwashed_land_thumb.jpg","galleries_id":300039,"server_id":18,"link":"photo_8403819.html","width":160,"caption":"Rainwashed land SOLD","height":80});
															thumbnails[8403821] = clik.newPhoto({"id":8403821,"src":"marshland_shining_water_thumb.jpg","galleries_id":300039,"server_id":18,"link":"photo_8403821.html","width":160,"caption":"Marshland, shining water SOLD","height":96});
															thumbnails[8403830] = clik.newPhoto({"id":8403830,"src":"high_cloud_headland_thumb.jpg","galleries_id":300039,"server_id":18,"link":"photo_8403830.html","width":160,"caption":"High cloud, headland","height":121});
															thumbnails[8403836] = clik.newPhoto({"id":8403836,"src":"shoreline_rock_ledges_thumb.jpg","galleries_id":300039,"server_id":18,"link":"photo_8403836.html","width":160,"caption":"Shoreline, ebbing tide","height":119});
															thumbnails[8403840] = clik.newPhoto({"id":8403840,"src":"under_cloud_soft_grey-green_thumb.jpg","galleries_id":300039,"server_id":18,"link":"photo_8403840.html","width":160,"caption":"under cloud, soft grey-green SOLD","height":120});
															thumbnails[8403845] = clik.newPhoto({"id":8403845,"src":"Marshland_warm_reds_thumb.jpg","galleries_id":300039,"server_id":18,"link":"photo_8403845.html","width":160,"caption":"Marshland, warm reds","height":96});
															thumbnails[8403847] = clik.newPhoto({"id":8403847,"src":"Cool_evening_thumb.jpg","galleries_id":300039,"server_id":18,"link":"photo_8403847.html","width":160,"caption":"Cool evening","height":94});
															thumbnails[8403851] = clik.newPhoto({"id":8403851,"src":"coastal_blues_and_greens_thumb.jpg","galleries_id":300039,"server_id":18,"link":"photo_8403851.html","width":160,"caption":"Coastal blues and greens SOLD","height":95});
															thumbnails[8403856] = clik.newPhoto({"id":8403856,"src":"estuary_cool_haze_thumb.jpg","galleries_id":300039,"server_id":18,"link":"photo_8403856.html","width":160,"caption":"Estuary, cool haze","height":94});
															thumbnails[8403861] = clik.newPhoto({"id":8403861,"src":"Evening_fields_thumb.jpg","galleries_id":300039,"server_id":18,"link":"photo_8403861.html","width":160,"caption":"Evening fields","height":95});
															thumbnails[8403865] = clik.newPhoto({"id":8403865,"src":"gold_horizon_thumb.jpg","galleries_id":300039,"server_id":18,"link":"photo_8403865.html","width":160,"caption":"Gold horizon SOLD","height":95});
															thumbnails[8403869] = clik.newPhoto({"id":8403869,"src":"Sienna_coast_deep_cloud_thumb.jpg","galleries_id":300039,"server_id":18,"link":"photo_8403869.html","width":160,"caption":"sienna coast SOLD","height":95});
															thumbnails[8403875] = clik.newPhoto({"id":8403875,"src":"sparkling_waters_thumb.jpg","galleries_id":300039,"server_id":18,"link":"photo_8403875.html","width":160,"caption":"Sparkling waters","height":92});
															thumbnails[8403879] = clik.newPhoto({"id":8403879,"src":"spring_coast_thumb.jpg","galleries_id":300039,"server_id":18,"link":"photo_8403879.html","width":160,"caption":"Spring coast SOLD","height":94});
															thumbnails[8403882] = clik.newPhoto({"id":8403882,"src":"wetland_rosy_light_thumb.jpg","galleries_id":300039,"server_id":18,"link":"photo_8403882.html","width":160,"caption":"Wetland, rosy light SOLD","height":93});
															thumbnails[8403889] = clik.newPhoto({"id":8403889,"src":"Bright_highland_waters_thumb.jpg","galleries_id":300039,"server_id":18,"link":"photo_8403889.html","width":160,"caption":"Bright highland waters","height":121});
															thumbnails[8403894] = clik.newPhoto({"id":8403894,"src":"Highland_cloud_thumb.jpg","galleries_id":300039,"server_id":18,"link":"photo_8403894.html","width":160,"caption":"Highland cloud","height":122});
															thumbnails[8403897] = clik.newPhoto({"id":8403897,"src":"Low_tide_Mull_thumb.jpg","galleries_id":300039,"server_id":18,"link":"photo_8403897.html","width":160,"caption":"Low tide, Mull","height":121});
															thumbnails[8403900] = clik.newPhoto({"id":8403900,"src":"snow_plain_thumb.jpg","galleries_id":300039,"server_id":18,"link":"photo_8403900.html","width":160,"caption":"Snow plain","height":94});
															thumbnails[8403909] = clik.newPhoto({"id":8403909,"src":"Soft_grey_light_reflected_thumb.jpg","galleries_id":300039,"server_id":18,"link":"photo_8403909.html","width":160,"caption":"Soft grey light reflected","height":120});
															thumbnails[8403914] = clik.newPhoto({"id":8403914,"src":"incoming_tide_thumb.jpg","galleries_id":300039,"server_id":18,"link":"photo_8403914.html","width":160,"caption":"Incoming tide","height":95});
															thumbnails[8403918] = clik.newPhoto({"id":8403918,"src":"Highland_spring_rain_thumb.jpg","galleries_id":300039,"server_id":18,"link":"photo_8403918.html","width":160,"caption":"Highland, spring rain","height":122});
															thumbnails[7472500] = clik.newPhoto({"id":7472500,"src":"gleaming_water_thumb.jpg","galleries_id":300039,"server_id":18,"link":"photo_7472500.html","width":160,"caption":"Gleaming Water","height":160});
															thumbnails[7472510] = clik.newPhoto({"id":7472510,"src":"snow_fields_thumb.jpg","galleries_id":300039,"server_id":18,"link":"photo_7472510.html","width":160,"caption":"Snow Fields","height":161});
															thumbnails[7472603] = clik.newPhoto({"id":7472603,"src":"midwinter_thumb.jpg","galleries_id":300039,"server_id":18,"link":"photo_7472603.html","width":160,"caption":"Midwinter","height":160});
															thumbnails[7472641] = clik.newPhoto({"id":7472641,"src":"Highland_colour_thumb.jpg","galleries_id":300039,"server_id":18,"link":"photo_7472641.html","width":160,"caption":"Highland Colour","height":120});
															thumbnails[7472634] = clik.newPhoto({"id":7472634,"src":"shining_stream_thumb.jpg","galleries_id":300039,"server_id":18,"link":"photo_7472634.html","width":160,"caption":"Shining Stream SOLD","height":113});
															thumbnails[7472622] = clik.newPhoto({"id":7472622,"src":"magenta_sky_thumb.jpg","galleries_id":300039,"server_id":18,"link":"photo_7472622.html","width":160,"caption":"Magenta Sky","height":95});
															thumbnails[7472649] = clik.newPhoto({"id":7472649,"src":"Christmas_snow_thumb.jpg","galleries_id":300039,"server_id":18,"link":"photo_7472649.html","width":160,"caption":"Christmas Snow","height":94});
															thumbnails[7472646] = clik.newPhoto({"id":7472646,"src":"blue_ridge_thumb.jpg","galleries_id":300039,"server_id":18,"link":"photo_7472646.html","width":160,"caption":"Blue Ridge","height":94});
															thumbnails[8416593] = clik.newPhoto({"id":8416593,"src":"new_beginings_small_version_thumb.jpg","galleries_id":273121,"server_id":18,"link":"photo_8416593.html","width":160,"caption":"New beginings, small version","height":220});
															thumbnails[8416598] = clik.newPhoto({"id":8416598,"src":"blown_away_thumb.jpg","galleries_id":273121,"server_id":18,"link":"photo_8416598.html","width":160,"caption":"Blown away","height":213});
															thumbnails[8416602] = clik.newPhoto({"id":8416602,"src":"stick_flotilla_thumb.jpg","galleries_id":273121,"server_id":18,"link":"photo_8416602.html","width":160,"caption":"Stick flotilla","height":217});
															thumbnails[8416631] = clik.newPhoto({"id":8416631,"src":"Meadow_blue_thumb.jpg","galleries_id":273121,"server_id":18,"link":"photo_8416631.html","width":160,"caption":"Meadow blue","height":213});
															thumbnails[8416633] = clik.newPhoto({"id":8416633,"src":"new_beginings_thumb.jpg","galleries_id":273121,"server_id":18,"link":"photo_8416633.html","width":160,"caption":"New beginings SOLD","height":158});
															thumbnails[8416403] = clik.newPhoto({"id":8416403,"src":"swarm_thumb.jpg","galleries_id":273121,"server_id":18,"link":"photo_8416403.html","width":160,"caption":"Swarm","height":159});
															thumbnails[8416503] = clik.newPhoto({"id":8416503,"src":"bundles_loosely_arranged_thumb.jpg","galleries_id":273121,"server_id":18,"link":"photo_8416503.html","width":160,"caption":"Bundles, loosely arranged","height":162});
															thumbnails[8416544] = clik.newPhoto({"id":8416544,"src":"seeds_growing_thumb.jpg","galleries_id":273121,"server_id":18,"link":"photo_8416544.html","width":160,"caption":"Seeds, growing","height":163});
															thumbnails[4770735] = clik.newPhoto({"id":4770735,"src":"bundles_in_columns1_thumb.jpg","galleries_id":273121,"server_id":18,"link":"photo_4770735.html","width":130,"caption":"bundles in columns SOLD","height":174});
															thumbnails[4770797] = clik.newPhoto({"id":4770797,"src":"bundles_with_oriental_theme_thumb.jpg","galleries_id":273121,"server_id":18,"link":"photo_4770797.html","width":130,"caption":"bundles with oriental theme","height":178});
															thumbnails[4777503] = clik.newPhoto({"id":4777503,"src":"six_of_four_thumb.jpg","galleries_id":273121,"server_id":18,"link":"photo_4777503.html","width":130,"caption":"six of four","height":97});
															thumbnails[4777550] = clik.newPhoto({"id":4777550,"src":"eight_of_three_thumb.jpg","galleries_id":273121,"server_id":18,"link":"photo_4777550.html","width":130,"caption":"eight of three","height":98});
															thumbnails[4777941] = clik.newPhoto({"id":4777941,"src":"six_of_three_thumb.jpg","galleries_id":273121,"server_id":18,"link":"photo_4777941.html","width":130,"caption":"six of three","height":97});
															thumbnails[4777945] = clik.newPhoto({"id":4777945,"src":"three_of_three_thumb.jpg","galleries_id":273121,"server_id":18,"link":"photo_4777945.html","width":130,"caption":"three of three","height":175});
															thumbnails[4977396] = clik.newPhoto({"id":4977396,"src":"seven_of_three_thumb.jpg","galleries_id":273121,"server_id":18,"link":"photo_4977396.html","width":130,"caption":"seven of three","height":98});
															thumbnails[4977432] = clik.newPhoto({"id":4977432,"src":"elongated_bundles_thumb.jpg","galleries_id":273121,"server_id":18,"link":"photo_4977432.html","width":130,"caption":"elongated bundles","height":176});
															thumbnails[4977434] = clik.newPhoto({"id":4977434,"src":"eight_floating_bundles_thumb.jpg","galleries_id":273121,"server_id":18,"link":"photo_4977434.html","width":130,"caption":"eight floating bundles","height":96});
															thumbnails[4977436] = clik.newPhoto({"id":4977436,"src":"nine_random_bundles_thumb.jpg","galleries_id":273121,"server_id":18,"link":"photo_4977436.html","width":130,"caption":"nine random bundles","height":99});
															thumbnails[4977442] = clik.newPhoto({"id":4977442,"src":"scattered_bundles_thumb.jpg","galleries_id":273121,"server_id":18,"link":"photo_4977442.html","width":130,"caption":"scattered bundles SOLD","height":176});
															thumbnails[4977454] = clik.newPhoto({"id":4977454,"src":"six_of_four_half_a_dozen_of_three_thumb.jpg","galleries_id":273121,"server_id":18,"link":"photo_4977454.html","width":130,"caption":"six of four, half a dozen of three SOLD","height":97});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[273121] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"abstracts","link":"section325945.html","maxRecords":0.0,"photoIDs":[8416593.0,8416598.0,8416602.0,8416631.0,8416633.0,8416403.0,8416503.0,8416544.0,4770735.0,4770797.0,4777503.0,4777550.0,4777941.0,4777945.0,4977396.0,4977432.0,4977434.0,4977436.0,4977442.0,4977454.0],"skipIndex":0,"section_code":"section325945","featured_images":"8416633,8416631,8416602,8416598,8416593,8416544,8416503,8416403,4977454,4977442","id":273121,"singleSection":true});				  						galleries[271211] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"landscapes","link":"section325944.html","maxRecords":0.0,"photoIDs":[4769561.0,4769617.0,4777598.0,4777661.0,4777871.0,4777883.0,4777901.0,4777903.0,4777925.0,4777929.0,4777934.0,5537266.0,5537294.0,5537308.0,5537317.0,5537323.0,5537326.0,5537333.0,5537341.0,5537349.0,5932123.0,5932126.0,5932129.0,5932133.0,5932136.0,5932137.0,5932145.0,5932164.0,7472615.0,7473036.0,7473013.0,5329571.0,7473027.0,7472630.0,7472816.0,7472814.0,7472774.0,7472658.0,4777664.0,5329696.0,4777889.0,5329744.0,4777893.0,5329722.0,4777900.0,5329679.0,4777927.0,5329712.0,5329755.0,5329781.0,5329787.0,5329785.0,5329764.0,5329769.0,5329778.0,4721249.0],"skipIndex":0,"section_code":"section325944","featured_images":"7473036,7473027,7473013,7472816,7472814,7472774,7472658,7472630,7472615,5932164","id":271211,"singleSection":true});				  						galleries[283571] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"shows","link":"section339275.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"section339275","featured_images":"","id":283571,"singleSection":true});				  						galleries[300039] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"New work","link":"section358744.html","maxRecords":0.0,"photoIDs":[8403819.0,8403821.0,8403830.0,8403836.0,8403840.0,8403845.0,8403847.0,8403851.0,8403856.0,8403861.0,8403865.0,8403869.0,8403875.0,8403879.0,8403882.0,8403889.0,8403894.0,8403897.0,8403900.0,8403909.0,8403914.0,8403918.0,7472500.0,7472510.0,7472603.0,7472641.0,7472634.0,7472622.0,7472649.0,7472646.0],"skipIndex":0,"section_code":"section358744","featured_images":"8403918,8403914,8403909,8403900,8403897,8403894,8403889,8403882,8403879,8403875","id":300039,"singleSection":true});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8416602,8403909,8403889,8403869,8403819,7472500,7472510,7472603,7472641,8416503,8416403,4770797';
imageSets[3] = '8416633,8416631,8416602,8416598,8416593,8416544,8416503,8416403,8403918,8403914,8403909,8403900,8403897,8403894,8403889,8403882,8403879,8403875,8403869,8403865,8403861,8403856,8403851,8403847,8403845,8403840,8403836,8403830,8403821,8403819,7473036,7473027,7473013,7472816,7472814,7472774,7472658,7472649,7472646,7472641,7472634,7472630,7472622,7472615,7472603,7472510,7472500,5932164,5932145,5932137';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/lesleyjones/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/lesleyjones/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/lesleyjones/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/lesleyjones/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/lesleyjones/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/lesleyjones/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/lesleyjones/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/lesleyjones/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/lesleyjones/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/lesleyjones/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/lesleyjones/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/lesleyjones/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/lesleyjones/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/lesleyjones/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/lesleyjones/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/lesleyjones/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/lesleyjones/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/lesleyjones/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/lesleyjones/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/lesleyjones/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/lesleyjones/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/lesleyjones/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/lesleyjones/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/lesleyjones/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/lesleyjones/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/lesleyjones/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/lesleyjones/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 += 'section325944.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 && 'section325944' != '') {
					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 = 'Lesley Jones: ' + 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;
	}
}

			

