window.thumbnails = {};
															thumbnails[2033451] = clik.newPhoto({"id":2033451,"src":"Betws-y-Coed_thumb.jpg","galleries_id":136248,"server_id":32,"link":"photo_2033451.html","width":130,"caption":"River at Betws y Coed","height":172});
															thumbnails[2033456] = clik.newPhoto({"id":2033456,"src":"snowdonview3_thumb.jpg","galleries_id":136248,"server_id":32,"link":"photo_2033456.html","width":130,"caption":"Llynnau Mymbyr1","height":89});
															thumbnails[2033483] = clik.newPhoto({"id":2033483,"src":"snowdonview2_thumb.jpg","galleries_id":136248,"server_id":32,"link":"photo_2033483.html","width":130,"caption":"Llynnau Mymbyr2","height":189});
															thumbnails[2033484] = clik.newPhoto({"id":2033484,"src":"frosty2_thumb.jpg","galleries_id":136248,"server_id":32,"link":"photo_2033484.html","width":130,"caption":"Frosty","height":89});
															thumbnails[2033552] = clik.newPhoto({"id":2033552,"src":"lakes_lingmoor_thumb.jpg","galleries_id":136250,"server_id":32,"link":"photo_2033552.html","width":130,"caption":"Lingmoor Fell","height":101});
															thumbnails[2033553] = clik.newPhoto({"id":2033553,"src":"priestshole1b_thumb.jpg","galleries_id":431657,"server_id":32,"link":"photo_2033553.html","width":130,"caption":"Priest's Cove Sunset1-Cornwall","height":89});
															thumbnails[2033555] = clik.newPhoto({"id":2033555,"src":"priest'shole2b_thumb.jpg","galleries_id":431657,"server_id":32,"link":"photo_2033555.html","width":130,"caption":"Priest's Cove Cape Cornwall","height":89});
															thumbnails[2033561] = clik.newPhoto({"id":2033561,"src":"riveaira-beck2_thumb.jpg","galleries_id":136250,"server_id":32,"link":"photo_2033561.html","width":130,"caption":"Aira Beck Ullswater","height":100});
															thumbnails[2033800] = clik.newPhoto({"id":2033800,"src":"bassharborlight_thumb.jpg","galleries_id":136244,"server_id":32,"link":"photo_2033800.html","width":130,"caption":"Bass Harbour Lighthouse- Arcadia National Park","height":184});
															thumbnails[2033803] = clik.newPhoto({"id":2033803,"src":"eaglelake2_thumb.jpg","galleries_id":136244,"server_id":32,"link":"photo_2033803.html","width":130,"caption":"Eagle Lake - Arcadia National Park","height":184});
															thumbnails[2033813] = clik.newPhoto({"id":2033813,"src":"prospectlighthouse_thumb.jpg","galleries_id":136244,"server_id":32,"link":"photo_2033813.html","width":130,"caption":"Prospect House Lighthouse","height":184});
															thumbnails[2033815] = clik.newPhoto({"id":2033815,"src":"pumpkins2_thumb.jpg","galleries_id":136244,"server_id":32,"link":"photo_2033815.html","width":130,"caption":"Pumpkins","height":184});
															thumbnails[2033817] = clik.newPhoto({"id":2033817,"src":"sandybeach_thumb.jpg","galleries_id":136244,"server_id":32,"link":"photo_2033817.html","width":130,"caption":"Sandy Beach - Arcadia N.P. ","height":184});
															thumbnails[2036504] = clik.newPhoto({"id":2036504,"src":"antelope1b_thumb.jpg","galleries_id":136240,"server_id":32,"link":"photo_2036504.html","width":130,"caption":"Antelope Canyon (1)","height":189});
															thumbnails[2036507] = clik.newPhoto({"id":2036507,"src":"antelope2b_thumb.jpg","galleries_id":136240,"server_id":32,"link":"photo_2036507.html","width":130,"caption":"Antelope Canyon (2)","height":189});
															thumbnails[2036514] = clik.newPhoto({"id":2036514,"src":"dechellyspiderrock2_thumb.jpg","galleries_id":136240,"server_id":32,"link":"photo_2036514.html","width":130,"caption":"Spider Rock - De Chelly","height":189});
															thumbnails[2036517] = clik.newPhoto({"id":2036517,"src":"bryce2b_thumb.jpg","galleries_id":136240,"server_id":32,"link":"photo_2036517.html","width":130,"caption":"Bryce - Hoodos (1)","height":189});
															thumbnails[2036519] = clik.newPhoto({"id":2036519,"src":"bryce1b_thumb.jpg","galleries_id":136240,"server_id":32,"link":"photo_2036519.html","width":130,"caption":"Glowing Hoodos - Bryce","height":189});
															thumbnails[2036545] = clik.newPhoto({"id":2036545,"src":"johnfordview2b_thumb.jpg","galleries_id":136240,"server_id":32,"link":"photo_2036545.html","width":130,"caption":"Monument Valley - John Ford Point","height":189});
															thumbnails[2036573] = clik.newPhoto({"id":2036573,"src":"cottonwoods2_thumb.jpg","galleries_id":136240,"server_id":32,"link":"photo_2036573.html","width":130,"caption":"Cottonwoods - De Chelly","height":189});
															thumbnails[2036576] = clik.newPhoto({"id":2036576,"src":"whitehouse2_thumb.jpg","galleries_id":136240,"server_id":32,"link":"photo_2036576.html","width":130,"caption":"The Whitehouse - De Chelly","height":189});
															thumbnails[2036579] = clik.newPhoto({"id":2036579,"src":"navajosdst2_thumb.jpg","galleries_id":136240,"server_id":32,"link":"photo_2036579.html","width":130,"caption":"Navajo Sandstone Zion","height":189});
															thumbnails[2083735] = clik.newPhoto({"id":2083735,"src":"coast2b_thumb.jpg","galleries_id":431657,"server_id":32,"link":"photo_2083735.html","width":130,"caption":"Sunset- Cape Cornwall","height":89});
															thumbnails[2703131] = clik.newPhoto({"id":2703131,"src":"El Capitan_b_thumb.jpg","galleries_id":136240,"server_id":32,"link":"photo_2703131.html","width":130,"caption":"'El Capitan'","height":189});
															thumbnails[2704969] = clik.newPhoto({"id":2704969,"src":"Old Cottonwood-Zion_thumb.jpg","galleries_id":136240,"server_id":32,"link":"photo_2704969.html","width":130,"caption":"Old Cottonwood","height":189});
															thumbnails[2704974] = clik.newPhoto({"id":2704974,"src":"Grand canyon of Yellowstone_thumb.jpg","galleries_id":136243,"server_id":32,"link":"photo_2704974.html","width":130,"caption":"Lower Falls","height":189});
															thumbnails[2705000] = clik.newPhoto({"id":2705000,"src":"Yellowstone-Grand Canyon_thumb.jpg","galleries_id":136243,"server_id":32,"link":"photo_2705000.html","width":130,"caption":"'Hoodo'- Yellowstone","height":189});
															thumbnails[2705007] = clik.newPhoto({"id":2705007,"src":"trees&snow_thumb.jpg","galleries_id":136243,"server_id":32,"link":"photo_2705007.html","width":130,"caption":"Trees and Ice","height":190});
															thumbnails[2705015] = clik.newPhoto({"id":2705015,"src":"Grand Prismatic Pool_thumb.jpg","galleries_id":136243,"server_id":32,"link":"photo_2705015.html","width":130,"caption":"Grand Prismatic Spring","height":189});
															thumbnails[2705225] = clik.newPhoto({"id":2705225,"src":"Trees near San Quirico_thumb.jpg","galleries_id":136245,"server_id":32,"link":"photo_2705225.html","width":130,"caption":"Trees near Monticchiello","height":77});
															thumbnails[2709611] = clik.newPhoto({"id":2709611,"src":"Jetty -Dewentwater_thumb.jpg","galleries_id":136250,"server_id":32,"link":"photo_2709611.html","width":130,"caption":"Jetty - Derwentwater","height":85});
															thumbnails[2709852] = clik.newPhoto({"id":2709852,"src":"snowhill-1_b_thumb.jpg","galleries_id":170750,"server_id":32,"link":"photo_2709852.html","width":130,"caption":"Lavender fields 1","height":189});
															thumbnails[2709854] = clik.newPhoto({"id":2709854,"src":"snowhill_A3_thumb.jpg","galleries_id":170750,"server_id":32,"link":"photo_2709854.html","width":130,"caption":"Lavender fields 2","height":166});
															thumbnails[3169635] = clik.newPhoto({"id":3169635,"src":"derwent2_thumb.jpg","galleries_id":136250,"server_id":32,"link":"photo_3169635.html","width":130,"caption":"Derwentwater","height":89});
															thumbnails[3777412] = clik.newPhoto({"id":3777412,"src":"cornwall09-1b_thumb.jpg","galleries_id":431657,"server_id":32,"link":"photo_3777412.html","width":130,"caption":"Cape Cornwall 2","height":91});
															thumbnails[3777418] = clik.newPhoto({"id":3777418,"src":"cornwall09-6b_thumb.jpg","galleries_id":431657,"server_id":32,"link":"photo_3777418.html","width":130,"caption":"Cornish Sunset","height":89});
															thumbnails[7220323] = clik.newPhoto({"id":7220323,"src":"ullswaterjetty_final4crop_thumb.jpg","galleries_id":136250,"server_id":32,"link":"photo_7220323.html","width":130,"caption":"Ullswater Jetty","height":93});
															thumbnails[7220328] = clik.newPhoto({"id":7220328,"src":"elterwaterpano_finalprint_thumb.jpg","galleries_id":136250,"server_id":32,"link":"photo_7220328.html","width":130,"caption":"Elterwater","height":56});
															thumbnails[7220337] = clik.newPhoto({"id":7220337,"src":"derwentjetty1_finalprint5_thumb.jpg","galleries_id":136250,"server_id":32,"link":"photo_7220337.html","width":130,"caption":"Derwentwater Jetty at Sunset","height":125});
															thumbnails[7220450] = clik.newPhoto({"id":7220450,"src":"kirkstonefarm-1finalprint_thumb.jpg","galleries_id":136250,"server_id":32,"link":"photo_7220450.html","width":130,"caption":"Trout Beck ","height":88});
															thumbnails[7226073] = clik.newPhoto({"id":7226073,"src":"elterwaterreflect-1final1_thumb.jpg","galleries_id":136250,"server_id":32,"link":"photo_7226073.html","width":130,"caption":"River Brathay Reflections","height":88});
															thumbnails[7226075] = clik.newPhoto({"id":7226075,"src":"lavender-1_final1_thumb.jpg","galleries_id":170750,"server_id":32,"link":"photo_7226075.html","width":130,"caption":"Snowshill","height":81});
															thumbnails[7242445] = clik.newPhoto({"id":7242445,"src":"ullswatersnow-4final2_thumb.jpg","galleries_id":136250,"server_id":32,"link":"photo_7242445.html","width":130,"caption":"Ullswater in Winter","height":191});
															thumbnails[7242448] = clik.newPhoto({"id":7242448,"src":"ullswatersnow-5final2_thumb.jpg","galleries_id":136250,"server_id":32,"link":"photo_7242448.html","width":130,"caption":"Ullswater in Winter #2","height":90});
															thumbnails[7376065] = clik.newPhoto({"id":7376065,"src":"ullswaterHDR_finalb_thumb.jpg","galleries_id":136250,"server_id":32,"link":"photo_7376065.html","width":130,"caption":"Blue Lake","height":88});
															thumbnails[8045780] = clik.newPhoto({"id":8045780,"src":"dorset__tonemapped_A3_thumb.jpg","galleries_id":431657,"server_id":32,"link":"photo_8045780.html","width":130,"caption":"Sunset - Kimmeridge Bay","height":92});
															thumbnails[8045784] = clik.newPhoto({"id":8045784,"src":"kimmeridge_A3framed_thumb.jpg","galleries_id":431657,"server_id":32,"link":"photo_8045784.html","width":130,"caption":"Kimmeridge Bay Sunset","height":92});
															thumbnails[8045793] = clik.newPhoto({"id":8045793,"src":"tynehamschool1_thumb.jpg","galleries_id":431657,"server_id":32,"link":"photo_8045793.html","width":130,"caption":"Tyneham Village Schoolhouse","height":88});
															thumbnails[2033896] = clik.newPhoto({"id":2033896,"src":"Val d'orchia_1_thumb.jpg","galleries_id":136245,"server_id":32,"link":"photo_2033896.html","width":130,"caption":"Val d'Orcia (1)","height":87});
															thumbnails[2033904] = clik.newPhoto({"id":2033904,"src":"Val-d'Ochia_thumb.jpg","galleries_id":136245,"server_id":32,"link":"photo_2033904.html","width":130,"caption":"Val d'Orcia (2)","height":89});
															thumbnails[2033907] = clik.newPhoto({"id":2033907,"src":"zebraroad3final_thumb.jpg","galleries_id":136245,"server_id":32,"link":"photo_2033907.html","width":130,"caption":"Trees and Stripes","height":89});
															thumbnails[2033910] = clik.newPhoto({"id":2033910,"src":"letterboxfinal_thumb.jpg","galleries_id":136245,"server_id":32,"link":"photo_2033910.html","width":130,"caption":"Letterbox ","height":91});
															thumbnails[2033911] = clik.newPhoto({"id":2033911,"src":"belvedere-sunrise_thumb.jpg","galleries_id":136245,"server_id":32,"link":"photo_2033911.html","width":130,"caption":"Belvedere Sunrise","height":76});
															thumbnails[2033915] = clik.newPhoto({"id":2033915,"src":"belvedere_thumb.jpg","galleries_id":136245,"server_id":32,"link":"photo_2033915.html","width":130,"caption":"Belvedere (1)","height":89});
															thumbnails[2033920] = clik.newPhoto({"id":2033920,"src":"churchpanorama_thumb.jpg","galleries_id":136245,"server_id":32,"link":"photo_2033920.html","width":130,"caption":"Church of San Biagio","height":70});
															thumbnails[2033917] = clik.newPhoto({"id":2033917,"src":"belvaderevert2final_thumb.jpg","galleries_id":136245,"server_id":32,"link":"photo_2033917.html","width":130,"caption":"Morning Mists ","height":189});
															thumbnails[2705193] = clik.newPhoto({"id":2705193,"src":"Vitaletta chapel_thumb.jpg","galleries_id":136245,"server_id":32,"link":"photo_2705193.html","width":130,"caption":"Vitaleta Chapel","height":168});
															thumbnails[2033810] = clik.newPhoto({"id":2033810,"src":"ottercliffs2_thumb.jpg","galleries_id":136244,"server_id":32,"link":"photo_2033810.html","width":130,"caption":"Otter Cliffs at sunrise","height":89});
															thumbnails[2034104] = clik.newPhoto({"id":2034104,"src":"houseinterior1duplex_thumb.jpg","galleries_id":136242,"server_id":32,"link":"photo_2034104.html","width":130,"caption":"Arrested decay Bodie Ghost town","height":189});
															thumbnails[2034109] = clik.newPhoto({"id":2034109,"src":"Mono-lake_21_thumb.jpg","galleries_id":136242,"server_id":32,"link":"photo_2034109.html","width":130,"caption":"Mono Lake (1)","height":171});
															thumbnails[2034116] = clik.newPhoto({"id":2034116,"src":"vernalfalls2_thumb.jpg","galleries_id":136242,"server_id":32,"link":"photo_2034116.html","width":130,"caption":"Vernal Falls - Yosemite","height":189});
															thumbnails[2034115] = clik.newPhoto({"id":2034115,"src":"olmstedpoint2_thumb.jpg","galleries_id":136242,"server_id":32,"link":"photo_2034115.html","width":130,"caption":"Olmsted Point","height":150});
															thumbnails[2034106] = clik.newPhoto({"id":2034106,"src":"rapids2_thumb.jpg","galleries_id":136242,"server_id":32,"link":"photo_2034106.html","width":130,"caption":"Boulder in stream - Yosemite","height":121});
															thumbnails[2034107] = clik.newPhoto({"id":2034107,"src":"dune2_thumb.jpg","galleries_id":136242,"server_id":32,"link":"photo_2034107.html","width":130,"caption":"Dunes - Death Valley","height":89});
															thumbnails[2034108] = clik.newPhoto({"id":2034108,"src":"halfdome2_thumb.jpg","galleries_id":136242,"server_id":32,"link":"photo_2034108.html","width":130,"caption":"Half Dome - Yosemite","height":89});
															thumbnails[2034111] = clik.newPhoto({"id":2034111,"src":"mono-lake_2_thumb.jpg","galleries_id":136242,"server_id":32,"link":"photo_2034111.html","width":130,"caption":"Mono Lake (2)","height":82});
															thumbnails[2034113] = clik.newPhoto({"id":2034113,"src":"abanonedcar_b_thumb.jpg","galleries_id":136242,"server_id":32,"link":"photo_2034113.html","width":130,"caption":"Abandoned Car - Bodie","height":89});
															thumbnails[2034201] = clik.newPhoto({"id":2034201,"src":"tunnel-view_thumb.jpg","galleries_id":136242,"server_id":32,"link":"photo_2034201.html","width":130,"caption":"Yosemite- Tunnel View","height":89});
															thumbnails[2034203] = clik.newPhoto({"id":2034203,"src":"zabriskie-point_thumb.jpg","galleries_id":136242,"server_id":32,"link":"photo_2034203.html","width":130,"caption":"Zabriskie Point - Death Valley","height":89});
															thumbnails[2703123] = clik.newPhoto({"id":2703123,"src":"Dunes-Death Valley_thumb.jpg","galleries_id":136242,"server_id":32,"link":"photo_2703123.html","width":130,"caption":"Dunes2-Death Valley","height":89});
															thumbnails[2703119] = clik.newPhoto({"id":2703119,"src":"Dunes2-Death Valley_thumb.jpg","galleries_id":136242,"server_id":32,"link":"photo_2703119.html","width":130,"caption":"Dunes3-Death Valley","height":74});
															thumbnails[2703099] = clik.newPhoto({"id":2703099,"src":"artistspoint_thumb.jpg","galleries_id":136242,"server_id":32,"link":"photo_2703099.html","width":130,"caption":"Artists Pallette-Death Valley","height":44});
															thumbnails[3169725] = clik.newPhoto({"id":3169725,"src":"tunnelview_finalBWA3_thumb.jpg","galleries_id":136242,"server_id":32,"link":"photo_3169725.html","width":130,"caption":"Yosemite","height":87});
															thumbnails[2034068] = clik.newPhoto({"id":2034068,"src":"aspens2_thumb.jpg","galleries_id":136243,"server_id":32,"link":"photo_2034068.html","width":130,"caption":"Aspens near Moose","height":191});
															thumbnails[2034070] = clik.newPhoto({"id":2034070,"src":"bannackcar2_thumb.jpg","galleries_id":136243,"server_id":32,"link":"photo_2034070.html","width":130,"caption":"Abandoned truck -Bannack Ghost Town","height":189});
															thumbnails[2034082] = clik.newPhoto({"id":2034082,"src":"Mammouthspring2_thumb.jpg","galleries_id":136243,"server_id":32,"link":"photo_2034082.html","width":130,"caption":"Mammoth Hot Springs (2)","height":189});
															thumbnails[2034071] = clik.newPhoto({"id":2034071,"src":"bannackreflect2_thumb.jpg","galleries_id":136243,"server_id":32,"link":"photo_2034071.html","width":130,"caption":"Bannack reflections","height":198});
															thumbnails[2034087] = clik.newPhoto({"id":2034087,"src":"tetonsreflection2_thumb.jpg","galleries_id":136243,"server_id":32,"link":"photo_2034087.html","width":130,"caption":"Grand Teton Reflections","height":182});
															thumbnails[2034078] = clik.newPhoto({"id":2034078,"src":"grass&fence_thumb.jpg","galleries_id":136243,"server_id":32,"link":"photo_2034078.html","width":130,"caption":"Grass and Fence","height":163});
															thumbnails[2034079] = clik.newPhoto({"id":2034079,"src":"Mammouthspring1_A3final_thumb.jpg","galleries_id":136243,"server_id":32,"link":"photo_2034079.html","width":130,"caption":"Mammoth Hot Springs (1)","height":89});
															thumbnails[2034084] = clik.newPhoto({"id":2034084,"src":"yellowstone-sunset_thumb.jpg","galleries_id":136243,"server_id":32,"link":"photo_2034084.html","width":130,"caption":"Yellowstone Sunset","height":89});
															thumbnails[2034091] = clik.newPhoto({"id":2034091,"src":"tetonsreflection4_thumb.jpg","galleries_id":136243,"server_id":32,"link":"photo_2034091.html","width":130,"caption":"Grand Tetons from Schwabacher Landing","height":89});
															thumbnails[2034092] = clik.newPhoto({"id":2034092,"src":"cunninghampano_thumb.jpg","galleries_id":136243,"server_id":32,"link":"photo_2034092.html","width":130,"caption":"Fence near Cunningham Cabins","height":59});
															thumbnails[2705019] = clik.newPhoto({"id":2705019,"src":"Moulton barn_thumb.jpg","galleries_id":136243,"server_id":32,"link":"photo_2705019.html","width":130,"caption":"Moulton Barn","height":53});
															thumbnails[2058779] = clik.newPhoto({"id":2058779,"src":"tree&rock2_thumb.jpg","galleries_id":136240,"server_id":32,"link":"photo_2058779.html","width":130,"caption":"Tree and cloud","height":102});
															thumbnails[2704966] = clik.newPhoto({"id":2704966,"src":"Zion Canyon Colours_thumb.jpg","galleries_id":136240,"server_id":32,"link":"photo_2704966.html","width":130,"caption":"Zion Canyon Colours","height":89});
															thumbnails[2036511] = clik.newPhoto({"id":2036511,"src":"dancingtrees_thumb.jpg","galleries_id":136240,"server_id":32,"link":"photo_2036511.html","width":130,"caption":"Cottonwoods- Zion","height":91});
															thumbnails[2036565] = clik.newPhoto({"id":2036565,"src":"virginriver_thumb.jpg","galleries_id":136240,"server_id":32,"link":"photo_2036565.html","width":130,"caption":"Zion - River relections","height":89});
															thumbnails[2036568] = clik.newPhoto({"id":2036568,"src":"The-Mittens_thumb.jpg","galleries_id":136240,"server_id":32,"link":"photo_2036568.html","width":130,"caption":"The Mittens - Monument valley","height":89});
															thumbnails[2036563] = clik.newPhoto({"id":2036563,"src":"johnford_thumb.jpg","galleries_id":136240,"server_id":32,"link":"photo_2036563.html","width":130,"caption":"Monument Valley mesas","height":72});
															thumbnails[2036578] = clik.newPhoto({"id":2036578,"src":"zionpano_b_thumb.jpg","galleries_id":136240,"server_id":32,"link":"photo_2036578.html","width":130,"caption":"Zion Panorama","height":71});
															thumbnails[2036575] = clik.newPhoto({"id":2036575,"src":"Zionriver_b_thumb.jpg","galleries_id":136240,"server_id":32,"link":"photo_2036575.html","width":130,"caption":"Virgin River - Zion","height":74});
															thumbnails[2703113] = clik.newPhoto({"id":2703113,"src":"bryce-panorama_thumb.jpg","galleries_id":136240,"server_id":32,"link":"photo_2703113.html","width":130,"caption":"Bryce Panorama","height":43});
															thumbnails[2705048] = clik.newPhoto({"id":2705048,"src":"Dunraven Bay_thumb.jpg","galleries_id":431657,"server_id":32,"link":"photo_2705048.html","width":130,"caption":"Cliffs at sunset","height":189});
															thumbnails[2705179] = clik.newPhoto({"id":2705179,"src":"sunset Dunraven Bay_thumb.jpg","galleries_id":431657,"server_id":32,"link":"photo_2705179.html","width":130,"caption":"Sunset","height":189});
															thumbnails[2705177] = clik.newPhoto({"id":2705177,"src":"Heritage coast_thumb.jpg","galleries_id":431657,"server_id":32,"link":"photo_2705177.html","width":130,"caption":"Heritage Coast","height":89});
															thumbnails[2927464] = clik.newPhoto({"id":2927464,"src":"alamosadunes_thumb.jpg","galleries_id":181033,"server_id":32,"link":"photo_2927464.html","width":130,"caption":"Great Sand Dunes National Park","height":189});
															thumbnails[2927471] = clik.newPhoto({"id":2927471,"src":"aspens_thumb.jpg","galleries_id":181033,"server_id":32,"link":"photo_2927471.html","width":130,"caption":"Aspens","height":189});
															thumbnails[2927472] = clik.newPhoto({"id":2927472,"src":"aspens21_thumb.jpg","galleries_id":181033,"server_id":32,"link":"photo_2927472.html","width":130,"caption":"Aspens 2","height":184});
															thumbnails[2927483] = clik.newPhoto({"id":2927483,"src":"durango-silverton railway_thumb.jpg","galleries_id":181033,"server_id":32,"link":"photo_2927483.html","width":130,"caption":"Siverton-Durango Railway","height":189});
															thumbnails[2927476] = clik.newPhoto({"id":2927476,"src":"pano2_A3final2_thumb.jpg","galleries_id":181033,"server_id":32,"link":"photo_2927476.html","width":130,"caption":"Maroon Bells 1","height":71});
															thumbnails[2927477] = clik.newPhoto({"id":2927477,"src":"maroons&log_finalA3_thumb.jpg","galleries_id":181033,"server_id":32,"link":"photo_2927477.html","width":130,"caption":"Maroon Bells 2","height":88});
															thumbnails[2927475] = clik.newPhoto({"id":2927475,"src":"dallasdivide_thumb.jpg","galleries_id":181033,"server_id":32,"link":"photo_2927475.html","width":130,"caption":"Dallas Divide","height":88});
															thumbnails[2927484] = clik.newPhoto({"id":2927484,"src":"riverofgold_thumb.jpg","galleries_id":181033,"server_id":32,"link":"photo_2927484.html","width":130,"caption":"River of gold","height":86});
															thumbnails[2927473] = clik.newPhoto({"id":2927473,"src":"aspens4_BWA3_thumb.jpg","galleries_id":181033,"server_id":32,"link":"photo_2927473.html","width":130,"caption":"Aspens 3","height":88});
															thumbnails[2927468] = clik.newPhoto({"id":2927468,"src":"ashcroft_thumb.jpg","galleries_id":181033,"server_id":32,"link":"photo_2927468.html","width":130,"caption":"Ashcroft Ghost Town","height":85});
															thumbnails[2932982] = clik.newPhoto({"id":2932982,"src":"molas pass_thumb.jpg","galleries_id":181033,"server_id":32,"link":"photo_2932982.html","width":130,"caption":"Molas Pass","height":91});
															thumbnails[2933161] = clik.newPhoto({"id":2933161,"src":"craterlake1-final_thumb.jpg","galleries_id":181033,"server_id":32,"link":"photo_2933161.html","width":130,"caption":"View over Crater Lake ","height":89});
															thumbnails[2939641] = clik.newPhoto({"id":2939641,"src":"ashcroft_barn1_A3BW_thumb.jpg","galleries_id":181033,"server_id":32,"link":"photo_2939641.html","width":130,"caption":"Ashcroft Barn","height":89});
															thumbnails[2939654] = clik.newPhoto({"id":2939654,"src":"maroons&trees1_clouds_thumb.jpg","galleries_id":181033,"server_id":32,"link":"photo_2939654.html","width":130,"caption":"Aspens and Peaks","height":89});
															thumbnails[2939657] = clik.newPhoto({"id":2939657,"src":"train2_A3_thumb.jpg","galleries_id":181033,"server_id":32,"link":"photo_2939657.html","width":130,"caption":"Silverton-Durango Steam Train","height":89});
															thumbnails[3169687] = clik.newPhoto({"id":3169687,"src":"aspengroup3_A3_thumb.jpg","galleries_id":181033,"server_id":32,"link":"photo_3169687.html","width":130,"caption":"Aspens","height":89});
															thumbnails[3499732] = clik.newPhoto({"id":3499732,"src":"glen-etive-2b_thumb.jpg","galleries_id":214084,"server_id":32,"link":"photo_3499732.html","width":130,"caption":"Frozen River - Glen Etive","height":189});
															thumbnails[3499740] = clik.newPhoto({"id":3499740,"src":"glenetive-8b_thumb.jpg","galleries_id":214084,"server_id":32,"link":"photo_3499740.html","width":130,"caption":"Glen Etive in winter","height":191});
															thumbnails[3499776] = clik.newPhoto({"id":3499776,"src":"boulder&lake-1d_thumb.jpg","galleries_id":214084,"server_id":32,"link":"photo_3499776.html","width":130,"caption":"Loch nah- Achlaise sunrise","height":191});
															thumbnails[3500391] = clik.newPhoto({"id":3500391,"src":"falloch-falls_1BW-1b_thumb.jpg","galleries_id":214084,"server_id":32,"link":"photo_3500391.html","width":130,"caption":"Falloch Falls","height":187});
															thumbnails[3500394] = clik.newPhoto({"id":3500394,"src":"glen-etive2-5b_thumb.jpg","galleries_id":214084,"server_id":32,"link":"photo_3500394.html","width":130,"caption":"Frozen River Coupall","height":88});
															thumbnails[3499760] = clik.newPhoto({"id":3499760,"src":"glen-etive-1c_thumb.jpg","galleries_id":214084,"server_id":32,"link":"photo_3499760.html","width":130,"caption":"Frozen waterfall in Glen Etive","height":100});
															thumbnails[3499788] = clik.newPhoto({"id":3499788,"src":"loch-ba--2d_thumb.jpg","galleries_id":214084,"server_id":32,"link":"photo_3499788.html","width":130,"caption":"Loch Ba at sunrise","height":92});
															thumbnails[3499798] = clik.newPhoto({"id":3499798,"src":"loch-ba-footprints-1c_thumb.jpg","galleries_id":214084,"server_id":32,"link":"photo_3499798.html","width":130,"caption":"Loch Ba - footprints in the snow","height":89});
															thumbnails[3499803] = clik.newPhoto({"id":3499803,"src":"ice-crystals-1_thumb.jpg","galleries_id":214084,"server_id":32,"link":"photo_3499803.html","width":130,"caption":"Ice Crystals - Glen Etive","height":88});
															thumbnails[3500108] = clik.newPhoto({"id":3500108,"src":"the-tree-1b_thumb.jpg","galleries_id":214084,"server_id":32,"link":"photo_3500108.html","width":130,"caption":"Tree on Rannoch Moor","height":92});
															thumbnails[3499868] = clik.newPhoto({"id":3499868,"src":"black-rock-cottage-2b_thumb.jpg","galleries_id":214084,"server_id":32,"link":"photo_3499868.html","width":130,"caption":"Blackrock Cottage","height":90});
															thumbnails[3499875] = clik.newPhoto({"id":3499875,"src":"achlaisepan2b_thumb.jpg","galleries_id":214084,"server_id":32,"link":"photo_3499875.html","width":130,"caption":"Panorama of Loch nah- Achlaise","height":52});
															thumbnails[3499883] = clik.newPhoto({"id":3499883,"src":"lighthousepano2b_thumb.jpg","galleries_id":214084,"server_id":32,"link":"photo_3499883.html","width":130,"caption":"Corpach Lighthouse","height":47});
															thumbnails[7420248] = clik.newPhoto({"id":7420248,"src":"glenetive_tonemapped_finalborder_thumb.jpg","galleries_id":214084,"server_id":32,"link":"photo_7420248.html","width":130,"caption":"River Coupall Waterfalls","height":105});
															thumbnails[4204649] = clik.newPhoto({"id":4204649,"src":"white-pocket-18b_thumb.jpg","galleries_id":249768,"server_id":32,"link":"photo_4204649.html","width":130,"caption":"White pocket Sunset","height":90});
															thumbnails[4204657] = clik.newPhoto({"id":4204657,"src":"white-pocket-4b_thumb.jpg","galleries_id":249768,"server_id":32,"link":"photo_4204657.html","width":130,"caption":"Approaching Storm","height":87});
															thumbnails[4204676] = clik.newPhoto({"id":4204676,"src":"white-pocket_2-35b_thumb.jpg","galleries_id":249768,"server_id":32,"link":"photo_4204676.html","width":130,"caption":"Solitary Tree","height":160});
															thumbnails[4204704] = clik.newPhoto({"id":4204704,"src":"white-pocket-12b_thumb.jpg","galleries_id":249768,"server_id":32,"link":"photo_4204704.html","width":130,"caption":"Sunrise at White Pocket","height":87});
															thumbnails[4204721] = clik.newPhoto({"id":4204721,"src":"white-pocket--17b_thumb.jpg","galleries_id":249768,"server_id":32,"link":"photo_4204721.html","width":130,"caption":"Multicoloured sandstone","height":88});
															thumbnails[4204715] = clik.newPhoto({"id":4204715,"src":"candy-rock-2b_thumb.jpg","galleries_id":249768,"server_id":32,"link":"photo_4204715.html","width":130,"caption":"The 'Candy Rock'","height":169});
															thumbnails[4204796] = clik.newPhoto({"id":4204796,"src":"coyotte-butte-2b_thumb.jpg","galleries_id":249768,"server_id":32,"link":"photo_4204796.html","width":130,"caption":"Sandstone and Tree","height":164});
															thumbnails[4204803] = clik.newPhoto({"id":4204803,"src":"coyotte-butte-7b_thumb.jpg","galleries_id":249768,"server_id":32,"link":"photo_4204803.html","width":130,"caption":"Lines in the Sandstone","height":107});
															thumbnails[4204807] = clik.newPhoto({"id":4204807,"src":"control-tower-1b_thumb.jpg","galleries_id":249768,"server_id":32,"link":"photo_4204807.html","width":130,"caption":"The Control Tower","height":184});
															thumbnails[4204819] = clik.newPhoto({"id":4204819,"src":"hoodos-1b_thumb.jpg","galleries_id":249768,"server_id":32,"link":"photo_4204819.html","width":130,"caption":"The Wahweap Hoodoos","height":195});
															thumbnails[4221591] = clik.newPhoto({"id":4221591,"src":"hoodos-3b_thumb.jpg","galleries_id":249768,"server_id":32,"link":"photo_4221591.html","width":130,"caption":"Wahweap Hoodoos 2","height":195});
															thumbnails[4205147] = clik.newPhoto({"id":4205147,"src":"antelope_01-1b_thumb.jpg","galleries_id":249768,"server_id":32,"link":"photo_4205147.html","width":130,"caption":"Lower Antelope Canyon","height":90});
															thumbnails[4205150] = clik.newPhoto({"id":4205150,"src":"antelope_02-2b_thumb.jpg","galleries_id":249768,"server_id":32,"link":"photo_4205150.html","width":130,"caption":"Lower Antelope Canyon ","height":87});
															thumbnails[4221595] = clik.newPhoto({"id":4221595,"src":"white-pocket--12b_thumb.jpg","galleries_id":249768,"server_id":32,"link":"photo_4221595.html","width":130,"caption":"Rock Patterns 1","height":187});
															thumbnails[4221608] = clik.newPhoto({"id":4221608,"src":"wp_pano1_thumb.jpg","galleries_id":249768,"server_id":32,"link":"photo_4221608.html","width":130,"caption":"White pocket Panorama","height":45});
															thumbnails[5851546] = clik.newPhoto({"id":5851546,"src":"mcclean-falls-3b_thumb.jpg","galleries_id":330989,"server_id":32,"link":"photo_5851546.html","width":130,"caption":"McLean Falls","height":191});
															thumbnails[5851535] = clik.newPhoto({"id":5851535,"src":"champagnepool_2-2b_thumb.jpg","galleries_id":330989,"server_id":32,"link":"photo_5851535.html","width":130,"caption":"Campagne Pool","height":191});
															thumbnails[5857374] = clik.newPhoto({"id":5857374,"src":"sandpatterns-1b_thumb.jpg","galleries_id":330989,"server_id":32,"link":"photo_5857374.html","width":130,"caption":"Sand Paterns (2)","height":191});
															thumbnails[5857443] = clik.newPhoto({"id":5857443,"src":"wind-blown-grasses-2c_thumb.jpg","galleries_id":330989,"server_id":32,"link":"photo_5857443.html","width":130,"caption":"Wind Blown Grass","height":182});
															thumbnails[5851640] = clik.newPhoto({"id":5851640,"src":"waterfall-mcclean-3b_thumb.jpg","galleries_id":330989,"server_id":32,"link":"photo_5851640.html","width":130,"caption":"McLean Falls (2)","height":88});
															thumbnails[5851509] = clik.newPhoto({"id":5851509,"src":"cathedral-cove-1b_thumb.jpg","galleries_id":330989,"server_id":32,"link":"photo_5851509.html","width":130,"caption":"Cathedral Cove","height":88});
															thumbnails[5857368] = clik.newPhoto({"id":5857368,"src":"sandpatterns_3-3b_thumb.jpg","galleries_id":330989,"server_id":32,"link":"photo_5857368.html","width":130,"caption":"Sand Patterns (1)","height":88});
															thumbnails[5851541] = clik.newPhoto({"id":5851541,"src":"new-chums-2b_thumb.jpg","galleries_id":330989,"server_id":32,"link":"photo_5851541.html","width":130,"caption":"New Chums Bay","height":88});
															thumbnails[5857377] = clik.newPhoto({"id":5857377,"src":"lake-matheson-6b_thumb.jpg","galleries_id":330989,"server_id":32,"link":"photo_5857377.html","width":130,"caption":"Lake Matheson","height":88});
															thumbnails[5857383] = clik.newPhoto({"id":5857383,"src":"lakehdr_BW_thumb.jpg","galleries_id":330989,"server_id":32,"link":"photo_5857383.html","width":130,"caption":"Lake Mapourika","height":70});
															thumbnails[5857387] = clik.newPhoto({"id":5857387,"src":"queenstown-lake-1c_thumb.jpg","galleries_id":330989,"server_id":32,"link":"photo_5857387.html","width":130,"caption":"Lake Wakatipu","height":88});
															thumbnails[5857390] = clik.newPhoto({"id":5857390,"src":"tekapo-sunset-1b_thumb.jpg","galleries_id":330989,"server_id":32,"link":"photo_5857390.html","width":130,"caption":"Tekapo  Sunset (1)","height":88});
															thumbnails[5857395] = clik.newPhoto({"id":5857395,"src":"tekapo-sunset-3b_thumb.jpg","galleries_id":330989,"server_id":32,"link":"photo_5857395.html","width":130,"caption":"Tekapo Sunset (2)","height":88});
															thumbnails[5857441] = clik.newPhoto({"id":5857441,"src":"Sunset_Point_thumb.jpg","galleries_id":330989,"server_id":32,"link":"photo_5857441.html","width":130,"caption":"Sunset Point","height":88});
															thumbnails[5851650] = clik.newPhoto({"id":5851650,"src":"tongarrio-1b_thumb.jpg","galleries_id":330989,"server_id":32,"link":"photo_5851650.html","width":130,"caption":"Emerald Lakes","height":88});
															thumbnails[8923189] = clik.newPhoto({"id":8923189,"src":"Greenriver_final2c_thumb.jpg","galleries_id":469347,"server_id":32,"link":"photo_8923189.html","width":130,"caption":"Green River Overlook","height":87});
															thumbnails[8923202] = clik.newPhoto({"id":8923202,"src":"delicate-arch1-final_thumb.jpg","galleries_id":469347,"server_id":32,"link":"photo_8923202.html","width":130,"caption":"Delicate Arch","height":87});
															thumbnails[8923207] = clik.newPhoto({"id":8923207,"src":"turret-arch2_thumb.jpg","galleries_id":469347,"server_id":32,"link":"photo_8923207.html","width":130,"caption":"Turret Arch seen through North Window","height":87});
															thumbnails[8923214] = clik.newPhoto({"id":8923214,"src":"mesa-arch_HDR1_final_thumb.jpg","galleries_id":469347,"server_id":32,"link":"photo_8923214.html","width":130,"caption":"Mesa Arch","height":87});
															thumbnails[8923220] = clik.newPhoto({"id":8923220,"src":"mon-val-sunset1_final_thumb.jpg","galleries_id":469347,"server_id":32,"link":"photo_8923220.html","width":130,"caption":"Monument Valley Sunset","height":68});
															thumbnails[8923952] = clik.newPhoto({"id":8923952,"src":"Zion-Bigbend1_HDR_thumb.jpg","galleries_id":469347,"server_id":32,"link":"photo_8923952.html","width":130,"caption":"Big Bend - Zion","height":87});
															thumbnails[8924115] = clik.newPhoto({"id":8924115,"src":"capreef1-1-PanoramaFINAL2_98DA803F-1EC9-D45B-1CC6F5B5A3B7DC23_thumb.jpg","galleries_id":469347,"server_id":32,"link":"photo_8924115.html","width":130,"caption":"Capital Reef Panorama","height":42});
															thumbnails[8924124] = clik.newPhoto({"id":8924124,"src":"hickman-bridge-1_thumb.jpg","galleries_id":469347,"server_id":32,"link":"photo_8924124.html","width":130,"caption":"Hickman Bridge","height":87});
															thumbnails[8933767] = clik.newPhoto({"id":8933767,"src":"chimnet3_HDR3_thumb.jpg","galleries_id":469347,"server_id":32,"link":"photo_8933767.html","width":130,"caption":"The Chimney - Capital Reef","height":90});
															thumbnails[8924103] = clik.newPhoto({"id":8924103,"src":"bryce1-1final_b_thumb.jpg","galleries_id":469347,"server_id":32,"link":"photo_8924103.html","width":130,"caption":"Bryce Canyon","height":195});
															thumbnails[8923972] = clik.newPhoto({"id":8923972,"src":"zion-60_1_tonemapped2b_thumb.jpg","galleries_id":469347,"server_id":32,"link":"photo_8923972.html","width":130,"caption":"The Narrows - Zion","height":195});
															thumbnails[8924118] = clik.newPhoto({"id":8924118,"src":"capial-reef-1_final_thumb.jpg","galleries_id":469347,"server_id":32,"link":"photo_8924118.html","width":130,"caption":"Chimney Rock ","height":195});
															thumbnails[8923942] = clik.newPhoto({"id":8923942,"src":"wall-street-2_thumb.jpg","galleries_id":469347,"server_id":32,"link":"photo_8923942.html","width":130,"caption":"Wall Street - Bryce ","height":256});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[214084] = clik.newGallery({"parentGallery":136247,"usePopups":false,"title":"Glencoe","link":"gallery_214084.html","maxRecords":0.0,"photoIDs":[3499732.0,3499740.0,3499776.0,3500391.0,3500394.0,3499760.0,3499788.0,3499798.0,3499803.0,3500108.0,3499868.0,3499875.0,3499883.0,7420248.0],"skipIndex":0,"section_code":"gallery","featured_images":3499788.0,"id":214084,"singleSection":false});				  						galleries[136250] = clik.newGallery({"parentGallery":136247,"usePopups":false,"title":"Lake District","link":"gallery_136250.html","maxRecords":0.0,"photoIDs":[2033552.0,2033561.0,2709611.0,3169635.0,7220323.0,7220328.0,7220337.0,7220450.0,7226073.0,7242445.0,7242448.0,7376065.0],"skipIndex":0,"section_code":"gallery","featured_images":2033552.0,"id":136250,"singleSection":false});				  						galleries[136248] = clik.newGallery({"parentGallery":136247,"usePopups":false,"title":"North Wales","link":"gallery_136248.html","maxRecords":0.0,"photoIDs":[2033451.0,2033456.0,2033483.0,2033484.0],"skipIndex":0,"section_code":"gallery","featured_images":2033456.0,"id":136248,"singleSection":false});				  						galleries[170750] = clik.newGallery({"parentGallery":136247,"usePopups":false,"title":"Snowshill ","link":"gallery_170750.html","maxRecords":0.0,"photoIDs":[2709852.0,2709854.0,7226075.0],"skipIndex":0,"section_code":"gallery","featured_images":7226075.0,"id":170750,"singleSection":false});				  						galleries[431657] = clik.newGallery({"parentGallery":136247,"usePopups":false,"title":"The Coast","link":"gallery_431657.html","maxRecords":0.0,"photoIDs":[2033553.0,2033555.0,2083735.0,3777412.0,3777418.0,8045780.0,8045784.0,8045793.0,2705048.0,2705179.0,2705177.0],"skipIndex":0,"section_code":"gallery","featured_images":8045784.0,"id":431657,"singleSection":false});				  						galleries[136240] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Canyons - USA","link":"gallery_136240.html","maxRecords":0.0,"photoIDs":[2036504.0,2036507.0,2036514.0,2036517.0,2036519.0,2036545.0,2036573.0,2036576.0,2036579.0,2703131.0,2704969.0,2058779.0,2704966.0,2036511.0,2036565.0,2036568.0,2036563.0,2036578.0,2036575.0,2703113.0],"skipIndex":0,"section_code":"gallery","featured_images":2036507.0,"id":136240,"singleSection":false});				  						galleries[136242] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Yosemite and Death Valley","link":"gallery_136242.html","maxRecords":0.0,"photoIDs":[2034104.0,2034109.0,2034116.0,2034115.0,2034106.0,2034107.0,2034108.0,2034111.0,2034113.0,2034201.0,2034203.0,2703123.0,2703119.0,2703099.0,3169725.0],"skipIndex":0,"section_code":"gallery","featured_images":2034109.0,"id":136242,"singleSection":false});				  						galleries[136243] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Montana and Wyoming","link":"gallery_136243.html","maxRecords":0.0,"photoIDs":[2704974.0,2705000.0,2705007.0,2705015.0,2034068.0,2034070.0,2034082.0,2034071.0,2034087.0,2034078.0,2034079.0,2034084.0,2034091.0,2034092.0,2705019.0],"skipIndex":0,"section_code":"gallery","featured_images":2034087.0,"id":136243,"singleSection":false});				  						galleries[181033] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Colorado","link":"gallery_181033.html","maxRecords":0.0,"photoIDs":[2927464.0,2927471.0,2927472.0,2927483.0,2927476.0,2927477.0,2927475.0,2927484.0,2927473.0,2927468.0,2932982.0,2933161.0,2939641.0,2939654.0,2939657.0,3169687.0],"skipIndex":0,"section_code":"gallery","featured_images":2927471.0,"id":181033,"singleSection":false});				  						galleries[136244] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"New England","link":"gallery_136244.html","maxRecords":0.0,"photoIDs":[2033800.0,2033803.0,2033813.0,2033815.0,2033817.0,2033810.0],"skipIndex":0,"section_code":"gallery","featured_images":2033813.0,"id":136244,"singleSection":false});				  						galleries[249768] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Utah and Arizona Wilderness","link":"gallery_249768.html","maxRecords":0.0,"photoIDs":[4204649.0,4204657.0,4204676.0,4204704.0,4204721.0,4204715.0,4204796.0,4204803.0,4204807.0,4204819.0,4221591.0,4205147.0,4205150.0,4221595.0,4221608.0],"skipIndex":0,"section_code":"gallery","featured_images":4204807.0,"id":249768,"singleSection":false});				  						galleries[136245] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Tuscany","link":"gallery_136245.html","maxRecords":0.0,"photoIDs":[2705225.0,2033896.0,2033904.0,2033907.0,2033910.0,2033911.0,2033915.0,2033920.0,2033917.0,2705193.0],"skipIndex":0,"section_code":"gallery","featured_images":2033917.0,"id":136245,"singleSection":false});				  						galleries[136247] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"United Kingdom","link":"gallery_136247.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"8045784,7226075,3499788,2033552,2033456","id":136247,"singleSection":false});				  						galleries[330989] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"New Zealand","link":"gallery_330989.html","maxRecords":0.0,"photoIDs":[5851546.0,5851535.0,5857374.0,5857443.0,5851640.0,5851509.0,5857368.0,5851541.0,5857377.0,5857383.0,5857387.0,5857390.0,5857395.0,5857441.0,5851650.0],"skipIndex":0,"section_code":"gallery","featured_images":5857387.0,"id":330989,"singleSection":false});				  						galleries[469347] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"New Images","link":"gallery_469347.html","maxRecords":0.0,"photoIDs":[8923189.0,8923202.0,8923207.0,8923214.0,8923220.0,8923952.0,8924115.0,8924124.0,8933767.0,8924103.0,8923972.0,8924118.0,8923942.0],"skipIndex":0,"section_code":"gallery","featured_images":8923952.0,"id":469347,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '7220337';
