window.thumbnails = {};
															thumbnails[3397016] = clik.newPhoto({"id":3397016,"src":"Untitled_Panorama1_thumb.jpg","galleries_id":190556,"server_id":32,"link":"photo_3397016.html","width":130,"caption":"Metropolis","height":49});
															thumbnails[3397026] = clik.newPhoto({"id":3397026,"src":"_MG_7275_thumb.jpg","galleries_id":190556,"server_id":32,"link":"photo_3397026.html","width":130,"caption":"Juxtaposition","height":130});
															thumbnails[3397029] = clik.newPhoto({"id":3397029,"src":"_MG_7254_thumb.jpg","galleries_id":190556,"server_id":32,"link":"photo_3397029.html","width":86,"caption":"Ancient & Modern","height":130});
															thumbnails[3128619] = clik.newPhoto({"id":3128619,"src":"20070920_037_thumb.jpg","galleries_id":191823,"server_id":32,"link":"photo_3128619.html","width":130,"caption":"Shopping","height":195});
															thumbnails[3128626] = clik.newPhoto({"id":3128626,"src":"20070920_132_thumb.jpg","galleries_id":173531,"server_id":32,"link":"photo_3128626.html","width":130,"caption":"Pulses","height":87});
															thumbnails[3277992] = clik.newPhoto({"id":3277992,"src":"_MG_6439-Edit_thumb.jpg","galleries_id":349365,"server_id":32,"link":"photo_3277992.html","width":130,"caption":"Preparing for the big event","height":87});
															thumbnails[3277998] = clik.newPhoto({"id":3277998,"src":"_MG_6958_thumb.jpg","galleries_id":191823,"server_id":32,"link":"photo_3277998.html","width":130,"caption":"Capturing Fire and Ice","height":87});
															thumbnails[3278005] = clik.newPhoto({"id":3278005,"src":"Untitled_Panorama3-Edit_thumb.jpg","galleries_id":190556,"server_id":32,"link":"photo_3278005.html","width":130,"caption":"Clydeside","height":48});
															thumbnails[3669195] = clik.newPhoto({"id":3669195,"src":"_MG_7670_thumb.jpg","galleries_id":173530,"server_id":32,"link":"photo_3669195.html","width":130,"caption":"The Doon","height":130});
															thumbnails[3835564] = clik.newPhoto({"id":3835564,"src":"_MG_8058_59_60_thumb.jpg","galleries_id":173531,"server_id":32,"link":"photo_3835564.html","width":130,"caption":"Victorian Recycling","height":107});
															thumbnails[3835583] = clik.newPhoto({"id":3835583,"src":"_MG_8092_3_4_thumb.jpg","galleries_id":173531,"server_id":32,"link":"photo_3835583.html","width":130,"caption":"Lindisfarne Castle","height":87});
															thumbnails[4555965] = clik.newPhoto({"id":4555965,"src":"_MG_9576_7_8_thumb.jpg","galleries_id":190556,"server_id":32,"link":"photo_4555965.html","width":86,"caption":"St Rule's Tower","height":130});
															thumbnails[4556020] = clik.newPhoto({"id":4556020,"src":"_MG_9742_thumb.jpg","galleries_id":190556,"server_id":32,"link":"photo_4556020.html","width":87,"caption":"Lighthouse, Anstruther","height":130});
															thumbnails[4556021] = clik.newPhoto({"id":4556021,"src":"_MG_9745_6_7_thumb.jpg","galleries_id":190556,"server_id":32,"link":"photo_4556021.html","width":95,"caption":"Crail","height":130});
															thumbnails[4556055] = clik.newPhoto({"id":4556055,"src":"_MG_9505_thumb.jpg","galleries_id":190551,"server_id":32,"link":"photo_4556055.html","width":130,"caption":"VeeDub","height":87});
															thumbnails[4899691] = clik.newPhoto({"id":4899691,"src":"Hawkshead_pano_thumb.jpg","galleries_id":173531,"server_id":32,"link":"photo_4899691.html","width":130,"caption":"Hawkshead ","height":44});
															thumbnails[4990580] = clik.newPhoto({"id":4990580,"src":"_MG_0831_thumb.jpg","galleries_id":190556,"server_id":32,"link":"photo_4990580.html","width":130,"caption":"Star trails","height":87});
															thumbnails[4990587] = clik.newPhoto({"id":4990587,"src":"_MG_0291_thumb.jpg","galleries_id":349365,"server_id":32,"link":"photo_4990587.html","width":87,"caption":"Expectation II","height":130});
															thumbnails[5049863] = clik.newPhoto({"id":5049863,"src":"IMG_3549_7_8_thumb.jpg","galleries_id":173530,"server_id":32,"link":"photo_5049863.html","width":87,"caption":"Marvin's Boat","height":130});
															thumbnails[5071765] = clik.newPhoto({"id":5071765,"src":"Lochranza_pano2-22_thumb.jpg","galleries_id":173530,"server_id":32,"link":"photo_5071765.html","width":130,"caption":"Sunset, Lochranza","height":33});
															thumbnails[5107520] = clik.newPhoto({"id":5107520,"src":"_MG_0801_799_800_thumb.jpg","galleries_id":173530,"server_id":32,"link":"photo_5107520.html","width":87,"caption":"Fallen Gold","height":130});
															thumbnails[5108867] = clik.newPhoto({"id":5108867,"src":"_MG_6498-Edit_thumb.jpg","galleries_id":349365,"server_id":32,"link":"photo_5108867.html","width":130,"caption":"Celebration","height":130});
															thumbnails[5108869] = clik.newPhoto({"id":5108869,"src":"_MG_6512-Edit_thumb.jpg","galleries_id":349365,"server_id":32,"link":"photo_5108869.html","width":87,"caption":"","height":130});
															thumbnails[5108876] = clik.newPhoto({"id":5108876,"src":"_MG_1219_20_21_thumb.jpg","galleries_id":173531,"server_id":32,"link":"photo_5108876.html","width":130,"caption":"Pier into the distance","height":130});
															thumbnails[5108897] = clik.newPhoto({"id":5108897,"src":"_MG_1273_1_2_thumb.jpg","galleries_id":190725,"server_id":32,"link":"photo_5108897.html","width":130,"caption":"Buttermere Church","height":87});
															thumbnails[5703198] = clik.newPhoto({"id":5703198,"src":"_MG_1900_1_2_thumb.jpg","galleries_id":173530,"server_id":32,"link":"photo_5703198.html","width":130,"caption":"Winter Twilight","height":87});
															thumbnails[5703203] = clik.newPhoto({"id":5703203,"src":"_MG_1373_4_5_thumb.jpg","galleries_id":190725,"server_id":32,"link":"photo_5703203.html","width":130,"caption":"Nardini's","height":62});
															thumbnails[5933668] = clik.newPhoto({"id":5933668,"src":"_MG_3404_tonemapped_thumb.jpg","galleries_id":190725,"server_id":32,"link":"photo_5933668.html","width":130,"caption":"Menaggio","height":65});
															thumbnails[5933675] = clik.newPhoto({"id":5933675,"src":"_MG_3444_5_6-Edit_thumb.jpg","galleries_id":173531,"server_id":32,"link":"photo_5933675.html","width":125,"caption":"Duomo Nuovo","height":130});
															thumbnails[5933679] = clik.newPhoto({"id":5933679,"src":"_MG_3456_thumb.jpg","galleries_id":191823,"server_id":32,"link":"photo_5933679.html","width":130,"caption":"Lovers","height":87});
															thumbnails[5933683] = clik.newPhoto({"id":5933683,"src":"_MG_3478_thumb.jpg","galleries_id":190551,"server_id":32,"link":"photo_5933683.html","width":87,"caption":"Street Rod","height":130});
															thumbnails[5933693] = clik.newPhoto({"id":5933693,"src":"_MG_3653_tonemapped_thumb.jpg","galleries_id":173531,"server_id":32,"link":"photo_5933693.html","width":88,"caption":"Basilica San Marco","height":130});
															thumbnails[5933697] = clik.newPhoto({"id":5933697,"src":"_MG_3555-Edit_thumb.jpg","galleries_id":191823,"server_id":32,"link":"photo_5933697.html","width":90,"caption":"Sleeping Gondolier","height":130});
															thumbnails[5933701] = clik.newPhoto({"id":5933701,"src":"_MG_3674_5_6_thumb.jpg","galleries_id":173531,"server_id":32,"link":"photo_5933701.html","width":87,"caption":"Basilica Salute","height":130});
															thumbnails[5933706] = clik.newPhoto({"id":5933706,"src":"_MG_3592_thumb.jpg","galleries_id":173531,"server_id":32,"link":"photo_5933706.html","width":130,"caption":"Piazza San Marco pigeons","height":87});
															thumbnails[6372458] = clik.newPhoto({"id":6372458,"src":"_MG_5063-Edit_thumb.jpg","galleries_id":349365,"server_id":32,"link":"photo_6372458.html","width":130,"caption":"After the Dance","height":87});
															thumbnails[6372465] = clik.newPhoto({"id":6372465,"src":"_MG_4806-Edit_thumb.jpg","galleries_id":349365,"server_id":32,"link":"photo_6372465.html","width":130,"caption":"The Guys","height":109});
															thumbnails[6372469] = clik.newPhoto({"id":6372469,"src":"_MG_2815-Edit_thumb.jpg","galleries_id":349365,"server_id":32,"link":"photo_6372469.html","width":130,"caption":"","height":87});
															thumbnails[6372495] = clik.newPhoto({"id":6372495,"src":"_MG_0419_thumb.jpg","galleries_id":349365,"server_id":32,"link":"photo_6372495.html","width":87,"caption":"","height":130});
															thumbnails[6520519] = clik.newPhoto({"id":6520519,"src":"_MG_6828_thumb.jpg","galleries_id":190551,"server_id":32,"link":"photo_6520519.html","width":130,"caption":"Big Air","height":87});
															thumbnails[6520527] = clik.newPhoto({"id":6520527,"src":"_MG_6820_thumb.jpg","galleries_id":190551,"server_id":32,"link":"photo_6520527.html","width":130,"caption":"","height":87});
															thumbnails[6520535] = clik.newPhoto({"id":6520535,"src":"_MG_6800_thumb.jpg","galleries_id":190551,"server_id":32,"link":"photo_6520535.html","width":130,"caption":"","height":96});
															thumbnails[7146024] = clik.newPhoto({"id":7146024,"src":"Landrover_thumb.jpg","galleries_id":190551,"server_id":32,"link":"photo_7146024.html","width":130,"caption":"Landrover","height":130});
															thumbnails[7146049] = clik.newPhoto({"id":7146049,"src":"_MG_0819_thumb.jpg","galleries_id":349365,"server_id":32,"link":"photo_7146049.html","width":130,"caption":"A case of cuteness","height":130});
															thumbnails[7156895] = clik.newPhoto({"id":7156895,"src":"_MG_8019-Edit_thumb.jpg","galleries_id":386863,"server_id":32,"link":"photo_7156895.html","width":100,"caption":"","height":130});
															thumbnails[7156958] = clik.newPhoto({"id":7156958,"src":"_MG_1638_tonemapped_thumb.jpg","galleries_id":349365,"server_id":32,"link":"photo_7156958.html","width":130,"caption":"","height":95});
															thumbnails[7156979] = clik.newPhoto({"id":7156979,"src":"EVO_thumb.jpg","galleries_id":190551,"server_id":32,"link":"photo_7156979.html","width":130,"caption":"EVO","height":87});
															thumbnails[7352972] = clik.newPhoto({"id":7352972,"src":"_MG_1992-Edit_thumb.jpg","galleries_id":386863,"server_id":32,"link":"photo_7352972.html","width":87,"caption":"","height":130});
															thumbnails[7352974] = clik.newPhoto({"id":7352974,"src":"_MG_2085-Edit_thumb.jpg","galleries_id":386863,"server_id":32,"link":"photo_7352974.html","width":72,"caption":"","height":130});
															thumbnails[7352977] = clik.newPhoto({"id":7352977,"src":"_MG_2008-Edit_thumb.jpg","galleries_id":386863,"server_id":32,"link":"photo_7352977.html","width":81,"caption":"","height":130});
															thumbnails[7682040] = clik.newPhoto({"id":7682040,"src":"_MG_4765_thumb.jpg","galleries_id":190551,"server_id":32,"link":"photo_7682040.html","width":130,"caption":"Last jump of the day","height":95});
															thumbnails[7682053] = clik.newPhoto({"id":7682053,"src":"_MG_2542_3_4_mono_thumb.jpg","galleries_id":190556,"server_id":32,"link":"photo_7682053.html","width":130,"caption":"Dunskie castle","height":106});
															thumbnails[7682075] = clik.newPhoto({"id":7682075,"src":"_MG_4776_thumb.jpg","galleries_id":190551,"server_id":32,"link":"photo_7682075.html","width":130,"caption":"Dusk Ride","height":63});
															thumbnails[7737912] = clik.newPhoto({"id":7737912,"src":"Rachel-21_thumb.jpg","galleries_id":349365,"server_id":32,"link":"photo_7737912.html","width":87,"caption":"","height":130});
															thumbnails[7737914] = clik.newPhoto({"id":7737914,"src":"Rachel-22_thumb.jpg","galleries_id":349365,"server_id":32,"link":"photo_7737914.html","width":87,"caption":"","height":130});
															thumbnails[7737919] = clik.newPhoto({"id":7737919,"src":"A__L-125_thumb.jpg","galleries_id":349365,"server_id":32,"link":"photo_7737919.html","width":130,"caption":"","height":84});
															thumbnails[7737921] = clik.newPhoto({"id":7737921,"src":"A__L-166_thumb.jpg","galleries_id":349365,"server_id":32,"link":"photo_7737921.html","width":130,"caption":"'Come with Me'","height":52});
															thumbnails[7737930] = clik.newPhoto({"id":7737930,"src":"_MG_4765_B51299A8-24E8-5EC4-4F2CD32170F812D6_thumb.jpg","galleries_id":190551,"server_id":32,"link":"photo_7737930.html","width":130,"caption":"Last jump of the day","height":95});
															thumbnails[7737932] = clik.newPhoto({"id":7737932,"src":"_MG_4938_thumb.jpg","galleries_id":190551,"server_id":32,"link":"photo_7737932.html","width":87,"caption":"Quad","height":130});
															thumbnails[8011722] = clik.newPhoto({"id":8011722,"src":"_MG_5966_thumb.jpg","galleries_id":430455,"server_id":32,"link":"photo_8011722.html","width":130,"caption":"Pauline Alexander","height":87});
															thumbnails[8011732] = clik.newPhoto({"id":8011732,"src":"_MG_6036_thumb.jpg","galleries_id":430455,"server_id":32,"link":"photo_8011732.html","width":87,"caption":"Lorne Macdougal","height":130});
															thumbnails[8011789] = clik.newPhoto({"id":8011789,"src":"_MG_6003_thumb.jpg","galleries_id":430455,"server_id":32,"link":"photo_8011789.html","width":130,"caption":"Average Folk Band","height":87});
															thumbnails[8011794] = clik.newPhoto({"id":8011794,"src":"_MG_6073_thumb.jpg","galleries_id":430455,"server_id":32,"link":"photo_8011794.html","width":130,"caption":"Morgan Lee Band","height":87});
															thumbnails[8011821] = clik.newPhoto({"id":8011821,"src":"_MG_5851_thumb.jpg","galleries_id":430455,"server_id":32,"link":"photo_8011821.html","width":130,"caption":"Murray Boal","height":102});
															thumbnails[8013699] = clik.newPhoto({"id":8013699,"src":"_MG_9086_7_8-2mono_thumb.jpg","galleries_id":190725,"server_id":32,"link":"photo_8013699.html","width":130,"caption":"Glenashdale mono","height":87});
															thumbnails[8013704] = clik.newPhoto({"id":8013704,"src":"Brodick_Castle_III_thumb.jpg","galleries_id":173530,"server_id":32,"link":"photo_8013704.html","width":130,"caption":"Brodick castle","height":130});
															thumbnails[8013711] = clik.newPhoto({"id":8013711,"src":"After_the_Rain_thumb.jpg","galleries_id":173530,"server_id":32,"link":"photo_8013711.html","width":93,"caption":"After the Rain","height":130});
															thumbnails[8213709] = clik.newPhoto({"id":8213709,"src":"Damian_and_Melanie-82_thumb.jpg","galleries_id":349365,"server_id":32,"link":"photo_8213709.html","width":130,"caption":"","height":65});
															thumbnails[8373091] = clik.newPhoto({"id":8373091,"src":"_MG_7335_thumb.jpg","galleries_id":173530,"server_id":32,"link":"photo_8373091.html","width":130,"caption":"Windchill II","height":130});
															thumbnails[8373151] = clik.newPhoto({"id":8373151,"src":"Arran_thumb.jpg","galleries_id":173530,"server_id":32,"link":"photo_8373151.html","width":130,"caption":"Arran","height":87});
															thumbnails[8421270] = clik.newPhoto({"id":8421270,"src":"_MG_8298_tonemapped_thumb.jpg","galleries_id":190556,"server_id":32,"link":"photo_8421270.html","width":130,"caption":"Snort","height":87});
															thumbnails[8477379] = clik.newPhoto({"id":8477379,"src":"Froth_on_the_Firth_thumb.jpg","galleries_id":173530,"server_id":32,"link":"photo_8477379.html","width":130,"caption":"Froth on the Firth","height":50});
															thumbnails[8477388] = clik.newPhoto({"id":8477388,"src":"Pladda_and_Ailsa_Craig-2_thumb.jpg","galleries_id":173530,"server_id":32,"link":"photo_8477388.html","width":130,"caption":"Pladda & Ailsa Craig","height":43});
															thumbnails[8477417] = clik.newPhoto({"id":8477417,"src":"Pladda__Ailsa_Craig_thumb.jpg","galleries_id":173530,"server_id":32,"link":"photo_8477417.html","width":130,"caption":"Winter Dusk, Kildonan","height":130});
															thumbnails[8530708] = clik.newPhoto({"id":8530708,"src":"_MG_7960-Edit_thumb.jpg","galleries_id":190556,"server_id":32,"link":"photo_8530708.html","width":130,"caption":"Kintyre Rollers","height":72});
															thumbnails[8530710] = clik.newPhoto({"id":8530710,"src":"_MG_8029_30_31_thumb.jpg","galleries_id":190556,"server_id":32,"link":"photo_8530710.html","width":130,"caption":"Red Roof, Black Sky ","height":88});
															thumbnails[8530713] = clik.newPhoto({"id":8530713,"src":"_MG_8004_5_6_thumb.jpg","galleries_id":190556,"server_id":32,"link":"photo_8530713.html","width":87,"caption":"","height":130});
															thumbnails[8530718] = clik.newPhoto({"id":8530718,"src":"_MG_8095_thumb.jpg","galleries_id":173530,"server_id":32,"link":"photo_8530718.html","width":130,"caption":"Arran Sunrise","height":95});
															thumbnails[8530720] = clik.newPhoto({"id":8530720,"src":"_MG_8067_8_9_thumb.jpg","galleries_id":173530,"server_id":32,"link":"photo_8530720.html","width":130,"caption":"Arran Sunset","height":87});
															thumbnails[8642763] = clik.newPhoto({"id":8642763,"src":"KildonanTriptych_thumb.jpg","galleries_id":173530,"server_id":32,"link":"photo_8642763.html","width":130,"caption":"Kildonan Triptych","height":42});
															thumbnails[8642858] = clik.newPhoto({"id":8642858,"src":"June_thumb.jpg","galleries_id":173530,"server_id":32,"link":"photo_8642858.html","width":130,"caption":"Paddy's Milestone","height":130});
															thumbnails[8642873] = clik.newPhoto({"id":8642873,"src":"Pladda__Ailsa_Craig-2_thumb.jpg","galleries_id":173530,"server_id":32,"link":"photo_8642873.html","width":130,"caption":"Pladda and Ailsa Craig II","height":87});
															thumbnails[3421534] = clik.newPhoto({"id":3421534,"src":"_MG_7334_thumb.jpg","galleries_id":173530,"server_id":32,"link":"photo_3421534.html","width":130,"caption":"Windchill","height":130});
															thumbnails[3125977] = clik.newPhoto({"id":3125977,"src":"Untitled_HDR22_thumb.jpg","galleries_id":173530,"server_id":32,"link":"photo_3125977.html","width":130,"caption":"Hidden Pool","height":173});
															thumbnails[3107416] = clik.newPhoto({"id":3107416,"src":"_MG_5652_0_1_thumb.jpg","galleries_id":173530,"server_id":32,"link":"photo_3107416.html","width":130,"caption":"Tickets Please","height":87});
															thumbnails[3511093] = clik.newPhoto({"id":3511093,"src":"_MG_6032_3_4_thumb.jpg","galleries_id":173530,"server_id":32,"link":"photo_3511093.html","width":130,"caption":"Green & Gold","height":130});
															thumbnails[3107063] = clik.newPhoto({"id":3107063,"src":"Blackwaterfoot beach-57372_thumb.jpg","galleries_id":173530,"server_id":32,"link":"photo_3107063.html","width":130,"caption":"Wet Feet","height":155});
															thumbnails[3511128] = clik.newPhoto({"id":3511128,"src":"_MG_6239_7_8_thumb.jpg","galleries_id":173530,"server_id":32,"link":"photo_3511128.html","width":130,"caption":"Icy Calm","height":98});
															thumbnails[7156842] = clik.newPhoto({"id":7156842,"src":"_MG_8000-Edit_thumb.jpg","galleries_id":386863,"server_id":32,"link":"photo_7156842.html","width":115,"caption":"","height":130});
															thumbnails[3107353] = clik.newPhoto({"id":3107353,"src":"standing stones2_thumb.jpg","galleries_id":190725,"server_id":32,"link":"photo_3107353.html","width":130,"caption":"Standing Stones","height":74});
															thumbnails[3107429] = clik.newPhoto({"id":3107429,"src":"Indo Biker_thumb.jpg","galleries_id":173531,"server_id":32,"link":"photo_3107429.html","width":130,"caption":"Family Transport","height":128});
															thumbnails[7156934] = clik.newPhoto({"id":7156934,"src":"_MG_8164-Edit_thumb.jpg","galleries_id":386863,"server_id":32,"link":"photo_7156934.html","width":98,"caption":"","height":130});
															thumbnails[3104963] = clik.newPhoto({"id":3104963,"src":"IMG_1776_thumb.jpg","galleries_id":173531,"server_id":32,"link":"photo_3104963.html","width":130,"caption":"Three boys","height":87});
															thumbnails[3125971] = clik.newPhoto({"id":3125971,"src":"IMG_3604_thumb.jpg","galleries_id":190551,"server_id":32,"link":"photo_3125971.html","width":130,"caption":"900SS","height":87});
															thumbnails[3107170] = clik.newPhoto({"id":3107170,"src":"Motob-w_thumb.jpg","galleries_id":190551,"server_id":32,"link":"photo_3107170.html","width":130,"caption":"Moto 6'5","height":199});
															thumbnails[3104957] = clik.newPhoto({"id":3104957,"src":"Girl Claire_thumb.jpg","galleries_id":190556,"server_id":32,"link":"photo_3104957.html","width":130,"caption":"Girl Claire","height":73});
															thumbnails[3106943] = clik.newPhoto({"id":3106943,"src":"2CV2_thumb.jpg","galleries_id":190551,"server_id":32,"link":"photo_3106943.html","width":130,"caption":"'Green' Car","height":195});
															thumbnails[3107436] = clik.newPhoto({"id":3107436,"src":"Indofish_thumb.jpg","galleries_id":173531,"server_id":32,"link":"photo_3107436.html","width":130,"caption":"Balinese Fish","height":98});
															thumbnails[3125940] = clik.newPhoto({"id":3125940,"src":"Bridge01_thumb.jpg","galleries_id":173531,"server_id":32,"link":"photo_3125940.html","width":130,"caption":"Ponte del Diavolo ","height":87});
															thumbnails[3104869] = clik.newPhoto({"id":3104869,"src":"Evening Catch_thumb.jpg","galleries_id":173531,"server_id":32,"link":"photo_3104869.html","width":130,"caption":"Evening Catch","height":87});
															thumbnails[3104667] = clik.newPhoto({"id":3104667,"src":"Slurp_thumb.jpg","galleries_id":190556,"server_id":32,"link":"photo_3104667.html","width":130,"caption":"Slurp","height":94});
															thumbnails[3107156] = clik.newPhoto({"id":3107156,"src":"Motobecane1_thumb.jpg","galleries_id":190551,"server_id":32,"link":"photo_3107156.html","width":130,"caption":"Motobecane","height":168});
															thumbnails[3107427] = clik.newPhoto({"id":3107427,"src":"Hotel_thumb.jpg","galleries_id":173531,"server_id":32,"link":"photo_3107427.html","width":130,"caption":"Crumbling Grandeur","height":92});
															thumbnails[3125950] = clik.newPhoto({"id":3125950,"src":"Buckie Shipyards_thumb.jpg","galleries_id":190725,"server_id":32,"link":"photo_3125950.html","width":130,"caption":"Jones's","height":98});
															thumbnails[3107144] = clik.newPhoto({"id":3107144,"src":"Pittenweem - Lundin Links-5003_thumb.jpg","galleries_id":190556,"server_id":32,"link":"photo_3107144.html","width":130,"caption":"","height":195});
															thumbnails[3107445] = clik.newPhoto({"id":3107445,"src":"Switz01_thumb.jpg","galleries_id":173531,"server_id":32,"link":"photo_3107445.html","width":130,"caption":"Alpine Dawn","height":88});
															thumbnails[3107388] = clik.newPhoto({"id":3107388,"src":"Crossers01_thumb.jpg","galleries_id":190551,"server_id":32,"link":"photo_3107388.html","width":130,"caption":"Crossers","height":86});
															thumbnails[3104969] = clik.newPhoto({"id":3104969,"src":"IMG_4562_thumb.jpg","galleries_id":173530,"server_id":32,"link":"photo_3104969.html","width":130,"caption":"Angry Sea","height":87});
															thumbnails[3104938] = clik.newPhoto({"id":3104938,"src":"Incredible Hulks_thumb.jpg","galleries_id":190556,"server_id":32,"link":"photo_3104938.html","width":130,"caption":"Incredible Hulks","height":52});
															thumbnails[3107397] = clik.newPhoto({"id":3107397,"src":"IMG_0998_thumb.jpg","galleries_id":173531,"server_id":32,"link":"photo_3107397.html","width":130,"caption":"Red and Blue","height":87});
															thumbnails[3104984] = clik.newPhoto({"id":3104984,"src":"Pittenweem - Lundin Links-4951_thumb.jpg","galleries_id":190556,"server_id":32,"link":"photo_3104984.html","width":130,"caption":"Pittenweem Harbour","height":98});
															thumbnails[3125922] = clik.newPhoto({"id":3125922,"src":"Ashton Memorial_thumb.jpg","galleries_id":190725,"server_id":32,"link":"photo_3125922.html","width":130,"caption":"Ashton Memorial","height":190});
															thumbnails[3104967] = clik.newPhoto({"id":3104967,"src":"IMG_3558_6_7_thumb.jpg","galleries_id":173530,"server_id":32,"link":"photo_3104967.html","width":130,"caption":"Marvin's Boat II","height":87});
															thumbnails[3104978] = clik.newPhoto({"id":3104978,"src":"IMG_1700_thumb.jpg","galleries_id":173531,"server_id":32,"link":"photo_3104978.html","width":130,"caption":"Multi-tasking","height":87});
															thumbnails[3104975] = clik.newPhoto({"id":3104975,"src":"Sawmill02_thumb.jpg","galleries_id":173530,"server_id":32,"link":"photo_3104975.html","width":130,"caption":"Sawmill","height":41});
															thumbnails[3107242] = clik.newPhoto({"id":3107242,"src":"Sawmill03_thumb.jpg","galleries_id":190725,"server_id":32,"link":"photo_3107242.html","width":130,"caption":"Bandit Country","height":41});
															thumbnails[3125947] = clik.newPhoto({"id":3125947,"src":"Gardenstoun_thumb.jpg","galleries_id":190725,"server_id":32,"link":"photo_3125947.html","width":130,"caption":"Creels","height":98});
															thumbnails[3107058] = clik.newPhoto({"id":3107058,"src":"_MG_56941_thumb.jpg","galleries_id":173530,"server_id":32,"link":"photo_3107058.html","width":130,"caption":"Violet Dawn","height":195});
															thumbnails[3125984] = clik.newPhoto({"id":3125984,"src":"Jenny Browns Point_thumb.jpg","galleries_id":190725,"server_id":32,"link":"photo_3125984.html","width":130,"caption":"Spooky trees","height":86});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[386863] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Boudoir","link":"gallery_386863.html","maxRecords":0.0,"photoIDs":[7156895.0,7352972.0,7352974.0,7352977.0,7156842.0,7156934.0],"skipIndex":0,"section_code":"gallery","featured_images":"7352977,7352974,7352972,7156934,7156895,7156842","id":386863,"singleSection":false});				  						galleries[430455] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Events","link":"gallery_430455.html","maxRecords":0.0,"photoIDs":[8011722.0,8011732.0,8011789.0,8011794.0,8011821.0],"skipIndex":0,"section_code":"gallery","featured_images":"8011821,8011794,8011789,8011732,8011722","id":430455,"singleSection":false});				  						galleries[349365] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Wedding and Portrait","link":"gallery_349365.html","maxRecords":0.0,"photoIDs":[3277992.0,4990587.0,5108867.0,5108869.0,6372458.0,6372465.0,6372469.0,6372495.0,7146049.0,7156958.0,7737912.0,7737914.0,7737919.0,7737921.0,8213709.0],"skipIndex":0,"section_code":"gallery","featured_images":"8213709,7737921,7737919,7737914,7737912,7156958,7146049,6372495,6372469,6372465","id":349365,"singleSection":false});				  						galleries[173530] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Arran","link":"gallery_173530.html","maxRecords":0.0,"photoIDs":[3669195.0,5049863.0,5071765.0,5107520.0,5703198.0,8013704.0,8013711.0,8373091.0,8373151.0,8477379.0,8477388.0,8477417.0,8530718.0,8530720.0,8642763.0,8642858.0,8642873.0,3421534.0,3125977.0,3107416.0,3511093.0,3107063.0,3511128.0,3104969.0,3104967.0,3104975.0,3107058.0],"skipIndex":0,"section_code":"gallery","featured_images":"8530720,8477417,3669195,3107058,3104969,3104967","id":173530,"singleSection":false});				  						galleries[190556] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Scotland","link":"gallery_190556.html","maxRecords":0.0,"photoIDs":[3397016.0,3397026.0,3397029.0,3278005.0,4555965.0,4556020.0,4556021.0,4990580.0,7682053.0,8421270.0,8530708.0,8530710.0,8530713.0,3104957.0,3104667.0,3107144.0,3104938.0,3104984.0],"skipIndex":0,"section_code":"gallery","featured_images":"8530713,8530708,3397029,3397026,3278005,3107144,3104984","id":190556,"singleSection":false});				  						galleries[173531] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Travel","link":"gallery_173531.html","maxRecords":0.0,"photoIDs":[3128626.0,3835564.0,3835583.0,4899691.0,5108876.0,5933675.0,5933693.0,5933701.0,5933706.0,3107429.0,3104963.0,3107436.0,3125940.0,3104869.0,3107427.0,3107445.0,3107397.0,3104978.0],"skipIndex":0,"section_code":"gallery","featured_images":"3835583,3835564,3128626,3125940,3107445,3107429,3104978,3104963,3104869","id":173531,"singleSection":false});				  						galleries[190551] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Auto\/Moto","link":"gallery_190551.html","maxRecords":0.0,"photoIDs":[4556055.0,5933683.0,6520519.0,6520527.0,6520535.0,7146024.0,7156979.0,7682040.0,7682075.0,7737930.0,7737932.0,3125971.0,3107170.0,3106943.0,3107156.0,3107388.0],"skipIndex":0,"section_code":"gallery","featured_images":"3125971,3107388,3107170,3107156,3106943","id":190551,"singleSection":false});				  						galleries[190725] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Monochrome","link":"gallery_190725.html","maxRecords":0.0,"photoIDs":[5108897.0,5703203.0,5933668.0,8013699.0,3107353.0,3125950.0,3125922.0,3107242.0,3125947.0,3125984.0],"skipIndex":0,"section_code":"gallery","featured_images":"3125984,3125950,3125922,3107353","id":190725,"singleSection":false});				  						galleries[191823] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"People","link":"gallery_191823.html","maxRecords":0.0,"photoIDs":[3128619.0,3277998.0,5933679.0,5933697.0],"skipIndex":0,"section_code":"gallery","featured_images":3128619.0,"id":191823,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[243897] = '8213709,7737921,7737919,7156958,6372465,6372458,5108869,5108867,3277992';
