window.thumbnails = {};
															thumbnails[7300948] = clik.newPhoto({"id":7300948,"src":"IMG_1064_thumb.jpg","galleries_id":394950,"server_id":5,"link":"photo_7300948.html","width":130,"caption":"Hethpool, Northumberland","height":98});
															thumbnails[7309167] = clik.newPhoto({"id":7309167,"src":"AD207_MG_5557-making-the-shoe_thumb.jpg","galleries_id":395370,"server_id":5,"link":"photo_7309167.html","width":130,"caption":"making the shoe","height":184});
															thumbnails[7309420] = clik.newPhoto({"id":7309420,"src":"IMG_2163_thumb.jpg","galleries_id":395389,"server_id":5,"link":"photo_7309420.html","width":130,"caption":"Hexham Mart, Northumberland","height":93});
															thumbnails[7316302] = clik.newPhoto({"id":7316302,"src":"A2_Matt_1offJune_08-84_thumb.jpg","galleries_id":395775,"server_id":5,"link":"photo_7316302.html","width":130,"caption":"Davey and Ross","height":92});
															thumbnails[7318832] = clik.newPhoto({"id":7318832,"src":"IMG_1478-2_thumb.jpg","galleries_id":395389,"server_id":5,"link":"photo_7318832.html","width":130,"caption":"Sheep farming in Northumberland","height":87});
															thumbnails[7318857] = clik.newPhoto({"id":7318857,"src":"_MG_8855_thumb.jpg","galleries_id":395389,"server_id":5,"link":"photo_7318857.html","width":130,"caption":"Border Collie Puppy, Allensgreen, Northumberland","height":190});
															thumbnails[7318972] = clik.newPhoto({"id":7318972,"src":"IMG_2541_thumb.jpg","galleries_id":395935,"server_id":5,"link":"photo_7318972.html","width":130,"caption":"Ploughing with vintage tractors, Northumberland","height":87});
															thumbnails[7319035] = clik.newPhoto({"id":7319035,"src":"Banding_thumb.jpg","galleries_id":395957,"server_id":5,"link":"photo_7319035.html","width":130,"caption":"Low Newton, Northumberland","height":87});
															thumbnails[7321137] = clik.newPhoto({"id":7321137,"src":"_MG_5267_thumb.jpg","galleries_id":395370,"server_id":5,"link":"photo_7321137.html","width":130,"caption":"Farriery, Northumberland","height":182});
															thumbnails[7321143] = clik.newPhoto({"id":7321143,"src":"IMG_1208_AE3E494E-24E8-5EC4-4F3AD6B01674418D_thumb.jpg","galleries_id":395957,"server_id":5,"link":"photo_7321143.html","width":130,"caption":"Low Newton, Northumberland","height":182});
															thumbnails[7321157] = clik.newPhoto({"id":7321157,"src":"IMG_1553_AE434046-24E8-5EC4-4F30829C852F3B2A_thumb.jpg","galleries_id":395775,"server_id":5,"link":"photo_7321157.html","width":130,"caption":"Davey & Ross","height":182});
															thumbnails[7321160] = clik.newPhoto({"id":7321160,"src":"Jock_thumb.jpg","galleries_id":395389,"server_id":5,"link":"photo_7321160.html","width":130,"caption":"Jock","height":182});
															thumbnails[7321165] = clik.newPhoto({"id":7321165,"src":"AD207_MG_5908_AE495E78-24E8-5EC4-4F4779386B6B3816_thumb.jpg","galleries_id":395379,"server_id":5,"link":"photo_7321165.html","width":130,"caption":"","height":182});
															thumbnails[7321177] = clik.newPhoto({"id":7321177,"src":"IMG_8505-chromatic-aberration-adjusted_AE50357F-24E8-5EC4-4F9B3F91F1563E7F_thumb.jpg","galleries_id":394950,"server_id":5,"link":"photo_7321177.html","width":130,"caption":"High Trees","height":182});
															thumbnails[7321209] = clik.newPhoto({"id":7321209,"src":"IMG_2697_AE52762D-24E8-5EC4-4F3704E84BEB9712_thumb.jpg","galleries_id":395935,"server_id":5,"link":"photo_7321209.html","width":130,"caption":"Ploughing with vintage tractors, Northumberland","height":182});
															thumbnails[7328581] = clik.newPhoto({"id":7328581,"src":"_MG_9747_thumb.jpg","galleries_id":395957,"server_id":5,"link":"photo_7328581.html","width":130,"caption":"Low Newton and Craster, Northumberland","height":183});
															thumbnails[7300949] = clik.newPhoto({"id":7300949,"src":"IMG_1321_thumb.jpg","galleries_id":394950,"server_id":5,"link":"photo_7300949.html","width":130,"caption":"Amerside Law, Northumberland","height":98});
															thumbnails[7309168] = clik.newPhoto({"id":7309168,"src":"AD207_MG_5733-Farrier_thumb.jpg","galleries_id":395370,"server_id":5,"link":"photo_7309168.html","width":130,"caption":"Farrier","height":184});
															thumbnails[7309336] = clik.newPhoto({"id":7309336,"src":"_MG_0014_thumb.jpg","galleries_id":395379,"server_id":5,"link":"photo_7309336.html","width":130,"caption":"","height":87});
															thumbnails[7309421] = clik.newPhoto({"id":7309421,"src":"IMG_2188_thumb.jpg","galleries_id":395389,"server_id":5,"link":"photo_7309421.html","width":130,"caption":"Hexham Mart, Northumberland","height":193});
															thumbnails[7316303] = clik.newPhoto({"id":7316303,"src":"A2_Matt_1_off_June_08-310_thumb.jpg","galleries_id":395775,"server_id":5,"link":"photo_7316303.html","width":130,"caption":"Robyn","height":92});
															thumbnails[7316353] = clik.newPhoto({"id":7316353,"src":"IMG_1562_thumb.jpg","galleries_id":395775,"server_id":5,"link":"photo_7316353.html","width":130,"caption":"Davey & Ross","height":87});
															thumbnails[7318833] = clik.newPhoto({"id":7318833,"src":"IMG_3379_thumb.jpg","galleries_id":395389,"server_id":5,"link":"photo_7318833.html","width":130,"caption":"Eddie","height":181});
															thumbnails[7318974] = clik.newPhoto({"id":7318974,"src":"IMG_2560_thumb.jpg","galleries_id":395935,"server_id":5,"link":"photo_7318974.html","width":130,"caption":"Ploughing with vintage tractors, Northumberland","height":177});
															thumbnails[7319036] = clik.newPhoto({"id":7319036,"src":"Catch-of-the-day_thumb.jpg","galleries_id":395957,"server_id":5,"link":"photo_7319036.html","width":130,"caption":"Low Newton and Craster, Northumberland","height":87});
															thumbnails[7300950] = clik.newPhoto({"id":7300950,"src":"IMG_1353_thumb.jpg","galleries_id":394950,"server_id":5,"link":"photo_7300950.html","width":130,"caption":"Amerside Law, Northumberland","height":98});
															thumbnails[7309337] = clik.newPhoto({"id":7309337,"src":"_MG_0088_thumb.jpg","galleries_id":395379,"server_id":5,"link":"photo_7309337.html","width":130,"caption":"","height":195});
															thumbnails[7309422] = clik.newPhoto({"id":7309422,"src":"IMG_2197_thumb.jpg","galleries_id":395389,"server_id":5,"link":"photo_7309422.html","width":130,"caption":"Hexham Mart, Northumberland","height":195});
															thumbnails[7316304] = clik.newPhoto({"id":7316304,"src":"AD207-08-36_Davey-and-Ross_thumb.jpg","galleries_id":395775,"server_id":5,"link":"photo_7316304.html","width":130,"caption":"Working Clydesdales, Northumberland","height":87});
															thumbnails[7316354] = clik.newPhoto({"id":7316354,"src":"IMG_3562_thumb.jpg","galleries_id":395775,"server_id":5,"link":"photo_7316354.html","width":130,"caption":"Working Clydesdales, Northumberland","height":85});
															thumbnails[7318252] = clik.newPhoto({"id":7318252,"src":"IMG_1613_thumb.jpg","galleries_id":395389,"server_id":5,"link":"photo_7318252.html","width":130,"caption":"Sheep farming in Northumberland","height":88});
															thumbnails[7318834] = clik.newPhoto({"id":7318834,"src":"IMG_3426_thumb.jpg","galleries_id":395389,"server_id":5,"link":"photo_7318834.html","width":130,"caption":"Sheep farming in Northumberland","height":168});
															thumbnails[7318975] = clik.newPhoto({"id":7318975,"src":"IMG_2577_thumb.jpg","galleries_id":395935,"server_id":5,"link":"photo_7318975.html","width":130,"caption":"Ploughing with vintage tractors, Northumberland","height":200});
															thumbnails[7319037] = clik.newPhoto({"id":7319037,"src":"IMG_0968_thumb.jpg","galleries_id":395957,"server_id":5,"link":"photo_7319037.html","width":130,"caption":"Amble Harbour, Northumberland","height":87});
															thumbnails[7300951] = clik.newPhoto({"id":7300951,"src":"IMG_1921_thumb.jpg","galleries_id":394950,"server_id":5,"link":"photo_7300951.html","width":130,"caption":"Hethpool, Northumberland","height":195});
															thumbnails[7309171] = clik.newPhoto({"id":7309171,"src":"Forging_thumb.jpg","galleries_id":395370,"server_id":5,"link":"photo_7309171.html","width":130,"caption":"Forging","height":195});
															thumbnails[7309338] = clik.newPhoto({"id":7309338,"src":"_MG_0128_thumb.jpg","galleries_id":395379,"server_id":5,"link":"photo_7309338.html","width":130,"caption":"","height":92});
															thumbnails[7309423] = clik.newPhoto({"id":7309423,"src":"IMG_2209_thumb.jpg","galleries_id":395389,"server_id":5,"link":"photo_7309423.html","width":130,"caption":"Hexham Mart, Northumberland","height":195});
															thumbnails[7316355] = clik.newPhoto({"id":7316355,"src":"IMG_4292_thumb.jpg","galleries_id":395775,"server_id":5,"link":"photo_7316355.html","width":130,"caption":"Working with Clydesdales, Northumberland","height":195});
															thumbnails[7318976] = clik.newPhoto({"id":7318976,"src":"IMG_2597_thumb.jpg","galleries_id":395935,"server_id":5,"link":"photo_7318976.html","width":130,"caption":"Ploughing with vintage tractors, Northumberland","height":87});
															thumbnails[7319038] = clik.newPhoto({"id":7319038,"src":"IMG_0980_thumb.jpg","galleries_id":395957,"server_id":5,"link":"photo_7319038.html","width":130,"caption":"Amble Harbour, Northumberland","height":87});
															thumbnails[7300952] = clik.newPhoto({"id":7300952,"src":"IMG_1940_thumb.jpg","galleries_id":394950,"server_id":5,"link":"photo_7300952.html","width":130,"caption":"","height":98});
															thumbnails[7309172] = clik.newPhoto({"id":7309172,"src":"Moulding_thumb.jpg","galleries_id":395370,"server_id":5,"link":"photo_7309172.html","width":130,"caption":"Moulding","height":195});
															thumbnails[7309339] = clik.newPhoto({"id":7309339,"src":"_MG_0638_thumb.jpg","galleries_id":395379,"server_id":5,"link":"photo_7309339.html","width":130,"caption":"Snaafi Shanoo","height":60});
															thumbnails[7309424] = clik.newPhoto({"id":7309424,"src":"IMG_2219_thumb.jpg","galleries_id":395389,"server_id":5,"link":"photo_7309424.html","width":130,"caption":"Hexham Mart, Northumberland","height":87});
															thumbnails[7316356] = clik.newPhoto({"id":7316356,"src":"IMG_5628_thumb.jpg","galleries_id":395775,"server_id":5,"link":"photo_7316356.html","width":130,"caption":"Dick","height":195});
															thumbnails[7318836] = clik.newPhoto({"id":7318836,"src":"IMG_3442_A9E7E97E-24E8-5EC4-4FFA14B8CB853508_thumb.jpg","galleries_id":395389,"server_id":5,"link":"photo_7318836.html","width":130,"caption":"Sheep farming in Northumberland","height":87});
															thumbnails[7318978] = clik.newPhoto({"id":7318978,"src":"IMG_2607_thumb.jpg","galleries_id":395935,"server_id":5,"link":"photo_7318978.html","width":130,"caption":"Ploughing with vintage tractors, Northumberland","height":87});
															thumbnails[7319039] = clik.newPhoto({"id":7319039,"src":"IMG_0984_thumb.jpg","galleries_id":395957,"server_id":5,"link":"photo_7319039.html","width":130,"caption":"Amble Harbour, Northumberland","height":87});
															thumbnails[7300953] = clik.newPhoto({"id":7300953,"src":"IMG_1999_thumb.jpg","galleries_id":394950,"server_id":5,"link":"photo_7300953.html","width":130,"caption":"Haulier in Hat","height":98});
															thumbnails[7309173] = clik.newPhoto({"id":7309173,"src":"_MG_5462_thumb.jpg","galleries_id":395370,"server_id":5,"link":"photo_7309173.html","width":130,"caption":"","height":195});
															thumbnails[7309340] = clik.newPhoto({"id":7309340,"src":"_MG_0726-Edit_thumb.jpg","galleries_id":395379,"server_id":5,"link":"photo_7309340.html","width":130,"caption":"","height":108});
															thumbnails[7309425] = clik.newPhoto({"id":7309425,"src":"IMG_2231_thumb.jpg","galleries_id":395389,"server_id":5,"link":"photo_7309425.html","width":130,"caption":"Hexham Mart, Northumberland","height":195});
															thumbnails[7316357] = clik.newPhoto({"id":7316357,"src":"IMG_5682_thumb.jpg","galleries_id":395775,"server_id":5,"link":"photo_7316357.html","width":130,"caption":"John Dodd, Northumberland","height":195});
															thumbnails[7318837] = clik.newPhoto({"id":7318837,"src":"IMG_3444_thumb.jpg","galleries_id":395389,"server_id":5,"link":"photo_7318837.html","width":130,"caption":"Sheep farming in Northumberland","height":87});
															thumbnails[7318979] = clik.newPhoto({"id":7318979,"src":"IMG_2611_thumb.jpg","galleries_id":395935,"server_id":5,"link":"photo_7318979.html","width":130,"caption":"Ploughing with vintage tractors, Northumberland","height":87});
															thumbnails[7319040] = clik.newPhoto({"id":7319040,"src":"IMG_0986_thumb.jpg","galleries_id":395957,"server_id":5,"link":"photo_7319040.html","width":130,"caption":"Amble Harbour, Northumberland","height":87});
															thumbnails[7300954] = clik.newPhoto({"id":7300954,"src":"IMG_5653_thumb.jpg","galleries_id":394950,"server_id":5,"link":"photo_7300954.html","width":130,"caption":"","height":98});
															thumbnails[7309174] = clik.newPhoto({"id":7309174,"src":"_MG_5491_thumb.jpg","galleries_id":395370,"server_id":5,"link":"photo_7309174.html","width":130,"caption":"","height":87});
															thumbnails[7309341] = clik.newPhoto({"id":7309341,"src":"_MG_5946_thumb.jpg","galleries_id":395379,"server_id":5,"link":"photo_7309341.html","width":130,"caption":"","height":87});
															thumbnails[7309426] = clik.newPhoto({"id":7309426,"src":"IMG_4842_thumb.jpg","galleries_id":395389,"server_id":5,"link":"photo_7309426.html","width":130,"caption":"Christmas poultry sale, Hexham Mart","height":87});
															thumbnails[7316306] = clik.newPhoto({"id":7316306,"src":"IMG_3442_thumb.jpg","galleries_id":395775,"server_id":5,"link":"photo_7316306.html","width":130,"caption":"","height":195});
															thumbnails[7318838] = clik.newPhoto({"id":7318838,"src":"IMG_4580_thumb.jpg","galleries_id":395389,"server_id":5,"link":"photo_7318838.html","width":130,"caption":"Sheep farming in Northumberland","height":89});
															thumbnails[7318980] = clik.newPhoto({"id":7318980,"src":"IMG_2616_thumb.jpg","galleries_id":395935,"server_id":5,"link":"photo_7318980.html","width":130,"caption":"Ploughing with vintage tractors, Northumberland","height":188});
															thumbnails[7319041] = clik.newPhoto({"id":7319041,"src":"IMG_1111_thumb.jpg","galleries_id":395957,"server_id":5,"link":"photo_7319041.html","width":130,"caption":"Davey Gray, Puffin Cruises, Amble Harbour","height":87});
															thumbnails[7300955] = clik.newPhoto({"id":7300955,"src":"IMG_5747_thumb.jpg","galleries_id":394950,"server_id":5,"link":"photo_7300955.html","width":130,"caption":"","height":98});
															thumbnails[7309175] = clik.newPhoto({"id":7309175,"src":"_MG_5498_thumb.jpg","galleries_id":395370,"server_id":5,"link":"photo_7309175.html","width":130,"caption":"","height":87});
															thumbnails[7309342] = clik.newPhoto({"id":7309342,"src":"_MG_6255_thumb.jpg","galleries_id":395379,"server_id":5,"link":"photo_7309342.html","width":130,"caption":"forelock","height":195});
															thumbnails[7309427] = clik.newPhoto({"id":7309427,"src":"IMG_4906_thumb.jpg","galleries_id":395389,"server_id":5,"link":"photo_7309427.html","width":130,"caption":"Christmas poultry sale, Hexham Mart","height":87});
															thumbnails[7318839] = clik.newPhoto({"id":7318839,"src":"IMG_4713_thumb.jpg","galleries_id":395389,"server_id":5,"link":"photo_7318839.html","width":130,"caption":"Meg","height":180});
															thumbnails[7318981] = clik.newPhoto({"id":7318981,"src":"IMG_2643_thumb.jpg","galleries_id":395935,"server_id":5,"link":"photo_7318981.html","width":130,"caption":"Ploughing with vintage tractors, Northumberland","height":195});
															thumbnails[7319042] = clik.newPhoto({"id":7319042,"src":"IMG_1120_thumb.jpg","galleries_id":395957,"server_id":5,"link":"photo_7319042.html","width":130,"caption":"Hec, Amble Harbour, Northumberland","height":195});
															thumbnails[7300956] = clik.newPhoto({"id":7300956,"src":"IMG_5986_thumb.jpg","galleries_id":394950,"server_id":5,"link":"photo_7300956.html","width":130,"caption":"Cutting Round","height":98});
															thumbnails[7309176] = clik.newPhoto({"id":7309176,"src":"_MG_5551_thumb.jpg","galleries_id":395370,"server_id":5,"link":"photo_7309176.html","width":130,"caption":"","height":195});
															thumbnails[7309429] = clik.newPhoto({"id":7309429,"src":"IMG_4909_thumb.jpg","galleries_id":395389,"server_id":5,"link":"photo_7309429.html","width":130,"caption":"Christmas poultry sale, Hexham Mart","height":87});
															thumbnails[7316307] = clik.newPhoto({"id":7316307,"src":"IMG_3612_thumb.jpg","galleries_id":395775,"server_id":5,"link":"photo_7316307.html","width":130,"caption":"Working Clydesdales, Northumberland","height":87});
															thumbnails[7318840] = clik.newPhoto({"id":7318840,"src":"Rural_Project_(33-6)062_thumb.jpg","galleries_id":395389,"server_id":5,"link":"photo_7318840.html","width":130,"caption":"Sheep farming in Northumberland","height":88});
															thumbnails[7318982] = clik.newPhoto({"id":7318982,"src":"IMG_2644-2_thumb.jpg","galleries_id":395935,"server_id":5,"link":"photo_7318982.html","width":130,"caption":"Ploughing with vintage tractors, Northumberland","height":193});
															thumbnails[7319043] = clik.newPhoto({"id":7319043,"src":"IMG_1124_thumb.jpg","galleries_id":395957,"server_id":5,"link":"photo_7319043.html","width":130,"caption":"Hec, Amble Harbour, Northumberland","height":87});
															thumbnails[7300957] = clik.newPhoto({"id":7300957,"src":"IMG_6291_thumb.jpg","galleries_id":394950,"server_id":5,"link":"photo_7300957.html","width":130,"caption":"Strider","height":98});
															thumbnails[7309430] = clik.newPhoto({"id":7309430,"src":"IMG_4944_thumb.jpg","galleries_id":395389,"server_id":5,"link":"photo_7309430.html","width":130,"caption":"Christmas poultry sale, Hexham Mart","height":195});
															thumbnails[7316308] = clik.newPhoto({"id":7316308,"src":"IMG_3628_thumb.jpg","galleries_id":395775,"server_id":5,"link":"photo_7316308.html","width":130,"caption":"Working with Clydesdales, Northumberland","height":87});
															thumbnails[7318841] = clik.newPhoto({"id":7318841,"src":"_MG_5793_thumb.jpg","galleries_id":395389,"server_id":5,"link":"photo_7318841.html","width":130,"caption":"Sheep farming in Northumberland","height":87});
															thumbnails[7318983] = clik.newPhoto({"id":7318983,"src":"IMG_2655_thumb.jpg","galleries_id":395935,"server_id":5,"link":"photo_7318983.html","width":130,"caption":"Ploughing with vintage tractors, Northumberland","height":87});
															thumbnails[7319044] = clik.newPhoto({"id":7319044,"src":"IMG_1151_thumb.jpg","galleries_id":395957,"server_id":5,"link":"photo_7319044.html","width":130,"caption":"Hec, Amble Harbour, Northumberland","height":87});
															thumbnails[7300958] = clik.newPhoto({"id":7300958,"src":"IMG_6396_thumb.jpg","galleries_id":394950,"server_id":5,"link":"photo_7300958.html","width":130,"caption":"","height":195});
															thumbnails[7309178] = clik.newPhoto({"id":7309178,"src":"_MG_5648_thumb.jpg","galleries_id":395370,"server_id":5,"link":"photo_7309178.html","width":130,"caption":"","height":195});
															thumbnails[7309431] = clik.newPhoto({"id":7309431,"src":"IMG_4953_thumb.jpg","galleries_id":395389,"server_id":5,"link":"photo_7309431.html","width":130,"caption":"Christmas poultry sale, Hexham Mart","height":88});
															thumbnails[7316309] = clik.newPhoto({"id":7316309,"src":"IMG_3717_thumb.jpg","galleries_id":395775,"server_id":5,"link":"photo_7316309.html","width":130,"caption":"","height":200});
															thumbnails[7318842] = clik.newPhoto({"id":7318842,"src":"_MG_5822_thumb.jpg","galleries_id":395389,"server_id":5,"link":"photo_7318842.html","width":130,"caption":"Sheep farming in Northumberland","height":195});
															thumbnails[7318984] = clik.newPhoto({"id":7318984,"src":"IMG_2666_thumb.jpg","galleries_id":395935,"server_id":5,"link":"photo_7318984.html","width":130,"caption":"Ploughing with vintage tractors, Northumberland","height":195});
															thumbnails[7300959] = clik.newPhoto({"id":7300959,"src":"IMG_6518_thumb.jpg","galleries_id":394950,"server_id":5,"link":"photo_7300959.html","width":130,"caption":"Rocky","height":98});
															thumbnails[7309179] = clik.newPhoto({"id":7309179,"src":"_MG_5676_thumb.jpg","galleries_id":395370,"server_id":5,"link":"photo_7309179.html","width":130,"caption":"","height":195});
															thumbnails[7309432] = clik.newPhoto({"id":7309432,"src":"IMG_4956_thumb.jpg","galleries_id":395389,"server_id":5,"link":"photo_7309432.html","width":130,"caption":"Christmas poultry sale, Hexham Mart","height":87});
															thumbnails[7318843] = clik.newPhoto({"id":7318843,"src":"_MG_5880_thumb.jpg","galleries_id":395389,"server_id":5,"link":"photo_7318843.html","width":130,"caption":"Sheep farming in Northumberland","height":190});
															thumbnails[7318985] = clik.newPhoto({"id":7318985,"src":"IMG_2671_thumb.jpg","galleries_id":395935,"server_id":5,"link":"photo_7318985.html","width":130,"caption":"Ploughing with vintage tractors, Northumberland","height":87});
															thumbnails[7319045] = clik.newPhoto({"id":7319045,"src":"IMG_1343_thumb.jpg","galleries_id":395957,"server_id":5,"link":"photo_7319045.html","width":130,"caption":"Low Newton and Craster, Northumberland","height":87});
															thumbnails[7309433] = clik.newPhoto({"id":7309433,"src":"IMG_5017_thumb.jpg","galleries_id":395389,"server_id":5,"link":"photo_7309433.html","width":130,"caption":"Christmas poultry sale, Hexham Mart","height":87});
															thumbnails[7318844] = clik.newPhoto({"id":7318844,"src":"_MG_5895_thumb.jpg","galleries_id":395389,"server_id":5,"link":"photo_7318844.html","width":130,"caption":"Sheep farming in Northumberland","height":87});
															thumbnails[7318986] = clik.newPhoto({"id":7318986,"src":"IMG_2675_thumb.jpg","galleries_id":395935,"server_id":5,"link":"photo_7318986.html","width":130,"caption":"Ploughing with vintage tractors, Northumberland","height":87});
															thumbnails[7319046] = clik.newPhoto({"id":7319046,"src":"IMG_1384_thumb.jpg","galleries_id":395957,"server_id":5,"link":"photo_7319046.html","width":130,"caption":"Low Newton, Northumberland","height":87});
															thumbnails[7300961] = clik.newPhoto({"id":7300961,"src":"IMG_6560_thumb.jpg","galleries_id":394950,"server_id":5,"link":"photo_7300961.html","width":130,"caption":"","height":195});
															thumbnails[7316311] = clik.newPhoto({"id":7316311,"src":"IMG_4511_thumb.jpg","galleries_id":395775,"server_id":5,"link":"photo_7316311.html","width":130,"caption":"Working with Clydesdales, Northumberland","height":87});
															thumbnails[7318845] = clik.newPhoto({"id":7318845,"src":"_MG_8773_thumb.jpg","galleries_id":395389,"server_id":5,"link":"photo_7318845.html","width":130,"caption":"Sheep farming in Northumberland","height":195});
															thumbnails[7318987] = clik.newPhoto({"id":7318987,"src":"IMG_2680_thumb.jpg","galleries_id":395935,"server_id":5,"link":"photo_7318987.html","width":130,"caption":"Ploughing with vintage tractors, Northumberland","height":195});
															thumbnails[7319047] = clik.newPhoto({"id":7319047,"src":"IMG_1426_thumb.jpg","galleries_id":395957,"server_id":5,"link":"photo_7319047.html","width":130,"caption":"Low Newton, Northumberland","height":98});
															thumbnails[7300962] = clik.newPhoto({"id":7300962,"src":"IMG_6655_thumb.jpg","galleries_id":394950,"server_id":5,"link":"photo_7300962.html","width":130,"caption":"Strider","height":191});
															thumbnails[7316312] = clik.newPhoto({"id":7316312,"src":"IMG_4547_thumb.jpg","galleries_id":395775,"server_id":5,"link":"photo_7316312.html","width":130,"caption":"Working with Clydesdales, Northumberland","height":195});
															thumbnails[7318988] = clik.newPhoto({"id":7318988,"src":"IMG_2685_thumb.jpg","galleries_id":395935,"server_id":5,"link":"photo_7318988.html","width":130,"caption":"Ploughing with vintage tractors, Northumberland","height":197});
															thumbnails[7319048] = clik.newPhoto({"id":7319048,"src":"IMG_1586_thumb.jpg","galleries_id":395957,"server_id":5,"link":"photo_7319048.html","width":130,"caption":"Low Newton, Northumberland","height":87});
															thumbnails[7300963] = clik.newPhoto({"id":7300963,"src":"IMG_6720_thumb.jpg","galleries_id":394950,"server_id":5,"link":"photo_7300963.html","width":130,"caption":"","height":98});
															thumbnails[7318989] = clik.newPhoto({"id":7318989,"src":"IMG_2690_thumb.jpg","galleries_id":395935,"server_id":5,"link":"photo_7318989.html","width":130,"caption":"Ploughing with vintage tractors, Northumberland","height":195});
															thumbnails[7319049] = clik.newPhoto({"id":7319049,"src":"IMG_1935_thumb.jpg","galleries_id":395957,"server_id":5,"link":"photo_7319049.html","width":130,"caption":"Amble Boat Company","height":87});
															thumbnails[7300964] = clik.newPhoto({"id":7300964,"src":"IMG_8068_thumb.jpg","galleries_id":394950,"server_id":5,"link":"photo_7300964.html","width":130,"caption":"Planting Sitka Spruce","height":195});
															thumbnails[7316314] = clik.newPhoto({"id":7316314,"src":"IMG_5466_thumb.jpg","galleries_id":395775,"server_id":5,"link":"photo_7316314.html","width":130,"caption":"Working with Clydesdales, Northumberland","height":195});
															thumbnails[7318990] = clik.newPhoto({"id":7318990,"src":"IMG_2691_thumb.jpg","galleries_id":395935,"server_id":5,"link":"photo_7318990.html","width":130,"caption":"Ploughing with vintage tractors, Northumberland","height":195});
															thumbnails[7319050] = clik.newPhoto({"id":7319050,"src":"IMG_2809_thumb.jpg","galleries_id":395957,"server_id":5,"link":"photo_7319050.html","width":130,"caption":"Bob, Amble Harbour","height":195});
															thumbnails[7300966] = clik.newPhoto({"id":7300966,"src":"IMG_8196_thumb.jpg","galleries_id":394950,"server_id":5,"link":"photo_7300966.html","width":130,"caption":"Planting Sitka Spruce","height":195});
															thumbnails[7319051] = clik.newPhoto({"id":7319051,"src":"IMG_2865_thumb.jpg","galleries_id":395957,"server_id":5,"link":"photo_7319051.html","width":130,"caption":"Amble Harbour, Northumberland","height":98});
															thumbnails[7300967] = clik.newPhoto({"id":7300967,"src":"IMG_8253_thumb.jpg","galleries_id":394950,"server_id":5,"link":"photo_7300967.html","width":130,"caption":"Old Boots","height":195});
															thumbnails[7316315] = clik.newPhoto({"id":7316315,"src":"IMG_5674_thumb.jpg","galleries_id":395775,"server_id":5,"link":"photo_7316315.html","width":130,"caption":"Working with Clydesdales, Northumberland","height":195});
															thumbnails[7318992] = clik.newPhoto({"id":7318992,"src":"_MG_4469-2_thumb.jpg","galleries_id":395935,"server_id":5,"link":"photo_7318992.html","width":130,"caption":"Ploughing with vintage tractors, Northumberland","height":181});
															thumbnails[7319052] = clik.newPhoto({"id":7319052,"src":"IMG_4211_thumb.jpg","galleries_id":395957,"server_id":5,"link":"photo_7319052.html","width":130,"caption":"Heavy load","height":94});
															thumbnails[7318993] = clik.newPhoto({"id":7318993,"src":"_MG_4481_thumb.jpg","galleries_id":395935,"server_id":5,"link":"photo_7318993.html","width":130,"caption":"Ploughing with vintage tractors, Northumberland","height":88});
															thumbnails[7300969] = clik.newPhoto({"id":7300969,"src":"Where's-Rocky_thumb.jpg","galleries_id":394950,"server_id":5,"link":"photo_7300969.html","width":130,"caption":"Where's-Rocky","height":195});
															thumbnails[7316316] = clik.newPhoto({"id":7316316,"src":"_MG_2603_thumb.jpg","galleries_id":395775,"server_id":5,"link":"photo_7316316.html","width":130,"caption":"Working with Clydesdales, Northumberland","height":195});
															thumbnails[7318994] = clik.newPhoto({"id":7318994,"src":"_MG_4506_thumb.jpg","galleries_id":395935,"server_id":5,"link":"photo_7318994.html","width":130,"caption":"Ploughing with vintage tractors, Northumberland","height":195});
															thumbnails[7319054] = clik.newPhoto({"id":7319054,"src":"IMG_4284_thumb.jpg","galleries_id":395957,"server_id":5,"link":"photo_7319054.html","width":130,"caption":"Amble Harbour, Northumberland","height":87});
															thumbnails[7316317] = clik.newPhoto({"id":7316317,"src":"_MG_2629_thumb.jpg","galleries_id":395775,"server_id":5,"link":"photo_7316317.html","width":130,"caption":"Working with Clydesdales, Northumberland","height":87});
															thumbnails[7318995] = clik.newPhoto({"id":7318995,"src":"_MG_4588-2_thumb.jpg","galleries_id":395935,"server_id":5,"link":"photo_7318995.html","width":130,"caption":"Ploughing with vintage tractors, Northumberland","height":196});
															thumbnails[7319055] = clik.newPhoto({"id":7319055,"src":"IMG_4285_thumb.jpg","galleries_id":395957,"server_id":5,"link":"photo_7319055.html","width":130,"caption":"Natalie Kristen II, Amble Harbour, Northumberland","height":87});
															thumbnails[7316318] = clik.newPhoto({"id":7316318,"src":"_MG_2705_thumb.jpg","galleries_id":395775,"server_id":5,"link":"photo_7316318.html","width":130,"caption":"Dry Stone Walling, Northumberland","height":195});
															thumbnails[7318996] = clik.newPhoto({"id":7318996,"src":"_MG_4647_thumb.jpg","galleries_id":395935,"server_id":5,"link":"photo_7318996.html","width":130,"caption":"Ploughing with vintage tractors, Northumberland","height":87});
															thumbnails[7319056] = clik.newPhoto({"id":7319056,"src":"IMG_4294_thumb.jpg","galleries_id":395957,"server_id":5,"link":"photo_7319056.html","width":130,"caption":"Amble Harbour, Northumberland","height":87});
															thumbnails[7318997] = clik.newPhoto({"id":7318997,"src":"_MG_4727-2_thumb.jpg","galleries_id":395935,"server_id":5,"link":"photo_7318997.html","width":130,"caption":"Ploughing with vintage tractors, Northumberland","height":87});
															thumbnails[7319057] = clik.newPhoto({"id":7319057,"src":"Trawler-Coming_thumb.jpg","galleries_id":395957,"server_id":5,"link":"photo_7319057.html","width":130,"caption":"Amble Harbour, Northumberland","height":87});
															thumbnails[7319058] = clik.newPhoto({"id":7319058,"src":"_MG_9658_thumb.jpg","galleries_id":395957,"server_id":5,"link":"photo_7319058.html","width":130,"caption":"Low Newton, Northumberland","height":195});
															thumbnails[7319059] = clik.newPhoto({"id":7319059,"src":"_MG_9741_thumb.jpg","galleries_id":395957,"server_id":5,"link":"photo_7319059.html","width":130,"caption":"Dunstanburgh Castle, Northumberland","height":87});
															thumbnails[7319060] = clik.newPhoto({"id":7319060,"src":"_MG_9748_thumb.jpg","galleries_id":395957,"server_id":5,"link":"photo_7319060.html","width":130,"caption":"Low Newton, Northumberland","height":188});
															thumbnails[7319061] = clik.newPhoto({"id":7319061,"src":"_MG_9749_thumb.jpg","galleries_id":395957,"server_id":5,"link":"photo_7319061.html","width":130,"caption":"Low Newton, Northumberland","height":174});
															thumbnails[7319067] = clik.newPhoto({"id":7319067,"src":"IMG_4225_thumb.jpg","galleries_id":395957,"server_id":5,"link":"photo_7319067.html","width":130,"caption":"Amble Harbour, Northumberland","height":87});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[394950] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"The Forester","link":"section469775_394950.html","maxRecords":0.0,"photoIDs":[7300948.0,7321177.0,7300949.0,7300950.0,7300951.0,7300952.0,7300953.0,7300954.0,7300955.0,7300956.0,7300957.0,7300958.0,7300959.0,7300961.0,7300962.0,7300963.0,7300964.0,7300966.0,7300967.0,7300969.0],"skipIndex":0,"section_code":"section469775","featured_images":7321177.0,"id":394950,"singleSection":false});				  						galleries[395370] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"The Farrier","link":"section469775_395370.html","maxRecords":0.0,"photoIDs":[7309167.0,7321137.0,7309168.0,7309171.0,7309172.0,7309173.0,7309174.0,7309175.0,7309176.0,7309178.0,7309179.0],"skipIndex":0,"section_code":"section469775","featured_images":7321137.0,"id":395370,"singleSection":false});				  						galleries[395957] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"The Coast","link":"section469775_395957.html","maxRecords":0.0,"photoIDs":[7319035.0,7321143.0,7328581.0,7319036.0,7319037.0,7319038.0,7319039.0,7319040.0,7319041.0,7319042.0,7319043.0,7319044.0,7319045.0,7319046.0,7319047.0,7319048.0,7319049.0,7319050.0,7319051.0,7319052.0,7319054.0,7319055.0,7319056.0,7319057.0,7319058.0,7319059.0,7319060.0,7319061.0,7319067.0],"skipIndex":0,"section_code":"section469775","featured_images":7321143.0,"id":395957,"singleSection":false});				  						galleries[395775] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"The Clydesdale","link":"section469775_395775.html","maxRecords":0.0,"photoIDs":[7316302.0,7321157.0,7316303.0,7316353.0,7316304.0,7316354.0,7316355.0,7316356.0,7316357.0,7316306.0,7316307.0,7316308.0,7316309.0,7316311.0,7316312.0,7316314.0,7316315.0,7316316.0,7316317.0,7316318.0],"skipIndex":0,"section_code":"section469775","featured_images":7321157.0,"id":395775,"singleSection":false});				  						galleries[395389] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"The Farmer","link":"section469775_395389.html","maxRecords":0.0,"photoIDs":[7309420.0,7318832.0,7318857.0,7321160.0,7309421.0,7318833.0,7309422.0,7318252.0,7318834.0,7309423.0,7309424.0,7318836.0,7309425.0,7318837.0,7309426.0,7318838.0,7309427.0,7318839.0,7309429.0,7318840.0,7309430.0,7318841.0,7309431.0,7318842.0,7309432.0,7318843.0,7309433.0,7318844.0,7318845.0],"skipIndex":0,"section_code":"section469775","featured_images":7321160.0,"id":395389,"singleSection":false});				  						galleries[395935] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"The Ploughmen","link":"section469775_395935.html","maxRecords":0.0,"photoIDs":[7318972.0,7321209.0,7318974.0,7318975.0,7318976.0,7318978.0,7318979.0,7318980.0,7318981.0,7318982.0,7318983.0,7318984.0,7318985.0,7318986.0,7318987.0,7318988.0,7318989.0,7318990.0,7318992.0,7318993.0,7318994.0,7318995.0,7318996.0,7318997.0],"skipIndex":0,"section_code":"section469775","featured_images":7321209.0,"id":395935,"singleSection":false});				  						galleries[395379] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"The Stable","link":"section469775_395379.html","maxRecords":0.0,"photoIDs":[7321165.0,7309336.0,7309337.0,7309338.0,7309339.0,7309340.0,7309341.0,7309342.0],"skipIndex":0,"section_code":"section469775","featured_images":7321165.0,"id":395379,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '7321209,7321177,7321165,7321160,7321157,7321143,7321137,7309167,7316353,7318252,7309337,7300956,7300957';
imageSets[2] = '7321209,7321177,7321165,7321160,7321157,7321143,7321137';
imageSets[3] = '7328581,7321209,7321177,7321165,7321160,7321157,7321143,7321137,7319035,7319036,7319037,7319038,7319039,7319040,7319041,7319042,7319043,7318982';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/garretstudio/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/garretstudio/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/garretstudio/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/garretstudio/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/garretstudio/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/garretstudio/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/garretstudio/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/garretstudio/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/garretstudio/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/garretstudio/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/garretstudio/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/garretstudio/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/garretstudio/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/garretstudio/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/garretstudio/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/garretstudio/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/garretstudio/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/garretstudio/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/garretstudio/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/garretstudio/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/garretstudio/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/garretstudio/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/garretstudio/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/garretstudio/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/garretstudio/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/garretstudio/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/garretstudio/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 += 'section469775.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 && 'section469775' != '') {
					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 = 'Yvonne Davies Rural Life Photographer : ' + 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;
	}
}

			