imageSets[2] = '8045784,7226075,2036507,2033813,2033552,2033456,2033917,2034109,2034087,2927471,3499788,4204807,5857387,8923952';
imageSets[3] = '3777418';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/jpdsnabel/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/jpdsnabel/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/jpdsnabel/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/jpdsnabel/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/jpdsnabel/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/jpdsnabel/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/jpdsnabel/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/jpdsnabel/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/jpdsnabel/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/jpdsnabel/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/jpdsnabel/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/jpdsnabel/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/jpdsnabel/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/jpdsnabel/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/jpdsnabel/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/jpdsnabel/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/jpdsnabel/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/jpdsnabel/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/jpdsnabel/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/jpdsnabel/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/jpdsnabel/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/jpdsnabel/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/jpdsnabel/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/jpdsnabel/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/jpdsnabel/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/jpdsnabel/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/jpdsnabel/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = (backgrounds || photos || {})[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$detailContainer:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
		op = $.extend({},defaults,options),
		html = '', temp = '',
		photoId = op.nextPhoto.id,
		photoCaption = ''+op.nextPhoto.caption,
		photoSrc = op.nextPhoto.src;
	
	if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'John Snabel Photography: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
	temp += this.fnGetPaymentInfo();
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>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="updateCartValue($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
		else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
											temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm">';
			temp += '	<input type="hidden" name="item_option" value="' + item_option + '">';
			temp += '	<input type="hidden" name="site" value="JPDSNABEL">';
			temp += '	<input type="hidden" name="item_number" value="'+ this.id +'">';
			temp += '	<input type="hidden" name="quantity" value="1">';
						temp += '	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\'\;" onmouseout="this.className=\'button\'\;" type="Button">';
							temp += '	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';
			temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
			temp += '<div id="confirmContainer">';
			temp += '<div id="paymentConfirm">Item added to cart</div>';
			temp += '</div>';
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

