window.thumbnails = {};
															thumbnails[8490401] = clik.newPhoto({"id":8490401,"src":"Picture_005003_thumb.jpg","galleries_id":276106,"server_id":1,"link":"photo_8490401.html","width":87,"caption":"Arran Miles","height":130});
															thumbnails[8490336] = clik.newPhoto({"id":8490336,"src":"Marsh_Marigold001_thumb.jpg","galleries_id":276106,"server_id":1,"link":"photo_8490336.html","width":130,"caption":"Lorraine Saville","height":87});
															thumbnails[8490394] = clik.newPhoto({"id":8490394,"src":"IMG_7533001_thumb.jpg","galleries_id":276106,"server_id":1,"link":"photo_8490394.html","width":130,"caption":"Normandy Barcelo Soto","height":87});
															thumbnails[8456373] = clik.newPhoto({"id":8456373,"src":"IMG_4316003_thumb.jpg","galleries_id":447487,"server_id":1,"link":"photo_8456373.html","width":130,"caption":"","height":87});
															thumbnails[8456377] = clik.newPhoto({"id":8456377,"src":"IMG_4463006_thumb.jpg","galleries_id":447487,"server_id":1,"link":"photo_8456377.html","width":87,"caption":"","height":130});
															thumbnails[8456362] = clik.newPhoto({"id":8456362,"src":"IMG_4419_BW005_thumb.jpg","galleries_id":447487,"server_id":1,"link":"photo_8456362.html","width":130,"caption":"","height":87});
															thumbnails[270915] = clik.newPhoto({"id":270915,"src":"IMG_0084001_thumb.jpg","galleries_id":16414,"server_id":1,"link":"photo_270915.html","width":87,"caption":"A little bit of heaven","height":130});
															thumbnails[183432] = clik.newPhoto({"id":183432,"src":"For Baksheesh small001_thumb.jpg","galleries_id":16915,"server_id":1,"link":"photo_183432.html","width":130,"caption":"For Baksheesh","height":163});
															thumbnails[183457] = clik.newPhoto({"id":183457,"src":"Walk away samller001_thumb.jpg","galleries_id":16915,"server_id":1,"link":"photo_183457.html","width":130,"caption":"Walking away","height":196});
															thumbnails[183451] = clik.newPhoto({"id":183451,"src":"Old Lady001_thumb.jpg","galleries_id":16915,"server_id":1,"link":"photo_183451.html","width":130,"caption":"Elderly Corsican Lady","height":203});
															thumbnails[183455] = clik.newPhoto({"id":183455,"src":"Portuguese Ladies001_thumb.jpg","galleries_id":16915,"server_id":1,"link":"photo_183455.html","width":130,"caption":"Portuguese Women of War","height":101});
															thumbnails[3260488] = clik.newPhoto({"id":3260488,"src":"Paxos 229 15  by 1001_thumb.jpg","galleries_id":16473,"server_id":1,"link":"photo_3260488.html","width":130,"caption":"Reflection in Pool","height":87});
															thumbnails[6143622] = clik.newPhoto({"id":6143622,"src":"Wreck_3_of_a_Kind005_thumb.jpg","galleries_id":344005,"server_id":1,"link":"photo_6143622.html","width":130,"caption":"","height":92});
															thumbnails[6143630] = clik.newPhoto({"id":6143630,"src":"IMG_5128002_thumb.jpg","galleries_id":344005,"server_id":1,"link":"photo_6143630.html","width":87,"caption":"","height":130});
															thumbnails[6143640] = clik.newPhoto({"id":6143640,"src":"IMG_5132003_thumb.jpg","galleries_id":344005,"server_id":1,"link":"photo_6143640.html","width":87,"caption":"","height":130});
															thumbnails[6143643] = clik.newPhoto({"id":6143643,"src":"A_Wreck_thumb.jpg","galleries_id":344005,"server_id":1,"link":"photo_6143643.html","width":87,"caption":"","height":130});
															thumbnails[6143651] = clik.newPhoto({"id":6143651,"src":"IMG_5144004_thumb.jpg","galleries_id":344005,"server_id":1,"link":"photo_6143651.html","width":87,"caption":"","height":130});
															thumbnails[6143742] = clik.newPhoto({"id":6143742,"src":"BBB0010012_thumb.jpg","galleries_id":344005,"server_id":1,"link":"photo_6143742.html","width":87,"caption":"","height":130});
															thumbnails[8456381] = clik.newPhoto({"id":8456381,"src":"IMG_4402004_thumb.jpg","galleries_id":447487,"server_id":1,"link":"photo_8456381.html","width":130,"caption":"","height":87});
															thumbnails[8490778] = clik.newPhoto({"id":8490778,"src":"Nuts__Bolts_for_Mavina_thumb.jpg","galleries_id":16473,"server_id":1,"link":"photo_8490778.html","width":87,"caption":"Nuts & Bolts","height":130});
															thumbnails[345194] = clik.newPhoto({"id":345194,"src":"IMG_0173001_thumb.jpg","galleries_id":16473,"server_id":1,"link":"photo_345194.html","width":130,"caption":"Gerbera","height":87});
															thumbnails[204456] = clik.newPhoto({"id":204456,"src":"Venice March 2006 137001_thumb.jpg","galleries_id":18623,"server_id":1,"link":"photo_204456.html","width":130,"caption":"Guess who","height":95});
															thumbnails[190253] = clik.newPhoto({"id":190253,"src":"Paxos JT slide14001_thumb.jpg","galleries_id":16414,"server_id":1,"link":"photo_190253.html","width":130,"caption":"Missed the Boat","height":195});
															thumbnails[178643] = clik.newPhoto({"id":178643,"src":"Pear & Slices001_thumb.jpg","galleries_id":16431,"server_id":1,"link":"photo_178643.html","width":130,"caption":"A fine pair","height":189});
															thumbnails[179191] = clik.newPhoto({"id":179191,"src":"Paxos 240001_thumb.jpg","galleries_id":16473,"server_id":1,"link":"photo_179191.html","width":130,"caption":"Reflection","height":87});
															thumbnails[184908] = clik.newPhoto({"id":184908,"src":"Single soldier with the Colour001_thumb.jpg","galleries_id":17031,"server_id":1,"link":"photo_184908.html","width":130,"caption":"The Colour","height":312});
															thumbnails[7003071] = clik.newPhoto({"id":7003071,"src":"Balls__Filter001_thumb.jpg","galleries_id":379423,"server_id":1,"link":"photo_7003071.html","width":130,"caption":"Splodge","height":87});
															thumbnails[204491] = clik.newPhoto({"id":204491,"src":"Venice March 2006 064001_thumb.jpg","galleries_id":18623,"server_id":1,"link":"photo_204491.html","width":130,"caption":"A Traffic Jam","height":87});
															thumbnails[180749] = clik.newPhoto({"id":180749,"src":"Flowers Dahlia_thumb.jpg","galleries_id":16473,"server_id":1,"link":"photo_180749.html","width":130,"caption":"Dahlia","height":87});
															thumbnails[184860] = clik.newPhoto({"id":184860,"src":"Hops001_thumb.jpg","galleries_id":16431,"server_id":1,"link":"photo_184860.html","width":130,"caption":"Hops","height":89});
															thumbnails[184912] = clik.newPhoto({"id":184912,"src":"Gloved Hand on Saddle001_thumb.jpg","galleries_id":17031,"server_id":1,"link":"photo_184912.html","width":130,"caption":"Gloves & Sword","height":200});
															thumbnails[7003079] = clik.newPhoto({"id":7003079,"src":"Waves003_thumb.jpg","galleries_id":379423,"server_id":1,"link":"photo_7003079.html","width":130,"caption":"Waves","height":87});
															thumbnails[204462] = clik.newPhoto({"id":204462,"src":"Venice March 2006 037001_thumb.jpg","galleries_id":18623,"server_id":1,"link":"photo_204462.html","width":130,"caption":"Bridge over untroubled water","height":87});
															thumbnails[204492] = clik.newPhoto({"id":204492,"src":"Venice March 2006 1200010011_thumb.jpg","galleries_id":18623,"server_id":1,"link":"photo_204492.html","width":130,"caption":"Gondola Taxi Rank","height":87});
															thumbnails[190226] = clik.newPhoto({"id":190226,"src":"Paxos 084001_thumb.jpg","galleries_id":16414,"server_id":1,"link":"photo_190226.html","width":130,"caption":"A Greek fishing boat","height":195});
															thumbnails[178641] = clik.newPhoto({"id":178641,"src":"Apple Slices001_thumb.jpg","galleries_id":16431,"server_id":1,"link":"photo_178641.html","width":130,"caption":"Apple Slices","height":85});
															thumbnails[179192] = clik.newPhoto({"id":179192,"src":"Paxos 241001_thumb.jpg","galleries_id":16473,"server_id":1,"link":"photo_179192.html","width":130,"caption":"Reflection","height":87});
															thumbnails[184917] = clik.newPhoto({"id":184917,"src":"Bowler Hat brigade small001_thumb.jpg","galleries_id":17031,"server_id":1,"link":"photo_184917.html","width":130,"caption":"The Bowler Brigade","height":203});
															thumbnails[7003786] = clik.newPhoto({"id":7003786,"src":"Ziggy004_thumb.jpg","galleries_id":379423,"server_id":1,"link":"photo_7003786.html","width":130,"caption":"Ziggy","height":92});
															thumbnails[204467] = clik.newPhoto({"id":204467,"src":"Venice March 2006 043001_thumb.jpg","galleries_id":18623,"server_id":1,"link":"photo_204467.html","width":130,"caption":"Now where am I?","height":87});
															thumbnails[190544] = clik.newPhoto({"id":190544,"src":"Fenders001_thumb.jpg","galleries_id":16414,"server_id":1,"link":"photo_190544.html","width":130,"caption":"Fenders in the evening light","height":195});
															thumbnails[184852] = clik.newPhoto({"id":184852,"src":"Limes001_thumb.jpg","galleries_id":16431,"server_id":1,"link":"photo_184852.html","width":130,"caption":"Limes","height":85});
															thumbnails[184921] = clik.newPhoto({"id":184921,"src":"Cavalry & dust001001_thumb.jpg","galleries_id":17031,"server_id":1,"link":"photo_184921.html","width":130,"caption":"A full gallop","height":63});
															thumbnails[178619] = clik.newPhoto({"id":178619,"src":"Feet in Pool001001_thumb.jpg","galleries_id":16473,"server_id":1,"link":"photo_178619.html","width":130,"caption":"It's in here somewhere","height":80});
															thumbnails[7003948] = clik.newPhoto({"id":7003948,"src":"Pegs_1_waved_2_small001_thumb.jpg","galleries_id":379423,"server_id":1,"link":"photo_7003948.html","width":130,"caption":"Pegs","height":87});
															thumbnails[204471] = clik.newPhoto({"id":204471,"src":"Venice March 2006 095001_thumb.jpg","galleries_id":18623,"server_id":1,"link":"photo_204471.html","width":130,"caption":"Doges Palace and beyond","height":87});
															thumbnails[184878] = clik.newPhoto({"id":184878,"src":"Melon001_thumb.jpg","galleries_id":16431,"server_id":1,"link":"photo_184878.html","width":130,"caption":"Melon chunks","height":85});
															thumbnails[184889] = clik.newPhoto({"id":184889,"src":"Bikini top & Sandals001001_thumb.jpg","galleries_id":16414,"server_id":1,"link":"photo_184889.html","width":130,"caption":"Bikini & Sandals","height":200});
															thumbnails[184930] = clik.newPhoto({"id":184930,"src":"Gun Carriage001_thumb.jpg","galleries_id":17031,"server_id":1,"link":"photo_184930.html","width":130,"caption":"Gun carriages","height":87});
															thumbnails[7003958] = clik.newPhoto({"id":7003958,"src":"Aspen_impressionism_abstracted002_thumb.jpg","galleries_id":379423,"server_id":1,"link":"photo_7003958.html","width":87,"caption":"Aspen 1","height":130});
															thumbnails[998212] = clik.newPhoto({"id":998212,"src":"IMG_3722_thumb.jpg","galleries_id":16473,"server_id":1,"link":"photo_998212.html","width":130,"caption":"The staircase at Domaine Gayda","height":87});
															thumbnails[204460] = clik.newPhoto({"id":204460,"src":"Venice March 2006 021001_thumb.jpg","galleries_id":18623,"server_id":1,"link":"photo_204460.html","width":130,"caption":"Sea Sick?","height":195});
															thumbnails[204476] = clik.newPhoto({"id":204476,"src":"Venice March 2006 101001_thumb.jpg","galleries_id":18623,"server_id":1,"link":"photo_204476.html","width":130,"caption":"Marking time in St Marks","height":195});
															thumbnails[184879] = clik.newPhoto({"id":184879,"src":"Kiwi0011_thumb.jpg","galleries_id":16431,"server_id":1,"link":"photo_184879.html","width":130,"caption":"Kiwi ","height":85});
															thumbnails[184934] = clik.newPhoto({"id":184934,"src":"Cavalry close up001_thumb.jpg","galleries_id":17031,"server_id":1,"link":"photo_184934.html","width":130,"caption":"The Queens Men","height":99});
															thumbnails[190555] = clik.newPhoto({"id":190555,"src":"Stones on Beach cutdown001_thumb.jpg","galleries_id":16473,"server_id":1,"link":"photo_190555.html","width":130,"caption":"Pebbles on Beach ","height":88});
															thumbnails[178516] = clik.newPhoto({"id":178516,"src":"Sand dunes final001_thumb.jpg","galleries_id":16414,"server_id":1,"link":"photo_178516.html","width":130,"caption":"Beach walkway","height":198});
															thumbnails[7003961] = clik.newPhoto({"id":7003961,"src":"Aspen_impressionism_B003001_thumb.jpg","galleries_id":379423,"server_id":1,"link":"photo_7003961.html","width":87,"caption":"Aspen 2","height":130});
															thumbnails[204484] = clik.newPhoto({"id":204484,"src":"Venice March 2006 138001_thumb.jpg","galleries_id":18623,"server_id":1,"link":"photo_204484.html","width":130,"caption":"If looks could kill","height":195});
															thumbnails[190616] = clik.newPhoto({"id":190616,"src":"Boat in the Mist001_thumb.jpg","galleries_id":16414,"server_id":1,"link":"photo_190616.html","width":130,"caption":"Boat in the Mist","height":163});
															thumbnails[190624] = clik.newPhoto({"id":190624,"src":"Cow Parsley by Sea001_thumb.jpg","galleries_id":16414,"server_id":1,"link":"photo_190624.html","width":130,"caption":"Cow Parsley on Sea","height":195});
															thumbnails[184845] = clik.newPhoto({"id":184845,"src":"Fruit Drop Low Quality 002_thumb.jpg","galleries_id":16431,"server_id":1,"link":"photo_184845.html","width":130,"caption":"Fruit Drop","height":87});
															thumbnails[7003973] = clik.newPhoto({"id":7003973,"src":"Aspen_impressionism_D001_thumb.jpg","galleries_id":379423,"server_id":1,"link":"photo_7003973.html","width":87,"caption":"Aspen 4","height":130});
															thumbnails[184836] = clik.newPhoto({"id":184836,"src":"Carrots 10 small002_thumb.jpg","galleries_id":16431,"server_id":1,"link":"photo_184836.html","width":130,"caption":"Carrots on Ice","height":87});
															thumbnails[178513] = clik.newPhoto({"id":178513,"src":"Gull at an Angle at 72 dpi001001_thumb.jpg","galleries_id":16473,"server_id":1,"link":"photo_178513.html","width":130,"caption":"Gull","height":89});
															thumbnails[7003963] = clik.newPhoto({"id":7003963,"src":"Aspen_impressionismC001_thumb.jpg","galleries_id":379423,"server_id":1,"link":"photo_7003963.html","width":87,"caption":"Aspen 3","height":130});
															thumbnails[184840] = clik.newPhoto({"id":184840,"src":"Tomatoes001001_thumb.jpg","galleries_id":16431,"server_id":1,"link":"photo_184840.html","width":130,"caption":"Too good to eat tomatoes","height":87});
															thumbnails[7003837] = clik.newPhoto({"id":7003837,"src":"samll_Whirl001_thumb.jpg","galleries_id":379423,"server_id":1,"link":"photo_7003837.html","width":130,"caption":"Whirl","height":87});
															thumbnails[183435] = clik.newPhoto({"id":183435,"src":"Evening Light in Cuitadella small_thumb.jpg","galleries_id":16414,"server_id":1,"link":"photo_183435.html","width":130,"caption":"Evening Light","height":87});
															thumbnails[3260489] = clik.newPhoto({"id":3260489,"src":"Solareyes plus canvas02_thumb.jpg","galleries_id":379423,"server_id":1,"link":"photo_3260489.html","width":130,"caption":"Tess ","height":87});
															thumbnails[179185] = clik.newPhoto({"id":179185,"src":"Marbles004001_thumb.jpg","galleries_id":379423,"server_id":1,"link":"photo_179185.html","width":130,"caption":"Marbles","height":87});
															thumbnails[190618] = clik.newPhoto({"id":190618,"src":"Cart001_thumb.jpg","galleries_id":16414,"server_id":1,"link":"photo_190618.html","width":130,"caption":"In the Cart","height":88});
															thumbnails[193287] = clik.newPhoto({"id":193287,"src":"Ironbridge metalwork001_thumb.jpg","galleries_id":16473,"server_id":1,"link":"photo_193287.html","width":130,"caption":"Iron Bridge @ Ironbridge","height":72});
															thumbnails[179188] = clik.newPhoto({"id":179188,"src":"Paxos 181001_thumb.jpg","galleries_id":16473,"server_id":1,"link":"photo_179188.html","width":130,"caption":"Hammock Rope","height":195});
															thumbnails[179190] = clik.newPhoto({"id":179190,"src":"Paxos 073001_thumb.jpg","galleries_id":16473,"server_id":1,"link":"photo_179190.html","width":130,"caption":"Reflection","height":195});
															thumbnails[193291] = clik.newPhoto({"id":193291,"src":"Paxos 113001_thumb.jpg","galleries_id":16473,"server_id":1,"link":"photo_193291.html","width":130,"caption":"zzzzzzzzzzzzzz","height":195});
															thumbnails[193293] = clik.newPhoto({"id":193293,"src":"Red Sunset001_thumb.jpg","galleries_id":16473,"server_id":1,"link":"photo_193293.html","width":130,"caption":"Red Sunset","height":84});
															thumbnails[193282] = clik.newPhoto({"id":193282,"src":"Boat Skeleton001_thumb.jpg","galleries_id":16473,"server_id":1,"link":"photo_193282.html","width":130,"caption":"Boat Skeleton","height":51});
															thumbnails[6978923] = clik.newPhoto({"id":6978923,"src":"IMG_2057050_thumb.jpg","galleries_id":378246,"server_id":1,"link":"photo_6978923.html","width":130,"caption":"King of the Mountain","height":87});
															thumbnails[6978896] = clik.newPhoto({"id":6978896,"src":"Aspen_impressionism001_thumb.jpg","galleries_id":378266,"server_id":1,"link":"photo_6978896.html","width":87,"caption":"Aspen impressions","height":130});
															thumbnails[6978360] = clik.newPhoto({"id":6978360,"src":"IMG_1526012_thumb.jpg","galleries_id":378246,"server_id":1,"link":"photo_6978360.html","width":130,"caption":"So cute","height":87});
															thumbnails[6978365] = clik.newPhoto({"id":6978365,"src":"IMG_1660017_thumb.jpg","galleries_id":378246,"server_id":1,"link":"photo_6978365.html","width":130,"caption":"Synchronised scratching","height":87});
															thumbnails[6978375] = clik.newPhoto({"id":6978375,"src":"IMG_1713022_thumb.jpg","galleries_id":378246,"server_id":1,"link":"photo_6978375.html","width":130,"caption":"I love you","height":87});
															thumbnails[6978378] = clik.newPhoto({"id":6978378,"src":"IMG_1762027_thumb.jpg","galleries_id":378246,"server_id":1,"link":"photo_6978378.html","width":87,"caption":"bold & vocal ","height":130});
															thumbnails[6978393] = clik.newPhoto({"id":6978393,"src":"IMG_1901035_thumb.jpg","galleries_id":378246,"server_id":1,"link":"photo_6978393.html","width":130,"caption":"I am going to charge","height":87});
															thumbnails[6978904] = clik.newPhoto({"id":6978904,"src":"Deadwood003_thumb.jpg","galleries_id":378266,"server_id":1,"link":"photo_6978904.html","width":130,"caption":"Deadwood","height":130});
															thumbnails[6978906] = clik.newPhoto({"id":6978906,"src":"Rocky_Road004_thumb.jpg","galleries_id":378266,"server_id":1,"link":"photo_6978906.html","width":130,"caption":"Rocky Road","height":87});
															thumbnails[8802968] = clik.newPhoto({"id":8802968,"src":"Stampede_lead_horse__dog_thumb.jpg","galleries_id":378246,"server_id":1,"link":"photo_8802968.html","width":130,"caption":"Follow me","height":87});
															thumbnails[8802978] = clik.newPhoto({"id":8802978,"src":"Stampede_thumb.jpg","galleries_id":378246,"server_id":1,"link":"photo_8802978.html","width":130,"caption":"Stampede","height":87});
															thumbnails[8802982] = clik.newPhoto({"id":8802982,"src":"IMG_2397_2_STOPS_OVERAnd2more_tonemapped001_thumb.jpg","galleries_id":378246,"server_id":1,"link":"photo_8802982.html","width":130,"caption":"Free at last","height":87});
															thumbnails[7016422] = clik.newPhoto({"id":7016422,"src":"IMG_7723037_thumb.jpg","galleries_id":378249,"server_id":1,"link":"photo_7016422.html","width":130,"caption":"Grand Prismatic","height":87});
															thumbnails[7016433] = clik.newPhoto({"id":7016433,"src":"IMG_7730085_thumb.jpg","galleries_id":378249,"server_id":1,"link":"photo_7016433.html","width":130,"caption":"Grand Prismatic ","height":87});
															thumbnails[7016606] = clik.newPhoto({"id":7016606,"src":"IMG_7780_cropped001_thumb.jpg","galleries_id":378249,"server_id":1,"link":"photo_7016606.html","width":130,"caption":"Canary Springs Mammoth","height":69});
															thumbnails[7016609] = clik.newPhoto({"id":7016609,"src":"IMG_7778002_thumb.jpg","galleries_id":378249,"server_id":1,"link":"photo_7016609.html","width":130,"caption":"Canary Springs Mammoth","height":87});
															thumbnails[7016425] = clik.newPhoto({"id":7016425,"src":"IMG_2091024_thumb.jpg","galleries_id":378249,"server_id":1,"link":"photo_7016425.html","width":130,"caption":"Canary Springs Mammoth","height":87});
															thumbnails[7016423] = clik.newPhoto({"id":7016423,"src":"IMG_1569015_thumb.jpg","galleries_id":378249,"server_id":1,"link":"photo_7016423.html","width":87,"caption":"Old Faithful","height":130});
															thumbnails[7016464] = clik.newPhoto({"id":7016464,"src":"IMG_7659083_thumb.jpg","galleries_id":378249,"server_id":1,"link":"photo_7016464.html","width":130,"caption":"","height":87});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[379423] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Colour & Abstraction","link":"gallery_379423.html","maxRecords":0.0,"photoIDs":[7003071.0,7003079.0,7003786.0,7003948.0,7003958.0,7003961.0,7003973.0,7003963.0,7003837.0,3260489.0,179185.0],"skipIndex":0,"section_code":"gallery","featured_images":"7003071,3260489","id":379423,"singleSection":false});				  						galleries[447487] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Outer Hebrides May 2011","link":"gallery_447487.html","maxRecords":0.0,"photoIDs":[8456373.0,8456377.0,8456362.0,8456381.0],"skipIndex":0,"section_code":"gallery","featured_images":8456377.0,"id":447487,"singleSection":false});				  						galleries[344005] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"The Wreck","link":"gallery_344005.html","maxRecords":0.0,"photoIDs":[6143622.0,6143630.0,6143640.0,6143643.0,6143651.0,6143742.0],"skipIndex":0,"section_code":"gallery","featured_images":"6143742,6143651,6143643,6143640,6143630,6143622","id":344005,"singleSection":false});				  						galleries[378266] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Yellowstone abstracts","link":"section450138_378266.html","maxRecords":0.0,"photoIDs":[6978896.0,6978904.0,6978906.0],"skipIndex":0,"section_code":"section450138","featured_images":"6978906,6978904,6978896","id":378266,"singleSection":false});				  						galleries[378249] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Yellowstone Geysers","link":"section450138_378249.html","maxRecords":0.0,"photoIDs":[7016422.0,7016433.0,7016606.0,7016609.0,7016425.0,7016423.0,7016464.0],"skipIndex":0,"section_code":"section450138","featured_images":7016433.0,"id":378249,"singleSection":false});				  						galleries[378246] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Yellowstone Wildlife","link":"section450138_378246.html","maxRecords":0.0,"photoIDs":[6978923.0,6978360.0,6978365.0,6978375.0,6978378.0,6978393.0,8802968.0,8802978.0,8802982.0],"skipIndex":0,"section_code":"section450138","featured_images":"8802982,8802978,8802968","id":378246,"singleSection":false});				  						galleries[16473] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Abstract","link":"gallery_16473.html","maxRecords":0.0,"photoIDs":[3260488.0,8490778.0,345194.0,179191.0,180749.0,179192.0,178619.0,998212.0,190555.0,178513.0,193287.0,179188.0,179190.0,193291.0,193293.0,193282.0],"skipIndex":0,"section_code":"gallery","featured_images":"8490778,3260488,345194","id":16473,"singleSection":false});				  						galleries[276106] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Froxfield 4 Art","link":"section540179.html","maxRecords":0.0,"photoIDs":[8490401.0,8490336.0,8490394.0],"skipIndex":0,"section_code":"section540179","featured_images":"8490401,8490394,8490336","id":276106,"singleSection":true});				  						galleries[17031] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Trooping the Colour","link":"gallery_17031.html","maxRecords":0.0,"photoIDs":[184908.0,184912.0,184917.0,184921.0,184930.0,184934.0],"skipIndex":0,"section_code":"gallery","featured_images":"184934,184930,184921,184917,184912,184908","id":17031,"singleSection":false});				  						galleries[16915] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"People","link":"gallery_16915.html","maxRecords":0.0,"photoIDs":[183432.0,183457.0,183451.0,183455.0],"skipIndex":0,"section_code":"gallery","featured_images":183457.0,"id":16915,"singleSection":false});				  						galleries[18623] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Venice","link":"gallery_18623.html","maxRecords":0.0,"photoIDs":[204456.0,204491.0,204462.0,204492.0,204467.0,204471.0,204460.0,204476.0,204484.0],"skipIndex":0,"section_code":"gallery","featured_images":"204492,204491,204484,204476,204471,204467,204462,204460,204456","id":18623,"singleSection":false});				  						galleries[16431] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Fruit & Veg","link":"gallery_16431.html","maxRecords":0.0,"photoIDs":[178643.0,184860.0,178641.0,184852.0,184878.0,184879.0,184845.0,184836.0,184840.0],"skipIndex":0,"section_code":"gallery","featured_images":"184879,184878,184860,184852,184845,184840,184836,178643,178641","id":16431,"singleSection":false});				  						galleries[16414] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Savilles Travels","link":"gallery_16414.html","maxRecords":0.0,"photoIDs":[270915.0,190253.0,190226.0,190544.0,184889.0,178516.0,190616.0,190624.0,183435.0,190618.0],"skipIndex":0,"section_code":"gallery","featured_images":"270915,190624,190618,190616,190544,190253,190226,184889,183435,178516","id":16414,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8802982,8802978,8802968,8490778,8456381,8456377,8456373,8456362,6978360,6143742,6143651,6143643,6143640,6143630,6143622,3260488,270915,183457,183432,8490336,7016422,7003071,345194,204456,190253,184908,179191,178643,8490394,7016433,7003079,204491,184912,184860,7003786,204492,204462,190226,179192,178641,7003948,190544,184921,184852,178619,7016606,204471,184930,184889,184878,7016609,7003961,184934,184879,178516,7016425,7003973,204484,190624,184845,7003963,184836,178513,7003837,184840,3260489,190618,179185,7016423,193287,7016464,179188,179190,193293,193291';
