window.thumbnails = {};
															thumbnails[5752535] = clik.newPhoto({"id":5752535,"src":"2010_web_adj_4_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Soti and Diane","height":107});
															thumbnails[5752537] = clik.newPhoto({"id":5752537,"src":"2010_web_adj_4-3_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Arran","height":92});
															thumbnails[7367660] = clik.newPhoto({"id":7367660,"src":"Camargue_3_June_2010-131_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"CIRCLE III","height":66});
															thumbnails[5742975] = clik.newPhoto({"id":5742975,"src":"2010_web_adj_3-4_thumb.jpg","galleries_id":325291,"server_id":5,"link":"photo_5742975.html","width":130,"caption":"Camouflage","height":181});
															thumbnails[5742978] = clik.newPhoto({"id":5742978,"src":"2010_web_adj_3-6_thumb.jpg","galleries_id":310788,"server_id":5,"link":"photo_5742978.html","width":130,"caption":"Silver Surf, Atlantic Coast SW France","height":189});
															thumbnails[5742981] = clik.newPhoto({"id":5742981,"src":"2010_web_adj_3-7_thumb.jpg","galleries_id":310788,"server_id":5,"link":"photo_5742981.html","width":130,"caption":"The Edge, Atlantic Coast, SW France","height":189});
															thumbnails[5742982] = clik.newPhoto({"id":5742982,"src":"2010_web_adj_3-8_thumb.jpg","galleries_id":310788,"server_id":5,"link":"photo_5742982.html","width":130,"caption":"Storm Approaching, Atlantic Coast, SW France","height":187});
															thumbnails[5742985] = clik.newPhoto({"id":5742985,"src":"2010_web_adj_3-9_thumb.jpg","galleries_id":325291,"server_id":5,"link":"photo_5742985.html","width":130,"caption":"The Optimist - Temporary Nest, Biarritz Harbour","height":93});
															thumbnails[5742994] = clik.newPhoto({"id":5742994,"src":"2010_web_adj_3-12_thumb.jpg","galleries_id":310788,"server_id":5,"link":"photo_5742994.html","width":130,"caption":"Plantation Edge, Pine and Gorse, SW France","height":91});
															thumbnails[5742995] = clik.newPhoto({"id":5742995,"src":"2010_web_adj_3-13_thumb.jpg","galleries_id":310788,"server_id":5,"link":"photo_5742995.html","width":130,"caption":"Mountain retreat, French Pyrenees","height":91});
															thumbnails[5742997] = clik.newPhoto({"id":5742997,"src":"2010_web_adj_3-14_thumb.jpg","galleries_id":310788,"server_id":5,"link":"photo_5742997.html","width":130,"caption":"Lavender Valley, French Pyrenees","height":89});
															thumbnails[5743001] = clik.newPhoto({"id":5743001,"src":"2010_web_adj_3-16_thumb.jpg","galleries_id":310788,"server_id":5,"link":"photo_5743001.html","width":130,"caption":"Zen Tree, Azure Lake","height":184});
															thumbnails[5743004] = clik.newPhoto({"id":5743004,"src":"2010_web_adj_3-17_thumb.jpg","galleries_id":310788,"server_id":5,"link":"photo_5743004.html","width":130,"caption":"Lime Tree","height":187});
															thumbnails[5743011] = clik.newPhoto({"id":5743011,"src":"2010_web_adj_3-19_thumb.jpg","galleries_id":325284,"server_id":5,"link":"photo_5743011.html","width":130,"caption":"First Time, Charolais Calf","height":92});
															thumbnails[5743014] = clik.newPhoto({"id":5743014,"src":"2010_web_adj_3-21_thumb.jpg","galleries_id":325284,"server_id":5,"link":"photo_5743014.html","width":130,"caption":"Best Friends, Hereford Cattle","height":91});
															thumbnails[5743025] = clik.newPhoto({"id":5743025,"src":"2010_web_adj_3-24_thumb.jpg","galleries_id":325285,"server_id":5,"link":"photo_5743025.html","width":130,"caption":"Keeping Watch, Footsie","height":185});
															thumbnails[5743028] = clik.newPhoto({"id":5743028,"src":"2010_web_adj_3-26_thumb.jpg","galleries_id":325285,"server_id":5,"link":"photo_5743028.html","width":130,"caption":"Soti, Icelandic","height":185});
															thumbnails[5743034] = clik.newPhoto({"id":5743034,"src":"2010_web_adj_3-29_thumb.jpg","galleries_id":325285,"server_id":5,"link":"photo_5743034.html","width":130,"caption":"Henry 1, Collie\/Lurcher\/Deerhound","height":185});
															thumbnails[5743036] = clik.newPhoto({"id":5743036,"src":"2010_web_adj_3-30_thumb.jpg","galleries_id":325288,"server_id":5,"link":"photo_5743036.html","width":130,"caption":"Golden Sunset 1, June 09, Colmers Hill, Bridport","height":92});
															thumbnails[5743039] = clik.newPhoto({"id":5743039,"src":"2010_web_adj_3-31_thumb.jpg","galleries_id":325288,"server_id":5,"link":"photo_5743039.html","width":130,"caption":"Golden Sunset 2, June 09 Colmers Hill, Bridport","height":185});
															thumbnails[5743041] = clik.newPhoto({"id":5743041,"src":"2010_web_adj_3-32_thumb.jpg","galleries_id":325288,"server_id":5,"link":"photo_5743041.html","width":130,"caption":"Midsummer Sunset, Colmers Hill, Bridport","height":91});
															thumbnails[5743057] = clik.newPhoto({"id":5743057,"src":"2010_web_adj_3-34_thumb.jpg","galleries_id":325285,"server_id":5,"link":"photo_5743057.html","width":130,"caption":"Eye to Eye","height":92});
															thumbnails[5743061] = clik.newPhoto({"id":5743061,"src":"2010_web_adj_3-36_thumb.jpg","galleries_id":325284,"server_id":5,"link":"photo_5743061.html","width":130,"caption":"Show off!, British Toggenburg Goat","height":91});
															thumbnails[5743065] = clik.newPhoto({"id":5743065,"src":"2010_web_adj_3-38_thumb.jpg","galleries_id":325288,"server_id":5,"link":"photo_5743065.html","width":130,"caption":"Sky Blue Pink, August Sunset, Colmers Hill, Bridport","height":91});
															thumbnails[5743113] = clik.newPhoto({"id":5743113,"src":"2010_web_adj_3-45_thumb.jpg","galleries_id":325285,"server_id":5,"link":"photo_5743113.html","width":130,"caption":"Truffle 1","height":92});
															thumbnails[6213173] = clik.newPhoto({"id":6213173,"src":"_-11_thumb.jpg","galleries_id":325291,"server_id":5,"link":"photo_6213173.html","width":130,"caption":"Young Barn Owl","height":87});
															thumbnails[6213174] = clik.newPhoto({"id":6213174,"src":"_-14_thumb.jpg","galleries_id":325291,"server_id":5,"link":"photo_6213174.html","width":130,"caption":"Eagle Owl 1","height":183});
															thumbnails[6213177] = clik.newPhoto({"id":6213177,"src":"_-27_686B345D-1D09-001F-9981F5829C3AAC5D_thumb.jpg","galleries_id":325284,"server_id":5,"link":"photo_6213177.html","width":130,"caption":"Angora Goat","height":87});
															thumbnails[6213178] = clik.newPhoto({"id":6213178,"src":"_-33_686BC4D6-1D09-001F-99138288029B7932_thumb.jpg","galleries_id":325284,"server_id":5,"link":"photo_6213178.html","width":130,"caption":"Suffolk","height":87});
															thumbnails[6213179] = clik.newPhoto({"id":6213179,"src":"_-58_thumb.jpg","galleries_id":325291,"server_id":5,"link":"photo_6213179.html","width":130,"caption":"Little Owl 1","height":87});
															thumbnails[6213180] = clik.newPhoto({"id":6213180,"src":"2010_04_animals-20_thumb.jpg","galleries_id":325285,"server_id":5,"link":"photo_6213180.html","width":130,"caption":"Bee and Betty at 5 days old","height":87});
															thumbnails[6213181] = clik.newPhoto({"id":6213181,"src":"2010_04_animals-32_thumb.jpg","galleries_id":325285,"server_id":5,"link":"photo_6213181.html","width":130,"caption":"Betty - 5 days old","height":162});
															thumbnails[6213182] = clik.newPhoto({"id":6213182,"src":"2010_04_animals-106_thumb.jpg","galleries_id":325285,"server_id":5,"link":"photo_6213182.html","width":130,"caption":"Cleo","height":87});
															thumbnails[6213183] = clik.newPhoto({"id":6213183,"src":"Camargue_2_June_2010-90_thumb.jpg","galleries_id":346329,"server_id":5,"link":"photo_6213183.html","width":130,"caption":"Long Run ","height":87});
															thumbnails[6213185] = clik.newPhoto({"id":6213185,"src":"Camargue_2_June_2010-127_thumb.jpg","galleries_id":346329,"server_id":5,"link":"photo_6213185.html","width":130,"caption":"Shadow","height":87});
															thumbnails[6213189] = clik.newPhoto({"id":6213189,"src":"Camargue_2_June_2010-29112_thumb.jpg","galleries_id":346329,"server_id":5,"link":"photo_6213189.html","width":130,"caption":"Pure","height":87});
															thumbnails[6213191] = clik.newPhoto({"id":6213191,"src":"Camargue_3_June_2010-94_thumb.jpg","galleries_id":346329,"server_id":5,"link":"photo_6213191.html","width":130,"caption":"Sunrays","height":87});
															thumbnails[6213192] = clik.newPhoto({"id":6213192,"src":"Camargue_3_June_2010-100_thumb.jpg","galleries_id":346329,"server_id":5,"link":"photo_6213192.html","width":130,"caption":"Dancer","height":87});
															thumbnails[6213193] = clik.newPhoto({"id":6213193,"src":"Camargue_3_June_2010-139_thumb.jpg","galleries_id":346329,"server_id":5,"link":"photo_6213193.html","width":130,"caption":"Flick","height":88});
															thumbnails[6213196] = clik.newPhoto({"id":6213196,"src":"_-7_thumb.jpg","galleries_id":325285,"server_id":5,"link":"photo_6213196.html","width":130,"caption":"Ms V","height":185});
															thumbnails[6213197] = clik.newPhoto({"id":6213197,"src":"2007_10_07_Ports_2-3_thumb.jpg","galleries_id":325285,"server_id":5,"link":"photo_6213197.html","width":130,"caption":"Monkey","height":177});
															thumbnails[6213198] = clik.newPhoto({"id":6213198,"src":"2009_winter-2_thumb.jpg","galleries_id":325285,"server_id":5,"link":"photo_6213198.html","width":130,"caption":"Henry 3","height":181});
															thumbnails[6226369] = clik.newPhoto({"id":6226369,"src":"Camargue_2_June_2010-125_thumb.jpg","galleries_id":346329,"server_id":5,"link":"photo_6226369.html","width":130,"caption":"Spray","height":87});
															thumbnails[6402188] = clik.newPhoto({"id":6402188,"src":"Camargue_3_June_2010-104_thumb.jpg","galleries_id":346329,"server_id":5,"link":"photo_6402188.html","width":130,"caption":"Hercules, plus one","height":87});
															thumbnails[6429484] = clik.newPhoto({"id":6429484,"src":"_MG_4007_thumb.jpg","galleries_id":325285,"server_id":5,"link":"photo_6429484.html","width":130,"caption":"The Boss","height":86});
															thumbnails[6429486] = clik.newPhoto({"id":6429486,"src":"Camargue_1_June_2010-208_thumb.jpg","galleries_id":346329,"server_id":5,"link":"photo_6429486.html","width":130,"caption":"Trio","height":110});
															thumbnails[6429490] = clik.newPhoto({"id":6429490,"src":"Camargue_3_June_2010-127_thumb.jpg","galleries_id":346329,"server_id":5,"link":"photo_6429490.html","width":130,"caption":"TURN","height":102});
															thumbnails[7357254] = clik.newPhoto({"id":7357254,"src":"_-9-Edit-Edit_thumb.jpg","galleries_id":325288,"server_id":5,"link":"photo_7357254.html","width":130,"caption":"West Bay Winter","height":91});
															thumbnails[7357257] = clik.newPhoto({"id":7357257,"src":"_MG_4364_thumb.jpg","galleries_id":325284,"server_id":5,"link":"photo_7357257.html","width":130,"caption":"Pig with Blue Stud","height":93});
															thumbnails[7357259] = clik.newPhoto({"id":7357259,"src":"2009_Autumn_Capilo-5_thumb.jpg","galleries_id":325288,"server_id":5,"link":"photo_7357259.html","width":130,"caption":"Bluebell wood","height":98});
															thumbnails[7357263] = clik.newPhoto({"id":7357263,"src":"Camargue_3_June_2010-143_thumb.jpg","galleries_id":346329,"server_id":5,"link":"photo_7357263.html","width":130,"caption":"Thunder","height":89});
															thumbnails[7357271] = clik.newPhoto({"id":7357271,"src":"IMG_1398-Edit_thumb.jpg","galleries_id":325288,"server_id":5,"link":"photo_7357271.html","width":130,"caption":"Viewpoint from Portland","height":87});
															thumbnails[7357278] = clik.newPhoto({"id":7357278,"src":"Camargue_2_June_2010-90_ECC4CE84-1E4F-37DC-715A341EF04D39A0_thumb.jpg","galleries_id":346329,"server_id":5,"link":"photo_7357278.html","width":130,"caption":"Point","height":110});
															thumbnails[7357279] = clik.newPhoto({"id":7357279,"src":"Camargue_3_June_2010-84_thumb.jpg","galleries_id":346329,"server_id":5,"link":"photo_7357279.html","width":130,"caption":"Pairs","height":130});
															thumbnails[7357281] = clik.newPhoto({"id":7357281,"src":"Camargue_2_June_2010-426_thumb.jpg","galleries_id":346329,"server_id":5,"link":"photo_7357281.html","width":130,"caption":"Sundown","height":130});
															thumbnails[7357283] = clik.newPhoto({"id":7357283,"src":"Camargue_2_June_2010-409_thumb.jpg","galleries_id":346329,"server_id":5,"link":"photo_7357283.html","width":130,"caption":"Crest","height":130});
															thumbnails[7357295] = clik.newPhoto({"id":7357295,"src":"_MG_4194_thumb.jpg","galleries_id":325284,"server_id":5,"link":"photo_7357295.html","width":130,"caption":"Sheep Peep","height":86});
															thumbnails[7367645] = clik.newPhoto({"id":7367645,"src":"Camargue_3_June_2010-79_thumb.jpg","galleries_id":346329,"server_id":5,"link":"photo_7367645.html","width":130,"caption":"Seahorses Frieze","height":45});
															thumbnails[7367647] = clik.newPhoto({"id":7367647,"src":"Camargue_3_June_2010-47_thumb.jpg","galleries_id":346329,"server_id":5,"link":"photo_7367647.html","width":130,"caption":"INCOMING TIDE","height":57});
															thumbnails[7367650] = clik.newPhoto({"id":7367650,"src":"Camargue_3_June_2010-128_thumb.jpg","galleries_id":346329,"server_id":5,"link":"photo_7367650.html","width":130,"caption":"STROLL","height":70});
															thumbnails[7367654] = clik.newPhoto({"id":7367654,"src":"2010_03_results_jc_workshop-7_thumb.jpg","galleries_id":325288,"server_id":5,"link":"photo_7367654.html","width":130,"caption":"COLMERS HILL CLOUDS","height":53});
															thumbnails[7367657] = clik.newPhoto({"id":7367657,"src":"Camargue_2_June_2010-92_thumb.jpg","galleries_id":346329,"server_id":5,"link":"photo_7367657.html","width":130,"caption":"GLANCE","height":56});
															thumbnails[7367800] = clik.newPhoto({"id":7367800,"src":"_MG_4493-Edit_thumb.jpg","galleries_id":325291,"server_id":5,"link":"photo_7367800.html","width":130,"caption":"CURLED","height":89});
															thumbnails[7367825] = clik.newPhoto({"id":7367825,"src":"_MG_4536-Edit_thumb.jpg","galleries_id":325291,"server_id":5,"link":"photo_7367825.html","width":130,"caption":"WHITE","height":87});
															thumbnails[7367830] = clik.newPhoto({"id":7367830,"src":"_MG_4535-Edit_thumb.jpg","galleries_id":325291,"server_id":5,"link":"photo_7367830.html","width":130,"caption":"TAKE OFF","height":45});
															thumbnails[7367842] = clik.newPhoto({"id":7367842,"src":"_MG_4558-Edit_thumb.jpg","galleries_id":325291,"server_id":5,"link":"photo_7367842.html","width":130,"caption":"BALANCE","height":93});
															thumbnails[7371371] = clik.newPhoto({"id":7371371,"src":"_MG_4117_thumb.jpg","galleries_id":325285,"server_id":5,"link":"photo_7371371.html","width":130,"caption":"BINKS","height":87});
															thumbnails[7371372] = clik.newPhoto({"id":7371372,"src":"_MG_4607-Edit_thumb.jpg","galleries_id":325291,"server_id":5,"link":"photo_7371372.html","width":130,"caption":"SHIMMER","height":61});
															thumbnails[7371385] = clik.newPhoto({"id":7371385,"src":"_MG_4449-Edit_thumb.jpg","galleries_id":325285,"server_id":5,"link":"photo_7371385.html","width":130,"caption":"LETTUCE","height":96});
															thumbnails[8172552] = clik.newPhoto({"id":8172552,"src":"_MG_0280_thumb.jpg","galleries_id":325284,"server_id":5,"link":"photo_8172552.html","width":130,"caption":"NEIGHBOURS","height":72});
															thumbnails[8172603] = clik.newPhoto({"id":8172603,"src":"_MG_0313_thumb.jpg","galleries_id":436488,"server_id":5,"link":"photo_8172603.html","width":130,"caption":"TWIST 1","height":102});
															thumbnails[8172613] = clik.newPhoto({"id":8172613,"src":"_MG_0329_thumb.jpg","galleries_id":436488,"server_id":5,"link":"photo_8172613.html","width":130,"caption":"THE SLOPE","height":93});
															thumbnails[8172621] = clik.newPhoto({"id":8172621,"src":"_MG_0402-Edit_thumb.jpg","galleries_id":436488,"server_id":5,"link":"photo_8172621.html","width":130,"caption":"PEEK","height":64});
															thumbnails[8172630] = clik.newPhoto({"id":8172630,"src":"_MG_0318_thumb.jpg","galleries_id":436488,"server_id":5,"link":"photo_8172630.html","width":130,"caption":"SPA","height":130});
															thumbnails[8172635] = clik.newPhoto({"id":8172635,"src":"_MG_0332_thumb.jpg","galleries_id":436488,"server_id":5,"link":"photo_8172635.html","width":130,"caption":"THE ISLAND","height":89});
															thumbnails[8172688] = clik.newPhoto({"id":8172688,"src":"_MG_0336_thumb.jpg","galleries_id":436488,"server_id":5,"link":"photo_8172688.html","width":130,"caption":"PLAY CHASE","height":64});
															thumbnails[8172690] = clik.newPhoto({"id":8172690,"src":"_MG_0475-Edit_thumb.jpg","galleries_id":436488,"server_id":5,"link":"photo_8172690.html","width":130,"caption":"WATCHFUL","height":87});
															thumbnails[8172692] = clik.newPhoto({"id":8172692,"src":"_MG_0481-Edit_thumb.jpg","galleries_id":436488,"server_id":5,"link":"photo_8172692.html","width":130,"caption":"NEW ALPHA","height":130});
															thumbnails[8172693] = clik.newPhoto({"id":8172693,"src":"_MG_0448_thumb.jpg","galleries_id":436488,"server_id":5,"link":"photo_8172693.html","width":130,"caption":"SHELTER","height":48});
															thumbnails[8172699] = clik.newPhoto({"id":8172699,"src":"_MG_0508_thumb.jpg","galleries_id":436488,"server_id":5,"link":"photo_8172699.html","width":130,"caption":"STRENGTH","height":87});
															thumbnails[8172702] = clik.newPhoto({"id":8172702,"src":"_MG_4858-Edit_thumb.jpg","galleries_id":436488,"server_id":5,"link":"photo_8172702.html","width":130,"caption":"SPRING LIGHT","height":323});
															thumbnails[8172754] = clik.newPhoto({"id":8172754,"src":"_MG_4907_thumb.jpg","galleries_id":436488,"server_id":5,"link":"photo_8172754.html","width":130,"caption":"SWISH","height":291});
															thumbnails[8172829] = clik.newPhoto({"id":8172829,"src":"_MG_0837_thumb.jpg","galleries_id":436487,"server_id":5,"link":"photo_8172829.html","width":130,"caption":"KNIGHT","height":130});
															thumbnails[8172853] = clik.newPhoto({"id":8172853,"src":"_MG_0929-Edit_thumb.jpg","galleries_id":436487,"server_id":5,"link":"photo_8172853.html","width":130,"caption":"FLARE","height":130});
															thumbnails[8172865] = clik.newPhoto({"id":8172865,"src":"_MG_0872-Edit-2_thumb.jpg","galleries_id":436487,"server_id":5,"link":"photo_8172865.html","width":130,"caption":"NIBS","height":130});
															thumbnails[8172873] = clik.newPhoto({"id":8172873,"src":"_MG_0859_thumb.jpg","galleries_id":436487,"server_id":5,"link":"photo_8172873.html","width":130,"caption":"FRECKLES","height":87});
															thumbnails[8172879] = clik.newPhoto({"id":8172879,"src":"_MG_0887-Edit_thumb.jpg","galleries_id":436487,"server_id":5,"link":"photo_8172879.html","width":130,"caption":"YAWN","height":87});
															thumbnails[8172884] = clik.newPhoto({"id":8172884,"src":"_MG_0944-Edit-3-Edit_thumb.jpg","galleries_id":436487,"server_id":5,"link":"photo_8172884.html","width":130,"caption":"BREATH","height":87});
															thumbnails[8172911] = clik.newPhoto({"id":8172911,"src":"_MG_1158_thumb.jpg","galleries_id":325285,"server_id":5,"link":"photo_8172911.html","width":130,"caption":"WILLOW","height":87});
															thumbnails[8172922] = clik.newPhoto({"id":8172922,"src":"_MG_4992_thumb.jpg","galleries_id":325285,"server_id":5,"link":"photo_8172922.html","width":130,"caption":"THE BASKET","height":187});
															thumbnails[8172934] = clik.newPhoto({"id":8172934,"src":"Camargue_2_June_2010-126-Edit-2_thumb.jpg","galleries_id":346329,"server_id":5,"link":"photo_8172934.html","width":130,"caption":"CLOSER 2","height":77});
															thumbnails[8172955] = clik.newPhoto({"id":8172955,"src":"Camargue_2_June_2010-146-Edit_thumb.jpg","galleries_id":346329,"server_id":5,"link":"photo_8172955.html","width":130,"caption":"WHISPERS","height":100});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[436487] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Arabian Horses","link":"gallery_436487.html","maxRecords":0.0,"photoIDs":[8172829.0,8172853.0,8172865.0,8172873.0,8172879.0,8172884.0],"skipIndex":0,"section_code":"gallery","featured_images":"8172884,8172879,8172873,8172865,8172853,8172829","id":436487,"singleSection":false});				  						galleries[346329] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Camargue Horses","link":"gallery_346329.html","maxRecords":0.0,"photoIDs":[6213183.0,6213185.0,6213189.0,6213191.0,6213192.0,6213193.0,6226369.0,6402188.0,6429486.0,6429490.0,7357263.0,7357278.0,7357279.0,7357281.0,7357283.0,7367645.0,7367647.0,7367650.0,7367657.0,8172934.0,8172955.0],"skipIndex":0,"section_code":"gallery","featured_images":"8172955,8172934,7367657,7367650,7367647,7367645,7357283,7357281,7357279,7357278","id":346329,"singleSection":false});				  						galleries[436488] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Bavarian NF","link":"gallery_436488.html","maxRecords":0.0,"photoIDs":[8172603.0,8172613.0,8172621.0,8172630.0,8172635.0,8172688.0,8172690.0,8172692.0,8172693.0,8172699.0,8172702.0,8172754.0],"skipIndex":0,"section_code":"gallery","featured_images":"8172754,8172702,8172699,8172693,8172692,8172690,8172688,8172635,8172630,8172621","id":436488,"singleSection":false});				  						galleries[325285] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Companions ","link":"gallery_325285.html","maxRecords":0.0,"photoIDs":[5743025.0,5743028.0,5743034.0,5743057.0,5743113.0,6213180.0,6213181.0,6213182.0,6213196.0,6213197.0,6213198.0,6429484.0,7371371.0,7371385.0,8172911.0,8172922.0],"skipIndex":0,"section_code":"gallery","featured_images":"8172922,8172911,7371385,7371371,6429484,6213198,6213197,6213196,6213182,6213181","id":325285,"singleSection":false});				  						galleries[325284] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Farm & Show ","link":"gallery_325284.html","maxRecords":0.0,"photoIDs":[5743011.0,5743014.0,5743061.0,6213177.0,6213178.0,7357257.0,7357295.0,8172552.0],"skipIndex":0,"section_code":"gallery","featured_images":"8172552,7357295,7357257,6213178,6213177,5743061,5743014,5743011","id":325284,"singleSection":false});				  						galleries[325291] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Feathers ","link":"gallery_325291.html","maxRecords":0.0,"photoIDs":[5742975.0,5742985.0,6213173.0,6213174.0,6213179.0,7367800.0,7367825.0,7367830.0,7367842.0,7371372.0],"skipIndex":0,"section_code":"gallery","featured_images":"7371372,7367842,7367830,7367825,7367800,6213179,6213174,6213173,5742985,5742975","id":325291,"singleSection":false});				  						galleries[325288] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Dorset ","link":"gallery_325288.html","maxRecords":0.0,"photoIDs":[5743036.0,5743039.0,5743041.0,5743065.0,7357254.0,7357259.0,7357271.0,7367654.0],"skipIndex":0,"section_code":"gallery","featured_images":"7367654,7357271,7357259,7357254,5743065,5743041,5743039,5743036","id":325288,"singleSection":false});				  						galleries[310788] = clik.newGallery({"parentGallery":"","usePopups":false,"title":" SW France ","link":"gallery_310788.html","maxRecords":0.0,"photoIDs":[5742978.0,5742981.0,5742982.0,5742994.0,5742995.0,5742997.0,5743001.0,5743004.0],"skipIndex":0,"section_code":"gallery","featured_images":"5743004,5743001,5742997,5742995,5742994,5742982,5742981,5742978","id":310788,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8172955,8172934,8172922,8172911,8172884,8172879,8172873,8172865,8172853,8172829,8172754,8172702,8172699,8172693,8172692,8172690,8172688,8172635,8172630,8172621,8172613,8172603,8172552,7371385,7371372,7371371,7367842,7367830,7367825,7367800,7367660,7367657,7367654,7367650,7367647,7367645,7357295,7357283,7357281,7357279,7357278,7357271,7357263,7357259,7357257,7357254,6429490,6429486,6429484,6402188';
