window.thumbnails = {};
															thumbnails[5910092] = clik.newPhoto({"id":5910092,"src":"GANNET_IN_FLIGHT_3_WEB1_thumb.jpg","galleries_id":370358,"server_id":18,"link":"photo_5910092.html","width":130,"caption":"Gannet In Flight","height":91});
															thumbnails[6138152] = clik.newPhoto({"id":6138152,"src":"Glasgow_Tigers_thumb.jpg","galleries_id":370359,"server_id":18,"link":"photo_6138152.html","width":130,"caption":"Glasgow Tigers","height":81});
															thumbnails[6828979] = clik.newPhoto({"id":6828979,"src":"San_Marco_windows_thumb.jpg","galleries_id":370360,"server_id":18,"link":"photo_6828979.html","width":130,"caption":"San Marco windows","height":88});
															thumbnails[6829074] = clik.newPhoto({"id":6829074,"src":"Monochrome_GOMA_Glasgow_Pillars_Web_thumb.jpg","galleries_id":370361,"server_id":18,"link":"photo_6829074.html","width":92,"caption":"GOMA Glasgow Pillars","height":130});
															thumbnails[6876528] = clik.newPhoto({"id":6876528,"src":"Gathering_moss_web_thumb.jpg","galleries_id":370358,"server_id":18,"link":"photo_6876528.html","width":104,"caption":"Gathering moss","height":130});
															thumbnails[6884600] = clik.newPhoto({"id":6884600,"src":"Ready_for_battle_web_thumb.jpg","galleries_id":370361,"server_id":18,"link":"photo_6884600.html","width":87,"caption":"Ready for battle","height":130});
															thumbnails[6884636] = clik.newPhoto({"id":6884636,"src":"Gateway_to_Glencoe_web_thumb.jpg","galleries_id":370357,"server_id":18,"link":"photo_6884636.html","width":130,"caption":"Gateway to Glencoe","height":80});
															thumbnails[6885721] = clik.newPhoto({"id":6885721,"src":"No_Way_Out_web_thumb.jpg","galleries_id":370361,"server_id":18,"link":"photo_6885721.html","width":87,"caption":"No Way Out","height":130});
															thumbnails[6890537] = clik.newPhoto({"id":6890537,"src":"Little_red_fungi_web_thumb.jpg","galleries_id":370358,"server_id":18,"link":"photo_6890537.html","width":130,"caption":"Little red fungi","height":87});
															thumbnails[6891602] = clik.newPhoto({"id":6891602,"src":"Red_sky_over_Talacre_Lighthouse_before_and_after_web_thumb.jpg","galleries_id":370363,"server_id":18,"link":"photo_6891602.html","width":130,"caption":"Before and After","height":49});
															thumbnails[6939825] = clik.newPhoto({"id":6939825,"src":"Surreal_Turtle_web_thumb.jpg","galleries_id":370363,"server_id":18,"link":"photo_6939825.html","width":130,"caption":"Surreal Turtle","height":87});
															thumbnails[6939830] = clik.newPhoto({"id":6939830,"src":"Frost_Time_web_thumb.jpg","galleries_id":370363,"server_id":18,"link":"photo_6939830.html","width":130,"caption":"Frost Time","height":98});
															thumbnails[7028565] = clik.newPhoto({"id":7028565,"src":"PREDATOR_WEB_thumb.jpg","galleries_id":457118,"server_id":18,"link":"photo_7028565.html","width":130,"caption":"Predator","height":104});
															thumbnails[7114097] = clik.newPhoto({"id":7114097,"src":"Autumn_Steps_web_thumb.jpg","galleries_id":370358,"server_id":18,"link":"photo_7114097.html","width":130,"caption":"Autumn steps","height":84});
															thumbnails[7179067] = clik.newPhoto({"id":7179067,"src":"Ive_got_my_eye_on_you_web_D1D8F5A4-1EC9-D45B-1C72A3FCB709F265_thumb.jpg","galleries_id":370358,"server_id":18,"link":"photo_7179067.html","width":130,"caption":"I've got my eye on you","height":130});
															thumbnails[7179085] = clik.newPhoto({"id":7179085,"src":"Butterfly_web_thumb.jpg","galleries_id":370358,"server_id":18,"link":"photo_7179085.html","width":130,"caption":"Butterfly","height":130});
															thumbnails[7269319] = clik.newPhoto({"id":7269319,"src":"BEFORE_and_AFTER_MASK_WEB_thumb.jpg","galleries_id":370363,"server_id":18,"link":"photo_7269319.html","width":130,"caption":"The Mask","height":98});
															thumbnails[7269350] = clik.newPhoto({"id":7269350,"src":"City_Lights_web_thumb.jpg","galleries_id":370363,"server_id":18,"link":"photo_7269350.html","width":130,"caption":"City Lights","height":66});
															thumbnails[8293474] = clik.newPhoto({"id":8293474,"src":"THE_FLY_6_web_thumb.jpg","galleries_id":457118,"server_id":18,"link":"photo_8293474.html","width":130,"caption":"The Fly","height":104});
															thumbnails[8293506] = clik.newPhoto({"id":8293506,"src":"HONEY_BEE_WEB_thumb.jpg","galleries_id":457118,"server_id":18,"link":"photo_8293506.html","width":103,"caption":"Honey Bee","height":130});
															thumbnails[8293560] = clik.newPhoto({"id":8293560,"src":"PEACOCK_BUTTERFLY_2_web_thumb.jpg","galleries_id":370358,"server_id":18,"link":"photo_8293560.html","width":130,"caption":"Small Tortoiseshell Butterfly","height":104});
															thumbnails[8293597] = clik.newPhoto({"id":8293597,"src":"BBC_SCOTLAND_WEB_thumb.jpg","galleries_id":370370,"server_id":18,"link":"photo_8293597.html","width":130,"caption":"BBC Scotland","height":78});
															thumbnails[8293616] = clik.newPhoto({"id":8293616,"src":"BBC_Reflections_web1_thumb.jpg","galleries_id":370370,"server_id":18,"link":"photo_8293616.html","width":130,"caption":"BBC Reflections","height":82});
															thumbnails[8293695] = clik.newPhoto({"id":8293695,"src":"SCOTTISH_HEROES_2_web_thumb.jpg","galleries_id":370357,"server_id":18,"link":"photo_8293695.html","width":130,"caption":"Scottish Heroes","height":84});
															thumbnails[8293735] = clik.newPhoto({"id":8293735,"src":"Aviemore_Express_web_thumb.jpg","galleries_id":370362,"server_id":18,"link":"photo_8293735.html","width":104,"caption":"Aviemore Express","height":130});
															thumbnails[8293744] = clik.newPhoto({"id":8293744,"src":"THE_FOREST_web_thumb.jpg","galleries_id":373667,"server_id":18,"link":"photo_8293744.html","width":130,"caption":"The Forest","height":104});
															thumbnails[8293752] = clik.newPhoto({"id":8293752,"src":"PUFFIN_1_web_thumb.jpg","galleries_id":370358,"server_id":18,"link":"photo_8293752.html","width":104,"caption":"Puffin","height":130});
															thumbnails[8293756] = clik.newPhoto({"id":8293756,"src":"The_Imposter_web_thumb.jpg","galleries_id":370356,"server_id":18,"link":"photo_8293756.html","width":104,"caption":"The Imposter","height":130});
															thumbnails[8293759] = clik.newPhoto({"id":8293759,"src":"Chasing_the_leader_2_web_thumb.jpg","galleries_id":370359,"server_id":18,"link":"photo_8293759.html","width":130,"caption":"Chasing the leader","height":104});
															thumbnails[8293781] = clik.newPhoto({"id":8293781,"src":"RIVER_CLYDE_GLASGOW_2_web_thumb.jpg","galleries_id":370357,"server_id":18,"link":"photo_8293781.html","width":130,"caption":"The Clyde Crane","height":74});
															thumbnails[8293787] = clik.newPhoto({"id":8293787,"src":"Challenging_the_leader_web_thumb.jpg","galleries_id":370359,"server_id":18,"link":"photo_8293787.html","width":130,"caption":"The Race Is On","height":103});
															thumbnails[8293791] = clik.newPhoto({"id":8293791,"src":"A_RIDE_IN_THE_PARK_web_thumb.jpg","galleries_id":370362,"server_id":18,"link":"photo_8293791.html","width":130,"caption":"A ride in the park","height":80});
															thumbnails[8293815] = clik.newPhoto({"id":8293815,"src":"HANGING_ON_web_thumb.jpg","galleries_id":457118,"server_id":18,"link":"photo_8293815.html","width":130,"caption":"Hanging on","height":104});
															thumbnails[8293822] = clik.newPhoto({"id":8293822,"src":"HONEYSUCKLE_web_thumb.jpg","galleries_id":370358,"server_id":18,"link":"photo_8293822.html","width":104,"caption":"Honeysuckle","height":130});
															thumbnails[8293827] = clik.newPhoto({"id":8293827,"src":"EELS_FOR_LUNCH_2_thumb.jpg","galleries_id":370358,"server_id":18,"link":"photo_8293827.html","width":98,"caption":"Eels For Lunch","height":130});
															thumbnails[8293833] = clik.newPhoto({"id":8293833,"src":"TITAN_web_thumb.jpg","galleries_id":370370,"server_id":18,"link":"photo_8293833.html","width":94,"caption":"Titan","height":130});
															thumbnails[8293841] = clik.newPhoto({"id":8293841,"src":"Scottish_Heroes_web_thumb.jpg","galleries_id":370357,"server_id":18,"link":"photo_8293841.html","width":103,"caption":"Our Heroes","height":130});
															thumbnails[8293846] = clik.newPhoto({"id":8293846,"src":"THE_HORSESHOE_FALLS_2_web_thumb.jpg","galleries_id":370357,"server_id":18,"link":"photo_8293846.html","width":130,"caption":"The Horseshoe Falls","height":104});
															thumbnails[8293848] = clik.newPhoto({"id":8293848,"src":"WINDFARM_SUNSET_web_thumb.jpg","galleries_id":370357,"server_id":18,"link":"photo_8293848.html","width":104,"caption":"Wind Farm Sunset","height":130});
															thumbnails[8299333] = clik.newPhoto({"id":8299333,"src":"New_Lanark_web_thumb.jpg","galleries_id":370361,"server_id":18,"link":"photo_8299333.html","width":130,"caption":"New Lanark","height":98});
															thumbnails[8299362] = clik.newPhoto({"id":8299362,"src":"Jacobite_Express_web_thumb.jpg","galleries_id":370362,"server_id":18,"link":"photo_8299362.html","width":130,"caption":"Jacobite Express","height":98});
															thumbnails[8299373] = clik.newPhoto({"id":8299373,"src":"Red_Squirrel_web_thumb.jpg","galleries_id":370358,"server_id":18,"link":"photo_8299373.html","width":130,"caption":"Red Squirrel","height":98});
															thumbnails[8299639] = clik.newPhoto({"id":8299639,"src":"Morning_Light_Amalfi_web_E23AC783-1EC9-DFB6-098F1229F366ECB5_thumb.jpg","galleries_id":370357,"server_id":18,"link":"photo_8299639.html","width":87,"caption":"Morning Light Amalfi","height":130});
															thumbnails[8299659] = clik.newPhoto({"id":8299659,"src":"Upstairs_Downstairs_web_thumb.jpg","galleries_id":370362,"server_id":18,"link":"photo_8299659.html","width":87,"caption":"Upstairs Downstairs","height":130});
															thumbnails[8299664] = clik.newPhoto({"id":8299664,"src":"Sword_of_Destiny_web_thumb.jpg","galleries_id":370361,"server_id":18,"link":"photo_8299664.html","width":87,"caption":"Sword of Destiny","height":130});
															thumbnails[8299687] = clik.newPhoto({"id":8299687,"src":"Sonata_In_A_Minor_web_thumb.jpg","galleries_id":370362,"server_id":18,"link":"photo_8299687.html","width":98,"caption":"Sonata in A Minor","height":130});
															thumbnails[8299717] = clik.newPhoto({"id":8299717,"src":"Dancers_web_thumb.jpg","galleries_id":370362,"server_id":18,"link":"photo_8299717.html","width":81,"caption":"Dancers","height":130});
															thumbnails[8299801] = clik.newPhoto({"id":8299801,"src":"Red_Lips_web_thumb.jpg","galleries_id":370356,"server_id":18,"link":"photo_8299801.html","width":87,"caption":"Red Lips","height":130});
															thumbnails[8299898] = clik.newPhoto({"id":8299898,"src":"HorseGuard_web_E3190E99-1EC9-DFB6-09A197CD3A37154B_thumb.jpg","galleries_id":370356,"server_id":18,"link":"photo_8299898.html","width":95,"caption":"Horse Guard","height":130});
															thumbnails[8304831] = clik.newPhoto({"id":8304831,"src":"A_close_race_web_CF005D3F-24E8-5EC4-4FC4103BB2AC8D64_thumb.jpg","galleries_id":370359,"server_id":18,"link":"photo_8304831.html","width":130,"caption":"A Close Race","height":98});
															thumbnails[8304859] = clik.newPhoto({"id":8304859,"src":"DIGGING_UP_THE_DIRT_web_CF054782-24E8-5EC4-4F98A3D37C5F1219_thumb.jpg","galleries_id":370359,"server_id":18,"link":"photo_8304859.html","width":130,"caption":"Digging Up The Dirt","height":77});
															thumbnails[8304924] = clik.newPhoto({"id":8304924,"src":"SETTING_THE_PACE_web_thumb.jpg","galleries_id":370359,"server_id":18,"link":"photo_8304924.html","width":130,"caption":"Setting The Pace","height":98});
															thumbnails[8309452] = clik.newPhoto({"id":8309452,"src":"MERLIN_WEB_thumb.jpg","galleries_id":208453,"server_id":18,"link":"photo_8309452.html","width":130,"caption":"Merlin","height":115});
															thumbnails[8309458] = clik.newPhoto({"id":8309458,"src":"BARN_OWL_WEB_thumb.jpg","galleries_id":370358,"server_id":18,"link":"photo_8309458.html","width":86,"caption":"Barn Owl","height":130});
															thumbnails[8309480] = clik.newPhoto({"id":8309480,"src":"THE_TICKET_COLLECTOR_WEB_thumb.jpg","galleries_id":370356,"server_id":18,"link":"photo_8309480.html","width":130,"caption":"The Ticket Collector","height":86});
															thumbnails[8310490] = clik.newPhoto({"id":8310490,"src":"THE_FLY_TRAP_WEB_thumb.jpg","galleries_id":370358,"server_id":18,"link":"photo_8310490.html","width":130,"caption":"The Fly Trap","height":104});
															thumbnails[8312816] = clik.newPhoto({"id":8312816,"src":"WATCHING_YOU_web_thumb.jpg","galleries_id":457118,"server_id":18,"link":"photo_8312816.html","width":130,"caption":"Watching You","height":98});
															thumbnails[8313919] = clik.newPhoto({"id":8313919,"src":"AVIEMORE_EXPRESS_2_WEB_thumb.jpg","galleries_id":370361,"server_id":18,"link":"photo_8313919.html","width":104,"caption":"Aviemore Express","height":130});
															thumbnails[8313927] = clik.newPhoto({"id":8313927,"src":"THE_MASK_3_web_thumb.jpg","galleries_id":370356,"server_id":18,"link":"photo_8313927.html","width":130,"caption":"Face Mask","height":104});
															thumbnails[8313943] = clik.newPhoto({"id":8313943,"src":"SWAN_WEB_thumb.jpg","galleries_id":370358,"server_id":18,"link":"photo_8313943.html","width":130,"caption":"Swan","height":104});
															thumbnails[8313961] = clik.newPhoto({"id":8313961,"src":"LEAF_VEINS_web_thumb.jpg","galleries_id":370358,"server_id":18,"link":"photo_8313961.html","width":87,"caption":"Leaf Veins","height":130});
															thumbnails[8317165] = clik.newPhoto({"id":8317165,"src":"HOVERFLY_3_WEB_thumb.jpg","galleries_id":370358,"server_id":18,"link":"photo_8317165.html","width":101,"caption":"Hoverfly","height":130});
															thumbnails[8371108] = clik.newPhoto({"id":8371108,"src":"Hat_for_Sale_web_thumb.jpg","galleries_id":370362,"server_id":18,"link":"photo_8371108.html","width":130,"caption":"Hat For Sale","height":92});
															thumbnails[8371129] = clik.newPhoto({"id":8371129,"src":"Poppies_and_Wildflowers_web_thumb.jpg","galleries_id":370358,"server_id":18,"link":"photo_8371129.html","width":86,"caption":"Poppies and Wildflowers","height":130});
															thumbnails[8371140] = clik.newPhoto({"id":8371140,"src":"Orange_Gazania_Daisy_web_thumb.jpg","galleries_id":370358,"server_id":18,"link":"photo_8371140.html","width":130,"caption":"Orange Gazania Daisy","height":98});
															thumbnails[8371145] = clik.newPhoto({"id":8371145,"src":"Poppy_Panorama_web_thumb.jpg","galleries_id":373667,"server_id":18,"link":"photo_8371145.html","width":130,"caption":"Poppy Panorama","height":39});
															thumbnails[8371151] = clik.newPhoto({"id":8371151,"src":"Yellow_Gazania_Daisy_web_thumb.jpg","galleries_id":370358,"server_id":18,"link":"photo_8371151.html","width":130,"caption":"Yellow Gazania Daisy","height":98});
															thumbnails[8371155] = clik.newPhoto({"id":8371155,"src":"The_Weir_web_thumb.jpg","galleries_id":373667,"server_id":18,"link":"photo_8371155.html","width":130,"caption":"The Weir","height":85});
															thumbnails[8371167] = clik.newPhoto({"id":8371167,"src":"A_Tender_Moment_web_thumb.jpg","galleries_id":370362,"server_id":18,"link":"photo_8371167.html","width":130,"caption":"A Tender Moment","height":98});
															thumbnails[8371288] = clik.newPhoto({"id":8371288,"src":"Angel_with_the_Dirty_Face_web_thumb.jpg","galleries_id":370356,"server_id":18,"link":"photo_8371288.html","width":130,"caption":"Angel With The Dirty Face","height":130});
															thumbnails[8371497] = clik.newPhoto({"id":8371497,"src":"Blue_Eyed_Boy_2_web_thumb.jpg","galleries_id":370356,"server_id":18,"link":"photo_8371497.html","width":99,"caption":"Blue Eyed Boy","height":130});
															thumbnails[8371523] = clik.newPhoto({"id":8371523,"src":"NO_TITLE_Yellow_Rose_web_thumb.jpg","galleries_id":370358,"server_id":18,"link":"photo_8371523.html","width":130,"caption":"[ No Title ]","height":96});
															thumbnails[8371553] = clik.newPhoto({"id":8371553,"src":"NO_TITLE__Lilly_Dragonfly_web_thumb.jpg","galleries_id":370362,"server_id":18,"link":"photo_8371553.html","width":130,"caption":"[ No Title ]","height":98});
															thumbnails[8371634] = clik.newPhoto({"id":8371634,"src":"FLOWER_FLY_web_thumb.jpg","galleries_id":457118,"server_id":18,"link":"photo_8371634.html","width":130,"caption":"Flower Fly","height":130});
															thumbnails[8371668] = clik.newPhoto({"id":8371668,"src":"FLOWER_FLY_2_web_thumb.jpg","galleries_id":457118,"server_id":18,"link":"photo_8371668.html","width":130,"caption":"Flower Fly","height":130});
															thumbnails[8372826] = clik.newPhoto({"id":8372826,"src":"WEIRD_NATURE_WEB_thumb.jpg","galleries_id":370358,"server_id":18,"link":"photo_8372826.html","width":104,"caption":"Weird Nature","height":130});
															thumbnails[8372844] = clik.newPhoto({"id":8372844,"src":"MALE_CHAFFINCH_WEB_thumb.jpg","galleries_id":370358,"server_id":18,"link":"photo_8372844.html","width":130,"caption":"Male Chaffinch","height":98});
															thumbnails[8372872] = clik.newPhoto({"id":8372872,"src":"GOLD_LEAF_WEB_thumb.jpg","galleries_id":370358,"server_id":18,"link":"photo_8372872.html","width":130,"caption":"Gold Leaf","height":104});
															thumbnails[8372898] = clik.newPhoto({"id":8372898,"src":"Capercaillie_Lekking_web_thumb.jpg","galleries_id":370358,"server_id":18,"link":"photo_8372898.html","width":130,"caption":"Capercaillie Lekking","height":98});
															thumbnails[8373727] = clik.newPhoto({"id":8373727,"src":"Casting_Shadows_web_thumb.jpg","galleries_id":370362,"server_id":18,"link":"photo_8373727.html","width":97,"caption":"Casting Shadows","height":130});
															thumbnails[8402819] = clik.newPhoto({"id":8402819,"src":"Austin_16_Interior_thumb.jpg","galleries_id":370362,"server_id":18,"link":"photo_8402819.html","width":130,"caption":"Austin 16 Interior","height":98});
															thumbnails[8477875] = clik.newPhoto({"id":8477875,"src":"MOVING_HOUSE_WEB_thumb.jpg","galleries_id":370358,"server_id":18,"link":"photo_8477875.html","width":130,"caption":"Moving House","height":104});
															thumbnails[8477930] = clik.newPhoto({"id":8477930,"src":"LAVA_FLOW_WEB_thumb.jpg","galleries_id":370363,"server_id":18,"link":"photo_8477930.html","width":130,"caption":"Red Hot Sand","height":104});
															thumbnails[8506641] = clik.newPhoto({"id":8506641,"src":"WINDFARM_SUNSET_2_WEB_thumb.jpg","galleries_id":370357,"server_id":18,"link":"photo_8506641.html","width":130,"caption":"Evening on the Wind Farm","height":71});
															thumbnails[8512910] = clik.newPhoto({"id":8512910,"src":"ST_ANDREWS_SCOTLAND_WEB_thumb.jpg","galleries_id":370357,"server_id":18,"link":"photo_8512910.html","width":130,"caption":"The Beach","height":73});
															thumbnails[8512912] = clik.newPhoto({"id":8512912,"src":"THE_RED_PLANET_WEB_thumb.jpg","galleries_id":370363,"server_id":18,"link":"photo_8512912.html","width":130,"caption":"The Red Planet","height":73});
															thumbnails[8516515] = clik.newPhoto({"id":8516515,"src":"JUPITER_3_WEB_thumb.jpg","galleries_id":370363,"server_id":18,"link":"photo_8516515.html","width":130,"caption":"Jupiter Rising","height":86});
															thumbnails[8547486] = clik.newPhoto({"id":8547486,"src":"My_Car_WEB_thumb.jpg","galleries_id":370362,"server_id":18,"link":"photo_8547486.html","width":130,"caption":"My Car","height":87});
															thumbnails[8547494] = clik.newPhoto({"id":8547494,"src":"Another_Opening_WEB_thumb.jpg","galleries_id":370362,"server_id":18,"link":"photo_8547494.html","width":130,"caption":"Another Opening","height":87});
															thumbnails[8547502] = clik.newPhoto({"id":8547502,"src":"Holy_Smoke_WEB_thumb.jpg","galleries_id":370362,"server_id":18,"link":"photo_8547502.html","width":130,"caption":"Holy Smoke","height":73});
															thumbnails[8547504] = clik.newPhoto({"id":8547504,"src":"Burning_Rubber_WEB_thumb.jpg","galleries_id":370362,"server_id":18,"link":"photo_8547504.html","width":110,"caption":"Burning Rubber","height":130});
															thumbnails[8566664] = clik.newPhoto({"id":8566664,"src":"Beamish_Farmyard_web_thumb.jpg","galleries_id":370363,"server_id":18,"link":"photo_8566664.html","width":130,"caption":"Beamish Farmyard","height":87});
															thumbnails[8567854] = clik.newPhoto({"id":8567854,"src":"Bike_Shed_thumb.jpg","galleries_id":370363,"server_id":18,"link":"photo_8567854.html","width":130,"caption":"The Bike Shed","height":87});
															thumbnails[8567860] = clik.newPhoto({"id":8567860,"src":"Star_Steam_Laundry_thumb.jpg","galleries_id":370363,"server_id":18,"link":"photo_8567860.html","width":130,"caption":"Star Steam Laundry","height":87});
															thumbnails[8567861] = clik.newPhoto({"id":8567861,"src":"Work_Horse_thumb.jpg","galleries_id":370363,"server_id":18,"link":"photo_8567861.html","width":130,"caption":"Work Horse","height":98});
															thumbnails[8567863] = clik.newPhoto({"id":8567863,"src":"TRAM_53_BELLE_VUE_WEB_thumb.jpg","galleries_id":370363,"server_id":18,"link":"photo_8567863.html","width":130,"caption":"Tram 53 Belle Vue","height":87});
															thumbnails[8567932] = clik.newPhoto({"id":8567932,"src":"EDINBURGH_CASTLE_WEB_thumb.jpg","galleries_id":370363,"server_id":18,"link":"photo_8567932.html","width":100,"caption":"Edinburgh Castle","height":130});
															thumbnails[8575090] = clik.newPhoto({"id":8575090,"src":"JUBILEE_LINE_WEB_thumb.jpg","galleries_id":370370,"server_id":18,"link":"photo_8575090.html","width":130,"caption":"Jubilee Line","height":87});
															thumbnails[8627151] = clik.newPhoto({"id":8627151,"src":"ESCAPED_WEB_thumb.jpg","galleries_id":370356,"server_id":18,"link":"photo_8627151.html","width":87,"caption":"Escaped","height":130});
															thumbnails[8627195] = clik.newPhoto({"id":8627195,"src":"The_Thinker_WEB_thumb.jpg","galleries_id":370356,"server_id":18,"link":"photo_8627195.html","width":104,"caption":"The Thinker","height":130});
															thumbnails[8627206] = clik.newPhoto({"id":8627206,"src":"The_Red_Rooster_WEB_thumb.jpg","galleries_id":208453,"server_id":18,"link":"photo_8627206.html","width":87,"caption":"Red Rooster","height":130});
															thumbnails[8627208] = clik.newPhoto({"id":8627208,"src":"Lady_in_Waiting_WEB_thumb.jpg","galleries_id":370362,"server_id":18,"link":"photo_8627208.html","width":130,"caption":"Lady In Waiting","height":100});
															thumbnails[8627725] = clik.newPhoto({"id":8627725,"src":"Reflections_In_The_Sand_thumb.jpg","galleries_id":208453,"server_id":18,"link":"photo_8627725.html","width":130,"caption":"Reflections In The Sand","height":93});
															thumbnails[8627827] = clik.newPhoto({"id":8627827,"src":"Every_boys_hankey_WEB_thumb.jpg","galleries_id":370356,"server_id":18,"link":"photo_8627827.html","width":130,"caption":"Every Boy's Hankey","height":93});
															thumbnails[8627906] = clik.newPhoto({"id":8627906,"src":"Spot_the_ball_WEB_thumb.jpg","galleries_id":370359,"server_id":18,"link":"photo_8627906.html","width":130,"caption":"Spot The Ball","height":93});
															thumbnails[8628086] = clik.newPhoto({"id":8628086,"src":"Blue_Fins_WEB_thumb.jpg","galleries_id":373667,"server_id":18,"link":"photo_8628086.html","width":130,"caption":"Blue Fins","height":98});
															thumbnails[8628092] = clik.newPhoto({"id":8628092,"src":"Natures_Pattern_WEB_thumb.jpg","galleries_id":373667,"server_id":18,"link":"photo_8628092.html","width":90,"caption":"Nature's Pattern","height":130});
															thumbnails[8628134] = clik.newPhoto({"id":8628134,"src":"Duomo_Amalfi_WEB_thumb.jpg","galleries_id":370360,"server_id":18,"link":"photo_8628134.html","width":82,"caption":"Duomo Amalfi","height":130});
															thumbnails[8656459] = clik.newPhoto({"id":8656459,"src":"URQUHART_CASTLE_WEB_thumb.jpg","galleries_id":370357,"server_id":18,"link":"photo_8656459.html","width":130,"caption":"Urquhart Castle","height":66});
															thumbnails[8656491] = clik.newPhoto({"id":8656491,"src":"BEAUTY_AND_THE_BEAST_2_WEB_thumb.jpg","galleries_id":370356,"server_id":18,"link":"photo_8656491.html","width":130,"caption":"Beauty and the Beast","height":71});
															thumbnails[8656527] = clik.newPhoto({"id":8656527,"src":"HALLOWEEN_GIRL_WEB_thumb.jpg","galleries_id":370363,"server_id":18,"link":"photo_8656527.html","width":97,"caption":"Halloween Girl","height":130});
															thumbnails[8656556] = clik.newPhoto({"id":8656556,"src":"BALLACHULISH_WEB_thumb.jpg","galleries_id":370357,"server_id":18,"link":"photo_8656556.html","width":130,"caption":"Ballachulish","height":88});
															thumbnails[8656639] = clik.newPhoto({"id":8656639,"src":"GLENCOE_MOON_WEB_thumb.jpg","galleries_id":370363,"server_id":18,"link":"photo_8656639.html","width":130,"caption":"Glencoe Moon","height":88});
															thumbnails[8656812] = clik.newPhoto({"id":8656812,"src":"Derelict_Cottage_WEB_thumb.jpg","galleries_id":370362,"server_id":18,"link":"photo_8656812.html","width":130,"caption":"Derelict Cottage","height":84});
															thumbnails[8656825] = clik.newPhoto({"id":8656825,"src":"Neon_Peugeot_Lemans_Car_thumb.jpg","galleries_id":370363,"server_id":18,"link":"photo_8656825.html","width":130,"caption":"Neon Peugeot Lemans Car","height":98});
															thumbnails[8656832] = clik.newPhoto({"id":8656832,"src":"Red_Kayak_WEB_thumb.jpg","galleries_id":370359,"server_id":18,"link":"photo_8656832.html","width":130,"caption":"Red Kayak","height":87});
															thumbnails[8656853] = clik.newPhoto({"id":8656853,"src":"PACKED_LUNCH_WEB_thumb.jpg","galleries_id":457118,"server_id":18,"link":"photo_8656853.html","width":104,"caption":"Packed Lunch","height":130});
															thumbnails[8656864] = clik.newPhoto({"id":8656864,"src":"HOVERFLY_10_WEB_thumb.jpg","galleries_id":457118,"server_id":18,"link":"photo_8656864.html","width":130,"caption":"Hoverfly","height":98});
															thumbnails[8656908] = clik.newPhoto({"id":8656908,"src":"Clyde_Reflections_3_web1_thumb.jpg","galleries_id":370370,"server_id":18,"link":"photo_8656908.html","width":130,"caption":"Clyde Reflections","height":64});
															thumbnails[8657701] = clik.newPhoto({"id":8657701,"src":"Three_in_a_Row_013_WEB_thumb.jpg","galleries_id":370359,"server_id":18,"link":"photo_8657701.html","width":130,"caption":"Three In A Row","height":95});
															thumbnails[8664301] = clik.newPhoto({"id":8664301,"src":"Tram_765_Driver_HDR_WEB_thumb.jpg","galleries_id":370363,"server_id":18,"link":"photo_8664301.html","width":90,"caption":"Tram 765 Driver","height":130});
															thumbnails[8664329] = clik.newPhoto({"id":8664329,"src":"Royal_Enfield_Motorcycle_web_thumb.jpg","galleries_id":370363,"server_id":18,"link":"photo_8664329.html","width":130,"caption":"Royal Enfield Motorcycle","height":98});
															thumbnails[8664475] = clik.newPhoto({"id":8664475,"src":"Beamish_Vintage_Car_HDR_WEB_thumb.jpg","galleries_id":370363,"server_id":18,"link":"photo_8664475.html","width":130,"caption":"Beamish Vintage Car","height":87});
															thumbnails[8684451] = clik.newPhoto({"id":8684451,"src":"Fly_me_to_the_moon_web_thumb.jpg","galleries_id":370363,"server_id":18,"link":"photo_8684451.html","width":130,"caption":"Fly Me To The Moon","height":93});
															thumbnails[8684510] = clik.newPhoto({"id":8684510,"src":"Web_Jewels_web_thumb.jpg","galleries_id":373667,"server_id":18,"link":"photo_8684510.html","width":130,"caption":"Web Jewels","height":93});
															thumbnails[8684513] = clik.newPhoto({"id":8684513,"src":"Siskin_web_thumb.jpg","galleries_id":370363,"server_id":18,"link":"photo_8684513.html","width":130,"caption":"Siskin","height":100});
															thumbnails[8684534] = clik.newPhoto({"id":8684534,"src":"Goldfish_web_thumb.jpg","galleries_id":370358,"server_id":18,"link":"photo_8684534.html","width":130,"caption":"Goldfish","height":84});
															thumbnails[8692642] = clik.newPhoto({"id":8692642,"src":"Roe_Deer_Buck_web_thumb.jpg","galleries_id":370358,"server_id":18,"link":"photo_8692642.html","width":104,"caption":"Roe Deer Buck","height":130});
															thumbnails[8692763] = clik.newPhoto({"id":8692763,"src":"Perigrine_Falcon_web_thumb.jpg","galleries_id":370358,"server_id":18,"link":"photo_8692763.html","width":130,"caption":"Peregrine Falcon","height":69});
															thumbnails[8714499] = clik.newPhoto({"id":8714499,"src":"CREEPY_STAIRS_WEB_thumb.jpg","galleries_id":208453,"server_id":18,"link":"photo_8714499.html","width":130,"caption":"Creepy Stairs","height":82});
															thumbnails[8714535] = clik.newPhoto({"id":8714535,"src":"BLACK_CLOUDS_AT_BLACK_ROCK_WEB_thumb.jpg","galleries_id":208453,"server_id":18,"link":"photo_8714535.html","width":130,"caption":"Black Clouds At Black Rock","height":87});
															thumbnails[8714538] = clik.newPhoto({"id":8714538,"src":"IN_FLIGHT_web1_thumb.jpg","galleries_id":208453,"server_id":18,"link":"photo_8714538.html","width":130,"caption":"In Flight","height":98});
															thumbnails[8728490] = clik.newPhoto({"id":8728490,"src":"TRAIN_TO_NOWHERE_WEB_thumb.jpg","galleries_id":370362,"server_id":18,"link":"photo_8728490.html","width":130,"caption":"Train To Nowhere","height":81});
															thumbnails[8728507] = clik.newPhoto({"id":8728507,"src":"LAST_TRAM_TO_ROKER_WEB_thumb.jpg","galleries_id":370370,"server_id":18,"link":"photo_8728507.html","width":130,"caption":"Last Tram To Roker","height":98});
															thumbnails[8728517] = clik.newPhoto({"id":8728517,"src":"DEER_WEB_thumb.jpg","galleries_id":370358,"server_id":18,"link":"photo_8728517.html","width":84,"caption":"Deer","height":130});
															thumbnails[8728533] = clik.newPhoto({"id":8728533,"src":"REFLECTIONS_WEB_thumb.jpg","galleries_id":370357,"server_id":18,"link":"photo_8728533.html","width":130,"caption":"Reflections","height":57});
															thumbnails[8728541] = clik.newPhoto({"id":8728541,"src":"EMERGING_IRIS_WEB_thumb.jpg","galleries_id":370358,"server_id":18,"link":"photo_8728541.html","width":33,"caption":"Emerging Iris","height":130});
															thumbnails[8728545] = clik.newPhoto({"id":8728545,"src":"SILVER_BIRCH_WEB_thumb.jpg","galleries_id":370358,"server_id":18,"link":"photo_8728545.html","width":130,"caption":"Silver Birch","height":98});
															thumbnails[8728552] = clik.newPhoto({"id":8728552,"src":"REFRESHING_WEB_thumb.jpg","galleries_id":370362,"server_id":18,"link":"photo_8728552.html","width":87,"caption":"Refreshing","height":130});
															thumbnails[8728556] = clik.newPhoto({"id":8728556,"src":"ROLLER_COASTER_ROAD_WEB_thumb.jpg","galleries_id":370357,"server_id":18,"link":"photo_8728556.html","width":130,"caption":"Roller Coaster Road","height":87});
															thumbnails[8728589] = clik.newPhoto({"id":8728589,"src":"THE_MAGNIFICENT_SEVEN_WEB_thumb.jpg","galleries_id":370358,"server_id":18,"link":"photo_8728589.html","width":130,"caption":"The Magnificent Seven","height":95});
															thumbnails[8728591] = clik.newPhoto({"id":8728591,"src":"War_Of_The_Worlds_WEB_thumb.jpg","galleries_id":370358,"server_id":18,"link":"photo_8728591.html","width":87,"caption":"War Of The Worlds","height":130});
															thumbnails[8745121] = clik.newPhoto({"id":8745121,"src":"Moon_WEB_thumb.jpg","galleries_id":370370,"server_id":18,"link":"photo_8745121.html","width":130,"caption":"[ No Title ]","height":93});
															thumbnails[8745207] = clik.newPhoto({"id":8745207,"src":"Dolphins_WEB_thumb.jpg","galleries_id":370358,"server_id":18,"link":"photo_8745207.html","width":130,"caption":"Dolphins","height":44});
															thumbnails[8745648] = clik.newPhoto({"id":8745648,"src":"BLUE_MOON_RISING_WEB_thumb.jpg","galleries_id":370363,"server_id":18,"link":"photo_8745648.html","width":130,"caption":"Blue Moon Rising","height":84});
															thumbnails[8753107] = clik.newPhoto({"id":8753107,"src":"Lemans_2011_WEB_thumb.jpg","galleries_id":370363,"server_id":18,"link":"photo_8753107.html","width":130,"caption":"Lemans 2011","height":78});
															thumbnails[8801712] = clik.newPhoto({"id":8801712,"src":"BEE_MIMIC_FLY_WEB_thumb.jpg","galleries_id":208453,"server_id":18,"link":"photo_8801712.html","width":104,"caption":"Bee Mimic Fly","height":130});
															thumbnails[8875904] = clik.newPhoto({"id":8875904,"src":"JET_FIGHTER_OOB_WEB_42D9E9E4-1EC9-D45B-1C4C39AAC34AF7A0_thumb.jpg","galleries_id":370363,"server_id":18,"link":"photo_8875904.html","width":130,"caption":"Jet Fighter","height":105});
															thumbnails[8875907] = clik.newPhoto({"id":8875907,"src":"BLACK_HEADED_GULL_OOB_WEB_thumb.jpg","galleries_id":370363,"server_id":18,"link":"photo_8875907.html","width":130,"caption":"Black Headed Gull","height":104});
															thumbnails[8875910] = clik.newPhoto({"id":8875910,"src":"OFF_THE_TRACK_OOB_WEB_thumb.jpg","galleries_id":370363,"server_id":18,"link":"photo_8875910.html","width":130,"caption":"Off The Track","height":109});
															thumbnails[8877162] = clik.newPhoto({"id":8877162,"src":"Light_And_Shade_2_WEB_thumb.jpg","galleries_id":370357,"server_id":18,"link":"photo_8877162.html","width":130,"caption":"Light And Shade","height":68});
															thumbnails[8877243] = clik.newPhoto({"id":8877243,"src":"Lone_Tree_web_thumb.jpg","galleries_id":370357,"server_id":18,"link":"photo_8877243.html","width":130,"caption":"Lone Tree","height":74});
															thumbnails[8877264] = clik.newPhoto({"id":8877264,"src":"Peugot_207_Sport_web_thumb.jpg","galleries_id":370362,"server_id":18,"link":"photo_8877264.html","width":130,"caption":"Peugot 207 Sport","height":79});
															thumbnails[8877281] = clik.newPhoto({"id":8877281,"src":"Pet_Book_web_thumb.jpg","galleries_id":370363,"server_id":18,"link":"photo_8877281.html","width":130,"caption":"Pet Book","height":91});
															thumbnails[8877295] = clik.newPhoto({"id":8877295,"src":"Just_Cruisin_web_thumb.jpg","galleries_id":370358,"server_id":18,"link":"photo_8877295.html","width":130,"caption":"Just Cruisin","height":78});
															thumbnails[8877309] = clik.newPhoto({"id":8877309,"src":"Eagle_Owl_156_web_thumb.jpg","galleries_id":370358,"server_id":18,"link":"photo_8877309.html","width":130,"caption":"Eagle Owl","height":75});
															thumbnails[8885280] = clik.newPhoto({"id":8885280,"src":"Cannon_Power_web_thumb.jpg","galleries_id":370363,"server_id":18,"link":"photo_8885280.html","width":130,"caption":"Canon Power","height":87});
															thumbnails[8887976] = clik.newPhoto({"id":8887976,"src":"Glen_Etive_HDR_Panorama_web_thumb.jpg","galleries_id":370357,"server_id":18,"link":"photo_8887976.html","width":130,"caption":"Glen Etive","height":38});
															thumbnails[8887979] = clik.newPhoto({"id":8887979,"src":"TVR_OOB_web_thumb.jpg","galleries_id":370363,"server_id":18,"link":"photo_8887979.html","width":130,"caption":"TVR","height":68});
															thumbnails[8912364] = clik.newPhoto({"id":8912364,"src":"Rainy_Day_Rose_WEB_thumb.jpg","galleries_id":208453,"server_id":18,"link":"photo_8912364.html","width":130,"caption":"Rainy Day Rose","height":95});
															thumbnails[8912387] = clik.newPhoto({"id":8912387,"src":"LOOKING_BACK_WEB_thumb.jpg","galleries_id":208453,"server_id":18,"link":"photo_8912387.html","width":98,"caption":"Looking Back","height":130});
															thumbnails[8912427] = clik.newPhoto({"id":8912427,"src":"Amethyst_Deceiver_WEB_thumb.jpg","galleries_id":208453,"server_id":18,"link":"photo_8912427.html","width":130,"caption":"Amethyst Deceiver","height":92});
															thumbnails[8912441] = clik.newPhoto({"id":8912441,"src":"Move_Over_WEB_thumb.jpg","galleries_id":457118,"server_id":18,"link":"photo_8912441.html","width":104,"caption":"Move Over","height":130});
															thumbnails[8912452] = clik.newPhoto({"id":8912452,"src":"White_Water_Dare_Devil_WEB_thumb.jpg","galleries_id":370359,"server_id":18,"link":"photo_8912452.html","width":130,"caption":"White Water Dare Devil","height":91});
															thumbnails[8912468] = clik.newPhoto({"id":8912468,"src":"Go_With_The_Flow_WEB_thumb.jpg","galleries_id":370359,"server_id":18,"link":"photo_8912468.html","width":130,"caption":"Go With The Flow","height":87});
															thumbnails[8912481] = clik.newPhoto({"id":8912481,"src":"Blackford_Churchyard_WEB_thumb.jpg","galleries_id":370363,"server_id":18,"link":"photo_8912481.html","width":130,"caption":"Blackford Churchyard","height":87});
															thumbnails[9060483] = clik.newPhoto({"id":9060483,"src":"Harris_Hawk_WEB_thumb.jpg","galleries_id":208453,"server_id":18,"link":"photo_9060483.html","width":130,"caption":"Harris Hawk","height":70});
															thumbnails[9060568] = clik.newPhoto({"id":9060568,"src":"TRAINING_DAY_WEB_thumb.jpg","galleries_id":208453,"server_id":18,"link":"photo_9060568.html","width":130,"caption":"Training Day","height":104});
															thumbnails[9091198] = clik.newPhoto({"id":9091198,"src":"Takeaway_web_1_thumb.jpg","galleries_id":370358,"server_id":35,"link":"photo_9091198.html","width":130,"caption":"Takeaway","height":112});
															thumbnails[9091206] = clik.newPhoto({"id":9091206,"src":"TVR_Zoom_Focus_web_2_thumb.jpg","galleries_id":370362,"server_id":35,"link":"photo_9091206.html","width":130,"caption":"TVR Zoom Focus","height":93});
															thumbnails[9091217] = clik.newPhoto({"id":9091217,"src":"Banners_St_Giles_web_1_thumb.jpg","galleries_id":370360,"server_id":35,"link":"photo_9091217.html","width":130,"caption":"Banners St.Giles","height":130});
															thumbnails[9091341] = clik.newPhoto({"id":9091341,"src":"Guitar_Player_web_2_thumb.jpg","galleries_id":370363,"server_id":35,"link":"photo_9091341.html","width":110,"caption":"Guitar Solo","height":130});
															thumbnails[9098291] = clik.newPhoto({"id":9098291,"src":"Leopard_WEB_1_thumb.jpg","galleries_id":370358,"server_id":35,"link":"photo_9098291.html","width":113,"caption":"[ NO TITLE ]","height":130});
															thumbnails[9104227] = clik.newPhoto({"id":9104227,"src":"Raindrops_web_1_thumb.jpg","galleries_id":373667,"server_id":37,"link":"photo_9104227.html","width":130,"caption":"Raindrops","height":72});
															thumbnails[5902870] = clik.newPhoto({"id":5902870,"src":"Rivet_Colours_thumb.jpg","galleries_id":373667,"server_id":18,"link":"photo_5902870.html","width":130,"caption":"Rivet Colours","height":87});
															thumbnails[5898168] = clik.newPhoto({"id":5898168,"src":"Red_sky_over_Talacre_lighthouse_thumb.jpg","galleries_id":370357,"server_id":18,"link":"photo_5898168.html","width":130,"caption":"Sunset Over Talacre Lighthouse","height":79});
															thumbnails[3411384] = clik.newPhoto({"id":3411384,"src":"33 The look_thumb.jpg","galleries_id":370356,"server_id":18,"link":"photo_3411384.html","width":130,"caption":"The Look","height":87});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[373667] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Abstract","link":"gallery_373667.html","maxRecords":0.0,"photoIDs":[8293744.0,8371145.0,8371155.0,8628086.0,8628092.0,8684510.0,9104227.0,5902870.0],"skipIndex":0,"section_code":"gallery","featured_images":"9104227,8684510,8628092,8371155,8371145,8293744,5902870","id":373667,"singleSection":false});				  						galleries[370360] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Architecture","link":"gallery_370360.html","maxRecords":0.0,"photoIDs":[6828979.0,8628134.0,9091217.0],"skipIndex":0,"section_code":"gallery","featured_images":"9091217,8628134,6828979","id":370360,"singleSection":false});				  						galleries[370363] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Creative","link":"gallery_370363.html","maxRecords":0.0,"photoIDs":[6891602.0,6939825.0,6939830.0,7269319.0,7269350.0,8477930.0,8512912.0,8516515.0,8566664.0,8567854.0,8567860.0,8567861.0,8567863.0,8567932.0,8656527.0,8656639.0,8656825.0,8664301.0,8664329.0,8664475.0,8684451.0,8684513.0,8745648.0,8753107.0,8875904.0,8875907.0,8875910.0,8877281.0,8885280.0,8887979.0,8912481.0,9091341.0],"skipIndex":0,"section_code":"gallery","featured_images":"9091341,8912481,8887979,8885280,8877281,8875910,8875907,8875904,8753107,8745648,8684513,8684451,8664475,8664329,8664301,8656825,8656639,8656527,8567932,8567863,8567861,8567860,8567854,8566664,8516515,8512912,8477930,7269350,6939830,6939825","id":370363,"singleSection":false});				  						galleries[370357] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Landscapes","link":"gallery_370357.html","maxRecords":0.0,"photoIDs":[6884636.0,8293695.0,8293781.0,8293841.0,8293846.0,8293848.0,8299639.0,8506641.0,8512910.0,8656459.0,8656556.0,8728533.0,8728556.0,8877162.0,8877243.0,8887976.0,5898168.0],"skipIndex":0,"section_code":"gallery","featured_images":"8877243,8877162,8728556,8728533,8656556,8656459,8512910,8506641,8299639,8293848,8293846,8293841,8293781,8293695,6884636,5898168","id":370357,"singleSection":false});				  						galleries[457118] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Macro","link":"gallery_457118.html","maxRecords":0.0,"photoIDs":[7028565.0,8293474.0,8293506.0,8293815.0,8312816.0,8371634.0,8371668.0,8656853.0,8656864.0,8912441.0],"skipIndex":0,"section_code":"gallery","featured_images":"8912441,8656864,8656853,8371668,8371634,8312816,8293815,8293506,8293474,7028565","id":457118,"singleSection":false});				  						galleries[370361] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Monochrome","link":"gallery_370361.html","maxRecords":0.0,"photoIDs":[6829074.0,6884600.0,6885721.0,8299333.0,8299664.0,8313919.0],"skipIndex":0,"section_code":"gallery","featured_images":"8313919,8299664,8299333,6885721,6884600","id":370361,"singleSection":false});				  						galleries[370358] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Nature","link":"gallery_370358.html","maxRecords":0.0,"photoIDs":[5910092.0,6876528.0,6890537.0,7114097.0,7179067.0,7179085.0,8293560.0,8293752.0,8293822.0,8293827.0,8299373.0,8309458.0,8310490.0,8313943.0,8313961.0,8317165.0,8371129.0,8371140.0,8371151.0,8371523.0,8372826.0,8372844.0,8372872.0,8372898.0,8477875.0,8684534.0,8692642.0,8692763.0,8728517.0,8728541.0,8728545.0,8728589.0,8728591.0,8745207.0,8877295.0,8877309.0,9091198.0,9098291.0],"skipIndex":0,"section_code":"gallery","featured_images":"9098291,9091198,8877309,8877295,8745207,8728591,8728589,8728545,8728517,8692763,8692642,8684534,8477875,8372898,8372872,8372844,8372826,8371523,8371151,8371140,8371129,8317165,8313961,8313943,8310490,8309458,8299373,8293827,8293822,8293752,8293560,7179085,7179067,7114097,6890537,6876528,5910092","id":370358,"singleSection":false});				  						galleries[370370] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Night Photography","link":"gallery_370370.html","maxRecords":0.0,"photoIDs":[8293597.0,8293616.0,8293833.0,8575090.0,8656908.0,8728507.0,8745121.0],"skipIndex":0,"section_code":"gallery","featured_images":"8745121,8728507,8656908,8575090,8293833,8293616,8293597","id":370370,"singleSection":false});				  						galleries[370362] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Other","link":"gallery_370362.html","maxRecords":0.0,"photoIDs":[8293735.0,8293791.0,8299362.0,8299659.0,8299687.0,8299717.0,8371108.0,8371167.0,8371553.0,8373727.0,8402819.0,8547486.0,8547494.0,8547502.0,8547504.0,8627208.0,8656812.0,8728490.0,8728552.0,8877264.0,9091206.0],"skipIndex":0,"section_code":"gallery","featured_images":"9091206,8877264,8728552,8728490,8656812,8627208,8547502,8547494,8547486,8402819,8371553,8371167,8371108,8299717,8299687,8299659,8299362,8293791,8293735","id":370362,"singleSection":false});				  						galleries[370356] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portraits","link":"gallery_370356.html","maxRecords":0.0,"photoIDs":[8293756.0,8299801.0,8299898.0,8309480.0,8313927.0,8371288.0,8371497.0,8627151.0,8627195.0,8627827.0,8656491.0,3411384.0],"skipIndex":0,"section_code":"gallery","featured_images":"8656491,8627827,8627195,8627151,8371497,8371288,8313927,8309480,8299898,8299801,8293756,3411384","id":370356,"singleSection":false});				  						galleries[370359] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Sport","link":"gallery_370359.html","maxRecords":0.0,"photoIDs":[6138152.0,8293759.0,8293787.0,8304831.0,8304859.0,8304924.0,8627906.0,8656832.0,8657701.0,8912452.0,8912468.0],"skipIndex":0,"section_code":"gallery","featured_images":"8912468,8912452,8657701,8656832,8627906,8304924,8304859,8304831,8293787,8293759,6138152","id":370359,"singleSection":false});				  						galleries[208453] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Competition Results","link":"gallery_208453.html","maxRecords":0.0,"photoIDs":[8309452.0,8627206.0,8627725.0,8714499.0,8714535.0,8714538.0,8801712.0,8912364.0,8912387.0,8912427.0,9060483.0,9060568.0],"skipIndex":0,"section_code":"gallery","featured_images":"9060568,9060483,8912427,8912387,8912364,8801712,8714538,8714535,8714499,8627725,8627206,8309452","id":208453,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '9098291,9091341,9091217,9091206,9091198,9060568,9060483,8912481,8912468,8912452,8912441,8912427,8912387,8912364,8887979,8887976,8885280,8877309,8877295,8877281,8877264,8877243,8877162,8875910,8875907,8875904,8801712,8753107,8745648,8745207,8745121,8728591,8728589,8728556,8728545,8728541,8728533,8728517,8728507,8728490,8714538,8714535,8714499,8692763,8692642,8684513,8684510,8684451,8664475,8664329,8664301,8657701,8656908,8656864,8656853,8656832,8656825,8656812,8656639,8656556,8656527,8656491,8656459,8628134,8628092,8628086,8627827,8627725,8627208,8627206,8627195,8627151,8575090,8567932,8567863,8567861,8567860,8567854,8566664,8547502,8547494,8547486,8516515,8512912,8512910,8506641,8477930,8477875,8402819,8372898,8372872,8372844,8372826,8371668,8371634,8371553,8371523,8371497,8371288,8371167,8371155,8371151,8371145,8371140,8371129,8371108,8317165,8313961,8313943,8313927,8313919,8312816,8310490,8309480,8309458,8309452,8304924,8304859,8304831,8299898,8299801,8299717,8299687,8299664,8299659,8299639,8299373,8299362,8299333,8293848,8293846,8293841,8293833,8293827,8293822,8293815,8293791,8293787,8293781,8293759,8293752,8293744,8293735,8293695,8293616,8293597,8293560,8293506,8293474,7269350,7269319,7179085,7179067,7114097,7028565,6939830,6939825,6890537,6885721,6884636,6884600,6876528,6828979,6138152,5910092,5902870,5898168,3411384';
