window.thumbnails = {};
															thumbnails[9073640] = clik.newPhoto({"id":9073640,"src":"No.1_-_21_August_2011_AFABFA91-24E8-5EC4-4FE86F4DC4F9611D_thumb.jpg","galleries_id":471851,"server_id":1,"link":"photo_9073640.html","width":130,"caption":"No.1 - 21 August 2011","height":130});
															thumbnails[9073703] = clik.newPhoto({"id":9073703,"src":"No.12_-_01_September_2011_B02E4907-24E8-5EC4-4F2228D6EF3F0955_thumb.jpg","galleries_id":473199,"server_id":1,"link":"photo_9073703.html","width":130,"caption":"No.12 - 01 September 2011","height":130});
															thumbnails[9073642] = clik.newPhoto({"id":9073642,"src":"No.2_-_22_August_2011_AFAD1C89-24E8-5EC4-4FEE291A8C3BD967_thumb.jpg","galleries_id":471851,"server_id":1,"link":"photo_9073642.html","width":130,"caption":"No.2 - 22 August 2011","height":130});
															thumbnails[9073705] = clik.newPhoto({"id":9073705,"src":"No.13_-_02_September_2011_B02F379B-24E8-5EC4-4FBD15408AD7A391_thumb.jpg","galleries_id":473199,"server_id":1,"link":"photo_9073705.html","width":130,"caption":"No.13 - 02 September 2011","height":130});
															thumbnails[9073643] = clik.newPhoto({"id":9073643,"src":"No.3_-_23_August_2011_AFAE294E-24E8-5EC4-4F375D36FAD2E0F9_thumb.jpg","galleries_id":471851,"server_id":1,"link":"photo_9073643.html","width":130,"caption":"No.3 - 23 August 2011","height":130});
															thumbnails[9073706] = clik.newPhoto({"id":9073706,"src":"No.14_-_03_September_2011_B030497A-24E8-5EC4-4FA4B97A465B3B29_thumb.jpg","galleries_id":473199,"server_id":1,"link":"photo_9073706.html","width":130,"caption":"No.14 - 03 September 2011","height":130});
															thumbnails[9073644] = clik.newPhoto({"id":9073644,"src":"No.4_-_24_August_2011_AFAF2FF8-24E8-5EC4-4FA9DD4432F0D178_thumb.jpg","galleries_id":471851,"server_id":1,"link":"photo_9073644.html","width":130,"caption":"No.4 - 24 August 2011","height":130});
															thumbnails[9073707] = clik.newPhoto({"id":9073707,"src":"No.15_-_04_September_2011_B0314D02-24E8-5EC4-4FC9D22420BFA779_thumb.jpg","galleries_id":473199,"server_id":1,"link":"photo_9073707.html","width":130,"caption":"No.15 - 04 September 2011","height":130});
															thumbnails[9073645] = clik.newPhoto({"id":9073645,"src":"No.5_-_25_August_2011_AFAFECF5-24E8-5EC4-4FA349078A2A8C25_thumb.jpg","galleries_id":471851,"server_id":1,"link":"photo_9073645.html","width":130,"caption":"No.5 - 25 August 2011","height":130});
															thumbnails[9073709] = clik.newPhoto({"id":9073709,"src":"No.16_-_05_September_2011_B03231CC-24E8-5EC4-4FC31C46B6001503_thumb.jpg","galleries_id":473199,"server_id":1,"link":"photo_9073709.html","width":130,"caption":"No.16 - 05 September 2011","height":130});
															thumbnails[9073646] = clik.newPhoto({"id":9073646,"src":"No.6_-_26_August_2011_AFB08CBC-24E8-5EC4-4F450A5A45B0AD3A_thumb.jpg","galleries_id":471851,"server_id":1,"link":"photo_9073646.html","width":130,"caption":"No.6 - 26 August 2011","height":130});
															thumbnails[9073710] = clik.newPhoto({"id":9073710,"src":"No.17_-_06_September_2011_B032D7CB-24E8-5EC4-4FB990850ED15C49_thumb.jpg","galleries_id":473199,"server_id":1,"link":"photo_9073710.html","width":130,"caption":"No.17 - 06 September 2011","height":130});
															thumbnails[9073647] = clik.newPhoto({"id":9073647,"src":"No.7_-_27_August_2011_AFB13FB4-24E8-5EC4-4FDB2B022B0B0A6A_thumb.jpg","galleries_id":471851,"server_id":1,"link":"photo_9073647.html","width":130,"caption":"No.7 - 27 August 2011","height":130});
															thumbnails[9073712] = clik.newPhoto({"id":9073712,"src":"No.18_-_07_September_2011_B033DBB2-24E8-5EC4-4FC475AD40BD28B3_thumb.jpg","galleries_id":473199,"server_id":1,"link":"photo_9073712.html","width":130,"caption":"No.18 - 07 September 2011","height":130});
															thumbnails[9073648] = clik.newPhoto({"id":9073648,"src":"No.8_-_28_August_2011_AFB2239D-24E8-5EC4-4F807EE5314B2BD5_thumb.jpg","galleries_id":471851,"server_id":1,"link":"photo_9073648.html","width":130,"caption":"No.8 - 28 August 2011","height":130});
															thumbnails[9073714] = clik.newPhoto({"id":9073714,"src":"No.19_-_08_September_2011_B034CEAF-24E8-5EC4-4FB99C3BB28C1867_thumb.jpg","galleries_id":473199,"server_id":1,"link":"photo_9073714.html","width":130,"caption":"No.19 - 08 September 2011","height":130});
															thumbnails[9073649] = clik.newPhoto({"id":9073649,"src":"No.9_-_29_August_2011_AFB34DF8-24E8-5EC4-4FFD5C60A86AD2F1_thumb.jpg","galleries_id":471851,"server_id":1,"link":"photo_9073649.html","width":130,"caption":"No.9 - 29 August 2011","height":130});
															thumbnails[9073715] = clik.newPhoto({"id":9073715,"src":"No.20_-_09_September_2011_B035C135-24E8-5EC4-4FFE140535E3C1DF_thumb.jpg","galleries_id":473199,"server_id":1,"link":"photo_9073715.html","width":130,"caption":"No.20 - 09 September 2011","height":130});
															thumbnails[9073650] = clik.newPhoto({"id":9073650,"src":"No.10_-_30_August_2011_AFB459A1-24E8-5EC4-4F9E305171963070_thumb.jpg","galleries_id":471851,"server_id":1,"link":"photo_9073650.html","width":130,"caption":"No.10 - 30 August 2011","height":130});
															thumbnails[9073716] = clik.newPhoto({"id":9073716,"src":"No.21_-_10_September_2011_B036B841-24E8-5EC4-4FC846273D0C187F_thumb.jpg","galleries_id":473199,"server_id":1,"link":"photo_9073716.html","width":130,"caption":"No.21 - 10 September 2011","height":130});
															thumbnails[9073653] = clik.newPhoto({"id":9073653,"src":"No.11_-_31_August_2011_AFB57F6C-24E8-5EC4-4F14A1C3131B3777_thumb.jpg","galleries_id":471851,"server_id":1,"link":"photo_9073653.html","width":130,"caption":"No.11 - 31 August 2011","height":129});
															thumbnails[9073717] = clik.newPhoto({"id":9073717,"src":"No.22_-_11_September_2011_B037C568-24E8-5EC4-4F26FEAB2018166F_thumb.jpg","galleries_id":473199,"server_id":1,"link":"photo_9073717.html","width":130,"caption":"No.22 - 11 September 2011","height":129});
															thumbnails[9073719] = clik.newPhoto({"id":9073719,"src":"No.23_-_12_September_2011_B038A970-24E8-5EC4-4FD9C578B1539E9B_thumb.jpg","galleries_id":473199,"server_id":1,"link":"photo_9073719.html","width":130,"caption":"No.23 - 12 September 2011","height":130});
															thumbnails[9073720] = clik.newPhoto({"id":9073720,"src":"No.24_-_13_September_2011_B039E585-24E8-5EC4-4FD1F8168D06084A_thumb.jpg","galleries_id":473199,"server_id":1,"link":"photo_9073720.html","width":130,"caption":"No.24 - 13 September 2011","height":130});
															thumbnails[9073721] = clik.newPhoto({"id":9073721,"src":"No.25_-_14_September_2011_B03B12DF-24E8-5EC4-4F43A10E6D152B6E_thumb.jpg","galleries_id":473199,"server_id":1,"link":"photo_9073721.html","width":130,"caption":"No.25 - 14 September 2011","height":130});
															thumbnails[9073723] = clik.newPhoto({"id":9073723,"src":"No.26_-_15_September_2011_B03C2CB3-24E8-5EC4-4F53B48919C7E0E7_thumb.jpg","galleries_id":473199,"server_id":1,"link":"photo_9073723.html","width":130,"caption":"No.26 - 15 September 2011","height":130});
															thumbnails[9073725] = clik.newPhoto({"id":9073725,"src":"No.27_-_16_September_2011_B03D4B0C-24E8-5EC4-4FC97B85A562E718_thumb.jpg","galleries_id":473199,"server_id":1,"link":"photo_9073725.html","width":130,"caption":"No.27 - 16 September 2011","height":130});
															thumbnails[9073729] = clik.newPhoto({"id":9073729,"src":"No.28_-_17_September_2011_B03E7442-24E8-5EC4-4F2439777CCBD5EE_thumb.jpg","galleries_id":473199,"server_id":1,"link":"photo_9073729.html","width":130,"caption":"No.28 - 17 September 2011","height":130});
															thumbnails[9073730] = clik.newPhoto({"id":9073730,"src":"No.29_-_18_September_2011_B03F2C45-24E8-5EC4-4F37560FAF637911_thumb.jpg","galleries_id":473199,"server_id":1,"link":"photo_9073730.html","width":130,"caption":"No.29 - 18 September 2011","height":130});
															thumbnails[9073731] = clik.newPhoto({"id":9073731,"src":"No.30_-_19_September_2011_B0401F44-24E8-5EC4-4F63093F5298592A_thumb.jpg","galleries_id":473199,"server_id":1,"link":"photo_9073731.html","width":130,"caption":"No.30 - 19 September 2011","height":130});
															thumbnails[9073732] = clik.newPhoto({"id":9073732,"src":"No.31_-_20_September_2011_B040FF5D-24E8-5EC4-4FD22C3C21BC05E3_thumb.jpg","galleries_id":473199,"server_id":1,"link":"photo_9073732.html","width":130,"caption":"No.31 - 20 September 2011","height":130});
															thumbnails[9073733] = clik.newPhoto({"id":9073733,"src":"No.32_-_21_September_2011_B0418569-24E8-5EC4-4F04119863B57501_thumb.jpg","galleries_id":473199,"server_id":1,"link":"photo_9073733.html","width":130,"caption":"No.32 - 21 September 2011","height":130});
															thumbnails[9073734] = clik.newPhoto({"id":9073734,"src":"No.33_-_22_September_2011_B0427FAA-24E8-5EC4-4F0CCF70351381C4_thumb.jpg","galleries_id":473199,"server_id":1,"link":"photo_9073734.html","width":130,"caption":"No.33 - 22 September 2011","height":130});
															thumbnails[9073735] = clik.newPhoto({"id":9073735,"src":"No.34_-_23_September_2011_B0437C5F-24E8-5EC4-4FB9D4BFF3D26822_thumb.jpg","galleries_id":473199,"server_id":1,"link":"photo_9073735.html","width":130,"caption":"No.34 - 23 September 2011","height":130});
															thumbnails[9073736] = clik.newPhoto({"id":9073736,"src":"No.35_-_24_September_2011_B0449515-24E8-5EC4-4FCFE70DCC5373B0_thumb.jpg","galleries_id":473199,"server_id":1,"link":"photo_9073736.html","width":130,"caption":"No.35 - 24 September 2011","height":130});
															thumbnails[9073737] = clik.newPhoto({"id":9073737,"src":"No.36_-_25_September_2011_B04565FF-24E8-5EC4-4F41D2999E02CC2C_thumb.jpg","galleries_id":473199,"server_id":1,"link":"photo_9073737.html","width":130,"caption":"No.36 - 25 September 2011","height":130});
															thumbnails[9073739] = clik.newPhoto({"id":9073739,"src":"No.37_-_26_September_2011_B046672A-24E8-5EC4-4FD4F2FB9E314777_thumb.jpg","galleries_id":473199,"server_id":1,"link":"photo_9073739.html","width":130,"caption":"No.37 - 26 September 2011","height":130});
															thumbnails[9073740] = clik.newPhoto({"id":9073740,"src":"No.38_-_27_September_2011_B0477046-24E8-5EC4-4F2D956479FED284_thumb.jpg","galleries_id":473199,"server_id":1,"link":"photo_9073740.html","width":130,"caption":"No.38 - 27 September 2011","height":130});
															thumbnails[9073742] = clik.newPhoto({"id":9073742,"src":"No.39_-_28_September_2011_B0489C5A-24E8-5EC4-4F4D5ECDB6D313DF_thumb.jpg","galleries_id":473199,"server_id":1,"link":"photo_9073742.html","width":130,"caption":"No.39 - 28 September 2011","height":130});
															thumbnails[9073743] = clik.newPhoto({"id":9073743,"src":"No.40_-_29_September_2011_B049FF01-24E8-5EC4-4FD4B6FF9C39BC0A_thumb.jpg","galleries_id":473199,"server_id":1,"link":"photo_9073743.html","width":130,"caption":"No.40 - 29 September 2011","height":130});
															thumbnails[9073744] = clik.newPhoto({"id":9073744,"src":"No.41_-_30_September_2011_B04ADB7F-24E8-5EC4-4F75764BFB0BF8F1_thumb.jpg","galleries_id":473199,"server_id":1,"link":"photo_9073744.html","width":130,"caption":"No.41 - 30 September 2011","height":130});
															thumbnails[6813076] = clik.newPhoto({"id":6813076,"src":"ColourBlind--1_thumb.jpg","galleries_id":99015,"server_id":1,"link":"photo_6813076.html","width":130,"caption":"Colour Blind","height":130});
															thumbnails[6813114] = clik.newPhoto({"id":6813114,"src":"ReqRestoration-1_thumb.jpg","galleries_id":370069,"server_id":1,"link":"photo_6813114.html","width":130,"caption":"","height":130});
															thumbnails[6812376] = clik.newPhoto({"id":6812376,"src":"MAB_-_Open_Road-1_thumb.jpg","galleries_id":370069,"server_id":1,"link":"photo_6812376.html","width":130,"caption":"","height":130});
															thumbnails[1382925] = clik.newPhoto({"id":1382925,"src":"RedAndWhiteGateWeb_thumb.jpg","galleries_id":96281,"server_id":1,"link":"photo_1382925.html","width":130,"caption":"","height":130});
															thumbnails[1739353] = clik.newPhoto({"id":1739353,"src":"Wild_Ones_JPG2-2_thumb.jpg","galleries_id":99015,"server_id":1,"link":"photo_1739353.html","width":130,"caption":"","height":130});
															thumbnails[1739446] = clik.newPhoto({"id":1739446,"src":"StreetBarberTIFF-2_thumb.jpg","galleries_id":116879,"server_id":1,"link":"photo_1739446.html","width":130,"caption":"","height":130});
															thumbnails[1739449] = clik.newPhoto({"id":1739449,"src":"ComingBackFromTheMarket_thumb.jpg","galleries_id":257121,"server_id":1,"link":"photo_1739449.html","width":130,"caption":"","height":130});
															thumbnails[5057651] = clik.newPhoto({"id":5057651,"src":"ThistleTIFF_thumb.jpg","galleries_id":283494,"server_id":1,"link":"photo_5057651.html","width":130,"caption":"","height":130});
															thumbnails[5058310] = clik.newPhoto({"id":5058310,"src":"ReflectionTIFF_thumb.jpg","galleries_id":286191,"server_id":1,"link":"photo_5058310.html","width":130,"caption":"","height":130});
															thumbnails[6811223] = clik.newPhoto({"id":6811223,"src":"PrepareBalloonJPG_thumb.jpg","galleries_id":370069,"server_id":1,"link":"photo_6811223.html","width":130,"caption":"","height":130});
															thumbnails[6811225] = clik.newPhoto({"id":6811225,"src":"SignShop_thumb.jpg","galleries_id":370060,"server_id":1,"link":"photo_6811225.html","width":130,"caption":"","height":130});
															thumbnails[1382856] = clik.newPhoto({"id":1382856,"src":"RestaurantDoorsWeb_thumb.jpg","galleries_id":96281,"server_id":1,"link":"photo_1382856.html","width":130,"caption":"","height":130});
															thumbnails[1739438] = clik.newPhoto({"id":1739438,"src":"MerciMarieTIFF-2_thumb.jpg","galleries_id":116879,"server_id":1,"link":"photo_1739438.html","width":130,"caption":"","height":130});
															thumbnails[4852200] = clik.newPhoto({"id":4852200,"src":"WomanCompetJPG_thumb.jpg","galleries_id":257121,"server_id":1,"link":"photo_4852200.html","width":130,"caption":"","height":130});
															thumbnails[4852203] = clik.newPhoto({"id":4852203,"src":"TableTIFF_thumb.jpg","galleries_id":99015,"server_id":1,"link":"photo_4852203.html","width":130,"caption":"","height":130});
															thumbnails[5058320] = clik.newPhoto({"id":5058320,"src":"HotAirBalloonsTIFF_thumb.jpg","galleries_id":370069,"server_id":1,"link":"photo_5058320.html","width":130,"caption":"","height":130});
															thumbnails[6811160] = clik.newPhoto({"id":6811160,"src":"TulipPistil_thumb.jpg","galleries_id":283494,"server_id":1,"link":"photo_6811160.html","width":130,"caption":"","height":130});
															thumbnails[1382933] = clik.newPhoto({"id":1382933,"src":"BoatWithSharkWeb_thumb_DD5A5A4C-24E8-5EC4-4F9456B970A131E8.jpg","galleries_id":96281,"server_id":1,"link":"photo_1382933.html","width":130,"caption":"","height":130});
															thumbnails[1739395] = clik.newPhoto({"id":1739395,"src":"WindowDressing_thumb.jpg","galleries_id":99015,"server_id":1,"link":"photo_1739395.html","width":130,"caption":"","height":229});
															thumbnails[5058286] = clik.newPhoto({"id":5058286,"src":"HanoiTanoy_thumb.jpg","galleries_id":116879,"server_id":1,"link":"photo_5058286.html","width":130,"caption":"","height":130});
															thumbnails[6812448] = clik.newPhoto({"id":6812448,"src":"Renoncule-1_thumb.jpg","galleries_id":283494,"server_id":1,"link":"photo_6812448.html","width":130,"caption":"","height":130});
															thumbnails[1382863] = clik.newPhoto({"id":1382863,"src":"GoingToTheTempleWeb_thumb.jpg","galleries_id":96281,"server_id":1,"link":"photo_1382863.html","width":130,"caption":"","height":130});
															thumbnails[5058308] = clik.newPhoto({"id":5058308,"src":"HalongBoat1_thumb.jpg","galleries_id":116879,"server_id":1,"link":"photo_5058308.html","width":130,"caption":"","height":130});
															thumbnails[1382899] = clik.newPhoto({"id":1382899,"src":"7and8SeagullCottageWeb_thumb.jpg","galleries_id":96281,"server_id":1,"link":"photo_1382899.html","width":130,"caption":"","height":130});
															thumbnails[5058291] = clik.newPhoto({"id":5058291,"src":"MAB_-_Temple_Doors_thumb.jpg","galleries_id":116879,"server_id":1,"link":"photo_5058291.html","width":130,"caption":"","height":130});
															thumbnails[5058312] = clik.newPhoto({"id":5058312,"src":"MAB_-_Sky_Scrapers_thumb.jpg","galleries_id":286191,"server_id":1,"link":"photo_5058312.html","width":130,"caption":"","height":130});
															thumbnails[1382907] = clik.newPhoto({"id":1382907,"src":"CanoesWeg_thumb.jpg","galleries_id":96281,"server_id":1,"link":"photo_1382907.html","width":130,"caption":"","height":190});
															thumbnails[1382914] = clik.newPhoto({"id":1382914,"src":"LittleGirlCarryingChildWeb_thumb.jpg","galleries_id":96281,"server_id":1,"link":"photo_1382914.html","width":130,"caption":"","height":130});
															thumbnails[1382932] = clik.newPhoto({"id":1382932,"src":"HainoiMusicianWeb_thumb.jpg","galleries_id":96281,"server_id":1,"link":"photo_1382932.html","width":130,"caption":"","height":130});
															thumbnails[1382847] = clik.newPhoto({"id":1382847,"src":"56thand4th_thumb.jpg","galleries_id":96281,"server_id":1,"link":"photo_1382847.html","width":130,"caption":"","height":130});
															thumbnails[1382841] = clik.newPhoto({"id":1382841,"src":"MenInMendozaWeb_thumb.jpg","galleries_id":96281,"server_id":1,"link":"photo_1382841.html","width":130,"caption":"","height":130});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[286191] = clik.newGallery({"parentGallery":400466,"usePopups":false,"title":"NEW YORK","link":"gallery_286191.html","maxRecords":0.0,"photoIDs":[5058310.0,5058312.0],"skipIndex":0,"section_code":"gallery","featured_images":"5058312,5058310","id":286191,"singleSection":false});				  						galleries[116879] = clik.newGallery({"parentGallery":400466,"usePopups":false,"title":"VIETNAM","link":"gallery_116879.html","maxRecords":0.0,"photoIDs":[1739446.0,1739438.0,5058286.0,5058308.0,5058291.0],"skipIndex":0,"section_code":"gallery","featured_images":5058291.0,"id":116879,"singleSection":false});				  						galleries[257121] = clik.newGallery({"parentGallery":400466,"usePopups":false,"title":"MOZAMBIQUE","link":"gallery_257121.html","maxRecords":0.0,"photoIDs":[1739449.0,4852200.0],"skipIndex":0,"section_code":"gallery","featured_images":1739449.0,"id":257121,"singleSection":false});				  						galleries[370060] = clik.newGallery({"parentGallery":400466,"usePopups":false,"title":"ROME","link":"gallery_370060.html","maxRecords":0.0,"photoIDs":[6811225.0],"skipIndex":0,"section_code":"gallery","featured_images":6811225.0,"id":370060,"singleSection":false});				  						galleries[370069] = clik.newGallery({"parentGallery":400466,"usePopups":false,"title":"SOUTH WEST USA","link":"gallery_370069.html","maxRecords":0.0,"photoIDs":[6813114.0,6812376.0,6811223.0,5058320.0],"skipIndex":0,"section_code":"gallery","featured_images":"6813114,6812376,6811223,5058320","id":370069,"singleSection":false});				  						galleries[471851] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"August 11","link":"section572985_471851.html","maxRecords":0.0,"photoIDs":[9073640.0,9073642.0,9073643.0,9073644.0,9073645.0,9073646.0,9073647.0,9073648.0,9073649.0,9073650.0,9073653.0],"skipIndex":0,"section_code":"section572985","featured_images":9073650,"id":471851,"singleSection":false});				  						galleries[400466] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"MY TRAVELS","link":"gallery_400466.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"5058291,1739449","id":400466,"singleSection":false});				  						galleries[473199] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"September 11","link":"section572985_473199.html","maxRecords":0.0,"photoIDs":[9073703.0,9073705.0,9073706.0,9073707.0,9073709.0,9073710.0,9073712.0,9073714.0,9073715.0,9073716.0,9073717.0,9073719.0,9073720.0,9073721.0,9073723.0,9073725.0,9073729.0,9073730.0,9073731.0,9073732.0,9073733.0,9073734.0,9073735.0,9073736.0,9073737.0,9073739.0,9073740.0,9073742.0,9073743.0,9073744.0],"skipIndex":0,"section_code":"section572985","featured_images":9073707,"id":473199,"singleSection":false});				  						galleries[99015] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"SOME FAVOURITES","link":"gallery_99015.html","maxRecords":0.0,"photoIDs":[6813076.0,1739353.0,4852203.0,1739395.0],"skipIndex":0,"section_code":"gallery","featured_images":"6813076,4852203,1739395,1739353","id":99015,"singleSection":false});				  						galleries[283494] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"FLOWERS","link":"gallery_283494.html","maxRecords":0.0,"photoIDs":[5057651.0,6811160.0,6812448.0],"skipIndex":0,"section_code":"gallery","featured_images":"6812448,6811160,5057651","id":283494,"singleSection":false});				  						galleries[96281] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"LRPS PANEL","link":"gallery_96281.html","maxRecords":0.0,"photoIDs":[1382925.0,1382856.0,1382933.0,1382863.0,1382899.0,1382907.0,1382914.0,1382932.0,1382847.0,1382841.0],"skipIndex":0,"section_code":"gallery","featured_images":"1382932,1382925,1382914,1382907,1382856","id":96281,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '1739353,1382925,1382863,1382899,1382907,1382914,1382932,1382847,1382841';
imageSets[2] = '1739449,1382925,1382856,5058291,1382907,1382914,1382932';
imageSets[3] = '1382933';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/mab/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/mab/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/mab/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/mab/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/mab/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/mab/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/mab/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/mab/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/mab/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/mab/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/mab/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/mab/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/mab/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/mab/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/mab/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/mab/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/mab/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/mab/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/mab/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/mab/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/mab/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/mab/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/mab/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/mab/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/mab/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/mab/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/mab/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 += 'section572985.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 && 'section572985' != '') {
					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 = 'Marie-Ange Bouchard: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else {
		
	}
	if (this.item_price !== '') {
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