imageSets[3] = '8172955,8172934,8172922,8172911,8172884,8172879,8172873,8172865,8172853,8172829,8172754,8172702,8172699,8172693,8172692,8172690,8172688,8172635,8172630,8172621,8172613,8172603,8172552,7371385,7371372,7371371,7367842,7367830,7367825,7367800,7367660,7367657,7367654,7367650,7367647,7367645,7357295,7357283,7357281,7357279,7357278,7357271,7357263,7357259,7357257,7357254,6429490,6429486,6429484,6402188';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/barbarasimons/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/barbarasimons/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/barbarasimons/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/barbarasimons/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/barbarasimons/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/barbarasimons/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/barbarasimons/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/barbarasimons/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/barbarasimons/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/barbarasimons/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/barbarasimons/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/barbarasimons/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/barbarasimons/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/barbarasimons/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/barbarasimons/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/barbarasimons/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/barbarasimons/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/barbarasimons/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/barbarasimons/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/barbarasimons/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/barbarasimons/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/barbarasimons/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/barbarasimons/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/barbarasimons/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/barbarasimons/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/barbarasimons/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/barbarasimons/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = (backgrounds || photos || {})[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$detailContainer:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
		op = $.extend({},defaults,options),
		html = '', temp = '',
		photoId = op.nextPhoto.id,
		photoCaption = ''+op.nextPhoto.caption,
		photoSrc = op.nextPhoto.src;
	
	if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'spirited image: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
	temp += this.fnGetPaymentInfo();
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
																		temp += '<p>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
		 									temp += '<select class="paymentlink" name="payment_options_id" onchange="updateCartValue($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
		else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
											temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm">';
			temp += '	<input type="hidden" name="item_option" value="' + item_option + '">';
			temp += '	<input type="hidden" name="site" value="BARBARASIMONS">';
			temp += '	<input type="hidden" name="item_number" value="'+ this.id +'">';
			temp += '	<input type="hidden" name="quantity" value="1">';
						temp += '	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\'\;" onmouseout="this.className=\'button\'\;" type="Button">';
							temp += '	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';
			temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
			temp += '<div id="confirmContainer">';
			temp += '<div id="paymentConfirm">Item added to cart</div>';
			temp += '</div>';
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

