window.thumbnails = {};
															thumbnails[8997491] = clik.newPhoto({"id":8997491,"src":"At_Sligachan2_cp1_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":260,"caption":"","height":361});
															thumbnails[2406025] = clik.newPhoto({"id":2406025,"src":"Mick-Jagger-at-Dartford-School_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Mick Jagger at Dartford Grammar School In 2000","height":87});
															thumbnails[8997504] = clik.newPhoto({"id":8997504,"src":"Cuillin_View_from_Elgol_cp_thumb.jpg","galleries_id":151604,"server_id":32,"link":"photo_8997504.html","width":260,"caption":"Cuillin View from Elgol Shore","height":122});
															thumbnails[3438398] = clik.newPhoto({"id":3438398,"src":"Cairngorm Panorama from Carn an Tuirc cp_thumb.jpg","galleries_id":151604,"server_id":32,"link":"photo_3438398.html","width":130,"caption":"Cairngorm Panorama","height":44});
															thumbnails[2662991] = clik.newPhoto({"id":2662991,"src":"10mtt-11_thumb.jpg","galleries_id":155292,"server_id":32,"link":"photo_2662991.html","width":130,"caption":"James Moore in Time Trial Action","height":73});
															thumbnails[2317812] = clik.newPhoto({"id":2317812,"src":"Am-Basteir-&-Sgurr-Nan-Gillean_thumb.jpg","galleries_id":151452,"server_id":32,"link":"photo_2317812.html","width":130,"caption":"Am Bhasteir and Sgurr Nan Gillian, Black Cuillin Isle of Skye","height":98});
															thumbnails[2317817] = clik.newPhoto({"id":2317817,"src":"Glamaig-with-Afternon-Cloud_thumb.jpg","galleries_id":151452,"server_id":32,"link":"photo_2317817.html","width":130,"caption":"Afternoon cloud on Glamaig","height":98});
															thumbnails[2321559] = clik.newPhoto({"id":2321559,"src":"On-route-to-Beinn-Ghlas_thumb.jpg","galleries_id":151604,"server_id":32,"link":"photo_2321559.html","width":130,"caption":"","height":87});
															thumbnails[2321562] = clik.newPhoto({"id":2321562,"src":"On-the-Way-to-Beinn-Ghlas_thumb.jpg","galleries_id":151604,"server_id":32,"link":"photo_2321562.html","width":130,"caption":"Bheinn Ghlas, Tayside, Scotland","height":196});
															thumbnails[2393187] = clik.newPhoto({"id":2393187,"src":"Bumblebee-on-Geranium_thumb.jpg","galleries_id":151606,"server_id":32,"link":"photo_2393187.html","width":130,"caption":"Bumblebee on Geranium 2","height":93});
															thumbnails[2393190] = clik.newPhoto({"id":2393190,"src":"Delphinium_thumb.jpg","galleries_id":151606,"server_id":32,"link":"photo_2393190.html","width":130,"caption":"Lupin","height":195});
															thumbnails[2393197] = clik.newPhoto({"id":2393197,"src":"Peony-1_thumb.jpg","galleries_id":151606,"server_id":32,"link":"photo_2393197.html","width":130,"caption":"White Peony","height":130});
															thumbnails[2393198] = clik.newPhoto({"id":2393198,"src":"Peony-b&w_thumb.jpg","galleries_id":151606,"server_id":32,"link":"photo_2393198.html","width":130,"caption":"White Peony Black and White","height":130});
															thumbnails[2393206] = clik.newPhoto({"id":2393206,"src":"Red-Peony-Rose_thumb.jpg","galleries_id":151606,"server_id":32,"link":"photo_2393206.html","width":130,"caption":"Red Peony","height":87});
															thumbnails[2393552] = clik.newPhoto({"id":2393552,"src":"Rainbow-above-Glenbrittle_thumb.jpg","galleries_id":151452,"server_id":32,"link":"photo_2393552.html","width":130,"caption":"Rainbow above Glenbrittle","height":174});
															thumbnails[2393556] = clik.newPhoto({"id":2393556,"src":"Sgurr-Alasdair-through-a-rainbow_thumb.jpg","galleries_id":151452,"server_id":32,"link":"photo_2393556.html","width":130,"caption":"Sgurr Alasdair through a Rainbow","height":97});
															thumbnails[2394019] = clik.newPhoto({"id":2394019,"src":"Tour-riders-on-Champs-Elysees-2007_thumb.jpg","galleries_id":155292,"server_id":32,"link":"photo_2394019.html","width":130,"caption":"2007 Tour de France Riders on Champs Elysees Paris","height":37});
															thumbnails[2394022] = clik.newPhoto({"id":2394022,"src":"Alberto-Contador_thumb.jpg","galleries_id":155292,"server_id":32,"link":"photo_2394022.html","width":130,"caption":"Alberto Contador","height":87});
															thumbnails[2394024] = clik.newPhoto({"id":2394024,"src":"Tour-de-France-Panorama_thumb.jpg","galleries_id":155292,"server_id":32,"link":"photo_2394024.html","width":130,"caption":"Tour de France Panorama","height":53});
															thumbnails[2661961] = clik.newPhoto({"id":2661961,"src":"10mtt-21_thumb.jpg","galleries_id":155859,"server_id":32,"link":"photo_2661961.html","width":130,"caption":"Cycle Racer in action","height":88});
															thumbnails[3438324] = clik.newPhoto({"id":3438324,"src":"Loch Lomond 2 cp_thumb.jpg","galleries_id":174951,"server_id":32,"link":"photo_3438324.html","width":130,"caption":"Loch Lomond on February 2nd","height":63});
															thumbnails[3438349] = clik.newPhoto({"id":3438349,"src":"Stone Carving cp_thumb.jpg","galleries_id":155866,"server_id":32,"link":"photo_3438349.html","width":130,"caption":"Carving Stone at Traquair Fair<br>\r\n","height":181});
															thumbnails[3565904] = clik.newPhoto({"id":3565904,"src":"During_a_Lesson_on_Motorsport_Photography_web_thumb.jpg","galleries_id":155866,"server_id":32,"link":"photo_3565904.html","width":130,"caption":"Using fast moving traffic on the Eddleston straight near Peebles to teach the basics of motorsport photography. Fraser gets to grips with shutter speeds.","height":87});
															thumbnails[3848239] = clik.newPhoto({"id":3848239,"src":"Broken_Crank_1_web_thumb.jpg","galleries_id":155292,"server_id":32,"link":"photo_3848239.html","width":130,"caption":"Broken Ultegra Crank","height":100});
															thumbnails[3958080] = clik.newPhoto({"id":3958080,"src":"Piping_to_Chapel_2_web_thumb.jpg","galleries_id":151453,"server_id":32,"link":"photo_3958080.html","width":130,"caption":"Nicky Heraty is escorted to Traquair House chapel by Bruce the Piper","height":78});
															thumbnails[3958088] = clik.newPhoto({"id":3958088,"src":"Toast_4_web1_thumb.jpg","galleries_id":151453,"server_id":32,"link":"photo_3958088.html","width":130,"caption":"Joe & Nicky Mulchrone enjoy a drink with Father John after their wedding ceremony","height":100});
															thumbnails[4013792] = clik.newPhoto({"id":4013792,"src":"Wingwalkers_1_web_thumb.jpg","galleries_id":155859,"server_id":32,"link":"photo_4013792.html","width":130,"caption":"Wing Walkers at the East Fortune Airshow in 2008","height":86});
															thumbnails[4013808] = clik.newPhoto({"id":4013808,"src":"Aperture__Depth_of_Field_web_thumb.jpg","galleries_id":155866,"server_id":32,"link":"photo_4013808.html","width":130,"caption":"Aperture Notes on Depth of Field","height":184});
															thumbnails[5135244] = clik.newPhoto({"id":5135244,"src":"Traquair_Halloween_Wedding_thumb.jpg","galleries_id":151453,"server_id":32,"link":"photo_5135244.html","width":130,"caption":"Shannon & Kevin Pisarsky celebrate their wedding & Hallowe'en at Traquair (Scotland's oldest inhabited house)","height":185});
															thumbnails[6739975] = clik.newPhoto({"id":6739975,"src":"Camera_Controls_Web_thumb.jpg","galleries_id":155866,"server_id":32,"link":"photo_6739975.html","width":130,"caption":"Some notes on the main features of a typical digital SLR (Single Lens Reflex)","height":184});
															thumbnails[6739981] = clik.newPhoto({"id":6739981,"src":"Flash_Techniques_web_thumb.jpg","galleries_id":155866,"server_id":32,"link":"photo_6739981.html","width":130,"caption":"Some Notes on Flash Techniques","height":184});
															thumbnails[6739985] = clik.newPhoto({"id":6739985,"src":"Metering_thumb.jpg","galleries_id":155866,"server_id":32,"link":"photo_6739985.html","width":130,"caption":"Notes on Metering Modes","height":184});
															thumbnails[6739987] = clik.newPhoto({"id":6739987,"src":"Action_copy1_web_thumb.jpg","galleries_id":155866,"server_id":32,"link":"photo_6739987.html","width":130,"caption":"Techniques using shutter speed to add a sense of drama to a photograph through movement","height":92});
															thumbnails[6739991] = clik.newPhoto({"id":6739991,"src":"Some_tips_on_Photographing_Motorsport_2_Web_thumb.jpg","galleries_id":155866,"server_id":32,"link":"photo_6739991.html","width":130,"caption":"Motorsport Photography","height":184});
															thumbnails[6740023] = clik.newPhoto({"id":6740023,"src":"Photographing_Glass_web_thumb.jpg","galleries_id":155866,"server_id":32,"link":"photo_6740023.html","width":130,"caption":"Photographing Glass","height":92});
															thumbnails[6740039] = clik.newPhoto({"id":6740039,"src":"Ghost_Image_web_thumb.jpg","galleries_id":155866,"server_id":32,"link":"photo_6740039.html","width":130,"caption":"","height":97});
															thumbnails[6740122] = clik.newPhoto({"id":6740122,"src":"Camera_Exposure_web_thumb.jpg","galleries_id":155866,"server_id":32,"link":"photo_6740122.html","width":130,"caption":"Determining Correct Exposure","height":184});
															thumbnails[6740138] = clik.newPhoto({"id":6740138,"src":"Nightshot-1_web_thumb.jpg","galleries_id":155866,"server_id":32,"link":"photo_6740138.html","width":130,"caption":"Nightshot - Available Light","height":92});
															thumbnails[2393183] = clik.newPhoto({"id":2393183,"src":"Bumblebee-2-on-Geranium_thumb.jpg","galleries_id":151606,"server_id":32,"link":"photo_2393183.html","width":130,"caption":"Bumble bee on Geranium","height":87});
															thumbnails[2405911] = clik.newPhoto({"id":2405911,"src":"Autumn-Lineout-web_thumb.jpg","galleries_id":155859,"server_id":32,"link":"photo_2405911.html","width":130,"caption":"Peebles Rugby Lineout","height":124});
															thumbnails[2406038] = clik.newPhoto({"id":2406038,"src":"Shutter-Speeds_thumb.jpg","galleries_id":155866,"server_id":32,"link":"photo_2406038.html","width":130,"caption":"Shutter Speeds and the Effect on Movement","height":195});
															thumbnails[2417454] = clik.newPhoto({"id":2417454,"src":"Glamaig-3_thumb.jpg","galleries_id":151452,"server_id":32,"link":"photo_2417454.html","width":130,"caption":"Glamaig","height":98});
															thumbnails[2602294] = clik.newPhoto({"id":2602294,"src":"Lotus-Elan-1_thumb.jpg","galleries_id":165440,"server_id":32,"link":"photo_2602294.html","width":130,"caption":"Lotus Elan","height":60});
															thumbnails[2796013] = clik.newPhoto({"id":2796013,"src":"Mellon-Udrigle-Beach-2_thumb.jpg","galleries_id":174951,"server_id":32,"link":"photo_2796013.html","width":130,"caption":"Unknown Beach In Northwest Scotland","height":71});
															thumbnails[3438314] = clik.newPhoto({"id":3438314,"src":"Cademuir Sunset for web_thumb.jpg","galleries_id":174951,"server_id":32,"link":"photo_3438314.html","width":130,"caption":"Sunset on Cademuir Hill","height":60});
															thumbnails[2393157] = clik.newPhoto({"id":2393157,"src":"DSC_1075_thumb.jpg","galleries_id":151453,"server_id":32,"link":"photo_2393157.html","width":130,"caption":"Bride's Laughter","height":195});
															thumbnails[2405913] = clik.newPhoto({"id":2405913,"src":"Damon-Hill-Portrait_thumb.jpg","galleries_id":155859,"server_id":32,"link":"photo_2405913.html","width":130,"caption":"Damon Hill in 1996","height":130});
															thumbnails[2406266] = clik.newPhoto({"id":2406266,"src":"Night-Scenes-for-web_thumb.jpg","galleries_id":155866,"server_id":32,"link":"photo_2406266.html","width":130,"caption":"Night Scene Photography including fireworks","height":92});
															thumbnails[2417484] = clik.newPhoto({"id":2417484,"src":"Ruth-Beach-taking-pictures-on-Bruach-Na-Frith_thumb.jpg","galleries_id":151452,"server_id":32,"link":"photo_2417484.html","width":130,"caption":"Ruth Beach Taking Photographs from Bruach Na Frith Black Cuillin Isle of Skye","height":98});
															thumbnails[2796019] = clik.newPhoto({"id":2796019,"src":"Looking-into-Coigach-from-A835-road_thumb.jpg","galleries_id":174951,"server_id":32,"link":"photo_2796019.html","width":130,"caption":"Looking into Coigach from A835 Road near Ullapool","height":86});
															thumbnails[2405966] = clik.newPhoto({"id":2405966,"src":"Swimmer[1]_thumb.jpg","galleries_id":155859,"server_id":32,"link":"photo_2405966.html","width":130,"caption":"Triathlete Laura Tingley in the Pool","height":97});
															thumbnails[2406269] = clik.newPhoto({"id":2406269,"src":"White-Balance-Notes_thumb.jpg","galleries_id":155866,"server_id":32,"link":"photo_2406269.html","width":130,"caption":"White Balance ","height":87});
															thumbnails[2602299] = clik.newPhoto({"id":2602299,"src":"Fred-Multon-in-his-Alvis_thumb.jpg","galleries_id":165440,"server_id":32,"link":"photo_2602299.html","width":130,"caption":"Alvis 4.3 Litre 1938","height":59});
															thumbnails[2796024] = clik.newPhoto({"id":2796024,"src":"A-Stormy-Evening-From-Gairloch-Beach_thumb.jpg","galleries_id":174951,"server_id":32,"link":"photo_2796024.html","width":130,"caption":"A Stormy Evening from Gairloch Beach","height":56});
															thumbnails[3180286] = clik.newPhoto({"id":3180286,"src":"Ben More & Stob Binneinn_thumb.jpg","galleries_id":151604,"server_id":32,"link":"photo_3180286.html","width":130,"caption":"Sunsets on Ben More & Stob Binnein","height":53});
															thumbnails[2393195] = clik.newPhoto({"id":2393195,"src":"Magenta-Ox-eye-Daisy_thumb.jpg","galleries_id":151606,"server_id":32,"link":"photo_2393195.html","width":130,"caption":"Magenta Ox-eye-daisy","height":80});
															thumbnails[2405571] = clik.newPhoto({"id":2405571,"src":"Confetti-collector_thumb.jpg","galleries_id":151453,"server_id":32,"link":"photo_2405571.html","width":130,"caption":"Confetti Collector","height":130});
															thumbnails[2602302] = clik.newPhoto({"id":2602302,"src":"He-drives-it-like-he's-stolen-it_thumb.............jpg","galleries_id":165440,"server_id":32,"link":"photo_2602302.html","width":130,"caption":"Bentley MkVI","height":63});
															thumbnails[2796029] = clik.newPhoto({"id":2796029,"src":"Sunset-Orange-2_thumb.jpg","galleries_id":174951,"server_id":32,"link":"photo_2796029.html","width":130,"caption":"Sunset from Achmelvich Youth Hostel","height":81});
															thumbnails[2317803] = clik.newPhoto({"id":2317803,"src":"DSC_1043_thumb.jpg","galleries_id":151453,"server_id":32,"link":"photo_2317803.html","width":130,"caption":"In the Rain","height":195});
															thumbnails[2405972] = clik.newPhoto({"id":2405972,"src":"Soutter-&-Brindley_thumb.jpg","galleries_id":155859,"server_id":32,"link":"photo_2405972.html","width":130,"caption":"Action from a Peebles Cycling Club Time Trial","height":98});
															thumbnails[2602348] = clik.newPhoto({"id":2602348,"src":"1929-Bentley-4-and-a-half-litre_thumb.jpg","galleries_id":165440,"server_id":32,"link":"photo_2602348.html","width":130,"caption":"1929 Bentley 4-and-a-half-litre","height":64});
															thumbnails[2801762] = clik.newPhoto({"id":2801762,"src":"Glamaig Panorama_thumb.jpg","galleries_id":174951,"server_id":32,"link":"photo_2801762.html","width":130,"caption":"Summit of Glamaig Looking North","height":49});
															thumbnails[2417505] = clik.newPhoto({"id":2417505,"src":"Four-Primulas_thumb.jpg","galleries_id":151606,"server_id":32,"link":"photo_2417505.html","width":130,"caption":"Four Primulas","height":87});
															thumbnails[2393143] = clik.newPhoto({"id":2393143,"src":"DSC_1028_thumb.jpg","galleries_id":151453,"server_id":32,"link":"photo_2393143.html","width":130,"caption":"Ning and Andrew Smart Family Group","height":87});
															thumbnails[2393132] = clik.newPhoto({"id":2393132,"src":"A & N 6A1_thumb.jpg","galleries_id":151453,"server_id":32,"link":"photo_2393132.html","width":130,"caption":"Look at the ring","height":187});
															thumbnails[3438383] = clik.newPhoto({"id":3438383,"src":"Superbikes cp_thumb.jpg","galleries_id":155859,"server_id":32,"link":"photo_3438383.html","width":130,"caption":"Superbikes Skidaddle","height":61});
															thumbnails[2317796] = clik.newPhoto({"id":2317796,"src":"A & N 12A_thumb.jpg","galleries_id":151453,"server_id":32,"link":"photo_2317796.html","width":130,"caption":"Mark Davey being filmed by ITV Border while working at a wedding","height":96});
															thumbnails[2405630] = clik.newPhoto({"id":2405630,"src":"Laughing-Bride_thumb.jpg","galleries_id":151453,"server_id":32,"link":"photo_2405630.html","width":130,"caption":"Bride's Laugh","height":109});
															thumbnails[2405637] = clik.newPhoto({"id":2405637,"src":"Wedding-Group-1_thumb.jpg","galleries_id":151453,"server_id":32,"link":"photo_2405637.html","width":130,"caption":"Wedding Group outside Peebles Parish Church","height":86});
															thumbnails[2405639] = clik.newPhoto({"id":2405639,"src":"Smile_thumb.jpg","galleries_id":151453,"server_id":32,"link":"photo_2405639.html","width":130,"caption":"Smile for the Camera Please","height":163});
															thumbnails[5135013] = clik.newPhoto({"id":5135013,"src":"LD_0109_thumb.jpg","galleries_id":151453,"server_id":32,"link":"photo_5135013.html","width":130,"caption":"Lianne Middlemiss on her wedding day in August 2009","height":173});
															thumbnails[5135087] = clik.newPhoto({"id":5135087,"src":"LD_0020_thumb.jpg","galleries_id":151453,"server_id":32,"link":"photo_5135087.html","width":130,"caption":"Signing the register","height":195});
															thumbnails[2393153] = clik.newPhoto({"id":2393153,"src":"DSC_1072_thumb.jpg","galleries_id":151453,"server_id":32,"link":"photo_2393153.html","width":130,"caption":"Andrew and Ning Smart","height":195});
															thumbnails[5135100] = clik.newPhoto({"id":5135100,"src":"LD_0079_thumb.jpg","galleries_id":151453,"server_id":32,"link":"photo_5135100.html","width":130,"caption":"Chewin' The Fat","height":173});
															thumbnails[5135110] = clik.newPhoto({"id":5135110,"src":"LD_0052_thumb.jpg","galleries_id":151453,"server_id":32,"link":"photo_5135110.html","width":130,"caption":"The Groom & Best Man in Gardens near Coldstream Registry Office","height":98});
															thumbnails[5135255] = clik.newPhoto({"id":5135255,"src":"Shannon_for_clik_thumb.jpg","galleries_id":151453,"server_id":32,"link":"photo_5135255.html","width":130,"caption":"Shannon Pisarsky signs the register at Traquair House ","height":86});
															thumbnails[5135259] = clik.newPhoto({"id":5135259,"src":"Shannon__Kevin_Pisarsky_at_Traquair_thumb.jpg","galleries_id":151453,"server_id":32,"link":"photo_5135259.html","width":130,"caption":"Cupid's Garden","height":96});
															thumbnails[6337465] = clik.newPhoto({"id":6337465,"src":"GD061_thumb.jpg","galleries_id":343467,"server_id":32,"link":"photo_6337465.html","width":130,"caption":"Confetti in Her Hair","height":86});
															thumbnails[3180306] = clik.newPhoto({"id":3180306,"src":"Wedding In Grounds of Traquiair1_thumb.jpg","galleries_id":343467,"server_id":32,"link":"photo_3180306.html","width":130,"caption":"Traquair House Wedding","height":96});
															thumbnails[3958074] = clik.newPhoto({"id":3958074,"src":"Blossom_6_Web_thumb.jpg","galleries_id":343467,"server_id":32,"link":"photo_3958074.html","width":130,"caption":"Joe & Nicky Mulchrone Share a laugh after their wedding ceremony ","height":168});
															thumbnails[6337589] = clik.newPhoto({"id":6337589,"src":"O__D_69_thumb.jpg","galleries_id":343467,"server_id":32,"link":"photo_6337589.html","width":130,"caption":"During the Ceremony","height":86});
															thumbnails[6337605] = clik.newPhoto({"id":6337605,"src":"O__D_102_thumb.jpg","galleries_id":343467,"server_id":32,"link":"photo_6337605.html","width":130,"caption":"After the Ceremony","height":86});
															thumbnails[6702409] = clik.newPhoto({"id":6702409,"src":"Gumtree_2_thumb.jpg","galleries_id":343467,"server_id":32,"link":"photo_6702409.html","width":130,"caption":"Brides & Bridesmaids","height":173});
															thumbnails[6702536] = clik.newPhoto({"id":6702536,"src":"O__D_119_for_clik_thumb.jpg","galleries_id":343467,"server_id":32,"link":"photo_6702536.html","width":130,"caption":"Orlaith and Davie by the River Tweed in Peebles","height":105});
															thumbnails[6739669] = clik.newPhoto({"id":6739669,"src":"Brides_preparations_thumb.jpg","galleries_id":343467,"server_id":32,"link":"photo_6739669.html","width":130,"caption":"Orlaith Kelly prepare's for her big day","height":130});
															thumbnails[6739673] = clik.newPhoto({"id":6739673,"src":"Bride_and_Friends_thumb.jpg","galleries_id":343467,"server_id":32,"link":"photo_6739673.html","width":130,"caption":"","height":130});
															thumbnails[6739879] = clik.newPhoto({"id":6739879,"src":"Speech_Laughter_thumb.jpg","galleries_id":343467,"server_id":32,"link":"photo_6739879.html","width":130,"caption":"Bride, Groom and best man enjoy a speech after dinner","height":86});
															thumbnails[2317820] = clik.newPhoto({"id":2317820,"src":"CNV00007-1_thumb.JPG","galleries_id":343467,"server_id":32,"link":"photo_2317820.html","width":130,"caption":"The Kiss","height":192});
															thumbnails[2317792] = clik.newPhoto({"id":2317792,"src":"A & N 11A_thumb.jpg","galleries_id":343467,"server_id":32,"link":"photo_2317792.html","width":130,"caption":"Mark Davey working at a wedding","height":89});
															thumbnails[2405575] = clik.newPhoto({"id":2405575,"src":"Wedding-Speech_thumb.jpg","galleries_id":343467,"server_id":32,"link":"photo_2405575.html","width":130,"caption":"Father of the Bride's Speech","height":88});
															thumbnails[5135076] = clik.newPhoto({"id":5135076,"src":"LD_0124_thumb.jpg","galleries_id":343467,"server_id":32,"link":"photo_5135076.html","width":130,"caption":"Lianne & Derrick Middlemiss buying ice-creams on their wedding day","height":182});
															thumbnails[8869101] = clik.newPhoto({"id":8869101,"src":"Anna__Whisper_2_cp_thumb.jpg","galleries_id":466487,"server_id":32,"link":"photo_8869101.html","width":260,"caption":"North Cup Burgie","height":204});
															thumbnails[8869100] = clik.newPhoto({"id":8869100,"src":"Hopetoun_Cross-country_Saturday_Morning_CP_thumb.jpg","galleries_id":466487,"server_id":32,"link":"photo_8869100.html","width":260,"caption":"Hopetoun International Horse Trials","height":168});
															thumbnails[8869123] = clik.newPhoto({"id":8869123,"src":"A_bit_behind_CP_thumb.jpg","galleries_id":466487,"server_id":32,"link":"photo_8869123.html","width":260,"caption":"A bit Behind","height":208});
															thumbnails[8869138] = clik.newPhoto({"id":8869138,"src":"Floors_2011_2_cp_thumb.jpg","galleries_id":466487,"server_id":32,"link":"photo_8869138.html","width":260,"caption":"Okay let's go for the next one.....","height":208});
															thumbnails[3958035] = clik.newPhoto({"id":3958035,"src":"M_3_web_thumb.jpg","galleries_id":466487,"server_id":32,"link":"photo_3958035.html","width":130,"caption":"Eventing at Floors Castle ","height":132});
															thumbnails[3958036] = clik.newPhoto({"id":3958036,"src":"M_16_web1_thumb.jpg","galleries_id":466487,"server_id":32,"link":"photo_3958036.html","width":260,"caption":"Eventing at Floors Castle","height":172});
															thumbnails[3958039] = clik.newPhoto({"id":3958039,"src":"M_19_web_thumb.jpg","galleries_id":466487,"server_id":32,"link":"photo_3958039.html","width":130,"caption":"Eventing at Floors Castle 3","height":104});
															thumbnails[3958041] = clik.newPhoto({"id":3958041,"src":"M_21_web1_thumb.jpg","galleries_id":466487,"server_id":32,"link":"photo_3958041.html","width":130,"caption":"Eventing at Floors 4","height":86});
															thumbnails[2405971] = clik.newPhoto({"id":2405971,"src":"Anna-Jumping-1_thumb.jpg","galleries_id":466487,"server_id":32,"link":"photo_2405971.html","width":130,"caption":"Anna Davey Showjumping on Tod","height":195});
															thumbnails[8997520] = clik.newPhoto({"id":8997520,"src":"Patricia_in_Bruces_Freelander_cp_thumb.jpg","galleries_id":473850,"server_id":32,"link":"photo_8997520.html","width":260,"caption":"Pati Beck ","height":260});
															thumbnails[8997478] = clik.newPhoto({"id":8997478,"src":"Quiraing_Fashion_Shoot_in_Progress_cp_thumb.jpg","galleries_id":473850,"server_id":32,"link":"photo_8997478.html","width":260,"caption":"Snow Shoot","height":137});
															thumbnails[8997495] = clik.newPhoto({"id":8997495,"src":"At_Sligachan_3_cp_thumb.jpg","galleries_id":473850,"server_id":32,"link":"photo_8997495.html","width":260,"caption":"Brazilian Fashion","height":173});
															thumbnails[8997498] = clik.newPhoto({"id":8997498,"src":"At_Sligachan_4_cp_thumb.jpg","galleries_id":473850,"server_id":32,"link":"photo_8997498.html","width":260,"caption":"Side Lighting","height":173});
															thumbnails[8997510] = clik.newPhoto({"id":8997510,"src":"Gustavo_Taking_Water_Images_at_Elgol_2_cp_thumb.jpg","galleries_id":473850,"server_id":32,"link":"photo_8997510.html","width":260,"caption":"Taking a Break","height":176});
															thumbnails[8997570] = clik.newPhoto({"id":8997570,"src":"At_Elgol1_cp_thumb.jpg","galleries_id":473850,"server_id":32,"link":"photo_8997570.html","width":260,"caption":"Rock's Texture","height":213});
															thumbnails[8997486] = clik.newPhoto({"id":8997486,"src":"At_Sligachan2_cp_thumb.jpg","galleries_id":473850,"server_id":32,"link":"photo_8997486.html","width":260,"caption":"Pati Beck below Sligachan Bridge","height":361});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[473850] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Fashion Shoot Skye","link":"section576267.html","maxRecords":0.0,"photoIDs":[8997520.0,8997478.0,8997495.0,8997498.0,8997510.0,8997570.0,8997486.0],"skipIndex":0,"section_code":"section576267","featured_images":8997478.0,"id":473850,"singleSection":true});				  						galleries[343467] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Weddings 2","link":"section410363.html","maxRecords":0.0,"photoIDs":[6337465.0,3180306.0,3958074.0,6337589.0,6337605.0,6702409.0,6702536.0,6739669.0,6739673.0,6739879.0,2317820.0,2317792.0,2405575.0,5135076.0],"skipIndex":0,"section_code":"section410363","featured_images":"6702536,3180306,2317820","id":343467,"singleSection":true});				  						galleries[151453] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Weddings","link":"gallery_151453.html","maxRecords":0.0,"photoIDs":[3958080.0,3958088.0,5135244.0,2393157.0,2405571.0,2317803.0,2393143.0,2393132.0,2317796.0,2405630.0,2405637.0,2405639.0,5135013.0,5135087.0,2393153.0,5135100.0,5135110.0,5135255.0,5135259.0],"skipIndex":0,"section_code":"gallery","featured_images":5135100.0,"id":151453,"singleSection":false});				  						galleries[151606] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Flowers","link":"gallery_151606.html","maxRecords":0.0,"photoIDs":[2393187.0,2393190.0,2393197.0,2393198.0,2393206.0,2393183.0,2393195.0,2417505.0],"skipIndex":0,"section_code":"gallery","featured_images":"2417505,2393206,2393198,2393197,2393195,2393190,2393187,2393183","id":151606,"singleSection":false});				  						galleries[155292] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Cycling","link":"gallery_155292.html","maxRecords":0.0,"photoIDs":[2662991.0,2394019.0,2394022.0,2394024.0,3848239.0],"skipIndex":0,"section_code":"gallery","featured_images":"3848239,2662991,2394024,2394022,2394019","id":155292,"singleSection":false});				  						galleries[151452] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Landscapes of Skye","link":"gallery_151452.html","maxRecords":0.0,"photoIDs":[2317812.0,2317817.0,2393552.0,2393556.0,2417454.0,2417484.0],"skipIndex":0,"section_code":"gallery","featured_images":"2417484,2417454,2393556,2393552,2317817,2317812","id":151452,"singleSection":false});				  						galleries[151604] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Mountains in Winter","link":"gallery_151604.html","maxRecords":0.0,"photoIDs":[8997504.0,3438398.0,2321559.0,2321562.0,3180286.0],"skipIndex":0,"section_code":"gallery","featured_images":"3438398,3180286,2321562,2321559","id":151604,"singleSection":false});				  						galleries[155859] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Sport","link":"gallery_155859.html","maxRecords":0.0,"photoIDs":[2661961.0,4013792.0,2405911.0,2405913.0,2405966.0,2405972.0,3438383.0],"skipIndex":0,"section_code":"gallery","featured_images":2661961.0,"id":155859,"singleSection":false});				  						galleries[155866] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Digital Photo Course","link":"gallery_155866.html","maxRecords":0.0,"photoIDs":[3438349.0,3565904.0,4013808.0,6739975.0,6739981.0,6739985.0,6739987.0,6739991.0,6740023.0,6740039.0,6740122.0,6740138.0,2406038.0,2406266.0,2406269.0],"skipIndex":0,"section_code":"gallery","featured_images":"6739975,2406038","id":155866,"singleSection":false});				  						galleries[165440] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Bo'Ness Revival Hillclimb (Motorsport)","link":"gallery_165440.html","maxRecords":0.0,"photoIDs":[2602294.0,2602299.0,2602302.0,2602348.0],"skipIndex":0,"section_code":"gallery","featured_images":2602294.0,"id":165440,"singleSection":false});				  						galleries[174951] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Beaches & Mountains","link":"gallery_174951.html","maxRecords":0.0,"photoIDs":[3438324.0,2796013.0,3438314.0,2796019.0,2796024.0,2796029.0,2801762.0],"skipIndex":0,"section_code":"gallery","featured_images":2796013.0,"id":174951,"singleSection":false});				  						galleries[466487] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Horses and Eventing","link":"section564801.html","maxRecords":0.0,"photoIDs":[8869101.0,8869100.0,8869123.0,8869138.0,3958035.0,3958036.0,3958039.0,3958041.0,2405971.0],"skipIndex":0,"section_code":"section564801","featured_images":8869101,"id":466487,"singleSection":true});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '6337605,6337589,6337465,3180306,2317820,2405571,2317792,2405575,5135259';
