window.thumbnails = {};
															thumbnails[408669] = clik.newPhoto({"id":408669,"src":"GirlMarketWatercolourLow1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":83,"caption":"not for sale","height":130});
															thumbnails[1651317] = clik.newPhoto({"id":1651317,"src":"Iain May 2007_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":99,"caption":"","height":130});
															thumbnails[4620046] = clik.newPhoto({"id":4620046,"src":"Cows_1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"sold","height":108});
															thumbnails[8814729] = clik.newPhoto({"id":8814729,"src":"Boys_on_the_Beach_Iain_Vellacott_Med_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":91});
															thumbnails[5831727] = clik.newPhoto({"id":5831727,"src":"Iain_Vellacott_2_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":127});
															thumbnails[3139848] = clik.newPhoto({"id":3139848,"src":"IMG_1327Med_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"sold","height":96});
															thumbnails[4317355] = clik.newPhoto({"id":4317355,"src":"IMG_8302_Med_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"sold","height":93});
															thumbnails[4872266] = clik.newPhoto({"id":4872266,"src":"IMG_9241med_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"sold","height":64});
															thumbnails[2182999] = clik.newPhoto({"id":2182999,"src":"IMG_3765_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":129});
															thumbnails[3090094] = clik.newPhoto({"id":3090094,"src":"IMG_1299Med_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":84});
															thumbnails[5564984] = clik.newPhoto({"id":5564984,"src":"IMG_9870_MED_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"sold","height":130});
															thumbnails[6886087] = clik.newPhoto({"id":6886087,"src":"IMG_0106b_MEDc_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":93});
															thumbnails[4933451] = clik.newPhoto({"id":4933451,"src":"IMG_9461med2_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":81});
															thumbnails[2030941] = clik.newPhoto({"id":2030941,"src":"IMG_1670_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":99});
															thumbnails[5457739] = clik.newPhoto({"id":5457739,"src":"After_Chapel_MED_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"sold","height":130});
															thumbnails[2030633] = clik.newPhoto({"id":2030633,"src":"IMG_17001_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":65});
															thumbnails[1776070] = clik.newPhoto({"id":1776070,"src":"IMG_0903_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"sold","height":64});
															thumbnails[5565000] = clik.newPhoto({"id":5565000,"src":"IMG_0201_MED_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"sold","height":98});
															thumbnails[736430] = clik.newPhoto({"id":736430,"src":"Breakfast in the Market Final Low_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"sold","height":103});
															thumbnails[730288] = clik.newPhoto({"id":730288,"src":"Washing Low_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"sold","height":100});
															thumbnails[5565005] = clik.newPhoto({"id":5565005,"src":"AND_ONE_WALL_2_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":130});
															thumbnails[1816063] = clik.newPhoto({"id":1816063,"src":"IMG_1157_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":64});
															thumbnails[1243292] = clik.newPhoto({"id":1243292,"src":"La Revolution 2_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[1825429] = clik.newPhoto({"id":1825429,"src":"IMG_1208_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":89});
															thumbnails[1853178] = clik.newPhoto({"id":1853178,"src":"IMG_1464_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":108,"caption":"","height":130});
															thumbnails[2225401] = clik.newPhoto({"id":2225401,"src":"IMG_3755_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":94});
															thumbnails[5569423] = clik.newPhoto({"id":5569423,"src":"IMG_2951_MED_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":85});
															thumbnails[637425] = clik.newPhoto({"id":637425,"src":"Le Journal_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":98,"caption":"sold","height":130});
															thumbnails[949835] = clik.newPhoto({"id":949835,"src":"Cathedral Avenue_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":86,"caption":"sold","height":130});
															thumbnails[1816064] = clik.newPhoto({"id":1816064,"src":"IMG_1151_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":89});
															thumbnails[713407] = clik.newPhoto({"id":713407,"src":"CafegirlFinal 2_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":108,"caption":"sold","height":130});
															thumbnails[4316580] = clik.newPhoto({"id":4316580,"src":"IMG_3893_Med_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":97,"caption":"","height":130});
															thumbnails[2225246] = clik.newPhoto({"id":2225246,"src":"IMG_3555_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":130});
															thumbnails[1007970] = clik.newPhoto({"id":1007970,"src":"Playing in Wave_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"sold","height":94});
															thumbnails[2928346] = clik.newPhoto({"id":2928346,"src":"IMG_8666low_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"sold","height":64});
															thumbnails[2030702] = clik.newPhoto({"id":2030702,"src":"IMG_1684_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"sold","height":95});
															thumbnails[2130037] = clik.newPhoto({"id":2130037,"src":"Skimmers_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"sold","height":90});
															thumbnails[713408] = clik.newPhoto({"id":713408,"src":"Waiter Final 2 Low_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":110,"caption":"sold","height":130});
															thumbnails[1757776] = clik.newPhoto({"id":1757776,"src":"IMG_0906_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":107,"caption":"sold","height":130});
															thumbnails[440870] = clik.newPhoto({"id":440870,"src":"Queenwoodfinal imp_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"sold","height":97});
															thumbnails[390698] = clik.newPhoto({"id":390698,"src":"FetedelaMusic160_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"sold","height":106});
															thumbnails[1772203] = clik.newPhoto({"id":1772203,"src":"IMG_0874_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":92});
															thumbnails[390707] = clik.newPhoto({"id":390707,"src":"Soreze160_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"sold","height":111});
															thumbnails[1625747] = clik.newPhoto({"id":1625747,"src":"IMG_0295_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"sold","height":89});
															thumbnails[1458756] = clik.newPhoto({"id":1458756,"src":"IMG_0896_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":96});
															thumbnails[1625744] = clik.newPhoto({"id":1625744,"src":"IMG_0311_NEW_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":100});
															thumbnails[2225404] = clik.newPhoto({"id":2225404,"src":"IMG_1637_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"sold","height":64});
															thumbnails[951939] = clik.newPhoto({"id":951939,"src":"Umbrella in Market_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":107,"caption":"","height":130});
															thumbnails[2933633] = clik.newPhoto({"id":2933633,"src":"IMG_9219low_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":94});
															thumbnails[916209] = clik.newPhoto({"id":916209,"src":"Cows_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"sold","height":108});
															thumbnails[1458765] = clik.newPhoto({"id":1458765,"src":"IMG_0255_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"sold","height":92});
															thumbnails[390702] = clik.newPhoto({"id":390702,"src":"Revelcafesociety160_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"sold","height":99});
															thumbnails[2225391] = clik.newPhoto({"id":2225391,"src":"IMG_3529_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":89});
															thumbnails[2225383] = clik.newPhoto({"id":2225383,"src":"IMG_4140Med_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":65});
															thumbnails[1459049] = clik.newPhoto({"id":1459049,"src":"Uncle Frank 4_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":91,"caption":"sold","height":130});
															thumbnails[2225402] = clik.newPhoto({"id":2225402,"src":"IMG_3772_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":64,"caption":"sold","height":130});
															thumbnails[2255657] = clik.newPhoto({"id":2255657,"src":"IMG_3953low_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"sold","height":80});
															thumbnails[2256387] = clik.newPhoto({"id":2256387,"src":"IMG_4119Med_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":65});
															thumbnails[5940723] = clik.newPhoto({"id":5940723,"src":"Chapel_Choir_by_Iain_Vellacott_Med_thumb.jpg","galleries_id":61203,"server_id":1,"link":"photo_5940723.html","width":130,"caption":"sold","height":98});
															thumbnails[7603758] = clik.newPhoto({"id":7603758,"src":"IMG_4147_low_thumb.jpg","galleries_id":61203,"server_id":1,"link":"photo_7603758.html","width":130,"caption":"sold","height":129});
															thumbnails[5564974] = clik.newPhoto({"id":5564974,"src":"Bogles_on_Kingsgate_Street_MED_thumb.jpg","galleries_id":61203,"server_id":1,"link":"photo_5564974.html","width":130,"caption":"sold","height":65});
															thumbnails[7292263] = clik.newPhoto({"id":7292263,"src":"IMG_0124_LOW_thumb.jpg","galleries_id":61203,"server_id":1,"link":"photo_7292263.html","width":130,"caption":"sold","height":95});
															thumbnails[3090092] = clik.newPhoto({"id":3090092,"src":"IMG_1311Med_thumb.jpg","galleries_id":61203,"server_id":1,"link":"photo_3090092.html","width":130,"caption":"","height":65});
															thumbnails[3486074] = clik.newPhoto({"id":3486074,"src":"IMG_3014_thumb.jpg","galleries_id":61203,"server_id":1,"link":"photo_3486074.html","width":130,"caption":"sold","height":98});
															thumbnails[5458292] = clik.newPhoto({"id":5458292,"src":"IMG_9935bMED_thumb.jpg","galleries_id":61203,"server_id":1,"link":"photo_5458292.html","width":130,"caption":"sold","height":51});
															thumbnails[6070987] = clik.newPhoto({"id":6070987,"src":"Boules_Players_by_Iain_Vellacott_Med_thumb.jpg","galleries_id":61203,"server_id":1,"link":"photo_6070987.html","width":130,"caption":"sold","height":67});
															thumbnails[5831669] = clik.newPhoto({"id":5831669,"src":"Kingsgate_Street_South_Med_thumb.jpg","galleries_id":61203,"server_id":1,"link":"photo_5831669.html","width":130,"caption":"sold","height":64});
															thumbnails[5355373] = clik.newPhoto({"id":5355373,"src":"Winchester_Football_MED_thumb.jpg","galleries_id":61203,"server_id":1,"link":"photo_5355373.html","width":130,"caption":"sold","height":65});
															thumbnails[3934206] = clik.newPhoto({"id":3934206,"src":"IMG_4630med_thumb.jpg","galleries_id":61203,"server_id":1,"link":"photo_3934206.html","width":105,"caption":"sold","height":130});
															thumbnails[4621573] = clik.newPhoto({"id":4621573,"src":"IMG_8465_MED_thumb.jpg","galleries_id":61203,"server_id":1,"link":"photo_4621573.html","width":92,"caption":"","height":130});
															thumbnails[5564995] = clik.newPhoto({"id":5564995,"src":"IMG_9619b_low_thumb.jpg","galleries_id":61203,"server_id":1,"link":"photo_5564995.html","width":130,"caption":"","height":129});
															thumbnails[1089870] = clik.newPhoto({"id":1089870,"src":"fiesta 2 final 3_thumb.jpg","galleries_id":61203,"server_id":1,"link":"photo_1089870.html","width":130,"caption":"sold","height":93});
															thumbnails[3934544] = clik.newPhoto({"id":3934544,"src":"IMG_4405Med_thumb.jpg","galleries_id":61203,"server_id":1,"link":"photo_3934544.html","width":130,"caption":"sold","height":80});
															thumbnails[2507691] = clik.newPhoto({"id":2507691,"src":"IMG_5242low_thumb.jpg","galleries_id":61203,"server_id":1,"link":"photo_2507691.html","width":130,"caption":"sold","height":99});
															thumbnails[3139838] = clik.newPhoto({"id":3139838,"src":"IMG_1293low_thumb.jpg","galleries_id":61203,"server_id":1,"link":"photo_3139838.html","width":130,"caption":"sold","height":129});
															thumbnails[5569378] = clik.newPhoto({"id":5569378,"src":"cows2_MED2_thumb.jpg","galleries_id":61203,"server_id":1,"link":"photo_5569378.html","width":130,"caption":"sold","height":65});
															thumbnails[8621828] = clik.newPhoto({"id":8621828,"src":"IMG_3278b_low_thumb.jpg","galleries_id":237076,"server_id":1,"link":"photo_8621828.html","width":98,"caption":"","height":130});
															thumbnails[8814649] = clik.newPhoto({"id":8814649,"src":"IMG_8258_med_thumb.jpg","galleries_id":237076,"server_id":1,"link":"photo_8814649.html","width":130,"caption":"","height":65});
															thumbnails[8814668] = clik.newPhoto({"id":8814668,"src":"IMG_2311_Med_thumb.jpg","galleries_id":237076,"server_id":1,"link":"photo_8814668.html","width":130,"caption":"","height":100});
															thumbnails[8814676] = clik.newPhoto({"id":8814676,"src":"IMG_3288b_Med_thumb.jpg","galleries_id":237076,"server_id":1,"link":"photo_8814676.html","width":109,"caption":"","height":130});
															thumbnails[8814728] = clik.newPhoto({"id":8814728,"src":"Covent_Garden_B_Med_thumb.jpg","galleries_id":237076,"server_id":1,"link":"photo_8814728.html","width":109,"caption":"","height":130});
															thumbnails[8814753] = clik.newPhoto({"id":8814753,"src":"IMG_8913_Med_thumb.jpg","galleries_id":237076,"server_id":1,"link":"photo_8814753.html","width":130,"caption":"","height":130});
															thumbnails[7315057] = clik.newPhoto({"id":7315057,"src":"IMG_2582Med_thumb.jpg","galleries_id":237076,"server_id":1,"link":"photo_7315057.html","width":108,"caption":"","height":130});
															thumbnails[8343732] = clik.newPhoto({"id":8343732,"src":"Iain_Vellacott_Beach_Painting_3_med_2_thumb.jpg","galleries_id":237076,"server_id":1,"link":"photo_8343732.html","width":130,"caption":"","height":91});
															thumbnails[7564948] = clik.newPhoto({"id":7564948,"src":"IMG_3560_Low_thumb.jpg","galleries_id":237076,"server_id":1,"link":"photo_7564948.html","width":65,"caption":"","height":130});
															thumbnails[8621824] = clik.newPhoto({"id":8621824,"src":"IMG_2621_low1_thumb.jpg","galleries_id":237076,"server_id":1,"link":"photo_8621824.html","width":130,"caption":"","height":89});
															thumbnails[8814673] = clik.newPhoto({"id":8814673,"src":"IMG_4681_Med_thumb.jpg","galleries_id":237076,"server_id":1,"link":"photo_8814673.html","width":130,"caption":"","height":66});
															thumbnails[7564907] = clik.newPhoto({"id":7564907,"src":"IMG_3562Low_thumb.jpg","galleries_id":237076,"server_id":1,"link":"photo_7564907.html","width":65,"caption":"","height":130});
															thumbnails[3234148] = clik.newPhoto({"id":3234148,"src":"IMG_1518Med_thumb.jpg","galleries_id":335199,"server_id":1,"link":"photo_3234148.html","width":130,"caption":"","height":91});
															thumbnails[4141368] = clik.newPhoto({"id":4141368,"src":"IMG_2893Med_thumb.jpg","galleries_id":335199,"server_id":1,"link":"photo_4141368.html","width":107,"caption":"","height":130});
															thumbnails[2933637] = clik.newPhoto({"id":2933637,"src":"IMG_1319Med_thumb.jpg","galleries_id":335199,"server_id":1,"link":"photo_2933637.html","width":130,"caption":"","height":102});
															thumbnails[7292276] = clik.newPhoto({"id":7292276,"src":"IMG_1336b_low_thumb.jpg","galleries_id":237076,"server_id":1,"link":"photo_7292276.html","width":130,"caption":"","height":64});
															thumbnails[7315088] = clik.newPhoto({"id":7315088,"src":"IMG_2192Med_thumb.jpg","galleries_id":335199,"server_id":1,"link":"photo_7315088.html","width":105,"caption":"","height":130});
															thumbnails[7565061] = clik.newPhoto({"id":7565061,"src":"IMG_4149b2_low_thumb.jpg","galleries_id":237076,"server_id":1,"link":"photo_7565061.html","width":130,"caption":"","height":65});
															thumbnails[1848966] = clik.newPhoto({"id":1848966,"src":"IMG_1447_thumb.jpg","galleries_id":237076,"server_id":1,"link":"photo_1848966.html","width":130,"caption":"","height":107});
															thumbnails[7564945] = clik.newPhoto({"id":7564945,"src":"IMG_3566_low_thumb.jpg","galleries_id":237076,"server_id":1,"link":"photo_7564945.html","width":109,"caption":"","height":130});
															thumbnails[8814663] = clik.newPhoto({"id":8814663,"src":"IMG_2309_Med_thumb.jpg","galleries_id":237076,"server_id":1,"link":"photo_8814663.html","width":130,"caption":"","height":92});
															thumbnails[5831699] = clik.newPhoto({"id":5831699,"src":"Canute_by_Iain_Vellacott_B_Med_thumb.jpg","galleries_id":237076,"server_id":1,"link":"photo_5831699.html","width":102,"caption":"","height":130});
															thumbnails[3825234] = clik.newPhoto({"id":3825234,"src":"IMG_2185Med_thumb.jpg","galleries_id":237076,"server_id":1,"link":"photo_3825234.html","width":130,"caption":"","height":65});
															thumbnails[5569390] = clik.newPhoto({"id":5569390,"src":"IMG_3948_MED_thumb.jpg","galleries_id":237076,"server_id":1,"link":"photo_5569390.html","width":130,"caption":"","height":94});
															thumbnails[3295036] = clik.newPhoto({"id":3295036,"src":"IMG_2132Med_thumb.jpg","galleries_id":237076,"server_id":1,"link":"photo_3295036.html","width":103,"caption":"","height":130});
															thumbnails[1609004] = clik.newPhoto({"id":1609004,"src":"IMG_0306_thumb.jpg","galleries_id":237076,"server_id":1,"link":"photo_1609004.html","width":97,"caption":"","height":130});
															thumbnails[7314985] = clik.newPhoto({"id":7314985,"src":"IMG_0120Medb_thumb.jpg","galleries_id":237076,"server_id":1,"link":"photo_7314985.html","width":130,"caption":"","height":65});
															thumbnails[8814750] = clik.newPhoto({"id":8814750,"src":"IMG_2627_Med_thumb.jpg","galleries_id":237076,"server_id":1,"link":"photo_8814750.html","width":130,"caption":"","height":101});
															thumbnails[8814680] = clik.newPhoto({"id":8814680,"src":"IMG_8772_Med_thumb.jpg","galleries_id":237076,"server_id":1,"link":"photo_8814680.html","width":130,"caption":"","height":65});
															thumbnails[5831702] = clik.newPhoto({"id":5831702,"src":"IMG_4691_Med_thumb.jpg","galleries_id":146808,"server_id":1,"link":"photo_5831702.html","width":130,"caption":"","height":65});
															thumbnails[8815072] = clik.newPhoto({"id":8815072,"src":"IMG_0034_med_thumb.jpg","galleries_id":146808,"server_id":1,"link":"photo_8815072.html","width":130,"caption":"","height":89});
															thumbnails[8829081] = clik.newPhoto({"id":8829081,"src":"IMG_4679_Med_thumb.jpg","galleries_id":146808,"server_id":1,"link":"photo_8829081.html","width":130,"caption":"","height":86});
															thumbnails[8829085] = clik.newPhoto({"id":8829085,"src":"IMG_4684_Med_thumb.jpg","galleries_id":146808,"server_id":1,"link":"photo_8829085.html","width":130,"caption":"","height":64});
															thumbnails[8829087] = clik.newPhoto({"id":8829087,"src":"IMG_4690_Med_thumb.jpg","galleries_id":146808,"server_id":1,"link":"photo_8829087.html","width":130,"caption":"","height":64});
															thumbnails[8829152] = clik.newPhoto({"id":8829152,"src":"IMG_4709b_Med_thumb.jpg","galleries_id":146808,"server_id":1,"link":"photo_8829152.html","width":130,"caption":"","height":86});
															thumbnails[3234142] = clik.newPhoto({"id":3234142,"src":"IMG_1750_thumb.jpg","galleries_id":349813,"server_id":1,"link":"photo_3234142.html","width":103,"caption":"sold","height":130});
															thumbnails[6071010] = clik.newPhoto({"id":6071010,"src":"DSCF1193_thumb.JPG","galleries_id":349813,"server_id":1,"link":"photo_6071010.html","width":130,"caption":"sold","height":66});
															thumbnails[8814990] = clik.newPhoto({"id":8814990,"src":"IMG_4733_Med_thumb.jpg","galleries_id":146808,"server_id":1,"link":"photo_8814990.html","width":130,"caption":"","height":85});
															thumbnails[6286713] = clik.newPhoto({"id":6286713,"src":"IMG_0159Med_thumb.jpg","galleries_id":146808,"server_id":1,"link":"photo_6286713.html","width":130,"caption":"","height":90});
															thumbnails[7315128] = clik.newPhoto({"id":7315128,"src":"IMG_1237Med_thumb.jpg","galleries_id":146808,"server_id":1,"link":"photo_7315128.html","width":130,"caption":"","height":95});
															thumbnails[8815083] = clik.newPhoto({"id":8815083,"src":"IMG_4736_Med_thumb.jpg","galleries_id":146808,"server_id":1,"link":"photo_8815083.html","width":130,"caption":"","height":92});
															thumbnails[5871672] = clik.newPhoto({"id":5871672,"src":"OTH_HOT_B2_crop_thumb.jpg","galleries_id":349813,"server_id":1,"link":"photo_5871672.html","width":130,"caption":"sold","height":65});
															thumbnails[1848963] = clik.newPhoto({"id":1848963,"src":"IMG_1446_thumb.jpg","galleries_id":349813,"server_id":1,"link":"photo_1848963.html","width":130,"caption":"sold","height":98});
															thumbnails[3139845] = clik.newPhoto({"id":3139845,"src":"IMG_1288Med_thumb.jpg","galleries_id":349813,"server_id":1,"link":"photo_3139845.html","width":130,"caption":"sold","height":92});
															thumbnails[5564978] = clik.newPhoto({"id":5564978,"src":"IMG_9889b_MED_thumb.jpg","galleries_id":349813,"server_id":1,"link":"photo_5564978.html","width":130,"caption":"sold","height":65});
															thumbnails[3294935] = clik.newPhoto({"id":3294935,"src":"IMG_4720_Med_thumb.jpg","galleries_id":146808,"server_id":1,"link":"photo_3294935.html","width":130,"caption":"","height":84});
															thumbnails[6071027] = clik.newPhoto({"id":6071027,"src":"DSCF1186b_Med_thumb.jpg","galleries_id":146808,"server_id":1,"link":"photo_6071027.html","width":130,"caption":"","height":66});
															thumbnails[1028271] = clik.newPhoto({"id":1028271,"src":"Facteur Final 2_thumb.jpg","galleries_id":349813,"server_id":1,"link":"photo_1028271.html","width":130,"caption":"sold","height":99});
															thumbnails[8815106] = clik.newPhoto({"id":8815106,"src":"IMG_3269_med_thumb.jpg","galleries_id":146808,"server_id":1,"link":"photo_8815106.html","width":130,"caption":"","height":94});
															thumbnails[3934202] = clik.newPhoto({"id":3934202,"src":"IMG_4629Med_thumb.jpg","galleries_id":349813,"server_id":1,"link":"photo_3934202.html","width":130,"caption":"sold","height":94});
															thumbnails[7565123] = clik.newPhoto({"id":7565123,"src":"IMG_0114b_low_thumb.jpg","galleries_id":146808,"server_id":1,"link":"photo_7565123.html","width":130,"caption":"","height":130});
															thumbnails[3934429] = clik.newPhoto({"id":3934429,"src":"IMG_6009_Med_thumb.jpg","galleries_id":146808,"server_id":1,"link":"photo_3934429.html","width":130,"caption":"","height":90});
															thumbnails[964128] = clik.newPhoto({"id":964128,"src":"Pink boots in the snow_thumb.jpg","galleries_id":349813,"server_id":1,"link":"photo_964128.html","width":130,"caption":"sold","height":95});
															thumbnails[2225002] = clik.newPhoto({"id":2225002,"src":"IMG_3750_thumb.jpg","galleries_id":349813,"server_id":1,"link":"photo_2225002.html","width":130,"caption":"sold","height":99});
															thumbnails[4889253] = clik.newPhoto({"id":4889253,"src":"IMG_9241med1_thumb.jpg","galleries_id":237906,"server_id":1,"link":"photo_4889253.html","width":130,"caption":"sold","height":64});
															thumbnails[5940809] = clik.newPhoto({"id":5940809,"src":"IMG_1223b_Med_thumb.jpg","galleries_id":237906,"server_id":1,"link":"photo_5940809.html","width":130,"caption":"sold","height":90});
															thumbnails[6071050] = clik.newPhoto({"id":6071050,"src":"DSCF1174_thumb.JPG","galleries_id":237906,"server_id":1,"link":"photo_6071050.html","width":130,"caption":"","height":129});
															thumbnails[5564972] = clik.newPhoto({"id":5564972,"src":"IMG_8496_MED_thumb.jpg","galleries_id":315681,"server_id":1,"link":"photo_5564972.html","width":97,"caption":"","height":130});
															thumbnails[5564973] = clik.newPhoto({"id":5564973,"src":"IMG_9436_MED_thumb.jpg","galleries_id":335200,"server_id":1,"link":"photo_5564973.html","width":100,"caption":"sold","height":130});
															thumbnails[3825466] = clik.newPhoto({"id":3825466,"src":"IMG_4113Med_thumb.jpg","galleries_id":340898,"server_id":1,"link":"photo_3825466.html","width":130,"caption":"sold","height":65});
															thumbnails[5871802] = clik.newPhoto({"id":5871802,"src":"Up_to_Books_by_Iain_Vellacott_Med_thumb.jpg","galleries_id":315681,"server_id":1,"link":"photo_5871802.html","width":130,"caption":"","height":93});
															thumbnails[4872262] = clik.newPhoto({"id":4872262,"src":"IMG_9400medb_thumb.jpg","galleries_id":335200,"server_id":1,"link":"photo_4872262.html","width":130,"caption":"sold","height":51});
															thumbnails[2011776] = clik.newPhoto({"id":2011776,"src":"IMG_1659_thumb.jpg","galleries_id":340898,"server_id":1,"link":"photo_2011776.html","width":130,"caption":"sold","height":98});
															thumbnails[3352559] = clik.newPhoto({"id":3352559,"src":"IMG_2668med_thumb.jpg","galleries_id":340898,"server_id":1,"link":"photo_3352559.html","width":130,"caption":"sold","height":129});
															thumbnails[5564975] = clik.newPhoto({"id":5564975,"src":"IMG_0232_MED_thumb.jpg","galleries_id":335200,"server_id":1,"link":"photo_5564975.html","width":130,"caption":"sold","height":130});
															thumbnails[1911366] = clik.newPhoto({"id":1911366,"src":"What Next by Iain Vellacott_thumb.jpg","galleries_id":340898,"server_id":1,"link":"photo_1911366.html","width":130,"caption":"sold","height":96});
															thumbnails[2785859] = clik.newPhoto({"id":2785859,"src":"IMG_3018_thumb.jpg","galleries_id":237906,"server_id":1,"link":"photo_2785859.html","width":130,"caption":"","height":86});
															thumbnails[5564976] = clik.newPhoto({"id":5564976,"src":"IMG_9252_BB_MED_thumb.jpg","galleries_id":315681,"server_id":1,"link":"photo_5564976.html","width":130,"caption":"","height":64});
															thumbnails[5564977] = clik.newPhoto({"id":5564977,"src":"IMG_0065_MED_thumb.jpg","galleries_id":335200,"server_id":1,"link":"photo_5564977.html","width":130,"caption":"sold","height":65});
															thumbnails[3090096] = clik.newPhoto({"id":3090096,"src":"IMG_1328Med_thumb.jpg","galleries_id":340898,"server_id":1,"link":"photo_3090096.html","width":130,"caption":"sold","height":100});
															thumbnails[5564979] = clik.newPhoto({"id":5564979,"src":"IMG_9455_MED_thumb.jpg","galleries_id":315681,"server_id":1,"link":"photo_5564979.html","width":130,"caption":"","height":65});
															thumbnails[5564980] = clik.newPhoto({"id":5564980,"src":"IMG_0083_MED_thumb.jpg","galleries_id":335200,"server_id":1,"link":"photo_5564980.html","width":130,"caption":"sold","height":43});
															thumbnails[5564981] = clik.newPhoto({"id":5564981,"src":"IMG_0055_MED_thumb.jpg","galleries_id":315681,"server_id":1,"link":"photo_5564981.html","width":130,"caption":"","height":94});
															thumbnails[5564983] = clik.newPhoto({"id":5564983,"src":"IMG_0174_MED_thumb.jpg","galleries_id":335200,"server_id":1,"link":"photo_5564983.html","width":130,"caption":"sold","height":81});
															thumbnails[2928345] = clik.newPhoto({"id":2928345,"src":"IMG_1301med_thumb.jpg","galleries_id":340898,"server_id":1,"link":"photo_2928345.html","width":130,"caption":"sold","height":90});
															thumbnails[4872272] = clik.newPhoto({"id":4872272,"src":"IMG_8504med_thumb.jpg","galleries_id":335200,"server_id":1,"link":"photo_4872272.html","width":130,"caption":"sold","height":93});
															thumbnails[5564986] = clik.newPhoto({"id":5564986,"src":"IMG_0260b_MED_thumb.jpg","galleries_id":335200,"server_id":1,"link":"photo_5564986.html","width":130,"caption":"sold","height":80});
															thumbnails[5564987] = clik.newPhoto({"id":5564987,"src":"IMG_0159_BB_MED_thumb.jpg","galleries_id":335200,"server_id":1,"link":"photo_5564987.html","width":130,"caption":"sold","height":65});
															thumbnails[5564990] = clik.newPhoto({"id":5564990,"src":"IMG_9449_MED_thumb.jpg","galleries_id":335200,"server_id":1,"link":"photo_5564990.html","width":109,"caption":"sold","height":130});
															thumbnails[5458319] = clik.newPhoto({"id":5458319,"src":"IMG_9923MED_thumb.jpg","galleries_id":335200,"server_id":1,"link":"photo_5458319.html","width":130,"caption":"sold","height":130});
															thumbnails[4872264] = clik.newPhoto({"id":4872264,"src":"IMG_0038MED_thumb.jpg","galleries_id":335200,"server_id":1,"link":"photo_4872264.html","width":130,"caption":"sold","height":64});
															thumbnails[1825433] = clik.newPhoto({"id":1825433,"src":"IMG_1215_thumb.jpg","galleries_id":237906,"server_id":1,"link":"photo_1825433.html","width":130,"caption":"sold","height":108});
															thumbnails[2507695] = clik.newPhoto({"id":2507695,"src":"IMG_5251low_thumb.jpg","galleries_id":340898,"server_id":1,"link":"photo_2507695.html","width":130,"caption":"sold","height":65});
															thumbnails[5564992] = clik.newPhoto({"id":5564992,"src":"IMG_9977_MED_thumb.jpg","galleries_id":335200,"server_id":1,"link":"photo_5564992.html","width":130,"caption":"sold","height":99});
															thumbnails[2011800] = clik.newPhoto({"id":2011800,"src":"IMG_3777_thumb.jpg","galleries_id":340898,"server_id":1,"link":"photo_2011800.html","width":97,"caption":"sold","height":130});
															thumbnails[5564994] = clik.newPhoto({"id":5564994,"src":"IMG_0118b_MED_thumb.jpg","galleries_id":335200,"server_id":1,"link":"photo_5564994.html","width":130,"caption":"sold","height":65});
															thumbnails[4872261] = clik.newPhoto({"id":4872261,"src":"IMG_9411bmed_thumb.jpg","galleries_id":335200,"server_id":1,"link":"photo_4872261.html","width":130,"caption":"sold","height":65});
															thumbnails[5564999] = clik.newPhoto({"id":5564999,"src":"IMG_0076b_MED_thumb.jpg","galleries_id":335200,"server_id":1,"link":"photo_5564999.html","width":130,"caption":"sold","height":43});
															thumbnails[4141353] = clik.newPhoto({"id":4141353,"src":"IMG_4130Med_thumb.jpg","galleries_id":340898,"server_id":1,"link":"photo_4141353.html","width":130,"caption":"sold","height":65});
															thumbnails[3385063] = clik.newPhoto({"id":3385063,"src":"IMG_2793Med_thumb.jpg","galleries_id":335200,"server_id":1,"link":"photo_3385063.html","width":130,"caption":"sold","height":65});
															thumbnails[4872263] = clik.newPhoto({"id":4872263,"src":"IMG_9406med_thumb.jpg","galleries_id":335200,"server_id":1,"link":"photo_4872263.html","width":130,"caption":"sold","height":65});
															thumbnails[841560] = clik.newPhoto({"id":841560,"src":"Potting Shed Working 2_thumb.jpg","galleries_id":340898,"server_id":1,"link":"photo_841560.html","width":130,"caption":"sold","height":97});
															thumbnails[1789269] = clik.newPhoto({"id":1789269,"src":"IMG_1115_thumb.jpg","galleries_id":340898,"server_id":1,"link":"photo_1789269.html","width":130,"caption":"sold","height":64});
															thumbnails[5569427] = clik.newPhoto({"id":5569427,"src":"IMG_3888_MED_thumb.jpg","galleries_id":340898,"server_id":1,"link":"photo_5569427.html","width":130,"caption":"sold","height":130});
															thumbnails[5658312] = clik.newPhoto({"id":5658312,"src":"IMG_3276-1_thumb.JPG","galleries_id":340898,"server_id":1,"link":"photo_5658312.html","width":130,"caption":"sold","height":94});
															thumbnails[3639813] = clik.newPhoto({"id":3639813,"src":"IMG_3250Med_thumb.jpg","galleries_id":340898,"server_id":1,"link":"photo_3639813.html","width":130,"caption":"sold","height":65});
															thumbnails[3555440] = clik.newPhoto({"id":3555440,"src":"IMG_3025_thumb.jpg","galleries_id":237906,"server_id":1,"link":"photo_3555440.html","width":103,"caption":"","height":130});
															thumbnails[2030643] = clik.newPhoto({"id":2030643,"src":"IMG_1688_thumb.jpg","galleries_id":340898,"server_id":1,"link":"photo_2030643.html","width":107,"caption":"sold","height":130});
															thumbnails[3555437] = clik.newPhoto({"id":3555437,"src":"IMG_3032_thumb.jpg","galleries_id":237906,"server_id":1,"link":"photo_3555437.html","width":130,"caption":"","height":90});
															thumbnails[771885] = clik.newPhoto({"id":771885,"src":"Paella Final 3 Low_thumb.jpg","galleries_id":340898,"server_id":1,"link":"photo_771885.html","width":130,"caption":"sold","height":98});
															thumbnails[3295018] = clik.newPhoto({"id":3295018,"src":"IMG_2674med_thumb.jpg","galleries_id":237906,"server_id":1,"link":"photo_3295018.html","width":100,"caption":"","height":130});
															thumbnails[951938] = clik.newPhoto({"id":951938,"src":"IMG_5113_thumb.JPG","galleries_id":340898,"server_id":1,"link":"photo_951938.html","width":108,"caption":"sold","height":130});
															thumbnails[956713] = clik.newPhoto({"id":956713,"src":"Cockerel Final Med_thumb.jpg","galleries_id":340898,"server_id":1,"link":"photo_956713.html","width":130,"caption":"sold","height":86});
															thumbnails[855722] = clik.newPhoto({"id":855722,"src":"horsesatlake3_thumb.jpg","galleries_id":237906,"server_id":1,"link":"photo_855722.html","width":130,"caption":"","height":96});
															thumbnails[2011771] = clik.newPhoto({"id":2011771,"src":"IMG_1658_thumb.jpg","galleries_id":340898,"server_id":1,"link":"photo_2011771.html","width":130,"caption":"sold","height":65});
															thumbnails[936407] = clik.newPhoto({"id":936407,"src":"IMG_02801_thumb.jpg","galleries_id":340898,"server_id":1,"link":"photo_936407.html","width":130,"caption":"sold","height":105});
															thumbnails[1007968] = clik.newPhoto({"id":1007968,"src":"IMG_4134Med_thumb.jpg","galleries_id":237906,"server_id":1,"link":"photo_1007968.html","width":102,"caption":"","height":130});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[247688] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Galerie Kaye July 2009","link":"section289748_247688.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"section289748","featured_images":"","id":247688,"singleSection":false});				  						galleries[340898] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"General ","link":"section289748_340898.html","maxRecords":0.0,"photoIDs":[3825466.0,2011776.0,3352559.0,1911366.0,3090096.0,2928345.0,2507695.0,2011800.0,4141353.0,841560.0,1789269.0,5569427.0,5658312.0,3639813.0,2030643.0,771885.0,951938.0,956713.0,2011771.0,936407.0],"skipIndex":0,"section_code":"section289748","featured_images":"5658312,5569427,4141353,3825466,3639813,3352559,3090096,2928345,2507695,2030643","id":340898,"singleSection":false});				  						galleries[349813] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Recent Sales (selection)","link":"section300256.html","maxRecords":0.0,"photoIDs":[3234142.0,6071010.0,5871672.0,1848963.0,3139845.0,5564978.0,1028271.0,3934202.0,964128.0,2225002.0],"skipIndex":0,"section_code":"section300256","featured_images":964128.0,"id":349813,"singleSection":true});				  						galleries[146808] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Revel Exhibition - December 2011","link":"section188553.html","maxRecords":0.0,"photoIDs":[5831702.0,8815072.0,8829081.0,8829085.0,8829087.0,8829152.0,8814990.0,6286713.0,7315128.0,8815083.0,3294935.0,6071027.0,8815106.0,7565123.0,3934429.0],"skipIndex":0,"section_code":"section188553","featured_images":"8829152,8829087,8829085,8829081,8815106,8815083,8815072,8814990,7565123,7315128","id":146808,"singleSection":true});				  						galleries[335200] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Winchester ","link":"section289748_335200.html","maxRecords":0.0,"photoIDs":[5564973.0,4872262.0,5564975.0,5564977.0,5564980.0,5564983.0,4872272.0,5564986.0,5564987.0,5564990.0,5458319.0,4872264.0,5564992.0,5564994.0,4872261.0,5564999.0,3385063.0,4872263.0],"skipIndex":0,"section_code":"section289748","featured_images":"5564999,5564994,5564992,5564990,5564987,5564986,5564983,5564980,5564977,5564975","id":335200,"singleSection":false});				  						galleries[237076] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Barnes Riverside Exhibition (until 14th December)","link":"section88980.html","maxRecords":0.0,"photoIDs":[8621828.0,8814649.0,8814668.0,8814676.0,8814728.0,8814753.0,7315057.0,8343732.0,7564948.0,8621824.0,8814673.0,7564907.0,7292276.0,7565061.0,1848966.0,7564945.0,8814663.0,5831699.0,3825234.0,5569390.0,3295036.0,1609004.0,7314985.0,8814750.0,8814680.0],"skipIndex":0,"section_code":"section88980","featured_images":"1848966,1609004","id":237076,"singleSection":true});				  						galleries[61203] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gallery","link":"section88979.html","maxRecords":0.0,"photoIDs":[5940723.0,7603758.0,5564974.0,7292263.0,3090092.0,3486074.0,5458292.0,6070987.0,5831669.0,5355373.0,3934206.0,4621573.0,5564995.0,1089870.0,3934544.0,2507691.0,3139838.0,5569378.0],"skipIndex":0,"section_code":"section88979","featured_images":"7603758,7292263,6070987,5940723,5831669,5569378,5564995,5564974,5458292,5355373","id":61203,"singleSection":true});				  						galleries[31667] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gallery 2","link":"section289748_31667.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"section289748","featured_images":"","id":31667,"singleSection":false});				  						galleries[335199] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Available Paintings","link":"section401531.html","maxRecords":0.0,"photoIDs":[3234148.0,4141368.0,2933637.0,7315088.0],"skipIndex":0,"section_code":"section401531","featured_images":"7315088,4141368,3234148,2933637","id":335199,"singleSection":true});				  						galleries[238971] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Winchester College on Canvas","link":"section289748_238971.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"section289748","featured_images":"","id":238971,"singleSection":false});				  						galleries[315681] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Winchester College on Canvas","link":"section289748_315681.html","maxRecords":0.0,"photoIDs":[5564972.0,5871802.0,5564976.0,5564979.0,5564981.0],"skipIndex":0,"section_code":"section289748","featured_images":"5871802,5564981,5564979,5564976,5564972","id":315681,"singleSection":false});				  						galleries[237906] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Archive","link":"section289748_237906.html","maxRecords":0.0,"photoIDs":[4889253.0,5940809.0,6071050.0,2785859.0,1825433.0,3555440.0,3555437.0,3295018.0,855722.0,1007968.0],"skipIndex":0,"section_code":"section289748","featured_images":"6071050,5940809,4889253,3555440,3555437,3295018,2785859,1825433,1007968,855722","id":237906,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8814990,8343732,7315057,5831727,8815083,8814673,8621824,7564907,5564995,5831699';
imageSets[2] = '1848966,2030633,1609004,964128';
imageSets[3] = '4889253,4872266';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/vellacott/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/vellacott/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/vellacott/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/vellacott/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/vellacott/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/vellacott/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/vellacott/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/vellacott/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/vellacott/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/vellacott/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/vellacott/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/vellacott/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/vellacott/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/vellacott/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/vellacott/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/vellacott/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/vellacott/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/vellacott/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/vellacott/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/vellacott/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/vellacott/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/vellacott/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/vellacott/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/vellacott/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/vellacott/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/vellacott/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 += 'section88979.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 && 'section88979' != '') {
					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 = 'Iain Vellacott Paintings: ' + 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> &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.item_price !== '' || this.payment_groups_id !== '') {
																		temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="vellacott@wanadoo.fr">';
					temp += '<input type="hidden" name="currency_code" value="GBP">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="vellacott@wanadoo.fr">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						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;
	}
}

			

