window.thumbnails = {};
															thumbnails[543632] = clik.newPhoto({"id":543632,"src":"DSC_7994-8x12matte_sh-portrait-1_thumb.jpg","galleries_id":41119,"server_id":18,"link":"photo_543632.html","width":130,"caption":"Sand Patterns","height":195});
															thumbnails[542980] = clik.newPhoto({"id":542980,"src":"Buachaille_Etive_Mor_thumb.jpg","galleries_id":41115,"server_id":18,"link":"photo_542980.html","width":130,"caption":"Buachaille Etive Mor","height":86});
															thumbnails[542975] = clik.newPhoto({"id":542975,"src":"20080602-_D205968-Edit-matte240-18x9_thumb.jpg","galleries_id":41120,"server_id":18,"link":"photo_542975.html","width":130,"caption":"Rhumm from Laigh Bay","height":65});
															thumbnails[543690] = clik.newPhoto({"id":543690,"src":"DSC_2752-12x8matte_sh-2_thumb.jpg","galleries_id":41119,"server_id":18,"link":"photo_543690.html","width":130,"caption":"The Colours of Harris","height":86});
															thumbnails[543323] = clik.newPhoto({"id":543323,"src":"Horgabost_Beach_thumb.jpg","galleries_id":42124,"server_id":18,"link":"photo_543323.html","width":130,"caption":"Horgabost Beach","height":86});
															thumbnails[543287] = clik.newPhoto({"id":543287,"src":"Sundown_LaighBeach_thumb.jpg","galleries_id":41120,"server_id":18,"link":"photo_543287.html","width":130,"caption":"After Sunset","height":83});
															thumbnails[543358] = clik.newPhoto({"id":543358,"src":"Morning_Mist_ Tarbert_01_thumb.jpg","galleries_id":42124,"server_id":18,"link":"photo_543358.html","width":130,"caption":"Morning mist 1","height":80});
															thumbnails[542830] = clik.newPhoto({"id":542830,"src":"Traigh_Rosamol_thumb.jpg","galleries_id":42087,"server_id":18,"link":"photo_542830.html","width":130,"caption":"Traigh Rosamol","height":86});
															thumbnails[543302] = clik.newPhoto({"id":543302,"src":"Wild_Garlic_thumb.jpg","galleries_id":41120,"server_id":18,"link":"photo_543302.html","width":130,"caption":"Wild Garlic","height":85});
															thumbnails[543384] = clik.newPhoto({"id":543384,"src":"_DSC2683-combo-12x8matte-sh-4_thumb.jpg","galleries_id":41119,"server_id":18,"link":"photo_543384.html","width":130,"caption":"Rosamol Beach","height":195});
															thumbnails[6657649] = clik.newPhoto({"id":6657649,"src":"DSC_8082-Edit-2-Edit-2-combo-12x8matte-sh-Edit-2-3_thumb.jpg","galleries_id":41119,"server_id":18,"link":"photo_6657649.html","width":130,"caption":"Luskentire shapes and tones","height":87});
															thumbnails[543697] = clik.newPhoto({"id":543697,"src":"20060505_DSC_7969-Edit-Edit-2_Harris_011-5_thumb.jpg","galleries_id":41119,"server_id":18,"link":"photo_543697.html","width":130,"caption":"Sunset Sielebost Bay","height":89});
															thumbnails[543748] = clik.newPhoto({"id":543748,"src":"Fishing_Nets_thumb.jpg","galleries_id":42087,"server_id":18,"link":"photo_543748.html","width":130,"caption":"Fishing Net","height":86});
															thumbnails[545548] = clik.newPhoto({"id":545548,"src":"Black_Rock_Cottage_thumb.jpg","galleries_id":41115,"server_id":18,"link":"photo_545548.html","width":130,"caption":"Blackrock Cottage","height":86});
															thumbnails[543733] = clik.newPhoto({"id":543733,"src":"Traigh_Scarasta_thumb.jpg","galleries_id":42124,"server_id":18,"link":"photo_543733.html","width":130,"caption":"Scarasta Beach","height":85});
															thumbnails[545542] = clik.newPhoto({"id":545542,"src":"Abandoned_Dwelling_thumb.jpg","galleries_id":42124,"server_id":18,"link":"photo_545542.html","width":130,"caption":"Abandoned","height":86});
															thumbnails[545608] = clik.newPhoto({"id":545608,"src":"Sand_Pattern_01_thumb.jpg","galleries_id":42089,"server_id":18,"link":"photo_545608.html","width":130,"caption":"Crashing Wave","height":85});
															thumbnails[543702] = clik.newPhoto({"id":543702,"src":"_D205673-combo_12x8matte_sh-6_thumb.jpg","galleries_id":41119,"server_id":18,"link":"photo_543702.html","width":130,"caption":"Colours and shapes","height":87});
															thumbnails[543754] = clik.newPhoto({"id":543754,"src":"Glen_Torridon_thumb.jpg","galleries_id":42087,"server_id":18,"link":"photo_543754.html","width":130,"caption":"Glen Torridon","height":83});
															thumbnails[543724] = clik.newPhoto({"id":543724,"src":"20100518_Harris_60__DSC5335-12x8matte-sh-7_thumb.jpg","galleries_id":41119,"server_id":18,"link":"photo_543724.html","width":130,"caption":"Colours and Shapes","height":87});
															thumbnails[543762] = clik.newPhoto({"id":543762,"src":"Kinlochleven_Woods_thumb.jpg","galleries_id":42087,"server_id":18,"link":"photo_543762.html","width":130,"caption":"Autumn Woods","height":87});
															thumbnails[543713] = clik.newPhoto({"id":543713,"src":"20090514__DSC2544-Edit-12x8matte_Exhbn_277-8_thumb.jpg","galleries_id":41119,"server_id":18,"link":"photo_543713.html","width":130,"caption":"Luskentyre Bay","height":87});
															thumbnails[543787] = clik.newPhoto({"id":543787,"src":"Sand_Pattern_thumb.jpg","galleries_id":42087,"server_id":18,"link":"photo_543787.html","width":130,"caption":"Sand Patterns","height":84});
															thumbnails[550929] = clik.newPhoto({"id":550929,"src":"20090507__DSC2325-Edit-4-12x8matte-combo_Harris_044-9_thumb.jpg","galleries_id":41119,"server_id":18,"link":"photo_550929.html","width":130,"caption":"Stormy Seas","height":87});
															thumbnails[543793] = clik.newPhoto({"id":543793,"src":"Water_Movement_01_thumb.jpg","galleries_id":42087,"server_id":18,"link":"photo_543793.html","width":130,"caption":"Wave Motion","height":87});
															thumbnails[8253378] = clik.newPhoto({"id":8253378,"src":"_DSC7197-1_thumb.jpg","galleries_id":42089,"server_id":18,"link":"photo_8253378.html","width":130,"caption":"Glass and flowers no.1","height":86});
															thumbnails[543730] = clik.newPhoto({"id":543730,"src":"20100518_Harris_57__DSC5332-12x8matte_sh-10_thumb.jpg","galleries_id":41119,"server_id":18,"link":"photo_543730.html","width":130,"caption":"Colours and Shapes","height":87});
															thumbnails[7873567] = clik.newPhoto({"id":7873567,"src":"_DSC484362010Arvreck_Castle_thumb.jpg","galleries_id":415235,"server_id":18,"link":"photo_7873567.html","width":130,"caption":"Arvreck Castle","height":86});
															thumbnails[6243777] = clik.newPhoto({"id":6243777,"src":"_DSC4268-Edit-combo-12x8matte-sh-Ice_patterns_thumb.jpg","galleries_id":42089,"server_id":18,"link":"photo_6243777.html","width":130,"caption":"Ice_patterns_02","height":87});
															thumbnails[3703196] = clik.newPhoto({"id":3703196,"src":"20081028-Derwent_water-12x8-glossy300_thumb.jpg","galleries_id":226262,"server_id":18,"link":"photo_3703196.html","width":130,"caption":"Evening light Derwent Water","height":84});
															thumbnails[1270609] = clik.newPhoto({"id":1270609,"src":"20070308-Bodium_Castle_2_DSC_9534_thumb.jpg","galleries_id":90344,"server_id":18,"link":"photo_1270609.html","width":130,"caption":"Bodium Castle","height":87});
															thumbnails[543373] = clik.newPhoto({"id":543373,"src":"Morning_Mist_Tarbert_02_thumb.jpg","galleries_id":42124,"server_id":18,"link":"photo_543373.html","width":130,"caption":"Morning Mist 2","height":86});
															thumbnails[542996] = clik.newPhoto({"id":542996,"src":"Chathati_Strand_thumb.jpg","galleries_id":41116,"server_id":18,"link":"photo_542996.html","width":130,"caption":"Stack Beach","height":86});
															thumbnails[550963] = clik.newPhoto({"id":550963,"src":"Black_Cullins_thumb.jpg","galleries_id":41123,"server_id":18,"link":"photo_550963.html","width":130,"caption":"Black Cullins","height":86});
															thumbnails[545644] = clik.newPhoto({"id":545644,"src":"Rock_Study_07_thumb.jpg","galleries_id":41118,"server_id":18,"link":"photo_545644.html","width":130,"caption":"Rock Study 1","height":196});
															thumbnails[545710] = clik.newPhoto({"id":545710,"src":"Water-200_thumb.jpg","galleries_id":41125,"server_id":18,"link":"photo_545710.html","width":130,"caption":"Water 1","height":84});
															thumbnails[555283] = clik.newPhoto({"id":555283,"src":"20100515_Harris_11__DSC5252-Edit-12x8matte-sh-11_thumb.jpg","galleries_id":41119,"server_id":18,"link":"photo_555283.html","width":130,"caption":"Colours and Shapes","height":86});
															thumbnails[7874254] = clik.newPhoto({"id":7874254,"src":"_DSC4809-Edit-222010_thumb.jpg","galleries_id":415235,"server_id":18,"link":"photo_7874254.html","width":130,"caption":"Cam Loch","height":86});
															thumbnails[7874271] = clik.newPhoto({"id":7874271,"src":"_DSC4813-Cam_loch_thumb.jpg","galleries_id":415235,"server_id":18,"link":"photo_7874271.html","width":130,"caption":"Cam Loch","height":86});
															thumbnails[542971] = clik.newPhoto({"id":542971,"src":"20090520__DSC2951-Edit-2-12x8matte-combo-Edit-Edit_Harris_062-12_thumb.jpg","galleries_id":41119,"server_id":18,"link":"photo_542971.html","width":130,"caption":" The Little Minch","height":87});
															thumbnails[542843] = clik.newPhoto({"id":542843,"src":"FrostY_Morning_thumb.jpg","galleries_id":42087,"server_id":18,"link":"photo_542843.html","width":130,"caption":"Frosty morning","height":86});
															thumbnails[3703199] = clik.newPhoto({"id":3703199,"src":"20090220-_DSC1914-Edit-Was-12x8matte_thumb.jpg","galleries_id":226262,"server_id":18,"link":"photo_3703199.html","width":130,"caption":"Wast Water","height":86});
															thumbnails[7874470] = clik.newPhoto({"id":7874470,"src":"_DSC4836-Edit-combo-12x8matte-sh52010_thumb.jpg","galleries_id":415235,"server_id":18,"link":"photo_7874470.html","width":130,"caption":"Loch Assnt","height":87});
															thumbnails[7874385] = clik.newPhoto({"id":7874385,"src":"_DSC4827-as-Smart-Object-142010_thumb.jpg","galleries_id":415235,"server_id":18,"link":"photo_7874385.html","width":130,"caption":"","height":65});
															thumbnails[7908317] = clik.newPhoto({"id":7908317,"src":"_DSC4962-Edit-1_thumb.jpg","galleries_id":415235,"server_id":18,"link":"photo_7908317.html","width":130,"caption":"Reeds","height":86});
															thumbnails[3703201] = clik.newPhoto({"id":3703201,"src":"20081028-Buttermere-12x8-glossy240_thumb.jpg","galleries_id":226262,"server_id":18,"link":"photo_3703201.html","width":130,"caption":"Reflections Lake Buttermere","height":84});
															thumbnails[545559] = clik.newPhoto({"id":545559,"src":"Island_tree_thumb.jpg","galleries_id":41115,"server_id":18,"link":"photo_545559.html","width":130,"caption":"Black Mount and Island Tree","height":84});
															thumbnails[545638] = clik.newPhoto({"id":545638,"src":"Woodland_03_thumb.jpg","galleries_id":42089,"server_id":18,"link":"photo_545638.html","width":130,"caption":"Phantom Woods 2","height":86});
															thumbnails[545646] = clik.newPhoto({"id":545646,"src":"Rock_Study_06_thumb.jpg","galleries_id":41118,"server_id":18,"link":"photo_545646.html","width":130,"caption":"Rock Study 2","height":196});
															thumbnails[7908339] = clik.newPhoto({"id":7908339,"src":"_DSC4919-Lead_Lines_och_Assynt_thumb.jpg","galleries_id":415235,"server_id":18,"link":"photo_7908339.html","width":130,"caption":"Lead Lines","height":86});
															thumbnails[7908357] = clik.newPhoto({"id":7908357,"src":"_DSC4974-Edit82010_thumb.jpg","galleries_id":415235,"server_id":18,"link":"photo_7908357.html","width":130,"caption":"Reflections","height":65});
															thumbnails[545521] = clik.newPhoto({"id":545521,"src":"Water_Movement_03_thumb.jpg","galleries_id":42087,"server_id":18,"link":"photo_545521.html","width":130,"caption":"Water Movement","height":86});
															thumbnails[3703209] = clik.newPhoto({"id":3703209,"src":"20090210-_DSC1593-Edit-Langdale-12x8matte_thumb.jpg","galleries_id":226262,"server_id":18,"link":"photo_3703209.html","width":130,"caption":"Greater Langdale","height":86});
															thumbnails[7908365] = clik.newPhoto({"id":7908365,"src":"_DSC5129-Edit92010_thumb.jpg","galleries_id":415235,"server_id":18,"link":"photo_7908365.html","width":130,"caption":"Reeds in a frozen loch","height":86});
															thumbnails[543739] = clik.newPhoto({"id":543739,"src":"Dunne_Head_thumb.jpg","galleries_id":42087,"server_id":18,"link":"photo_543739.html","width":130,"caption":"Dunmore Head","height":194});
															thumbnails[545603] = clik.newPhoto({"id":545603,"src":"Eilean_Donan_Castle_thumb.jpg","galleries_id":41115,"server_id":18,"link":"photo_545603.html","width":130,"caption":"Eilean Donan Castle","height":84});
															thumbnails[543779] = clik.newPhoto({"id":543779,"src":"Limestone_Pavements_thumb.jpg","galleries_id":42087,"server_id":18,"link":"photo_543779.html","width":130,"caption":"The Burren","height":196});
															thumbnails[3716732] = clik.newPhoto({"id":3716732,"src":"20090209-_DSC1504-Edit-Grass-18x9matte_thumb.jpg","galleries_id":226262,"server_id":18,"link":"photo_3716732.html","width":130,"caption":"Grassmere in Winter","height":66});
															thumbnails[1758197] = clik.newPhoto({"id":1758197,"src":"20070410-DSC_9882-Gillies-flat_thumb.jpg","galleries_id":90344,"server_id":18,"link":"photo_1758197.html","width":130,"caption":"Gillies Cottage","height":86});
															thumbnails[543224] = clik.newPhoto({"id":543224,"src":"_DSC0628-Inch-Strand-2008_thumb.jpg","galleries_id":41116,"server_id":18,"link":"photo_543224.html","width":130,"caption":"Sea mist on Inch Strand","height":86});
															thumbnails[545502] = clik.newPhoto({"id":545502,"src":"Bicycle_thumb.jpg","galleries_id":42087,"server_id":18,"link":"photo_545502.html","width":130,"caption":"Lost","height":196});
															thumbnails[545711] = clik.newPhoto({"id":545711,"src":"Water-100_thumb.jpg","galleries_id":41125,"server_id":18,"link":"photo_545711.html","width":130,"caption":"Water 2","height":86});
															thumbnails[550981] = clik.newPhoto({"id":550981,"src":"Rock_Study_10_thumb.jpg","galleries_id":41118,"server_id":18,"link":"photo_550981.html","width":130,"caption":"Rock Study 3","height":197});
															thumbnails[545553] = clik.newPhoto({"id":545553,"src":"DSC_6121-combo-12x8matte-sh-Glen-dochart_thumb.jpg","galleries_id":41115,"server_id":18,"link":"photo_545553.html","width":130,"caption":"Frosty Morning","height":87});
															thumbnails[543736] = clik.newPhoto({"id":543736,"src":"Winchester_Cathedral_thumb.jpg","galleries_id":42087,"server_id":18,"link":"photo_543736.html","width":130,"caption":"Winchester","height":195});
															thumbnails[3716736] = clik.newPhoto({"id":3716736,"src":"20090220-_DSC1922-Edit-Wast-12x6matte_thumb.jpg","galleries_id":226262,"server_id":18,"link":"photo_3716736.html","width":130,"caption":"Wast Water","height":65});
															thumbnails[555166] = clik.newPhoto({"id":555166,"src":"Glen_Nevis_2_thumb.jpg","galleries_id":41115,"server_id":18,"link":"photo_555166.html","width":130,"caption":"Glen Nevis 2","height":83});
															thumbnails[545581] = clik.newPhoto({"id":545581,"src":"Glen_Etive_thumb.jpg","galleries_id":41115,"server_id":18,"link":"photo_545581.html","width":130,"caption":"Glen Etive","height":86});
															thumbnails[545566] = clik.newPhoto({"id":545566,"src":"Glen_Nevis_thumb.jpg","galleries_id":41115,"server_id":18,"link":"photo_545566.html","width":130,"caption":"Morning Mist","height":83});
															thumbnails[3716758] = clik.newPhoto({"id":3716758,"src":"20081102-_DSC1061-Edit-Edit-18x9matte_thumb.jpg","galleries_id":226262,"server_id":18,"link":"photo_3716758.html","width":130,"caption":"Newlands Valley","height":65});
															thumbnails[545570] = clik.newPhoto({"id":545570,"src":"Winter_Tree_thumb.jpg","galleries_id":41115,"server_id":18,"link":"photo_545570.html","width":130,"caption":"Winter Tree","height":87});
															thumbnails[551025] = clik.newPhoto({"id":551025,"src":"Rock_Study_041_thumb.jpg","galleries_id":41118,"server_id":18,"link":"photo_551025.html","width":130,"caption":"Rock Study 4","height":197});
															thumbnails[3716771] = clik.newPhoto({"id":3716771,"src":"20081106-_DSC1196-Edit-Glossy-12x8_copy_thumb.jpg","galleries_id":226262,"server_id":18,"link":"photo_3716771.html","width":130,"caption":"Bassenthwaite","height":86});
															thumbnails[550922] = clik.newPhoto({"id":550922,"src":"_DSC7240-4_thumb.jpg","galleries_id":42089,"server_id":18,"link":"photo_550922.html","width":130,"caption":"Glass and flowers no.3","height":86});
															thumbnails[3716824] = clik.newPhoto({"id":3716824,"src":"20090220-_DSC1898-Edit-Was-12x8matte_thumb.jpg","galleries_id":226262,"server_id":18,"link":"photo_3716824.html","width":130,"caption":"Wast Water 2","height":86});
															thumbnails[550878] = clik.newPhoto({"id":550878,"src":"20080913-_DSC0189-Edit-RainClouds-18x9-Glossy240_thumb.jpg","galleries_id":41116,"server_id":18,"link":"photo_550878.html","width":130,"caption":"A touch of Irish Mist","height":65});
															thumbnails[1758167] = clik.newPhoto({"id":1758167,"src":"20070310-DSC_9714-Edit-Edit1_thumb.jpg","galleries_id":90344,"server_id":18,"link":"photo_1758167.html","width":130,"caption":"Thomas A'Becket Church","height":86});
															thumbnails[545595] = clik.newPhoto({"id":545595,"src":"Kilchurn_Castle_thumb.jpg","galleries_id":41115,"server_id":18,"link":"photo_545595.html","width":130,"caption":"Kilchurn Castle","height":86});
															thumbnails[545712] = clik.newPhoto({"id":545712,"src":"Water-300_thumb.jpg","galleries_id":41125,"server_id":18,"link":"photo_545712.html","width":130,"caption":"Water 3","height":85});
															thumbnails[550970] = clik.newPhoto({"id":550970,"src":"Seaweed_C1_thumb.jpg","galleries_id":41118,"server_id":18,"link":"photo_550970.html","width":130,"caption":"Seaweed 01","height":87});
															thumbnails[3716911] = clik.newPhoto({"id":3716911,"src":"20090220-_DSC1890-Edit-Wast_water-12x8matte_thumb.jpg","galleries_id":226262,"server_id":18,"link":"photo_3716911.html","width":130,"caption":"Reflections on Wast Water","height":86});
															thumbnails[3717295] = clik.newPhoto({"id":3717295,"src":"20080204-_D205073-Edit-Cat_Bells-High_Stile-Red_Pike-12x8Matte300-Edit_thumb.jpg","galleries_id":226262,"server_id":18,"link":"photo_3717295.html","width":130,"caption":"Cat Bells in Winter","height":87});
															thumbnails[545599] = clik.newPhoto({"id":545599,"src":"Loch_Loyne_thumb.jpg","galleries_id":41115,"server_id":18,"link":"photo_545599.html","width":130,"caption":"Loch Loyne","height":86});
															thumbnails[552247] = clik.newPhoto({"id":552247,"src":"Fishing_Nets_C1_thumb.jpg","galleries_id":41118,"server_id":18,"link":"photo_552247.html","width":130,"caption":"Nets 01","height":86});
															thumbnails[545635] = clik.newPhoto({"id":545635,"src":"20100519_Harris_39__DSC5381-12x8matte_sh-Light_on_water_thumb.jpg","galleries_id":42089,"server_id":18,"link":"photo_545635.html","width":130,"caption":"Light on Water","height":87});
															thumbnails[3717326] = clik.newPhoto({"id":3717326,"src":"20081101-_DSC1034-Edit12x8Matte_thumb.jpg","galleries_id":226262,"server_id":18,"link":"photo_3717326.html","width":130,"caption":"Newlands Valley 2","height":86});
															thumbnails[550952] = clik.newPhoto({"id":550952,"src":"Rock_Patterns_C1_thumb.jpg","galleries_id":42089,"server_id":18,"link":"photo_550952.html","width":130,"caption":"Rock Pattern 01","height":87});
															thumbnails[550974] = clik.newPhoto({"id":550974,"src":"Seaweed_C3_thumb.jpg","galleries_id":41118,"server_id":18,"link":"photo_550974.html","width":130,"caption":"Seaweed 03","height":83});
															thumbnails[552250] = clik.newPhoto({"id":552250,"src":"Fishing_Nets_C2_thumb.jpg","galleries_id":41118,"server_id":18,"link":"photo_552250.html","width":130,"caption":"Nets 02","height":86});
															thumbnails[550956] = clik.newPhoto({"id":550956,"src":"_DSC7361-Edit-6_thumb.jpg","galleries_id":42089,"server_id":18,"link":"photo_550956.html","width":130,"caption":"Glass Patterns no.4","height":86});
															thumbnails[543263] = clik.newPhoto({"id":543263,"src":"_DSC0854-Chathati-2008_thumb.jpg","galleries_id":41116,"server_id":18,"link":"photo_543263.html","width":130,"caption":"Chathati Strand","height":86});
															thumbnails[545533] = clik.newPhoto({"id":545533,"src":"Cover_page-3_thumb.jpg","galleries_id":42124,"server_id":18,"link":"photo_545533.html","width":130,"caption":"Last Light","height":87});
															thumbnails[1758211] = clik.newPhoto({"id":1758211,"src":"20070419-DSC_9943-B-Selenium_thumb.jpg","galleries_id":90344,"server_id":18,"link":"photo_1758211.html","width":130,"caption":"Boxgrove Priory","height":86});
															thumbnails[545574] = clik.newPhoto({"id":545574,"src":"Castle_Stalker_thumb.jpg","galleries_id":41115,"server_id":18,"link":"photo_545574.html","width":130,"caption":"Castle Stalker","height":86});
															thumbnails[545714] = clik.newPhoto({"id":545714,"src":"Water-400_thumb.jpg","galleries_id":41125,"server_id":18,"link":"photo_545714.html","width":130,"caption":"Water 4","height":86});
															thumbnails[550972] = clik.newPhoto({"id":550972,"src":"Seaweed_C2_thumb.jpg","galleries_id":41118,"server_id":18,"link":"photo_550972.html","width":130,"caption":"Seaweed 02","height":197});
															thumbnails[6243750] = clik.newPhoto({"id":6243750,"src":"_DSC4144-Edit-2-combo-12x8matte-sh-Ice_patterns_thumb.jpg","galleries_id":42089,"server_id":18,"link":"photo_6243750.html","width":130,"caption":"Ice_patterns_02","height":87});
															thumbnails[553127] = clik.newPhoto({"id":553127,"src":"Rock_Patterns_C2_thumb.jpg","galleries_id":42089,"server_id":18,"link":"photo_553127.html","width":130,"caption":"Rock 2","height":86});
															thumbnails[553130] = clik.newPhoto({"id":553130,"src":"_DSC7215edit-1-3_thumb.jpg","galleries_id":42089,"server_id":18,"link":"photo_553130.html","width":130,"caption":"Glass and flowers no.2","height":86});
															thumbnails[553129] = clik.newPhoto({"id":553129,"src":"Rust_01_thumb.jpg","galleries_id":42089,"server_id":18,"link":"photo_553129.html","width":130,"caption":"Rust 1","height":86});
															thumbnails[1758223] = clik.newPhoto({"id":1758223,"src":"20070523-DSC_0014-Edit_thumb.jpg","galleries_id":90344,"server_id":18,"link":"photo_1758223.html","width":130,"caption":"Callanish Stones","height":86});
															thumbnails[543271] = clik.newPhoto({"id":543271,"src":"Sunrise_Castlemaine_Harbour_thumb.jpg","galleries_id":41116,"server_id":18,"link":"photo_543271.html","width":130,"caption":"Sunrise","height":86});
															thumbnails[543242] = clik.newPhoto({"id":543242,"src":"_DSC0504-Clogher-2008_thumb.jpg","galleries_id":41116,"server_id":18,"link":"photo_543242.html","width":130,"caption":"Clogher Strand 2","height":86});
															thumbnails[1758235] = clik.newPhoto({"id":1758235,"src":"20070810-DSC_0842_07_Fosbury_PKsh_HahnFAPearl-_thumb.jpg","galleries_id":90344,"server_id":18,"link":"photo_1758235.html","width":130,"caption":"The Vicarage","height":86});
															thumbnails[647600] = clik.newPhoto({"id":647600,"src":"Water_600_thumb.jpg","galleries_id":41125,"server_id":18,"link":"photo_647600.html","width":130,"caption":"Water 6","height":89});
															thumbnails[543235] = clik.newPhoto({"id":543235,"src":"20080919-_DSC0434-Edit-Edit-2_thumb.jpg","galleries_id":41116,"server_id":18,"link":"photo_543235.html","width":130,"caption":"After the Crash","height":86});
															thumbnails[1758251] = clik.newPhoto({"id":1758251,"src":"20070810-DSC_0837_Wilton_Mill_IR_PKsh_Glossy_Print-_thumb.jpg","galleries_id":90344,"server_id":18,"link":"photo_1758251.html","width":130,"caption":"Wilton Mill","height":87});
															thumbnails[647609] = clik.newPhoto({"id":647609,"src":"Water_700_thumb.jpg","galleries_id":41125,"server_id":18,"link":"photo_647609.html","width":130,"caption":"Water 7","height":87});
															thumbnails[550865] = clik.newPhoto({"id":550865,"src":"20080925-_DSC0694-Edit_thumb.jpg","galleries_id":41116,"server_id":18,"link":"photo_550865.html","width":130,"caption":"Sunset over The Sleeping Giant","height":86});
															thumbnails[1758288] = clik.newPhoto({"id":1758288,"src":"20070810-DSC_0855-Edit_thumb.jpg","galleries_id":90344,"server_id":18,"link":"photo_1758288.html","width":130,"caption":"The Garage","height":86});
															thumbnails[647613] = clik.newPhoto({"id":647613,"src":"Water_800_thumb.jpg","galleries_id":41125,"server_id":18,"link":"photo_647613.html","width":130,"caption":"Water 8","height":86});
															thumbnails[647596] = clik.newPhoto({"id":647596,"src":"Water_500_thumb.jpg","galleries_id":41125,"server_id":18,"link":"photo_647596.html","width":130,"caption":"Water 5","height":82});
															thumbnails[543256] = clik.newPhoto({"id":543256,"src":"_DSC0330-Fermoyle-Strand-2008_thumb.jpg","galleries_id":41116,"server_id":18,"link":"photo_543256.html","width":130,"caption":"Fermoyle Strand","height":86});
															thumbnails[682896] = clik.newPhoto({"id":682896,"src":"WAT_002_DSC_6259_thumb.jpg","galleries_id":41125,"server_id":18,"link":"photo_682896.html","width":130,"caption":"Water_9","height":86});
															thumbnails[682829] = clik.newPhoto({"id":682829,"src":"IRL_019_D201135-Dunmore_thumb.jpg","galleries_id":41116,"server_id":18,"link":"photo_682829.html","width":130,"caption":"Dunmore Head","height":87});
															thumbnails[550915] = clik.newPhoto({"id":550915,"src":"Cloudscape_thumb.jpg","galleries_id":41116,"server_id":18,"link":"photo_550915.html","width":130,"caption":"Cloudscape","height":87});
															thumbnails[550906] = clik.newPhoto({"id":550906,"src":"20060928-_D201129-Edit_thumb.jpg","galleries_id":41116,"server_id":18,"link":"photo_550906.html","width":130,"caption":"Dunmore Head","height":194});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[90344] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Digital Infrared Photography","link":"gallery_90344.html","maxRecords":0.0,"photoIDs":[1270609.0,1758197.0,1758167.0,1758211.0,1758223.0,1758235.0,1758251.0,1758288.0],"skipIndex":0,"section_code":"gallery","featured_images":"1758288,1758251,1758235,1758223,1758211,1270609","id":90344,"singleSection":false});				  						galleries[41120] = clik.newGallery({"parentGallery":41066,"usePopups":false,"title":"Eigg","link":"gallery_41120.html","maxRecords":0.0,"photoIDs":[542975.0,543287.0,543302.0],"skipIndex":0,"section_code":"gallery","featured_images":"543302,543287,542975","id":41120,"singleSection":false});				  						galleries[42089] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Abstract","link":"gallery_42089.html","maxRecords":0.0,"photoIDs":[545608.0,8253378.0,6243777.0,545638.0,550922.0,545635.0,550952.0,550956.0,6243750.0,553127.0,553130.0,553129.0],"skipIndex":0,"section_code":"gallery","featured_images":"6243777,6243750,553130,550956,550952,550922,545638,545635,545608","id":42089,"singleSection":false});				  						galleries[41115] = clik.newGallery({"parentGallery":41066,"usePopups":false,"title":"Glen Coe","link":"gallery_41115.html","maxRecords":0.0,"photoIDs":[542980.0,545548.0,545559.0,545603.0,545553.0,555166.0,545581.0,545566.0,545570.0,545595.0,545599.0,545574.0],"skipIndex":0,"section_code":"gallery","featured_images":"555166,545603,545599,545595,545574,545566,545559,545553,545548,542980","id":41115,"singleSection":false});				  						galleries[41116] = clik.newGallery({"parentGallery":41122,"usePopups":false,"title":"Dingle","link":"gallery_41116.html","maxRecords":0.0,"photoIDs":[542996.0,543224.0,550878.0,543263.0,543271.0,543242.0,543235.0,550865.0,543256.0,682829.0,550915.0,550906.0],"skipIndex":0,"section_code":"gallery","featured_images":"550906,550878,550865,543256,543242,543235,543224,542996","id":41116,"singleSection":false});				  						galleries[41122] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Ireland","link":"gallery_41122.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"550906,550878,550865,543256,543242,543235,543224,542996","id":41122,"singleSection":false});				  						galleries[41119] = clik.newGallery({"parentGallery":41066,"usePopups":false,"title":"Isle of Harris 1","link":"gallery_41119.html","maxRecords":0.0,"photoIDs":[543632.0,543690.0,543384.0,6657649.0,543697.0,543702.0,543724.0,543713.0,550929.0,543730.0,555283.0,542971.0],"skipIndex":0,"section_code":"gallery","featured_images":"6657649,555283,550929,543730,543724,543713,543702,543697,543690,543632,543384,542971","id":41119,"singleSection":false});				  						galleries[42124] = clik.newGallery({"parentGallery":41066,"usePopups":false,"title":"Isle of Harris 2","link":"gallery_42124.html","maxRecords":0.0,"photoIDs":[543323.0,543358.0,543733.0,545542.0,543373.0,545533.0],"skipIndex":0,"section_code":"gallery","featured_images":"545542,545533,543733,543373,543358,543323","id":42124,"singleSection":false});				  						galleries[41123] = clik.newGallery({"parentGallery":41066,"usePopups":false,"title":"Isle of Skye","link":"gallery_41123.html","maxRecords":0.0,"photoIDs":[550963.0],"skipIndex":0,"section_code":"gallery","featured_images":550963.0,"id":41123,"singleSection":false});				  						galleries[42087] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Mono","link":"gallery_42087.html","maxRecords":0.0,"photoIDs":[542830.0,543748.0,543754.0,543762.0,543787.0,543793.0,542843.0,545521.0,543739.0,543779.0,545502.0,543736.0],"skipIndex":0,"section_code":"gallery","featured_images":"543793,543779,543762,543748,543739,542843,542830","id":42087,"singleSection":false});				  						galleries[41066] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Scotland","link":"gallery_41066.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"7908365,7908357,7908339,7908317,7874470,7874385,7874271,7874254,7873567,6657649,555283,555166,550963,550929,545603,545599,545595,545574,545566,545559,545553,545548,545542,545533,543733,543730,543724,543713,543702,543697,543690,543632,543384,543373,543358,543323,543302,543287,542980,542975,542971","id":41066,"singleSection":false});				  						galleries[415235] = clik.newGallery({"parentGallery":41066,"usePopups":false,"title":"Ullapool","link":"gallery_415235.html","maxRecords":0.0,"photoIDs":[7873567.0,7874254.0,7874271.0,7874470.0,7874385.0,7908317.0,7908339.0,7908357.0,7908365.0],"skipIndex":0,"section_code":"gallery","featured_images":"7908365,7908357,7908339,7908317,7874470,7874385,7874271,7874254,7873567","id":415235,"singleSection":false});				  						galleries[41118] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Photographers Bits","link":"gallery_41118.html","maxRecords":0.0,"photoIDs":[545644.0,545646.0,550981.0,551025.0,550970.0,552247.0,550974.0,552250.0,550972.0],"skipIndex":0,"section_code":"gallery","featured_images":"552250,552247,551025,550974,550972","id":41118,"singleSection":false});				  						galleries[41125] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Water","link":"gallery_41125.html","maxRecords":0.0,"photoIDs":[545710.0,545711.0,545712.0,545714.0,647600.0,647609.0,647613.0,647596.0,682896.0],"skipIndex":0,"section_code":"gallery","featured_images":"647613,647609,647600,647596,545712","id":41125,"singleSection":false});				  						galleries[226262] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"The Lake District","link":"gallery_226262.html","maxRecords":0.0,"photoIDs":[3703196.0,3703199.0,3703201.0,3703209.0,3716732.0,3716736.0,3716758.0,3716771.0,3716824.0,3716911.0,3717295.0,3717326.0],"skipIndex":0,"section_code":"gallery","featured_images":"3716911,3716771,3716758,3716736,3716732,3703209,3703201,3703199,3703196","id":226262,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8253378,7874470,7874385,7874271,7873567,6657649,3716911,3716771,3716758,3716736,3716732,3703201,3703199,3703196,1758288,1758251,1758235,1758223,1758197,1270609,682829,555283,555166,553130,550963,550956,550952,550929,550922,550915,550906,550878,550865,545712,545635,545603,545595,545574,545566,545559,545553,545548,545533,545502,543793,543779,543762,543748,543739,543733,543730,543724,543713,543702,543697,543690,543632,543384,543373,543358,543323,543302,543287,543271,543256,543242,543235,543224,542996,542980,542975,542971,542843,542830';
