window.thumbnails = {};
															thumbnails[444553] = clik.newPhoto({"id":444553,"src":"DSC_00104_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"DSC_0010","height":93});
															thumbnails[445146] = clik.newPhoto({"id":445146,"src":"DSC_0020_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"DSC_0020","height":93});
															thumbnails[3443026] = clik.newPhoto({"id":3443026,"src":"_DSC0009_thumb.jpg","galleries_id":210661,"server_id":18,"link":"photo_3443026.html","width":130,"caption":"DSC_0009","height":87});
															thumbnails[3443027] = clik.newPhoto({"id":3443027,"src":"_DSC0012_thumb.jpg","galleries_id":210661,"server_id":18,"link":"photo_3443027.html","width":130,"caption":"DSC_0012","height":87});
															thumbnails[3443028] = clik.newPhoto({"id":3443028,"src":"_DSC0017_thumb.jpg","galleries_id":210661,"server_id":18,"link":"photo_3443028.html","width":130,"caption":"DSC_0017","height":87});
															thumbnails[3443029] = clik.newPhoto({"id":3443029,"src":"_DSC0026_thumb.jpg","galleries_id":210661,"server_id":18,"link":"photo_3443029.html","width":130,"caption":"DSC_0026","height":87});
															thumbnails[3443030] = clik.newPhoto({"id":3443030,"src":"_DSC0030_thumb.jpg","galleries_id":210661,"server_id":18,"link":"photo_3443030.html","width":130,"caption":"DSC_0030","height":87});
															thumbnails[447386] = clik.newPhoto({"id":447386,"src":"DSC_00052_thumb.jpg","galleries_id":35495,"server_id":18,"link":"photo_447386.html","width":130,"caption":"DSC_0005","height":86});
															thumbnails[799970] = clik.newPhoto({"id":799970,"src":"DSC_0006_thumb.jpg","galleries_id":35645,"server_id":18,"link":"photo_799970.html","width":130,"caption":"DSC_0006","height":86});
															thumbnails[8822570] = clik.newPhoto({"id":8822570,"src":"_DSC0006_thumb.jpg","galleries_id":464279,"server_id":18,"link":"photo_8822570.html","width":130,"caption":"MFB0006","height":87});
															thumbnails[3816051] = clik.newPhoto({"id":3816051,"src":"_DSC001_thumb.jpg","galleries_id":211097,"server_id":18,"link":"photo_3816051.html","width":130,"caption":"DSC_0001","height":100});
															thumbnails[447387] = clik.newPhoto({"id":447387,"src":"DSC_00108_thumb.jpg","galleries_id":35495,"server_id":18,"link":"photo_447387.html","width":130,"caption":"DSC_0010","height":85});
															thumbnails[2932974] = clik.newPhoto({"id":2932974,"src":"DSC_0014A_thumb.jpg","galleries_id":38083,"server_id":18,"link":"photo_2932974.html","width":130,"caption":"DSC_0014A","height":92});
															thumbnails[4136295] = clik.newPhoto({"id":4136295,"src":"A_summers_day_thumb.jpg","galleries_id":247512,"server_id":18,"link":"photo_4136295.html","width":130,"caption":"A summers day","height":87});
															thumbnails[799983] = clik.newPhoto({"id":799983,"src":"DSC_0011_thumb.jpg","galleries_id":35645,"server_id":18,"link":"photo_799983.html","width":130,"caption":"DSC_0011","height":91});
															thumbnails[4136300] = clik.newPhoto({"id":4136300,"src":"Bluebell_wood_thumb.jpg","galleries_id":247512,"server_id":18,"link":"photo_4136300.html","width":130,"caption":"Bluebell wood","height":87});
															thumbnails[1867264] = clik.newPhoto({"id":1867264,"src":"DSC_0012-1_thumb.jpg","galleries_id":136956,"server_id":18,"link":"photo_1867264.html","width":130,"caption":"DSC_0012","height":86});
															thumbnails[447396] = clik.newPhoto({"id":447396,"src":"DSC_00202_thumb.jpg","galleries_id":35495,"server_id":18,"link":"photo_447396.html","width":130,"caption":"DSC_0020","height":86});
															thumbnails[2932976] = clik.newPhoto({"id":2932976,"src":"DSC_0056_thumb.jpg","galleries_id":38083,"server_id":18,"link":"photo_2932976.html","width":130,"caption":"DSC_0056","height":92});
															thumbnails[4136301] = clik.newPhoto({"id":4136301,"src":"Breaking_Waves_thumb.jpg","galleries_id":247512,"server_id":18,"link":"photo_4136301.html","width":130,"caption":"Breaking waves","height":87});
															thumbnails[8822612] = clik.newPhoto({"id":8822612,"src":"_DSC0013_254EC5D3-24E8-5EC4-4FE2424E9EA1C313_thumb.jpg","galleries_id":464279,"server_id":18,"link":"photo_8822612.html","width":130,"caption":"MFB0013","height":87});
															thumbnails[446681] = clik.newPhoto({"id":446681,"src":"DSC_00251_thumb.jpg","galleries_id":35251,"server_id":18,"link":"photo_446681.html","width":130,"caption":"DSC_0025","height":93});
															thumbnails[447409] = clik.newPhoto({"id":447409,"src":"DSC_00254_thumb.jpg","galleries_id":35495,"server_id":18,"link":"photo_447409.html","width":130,"caption":"DSC_0025","height":86});
															thumbnails[4136303] = clik.newPhoto({"id":4136303,"src":"Clear_blue_thumb.jpg","galleries_id":247512,"server_id":18,"link":"photo_4136303.html","width":130,"caption":"Clear blue","height":87});
															thumbnails[8822613] = clik.newPhoto({"id":8822613,"src":"_DSC0016_25572CBE-24E8-5EC4-4FCC5395B2E024AE_thumb.jpg","galleries_id":464279,"server_id":18,"link":"photo_8822613.html","width":130,"caption":"MFB0016","height":87});
															thumbnails[3816098] = clik.newPhoto({"id":3816098,"src":"_DSC008_thumb.jpg","galleries_id":211097,"server_id":18,"link":"photo_3816098.html","width":130,"caption":"DSC_0008","height":100});
															thumbnails[2048661] = clik.newPhoto({"id":2048661,"src":"_DSC0020_thumb.jpg","galleries_id":136956,"server_id":18,"link":"photo_2048661.html","width":130,"caption":"DSC_0020","height":93});
															thumbnails[448904] = clik.newPhoto({"id":448904,"src":"DSC_00304_thumb.jpg","galleries_id":35645,"server_id":18,"link":"photo_448904.html","width":130,"caption":"DSC_0030","height":93});
															thumbnails[447703] = clik.newPhoto({"id":447703,"src":"DSC_00303_thumb.jpg","galleries_id":35495,"server_id":18,"link":"photo_447703.html","width":130,"caption":"DCS_0030","height":86});
															thumbnails[2932978] = clik.newPhoto({"id":2932978,"src":"DSC_0091_thumb.jpg","galleries_id":38083,"server_id":18,"link":"photo_2932978.html","width":130,"caption":"DSC_0091","height":92});
															thumbnails[799949] = clik.newPhoto({"id":799949,"src":"DSC_00331_thumb.jpg","galleries_id":35251,"server_id":18,"link":"photo_799949.html","width":130,"caption":"DSC_0033","height":93});
															thumbnails[8822620] = clik.newPhoto({"id":8822620,"src":"_DSC0021_25603920-24E8-5EC4-4FAA269D2F5C44B3_thumb.jpg","galleries_id":464279,"server_id":18,"link":"photo_8822620.html","width":130,"caption":"MFB0021","height":87});
															thumbnails[446683] = clik.newPhoto({"id":446683,"src":"DSC_0035_thumb.jpg","galleries_id":35251,"server_id":18,"link":"photo_446683.html","width":130,"caption":"DSC_0035","height":87});
															thumbnails[447722] = clik.newPhoto({"id":447722,"src":"DSC_00351_thumb.jpg","galleries_id":35495,"server_id":18,"link":"photo_447722.html","width":130,"caption":"DSC_0035","height":86});
															thumbnails[449436] = clik.newPhoto({"id":449436,"src":"DSC_00353_thumb.jpg","galleries_id":35645,"server_id":18,"link":"photo_449436.html","width":130,"caption":"DSC_0035","height":86});
															thumbnails[4136310] = clik.newPhoto({"id":4136310,"src":"Energy_thumb.jpg","galleries_id":247512,"server_id":18,"link":"photo_4136310.html","width":130,"caption":"Energy","height":87});
															thumbnails[800020] = clik.newPhoto({"id":800020,"src":"DSC_00371_thumb.jpg","galleries_id":35645,"server_id":18,"link":"photo_800020.html","width":130,"caption":"DSC_0037","height":86});
															thumbnails[2063460] = clik.newPhoto({"id":2063460,"src":"_DSC0029_thumb.jpg","galleries_id":136956,"server_id":18,"link":"photo_2063460.html","width":130,"caption":"DSC_0029","height":93});
															thumbnails[446684] = clik.newPhoto({"id":446684,"src":"DSC_00402_thumb.jpg","galleries_id":35251,"server_id":18,"link":"photo_446684.html","width":130,"caption":"DSC_0040","height":87});
															thumbnails[447733] = clik.newPhoto({"id":447733,"src":"DSC_00403_thumb.jpg","galleries_id":35495,"server_id":18,"link":"photo_447733.html","width":130,"caption":"DSC_0040","height":86});
															thumbnails[2932969] = clik.newPhoto({"id":2932969,"src":"DSC_0010_thumb.jpg","galleries_id":38083,"server_id":18,"link":"photo_2932969.html","width":130,"caption":"DSC_0010","height":92});
															thumbnails[4136314] = clik.newPhoto({"id":4136314,"src":"Fireball_thumb.jpg","galleries_id":247512,"server_id":18,"link":"photo_4136314.html","width":130,"caption":"Fireball","height":87});
															thumbnails[489132] = clik.newPhoto({"id":489132,"src":"DSC_0043_thumb.jpg","galleries_id":35251,"server_id":18,"link":"photo_489132.html","width":130,"caption":"DSC_0043","height":86});
															thumbnails[447745] = clik.newPhoto({"id":447745,"src":"DSC_00452_thumb.jpg","galleries_id":35495,"server_id":18,"link":"photo_447745.html","width":130,"caption":"DSC_0045","height":86});
															thumbnails[4136316] = clik.newPhoto({"id":4136316,"src":"Hole_in_the_wall_thumb.jpg","galleries_id":247512,"server_id":18,"link":"photo_4136316.html","width":130,"caption":"Hole in the wall","height":87});
															thumbnails[8822624] = clik.newPhoto({"id":8822624,"src":"_DSC0028_2579275D-24E8-5EC4-4FEE4DD2F8B82288_thumb.jpg","galleries_id":464279,"server_id":18,"link":"photo_8822624.html","width":130,"caption":"MFB0028","height":87});
															thumbnails[3816122] = clik.newPhoto({"id":3816122,"src":"_DSC0019A_thumb.jpg","galleries_id":211097,"server_id":18,"link":"photo_3816122.html","width":130,"caption":"DSC_0019A","height":93});
															thumbnails[2048677] = clik.newPhoto({"id":2048677,"src":"_DSC0064_thumb.jpg","galleries_id":136956,"server_id":18,"link":"photo_2048677.html","width":130,"caption":"DSC_0064","height":87});
															thumbnails[446686] = clik.newPhoto({"id":446686,"src":"DSC_00501_thumb.jpg","galleries_id":35251,"server_id":18,"link":"photo_446686.html","width":130,"caption":"DSC_0050","height":87});
															thumbnails[448491] = clik.newPhoto({"id":448491,"src":"DSC_00503_thumb.jpg","galleries_id":35495,"server_id":18,"link":"photo_448491.html","width":130,"caption":"DSC_0050","height":91});
															thumbnails[2932980] = clik.newPhoto({"id":2932980,"src":"DSC_0092cx_thumb.jpg","galleries_id":38083,"server_id":18,"link":"photo_2932980.html","width":130,"caption":"DSC_0092","height":86});
															thumbnails[4136321] = clik.newPhoto({"id":4136321,"src":"In_the_distance_thumb.jpg","galleries_id":247512,"server_id":18,"link":"photo_4136321.html","width":130,"caption":"In the distance","height":87});
															thumbnails[8822626] = clik.newPhoto({"id":8822626,"src":"_DSC0030_2582925F-24E8-5EC4-4F8822B9CB6A7353_thumb.jpg","galleries_id":464279,"server_id":18,"link":"photo_8822626.html","width":130,"caption":"MFB0030","height":87});
															thumbnails[478413] = clik.newPhoto({"id":478413,"src":"DSC_00553_thumb.jpg","galleries_id":35251,"server_id":18,"link":"photo_478413.html","width":130,"caption":"DSC_0055","height":86});
															thumbnails[448493] = clik.newPhoto({"id":448493,"src":"DSC_00551_thumb.jpg","galleries_id":35495,"server_id":18,"link":"photo_448493.html","width":130,"caption":"DSC_0055","height":85});
															thumbnails[4136326] = clik.newPhoto({"id":4136326,"src":"Pathway_in_the_trees_thumb.jpg","galleries_id":247512,"server_id":18,"link":"photo_4136326.html","width":130,"caption":"Pathway in the trees","height":87});
															thumbnails[8822627] = clik.newPhoto({"id":8822627,"src":"_DSC0031_258B032C-24E8-5EC4-4F6B73123B5EFD3A_thumb.jpg","galleries_id":464279,"server_id":18,"link":"photo_8822627.html","width":130,"caption":"MFB0031","height":87});
															thumbnails[478414] = clik.newPhoto({"id":478414,"src":"DSC_00603_thumb.jpg","galleries_id":35251,"server_id":18,"link":"photo_478414.html","width":130,"caption":"DSC_0060","height":93});
															thumbnails[448498] = clik.newPhoto({"id":448498,"src":"DSC_00601_thumb.jpg","galleries_id":35495,"server_id":18,"link":"photo_448498.html","width":130,"caption":"DCS_0060","height":86});
															thumbnails[2932961] = clik.newPhoto({"id":2932961,"src":"_DSC0014_thumb.jpg","galleries_id":38083,"server_id":18,"link":"photo_2932961.html","width":130,"caption":"DSC_0014","height":92});
															thumbnails[4136331] = clik.newPhoto({"id":4136331,"src":"Pause_for_thought_thumb.jpg","galleries_id":247512,"server_id":18,"link":"photo_4136331.html","width":130,"caption":"Pause for thought","height":87});
															thumbnails[8822629] = clik.newPhoto({"id":8822629,"src":"_DSC0032_2593A7EB-24E8-5EC4-4FD1D63DF9794E92_thumb.jpg","galleries_id":464279,"server_id":18,"link":"photo_8822629.html","width":130,"caption":"MFB0032","height":87});
															thumbnails[460267] = clik.newPhoto({"id":460267,"src":"DSC_00651_thumb.jpg","galleries_id":35495,"server_id":18,"link":"photo_460267.html","width":130,"caption":"DSC_0065","height":86});
															thumbnails[478415] = clik.newPhoto({"id":478415,"src":"DSC_00653_thumb.jpg","galleries_id":35251,"server_id":18,"link":"photo_478415.html","width":130,"caption":"DSC_0065","height":86});
															thumbnails[592858] = clik.newPhoto({"id":592858,"src":"DSC_00407_thumb.jpg","galleries_id":38083,"server_id":18,"link":"photo_592858.html","width":130,"caption":"DSC_0040","height":87});
															thumbnails[1867284] = clik.newPhoto({"id":1867284,"src":"DSC_0018_thumb.jpg","galleries_id":38083,"server_id":18,"link":"photo_1867284.html","width":130,"caption":"DSC_0026","height":87});
															thumbnails[800033] = clik.newPhoto({"id":800033,"src":"DSC_0068_thumb.jpg","galleries_id":35645,"server_id":18,"link":"photo_800033.html","width":130,"caption":"DSC_0068","height":93});
															thumbnails[2933205] = clik.newPhoto({"id":2933205,"src":"DSC_0009_thumb.jpg","galleries_id":38083,"server_id":18,"link":"photo_2933205.html","width":130,"caption":"DSC_0009","height":92});
															thumbnails[8822630] = clik.newPhoto({"id":8822630,"src":"_DSC0036_259C4C1E-24E8-5EC4-4F5CAA6DE15F00DF_thumb.jpg","galleries_id":464279,"server_id":18,"link":"photo_8822630.html","width":130,"caption":"MFB0036","height":87});
															thumbnails[3816156] = clik.newPhoto({"id":3816156,"src":"_DSC0035_thumb.jpg","galleries_id":211097,"server_id":18,"link":"photo_3816156.html","width":130,"caption":"","height":100});
															thumbnails[882380] = clik.newPhoto({"id":882380,"src":"DSC_00705_thumb.jpg","galleries_id":35495,"server_id":18,"link":"photo_882380.html","width":130,"caption":"DSC_0070","height":93});
															thumbnails[478419] = clik.newPhoto({"id":478419,"src":"DSC_00702_thumb.jpg","galleries_id":35251,"server_id":18,"link":"photo_478419.html","width":130,"caption":"DSC_0070","height":86});
															thumbnails[2932965] = clik.newPhoto({"id":2932965,"src":"DSC_0008_thumb.jpg","galleries_id":38083,"server_id":18,"link":"photo_2932965.html","width":130,"caption":"DSC_0008","height":194});
															thumbnails[4136338] = clik.newPhoto({"id":4136338,"src":"Secret_wood_thumb.jpg","galleries_id":247512,"server_id":18,"link":"photo_4136338.html","width":130,"caption":"Secret wood","height":87});
															thumbnails[941025] = clik.newPhoto({"id":941025,"src":"DSC_00755_thumb.jpg","galleries_id":35495,"server_id":18,"link":"photo_941025.html","width":130,"caption":"DSC_0075","height":93});
															thumbnails[4136341] = clik.newPhoto({"id":4136341,"src":"Seeing_double_thumb.jpg","galleries_id":247512,"server_id":18,"link":"photo_4136341.html","width":130,"caption":"Seeing double","height":87});
															thumbnails[3816165] = clik.newPhoto({"id":3816165,"src":"_DSC0075_thumb.jpg","galleries_id":211097,"server_id":18,"link":"photo_3816165.html","width":130,"caption":"DSC_0075","height":87});
															thumbnails[2932972] = clik.newPhoto({"id":2932972,"src":"DSC_0014_thumb.jpg","galleries_id":38083,"server_id":18,"link":"photo_2932972.html","width":130,"caption":"DSC_0014","height":194});
															thumbnails[3816145] = clik.newPhoto({"id":3816145,"src":"_DSC0023_thumb.jpg","galleries_id":211097,"server_id":18,"link":"photo_3816145.html","width":130,"caption":"DSC_0023","height":169});
															thumbnails[3816076] = clik.newPhoto({"id":3816076,"src":"_DSC007_thumb.jpg","galleries_id":211097,"server_id":18,"link":"photo_3816076.html","width":130,"caption":"DSC_0007","height":169});
															thumbnails[3816105] = clik.newPhoto({"id":3816105,"src":"_DSC0019_thumb.jpg","galleries_id":211097,"server_id":18,"link":"photo_3816105.html","width":130,"caption":"DSC_0019","height":169});
															thumbnails[5287718] = clik.newPhoto({"id":5287718,"src":"_DSC0004_thumb.jpg","galleries_id":136956,"server_id":18,"link":"photo_5287718.html","width":130,"caption":"DSC_0004","height":92});
															thumbnails[1867301] = clik.newPhoto({"id":1867301,"src":"DSC_0103_thumb.jpg","galleries_id":35495,"server_id":18,"link":"photo_1867301.html","width":130,"caption":"DSC_0103","height":86});
															thumbnails[8822608] = clik.newPhoto({"id":8822608,"src":"_DSC0007_thumb.jpg","galleries_id":464279,"server_id":18,"link":"photo_8822608.html","width":130,"caption":"MFB0007","height":194});
															thumbnails[8822611] = clik.newPhoto({"id":8822611,"src":"_DSC0009_2546D3A4-24E8-5EC4-4F1D4A21A55185E4_thumb.jpg","galleries_id":464279,"server_id":18,"link":"photo_8822611.html","width":130,"caption":"MFB0009","height":194});
															thumbnails[9085129] = clik.newPhoto({"id":9085129,"src":"_AHS0102_1_thumb.jpg","galleries_id":136956,"server_id":35,"link":"photo_9085129.html","width":130,"caption":"AHS0102","height":87});
															thumbnails[4389332] = clik.newPhoto({"id":4389332,"src":"_DSC0037_thumb.jpg","galleries_id":35495,"server_id":18,"link":"photo_4389332.html","width":130,"caption":"DSC_0037","height":93});
															thumbnails[9085133] = clik.newPhoto({"id":9085133,"src":"_AHS0103_1_thumb.jpg","galleries_id":136956,"server_id":35,"link":"photo_9085133.html","width":130,"caption":"AHS0103","height":87});
															thumbnails[9085136] = clik.newPhoto({"id":9085136,"src":"_AHS0104_1_thumb.jpg","galleries_id":136956,"server_id":35,"link":"photo_9085136.html","width":130,"caption":"AHS0104","height":87});
															thumbnails[9085147] = clik.newPhoto({"id":9085147,"src":"_AHS0106_1_thumb.jpg","galleries_id":136956,"server_id":35,"link":"photo_9085147.html","width":130,"caption":"AHS0106","height":87});
															thumbnails[4389334] = clik.newPhoto({"id":4389334,"src":"_DSC0087_thumb.jpg","galleries_id":35495,"server_id":18,"link":"photo_4389334.html","width":130,"caption":"DSC_0087","height":93});
															thumbnails[5508424] = clik.newPhoto({"id":5508424,"src":"_DSC0028_thumb.jpg","galleries_id":35495,"server_id":18,"link":"photo_5508424.html","width":130,"caption":"DSC_0028","height":93});
															thumbnails[5508455] = clik.newPhoto({"id":5508455,"src":"_DSC0049_thumb.jpg","galleries_id":35495,"server_id":18,"link":"photo_5508455.html","width":130,"caption":"DSC_0049","height":93});
															thumbnails[5508458] = clik.newPhoto({"id":5508458,"src":"_DSC0055_thumb.jpg","galleries_id":35495,"server_id":18,"link":"photo_5508458.html","width":130,"caption":"DSC_0055","height":93});
															thumbnails[5508464] = clik.newPhoto({"id":5508464,"src":"_DSC0082_thumb.jpg","galleries_id":35495,"server_id":18,"link":"photo_5508464.html","width":130,"caption":"DSC_0082","height":93});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[464279] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Barrington Court Mistletoe Fayre","link":"gallery_464279.html","maxRecords":0.0,"photoIDs":[8822570.0,8822612.0,8822613.0,8822620.0,8822624.0,8822626.0,8822627.0,8822629.0,8822630.0,8822608.0,8822611.0],"skipIndex":0,"section_code":"gallery","featured_images":"8822630,8822629,8822627,8822626,8822624,8822620,8822613,8822612,8822611,8822608","id":464279,"singleSection":false});				  						galleries[35251] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Heritage","link":"gallery_35251.html","maxRecords":0.0,"photoIDs":[446681.0,799949.0,446683.0,446684.0,489132.0,446686.0,478413.0,478414.0,478415.0,478419.0],"skipIndex":0,"section_code":"gallery","featured_images":"799949,489132,478419,478415,478414,478413,446686,446684,446683,446681","id":35251,"singleSection":false});				  						galleries[35495] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Nature","link":"gallery_35495.html","maxRecords":0.0,"photoIDs":[447386.0,447387.0,447396.0,447409.0,447703.0,447722.0,447733.0,447745.0,448491.0,448493.0,448498.0,460267.0,882380.0,941025.0,1867301.0,4389332.0,4389334.0,5508424.0,5508455.0,5508458.0,5508464.0],"skipIndex":0,"section_code":"gallery","featured_images":"5508464,5508458,5508455,5508424,4389334,4389332,1867301,941025,882380,460267","id":35495,"singleSection":false});				  						galleries[211097] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wild In the Countryside","link":"gallery_211097.html","maxRecords":0.0,"photoIDs":[3816051.0,3816098.0,3816122.0,3816156.0,3816165.0,3816145.0,3816076.0,3816105.0],"skipIndex":0,"section_code":"gallery","featured_images":"3816165,3816156,3816145,3816122,3816105,3816098,3816076,3816051","id":211097,"singleSection":false});				  						galleries[35645] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Leisure","link":"gallery_35645.html","maxRecords":0.0,"photoIDs":[799970.0,799983.0,448904.0,449436.0,800020.0,800033.0],"skipIndex":0,"section_code":"gallery","featured_images":"800033,800020,799983,799970,449436,448904","id":35645,"singleSection":false});				  						galleries[136956] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Westcountry life","link":"gallery_136956.html","maxRecords":0.0,"photoIDs":[1867264.0,2048661.0,2063460.0,2048677.0,5287718.0,9085129.0,9085133.0,9085136.0,9085147.0],"skipIndex":0,"section_code":"gallery","featured_images":"9085147,9085136,9085133,9085129,5287718,2063460,2048677,2048661,1867264","id":136956,"singleSection":false});				  						galleries[210661] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Steam driven","link":"gallery_210661.html","maxRecords":0.0,"photoIDs":[3443026.0,3443027.0,3443028.0,3443029.0,3443030.0],"skipIndex":0,"section_code":"gallery","featured_images":"3443030,3443029,3443028,3443027,3443026","id":210661,"singleSection":false});				  						galleries[247512] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Seasons","link":"gallery_247512.html","maxRecords":0.0,"photoIDs":[4136295.0,4136300.0,4136301.0,4136303.0,4136310.0,4136314.0,4136316.0,4136321.0,4136326.0,4136331.0,4136338.0,4136341.0],"skipIndex":0,"section_code":"gallery","featured_images":"4136341,4136338,4136331,4136326,4136321,4136316,4136314,4136310,4136303,4136301","id":247512,"singleSection":false});				  						galleries[38083] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Autumn in view","link":"gallery_38083.html","maxRecords":0.0,"photoIDs":[2932974.0,2932976.0,2932978.0,2932969.0,2932980.0,2932961.0,592858.0,1867284.0,2933205.0,2932965.0,2932972.0],"skipIndex":0,"section_code":"gallery","featured_images":"2933205,2932980,2932978,2932976,2932974,2932972,2932969,2932965,2932961,1867284","id":38083,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '444553,445146,882380';
