window.thumbnails = {};
															thumbnails[6779608] = clik.newPhoto({"id":6779608,"src":"Me-in-the-Studio_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":103,"caption":"","height":130});
															thumbnails[6779630] = clik.newPhoto({"id":6779630,"src":"Chris-Amon-Matra-1972-Frenc_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"'Chris Amon, Matra Simca, 1972 French G.P.'","height":101});
															thumbnails[6779754] = clik.newPhoto({"id":6779754,"src":"WilkoPark-372_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"'Wilko Park'","height":38});
															thumbnails[6779768] = clik.newPhoto({"id":6779768,"src":"Chezzy-Wilko-4621_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":95,"caption":"'Chesterfield Wilko'<br>\r\nCommisioned for the Wikinson Group 2003 Christmas card.","height":130});
															thumbnails[6781151] = clik.newPhoto({"id":6781151,"src":"Roadside-Trees-315_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"'Roadside Trees' (Featured in the May 1999 issue of 'Leisure Painter' magazine.)","height":77});
															thumbnails[6769197] = clik.newPhoto({"id":6769197,"src":"A-Troutbeck-Lane-Cumbria_thumb.jpg","galleries_id":368384,"server_id":5,"link":"photo_6769197.html","width":130,"caption":"'A Troutbeck Lane, Cumbria'","height":92});
															thumbnails[6773772] = clik.newPhoto({"id":6773772,"src":"Ladybower-Sunset-574_thumb.jpg","galleries_id":365759,"server_id":5,"link":"photo_6773772.html","width":130,"caption":"'Ladybower Sunset'","height":83});
															thumbnails[6774242] = clik.newPhoto({"id":6774242,"src":"Ardgour-from-Ballachulish-Bridge_thumb.jpg","galleries_id":368395,"server_id":5,"link":"photo_6774242.html","width":130,"caption":"'Ardgour Hills from the Ballachulish Bridge, Loch Leven'","height":47});
															thumbnails[8979821] = clik.newPhoto({"id":8979821,"src":"Lewis-age-6_thumb.jpg","galleries_id":365758,"server_id":5,"link":"photo_8979821.html","width":107,"caption":"'Lewis'","height":130});
															thumbnails[6773538] = clik.newPhoto({"id":6773538,"src":"Rosthwaite-Borrowdale-562_thumb.jpg","galleries_id":365759,"server_id":5,"link":"photo_6773538.html","width":130,"caption":"'Rosthwaite, Borrowdale'","height":96});
															thumbnails[6774269] = clik.newPhoto({"id":6774269,"src":"Bidean-Nam-Bian-from-the-Forest-road_thumb.jpg","galleries_id":368395,"server_id":5,"link":"photo_6774269.html","width":130,"caption":"'Bidean nam Bian from the Forestry road'","height":41});
															thumbnails[6775361] = clik.newPhoto({"id":6775361,"src":"Cottage-in-Troutbeck_thumb.jpg","galleries_id":368384,"server_id":5,"link":"photo_6775361.html","width":130,"caption":"'Cottage in Troutbeck'","height":89});
															thumbnails[6773536] = clik.newPhoto({"id":6773536,"src":"Peace-At-Night-SOLD-565_thumb.jpg","galleries_id":365759,"server_id":5,"link":"photo_6773536.html","width":130,"caption":"'Peace At Night'","height":87});
															thumbnails[6774167] = clik.newPhoto({"id":6774167,"src":"Cottage-on-Loch-Alsh-Nr-Ave_thumb.jpg","galleries_id":368384,"server_id":5,"link":"photo_6774167.html","width":130,"caption":"'Cottage on Loch Alsh, Avernish, Scottish Highlands'","height":91});
															thumbnails[6774282] = clik.newPhoto({"id":6774282,"src":"Bishops-Bay-Glen-Coe-006_thumb.jpg","galleries_id":368395,"server_id":5,"link":"photo_6774282.html","width":130,"caption":"'Bishop's Bay, Loch Leven, No.1'","height":53});
															thumbnails[6794097] = clik.newPhoto({"id":6794097,"src":"L-P-9-Fire-and-Ice_thumb.jpg","galleries_id":365758,"server_id":5,"link":"photo_6794097.html","width":98,"caption":"'Life Patterns No. 9 Fire and Ice'","height":130});
															thumbnails[9162559] = clik.newPhoto({"id":9162559,"src":"Winter-Morning-Anston-Ston_thumb.jpg","galleries_id":368377,"server_id":5,"link":"photo_9162559.html","width":130,"caption":"'Winter Morning, Anston Stones, South Yorkshire'","height":39});
															thumbnails[8313291] = clik.newPhoto({"id":8313291,"src":"Home-In-The-Trees-Glen-Etive_thumb.jpg","galleries_id":368377,"server_id":5,"link":"photo_8313291.html","width":110,"caption":"'Home in the Trees, Glen Etive'","height":130});
															thumbnails[7459926] = clik.newPhoto({"id":7459926,"src":"After-The-Storm-Blencathra_thumb.jpg","galleries_id":368377,"server_id":5,"link":"photo_7459926.html","width":130,"caption":"'After The Storm, Blencathra'","height":36});
															thumbnails[7459953] = clik.newPhoto({"id":7459953,"src":"Sun-And-Snow-Great-Dodd-N_thumb.jpg","galleries_id":368377,"server_id":5,"link":"photo_7459953.html","width":130,"caption":"'Sun And Snow, Great Dodd, Near Thirlmere'","height":83});
															thumbnails[7459949] = clik.newPhoto({"id":7459949,"src":"Thirlmere-South-From-Dob-Gi_thumb.jpg","galleries_id":368377,"server_id":5,"link":"photo_7459949.html","width":130,"caption":"'Thirlmere South From Dob Gill'","height":51});
															thumbnails[7082332] = clik.newPhoto({"id":7082332,"src":"Langdale-From-Harry-Place-F_thumb.jpg","galleries_id":368377,"server_id":5,"link":"photo_7082332.html","width":130,"caption":"'Langdale From Harry Place Farm'","height":66});
															thumbnails[6774140] = clik.newPhoto({"id":6774140,"src":"Edge-of-the-Storm-Edale_thumb.jpg","galleries_id":368377,"server_id":5,"link":"photo_6774140.html","width":130,"caption":"'Edge of the Storm, Edale'","height":50});
															thumbnails[6774058] = clik.newPhoto({"id":6774058,"src":"Farmyard-at-Nether-Booth-Ed_thumb.jpg","galleries_id":368377,"server_id":5,"link":"photo_6774058.html","width":130,"caption":"'Farmyard at Nether Booth, Edale'","height":95});
															thumbnails[6770104] = clik.newPhoto({"id":6770104,"src":"Stonethwaite-Fm-Borrowdale_thumb.jpg","galleries_id":368377,"server_id":5,"link":"photo_6770104.html","width":130,"caption":"'Stonethwaite Farm, Borrowdale'","height":94});
															thumbnails[6773038] = clik.newPhoto({"id":6773038,"src":"Park-House-Farm-near-Skelw1_thumb.jpg","galleries_id":368377,"server_id":5,"link":"photo_6773038.html","width":130,"caption":"'Parkhouse Farm, near Skelwith Bridge, Cumbria'","height":88});
															thumbnails[6773591] = clik.newPhoto({"id":6773591,"src":"Farm-Gate-Baslow-SOLD-555_thumb.jpg","galleries_id":365759,"server_id":5,"link":"photo_6773591.html","width":130,"caption":"'Farm Gate, Baslow, Derbyshire'","height":97});
															thumbnails[6773973] = clik.newPhoto({"id":6773973,"src":"Life-Patterns-No6-549_thumb.jpg","galleries_id":365758,"server_id":5,"link":"photo_6773973.html","width":130,"caption":"'Life Patterns No. 6'","height":86});
															thumbnails[6774286] = clik.newPhoto({"id":6774286,"src":"Bishops-Bay-Glen-Coe-007_thumb.jpg","galleries_id":368395,"server_id":5,"link":"photo_6774286.html","width":130,"caption":"'Bishop's Bay, Loch Leven, No.2'","height":40});
															thumbnails[6775381] = clik.newPhoto({"id":6775381,"src":"Eskdale-Farms-Cumbria_thumb.jpg","galleries_id":368384,"server_id":5,"link":"photo_6775381.html","width":130,"caption":"'Eskdale Farms, Cumbria'","height":89});
															thumbnails[6768954] = clik.newPhoto({"id":6768954,"src":"A-Dream-Of-Eagles-5375_thumb.jpg","galleries_id":365758,"server_id":5,"link":"photo_6768954.html","width":98,"caption":"'A Dream of Eagles'","height":130});
															thumbnails[6769141] = clik.newPhoto({"id":6769141,"src":"Approaching-Storm-Cockley-B_thumb.jpg","galleries_id":365759,"server_id":5,"link":"photo_6769141.html","width":130,"caption":"'Approaching Storm, Cockley Beck, Cumbria'","height":98});
															thumbnails[6773040] = clik.newPhoto({"id":6773040,"src":"Middle-Howe-Rosthwaite-Borr1_thumb.jpg","galleries_id":368377,"server_id":5,"link":"photo_6773040.html","width":130,"caption":"'Middle Howe, Rosthwaite, Borrowdale'","height":96});
															thumbnails[6774207] = clik.newPhoto({"id":6774207,"src":"Farm-At-Alport-Derbyshire_thumb.jpg","galleries_id":368384,"server_id":5,"link":"photo_6774207.html","width":130,"caption":"'Farm at Alport, Derbyshire'","height":94});
															thumbnails[6774343] = clik.newPhoto({"id":6774343,"src":"Glen-Coe-Village-panorama_thumb.jpg","galleries_id":368395,"server_id":5,"link":"photo_6774343.html","width":130,"caption":"'Glen Coe Village, the Pap and the Mamore Hills, from Loch Leven shoreline'","height":31});
															thumbnails[6767231] = clik.newPhoto({"id":6767231,"src":"Farm-Gates-St-Johns-Valley_thumb.jpg","galleries_id":368384,"server_id":5,"link":"photo_6767231.html","width":88,"caption":"'Farm Gates, St. John's Valley, Cumbria'","height":130});
															thumbnails[6773074] = clik.newPhoto({"id":6773074,"src":"Clearing-Skies-Borrowdale-5_thumb.jpg","galleries_id":368377,"server_id":5,"link":"photo_6773074.html","width":130,"caption":"'Clearing Skies, Borrowdale'","height":44});
															thumbnails[6773652] = clik.newPhoto({"id":6773652,"src":"Grasmere-SOLD-541_thumb.jpg","galleries_id":365759,"server_id":5,"link":"photo_6773652.html","width":130,"caption":"'Grasmere'","height":40});
															thumbnails[6774334] = clik.newPhoto({"id":6774334,"src":"Glen-Coe-Mountains-from-the-Lochan_thumb.jpg","galleries_id":368395,"server_id":5,"link":"photo_6774334.html","width":130,"caption":"'The Glen Coe Mountains from the Lochan'","height":60});
															thumbnails[6794107] = clik.newPhoto({"id":6794107,"src":"L-P-5-The-Dreamer_3A9BAA0D-24E8-5EC4-4FF419276224E03F_thumb.jpg","galleries_id":365758,"server_id":5,"link":"photo_6794107.html","width":130,"caption":"'Life Patterns No.5, The Dreamer'","height":50});
															thumbnails[8313289] = clik.newPhoto({"id":8313289,"src":"Trees-by-Loch-Quoich-Knoydart1_thumb.jpg","galleries_id":368377,"server_id":5,"link":"photo_8313289.html","width":130,"caption":"'Trees by Loch Quoich, Knoydart'","height":97});
															thumbnails[6773595] = clik.newPhoto({"id":6773595,"src":"Watendlath-Bridge-SOLD-529_thumb.jpg","galleries_id":365759,"server_id":5,"link":"photo_6773595.html","width":130,"caption":"'The Bridge at Watendlath, Cumbria'","height":64});
															thumbnails[6773957] = clik.newPhoto({"id":6773957,"src":"Life-Patterns-No2-515_thumb.jpg","galleries_id":365758,"server_id":5,"link":"photo_6773957.html","width":130,"caption":"'Life Patterns No. 2'","height":102});
															thumbnails[6775402] = clik.newPhoto({"id":6775402,"src":"Mayfield-Valley-Sheffield_thumb.jpg","galleries_id":368384,"server_id":5,"link":"photo_6775402.html","width":130,"caption":"'Farm in the Mayfield Valley, Sheffield'","height":88});
															thumbnails[6779101] = clik.newPhoto({"id":6779101,"src":"Loch-Linnhe--Glen-Coe-001_thumb.jpg","galleries_id":368395,"server_id":5,"link":"photo_6779101.html","width":130,"caption":"'Loch Linnhe and the Glen Coe Mountains, from the shoreline at Onich'","height":88});
															thumbnails[6978899] = clik.newPhoto({"id":6978899,"src":"Stob-Coire-Glen-Coe-1_thumb.jpg","galleries_id":368377,"server_id":5,"link":"photo_6978899.html","width":130,"caption":"'Stob Coire, Glen Coe'","height":50});
															thumbnails[6767130] = clik.newPhoto({"id":6767130,"src":"Life-Patterns-No1-SOLD-5101_thumb.jpg","galleries_id":365759,"server_id":5,"link":"photo_6767130.html","width":98,"caption":"'Life Patterns No. 1'","height":130});
															thumbnails[6773152] = clik.newPhoto({"id":6773152,"src":"Home-by-the-Sea-Morar-567_thumb.jpg","galleries_id":368377,"server_id":5,"link":"photo_6773152.html","width":130,"caption":"'Home by the Sea, Morar'","height":62});
															thumbnails[6773927] = clik.newPhoto({"id":6773927,"src":"Heat-Wave-511_thumb.jpg","galleries_id":365758,"server_id":5,"link":"photo_6773927.html","width":130,"caption":"'Heat Wave'","height":100});
															thumbnails[6775396] = clik.newPhoto({"id":6775396,"src":"Farm-Nr-Skelwith-Bridge-Cum_thumb.jpg","galleries_id":368384,"server_id":5,"link":"photo_6775396.html","width":130,"caption":"'Farm near Skelwith Bridge, Cumbria'","height":90});
															thumbnails[6779166] = clik.newPhoto({"id":6779166,"src":"Loch-Linnhe-Shore-at-Onich_thumb.jpg","galleries_id":368395,"server_id":5,"link":"photo_6779166.html","width":130,"caption":"'Loch Linnhe shoreline at Onich'","height":39});
															thumbnails[6773154] = clik.newPhoto({"id":6773154,"src":"Summer-Light-Edale-566_thumb.jpg","galleries_id":368377,"server_id":5,"link":"photo_6773154.html","width":130,"caption":"'Summer Light, Edale, Derbyshire'","height":60});
															thumbnails[6773650] = clik.newPhoto({"id":6773650,"src":"Oak-Howe-Langdale-SOLD-493_thumb.jpg","galleries_id":365759,"server_id":5,"link":"photo_6773650.html","width":130,"caption":"'Oak Howe, Langdale'","height":94});
															thumbnails[6774216] = clik.newPhoto({"id":6774216,"src":"Letterfearn-Loch-Duich-High_thumb.jpg","galleries_id":368384,"server_id":5,"link":"photo_6774216.html","width":130,"caption":"'Letterfearn, Loch Duich, Highlands'","height":89});
															thumbnails[6779310] = clik.newPhoto({"id":6779310,"src":"River-Coe-Falls_thumb.jpg","galleries_id":368395,"server_id":5,"link":"photo_6779310.html","width":130,"caption":"'River Coe Falls, Glen Coe, Highlands'","height":101});
															thumbnails[6767304] = clik.newPhoto({"id":6767304,"src":"Farm-In-Little-Langdale_thumb.jpg","galleries_id":365759,"server_id":5,"link":"photo_6767304.html","width":118,"caption":"'Farm in Little Langdale'","height":130});
															thumbnails[6773156] = clik.newPhoto({"id":6773156,"src":"Easedale-Cumbria-563_thumb.jpg","galleries_id":368377,"server_id":5,"link":"photo_6773156.html","width":130,"caption":"'Easedale, Cumbria'","height":96});
															thumbnails[6774195] = clik.newPhoto({"id":6774195,"src":"Millers-Dale-Derbyshire_thumb.jpg","galleries_id":368384,"server_id":5,"link":"photo_6774195.html","width":130,"caption":"'Miller's Dale, Derbyshire'","height":89});
															thumbnails[6770098] = clik.newPhoto({"id":6770098,"src":"Moorland-Stile-482_thumb.jpg","galleries_id":365759,"server_id":5,"link":"photo_6770098.html","width":130,"caption":"'Moorland Wall'","height":40});
															thumbnails[6773180] = clik.newPhoto({"id":6773180,"src":"Blencathra-561_thumb.jpg","galleries_id":368377,"server_id":5,"link":"photo_6773180.html","width":130,"caption":"'Blencathra'","height":53});
															thumbnails[6775313] = clik.newPhoto({"id":6775313,"src":"In-Troutbeck-Village_thumb.jpg","galleries_id":368384,"server_id":5,"link":"photo_6775313.html","width":130,"caption":"'In Troutbeck Village'","height":84});
															thumbnails[6779377] = clik.newPhoto({"id":6779377,"src":"Stob-Coire-Glen-Coe_thumb.jpg","galleries_id":368395,"server_id":5,"link":"photo_6779377.html","width":130,"caption":"'Stob Coire, Glen Coe, from near the Clachaig Inn'","height":45});
															thumbnails[6773271] = clik.newPhoto({"id":6773271,"src":"Clearing-Skies-Morar-554_thumb.jpg","galleries_id":368377,"server_id":5,"link":"photo_6773271.html","width":130,"caption":"'Clearing Skies, Morar'","height":53});
															thumbnails[6773656] = clik.newPhoto({"id":6773656,"src":"Farm-near-Dungeon-Ghyll-477_thumb.jpg","galleries_id":365759,"server_id":5,"link":"photo_6773656.html","width":130,"caption":"'Farm near Dungeon Ghyll, Cumbria'","height":94});
															thumbnails[6774337] = clik.newPhoto({"id":6774337,"src":"Glen-Coe-The-3-Sisters_thumb.jpg","galleries_id":368395,"server_id":5,"link":"photo_6774337.html","width":130,"caption":"'The Three Sisters, Glen Coe'","height":59});
															thumbnails[6773533] = clik.newPhoto({"id":6773533,"src":"White-Moss-Hideaway-Grasmer1_thumb.jpg","galleries_id":368377,"server_id":5,"link":"photo_6773533.html","width":130,"caption":"'White Moss Hideaway, Grasmere'","height":99});
															thumbnails[6779316] = clik.newPhoto({"id":6779316,"src":"St-Brides-North-Ballachulish_thumb.jpg","galleries_id":368395,"server_id":5,"link":"photo_6779316.html","width":130,"caption":"'St. Brides corner, North Ballachulish'","height":48});
															thumbnails[6779411] = clik.newPhoto({"id":6779411,"src":"Upper-Carnoch-Glen-Coe_thumb.jpg","galleries_id":368395,"server_id":5,"link":"photo_6779411.html","width":130,"caption":"'Upper Carnoch, Glen Coe'","height":62});
															thumbnails[6767116] = clik.newPhoto({"id":6767116,"src":"Freesias-No1-4501_thumb.jpg","galleries_id":368377,"server_id":5,"link":"photo_6767116.html","width":88,"caption":"'Freesias'","height":130});
															thumbnails[6773712] = clik.newPhoto({"id":6773712,"src":"Cliff-Top-Cottages-Robin-Ho_thumb.jpg","galleries_id":365759,"server_id":5,"link":"photo_6773712.html","width":130,"caption":"'Cliff Top Cottages, Robin Hood's Bay'","height":96});
															thumbnails[6774347] = clik.newPhoto({"id":6774347,"src":"Glen-Etive-above-Lochan-Urr_thumb.jpg","galleries_id":368395,"server_id":5,"link":"photo_6774347.html","width":130,"caption":"'Glen Etive above Lochan Urr'","height":64});
															thumbnails[6767146] = clik.newPhoto({"id":6767146,"src":"Waiting-SOLD-443_thumb.jpg","galleries_id":365759,"server_id":5,"link":"photo_6767146.html","width":95,"caption":"'Waiting'","height":130});
															thumbnails[6774349] = clik.newPhoto({"id":6774349,"src":"Lochan-Urr--Beinn-Chaorach_thumb.jpg","galleries_id":368395,"server_id":5,"link":"photo_6774349.html","width":130,"caption":"'Lochan Urr and Beinn Chaorach, Glen Etive'","height":41});
															thumbnails[6767140] = clik.newPhoto({"id":6767140,"src":"Wake-Up-Grandad-Its-your-r1_thumb.jpg","galleries_id":365759,"server_id":5,"link":"photo_6767140.html","width":93,"caption":"'Wake Up, Grandad, It's Your Round!'","height":130});
															thumbnails[6778853] = clik.newPhoto({"id":6778853,"src":"Lochan-Urr-Glen-Etive-006_thumb.jpg","galleries_id":368395,"server_id":5,"link":"photo_6778853.html","width":130,"caption":"'Lochan Urr, Glen Etive'","height":56});
															thumbnails[6769739] = clik.newPhoto({"id":6769739,"src":"Cottage-In-Glen-Etive-4341_thumb.jpg","galleries_id":365759,"server_id":5,"link":"photo_6769739.html","width":107,"caption":"'Cottage in Glen Etive, Highlands'","height":130});
															thumbnails[6779312] = clik.newPhoto({"id":6779312,"src":"River-Etive-near-Lochan-Urr_thumb.jpg","galleries_id":368395,"server_id":5,"link":"photo_6779312.html","width":130,"caption":"'River Etive and Beinn Chaorach, near Lochan Urr'","height":97});
															thumbnails[6767214] = clik.newPhoto({"id":6767214,"src":"Mungry-SOLD-4311_thumb.jpg","galleries_id":365759,"server_id":5,"link":"photo_6767214.html","width":104,"caption":"'M'ungry'","height":130});
															thumbnails[6779168] = clik.newPhoto({"id":6779168,"src":"Loch-Quoich-Knoydart_thumb.jpg","galleries_id":368395,"server_id":5,"link":"photo_6779168.html","width":130,"caption":"'Knoydart Mountains, from Loch Quoich'","height":39});
															thumbnails[6769009] = clik.newPhoto({"id":6769009,"src":"Winter-Morning-Alport-4034_thumb.jpg","galleries_id":365759,"server_id":5,"link":"photo_6769009.html","width":130,"caption":"'Winter Morning, Alport, Derbyshire'","height":86});
															thumbnails[6779220] = clik.newPhoto({"id":6779220,"src":"Loch-Tulla-002-pan_thumb.jpg","galleries_id":368395,"server_id":5,"link":"photo_6779220.html","width":130,"caption":"'Loch Tulla, Scottish Highlands, No.1'","height":43});
															thumbnails[6773717] = clik.newPhoto({"id":6773717,"src":"The-Kite-Flyers-Morar-396_thumb.jpg","galleries_id":365759,"server_id":5,"link":"photo_6773717.html","width":130,"caption":"'The Kite Flyers, Morar'","height":52});
															thumbnails[6779223] = clik.newPhoto({"id":6779223,"src":"Loch-Tulla-003-pan_thumb.jpg","galleries_id":368395,"server_id":5,"link":"photo_6779223.html","width":130,"caption":"'Loch Tulla, Scottish Highlands, No.2'","height":45});
															thumbnails[6779276] = clik.newPhoto({"id":6779276,"src":"Nether-Lochaber-from-Ardgour_thumb.jpg","galleries_id":368395,"server_id":5,"link":"photo_6779276.html","width":130,"caption":"'Nether Lochaber sunset, from Ardgour'","height":28});
															thumbnails[6779277] = clik.newPhoto({"id":6779277,"src":"Portuark-from-Sanna-Beach_thumb.jpg","galleries_id":368395,"server_id":5,"link":"photo_6779277.html","width":130,"caption":"'Portuark, Ardnamurchan, from Sanna Beach'","height":54});
															thumbnails[6774328] = clik.newPhoto({"id":6774328,"src":"Ferry-Cottage-Grass-Point-Mull_thumb.jpg","galleries_id":368395,"server_id":5,"link":"photo_6774328.html","width":130,"caption":"'Ferry Cottage, Grass Point, Mull'","height":63});
															thumbnails[6774260] = clik.newPhoto({"id":6774260,"src":"Auchencairn-Bay-Dumfries_thumb.jpg","galleries_id":368395,"server_id":5,"link":"photo_6774260.html","width":130,"caption":"'Auchencairn Bay, Dumfries, from Balcary'","height":32});
															thumbnails[6774298] = clik.newPhoto({"id":6774298,"src":"Edinburgh-from-Calton-Hill_thumb.jpg","galleries_id":368395,"server_id":5,"link":"photo_6774298.html","width":130,"caption":"'Edinburgh from Calton Hill'","height":84});
															thumbnails[6774292] = clik.newPhoto({"id":6774292,"src":"Castle-Crag-from-Rosthwaite_thumb.jpg","galleries_id":368395,"server_id":5,"link":"photo_6774292.html","width":130,"caption":"'Castle Crag from Rosthwaite, Borrowdale'","height":41});
															thumbnails[6774301] = clik.newPhoto({"id":6774301,"src":"Elterwater--the-Langdale-Pikes_thumb.jpg","galleries_id":368395,"server_id":5,"link":"photo_6774301.html","width":130,"caption":"'Elterwater and the Langdale Pikes, Cumbria'","height":53});
															thumbnails[7647300] = clik.newPhoto({"id":7647300,"src":"Early-Mist-Elterwater_thumb.jpg","galleries_id":368395,"server_id":5,"link":"photo_7647300.html","width":130,"caption":"'Early Mist, Elterwater, Cumbria'","height":40});
															thumbnails[7647316] = clik.newPhoto({"id":7647316,"src":"Arnside-from-Tarn-Hows_thumb.jpg","galleries_id":368395,"server_id":5,"link":"photo_7647316.html","width":130,"caption":"'Arnside from Tarn Hows, Cumbria'","height":50});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[368377] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Current Works ~ Unsold","link":"gallery_368377.html","maxRecords":0.0,"photoIDs":[9162559.0,8313291.0,7459926.0,7459953.0,7459949.0,7082332.0,6774140.0,6774058.0,6770104.0,6773038.0,6773040.0,6773074.0,8313289.0,6978899.0,6773152.0,6773154.0,6773156.0,6773180.0,6773271.0,6773533.0,6767116.0],"skipIndex":0,"section_code":"gallery","featured_images":"9162559,8313291,8313289,7459953,7459949,7459926,7082332,6978899,6774140,6774058,6773533,6773271,6773180,6773156,6773154,6773152,6773074,6773040,6773038,6770104,6767116","id":368377,"singleSection":false});				  						galleries[365758] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Figure Studies and Portraits","link":"gallery_365758.html","maxRecords":0.0,"photoIDs":[8979821.0,6794097.0,6773973.0,6768954.0,6794107.0,6773957.0,6773927.0],"skipIndex":0,"section_code":"gallery","featured_images":8979821,"id":365758,"singleSection":false});				  						galleries[365759] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Works now Sold","link":"gallery_365759.html","maxRecords":0.0,"photoIDs":[6773772.0,6773538.0,6773536.0,6773591.0,6769141.0,6773652.0,6773595.0,6767130.0,6773650.0,6767304.0,6770098.0,6773656.0,6773712.0,6767146.0,6767140.0,6769739.0,6767214.0,6769009.0,6773717.0],"skipIndex":0,"section_code":"gallery","featured_images":"6773772,6773717,6773712,6773656,6773652,6773650,6773595,6773591,6773538,6773536,6770098,6769739,6769141,6769009,6767304,6767214,6767146,6767140,6767130","id":365759,"singleSection":false});				  						galleries[368384] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Drawings and Sketches","link":"gallery_368384.html","maxRecords":0.0,"photoIDs":[6769197.0,6775361.0,6774167.0,6775381.0,6774207.0,6767231.0,6775402.0,6775396.0,6774216.0,6774195.0,6775313.0],"skipIndex":0,"section_code":"gallery","featured_images":"6775402,6775396,6775381,6775361,6775313,6774216,6774207,6774195,6774167,6769197,6767231","id":368384,"singleSection":false});				  						galleries[368395] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Photographs","link":"gallery_368395.html","maxRecords":0.0,"photoIDs":[6774242.0,6774269.0,6774282.0,6774286.0,6774343.0,6774334.0,6779101.0,6779166.0,6779310.0,6779377.0,6774337.0,6779316.0,6779411.0,6774347.0,6774349.0,6778853.0,6779312.0,6779168.0,6779220.0,6779223.0,6779276.0,6779277.0,6774328.0,6774260.0,6774298.0,6774292.0,6774301.0,7647300.0,7647316.0],"skipIndex":0,"section_code":"gallery","featured_images":"7647300,6779411,6779377,6779316,6779312,6779310,6779277,6779276,6779223,6779220,6779168,6779166,6779101,6778853,6774349,6774347,6774343,6774337,6774334,6774328,6774301,6774298,6774292,6774286,6774282,6774269,6774260,6774242","id":368395,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8979821,6773772,6773538,6773536,9162559,8313291,7459926,7459953,7459949,7082332,6774140,6774058,6770104,6773591,6773038,6773040,6769141,6773652,6773074,8313289,6978899,6773595,6773152,6773650,6773154,6773156,6767304,6773180,6770098,6773656,6773271,6773533,6773712,6767116,6767146,6767140,6769739,6767214,6769009,6773717';
imageSets[2] = '8979821,6774242,6773772,6769197,6775361,6774269,6773538,6794097,6774282,6774167,6773536,9162559,8313291,7459926,7459953,7459949,7082332,6774140,6774058,6770104,6775381,6774286,6773973,6773591,6773038,6774343,6774207,6773040,6769141,6768954,6794107,6774334,6773652,6773074,6767231,8313289,6978899,6779101,6775402,6773957,6773595,6779166,6775396,6773927,6773152,6767130,6779310,6774216,6773650,6773154,6774195,6773156,6767304,6779377,6775313,6773180,6770098,6774337,6773656,6773271,6779316,6773533,6779411,6774347,6773712,6767116,6774349,6767146,6778853,6767140,6779312,6769739,6779168,6767214,6779220,6769009,6779223,6773717,6779276,6779277,6774328,6774260,6774298,6774292,6774301,7647300';
imageSets[3] = '8979821,9162559,8313291,7459926,8313289';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/chrisshipgood/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/chrisshipgood/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/chrisshipgood/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/chrisshipgood/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/chrisshipgood/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/chrisshipgood/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/chrisshipgood/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/chrisshipgood/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/chrisshipgood/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/chrisshipgood/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/chrisshipgood/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/chrisshipgood/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/chrisshipgood/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/chrisshipgood/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/chrisshipgood/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/chrisshipgood/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/chrisshipgood/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/chrisshipgood/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/chrisshipgood/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/chrisshipgood/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/chrisshipgood/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/chrisshipgood/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/chrisshipgood/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/chrisshipgood/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/chrisshipgood/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/chrisshipgood/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/chrisshipgood/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 = 'Chris Shipgood Artist: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
	temp += this.fnGetPaymentInfo();
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
																		temp += '<p>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
		 									temp += '<select class="paymentlink" name="payment_options_id" onchange="updateCartValue($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
		else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
											temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm">';
			temp += '	<input type="hidden" name="item_option" value="' + item_option + '">';
			temp += '	<input type="hidden" name="site" value="CHRISSHIPGOOD">';
			temp += '	<input type="hidden" name="item_number" value="'+ this.id +'">';
			temp += '	<input type="hidden" name="quantity" value="1">';
						temp += '	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\'\;" onmouseout="this.className=\'button\'\;" type="Button">';
							temp += '	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';
			temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
			temp += '<div id="confirmContainer">';
			temp += '<div id="paymentConfirm">Item added to cart</div>';
			temp += '</div>';
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

