window.thumbnails = {};
															thumbnails[1183243] = clik.newPhoto({"id":1183243,"src":"DSC_0360crop1.jpg","galleries_id":84452,"server_id":1,"link":"photo_1183243.html","width":130,"caption":"","height":92});
															thumbnails[1193053] = clik.newPhoto({"id":1193053,"src":"DSC_3542merge1.jpg","galleries_id":84452,"server_id":1,"link":"photo_1193053.html","width":130,"caption":"","height":92});
															thumbnails[1193054] = clik.newPhoto({"id":1193054,"src":"DSC_14981.jpg","galleries_id":84452,"server_id":1,"link":"photo_1193054.html","width":130,"caption":"","height":92});
															thumbnails[1193064] = clik.newPhoto({"id":1193064,"src":"DSC_3539b+w1.jpg","galleries_id":84452,"server_id":1,"link":"photo_1193064.html","width":86,"caption":"","height":130});
															thumbnails[1193065] = clik.newPhoto({"id":1193065,"src":"11.jpg","galleries_id":84912,"server_id":1,"link":"photo_1193065.html","width":92,"caption":"","height":130});
															thumbnails[1193067] = clik.newPhoto({"id":1193067,"src":"21.jpg","galleries_id":84912,"server_id":1,"link":"photo_1193067.html","width":98,"caption":"","height":130});
															thumbnails[1193070] = clik.newPhoto({"id":1193070,"src":"Ombi51.jpg","galleries_id":84912,"server_id":1,"link":"photo_1193070.html","width":92,"caption":"","height":130});
															thumbnails[1193071] = clik.newPhoto({"id":1193071,"src":"141.jpg","galleries_id":84912,"server_id":1,"link":"photo_1193071.html","width":98,"caption":"","height":130});
															thumbnails[1193072] = clik.newPhoto({"id":1193072,"src":"Charlotte Haywood 329tu1.jpg","galleries_id":84912,"server_id":1,"link":"photo_1193072.html","width":98,"caption":"","height":130});
															thumbnails[1193073] = clik.newPhoto({"id":1193073,"src":"121.jpg","galleries_id":84912,"server_id":1,"link":"photo_1193073.html","width":130,"caption":"","height":99});
															thumbnails[1193074] = clik.newPhoto({"id":1193074,"src":"181.jpg","galleries_id":84912,"server_id":1,"link":"photo_1193074.html","width":92,"caption":"","height":130});
															thumbnails[1193076] = clik.newPhoto({"id":1193076,"src":"251.jpg","galleries_id":84912,"server_id":1,"link":"photo_1193076.html","width":98,"caption":"","height":130});
															thumbnails[1193086] = clik.newPhoto({"id":1193086,"src":"Ombi31.jpg","galleries_id":84912,"server_id":1,"link":"photo_1193086.html","width":92,"caption":"","height":130});
															thumbnails[1193087] = clik.newPhoto({"id":1193087,"src":"Sharon31.jpg","galleries_id":84912,"server_id":1,"link":"photo_1193087.html","width":92,"caption":"","height":130});
															thumbnails[1193088] = clik.newPhoto({"id":1193088,"src":"Jo, John and girls and Rachel, Vince, and boys 4 077tucrop1.jpg","galleries_id":84912,"server_id":1,"link":"photo_1193088.html","width":92,"caption":"","height":130});
															thumbnails[1193089] = clik.newPhoto({"id":1193089,"src":"Sharon11.jpg","galleries_id":84912,"server_id":1,"link":"photo_1193089.html","width":130,"caption":"","height":86});
															thumbnails[1193090] = clik.newPhoto({"id":1193090,"src":"Charlotte1.jpg","galleries_id":84912,"server_id":1,"link":"photo_1193090.html","width":98,"caption":"","height":130});
															thumbnails[1193101] = clik.newPhoto({"id":1193101,"src":"35(2)1.jpg","galleries_id":84909,"server_id":1,"link":"photo_1193101.html","width":87,"caption":"","height":130});
															thumbnails[1193102] = clik.newPhoto({"id":1193102,"src":"Atlanta1.jpg","galleries_id":84909,"server_id":1,"link":"photo_1193102.html","width":98,"caption":"","height":130});
															thumbnails[1197332] = clik.newPhoto({"id":1197332,"src":"colouredhouses1.jpg","galleries_id":84913,"server_id":1,"link":"photo_1197332.html","width":130,"caption":"","height":98});
															thumbnails[1197338] = clik.newPhoto({"id":1197338,"src":"zoeandpatsy1.jpg","galleries_id":84913,"server_id":1,"link":"photo_1197338.html","width":130,"caption":"celebrity parties","height":98});
															thumbnails[1197340] = clik.newPhoto({"id":1197340,"src":"Fashion1.JPG","galleries_id":84913,"server_id":1,"link":"photo_1197340.html","width":98,"caption":"fashion shows","height":130});
															thumbnails[1197342] = clik.newPhoto({"id":1197342,"src":"C1.JPG","galleries_id":84913,"server_id":1,"link":"photo_1197342.html","width":98,"caption":"","height":130});
															thumbnails[1197350] = clik.newPhoto({"id":1197350,"src":"C (15)1.JPG","galleries_id":84913,"server_id":1,"link":"photo_1197350.html","width":130,"caption":"","height":86});
															thumbnails[1197549] = clik.newPhoto({"id":1197549,"src":"DSC_0277tu1.jpg","galleries_id":84913,"server_id":1,"link":"photo_1197549.html","width":86,"caption":"live bands and concerts","height":130});
															thumbnails[1197566] = clik.newPhoto({"id":1197566,"src":"SanFrancisco2 019(2)1.jpg","galleries_id":84913,"server_id":1,"link":"photo_1197566.html","width":97,"caption":"","height":130});
															thumbnails[1197571] = clik.newPhoto({"id":1197571,"src":"Snow1.jpg","galleries_id":84913,"server_id":1,"link":"photo_1197571.html","width":98,"caption":"","height":130});
															thumbnails[1197580] = clik.newPhoto({"id":1197580,"src":"vegas1.jpg","galleries_id":84913,"server_id":1,"link":"photo_1197580.html","width":130,"caption":"","height":98});
															thumbnails[1197652] = clik.newPhoto({"id":1197652,"src":"A1.jpg","galleries_id":84909,"server_id":1,"link":"photo_1197652.html","width":92,"caption":"","height":130});
															thumbnails[1197653] = clik.newPhoto({"id":1197653,"src":"A (20)1.jpg","galleries_id":84909,"server_id":1,"link":"photo_1197653.html","width":130,"caption":"","height":50});
															thumbnails[1197655] = clik.newPhoto({"id":1197655,"src":"girls1.jpg","galleries_id":84909,"server_id":1,"link":"photo_1197655.html","width":92,"caption":"","height":130});
															thumbnails[1197656] = clik.newPhoto({"id":1197656,"src":"DSC_25731.jpg","galleries_id":84909,"server_id":1,"link":"photo_1197656.html","width":92,"caption":"","height":130});
															thumbnails[1197660] = clik.newPhoto({"id":1197660,"src":"DSC_2477eyesEFFECTS1.jpg","galleries_id":84909,"server_id":1,"link":"photo_1197660.html","width":130,"caption":"","height":92});
															thumbnails[1197662] = clik.newPhoto({"id":1197662,"src":"DSC_2606B+W1.jpg","galleries_id":84909,"server_id":1,"link":"photo_1197662.html","width":92,"caption":"","height":130});
															thumbnails[1197666] = clik.newPhoto({"id":1197666,"src":"DSC_05191.jpg","galleries_id":84909,"server_id":1,"link":"photo_1197666.html","width":87,"caption":"","height":130});
															thumbnails[1197676] = clik.newPhoto({"id":1197676,"src":"DSC_24871.jpg","galleries_id":84909,"server_id":1,"link":"photo_1197676.html","width":130,"caption":"","height":87});
															thumbnails[1197771] = clik.newPhoto({"id":1197771,"src":"Karen1.jpg","galleries_id":84909,"server_id":1,"link":"photo_1197771.html","width":92,"caption":"","height":130});
															thumbnails[1197851] = clik.newPhoto({"id":1197851,"src":"chocicecream3.jpg","galleries_id":84909,"server_id":1,"link":"photo_1197851.html","width":87,"caption":"","height":130});
															thumbnails[1197903] = clik.newPhoto({"id":1197903,"src":"DSC_05831.jpg","galleries_id":84909,"server_id":1,"link":"photo_1197903.html","width":130,"caption":"","height":92});
															thumbnails[1197908] = clik.newPhoto({"id":1197908,"src":"DSC_34711.jpg","galleries_id":84452,"server_id":1,"link":"photo_1197908.html","width":130,"caption":"","height":87});
															thumbnails[1263224] = clik.newPhoto({"id":1263224,"src":"DSC_5783cropb+w4.jpg","galleries_id":84909,"server_id":1,"link":"photo_1263224.html","width":130,"caption":"","height":102});
															thumbnails[1960535] = clik.newPhoto({"id":1960535,"src":"Jamm large web_thumb.jpg","galleries_id":84913,"server_id":1,"link":"photo_1960535.html","width":130,"caption":"CD Album cover","height":130});
															thumbnails[2539040] = clik.newPhoto({"id":2539040,"src":"groupeastlands_thumb.jpg","galleries_id":84452,"server_id":1,"link":"photo_2539040.html","width":130,"caption":"wedding group photo","height":87});
															thumbnails[2539043] = clik.newPhoto({"id":2539043,"src":"L&Rbylake_thumb.jpg","galleries_id":84452,"server_id":1,"link":"photo_2539043.html","width":130,"caption":"","height":87});
															thumbnails[2539048] = clik.newPhoto({"id":2539048,"src":"Lineupeastlands_thumb.jpg","galleries_id":84452,"server_id":1,"link":"photo_2539048.html","width":130,"caption":"","height":87});
															thumbnails[2539053] = clik.newPhoto({"id":2539053,"src":"louisedress_thumb.jpg","galleries_id":84452,"server_id":1,"link":"photo_2539053.html","width":87,"caption":"","height":130});
															thumbnails[2539063] = clik.newPhoto({"id":2539063,"src":"ringsinflower_thumb.jpg","galleries_id":84452,"server_id":1,"link":"photo_2539063.html","width":130,"caption":"","height":87});
															thumbnails[2539066] = clik.newPhoto({"id":2539066,"src":"Ryanwaiting_thumb.jpg","galleries_id":84452,"server_id":1,"link":"photo_2539066.html","width":130,"caption":"","height":87});
															thumbnails[2539067] = clik.newPhoto({"id":2539067,"src":"shoe_thumb.jpg","galleries_id":84452,"server_id":1,"link":"photo_2539067.html","width":130,"caption":"","height":87});
															thumbnails[3032706] = clik.newPhoto({"id":3032706,"src":"A - 2481_thumb.jpg","galleries_id":84452,"server_id":1,"link":"photo_3032706.html","width":87,"caption":"","height":130});
															thumbnails[3032708] = clik.newPhoto({"id":3032708,"src":"A - 698_thumb.jpg","galleries_id":84452,"server_id":1,"link":"photo_3032708.html","width":130,"caption":"","height":87});
															thumbnails[3032710] = clik.newPhoto({"id":3032710,"src":"DSC_0022effects copy_thumb.jpg","galleries_id":84452,"server_id":1,"link":"photo_3032710.html","width":95,"caption":"","height":130});
															thumbnails[3032714] = clik.newPhoto({"id":3032714,"src":"DSC_0308a_thumb.jpg","galleries_id":84452,"server_id":1,"link":"photo_3032714.html","width":87,"caption":"","height":130});
															thumbnails[3032717] = clik.newPhoto({"id":3032717,"src":"DSC_0378_thumb.JPG","galleries_id":84452,"server_id":1,"link":"photo_3032717.html","width":128,"caption":"","height":130});
															thumbnails[3032718] = clik.newPhoto({"id":3032718,"src":"DSC_0399_thumb.jpg","galleries_id":84452,"server_id":1,"link":"photo_3032718.html","width":130,"caption":"","height":86});
															thumbnails[3032720] = clik.newPhoto({"id":3032720,"src":"DSC_0405b+w_thumb.jpg","galleries_id":84452,"server_id":1,"link":"photo_3032720.html","width":87,"caption":"","height":130});
															thumbnails[3032723] = clik.newPhoto({"id":3032723,"src":"DSC_0441a_thumb.JPG","galleries_id":84452,"server_id":1,"link":"photo_3032723.html","width":130,"caption":"","height":87});
															thumbnails[3032725] = clik.newPhoto({"id":3032725,"src":"DSC_0553_thumb.JPG","galleries_id":84452,"server_id":1,"link":"photo_3032725.html","width":87,"caption":"","height":130});
															thumbnails[3032726] = clik.newPhoto({"id":3032726,"src":"DSC_0827_thumb.jpg","galleries_id":84452,"server_id":1,"link":"photo_3032726.html","width":87,"caption":"","height":130});
															thumbnails[3032728] = clik.newPhoto({"id":3032728,"src":"DSC_0905_thumb.JPG","galleries_id":84452,"server_id":1,"link":"photo_3032728.html","width":130,"caption":"","height":87});
															thumbnails[3032729] = clik.newPhoto({"id":3032729,"src":"DSC_1387_thumb.JPG","galleries_id":84452,"server_id":1,"link":"photo_3032729.html","width":130,"caption":"","height":87});
															thumbnails[3032732] = clik.newPhoto({"id":3032732,"src":"DSC_1554_thumb.JPG","galleries_id":84452,"server_id":1,"link":"photo_3032732.html","width":87,"caption":"","height":130});
															thumbnails[3032736] = clik.newPhoto({"id":3032736,"src":"DSC_1642_thumb.JPG","galleries_id":84452,"server_id":1,"link":"photo_3032736.html","width":130,"caption":"","height":87});
															thumbnails[3032737] = clik.newPhoto({"id":3032737,"src":"DSC_1732_2_thumb.JPG","galleries_id":84452,"server_id":1,"link":"photo_3032737.html","width":130,"caption":"","height":87});
															thumbnails[3032739] = clik.newPhoto({"id":3032739,"src":"DSC_1890_2_thumb.JPG","galleries_id":84452,"server_id":1,"link":"photo_3032739.html","width":87,"caption":"","height":130});
															thumbnails[3032740] = clik.newPhoto({"id":3032740,"src":"DSC_1974_thumb.JPG","galleries_id":84452,"server_id":1,"link":"photo_3032740.html","width":87,"caption":"","height":130});
															thumbnails[3032742] = clik.newPhoto({"id":3032742,"src":"DSC_2010tu_thumb.jpg","galleries_id":84452,"server_id":1,"link":"photo_3032742.html","width":87,"caption":"","height":130});
															thumbnails[3032743] = clik.newPhoto({"id":3032743,"src":"DSC_2051b+w_thumb.jpg","galleries_id":84452,"server_id":1,"link":"photo_3032743.html","width":87,"caption":"","height":130});
															thumbnails[3032745] = clik.newPhoto({"id":3032745,"src":"DSC_2074_thumb.jpg","galleries_id":84452,"server_id":1,"link":"photo_3032745.html","width":130,"caption":"","height":87});
															thumbnails[3032747] = clik.newPhoto({"id":3032747,"src":"DSC_2087effects_thumb.jpg","galleries_id":84452,"server_id":1,"link":"photo_3032747.html","width":130,"caption":"","height":87});
															thumbnails[3032749] = clik.newPhoto({"id":3032749,"src":"DSC_2111_thumb.JPG","galleries_id":84452,"server_id":1,"link":"photo_3032749.html","width":130,"caption":"","height":87});
															thumbnails[3032751] = clik.newPhoto({"id":3032751,"src":"DSC_2173_thumb.jpg","galleries_id":84452,"server_id":1,"link":"photo_3032751.html","width":130,"caption":"","height":87});
															thumbnails[3032753] = clik.newPhoto({"id":3032753,"src":"DSC_2324tu_2_thumb.jpg","galleries_id":84452,"server_id":1,"link":"photo_3032753.html","width":130,"caption":"","height":87});
															thumbnails[3032757] = clik.newPhoto({"id":3032757,"src":"DSC_2544_thumb.jpg","galleries_id":84452,"server_id":1,"link":"photo_3032757.html","width":87,"caption":"","height":130});
															thumbnails[3032759] = clik.newPhoto({"id":3032759,"src":"DSC_2731b+w_thumb.jpg","galleries_id":84452,"server_id":1,"link":"photo_3032759.html","width":86,"caption":"","height":130});
															thumbnails[3032760] = clik.newPhoto({"id":3032760,"src":"DSC_2758b+w_thumb.jpg","galleries_id":84452,"server_id":1,"link":"photo_3032760.html","width":86,"caption":"","height":130});
															thumbnails[3032763] = clik.newPhoto({"id":3032763,"src":"DSC_2821oldphoto_thumb.jpg","galleries_id":84452,"server_id":1,"link":"photo_3032763.html","width":86,"caption":"","height":130});
															thumbnails[3032764] = clik.newPhoto({"id":3032764,"src":"DSC_3107_thumb.jpg","galleries_id":84452,"server_id":1,"link":"photo_3032764.html","width":87,"caption":"","height":130});
															thumbnails[3032766] = clik.newPhoto({"id":3032766,"src":"DSC_3263b+w_thumb.jpg","galleries_id":84452,"server_id":1,"link":"photo_3032766.html","width":87,"caption":"","height":130});
															thumbnails[3032767] = clik.newPhoto({"id":3032767,"src":"DSC_3959b+w_thumb.jpg","galleries_id":84452,"server_id":1,"link":"photo_3032767.html","width":86,"caption":"","height":130});
															thumbnails[3032768] = clik.newPhoto({"id":3032768,"src":"DSC_5210_thumb.jpg","galleries_id":84452,"server_id":1,"link":"photo_3032768.html","width":130,"caption":"","height":87});
															thumbnails[3032770] = clik.newPhoto({"id":3032770,"src":"DSC_7425b+wblur_thumb.jpg","galleries_id":84452,"server_id":1,"link":"photo_3032770.html","width":87,"caption":"","height":130});
															thumbnails[3032771] = clik.newPhoto({"id":3032771,"src":"DSC_7908_thumb.jpg","galleries_id":84452,"server_id":1,"link":"photo_3032771.html","width":87,"caption":"","height":130});
															thumbnails[3032772] = clik.newPhoto({"id":3032772,"src":"DSC_8238b+w_thumb.jpg","galleries_id":84452,"server_id":1,"link":"photo_3032772.html","width":130,"caption":"","height":87});
															thumbnails[3032775] = clik.newPhoto({"id":3032775,"src":"DSC_8370tu_thumb.jpg","galleries_id":84452,"server_id":1,"link":"photo_3032775.html","width":130,"caption":"","height":87});
															thumbnails[3032776] = clik.newPhoto({"id":3032776,"src":"DSC_8399tu_thumb.jpg","galleries_id":84452,"server_id":1,"link":"photo_3032776.html","width":87,"caption":"","height":130});
															thumbnails[3032777] = clik.newPhoto({"id":3032777,"src":"DSC_8514_thumb.jpg","galleries_id":84452,"server_id":1,"link":"photo_3032777.html","width":130,"caption":"","height":87});
															thumbnails[3032778] = clik.newPhoto({"id":3032778,"src":"DSC_9012b+w_thumb.jpg","galleries_id":84452,"server_id":1,"link":"photo_3032778.html","width":91,"caption":"","height":130});
															thumbnails[3032779] = clik.newPhoto({"id":3032779,"src":"DSC_9854_thumb.jpg","galleries_id":84452,"server_id":1,"link":"photo_3032779.html","width":130,"caption":"","height":87});
															thumbnails[3035262] = clik.newPhoto({"id":3035262,"src":"DSC_4010web_thumb.jpg","galleries_id":84913,"server_id":1,"link":"photo_3035262.html","width":130,"caption":"","height":87});
															thumbnails[3035282] = clik.newPhoto({"id":3035282,"src":"DSC_2044web_thumb.jpg","galleries_id":84913,"server_id":1,"link":"photo_3035282.html","width":130,"caption":"","height":87});
															thumbnails[3035351] = clik.newPhoto({"id":3035351,"src":"DSC_5294web_thumb.jpg","galleries_id":84913,"server_id":1,"link":"photo_3035351.html","width":130,"caption":"","height":86});
															thumbnails[3035354] = clik.newPhoto({"id":3035354,"src":"DSC_5464web_thumb.jpg","galleries_id":84913,"server_id":1,"link":"photo_3035354.html","width":130,"caption":"","height":86});
															thumbnails[3140248] = clik.newPhoto({"id":3140248,"src":"DSC_1470tu2fv4web_thumb.jpg","galleries_id":84909,"server_id":1,"link":"photo_3140248.html","width":85,"caption":"","height":130});
															thumbnails[3140251] = clik.newPhoto({"id":3140251,"src":"DSC_1508b&w4web_thumb.jpg","galleries_id":84909,"server_id":1,"link":"photo_3140251.html","width":98,"caption":"","height":130});
															thumbnails[3673909] = clik.newPhoto({"id":3673909,"src":"bridgefrance_thumb.jpg","galleries_id":84913,"server_id":1,"link":"photo_3673909.html","width":130,"caption":"","height":87});
															thumbnails[3673921] = clik.newPhoto({"id":3673921,"src":"champagne_thumb.jpg","galleries_id":84913,"server_id":1,"link":"photo_3673921.html","width":130,"caption":"","height":87});
															thumbnails[3673926] = clik.newPhoto({"id":3673926,"src":"deckchairsbeach_thumb.jpg","galleries_id":84913,"server_id":1,"link":"photo_3673926.html","width":130,"caption":"","height":87});
															thumbnails[3673930] = clik.newPhoto({"id":3673930,"src":"deckchairspebbles_thumb.jpg","galleries_id":84913,"server_id":1,"link":"photo_3673930.html","width":130,"caption":"","height":90});
															thumbnails[3673934] = clik.newPhoto({"id":3673934,"src":"doggie_thumb.jpg","galleries_id":84909,"server_id":1,"link":"photo_3673934.html","width":87,"caption":"","height":130});
															thumbnails[3673936] = clik.newPhoto({"id":3673936,"src":"JohmStevebw_thumb.jpg","galleries_id":84452,"server_id":1,"link":"photo_3673936.html","width":130,"caption":"","height":65});
															thumbnails[3673937] = clik.newPhoto({"id":3673937,"src":"Piernight1_thumb.jpg","galleries_id":84452,"server_id":1,"link":"photo_3673937.html","width":130,"caption":"","height":86});
															thumbnails[3673946] = clik.newPhoto({"id":3673946,"src":"sulking-dog_thumb.gif","galleries_id":84909,"server_id":1,"link":"photo_3673946.html","width":130,"caption":"","height":94});
															thumbnails[3673949] = clik.newPhoto({"id":3673949,"src":"SusieNeil2_thumb.gif","galleries_id":84909,"server_id":1,"link":"photo_3673949.html","width":130,"caption":"","height":87});
															thumbnails[3673951] = clik.newPhoto({"id":3673951,"src":"SusieNeil3_thumb.gif","galleries_id":84909,"server_id":1,"link":"photo_3673951.html","width":87,"caption":"","height":130});
															thumbnails[3965203] = clik.newPhoto({"id":3965203,"src":"DSC_1566_thumb.jpg","galleries_id":84913,"server_id":1,"link":"photo_3965203.html","width":130,"caption":"","height":87});
															thumbnails[3965231] = clik.newPhoto({"id":3965231,"src":"DSC_3230no6_thumb.jpg","galleries_id":84912,"server_id":1,"link":"photo_3965231.html","width":120,"caption":"","height":130});
															thumbnails[3965235] = clik.newPhoto({"id":3965235,"src":"DSC_3321tueffects_thumb.jpg","galleries_id":84912,"server_id":1,"link":"photo_3965235.html","width":130,"caption":"","height":107});
															thumbnails[3965241] = clik.newPhoto({"id":3965241,"src":"DSC_3367tu_thumb.jpg","galleries_id":84912,"server_id":1,"link":"photo_3965241.html","width":88,"caption":"","height":130});
															thumbnails[3965844] = clik.newPhoto({"id":3965844,"src":"DSC_3561_thumb.jpg","galleries_id":84913,"server_id":1,"link":"photo_3965844.html","width":130,"caption":"","height":87});
															thumbnails[3965848] = clik.newPhoto({"id":3965848,"src":"DSC_3605_thumb.jpg","galleries_id":84913,"server_id":1,"link":"photo_3965848.html","width":130,"caption":"","height":87});
															thumbnails[3965852] = clik.newPhoto({"id":3965852,"src":"DSC_3721_thumb.jpg","galleries_id":84913,"server_id":1,"link":"photo_3965852.html","width":130,"caption":"","height":87});
															thumbnails[3965943] = clik.newPhoto({"id":3965943,"src":"DSC_3745_thumb.jpg","galleries_id":84913,"server_id":1,"link":"photo_3965943.html","width":130,"caption":"","height":87});
															thumbnails[6301348] = clik.newPhoto({"id":6301348,"src":"DSC_0522a_thumb.jpg","galleries_id":84912,"server_id":1,"link":"photo_6301348.html","width":86,"caption":"","height":130});
															thumbnails[6301372] = clik.newPhoto({"id":6301372,"src":"DSC_0211a_thumb.jpg","galleries_id":84909,"server_id":1,"link":"photo_6301372.html","width":130,"caption":"","height":86});
															thumbnails[7308299] = clik.newPhoto({"id":7308299,"src":"bestmenwhisper_thumb.jpg","galleries_id":84452,"server_id":1,"link":"photo_7308299.html","width":130,"caption":"","height":93});
															thumbnails[7308302] = clik.newPhoto({"id":7308302,"src":"blackswans_thumb.jpg","galleries_id":84452,"server_id":1,"link":"photo_7308302.html","width":130,"caption":"","height":86});
															thumbnails[7308308] = clik.newPhoto({"id":7308308,"src":"DSC_0219bw_thumb.jpg","galleries_id":84452,"server_id":1,"link":"photo_7308308.html","width":130,"caption":"","height":92});
															thumbnails[7308311] = clik.newPhoto({"id":7308311,"src":"DSC_0351crop_thumb.jpg","galleries_id":84452,"server_id":1,"link":"photo_7308311.html","width":87,"caption":"","height":130});
															thumbnails[7308314] = clik.newPhoto({"id":7308314,"src":"DSC_0446bw_thumb.jpg","galleries_id":84452,"server_id":1,"link":"photo_7308314.html","width":86,"caption":"","height":130});
															thumbnails[7308317] = clik.newPhoto({"id":7308317,"src":"DSC_0472crop2kilt_thumb.jpg","galleries_id":84452,"server_id":1,"link":"photo_7308317.html","width":87,"caption":"","height":130});
															thumbnails[7308320] = clik.newPhoto({"id":7308320,"src":"DSC_0505bw_thumb.jpg","galleries_id":84452,"server_id":1,"link":"photo_7308320.html","width":130,"caption":"","height":86});
															thumbnails[7308322] = clik.newPhoto({"id":7308322,"src":"DSC_0686_thumb.jpg","galleries_id":84452,"server_id":1,"link":"photo_7308322.html","width":130,"caption":"","height":91});
															thumbnails[7308329] = clik.newPhoto({"id":7308329,"src":"DSC_0695_thumb.jpg","galleries_id":84452,"server_id":1,"link":"photo_7308329.html","width":86,"caption":"","height":130});
															thumbnails[7308333] = clik.newPhoto({"id":7308333,"src":"DSC_2590cropBW_thumb.jpg","galleries_id":84452,"server_id":1,"link":"photo_7308333.html","width":130,"caption":"","height":87});
															thumbnails[7308340] = clik.newPhoto({"id":7308340,"src":"Groompic_thumb.jpg","galleries_id":84452,"server_id":1,"link":"photo_7308340.html","width":130,"caption":"","height":86});
															thumbnails[7308343] = clik.newPhoto({"id":7308343,"src":"hands_thumb.jpg","galleries_id":84452,"server_id":1,"link":"photo_7308343.html","width":130,"caption":"","height":93});
															thumbnails[7308344] = clik.newPhoto({"id":7308344,"src":"Veilcover_thumb.jpg","galleries_id":84452,"server_id":1,"link":"photo_7308344.html","width":130,"caption":"","height":86});
															thumbnails[7308412] = clik.newPhoto({"id":7308412,"src":"Lifeboat_thumb.jpg","galleries_id":84913,"server_id":1,"link":"photo_7308412.html","width":130,"caption":"","height":86});
															thumbnails[7308420] = clik.newPhoto({"id":7308420,"src":"Palacepierbrighton_thumb.jpg","galleries_id":84913,"server_id":1,"link":"photo_7308420.html","width":130,"caption":"","height":86});
															thumbnails[7308429] = clik.newPhoto({"id":7308429,"src":"BrightonandHovefromtheair_thumb.jpg","galleries_id":84913,"server_id":1,"link":"photo_7308429.html","width":130,"caption":"","height":86});
															thumbnails[7308437] = clik.newPhoto({"id":7308437,"src":"Brightonmarina_thumb.jpg","galleries_id":84913,"server_id":1,"link":"photo_7308437.html","width":130,"caption":"","height":86});
															thumbnails[7308453] = clik.newPhoto({"id":7308453,"src":"DSC_0097_thumb.jpg","galleries_id":84913,"server_id":1,"link":"photo_7308453.html","width":130,"caption":"","height":86});
															thumbnails[7308467] = clik.newPhoto({"id":7308467,"src":"Rottingdean_thumb.jpg","galleries_id":84913,"server_id":1,"link":"photo_7308467.html","width":130,"caption":"","height":86});
															thumbnails[7358714] = clik.newPhoto({"id":7358714,"src":"DSC_RL-Eastlands_thumb.jpg","galleries_id":84452,"server_id":1,"link":"photo_7358714.html","width":130,"caption":"","height":62});
															thumbnails[1492594] = clik.newPhoto({"id":1492594,"src":"DSC_0238b+wweb1.jpg","galleries_id":84909,"server_id":1,"link":"photo_1492594.html","width":92,"caption":"Me and my camera!","height":130});
															thumbnails[1661292] = clik.newPhoto({"id":1661292,"src":"DSC_0415cropb+w2_thumb.jpg","galleries_id":84452,"server_id":1,"link":"photo_1661292.html","width":92,"caption":"","height":130});
															thumbnails[6301061] = clik.newPhoto({"id":6301061,"src":"DSC_0049a_thumb.jpg","galleries_id":349508,"server_id":1,"link":"photo_6301061.html","width":130,"caption":"","height":86});
															thumbnails[1193062] = clik.newPhoto({"id":1193062,"src":"DSC_3241effects3.jpg","galleries_id":84452,"server_id":1,"link":"photo_1193062.html","width":130,"caption":"","height":92});
															thumbnails[6301066] = clik.newPhoto({"id":6301066,"src":"DSC_0114a_thumb.jpg","galleries_id":349508,"server_id":1,"link":"photo_6301066.html","width":130,"caption":"","height":86});
															thumbnails[2539061] = clik.newPhoto({"id":2539061,"src":"Louisetyingshoe_thumb.jpg","galleries_id":84452,"server_id":1,"link":"photo_2539061.html","width":92,"caption":"","height":130});
															thumbnails[3032773] = clik.newPhoto({"id":3032773,"src":"DSC_8350b+w_thumb.jpg","galleries_id":84452,"server_id":1,"link":"photo_3032773.html","width":130,"caption":"","height":87});
															thumbnails[6301087] = clik.newPhoto({"id":6301087,"src":"DSC_0190_4a_thumb.jpg","galleries_id":349508,"server_id":1,"link":"photo_6301087.html","width":130,"caption":"","height":86});
															thumbnails[2539006] = clik.newPhoto({"id":2539006,"src":"Ellaatdoor1_thumb.jpg","galleries_id":84452,"server_id":1,"link":"photo_2539006.html","width":85,"caption":"","height":130});
															thumbnails[2539005] = clik.newPhoto({"id":2539005,"src":"Ella&Ryanwall_thumb.jpg","galleries_id":84452,"server_id":1,"link":"photo_2539005.html","width":130,"caption":"","height":87});
															thumbnails[6301254] = clik.newPhoto({"id":6301254,"src":"DSC_0277a_thumb.jpg","galleries_id":349508,"server_id":1,"link":"photo_6301254.html","width":86,"caption":"","height":130});
															thumbnails[1193063] = clik.newPhoto({"id":1193063,"src":"DSC_3181b+w1.jpg","galleries_id":84452,"server_id":1,"link":"photo_1193063.html","width":86,"caption":"","height":130});
															thumbnails[1193069] = clik.newPhoto({"id":1193069,"src":"2004_1007katieingarden0004+1.jpg","galleries_id":84912,"server_id":1,"link":"photo_1193069.html","width":92,"caption":"","height":130});
															thumbnails[3032724] = clik.newPhoto({"id":3032724,"src":"DSC_0490_thumb.jpg","galleries_id":84452,"server_id":1,"link":"photo_3032724.html","width":130,"caption":"","height":87});
															thumbnails[1193057] = clik.newPhoto({"id":1193057,"src":"DSC_2604b+w1.jpg","galleries_id":84452,"server_id":1,"link":"photo_1193057.html","width":86,"caption":"","height":130});
															thumbnails[6301282] = clik.newPhoto({"id":6301282,"src":"DSC_0317a1_thumb.jpg","galleries_id":349508,"server_id":1,"link":"photo_6301282.html","width":130,"caption":"","height":86});
															thumbnails[1193058] = clik.newPhoto({"id":1193058,"src":"DSC_3346effects1.jpg","galleries_id":84452,"server_id":1,"link":"photo_1193058.html","width":87,"caption":"","height":130});
															thumbnails[3032769] = clik.newPhoto({"id":3032769,"src":"DSC_5306_thumb.jpg","galleries_id":84452,"server_id":1,"link":"photo_3032769.html","width":130,"caption":"","height":87});
															thumbnails[6301311] = clik.newPhoto({"id":6301311,"src":"DSC_0436a_thumb.jpg","galleries_id":349508,"server_id":1,"link":"photo_6301311.html","width":130,"caption":"","height":86});
															thumbnails[1193060] = clik.newPhoto({"id":1193060,"src":"DSC_13011.jpg","galleries_id":84452,"server_id":1,"link":"photo_1193060.html","width":130,"caption":"","height":87});
															thumbnails[1197782] = clik.newPhoto({"id":1197782,"src":"DSC_32511.jpg","galleries_id":84452,"server_id":1,"link":"photo_1197782.html","width":130,"caption":"","height":86});
															thumbnails[3032734] = clik.newPhoto({"id":3032734,"src":"DSC_1559_2_thumb.jpg","galleries_id":84452,"server_id":1,"link":"photo_3032734.html","width":130,"caption":"","height":87});
															thumbnails[1193068] = clik.newPhoto({"id":1193068,"src":"31.jpg","galleries_id":84912,"server_id":1,"link":"photo_1193068.html","width":92,"caption":"","height":130});
															thumbnails[1197186] = clik.newPhoto({"id":1197186,"src":"lineup5.jpg","galleries_id":84452,"server_id":1,"link":"photo_1197186.html","width":130,"caption":"","height":86});
															thumbnails[1413814] = clik.newPhoto({"id":1413814,"src":"DSC_63061.JPG","galleries_id":84452,"server_id":1,"link":"photo_1413814.html","width":130,"caption":"","height":87});
															thumbnails[2765269] = clik.newPhoto({"id":2765269,"src":"Fireworks backs_thumb.jpg","galleries_id":84452,"server_id":1,"link":"photo_2765269.html","width":87,"caption":"","height":130});
															thumbnails[3673940] = clik.newPhoto({"id":3673940,"src":"Piernight9effects_thumb.gif","galleries_id":84452,"server_id":1,"link":"photo_3673940.html","width":130,"caption":"","height":86});
															thumbnails[6301371] = clik.newPhoto({"id":6301371,"src":"DSC_0003a_thumb.jpg","galleries_id":84909,"server_id":1,"link":"photo_6301371.html","width":130,"caption":"","height":86});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[84452] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Weddings","link":"gallery_84452.html","maxRecords":0.0,"photoIDs":[1183243.0,1193053.0,1193054.0,1193064.0,1197908.0,2539040.0,2539043.0,2539048.0,2539053.0,2539063.0,2539066.0,2539067.0,3032706.0,3032708.0,3032710.0,3032714.0,3032717.0,3032718.0,3032720.0,3032723.0,3032725.0,3032726.0,3032728.0,3032729.0,3032732.0,3032736.0,3032737.0,3032739.0,3032740.0,3032742.0,3032743.0,3032745.0,3032747.0,3032749.0,3032751.0,3032753.0,3032757.0,3032759.0,3032760.0,3032763.0,3032764.0,3032766.0,3032767.0,3032768.0,3032770.0,3032771.0,3032772.0,3032775.0,3032776.0,3032777.0,3032778.0,3032779.0,3673936.0,3673937.0,7308299.0,7308302.0,7308308.0,7308311.0,7308314.0,7308317.0,7308320.0,7308322.0,7308329.0,7308333.0,7308340.0,7308343.0,7308344.0,7358714.0,1661292.0,1193062.0,2539061.0,3032773.0,2539006.0,2539005.0,1193063.0,3032724.0,1193057.0,1193058.0,3032769.0,1193060.0,1197782.0,3032734.0,1197186.0,1413814.0,2765269.0,3673940.0],"skipIndex":0,"section_code":"gallery","featured_images":1193058.0,"id":84452,"singleSection":false});				  						galleries[84912] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Fashion\/Modelling","link":"gallery_84912.html","maxRecords":0.0,"photoIDs":[1193065.0,1193067.0,1193070.0,1193071.0,1193072.0,1193073.0,1193074.0,1193076.0,1193086.0,1193087.0,1193088.0,1193089.0,1193090.0,3965231.0,3965235.0,3965241.0,6301348.0,1193069.0,1193068.0],"skipIndex":0,"section_code":"gallery","featured_images":1193068.0,"id":84912,"singleSection":false});				  						galleries[84909] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portrait","link":"gallery_84909.html","maxRecords":0.0,"photoIDs":[1193101.0,1193102.0,1197652.0,1197653.0,1197655.0,1197656.0,1197660.0,1197662.0,1197666.0,1197676.0,1197771.0,1197851.0,1197903.0,1263224.0,3140248.0,3140251.0,3673934.0,3673946.0,3673949.0,3673951.0,6301372.0,1492594.0,6301371.0],"skipIndex":0,"section_code":"gallery","featured_images":"1492594,1193101","id":84909,"singleSection":false});				  						galleries[84913] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Commercial","link":"gallery_84913.html","maxRecords":0.0,"photoIDs":[1197332.0,1197338.0,1197340.0,1197342.0,1197350.0,1197549.0,1197566.0,1197571.0,1197580.0,1960535.0,3035262.0,3035282.0,3035351.0,3035354.0,3673909.0,3673921.0,3673926.0,3673930.0,3965203.0,3965844.0,3965848.0,3965852.0,3965943.0,7308412.0,7308420.0,7308429.0,7308437.0,7308453.0,7308467.0],"skipIndex":0,"section_code":"gallery","featured_images":1197342.0,"id":84913,"singleSection":false});				  						galleries[349508] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Trash the Dress","link":"gallery_349508.html","maxRecords":0.0,"photoIDs":[6301061.0,6301066.0,6301087.0,6301254.0,6301282.0,6301311.0],"skipIndex":0,"section_code":"gallery","featured_images":6301087.0,"id":349508,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '7358714,6301348,3965241,3965235,3965203,3032710,3032708,3032706,2539063,1960535,1263224,1193101,6301061,1661292,1492594,6301066,1193062,6301087,3032773,2539061,2539006,6301254,2539005,1193063,6301311,3032769,1193058,3032734,1193068,1197186,2765269,3673940,6301371';
imageSets[2] = '1197342,1193101,1492594,6301087,1193058,1193068';
imageSets[3] = '7358714,6301066';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/petebray/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/petebray/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/petebray/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/petebray/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/petebray/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/petebray/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/petebray/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/petebray/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/petebray/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/petebray/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/petebray/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/petebray/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/petebray/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/petebray/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/petebray/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/petebray/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/petebray/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/petebray/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/petebray/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/petebray/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/petebray/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/petebray/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/petebray/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/petebray/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = backgrounds && backgrounds[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$detailContainer:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
		op = $.extend({},defaults,options),
		html = '', temp = '',
		photoId = op.nextPhoto.id,
		photoCaption = ''+op.nextPhoto.caption,
		photoSrc = op.nextPhoto.src;
	
	if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'Peter Bray 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>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> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp += '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
	else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