imageSets[2] = '444553,445146';
imageSets[3] = '9085147,9085136,9085133,9085129,8822630,8822629,8822627,8822626,8822624,8822620,8822613,8822612,8822611,8822608,8822570,5508464,5508458,5508455,5508424,5287718,4389334,4389332,4136341,4136338,4136331,4136326,4136321,4136316,4136314,4136310,4136303,4136301,4136300,4136295,3816165,3816156,3816145,3816122,3816105,3816098,3816076,3816051,3443030,3443029,3443028,3443027,3443026,2933205,2932980,2932978';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/gpidge/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/gpidge/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/gpidge/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/gpidge/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/gpidge/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/gpidge/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/gpidge/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/gpidge/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/gpidge/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/gpidge/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/gpidge/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/gpidge/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/gpidge/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/gpidge/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/gpidge/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/gpidge/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/gpidge/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/gpidge/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/gpidge/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/gpidge/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/gpidge/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/gpidge/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/gpidge/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/gpidge/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/gpidge/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/gpidge/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/gpidge/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = (backgrounds || photos || {})[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$detailContainer:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
		op = $.extend({},defaults,options),
		html = '', temp = '',
		photoId = op.nextPhoto.id,
		photoCaption = ''+op.nextPhoto.caption,
		photoSrc = op.nextPhoto.src;
	
	if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'TTL Photo Imaging: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
	temp += this.fnGetPaymentInfo();
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
																		temp += '<p>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
		 									temp += '<select class="paymentlink" name="payment_options_id" onchange="updateCartValue($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
		else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
											temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm">';
			temp += '	<input type="hidden" name="item_option" value="' + item_option + '">';
			temp += '	<input type="hidden" name="site" value="GPIDGE">';
			temp += '	<input type="hidden" name="item_number" value="'+ this.id +'">';
			temp += '	<input type="hidden" name="quantity" value="1">';
						temp += '	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\'\;" onmouseout="this.className=\'button\'\;" type="Button">';
							temp += '	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';
			temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
			temp += '<div id="confirmContainer">';
			temp += '<div id="paymentConfirm">Item added to cart</div>';
			temp += '</div>';
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