imageSets[2] = '9104227,9098291,9091341,9091217,9091206,9091198,9060568,9060483,8912481,8912468,8912452,8912441,8912427,8912387,8912364,8887979,8885280,8877309,8877295,8877281,8877264,8877243,8877162,8875910,8875907,8875904,8801712,8753107,8745648,8745207,8745121,8728591,8728589,8728556,8728552,8728545,8728533,8728517,8728507,8728490,8714538,8714535,8714499,8692763,8692642,8684534,8684513,8684510,8684451,8664475,8664329,8664301,8657701,8656908,8656864,8656853,8656832,8656825,8656812,8656639,8656556,8656527,8656491,8656459,8628134,8628092,8627906,8627827,8627725,8627208,8627206,8627195,8627151,8575090,8567932,8567863,8567861,8567860,8567854,8566664,8547502,8547494,8547486,8516515,8512912,8512910,8506641,8477930,8477875,8402819,8372898,8372872,8372844,8372826,8371668,8371634,8371553,8371523,8371497,8371288,8371167,8371155,8371151,8371145,8371140,8371129,8371108,8317165,8313961,8313943,8313927,8313919,8312816,8310490,8309480,8309458,8309452,8304924,8304859,8304831,8299898,8299801,8299717,8299687,8299664,8299659,8299639,8299373,8299362,8299333,8293848,8293846,8293841,8293833,8293827,8293822,8293815,8293791,8293787,8293781,8293759,8293756,8293752,8293744,8293735,8293695,8293616,8293597,8293560,8293506,8293474,7269350,7179085,7179067,7114097,7028565,6939830,6939825,6890537,6885721,6884636,6884600,6876528,6828979,6138152,5910092,5902870,5898168,3411384';
imageSets[3] = '9104227,9098291,9091341,9091217,9091206,9091198,9060568,9060483,8912481,8912468,8912452,8912441,8912427,8912387,8912364,8887979,8887976,8885280,8877309,8877295,8877281,8877264,8877243,8877162,8875910,8875907,8875904,8801712,8753107,8745648,8745207,8745121,8728591,8728589,8728556,8728552,8728545,8728541,8728533,8728517,8728507,8728490,8714538,8714535,8714499,8692763,8692642,8684534,8684513,8684510';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/stalor/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/stalor/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/stalor/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/stalor/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/stalor/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/stalor/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/stalor/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/stalor/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/stalor/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/stalor/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/stalor/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/stalor/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/stalor/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/stalor/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/stalor/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/stalor/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/stalor/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/stalor/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/stalor/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/stalor/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/stalor/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/stalor/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/stalor/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/stalor/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/stalor/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/stalor/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/stalor/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 = 'ALBA Photographic Society: ' + 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;
	}
}

			