imageSets[1] = '8530720,8530713,8477417,3835583,3835564,3669195,3397029,3397026,3397016,3278005,3277998,3128626,3128619,3421534,3125977,3107416,3107063,3107353,3107429,3125971,3104963,3107170,3104957,3125940,3107436,3106943,3104869,3104667,3107156,3107427,3125950,3107445,3107144,3107388,3104969,3107397,3104984,3125922,3104967,3104978,3125984,3107058';
imageSets[2] = '8530720,8530713,8530708,8477417,3835583,3835564,3669195,3397029,3397026,3278005,3128626,3128619,3107353,3107429,3125971,3104963,3107170,3125940,3106943,3104869,3107156,3125950,3107445,3107144,3107388,3104969,3104984,3125922,3104967,3104978,3125984,3107058';
imageSets[3] = '8642873,8642858,8642763,8530720,8530718,8530713,8530710,8530708,8477417,8477388,8477379,8421270,8373151,8373091,8213709,8013711,8013704,8013699,8011821,8011794,8011789,8011732,8011722,7737932,7737930,7737921,7737919,7737914,7737912,7682075,7682053,7682040,7352977,7352974,7352972,7156979,7156958,7156934,7156895,7156842,7146049,7146024,6520535,6520527,6520519,6372495,6372469,6372465,6372458,5933706';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/andy_tuf/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/andy_tuf/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/andy_tuf/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/andy_tuf/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/andy_tuf/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/andy_tuf/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/andy_tuf/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/andy_tuf/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/andy_tuf/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/andy_tuf/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/andy_tuf/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/andy_tuf/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/andy_tuf/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/andy_tuf/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/andy_tuf/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/andy_tuf/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/andy_tuf/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/andy_tuf/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/andy_tuf/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/andy_tuf/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/andy_tuf/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/andy_tuf/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/andy_tuf/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/andy_tuf/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/andy_tuf/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = backgrounds && backgrounds[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$detailContainer:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
		op = $.extend({},defaults,options),
		html = '', temp = '',
		photoId = op.nextPhoto.id,
		photoCaption = ''+op.nextPhoto.caption,
		photoSrc = op.nextPhoto.src;
	
	if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'Arran Images ANDREW SURRIDGE PHOTOGRAPHY: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
	temp += this.fnGetPaymentInfo();
				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>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
		 									temp += '<select class="paymentlink" name="payment_options_id" onchange="updateCartValue($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
	else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
											temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm">';
			temp += '	<input type="hidden" name="item_option" value="' + item_option + '">';
			temp += '	<input type="hidden" name="site" value="ANDY_TUF">';
			temp += '	<input type="hidden" name="item_number" value="'+ this.id +'">';
			temp += '	<input type="hidden" name="quantity" value="1">';
						temp += '	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\'\;" onmouseout="this.className=\'button\'\;" type="Button">';
							temp += '	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';
			temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
			temp += '<div id="confirmContainer">';
			temp += '<div id="paymentConfirm">Item added to cart</div>';
			temp += '</div>';
			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;
	}
}

			

