window.thumbnails = {};
															thumbnails[2900581] = clik.newPhoto({"id":2900581,"src":"CP_Heb_054_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":92});
															thumbnails[2900584] = clik.newPhoto({"id":2900584,"src":"CP_WG_020_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":92});
															thumbnails[3884240] = clik.newPhoto({"id":3884240,"src":"Carreg_Cennen_Apr_09043_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Carrog Cennan, Carmarthenshire","height":88});
															thumbnails[6032939] = clik.newPhoto({"id":6032939,"src":"_DSC2389_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":173});
															thumbnails[6899808] = clik.newPhoto({"id":6899808,"src":"Hole_Open_Mike_047_1510101_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":154});
															thumbnails[8135883] = clik.newPhoto({"id":8135883,"src":"LL_EUKIN31_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":105});
															thumbnails[8905081] = clik.newPhoto({"id":8905081,"src":"HB_Wintr_Frame2_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":104});
															thumbnails[8560838] = clik.newPhoto({"id":8560838,"src":"OSB_11_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":147});
															thumbnails[8560479] = clik.newPhoto({"id":8560479,"src":"OSB_7_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":181});
															thumbnails[8560839] = clik.newPhoto({"id":8560839,"src":"OSB_12_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":137});
															thumbnails[8560859] = clik.newPhoto({"id":8560859,"src":"OSB_13_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":115});
															thumbnails[3395608] = clik.newPhoto({"id":3395608,"src":"Glasgow_Drumers_005_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"GD_05","height":177});
															thumbnails[8560471] = clik.newPhoto({"id":8560471,"src":"OSB_2_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":221});
															thumbnails[8560875] = clik.newPhoto({"id":8560875,"src":"OSB_15_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":188});
															thumbnails[8561206] = clik.newPhoto({"id":8561206,"src":"OSB_19_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":183});
															thumbnails[8560874] = clik.newPhoto({"id":8560874,"src":"OSB_14_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":89});
															thumbnails[2211128] = clik.newPhoto({"id":2211128,"src":"Doorway_Nook_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Doorway, Nook, Crimesworth Dean","height":191});
															thumbnails[3395642] = clik.newPhoto({"id":3395642,"src":"Glasgow_Drumers_101_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"GD_101","height":222});
															thumbnails[8560480] = clik.newPhoto({"id":8560480,"src":"OSB_8_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":81});
															thumbnails[8561243] = clik.newPhoto({"id":8561243,"src":"OSB_20_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":200});
															thumbnails[8560877] = clik.newPhoto({"id":8560877,"src":"OSB_17_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":175});
															thumbnails[8560469] = clik.newPhoto({"id":8560469,"src":"OSB_1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":106});
															thumbnails[4525715] = clik.newPhoto({"id":4525715,"src":"Dean_Clough_Image15_Oakwort1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Owd Bess, Oakworth Moor","height":99});
															thumbnails[8560878] = clik.newPhoto({"id":8560878,"src":"OSB_18_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":139});
															thumbnails[4525719] = clik.newPhoto({"id":4525719,"src":"Dean_Clough_Image18_Lower_S_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Lower Small Shaw","height":67});
															thumbnails[8560472] = clik.newPhoto({"id":8560472,"src":"OSB_3_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":123});
															thumbnails[8560876] = clik.newPhoto({"id":8560876,"src":"OSB_16_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":89});
															thumbnails[4525743] = clik.newPhoto({"id":4525743,"src":"Dean_Clough_Image24_Ruin_at_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Kebs, Blackshaw Head","height":99});
															thumbnails[4525758] = clik.newPhoto({"id":4525758,"src":"Dean_Clough_Image26_Greaves_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Greaves, Walshaw","height":99});
															thumbnails[4525771] = clik.newPhoto({"id":4525771,"src":"Dean_Clough_Image31_Nook_Ju_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Nook Interior, Crimsworth Dean","height":99});
															thumbnails[2289577] = clik.newPhoto({"id":2289577,"src":"Catherdral_Cavern_thumb.jpg","galleries_id":455377,"server_id":1,"link":"photo_2289577.html","width":130,"caption":"Catherdral Cavern, Tilbertwaite","height":93});
															thumbnails[2975713] = clik.newPhoto({"id":2975713,"src":"_DSC2451_thumb.jpg","galleries_id":455377,"server_id":1,"link":"photo_2975713.html","width":130,"caption":"","height":147});
															thumbnails[2995918] = clik.newPhoto({"id":2995918,"src":"Subway_Man_thumb.jpg","galleries_id":455377,"server_id":1,"link":"photo_2995918.html","width":130,"caption":"","height":88});
															thumbnails[3208808] = clik.newPhoto({"id":3208808,"src":"_DSC4856_thumb.jpg","galleries_id":455377,"server_id":1,"link":"photo_3208808.html","width":130,"caption":"London Road","height":87});
															thumbnails[3884381] = clik.newPhoto({"id":3884381,"src":"Colden_11_08_0161_thumb.jpg","galleries_id":455377,"server_id":1,"link":"photo_3884381.html","width":130,"caption":"Eves Wood, Hebden Bridge","height":94});
															thumbnails[3884521] = clik.newPhoto({"id":3884521,"src":"Jennifer_House_thumb.jpg","galleries_id":455377,"server_id":1,"link":"photo_3884521.html","width":130,"caption":"","height":93});
															thumbnails[6899809] = clik.newPhoto({"id":6899809,"src":"Hole_Open_Mike_052_151010_w1_thumb.jpg","galleries_id":455377,"server_id":1,"link":"photo_6899809.html","width":130,"caption":"","height":109});
															thumbnails[6899816] = clik.newPhoto({"id":6899816,"src":"Hole_Open_Mike_113_151010_w_thumb.jpg","galleries_id":455377,"server_id":1,"link":"photo_6899816.html","width":130,"caption":"","height":109});
															thumbnails[8167587] = clik.newPhoto({"id":8167587,"src":"Busker_Ludlow_thumb.jpg","galleries_id":455377,"server_id":1,"link":"photo_8167587.html","width":130,"caption":"","height":105});
															thumbnails[8208766] = clik.newPhoto({"id":8208766,"src":"Old_Lane_Mill_Small_052_thumb.jpg","galleries_id":455377,"server_id":1,"link":"photo_8208766.html","width":130,"caption":"","height":89});
															thumbnails[8214500] = clik.newPhoto({"id":8214500,"src":"Shed_thumb.jpg","galleries_id":455377,"server_id":1,"link":"photo_8214500.html","width":130,"caption":"","height":89});
															thumbnails[8432349] = clik.newPhoto({"id":8432349,"src":"Cambrian_thumb.jpg","galleries_id":455377,"server_id":1,"link":"photo_8432349.html","width":130,"caption":"Cambrian Mountains","height":93});
															thumbnails[8500107] = clik.newPhoto({"id":8500107,"src":"_DSC1921_thumb.jpg","galleries_id":455377,"server_id":1,"link":"photo_8500107.html","width":130,"caption":"","height":88});
															thumbnails[4525691] = clik.newPhoto({"id":4525691,"src":"Dean_Clough_Image8__Copse_H_thumb.jpg","galleries_id":455377,"server_id":1,"link":"photo_4525691.html","width":130,"caption":"Copse, High Laith","height":67});
															thumbnails[4525695] = clik.newPhoto({"id":4525695,"src":"Dean_Clough_Image10_Wycolla1_thumb.jpg","galleries_id":455377,"server_id":1,"link":"photo_4525695.html","width":130,"caption":"Stone Hedge, Wycollar","height":99});
															thumbnails[4525737] = clik.newPhoto({"id":4525737,"src":"Dean_Clough_Image22_Nook_Ap_thumb.jpg","galleries_id":455377,"server_id":1,"link":"photo_4525737.html","width":130,"caption":"Nook, Crimsworth Dean","height":99});
															thumbnails[4525775] = clik.newPhoto({"id":4525775,"src":"Dean_Clough_Image32_Grassy__thumb.jpg","galleries_id":455377,"server_id":1,"link":"photo_4525775.html","width":130,"caption":"Grass on Fence","height":99});
															thumbnails[1939485] = clik.newPhoto({"id":1939485,"src":"Bluebell_wood_thumb.jpg","galleries_id":435038,"server_id":1,"link":"photo_1939485.html","width":130,"caption":"Hard Castle Crags","height":88});
															thumbnails[1967199] = clik.newPhoto({"id":1967199,"src":"Gibson-Mill1_thumb.jpg","galleries_id":435038,"server_id":1,"link":"photo_1967199.html","width":130,"caption":"Gibson Mill, Hardcastle Crags","height":93});
															thumbnails[2123853] = clik.newPhoto({"id":2123853,"src":"Widdop2_thumb.jpg","galleries_id":435038,"server_id":1,"link":"photo_2123853.html","width":130,"caption":"Widdop Reservoir","height":101});
															thumbnails[2751024] = clik.newPhoto({"id":2751024,"src":"FG_EG_July_080253_thumb.jpg","galleries_id":435046,"server_id":1,"link":"photo_2751024.html","width":130,"caption":"","height":193});
															thumbnails[2751026] = clik.newPhoto({"id":2751026,"src":"FG_EG_July_080552_thumb.jpg","galleries_id":435046,"server_id":1,"link":"photo_2751026.html","width":130,"caption":"","height":193});
															thumbnails[2757777] = clik.newPhoto({"id":2757777,"src":"CP_Gen_034_thumb.jpg","galleries_id":441911,"server_id":1,"link":"photo_2757777.html","width":130,"caption":"","height":92});
															thumbnails[2877161] = clik.newPhoto({"id":2877161,"src":"_DSC39132_thumb.jpg","galleries_id":435047,"server_id":1,"link":"photo_2877161.html","width":130,"caption":"","height":88});
															thumbnails[2900583] = clik.newPhoto({"id":2900583,"src":"CP_TC_151_thumb.jpg","galleries_id":441911,"server_id":1,"link":"photo_2900583.html","width":130,"caption":"","height":91});
															thumbnails[3519205] = clik.newPhoto({"id":3519205,"src":"Heptonstall_i1_thumb.jpg","galleries_id":435038,"server_id":1,"link":"photo_3519205.html","width":130,"caption":"Heptonstall","height":98});
															thumbnails[3519207] = clik.newPhoto({"id":3519207,"src":"Hollins_Feb04081_thumb.jpg","galleries_id":435038,"server_id":1,"link":"photo_3519207.html","width":130,"caption":"Hollins Lane, Hebden Bridge","height":93});
															thumbnails[3519211] = clik.newPhoto({"id":3519211,"src":"Nab_Water_i1_thumb.jpg","galleries_id":435038,"server_id":1,"link":"photo_3519211.html","width":130,"caption":"Nab Water","height":72});
															thumbnails[3519213] = clik.newPhoto({"id":3519213,"src":"WIddop_Barns1_thumb.jpg","galleries_id":435038,"server_id":1,"link":"photo_3519213.html","width":130,"caption":"Barns, Widdop","height":91});
															thumbnails[3873127] = clik.newPhoto({"id":3873127,"src":"Wagon_thumb.jpg","galleries_id":435038,"server_id":1,"link":"photo_3873127.html","width":130,"caption":"","height":98});
															thumbnails[3873140] = clik.newPhoto({"id":3873140,"src":"Ancient-Land_thumb.jpg","galleries_id":435038,"server_id":1,"link":"photo_3873140.html","width":130,"caption":"Pendragon Castle, Mallerstang","height":100});
															thumbnails[3884237] = clik.newPhoto({"id":3884237,"src":"Carreg_Cennen_Apr_09023_thumb.jpg","galleries_id":435038,"server_id":1,"link":"photo_3884237.html","width":130,"caption":"Carrog Cennan, Carmarthenshire","height":61});
															thumbnails[3884247] = clik.newPhoto({"id":3884247,"src":"Limestone_i_thumb.jpg","galleries_id":435047,"server_id":1,"link":"photo_3884247.html","width":130,"caption":"Limestone","height":88});
															thumbnails[4010243] = clik.newPhoto({"id":4010243,"src":"Colden_11_08_039_thumb.jpg","galleries_id":435047,"server_id":1,"link":"photo_4010243.html","width":130,"caption":"","height":88});
															thumbnails[6899841] = clik.newPhoto({"id":6899841,"src":"Hole_Open_Mike_189_151010_w1_thumb.jpg","galleries_id":435046,"server_id":1,"link":"photo_6899841.html","width":130,"caption":"","height":109});
															thumbnails[8208765] = clik.newPhoto({"id":8208765,"src":"Old_Lane_Mill_1312_thumb.jpg","galleries_id":441911,"server_id":1,"link":"photo_8208765.html","width":130,"caption":"","height":89});
															thumbnails[8499703] = clik.newPhoto({"id":8499703,"src":"_DSC5202_thumb.jpg","galleries_id":435047,"server_id":1,"link":"photo_8499703.html","width":130,"caption":"","height":193});
															thumbnails[8613871] = clik.newPhoto({"id":8613871,"src":"_DSC4262_thumb.jpg","galleries_id":435046,"server_id":1,"link":"photo_8613871.html","width":130,"caption":"","height":112});
															thumbnails[8613873] = clik.newPhoto({"id":8613873,"src":"_DSC5721_thumb.jpg","galleries_id":435046,"server_id":1,"link":"photo_8613873.html","width":130,"caption":"","height":80});
															thumbnails[8613874] = clik.newPhoto({"id":8613874,"src":"_DSC5752_thumb.jpg","galleries_id":435046,"server_id":1,"link":"photo_8613874.html","width":130,"caption":"","height":92});
															thumbnails[8613876] = clik.newPhoto({"id":8613876,"src":"_DSC5764_thumb.jpg","galleries_id":435046,"server_id":1,"link":"photo_8613876.html","width":130,"caption":"","height":90});
															thumbnails[9016978] = clik.newPhoto({"id":9016978,"src":"Clun1_thumb.jpg","galleries_id":475240,"server_id":1,"link":"photo_9016978.html","width":130,"caption":"","height":86});
															thumbnails[9016979] = clik.newPhoto({"id":9016979,"src":"Clun2_thumb.jpg","galleries_id":475240,"server_id":1,"link":"photo_9016979.html","width":130,"caption":"","height":114});
															thumbnails[9016985] = clik.newPhoto({"id":9016985,"src":"Clun31_thumb.jpg","galleries_id":475240,"server_id":1,"link":"photo_9016985.html","width":130,"caption":"","height":89});
															thumbnails[9016989] = clik.newPhoto({"id":9016989,"src":"Clun4_thumb.jpg","galleries_id":475240,"server_id":1,"link":"photo_9016989.html","width":130,"caption":"","height":96});
															thumbnails[9016991] = clik.newPhoto({"id":9016991,"src":"Clun5_thumb.jpg","galleries_id":475240,"server_id":1,"link":"photo_9016991.html","width":130,"caption":"","height":79});
															thumbnails[2198164] = clik.newPhoto({"id":2198164,"src":"Castle_Rigg1_thumb.jpg","galleries_id":435038,"server_id":1,"link":"photo_2198164.html","width":130,"caption":"Castle Rigg, Cumbria","height":94});
															thumbnails[2751011] = clik.newPhoto({"id":2751011,"src":"FG_EG_July_080112_thumb.jpg","galleries_id":435046,"server_id":1,"link":"photo_2751011.html","width":130,"caption":"","height":87});
															thumbnails[4525556] = clik.newPhoto({"id":4525556,"src":"Dean_Clough_Image2_Crimeswo_thumb.jpg","galleries_id":435038,"server_id":1,"link":"photo_4525556.html","width":130,"caption":"Crimsworth Dean","height":67});
															thumbnails[3395633] = clik.newPhoto({"id":3395633,"src":"Glasgow_Drumers_066_thumb.jpg","galleries_id":435046,"server_id":1,"link":"photo_3395633.html","width":130,"caption":"","height":100});
															thumbnails[4525557] = clik.newPhoto({"id":4525557,"src":"Dean_Clough_Image3_Crimeswo_thumb.jpg","galleries_id":435038,"server_id":1,"link":"photo_4525557.html","width":130,"caption":"Crimsworth Dean from Nook","height":99});
															thumbnails[8560482] = clik.newPhoto({"id":8560482,"src":"OSB_9_thumb.jpg","galleries_id":435046,"server_id":1,"link":"photo_8560482.html","width":130,"caption":"","height":147});
															thumbnails[4526046] = clik.newPhoto({"id":4526046,"src":"Dean_Clough_Image4_Withins_1_thumb.jpg","galleries_id":435038,"server_id":1,"link":"photo_4526046.html","width":130,"caption":"Within Clough","height":98});
															thumbnails[4525681] = clik.newPhoto({"id":4525681,"src":"Dean_Clough_Image5_Ramsden__thumb.jpg","galleries_id":435038,"server_id":1,"link":"photo_4525681.html","width":130,"caption":"Wall & Fence, Ditches","height":67});
															thumbnails[4525683] = clik.newPhoto({"id":4525683,"src":"Dean_Clough_Image6_Dimmin-D_thumb.jpg","galleries_id":435038,"server_id":1,"link":"photo_4525683.html","width":130,"caption":"Dimmin Dale, Luddenden","height":99});
															thumbnails[4525685] = clik.newPhoto({"id":4525685,"src":"Dean_Clough_Image7_Top-With_thumb.jpg","galleries_id":435038,"server_id":1,"link":"photo_4525685.html","width":130,"caption":"Top Withins","height":67});
															thumbnails[8560475] = clik.newPhoto({"id":8560475,"src":"OSB_5_thumb.jpg","galleries_id":435046,"server_id":1,"link":"photo_8560475.html","width":130,"caption":"","height":186});
															thumbnails[4525693] = clik.newPhoto({"id":4525693,"src":"Dean_Clough_Image9_Cottages_thumb.jpg","galleries_id":435038,"server_id":1,"link":"photo_4525693.html","width":130,"caption":"Cottages at Popples","height":67});
															thumbnails[4525702] = clik.newPhoto({"id":4525702,"src":"Dean_Clough_Image11_Stormy-_thumb.jpg","galleries_id":435038,"server_id":1,"link":"photo_4525702.html","width":130,"caption":"Nab Water, Oxenhope","height":67});
															thumbnails[8560473] = clik.newPhoto({"id":8560473,"src":"OSB_4_thumb.jpg","galleries_id":435046,"server_id":1,"link":"photo_8560473.html","width":130,"caption":"","height":129});
															thumbnails[4525704] = clik.newPhoto({"id":4525704,"src":"Dean_Clough_Image12_Ramsden_thumb.jpg","galleries_id":435038,"server_id":1,"link":"photo_4525704.html","width":130,"caption":"Tree Ditches","height":99});
															thumbnails[8560477] = clik.newPhoto({"id":8560477,"src":"OSB_6_thumb.jpg","galleries_id":435046,"server_id":1,"link":"photo_8560477.html","width":130,"caption":"","height":125});
															thumbnails[4526047] = clik.newPhoto({"id":4526047,"src":"Dean_Clough_Image13_Able_Co1_thumb.jpg","galleries_id":435038,"server_id":1,"link":"photo_4526047.html","width":130,"caption":"Able Cross","height":98});
															thumbnails[4526051] = clik.newPhoto({"id":4526051,"src":"Dean_Clough_Image14_Churn_M1_thumb.jpg","galleries_id":435038,"server_id":1,"link":"photo_4526051.html","width":130,"caption":"Milk Churn Joan","height":98});
															thumbnails[8560483] = clik.newPhoto({"id":8560483,"src":"OSB_10_thumb.jpg","galleries_id":435046,"server_id":1,"link":"photo_8560483.html","width":130,"caption":"","height":171});
															thumbnails[4525716] = clik.newPhoto({"id":4525716,"src":"Dean_Clough_Image16_Hardbut_thumb.jpg","galleries_id":435038,"server_id":1,"link":"photo_4525716.html","width":130,"caption":"Hardibut Clough","height":99});
															thumbnails[4525718] = clik.newPhoto({"id":4525718,"src":"Dean_Clough_Image17_High_Ga_thumb.jpg","galleries_id":435038,"server_id":1,"link":"photo_4525718.html","width":130,"caption":"High Gate, Colden","height":67});
															thumbnails[4525720] = clik.newPhoto({"id":4525720,"src":"Dean_Clough_Image19_Rag_10__thumb.jpg","galleries_id":435038,"server_id":1,"link":"photo_4525720.html","width":130,"caption":"Rag, Oxenhope","height":67});
															thumbnails[4525729] = clik.newPhoto({"id":4525729,"src":"Dean_Clough_Image20_Crimesw_thumb.jpg","galleries_id":435038,"server_id":1,"link":"photo_4525729.html","width":130,"caption":"Sunny Bank, Crimsworth Dean","height":99});
															thumbnails[4525740] = clik.newPhoto({"id":4525740,"src":"Dean_Clough_Image23_Garage__thumb.jpg","galleries_id":441911,"server_id":1,"link":"photo_4525740.html","width":130,"caption":"Garage, Oxenhope","height":99});
															thumbnails[4525750] = clik.newPhoto({"id":4525750,"src":"Dean_Clough_Image25_Haworth_thumb.jpg","galleries_id":441911,"server_id":1,"link":"photo_4525750.html","width":130,"caption":"Green House, Howarth","height":99});
															thumbnails[4525759] = clik.newPhoto({"id":4525759,"src":"Dean_Clough_Image27_Wycolla_thumb.jpg","galleries_id":441911,"server_id":1,"link":"photo_4525759.html","width":130,"caption":"Wycollar Hall","height":99});
															thumbnails[4525766] = clik.newPhoto({"id":4525766,"src":"Dean_Clough_Image29_Handibu_thumb.jpg","galleries_id":441911,"server_id":1,"link":"photo_4525766.html","width":130,"caption":"Handibut Hill Interior, Crimsworth Dean","height":99});
															thumbnails[4525769] = clik.newPhoto({"id":4525769,"src":"Dean_Clough_Image30_The-Bot_thumb.jpg","galleries_id":435047,"server_id":1,"link":"photo_4525769.html","width":130,"caption":"","height":99});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  							galleries[455377] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portfolio","link":"photo_2289577.html","maxRecords":0.0,"photoIDs":[2289577.0,2975713.0,2995918.0,3208808.0,3884381.0,3884521.0,6899809.0,6899816.0,8167587.0,8208766.0,8214500.0,8432349.0,8500107.0,4525691.0,4525695.0,4525737.0,4525775.0],"skipIndex":true,"section_code":"gallery","featured_images":"2995918,2975713,2289577","id":455377,"singleSection":true});				  						galleries[435038] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Landscape","link":"section550992_435038.html","maxRecords":0.0,"photoIDs":[1939485.0,1967199.0,2123853.0,3519205.0,3519207.0,3519211.0,3519213.0,3873127.0,3873140.0,3884237.0,2198164.0,4525556.0,4525557.0,4526046.0,4525681.0,4525683.0,4525685.0,4525693.0,4525702.0,4525704.0,4526047.0,4526051.0,4525716.0,4525718.0,4525720.0,4525729.0],"skipIndex":0,"section_code":"section550992","featured_images":"4526051,4526047,4526046,4525729,4525720,4525718,4525716,4525704,4525702,4525693","id":435038,"singleSection":false});				  						galleries[441911] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Abandonment & Dereliction","link":"section550992_441911.html","maxRecords":0.0,"photoIDs":[2757777.0,2900583.0,8208765.0,4525740.0,4525750.0,4525759.0,4525766.0],"skipIndex":0,"section_code":"section550992","featured_images":"8208765,4525766,4525759,4525750,4525740,2900583,2757777","id":441911,"singleSection":false});				  						galleries[435047] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Miscellaneous ","link":"section550992_435047.html","maxRecords":0.0,"photoIDs":[2877161.0,3884247.0,4010243.0,8499703.0,4525769.0],"skipIndex":0,"section_code":"section550992","featured_images":"8499703,4525769,4010243,3884247,2877161","id":435047,"singleSection":false});				  						galleries[435046] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Performance ","link":"section550992_435046.html","maxRecords":0.0,"photoIDs":[2751024.0,2751026.0,6899841.0,8613871.0,8613873.0,8613874.0,8613876.0,2751011.0,3395633.0,8560482.0,8560475.0,8560473.0,8560477.0,8560483.0],"skipIndex":0,"section_code":"section550992","featured_images":"8560477,6899841,2751011","id":435046,"singleSection":false});				  						galleries[475240] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Clun","link":"section550992_475240.html","maxRecords":0.0,"photoIDs":[9016978.0,9016979.0,9016985.0,9016989.0,9016991.0],"skipIndex":0,"section_code":"section550992","featured_images":"9016991,9016989,9016985,9016979,9016978","id":475240,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8905081';
imageSets[2] = '6899841,2995918,2975713,2289577,2751011,8560477';
imageSets[3] = '6899841';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/jhammond/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/jhammond/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/jhammond/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/jhammond/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/jhammond/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/jhammond/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/jhammond/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/jhammond/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/jhammond/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/jhammond/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/jhammond/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/jhammond/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/jhammond/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/jhammond/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/jhammond/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/jhammond/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/jhammond/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/jhammond/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/jhammond/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/jhammond/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/jhammond/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/jhammond/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/jhammond/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/jhammond/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/jhammond/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/jhammond/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/jhammond/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 = 'Pennine Images: ' + 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;
	}
}

			

