window.thumbnails = {};
															thumbnails[4047665] = clik.newPhoto({"id":4047665,"src":"bb0823_2_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Becky Boorman","height":260});
															thumbnails[4369156] = clik.newPhoto({"id":4369156,"src":"je042_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":195});
															thumbnails[4369201] = clik.newPhoto({"id":4369201,"src":"je001_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":195});
															thumbnails[4047663] = clik.newPhoto({"id":4047663,"src":"bb0819_2_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Becky Boorman","height":65});
															thumbnails[4369202] = clik.newPhoto({"id":4369202,"src":"je079_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":195});
															thumbnails[4369203] = clik.newPhoto({"id":4369203,"src":"je061_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":195});
															thumbnails[4369205] = clik.newPhoto({"id":4369205,"src":"je082_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":195});
															thumbnails[4047921] = clik.newPhoto({"id":4047921,"src":"nh006_2_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Nicola Hancox","height":84});
															thumbnails[4369206] = clik.newPhoto({"id":4369206,"src":"defacto14311_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":194});
															thumbnails[4369207] = clik.newPhoto({"id":4369207,"src":"defacto14401_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":194});
															thumbnails[4368980] = clik.newPhoto({"id":4368980,"src":"Still_Waters_1_CCtweaked-2_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Lisa Wright","height":120});
															thumbnails[4369208] = clik.newPhoto({"id":4369208,"src":"defacto16171_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":194});
															thumbnails[4369210] = clik.newPhoto({"id":4369210,"src":"jb0144_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":195});
															thumbnails[4369211] = clik.newPhoto({"id":4369211,"src":"jb0162_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":195});
															thumbnails[4369212] = clik.newPhoto({"id":4369212,"src":"jj048_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":195});
															thumbnails[4368983] = clik.newPhoto({"id":4368983,"src":"kt155_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Kathy Todd","height":100});
															thumbnails[4369213] = clik.newPhoto({"id":4369213,"src":"jj068-2_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":195});
															thumbnails[4047730] = clik.newPhoto({"id":4047730,"src":"ej211_2_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Emma Jeffryes","height":84});
															thumbnails[4047739] = clik.newPhoto({"id":4047739,"src":"gl174_2_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Gary Long","height":175});
															thumbnails[4047979] = clik.newPhoto({"id":4047979,"src":"sk023_2_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Sue Kinley","height":190});
															thumbnails[4047919] = clik.newPhoto({"id":4047919,"src":"mo079_2_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Morrab Studio","height":85});
															thumbnails[4047777] = clik.newPhoto({"id":4047777,"src":"jh013_2_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Jen Hall","height":95});
															thumbnails[4047667] = clik.newPhoto({"id":4047667,"src":"cw0049_2_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Claire Winterton","height":195});
															thumbnails[4047724] = clik.newPhoto({"id":4047724,"src":"cw0074_2_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Claire Winterton","height":195});
															thumbnails[4047917] = clik.newPhoto({"id":4047917,"src":"mk015_2_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Abbott & Ellwood","height":195});
															thumbnails[4047923] = clik.newPhoto({"id":4047923,"src":"nh564_2_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Nic Harrison","height":104});
															thumbnails[4047974] = clik.newPhoto({"id":4047974,"src":"nh590_2_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Nic Harrison","height":86});
															thumbnails[8411317] = clik.newPhoto({"id":8411317,"src":"_1RJ0212_thumb.jpg","galleries_id":445621,"server_id":37,"link":"photo_8411317.html","width":130,"caption":"Prawn Cocktail","height":195});
															thumbnails[8411326] = clik.newPhoto({"id":8411326,"src":"_1RJ0311_thumb.jpg","galleries_id":445621,"server_id":37,"link":"photo_8411326.html","width":130,"caption":"Breaded Mushroom","height":195});
															thumbnails[8411330] = clik.newPhoto({"id":8411330,"src":"_1RJ0652_thumb.jpg","galleries_id":445621,"server_id":37,"link":"photo_8411330.html","width":130,"caption":"Anglesey Room","height":67});
															thumbnails[8411337] = clik.newPhoto({"id":8411337,"src":"_1RJ1440_thumb.jpg","galleries_id":445621,"server_id":37,"link":"photo_8411337.html","width":130,"caption":"St Ives Room","height":86});
															thumbnails[8411344] = clik.newPhoto({"id":8411344,"src":"_1RJ6038-Edit_thumb.jpg","galleries_id":445621,"server_id":37,"link":"photo_8411344.html","width":130,"caption":"St Ives Room 2","height":81});
															thumbnails[8411348] = clik.newPhoto({"id":8411348,"src":"_1RJ6057_thumb.jpg","galleries_id":445621,"server_id":37,"link":"photo_8411348.html","width":130,"caption":"Breakfast Room","height":195});
															thumbnails[8411355] = clik.newPhoto({"id":8411355,"src":"_1RJ6074_thumb.jpg","galleries_id":445621,"server_id":37,"link":"photo_8411355.html","width":130,"caption":"Breakfast 2","height":195});
															thumbnails[8411357] = clik.newPhoto({"id":8411357,"src":"_1RJ1879_thumb.jpg","galleries_id":445621,"server_id":37,"link":"photo_8411357.html","width":130,"caption":"Giants Causeway 1","height":195});
															thumbnails[8411363] = clik.newPhoto({"id":8411363,"src":"_1RJ1946_thumb.jpg","galleries_id":445621,"server_id":37,"link":"photo_8411363.html","width":130,"caption":"Giants causeway 2","height":195});
															thumbnails[8411396] = clik.newPhoto({"id":8411396,"src":"_1RJ1954_thumb.jpg","galleries_id":445621,"server_id":37,"link":"photo_8411396.html","width":130,"caption":"Giants 3","height":195});
															thumbnails[8411399] = clik.newPhoto({"id":8411399,"src":"_1RJ1985_thumb.jpg","galleries_id":445621,"server_id":37,"link":"photo_8411399.html","width":130,"caption":"Giants 4- no colour filter !","height":195});
															thumbnails[8411414] = clik.newPhoto({"id":8411414,"src":"_1RJ4729_thumb.jpg","galleries_id":445621,"server_id":37,"link":"photo_8411414.html","width":130,"caption":"Ben Winship","height":195});
															thumbnails[8411422] = clik.newPhoto({"id":8411422,"src":"_1RJ5192_thumb.jpg","galleries_id":445621,"server_id":37,"link":"photo_8411422.html","width":130,"caption":"Strips of Fish - Sophia's","height":86});
															thumbnails[8411425] = clik.newPhoto({"id":8411425,"src":"_1RJ5223_thumb.jpg","galleries_id":445621,"server_id":37,"link":"photo_8411425.html","width":130,"caption":"Crab - Sophia's","height":195});
															thumbnails[8411429] = clik.newPhoto({"id":8411429,"src":"_1RJ5472_thumb.jpg","galleries_id":445621,"server_id":37,"link":"photo_8411429.html","width":130,"caption":"Whiskey Jack","height":195});
															thumbnails[8411434] = clik.newPhoto({"id":8411434,"src":"_1RJ5545_thumb.jpg","galleries_id":445621,"server_id":37,"link":"photo_8411434.html","width":130,"caption":"Martin Schofield","height":195});
															thumbnails[8411452] = clik.newPhoto({"id":8411452,"src":"_1RJ5674_thumb.jpg","galleries_id":445621,"server_id":37,"link":"photo_8411452.html","width":130,"caption":"Roland Emmanuel","height":195});
															thumbnails[8411457] = clik.newPhoto({"id":8411457,"src":"_1RJ5682_thumb.jpg","galleries_id":445621,"server_id":37,"link":"photo_8411457.html","width":130,"caption":"Roy Nicholls","height":195});
															thumbnails[8411462] = clik.newPhoto({"id":8411462,"src":"_1RJ5699_thumb.jpg","galleries_id":445621,"server_id":37,"link":"photo_8411462.html","width":130,"caption":"Paul Morgan","height":195});
															thumbnails[8411465] = clik.newPhoto({"id":8411465,"src":"_1RJ6253_thumb.jpg","galleries_id":445621,"server_id":37,"link":"photo_8411465.html","width":130,"caption":"Somerset House","height":195});
															thumbnails[8411474] = clik.newPhoto({"id":8411474,"src":"_1RJ6411_thumb.jpg","galleries_id":445621,"server_id":37,"link":"photo_8411474.html","width":130,"caption":"Watergate Babes","height":86});
															thumbnails[8411477] = clik.newPhoto({"id":8411477,"src":"_1RJ6494_thumb.jpg","galleries_id":445621,"server_id":37,"link":"photo_8411477.html","width":130,"caption":"St Ives - early","height":193});
															thumbnails[8411483] = clik.newPhoto({"id":8411483,"src":"_1RJ6834_thumb.jpg","galleries_id":445621,"server_id":37,"link":"photo_8411483.html","width":130,"caption":"St Michaels Mount - early","height":86});
															thumbnails[8411496] = clik.newPhoto({"id":8411496,"src":"_1RJ7319_thumb.jpg","galleries_id":445621,"server_id":37,"link":"photo_8411496.html","width":130,"caption":"Fifteen","height":195});
															thumbnails[8411499] = clik.newPhoto({"id":8411499,"src":"_1RJ7342_thumb.jpg","galleries_id":445621,"server_id":37,"link":"photo_8411499.html","width":130,"caption":"Fifteen speed of service","height":86});
															thumbnails[8411504] = clik.newPhoto({"id":8411504,"src":"_1RJ8801_thumb.jpg","galleries_id":445621,"server_id":37,"link":"photo_8411504.html","width":130,"caption":"Heading home from Devon","height":195});
															thumbnails[8411506] = clik.newPhoto({"id":8411506,"src":"_1RJ9583_thumb.jpg","galleries_id":445621,"server_id":37,"link":"photo_8411506.html","width":130,"caption":"30-ton training","height":86});
															thumbnails[8411509] = clik.newPhoto({"id":8411509,"src":"_1RJ9644_thumb.jpg","galleries_id":445621,"server_id":37,"link":"photo_8411509.html","width":130,"caption":"Sales Team with product","height":195});
															thumbnails[8411512] = clik.newPhoto({"id":8411512,"src":"_2RJ0721_thumb.jpg","galleries_id":445621,"server_id":37,"link":"photo_8411512.html","width":130,"caption":"Close, but still searching the perfect bee picture","height":191});
															thumbnails[8411516] = clik.newPhoto({"id":8411516,"src":"_2RJ0768_thumb.jpg","galleries_id":445621,"server_id":37,"link":"photo_8411516.html","width":130,"caption":"Anglesey lighthouse","height":196});
															thumbnails[8411521] = clik.newPhoto({"id":8411521,"src":"_2RJ3265_thumb.jpg","galleries_id":445621,"server_id":37,"link":"photo_8411521.html","width":130,"caption":"Cornish Produce","height":196});
															thumbnails[8411523] = clik.newPhoto({"id":8411523,"src":"_2RJ3803_thumb.jpg","galleries_id":445621,"server_id":37,"link":"photo_8411523.html","width":130,"caption":"St Ives, still early","height":196});
															thumbnails[8411541] = clik.newPhoto({"id":8411541,"src":"_2RJ4808_thumb.jpg","galleries_id":445621,"server_id":37,"link":"photo_8411541.html","width":130,"caption":"Belfast modern","height":196});
															thumbnails[8411589] = clik.newPhoto({"id":8411589,"src":"_2RJ4820_thumb.jpg","galleries_id":445621,"server_id":37,"link":"photo_8411589.html","width":130,"caption":"Belfast not so modern","height":196});
															thumbnails[8411600] = clik.newPhoto({"id":8411600,"src":"_2RJ7155_thumb.jpg","galleries_id":445621,"server_id":37,"link":"photo_8411600.html","width":130,"caption":"Whiskey Jack droplet","height":82});
															thumbnails[8411604] = clik.newPhoto({"id":8411604,"src":"2-piece-1502_thumb.jpg","galleries_id":445621,"server_id":37,"link":"photo_8411604.html","width":130,"caption":"Whiskey Jack 2-piece","height":195});
															thumbnails[8411609] = clik.newPhoto({"id":8411609,"src":"3sun011_thumb.jpg","galleries_id":445621,"server_id":37,"link":"photo_8411609.html","width":130,"caption":"Clothing in the Studio","height":195});
															thumbnails[8411612] = clik.newPhoto({"id":8411612,"src":"corfu-4729_thumb.jpg","galleries_id":445621,"server_id":37,"link":"photo_8411612.html","width":130,"caption":"The heat and shade of Corfu","height":86});
															thumbnails[8411613] = clik.newPhoto({"id":8411613,"src":"despina-3981_thumb.jpg","galleries_id":445621,"server_id":37,"link":"photo_8411613.html","width":130,"caption":"Greek villa balcony","height":86});
															thumbnails[8411614] = clik.newPhoto({"id":8411614,"src":"despina-4006_thumb.jpg","galleries_id":445621,"server_id":37,"link":"photo_8411614.html","width":130,"caption":"I want to dive in","height":86});
															thumbnails[8411615] = clik.newPhoto({"id":8411615,"src":"despina-4296_thumb.jpg","galleries_id":445621,"server_id":37,"link":"photo_8411615.html","width":130,"caption":"Feta evening","height":86});
															thumbnails[8411618] = clik.newPhoto({"id":8411618,"src":"DSCF1158_thumb.jpg","galleries_id":445621,"server_id":37,"link":"photo_8411618.html","width":130,"caption":"Gwithian again","height":194});
															thumbnails[8411620] = clik.newPhoto({"id":8411620,"src":"paxos_scenes-4215_thumb.jpg","galleries_id":445621,"server_id":37,"link":"photo_8411620.html","width":130,"caption":"Paxos Boat","height":195});
															thumbnails[8411622] = clik.newPhoto({"id":8411622,"src":"sun159_thumb.jpg","galleries_id":445621,"server_id":37,"link":"photo_8411622.html","width":130,"caption":"Studio Clothing again","height":195});
															thumbnails[8411623] = clik.newPhoto({"id":8411623,"src":"sun206-Edit_thumb.jpg","galleries_id":445621,"server_id":37,"link":"photo_8411623.html","width":130,"caption":"Studio Wetsuit","height":195});
															thumbnails[8411624] = clik.newPhoto({"id":8411624,"src":"Tall_Boy-1436_thumb.jpg","galleries_id":445621,"server_id":37,"link":"photo_8411624.html","width":130,"caption":"Tall Boy","height":195});
															thumbnails[8411626] = clik.newPhoto({"id":8411626,"src":"yakovos-3854_thumb.jpg","galleries_id":445621,"server_id":37,"link":"photo_8411626.html","width":130,"caption":"I want to be there","height":86});
															thumbnails[3098603] = clik.newPhoto({"id":3098603,"src":"dendiatika_1RJ6285_thumb.jpg","galleries_id":149781,"server_id":5,"link":"photo_3098603.html","width":130,"caption":"Paxos Mood, shot for my longest standing client Greek Islands Club, hot work in a great office !","height":200});
															thumbnails[3098608] = clik.newPhoto({"id":3098608,"src":"mood_1RJ6181_thumb.jpg","galleries_id":149781,"server_id":5,"link":"photo_3098608.html","width":130,"caption":"Paxos Mood (2)","height":195});
															thumbnails[3098598] = clik.newPhoto({"id":3098598,"src":"agathi_1RJ6253_thumb.jpg","galleries_id":149781,"server_id":5,"link":"photo_3098598.html","width":130,"caption":"Villa Agathi in Paxos, for Greek Islands Club","height":86});
															thumbnails[3098599] = clik.newPhoto({"id":3098599,"src":"agathi_1RJ6262_thumb.jpg","galleries_id":149781,"server_id":5,"link":"photo_3098599.html","width":130,"caption":"Villa Agathi (2)","height":86});
															thumbnails[2279322] = clik.newPhoto({"id":2279322,"src":"_1RJ1311_thumb.JPG","galleries_id":148799,"server_id":5,"link":"photo_2279322.html","width":130,"caption":"Musician Gordon Giltrap at home in his studio on a recent shoot","height":195});
															thumbnails[2279327] = clik.newPhoto({"id":2279327,"src":"inboat_thumb.JPG","galleries_id":148799,"server_id":5,"link":"photo_2279327.html","width":130,"caption":"Zapcats in St Ives Bay","height":81});
															thumbnails[2279334] = clik.newPhoto({"id":2279334,"src":"_DSC0131_thumb.JPG","galleries_id":148799,"server_id":5,"link":"photo_2279334.html","width":130,"caption":"Falmouth therapy to promote thte location","height":195});
															thumbnails[2279337] = clik.newPhoto({"id":2279337,"src":"_DSC5539_thumb.JPG","galleries_id":148799,"server_id":5,"link":"photo_2279337.html","width":130,"caption":"Kite surfer at Gwithian beach","height":92});
															thumbnails[2279344] = clik.newPhoto({"id":2279344,"src":"_DSC5545_thumb.JPG","galleries_id":148799,"server_id":5,"link":"photo_2279344.html","width":130,"caption":"Kite surfer Mike Smith ripping at Gwithian","height":195});
															thumbnails[2279347] = clik.newPhoto({"id":2279347,"src":"_RJP1733_thumb.JPG","galleries_id":148799,"server_id":5,"link":"photo_2279347.html","width":130,"caption":"Lucy Silvas at Falmouth Week","height":195});
															thumbnails[2279349] = clik.newPhoto({"id":2279349,"src":"_RJP2303_thumb.JPG","galleries_id":148799,"server_id":5,"link":"photo_2279349.html","width":130,"caption":"Jo shot for fitness magazine cover","height":195});
															thumbnails[2279352] = clik.newPhoto({"id":2279352,"src":"_RJP2479_thumb.JPG","galleries_id":148799,"server_id":5,"link":"photo_2279352.html","width":130,"caption":"Models shot for BLue Reef Aquarium in Newquay","height":86});
															thumbnails[2279367] = clik.newPhoto({"id":2279367,"src":"_RJP9244_thumb.JPG","galleries_id":148799,"server_id":5,"link":"photo_2279367.html","width":130,"caption":"Local clothing shoot","height":195});
															thumbnails[2279368] = clik.newPhoto({"id":2279368,"src":"_RJP9397_thumb.JPG","galleries_id":148799,"server_id":5,"link":"photo_2279368.html","width":130,"caption":"The Wiyos, visiting from New York","height":195});
															thumbnails[2279403] = clik.newPhoto({"id":2279403,"src":"ben skinner 687 2_thumb.JPG","galleries_id":148799,"server_id":5,"link":"photo_2279403.html","width":130,"caption":"Ben Skinner hangs five","height":88});
															thumbnails[2279406] = clik.newPhoto({"id":2279406,"src":"boat7749_thumb.JPG","galleries_id":148799,"server_id":5,"link":"photo_2279406.html","width":130,"caption":"Seasafe water safety gear shoot, great product, long standing client","height":195});
															thumbnails[2279407] = clik.newPhoto({"id":2279407,"src":"boat8197_thumb.JPG","galleries_id":148799,"server_id":5,"link":"photo_2279407.html","width":130,"caption":"Amateur model doing well for the client","height":195});
															thumbnails[2279409] = clik.newPhoto({"id":2279409,"src":"dpt2336_thumb.JPG","galleries_id":148799,"server_id":5,"link":"photo_2279409.html","width":130,"caption":"Such joy !","height":195});
															thumbnails[2279417] = clik.newPhoto({"id":2279417,"src":"O J 432 2_thumb.JPG","galleries_id":148799,"server_id":5,"link":"photo_2279417.html","width":130,"caption":"O J throwing shapes","height":137});
															thumbnails[2279419] = clik.newPhoto({"id":2279419,"src":"_1RJ3478_thumb.JPG","galleries_id":149781,"server_id":5,"link":"photo_2279419.html","width":130,"caption":"Wish I was there, Alonnissos, Greece","height":195});
															thumbnails[2279420] = clik.newPhoto({"id":2279420,"src":"_2RJ0232_thumb.JPG","galleries_id":149781,"server_id":5,"link":"photo_2279420.html","width":130,"caption":"One reason I live in Cornwall","height":195});
															thumbnails[2279429] = clik.newPhoto({"id":2279429,"src":"_3RJ0376_thumb.JPG","galleries_id":149781,"server_id":5,"link":"photo_2279429.html","width":130,"caption":"St Ives B&B","height":195});
															thumbnails[2279433] = clik.newPhoto({"id":2279433,"src":"_DSC4509_thumb.JPG","galleries_id":149780,"server_id":5,"link":"photo_2279433.html","width":130,"caption":"Some of the best tea (a lot of ) money can buy, grown near Falmouth","height":86});
															thumbnails[2279436] = clik.newPhoto({"id":2279436,"src":"_DSC4945_thumb.JPG","galleries_id":149781,"server_id":5,"link":"photo_2279436.html","width":130,"caption":"This is all about the place, but the people make it special","height":195});
															thumbnails[2279465] = clik.newPhoto({"id":2279465,"src":"_RJP0637_thumb.JPG","galleries_id":149781,"server_id":5,"link":"photo_2279465.html","width":130,"caption":"Things to do in Falmouth","height":195});
															thumbnails[2279470] = clik.newPhoto({"id":2279470,"src":"_RJP4271_thumb.JPG","galleries_id":149781,"server_id":5,"link":"photo_2279470.html","width":130,"caption":"My home beach, Gwithian, West Cornwall","height":86});
															thumbnails[2279473] = clik.newPhoto({"id":2279473,"src":"aloscbe6340_thumb.JPG","galleries_id":149781,"server_id":5,"link":"photo_2279473.html","width":130,"caption":"Greek nets, couldn't be Cornish","height":195});
															thumbnails[2279474] = clik.newPhoto({"id":2279474,"src":"DSCF2968_thumb.JPG","galleries_id":149781,"server_id":5,"link":"photo_2279474.html","width":130,"caption":"No surfers were harmed in the making of this picture","height":194});
															thumbnails[2279476] = clik.newPhoto({"id":2279476,"src":"godrevy rjp 5_thumb.JPG","galleries_id":149781,"server_id":5,"link":"photo_2279476.html","width":130,"caption":"Godrevy lighthouse at dusk","height":46});
															thumbnails[2279482] = clik.newPhoto({"id":2279482,"src":"gwithian paragliders_thumb.JPG","galleries_id":149781,"server_id":5,"link":"photo_2279482.html","width":130,"caption":"Gwithian Towans, full of life and adventure","height":45});
															thumbnails[2279483] = clik.newPhoto({"id":2279483,"src":"gwithian pink dusk_thumb.JPG","galleries_id":149781,"server_id":5,"link":"photo_2279483.html","width":130,"caption":"Really, it was this colour !","height":45});
															thumbnails[2279484] = clik.newPhoto({"id":2279484,"src":"gwithianshower_thumb.JPG","galleries_id":149781,"server_id":5,"link":"photo_2279484.html","width":130,"caption":"It's going to get wet very soon...","height":46});
															thumbnails[2279487] = clik.newPhoto({"id":2279487,"src":"OLIVE_thumb.JPG","galleries_id":149781,"server_id":5,"link":"photo_2279487.html","width":130,"caption":"The perfect olive grove is elusive, this one on Lefkas is pretty close","height":48});
															thumbnails[2279491] = clik.newPhoto({"id":2279491,"src":"_1RJ2835_thumb.JPG","galleries_id":149780,"server_id":5,"link":"photo_2279491.html","width":130,"caption":"I like to shoot food !","height":195});
															thumbnails[2279495] = clik.newPhoto({"id":2279495,"src":"_1RJ6102_thumb.JPG","galleries_id":149780,"server_id":5,"link":"photo_2279495.html","width":130,"caption":"Chocolate pour.","height":195});
															thumbnails[2279497] = clik.newPhoto({"id":2279497,"src":"_DSC2704_thumb.JPG","galleries_id":149780,"server_id":5,"link":"photo_2279497.html","width":130,"caption":"This sheep did not die in vain !","height":195});
															thumbnails[2279498] = clik.newPhoto({"id":2279498,"src":"_DSC2735_thumb.JPG","galleries_id":149780,"server_id":5,"link":"photo_2279498.html","width":130,"caption":"A slice of easy life in the name of work.","height":86});
															thumbnails[2279566] = clik.newPhoto({"id":2279566,"src":"_RJP5267_thumb.JPG","galleries_id":149780,"server_id":5,"link":"photo_2279566.html","width":130,"caption":"It is a product, the whole kitchen","height":203});
															thumbnails[2279568] = clik.newPhoto({"id":2279568,"src":"_RJP8338_thumb.JPG","galleries_id":149780,"server_id":5,"link":"photo_2279568.html","width":130,"caption":"Beautiful furniture","height":195});
															thumbnails[2279570] = clik.newPhoto({"id":2279570,"src":"DSCF9888_thumb.JPG","galleries_id":149780,"server_id":5,"link":"photo_2279570.html","width":130,"caption":"The miracles of modern light","height":194});
															thumbnails[2279572] = clik.newPhoto({"id":2279572,"src":"DSCF9900_thumb.JPG","galleries_id":149780,"server_id":5,"link":"photo_2279572.html","width":130,"caption":"I like shooting kitchens","height":194});
															thumbnails[2279573] = clik.newPhoto({"id":2279573,"src":"pv0095_thumb.jpg","galleries_id":149780,"server_id":5,"link":"photo_2279573.html","width":130,"caption":"Another favourite product, and you should taste the wine...","height":195});
															thumbnails[2279576] = clik.newPhoto({"id":2279576,"src":"ringp_thumb.JPG","galleries_id":149780,"server_id":5,"link":"photo_2279576.html","width":130,"caption":"Artist jewellery","height":187});
															thumbnails[2279578] = clik.newPhoto({"id":2279578,"src":"rings_thumb.JPG","galleries_id":149780,"server_id":5,"link":"photo_2279578.html","width":130,"caption":"Artist jewellery again, I love original design","height":101});
															thumbnails[2279580] = clik.newPhoto({"id":2279580,"src":"rk000070_thumb.jpg","galleries_id":149780,"server_id":5,"link":"photo_2279580.html","width":130,"caption":"The pattern is a cloth imprint, clever.","height":195});
															thumbnails[2279584] = clik.newPhoto({"id":2279584,"src":"rk000192_thumb.jpg","galleries_id":149780,"server_id":5,"link":"photo_2279584.html","width":130,"caption":"Suspended finery","height":313});
															thumbnails[2279585] = clik.newPhoto({"id":2279585,"src":"rk000234_thumb.JPG","galleries_id":149780,"server_id":5,"link":"photo_2279585.html","width":130,"caption":"Wonderful stone well set","height":85});
															thumbnails[2279587] = clik.newPhoto({"id":2279587,"src":"rk000249_thumb.jpg","galleries_id":149780,"server_id":5,"link":"photo_2279587.html","width":130,"caption":"A delicate touch","height":195});
															thumbnails[2279589] = clik.newPhoto({"id":2279589,"src":"scallops_thumb.JPG","galleries_id":149780,"server_id":5,"link":"photo_2279589.html","width":130,"caption":"One of my best food shoots if only because I had to eat the product !","height":86});
															thumbnails[2475999] = clik.newPhoto({"id":2475999,"src":"_RJP4866_thumb.JPG","galleries_id":148799,"server_id":5,"link":"photo_2475999.html","width":130,"caption":"Joe Bonamassa bluesin' at Falmouth Princess Pavilion","height":195});
															thumbnails[2476000] = clik.newPhoto({"id":2476000,"src":"_RJP5791_thumb.JPG","galleries_id":148799,"server_id":5,"link":"photo_2476000.html","width":130,"caption":"Gary at full bluegrass festival flow","height":195});
															thumbnails[2476021] = clik.newPhoto({"id":2476021,"src":"DSCF7654_thumb.JPG","galleries_id":159133,"server_id":5,"link":"photo_2476021.html","width":130,"caption":"My best boy, alas no more.","height":194});
															thumbnails[2476023] = clik.newPhoto({"id":2476023,"src":"jewellr03_thumb.jpg","galleries_id":159133,"server_id":5,"link":"photo_2476023.html","width":130,"caption":"St Ives on a late pass through","height":195});
															thumbnails[2476024] = clik.newPhoto({"id":2476024,"src":"jewellr04_thumb.jpg","galleries_id":159133,"server_id":5,"link":"photo_2476024.html","width":130,"caption":"Godrevy light, you can't get away from it.","height":85});
															thumbnails[2476050] = clik.newPhoto({"id":2476050,"src":"jewellr06_thumb.jpg","galleries_id":159133,"server_id":5,"link":"photo_2476050.html","width":130,"caption":"Cot Valley","height":86});
															thumbnails[2476052] = clik.newPhoto({"id":2476052,"src":"jewellr07_thumb.jpg","galleries_id":159133,"server_id":5,"link":"photo_2476052.html","width":130,"caption":"Cot Valley again","height":195});
															thumbnails[2476054] = clik.newPhoto({"id":2476054,"src":"jewellr09_thumb.jpg","galleries_id":159133,"server_id":5,"link":"photo_2476054.html","width":130,"caption":"Leave only footprints...","height":195});
															thumbnails[2476057] = clik.newPhoto({"id":2476057,"src":"zapcat inboat wave final_thumb.jpg","galleries_id":159133,"server_id":5,"link":"photo_2476057.html","width":130,"caption":"There's no one I trust as much here !","height":91});
															thumbnails[2476059] = clik.newPhoto({"id":2476059,"src":"_1RJ3355_thumb.JPG","galleries_id":149781,"server_id":5,"link":"photo_2476059.html","width":130,"caption":"A great arrival at Alonnissos","height":81});
															thumbnails[2476060] = clik.newPhoto({"id":2476060,"src":"_1RJ3507_thumb.JPG","galleries_id":149781,"server_id":5,"link":"photo_2476060.html","width":130,"caption":"Could it be anywhere else ?","height":195});
															thumbnails[2476062] = clik.newPhoto({"id":2476062,"src":"_RJP1144_thumb.JPG","galleries_id":149781,"server_id":5,"link":"photo_2476062.html","width":130,"caption":"Cornish Rock","height":86});
															thumbnails[2476066] = clik.newPhoto({"id":2476066,"src":"_RJP6702_thumb.JPG","galleries_id":149781,"server_id":5,"link":"photo_2476066.html","width":130,"caption":"Porth Kidney towards Gwithian","height":195});
															thumbnails[2476067] = clik.newPhoto({"id":2476067,"src":"cam cov_thumb.jpg","galleries_id":149781,"server_id":5,"link":"photo_2476067.html","width":130,"caption":"Mad fun shoot !","height":195});
															thumbnails[2476068] = clik.newPhoto({"id":2476068,"src":"_1RJ1757_thumb.JPG","galleries_id":149780,"server_id":5,"link":"photo_2476068.html","width":130,"caption":"B&Q summer shoot, magical light on a rainy autumn day !","height":195});
															thumbnails[2476069] = clik.newPhoto({"id":2476069,"src":"_2RJ2179_thumb.JPG","galleries_id":149780,"server_id":5,"link":"photo_2476069.html","width":130,"caption":"I like movement in a picture !","height":88});
															thumbnails[2476072] = clik.newPhoto({"id":2476072,"src":"DSCF1444_thumb.JPG","galleries_id":149780,"server_id":5,"link":"photo_2476072.html","width":130,"caption":"Cold fruit for ice cream.","height":194});
															thumbnails[2476073] = clik.newPhoto({"id":2476073,"src":"DSCF1486_thumb.JPG","galleries_id":149780,"server_id":5,"link":"photo_2476073.html","width":130,"caption":"Yum !","height":194});
															thumbnails[2476074] = clik.newPhoto({"id":2476074,"src":"DSCF1513_thumb.JPG","galleries_id":149780,"server_id":5,"link":"photo_2476074.html","width":130,"caption":"Flavourings","height":194});
															thumbnails[2476079] = clik.newPhoto({"id":2476079,"src":"DSCF1752_thumb.JPG","galleries_id":149780,"server_id":5,"link":"photo_2476079.html","width":130,"caption":"Cornish gold ?","height":194});
															thumbnails[2476080] = clik.newPhoto({"id":2476080,"src":"DSCF1882_thumb.JPG","galleries_id":149780,"server_id":5,"link":"photo_2476080.html","width":130,"caption":"Revealing detail","height":194});
															thumbnails[2476081] = clik.newPhoto({"id":2476081,"src":"DSCF1903_thumb.JPG","galleries_id":149780,"server_id":5,"link":"photo_2476081.html","width":130,"caption":"One of five","height":194});
															thumbnails[3766271] = clik.newPhoto({"id":3766271,"src":"_2RJ0304_thumb.jpg","galleries_id":149781,"server_id":5,"link":"photo_3766271.html","width":130,"caption":"Golitha Falls, near Liskeard","height":196});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[149781] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Places","link":"gallery_149781.html","maxRecords":0.0,"photoIDs":[3098603.0,3098608.0,3098598.0,3098599.0,2279419.0,2279420.0,2279429.0,2279436.0,2279465.0,2279470.0,2279473.0,2279474.0,2279476.0,2279482.0,2279483.0,2279484.0,2279487.0,2476059.0,2476060.0,2476062.0,2476066.0,2476067.0,3766271.0],"skipIndex":0,"section_code":"gallery","featured_images":"2476067,2476066,2476062,2476060,2476059,2279484,2279483,2279482,2279476,2279474,2279473,2279470,2279465,2279436,2279429,2279420,2279419","id":149781,"singleSection":false});				  						galleries[149780] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Products","link":"gallery_149780.html","maxRecords":0.0,"photoIDs":[2279433.0,2279491.0,2279495.0,2279497.0,2279498.0,2279566.0,2279568.0,2279570.0,2279572.0,2279573.0,2279576.0,2279578.0,2279580.0,2279584.0,2279585.0,2279587.0,2279589.0,2476068.0,2476069.0,2476072.0,2476073.0,2476074.0,2476079.0,2476080.0,2476081.0],"skipIndex":0,"section_code":"gallery","featured_images":"2476081,2476080,2476079,2476074,2476073,2476072,2476069,2476068,2279589,2279587,2279585,2279584,2279580,2279578,2279576,2279573,2279572,2279570,2279568,2279566,2279498,2279497,2279495,2279491,2279433","id":149780,"singleSection":false});				  						galleries[445621] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Recent","link":"section535649.html","maxRecords":0.0,"photoIDs":[8411317.0,8411326.0,8411330.0,8411337.0,8411344.0,8411348.0,8411355.0,8411357.0,8411363.0,8411396.0,8411399.0,8411414.0,8411422.0,8411425.0,8411429.0,8411434.0,8411452.0,8411457.0,8411462.0,8411465.0,8411474.0,8411477.0,8411483.0,8411496.0,8411499.0,8411504.0,8411506.0,8411509.0,8411512.0,8411516.0,8411521.0,8411523.0,8411541.0,8411589.0,8411600.0,8411604.0,8411609.0,8411612.0,8411613.0,8411614.0,8411615.0,8411618.0,8411620.0,8411622.0,8411623.0,8411624.0,8411626.0],"skipIndex":0,"section_code":"section535649","featured_images":"8411626,8411624,8411623,8411622,8411620,8411618,8411615,8411614,8411613,8411612","id":445621,"singleSection":true});				  						galleries[148799] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"People","link":"gallery_148799.html","maxRecords":0.0,"photoIDs":[2279322.0,2279327.0,2279334.0,2279337.0,2279344.0,2279347.0,2279349.0,2279352.0,2279367.0,2279368.0,2279403.0,2279406.0,2279407.0,2279409.0,2279417.0,2475999.0,2476000.0],"skipIndex":0,"section_code":"gallery","featured_images":"2476000,2475999,2279417,2279409,2279407,2279406,2279403,2279368,2279367,2279352,2279344,2279337,2279334,2279327,2279322","id":148799,"singleSection":false});				  						galleries[159133] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Personal","link":"gallery_159133.html","maxRecords":0.0,"photoIDs":[2476021.0,2476023.0,2476024.0,2476050.0,2476052.0,2476054.0,2476057.0],"skipIndex":0,"section_code":"gallery","featured_images":"2476057,2476054,2476052,2476050,2476024,2476023,2476021","id":159133,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '2476081,2476079,2476074,2476073,2476060,2476059,2476057,2476054,2476052,2476050,2476024,2476023,2279589,2279566,2279498,2279497,2279491,2279484,2279483,2279482,2279476,2279474,2279470,2279465,2279433,2279327';
