window.thumbnails = {};
															thumbnails[605794] = clik.newPhoto({"id":605794,"src":"_MG_0232_2_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":78});
															thumbnails[1725910] = clik.newPhoto({"id":1725910,"src":"Children_Gift_Vouchera_thumb.jpg","galleries_id":115930,"server_id":1,"link":"photo_1725910.html","width":130,"caption":"","height":60});
															thumbnails[686272] = clik.newPhoto({"id":686272,"src":"_MG_0220_thumb.jpg","galleries_id":436528,"server_id":1,"link":"photo_686272.html","width":130,"caption":"","height":87});
															thumbnails[8188458] = clik.newPhoto({"id":8188458,"src":"_MG_7979-Edit_thumb.jpg","galleries_id":436506,"server_id":37,"link":"photo_8188458.html","width":130,"caption":"","height":87});
															thumbnails[8188550] = clik.newPhoto({"id":8188550,"src":"_MG_6550_thumb.jpg","galleries_id":436521,"server_id":1,"link":"photo_8188550.html","width":130,"caption":"","height":87});
															thumbnails[8188580] = clik.newPhoto({"id":8188580,"src":"Spurn_Point_East_Yorkshire_05-09-04_thumb.jpg","galleries_id":436532,"server_id":1,"link":"photo_8188580.html","width":130,"caption":"Spurn Point","height":87});
															thumbnails[8188466] = clik.newPhoto({"id":8188466,"src":"_MG_6227_Tarn_Hows_thumb.jpg","galleries_id":436506,"server_id":1,"link":"photo_8188466.html","width":130,"caption":"","height":87});
															thumbnails[8188583] = clik.newPhoto({"id":8188583,"src":"Skidby_Windmill_thumb.jpg","galleries_id":436532,"server_id":1,"link":"photo_8188583.html","width":130,"caption":"Skidby Mill","height":87});
															thumbnails[8188471] = clik.newPhoto({"id":8188471,"src":"_MG_7711_Great_Landgale_thumb.jpg","galleries_id":436506,"server_id":1,"link":"photo_8188471.html","width":130,"caption":"","height":87});
															thumbnails[8188468] = clik.newPhoto({"id":8188468,"src":"_MG_7733_The_Band_thumb.jpg","galleries_id":436506,"server_id":1,"link":"photo_8188468.html","width":130,"caption":"","height":195});
															thumbnails[8188445] = clik.newPhoto({"id":8188445,"src":"_MG_7919-Edit_thumb.jpg","galleries_id":436506,"server_id":1,"link":"photo_8188445.html","width":130,"caption":"","height":195});
															thumbnails[8188470] = clik.newPhoto({"id":8188470,"src":"_MG_7708_Little_Langdale_thumb.jpg","galleries_id":436506,"server_id":1,"link":"photo_8188470.html","width":130,"caption":"","height":195});
															thumbnails[2930193] = clik.newPhoto({"id":2930193,"src":"_MG_1458a_Stonethwaite_thumb.jpg","galleries_id":436506,"server_id":1,"link":"photo_2930193.html","width":130,"caption":"","height":87});
															thumbnails[2938719] = clik.newPhoto({"id":2938719,"src":"_MG_6239_thumb.jpg","galleries_id":436506,"server_id":1,"link":"photo_2938719.html","width":130,"caption":"","height":86});
															thumbnails[686440] = clik.newPhoto({"id":686440,"src":"_MG_6915_Blea_Tarn_thumb.jpg","galleries_id":436506,"server_id":1,"link":"photo_686440.html","width":130,"caption":"","height":87});
															thumbnails[4566142] = clik.newPhoto({"id":4566142,"src":"_MG_6976_thumb.jpg","galleries_id":436527,"server_id":1,"link":"photo_4566142.html","width":130,"caption":"","height":91});
															thumbnails[555457] = clik.newPhoto({"id":555457,"src":"Derwent Water (2) small pic_thumb.jpg","galleries_id":436527,"server_id":1,"link":"photo_555457.html","width":130,"caption":"","height":87});
															thumbnails[566917] = clik.newPhoto({"id":566917,"src":"Crummock Water (2)_thumb.jpg","galleries_id":436506,"server_id":1,"link":"photo_566917.html","width":130,"caption":"","height":87});
															thumbnails[796701] = clik.newPhoto({"id":796701,"src":"_MG_5496_thumb.JPG","galleries_id":436528,"server_id":1,"link":"photo_796701.html","width":130,"caption":"","height":87});
															thumbnails[2901193] = clik.newPhoto({"id":2901193,"src":"_MG_4674_thumb.jpg","galleries_id":50330,"server_id":1,"link":"photo_2901193.html","width":130,"caption":"","height":81});
															thumbnails[4336411] = clik.newPhoto({"id":4336411,"src":"_MG_6708_thumb.jpg","galleries_id":436521,"server_id":1,"link":"photo_4336411.html","width":130,"caption":"","height":87});
															thumbnails[576532] = clik.newPhoto({"id":576532,"src":"Rose a_thumb.jpg","galleries_id":436527,"server_id":1,"link":"photo_576532.html","width":130,"caption":"","height":87});
															thumbnails[2930118] = clik.newPhoto({"id":2930118,"src":"_MG_1417_thumb.jpg","galleries_id":436506,"server_id":1,"link":"photo_2930118.html","width":130,"caption":"","height":86});
															thumbnails[4566697] = clik.newPhoto({"id":4566697,"src":"_MG_3736_thumb.jpg","galleries_id":436528,"server_id":1,"link":"photo_4566697.html","width":130,"caption":"","height":77});
															thumbnails[556060] = clik.newPhoto({"id":556060,"src":"IMG_3770_thumb.jpg","galleries_id":436527,"server_id":1,"link":"photo_556060.html","width":130,"caption":"","height":87});
															thumbnails[2930301] = clik.newPhoto({"id":2930301,"src":"_MG_6192_thumb.jpg","galleries_id":436506,"server_id":1,"link":"photo_2930301.html","width":130,"caption":"","height":86});
															thumbnails[640848] = clik.newPhoto({"id":640848,"src":"Nuts and bolts, Spurn Point_thumb.JPG","galleries_id":436527,"server_id":1,"link":"photo_640848.html","width":130,"caption":"","height":87});
															thumbnails[4566188] = clik.newPhoto({"id":4566188,"src":"_MG_6709_thumb.jpg","galleries_id":436527,"server_id":1,"link":"photo_4566188.html","width":130,"caption":"","height":87});
															thumbnails[640775] = clik.newPhoto({"id":640775,"src":"Humber Sunrise_thumb.JPG","galleries_id":436527,"server_id":1,"link":"photo_640775.html","width":130,"caption":"","height":87});
															thumbnails[641162] = clik.newPhoto({"id":641162,"src":"Sneaton Forest 011103_thumb.jpg","galleries_id":436527,"server_id":1,"link":"photo_641162.html","width":130,"caption":"","height":87});
															thumbnails[641141] = clik.newPhoto({"id":641141,"src":"Sneaton  Forest (3) 01_11_03_thumb.jpg","galleries_id":436527,"server_id":1,"link":"photo_641141.html","width":130,"caption":"","height":87});
															thumbnails[555499] = clik.newPhoto({"id":555499,"src":"IMG_3818_thumb.jpg","galleries_id":436527,"server_id":1,"link":"photo_555499.html","width":130,"caption":"","height":87});
															thumbnails[556054] = clik.newPhoto({"id":556054,"src":"Langdales (1)_thumb.jpg","galleries_id":436527,"server_id":1,"link":"photo_556054.html","width":130,"caption":"","height":87});
															thumbnails[555491] = clik.newPhoto({"id":555491,"src":"Derwent Water_thumb.jpg","galleries_id":436527,"server_id":1,"link":"photo_555491.html","width":130,"caption":"","height":87});
															thumbnails[566773] = clik.newPhoto({"id":566773,"src":"IMG_4413_thumb.jpg","galleries_id":436535,"server_id":1,"link":"photo_566773.html","width":130,"caption":"","height":87});
															thumbnails[566922] = clik.newPhoto({"id":566922,"src":"_MG_6885_thumb.jpg","galleries_id":436506,"server_id":1,"link":"photo_566922.html","width":130,"caption":"","height":83});
															thumbnails[568137] = clik.newPhoto({"id":568137,"src":"_MG_0286_thumb.jpg","galleries_id":50330,"server_id":1,"link":"photo_568137.html","width":130,"caption":"","height":87});
															thumbnails[895010] = clik.newPhoto({"id":895010,"src":"_MG_6915_Blea_Tarn_5C465283-1E4F-37DC-71AA1248C29E7079_thumb.jpg","galleries_id":436521,"server_id":1,"link":"photo_895010.html","width":130,"caption":"","height":87});
															thumbnails[686472] = clik.newPhoto({"id":686472,"src":"Threlkeld_Mining_Museum_14_thumb.jpg","galleries_id":436521,"server_id":1,"link":"photo_686472.html","width":130,"caption":"","height":87});
															thumbnails[603083] = clik.newPhoto({"id":603083,"src":"_MG_8810_thumb.jpg","galleries_id":436535,"server_id":1,"link":"photo_603083.html","width":130,"caption":"","height":87});
															thumbnails[642912] = clik.newPhoto({"id":642912,"src":"Derwent Water (3)0362a - copy_thumb.jpg","galleries_id":436506,"server_id":1,"link":"photo_642912.html","width":130,"caption":"","height":87});
															thumbnails[2932617] = clik.newPhoto({"id":2932617,"src":"_MG_4262_thumb.jpg","galleries_id":50330,"server_id":1,"link":"photo_2932617.html","width":130,"caption":"","height":87});
															thumbnails[566766] = clik.newPhoto({"id":566766,"src":"IMG_4364a5_thumb.jpg","galleries_id":436535,"server_id":1,"link":"photo_566766.html","width":130,"caption":"","height":87});
															thumbnails[568135] = clik.newPhoto({"id":568135,"src":"_MG_3394_thumb.jpg","galleries_id":50330,"server_id":1,"link":"photo_568135.html","width":130,"caption":"","height":102});
															thumbnails[686346] = clik.newPhoto({"id":686346,"src":"Sunrise over Cat Bells, Lake District_thumb.jpg","galleries_id":436506,"server_id":1,"link":"photo_686346.html","width":130,"caption":"","height":87});
															thumbnails[4566177] = clik.newPhoto({"id":4566177,"src":"_MG_6825_thumb.jpg","galleries_id":436521,"server_id":1,"link":"photo_4566177.html","width":130,"caption":"","height":87});
															thumbnails[568149] = clik.newPhoto({"id":568149,"src":"_MG_2527_thumb.jpg","galleries_id":50330,"server_id":1,"link":"photo_568149.html","width":130,"caption":"","height":88});
															thumbnails[640749] = clik.newPhoto({"id":640749,"src":"IMG_2849a_thumb.jpg","galleries_id":436532,"server_id":1,"link":"photo_640749.html","width":130,"caption":"Spurn Point","height":87});
															thumbnails[8191143] = clik.newPhoto({"id":8191143,"src":"_MG_6419_thumb.jpg","galleries_id":436521,"server_id":1,"link":"photo_8191143.html","width":130,"caption":"","height":87});
															thumbnails[8191190] = clik.newPhoto({"id":8191190,"src":"_MG_8656_thumb.jpg","galleries_id":436535,"server_id":1,"link":"photo_8191190.html","width":130,"caption":"","height":195});
															thumbnails[640751] = clik.newPhoto({"id":640751,"src":"IMG_2870_thumb.JPG","galleries_id":436532,"server_id":1,"link":"photo_640751.html","width":130,"caption":"Spurn Point","height":87});
															thumbnails[799954] = clik.newPhoto({"id":799954,"src":"_MG_01051_thumb.jpg","galleries_id":436532,"server_id":1,"link":"photo_799954.html","width":130,"caption":"Spurn Point","height":87});
															thumbnails[885644] = clik.newPhoto({"id":885644,"src":"Copy of _MG_6378_thumb.jpg","galleries_id":436532,"server_id":1,"link":"photo_885644.html","width":130,"caption":"Humber Foreshore","height":87});
															thumbnails[799477] = clik.newPhoto({"id":799477,"src":"Spurn Point, East Yorkshire (No 0002)_thumb.jpg","galleries_id":436532,"server_id":1,"link":"photo_799477.html","width":130,"caption":"Spurn Point","height":195});
															thumbnails[928610] = clik.newPhoto({"id":928610,"src":"Out Newton Windfarm, East Yorkshire - Copy_thumb.JPG","galleries_id":436532,"server_id":1,"link":"photo_928610.html","width":130,"caption":"Out Newton Wind Farm","height":195});
															thumbnails[8221168] = clik.newPhoto({"id":8221168,"src":"IMG_3337_thumb.jpg","galleries_id":436532,"server_id":19,"link":"photo_8221168.html","width":130,"caption":"St Andrews Dock, Hull","height":195});
															thumbnails[555513] = clik.newPhoto({"id":555513,"src":"Threlkeld Mining Museum (2) - copy_thumb.jpg","galleries_id":436521,"server_id":1,"link":"photo_555513.html","width":130,"caption":"","height":195});
															thumbnails[568148] = clik.newPhoto({"id":568148,"src":"_MG_13281_thumb.jpg","galleries_id":50330,"server_id":1,"link":"photo_568148.html","width":130,"caption":"","height":87});
															thumbnails[596369] = clik.newPhoto({"id":596369,"src":"_MG_86651_thumb.jpg","galleries_id":436535,"server_id":1,"link":"photo_596369.html","width":130,"caption":"","height":195});
															thumbnails[8221032] = clik.newPhoto({"id":8221032,"src":"IMG_3338_thumb.jpg","galleries_id":436532,"server_id":19,"link":"photo_8221032.html","width":130,"caption":"St Andrews Dock, Hull","height":85});
															thumbnails[880991] = clik.newPhoto({"id":880991,"src":"Copy of DPP_0005_thumb.JPG","galleries_id":436527,"server_id":1,"link":"photo_880991.html","width":130,"caption":"","height":87});
															thumbnails[555585] = clik.newPhoto({"id":555585,"src":"Dandelion_thumb.jpg","galleries_id":436521,"server_id":1,"link":"photo_555585.html","width":130,"caption":"","height":195});
															thumbnails[556066] = clik.newPhoto({"id":556066,"src":"Langdales (3)_thumb.jpg","galleries_id":436527,"server_id":1,"link":"photo_556066.html","width":130,"caption":"","height":87});
															thumbnails[603097] = clik.newPhoto({"id":603097,"src":"_MG_1115_thumb.JPG","galleries_id":436528,"server_id":1,"link":"photo_603097.html","width":130,"caption":"","height":195});
															thumbnails[670339] = clik.newPhoto({"id":670339,"src":"58_thumb.JPG","galleries_id":50330,"server_id":1,"link":"photo_670339.html","width":130,"caption":"","height":87});
															thumbnails[799528] = clik.newPhoto({"id":799528,"src":"_MG_6958_thumb.jpg","galleries_id":436506,"server_id":1,"link":"photo_799528.html","width":130,"caption":"","height":195});
															thumbnails[8191172] = clik.newPhoto({"id":8191172,"src":"_MG_9733_thumb.jpg","galleries_id":436535,"server_id":1,"link":"photo_8191172.html","width":130,"caption":"","height":195});
															thumbnails[556071] = clik.newPhoto({"id":556071,"src":"Threlkeld Mining Museum (39a)_thumb.jpg","galleries_id":436527,"server_id":1,"link":"photo_556071.html","width":130,"caption":"","height":87});
															thumbnails[568175] = clik.newPhoto({"id":568175,"src":"_MG_7563_thumb.jpg","galleries_id":50330,"server_id":1,"link":"photo_568175.html","width":130,"caption":"","height":87});
															thumbnails[568993] = clik.newPhoto({"id":568993,"src":"IMG_3189_thumb.JPG","galleries_id":436528,"server_id":1,"link":"photo_568993.html","width":130,"caption":"","height":195});
															thumbnails[569416] = clik.newPhoto({"id":569416,"src":"_MG_8836_thumb.jpg","galleries_id":436535,"server_id":1,"link":"photo_569416.html","width":130,"caption":"","height":87});
															thumbnails[8188560] = clik.newPhoto({"id":8188560,"src":"_MG_6958a_thumb.jpg","galleries_id":436521,"server_id":1,"link":"photo_8188560.html","width":130,"caption":"","height":195});
															thumbnails[568136] = clik.newPhoto({"id":568136,"src":"_MG_0180_thumb.jpg","galleries_id":50330,"server_id":1,"link":"photo_568136.html","width":130,"caption":"","height":87});
															thumbnails[568627] = clik.newPhoto({"id":568627,"src":"_MG_04077_thumb.jpg","galleries_id":436528,"server_id":1,"link":"photo_568627.html","width":130,"caption":"","height":195});
															thumbnails[687193] = clik.newPhoto({"id":687193,"src":"Thirlmere (2)_thumb.jpg","galleries_id":436521,"server_id":1,"link":"photo_687193.html","width":130,"caption":"","height":195});
															thumbnails[796744] = clik.newPhoto({"id":796744,"src":"Cliff_Ridge_Roseberry_Topping_North_Yorkshire_thumb.jpg","galleries_id":436536,"server_id":1,"link":"photo_796744.html","width":130,"caption":"Cliff Ridge, Roseberry Topping","height":195});
															thumbnails[771600] = clik.newPhoto({"id":771600,"src":"_MG_5565_thumb.JPG","galleries_id":436528,"server_id":1,"link":"photo_771600.html","width":130,"caption":"","height":87});
															thumbnails[566675] = clik.newPhoto({"id":566675,"src":"IMG_4583_thumb.JPG","galleries_id":436528,"server_id":1,"link":"photo_566675.html","width":130,"caption":"","height":87});
															thumbnails[568566] = clik.newPhoto({"id":568566,"src":"_MG_1044_thumb.jpg","galleries_id":436528,"server_id":1,"link":"photo_568566.html","width":130,"caption":"","height":87});
															thumbnails[771556] = clik.newPhoto({"id":771556,"src":"IMG_5635_thumb.JPG","galleries_id":436528,"server_id":1,"link":"photo_771556.html","width":130,"caption":"","height":195});
															thumbnails[796756] = clik.newPhoto({"id":796756,"src":"2) Ullswater, Lake District_thumb.jpg","galleries_id":436506,"server_id":1,"link":"photo_796756.html","width":130,"caption":"","height":195});
															thumbnails[2932650] = clik.newPhoto({"id":2932650,"src":"_MG_4041_thumb.jpg","galleries_id":50330,"server_id":1,"link":"photo_2932650.html","width":130,"caption":"","height":93});
															thumbnails[363856] = clik.newPhoto({"id":363856,"src":"IMG_3104_thumb.jpg","galleries_id":436528,"server_id":1,"link":"photo_363856.html","width":130,"caption":"","height":195});
															thumbnails[714722] = clik.newPhoto({"id":714722,"src":"63_thumb.jpg","galleries_id":50330,"server_id":1,"link":"photo_714722.html","width":130,"caption":"","height":87});
															thumbnails[4336154] = clik.newPhoto({"id":4336154,"src":"_MG_6317_thumb.jpg","galleries_id":436506,"server_id":1,"link":"photo_4336154.html","width":130,"caption":"","height":195});
															thumbnails[523641] = clik.newPhoto({"id":523641,"src":"_MG_0568_thumb.jpg","galleries_id":436528,"server_id":1,"link":"photo_523641.html","width":130,"caption":"","height":195});
															thumbnails[566935] = clik.newPhoto({"id":566935,"src":"Grasmere_thumb.jpg","galleries_id":436506,"server_id":1,"link":"photo_566935.html","width":130,"caption":"","height":86});
															thumbnails[568156] = clik.newPhoto({"id":568156,"src":"Tickton Grange, Beverley_thumb.jpg","galleries_id":50330,"server_id":1,"link":"photo_568156.html","width":130,"caption":"","height":86});
															thumbnails[895009] = clik.newPhoto({"id":895009,"src":"Langdales (1) - Copy_thumb.jpg","galleries_id":436506,"server_id":1,"link":"photo_895009.html","width":130,"caption":"","height":87});
															thumbnails[895012] = clik.newPhoto({"id":895012,"src":"Derwent Water (15)a_thumb.jpg","galleries_id":436506,"server_id":1,"link":"photo_895012.html","width":130,"caption":"","height":87});
															thumbnails[895014] = clik.newPhoto({"id":895014,"src":"IMG_3596a_thumb.jpg","galleries_id":436506,"server_id":1,"link":"photo_895014.html","width":130,"caption":"","height":87});
															thumbnails[568138] = clik.newPhoto({"id":568138,"src":"_MG_3309_thumb.jpg","galleries_id":50330,"server_id":1,"link":"photo_568138.html","width":130,"caption":"","height":163});
															thumbnails[799720] = clik.newPhoto({"id":799720,"src":"Honiston Pass, Lake District - copy_thumb.jpg","galleries_id":436506,"server_id":1,"link":"photo_799720.html","width":130,"caption":"","height":87});
															thumbnails[568139] = clik.newPhoto({"id":568139,"src":"_MG_7564_thumb.jpg","galleries_id":50330,"server_id":1,"link":"photo_568139.html","width":130,"caption":"","height":205});
															thumbnails[603089] = clik.newPhoto({"id":603089,"src":"Threlkeld Mining Museum (20aa)_thumb.jpg","galleries_id":436527,"server_id":1,"link":"photo_603089.html","width":130,"caption":"","height":87});
															thumbnails[523639] = clik.newPhoto({"id":523639,"src":"_MG_9448_thumb.jpg","galleries_id":436528,"server_id":1,"link":"photo_523639.html","width":130,"caption":"","height":195});
															thumbnails[799894] = clik.newPhoto({"id":799894,"src":"Derwent Isle from Friar`s Crag, Lake District - Copy_thumb.jpg","galleries_id":436506,"server_id":1,"link":"photo_799894.html","width":130,"caption":"","height":87});
															thumbnails[4336628] = clik.newPhoto({"id":4336628,"src":"_MG_0419_thumb.jpg","galleries_id":50330,"server_id":1,"link":"photo_4336628.html","width":130,"caption":"","height":213});
															thumbnails[568141] = clik.newPhoto({"id":568141,"src":"_MG_2712_thumb.jpg","galleries_id":50330,"server_id":1,"link":"photo_568141.html","width":130,"caption":"","height":182});
															thumbnails[686158] = clik.newPhoto({"id":686158,"src":"_MG_11415_thumb.jpg","galleries_id":436528,"server_id":1,"link":"photo_686158.html","width":130,"caption":"","height":195});
															thumbnails[8188517] = clik.newPhoto({"id":8188517,"src":"_MG_7234_Rydal_Water_thumb.jpg","galleries_id":436506,"server_id":1,"link":"photo_8188517.html","width":130,"caption":"","height":87});
															thumbnails[568140] = clik.newPhoto({"id":568140,"src":"_MG_3959_thumb.jpg","galleries_id":50330,"server_id":1,"link":"photo_568140.html","width":130,"caption":"","height":176});
															thumbnails[568622] = clik.newPhoto({"id":568622,"src":"_MG_7395_thumb.jpg","galleries_id":436528,"server_id":1,"link":"photo_568622.html","width":130,"caption":"","height":195});
															thumbnails[8188526] = clik.newPhoto({"id":8188526,"src":"_MG_7694_Little_Langdale_thumb.jpg","galleries_id":436506,"server_id":1,"link":"photo_8188526.html","width":130,"caption":"","height":87});
															thumbnails[596371] = clik.newPhoto({"id":596371,"src":"_MG_0365_thumb.jpg","galleries_id":436528,"server_id":1,"link":"photo_596371.html","width":130,"caption":"","height":87});
															thumbnails[3020260] = clik.newPhoto({"id":3020260,"src":"_MG_1926_thumb.jpg","galleries_id":50330,"server_id":1,"link":"photo_3020260.html","width":130,"caption":"","height":182});
															thumbnails[771606] = clik.newPhoto({"id":771606,"src":"IMG_5721_thumb.JPG","galleries_id":436528,"server_id":1,"link":"photo_771606.html","width":130,"caption":"","height":87});
															thumbnails[771601] = clik.newPhoto({"id":771601,"src":"_MG_9549_thumb.jpg","galleries_id":436528,"server_id":1,"link":"photo_771601.html","width":130,"caption":"","height":87});
															thumbnails[777600] = clik.newPhoto({"id":777600,"src":"_MG_0295_thumb.jpg","galleries_id":50330,"server_id":1,"link":"photo_777600.html","width":130,"caption":"","height":195});
															thumbnails[8188532] = clik.newPhoto({"id":8188532,"src":"_MG_7621_Rydal_Water_thumb.jpg","galleries_id":436506,"server_id":1,"link":"photo_8188532.html","width":130,"caption":"","height":87});
															thumbnails[734032] = clik.newPhoto({"id":734032,"src":"_MG_5435a_thumb.jpg","galleries_id":436528,"server_id":1,"link":"photo_734032.html","width":130,"caption":"","height":195});
															thumbnails[687126] = clik.newPhoto({"id":687126,"src":"IMG_31263_thumb.jpg","galleries_id":436528,"server_id":1,"link":"photo_687126.html","width":130,"caption":"","height":195});
															thumbnails[568154] = clik.newPhoto({"id":568154,"src":"_MG_02782_thumb.jpg","galleries_id":50330,"server_id":1,"link":"photo_568154.html","width":130,"caption":"","height":195});
															thumbnails[568619] = clik.newPhoto({"id":568619,"src":"_MG_04313_thumb.jpg","galleries_id":436528,"server_id":1,"link":"photo_568619.html","width":130,"caption":"","height":195});
															thumbnails[686481] = clik.newPhoto({"id":686481,"src":"_MG_6334_thumb.jpg","galleries_id":436527,"server_id":1,"link":"photo_686481.html","width":130,"caption":"","height":81});
															thumbnails[8190909] = clik.newPhoto({"id":8190909,"src":"_MG_6371_thumb.jpg","galleries_id":436506,"server_id":1,"link":"photo_8190909.html","width":130,"caption":"","height":87});
															thumbnails[568155] = clik.newPhoto({"id":568155,"src":"1a_thumb.jpg","galleries_id":50330,"server_id":1,"link":"photo_568155.html","width":130,"caption":"","height":195});
															thumbnails[686227] = clik.newPhoto({"id":686227,"src":"IMG_32042_thumb.jpg","galleries_id":436528,"server_id":1,"link":"photo_686227.html","width":130,"caption":"","height":195});
															thumbnails[8190913] = clik.newPhoto({"id":8190913,"src":"_MG_6597_thumb.jpg","galleries_id":436506,"server_id":1,"link":"photo_8190913.html","width":130,"caption":"","height":87});
															thumbnails[1486339] = clik.newPhoto({"id":1486339,"src":"Annabel & Edward (177)_thumb.jpg","galleries_id":50330,"server_id":1,"link":"photo_1486339.html","width":130,"caption":"","height":195});
															thumbnails[8191092] = clik.newPhoto({"id":8191092,"src":"Honiston_Pass_Lake_District_thumb.jpg","galleries_id":436506,"server_id":1,"link":"photo_8191092.html","width":130,"caption":"","height":87});
															thumbnails[566722] = clik.newPhoto({"id":566722,"src":"IMG_4493_thumb.JPG","galleries_id":436528,"server_id":1,"link":"photo_566722.html","width":130,"caption":"","height":195});
															thumbnails[2930351] = clik.newPhoto({"id":2930351,"src":"_MG_4177_thumb.jpg","galleries_id":50330,"server_id":1,"link":"photo_2930351.html","width":130,"caption":"","height":91});
															thumbnails[2932661] = clik.newPhoto({"id":2932661,"src":"_MG_4520_thumb.jpg","galleries_id":50330,"server_id":1,"link":"photo_2932661.html","width":130,"caption":"","height":86});
															thumbnails[596368] = clik.newPhoto({"id":596368,"src":"_MG_0355_thumb.jpg","galleries_id":436528,"server_id":1,"link":"photo_596368.html","width":130,"caption":"","height":195});
															thumbnails[3020263] = clik.newPhoto({"id":3020263,"src":"_MG_2610_thumb.jpg","galleries_id":50330,"server_id":1,"link":"photo_3020263.html","width":130,"caption":"","height":87});
															thumbnails[566725] = clik.newPhoto({"id":566725,"src":"_MG_5491_thumb.JPG","galleries_id":436528,"server_id":1,"link":"photo_566725.html","width":130,"caption":"","height":195});
															thumbnails[2930454] = clik.newPhoto({"id":2930454,"src":"_MG_5387_thumb.jpg","galleries_id":50330,"server_id":1,"link":"photo_2930454.html","width":130,"caption":"","height":80});
															thumbnails[8191788] = clik.newPhoto({"id":8191788,"src":"_MG_7843-Edit_thumb.jpg","galleries_id":436506,"server_id":1,"link":"photo_8191788.html","width":130,"caption":"","height":195});
															thumbnails[2932675] = clik.newPhoto({"id":2932675,"src":"_MG_4236_thumb.jpg","galleries_id":50330,"server_id":1,"link":"photo_2932675.html","width":130,"caption":"","height":86});
															thumbnails[8217046] = clik.newPhoto({"id":8217046,"src":"_MG_7554_thumb.jpg","galleries_id":436506,"server_id":37,"link":"photo_8217046.html","width":130,"caption":"","height":195});
															thumbnails[3020274] = clik.newPhoto({"id":3020274,"src":"_MG_4896_thumb.jpg","galleries_id":50330,"server_id":1,"link":"photo_3020274.html","width":130,"caption":"","height":75});
															thumbnails[2932666] = clik.newPhoto({"id":2932666,"src":"_MG_5971_thumb.jpg","galleries_id":50330,"server_id":1,"link":"photo_2932666.html","width":130,"caption":"","height":86});
															thumbnails[568150] = clik.newPhoto({"id":568150,"src":"_MG_02662_thumb.jpg","galleries_id":50330,"server_id":1,"link":"photo_568150.html","width":130,"caption":"","height":87});
															thumbnails[555530] = clik.newPhoto({"id":555530,"src":"Derwent_Water_3_thumb.jpg","galleries_id":436527,"server_id":1,"link":"photo_555530.html","width":130,"caption":"","height":87});
															thumbnails[555634] = clik.newPhoto({"id":555634,"src":"Thirlmere (3)_thumb.jpg","galleries_id":436527,"server_id":1,"link":"photo_555634.html","width":130,"caption":"","height":195});
															thumbnails[555522] = clik.newPhoto({"id":555522,"src":"Honister Pass - copy_thumb.jpg","galleries_id":436527,"server_id":1,"link":"photo_555522.html","width":130,"caption":"","height":195});
															thumbnails[568146] = clik.newPhoto({"id":568146,"src":"_MG_8489_thumb.jpg","galleries_id":50330,"server_id":1,"link":"photo_568146.html","width":130,"caption":"","height":86});
															thumbnails[799981] = clik.newPhoto({"id":799981,"src":"Hull IMG_3219_thumb.jpg","galleries_id":436527,"server_id":1,"link":"photo_799981.html","width":130,"caption":"","height":195});
															thumbnails[685985] = clik.newPhoto({"id":685985,"src":"IMG_39451_thumb.jpg","galleries_id":436527,"server_id":1,"link":"photo_685985.html","width":130,"caption":"","height":195});
															thumbnails[800026] = clik.newPhoto({"id":800026,"src":"Irresistable Grace_thumb.jpg","galleries_id":436527,"server_id":1,"link":"photo_800026.html","width":130,"caption":"","height":195});
															thumbnails[938041] = clik.newPhoto({"id":938041,"src":"IMG_38721a_thumb.jpg","galleries_id":436527,"server_id":1,"link":"photo_938041.html","width":130,"caption":"","height":195});
															thumbnails[938038] = clik.newPhoto({"id":938038,"src":"IMG_3663a_thumb.jpg","galleries_id":436527,"server_id":1,"link":"photo_938038.html","width":130,"caption":"","height":195});
															thumbnails[568165] = clik.newPhoto({"id":568165,"src":"19_thumb.jpg","galleries_id":50330,"server_id":1,"link":"photo_568165.html","width":130,"caption":"","height":87});
															thumbnails[2933229] = clik.newPhoto({"id":2933229,"src":"_MG_5737_thumb.jpg","galleries_id":50330,"server_id":1,"link":"photo_2933229.html","width":130,"caption":"","height":76});
															thumbnails[3020346] = clik.newPhoto({"id":3020346,"src":"_MG_6108_thumb.jpg","galleries_id":50330,"server_id":1,"link":"photo_3020346.html","width":130,"caption":"","height":87});
															thumbnails[3020323] = clik.newPhoto({"id":3020323,"src":"_MG_8561_thumb.jpg","galleries_id":50330,"server_id":1,"link":"photo_3020323.html","width":130,"caption":"","height":87});
															thumbnails[3020361] = clik.newPhoto({"id":3020361,"src":"_MG_2917_thumb.jpg","galleries_id":50330,"server_id":1,"link":"photo_3020361.html","width":130,"caption":"","height":87});
															thumbnails[3020352] = clik.newPhoto({"id":3020352,"src":"_MG_4167_thumb.jpg","galleries_id":50330,"server_id":1,"link":"photo_3020352.html","width":130,"caption":"","height":114});
															thumbnails[568213] = clik.newPhoto({"id":568213,"src":"_MG_2794_thumb.jpg","galleries_id":50330,"server_id":1,"link":"photo_568213.html","width":130,"caption":"","height":195});
															thumbnails[568219] = clik.newPhoto({"id":568219,"src":"_MG_7457_thumb.jpg","galleries_id":50330,"server_id":1,"link":"photo_568219.html","width":130,"caption":"","height":195});
															thumbnails[568221] = clik.newPhoto({"id":568221,"src":"IMG_42571_thumb.jpg","galleries_id":50330,"server_id":1,"link":"photo_568221.html","width":130,"caption":"","height":195});
															thumbnails[568666] = clik.newPhoto({"id":568666,"src":"_MG_0562_thumb.JPG","galleries_id":436528,"server_id":1,"link":"photo_568666.html","width":130,"caption":"","height":195});
															thumbnails[4336428] = clik.newPhoto({"id":4336428,"src":"_MG_6504_thumb.jpg","galleries_id":436527,"server_id":1,"link":"photo_4336428.html","width":130,"caption":"","height":308});
															thumbnails[686112] = clik.newPhoto({"id":686112,"src":"Staveley IMG_31862_thumb.jpg","galleries_id":436528,"server_id":1,"link":"photo_686112.html","width":130,"caption":"","height":195});
															thumbnails[596370] = clik.newPhoto({"id":596370,"src":"IMG_5704_thumb.JPG","galleries_id":436528,"server_id":1,"link":"photo_596370.html","width":130,"caption":"","height":87});
															thumbnails[932171] = clik.newPhoto({"id":932171,"src":"_MG_6524_thumb.jpg","galleries_id":436528,"server_id":1,"link":"photo_932171.html","width":130,"caption":"","height":87});
															thumbnails[4566502] = clik.newPhoto({"id":4566502,"src":"_MG_1960_thumb.jpg","galleries_id":436528,"server_id":1,"link":"photo_4566502.html","width":130,"caption":"","height":60});
															thumbnails[932170] = clik.newPhoto({"id":932170,"src":"_MG_0232_thumb.jpg","galleries_id":436528,"server_id":1,"link":"photo_932170.html","width":130,"caption":"","height":63});
															thumbnails[3020280] = clik.newPhoto({"id":3020280,"src":"_MG_0595_thumb.jpg","galleries_id":50330,"server_id":1,"link":"photo_3020280.html","width":130,"caption":"","height":195});
															thumbnails[4336424] = clik.newPhoto({"id":4336424,"src":"_MG_6499_thumb.jpg","galleries_id":436527,"server_id":1,"link":"photo_4336424.html","width":130,"caption":"","height":274});
															thumbnails[777601] = clik.newPhoto({"id":777601,"src":"_MG_6233a_thumb.JPG","galleries_id":50330,"server_id":1,"link":"photo_777601.html","width":130,"caption":"","height":195});
															thumbnails[8191153] = clik.newPhoto({"id":8191153,"src":"_MG_7158_White_Moss_Wood_thumb.jpg","galleries_id":436527,"server_id":1,"link":"photo_8191153.html","width":130,"caption":"","height":87});
															thumbnails[3020272] = clik.newPhoto({"id":3020272,"src":"_MG_1884_thumb.jpg","galleries_id":50330,"server_id":1,"link":"photo_3020272.html","width":130,"caption":"","height":52});
															thumbnails[4336573] = clik.newPhoto({"id":4336573,"src":"_MG_5470a_thumb.jpg","galleries_id":436528,"server_id":1,"link":"photo_4336573.html","width":130,"caption":"","height":47});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[436527] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Art","link":"gallery_436527.html","maxRecords":0.0,"photoIDs":[4566142.0,555457.0,576532.0,556060.0,640848.0,4566188.0,640775.0,641162.0,641141.0,555499.0,556054.0,555491.0,880991.0,556066.0,556071.0,603089.0,686481.0,555530.0,555634.0,555522.0,799981.0,685985.0,800026.0,938041.0,938038.0,4336428.0,4336424.0,8191153.0],"skipIndex":0,"section_code":"gallery","featured_images":576532.0,"id":436527,"singleSection":false});				  						galleries[436521] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Black & White","link":"gallery_436521.html","maxRecords":0.0,"photoIDs":[8188550.0,4336411.0,895010.0,686472.0,4566177.0,8191143.0,555513.0,555585.0,8188560.0,687193.0],"skipIndex":0,"section_code":"gallery","featured_images":4566177.0,"id":436521,"singleSection":false});				  						galleries[436532] = clik.newGallery({"parentGallery":68731,"usePopups":false,"title":"East Yorkshire","link":"gallery_436532.html","maxRecords":0.0,"photoIDs":[8188580.0,8188583.0,640749.0,640751.0,799954.0,885644.0,799477.0,928610.0,8221168.0,8221032.0],"skipIndex":0,"section_code":"gallery","featured_images":8188583.0,"id":436532,"singleSection":false});				  						galleries[436535] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Mother & Baby","link":"gallery_436535.html","maxRecords":0.0,"photoIDs":[566773.0,603083.0,566766.0,8191190.0,596369.0,8191172.0,569416.0],"skipIndex":0,"section_code":"gallery","featured_images":603083.0,"id":436535,"singleSection":false});				  						galleries[436536] = clik.newGallery({"parentGallery":68731,"usePopups":false,"title":"North Yorkshire","link":"gallery_436536.html","maxRecords":0.0,"photoIDs":[796744.0],"skipIndex":0,"section_code":"gallery","featured_images":796744.0,"id":436536,"singleSection":false});				  						galleries[436528] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portraits","link":"gallery_436528.html","maxRecords":0.0,"photoIDs":[686272.0,796701.0,4566697.0,603097.0,568993.0,568627.0,771600.0,566675.0,568566.0,771556.0,363856.0,523641.0,523639.0,686158.0,568622.0,596371.0,771606.0,771601.0,734032.0,687126.0,568619.0,686227.0,566722.0,596368.0,566725.0,568666.0,686112.0,596370.0,932171.0,4566502.0,932170.0,4336573.0],"skipIndex":0,"section_code":"gallery","featured_images":"796701,686272","id":436528,"singleSection":false});				  							galleries[115930] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gift Vouchers","link":"photo_1725910.html","maxRecords":0.0,"photoIDs":[1725910.0],"skipIndex":true,"section_code":"section151740","featured_images":1725910.0,"id":115930,"singleSection":true});				  						galleries[50330] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Weddings","link":"gallery_50330.html","maxRecords":0.0,"photoIDs":[2901193.0,568137.0,2932617.0,568135.0,568149.0,568148.0,670339.0,568175.0,568136.0,2932650.0,714722.0,568156.0,568138.0,568139.0,4336628.0,568141.0,568140.0,3020260.0,777600.0,568154.0,568155.0,1486339.0,2930351.0,2932661.0,3020263.0,2930454.0,2932675.0,3020274.0,2932666.0,568150.0,568146.0,568165.0,2933229.0,3020346.0,3020323.0,3020361.0,3020352.0,568213.0,568219.0,568221.0,3020280.0,777601.0,3020272.0],"skipIndex":0,"section_code":"gallery","featured_images":568175.0,"id":50330,"singleSection":false});				  						galleries[436506] = clik.newGallery({"parentGallery":68731,"usePopups":false,"title":"Lake District","link":"gallery_436506.html","maxRecords":0.0,"photoIDs":[8188458.0,8188466.0,8188471.0,8188468.0,8188445.0,8188470.0,2930193.0,2938719.0,686440.0,566917.0,2930118.0,2930301.0,566922.0,642912.0,686346.0,799528.0,796756.0,4336154.0,566935.0,895009.0,895012.0,895014.0,799720.0,799894.0,8188517.0,8188526.0,8188532.0,8190909.0,8190913.0,8191092.0,8191788.0,8217046.0],"skipIndex":0,"section_code":"gallery","featured_images":8188458.0,"id":436506,"singleSection":false});				  						galleries[68731] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Landscapes","link":"gallery_68731.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"8188583,8188458","id":68731,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '605794';
