window.thumbnails = {};
															thumbnails[2398930] = clik.newPhoto({"id":2398930,"src":"IMG_0819_thumb.JPG","galleries_id":293620,"server_id":18,"link":"photo_2398930.html","width":130,"caption":"Elstead Sunrise, May 2006","height":75});
															thumbnails[2409482] = clik.newPhoto({"id":2409482,"src":"IMG_1302_thumb.jpg","galleries_id":156174,"server_id":18,"link":"photo_2409482.html","width":130,"caption":"Frozen","height":87});
															thumbnails[2487881] = clik.newPhoto({"id":2487881,"src":"img_5590c_thumb.jpg","galleries_id":211118,"server_id":18,"link":"photo_2487881.html","width":130,"caption":"Green Winged Orchid","height":173});
															thumbnails[3408621] = clik.newPhoto({"id":3408621,"src":"file0060d[1]_thumb.jpg","galleries_id":401633,"server_id":18,"link":"photo_3408621.html","width":130,"caption":"Lone Tree","height":84});
															thumbnails[3426866] = clik.newPhoto({"id":3426866,"src":"img_0201_800b[1]_thumb.jpg","galleries_id":211124,"server_id":18,"link":"photo_3426866.html","width":130,"caption":"","height":189});
															thumbnails[8653408] = clik.newPhoto({"id":8653408,"src":"IMG_0001_800_thumb.JPG","galleries_id":401592,"server_id":35,"link":"photo_8653408.html","width":130,"caption":"IMG 0001 800","height":58});
															thumbnails[2398931] = clik.newPhoto({"id":2398931,"src":"img_1595_800_thumb.jpg","galleries_id":401633,"server_id":18,"link":"photo_2398931.html","width":130,"caption":"Loch Etive Light","height":61});
															thumbnails[2398943] = clik.newPhoto({"id":2398943,"src":"IMG_4858_thumb.JPG","galleries_id":293620,"server_id":18,"link":"photo_2398943.html","width":130,"caption":"Elstead Sunrise, November 2007","height":75});
															thumbnails[2487882] = clik.newPhoto({"id":2487882,"src":"IMG_5626_thumb.jpg","galleries_id":211118,"server_id":18,"link":"photo_2487882.html","width":130,"caption":"Green Winged Orchid","height":196});
															thumbnails[3356953] = clik.newPhoto({"id":3356953,"src":"img_2363a_thumb.jpg","galleries_id":156174,"server_id":18,"link":"photo_3356953.html","width":130,"caption":"Frozen Cobweb","height":80});
															thumbnails[5199405] = clik.newPhoto({"id":5199405,"src":"02_February_thumb.jpg","galleries_id":401623,"server_id":18,"link":"photo_5199405.html","width":130,"caption":"Moody Elgol I","height":87});
															thumbnails[6937961] = clik.newPhoto({"id":6937961,"src":"IMG_9558_800_thumb.jpg","galleries_id":401622,"server_id":18,"link":"photo_6937961.html","width":130,"caption":"IMG 9558 800","height":87});
															thumbnails[2398938] = clik.newPhoto({"id":2398938,"src":"_mg_3681_800_thumb.jpg","galleries_id":401633,"server_id":18,"link":"photo_2398938.html","width":130,"caption":"Playing with Light, Holm Sound, Orkney","height":87});
															thumbnails[2398944] = clik.newPhoto({"id":2398944,"src":"IMG_5180_thumb.JPG","galleries_id":293620,"server_id":18,"link":"photo_2398944.html","width":130,"caption":"Elstead Sunrise, May 2006","height":75});
															thumbnails[2409448] = clik.newPhoto({"id":2409448,"src":"IMG_1689_thumb.jpg","galleries_id":401621,"server_id":18,"link":"photo_2409448.html","width":130,"caption":"Reflections","height":87});
															thumbnails[2487883] = clik.newPhoto({"id":2487883,"src":"IMG_5655_thumb.jpg","galleries_id":211118,"server_id":18,"link":"photo_2487883.html","width":130,"caption":"Green Winged Orchid","height":181});
															thumbnails[3408623] = clik.newPhoto({"id":3408623,"src":"img_8292_800_thumb.jpg","galleries_id":293619,"server_id":18,"link":"photo_3408623.html","width":130,"caption":"Weather Patterns","height":63});
															thumbnails[5235555] = clik.newPhoto({"id":5235555,"src":"IMG_7614v2_thumb.jpg","galleries_id":401623,"server_id":18,"link":"photo_5235555.html","width":130,"caption":"Moody Elgol II","height":92});
															thumbnails[6937962] = clik.newPhoto({"id":6937962,"src":"IMG_9565_800_thumb.jpg","galleries_id":401622,"server_id":18,"link":"photo_6937962.html","width":130,"caption":"IMG 9565 800","height":87});
															thumbnails[8653409] = clik.newPhoto({"id":8653409,"src":"IMG_0060_800_thumb.JPG","galleries_id":456828,"server_id":35,"link":"photo_8653409.html","width":130,"caption":"IMG 0060 800","height":87});
															thumbnails[2398945] = clik.newPhoto({"id":2398945,"src":"IMG_5289_thumb.JPG","galleries_id":293620,"server_id":18,"link":"photo_2398945.html","width":130,"caption":"Elstead Sunrise, Winter Solstice 2007","height":75});
															thumbnails[2487884] = clik.newPhoto({"id":2487884,"src":"img_5661a_800_thumb.jpg","galleries_id":211118,"server_id":18,"link":"photo_2487884.html","width":130,"caption":"Green Winged Orchid","height":208});
															thumbnails[6937973] = clik.newPhoto({"id":6937973,"src":"IMG_9673b_800_thumb.jpg","galleries_id":401633,"server_id":18,"link":"photo_6937973.html","width":130,"caption":"IMG 9673b 800","height":83});
															thumbnails[8653410] = clik.newPhoto({"id":8653410,"src":"IMG_0072_800_thumb.JPG","galleries_id":456829,"server_id":35,"link":"photo_8653410.html","width":130,"caption":"IMG 0072 800","height":87});
															thumbnails[2398935] = clik.newPhoto({"id":2398935,"src":"IMG_2267_thumb.JPG","galleries_id":293620,"server_id":18,"link":"photo_2398935.html","width":130,"caption":"Cloud Shadows, Elstead Sunrise","height":85});
															thumbnails[2487878] = clik.newPhoto({"id":2487878,"src":"early_purple_orchid_thumb.jpg","galleries_id":211118,"server_id":18,"link":"photo_2487878.html","width":130,"caption":"Early Purple Orchid","height":206});
															thumbnails[3408625] = clik.newPhoto({"id":3408625,"src":"img_9157_800_thumb.jpg","galleries_id":293619,"server_id":18,"link":"photo_3408625.html","width":130,"caption":"Bhaltos Beach Sunset","height":87});
															thumbnails[5235557] = clik.newPhoto({"id":5235557,"src":"IMG_7953_thumb.jpg","galleries_id":401633,"server_id":18,"link":"photo_5235557.html","width":130,"caption":"Staffin Island Light III","height":72});
															thumbnails[6937964] = clik.newPhoto({"id":6937964,"src":"IMG_9584_800_thumb.jpg","galleries_id":401622,"server_id":18,"link":"photo_6937964.html","width":130,"caption":"IMG 9584 800","height":87});
															thumbnails[8653411] = clik.newPhoto({"id":8653411,"src":"IMG_0087_800_thumb.JPG","galleries_id":456829,"server_id":35,"link":"photo_8653411.html","width":130,"caption":"IMG 0087 800","height":87});
															thumbnails[2487880] = clik.newPhoto({"id":2487880,"src":"img_5211a_thumb.jpg","galleries_id":211118,"server_id":18,"link":"photo_2487880.html","width":130,"caption":"Early Purple Orchid","height":211});
															thumbnails[3408624] = clik.newPhoto({"id":3408624,"src":"img_8749_8750_1_800_thumb.jpg","galleries_id":401633,"server_id":18,"link":"photo_3408624.html","width":130,"caption":"Blue Skies, White Sand, Scotland?","height":52});
															thumbnails[5199406] = clik.newPhoto({"id":5199406,"src":"03_March_thumb.jpg","galleries_id":401623,"server_id":18,"link":"photo_5199406.html","width":130,"caption":"Holm Island Light","height":87});
															thumbnails[6937965] = clik.newPhoto({"id":6937965,"src":"IMG_9589_800_thumb.jpg","galleries_id":401622,"server_id":18,"link":"photo_6937965.html","width":130,"caption":"IMG 9589 800","height":87});
															thumbnails[8653412] = clik.newPhoto({"id":8653412,"src":"IMG_0096_800_thumb.JPG","galleries_id":456829,"server_id":35,"link":"photo_8653412.html","width":130,"caption":"IMG 0096 800","height":130});
															thumbnails[2398934] = clik.newPhoto({"id":2398934,"src":"img_1939_800_thumb.jpg","galleries_id":401621,"server_id":18,"link":"photo_2398934.html","width":130,"caption":"Mirror Image, Loch Tulla I","height":87});
															thumbnails[2398936] = clik.newPhoto({"id":2398936,"src":"img_3014a1_800_thumb.jpg","galleries_id":401633,"server_id":18,"link":"photo_2398936.html","width":130,"caption":"July Reflections, Loch Tulla","height":87});
															thumbnails[2487885] = clik.newPhoto({"id":2487885,"src":"img_6142a_thumb.jpg","galleries_id":211118,"server_id":18,"link":"photo_2487885.html","width":130,"caption":"Burnt-Tip Orchid","height":191});
															thumbnails[3426872] = clik.newPhoto({"id":3426872,"src":"img_8480a_800_thumb.jpg","galleries_id":293619,"server_id":18,"link":"photo_3426872.html","width":130,"caption":"The Rock (Am Buachaille)","height":90});
															thumbnails[5199410] = clik.newPhoto({"id":5199410,"src":"07_July_thumb.jpg","galleries_id":401623,"server_id":18,"link":"photo_5199410.html","width":130,"caption":"Staffin Bay & Quiraing","height":87});
															thumbnails[8653413] = clik.newPhoto({"id":8653413,"src":"IMG_0100_800_thumb.JPG","galleries_id":456829,"server_id":35,"link":"photo_8653413.html","width":130,"caption":"IMG 0100 800","height":87});
															thumbnails[2398933] = clik.newPhoto({"id":2398933,"src":"IMG_1927_thumb.JPG","galleries_id":401621,"server_id":18,"link":"photo_2398933.html","width":130,"caption":"Mirror Image, Loch Tulla II","height":70});
															thumbnails[2409231] = clik.newPhoto({"id":2409231,"src":"img_8706ab_800_thumb.jpg","galleries_id":293619,"server_id":18,"link":"photo_2409231.html","width":130,"caption":"Sundog\/Parhelia","height":86});
															thumbnails[3426873] = clik.newPhoto({"id":3426873,"src":"img_9422ab_800_thumb.jpg","galleries_id":293619,"server_id":18,"link":"photo_3426873.html","width":130,"caption":"Little Minch Sunrise","height":76});
															thumbnails[6938006] = clik.newPhoto({"id":6938006,"src":"IMG_9617_800_thumb.jpg","galleries_id":401633,"server_id":18,"link":"photo_6938006.html","width":130,"caption":"IMG 9617 800","height":87});
															thumbnails[8653414] = clik.newPhoto({"id":8653414,"src":"IMG_0114_800_thumb.JPG","galleries_id":401593,"server_id":35,"link":"photo_8653414.html","width":130,"caption":"IMG 0114 800","height":87});
															thumbnails[2398932] = clik.newPhoto({"id":2398932,"src":"IMG_1923v1_crop_thumb.JPG","galleries_id":401621,"server_id":18,"link":"photo_2398932.html","width":130,"caption":"Mirror Image, Loch Tulla III","height":55});
															thumbnails[2398946] = clik.newPhoto({"id":2398946,"src":"IMG_5358_thumb.JPG","galleries_id":293620,"server_id":18,"link":"photo_2398946.html","width":130,"caption":"Misty Sunset, Royal Common, Elstead I","height":92});
															thumbnails[2487888] = clik.newPhoto({"id":2487888,"src":"img_6764b_thumb.jpg","galleries_id":211119,"server_id":18,"link":"photo_2487888.html","width":130,"caption":"Field Poppy","height":169});
															thumbnails[3357643] = clik.newPhoto({"id":3357643,"src":"_mg_4399_800_thumb.jpg","galleries_id":293619,"server_id":18,"link":"photo_3357643.html","width":130,"caption":"Orcadian Sunset II","height":72});
															thumbnails[5199412] = clik.newPhoto({"id":5199412,"src":"09_September_thumb.jpg","galleries_id":401623,"server_id":18,"link":"photo_5199412.html","width":130,"caption":"Quiraing","height":87});
															thumbnails[6938651] = clik.newPhoto({"id":6938651,"src":"IMG_6254_800_2_thumb.jpg","galleries_id":401633,"server_id":18,"link":"photo_6938651.html","width":130,"caption":"IMG 6254 800 (2)","height":62});
															thumbnails[8653415] = clik.newPhoto({"id":8653415,"src":"IMG_0116_800_thumb.JPG","galleries_id":401593,"server_id":35,"link":"photo_8653415.html","width":130,"caption":"IMG 0116 800","height":87});
															thumbnails[2398947] = clik.newPhoto({"id":2398947,"src":"IMG_5446_thumb.JPG","galleries_id":293620,"server_id":18,"link":"photo_2398947.html","width":130,"caption":"Misty Sunset, Royal Common, Elstead II","height":130});
															thumbnails[2487889] = clik.newPhoto({"id":2487889,"src":"img_6778a_thumb.jpg","galleries_id":211119,"server_id":18,"link":"photo_2487889.html","width":130,"caption":"Field Poppy","height":166});
															thumbnails[3402955] = clik.newPhoto({"id":3402955,"src":"img_8631b_800_thumb.jpg","galleries_id":293619,"server_id":18,"link":"photo_3402955.html","width":130,"caption":"Mock Mirage Sunset III","height":82});
															thumbnails[5199413] = clik.newPhoto({"id":5199413,"src":"10_October_thumb.jpg","galleries_id":401623,"server_id":18,"link":"photo_5199413.html","width":130,"caption":"Sligachan Bridge","height":87});
															thumbnails[8653416] = clik.newPhoto({"id":8653416,"src":"IMG_0119_800_thumb.JPG","galleries_id":456830,"server_id":35,"link":"photo_8653416.html","width":130,"caption":"IMG 0119 800","height":87});
															thumbnails[2487891] = clik.newPhoto({"id":2487891,"src":"img_6791a_thumb.jpg","galleries_id":211119,"server_id":18,"link":"photo_2487891.html","width":130,"caption":"Field Poppy","height":134});
															thumbnails[3356957] = clik.newPhoto({"id":3356957,"src":"img_5335_800_thumb.jpg","galleries_id":293620,"server_id":18,"link":"photo_3356957.html","width":130,"caption":"Misty Sunset, Royal Common, Elstead III","height":87});
															thumbnails[3402946] = clik.newPhoto({"id":3402946,"src":"img_8618a_thumb.jpg","galleries_id":293619,"server_id":18,"link":"photo_3402946.html","width":130,"caption":"Mock Mirage Sunset","height":87});
															thumbnails[3426876] = clik.newPhoto({"id":3426876,"src":"img_9786_800[1]_thumb.jpg","galleries_id":211124,"server_id":18,"link":"photo_3426876.html","width":130,"caption":"","height":87});
															thumbnails[5199414] = clik.newPhoto({"id":5199414,"src":"11_November_thumb.jpg","galleries_id":401623,"server_id":18,"link":"photo_5199414.html","width":130,"caption":"Elgol Bay Sunset","height":87});
															thumbnails[6938661] = clik.newPhoto({"id":6938661,"src":"IMG_9284_8001_thumb.jpg","galleries_id":401622,"server_id":18,"link":"photo_6938661.html","width":130,"caption":"IMG 9284 8001","height":87});
															thumbnails[3426881] = clik.newPhoto({"id":3426881,"src":"_mg_4198_700[1]_thumb.jpg","galleries_id":155796,"server_id":18,"link":"photo_3426881.html","width":130,"caption":"Puffin (Fratercula arctica)","height":128});
															thumbnails[5199415] = clik.newPhoto({"id":5199415,"src":"12_December_thumb.jpg","galleries_id":211119,"server_id":18,"link":"photo_5199415.html","width":130,"caption":"Apple Blossom Snow","height":87});
															thumbnails[8653418] = clik.newPhoto({"id":8653418,"src":"IMG_0121_800_thumb.JPG","galleries_id":456830,"server_id":35,"link":"photo_8653418.html","width":130,"caption":"IMG 0121 800","height":87});
															thumbnails[2398937] = clik.newPhoto({"id":2398937,"src":"IMG_3033_thumb.JPG","galleries_id":293619,"server_id":18,"link":"photo_2398937.html","width":130,"caption":"Black Mount, Loch Tulla","height":87});
															thumbnails[3356960] = clik.newPhoto({"id":3356960,"src":"_mg_4187_800b_thumb.jpg","galleries_id":211119,"server_id":18,"link":"photo_3356960.html","width":130,"caption":"Red Campion - Silene dioica","height":151});
															thumbnails[3426878] = clik.newPhoto({"id":3426878,"src":"stitched_001a_800_thumb.jpg","galleries_id":293620,"server_id":18,"link":"photo_3426878.html","width":130,"caption":"","height":41});
															thumbnails[5199416] = clik.newPhoto({"id":5199416,"src":"Cover_thumb.jpg","galleries_id":293620,"server_id":18,"link":"photo_5199416.html","width":130,"caption":"A Crisp Start","height":87});
															thumbnails[6937971] = clik.newPhoto({"id":6937971,"src":"IMG_9669_800v2_thumb.jpg","galleries_id":401622,"server_id":18,"link":"photo_6937971.html","width":130,"caption":"IMG 9669 800v2","height":62});
															thumbnails[8653420] = clik.newPhoto({"id":8653420,"src":"IMG_0126_800_thumb.JPG","galleries_id":456830,"server_id":35,"link":"photo_8653420.html","width":130,"caption":"IMG 0126 800","height":76});
															thumbnails[6937972] = clik.newPhoto({"id":6937972,"src":"IMG_9670_800_thumb.jpg","galleries_id":401633,"server_id":18,"link":"photo_6937972.html","width":130,"caption":"IMG 9670 800","height":74});
															thumbnails[8653422] = clik.newPhoto({"id":8653422,"src":"IMG_0142_800_thumb.JPG","galleries_id":456830,"server_id":35,"link":"photo_8653422.html","width":130,"caption":"IMG 0142 800","height":87});
															thumbnails[6937974] = clik.newPhoto({"id":6937974,"src":"IMG_9673_800_thumb.jpg","galleries_id":401633,"server_id":18,"link":"photo_6937974.html","width":130,"caption":"IMG 9673 800","height":60});
															thumbnails[8653423] = clik.newPhoto({"id":8653423,"src":"IMG_0283_800_thumb.JPG","galleries_id":456830,"server_id":35,"link":"photo_8653423.html","width":130,"caption":"IMG 0283 800","height":87});
															thumbnails[6937975] = clik.newPhoto({"id":6937975,"src":"IMG_9674_800_thumb.jpg","galleries_id":401622,"server_id":18,"link":"photo_6937975.html","width":130,"caption":"IMG 9674 800","height":74});
															thumbnails[8653424] = clik.newPhoto({"id":8653424,"src":"IMG_0305_800_thumb.JPG","galleries_id":456830,"server_id":35,"link":"photo_8653424.html","width":130,"caption":"IMG 0305 800","height":87});
															thumbnails[6937976] = clik.newPhoto({"id":6937976,"src":"IMG_9678_800_thumb.jpg","galleries_id":401622,"server_id":18,"link":"photo_6937976.html","width":130,"caption":"IMG 9678 800","height":52});
															thumbnails[8653425] = clik.newPhoto({"id":8653425,"src":"IMG_0322_800_thumb.JPG","galleries_id":456830,"server_id":35,"link":"photo_8653425.html","width":130,"caption":"IMG 0322 800","height":87});
															thumbnails[3357722] = clik.newPhoto({"id":3357722,"src":"img_6503a_thumb.jpg","galleries_id":211118,"server_id":18,"link":"photo_3357722.html","width":130,"caption":"Common Spotted Orchid","height":198});
															thumbnails[3426874] = clik.newPhoto({"id":3426874,"src":"img_9441_800_thumb.jpg","galleries_id":155796,"server_id":18,"link":"photo_3426874.html","width":130,"caption":"Emperor Moth Caterpillar","height":84});
															thumbnails[6937977] = clik.newPhoto({"id":6937977,"src":"IMG_9682_800_thumb.jpg","galleries_id":401622,"server_id":18,"link":"photo_6937977.html","width":130,"caption":"IMG 9682 800","height":59});
															thumbnails[8653426] = clik.newPhoto({"id":8653426,"src":"IMG_0335_800_thumb.JPG","galleries_id":456830,"server_id":35,"link":"photo_8653426.html","width":130,"caption":"IMG 0335 800","height":87});
															thumbnails[2413209] = clik.newPhoto({"id":2413209,"src":"img_1553b_800_thumb.jpg","galleries_id":401621,"server_id":18,"link":"photo_2413209.html","width":130,"caption":"Buachaille Etive Mòr","height":75});
															thumbnails[2487887] = clik.newPhoto({"id":2487887,"src":"IMG_6519_thumb.jpg","galleries_id":211118,"server_id":18,"link":"photo_2487887.html","width":130,"caption":"Common Spotted Orchid","height":191});
															thumbnails[5235524] = clik.newPhoto({"id":5235524,"src":"IMG_8438_800_thumb.jpg","galleries_id":401623,"server_id":18,"link":"photo_5235524.html","width":130,"caption":"Torridon Sunrise I","height":87});
															thumbnails[6937978] = clik.newPhoto({"id":6937978,"src":"IMG_9695_800v1_thumb.jpg","galleries_id":401622,"server_id":18,"link":"photo_6937978.html","width":130,"caption":"IMG 9695 800v1","height":54});
															thumbnails[8653427] = clik.newPhoto({"id":8653427,"src":"IMG_0374_800_thumb.JPG","galleries_id":456830,"server_id":35,"link":"photo_8653427.html","width":130,"caption":"IMG 0374 800","height":87});
															thumbnails[2487875] = clik.newPhoto({"id":2487875,"src":"IMG_11532_thumb.jpg","galleries_id":401621,"server_id":18,"link":"photo_2487875.html","width":130,"caption":"Buachaille Etive Mòr","height":66});
															thumbnails[3357717] = clik.newPhoto({"id":3357717,"src":"img_12993_800_thumb.jpg","galleries_id":211118,"server_id":18,"link":"photo_3357717.html","width":130,"caption":"1 Cinnabar Moth, and 5 other insects","height":193});
															thumbnails[5235525] = clik.newPhoto({"id":5235525,"src":"IMG_8482_800_thumb.jpg","galleries_id":401623,"server_id":18,"link":"photo_5235525.html","width":130,"caption":"Torridon Sunrise II","height":87});
															thumbnails[6937979] = clik.newPhoto({"id":6937979,"src":"IMG_9695_800v2_thumb.jpg","galleries_id":401622,"server_id":18,"link":"photo_6937979.html","width":130,"caption":"IMG 9695 800v2","height":87});
															thumbnails[8653428] = clik.newPhoto({"id":8653428,"src":"IMG_0385_800_thumb.JPG","galleries_id":456830,"server_id":35,"link":"photo_8653428.html","width":130,"caption":"IMG 0385 800","height":87});
															thumbnails[3357723] = clik.newPhoto({"id":3357723,"src":"img_9172_800_thumb.jpg","galleries_id":211118,"server_id":18,"link":"photo_3357723.html","width":130,"caption":"Albino Common Spotted Orchid","height":193});
															thumbnails[5199408] = clik.newPhoto({"id":5199408,"src":"05_May_thumb.jpg","galleries_id":401623,"server_id":18,"link":"photo_5199408.html","width":130,"caption":"Torridon Sunrise III","height":87});
															thumbnails[6937980] = clik.newPhoto({"id":6937980,"src":"IMG_9697_800_thumb.jpg","galleries_id":293619,"server_id":18,"link":"photo_6937980.html","width":130,"caption":"IMG 9697 800","height":87});
															thumbnails[8653429] = clik.newPhoto({"id":8653429,"src":"IMG_0386_800_thumb.JPG","galleries_id":456830,"server_id":35,"link":"photo_8653429.html","width":130,"caption":"IMG 0386 800","height":87});
															thumbnails[3357718] = clik.newPhoto({"id":3357718,"src":"img_14572_800_thumb.jpg","galleries_id":211119,"server_id":18,"link":"photo_3357718.html","width":130,"caption":"Evening Primrose after Rain","height":85});
															thumbnails[6937981] = clik.newPhoto({"id":6937981,"src":"IMG_9707_800_thumb.jpg","galleries_id":401622,"server_id":18,"link":"photo_6937981.html","width":130,"caption":"IMG 9707 800","height":87});
															thumbnails[8653430] = clik.newPhoto({"id":8653430,"src":"IMG_0448_800_thumb.JPG","galleries_id":456830,"server_id":35,"link":"photo_8653430.html","width":130,"caption":"IMG 0448 800","height":87});
															thumbnails[2487877] = clik.newPhoto({"id":2487877,"src":"IMG_2615_thumb.jpg","galleries_id":401621,"server_id":18,"link":"photo_2487877.html","width":130,"caption":"Crossing Point Christmas Day 2005","height":87});
															thumbnails[3357719] = clik.newPhoto({"id":3357719,"src":"img_2635_800_thumb.jpg","galleries_id":211119,"server_id":18,"link":"photo_3357719.html","width":130,"caption":"Lesser Celandine","height":199});
															thumbnails[6937982] = clik.newPhoto({"id":6937982,"src":"IMG_9713_800v2_thumb.jpg","galleries_id":401622,"server_id":18,"link":"photo_6937982.html","width":130,"caption":"IMG 9713 800v2","height":68});
															thumbnails[8653431] = clik.newPhoto({"id":8653431,"src":"IMG_0454_800_thumb.JPG","galleries_id":456830,"server_id":35,"link":"photo_8653431.html","width":130,"caption":"IMG 0454 800","height":83});
															thumbnails[3356955] = clik.newPhoto({"id":3356955,"src":"img_2640_raw1a_800_thumb.jpg","galleries_id":401621,"server_id":18,"link":"photo_3356955.html","width":130,"caption":"Bens, Glens and Lochs","height":68});
															thumbnails[3357720] = clik.newPhoto({"id":3357720,"src":"img_5669_800_thumb.jpg","galleries_id":211118,"server_id":18,"link":"photo_3357720.html","width":130,"caption":"Orchids in Snow","height":105});
															thumbnails[6937983] = clik.newPhoto({"id":6937983,"src":"IMG_9743_800_thumb.jpg","galleries_id":401622,"server_id":18,"link":"photo_6937983.html","width":130,"caption":"IMG 9743 800","height":87});
															thumbnails[8653432] = clik.newPhoto({"id":8653432,"src":"IMG_0461_800_thumb.JPG","galleries_id":456830,"server_id":35,"link":"photo_8653432.html","width":130,"caption":"IMG 0461 800","height":82});
															thumbnails[3356948] = clik.newPhoto({"id":3356948,"src":"compilation1a_w800_thumb.jpg","galleries_id":401621,"server_id":18,"link":"photo_3356948.html","width":130,"caption":"Bens, Glens and Lochs again","height":46});
															thumbnails[3357721] = clik.newPhoto({"id":3357721,"src":"img_5680_800_thumb.jpg","galleries_id":211119,"server_id":18,"link":"photo_3357721.html","width":130,"caption":"Crab Apple Blossom in Snow","height":77});
															thumbnails[6937984] = clik.newPhoto({"id":6937984,"src":"IMG_9749_800_thumb.jpg","galleries_id":401622,"server_id":18,"link":"photo_6937984.html","width":130,"caption":"IMG 9749 800","height":87});
															thumbnails[8653433] = clik.newPhoto({"id":8653433,"src":"IMG_0511a_800_thumb.JPG","galleries_id":456830,"server_id":35,"link":"photo_8653433.html","width":130,"caption":"IMG 0511a 800","height":53});
															thumbnails[3356958] = clik.newPhoto({"id":3356958,"src":"pano_comb1_800_thumb.jpg","galleries_id":401633,"server_id":18,"link":"photo_3356958.html","width":130,"caption":"Loch Tulla Panorama","height":42});
															thumbnails[3426871] = clik.newPhoto({"id":3426871,"src":"img_8114a[1]_thumb.jpg","galleries_id":211119,"server_id":18,"link":"photo_3426871.html","width":130,"caption":"Common Teasel (Dipsacus sylvestris)","height":183});
															thumbnails[8653434] = clik.newPhoto({"id":8653434,"src":"IMG_0598_800_thumb.JPG","galleries_id":456830,"server_id":35,"link":"photo_8653434.html","width":130,"caption":"IMG 0598 800","height":87});
															thumbnails[3356952] = clik.newPhoto({"id":3356952,"src":"img_1900b2_800bb_thumb.jpg","galleries_id":401633,"server_id":18,"link":"photo_3356952.html","width":130,"caption":"The Magic of Freezing Fog","height":47});
															thumbnails[3426870] = clik.newPhoto({"id":3426870,"src":"img_2918_800[1]1_thumb.jpg","galleries_id":211119,"server_id":18,"link":"photo_3426870.html","width":130,"caption":"Foxglove (Digitalis Purpurea)","height":90});
															thumbnails[6937985] = clik.newPhoto({"id":6937985,"src":"IMG_9758_800_thumb.jpg","galleries_id":401622,"server_id":18,"link":"photo_6937985.html","width":130,"caption":"IMG 9758 800","height":87});
															thumbnails[8653435] = clik.newPhoto({"id":8653435,"src":"IMG_0609_800_thumb.JPG","galleries_id":456830,"server_id":35,"link":"photo_8653435.html","width":130,"caption":"IMG 0609 800","height":85});
															thumbnails[2487893] = clik.newPhoto({"id":2487893,"src":"Winter Mountains in Ireland _thumb.jpg","galleries_id":401592,"server_id":18,"link":"photo_2487893.html","width":130,"caption":"Winter Mountains in Ireland ","height":86});
															thumbnails[3356949] = clik.newPhoto({"id":3356949,"src":"compilation3b800b_thumb.jpg","galleries_id":401621,"server_id":18,"link":"photo_3356949.html","width":130,"caption":"Mountain Landscapes","height":42});
															thumbnails[3356951] = clik.newPhoto({"id":3356951,"src":"img_0088a_thumb.jpg","galleries_id":293620,"server_id":18,"link":"photo_3356951.html","width":130,"caption":"Autumn Skies","height":87});
															thumbnails[3426875] = clik.newPhoto({"id":3426875,"src":"img_9572_800_thumb.jpg","galleries_id":155796,"server_id":18,"link":"photo_3426875.html","width":130,"caption":"Scotch Argus (Erebia aethiops)","height":98});
															thumbnails[8653436] = clik.newPhoto({"id":8653436,"src":"IMG_0620_800_thumb.JPG","galleries_id":456830,"server_id":35,"link":"photo_8653436.html","width":130,"caption":"IMG 0620 800","height":80});
															thumbnails[3357640] = clik.newPhoto({"id":3357640,"src":"img_1969_combined_800_thumb.jpg","galleries_id":401621,"server_id":18,"link":"photo_3357640.html","width":130,"caption":"The Clouds that Made the Picture","height":87});
															thumbnails[3402922] = clik.newPhoto({"id":3402922,"src":"img_0090a_thumb.jpg","galleries_id":293620,"server_id":18,"link":"photo_3402922.html","width":130,"caption":"Autumn Skies II","height":157});
															thumbnails[5199407] = clik.newPhoto({"id":5199407,"src":"04_April_2_thumb.jpg","galleries_id":401623,"server_id":18,"link":"photo_5199407.html","width":130,"caption":"Staffin Island Light I","height":87});
															thumbnails[6937987] = clik.newPhoto({"id":6937987,"src":"IMG_9780_788_thumb.jpg","galleries_id":293619,"server_id":18,"link":"photo_6937987.html","width":130,"caption":"IMG 9780 788","height":88});
															thumbnails[8653437] = clik.newPhoto({"id":8653437,"src":"IMG_0632a_800_thumb.JPG","galleries_id":456830,"server_id":35,"link":"photo_8653437.html","width":130,"caption":"IMG 0632a 800","height":87});
															thumbnails[3356954] = clik.newPhoto({"id":3356954,"src":"img_2432_3f_thumb.jpg","galleries_id":293620,"server_id":18,"link":"photo_3356954.html","width":130,"caption":"Autumnal Skies","height":83});
															thumbnails[3357641] = clik.newPhoto({"id":3357641,"src":"img_2136_800_thumb.jpg","galleries_id":401621,"server_id":18,"link":"photo_3357641.html","width":130,"caption":"Lochan na h'Achlaise","height":61});
															thumbnails[5235556] = clik.newPhoto({"id":5235556,"src":"IMG_7938_thumb.jpg","galleries_id":401623,"server_id":18,"link":"photo_5235556.html","width":130,"caption":"Staffin Island Light II","height":88});
															thumbnails[6937988] = clik.newPhoto({"id":6937988,"src":"IMG_9786_800_thumb.jpg","galleries_id":156174,"server_id":18,"link":"photo_6937988.html","width":130,"caption":"IMG 9786 800","height":87});
															thumbnails[8653439] = clik.newPhoto({"id":8653439,"src":"IMG_0642_h800_thumb.JPG","galleries_id":456830,"server_id":35,"link":"photo_8653439.html","width":130,"caption":"IMG 0642 h800","height":178});
															thumbnails[3408591] = clik.newPhoto({"id":3408591,"src":"img_0810_800_thumb.jpg","galleries_id":293620,"server_id":18,"link":"photo_3408591.html","width":130,"caption":"Sunrise Splendor","height":85});
															thumbnails[8653440] = clik.newPhoto({"id":8653440,"src":"IMG_0647_800_thumb.JPG","galleries_id":456830,"server_id":35,"link":"photo_8653440.html","width":130,"caption":"IMG 0647 800","height":87});
															thumbnails[3408592] = clik.newPhoto({"id":3408592,"src":"img_2414a_800_thumb.jpg","galleries_id":293620,"server_id":18,"link":"photo_3408592.html","width":130,"caption":"November Sunrise","height":74});
															thumbnails[6937990] = clik.newPhoto({"id":6937990,"src":"IMG_9808_800_thumb.jpg","galleries_id":155796,"server_id":18,"link":"photo_6937990.html","width":130,"caption":"IMG 9808 800","height":87});
															thumbnails[8653441] = clik.newPhoto({"id":8653441,"src":"IMG_0667_800_thumb.JPG","galleries_id":456830,"server_id":35,"link":"photo_8653441.html","width":130,"caption":"IMG 0667 800","height":87});
															thumbnails[3408593] = clik.newPhoto({"id":3408593,"src":"playing5_010f_thumb.jpg","galleries_id":293620,"server_id":18,"link":"photo_3408593.html","width":130,"caption":"Autumnal Golden Light","height":112});
															thumbnails[6938005] = clik.newPhoto({"id":6938005,"src":"IMG_9606_800_thumb.jpg","galleries_id":401622,"server_id":18,"link":"photo_6938005.html","width":130,"caption":"IMG 9606 800","height":87});
															thumbnails[8653442] = clik.newPhoto({"id":8653442,"src":"IMG_0671_800_thumb.JPG","galleries_id":456830,"server_id":35,"link":"photo_8653442.html","width":130,"caption":"IMG 0671 800","height":87});
															thumbnails[8653443] = clik.newPhoto({"id":8653443,"src":"IMG_0679_800_thumb.JPG","galleries_id":156174,"server_id":35,"link":"photo_8653443.html","width":130,"caption":"IMG 0679 800","height":90});
															thumbnails[6938007] = clik.newPhoto({"id":6938007,"src":"IMG_9754_800_thumb.jpg","galleries_id":401622,"server_id":18,"link":"photo_6938007.html","width":130,"caption":"IMG 9754 800","height":87});
															thumbnails[8653444] = clik.newPhoto({"id":8653444,"src":"IMG_0707_800_thumb.JPG","galleries_id":456830,"server_id":35,"link":"photo_8653444.html","width":130,"caption":"IMG 0707 800","height":58});
															thumbnails[8653445] = clik.newPhoto({"id":8653445,"src":"IMG_0710a_800_thumb.JPG","galleries_id":456830,"server_id":35,"link":"photo_8653445.html","width":130,"caption":"IMG 0710a 800","height":35});
															thumbnails[8653446] = clik.newPhoto({"id":8653446,"src":"IMG_0723_800_thumb.JPG","galleries_id":456833,"server_id":35,"link":"photo_8653446.html","width":130,"caption":"IMG 0723 800","height":73});
															thumbnails[3426877] = clik.newPhoto({"id":3426877,"src":"img_9872_800[1]_thumb.jpg","galleries_id":155796,"server_id":18,"link":"photo_3426877.html","width":130,"caption":"Common Darter (Sympetrum striolatum)","height":115});
															thumbnails[8653447] = clik.newPhoto({"id":8653447,"src":"IMG_0740_800_thumb.JPG","galleries_id":456833,"server_id":35,"link":"photo_8653447.html","width":130,"caption":"IMG 0740 800","height":49});
															thumbnails[8653448] = clik.newPhoto({"id":8653448,"src":"IMG_0746_800_thumb.JPG","galleries_id":156174,"server_id":35,"link":"photo_8653448.html","width":130,"caption":"IMG 0746 800","height":87});
															thumbnails[6938662] = clik.newPhoto({"id":6938662,"src":"IMG_9291_800_thumb.jpg","galleries_id":401622,"server_id":18,"link":"photo_6938662.html","width":130,"caption":"IMG 9291 800","height":87});
															thumbnails[8653449] = clik.newPhoto({"id":8653449,"src":"IMG_0747_800_thumb.JPG","galleries_id":456833,"server_id":35,"link":"photo_8653449.html","width":130,"caption":"IMG 0747 800","height":87});
															thumbnails[6938663] = clik.newPhoto({"id":6938663,"src":"IMG_9328_800_thumb.jpg","galleries_id":155796,"server_id":18,"link":"photo_6938663.html","width":130,"caption":"IMG 9328 800","height":87});
															thumbnails[6938664] = clik.newPhoto({"id":6938664,"src":"IMG_9331_800_thumb.jpg","galleries_id":155796,"server_id":18,"link":"photo_6938664.html","width":130,"caption":"IMG 9331 800","height":87});
															thumbnails[8653450] = clik.newPhoto({"id":8653450,"src":"IMG_0785_800_thumb.JPG","galleries_id":456833,"server_id":35,"link":"photo_8653450.html","width":130,"caption":"IMG 0785 800","height":87});
															thumbnails[6938665] = clik.newPhoto({"id":6938665,"src":"IMG_9348_800_thumb.jpg","galleries_id":401633,"server_id":18,"link":"photo_6938665.html","width":130,"caption":"IMG 9348 800","height":79});
															thumbnails[8653451] = clik.newPhoto({"id":8653451,"src":"IMG_0792_h800_thumb.JPG","galleries_id":456833,"server_id":35,"link":"photo_8653451.html","width":130,"caption":"IMG 0792 h800","height":194});
															thumbnails[8653452] = clik.newPhoto({"id":8653452,"src":"IMG_0793a_800_thumb.JPG","galleries_id":456833,"server_id":35,"link":"photo_8653452.html","width":130,"caption":"IMG 0793a 800","height":51});
															thumbnails[8653453] = clik.newPhoto({"id":8653453,"src":"IMG_0797_800_thumb.JPG","galleries_id":456833,"server_id":35,"link":"photo_8653453.html","width":130,"caption":"IMG 0797 800","height":65});
															thumbnails[8653454] = clik.newPhoto({"id":8653454,"src":"IMG_0800_800_thumb.JPG","galleries_id":456833,"server_id":35,"link":"photo_8653454.html","width":130,"caption":"IMG 0800 800","height":64});
															thumbnails[8653455] = clik.newPhoto({"id":8653455,"src":"IMG_0805_800_thumb.JPG","galleries_id":456833,"server_id":35,"link":"photo_8653455.html","width":130,"caption":"IMG 0805 800","height":60});
															thumbnails[3426867] = clik.newPhoto({"id":3426867,"src":"img_2006_800[1]_thumb.jpg","galleries_id":155796,"server_id":18,"link":"photo_3426867.html","width":130,"caption":"Red Deer (Cervus elaphus)","height":87});
															thumbnails[8653456] = clik.newPhoto({"id":8653456,"src":"IMG_0807_800_thumb.JPG","galleries_id":456833,"server_id":35,"link":"photo_8653456.html","width":130,"caption":"IMG 0807 800","height":69});
															thumbnails[8653457] = clik.newPhoto({"id":8653457,"src":"IMG_0813_800_thumb.JPG","galleries_id":456833,"server_id":35,"link":"photo_8653457.html","width":130,"caption":"IMG 0813 800","height":74});
															thumbnails[8653458] = clik.newPhoto({"id":8653458,"src":"IMG_1084_800_thumb.JPG","galleries_id":401592,"server_id":35,"link":"photo_8653458.html","width":130,"caption":"IMG 1084 800","height":92});
															thumbnails[8653459] = clik.newPhoto({"id":8653459,"src":"IMG_1202_h800_thumb.JPG","galleries_id":293619,"server_id":35,"link":"photo_8653459.html","width":130,"caption":"IMG 1202 h800","height":146});
															thumbnails[8653460] = clik.newPhoto({"id":8653460,"src":"IMG_1410_800_thumb.JPG","galleries_id":456829,"server_id":35,"link":"photo_8653460.html","width":130,"caption":"IMG 1410 800","height":98});
															thumbnails[8653461] = clik.newPhoto({"id":8653461,"src":"IMG_1648_h800_thumb.JPG","galleries_id":401593,"server_id":35,"link":"photo_8653461.html","width":130,"caption":"IMG 1648 h800","height":172});
															thumbnails[8653462] = clik.newPhoto({"id":8653462,"src":"IMG_1667_800_thumb.JPG","galleries_id":401593,"server_id":35,"link":"photo_8653462.html","width":130,"caption":"IMG 1667 800","height":88});
															thumbnails[8653463] = clik.newPhoto({"id":8653463,"src":"IMG_1796_h800_thumb.JPG","galleries_id":211118,"server_id":35,"link":"photo_8653463.html","width":130,"caption":"IMG 1796 h800","height":172});
															thumbnails[8653464] = clik.newPhoto({"id":8653464,"src":"IMG_1805_800_thumb.JPG","galleries_id":456830,"server_id":35,"link":"photo_8653464.html","width":130,"caption":"IMG 1805 800","height":98});
															thumbnails[8653465] = clik.newPhoto({"id":8653465,"src":"IMG_1947_800_thumb.JPG","galleries_id":456830,"server_id":35,"link":"photo_8653465.html","width":130,"caption":"IMG 1947 800","height":88});
															thumbnails[8653466] = clik.newPhoto({"id":8653466,"src":"IMG_2026_800_thumb.JPG","galleries_id":456830,"server_id":35,"link":"photo_8653466.html","width":130,"caption":"IMG 2026 800","height":78});
															thumbnails[6938653] = clik.newPhoto({"id":6938653,"src":"IMG_9260a_800_thumb.jpg","galleries_id":156174,"server_id":18,"link":"photo_6938653.html","width":130,"caption":"IMG 9260a 800","height":87});
															thumbnails[8653467] = clik.newPhoto({"id":8653467,"src":"IMG_2055_800_thumb.JPG","galleries_id":456830,"server_id":35,"link":"photo_8653467.html","width":130,"caption":"IMG 2055 800","height":98});
															thumbnails[6938654] = clik.newPhoto({"id":6938654,"src":"IMG_9260_800_thumb.jpg","galleries_id":156174,"server_id":18,"link":"photo_6938654.html","width":130,"caption":"IMG 9260 800","height":130});
															thumbnails[8653468] = clik.newPhoto({"id":8653468,"src":"IMG_2148_800_thumb.JPG","galleries_id":456830,"server_id":35,"link":"photo_8653468.html","width":130,"caption":"IMG 2148 800","height":52});
															thumbnails[6938655] = clik.newPhoto({"id":6938655,"src":"IMG_9261_800_thumb.jpg","galleries_id":156174,"server_id":18,"link":"photo_6938655.html","width":130,"caption":"IMG 9261 800","height":95});
															thumbnails[8653469] = clik.newPhoto({"id":8653469,"src":"IMG_2166_800_thumb.JPG","galleries_id":456830,"server_id":35,"link":"photo_8653469.html","width":130,"caption":"IMG 2166 800","height":81});
															thumbnails[6938656] = clik.newPhoto({"id":6938656,"src":"IMG_9268_800_thumb.jpg","galleries_id":156174,"server_id":18,"link":"photo_6938656.html","width":130,"caption":"IMG 9268 800","height":87});
															thumbnails[8653470] = clik.newPhoto({"id":8653470,"src":"IMG_2303_800_thumb.JPG","galleries_id":456833,"server_id":35,"link":"photo_8653470.html","width":130,"caption":"IMG 2303 800","height":99});
															thumbnails[6938657] = clik.newPhoto({"id":6938657,"src":"IMG_9269_800_thumb.jpg","galleries_id":156174,"server_id":18,"link":"photo_6938657.html","width":130,"caption":"IMG 9269 800","height":87});
															thumbnails[8653471] = clik.newPhoto({"id":8653471,"src":"IMG_2323_h800_thumb.JPG","galleries_id":456833,"server_id":35,"link":"photo_8653471.html","width":130,"caption":"IMG 2323 h800","height":172});
															thumbnails[6938658] = clik.newPhoto({"id":6938658,"src":"IMG_9271_800_thumb.jpg","galleries_id":156174,"server_id":18,"link":"photo_6938658.html","width":130,"caption":"IMG 9271 800","height":87});
															thumbnails[8653472] = clik.newPhoto({"id":8653472,"src":"IMG_2333_800_thumb.JPG","galleries_id":456833,"server_id":35,"link":"photo_8653472.html","width":130,"caption":"IMG 2333 800","height":63});
															thumbnails[6938659] = clik.newPhoto({"id":6938659,"src":"IMG_9278_800_thumb.jpg","galleries_id":156174,"server_id":18,"link":"photo_6938659.html","width":130,"caption":"IMG 9278 800","height":87});
															thumbnails[8653473] = clik.newPhoto({"id":8653473,"src":"IMG_2370_800_thumb.JPG","galleries_id":456833,"server_id":35,"link":"photo_8653473.html","width":130,"caption":"IMG 2370 800","height":98});
															thumbnails[8653475] = clik.newPhoto({"id":8653475,"src":"IMG_2530_800_thumb.JPG","galleries_id":456833,"server_id":35,"link":"photo_8653475.html","width":130,"caption":"IMG 2530 800","height":98});
															thumbnails[8653476] = clik.newPhoto({"id":8653476,"src":"IMG_2946_h800_thumb.JPG","galleries_id":156174,"server_id":35,"link":"photo_8653476.html","width":130,"caption":"IMG 2946 h800","height":172});
															thumbnails[8653477] = clik.newPhoto({"id":8653477,"src":"Midnight_sun_pano_thumb.JPG","galleries_id":456830,"server_id":35,"link":"photo_8653477.html","width":130,"caption":"Midnight sun pano","height":49});
															thumbnails[8653478] = clik.newPhoto({"id":8653478,"src":"Panorama3_thumb.JPG","galleries_id":456830,"server_id":35,"link":"photo_8653478.html","width":130,"caption":"Lofoten Area","height":38});
															thumbnails[8653479] = clik.newPhoto({"id":8653479,"src":"Panorama_1_thumb.JPG","galleries_id":456830,"server_id":35,"link":"photo_8653479.html","width":130,"caption":"Leknes, Lofoten","height":62});
															thumbnails[8653492] = clik.newPhoto({"id":8653492,"src":"IMG_0052_800_thumb.JPG","galleries_id":456828,"server_id":35,"link":"photo_8653492.html","width":130,"caption":"IMG 0052 800","height":87});
															thumbnails[8653493] = clik.newPhoto({"id":8653493,"src":"IMG_1406_h800_thumb.JPG","galleries_id":456829,"server_id":35,"link":"photo_8653493.html","width":130,"caption":"IMG 1406 h800","height":172});
															thumbnails[8653494] = clik.newPhoto({"id":8653494,"src":"IMG_1459_800_thumb.JPG","galleries_id":456832,"server_id":35,"link":"photo_8653494.html","width":130,"caption":"IMG 1459 800","height":98});
															thumbnails[8653495] = clik.newPhoto({"id":8653495,"src":"IMG_2361_800_thumb.JPG","galleries_id":456833,"server_id":35,"link":"photo_8653495.html","width":130,"caption":"IMG 2361 800","height":130});
															thumbnails[8653496] = clik.newPhoto({"id":8653496,"src":"IMG_2948_800_thumb.JPG","galleries_id":156174,"server_id":35,"link":"photo_8653496.html","width":130,"caption":"IMG 2948 800","height":98});
															thumbnails[5199404] = clik.newPhoto({"id":5199404,"src":"01_January_thumb.jpg","galleries_id":401623,"server_id":18,"link":"photo_5199404.html","width":130,"caption":"Loch Rannoch & Schiehallion","height":87});
															thumbnails[6937960] = clik.newPhoto({"id":6937960,"src":"IMG_9536_800_D97B81B7-1D09-001F-990EEC40EBFA6159_thumb.jpg","galleries_id":401622,"server_id":18,"link":"photo_6937960.html","width":130,"caption":"IMG 9536 800","height":87});
															thumbnails[2398939] = clik.newPhoto({"id":2398939,"src":"IMG_4214_thumb.JPG","galleries_id":401633,"server_id":18,"link":"photo_2398939.html","width":130,"caption":"Loch Rannoch Fog I","height":80});
															thumbnails[2398940] = clik.newPhoto({"id":2398940,"src":"IMG_4216_thumb.JPG","galleries_id":401633,"server_id":18,"link":"photo_2398940.html","width":130,"caption":"Loch Rannoch Fog II","height":57});
															thumbnails[2398941] = clik.newPhoto({"id":2398941,"src":"IMG_4217_thumb.JPG","galleries_id":401633,"server_id":18,"link":"photo_2398941.html","width":130,"caption":"Loch Rannoch Fog III","height":57});
															thumbnails[5199411] = clik.newPhoto({"id":5199411,"src":"08_Augusv2t_thumb.jpg","galleries_id":401623,"server_id":18,"link":"photo_5199411.html","width":130,"caption":"Loch Rannoch Sunset I","height":87});
															thumbnails[5199409] = clik.newPhoto({"id":5199409,"src":"06_June_thumb.jpg","galleries_id":401623,"server_id":18,"link":"photo_5199409.html","width":130,"caption":"Loch Rannoch Sunset II","height":87});
															thumbnails[3274182] = clik.newPhoto({"id":3274182,"src":"img_6916straight_800_thumb.jpg","galleries_id":401592,"server_id":18,"link":"photo_3274182.html","width":130,"caption":"Ring of Kerry Sunset","height":43});
															thumbnails[6938652] = clik.newPhoto({"id":6938652,"src":"IMG_8939_800_thumb.jpg","galleries_id":401623,"server_id":18,"link":"photo_6938652.html","width":130,"caption":"Loch Rannoch Sunset III","height":54});
															thumbnails[2409230] = clik.newPhoto({"id":2409230,"src":"IMG_4242v2_thumb.jpg","galleries_id":401633,"server_id":18,"link":"photo_2409230.html","width":130,"caption":"Insignificance I","height":87});
															thumbnails[3357546] = clik.newPhoto({"id":3357546,"src":"img_6936_800_thumb.jpg","galleries_id":401592,"server_id":18,"link":"photo_3357546.html","width":130,"caption":"Ring of Kerry Sunset II","height":78});
															thumbnails[2409227] = clik.newPhoto({"id":2409227,"src":"img_2297_800[1]_thumb.jpg","galleries_id":155796,"server_id":18,"link":"photo_2409227.html","width":130,"caption":"Stonechat (Saxicola torquata)","height":91});
															thumbnails[3356950] = clik.newPhoto({"id":3356950,"src":"file0017a_thumb.jpg","galleries_id":401592,"server_id":18,"link":"photo_3356950.html","width":130,"caption":"Irish Rays of Light","height":78});
															thumbnails[6937968] = clik.newPhoto({"id":6937968,"src":"IMG_9633_800_thumb.jpg","galleries_id":401622,"server_id":18,"link":"photo_6937968.html","width":130,"caption":"IMG 9633 800","height":87});
															thumbnails[2409228] = clik.newPhoto({"id":2409228,"src":"img_2612_3a_thumb.jpg","galleries_id":401633,"server_id":18,"link":"photo_2409228.html","width":130,"caption":"Hoar Frost - Christmas Day 2005","height":179});
															thumbnails[6937963] = clik.newPhoto({"id":6937963,"src":"IMG_9582_800_thumb.jpg","galleries_id":401622,"server_id":18,"link":"photo_6937963.html","width":130,"caption":"IMG 9582 800","height":194});
															thumbnails[6937966] = clik.newPhoto({"id":6937966,"src":"IMG_9590_800_thumb.jpg","galleries_id":401622,"server_id":18,"link":"photo_6937966.html","width":130,"caption":"IMG 9590 800","height":197});
															thumbnails[6937967] = clik.newPhoto({"id":6937967,"src":"IMG_9609_800_thumb.jpg","galleries_id":401633,"server_id":18,"link":"photo_6937967.html","width":130,"caption":"IMG 9609 800","height":179});
															thumbnails[6937969] = clik.newPhoto({"id":6937969,"src":"IMG_9642_800_thumb.jpg","galleries_id":401622,"server_id":18,"link":"photo_6937969.html","width":130,"caption":"IMG 9642 800","height":194});
															thumbnails[6937970] = clik.newPhoto({"id":6937970,"src":"IMG_9646_800_thumb.jpg","galleries_id":401622,"server_id":18,"link":"photo_6937970.html","width":130,"caption":"IMG 9646 800","height":194});
															thumbnails[2409229] = clik.newPhoto({"id":2409229,"src":"IMG_4237v2_thumb.jpg","galleries_id":401633,"server_id":18,"link":"photo_2409229.html","width":130,"caption":"Insignificance II","height":184});
															thumbnails[6937986] = clik.newPhoto({"id":6937986,"src":"IMG_9766_800_thumb.jpg","galleries_id":401633,"server_id":18,"link":"photo_6937986.html","width":130,"caption":"IMG 9766 800","height":194});
															thumbnails[6937989] = clik.newPhoto({"id":6937989,"src":"IMG_9801_800_thumb.jpg","galleries_id":156174,"server_id":18,"link":"photo_6937989.html","width":130,"caption":"IMG 9801 800","height":194});
															thumbnails[2398942] = clik.newPhoto({"id":2398942,"src":"IMG_44061_thumb.jpg","galleries_id":401633,"server_id":18,"link":"photo_2398942.html","width":130,"caption":"Orcadian Sunset","height":179});
															thumbnails[3402967] = clik.newPhoto({"id":3402967,"src":"img_8620ab_800_thumb.jpg","galleries_id":401633,"server_id":18,"link":"photo_3402967.html","width":130,"caption":"Mock Mirage Sunset II","height":194});
															thumbnails[2409223] = clik.newPhoto({"id":2409223,"src":"img_1359layered_800_2_thumb.jpg","galleries_id":401593,"server_id":18,"link":"photo_2409223.html","width":130,"caption":"The Last Sunset of 2006","height":89});
															thumbnails[3357583] = clik.newPhoto({"id":3357583,"src":"img_1274layered_800_thumb.jpg","galleries_id":401593,"server_id":18,"link":"photo_3357583.html","width":130,"caption":"Baltic Sunset","height":85});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[401590] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Landscapes","link":"gallery_401590.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"6937973,5235557,5235556,5235555,5199414,5199413,5199412,5199409,5199408,5199407,5199406,5199405,3408621,3402955,3356951,2398947,2398945,2398938,2398930","id":401590,"singleSection":false});				  						galleries[156174] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Patterns in Landscapes","link":"gallery_156174.html","maxRecords":0.0,"photoIDs":[2409482.0,3356953.0,6937988.0,8653443.0,8653448.0,6938653.0,6938654.0,6938655.0,6938656.0,6938657.0,6938658.0,6938659.0,8653476.0,8653496.0,6937989.0],"skipIndex":0,"section_code":"gallery","featured_images":"8653496,8653476,8653448,8653443,6938659,6938658,6938657,6938656,6938655,6938654","id":156174,"singleSection":false});				  						galleries[456832] = clik.newGallery({"parentGallery":401590,"usePopups":false,"title":"Denmark","link":"gallery_456832.html","maxRecords":0.0,"photoIDs":[8653494.0],"skipIndex":0,"section_code":"gallery","featured_images":8653494.0,"id":456832,"singleSection":false});				  						galleries[293620] = clik.newGallery({"parentGallery":401590,"usePopups":false,"title":"England","link":"gallery_293620.html","maxRecords":0.0,"photoIDs":[2398930.0,2398943.0,2398944.0,2398945.0,2398935.0,2398946.0,2398947.0,3356957.0,3426878.0,5199416.0,3356951.0,3402922.0,3356954.0,3408591.0,3408592.0,3408593.0],"skipIndex":0,"section_code":"gallery","featured_images":"3356951,2398947,2398945,2398930","id":293620,"singleSection":false});				  						galleries[456833] = clik.newGallery({"parentGallery":401590,"usePopups":false,"title":"Finland","link":"gallery_456833.html","maxRecords":0.0,"photoIDs":[8653446.0,8653447.0,8653449.0,8653450.0,8653451.0,8653452.0,8653453.0,8653454.0,8653455.0,8653456.0,8653457.0,8653470.0,8653471.0,8653472.0,8653473.0,8653475.0,8653495.0],"skipIndex":0,"section_code":"gallery","featured_images":"8653495,8653475,8653473,8653472,8653471,8653470,8653457,8653456,8653455,8653454","id":456833,"singleSection":false});				  						galleries[401592] = clik.newGallery({"parentGallery":401590,"usePopups":false,"title":"Ireland","link":"gallery_401592.html","maxRecords":0.0,"photoIDs":[8653408.0,2487893.0,8653458.0,3274182.0,3357546.0,3356950.0],"skipIndex":0,"section_code":"gallery","featured_images":"8653458,8653408,3357546,3356950,3274182,2487893","id":401592,"singleSection":false});				  						galleries[456829] = clik.newGallery({"parentGallery":401590,"usePopups":false,"title":"Netherlands","link":"gallery_456829.html","maxRecords":0.0,"photoIDs":[8653410.0,8653411.0,8653412.0,8653413.0,8653460.0,8653493.0],"skipIndex":0,"section_code":"gallery","featured_images":"8653493,8653460,8653413,8653412,8653411,8653410","id":456829,"singleSection":false});				  						galleries[456828] = clik.newGallery({"parentGallery":401590,"usePopups":false,"title":"Northern Ireland","link":"gallery_456828.html","maxRecords":0.0,"photoIDs":[8653409.0,8653492.0],"skipIndex":0,"section_code":"gallery","featured_images":"8653492,8653409","id":456828,"singleSection":false});				  						galleries[456830] = clik.newGallery({"parentGallery":401590,"usePopups":false,"title":"Norway","link":"gallery_456830.html","maxRecords":0.0,"photoIDs":[8653416.0,8653418.0,8653420.0,8653422.0,8653423.0,8653424.0,8653425.0,8653426.0,8653427.0,8653428.0,8653429.0,8653430.0,8653431.0,8653432.0,8653433.0,8653434.0,8653435.0,8653436.0,8653437.0,8653439.0,8653440.0,8653441.0,8653442.0,8653444.0,8653445.0,8653464.0,8653465.0,8653466.0,8653467.0,8653468.0,8653469.0,8653477.0,8653478.0,8653479.0],"skipIndex":0,"section_code":"gallery","featured_images":"8653479,8653478,8653477,8653469,8653468,8653467,8653466,8653465,8653464,8653445","id":456830,"singleSection":false});				  						galleries[401633] = clik.newGallery({"parentGallery":401590,"usePopups":false,"title":"Scotland I","link":"gallery_401633.html","maxRecords":0.0,"photoIDs":[3408621.0,2398931.0,2398938.0,6937973.0,5235557.0,3408624.0,2398936.0,6938006.0,6938651.0,6937972.0,6937974.0,3356958.0,3356952.0,6938665.0,2398939.0,2398940.0,2398941.0,2409230.0,2409228.0,6937967.0,2409229.0,6937986.0,2398942.0,3402967.0],"skipIndex":0,"section_code":"gallery","featured_images":"6937973,5235557,3408621,2398938","id":401633,"singleSection":false});				  						galleries[401621] = clik.newGallery({"parentGallery":401590,"usePopups":false,"title":"Scotland II","link":"gallery_401621.html","maxRecords":0.0,"photoIDs":[2409448.0,2398934.0,2398933.0,2398932.0,2413209.0,2487875.0,2487877.0,3356955.0,3356948.0,3356949.0,3357640.0,3357641.0],"skipIndex":0,"section_code":"gallery","featured_images":"3357641,3357640,3356955,3356949,3356948,2487877,2487875,2413209,2409448,2398934","id":401621,"singleSection":false});				  						galleries[401623] = clik.newGallery({"parentGallery":401590,"usePopups":false,"title":"Scotland III","link":"gallery_401623.html","maxRecords":0.0,"photoIDs":[5199405.0,5235555.0,5199406.0,5199410.0,5199412.0,5199413.0,5199414.0,5235524.0,5235525.0,5199408.0,5199407.0,5235556.0,5199404.0,5199411.0,5199409.0,6938652.0],"skipIndex":0,"section_code":"gallery","featured_images":"5235556,5235555,5199414,5199413,5199412,5199409,5199408,5199407,5199406,5199405","id":401623,"singleSection":false});				  						galleries[401622] = clik.newGallery({"parentGallery":401590,"usePopups":false,"title":"Scotland IV","link":"gallery_401622.html","maxRecords":0.0,"photoIDs":[6937961.0,6937962.0,6937964.0,6937965.0,6938661.0,6937971.0,6937975.0,6937976.0,6937977.0,6937978.0,6937979.0,6937981.0,6937982.0,6937983.0,6937984.0,6937985.0,6938005.0,6938007.0,6938662.0,6937960.0,6937968.0,6937963.0,6937966.0,6937969.0,6937970.0],"skipIndex":0,"section_code":"gallery","featured_images":"6938662,6938661,6938007,6938005,6937985,6937984,6937983,6937982,6937981,6937979","id":401622,"singleSection":false});				  						galleries[293619] = clik.newGallery({"parentGallery":401590,"usePopups":false,"title":"Scotland V","link":"gallery_293619.html","maxRecords":0.0,"photoIDs":[3408623.0,3408625.0,3426872.0,2409231.0,3426873.0,3357643.0,3402955.0,3402946.0,2398937.0,6937980.0,6937987.0,8653459.0],"skipIndex":0,"section_code":"gallery","featured_images":3402955.0,"id":293619,"singleSection":false});				  						galleries[401593] = clik.newGallery({"parentGallery":401590,"usePopups":false,"title":"Sweden","link":"gallery_401593.html","maxRecords":0.0,"photoIDs":[8653414.0,8653415.0,8653461.0,8653462.0,2409223.0,3357583.0],"skipIndex":0,"section_code":"gallery","featured_images":"8653462,8653461,8653415,8653414,3357583,2409223","id":401593,"singleSection":false});				  						galleries[211117] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Other","link":"gallery_211117.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"3357721,2487884,2409227","id":211117,"singleSection":false});				  						galleries[211118] = clik.newGallery({"parentGallery":211117,"usePopups":false,"title":"Orchids","link":"gallery_211118.html","maxRecords":0.0,"photoIDs":[2487881.0,2487882.0,2487883.0,2487884.0,2487878.0,2487880.0,2487885.0,3357722.0,2487887.0,3357717.0,3357723.0,3357720.0,8653463.0],"skipIndex":0,"section_code":"gallery","featured_images":2487884.0,"id":211118,"singleSection":false});				  						galleries[211119] = clik.newGallery({"parentGallery":211117,"usePopups":false,"title":"Other Flowers","link":"gallery_211119.html","maxRecords":0.0,"photoIDs":[2487888.0,2487889.0,2487891.0,5199415.0,3356960.0,3357718.0,3357719.0,3357721.0,3426871.0,3426870.0],"skipIndex":0,"section_code":"gallery","featured_images":3357721.0,"id":211119,"singleSection":false});				  						galleries[155796] = clik.newGallery({"parentGallery":211117,"usePopups":false,"title":"Fauna","link":"gallery_155796.html","maxRecords":0.0,"photoIDs":[3426881.0,3426874.0,3426875.0,6937990.0,3426877.0,6938663.0,6938664.0,3426867.0,2409227.0],"skipIndex":0,"section_code":"gallery","featured_images":2409227.0,"id":155796,"singleSection":false});				  						galleries[211124] = clik.newGallery({"parentGallery":211117,"usePopups":false,"title":"Fungi","link":"gallery_211124.html","maxRecords":0.0,"photoIDs":[3426866.0,3426876.0],"skipIndex":0,"section_code":"gallery","featured_images":"3426876,3426866","id":211124,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '3408621,2398931,5235555,6937973,5199406,5199412,5199413,5199407,5199409';
imageSets[2] = '3408621,2398930,5199405,5235555,2398938,6937973,2487884,2398945,5235557,5199406,5199412,5199413,3402955,2398947,5199414,5199408,3357721,3356951,5199407,5235556,5199409,2409227';
imageSets[3] = '6937973';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/aramok/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'www.clikpic.com/aramok/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/aramok/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/aramok/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/aramok/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/aramok/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/aramok/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/aramok/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/aramok/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/aramok/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/aramok/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/aramok/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/aramok/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/aramok/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/aramok/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/aramok/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/aramok/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/aramok/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/aramok/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/aramok/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/aramok/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/aramok/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/aramok/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/aramok/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/aramok/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 = 'Emma Taylor\'s Photographs: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.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="updateItemValues($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
		
		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" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="aramok@waitrose.com">';
					temp += '<input type="hidden" name="currency_code" value="GBP">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="aramok@waitrose.com">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