imageSets[2] = '8997478,6739975,6702536,3438398,3180306,2661961,2321562,2321559,2796013,2602294,2406038,2406025,2317820,8869100,3180286,3958036,5135100';
imageSets[3] = '3958036,2317792';
imageSets[246573] = '8869101,8869100,8869123,8869138';
imageSets[236136] = '6739879,6739673,6739669,6702536,6702409,6337605,6337589,6337465,5135244,3958088,3958080,3958074,3180306,2317820,2393157,2405571,2317803,2393143,2393132,2317792,2317796,2405575,5135013,5135076,5135100,5135110,5135255';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/Photobymarkdavey/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/Photobymarkdavey/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/Photobymarkdavey/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/Photobymarkdavey/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/Photobymarkdavey/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/Photobymarkdavey/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/Photobymarkdavey/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/Photobymarkdavey/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/Photobymarkdavey/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/Photobymarkdavey/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/Photobymarkdavey/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/Photobymarkdavey/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/Photobymarkdavey/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/Photobymarkdavey/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/Photobymarkdavey/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/Photobymarkdavey/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/Photobymarkdavey/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/Photobymarkdavey/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/Photobymarkdavey/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/Photobymarkdavey/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/Photobymarkdavey/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/Photobymarkdavey/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/Photobymarkdavey/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/Photobymarkdavey/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/Photobymarkdavey/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/Photobymarkdavey/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/Photobymarkdavey/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 = 'PhotobyMarkDavey: ' + 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.item_price !== '') {
																		temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="photobymarkdavey@gmail.com">';
					temp += '<input type="hidden" name="currency_code" value="GBP">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="photobymarkdavey@gmail.com">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						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;
	}
}

			

