window.thumbnails = {};
															thumbnails[4080613] = clik.newPhoto({"id":4080613,"src":"treeportraits11_thumb.jpg","galleries_id":245202,"server_id":15,"link":"photo_4080613.html","width":102,"caption":"","height":130});
															thumbnails[4080620] = clik.newPhoto({"id":4080620,"src":"treeportraits21_thumb.jpg","galleries_id":245202,"server_id":15,"link":"photo_4080620.html","width":103,"caption":"","height":130});
															thumbnails[4080624] = clik.newPhoto({"id":4080624,"src":"treeportraits31_thumb.jpg","galleries_id":245202,"server_id":15,"link":"photo_4080624.html","width":104,"caption":"","height":130});
															thumbnails[4080629] = clik.newPhoto({"id":4080629,"src":"treeportraits41_thumb.jpg","galleries_id":245202,"server_id":15,"link":"photo_4080629.html","width":105,"caption":"","height":130});
															thumbnails[4080637] = clik.newPhoto({"id":4080637,"src":"treeportraits51_thumb.jpg","galleries_id":245202,"server_id":15,"link":"photo_4080637.html","width":104,"caption":"","height":130});
															thumbnails[4080697] = clik.newPhoto({"id":4080697,"src":"transience11_thumb.jpg","galleries_id":245204,"server_id":15,"link":"photo_4080697.html","width":87,"caption":"","height":130});
															thumbnails[4080702] = clik.newPhoto({"id":4080702,"src":"transience21_thumb.jpg","galleries_id":245204,"server_id":15,"link":"photo_4080702.html","width":87,"caption":"","height":130});
															thumbnails[4080706] = clik.newPhoto({"id":4080706,"src":"transience31_thumb.jpg","galleries_id":245204,"server_id":15,"link":"photo_4080706.html","width":87,"caption":"","height":130});
															thumbnails[4080713] = clik.newPhoto({"id":4080713,"src":"transience41_thumb.jpg","galleries_id":245204,"server_id":15,"link":"photo_4080713.html","width":87,"caption":"","height":130});
															thumbnails[4080718] = clik.newPhoto({"id":4080718,"src":"transience51_thumb.jpg","galleries_id":245204,"server_id":15,"link":"photo_4080718.html","width":130,"caption":"","height":86});
															thumbnails[4080722] = clik.newPhoto({"id":4080722,"src":"transience71_thumb.jpg","galleries_id":245204,"server_id":15,"link":"photo_4080722.html","width":130,"caption":"","height":87});
															thumbnails[4080726] = clik.newPhoto({"id":4080726,"src":"transience61_thumb.jpg","galleries_id":245204,"server_id":15,"link":"photo_4080726.html","width":130,"caption":"","height":86});
															thumbnails[4080731] = clik.newPhoto({"id":4080731,"src":"transience81_thumb.jpg","galleries_id":245204,"server_id":15,"link":"photo_4080731.html","width":130,"caption":"","height":86});
															thumbnails[4080745] = clik.newPhoto({"id":4080745,"src":"transience91_thumb.jpg","galleries_id":245204,"server_id":15,"link":"photo_4080745.html","width":130,"caption":"","height":86});
															thumbnails[4080759] = clik.newPhoto({"id":4080759,"src":"layeredtrees21_thumb.jpg","galleries_id":245189,"server_id":15,"link":"photo_4080759.html","width":130,"caption":"","height":130});
															thumbnails[4080766] = clik.newPhoto({"id":4080766,"src":"layeredtrees31_thumb.jpg","galleries_id":245189,"server_id":15,"link":"photo_4080766.html","width":130,"caption":"","height":130});
															thumbnails[4080772] = clik.newPhoto({"id":4080772,"src":"layeredtrees41_thumb.jpg","galleries_id":245189,"server_id":15,"link":"photo_4080772.html","width":130,"caption":"","height":130});
															thumbnails[4080777] = clik.newPhoto({"id":4080777,"src":"layeredtrees51_thumb.jpg","galleries_id":245189,"server_id":15,"link":"photo_4080777.html","width":130,"caption":"","height":130});
															thumbnails[4080829] = clik.newPhoto({"id":4080829,"src":"layeredtrees12_thumb.jpg","galleries_id":245189,"server_id":15,"link":"photo_4080829.html","width":130,"caption":"","height":130});
															thumbnails[4080833] = clik.newPhoto({"id":4080833,"src":"sufacetexture11_thumb.jpg","galleries_id":222333,"server_id":15,"link":"photo_4080833.html","width":130,"caption":"","height":130});
															thumbnails[4080837] = clik.newPhoto({"id":4080837,"src":"sufacetexture21_thumb.jpg","galleries_id":222333,"server_id":15,"link":"photo_4080837.html","width":130,"caption":"","height":130});
															thumbnails[4080839] = clik.newPhoto({"id":4080839,"src":"surfacetexture31_thumb.jpg","galleries_id":222333,"server_id":15,"link":"photo_4080839.html","width":130,"caption":"","height":130});
															thumbnails[4080857] = clik.newPhoto({"id":4080857,"src":"light11_thumb.jpg","galleries_id":245210,"server_id":15,"link":"photo_4080857.html","width":130,"caption":"","height":87});
															thumbnails[4080862] = clik.newPhoto({"id":4080862,"src":"light21_thumb.jpg","galleries_id":245210,"server_id":15,"link":"photo_4080862.html","width":130,"caption":"","height":87});
															thumbnails[4080866] = clik.newPhoto({"id":4080866,"src":"light31_thumb.jpg","galleries_id":245210,"server_id":15,"link":"photo_4080866.html","width":130,"caption":"","height":87});
															thumbnails[4080870] = clik.newPhoto({"id":4080870,"src":"light52_thumb.jpg","galleries_id":245210,"server_id":15,"link":"photo_4080870.html","width":130,"caption":"","height":85});
															thumbnails[5364457] = clik.newPhoto({"id":5364457,"src":"throughatrainwindow1_thumb.jpg","galleries_id":302340,"server_id":15,"link":"photo_5364457.html","width":130,"caption":"","height":87});
															thumbnails[5364461] = clik.newPhoto({"id":5364461,"src":"throughatrainwindow2_thumb.jpg","galleries_id":302340,"server_id":15,"link":"photo_5364461.html","width":130,"caption":"","height":87});
															thumbnails[5364464] = clik.newPhoto({"id":5364464,"src":"throughatrainwindow3_thumb.jpg","galleries_id":302340,"server_id":15,"link":"photo_5364464.html","width":130,"caption":"","height":87});
															thumbnails[5364465] = clik.newPhoto({"id":5364465,"src":"throughatrainwindow4_thumb.jpg","galleries_id":302340,"server_id":15,"link":"photo_5364465.html","width":130,"caption":"","height":87});
															thumbnails[5364469] = clik.newPhoto({"id":5364469,"src":"throughatrainwindow5_thumb.jpg","galleries_id":302340,"server_id":15,"link":"photo_5364469.html","width":130,"caption":"","height":87});
															thumbnails[5364473] = clik.newPhoto({"id":5364473,"src":"throughatrainwindow6_thumb.jpg","galleries_id":302340,"server_id":15,"link":"photo_5364473.html","width":130,"caption":"","height":87});
															thumbnails[5364474] = clik.newPhoto({"id":5364474,"src":"throughatrainwindow7_thumb.jpg","galleries_id":302340,"server_id":15,"link":"photo_5364474.html","width":130,"caption":"","height":87});
															thumbnails[5364519] = clik.newPhoto({"id":5364519,"src":"throughatrainwindow81_thumb.jpg","galleries_id":302340,"server_id":15,"link":"photo_5364519.html","width":130,"caption":"","height":87});
															thumbnails[5364524] = clik.newPhoto({"id":5364524,"src":"throughatrainwindow91_thumb.jpg","galleries_id":302340,"server_id":15,"link":"photo_5364524.html","width":130,"caption":"","height":87});
															thumbnails[5364528] = clik.newPhoto({"id":5364528,"src":"throughatrainwindow101_thumb.jpg","galleries_id":302340,"server_id":15,"link":"photo_5364528.html","width":130,"caption":"","height":87});
															thumbnails[5364530] = clik.newPhoto({"id":5364530,"src":"throughatrainwindow111_thumb.jpg","galleries_id":302340,"server_id":15,"link":"photo_5364530.html","width":130,"caption":"","height":87});
															thumbnails[5364532] = clik.newPhoto({"id":5364532,"src":"throughatrainwindow121_thumb.jpg","galleries_id":302340,"server_id":15,"link":"photo_5364532.html","width":130,"caption":"","height":87});
															thumbnails[5365032] = clik.newPhoto({"id":5365032,"src":"light6_thumb.jpg","galleries_id":245210,"server_id":15,"link":"photo_5365032.html","width":130,"caption":"","height":87});
															thumbnails[5365033] = clik.newPhoto({"id":5365033,"src":"light7_thumb.jpg","galleries_id":245210,"server_id":15,"link":"photo_5365033.html","width":130,"caption":"","height":87});
															thumbnails[5365036] = clik.newPhoto({"id":5365036,"src":"light8_thumb.jpg","galleries_id":245210,"server_id":15,"link":"photo_5365036.html","width":130,"caption":"","height":87});
															thumbnails[5365084] = clik.newPhoto({"id":5365084,"src":"light9_thumb.jpg","galleries_id":245210,"server_id":15,"link":"photo_5365084.html","width":130,"caption":"","height":87});
															thumbnails[5365243] = clik.newPhoto({"id":5365243,"src":"water1_thumb.jpg","galleries_id":302374,"server_id":15,"link":"photo_5365243.html","width":87,"caption":"","height":130});
															thumbnails[5365285] = clik.newPhoto({"id":5365285,"src":"water2_thumb.jpg","galleries_id":302374,"server_id":15,"link":"photo_5365285.html","width":87,"caption":"","height":130});
															thumbnails[5365973] = clik.newPhoto({"id":5365973,"src":"water3_thumb.jpg","galleries_id":302374,"server_id":15,"link":"photo_5365973.html","width":87,"caption":"","height":130});
															thumbnails[5366018] = clik.newPhoto({"id":5366018,"src":"water6_thumb.jpg","galleries_id":302374,"server_id":15,"link":"photo_5366018.html","width":87,"caption":"","height":130});
															thumbnails[5366022] = clik.newPhoto({"id":5366022,"src":"water7_thumb.jpg","galleries_id":302374,"server_id":15,"link":"photo_5366022.html","width":87,"caption":"","height":130});
															thumbnails[5366026] = clik.newPhoto({"id":5366026,"src":"water8_thumb.jpg","galleries_id":302374,"server_id":15,"link":"photo_5366026.html","width":87,"caption":"","height":130});
															thumbnails[5370721] = clik.newPhoto({"id":5370721,"src":"surfacetexture4_thumb.jpg","galleries_id":222333,"server_id":15,"link":"photo_5370721.html","width":130,"caption":"","height":130});
															thumbnails[5370723] = clik.newPhoto({"id":5370723,"src":"surfacetexture7_thumb.jpg","galleries_id":222333,"server_id":15,"link":"photo_5370723.html","width":130,"caption":"","height":130});
															thumbnails[5370725] = clik.newPhoto({"id":5370725,"src":"surfacetexture6_thumb.jpg","galleries_id":222333,"server_id":15,"link":"photo_5370725.html","width":130,"caption":"","height":130});
															thumbnails[5370728] = clik.newPhoto({"id":5370728,"src":"surfacetexture8_thumb.jpg","galleries_id":222333,"server_id":15,"link":"photo_5370728.html","width":130,"caption":"","height":130});
															thumbnails[5370776] = clik.newPhoto({"id":5370776,"src":"surfacetension9_thumb.jpg","galleries_id":222333,"server_id":15,"link":"photo_5370776.html","width":130,"caption":"","height":130});
															thumbnails[5370779] = clik.newPhoto({"id":5370779,"src":"surfacetension10_thumb.jpg","galleries_id":222333,"server_id":15,"link":"photo_5370779.html","width":130,"caption":"","height":130});
															thumbnails[5370781] = clik.newPhoto({"id":5370781,"src":"surfacetension12_thumb.jpg","galleries_id":222333,"server_id":15,"link":"photo_5370781.html","width":130,"caption":"","height":130});
															thumbnails[6933318] = clik.newPhoto({"id":6933318,"src":"bargejourney11_thumb.jpg","galleries_id":376029,"server_id":15,"link":"photo_6933318.html","width":130,"caption":"","height":91});
															thumbnails[6933342] = clik.newPhoto({"id":6933342,"src":"bargejourney21_thumb.jpg","galleries_id":376029,"server_id":15,"link":"photo_6933342.html","width":130,"caption":"","height":92});
															thumbnails[6933345] = clik.newPhoto({"id":6933345,"src":"bargejourney31_thumb.jpg","galleries_id":376029,"server_id":15,"link":"photo_6933345.html","width":130,"caption":"","height":91});
															thumbnails[6933354] = clik.newPhoto({"id":6933354,"src":"bargejourney41_thumb.jpg","galleries_id":376029,"server_id":15,"link":"photo_6933354.html","width":130,"caption":"","height":91});
															thumbnails[6933357] = clik.newPhoto({"id":6933357,"src":"bargejourney51_thumb.jpg","galleries_id":376029,"server_id":15,"link":"photo_6933357.html","width":130,"caption":"","height":91});
															thumbnails[6933315] = clik.newPhoto({"id":6933315,"src":"bargejourney6_thumb.jpg","galleries_id":376029,"server_id":15,"link":"photo_6933315.html","width":130,"caption":"","height":92});
															thumbnails[7183615] = clik.newPhoto({"id":7183615,"src":"thamesjourney11_thumb.jpg","galleries_id":388232,"server_id":15,"link":"photo_7183615.html","width":130,"caption":"","height":86});
															thumbnails[7774166] = clik.newPhoto({"id":7774166,"src":"morocco3_thumb.jpg","galleries_id":420081,"server_id":15,"link":"photo_7774166.html","width":87,"caption":"","height":130});
															thumbnails[7774170] = clik.newPhoto({"id":7774170,"src":"morocco4_thumb.jpg","galleries_id":420081,"server_id":15,"link":"photo_7774170.html","width":87,"caption":"","height":130});
															thumbnails[7295750] = clik.newPhoto({"id":7295750,"src":"thamesjourney2_thumb.jpg","galleries_id":388232,"server_id":15,"link":"photo_7295750.html","width":130,"caption":"","height":86});
															thumbnails[7295746] = clik.newPhoto({"id":7295746,"src":"thamesjourney3_thumb.jpg","galleries_id":388232,"server_id":15,"link":"photo_7295746.html","width":130,"caption":"","height":86});
															thumbnails[7774143] = clik.newPhoto({"id":7774143,"src":"jardin_majorelle3_thumb.jpg","galleries_id":420081,"server_id":15,"link":"photo_7774143.html","width":87,"caption":"","height":130});
															thumbnails[7774136] = clik.newPhoto({"id":7774136,"src":"jardin_majorelle1_thumb.jpg","galleries_id":420081,"server_id":15,"link":"photo_7774136.html","width":87,"caption":"","height":130});
															thumbnails[7774140] = clik.newPhoto({"id":7774140,"src":"jardin_majorelle2_thumb.jpg","galleries_id":420081,"server_id":15,"link":"photo_7774140.html","width":130,"caption":"","height":87});
															thumbnails[7295748] = clik.newPhoto({"id":7295748,"src":"thamesjourney4_thumb.jpg","galleries_id":388232,"server_id":15,"link":"photo_7295748.html","width":130,"caption":"","height":86});
															thumbnails[7183602] = clik.newPhoto({"id":7183602,"src":"thamesjourney5_thumb.jpg","galleries_id":388232,"server_id":15,"link":"photo_7183602.html","width":130,"caption":"","height":86});
															thumbnails[7774148] = clik.newPhoto({"id":7774148,"src":"morocco0_thumb.jpg","galleries_id":420081,"server_id":15,"link":"photo_7774148.html","width":130,"caption":"","height":87});
															thumbnails[7774154] = clik.newPhoto({"id":7774154,"src":"morocco1_thumb.jpg","galleries_id":420081,"server_id":15,"link":"photo_7774154.html","width":130,"caption":"","height":87});
															thumbnails[7774161] = clik.newPhoto({"id":7774161,"src":"morocco2_thumb.jpg","galleries_id":420081,"server_id":15,"link":"photo_7774161.html","width":130,"caption":"","height":87});
															thumbnails[7774178] = clik.newPhoto({"id":7774178,"src":"morocco5_thumb.jpg","galleries_id":420081,"server_id":15,"link":"photo_7774178.html","width":130,"caption":"","height":87});
															thumbnails[7774189] = clik.newPhoto({"id":7774189,"src":"morocco6_thumb.jpg","galleries_id":420081,"server_id":15,"link":"photo_7774189.html","width":130,"caption":"","height":87});
															thumbnails[7774193] = clik.newPhoto({"id":7774193,"src":"morocco7_thumb.jpg","galleries_id":420081,"server_id":15,"link":"photo_7774193.html","width":130,"caption":"","height":87});
															thumbnails[7774201] = clik.newPhoto({"id":7774201,"src":"morocco8_thumb.jpg","galleries_id":420081,"server_id":15,"link":"photo_7774201.html","width":130,"caption":"","height":87});
															thumbnails[7774205] = clik.newPhoto({"id":7774205,"src":"morocco9_thumb.jpg","galleries_id":420081,"server_id":15,"link":"photo_7774205.html","width":130,"caption":"","height":87});
															thumbnails[8647394] = clik.newPhoto({"id":8647394,"src":"websiteA_thumb.jpg","galleries_id":456675,"server_id":37,"link":"photo_8647394.html","width":130,"caption":"","height":130});
															thumbnails[8647397] = clik.newPhoto({"id":8647397,"src":"websiteB_thumb.jpg","galleries_id":456675,"server_id":37,"link":"photo_8647397.html","width":130,"caption":"","height":130});
															thumbnails[8647399] = clik.newPhoto({"id":8647399,"src":"websiteC_thumb.jpg","galleries_id":456675,"server_id":37,"link":"photo_8647399.html","width":130,"caption":"","height":130});
															thumbnails[8647401] = clik.newPhoto({"id":8647401,"src":"websiteD_thumb.jpg","galleries_id":456675,"server_id":37,"link":"photo_8647401.html","width":130,"caption":"","height":130});
															thumbnails[8647403] = clik.newPhoto({"id":8647403,"src":"websiteE_thumb.jpg","galleries_id":456675,"server_id":37,"link":"photo_8647403.html","width":130,"caption":"","height":130});
															thumbnails[8647419] = clik.newPhoto({"id":8647419,"src":"websiteF_thumb.jpg","galleries_id":456675,"server_id":37,"link":"photo_8647419.html","width":130,"caption":"","height":130});
															thumbnails[8647420] = clik.newPhoto({"id":8647420,"src":"websiteG_thumb.jpg","galleries_id":456675,"server_id":37,"link":"photo_8647420.html","width":130,"caption":"","height":130});
															thumbnails[8647421] = clik.newPhoto({"id":8647421,"src":"websiteH_thumb.jpg","galleries_id":456675,"server_id":37,"link":"photo_8647421.html","width":130,"caption":"","height":130});
															thumbnails[8662118] = clik.newPhoto({"id":8662118,"src":"websiteI_thumb.jpg","galleries_id":457358,"server_id":37,"link":"photo_8662118.html","width":130,"caption":"","height":98});
															thumbnails[8662132] = clik.newPhoto({"id":8662132,"src":"websiteJ_thumb.jpg","galleries_id":457358,"server_id":37,"link":"photo_8662132.html","width":130,"caption":"","height":98});
															thumbnails[8662134] = clik.newPhoto({"id":8662134,"src":"websiteK_thumb.jpg","galleries_id":457358,"server_id":37,"link":"photo_8662134.html","width":130,"caption":"","height":98});
															thumbnails[8662142] = clik.newPhoto({"id":8662142,"src":"websiteS_thumb.jpg","galleries_id":457359,"server_id":37,"link":"photo_8662142.html","width":95,"caption":"","height":130});
															thumbnails[8662150] = clik.newPhoto({"id":8662150,"src":"websiteT_thumb.jpg","galleries_id":457359,"server_id":37,"link":"photo_8662150.html","width":130,"caption":"","height":118});
															thumbnails[8662153] = clik.newPhoto({"id":8662153,"src":"websiteU_thumb.jpg","galleries_id":457359,"server_id":37,"link":"photo_8662153.html","width":130,"caption":"","height":102});
															thumbnails[8662155] = clik.newPhoto({"id":8662155,"src":"websiteV_thumb.jpg","galleries_id":457359,"server_id":37,"link":"photo_8662155.html","width":130,"caption":"","height":81});
															thumbnails[8662185] = clik.newPhoto({"id":8662185,"src":"websiteM_thumb.jpg","galleries_id":457361,"server_id":37,"link":"photo_8662185.html","width":87,"caption":"","height":130});
															thumbnails[8662193] = clik.newPhoto({"id":8662193,"src":"websiteN_thumb.jpg","galleries_id":457361,"server_id":37,"link":"photo_8662193.html","width":87,"caption":"","height":130});
															thumbnails[8662196] = clik.newPhoto({"id":8662196,"src":"websiteO_thumb.jpg","galleries_id":457361,"server_id":37,"link":"photo_8662196.html","width":87,"caption":"","height":130});
															thumbnails[8662225] = clik.newPhoto({"id":8662225,"src":"websiteP_thumb.jpg","galleries_id":457361,"server_id":37,"link":"photo_8662225.html","width":87,"caption":"","height":130});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[456675] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"wall pieces","link":"section552674_456675.html","maxRecords":0.0,"photoIDs":[8647394.0,8647397.0,8647399.0,8647401.0,8647403.0,8647419.0,8647420.0,8647421.0],"skipIndex":0,"section_code":"section552674","featured_images":"8647421,8647419,8647401","id":456675,"singleSection":false});				  						galleries[457358] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"sculptures","link":"section552674_457358.html","maxRecords":0.0,"photoIDs":[8662118.0,8662132.0,8662134.0],"skipIndex":0,"section_code":"section552674","featured_images":"8662134,8662132,8662118","id":457358,"singleSection":false});				  						galleries[457359] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"vessels","link":"section552674_457359.html","maxRecords":0.0,"photoIDs":[8662142.0,8662150.0,8662153.0,8662155.0],"skipIndex":0,"section_code":"section552674","featured_images":"8662155,8662153,8662150,8662142","id":457359,"singleSection":false});				  						galleries[457361] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"wall plaques","link":"section552674_457361.html","maxRecords":0.0,"photoIDs":[8662185.0,8662193.0,8662196.0,8662225.0],"skipIndex":0,"section_code":"section552674","featured_images":"8662225,8662196,8662193,8662185","id":457361,"singleSection":false});				  						galleries[245189] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"layered trees","link":"gallery_245189.html","maxRecords":0.0,"photoIDs":[4080759.0,4080766.0,4080772.0,4080777.0,4080829.0],"skipIndex":0,"section_code":"gallery","featured_images":4080759.0,"id":245189,"singleSection":false});				  						galleries[245211] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"'rooted in time'","link":"gallery_245211.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"4080697,4080624","id":245211,"singleSection":false});				  						galleries[245202] = clik.newGallery({"parentGallery":245211,"usePopups":false,"title":"tree portraits","link":"gallery_245202.html","maxRecords":0.0,"photoIDs":[4080613.0,4080620.0,4080624.0,4080629.0,4080637.0],"skipIndex":0,"section_code":"gallery","featured_images":4080624.0,"id":245202,"singleSection":false});				  						galleries[245204] = clik.newGallery({"parentGallery":245211,"usePopups":false,"title":"'transience'","link":"gallery_245204.html","maxRecords":0.0,"photoIDs":[4080697.0,4080702.0,4080706.0,4080713.0,4080718.0,4080722.0,4080726.0,4080731.0,4080745.0],"skipIndex":0,"section_code":"gallery","featured_images":4080697.0,"id":245204,"singleSection":false});				  						galleries[222333] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"surface tension","link":"gallery_222333.html","maxRecords":0.0,"photoIDs":[4080833.0,4080837.0,4080839.0,5370721.0,5370723.0,5370725.0,5370728.0,5370776.0,5370779.0,5370781.0],"skipIndex":0,"section_code":"gallery","featured_images":4080839.0,"id":222333,"singleSection":false});				  						galleries[302374] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"precious water","link":"gallery_302374.html","maxRecords":0.0,"photoIDs":[5365243.0,5365285.0,5365973.0,5366018.0,5366022.0,5366026.0],"skipIndex":0,"section_code":"gallery","featured_images":5365243.0,"id":302374,"singleSection":false});				  						galleries[302340] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"frames","link":"gallery_302340.html","maxRecords":0.0,"photoIDs":[5364457.0,5364461.0,5364464.0,5364465.0,5364469.0,5364473.0,5364474.0,5364519.0,5364524.0,5364528.0,5364530.0,5364532.0],"skipIndex":0,"section_code":"gallery","featured_images":"5364532,5364474,5364473","id":302340,"singleSection":false});				  						galleries[376029] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"bargejourney","link":"gallery_376029.html","maxRecords":0.0,"photoIDs":[6933318.0,6933342.0,6933345.0,6933354.0,6933357.0,6933315.0],"skipIndex":0,"section_code":"gallery","featured_images":"6933357,6933354,6933345,6933342,6933318,6933315","id":376029,"singleSection":false});				  						galleries[388232] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"thamesjourney","link":"gallery_388232.html","maxRecords":0.0,"photoIDs":[7183615.0,7295750.0,7295746.0,7295748.0,7183602.0],"skipIndex":0,"section_code":"gallery","featured_images":"7295750,7295748,7295746,7183615,7183602","id":388232,"singleSection":false});				  						galleries[245210] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"light","link":"gallery_245210.html","maxRecords":0.0,"photoIDs":[4080857.0,4080862.0,4080866.0,4080870.0,5365032.0,5365033.0,5365036.0,5365084.0],"skipIndex":0,"section_code":"gallery","featured_images":4080857.0,"id":245210,"singleSection":false});				  						galleries[420081] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Morocco","link":"gallery_420081.html","maxRecords":0.0,"photoIDs":[7774166.0,7774170.0,7774143.0,7774136.0,7774140.0,7774148.0,7774154.0,7774161.0,7774178.0,7774189.0,7774193.0,7774201.0,7774205.0],"skipIndex":0,"section_code":"gallery","featured_images":"7774205,7774178,7774166,7774161,7774148,7774136","id":420081,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8662225,8662196,8662193,8662185,8662155,8662153,8662150,8662142,8662134,8662132,8662118,8647421,8647419,8647401,5365243,5364532,5364474,5364473,4080857,4080839,4080837,4080759,4080731,4080722,4080718,4080697,4080624,4080620,7774166,7774136,7774148,7774161,7774178,7774205';
