window.thumbnails = {};
															thumbnails[1965340] = clik.newPhoto({"id":1965340,"src":"near Dunkirk 1,  12 x 16ins_thumb. oil on canvas.JPG","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"near Dunkirk 1, 31 x 41cms, oil on canvas","height":98});
															thumbnails[1965372] = clik.newPhoto({"id":1965372,"src":"near California, 12 x 16ins_thumb. oil on canvas2.JPG","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"near California, 31 x 41cms, oil on canvas","height":98});
															thumbnails[1965380] = clik.newPhoto({"id":1965380,"src":"near Dunkirk 3, 9 x 12ins_thumb. oil on canvas.JPG","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"near Dunkirk, 23 x 30cms, oil on canvas","height":98});
															thumbnails[1965726] = clik.newPhoto({"id":1965726,"src":"Wood Fen Farm sketch_thumb. acrylic on board.JPG","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Wood Fen Farm sketch, acrylic on board","height":98});
															thumbnails[1965751] = clik.newPhoto({"id":1965751,"src":"Wood Fen Farm 1, 10 x 14ins_thumb. oil on canvas2.JPG","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Wood Fen Farm 1, 26 x 36cms, oil on canvas","height":98});
															thumbnails[1965756] = clik.newPhoto({"id":1965756,"src":"to Second Drove 2, 12 x 16ins_thumb. oil on canvas2.JPG","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"to Second Drove 2, 31 x 41cms, oil on canvas","height":98});
															thumbnails[1971874] = clik.newPhoto({"id":1971874,"src":"eilean donan castle by loch alsh 2_thumb.JPG","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Eilean Donan Castle to Lochalsh, oil on canvas","height":98});
															thumbnails[2889009] = clik.newPhoto({"id":2889009,"src":"highgate20_thumb.JPG","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Highgate Gallery 2008","height":97});
															thumbnails[2907474] = clik.newPhoto({"id":2907474,"src":"highgate 1_thumb.JPG","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":97});
															thumbnails[7531674] = clik.newPhoto({"id":7531674,"src":"Chesca_c_thumb.JPG","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Francesca, 102 x 76cms, oil on canvas","height":173});
															thumbnails[7535855] = clik.newPhoto({"id":7535855,"src":"highgate20_BF3C8979-1E4F-37DC-716CC7E6B61FD681_thumb.JPG","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":98});
															thumbnails[1965133] = clik.newPhoto({"id":1965133,"src":"Burnt Fen, 9 x 12 ins, oil on canvas_thumb.JPG","galleries_id":132088,"server_id":18,"link":"photo_1965133.html","width":130,"caption":"Burnt Fen 1,     23 x 30cms, oil on canvas","height":98});
															thumbnails[1965166] = clik.newPhoto({"id":1965166,"src":"Byall Fen 1, 20 x 20ins_thumb. oil on canvas.JPG","galleries_id":132087,"server_id":18,"link":"photo_1965166.html","width":130,"caption":"Byall Fen 1, 50 x 50cms, oil on canvas","height":98});
															thumbnails[1965186] = clik.newPhoto({"id":1965186,"src":"Burnt Fen 2, 7 x 10 ins, oil on paper1_thumb.JPG","galleries_id":132088,"server_id":18,"link":"photo_1965186.html","width":130,"caption":"Burnt Fen 2, 18 x 26cms, oil on paper","height":98});
															thumbnails[1965207] = clik.newPhoto({"id":1965207,"src":"Byall Fen 2, 12 x 16 ins, oil on canvas_thumb.JPG","galleries_id":132088,"server_id":18,"link":"photo_1965207.html","width":130,"caption":"Byall Fen 2, 30 x 41cms, oil on canvas","height":98});
															thumbnails[1965254] = clik.newPhoto({"id":1965254,"src":"Byall Fen 3, 14 x 18ins_thumb. oil on canvas.JPG","galleries_id":132087,"server_id":18,"link":"photo_1965254.html","width":130,"caption":"Byall Fen 3, 36 x 46cms, oil on canvas","height":98});
															thumbnails[1965298] = clik.newPhoto({"id":1965298,"src":"Hilgay Fen, 7 x 10 ins, oil on paper_thumb.JPG","galleries_id":132087,"server_id":18,"link":"photo_1965298.html","width":130,"caption":"Hilgay Fen, 18 x 26cms, oil on paper","height":98});
															thumbnails[1965304] = clik.newPhoto({"id":1965304,"src":"Mow Fen 1, 7 x 10 ins, oil on paper_thumb.JPG","galleries_id":132087,"server_id":18,"link":"photo_1965304.html","width":130,"caption":"Mow Fen 1, 18 x 26cms, oil on paper. Not available","height":98});
															thumbnails[1965307] = clik.newPhoto({"id":1965307,"src":"Mow Fen 2, 7 x 10 ins, oil on paper_thumb.JPG","galleries_id":132088,"server_id":18,"link":"photo_1965307.html","width":130,"caption":"Mow Fen 2, 18 x 26cms, oil on paper","height":98});
															thumbnails[1965312] = clik.newPhoto({"id":1965312,"src":"near Black Bank, 10 x 14ins_thumb. oil on canvas1.JPG","galleries_id":132087,"server_id":18,"link":"photo_1965312.html","width":130,"caption":"near Black Bank, 26 x 36cms, oil on canvas","height":98});
															thumbnails[1965713] = clik.newPhoto({"id":1965713,"src":"off Downham Common Road_thumb. Nr Littleport, 10 x 14ins. oil on canvas1.JPG","galleries_id":132087,"server_id":18,"link":"photo_1965713.html","width":130,"caption":"off Downham Common Road near Littleport, 26 x 36cms, oil on canvas","height":98});
															thumbnails[1965722] = clik.newPhoto({"id":1965722,"src":"to Fourth Drove, 10 x 14ins_thumb. oil on canvas1.JPG","galleries_id":132087,"server_id":18,"link":"photo_1965722.html","width":130,"caption":"to Fourth Drove 1, 26 x 36cms, oil on canvas","height":98});
															thumbnails[1965738] = clik.newPhoto({"id":1965738,"src":"Wood Fen Farm 3, 12 x 16ins_thumb. oil on canvas1.JPG","galleries_id":132087,"server_id":18,"link":"photo_1965738.html","width":130,"caption":"Wood Fen Farm 3, 31 x 41cms, oil on canvas","height":98});
															thumbnails[1965757] = clik.newPhoto({"id":1965757,"src":"Westmoor Common, 14 x 18ins_thumb. oil on canvas2.JPG","galleries_id":132087,"server_id":18,"link":"photo_1965757.html","width":130,"caption":"Westmoor Common,36 x 46cms, oil on canvas","height":98});
															thumbnails[1968405] = clik.newPhoto({"id":1968405,"src":"Exmoor 1, 5 x 9_thumb.5ins. oil on board.JPG","galleries_id":132088,"server_id":18,"link":"photo_1968405.html","width":130,"caption":"Exmoor 1, 13 x 24cms, oil on board","height":98});
															thumbnails[1968406] = clik.newPhoto({"id":1968406,"src":"Exmoor 2, 5 x 9_thumb.5ins. oil on board.JPG","galleries_id":132088,"server_id":18,"link":"photo_1968406.html","width":130,"caption":"Exmoor 2, 13 x 24cms, oil on board","height":98});
															thumbnails[1968412] = clik.newPhoto({"id":1968412,"src":"Exmoor 3, 4 x 9_thumb.5ins. oil on board.JPG","galleries_id":132088,"server_id":18,"link":"photo_1968412.html","width":130,"caption":"Exmoor 3, 10 x 24cms, oil on board","height":98});
															thumbnails[1968416] = clik.newPhoto({"id":1968416,"src":"Exmoor 5, 5 x 9_thumb.5ins. oil on board.JPG","galleries_id":132088,"server_id":18,"link":"photo_1968416.html","width":130,"caption":"Exmoor 5, 13 x 24cms, oil on board","height":84});
															thumbnails[1968418] = clik.newPhoto({"id":1968418,"src":"Exmoor 8, 5 x 9ins, oil on board_thumb.JPG","galleries_id":132088,"server_id":18,"link":"photo_1968418.html","width":130,"caption":"Exmoor 8, 13 x 23cms, oil on board. Sold","height":87});
															thumbnails[1968419] = clik.newPhoto({"id":1968419,"src":"Exmoor 10, 5 x 15ins_thumb. oil on board.JPG","galleries_id":132088,"server_id":18,"link":"photo_1968419.html","width":130,"caption":"Exmoor 10, 13 x 38cms, oil on board","height":60});
															thumbnails[1968427] = clik.newPhoto({"id":1968427,"src":"Bornaskitaig, Skye 2_thumb. 14 x 18ins. oil on canvas.JPG","galleries_id":132089,"server_id":18,"link":"photo_1968427.html","width":130,"caption":"Bornaskitaig, Isle of Skye 2, 36 x 46cms, oil on canvas","height":98});
															thumbnails[1968429] = clik.newPhoto({"id":1968429,"src":"eilean donan castle by loch alsh_thumb.JPG","galleries_id":132089,"server_id":18,"link":"photo_1968429.html","width":130,"caption":"Eilean Donan Castle to Loch Duich. Sold","height":98});
															thumbnails[1968432] = clik.newPhoto({"id":1968432,"src":"MacLeod's Tables, Skye_thumb. 20 x 30ins. oil on canvas.JPG","galleries_id":132089,"server_id":18,"link":"photo_1968432.html","width":130,"caption":"MacLeod's Tables, Isle of Skye, 51 x 76cms, oil on canvas. Sold","height":98});
															thumbnails[1968437] = clik.newPhoto({"id":1968437,"src":"Tote, Skye_thumb.JPG","galleries_id":132089,"server_id":18,"link":"photo_1968437.html","width":130,"caption":"Tote, Isle of Skye,oil on canvas","height":98});
															thumbnails[1968441] = clik.newPhoto({"id":1968441,"src":"Raasay from Sligachan, Skye_thumb. 20 x 30ins. oil on canvas.JPG","galleries_id":132089,"server_id":18,"link":"photo_1968441.html","width":130,"caption":"Raasay from Sligachan, Isle of Skye, 51 x 76cms, oil on canvas. Sold","height":98});
															thumbnails[1968444] = clik.newPhoto({"id":1968444,"src":"Uist road west 1, 12 x 16ins_thumb. oil on canvas.JPG","galleries_id":132089,"server_id":18,"link":"photo_1968444.html","width":130,"caption":"Road West, Uist, 31 x 41cms, oil on canvas ","height":98});
															thumbnails[1968446] = clik.newPhoto({"id":1968446,"src":"Uist road west 2_thumb.JPG","galleries_id":132089,"server_id":18,"link":"photo_1968446.html","width":130,"caption":"Road West, Uist 2, oil on canvas","height":98});
															thumbnails[1968451] = clik.newPhoto({"id":1968451,"src":"Uist West Coast 20 x 30ins_thumb. oil on canvas.JPG","galleries_id":132089,"server_id":18,"link":"photo_1968451.html","width":130,"caption":"Uist West Coast 2, 51 x 76cms, oil on canvas. Sold","height":98});
															thumbnails[1968458] = clik.newPhoto({"id":1968458,"src":"Bulbarrow, Dorset_thumb. 16 x 20ins. oil on board.JPG","galleries_id":132090,"server_id":18,"link":"photo_1968458.html","width":130,"caption":"Bulbarrow, Dorset. 41 x 51cms, oil on board. Not available","height":98});
															thumbnails[1970670] = clik.newPhoto({"id":1970670,"src":"Easdale Pier, Scotland_thumb.JPG","galleries_id":132090,"server_id":18,"link":"photo_1970670.html","width":130,"caption":"Easdale Pier, near Oban. Scotland 51 x 76cms, oil on canvas. Sold","height":98});
															thumbnails[1970684] = clik.newPhoto({"id":1970684,"src":"Wave 3_thumb.JPG","galleries_id":132090,"server_id":18,"link":"photo_1970684.html","width":130,"caption":"Wave 3, 51 x 76cms, oil on canvas. Sold","height":98});
															thumbnails[1970690] = clik.newPhoto({"id":1970690,"src":"Wave 4_thumb.JPG","galleries_id":132090,"server_id":18,"link":"photo_1970690.html","width":130,"caption":"Wave 4, 51 x 76cms, oil on canvas. Sold","height":98});
															thumbnails[1971991] = clik.newPhoto({"id":1971991,"src":"over Dunvegan, Skye_thumb. 10 x 10ins. oil on canvas.JPG","galleries_id":132089,"server_id":18,"link":"photo_1971991.html","width":130,"caption":"An Ard Dubh, Dunvegan, Isle of Skye, 26 x 26cms, oil on canvas. Sold","height":98});
															thumbnails[2001510] = clik.newPhoto({"id":2001510,"src":"Chobham 4, oil on board_thumb.JPG","galleries_id":132090,"server_id":18,"link":"photo_2001510.html","width":130,"caption":"Chobham Common 4, 32 x 47cms, oil on board. Not available","height":98});
															thumbnails[7531678] = clik.newPhoto({"id":7531678,"src":"pendeen_3_update_thumb.JPG","galleries_id":132090,"server_id":18,"link":"photo_7531678.html","width":130,"caption":"over Morvah, 51 x 76cms, oil on canvas. Sold","height":98});
															thumbnails[7531689] = clik.newPhoto({"id":7531689,"src":"Bosullow_track_oil_on_canvas_24x18ins_thumb.JPG","galleries_id":132090,"server_id":18,"link":"photo_7531689.html","width":130,"caption":"to Garden Mine Cottage, 61 x 46cms, oil on canvas ","height":173});
															thumbnails[7531692] = clik.newPhoto({"id":7531692,"src":"Boswullow_Farmoil_on_canvas_12x16ins_thumb.JPG","galleries_id":132090,"server_id":18,"link":"photo_7531692.html","width":130,"caption":"to Dakota Farm 2, 30 x 41cms, oil on canvas","height":98});
															thumbnails[7531694] = clik.newPhoto({"id":7531694,"src":"clearing_mist_at_Pendeen_oil_on_canvas_18x24ins_thumb.JPG","galleries_id":132090,"server_id":18,"link":"photo_7531694.html","width":130,"caption":"clearing mist at Pendeen, 46 x 61cms, oil on canvas","height":98});
															thumbnails[7531697] = clik.newPhoto({"id":7531697,"src":"evening_light_over_mooroil_on_canvas__12x16ins_thumb.JPG","galleries_id":132086,"server_id":18,"link":"photo_7531697.html","width":130,"caption":"evening light over moor, 30 x 40cms, oil on canvas","height":98});
															thumbnails[7531700] = clik.newPhoto({"id":7531700,"src":"from_Marazionoil_on_canvas_16x12ins_thumb.JPG","galleries_id":132087,"server_id":18,"link":"photo_7531700.html","width":130,"caption":"from Marazion, 40 x 30cms, oil on canvas","height":173});
															thumbnails[7531701] = clik.newPhoto({"id":7531701,"src":"over_moor_1oil_on_canvas__20x30ins_thumb.JPG","galleries_id":132087,"server_id":18,"link":"photo_7531701.html","width":130,"caption":"over moor 1, 51 x 76cms, oil on canvas","height":98});
															thumbnails[7531702] = clik.newPhoto({"id":7531702,"src":"over_moor_2oil_on_canvas_16x12ins_thumb.JPG","galleries_id":132086,"server_id":18,"link":"photo_7531702.html","width":130,"caption":"over moor 2, 41 x 30cms, oil on canvas","height":173});
															thumbnails[7531703] = clik.newPhoto({"id":7531703,"src":"over_Morvah_2_oil_on_canvas_16x12ins_thumb.JPG","galleries_id":132087,"server_id":18,"link":"photo_7531703.html","width":130,"caption":"over Morvah 2, 41 x 30cms, oil on canvas","height":173});
															thumbnails[7531704] = clik.newPhoto({"id":7531704,"src":"over_Watch_Croft_oil_on_canvas_20x20ins_thumb.JPG","galleries_id":132086,"server_id":18,"link":"photo_7531704.html","width":130,"caption":"over Garden Mine Cottage , 51 x 51cms, oil on canvas","height":98});
															thumbnails[7531705] = clik.newPhoto({"id":7531705,"src":"Pendeen_5_oil_on_canvas_18x14ins_thumb.JPG","galleries_id":132086,"server_id":18,"link":"photo_7531705.html","width":130,"caption":"Pendeen 5, 46 x 36cms, oil on canvas","height":173});
															thumbnails[7531706] = clik.newPhoto({"id":7531706,"src":"Pendeen_mistoil_on_canvas__16x12ins_thumb.JPG","galleries_id":132087,"server_id":18,"link":"photo_7531706.html","width":130,"caption":"pendeen mist, 41 x 30cms, oil on canvas","height":173});
															thumbnails[7531709] = clik.newPhoto({"id":7531709,"src":"to_Bosullow_Farmoil_on_canvas_30x20ins_thumb.JPG","galleries_id":132087,"server_id":18,"link":"photo_7531709.html","width":130,"caption":"to Dakota Farm 1, 76 x 51cms, oil on canvas","height":173});
															thumbnails[7745249] = clik.newPhoto({"id":7745249,"src":"over_Dakota_Farm_2_oil_on_canvas_18x24ins_thumb.JPG","galleries_id":132087,"server_id":18,"link":"photo_7745249.html","width":130,"caption":"over Dakota Farm 2, oil on canvas 46 x 61cms","height":98});
															thumbnails[7745254] = clik.newPhoto({"id":7745254,"src":"over_Dakota_Farm_1_oil_on_board_12x16ins_thumb.JPG","galleries_id":132086,"server_id":18,"link":"photo_7745254.html","width":130,"caption":"over Dakota Farm 1, oil on board, 30 x 41cms","height":98});
															thumbnails[7745260] = clik.newPhoto({"id":7745260,"src":"over_Dakota_Farm_3_oil_on_canvas_20x16ins_thumb.JPG","galleries_id":132087,"server_id":18,"link":"photo_7745260.html","width":130,"caption":"over Dakota farm 3, oil on canvas 51 x 41cms","height":173});
															thumbnails[7745264] = clik.newPhoto({"id":7745264,"src":"over_Dakota_Farm_4_oil_on_canvas_16x12ins_thumb.JPG","galleries_id":132086,"server_id":18,"link":"photo_7745264.html","width":130,"caption":"over Dakota Farm 4, oil on canvas 41 x 30cms","height":173});
															thumbnails[7745271] = clik.newPhoto({"id":7745271,"src":"clearing_mist_at_pendeen_Pendeen_Watch_2_oil_on_canvas_12x16ins_thumb.JPG","galleries_id":132086,"server_id":18,"link":"photo_7745271.html","width":130,"caption":"clearing mist at Pendeen 2, 31 x 41cms","height":98});
															thumbnails[7745449] = clik.newPhoto({"id":7745449,"src":"to_Pendeen_Watch_oil_on_board_5_x_15ins_thumb.JPG","galleries_id":132087,"server_id":18,"link":"photo_7745449.html","width":130,"caption":"to Pendeen Watch, 13 x 38cms oil on canvas","height":87});
															thumbnails[7752707] = clik.newPhoto({"id":7752707,"src":"over_moor_5_oil_on_canvas_20x16ins_thumb.JPG","galleries_id":132087,"server_id":18,"link":"photo_7752707.html","width":130,"caption":"over Dakota Farm 5, 51 x 41cms oil on canvas","height":195});
															thumbnails[8731122] = clik.newPhoto({"id":8731122,"src":"Afternoon_Moorland_15x15cms_oil_on_canvas_thumb.JPG","galleries_id":132086,"server_id":18,"link":"photo_8731122.html","width":130,"caption":"Afternoon Moorland, 15 x 15cms, oil on canvas. Sold STC.","height":98});
															thumbnails[8731146] = clik.newPhoto({"id":8731146,"src":"Atlantic_West_50x50cms_oil_on_canvas_thumb.JPG","galleries_id":132086,"server_id":18,"link":"photo_8731146.html","width":130,"caption":"Atlantic West, 50 x50cms, oil on . Sold STC","height":98});
															thumbnails[8731151] = clik.newPhoto({"id":8731151,"src":"Clearing_Light_over_Moorland_50x50cms_oil_on_canvas_thumb.JPG","galleries_id":132086,"server_id":18,"link":"photo_8731151.html","width":130,"caption":"Clearing Light over Moorland, 50 x 50cms, oil on canvas. Sold STC","height":98});
															thumbnails[8731163] = clik.newPhoto({"id":8731163,"src":"Clouds_over_Carn_15x15cms_oil_on_canvas_thumb.JPG","galleries_id":132090,"server_id":18,"link":"photo_8731163.html","width":130,"caption":"Clouds over Carn, 15 x 15cms, oil on canvas. Sold STC","height":98});
															thumbnails[8731225] = clik.newPhoto({"id":8731225,"src":"Clouds_over_Penwith_Tor_50x50cms_oil_on_canvas_thumb.JPG","galleries_id":132086,"server_id":18,"link":"photo_8731225.html","width":130,"caption":"Clouds over Penwith Tor, 50 x 50xms, oil on canvas. Sold STC","height":98});
															thumbnails[8731278] = clik.newPhoto({"id":8731278,"src":"Dakota_Farm_Evening_20x20cms_oil_on_canvas_thumb.JPG","galleries_id":132087,"server_id":18,"link":"photo_8731278.html","width":130,"caption":"Dakota Farm Evening, 20 x 20cms, oil on canvas. Sold STC","height":98});
															thumbnails[8731397] = clik.newPhoto({"id":8731397,"src":"Distant_Blue_1_20x20cms_oil_on_canvas_thumb.JPG","galleries_id":132086,"server_id":18,"link":"photo_8731397.html","width":130,"caption":"Distant Blue 1, 20 x 20cms, oil on canvas. Sold STC","height":98});
															thumbnails[8731399] = clik.newPhoto({"id":8731399,"src":"Distant_Blue_2_20x20cms_oil_on_canvas_thumb.JPG","galleries_id":132086,"server_id":18,"link":"photo_8731399.html","width":130,"caption":"Distant Blue 2, 20 x 20cms, oil on canvas. Sold STC","height":98});
															thumbnails[8731402] = clik.newPhoto({"id":8731402,"src":"Late_Afternoon_at_Marazion_30x30cms_oil_on_canvas_thumb.JPG","galleries_id":132086,"server_id":18,"link":"photo_8731402.html","width":130,"caption":"Late Afternoon at Marazion, 30 x 30cms, oil on canvas. Sold STC","height":98});
															thumbnails[8731416] = clik.newPhoto({"id":8731416,"src":"Late_Afternoon_Curve_50x50cms_oil_on_canvas_thumb.JPG","galleries_id":132086,"server_id":18,"link":"photo_8731416.html","width":130,"caption":"Late Afternoon Curve, 50 x 50cms, oil on canvas. Sold STC","height":98});
															thumbnails[8731422] = clik.newPhoto({"id":8731422,"src":"Late_Sky_over_Dakota_Farm_30x30cms_oil_on_canvas_thumb.JPG","galleries_id":132086,"server_id":18,"link":"photo_8731422.html","width":130,"caption":"Late Sky over Dakota Farm, 30 x 30cms, oil on canvas. Sold STC","height":98});
															thumbnails[8731424] = clik.newPhoto({"id":8731424,"src":"Looking_West_15x15cms_oil_on_canvas_thumb.JPG","galleries_id":132087,"server_id":18,"link":"photo_8731424.html","width":130,"caption":"Looking West, 15 x 15cms, oil on canvas. Sold STC","height":98});
															thumbnails[8731426] = clik.newPhoto({"id":8731426,"src":"over_Morvah_Church_20x20cms_oil_on_canvas_thumb.JPG","galleries_id":132087,"server_id":18,"link":"photo_8731426.html","width":130,"caption":"over Morvah Church, 20 x 20cms, oil on canvas. Sold STC","height":98});
															thumbnails[8731427] = clik.newPhoto({"id":8731427,"src":"Penwith_Moor_30x30cms_oil_on_canvas_thumb.JPG","galleries_id":132086,"server_id":18,"link":"photo_8731427.html","width":130,"caption":"Penwith Moor, 30 x 30cms, oil on canvas. Sold STC","height":98});
															thumbnails[8731428] = clik.newPhoto({"id":8731428,"src":"Penwith_Pastorale_15x15cms_oil_on_canvas_thumb.JPG","galleries_id":132087,"server_id":18,"link":"photo_8731428.html","width":130,"caption":"penwith Pastorale, 15 x 15cms, oil on canvas. Sold STC","height":98});
															thumbnails[8731431] = clik.newPhoto({"id":8731431,"src":"Rising_15x15cms_oil_on_canvas_thumb.JPG","galleries_id":132086,"server_id":18,"link":"photo_8731431.html","width":130,"caption":"Rising, 15 x 15cms, oil on canvas. Sold STC","height":98});
															thumbnails[8731433] = clik.newPhoto({"id":8731433,"src":"St_Michaels_Mount_30x30cms_oil_on_canvas_thumb.JPG","galleries_id":132086,"server_id":18,"link":"photo_8731433.html","width":130,"caption":"St Michael's Mount, 30 x 30cms, oil on canvas. Sold STC","height":98});
															thumbnails[8731437] = clik.newPhoto({"id":8731437,"src":"towards_Gwennap_Head_50x50cms_oil_on_canvas_thumb.JPG","galleries_id":132086,"server_id":18,"link":"photo_8731437.html","width":130,"caption":"towards Gwennap Head, 50 x 50cms, oil on canvas. Sold STC","height":98});
															thumbnails[8731439] = clik.newPhoto({"id":8731439,"src":"West_Penwith_Moor_20x20cms_oil_on_canvas_thumb.JPG","galleries_id":132086,"server_id":18,"link":"photo_8731439.html","width":130,"caption":"West Penwith Moor, 20 x 20cms, oil on canvas. Sold STC","height":98});
															thumbnails[8731440] = clik.newPhoto({"id":8731440,"src":"West_Penwith_Moorland_30x30cms_oil_on_canvas_thumb.JPG","galleries_id":132086,"server_id":18,"link":"photo_8731440.html","width":130,"caption":"West Penwith Moorland, 30 x 30cms, oil on canvas. Sold STC","height":98});
															thumbnails[8926251] = clik.newPhoto({"id":8926251,"src":"100_2392_thumb.JPG","galleries_id":132090,"server_id":18,"link":"photo_8926251.html","width":130,"caption":"August Renoir, The Umbrellas 1880-83. Copy 76 x 51 cms. oil on canvas. Not available.","height":173});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[132086] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"recent work","link":"gallery_132086.html","maxRecords":0.0,"photoIDs":[7531697.0,7531702.0,7531704.0,7531705.0,7745254.0,7745264.0,7745271.0,8731122.0,8731146.0,8731151.0,8731225.0,8731397.0,8731399.0,8731402.0,8731416.0,8731422.0,8731427.0,8731431.0,8731433.0,8731437.0,8731439.0,8731440.0],"skipIndex":0,"section_code":"gallery","featured_images":"8731440,8731439,8731437,8731433,8731431,8731427,8731422,8731416,8731402,8731399","id":132086,"singleSection":false});				  						galleries[132087] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"recent work 2","link":"gallery_132087.html","maxRecords":0.0,"photoIDs":[1965166.0,1965254.0,1965298.0,1965304.0,1965312.0,1965713.0,1965722.0,1965738.0,1965757.0,7531700.0,7531701.0,7531703.0,7531706.0,7531709.0,7745249.0,7745260.0,7745449.0,7752707.0,8731278.0,8731424.0,8731426.0,8731428.0],"skipIndex":0,"section_code":"gallery","featured_images":"8731428,8731426,8731424,8731278,7752707,7745449,7745260,7745249,7531709,7531706","id":132087,"singleSection":false});				  						galleries[132089] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Scotland","link":"gallery_132089.html","maxRecords":0.0,"photoIDs":[1968427.0,1968429.0,1968432.0,1968437.0,1968441.0,1968444.0,1968446.0,1968451.0,1971991.0],"skipIndex":0,"section_code":"gallery","featured_images":"1971991,1968451,1968446,1968444,1968441,1968437,1968432,1968429,1968427","id":132089,"singleSection":false});				  						galleries[132088] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Other Work 1","link":"gallery_132088.html","maxRecords":0.0,"photoIDs":[1965133.0,1965186.0,1965207.0,1965307.0,1968405.0,1968406.0,1968412.0,1968416.0,1968418.0,1968419.0],"skipIndex":0,"section_code":"gallery","featured_images":"1968419,1968418,1968416,1968412,1968406,1968405,1965307,1965207,1965186,1965133","id":132088,"singleSection":false});				  						galleries[132090] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Other Work 2","link":"gallery_132090.html","maxRecords":0.0,"photoIDs":[1968458.0,1970670.0,1970684.0,1970690.0,2001510.0,7531678.0,7531689.0,7531692.0,7531694.0,8731163.0,8926251.0],"skipIndex":0,"section_code":"gallery","featured_images":"8926251,8731163,7531694,7531692,7531689,7531678,2001510,1970690,1970684,1970670","id":132090,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8731416,8731399,7535855,7531697,2889009,1965722';
imageSets[3] = '8926251,8731440,8731439,8731437,8731433,8731431,8731428,8731427,8731426,8731424,8731422,8731416,8731402,8731399,8731397,8731278,8731225,8731163,8731151,8731146,8731122,7752707,7745449,7745271,7745264,7745260,7745254,7745249,7535855,7531709,7531706,7531705,7531704,7531703,7531702,7531701,7531700,7531697,7531694,7531692,7531689,7531678,7531674,2907474,2889009,2001510,1971991,1971874,1970690,1970684';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/campbellb/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/campbellb/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/campbellb/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/campbellb/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/campbellb/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/campbellb/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/campbellb/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/campbellb/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/campbellb/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/campbellb/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/campbellb/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/campbellb/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/campbellb/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/campbellb/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/campbellb/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/campbellb/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/campbellb/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/campbellb/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/campbellb/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/campbellb/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/campbellb/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/campbellb/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/campbellb/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/campbellb/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/campbellb/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/campbellb/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/campbellb/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 = 'Alastair Campbell-Binning: ' + 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;
	}
}

			

