window.thumbnails = {};
															thumbnails[1554300] = clik.newPhoto({"id":1554300,"src":"Low-Tide-Porlock-Wier6001.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Low tide, Porlock Wier","height":92});
															thumbnails[4606249] = clik.newPhoto({"id":4606249,"src":"Receding-tide-Mevagissey1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Receding tide, Mevagissey - SOLD","height":97});
															thumbnails[1553555] = clik.newPhoto({"id":1553555,"src":"Choosing-flowers7.jpg","galleries_id":106452,"server_id":1,"link":"photo_1553555.html","width":130,"caption":"Choosing Flowers, Bristol. SOLD","height":175});
															thumbnails[1554253] = clik.newPhoto({"id":1554253,"src":"Afternoon-light6001.jpg","galleries_id":106494,"server_id":1,"link":"photo_1554253.html","width":130,"caption":"Afternoon Light","height":93});
															thumbnails[1554254] = clik.newPhoto({"id":1554254,"src":"Snowdonia6001.jpg","galleries_id":106494,"server_id":1,"link":"photo_1554254.html","width":130,"caption":"Cottages, North Wales","height":92});
															thumbnails[1554258] = clik.newPhoto({"id":1554258,"src":"North-Wales6001.jpg","galleries_id":106494,"server_id":1,"link":"photo_1554258.html","width":130,"caption":"Bright sun, Snowdonia","height":92});
															thumbnails[1554260] = clik.newPhoto({"id":1554260,"src":"Weston-Beach6001.jpg","galleries_id":106494,"server_id":1,"link":"photo_1554260.html","width":130,"caption":"Donkey rides, Weston beach. SOLD","height":93});
															thumbnails[1554278] = clik.newPhoto({"id":1554278,"src":"Avon-Valley-boating6001.jpg","galleries_id":106496,"server_id":1,"link":"photo_1554278.html","width":130,"caption":"Boating lake, Avon Valley. SOLD","height":94});
															thumbnails[1554285] = clik.newPhoto({"id":1554285,"src":"Bristol-harbour6001.jpg","galleries_id":106496,"server_id":1,"link":"photo_1554285.html","width":130,"caption":"Morning Light, Bristol Harbour<br>\r\n","height":93});
															thumbnails[1554287] = clik.newPhoto({"id":1554287,"src":"Calm-Morning6001.jpg","galleries_id":106496,"server_id":1,"link":"photo_1554287.html","width":130,"caption":"Harbour Moorings, Bristol - SOLD","height":97});
															thumbnails[1554292] = clik.newPhoto({"id":1554292,"src":"Cumberland-Basin6001.jpg","galleries_id":106496,"server_id":1,"link":"photo_1554292.html","width":130,"caption":"Hazy light, Cumberland Basin - SOLD","height":94});
															thumbnails[1554297] = clik.newPhoto({"id":1554297,"src":"John-King6001.jpg","galleries_id":106496,"server_id":1,"link":"photo_1554297.html","width":130,"caption":"The John King, Bristol - SOLD","height":94});
															thumbnails[1554303] = clik.newPhoto({"id":1554303,"src":"Mevagissey6001.jpg","galleries_id":106496,"server_id":1,"link":"photo_1554303.html","width":130,"caption":"Mevagissey","height":91});
															thumbnails[1554307] = clik.newPhoto({"id":1554307,"src":"Padstow-Harbour6001.jpg","galleries_id":106496,"server_id":1,"link":"photo_1554307.html","width":130,"caption":"Bright Day, Padstow","height":100});
															thumbnails[1554321] = clik.newPhoto({"id":1554321,"src":"Corn-street-rain1.jpg","galleries_id":106452,"server_id":1,"link":"photo_1554321.html","width":130,"caption":"Rainy Day, Corn Street. SOLD","height":178});
															thumbnails[1554620] = clik.newPhoto({"id":1554620,"src":"Rialto-Markets1.jpg","galleries_id":106452,"server_id":1,"link":"photo_1554620.html","width":130,"caption":"Rialto Market, Venice","height":179});
															thumbnails[1554741] = clik.newPhoto({"id":1554741,"src":"Perots'-Bridge1.jpg","galleries_id":106496,"server_id":1,"link":"photo_1554741.html","width":130,"caption":"Pero's Bridge, Bristol SOLD","height":182});
															thumbnails[1554745] = clik.newPhoto({"id":1554745,"src":"Passing-showers1.jpg","galleries_id":106452,"server_id":1,"link":"photo_1554745.html","width":130,"caption":"Passing Showers, Bath","height":180});
															thumbnails[1554757] = clik.newPhoto({"id":1554757,"src":"Normandy-Village1.jpg","galleries_id":106452,"server_id":1,"link":"photo_1554757.html","width":130,"caption":"Evening Shadows","height":93});
															thumbnails[2130586] = clik.newPhoto({"id":2130586,"src":"Park-street-in-rain_thumb.jpg","galleries_id":106452,"server_id":1,"link":"photo_2130586.html","width":130,"caption":"Park Street in the rain. SOLD","height":93});
															thumbnails[2131415] = clik.newPhoto({"id":2131415,"src":"Croquet-in-the-Palace-Grou__thumb.jpg","galleries_id":106494,"server_id":1,"link":"photo_2131415.html","width":130,"caption":"Croquet, Wells. SOLD","height":92});
															thumbnails[2131419] = clik.newPhoto({"id":2131419,"src":"Dappled-shade,-Wells_thumb.jpg","galleries_id":106494,"server_id":1,"link":"photo_2131419.html","width":130,"caption":"Dappled Shade, Wells. SOLD","height":93});
															thumbnails[2131421] = clik.newPhoto({"id":2131421,"src":"Hazy-light,-Wells-Market_thumb.jpg","galleries_id":106452,"server_id":1,"link":"photo_2131421.html","width":130,"caption":"Hazy Light, Wells Market","height":93});
															thumbnails[2131426] = clik.newPhoto({"id":2131426,"src":"Light-&-Shade,-Venice_thumb.jpg","galleries_id":106452,"server_id":1,"link":"photo_2131426.html","width":130,"caption":"Light and Shade, Venice<br>\r\n","height":93});
															thumbnails[2131434] = clik.newPhoto({"id":2131434,"src":"Morning-Rush,-Bristol_thumb.jpg","galleries_id":106452,"server_id":1,"link":"photo_2131434.html","width":130,"caption":"Morning Rush, Bristol<br>\r\n","height":94});
															thumbnails[4605795] = clik.newPhoto({"id":4605795,"src":"Bright-Afternoon-Bristol_thumb.jpg","galleries_id":106452,"server_id":1,"link":"photo_4605795.html","width":130,"caption":"Bright afternoon, Bristol. SOLD","height":93});
															thumbnails[4605849] = clik.newPhoto({"id":4605849,"src":"Bristol-Museum_thumb.jpg","galleries_id":106452,"server_id":1,"link":"photo_4605849.html","width":130,"caption":"Bristol Museum. SOLD","height":93});
															thumbnails[4605915] = clik.newPhoto({"id":4605915,"src":"Bright-breezy-day-StIves_thumb.jpg","galleries_id":106496,"server_id":1,"link":"photo_4605915.html","width":130,"caption":"Bright windy day, St. Ives - SOLD","height":95});
															thumbnails[4605938] = clik.newPhoto({"id":4605938,"src":"Sunny-Afternoon-StIves_thumb.jpg","galleries_id":106496,"server_id":1,"link":"photo_4605938.html","width":130,"caption":"Sunny afternoon, St. Ives - SOLD","height":92});
															thumbnails[4605955] = clik.newPhoto({"id":4605955,"src":"Bristol-Uni_thumb.jpg","galleries_id":271534,"server_id":1,"link":"photo_4605955.html","width":130,"caption":"Passing Rain, Bristol University<br>\r\nAvailable for sale at Alexander Gallery, Bristol","height":97});
															thumbnails[4606002] = clik.newPhoto({"id":4606002,"src":"Harbourside-cranes_thumb.jpg","galleries_id":106496,"server_id":1,"link":"photo_4606002.html","width":130,"caption":"Harbourside cranes, Bristol","height":94});
															thumbnails[4606408] = clik.newPhoto({"id":4606408,"src":"Beach-scene-Cornwall_thumb.jpg","galleries_id":106496,"server_id":1,"link":"photo_4606408.html","width":130,"caption":"Bright day, Carbis Bay","height":94});
															thumbnails[4606484] = clik.newPhoto({"id":4606484,"src":"Bristol-Market_thumb.jpg","galleries_id":271534,"server_id":1,"link":"photo_4606484.html","width":130,"caption":"Market stall, Bristol<br>\r\nAvailable for sale at Alexander Gallery, Bristol","height":92});
															thumbnails[4606518] = clik.newPhoto({"id":4606518,"src":"Harbour-reflections-Bristol_thumb.jpg","galleries_id":271534,"server_id":1,"link":"photo_4606518.html","width":130,"caption":"Industrial Museum moorings, Bristol<br>\r\nAvailable for sale at Alexander Gallery, Bristol","height":93});
															thumbnails[4611411] = clik.newPhoto({"id":4611411,"src":"Winter-sun-Queens-Square_thumb.jpg","galleries_id":271534,"server_id":1,"link":"photo_4611411.html","width":130,"caption":"Winter sun, Queen Square, Bristol<br>\r\nAvailable for sale at Alexander Gallery, Bristol","height":94});
															thumbnails[4611449] = clik.newPhoto({"id":4611449,"src":"Under-the-trees-Wells_thumb.jpg","galleries_id":106494,"server_id":1,"link":"photo_4611449.html","width":130,"caption":"Under the trees, Wells.","height":94});
															thumbnails[4611468] = clik.newPhoto({"id":4611468,"src":"Riverbus-Bristol_thumb.jpg","galleries_id":271534,"server_id":1,"link":"photo_4611468.html","width":130,"caption":"Morning River Bus, Bristol<br>\r\nAvailable for sale at Alexander Gallery, Bristol","height":93});
															thumbnails[4611487] = clik.newPhoto({"id":4611487,"src":"Broad-St_thumb.jpg","galleries_id":271534,"server_id":1,"link":"photo_4611487.html","width":130,"caption":"Morning Shadows, Broad St. Bristol<br>\r\nAvailable for sale at Alexander Gallery, Bristol","height":181});
															thumbnails[4742698] = clik.newPhoto({"id":4742698,"src":"Bishopspalace_thumb.jpg","galleries_id":106494,"server_id":1,"link":"photo_4742698.html","width":130,"caption":"Reflections, Bishops Palace, Wells.<br>\r\n<br>\r\nSOLD","height":96});
															thumbnails[4742716] = clik.newPhoto({"id":4742716,"src":"St-Ives_thumb.jpg","galleries_id":106496,"server_id":1,"link":"photo_4742716.html","width":130,"caption":"Low tide, St Ives SOLD","height":93});
															thumbnails[5605384] = clik.newPhoto({"id":5605384,"src":"Cley_thumb.jpg","galleries_id":106494,"server_id":1,"link":"photo_5605384.html","width":130,"caption":"Cley Mill, Norfolk. SOLD","height":96});
															thumbnails[5605401] = clik.newPhoto({"id":5605401,"src":"Horses_thumb.jpg","galleries_id":106494,"server_id":1,"link":"photo_5605401.html","width":130,"caption":"Cold Frosty Morning, Winterbourne. SOLD","height":95});
															thumbnails[5605490] = clik.newPhoto({"id":5605490,"src":"Puddles_thumb.jpg","galleries_id":106494,"server_id":1,"link":"photo_5605490.html","width":130,"caption":"Winter Puddles","height":96});
															thumbnails[5605501] = clik.newPhoto({"id":5605501,"src":"Swans_thumb.jpg","galleries_id":464972,"server_id":1,"link":"photo_5605501.html","width":130,"caption":"LOW WINTER SUN, BRISTOL HARBOUR","height":177});
															thumbnails[5605514] = clik.newPhoto({"id":5605514,"src":"Wiveton_thumb.jpg","galleries_id":106494,"server_id":1,"link":"photo_5605514.html","width":130,"caption":"Morning Shadows, Wiveton.  SOLD","height":96});
															thumbnails[6312661] = clik.newPhoto({"id":6312661,"src":"Bath-river-web_thumb.jpg","galleries_id":106494,"server_id":1,"link":"photo_6312661.html","width":130,"caption":"Enjoying the sun, Bath. SOLD","height":94});
															thumbnails[6312671] = clik.newPhoto({"id":6312671,"src":"North-Wales_thumb.jpg","galleries_id":106494,"server_id":1,"link":"photo_6312671.html","width":130,"caption":"Hazy light, North Wales. SOLD","height":94});
															thumbnails[6312689] = clik.newPhoto({"id":6312689,"src":"Perots-web_thumb.jpg","galleries_id":106496,"server_id":1,"link":"photo_6312689.html","width":130,"caption":"Early morning, Bristol SOLD","height":179});
															thumbnails[6312690] = clik.newPhoto({"id":6312690,"src":"Blakeney-web_thumb.jpg","galleries_id":106496,"server_id":1,"link":"photo_6312690.html","width":130,"caption":"Early start, Blakeney","height":93});
															thumbnails[6312703] = clik.newPhoto({"id":6312703,"src":"Cromer-web_thumb.jpg","galleries_id":106452,"server_id":1,"link":"photo_6312703.html","width":130,"caption":"A stroll on the Pier, Cromer. SOLD","height":95});
															thumbnails[6802680] = clik.newPhoto({"id":6802680,"src":"Lunchtimeshade_thumb.jpg","galleries_id":369830,"server_id":1,"link":"photo_6802680.html","width":130,"caption":"Lunchtime Shade, Bath - SOLD","height":175});
															thumbnails[6802702] = clik.newPhoto({"id":6802702,"src":"Rainy_day_Bathlo_thumb.jpg","galleries_id":369830,"server_id":1,"link":"photo_6802702.html","width":130,"caption":"Rainy Day, Bath - SOLD","height":178});
															thumbnails[6802704] = clik.newPhoto({"id":6802704,"src":"SawClose_thumb.jpg","galleries_id":369830,"server_id":1,"link":"photo_6802704.html","width":130,"caption":"Saw Close, Bath - SOLD","height":174});
															thumbnails[6802707] = clik.newPhoto({"id":6802707,"src":"SunnyAfternoon_thumb.jpg","galleries_id":369830,"server_id":1,"link":"photo_6802707.html","width":130,"caption":"Sunny Afternoon, Bath","height":95});
															thumbnails[6803753] = clik.newPhoto({"id":6803753,"src":"Out-door-landscape_thumb.jpg","galleries_id":106494,"server_id":1,"link":"photo_6803753.html","width":130,"caption":"Sunny Morning, Abergavenny","height":95});
															thumbnails[6803758] = clik.newPhoto({"id":6803758,"src":"Reflections-web_thumb.jpg","galleries_id":106494,"server_id":1,"link":"photo_6803758.html","width":130,"caption":"Reflections, Pool Farm","height":94});
															thumbnails[6832392] = clik.newPhoto({"id":6832392,"src":"Paul-Weaver_thumb.jpg","galleries_id":369830,"server_id":1,"link":"photo_6832392.html","width":130,"caption":"Paul receiving his award for 'Best Local Artist' in the Bath Prize competition from the Mayor of Bath.","height":157});
															thumbnails[6832439] = clik.newPhoto({"id":6832439,"src":"MarketScene_thumb.jpg","galleries_id":464972,"server_id":1,"link":"photo_6832439.html","width":130,"caption":"MARKET DAY, CORN STREET","height":96});
															thumbnails[6832444] = clik.newPhoto({"id":6832444,"src":"Blakeneyweb_thumb.jpg","galleries_id":106496,"server_id":1,"link":"photo_6832444.html","width":130,"caption":"Calm Morning, Blakeney SOLD","height":95});
															thumbnails[8584690] = clik.newPhoto({"id":8584690,"src":"RedParasol_thumb.gif","galleries_id":453893,"server_id":1,"link":"photo_8584690.html","width":130,"caption":"Red Parasol, Milsom Street - SOLD","height":93});
															thumbnails[8584902] = clik.newPhoto({"id":8584902,"src":"HazyLightBath_thumb.gif","galleries_id":453893,"server_id":1,"link":"photo_8584902.html","width":130,"caption":"Hazy Light, Bath - SOLD","height":101});
															thumbnails[8584937] = clik.newPhoto({"id":8584937,"src":"BytheFountainLauraPlace_thumb.gif","galleries_id":453893,"server_id":1,"link":"photo_8584937.html","width":130,"caption":"By the Fountain, Laura Place - SOLD","height":97});
															thumbnails[8584944] = clik.newPhoto({"id":8584944,"src":"BrightAfternoonGeorgeStreet_thumb.gif","galleries_id":453893,"server_id":1,"link":"photo_8584944.html","width":130,"caption":"Bright Afternoon, George Street  SOLD","height":101});
															thumbnails[8584947] = clik.newPhoto({"id":8584947,"src":"TheGuildhallBath_thumb.gif","galleries_id":453893,"server_id":1,"link":"photo_8584947.html","width":130,"caption":"The Guildhall, Bath ","height":102});
															thumbnails[8584949] = clik.newPhoto({"id":8584949,"src":"SundayAfternoonBrasserieGerard_thumb.gif","galleries_id":453893,"server_id":1,"link":"photo_8584949.html","width":130,"caption":"Sunday Afternoon, Brasserie Gerrard - SOLD","height":96});
															thumbnails[8584951] = clik.newPhoto({"id":8584951,"src":"TheCircusBath_thumb.gif","galleries_id":453893,"server_id":1,"link":"photo_8584951.html","width":130,"caption":"The Circus, Bath - SOLD","height":68});
															thumbnails[8584969] = clik.newPhoto({"id":8584969,"src":"UpperBoroughWalls13_thumb.gif","galleries_id":453893,"server_id":1,"link":"photo_8584969.html","width":100,"caption":"Upper Borough Walls - SOLD","height":145});
															thumbnails[8677654] = clik.newPhoto({"id":8677654,"src":"Paul-Weaver1_thumb.gif","galleries_id":453893,"server_id":1,"link":"photo_8677654.html","width":130,"caption":"Paul receiving his awards from the Mayor of Bath","height":122});
															thumbnails[8839170] = clik.newPhoto({"id":8839170,"src":"SummerAfternoonFrenchay_C1E871A4-24E8-5EC4-4F30994F9B05AA91_thumb.gif","galleries_id":464972,"server_id":1,"link":"photo_8839170.html","width":130,"caption":"Summer Afternoon, Frenchay","height":91});
															thumbnails[8839243] = clik.newPhoto({"id":8839243,"src":"Cottages_Frenchay_Village_C2507D4A-24E8-5EC4-4FAD456A1C8DAB63_thumb.jpg","galleries_id":464972,"server_id":1,"link":"photo_8839243.html","width":130,"caption":"COTTAGES, FRENCHAY VILLAGE","height":92});
															thumbnails[8839284] = clik.newPhoto({"id":8839284,"src":"Dappled_Shade_Frenchay_C261FE58-24E8-5EC4-4F998A9477639D96_thumb.jpg","galleries_id":464972,"server_id":1,"link":"photo_8839284.html","width":130,"caption":"DAPPLED SHADE, FRENCHAY - SOLD","height":97});
															thumbnails[8839478] = clik.newPhoto({"id":8839478,"src":"Harbourside_Moorings_Bristol_C2B6A94F-24E8-5EC4-4FB0AB9BAF1C75DC_thumb.jpg","galleries_id":464972,"server_id":1,"link":"photo_8839478.html","width":130,"caption":"HARBOURSIDE MOORINGS, BRISTOL","height":97});
															thumbnails[8839552] = clik.newPhoto({"id":8839552,"src":"Light__Shade_Bath_C2D232D4-24E8-5EC4-4FC420171452F0F4_thumb.jpg","galleries_id":464972,"server_id":1,"link":"photo_8839552.html","width":130,"caption":"LIGHT & SHADE, BATH","height":188});
															thumbnails[8839585] = clik.newPhoto({"id":8839585,"src":"Budleigh_Salterton_C311D545-24E8-5EC4-4F8A6C5999691103_thumb.jpg","galleries_id":464972,"server_id":1,"link":"photo_8839585.html","width":130,"caption":"BRIGHT WINDY DAY, BUDLEIGH SALTERTON - SOLD","height":62});
															thumbnails[8839605] = clik.newPhoto({"id":8839605,"src":"AfternoonHazeSnowdonia_C3748292-24E8-5EC4-4FE7EEBFCDBFBEBD_thumb.gif","galleries_id":464972,"server_id":1,"link":"photo_8839605.html","width":130,"caption":"AFTERNOON HAZE, SNOWDONIA","height":93});
															thumbnails[8839606] = clik.newPhoto({"id":8839606,"src":"Bath_Carriages_C38781C2-24E8-5EC4-4F67946087CCAC0A_thumb.jpg","galleries_id":464972,"server_id":1,"link":"photo_8839606.html","width":130,"caption":"BRIGHT AFTERNOON, BATH","height":95});
															thumbnails[8839608] = clik.newPhoto({"id":8839608,"src":"Queen_Square_C3991D86-24E8-5EC4-4F1AC92DB38D8D13_thumb.jpg","galleries_id":464972,"server_id":1,"link":"photo_8839608.html","width":130,"caption":"QUEEN SQUARE, BRISTOL - SOLD","height":95});
															thumbnails[8839620] = clik.newPhoto({"id":8839620,"src":"Autumn_Light_Windrush_C3AE479A-24E8-5EC4-4FEB7F408F76A239_thumb.jpg","galleries_id":464972,"server_id":1,"link":"photo_8839620.html","width":130,"caption":"AUTUMN LIGHT, WINDRUSH","height":96});
															thumbnails[8839629] = clik.newPhoto({"id":8839629,"src":"Bath_Abbey_from_Orange_Grove_C3C2808A-24E8-5EC4-4F7BCCEFEAFCDB86_thumb.jpg","galleries_id":464972,"server_id":1,"link":"photo_8839629.html","width":130,"caption":"BATH ABBEY FROM ORANGE GROVE","height":94});
															thumbnails[8839636] = clik.newPhoto({"id":8839636,"src":"Feeding_the_Ducks_Bathampton_Canal_C3D264F6-24E8-5EC4-4F45962FA523B250_thumb.jpg","galleries_id":464972,"server_id":1,"link":"photo_8839636.html","width":130,"caption":"FEEDING THE DUCKS, BATHAMPTON CANAL","height":96});
															thumbnails[8839653] = clik.newPhoto({"id":8839653,"src":"LateAfternoonBristolMuseum_C3E3A843-24E8-5EC4-4FC331D00BF8FC49_thumb.gif","galleries_id":464972,"server_id":1,"link":"photo_8839653.html","width":130,"caption":"LATE AFTERNOON, BRISTOL MUSEUM","height":177});
															thumbnails[8839656] = clik.newPhoto({"id":8839656,"src":"MarketStallsBristol_C3EF972B-24E8-5EC4-4FD031FAD0D069A5_thumb.gif","galleries_id":464972,"server_id":1,"link":"photo_8839656.html","width":130,"caption":"MARKET STALLS, BRISTOL","height":176});
															thumbnails[8839660] = clik.newPhoto({"id":8839660,"src":"LowTidePorlockWeir_C3FAFF59-24E8-5EC4-4F133CFFCFBD126E_thumb.gif","galleries_id":464972,"server_id":1,"link":"photo_8839660.html","width":130,"caption":"LOW TIDE, PORLOCK WEIR","height":95});
															thumbnails[1554332] = clik.newPhoto({"id":1554332,"src":"Normandy-cafe6001.jpg","galleries_id":106452,"server_id":1,"link":"photo_1554332.html","width":130,"caption":"Normandy Cafe, SOLD","height":95});
															thumbnails[1559076] = clik.newPhoto({"id":1559076,"src":"Normandy-Flower-Stall5.jpg","galleries_id":106452,"server_id":1,"link":"photo_1559076.html","width":130,"caption":"Flower Stall, Normandy<br>\r\n","height":94});
															thumbnails[1553568] = clik.newPhoto({"id":1553568,"src":"Rio-S.Barnaba.jpg","galleries_id":106452,"server_id":1,"link":"photo_1553568.html","width":130,"caption":"Rio San Barnaba, Venice. SOLD","height":94});
															thumbnails[1554335] = clik.newPhoto({"id":1554335,"src":"Venice6001.jpg","galleries_id":106452,"server_id":1,"link":"photo_1554335.html","width":130,"caption":"Venice","height":95});
															thumbnails[1554313] = clik.newPhoto({"id":1554313,"src":"Clifton-village6001.jpg","galleries_id":106452,"server_id":1,"link":"photo_1554313.html","width":130,"caption":"Clifton Village, Bristol. SOLD","height":99});
															thumbnails[1554316] = clik.newPhoto({"id":1554316,"src":"Corn-Street-Market6001.jpg","galleries_id":106452,"server_id":1,"link":"photo_1554316.html","width":130,"caption":"Market Stall, Corn Street. SOLD","height":98});
															thumbnails[1554326] = clik.newPhoto({"id":1554326,"src":"Covent-Garden-Stall6001.jpg","galleries_id":106452,"server_id":1,"link":"photo_1554326.html","width":130,"caption":"Covent Garden Market. SOLD","height":94});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[464972] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"'LIGHT & SHADE' - ONE MAN SHOW","link":"gallery_464972.html","maxRecords":0.0,"photoIDs":[5605501.0,6832439.0,8839170.0,8839243.0,8839284.0,8839478.0,8839552.0,8839585.0,8839605.0,8839606.0,8839608.0,8839620.0,8839629.0,8839636.0,8839653.0,8839656.0,8839660.0],"skipIndex":0,"section_code":"gallery","featured_images":8839605.0,"id":464972,"singleSection":false});				  						galleries[271534] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Paintings for sale","link":"gallery_271534.html","maxRecords":0.0,"photoIDs":[4605955.0,4606484.0,4606518.0,4611411.0,4611468.0,4611487.0],"skipIndex":0,"section_code":"gallery","featured_images":"4611487,4611468,4611411,4606518,4606484,4605955","id":271534,"singleSection":false});				  						galleries[369830] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"The Bath Prize 2010","link":"gallery_369830.html","maxRecords":0.0,"photoIDs":[6802680.0,6802702.0,6802704.0,6802707.0,6832392.0],"skipIndex":0,"section_code":"gallery","featured_images":"6832392,6802707,6802704,6802702,6802680","id":369830,"singleSection":false});				  						galleries[453893] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"The Bath Prize 2011","link":"gallery_453893.html","maxRecords":0.0,"photoIDs":[8584690.0,8584902.0,8584937.0,8584944.0,8584947.0,8584949.0,8584951.0,8584969.0,8677654.0],"skipIndex":0,"section_code":"gallery","featured_images":8584947.0,"id":453893,"singleSection":false});				  						galleries[106494] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Landscapes","link":"gallery_106494.html","maxRecords":0.0,"photoIDs":[1554253.0,1554254.0,1554258.0,1554260.0,2131415.0,2131419.0,4611449.0,4742698.0,5605384.0,5605401.0,5605490.0,5605514.0,6312661.0,6312671.0,6803753.0,6803758.0],"skipIndex":0,"section_code":"gallery","featured_images":"6803758,6803753,6312671,6312661,5605514,5605490,5605401,5605384,4742698,4611449","id":106494,"singleSection":false});				  						galleries[106452] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Townscapes","link":"gallery_106452.html","maxRecords":0.0,"photoIDs":[1553555.0,1554321.0,1554620.0,1554745.0,1554757.0,2130586.0,2131421.0,2131426.0,2131434.0,4605795.0,4605849.0,6312703.0,1554332.0,1559076.0,1553568.0,1554335.0,1554313.0,1554316.0,1554326.0],"skipIndex":0,"section_code":"gallery","featured_images":"6312703,1553555","id":106452,"singleSection":false});				  						galleries[106496] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Marine and coastal","link":"gallery_106496.html","maxRecords":0.0,"photoIDs":[1554278.0,1554285.0,1554287.0,1554292.0,1554297.0,1554303.0,1554307.0,1554741.0,4605915.0,4605938.0,4606002.0,4606408.0,4742716.0,6312689.0,6312690.0,6832444.0],"skipIndex":0,"section_code":"gallery","featured_images":1554303.0,"id":106496,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8839478';
imageSets[2] = '8839605,8584947,6312703,1554303,1553555';
imageSets[3] = '8839660,8839656,8839653,8839636,8839629,8839620,8839608,8839606,8839605,8839585,8839552,8839478,8839284,8839243,8839170,8677654,8584969,8584951,8584949,8584947,8584944,8584937,8584902,8584690,6832444,6832439,6832392,6803758,6803753,6802707,6802704,6802702,6802680,6312703,6312690,6312689,6312671,6312661,5605514,5605501,5605490,5605401,5605384,4742716,4742698,4611487,4611468,4611449,4611411,4606518';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/pbweaver/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/pbweaver/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/pbweaver/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/pbweaver/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/pbweaver/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/pbweaver/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/pbweaver/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/pbweaver/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/pbweaver/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/pbweaver/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/pbweaver/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/pbweaver/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/pbweaver/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/pbweaver/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/pbweaver/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/pbweaver/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/pbweaver/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/pbweaver/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/pbweaver/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/pbweaver/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/pbweaver/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/pbweaver/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/pbweaver/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/pbweaver/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/pbweaver/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/pbweaver/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/pbweaver/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 = 'Paul Weaver Art: ' + 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;
	}
}

		