imageSets[2] = '2476081,2476080,2476079,2476074,2476073,2476072,2476069,2476068,2476067,2476066,2476062,2476060,2476059,2476057,2476054,2476052,2476050,2476024,2476023,2476021,2476000,2475999,2279589,2279587,2279585,2279584,2279580,2279578,2279576,2279573,2279572,2279570,2279568,2279566,2279498,2279497,2279495,2279491,2279484,2279483,2279482,2279476,2279474,2279473,2279470,2279465,2279436,2279433,2279429,2279420,2279419,2279417,2279409,2279407,2279406,2279403,2279368,2279367,2279352,2279344,2279337,2279334,2279327,2279322';
imageSets[3] = '8411626,8411624,8411623,8411622,8411620,8411618,8411615,8411614,8411613,8411612,8411609,8411604,8411600,8411589,8411541,8411523,8411521,8411516,8411512,8411509,8411506,8411504,8411499,8411496,8411483,8411477,8411474,8411465,8411462,8411457,8411452,8411434,8411429,8411425,8411422,8411414,8411399,8411396,8411363,8411357,8411355,8411348,8411344,8411337,8411330,8411326,8411317,4369213,4369212,4369211';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/rjphoto/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/rjphoto/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/rjphoto/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/rjphoto/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/rjphoto/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/rjphoto/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/rjphoto/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/rjphoto/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/rjphoto/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/rjphoto/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/rjphoto/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/rjphoto/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/rjphoto/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/rjphoto/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/rjphoto/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/rjphoto/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/rjphoto/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/rjphoto/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/rjphoto/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/rjphoto/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/rjphoto/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/rjphoto/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/rjphoto/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 && backgrounds[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'section535649.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 && 'section535649' != '') {
					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 = 'Rob Jewell 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.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp += '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
	else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
			temp += '<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({					href: thumbnails[imageID].fnGalleryLink(gallery_id),					title: galleries[gallery_id].title				});
			}
		}
	}
}

/***************************************************************************
* 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;
	}
}

			

