window.thumbnails = {};
															thumbnails[2015190] = clik.newPhoto({"id":2015190,"src":"founders_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":93});
															thumbnails[2018902] = clik.newPhoto({"id":2018902,"src":"AV-before-computers_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":88});
															thumbnails[4991497] = clik.newPhoto({"id":4991497,"src":"AudienceTranent2_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Audience, Tranent","height":87});
															thumbnails[7022504] = clik.newPhoto({"id":7022504,"src":"JI_AutumnColours_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Autumn colours","height":87});
															thumbnails[7620374] = clik.newPhoto({"id":7620374,"src":"1011CupWinners_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":101});
															thumbnails[8120503] = clik.newPhoto({"id":8120503,"src":"LW_HDD_show_winner2_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":87});
															thumbnails[8666492] = clik.newPhoto({"id":8666492,"src":"HCC_WebPics_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":61});
															thumbnails[8695609] = clik.newPhoto({"id":8695609,"src":"Dawyck_3_2239_400_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":87,"caption":"","height":130});
															thumbnails[8695654] = clik.newPhoto({"id":8695654,"src":"MT_Dawyck3_2255_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":87});
															thumbnails[8735673] = clik.newPhoto({"id":8735673,"src":"MT_Lichen_2_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":88});
															thumbnails[2080190] = clik.newPhoto({"id":2080190,"src":"Bandsmen_on_parade-1_thumb.jpg","galleries_id":138802,"server_id":5,"link":"photo_2080190.html","width":51,"caption":"Bandsmen on parade","height":130});
															thumbnails[2080192] = clik.newPhoto({"id":2080192,"src":"Chinese_Dancing_Girls-2_thumb.jpg","galleries_id":138802,"server_id":5,"link":"photo_2080192.html","width":118,"caption":"Chinese dancing girls","height":130});
															thumbnails[2080194] = clik.newPhoto({"id":2080194,"src":"Library_Vancouver-3_thumb.jpg","galleries_id":138802,"server_id":5,"link":"photo_2080194.html","width":88,"caption":"Library, Vancouver","height":130});
															thumbnails[2352849] = clik.newPhoto({"id":2352849,"src":"BR_Ardkinglass-6_thumb.jpg","galleries_id":153235,"server_id":5,"link":"photo_2352849.html","width":130,"caption":"Ardkinglass","height":90});
															thumbnails[2352851] = clik.newPhoto({"id":2352851,"src":"BR_In_the_wake-8_thumb.jpg","galleries_id":153235,"server_id":5,"link":"photo_2352851.html","width":130,"caption":"In the wake","height":78});
															thumbnails[2352852] = clik.newPhoto({"id":2352852,"src":"BR_Iona_Carving-7_thumb.jpg","galleries_id":153235,"server_id":5,"link":"photo_2352852.html","width":57,"caption":"Iona carving","height":130});
															thumbnails[2352853] = clik.newPhoto({"id":2352853,"src":"NS_Aberlady_Church-1_thumb.jpg","galleries_id":153236,"server_id":5,"link":"photo_2352853.html","width":130,"caption":"Aberlady church","height":87});
															thumbnails[2352854] = clik.newPhoto({"id":2352854,"src":"NS_Bass_Rock_from_Seacliff-2_thumb.jpg","galleries_id":153236,"server_id":5,"link":"photo_2352854.html","width":130,"caption":"Bass rock from Seacliff","height":84});
															thumbnails[2352855] = clik.newPhoto({"id":2352855,"src":"NS_Cove_Harbour-4_thumb.jpg","galleries_id":153236,"server_id":5,"link":"photo_2352855.html","width":130,"caption":"Cove harbour","height":87});
															thumbnails[6806465] = clik.newPhoto({"id":6806465,"src":"Gullane-Bay-Sunset-Rockhad_thumb.jpg","galleries_id":276880,"server_id":5,"link":"photo_6806465.html","width":130,"caption":"Sunset at Gullane Point","height":79});
															thumbnails[7367786] = clik.newPhoto({"id":7367786,"src":"MikeShakspeare_LagganLaddie.jpeg_thumb.jpg","galleries_id":398780,"server_id":5,"link":"photo_7367786.html","width":92,"caption":"Laggan laddie","height":130});
															thumbnails[7367788] = clik.newPhoto({"id":7367788,"src":"MikeShakspeare_lastfurlong.jpeg_thumb.jpg","galleries_id":398780,"server_id":5,"link":"photo_7367788.html","width":130,"caption":"Last furlong","height":93});
															thumbnails[7367789] = clik.newPhoto({"id":7367789,"src":"MikeShakspeare_makingmusic.jpeg_thumb.jpg","galleries_id":398780,"server_id":5,"link":"photo_7367789.html","width":130,"caption":"Making music","height":87});
															thumbnails[7367790] = clik.newPhoto({"id":7367790,"src":"MikeShakspeare_riderinthesky_thumb.jpg","galleries_id":398780,"server_id":5,"link":"photo_7367790.html","width":109,"caption":"Rider in the sky","height":130});
															thumbnails[7367794] = clik.newPhoto({"id":7367794,"src":"MikeShakspeare_shapesandreflections_thumb.jpg","galleries_id":398780,"server_id":5,"link":"photo_7367794.html","width":130,"caption":"Shapes and reflections","height":87});
															thumbnails[7379696] = clik.newPhoto({"id":7379696,"src":"MikeShakspeare_IntergalacticTravel_thumb.jpg","galleries_id":398780,"server_id":5,"link":"photo_7379696.html","width":130,"caption":"Intergalactic travel","height":93});
															thumbnails[7771207] = clik.newPhoto({"id":7771207,"src":"MT_ATrickyJob_thumb.jpg","galleries_id":141453,"server_id":5,"link":"photo_7771207.html","width":130,"caption":"A tricky job","height":98});
															thumbnails[7771209] = clik.newPhoto({"id":7771209,"src":"MT_HardyOak_thumb.jpg","galleries_id":141453,"server_id":5,"link":"photo_7771209.html","width":87,"caption":"Hardy oak","height":130});
															thumbnails[7771212] = clik.newPhoto({"id":7771212,"src":"MT_IntensiveAgriculture_thumb.jpg","galleries_id":141453,"server_id":5,"link":"photo_7771212.html","width":130,"caption":"Intensive agriculture","height":59});
															thumbnails[7959782] = clik.newPhoto({"id":7959782,"src":"WP_GlenRosa2BW_thumb.jpg","galleries_id":190015,"server_id":5,"link":"photo_7959782.html","width":130,"caption":"Glen Rosa","height":87});
															thumbnails[7959784] = clik.newPhoto({"id":7959784,"src":"WP_NorthGoatFell1_thumb.jpg","galleries_id":190015,"server_id":5,"link":"photo_7959784.html","width":130,"caption":"North Goat Fell 1","height":87});
															thumbnails[7959786] = clik.newPhoto({"id":7959786,"src":"WP_NorthGoatFell3_thumb.jpg","galleries_id":190015,"server_id":5,"link":"photo_7959786.html","width":130,"caption":"North Goat Fell 2","height":87});
															thumbnails[8559502] = clik.newPhoto({"id":8559502,"src":"DE_Cyclist_1W_thumb.jpg","galleries_id":145822,"server_id":5,"link":"photo_8559502.html","width":130,"caption":"Cyclist","height":99});
															thumbnails[8559505] = clik.newPhoto({"id":8559505,"src":"DE_FrenchAerobatics_1W_thumb.jpg","galleries_id":145822,"server_id":5,"link":"photo_8559505.html","width":119,"caption":"French aerobatics","height":130});
															thumbnails[8559508] = clik.newPhoto({"id":8559508,"src":"DE_TakeThreeGirls_1W_thumb.jpg","galleries_id":145822,"server_id":5,"link":"photo_8559508.html","width":130,"caption":"Take three girls","height":97});
															thumbnails[8735670] = clik.newPhoto({"id":8735670,"src":"MT_DawyckFungus_thumb.jpg","galleries_id":141453,"server_id":5,"link":"photo_8735670.html","width":130,"caption":"","height":87});
															thumbnails[8735675] = clik.newPhoto({"id":8735675,"src":"MT_DawyckScene_thumb.jpg","galleries_id":141453,"server_id":5,"link":"photo_8735675.html","width":87,"caption":"","height":130});
															thumbnails[5146099] = clik.newPhoto({"id":5146099,"src":"AB_LeaderOfThePack_thumb.jpg","galleries_id":142292,"server_id":5,"link":"photo_5146099.html","width":89,"caption":"Leader of the pack","height":130});
															thumbnails[5146103] = clik.newPhoto({"id":5146103,"src":"AB_TheInstallation_1_thumb.jpg","galleries_id":142292,"server_id":5,"link":"photo_5146103.html","width":95,"caption":"The installation","height":130});
															thumbnails[2257457] = clik.newPhoto({"id":2257457,"src":"RM_HillTopTrees_thumb.jpg","galleries_id":148391,"server_id":5,"link":"photo_2257457.html","width":96,"caption":"Hill-top trees","height":130});
															thumbnails[3671924] = clik.newPhoto({"id":3671924,"src":"AB_Cockenzie_thumb.jpg","galleries_id":142292,"server_id":5,"link":"photo_3671924.html","width":130,"caption":"Cockenzie","height":90});
															thumbnails[4850701] = clik.newPhoto({"id":4850701,"src":"LW_FestivalFace_thumb.jpg","galleries_id":138908,"server_id":5,"link":"photo_4850701.html","width":106,"caption":"Festival face","height":130});
															thumbnails[4851050] = clik.newPhoto({"id":4851050,"src":"RW_SeaweedSwirlMull_thumb.jpg","galleries_id":276880,"server_id":5,"link":"photo_4851050.html","width":87,"caption":"Seaweed swirl, Mull","height":130});
															thumbnails[4902818] = clik.newPhoto({"id":4902818,"src":"WP_CaddonWater_1_thumb.jpg","galleries_id":190015,"server_id":5,"link":"photo_4902818.html","width":130,"caption":"Caddon Water 1","height":87});
															thumbnails[5514119] = clik.newPhoto({"id":5514119,"src":"GStir_Rail-Bridge-2_thumb.jpg","galleries_id":312231,"server_id":5,"link":"photo_5514119.html","width":130,"caption":"Rail bridge 2","height":92});
															thumbnails[8021982] = clik.newPhoto({"id":8021982,"src":"KT_The_rain_is_there_thumb.jpg","galleries_id":383420,"server_id":5,"link":"photo_8021982.html","width":130,"caption":"The rain is there","height":86});
															thumbnails[8569641] = clik.newPhoto({"id":8569641,"src":"AJ_sunflower-and-bee_thumb.jpeg","galleries_id":200340,"server_id":5,"link":"photo_8569641.html","width":130,"caption":"Sunflower and bee","height":93});
															thumbnails[8628819] = clik.newPhoto({"id":8628819,"src":"JI_4_Sail_thumb.jpg","galleries_id":148566,"server_id":5,"link":"photo_8628819.html","width":80,"caption":"4 sail","height":130});
															thumbnails[8822581] = clik.newPhoto({"id":8822581,"src":"ga_sun-and-sea_thumb.jpg","galleries_id":280639,"server_id":5,"link":"photo_8822581.html","width":130,"caption":"Sun and sea","height":84});
															thumbnails[3671929] = clik.newPhoto({"id":3671929,"src":"AB_Torness_thumb.jpg","galleries_id":142292,"server_id":5,"link":"photo_3671929.html","width":130,"caption":"Torness","height":89});
															thumbnails[4850718] = clik.newPhoto({"id":4850718,"src":"LW_MarrakeshMarketMan_thumb.jpg","galleries_id":138908,"server_id":5,"link":"photo_4850718.html","width":130,"caption":"Marrakesh market man","height":125});
															thumbnails[4851046] = clik.newPhoto({"id":4851046,"src":"RW_GlenAffricAutumn_thumb.jpg","galleries_id":276880,"server_id":5,"link":"photo_4851046.html","width":130,"caption":"Glen Affric, autumn","height":97});
															thumbnails[4902820] = clik.newPhoto({"id":4902820,"src":"WP_CaddonWater_2_thumb.jpg","galleries_id":190015,"server_id":5,"link":"photo_4902820.html","width":130,"caption":"Caddon Water 2","height":87});
															thumbnails[5196619] = clik.newPhoto({"id":5196619,"src":"RM_OurCherryTree1_thumb.jpg","galleries_id":148391,"server_id":5,"link":"photo_5196619.html","width":87,"caption":"Our cherry tree","height":130});
															thumbnails[5513990] = clik.newPhoto({"id":5513990,"src":"XT_Craft_thumb.jpg","galleries_id":312231,"server_id":5,"link":"photo_5513990.html","width":130,"caption":"XT Craft, Aberlady","height":86});
															thumbnails[8021964] = clik.newPhoto({"id":8021964,"src":"KT_Bass_Rock_Pebbles_thumb.jpg","galleries_id":383420,"server_id":5,"link":"photo_8021964.html","width":130,"caption":"Bass Rock pebbles","height":86});
															thumbnails[8569637] = clik.newPhoto({"id":8569637,"src":"AJ_misty-forests_thumb.jpg","galleries_id":200340,"server_id":5,"link":"photo_8569637.html","width":130,"caption":"Misty forests","height":92});
															thumbnails[8628824] = clik.newPhoto({"id":8628824,"src":"JI_Old_Ship_Inn_thumb.JPG","galleries_id":148566,"server_id":5,"link":"photo_8628824.html","width":98,"caption":"Old ship inn","height":130});
															thumbnails[2261828] = clik.newPhoto({"id":2261828,"src":"Calgary City_thumb.jpg","galleries_id":148391,"server_id":5,"link":"photo_2261828.html","width":91,"caption":"Calgary city","height":130});
															thumbnails[3097240] = clik.newPhoto({"id":3097240,"src":"WP_Old_Kirkhope_thumb.jpg","galleries_id":190015,"server_id":5,"link":"photo_3097240.html","width":130,"caption":"Old Kirkhope","height":87});
															thumbnails[3671930] = clik.newPhoto({"id":3671930,"src":"AB_WindFarm_thumb.jpg","galleries_id":142292,"server_id":5,"link":"photo_3671930.html","width":130,"caption":"Wind farm","height":87});
															thumbnails[4850692] = clik.newPhoto({"id":4850692,"src":"LW_Bundoran_Ireland_thumb.jpg","galleries_id":138908,"server_id":5,"link":"photo_4850692.html","width":130,"caption":"Bundoran, Ireland","height":116});
															thumbnails[4851054] = clik.newPhoto({"id":4851054,"src":"RW_WavingToEdinburgh_thumb.jpg","galleries_id":276880,"server_id":5,"link":"photo_4851054.html","width":130,"caption":"Waving to Edinburgh","height":87});
															thumbnails[5514123] = clik.newPhoto({"id":5514123,"src":"GStir_Road-Bridge_thumb.jpg","galleries_id":312231,"server_id":5,"link":"photo_5514123.html","width":130,"caption":"Road bridge","height":86});
															thumbnails[8021974] = clik.newPhoto({"id":8021974,"src":"KT_shipwreck_skeleton_sunset_thumb.jpg","galleries_id":383420,"server_id":5,"link":"photo_8021974.html","width":130,"caption":"Shipwreck skeleton, sunset","height":85});
															thumbnails[8569634] = clik.newPhoto({"id":8569634,"src":"AJ_leaping-salmon_thumb.jpg","galleries_id":200340,"server_id":5,"link":"photo_8569634.html","width":130,"caption":"Leaping salmon","height":92});
															thumbnails[8628822] = clik.newPhoto({"id":8628822,"src":"JI_Asian_Otters_thumb.jpg","galleries_id":148566,"server_id":5,"link":"photo_8628822.html","width":130,"caption":"Asian otters","height":115});
															thumbnails[8822579] = clik.newPhoto({"id":8822579,"src":"ga_forks_thumb.jpg","galleries_id":280639,"server_id":5,"link":"photo_8822579.html","width":130,"caption":"Forks","height":87});
															thumbnails[3671925] = clik.newPhoto({"id":3671925,"src":"AB_PaddlePower_thumb.jpg","galleries_id":142292,"server_id":5,"link":"photo_3671925.html","width":130,"caption":"Paddle power","height":122});
															thumbnails[4681282] = clik.newPhoto({"id":4681282,"src":"WP_Lindisfarne_1_thumb.jpg","galleries_id":190015,"server_id":5,"link":"photo_4681282.html","width":130,"caption":"Lindisfarne 1","height":87});
															thumbnails[4850707] = clik.newPhoto({"id":4850707,"src":"LW_Flower_thumb.jpg","galleries_id":138908,"server_id":5,"link":"photo_4850707.html","width":130,"caption":"Flower","height":96});
															thumbnails[4851051] = clik.newPhoto({"id":4851051,"src":"RW_StKildaWheatearFemale_thumb.jpg","galleries_id":276880,"server_id":5,"link":"photo_4851051.html","width":130,"caption":"St Kilda wheatear, female","height":87});
															thumbnails[5196616] = clik.newPhoto({"id":5196616,"src":"RM_DetailOnACloudlessDay_thumb.jpg","galleries_id":148391,"server_id":5,"link":"photo_5196616.html","width":114,"caption":"Detail on a cloudless day","height":130});
															thumbnails[5514116] = clik.newPhoto({"id":5514116,"src":"GStir_Ocean-Crest_thumb.jpg","galleries_id":312231,"server_id":5,"link":"photo_5514116.html","width":97,"caption":"Ocean crest","height":130});
															thumbnails[8021976] = clik.newPhoto({"id":8021976,"src":"KT_Tantallon_Castle_thumb.jpg","galleries_id":383420,"server_id":5,"link":"photo_8021976.html","width":130,"caption":"Tantallon castle","height":82});
															thumbnails[8569639] = clik.newPhoto({"id":8569639,"src":"AJ_red-dragonfly_thumb.jpg","galleries_id":200340,"server_id":5,"link":"photo_8569639.html","width":130,"caption":"Red dragonfly","height":83});
															thumbnails[8628826] = clik.newPhoto({"id":8628826,"src":"JI_Snowdrop_thumb.jpg","galleries_id":148566,"server_id":5,"link":"photo_8628826.html","width":130,"caption":"Snowdrop","height":95});
															thumbnails[8822574] = clik.newPhoto({"id":8822574,"src":"ga_coop_thumb.jpg","galleries_id":280639,"server_id":5,"link":"photo_8822574.html","width":130,"caption":"Tracks on the snow","height":87});
															thumbnails[4850721] = clik.newPhoto({"id":4850721,"src":"LW_PittenweemPots_thumb.jpg","galleries_id":138908,"server_id":5,"link":"photo_4850721.html","width":130,"caption":"Pittenweem pots","height":96});
															thumbnails[8822583] = clik.newPhoto({"id":8822583,"src":"ga_Untitled_thumb.jpg","galleries_id":280639,"server_id":5,"link":"photo_8822583.html","width":130,"caption":"Untitled","height":87});
															thumbnails[2261832] = clik.newPhoto({"id":2261832,"src":"Tyn beach tideout 2x_thumb.jpg","galleries_id":148391,"server_id":5,"link":"photo_2261832.html","width":130,"caption":"Tyn beach tideout","height":121});
															thumbnails[3671928] = clik.newPhoto({"id":3671928,"src":"AB_SurfsUp_thumb.jpg","galleries_id":142292,"server_id":5,"link":"photo_3671928.html","width":130,"caption":"Surf's up","height":91});
															thumbnails[4851048] = clik.newPhoto({"id":4851048,"src":"RW_OtterReclining_thumb.jpg","galleries_id":276880,"server_id":5,"link":"photo_4851048.html","width":130,"caption":"Otter reclining","height":86});
															thumbnails[4902821] = clik.newPhoto({"id":4902821,"src":"WP_YoungEntomologists_thumb.jpg","galleries_id":190015,"server_id":5,"link":"photo_4902821.html","width":130,"caption":"Young Entomologists","height":109});
															thumbnails[5196306] = clik.newPhoto({"id":5196306,"src":"JI_IndianLeafButterfly_thumb.jpg","galleries_id":148566,"server_id":5,"link":"photo_5196306.html","width":100,"caption":"Indian leaf butterfly","height":130});
															thumbnails[5514114] = clik.newPhoto({"id":5514114,"src":"GStir_Fossilised-Mermaid_thumb.jpg","galleries_id":312231,"server_id":5,"link":"photo_5514114.html","width":102,"caption":"Fossilised mermaid","height":130});
															thumbnails[8021986] = clik.newPhoto({"id":8021986,"src":"KT_Toad_thumb.jpg","galleries_id":383420,"server_id":5,"link":"photo_8021986.html","width":130,"caption":"Toad","height":93});
															thumbnails[8822580] = clik.newPhoto({"id":8822580,"src":"ga_metro_thumb.jpg","galleries_id":280639,"server_id":5,"link":"photo_8822580.html","width":130,"caption":"Metro","height":97});
															thumbnails[9089904] = clik.newPhoto({"id":9089904,"src":"GA_Bracing_1_thumb.jpg","galleries_id":412228,"server_id":5,"link":"photo_9089904.html","width":128,"caption":"Bracing","height":130});
															thumbnails[3671927] = clik.newPhoto({"id":3671927,"src":"AB_RacerInTheRain_thumb.jpg","galleries_id":142292,"server_id":5,"link":"photo_3671927.html","width":130,"caption":"Racer in the rain","height":91});
															thumbnails[4850714] = clik.newPhoto({"id":4850714,"src":"LW_IslayRoadSign_thumb.jpg","galleries_id":138908,"server_id":5,"link":"photo_4850714.html","width":130,"caption":"Islay road sign","height":89});
															thumbnails[4902823] = clik.newPhoto({"id":4902823,"src":"WP_Dawyck_thumb.jpg","galleries_id":190015,"server_id":5,"link":"photo_4902823.html","width":87,"caption":"Dawyck","height":130});
															thumbnails[5196307] = clik.newPhoto({"id":5196307,"src":"JI_Jaguar_thumb.jpg","galleries_id":148566,"server_id":5,"link":"photo_5196307.html","width":130,"caption":"Jaguar","height":87});
															thumbnails[5196615] = clik.newPhoto({"id":5196615,"src":"RM_ArthursSeatFromGarvald_thumb.jpg","galleries_id":148391,"server_id":5,"link":"photo_5196615.html","width":130,"caption":"Arthur's seat from Garvald","height":98});
															thumbnails[5514127] = clik.newPhoto({"id":5514127,"src":"GStir_Seacliff-Mono_thumb.jpg","galleries_id":312231,"server_id":5,"link":"photo_5514127.html","width":96,"caption":"Seacliff mono","height":130});
															thumbnails[8021967] = clik.newPhoto({"id":8021967,"src":"KT_Butterfly3_thumb.jpg","galleries_id":383420,"server_id":5,"link":"photo_8021967.html","width":130,"caption":"Butterfly 3","height":86});
															thumbnails[8822582] = clik.newPhoto({"id":8822582,"src":"ga_the_sorrow_thumb.jpg","galleries_id":280639,"server_id":5,"link":"photo_8822582.html","width":130,"caption":"The sorrow","height":97});
															thumbnails[9089905] = clik.newPhoto({"id":9089905,"src":"GA_LivingEtc_1_thumb.jpg","galleries_id":412228,"server_id":5,"link":"photo_9089905.html","width":130,"caption":"Living Etc.","height":87});
															thumbnails[4850689] = clik.newPhoto({"id":4850689,"src":"LW_Auschwitz_thumb.jpg","galleries_id":138908,"server_id":5,"link":"photo_4850689.html","width":130,"caption":"Auschwitz","height":89});
															thumbnails[4850695] = clik.newPhoto({"id":4850695,"src":"LW_ButtercupsAndBarns_thumb.jpg","galleries_id":138908,"server_id":5,"link":"photo_4850695.html","width":130,"caption":"Buttercups and barns","height":85});
															thumbnails[2143309] = clik.newPhoto({"id":2143309,"src":"Dawn_Monument_Valley_thumb.jpg","galleries_id":142292,"server_id":5,"link":"photo_2143309.html","width":130,"caption":"Dawn, Monument Valley","height":98});
															thumbnails[4850699] = clik.newPhoto({"id":4850699,"src":"LW_DawnAtDunstanburgh_thumb.jpg","galleries_id":138908,"server_id":5,"link":"photo_4850699.html","width":130,"caption":"Dawn at Dunstanburgh","height":74});
															thumbnails[5196309] = clik.newPhoto({"id":5196309,"src":"JI_WestieLife_thumb.jpg","galleries_id":148566,"server_id":5,"link":"photo_5196309.html","width":130,"caption":"Westie life","height":89});
															thumbnails[5196617] = clik.newPhoto({"id":5196617,"src":"RM_MiddleMainsFarmPencaitland_thumb.jpg","galleries_id":148391,"server_id":5,"link":"photo_5196617.html","width":130,"caption":"Middle Mains farm, Pencaitland","height":92});
															thumbnails[8021971] = clik.newPhoto({"id":8021971,"src":"KT_Red_Flower_2_thumb.jpg","galleries_id":383420,"server_id":5,"link":"photo_8021971.html","width":130,"caption":"Red flower 2","height":88});
															thumbnails[8822573] = clik.newPhoto({"id":8822573,"src":"ga_buzz_thumb.jpg","galleries_id":280639,"server_id":5,"link":"photo_8822573.html","width":119,"caption":"Buzz","height":130});
															thumbnails[9089906] = clik.newPhoto({"id":9089906,"src":"GA_DisagreementAboutFishing_1_thumb.jpg","galleries_id":412228,"server_id":5,"link":"photo_9089906.html","width":130,"caption":"Disagreement about fishing","height":90});
															thumbnails[9089907] = clik.newPhoto({"id":9089907,"src":"AB_Cellars_1_thumb.jpg","galleries_id":412228,"server_id":5,"link":"photo_9089907.html","width":87,"caption":"Cellars","height":130});
															thumbnails[2143312] = clik.newPhoto({"id":2143312,"src":"Grand_Canyon_thumb.jpg","galleries_id":142292,"server_id":5,"link":"photo_2143312.html","width":130,"caption":"Grand Canyon","height":87});
															thumbnails[5196310] = clik.newPhoto({"id":5196310,"src":"JI_WhiteRose_thumb.jpg","galleries_id":148566,"server_id":5,"link":"photo_5196310.html","width":130,"caption":"White rose","height":87});
															thumbnails[5196618] = clik.newPhoto({"id":5196618,"src":"RM_OnByreHill_thumb.jpg","galleries_id":148391,"server_id":5,"link":"photo_5196618.html","width":130,"caption":"On Byre hill","height":78});
															thumbnails[8021972] = clik.newPhoto({"id":8021972,"src":"KT_Rocky_Sunset_thumb.jpg","galleries_id":383420,"server_id":5,"link":"photo_8021972.html","width":105,"caption":"Rocky sunset","height":130});
															thumbnails[8822576] = clik.newPhoto({"id":8822576,"src":"ga_dancing_thumb.jpg","galleries_id":280639,"server_id":5,"link":"photo_8822576.html","width":92,"caption":"Dancing","height":130});
															thumbnails[9089908] = clik.newPhoto({"id":9089908,"src":"AB_LightShiningThrough_1_thumb.jpg","galleries_id":412228,"server_id":5,"link":"photo_9089908.html","width":88,"caption":"Light shining through","height":130});
															thumbnails[9089911] = clik.newPhoto({"id":9089911,"src":"AB_ToweringCastleRuin_1_thumb.jpg","galleries_id":412228,"server_id":5,"link":"photo_9089911.html","width":87,"caption":"Towering castle ruin","height":130});
															thumbnails[2143315] = clik.newPhoto({"id":2143315,"src":"The_Wave_Arizona_thumb.jpg","galleries_id":142292,"server_id":5,"link":"photo_2143315.html","width":130,"caption":"The Wave, Arizona","height":53});
															thumbnails[3702527] = clik.newPhoto({"id":3702527,"src":"JI_RoundRobin_thumb.JPG","galleries_id":148566,"server_id":5,"link":"photo_3702527.html","width":107,"caption":"Round robin","height":130});
															thumbnails[8021968] = clik.newPhoto({"id":8021968,"src":"KT_Club_Tailed_Dragonfly1_thumb.jpg","galleries_id":383420,"server_id":5,"link":"photo_8021968.html","width":93,"caption":"Club-tailed dragonfly 1","height":130});
															thumbnails[8822577] = clik.newPhoto({"id":8822577,"src":"ga_Dunkeld_thumb.jpg","galleries_id":280639,"server_id":5,"link":"photo_8822577.html","width":87,"caption":"Dunkeld","height":130});
															thumbnails[9089913] = clik.newPhoto({"id":9089913,"src":"GS_ZigZag_1_thumb.jpg","galleries_id":412228,"server_id":5,"link":"photo_9089913.html","width":88,"caption":"Zig zag","height":130});
															thumbnails[2259941] = clik.newPhoto({"id":2259941,"src":"JI_PerthLibraryDome_sm_thumb.jpg","galleries_id":148566,"server_id":5,"link":"photo_2259941.html","width":97,"caption":"Perth library dome","height":130});
															thumbnails[4850726] = clik.newPhoto({"id":4850726,"src":"LW_RedCuillan_thumb.jpg","galleries_id":138908,"server_id":5,"link":"photo_4850726.html","width":130,"caption":"Red cuillin","height":69});
															thumbnails[4931113] = clik.newPhoto({"id":4931113,"src":"GPA_BeforeTheTouristsGotUp_thumb.jpg","galleries_id":280639,"server_id":5,"link":"photo_4931113.html","width":130,"caption":"Before the tourists got up","height":35});
															thumbnails[8021980] = clik.newPhoto({"id":8021980,"src":"KT_The_path_to_the_sea_thumb.jpg","galleries_id":383420,"server_id":5,"link":"photo_8021980.html","width":89,"caption":"The path to the sea","height":130});
															thumbnails[8695696] = clik.newPhoto({"id":8695696,"src":"ND_D3S3345_1_thumb.jpg","galleries_id":451155,"server_id":5,"link":"photo_8695696.html","width":130,"caption":"","height":130});
															thumbnails[8763961] = clik.newPhoto({"id":8763961,"src":"hb_guardian_thumb.jpg","galleries_id":461502,"server_id":5,"link":"photo_8763961.html","width":104,"caption":"Guardian","height":130});
															thumbnails[8867833] = clik.newPhoto({"id":8867833,"src":"LC_ADreamOfDanger1_DeepWater_thumb.jpg","galleries_id":412228,"server_id":5,"link":"photo_8867833.html","width":130,"caption":"Theme: A dream of danger - Deep water","height":87});
															thumbnails[9073336] = clik.newPhoto({"id":9073336,"src":"MH_Dales_sheep_thumb.jpg","galleries_id":153373,"server_id":5,"link":"photo_9073336.html","width":130,"caption":"Dales sheep","height":97});
															thumbnails[9082239] = clik.newPhoto({"id":9082239,"src":"FG_Kiteboarding_1stExp2011_LP_thumb.jpg","galleries_id":478998,"server_id":5,"link":"photo_9082239.html","width":116,"caption":"Kiteboarding","height":130});
															thumbnails[9089935] = clik.newPhoto({"id":9089935,"src":"IMG_349_thumb.jpg","galleries_id":133823,"server_id":5,"link":"photo_9089935.html","width":87,"caption":"Riverside","height":130});
															thumbnails[2259932] = clik.newPhoto({"id":2259932,"src":"JI_FrostedIvyLeaves_sm_thumb.jpg","galleries_id":148566,"server_id":5,"link":"photo_2259932.html","width":130,"caption":"Frosted ivy leaves","height":95});
															thumbnails[8021979] = clik.newPhoto({"id":8021979,"src":"KT_The_light_sand_dunes_thumb.jpg","galleries_id":383420,"server_id":5,"link":"photo_8021979.html","width":86,"caption":"The light sand dunes","height":130});
															thumbnails[2259939] = clik.newPhoto({"id":2259939,"src":"JI_MagpieInSpring_sm_thumb.jpg","galleries_id":148566,"server_id":5,"link":"photo_2259939.html","width":130,"caption":"Magpie in spring","height":98});
															thumbnails[8021969] = clik.newPhoto({"id":8021969,"src":"KT_Puddle_Coast_thumb.jpg","galleries_id":383420,"server_id":5,"link":"photo_8021969.html","width":86,"caption":"Puddle coast","height":130});
															thumbnails[7080864] = clik.newPhoto({"id":7080864,"src":"BW_Flower_thumb.jpg","galleries_id":383420,"server_id":5,"link":"photo_7080864.html","width":130,"caption":"Black and white flower","height":86});
															thumbnails[7080865] = clik.newPhoto({"id":7080865,"src":"Hover-FlyEpisyrphus_balteatus_thumb.jpg","galleries_id":383420,"server_id":5,"link":"photo_7080865.html","width":130,"caption":"Hover fly","height":90});
															thumbnails[7080871] = clik.newPhoto({"id":7080871,"src":"Im_a_hidding_beat_it__thumb.jpg","galleries_id":383420,"server_id":5,"link":"photo_7080871.html","width":130,"caption":"I'm a hidding beat it","height":84});
															thumbnails[7080876] = clik.newPhoto({"id":7080876,"src":"Just_going_to_the_Chippy_thumb.jpg","galleries_id":383420,"server_id":5,"link":"photo_7080876.html","width":130,"caption":"Just going to the chippy","height":73});
															thumbnails[7080886] = clik.newPhoto({"id":7080886,"src":"RobinInFullBloom_thumb.jpg","galleries_id":383420,"server_id":5,"link":"photo_7080886.html","width":130,"caption":"Robin in full bloom","height":88});
															thumbnails[7080888] = clik.newPhoto({"id":7080888,"src":"Spider-02710-Edit_thumb.jpg","galleries_id":383420,"server_id":5,"link":"photo_7080888.html","width":130,"caption":"Spider","height":89});
															thumbnails[7080889] = clik.newPhoto({"id":7080889,"src":"TheCalmness_thumb.jpg","galleries_id":383420,"server_id":5,"link":"photo_7080889.html","width":130,"caption":"The calmness","height":75});
															thumbnails[4931117] = clik.newPhoto({"id":4931117,"src":"GPA_BlowingInTheWind_thumb.jpg","galleries_id":280639,"server_id":5,"link":"photo_4931117.html","width":130,"caption":"Blowing in the wind","height":84});
															thumbnails[7080883] = clik.newPhoto({"id":7080883,"src":"LochGarten_blue_thumb.jpg","galleries_id":383420,"server_id":5,"link":"photo_7080883.html","width":130,"caption":"Loch Garten blue","height":61});
															thumbnails[8695717] = clik.newPhoto({"id":8695717,"src":"ND_D3S3366_1_thumb.jpg","galleries_id":451155,"server_id":5,"link":"photo_8695717.html","width":130,"caption":"","height":86});
															thumbnails[8763965] = clik.newPhoto({"id":8763965,"src":"hb_reflections_thumb.jpg","galleries_id":461502,"server_id":5,"link":"photo_8763965.html","width":87,"caption":"Reflections","height":130});
															thumbnails[8867835] = clik.newPhoto({"id":8867835,"src":"LC_ADreamOfDanger2_Outliers_thumb.jpg","galleries_id":412228,"server_id":5,"link":"photo_8867835.html","width":130,"caption":"Theme: A dream of danger - Outliers","height":87});
															thumbnails[9073339] = clik.newPhoto({"id":9073339,"src":"MH_Keeping_an_eye_on_ewe_thumb.jpg","galleries_id":153373,"server_id":5,"link":"photo_9073339.html","width":130,"caption":"Keeping an eye on ewe","height":98});
															thumbnails[9082245] = clik.newPhoto({"id":9082245,"src":"FG_Puffin_in_Grass_1stExp2011_thumb.jpg","galleries_id":478998,"server_id":5,"link":"photo_9082245.html","width":104,"caption":"Puffin in grass","height":130});
															thumbnails[9089937] = clik.newPhoto({"id":9089937,"src":"IMG_2483_thumb.jpg","galleries_id":133823,"server_id":5,"link":"photo_9089937.html","width":87,"caption":"Open minded","height":130});
															thumbnails[7080890] = clik.newPhoto({"id":7080890,"src":"TheCalmWaterOfLeith_thumb.jpg","galleries_id":383420,"server_id":5,"link":"photo_7080890.html","width":130,"caption":"The calm water of Leith","height":53});
															thumbnails[7080850] = clik.newPhoto({"id":7080850,"src":"BugHiding_thumb.jpg","galleries_id":383420,"server_id":5,"link":"photo_7080850.html","width":109,"caption":"Bug hiding","height":130});
															thumbnails[7080891] = clik.newPhoto({"id":7080891,"src":"Thistle_thumb.jpg","galleries_id":383420,"server_id":5,"link":"photo_7080891.html","width":102,"caption":"Thistle","height":130});
															thumbnails[7080880] = clik.newPhoto({"id":7080880,"src":"KircheEdit_thumb.jpg","galleries_id":383420,"server_id":5,"link":"photo_7080880.html","width":86,"caption":"Kirche","height":130});
															thumbnails[7080884] = clik.newPhoto({"id":7080884,"src":"Logs_at_GlenEtive-Edit_thumb.jpg","galleries_id":383420,"server_id":5,"link":"photo_7080884.html","width":86,"caption":"Logs at Glen Etive","height":130});
															thumbnails[4931121] = clik.newPhoto({"id":4931121,"src":"GPA_Humming_thumb.jpg","galleries_id":280639,"server_id":5,"link":"photo_4931121.html","width":130,"caption":"Humming bird","height":87});
															thumbnails[8537644] = clik.newPhoto({"id":8537644,"src":"ND_zebra_thumb.jpg","galleries_id":451155,"server_id":5,"link":"photo_8537644.html","width":130,"caption":"zebra","height":95});
															thumbnails[8763974] = clik.newPhoto({"id":8763974,"src":"hb_time_in_a_bottle_thumb.jpg","galleries_id":461502,"server_id":5,"link":"photo_8763974.html","width":130,"caption":"Time in a bottle","height":87});
															thumbnails[8867838] = clik.newPhoto({"id":8867838,"src":"LC_ADreamOfDanger3_WalkAway_thumb.jpg","galleries_id":412228,"server_id":5,"link":"photo_8867838.html","width":130,"caption":"Theme: A dream of danger - Walk away","height":87});
															thumbnails[9073341] = clik.newPhoto({"id":9073341,"src":"MH_Pre_dawn_colours_thumb.jpg","galleries_id":153373,"server_id":5,"link":"photo_9073341.html","width":130,"caption":"Pre-dawn colours","height":60});
															thumbnails[9082271] = clik.newPhoto({"id":9082271,"src":"FG_Small_Tortoiseshell_1stExp2011_thumb.jpg","galleries_id":478998,"server_id":5,"link":"photo_9082271.html","width":98,"caption":"Small tortoiseshell","height":130});
															thumbnails[9089940] = clik.newPhoto({"id":9089940,"src":"IMG_5552-Edit_1_thumb.jpg","galleries_id":133823,"server_id":5,"link":"photo_9089940.html","width":87,"caption":"Voodoo country","height":130});
															thumbnails[7436360] = clik.newPhoto({"id":7436360,"src":"IMG_0255_thumb.jpg","galleries_id":133823,"server_id":5,"link":"photo_7436360.html","width":130,"caption":"Clinging on","height":130});
															thumbnails[8740319] = clik.newPhoto({"id":8740319,"src":"LC_HelloFolks_thumb.jpg","galleries_id":412228,"server_id":5,"link":"photo_8740319.html","width":87,"caption":"Hello folks!","height":130});
															thumbnails[4931130] = clik.newPhoto({"id":4931130,"src":"GPA_Schipol_thumb.jpg","galleries_id":280639,"server_id":5,"link":"photo_4931130.html","width":130,"caption":"Schipol","height":87});
															thumbnails[7436364] = clik.newPhoto({"id":7436364,"src":"IMG_0272_thumb.jpg","galleries_id":133823,"server_id":5,"link":"photo_7436364.html","width":130,"caption":"Bridge","height":130});
															thumbnails[8537643] = clik.newPhoto({"id":8537643,"src":"ND_paris_thumb.jpg","galleries_id":451155,"server_id":5,"link":"photo_8537643.html","width":130,"caption":"paris","height":127});
															thumbnails[8763971] = clik.newPhoto({"id":8763971,"src":"hb_song_of_enchantment_thumb.jpg","galleries_id":461502,"server_id":5,"link":"photo_8763971.html","width":130,"caption":"Song of enchantment","height":87});
															thumbnails[8867841] = clik.newPhoto({"id":8867841,"src":"ND_Theme1_say_cheese_thumb.jpg","galleries_id":412228,"server_id":5,"link":"photo_8867841.html","width":130,"caption":"Theme: Laughter the best medicine - Say cheese","height":91});
															thumbnails[9073343] = clik.newPhoto({"id":9073343,"src":"MH_Dawn_over_the_roof_tops_thumb.jpg","galleries_id":153373,"server_id":5,"link":"photo_9073343.html","width":130,"caption":"Dawn over the roof tops","height":66});
															thumbnails[9082259] = clik.newPhoto({"id":9082259,"src":"FG_Robin_on_Snow_theme2011_thumb.jpg","galleries_id":478998,"server_id":5,"link":"photo_9082259.html","width":130,"caption":"Robin on snow","height":93});
															thumbnails[2355984] = clik.newPhoto({"id":2355984,"src":"MH_In_the_cold_light_of_dawn_small_thumb.jpg","galleries_id":153373,"server_id":5,"link":"photo_2355984.html","width":130,"caption":"In the cold light of dawn","height":49});
															thumbnails[4931124] = clik.newPhoto({"id":4931124,"src":"GPA_PaintingWithLight_1_thumb.jpg","galleries_id":280639,"server_id":5,"link":"photo_4931124.html","width":130,"caption":"Painting with light","height":87});
															thumbnails[7436366] = clik.newPhoto({"id":7436366,"src":"IMG_4848_thumb.jpg","galleries_id":133823,"server_id":5,"link":"photo_7436366.html","width":98,"caption":"Figure 1","height":130});
															thumbnails[8537642] = clik.newPhoto({"id":8537642,"src":"ND_montrachet_thumb.jpg","galleries_id":451155,"server_id":5,"link":"photo_8537642.html","width":130,"caption":"montrachet","height":86});
															thumbnails[8867844] = clik.newPhoto({"id":8867844,"src":"ND_Theme2_does_my_bum_look_big_in_this_thumb.jpg","galleries_id":412228,"server_id":5,"link":"photo_8867844.html","width":102,"caption":"Theme: Laughter the best medicine - Does my bum look big in this?","height":130});
															thumbnails[9082230] = clik.newPhoto({"id":9082230,"src":"FG_Brambling_theme2011_thumb.jpg","galleries_id":478998,"server_id":5,"link":"photo_9082230.html","width":130,"caption":"Brambling","height":95});
															thumbnails[4931128] = clik.newPhoto({"id":4931128,"src":"GPA_Poppy1_thumb.jpg","galleries_id":280639,"server_id":5,"link":"photo_4931128.html","width":130,"caption":"Poppy","height":87});
															thumbnails[5095159] = clik.newPhoto({"id":5095159,"src":"IMG_8715-46_thumb.jpg","galleries_id":133823,"server_id":5,"link":"photo_5095159.html","width":98,"caption":"Yellow flag","height":130});
															thumbnails[8537641] = clik.newPhoto({"id":8537641,"src":"ND_majestic_thumb.jpg","galleries_id":451155,"server_id":5,"link":"photo_8537641.html","width":130,"caption":"majestic","height":88});
															thumbnails[8867846] = clik.newPhoto({"id":8867846,"src":"ND_Theme3_shes_ironing_his_smalls_thumb.jpg","galleries_id":412228,"server_id":5,"link":"photo_8867846.html","width":86,"caption":"Theme: Laughter the best medicine - She's ironing his smalls","height":130});
															thumbnails[9082278] = clik.newPhoto({"id":9082278,"src":"FG_Starling_in_snow_theme2011_thumb.jpg","galleries_id":478998,"server_id":5,"link":"photo_9082278.html","width":94,"caption":"Starling in snow","height":130});
															thumbnails[8740324] = clik.newPhoto({"id":8740324,"src":"ND_Fate_thumb.jpg","galleries_id":412228,"server_id":5,"link":"photo_8740324.html","width":130,"caption":"Fate","height":88});
															thumbnails[4931122] = clik.newPhoto({"id":4931122,"src":"GPA_NoWorries_thumb.jpg","galleries_id":280639,"server_id":5,"link":"photo_4931122.html","width":130,"caption":"No worries","height":127});
															thumbnails[7436370] = clik.newPhoto({"id":7436370,"src":"IMG_4855_thumb.jpg","galleries_id":133823,"server_id":5,"link":"photo_7436370.html","width":130,"caption":"Ramsay Gardens, Edinburgh","height":98});
															thumbnails[8537640] = clik.newPhoto({"id":8537640,"src":"ND_lochard_thumb.jpg","galleries_id":451155,"server_id":5,"link":"photo_8537640.html","width":130,"caption":"lochard","height":84});
															thumbnails[8764150] = clik.newPhoto({"id":8764150,"src":"hb_silver_light_thumb.jpg","galleries_id":412228,"server_id":5,"link":"photo_8764150.html","width":130,"caption":"Silver light","height":130});
															thumbnails[9082265] = clik.newPhoto({"id":9082265,"src":"FG_Scruffy_Starling_mono2011_thumb.jpg","galleries_id":478998,"server_id":5,"link":"photo_9082265.html","width":90,"caption":"Scruffy starling","height":130});
															thumbnails[4931119] = clik.newPhoto({"id":4931119,"src":"GPA_Dogwood_thumb.jpg","galleries_id":280639,"server_id":5,"link":"photo_4931119.html","width":86,"caption":"Dogwood","height":130});
															thumbnails[5095037] = clik.newPhoto({"id":5095037,"src":"IMG_5043-136_thumb.jpg","galleries_id":133823,"server_id":5,"link":"photo_5095037.html","width":130,"caption":"Pond","height":98});
															thumbnails[8537639] = clik.newPhoto({"id":8537639,"src":"ND_glencoe_thumb.jpg","galleries_id":451155,"server_id":5,"link":"photo_8537639.html","width":130,"caption":"glencoe","height":86});
															thumbnails[8763972] = clik.newPhoto({"id":8763972,"src":"hb_thunder_and_lightning_thumb.jpg","galleries_id":412228,"server_id":5,"link":"photo_8763972.html","width":130,"caption":"Thunder and lightning","height":73});
															thumbnails[9082253] = clik.newPhoto({"id":9082253,"src":"FG_Red_Squirrel_mono2011_thumb.jpg","galleries_id":478998,"server_id":5,"link":"photo_9082253.html","width":90,"caption":"Red squirrel","height":130});
															thumbnails[5094986] = clik.newPhoto({"id":5094986,"src":"IMG_5133-86_thumb.jpg","galleries_id":133823,"server_id":5,"link":"photo_5094986.html","width":130,"caption":"Het Begijnhof, Brugge","height":98});
															thumbnails[8537637] = clik.newPhoto({"id":8537637,"src":"ND_germini_thumb.jpg","galleries_id":451155,"server_id":5,"link":"photo_8537637.html","width":130,"caption":"germini","height":130});
															thumbnails[8740308] = clik.newPhoto({"id":8740308,"src":"GS_InHarmsWay_thumb.jpg","galleries_id":412228,"server_id":5,"link":"photo_8740308.html","width":130,"caption":"In harm's way","height":86});
															thumbnails[9082222] = clik.newPhoto({"id":9082222,"src":"FG_Bee_on_Flower_mono2011_thumb.jpg","galleries_id":478998,"server_id":5,"link":"photo_9082222.html","width":89,"caption":"Bee on flower","height":130});
															thumbnails[8537636] = clik.newPhoto({"id":8537636,"src":"ND_fourleaf_thumb.jpg","galleries_id":451155,"server_id":5,"link":"photo_8537636.html","width":130,"caption":"fourleaf","height":130});
															thumbnails[8537633] = clik.newPhoto({"id":8537633,"src":"ND_cuillins_thumb.jpg","galleries_id":451155,"server_id":5,"link":"photo_8537633.html","width":130,"caption":"cuillins","height":67});
															thumbnails[8537632] = clik.newPhoto({"id":8537632,"src":"ND_claire_thumb.jpg","galleries_id":451155,"server_id":5,"link":"photo_8537632.html","width":130,"caption":"claire","height":86});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[412228] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"*WINNERS GALLERY*","link":"gallery_412228.html","maxRecords":0.0,"photoIDs":[9089904.0,9089905.0,9089906.0,9089907.0,9089908.0,9089911.0,9089913.0,8867833.0,8867835.0,8867838.0,8740319.0,8867841.0,8867844.0,8867846.0,8740324.0,8764150.0,8763972.0,8740308.0],"skipIndex":0,"section_code":"gallery","featured_images":"9089913,9089911,9089908,9089907,9089906,9089905,9089904,8867846,8867844,8867841","id":412228,"singleSection":false});				  						galleries[280639] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gordon Andrews","link":"gallery_280639.html","maxRecords":0.0,"photoIDs":[8822581.0,8822579.0,8822574.0,8822583.0,8822580.0,8822582.0,8822573.0,8822576.0,8822577.0,4931113.0,4931117.0,4931121.0,4931130.0,4931124.0,4931128.0,4931122.0,4931119.0],"skipIndex":0,"section_code":"gallery","featured_images":"8822583,8822582,8822581,8822580,8822579,8822577,8822576,8822574,8822573,4931130","id":280639,"singleSection":false});				  						galleries[142292] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Andy Bennetts","link":"gallery_142292.html","maxRecords":0.0,"photoIDs":[5146099.0,5146103.0,3671924.0,3671929.0,3671930.0,3671925.0,3671928.0,3671927.0,2143309.0,2143312.0,2143315.0],"skipIndex":0,"section_code":"gallery","featured_images":"5146103,5146099,3671930,3671929,3671928,3671927,3671925,3671924,2143315,2143312","id":142292,"singleSection":false});				  						galleries[461502] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Helena Berney","link":"gallery_461502.html","maxRecords":0.0,"photoIDs":[8763961.0,8763965.0,8763974.0,8763971.0],"skipIndex":0,"section_code":"gallery","featured_images":"8763974,8763971,8763965,8763961","id":461502,"singleSection":false});				  						galleries[133823] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Lesley Clarke","link":"gallery_133823.html","maxRecords":0.0,"photoIDs":[9089935.0,9089937.0,9089940.0,7436360.0,7436364.0,7436366.0,5095159.0,7436370.0,5095037.0,5094986.0],"skipIndex":0,"section_code":"gallery","featured_images":"9089940,9089937,9089935,7436370,7436366,7436364,7436360,5095159,5095037,5094986","id":133823,"singleSection":false});				  						galleries[451155] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Norm Dunk","link":"gallery_451155.html","maxRecords":0.0,"photoIDs":[8695696.0,8695717.0,8537644.0,8537643.0,8537642.0,8537641.0,8537640.0,8537639.0,8537637.0,8537636.0,8537633.0,8537632.0],"skipIndex":0,"section_code":"gallery","featured_images":"8695717,8695696,8537644,8537643,8537642,8537641,8537640,8537639,8537637,8537636","id":451155,"singleSection":false});				  						galleries[145822] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"David Elder","link":"gallery_145822.html","maxRecords":0.0,"photoIDs":[8559502.0,8559505.0,8559508.0],"skipIndex":0,"section_code":"gallery","featured_images":"8559508,8559505,8559502","id":145822,"singleSection":false});				  						galleries[478998] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Fiona Govan","link":"gallery_478998.html","maxRecords":0.0,"photoIDs":[9082239.0,9082245.0,9082271.0,9082259.0,9082230.0,9082278.0,9082265.0,9082253.0,9082222.0],"skipIndex":0,"section_code":"gallery","featured_images":"9082278,9082271,9082265,9082259,9082253,9082245,9082239,9082230,9082222","id":478998,"singleSection":false});				  						galleries[153373] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Mike Hollingsworth","link":"gallery_153373.html","maxRecords":0.0,"photoIDs":[9073336.0,9073339.0,9073341.0,9073343.0,2355984.0],"skipIndex":0,"section_code":"gallery","featured_images":"9073343,9073341,9073339,9073336,2355984","id":153373,"singleSection":false});				  						galleries[148566] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Jean Inglis","link":"gallery_148566.html","maxRecords":0.0,"photoIDs":[8628819.0,8628824.0,8628822.0,8628826.0,5196306.0,5196307.0,5196309.0,5196310.0,3702527.0,2259941.0,2259932.0,2259939.0],"skipIndex":0,"section_code":"gallery","featured_images":"8628826,8628824,8628822,8628819,5196310,5196309,5196307,5196306,3702527,2259941","id":148566,"singleSection":false});				  						galleries[200340] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Ann Jeffray","link":"gallery_200340.html","maxRecords":0.0,"photoIDs":[8569641.0,8569637.0,8569634.0,8569639.0],"skipIndex":0,"section_code":"gallery","featured_images":"8569641,8569639,8569637,8569634","id":200340,"singleSection":false});				  						galleries[148391] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Roy Myers","link":"gallery_148391.html","maxRecords":0.0,"photoIDs":[2257457.0,5196619.0,2261828.0,5196616.0,2261832.0,5196615.0,5196617.0,5196618.0],"skipIndex":0,"section_code":"gallery","featured_images":"5196619,5196618,5196617,5196616,5196615,2261832,2261828,2257457","id":148391,"singleSection":false});				  						galleries[190015] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Bill Patterson","link":"gallery_190015.html","maxRecords":0.0,"photoIDs":[7959782.0,7959784.0,7959786.0,4902818.0,4902820.0,3097240.0,4681282.0,4902821.0,4902823.0],"skipIndex":0,"section_code":"gallery","featured_images":"7959786,7959784,7959782,4902823,4902821,4902820,4902818,4681282,3097240","id":190015,"singleSection":false});				  						galleries[138802] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Bill Peach","link":"gallery_138802.html","maxRecords":0.0,"photoIDs":[2080190.0,2080192.0,2080194.0],"skipIndex":0,"section_code":"gallery","featured_images":2080192.0,"id":138802,"singleSection":false});				  						galleries[153235] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Bill Rarity","link":"gallery_153235.html","maxRecords":0.0,"photoIDs":[2352849.0,2352851.0,2352852.0],"skipIndex":0,"section_code":"gallery","featured_images":"2352852,2352851,2352849","id":153235,"singleSection":false});				  						galleries[398780] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Mike Shakspeare","link":"gallery_398780.html","maxRecords":0.0,"photoIDs":[7367786.0,7367788.0,7367789.0,7367790.0,7367794.0,7379696.0],"skipIndex":0,"section_code":"gallery","featured_images":"7379696,7367794,7367790,7367789,7367788,7367786","id":398780,"singleSection":false});				  						galleries[312231] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Graham Stirling","link":"gallery_312231.html","maxRecords":0.0,"photoIDs":[5514119.0,5513990.0,5514123.0,5514116.0,5514114.0,5514127.0],"skipIndex":0,"section_code":"gallery","featured_images":"5514127,5514123,5514119,5514116,5514114,5513990","id":312231,"singleSection":false});				  						galleries[153236] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Nigel Szwed","link":"gallery_153236.html","maxRecords":0.0,"photoIDs":[2352853.0,2352854.0,2352855.0],"skipIndex":0,"section_code":"gallery","featured_images":"2352855,2352854,2352853","id":153236,"singleSection":false});				  						galleries[141453] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Michael Thomson","link":"gallery_141453.html","maxRecords":0.0,"photoIDs":[7771207.0,7771209.0,7771212.0,8735670.0,8735675.0],"skipIndex":0,"section_code":"gallery","featured_images":"8735675,8735670,7771212,7771209,7771207","id":141453,"singleSection":false});				  						galleries[383420] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Keith Thorburn","link":"gallery_383420.html","maxRecords":0.0,"photoIDs":[8021982.0,8021964.0,8021974.0,8021976.0,8021986.0,8021967.0,8021971.0,8021972.0,8021968.0,8021980.0,8021979.0,8021969.0,7080864.0,7080865.0,7080871.0,7080876.0,7080886.0,7080888.0,7080889.0,7080883.0,7080890.0,7080850.0,7080891.0,7080880.0,7080884.0],"skipIndex":0,"section_code":"gallery","featured_images":"8021986,8021982,8021980,8021979,8021976,8021974,8021972,8021971,8021969,8021968","id":383420,"singleSection":false});				  						galleries[276880] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Richard Wells","link":"gallery_276880.html","maxRecords":0.0,"photoIDs":[6806465.0,4851050.0,4851046.0,4851054.0,4851051.0,4851048.0],"skipIndex":0,"section_code":"gallery","featured_images":"6806465,4851054,4851051,4851050,4851048,4851046","id":276880,"singleSection":false});				  						galleries[138908] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Liz Wheelans","link":"gallery_138908.html","maxRecords":0.0,"photoIDs":[4850701.0,4850718.0,4850692.0,4850707.0,4850721.0,4850714.0,4850689.0,4850695.0,4850699.0,4850726.0],"skipIndex":0,"section_code":"gallery","featured_images":"4850726,4850721,4850718,4850714,4850707,4850701,4850699,4850695,4850692,4850689","id":138908,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8735675,8735673,8735670,8559508,8559505,8559502,8120503,7959786,7959784,7959782,7771212,7771209,7771207,7379696,7367794,7367790,7367789,7367788,7367786,7022504,6806465,2352855,2352854,2352853,2352852,2352851,2352849,2080194,2080192,2080190,5146099,5146103,8628819,8569641,8021982,5514119,4902818,4851050,4850701,3671924,2257457,8628824,8569637,8021964,5513990,5196619,4902820,4851046,4850718,3671929,8628822,8569634,8021974,5514123,4851054,4850692,3671930,3097240,2261828,8628826,8569639,8021976,5514116,5196616,4851051,4850707,3671925,4850721,8021986,5514114,5196306,4902821,4851048,3671928,2261832,8021967,5514127,5196615,5196307,4902823,4850714,3671927,4850689,4850695,8021971,5196617,5196309,4850699,2143309,8021972,5196618,5196310,2143312,8021968,3702527,2143315,9089935,8867833,8763961,8695696,8021980,4931113,4850726,2259941,8021979,2259932,8021969,2259939,7080865,7080871,7080876,7080886,7080888,7080889,9089937,8867835,8763965,8695717,7080883,4931117,7080890,7080850,7080891,7080880,7080884,9089940,8867838,8763974,8537644,4931121,8740319,7436360,8867841,8763971,8537643,7436364,4931130,8867844,8537642,7436366,4931124,2355984,8867846,8537641,5095159,4931128,8740324,8764150,8537640,7436370,4931122,8763972,8537639,5095037,4931119,8740308,8537637,5094986,8537636,8537633,8537632';
imageSets[2] = '2080192';
imageSets[3] = '8695696,8695717,8537644,8537643,8537642,8537641,8537640,8537639,8537637,8537636,8537633,8537632';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/haddingtoncameraclub/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/haddingtoncameraclub/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/haddingtoncameraclub/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/haddingtoncameraclub/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/haddingtoncameraclub/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/haddingtoncameraclub/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/haddingtoncameraclub/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/haddingtoncameraclub/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/haddingtoncameraclub/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/haddingtoncameraclub/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/haddingtoncameraclub/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/haddingtoncameraclub/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/haddingtoncameraclub/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/haddingtoncameraclub/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/haddingtoncameraclub/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/haddingtoncameraclub/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/haddingtoncameraclub/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/haddingtoncameraclub/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/haddingtoncameraclub/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/haddingtoncameraclub/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/haddingtoncameraclub/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/haddingtoncameraclub/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/haddingtoncameraclub/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/haddingtoncameraclub/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/haddingtoncameraclub/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/haddingtoncameraclub/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/haddingtoncameraclub/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 = 'Haddington Camera Club: ' + 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;
	}
}

			

