window.thumbnails = {};
															thumbnails[8552326] = clik.newPhoto({"id":8552326,"src":"Poster_Final_-_for_Web1_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":87,"caption":"","height":130});
															thumbnails[6576503] = clik.newPhoto({"id":6576503,"src":"Eastbourne_3-14_-_web_site_resized_thumb.jpg","galleries_id":360736,"server_id":5,"link":"photo_6576503.html","width":50,"caption":"Eastbourne Sunrise","height":130});
															thumbnails[6576537] = clik.newPhoto({"id":6576537,"src":"Polesden_Lacey_1_-_web_site_resized_thumb.jpg","galleries_id":360736,"server_id":5,"link":"photo_6576537.html","width":130,"caption":"Autumn trees at Polesden Lacey","height":62});
															thumbnails[6576547] = clik.newPhoto({"id":6576547,"src":"Canal_Boat_1-_web_site_-_b12_thumb.jpg","galleries_id":360736,"server_id":5,"link":"photo_6576547.html","width":130,"caption":"Canal Boat","height":44});
															thumbnails[6850177] = clik.newPhoto({"id":6850177,"src":"1_-_St_Bees_Beach_-_6_website_thumb.jpg","galleries_id":371925,"server_id":5,"link":"photo_6850177.html","width":87,"caption":"St Bees Head from the Beach","height":130});
															thumbnails[6844963] = clik.newPhoto({"id":6844963,"src":"2_A3_-_St_Bees_Beach_-_31234567_thumb.jpg","galleries_id":371925,"server_id":5,"link":"photo_6844963.html","width":69,"caption":"St Bee's Beach, Cumbria","height":130});
															thumbnails[7011926] = clik.newPhoto({"id":7011926,"src":"Leatherhead_Bridge3_-colour_photo112_thumb.jpg","galleries_id":379874,"server_id":5,"link":"photo_7011926.html","width":103,"caption":"River Mole Bridge Leatherhead","height":130});
															thumbnails[8745118] = clik.newPhoto({"id":8745118,"src":"Andelucian_Poppies_-_1_thumb.jpg","galleries_id":460735,"server_id":5,"link":"photo_8745118.html","width":130,"caption":"Mountainside Poppies, Andalusia","height":87});
															thumbnails[6849856] = clik.newPhoto({"id":6849856,"src":"3T_A3_-_St_Bees_Head_-_2_thumb.jpg","galleries_id":371925,"server_id":5,"link":"photo_6849856.html","width":130,"caption":"St Bee's Head, Cumbria","height":68});
															thumbnails[6849855] = clik.newPhoto({"id":6849855,"src":"3B_A3_-_Ennerdale_Water_-_5a_thumb.jpg","galleries_id":371925,"server_id":5,"link":"photo_6849855.html","width":130,"caption":"Ennerdale Water, Cumbria - 1","height":69});
															thumbnails[7011931] = clik.newPhoto({"id":7011931,"src":"Leatherhead_1-7_-photo_2DL1_thumb.jpg","galleries_id":379874,"server_id":5,"link":"photo_7011931.html","width":130,"caption":"Church of St Mary and St Nicholas, Leatherhead, Surrey","height":56});
															thumbnails[7013169] = clik.newPhoto({"id":7013169,"src":"IMG_1850_edited-11_thumb.JPG","galleries_id":379875,"server_id":5,"link":"photo_7013169.html","width":130,"caption":"'U' Class 2-6-0 No 1638 at Sheffield Park on the Bluebell Railway","height":88});
															thumbnails[8745119] = clik.newPhoto({"id":8745119,"src":"Andelusia_BB_-_1_thumb.jpg","galleries_id":460735,"server_id":5,"link":"photo_8745119.html","width":130,"caption":"Landscape near Montefino, Andalusia, Spain","height":65});
															thumbnails[6849857] = clik.newPhoto({"id":6849857,"src":"4T_A3_-_Ennerdale_Water_-_1_thumb.jpg","galleries_id":371925,"server_id":5,"link":"photo_6849857.html","width":130,"caption":"Ennerdale Water, Cumbria -2","height":68});
															thumbnails[6849860] = clik.newPhoto({"id":6849860,"src":"4B_A3_-_River_Liza_Ennerdale_-_1_thumb.jpg","galleries_id":371925,"server_id":5,"link":"photo_6849860.html","width":130,"caption":"River Liza, Ennerdale, Cumbria","height":71});
															thumbnails[7011950] = clik.newPhoto({"id":7011950,"src":"Lhd_Rlwy_Bridge_-_IMG_5232_edited-11_thumb.JPG","galleries_id":379874,"server_id":5,"link":"photo_7011950.html","width":130,"caption":"The Railway Bridge over the river Mole, Leatherhead, Surrey","height":130});
															thumbnails[7013171] = clik.newPhoto({"id":7013171,"src":"IMG_1873_edited-1_thumb.JPG","galleries_id":379875,"server_id":5,"link":"photo_7013171.html","width":88,"caption":"'U' Class 2-6-0 No 1638 at Horsted Keynes on the Bluebell Railway","height":130});
															thumbnails[8745122] = clik.newPhoto({"id":8745122,"src":"Panorama_1_-_Spain_-2_thumb.jpg","galleries_id":460735,"server_id":5,"link":"photo_8745122.html","width":130,"caption":"Andalusian Panorama","height":50});
															thumbnails[6849868] = clik.newPhoto({"id":6849868,"src":"5_3x4_-_Black_Sail_-_3_thumb.jpg","galleries_id":371925,"server_id":5,"link":"photo_6849868.html","width":89,"caption":"Black Sail Youth Hostel, Cumbria","height":130});
															thumbnails[6849870] = clik.newPhoto({"id":6849870,"src":"8T_-_Seatoller_-_1_thumb.jpg","galleries_id":371925,"server_id":5,"link":"photo_6849870.html","width":130,"caption":"Seatoller, Cumbria","height":90});
															thumbnails[7011952] = clik.newPhoto({"id":7011952,"src":"Bartons_bookshop_-_IMG_5205_edited-412_thumb.JPG","galleries_id":379874,"server_id":5,"link":"photo_7011952.html","width":130,"caption":"Barton's Bookshop, Leatherhead Surrey","height":54});
															thumbnails[7013181] = clik.newPhoto({"id":7013181,"src":"IMG_6654_edited-1_thumb.JPG","galleries_id":379875,"server_id":5,"link":"photo_7013181.html","width":91,"caption":"'Manor' Class 4-6-0, No 7827 'Lydham Manor' at Paignton on the Dartmouth Steam Railway","height":130});
															thumbnails[8745123] = clik.newPhoto({"id":8745123,"src":"Priego_de_Cordoba_Spain_-_1_thumb.jpg","galleries_id":460735,"server_id":5,"link":"photo_8745123.html","width":87,"caption":"Afternoon Stroll, Priego de Cordoba, Andalusia, Spain","height":130});
															thumbnails[6849873] = clik.newPhoto({"id":6849873,"src":"8B_3x4_-_Stonethwaite_-_2_thumb.jpg","galleries_id":371925,"server_id":5,"link":"photo_6849873.html","width":130,"caption":"Stonethwaite, Lake District","height":90});
															thumbnails[6849878] = clik.newPhoto({"id":6849878,"src":"7B_3x4-_Little_Tongue_Gill_-_1_thumb.jpg","galleries_id":371925,"server_id":5,"link":"photo_6849878.html","width":130,"caption":"Little Tongue Gill, Lake District","height":89});
															thumbnails[7011954] = clik.newPhoto({"id":7011954,"src":"R_Mole_Reflections_-_IMG_9884_edited-21_thumb.JPG","galleries_id":379874,"server_id":5,"link":"photo_7011954.html","width":130,"caption":"Reflections in the River Mole, Leatherhead, Surrey","height":67});
															thumbnails[7013264] = clik.newPhoto({"id":7013264,"src":"IMG_6668_edited-6_thumb.JPG","galleries_id":379875,"server_id":5,"link":"photo_7013264.html","width":130,"caption":"'Manor' Class 4-6-0, No 7827 'Lydham Manor' arriving at Kingswear on the Dartmouth Steam Railway","height":88});
															thumbnails[8745124] = clik.newPhoto({"id":8745124,"src":"Priego_de_Cordoba_Spain_-_2_thumb.jpg","galleries_id":460735,"server_id":5,"link":"photo_8745124.html","width":87,"caption":"Fountain, Priego de Cordoba, Andalusia, Spain","height":130});
															thumbnails[6849881] = clik.newPhoto({"id":6849881,"src":"7T_A3_-_Grisedale_Tarn_-_1_thumb.jpg","galleries_id":371925,"server_id":5,"link":"photo_6849881.html","width":130,"caption":"Grisedale Tarn, Lake District","height":69});
															thumbnails[6849884] = clik.newPhoto({"id":6849884,"src":"9B_3x4_-_Ullswater_from_St_Sunday_Crag_-_1_thumb.jpg","galleries_id":371925,"server_id":5,"link":"photo_6849884.html","width":130,"caption":"Ullswater from St Sunday Crag, Lake District","height":90});
															thumbnails[7011957] = clik.newPhoto({"id":7011957,"src":"Bookham_Tree_in_Snow12_thumb.jpg","galleries_id":379874,"server_id":5,"link":"photo_7011957.html","width":130,"caption":"Tree in the Snow, Great Bookham, Surrey","height":69});
															thumbnails[7013195] = clik.newPhoto({"id":7013195,"src":"IMG_6669_edited-6_thumb.JPG","galleries_id":379875,"server_id":5,"link":"photo_7013195.html","width":130,"caption":"Coaches at Kingswear on the Dartmouth Steam Railway","height":120});
															thumbnails[8745128] = clik.newPhoto({"id":8745128,"src":"Cordaba_-_2_thumb.jpg","galleries_id":460735,"server_id":5,"link":"photo_8745128.html","width":130,"caption":"Cordoba, Andalusia, Spain","height":86});
															thumbnails[6849885] = clik.newPhoto({"id":6849885,"src":"6_5x4_-_Patterdale_-_1_thumb.jpg","galleries_id":371925,"server_id":5,"link":"photo_6849885.html","width":89,"caption":"Patterdale, Cumbria","height":130});
															thumbnails[6849887] = clik.newPhoto({"id":6849887,"src":"9T_A3_-_Angle_Tarn_-_1_thumb.jpg","galleries_id":371925,"server_id":5,"link":"photo_6849887.html","width":130,"caption":"Angle Tarn, Lake District","height":69});
															thumbnails[7011996] = clik.newPhoto({"id":7011996,"src":"Bookham_-_St_Nics_Cherry_L-S1_thumb.jpg","galleries_id":379874,"server_id":5,"link":"photo_7011996.html","width":130,"caption":"Cherry Blossom at St Nicolas, Great Bookham, Surrey","height":90});
															thumbnails[7013227] = clik.newPhoto({"id":7013227,"src":"IMG_6636_edited-2_thumb.JPG","galleries_id":379875,"server_id":5,"link":"photo_7013227.html","width":130,"caption":"'Manor' Class 4-6-0, No 7827 'Lydham Manor' leaving Kingswear on the Dartmouth Steam Railway","height":73});
															thumbnails[8745146] = clik.newPhoto({"id":8745146,"src":"Ronda_Bridge_-_1_thumb.jpg","galleries_id":460735,"server_id":5,"link":"photo_8745146.html","width":86,"caption":"Ponte Nuevo, Rhonda, Andalusia, Spain","height":130});
															thumbnails[6849890] = clik.newPhoto({"id":6849890,"src":"10_3x4_-_Kidsty_Pike_-_1_thumb.jpg","galleries_id":371925,"server_id":5,"link":"photo_6849890.html","width":130,"caption":"Kidsty Pike, Lake District","height":90});
															thumbnails[6849891] = clik.newPhoto({"id":6849891,"src":"11_5x4_-_Haweswater_-_1_thumb.jpg","galleries_id":371925,"server_id":5,"link":"photo_6849891.html","width":88,"caption":"Haweswater, Lake District","height":130});
															thumbnails[7011958] = clik.newPhoto({"id":7011958,"src":"Bookham_Churchyard_Trees_-_112_thumb.jpg","galleries_id":379874,"server_id":5,"link":"photo_7011958.html","width":130,"caption":"Autumn Trees in St Nicolas Churchyard, Great Bookham, Surrey","height":77});
															thumbnails[7013316] = clik.newPhoto({"id":7013316,"src":"Img_6800_thumb.jpg","galleries_id":379875,"server_id":5,"link":"photo_7013316.html","width":88,"caption":"Flower bedecked Platform at Staverton on the South Devon Railway","height":130});
															thumbnails[8745150] = clik.newPhoto({"id":8745150,"src":"Church_in_Spain_-_2_thumb.jpg","galleries_id":460735,"server_id":5,"link":"photo_8745150.html","width":130,"caption":"Church in Comares, Andalusia, Spain","height":87});
															thumbnails[6849918] = clik.newPhoto({"id":6849918,"src":"12_3x4_-_Pennine_Tree_on_Limestone_Pavement_-_2_thumb.jpg","galleries_id":371925,"server_id":5,"link":"photo_6849918.html","width":88,"caption":"Pennine Tree on Limestone Pavement, Cumbria","height":130});
															thumbnails[6849930] = clik.newPhoto({"id":6849930,"src":"13B__A3_Waterfall_above_Keld_-_1_thumb.jpg","galleries_id":371928,"server_id":5,"link":"photo_6849930.html","width":130,"caption":"Wain Wath Force, Keld","height":68});
															thumbnails[7011999] = clik.newPhoto({"id":7011999,"src":"Ashtead_St_Giles_2214_-colour-A41_thumb.jpg","galleries_id":379874,"server_id":5,"link":"photo_7011999.html","width":93,"caption":"St Giles' Church, Ashtead, Surrey","height":130});
															thumbnails[7013177] = clik.newPhoto({"id":7013177,"src":"IMG_6923_edited-3_thumb.jpg","galleries_id":379875,"server_id":5,"link":"photo_7013177.html","width":130,"caption":"'2884' Class 2-8-0 No 3803 at Littlehempsted on the South Devon Railway","height":87});
															thumbnails[6849931] = clik.newPhoto({"id":6849931,"src":"13T_A3Swaledale_-_6_thumb.jpg","galleries_id":371928,"server_id":5,"link":"photo_6849931.html","width":130,"caption":"Swaledale","height":69});
															thumbnails[6849932] = clik.newPhoto({"id":6849932,"src":"14_3x4_-_Swaledale_-_5_thumb.jpg","galleries_id":371928,"server_id":5,"link":"photo_6849932.html","width":90,"caption":"Swaledale","height":130});
															thumbnails[7012039] = clik.newPhoto({"id":7012039,"src":"Windsor_Castle_-_IMG_9143_edited-21_thumb.jpg","galleries_id":379874,"server_id":5,"link":"photo_7012039.html","width":91,"caption":"The Windsor Castle Public House, Little Bookham, Surrey","height":130});
															thumbnails[7012122] = clik.newPhoto({"id":7012122,"src":"IMG_0910_edited-4_thumb.jpg","galleries_id":379875,"server_id":5,"link":"photo_7012122.html","width":130,"caption":"Std Class 4, 4-6-0 No. 76079 Between Grosmont & Whitby, North Yorkshire","height":53});
															thumbnails[6849933] = clik.newPhoto({"id":6849933,"src":"15B__3x4_-_Gunnerside_-_1_thumb.jpg","galleries_id":371928,"server_id":5,"link":"photo_6849933.html","width":130,"caption":"Gunnerside","height":90});
															thumbnails[6849934] = clik.newPhoto({"id":6849934,"src":"15T_A3_Swaledale_Barns_-_1_thumb.jpg","galleries_id":371928,"server_id":5,"link":"photo_6849934.html","width":130,"caption":"Swaledale Barns, Gunnerside","height":69});
															thumbnails[7012000] = clik.newPhoto({"id":7012000,"src":"Effingham_IMG_9122_edited-21_thumb.JPG","galleries_id":379874,"server_id":5,"link":"photo_7012000.html","width":130,"caption":"St Lawrence's Church, Effingham, Surrey","height":90});
															thumbnails[6849935] = clik.newPhoto({"id":6849935,"src":"16_Sq_4x4_-_Swaledale_Tree_-_1_thumb.jpg","galleries_id":371928,"server_id":5,"link":"photo_6849935.html","width":130,"caption":"Lone Tree, Gunnerside (Swaledale)","height":130});
															thumbnails[6849936] = clik.newPhoto({"id":6849936,"src":"17B_3x4_-_Richmond_-_2_thumb.jpg","galleries_id":371928,"server_id":5,"link":"photo_6849936.html","width":130,"caption":"Richmond Cottages","height":69});
															thumbnails[7012002] = clik.newPhoto({"id":7012002,"src":"Cobham_Mill1_-colour21_thumb.jpg","galleries_id":379874,"server_id":5,"link":"photo_7012002.html","width":41,"caption":"The Watermill, Cobham, Surrey","height":130});
															thumbnails[6849937] = clik.newPhoto({"id":6849937,"src":"17T_3x4_-_Richjmond_Castle_-_3_thumb.jpg","galleries_id":371928,"server_id":5,"link":"photo_6849937.html","width":90,"caption":"Richmond Castle from River Swale","height":130});
															thumbnails[6849938] = clik.newPhoto({"id":6849938,"src":"18B_3x4_-_Richmond_-_4_thumb.jpg","galleries_id":371928,"server_id":5,"link":"photo_6849938.html","width":90,"caption":"Richmond Bridge","height":130});
															thumbnails[6849939] = clik.newPhoto({"id":6849939,"src":"18T_3x4_-_Richmond_Waterfall_-_1_thumb.jpg","galleries_id":371928,"server_id":5,"link":"photo_6849939.html","width":130,"caption":"Waterfall on the Swale, Richmond","height":78});
															thumbnails[7012006] = clik.newPhoto({"id":7012006,"src":"Denbies_Avenue_-_1_sepia_-_A41_thumb.jpg","galleries_id":379874,"server_id":5,"link":"photo_7012006.html","width":130,"caption":"Trees at Denbies Vineyard, Dorking, Surrey","height":72});
															thumbnails[6849940] = clik.newPhoto({"id":6849940,"src":"19_Sq_4x4_-_Richmond_-_5_thumb.jpg","galleries_id":371928,"server_id":5,"link":"photo_6849940.html","width":130,"caption":"Richmond Roofs","height":130});
															thumbnails[6849941] = clik.newPhoto({"id":6849941,"src":"20__A3_Rape_Field_-_Danby_Wiske_-_2_framed_for_A23_thumb.jpg","galleries_id":371928,"server_id":5,"link":"photo_6849941.html","width":130,"caption":"Oilseed Rape Field, Danby Wiske","height":68});
															thumbnails[7012032] = clik.newPhoto({"id":7012032,"src":"St_Martins_Dorking__IMG_2555_edited-21_thumb.JPG","galleries_id":379874,"server_id":5,"link":"photo_7012032.html","width":130,"caption":"St Martin's Church, Dorking, Surrey","height":54});
															thumbnails[6849947] = clik.newPhoto({"id":6849947,"src":"21T__A3_Yorkshire_Moors_-_2_thumb.jpg","galleries_id":371928,"server_id":5,"link":"photo_6849947.html","width":130,"caption":"Boundary Stone, North Yorkshire Moors","height":68});
															thumbnails[6849943] = clik.newPhoto({"id":6849943,"src":"21B_A3_Yorkshire_Moors_-_1_-_A3_thumb.jpg","galleries_id":371928,"server_id":5,"link":"photo_6849943.html","width":130,"caption":"White Hill, Hasty Bank, North Yorkshire Moors","height":80});
															thumbnails[7012027] = clik.newPhoto({"id":7012027,"src":"Bluebells_at_Abinger_-_IMG_1179_edited-112_thumb.JPG","galleries_id":379874,"server_id":5,"link":"photo_7012027.html","width":130,"caption":"Bluebells in the woods at Abinger Roughs, Surrey","height":52});
															thumbnails[6849948] = clik.newPhoto({"id":6849948,"src":"22_3x4_-_Edgemont_Bridge_-_1_thumb.jpg","galleries_id":371928,"server_id":5,"link":"photo_6849948.html","width":130,"caption":"Horseshoe Hotel, Egton Bridge","height":80});
															thumbnails[6849955] = clik.newPhoto({"id":6849955,"src":"23B_3x4_-_Grosmont_Loco_-_6_BW_thumb.jpg","galleries_id":371928,"server_id":5,"link":"photo_6849955.html","width":130,"caption":"\"Black 5\" 4-6-0, No. 45428 Eric Treacy at Grosmont Station","height":89});
															thumbnails[7012050] = clik.newPhoto({"id":7012050,"src":"St_Marthas_-_IMG_0947_edited-41_thumb.jpg","galleries_id":379874,"server_id":5,"link":"photo_7012050.html","width":130,"caption":"Church of St Martha's on the Hill , Chilworth, Surrey","height":89});
															thumbnails[6849956] = clik.newPhoto({"id":6849956,"src":"23T_3x4_-_Grosmont_Loco_-_5_BW_thumb.jpg","galleries_id":371928,"server_id":5,"link":"photo_6849956.html","width":90,"caption":"S&DJR 7F 2-8-0 No. 53809 at Grosmont Station","height":130});
															thumbnails[6850007] = clik.newPhoto({"id":6850007,"src":"24B_-_Grosmont_Loco_Portrait_-_3_BW_thumb.jpg","galleries_id":371928,"server_id":5,"link":"photo_6850007.html","width":88,"caption":"60007 Sir Nigel Gresley, 4-6-2 'A4' Class leaving Grosmont Station","height":130});
															thumbnails[7012053] = clik.newPhoto({"id":7012053,"src":"Bramley_Railway_-_IMG_3333_edited-11_thumb.jpg","galleries_id":379874,"server_id":5,"link":"photo_7012053.html","width":130,"caption":"Cycle Route on The Old Railway Line, Bramley, Surrey","height":89});
															thumbnails[6850016] = clik.newPhoto({"id":6850016,"src":"24T_3x4_-_Grosmont_Loco_-_1_BW_thumb.jpg","galleries_id":371928,"server_id":5,"link":"photo_6850016.html","width":130,"caption":"Std Class 4, 4-6-0 No. 76079 at Grosmont Station","height":90});
															thumbnails[6850021] = clik.newPhoto({"id":6850021,"src":"25_A3_Yorkshire_Moors_Village_-_1_thumb.jpg","galleries_id":371928,"server_id":5,"link":"photo_6850021.html","width":69,"caption":"Littlebeck","height":130});
															thumbnails[7012057] = clik.newPhoto({"id":7012057,"src":"Guildford_Cathedral_-_IMG_31071_thumb.JPG","galleries_id":379874,"server_id":5,"link":"photo_7012057.html","width":130,"caption":"The Cathedral Church of the Holy Spirit, Guildford, Surrey","height":89});
															thumbnails[6850027] = clik.newPhoto({"id":6850027,"src":"26_A3_Moors_Lone_Tree_-_1_thumb.jpg","galleries_id":371928,"server_id":5,"link":"photo_6850027.html","width":69,"caption":"Lone Tree, Sneaton Low Moor","height":130});
															thumbnails[6850035] = clik.newPhoto({"id":6850035,"src":"28T_A3_Coast_-_1_thumb.jpg","galleries_id":371928,"server_id":5,"link":"photo_6850035.html","width":130,"caption":"Cliffs North of Robin Hood's Bay","height":68});
															thumbnails[7012060] = clik.newPhoto({"id":7012060,"src":"PaperCourt_Lock_1-1_26x36-photo1_thumb.jpg","galleries_id":379874,"server_id":5,"link":"photo_7012060.html","width":94,"caption":"Papercourt Lock, River Wey Navigation, Surrey","height":130});
															thumbnails[6850046] = clik.newPhoto({"id":6850046,"src":"31_5x4_Robin_Hoods_Bay_-_7_thumb.jpg","galleries_id":371928,"server_id":5,"link":"photo_6850046.html","width":89,"caption":"Robin Hood's Bay","height":130});
															thumbnails[6850028] = clik.newPhoto({"id":6850028,"src":"27B_3x4_-_Robin_Hoods_Bay_-_3_thumb.jpg","galleries_id":371928,"server_id":5,"link":"photo_6850028.html","width":130,"caption":"Robin Hood's Bay","height":89});
															thumbnails[7012064] = clik.newPhoto({"id":7012064,"src":"River_Wey_1-1_-Photo_-12x101_thumb.jpg","galleries_id":379874,"server_id":5,"link":"photo_7012064.html","width":93,"caption":"Canal Boat above Pyrford Lock, River Wey, Surrey","height":130});
															thumbnails[8745153] = clik.newPhoto({"id":8745153,"src":"Torcello_-_1_thumb.jpg","galleries_id":460735,"server_id":5,"link":"photo_8745153.html","width":130,"caption":"Building besides the Canal, Torcello, Italy","height":89});
															thumbnails[6850039] = clik.newPhoto({"id":6850039,"src":"29_A3_-_Robin_Hoods_Bay_Reflection_-_1a_thumb.jpg","galleries_id":371928,"server_id":5,"link":"photo_6850039.html","width":69,"caption":"Robin Hood's Bay Reflection","height":130});
															thumbnails[6850041] = clik.newPhoto({"id":6850041,"src":"30_5x4_Robin_Hoods_Bay_-_6_thumb.jpg","galleries_id":371928,"server_id":5,"link":"photo_6850041.html","width":130,"caption":"Old Coastguard Station, Robin Hood's Bay","height":89});
															thumbnails[7012083] = clik.newPhoto({"id":7012083,"src":"Reigate_Heath_Windmill_1-2_-original_11234_thumb.jpg","galleries_id":379874,"server_id":5,"link":"photo_7012083.html","width":88,"caption":"The Windmill, Reigate Heath, Surrey","height":130});
															thumbnails[8745154] = clik.newPhoto({"id":8745154,"src":"Burano_Bicycle_-_11_thumb.jpg","galleries_id":460735,"server_id":5,"link":"photo_8745154.html","width":86,"caption":"Bicycle outiside shop, Burano","height":130});
															thumbnails[7012085] = clik.newPhoto({"id":7012085,"src":"Reigate_Town_Hall_-_IMG_0147_edited-512_thumb.jpg","galleries_id":379874,"server_id":5,"link":"photo_7012085.html","width":130,"caption":"The Old Town Hall, Reigate, Surrey","height":54});
															thumbnails[8745155] = clik.newPhoto({"id":8745155,"src":"Burano_-_2_thumb.jpg","galleries_id":460735,"server_id":5,"link":"photo_8745155.html","width":86,"caption":"Burano, Italy","height":130});
															thumbnails[7012089] = clik.newPhoto({"id":7012089,"src":"St_Mary_Reigate_-_11_thumb.jpg","galleries_id":379874,"server_id":5,"link":"photo_7012089.html","width":130,"caption":"St Mary's Church, Reigate, Surrey","height":118});
															thumbnails[8745167] = clik.newPhoto({"id":8745167,"src":"Venice_Silhouette_-_1_thumb.jpg","galleries_id":460735,"server_id":5,"link":"photo_8745167.html","width":130,"caption":"The Church of San Michele in Insola, Venice, Italy in the early morning","height":88});
															thumbnails[7012098] = clik.newPhoto({"id":7012098,"src":"IMG_0290_edited-21_thumb.jpg","galleries_id":379874,"server_id":5,"link":"photo_7012098.html","width":48,"caption":"Wray Common Windmill, Reigate, Surrey","height":130});
															thumbnails[8745170] = clik.newPhoto({"id":8745170,"src":"Venice_-_Rialto_Bridge_-_1_thumb.jpg","galleries_id":460735,"server_id":5,"link":"photo_8745170.html","width":130,"caption":"Rialto Bridge, Venice, Italy","height":87});
															thumbnails[7012100] = clik.newPhoto({"id":7012100,"src":"Wray_Common_Windmill_-_IMG_0269_edited-4_thumb.jpg","galleries_id":379874,"server_id":5,"link":"photo_7012100.html","width":118,"caption":"The Windmill, Wray Common, Reigate, Surrey","height":130});
															thumbnails[8745171] = clik.newPhoto({"id":8745171,"src":"Venice_from_Rialto_Bridge_-_1_thumb.jpg","galleries_id":460735,"server_id":5,"link":"photo_8745171.html","width":130,"caption":"View from Rialto Bridge, Venice, Italy","height":87});
															thumbnails[7012094] = clik.newPhoto({"id":7012094,"src":"Westerham_-_IMG_3602_edited-21_thumb.jpg","galleries_id":379874,"server_id":5,"link":"photo_7012094.html","width":130,"caption":"St Mary's Church and The Green, Westerham, Surrey","height":55});
															thumbnails[8745177] = clik.newPhoto({"id":8745177,"src":"Venice_-_13_A1_thumb.jpg","galleries_id":460735,"server_id":5,"link":"photo_8745177.html","width":130,"caption":"Church of San Giorgio Maggiore from the main island, Venice, Italy","height":49});
															thumbnails[8745183] = clik.newPhoto({"id":8745183,"src":"Venice_Canal_-_2_thumb.jpg","galleries_id":460735,"server_id":5,"link":"photo_8745183.html","width":85,"caption":"Canal in Venice, Italy","height":130});
															thumbnails[8745193] = clik.newPhoto({"id":8745193,"src":"Venice_Canal_-_1_thumb.jpg","galleries_id":460735,"server_id":5,"link":"photo_8745193.html","width":130,"caption":"Venice Canal, Italy","height":87});
															thumbnails[8745196] = clik.newPhoto({"id":8745196,"src":"Venice_Sunset_-_1_thumb.jpg","galleries_id":460735,"server_id":5,"link":"photo_8745196.html","width":87,"caption":"Sunset over the Lagoon, Venice, Italy","height":130});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[371925] = clik.newGallery({"parentGallery":358775,"usePopups":true,"title":"Cumbria and the Lake District","link":"gallery_371925.html","maxRecords":0.0,"photoIDs":[6850177.0,6844963.0,6849856.0,6849855.0,6849857.0,6849860.0,6849868.0,6849870.0,6849873.0,6849878.0,6849881.0,6849884.0,6849885.0,6849887.0,6849890.0,6849891.0,6849918.0],"skipIndex":0,"section_code":"gallery","featured_images":"6849918,6849881,6849870,6849868,6849855,6844963","id":371925,"singleSection":false});				  						galleries[460735] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Festival of Foreign Ffotos","link":"gallery_460735.html","maxRecords":0.0,"photoIDs":[8745118.0,8745119.0,8745122.0,8745123.0,8745124.0,8745128.0,8745146.0,8745150.0,8745153.0,8745154.0,8745155.0,8745167.0,8745170.0,8745171.0,8745177.0,8745183.0,8745193.0,8745196.0],"skipIndex":0,"section_code":"gallery","featured_images":"8745196,8745193,8745183,8745177,8745171,8745170,8745167,8745155,8745154,8745153","id":460735,"singleSection":false});				  						galleries[379875] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Steam Locomotives","link":"gallery_379875.html","maxRecords":0.0,"photoIDs":[7013169.0,7013171.0,7013181.0,7013264.0,7013195.0,7013227.0,7013316.0,7013177.0,7012122.0],"skipIndex":0,"section_code":"gallery","featured_images":"7013316,7013264,7013227,7013195,7013181,7013177,7013171,7013169,7012122","id":379875,"singleSection":false});				  						galleries[379874] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Surrey","link":"gallery_379874.html","maxRecords":0.0,"photoIDs":[7011926.0,7011931.0,7011950.0,7011952.0,7011954.0,7011957.0,7011996.0,7011958.0,7011999.0,7012039.0,7012000.0,7012002.0,7012006.0,7012032.0,7012027.0,7012050.0,7012053.0,7012057.0,7012060.0,7012064.0,7012083.0,7012085.0,7012089.0,7012098.0,7012100.0,7012094.0],"skipIndex":0,"section_code":"gallery","featured_images":"7012100,7012098,7012094,7012089,7012085,7012083,7012064,7012060,7012057,7012053","id":379874,"singleSection":false});				  						galleries[358775] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Coast to Coast Walk","link":"gallery_358775.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"6849918,6849881,6849870,6849868,6849855,6844963","id":358775,"singleSection":false});				  						galleries[367718] = clik.newGallery({"parentGallery":358775,"usePopups":true,"title":"Coast to Coast Opening Night","link":"gallery_367718.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"","id":367718,"singleSection":false});				  						galleries[371928] = clik.newGallery({"parentGallery":358775,"usePopups":true,"title":"Yorkshire","link":"gallery_371928.html","maxRecords":0.0,"photoIDs":[6849930.0,6849931.0,6849932.0,6849933.0,6849934.0,6849935.0,6849936.0,6849937.0,6849938.0,6849939.0,6849940.0,6849941.0,6849947.0,6849943.0,6849948.0,6849955.0,6849956.0,6850007.0,6850016.0,6850021.0,6850027.0,6850035.0,6850046.0,6850028.0,6850039.0,6850041.0],"skipIndex":0,"section_code":"gallery","featured_images":"6850046,6850041,6850039,6850035,6850028,6850027,6850021,6850016,6850007,6849956","id":371928,"singleSection":false});				  						galleries[360736] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Other","link":"gallery_360736.html","maxRecords":0.0,"photoIDs":[6576503.0,6576537.0,6576547.0],"skipIndex":0,"section_code":"gallery","featured_images":"6576547,6576537,6576503","id":360736,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8552326';
imageSets[2] = '6844963,6849855,6849868,6849870,6849881,6849918';
imageSets[3] = '6844963,6849856,6849855,6849857,6849860,6849868,6849870,6849873,6849878,6849881,6849884,6849885,6849887,6849890,6849891';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/garethdancer/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/garethdancer/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/garethdancer/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/garethdancer/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/garethdancer/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/garethdancer/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/garethdancer/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/garethdancer/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/garethdancer/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/garethdancer/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/garethdancer/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/garethdancer/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/garethdancer/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/garethdancer/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/garethdancer/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/garethdancer/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/garethdancer/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/garethdancer/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/garethdancer/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/garethdancer/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/garethdancer/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/garethdancer/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/garethdancer/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/garethdancer/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/garethdancer/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/garethdancer/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/garethdancer/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = (backgrounds || photos || {})[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$detailContainer:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
		op = $.extend({},defaults,options),
		html = '', temp = '',
		photoId = op.nextPhoto.id,
		photoCaption = ''+op.nextPhoto.caption,
		photoSrc = op.nextPhoto.src;
	
	if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'Gareth Dancer 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> ' + (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;
	}
}

			