imageSets[2] = '8662225,8662196,8662193,8662185,8662155,8662153,8662150,8662142,8662134,8662132,8662118,8647421,8647419,8647401,5365243,5364532,5364474,5364473,4080857,4080839,4080759,4080697,4080624,7774166,7774136,7774148,7774161,7774178,7774205';
imageSets[3] = '8662225,8662196,8662193,8662185,8662155,8662153,8662150,8662142,8662134,8662132,8662118,8647421,8647419,8647401,5365243,5364532,5364530,5364528,5364524,5364519,5364474,5364473,5364469,5364465,5364464,5364461,5364457,4080870,4080866,4080862,4080857,4080839,4080837,4080833,4080829,4080777,4080772,4080766,4080759,4080745,4080731,4080726,4080722,4080718,4080713,4080706,4080702,4080697,4080637,4080629,4080624,4080620,4080613,7774166,7774136,7774148,7774161,7774178,7774205';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/mmpritchard/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'www.clikpic.com/mmpritchard/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/mmpritchard/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/mmpritchard/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/mmpritchard/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/mmpritchard/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/mmpritchard/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/mmpritchard/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/mmpritchard/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/mmpritchard/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/mmpritchard/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/mmpritchard/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/mmpritchard/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/mmpritchard/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/mmpritchard/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/mmpritchard/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/mmpritchard/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/mmpritchard/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/mmpritchard/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/mmpritchard/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/mmpritchard/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/mmpritchard/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/mmpritchard/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/mmpritchard/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/mmpritchard/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 += '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 = 'mary pritchard : ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp += '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
	else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					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;
	}
}

			