imageSets[2] = '8802982,8802978,8802968,8490778,8490401,8456377,6143742,6143651,6143643,6143640,6143630,6143622,3260488,183457,8490336,7003071,345194,8490394,7016433,3260489';
imageSets[3] = '8802982,8802978,8802968,8490778,8490401,8490394,8490336,8456381,8456377,8456373,8456362,7016609,7016606,7016464,7016433,7016425,7016423,7016422,7003973,7003963,7003961,7003958,7003948,7003837,7003786,7003079,7003071,6978923,6978906,6978904,6978896,6978393,6978378,6978375,6978365,6978360,6143742,6143651,6143643,6143640,6143630,6143622,3260489,3260488,998212,345194,270915,204492,204491,204484';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/lorrainesaville/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/lorrainesaville/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/lorrainesaville/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/lorrainesaville/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/lorrainesaville/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/lorrainesaville/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/lorrainesaville/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/lorrainesaville/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/lorrainesaville/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/lorrainesaville/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/lorrainesaville/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/lorrainesaville/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/lorrainesaville/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/lorrainesaville/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/lorrainesaville/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/lorrainesaville/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/lorrainesaville/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/lorrainesaville/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/lorrainesaville/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/lorrainesaville/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/lorrainesaville/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/lorrainesaville/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/lorrainesaville/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/lorrainesaville/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/lorrainesaville/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 += 'section540179.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 && 'section540179' != '') {
					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 = 'Works by Lorraine: ' + 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 !== '' || 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({					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;
	}
}

			

