window.thumbnails = {};
thumbnails[7564352] = clik.newPhoto({"link":"#","caption":"Hung out to dry","height":91,"id":7564352,"server_id":21,"src":"Hung_out_to_dry_Photo_Mark_Somerville__2011_thumb.gif","galleries_id":"","width":130});
thumbnails[7587166] = clik.newPhoto({"link":"#","caption":"MARLBOROUGH OPEN STUDIOS 2010","height":93,"id":7587166,"server_id":21,"src":"Mark-Somerville--Melissa-Cole-s-exhibition-MOS-2010-11.JPG._Photo_Mark_Somerville__2011---007_thumb.gif","galleries_id":"","width":160});
thumbnails[7587187] = clik.newPhoto({"link":"#","caption":"\"NATURE & NURTURE\" CHAPEL ROW GALLERY,BATH ","height":92,"id":7587187,"server_id":21,"src":"Chapel-row-gallery-show--24052009-3003.JPG._Photo_Mark_Somerville__2011---002_thumb.gif","galleries_id":"","width":160});
thumbnails[7587194] = clik.newPhoto({"link":"#","caption":"RWA OPEN EXHIBITION","height":128,"id":7587194,"server_id":21,"src":"RWA-Landscape-Elipsed-within-Landscape.JPG._Photo_Mark_Somerville__2011---011_thumb.gif","galleries_id":"","width":160});
thumbnails[7775753] = clik.newPhoto({"link":"#","caption":"","height":160,"id":7775753,"server_id":21,"src":"Mark-Somerville_thumb.gif","galleries_id":"","width":111});
thumbnails[7908973] = clik.newPhoto({"link":"photo_7908973.html","caption":"Termite hill","height":160,"id":7908973,"server_id":21,"src":"Termite_hill_thumb.gif","galleries_id":426514,"width":112});
thumbnails[7909729] = clik.newPhoto({"link":"photo_7909729.html","caption":"Lali hills I","height":110,"id":7909729,"server_id":21,"src":"Lali-hills-I.gif._Mark_Somerville__2011____thumb.gif","galleries_id":426514,"width":160});
thumbnails[7909737] = clik.newPhoto({"link":"photo_7909737.html","caption":"Lali hills II","height":132,"id":7909737,"server_id":21,"src":"Lali-hills-II.gif._Mark_Somerville__2011____thumb.gif","galleries_id":426514,"width":160});
thumbnails[7909739] = clik.newPhoto({"link":"photo_7909739.html","caption":"Lali hills III","height":110,"id":7909739,"server_id":21,"src":"Lali-hills-III.gif._Mark_Somerville__2011____thumb.gif","galleries_id":426514,"width":160});
thumbnails[7909741] = clik.newPhoto({"link":"photo_7909741.html","caption":"Nine Giraffe","height":86,"id":7909741,"server_id":21,"src":"Nine-Giraffe.gif._Mark_Somerville__2011____thumb.gif","galleries_id":426514,"width":160});
thumbnails[7909743] = clik.newPhoto({"link":"photo_7909743.html","caption":"Twelve Deery things","height":130,"id":7909743,"server_id":21,"src":"Twelve-deer.gif._Mark_Somerville__2011____thumb.gif","galleries_id":426514,"width":160});
thumbnails[7909744] = clik.newPhoto({"link":"photo_7909744.html","caption":"Two Giraffe","height":160,"id":7909744,"server_id":21,"src":"Two-Giraffe.gif._Mark_Somerville__2011____thumb.gif","galleries_id":426514,"width":160});
thumbnails[7909747] = clik.newPhoto({"link":"photo_7909747.html","caption":"Three Trees","height":109,"id":7909747,"server_id":21,"src":"Three-trees.gif._Mark_Somerville__2011____thumb.gif","galleries_id":426514,"width":160});
thumbnails[7909748] = clik.newPhoto({"link":"photo_7909748.html","caption":"Towards Somalia","height":160,"id":7909748,"server_id":21,"src":"Towards-Somalia.GIF._Mark_Somerville__2011____thumb.GIF","galleries_id":426514,"width":108});
thumbnails[8790866] = clik.newPhoto({"link":"photo_8790866.html","caption":"Seed hands","height":160,"id":8790866,"server_id":21,"src":"SEED_HANDS.JPG.GIF.photo_Mark_Somerville__2011____thumb.gif","galleries_id":462847,"width":122});
thumbnails[8790870] = clik.newPhoto({"link":"photo_8790870.html","caption":"Old Marlburians","height":160,"id":8790870,"server_id":21,"src":"OLD_MARLBURIANS_PHOTO_COPY.GIF.photo_Mark_Somerville__2011____thumb.gif","galleries_id":410225,"width":111});
thumbnails[8791051] = clik.newPhoto({"link":"photo_8791051.html","caption":"Drift wood","height":160,"id":8791051,"server_id":21,"src":"DRIFT_WOOD.JPG.GIF.photo_Mark_Somerville__2011____thumb.GIF","galleries_id":462847,"width":121});
thumbnails[8791090] = clik.newPhoto({"link":"photo_8791090.html","caption":"Skull","height":160,"id":8791090,"server_id":21,"src":"SKULL.JPG.GIF.photo_Mark_Somerville__2011____thumb.gif","galleries_id":462847,"width":123});
thumbnails[8791160] = clik.newPhoto({"link":"photo_8791160.html","caption":"Baleen","height":160,"id":8791160,"server_id":21,"src":"BALEEN_thumb.gif","galleries_id":462847,"width":122});
thumbnails[8791163] = clik.newPhoto({"link":"photo_8791163.html","caption":"Nautilus ","height":160,"id":8791163,"server_id":21,"src":"Nautilus_13102011_thumb.gif","galleries_id":462847,"width":117});
thumbnails[8791301] = clik.newPhoto({"link":"photo_8791301.html","caption":"Seed head I","height":160,"id":8791301,"server_id":21,"src":"Seed_head_thumb.gif","galleries_id":462847,"width":151});
thumbnails[8791302] = clik.newPhoto({"link":"photo_8791302.html","caption":"Seed head II","height":160,"id":8791302,"server_id":21,"src":"Seed_head_2_13102011_thumb.GIF","galleries_id":462847,"width":155});
thumbnails[8791306] = clik.newPhoto({"link":"photo_8791306.html","caption":"Magnolia seeds","height":160,"id":8791306,"server_id":21,"src":"MAGNOLIA_SEED__JPG.GIF.photo_Mark_Somerville__2011____thumb.gif","galleries_id":462847,"width":125});
thumbnails[8791308] = clik.newPhoto({"link":"photo_8791308.html","caption":"Quince","height":160,"id":8791308,"server_id":21,"src":"QUINCE_.GIF.photo_Mark_Somerville__2011____thumb.gif","galleries_id":462847,"width":125});
thumbnails[8797006] = clik.newPhoto({"link":"photo_8797006.html","caption":"","height":160,"id":8797006,"server_id":21,"src":"SHEEP_thumb.gif","galleries_id":463074,"width":122});
thumbnails[9162840] = clik.newPhoto({"link":"photo_9162840.html","caption":"","height":138,"id":9162840,"server_id":21,"src":"Camera_close_up_1_copy_2_thumb.jpg","galleries_id":484004,"width":160});
thumbnails[9162903] = clik.newPhoto({"link":"photo_9162903.html","caption":"","height":160,"id":9162903,"server_id":21,"src":"Boots_2__close_up_copy_1_thumb.jpg","galleries_id":484004,"width":147});
thumbnails[9162905] = clik.newPhoto({"link":"photo_9162905.html","caption":"","height":126,"id":9162905,"server_id":21,"src":"Beetle_c_u_copy_1_thumb.jpg","galleries_id":484004,"width":160});
thumbnails[9173655] = clik.newPhoto({"link":"photo_9173655.html","caption":"","height":160,"id":9173655,"server_id":21,"src":"Baby_close_up__copy_1_thumb.JPG","galleries_id":484004,"width":111});
thumbnails[9173656] = clik.newPhoto({"link":"photo_9173656.html","caption":"","height":107,"id":9173656,"server_id":21,"src":"hand_copy_1_thumb.JPG","galleries_id":484004,"width":160});
thumbnails[7565106] = clik.newPhoto({"link":"photo_7565106.html","caption":"Alt.White horse...","height":160,"id":7565106,"server_id":21,"src":"Alt_white_horse_goes_largley_unnoticed_by_Mr_and_Mrs_Barnes._Photo_Mark_Somerville__2011___005_thumb.gif","galleries_id":410225,"width":106});
thumbnails[7571419] = clik.newPhoto({"link":"photo_7571419.html","caption":"Silbury hill","height":160,"id":7571419,"server_id":21,"src":"Silbury_hill._Photo_Mark_Somerville__2011___021_thumb.gif","galleries_id":410225,"width":112});
thumbnails[7571402] = clik.newPhoto({"link":"photo_7571402.html","caption":"Dedicated to Bigit & Sil","height":160,"id":7571402,"server_id":21,"src":"Dedicated_to_Brigit_and_Sil1234._Photo_Mark_Somerville__2011___008_thumb.gif","galleries_id":410225,"width":112});
thumbnails[7565206] = clik.newPhoto({"link":"photo_7565206.html","caption":"A long sliver of precious metal I","height":160,"id":7565206,"server_id":21,"src":"A_long_sliver_of_precious_metal_I1._Photo_Mark_Somerville__2011___001_thumb.gif","galleries_id":410225,"width":128});
thumbnails[7565228] = clik.newPhoto({"link":"photo_7565228.html","caption":"A long sliver of precious metal II","height":160,"id":7565228,"server_id":21,"src":"A_long_sliver_of_precious_metal_II1234._Photo_Mark_Somerville__2011___002_thumb.gif","galleries_id":410225,"width":128});
thumbnails[7565246] = clik.newPhoto({"link":"photo_7565246.html","caption":"A long sliver of precious metal III","height":160,"id":7565246,"server_id":21,"src":"A_long_sliver_of_precious_metal_III12._Photo_Mark_Somerville__2011___003_thumb.gif","galleries_id":410225,"width":128});
thumbnails[7565110] = clik.newPhoto({"link":"photo_7565110.html","caption":"Beech Hanger & Red barn","height":112,"id":7565110,"server_id":21,"src":"Beech_Hanger_and_Red_Barn._Photo_Mark_Somerville__2011___006_thumb.gif","galleries_id":410225,"width":160});
thumbnails[7565025] = clik.newPhoto({"link":"photo_7565025.html","caption":"All is night on the shortest day","height":112,"id":7565025,"server_id":21,"src":"All_is_night_on_the_shortest_day._Photo_Mark_Somerville__2011___004_thumb.gif","galleries_id":410225,"width":160});
thumbnails[7571424] = clik.newPhoto({"link":"photo_7571424.html","caption":"Dew on the horizon","height":112,"id":7571424,"server_id":21,"src":"Dew_on-the_horizon1._Photo_Mark_Somerville__2011___009_thumb.gif","galleries_id":410225,"width":160});
thumbnails[7571439] = clik.newPhoto({"link":"photo_7571439.html","caption":"\"LANDSCAPE ECLIPSED\" WITHIN A LANDSCAPE","height":112,"id":7571439,"server_id":21,"src":"Landscape_eclipsed_within_landscape1._Photo_Mark_Somerville__2011___013_thumb.gif","galleries_id":410225,"width":160});
thumbnails[7581795] = clik.newPhoto({"link":"photo_7581795.html","caption":"LEMONS ","height":160,"id":7581795,"server_id":21,"src":"LEMONS_II.gif._Photo_Mark_Somerville__2011___008_thumb.gif","galleries_id":411239,"width":158});
thumbnails[7587377] = clik.newPhoto({"link":"photo_7587377.html","caption":"A PASTORAL SANCUARY","height":160,"id":7587377,"server_id":21,"src":"west-woods-copy_thumb.gif","galleries_id":410225,"width":112});
thumbnails[7581925] = clik.newPhoto({"link":"photo_7581925.html","caption":"TRAMLINES WITH ANVIL","height":112,"id":7581925,"server_id":21,"src":"Tramlines_with_Anvil._Photo_Mark_Somerville__2011___023_thumb.gif","galleries_id":410225,"width":160});
thumbnails[7565252] = clik.newPhoto({"link":"photo_7565252.html","caption":"Beeches,Beckhampton","height":160,"id":7565252,"server_id":21,"src":"Beeches_Beckhampton._Photo_Mark_Somerville__2011___007_thumb.gif","galleries_id":410225,"width":112});
thumbnails[7581846] = clik.newPhoto({"link":"photo_7581846.html","caption":"ARTICHOKE","height":160,"id":7581846,"server_id":21,"src":"ARTICHOKE.gif._Photo_Mark_Somerville__2011___003_thumb.gif","galleries_id":411239,"width":115});
thumbnails[7581856] = clik.newPhoto({"link":"photo_7581856.html","caption":"RHUBARB","height":106,"id":7581856,"server_id":21,"src":"RHUBARB.gif._Photo_Mark_Somerville__2011___014_thumb.gif","galleries_id":411239,"width":160});
thumbnails[7581845] = clik.newPhoto({"link":"photo_7581845.html","caption":"AQUILEGEA II","height":160,"id":7581845,"server_id":21,"src":"AQUILEGEA-II.gif._Photo_Mark_Somerville__2011___001_thumb.gif","galleries_id":411239,"width":136});
thumbnails[7600743] = clik.newPhoto({"link":"photo_7600743.html","caption":"ACCESS TO WATER","height":160,"id":7600743,"server_id":21,"src":"Access_to_water-Photo.-Mark-Somerville--2011_thumb.gif","galleries_id":410225,"width":114});
thumbnails[7581859] = clik.newPhoto({"link":"photo_7581859.html","caption":"LEMONS II","height":160,"id":7581859,"server_id":21,"src":"LEMONS.gif._Photo_Mark_Somerville__2011___009_thumb.gif","galleries_id":411239,"width":128});
thumbnails[7581919] = clik.newPhoto({"link":"photo_7581919.html","caption":"A PERFECT PICH","height":160,"id":7581919,"server_id":21,"src":"Perfect_pitch._Photo_Mark_Somerville__2011___017_thumb.gif","galleries_id":410225,"width":112});
thumbnails[7581961] = clik.newPhoto({"link":"photo_7581961.html","caption":"SCALING THE WALL","height":160,"id":7581961,"server_id":21,"src":"Scaling_the_wall._Photo_Mark_Somerville__2011___020_thumb.gif","galleries_id":410225,"width":114});
thumbnails[7581854] = clik.newPhoto({"link":"photo_7581854.html","caption":"ONIONS AND LETTERS","height":160,"id":7581854,"server_id":21,"src":"ONIONS__LETTER.gif._Photo_Mark_Somerville__2011___011_thumb.gif","galleries_id":411239,"width":118});
thumbnails[7581923] = clik.newPhoto({"link":"photo_7581923.html","caption":"TAGGED BY FIBONACCI","height":160,"id":7581923,"server_id":21,"src":"Tagged_by_Fibonacci._Photo_Mark_Somerville__2011___022_thumb.gif","galleries_id":410225,"width":128});
thumbnails[7581855] = clik.newPhoto({"link":"photo_7581855.html","caption":"ONIONS","height":160,"id":7581855,"server_id":21,"src":"ONIONS.gif._Photo_Mark_Somerville__2011___012_thumb.gif","galleries_id":411239,"width":126});
thumbnails[7571444] = clik.newPhoto({"link":"photo_7571444.html","caption":"Rockley Downs","height":75,"id":7571444,"server_id":21,"src":"Rockley_downs._Photo_Mark_Somerville__2011___019_thumb.gif","galleries_id":410225,"width":160});
thumbnails[7571445] = clik.newPhoto({"link":"photo_7571445.html","caption":"Uncropped landscape","height":76,"id":7571445,"server_id":21,"src":"Uncropped_landscape._Photo_Mark_Somerville__2011___024_thumb.gif","galleries_id":410225,"width":160});
thumbnails[7578342] = clik.newPhoto({"link":"photo_7578342.html","caption":"","height":107,"id":7578342,"server_id":21,"src":"Commercial_work_Photo_Mark_Somerville__2011_6_thumb.gif","galleries_id":411095,"width":160});
thumbnails[7578349] = clik.newPhoto({"link":"photo_7578349.html","caption":"","height":76,"id":7578349,"server_id":21,"src":"Commercial_work_Photo_Mark_Somerville__2011_8_thumb.gif","galleries_id":411095,"width":160});
thumbnails[7580974] = clik.newPhoto({"link":"photo_7580974.html","caption":"","height":76,"id":7580974,"server_id":21,"src":"Commercial_work_Photo_Mark_Somerville__2011_7_thumb.gif","galleries_id":411095,"width":160});
thumbnails[7580975] = clik.newPhoto({"link":"photo_7580975.html","caption":"","height":76,"id":7580975,"server_id":21,"src":"Commercial_work_Photo_Mark_Somerville__2011_9_thumb.gif","galleries_id":411095,"width":160});
thumbnails[7580976] = clik.newPhoto({"link":"photo_7580976.html","caption":"","height":80,"id":7580976,"server_id":21,"src":"Commercial_work_Photo_Mark_Somerville__2011_10_thumb.gif","galleries_id":411095,"width":160});
thumbnails[7580978] = clik.newPhoto({"link":"photo_7580978.html","caption":"","height":128,"id":7580978,"server_id":21,"src":"Commercial_work_Photo_Mark_Somerville__2011_1_thumb.gif","galleries_id":411095,"width":160});
thumbnails[7580979] = clik.newPhoto({"link":"photo_7580979.html","caption":"","height":160,"id":7580979,"server_id":21,"src":"Commercial_work_Photo_Mark_Somerville__2011_2_thumb.gif","galleries_id":411095,"width":160});
thumbnails[7580980] = clik.newPhoto({"link":"photo_7580980.html","caption":"","height":160,"id":7580980,"server_id":21,"src":"Commercial_work_Photo_Mark_Somerville__2011_4_thumb.gif","galleries_id":411095,"width":160});
thumbnails[7580981] = clik.newPhoto({"link":"photo_7580981.html","caption":"","height":160,"id":7580981,"server_id":21,"src":"Commercial_work_Photo_Mark_Somerville__2011_5_thumb.gif","galleries_id":411095,"width":160});
thumbnails[7580982] = clik.newPhoto({"link":"photo_7580982.html","caption":"","height":160,"id":7580982,"server_id":21,"src":"Commercial_work_Photo_Mark_Somerville__2011_11_thumb.gif","galleries_id":411095,"width":160});
thumbnails[7580983] = clik.newPhoto({"link":"photo_7580983.html","caption":"","height":160,"id":7580983,"server_id":21,"src":"Commercial_work_Photo_Mark_Somerville__2011_12_thumb.gif","galleries_id":411095,"width":159});
thumbnails[7581014] = clik.newPhoto({"link":"photo_7581014.html","caption":"","height":160,"id":7581014,"server_id":21,"src":"Commercial_work_Photo_Mark_Somerville__2011_24_thumb.GIF","galleries_id":411095,"width":160});
thumbnails[7587272] = clik.newPhoto({"link":"photo_7587272.html","caption":"","height":136,"id":7587272,"server_id":21,"src":"Social-photography.-Mark-Somerville--2011--6_copy_thumb.gif","galleries_id":411471,"width":160});
thumbnails[7587285] = clik.newPhoto({"link":"photo_7587285.html","caption":"FORGED SHOT & FRAMED 2009","height":149,"id":7587285,"server_id":21,"src":"Social-photography.-Mark-Somerville--2011--5_copy_thumb.gif","galleries_id":411471,"width":160});
thumbnails[7587286] = clik.newPhoto({"link":"photo_7587286.html","caption":"FORGED SHOT & FRAMED 2009","height":149,"id":7587286,"server_id":21,"src":"Social-photography.-Mark-Somerville--2011--4_copy_thumb.gif","galleries_id":411471,"width":160});
thumbnails[7587309] = clik.newPhoto({"link":"photo_7587309.html","caption":"MARLBOROUGH OPEN STUDIOS 2010","height":149,"id":7587309,"server_id":21,"src":"Social-photography.-Mark-Somerville--2011--3_copy_thumb.gif","galleries_id":411471,"width":160});
thumbnails[7587347] = clik.newPhoto({"link":"photo_7587347.html","caption":"","height":67,"id":7587347,"server_id":21,"src":"Social-photography.-Mark-Somerville--2011--2_thumb.gif","galleries_id":411471,"width":160});
thumbnails[7587348] = clik.newPhoto({"link":"photo_7587348.html","caption":"","height":80,"id":7587348,"server_id":21,"src":"Social-photography.-Mark-Somerville--2011--1_thumb.gif","galleries_id":411471,"width":160});
thumbnails[9173506] = clik.newPhoto({"link":"photo_9173506.html","caption":"MELISSA COLE BLACKSMITH","height":160,"id":9173506,"server_id":21,"src":"Melissa_Cole_Blacksmith_1_thumb.JPG","galleries_id":411471,"width":109});
thumbnails[9173532] = clik.newPhoto({"link":"photo_9173532.html","caption":"FRED BAIER FURNITURE MAKER","height":160,"id":9173532,"server_id":21,"src":"FRED_BAIER__CUBE_IN_A_CUBE__1_thumb.JPG","galleries_id":411471,"width":113});
thumbnails[7565118] = clik.newPhoto({"link":"photo_7565118.html","caption":"MELISSA COLE","height":67,"id":7565118,"server_id":21,"src":"Artworks_by_kind_permission_of_Melissa_Cole_Photo_Mark_Somerville__2011___001_thumb_1.gif","galleries_id":410288,"width":160});
thumbnails[7565122] = clik.newPhoto({"link":"photo_7565122.html","caption":"EMILY MYERS","height":62,"id":7565122,"server_id":21,"src":"Artworks_by_kind_permission_of_Emily_Myers_Photo_Mark_Somerville__2011___002_thumb.gif","galleries_id":410288,"width":160});
thumbnails[7565201] = clik.newPhoto({"link":"photo_7565201.html","caption":"","height":41,"id":7565201,"server_id":21,"src":"Artworks._Photo_Mark_Somerville__2011___003_thumb.gif","galleries_id":410288,"width":160});
thumbnails[7587723] = clik.newPhoto({"link":"photo_7587723.html","caption":"JUDY BOYT","height":62,"id":7587723,"server_id":21,"src":"_photography_for_artists._Mark_Somerville__2011____1_thumb.gif","galleries_id":410288,"width":160});
thumbnails[7587941] = clik.newPhoto({"link":"photo_7587941.html","caption":"PUTHALL PARK SCULPTURE SHOW 2008","height":160,"id":7587941,"server_id":21,"src":"Artworks_Photo_Mark_Somerville__2011_1_thumb.gif","galleries_id":410288,"width":120});
thumbnails[7584111] = clik.newPhoto({"link":"photo_7584111.html","caption":"MARLBOROUGH OPEN STUDIOS 2010","height":90,"id":7584111,"server_id":21,"src":"Mark-Somerville--Melissa-Cole-s-exhibition-MOS-2010-2.JPG._Photo_Mark_Somerville__2011---008_thumb.gif","galleries_id":484525,"width":160});
thumbnails[7587174] = clik.newPhoto({"link":"photo_7587174.html","caption":"MALMESBURY TOWN HALL","height":101,"id":7587174,"server_id":21,"src":"Malmesbury-show-320-Aug.-_19.JPG._Photo_Mark_Somerville__2011---006_thumb.gif","galleries_id":484525,"width":160});
thumbnails[7587182] = clik.newPhoto({"link":"photo_7587182.html","caption":"\"JUNCTURE\" CHAPEL ROW GALLERY,BATH ","height":85,"id":7587182,"server_id":21,"src":"Juncture-Chapel-row-May-2010-22.JPG._Photo_Mark_Somerville__2011---004_thumb.gif","galleries_id":484525,"width":160});
thumbnails[7587192] = clik.newPhoto({"link":"photo_7587192.html","caption":"RWA OPEN PRINT EXHIBITION","height":91,"id":7587192,"server_id":21,"src":"RWA-Print.JPG._Photo_Mark_Somerville__2011---013_thumb.gif","galleries_id":484525,"width":160});
thumbnails[7587196] = clik.newPhoto({"link":"photo_7587196.html","caption":"RWA OPEN EXHIBITION","height":117,"id":7587196,"server_id":21,"src":"RWA-Perfect-Pitch.JPG._Photo_Mark_Somerville__2011---012_thumb.gif","galleries_id":484525,"width":160});
thumbnails[7587202] = clik.newPhoto({"link":"photo_7587202.html","caption":"MARLBOROUGH OPEN STUDIOS 2008","height":90,"id":7587202,"server_id":21,"src":"Mark-Somerville--Melissa-Cole-s-exhibition-MOS-2010-2008.JPG._Photo_Mark_Somerville__2011---009_thumb.gif","galleries_id":484525,"width":160});
thumbnails[9173301] = clik.newPhoto({"link":"photo_9173301.html","caption":"FOURSIGHT 2011","height":106,"id":9173301,"server_id":21,"src":"FOURSIGHT_2012_thumb1_1.JPG","galleries_id":484525,"width":160});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
galleries[484004] = clik.newGallery({"photoIDs":[9162840,9162903,9162905,9173655,9173656],"link":"section490532_484004.html","skipIndex":0,"section_code":"section490532","id":484004,"parentGallery":"","featured_images":"9173656,9173655,9162905,9162903,9162840","maxRecords":0,"usePopups":false,"singleSection":false,"title":"1.Tóppe gráffik"});galleries[410225] = clik.newGallery({"photoIDs":[8790870,7565106,7571419,7571402,7565206,7565228,7565246,7565110,7565025,7571424,7571439,7587377,7581925,7565252,7600743,7581919,7581961,7581923,7571444,7571445],"link":"section490532_410225.html","skipIndex":0,"section_code":"section490532","id":410225,"parentGallery":"","featured_images":"8790870,7600743,7587377,7581961,7581925,7581923,7581919,7571445,7571444,7571439","maxRecords":0,"usePopups":false,"singleSection":false,"title":"1.Wiltshire landscapes "});galleries[462847] = clik.newGallery({"photoIDs":[8790866,8791051,8791090,8791160,8791163,8791301,8791302,8791306,8791308],"link":"section490532_462847.html","skipIndex":0,"section_code":"section490532","id":462847,"parentGallery":"","featured_images":"8791308,8791306,8791302,8791301,8791163,8791160,8791090,8791051,8790866","maxRecords":0,"usePopups":false,"singleSection":false,"title":"2. Found objects from a recent trips"});galleries[426514] = clik.newGallery({"photoIDs":[7908973,7909729,7909737,7909739,7909741,7909743,7909744,7909747,7909748],"link":"section490532_426514.html","skipIndex":0,"section_code":"section490532","id":426514,"parentGallery":"","featured_images":"7909748,7909747,7909744,7909743,7909741,7909739,7909737,7909729,7908973","maxRecords":0,"usePopups":false,"singleSection":false,"title":"3.Lali hills,Kenya"});galleries[411239] = clik.newGallery({"photoIDs":[7581795,7581846,7581856,7581845,7581859,7581854,7581855],"link":"section490532_411239.html","skipIndex":0,"section_code":"section490532","id":411239,"parentGallery":"","featured_images":"7581859,7581856,7581855,7581854,7581846,7581845,7581795","maxRecords":0,"usePopups":false,"singleSection":false,"title":"4.Polaroid emulsion transfers"});galleries[463074] = clik.newGallery({"photoIDs":[8797006],"link":"section490532_463074.html","skipIndex":0,"section_code":"section490532","id":463074,"parentGallery":"","featured_images":8797006,"maxRecords":0,"usePopups":false,"singleSection":false,"title":"5.Sheep"});galleries[410288] = clik.newGallery({"photoIDs":[7565118,7565122,7565201,7587723,7587941],"link":"section490581.html","skipIndex":0,"section_code":"section490581","id":410288,"parentGallery":"","featured_images":"7587941,7587723,7565201,7565122,7565118","maxRecords":0,"usePopups":false,"singleSection":true,"title":"Artworks"});galleries[411095] = clik.newGallery({"photoIDs":[7578342,7578349,7580974,7580975,7580976,7580978,7580979,7580980,7580981,7580982,7580983,7581014],"link":"section490531.html","skipIndex":0,"section_code":"section490531","id":411095,"parentGallery":"","featured_images":"7581014,7580983,7580982,7580981,7580980,7580979,7580978,7580976,7580975,7580974","maxRecords":0,"usePopups":false,"singleSection":true,"title":"Commercial photography"});galleries[484525] = clik.newGallery({"photoIDs":[7584111,7587174,7587182,7587192,7587196,7587202,9173301],"link":"section591294.html","skipIndex":0,"section_code":"section591294","id":484525,"parentGallery":"","featured_images":"9173301,7587202,7587196,7587192,7587182,7587174,7584111","maxRecords":0,"usePopups":false,"singleSection":true,"title":"Exhibitions"});galleries[411471] = clik.newGallery({"photoIDs":[7587272,7587285,7587286,7587309,7587347,7587348,9173506,9173532],"link":"section490533.html","skipIndex":0,"section_code":"section490533","id":411471,"parentGallery":"","featured_images":"9173532,9173506,7587348,7587347,7587309,7587286,7587285,7587272","maxRecords":0,"usePopups":false,"singleSection":true,"title":"portraiture"});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[3] = '7565025';
imageSets[1] = '7775753';
imageSets[241089] = '7564352';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/MARKSOMERVILLE/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/MARKSOMERVILLE/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/MARKSOMERVILLE/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/MARKSOMERVILLE/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/MARKSOMERVILLE/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/MARKSOMERVILLE/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/MARKSOMERVILLE/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/MARKSOMERVILLE/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/MARKSOMERVILLE/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/MARKSOMERVILLE/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/MARKSOMERVILLE/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/MARKSOMERVILLE/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/MARKSOMERVILLE/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/MARKSOMERVILLE/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/MARKSOMERVILLE/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/MARKSOMERVILLE/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/MARKSOMERVILLE/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/MARKSOMERVILLE/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/MARKSOMERVILLE/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/MARKSOMERVILLE/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/MARKSOMERVILLE/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/MARKSOMERVILLE/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/MARKSOMERVILLE/images';
		break;
	}
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/MARKSOMERVILLE/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/MARKSOMERVILLE/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/MARKSOMERVILLE/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/MARKSOMERVILLE/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 += 'section490532.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 && 'section490532' != '') {
					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 = 'Mark Somerville photography: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
			
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else {
		
	}
	if (this.item_price !== '') {
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

		