imageSets[2] = '8188583,8188458,4566177,1725910,796701,686272,603083,576532,568175';
imageSets[3] = '8221168,8221032,8217046,8191788,8191190,8191172,8191153,8191143,8191092,8190913,8190909,8188583,8188580,8188560,8188550,8188532,8188526,8188517,8188471,8188470,8188468,8188466,8188458,8188445,4566697,4566502,4566188,4566177,4566142,4336628,4336573,4336428,4336424,4336411,4336154,3020361,3020352,3020346,3020323,3020280,3020274,3020272,3020263,3020260,2938719,2933229,2932675,2932666,2932661,2932650';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/dollytupp/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/dollytupp/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/dollytupp/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/dollytupp/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/dollytupp/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/dollytupp/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/dollytupp/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/dollytupp/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/dollytupp/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/dollytupp/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/dollytupp/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/dollytupp/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/dollytupp/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/dollytupp/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/dollytupp/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/dollytupp/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/dollytupp/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/dollytupp/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/dollytupp/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/dollytupp/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/dollytupp/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/dollytupp/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/dollytupp/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/dollytupp/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 += 'section151740.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 && 'section151740' != '') {
					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 = 'Jacqueline Wright Photography: ' + 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>Image 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 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="DOLLYTUPP">';
			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({					href: thumbnails[imageID].fnGalleryLink(gallery_id),					title: galleries[gallery_id].title				});
			}
		}
	}
}

/***************************************************************************
* 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;
	}
}

			