imageSets[2] = '7908365,7908357,7908339,7908317,7874470,7874385,7874271,7874254,7873567,6657649,6243777,6243750,3716911,3716771,3716758,3716736,3716732,3703209,3703201,3703199,3703196,1758288,1758251,1758235,1758223,1758211,1270609,647613,647609,647600,647596,555283,555166,553130,552250,552247,551025,550974,550972,550963,550956,550952,550929,550922,550906,550878,550865,545712,545638,545635,545608,545603,545599,545595,545574,545566,545559,545553,545548,545542,545533,543793,543779,543762,543748,543739,543733,543730,543724,543713,543702,543697,543690,543632,543384,543373,543358,543323,543302,543287,543256,543242,543235,543224,542996,542980,542975,542971,542843,542830';
imageSets[3] = '8253378,7908317,550956,545635,543632';
imageSets[237086] = '6657649,555283,550929,543730,543724,543713,543702,543697,543690,543632,543384,542971';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/billmcknight/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/billmcknight/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/billmcknight/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/billmcknight/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/billmcknight/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/billmcknight/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/billmcknight/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/billmcknight/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/billmcknight/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/billmcknight/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/billmcknight/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/billmcknight/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/billmcknight/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/billmcknight/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/billmcknight/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/billmcknight/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/billmcknight/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/billmcknight/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/billmcknight/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/billmcknight/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/billmcknight/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/billmcknight/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/billmcknight/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 = 'The Performance: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.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 += '<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;
	}
}

			

