window.thumbnails = {};
															thumbnails[3878909] = clik.newPhoto({"id":3878909,"src":"snowscene_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":94});
															thumbnails[5395230] = clik.newPhoto({"id":5395230,"src":"medici_gallery_london_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":169});
															thumbnails[5395237] = clik.newPhoto({"id":5395237,"src":"colin_roberts_at_kew_gardens_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":108});
															thumbnails[5395244] = clik.newPhoto({"id":5395244,"src":"colin_roberts_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":87});
															thumbnails[5396409] = clik.newPhoto({"id":5396409,"src":"fine-art-prints_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":54});
															thumbnails[5396418] = clik.newPhoto({"id":5396418,"src":"retro4_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":63});
															thumbnails[5396419] = clik.newPhoto({"id":5396419,"src":"retro7_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":63});
															thumbnails[5396420] = clik.newPhoto({"id":5396420,"src":"dummer-hampshire_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":46});
															thumbnails[5396421] = clik.newPhoto({"id":5396421,"src":"exbury-gardens_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":54});
															thumbnails[5396422] = clik.newPhoto({"id":5396422,"src":"retro1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":52});
															thumbnails[5396423] = clik.newPhoto({"id":5396423,"src":"nantgwyllt-elan-valley-wales_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":62});
															thumbnails[5396424] = clik.newPhoto({"id":5396424,"src":"retro6_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":54});
															thumbnails[6162722] = clik.newPhoto({"id":6162722,"src":"colin-roberts-2010_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":89});
															thumbnails[6866630] = clik.newPhoto({"id":6866630,"src":"Snowscene3_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":94});
															thumbnails[7281981] = clik.newPhoto({"id":7281981,"src":"Land-of-mist-new-forest_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":94});
															thumbnails[7339110] = clik.newPhoto({"id":7339110,"src":"tree-lined-landscape3_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":87});
															thumbnails[7742666] = clik.newPhoto({"id":7742666,"src":"tree-lined-landscape4_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":87});
															thumbnails[8740897] = clik.newPhoto({"id":8740897,"src":"Sea-thrift-1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":88});
															thumbnails[8740899] = clik.newPhoto({"id":8740899,"src":"Sea-thrift-5_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":99});
															thumbnails[8740904] = clik.newPhoto({"id":8740904,"src":"colin-roberts-2011_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":186});
															thumbnails[8740905] = clik.newPhoto({"id":8740905,"src":"colin-roberts-at-kew-garden_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":120});
															thumbnails[8774033] = clik.newPhoto({"id":8774033,"src":"Sea-thrift-3_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":118});
															thumbnails[8774036] = clik.newPhoto({"id":8774036,"src":"Sea-thrift-4_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":99});
															thumbnails[8994566] = clik.newPhoto({"id":8994566,"src":"Colin-Roberts-Retrospective_11A8356D-1EC9-D45B-1CF1379D60F5347B_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":61});
															thumbnails[2002686] = clik.newPhoto({"id":2002686,"src":"west-bay-bridport-dorset_thumb.jpg","galleries_id":130166,"server_id":1,"link":"photo_2002686.html","width":130,"caption":"Shingle pool, Dorset coast","height":195});
															thumbnails[2055008] = clik.newPhoto({"id":2055008,"src":"rippled-sand-pattern_thumb.jpg","galleries_id":137278,"server_id":1,"link":"photo_2055008.html","width":130,"caption":"Rippled sand, Bantham","height":195});
															thumbnails[2055035] = clik.newPhoto({"id":2055035,"src":"rhs-beech-tree-south-downs_thumb.jpg","galleries_id":134356,"server_id":1,"link":"photo_2055035.html","width":130,"caption":"Beech tree, South Downs","height":195});
															thumbnails[3878905] = clik.newPhoto({"id":3878905,"src":"misty-pinewood-in-autumn_thumb.jpg","galleries_id":134355,"server_id":1,"link":"photo_3878905.html","width":130,"caption":"Pinewoods in autumn","height":195});
															thumbnails[4728184] = clik.newPhoto({"id":4728184,"src":"pink-rosebay-willowherb_thumb.jpg","galleries_id":271467,"server_id":1,"link":"photo_4728184.html","width":130,"caption":"Rosebay Willowherb","height":195});
															thumbnails[4731827] = clik.newPhoto({"id":4731827,"src":"river-test-hampshire_thumb.jpg","galleries_id":130531,"server_id":1,"link":"photo_4731827.html","width":130,"caption":"Test Valley, Hampshire","height":195});
															thumbnails[4740167] = clik.newPhoto({"id":4740167,"src":"cumulonimbus-cloud-april_thumb.jpg","galleries_id":134353,"server_id":1,"link":"photo_4740167.html","width":130,"caption":"Cumulonimbus, April","height":195});
															thumbnails[4740174] = clik.newPhoto({"id":4740174,"src":"new-forest-fearns-heather_thumb.jpg","galleries_id":134354,"server_id":1,"link":"photo_4740174.html","width":130,"caption":"Ferns among heather","height":195});
															thumbnails[2054380] = clik.newPhoto({"id":2054380,"src":"frosty-morning-river-avon_thumb.jpg","galleries_id":134355,"server_id":1,"link":"photo_2054380.html","width":130,"caption":"Autumn frost","height":195});
															thumbnails[2054398] = clik.newPhoto({"id":2054398,"src":"beech-tree-in-barley-field_thumb.jpg","galleries_id":134354,"server_id":1,"link":"photo_2054398.html","width":130,"caption":"Beech in the barley, July","height":195});
															thumbnails[2054987] = clik.newPhoto({"id":2054987,"src":"shortheath-common-hampshire_thumb.jpg","galleries_id":134356,"server_id":1,"link":"photo_2054987.html","width":130,"caption":"Lakeside in winter","height":195});
															thumbnails[2054989] = clik.newPhoto({"id":2054989,"src":"poplar-tree-plantation_thumb.jpg","galleries_id":130531,"server_id":1,"link":"photo_2054989.html","width":130,"caption":"The tall poplars","height":195});
															thumbnails[2055006] = clik.newPhoto({"id":2055006,"src":"eroded-rock-seascape_thumb.jpg","galleries_id":137278,"server_id":1,"link":"photo_2055006.html","width":130,"caption":"Wave-beaten rocks, dusk","height":195});
															thumbnails[2055028] = clik.newPhoto({"id":2055028,"src":"tidal-pool-ilfracombe-devon_thumb.jpg","galleries_id":130166,"server_id":1,"link":"photo_2055028.html","width":130,"caption":"Tidal pool, Devon","height":195});
															thumbnails[4728272] = clik.newPhoto({"id":4728272,"src":"bluebells-and-ferns_thumb.jpg","galleries_id":271467,"server_id":1,"link":"photo_4728272.html","width":130,"caption":"Bluebells and ferns","height":195});
															thumbnails[4737196] = clik.newPhoto({"id":4737196,"src":"skyline-with-beech_thumb.jpg","galleries_id":134353,"server_id":1,"link":"photo_4737196.html","width":130,"caption":"Skyline with beech","height":195});
															thumbnails[2054383] = clik.newPhoto({"id":2054383,"src":"season-of-mist_thumb.jpg","galleries_id":134356,"server_id":1,"link":"photo_2054383.html","width":130,"caption":"Mist on the downs","height":195});
															thumbnails[2054954] = clik.newPhoto({"id":2054954,"src":"farley-mount-country-park_thumb.jpg","galleries_id":134355,"server_id":1,"link":"photo_2054954.html","width":130,"caption":"Hampshire Downs","height":195});
															thumbnails[2055124] = clik.newPhoto({"id":2055124,"src":"bluebells-in-beech-woods_thumb.jpg","galleries_id":134353,"server_id":1,"link":"photo_2055124.html","width":130,"caption":"Bluebells in beech woods","height":195});
															thumbnails[3315630] = clik.newPhoto({"id":3315630,"src":"silver-birch-tree-profiles_thumb.jpg","galleries_id":137278,"server_id":1,"link":"photo_3315630.html","width":130,"caption":"Gathering of silver birch","height":195});
															thumbnails[3315664] = clik.newPhoto({"id":3315664,"src":"yellow-marine-buoy_thumb.jpg","galleries_id":130166,"server_id":1,"link":"photo_3315664.html","width":130,"caption":"Stranded buoy, Saunton","height":195});
															thumbnails[4728326] = clik.newPhoto({"id":4728326,"src":"wild-poppies_thumb.jpg","galleries_id":271467,"server_id":1,"link":"photo_4728326.html","width":130,"caption":"Wind-blown poppies","height":195});
															thumbnails[4739883] = clik.newPhoto({"id":4739883,"src":"ash-tree-on-the-south-downs_thumb.jpg","galleries_id":130531,"server_id":1,"link":"photo_4739883.html","width":130,"caption":"Ash tree on the downs","height":195});
															thumbnails[5396408] = clik.newPhoto({"id":5396408,"src":"flax-fields-summer-season_thumb.jpg","galleries_id":134354,"server_id":1,"link":"photo_5396408.html","width":130,"caption":"Flax fields, Hampshire","height":195});
															thumbnails[2054363] = clik.newPhoto({"id":2054363,"src":"japanese-maple_thumb.jpg","galleries_id":134355,"server_id":1,"link":"photo_2054363.html","width":130,"caption":"Maple in October","height":195});
															thumbnails[2054970] = clik.newPhoto({"id":2054970,"src":"tree-lines-in-snow_thumb.jpg","galleries_id":134356,"server_id":1,"link":"photo_2054970.html","width":130,"caption":"Tree lines in ice & snow","height":195});
															thumbnails[2055138] = clik.newPhoto({"id":2055138,"src":"river-itchen-hampshire_thumb.jpg","galleries_id":134354,"server_id":1,"link":"photo_2055138.html","width":130,"caption":"Itchen Valley, June","height":195});
															thumbnails[3315635] = clik.newPhoto({"id":3315635,"src":"abstract-seascape-in-mono1_thumb.jpg","galleries_id":137278,"server_id":1,"link":"photo_3315635.html","width":130,"caption":"Empty beach","height":195});
															thumbnails[3878900] = clik.newPhoto({"id":3878900,"src":"country-lane-south-downs_thumb.jpg","galleries_id":130531,"server_id":1,"link":"photo_3878900.html","width":130,"caption":"Downland road","height":194});
															thumbnails[4731852] = clik.newPhoto({"id":4731852,"src":"rock-pool-hoe-point_thumb.jpg","galleries_id":130166,"server_id":1,"link":"photo_4731852.html","width":130,"caption":"Praa Sands, Mount's Bay, Cornwall ","height":195});
															thumbnails[5396382] = clik.newPhoto({"id":5396382,"src":"spring-in-the-highlands_thumb.jpg","galleries_id":134353,"server_id":1,"link":"photo_5396382.html","width":130,"caption":"Spring in the Highlands","height":195});
															thumbnails[5396396] = clik.newPhoto({"id":5396396,"src":"sea-thrift1_thumb.jpg","galleries_id":271467,"server_id":1,"link":"photo_5396396.html","width":130,"caption":"Thrift flowers, known as the 'sea pinks'","height":195});
															thumbnails[2054417] = clik.newPhoto({"id":2054417,"src":"england-in-autumn_thumb.jpg","galleries_id":134355,"server_id":1,"link":"photo_2054417.html","width":130,"caption":"Country lane, autumn","height":195});
															thumbnails[2055009] = clik.newPhoto({"id":2055009,"src":"sandymouth-beach-cornwall_thumb.jpg","galleries_id":130166,"server_id":1,"link":"photo_2055009.html","width":130,"caption":"Passing clouds, Sandymouth, Cornwall","height":195});
															thumbnails[3315533] = clik.newPhoto({"id":3315533,"src":"oak-and-ash-in-mist_thumb.jpg","galleries_id":134356,"server_id":1,"link":"photo_3315533.html","width":130,"caption":"Oak & ash, January","height":87});
															thumbnails[3315587] = clik.newPhoto({"id":3315587,"src":"borage-crop-wessex-downs_thumb.jpg","galleries_id":134354,"server_id":1,"link":"photo_3315587.html","width":129,"caption":"Flowering borage, Wessex Downs","height":195});
															thumbnails[3318986] = clik.newPhoto({"id":3318986,"src":"forest-snowscene_thumb.jpg","galleries_id":137278,"server_id":1,"link":"photo_3318986.html","width":130,"caption":"Snow in the plantation","height":87});
															thumbnails[4728284] = clik.newPhoto({"id":4728284,"src":"oxeye-daisy-oak-tree_thumb.jpg","galleries_id":271467,"server_id":1,"link":"photo_4728284.html","width":130,"caption":"Ox-eye daisy","height":194});
															thumbnails[4731832] = clik.newPhoto({"id":4731832,"src":"wast-water-lake-district_thumb.jpg","galleries_id":130531,"server_id":1,"link":"photo_4731832.html","width":130,"caption":"Wast Water, Cumbria","height":68});
															thumbnails[4737198] = clik.newPhoto({"id":4737198,"src":"reflections-of-green_thumb.jpg","galleries_id":134353,"server_id":1,"link":"photo_4737198.html","width":130,"caption":"Reflections of green","height":195});
															thumbnails[2054372] = clik.newPhoto({"id":2054372,"src":"wood-anemones-wind-flowers_thumb.jpg","galleries_id":271467,"server_id":1,"link":"photo_2054372.html","width":130,"caption":"Wood anemones","height":195});
															thumbnails[2054400] = clik.newPhoto({"id":2054400,"src":"country-lane-in-mist_thumb.jpg","galleries_id":134356,"server_id":1,"link":"photo_2054400.html","width":130,"caption":"Cold morning, with mist","height":87});
															thumbnails[2054969] = clik.newPhoto({"id":2054969,"src":"river-itchen-hampshire1_thumb.jpg","galleries_id":134355,"server_id":1,"link":"photo_2054969.html","width":130,"caption":"Itchen Valley, November","height":195});
															thumbnails[2054977] = clik.newPhoto({"id":2054977,"src":"south-downs-landscape_thumb.jpg","galleries_id":137278,"server_id":1,"link":"photo_2054977.html","width":130,"caption":"Landscape with oak & ash, winter","height":87});
															thumbnails[2178495] = clik.newPhoto({"id":2178495,"src":"southern-scotland-landscape_thumb.jpg","galleries_id":130531,"server_id":1,"link":"photo_2178495.html","width":130,"caption":"Southern Scotland, dawn","height":87});
															thumbnails[4737187] = clik.newPhoto({"id":4737187,"src":"forest-ferns-spring-season_thumb.jpg","galleries_id":134353,"server_id":1,"link":"photo_4737187.html","width":130,"caption":"Woodland ferns, May","height":195});
															thumbnails[3315768] = clik.newPhoto({"id":3315768,"src":"pebbles-and-rock-strata_thumb.jpg","galleries_id":130166,"server_id":1,"link":"photo_3315768.html","width":130,"caption":"Pebbles & strata","height":195});
															thumbnails[2054369] = clik.newPhoto({"id":2054369,"src":"loch-achall-scotland_thumb.jpg","galleries_id":130531,"server_id":1,"link":"photo_2054369.html","width":130,"caption":"Loch Achall","height":87});
															thumbnails[2054374] = clik.newPhoto({"id":2054374,"src":"rock-formations-devon-coast_thumb.jpg","galleries_id":130166,"server_id":1,"link":"photo_2054374.html","width":130,"caption":"Wild coast, Devon","height":195});
															thumbnails[2054421] = clik.newPhoto({"id":2054421,"src":"new-forest-fall_thumb.jpg","galleries_id":134355,"server_id":1,"link":"photo_2054421.html","width":130,"caption":"New Forest fall","height":195});
															thumbnails[2054426] = clik.newPhoto({"id":2054426,"src":"wind-blown-beech-trees_thumb.jpg","galleries_id":134354,"server_id":1,"link":"photo_2054426.html","width":130,"caption":"Wind-blown beech","height":195});
															thumbnails[2054975] = clik.newPhoto({"id":2054975,"src":"oak-tree-reflection_thumb.jpg","galleries_id":134356,"server_id":1,"link":"photo_2054975.html","width":130,"caption":"Lakeside reflections, North Downs","height":87});
															thumbnails[2054996] = clik.newPhoto({"id":2054996,"src":"crop-of-opium-poppies_thumb.jpg","galleries_id":134354,"server_id":1,"link":"photo_2054996.html","width":130,"caption":"Pink poppies, sunrise","height":195});
															thumbnails[2054999] = clik.newPhoto({"id":2054999,"src":"field-of-yellow-rapeseed_thumb.jpg","galleries_id":134353,"server_id":1,"link":"photo_2054999.html","width":130,"caption":"Field of yellow","height":195});
															thumbnails[2055013] = clik.newPhoto({"id":2055013,"src":"winter-landscape-in-mono_thumb.jpg","galleries_id":137278,"server_id":1,"link":"photo_2055013.html","width":130,"caption":"Winter landscape, with snow","height":87});
															thumbnails[4737167] = clik.newPhoto({"id":4737167,"src":"sainfoin-meadow_thumb.jpg","galleries_id":271467,"server_id":1,"link":"photo_4737167.html","width":130,"caption":"Sainfoin meadow","height":194});
															thumbnails[2054964] = clik.newPhoto({"id":2054964,"src":"harewood-forest-hampshire_thumb.jpg","galleries_id":134355,"server_id":1,"link":"photo_2054964.html","width":130,"caption":"By the woods, November","height":195});
															thumbnails[2054978] = clik.newPhoto({"id":2054978,"src":"ancient-oaks-freezing-fog_thumb.jpg","galleries_id":134356,"server_id":1,"link":"photo_2054978.html","width":130,"caption":"Ancient oaks in fog","height":87});
															thumbnails[2055017] = clik.newPhoto({"id":2055017,"src":"stitchwort-solomons-seal_thumb.jpg","galleries_id":271467,"server_id":1,"link":"photo_2055017.html","width":130,"caption":"Stitchwort, bluebells & Solomon's seal","height":195});
															thumbnails[4731825] = clik.newPhoto({"id":4731825,"src":"loch-duartmore-scotland_thumb.jpg","galleries_id":130531,"server_id":1,"link":"photo_4731825.html","width":130,"caption":"Loch Duartmore","height":68});
															thumbnails[4731853] = clik.newPhoto({"id":4731853,"src":"sunset-north-west-scotland_thumb.jpg","galleries_id":130166,"server_id":1,"link":"photo_4731853.html","width":130,"caption":"Highland sunset","height":195});
															thumbnails[4737183] = clik.newPhoto({"id":4737183,"src":"scots-pine-new-forest-heath_thumb.jpg","galleries_id":134354,"server_id":1,"link":"photo_4737183.html","width":130,"caption":"Moorland pool","height":195});
															thumbnails[4737202] = clik.newPhoto({"id":4737202,"src":"pussy-willow-catkins_thumb.jpg","galleries_id":134353,"server_id":1,"link":"photo_4737202.html","width":130,"caption":"Pussy willow catkins in March","height":195});
															thumbnails[4821756] = clik.newPhoto({"id":4821756,"src":"north-downs-snowscene_thumb.jpg","galleries_id":137278,"server_id":1,"link":"photo_4821756.html","width":130,"caption":"North Downs snowscene","height":87});
															thumbnails[2054424] = clik.newPhoto({"id":2054424,"src":"magnolia-leaf-fall-exbury_thumb.jpg","galleries_id":134355,"server_id":1,"link":"photo_2054424.html","width":130,"caption":"Magnolia leaves","height":87});
															thumbnails[2054945] = clik.newPhoto({"id":2054945,"src":"horse-chestnut-trees_thumb.jpg","galleries_id":130531,"server_id":1,"link":"photo_2054945.html","width":130,"caption":"Twin chestnuts","height":69});
															thumbnails[3315547] = clik.newPhoto({"id":3315547,"src":"country-lane-spring-view_thumb.jpg","galleries_id":134353,"server_id":1,"link":"photo_3315547.html","width":130,"caption":"Country lane with spring flowers","height":87});
															thumbnails[3360443] = clik.newPhoto({"id":3360443,"src":"road-in-the-wilderness_thumb.jpg","galleries_id":137278,"server_id":1,"link":"photo_3360443.html","width":130,"caption":"Destitution Road, north-west Highlands","height":83});
															thumbnails[4731802] = clik.newPhoto({"id":4731802,"src":"dandelion-seedhead-somerset_thumb.jpg","galleries_id":271467,"server_id":1,"link":"photo_4731802.html","width":130,"caption":"Dandelion seedheads","height":87});
															thumbnails[4739893] = clik.newPhoto({"id":4739893,"src":"eroded-rocks-devon-coast_thumb.jpg","galleries_id":130166,"server_id":1,"link":"photo_4739893.html","width":130,"caption":"Patterns in shale","height":87});
															thumbnails[4740384] = clik.newPhoto({"id":4740384,"src":"storm-clouds-new-forest_thumb.jpg","galleries_id":134356,"server_id":1,"link":"photo_4740384.html","width":130,"caption":"Stormlight, New Forest","height":69});
															thumbnails[5396393] = clik.newPhoto({"id":5396393,"src":"swan-on-the-river-itchen_thumb.jpg","galleries_id":134354,"server_id":1,"link":"photo_5396393.html","width":130,"caption":"The swan","height":87});
															thumbnails[2054389] = clik.newPhoto({"id":2054389,"src":"kingston-lacy-wimborne_thumb.jpg","galleries_id":134355,"server_id":1,"link":"photo_2054389.html","width":130,"caption":"Autumn mist, Kingston Lacy","height":87});
															thumbnails[2054968] = clik.newPhoto({"id":2054968,"src":"frozen-icicles-december_thumb.jpg","galleries_id":134356,"server_id":1,"link":"photo_2054968.html","width":130,"caption":"Icicles","height":87});
															thumbnails[2055001] = clik.newPhoto({"id":2055001,"src":"mountain-wilderness_thumb.jpg","galleries_id":130531,"server_id":1,"link":"photo_2055001.html","width":130,"caption":"Highland wilderness","height":87});
															thumbnails[2055030] = clik.newPhoto({"id":2055030,"src":"trees-and-landscape-england_thumb.jpg","galleries_id":134353,"server_id":1,"link":"photo_2055030.html","width":130,"caption":"Tree-lined landscape","height":68});
															thumbnails[3315676] = clik.newPhoto({"id":3315676,"src":"bubble-patterns-sea-water_thumb.jpg","galleries_id":130166,"server_id":1,"link":"photo_3315676.html","width":130,"caption":"Bubble patterns","height":87});
															thumbnails[3601402] = clik.newPhoto({"id":3601402,"src":"snow-covered-cherry-trees_thumb.jpg","galleries_id":137278,"server_id":1,"link":"photo_3601402.html","width":130,"caption":"Snow in the orchard","height":87});
															thumbnails[4731804] = clik.newPhoto({"id":4731804,"src":"ramsons-wild-garlic_thumb.jpg","galleries_id":271467,"server_id":1,"link":"photo_4731804.html","width":130,"caption":"Ramsons & bluebells","height":66});
															thumbnails[2054395] = clik.newPhoto({"id":2054395,"src":"beech-tree-avenue_thumb.jpg","galleries_id":134353,"server_id":1,"link":"photo_2054395.html","width":130,"caption":"Avenue of green","height":87});
															thumbnails[2054949] = clik.newPhoto({"id":2054949,"src":"hampshire-downs-in-june_thumb.jpg","galleries_id":134354,"server_id":1,"link":"photo_2054949.html","width":130,"caption":"Hampshire Downs in June","height":87});
															thumbnails[2054950] = clik.newPhoto({"id":2054950,"src":"cul-mor-sutherland-scotland_thumb.jpg","galleries_id":130531,"server_id":1,"link":"photo_2054950.html","width":130,"caption":"Cul Mor, Sutherland","height":87});
															thumbnails[2054972] = clik.newPhoto({"id":2054972,"src":"avington-house-hampshire_thumb.jpg","galleries_id":134355,"server_id":1,"link":"photo_2054972.html","width":130,"caption":"Avenue of lime trees","height":87});
															thumbnails[2055014] = clik.newPhoto({"id":2055014,"src":"oak-trees-in-winter-snow_thumb.jpg","galleries_id":137278,"server_id":1,"link":"photo_2055014.html","width":130,"caption":"Oak snowscene","height":87});
															thumbnails[3315681] = clik.newPhoto({"id":3315681,"src":"surf-pattern-woolacombe_thumb.jpg","galleries_id":130166,"server_id":1,"link":"photo_3315681.html","width":130,"caption":"Surf plume, Devon","height":86});
															thumbnails[3404099] = clik.newPhoto({"id":3404099,"src":"lime-tree-shapes-in-mist_thumb.jpg","galleries_id":134356,"server_id":1,"link":"photo_3404099.html","width":130,"caption":"Lime trees with mist","height":65});
															thumbnails[4731806] = clik.newPhoto({"id":4731806,"src":"wild-snowdrops_thumb.jpg","galleries_id":271467,"server_id":1,"link":"photo_4731806.html","width":130,"caption":"Wild snowdrops ","height":87});
															thumbnails[2054991] = clik.newPhoto({"id":2054991,"src":"lombardy-poplar-trees_thumb.jpg","galleries_id":134356,"server_id":1,"link":"photo_2054991.html","width":130,"caption":"Frosted poplars, December","height":76});
															thumbnails[2055023] = clik.newPhoto({"id":2055023,"src":"stourhead-bridge_thumb.jpg","galleries_id":134355,"server_id":1,"link":"photo_2055023.html","width":130,"caption":"Stourhead","height":87});
															thumbnails[2055032] = clik.newPhoto({"id":2055032,"src":"wave-patterns-on-the-beach_thumb.jpg","galleries_id":130166,"server_id":1,"link":"photo_2055032.html","width":130,"caption":"Wave patterns","height":87});
															thumbnails[2055033] = clik.newPhoto({"id":2055033,"src":"poppies-and-rapeseed_thumb.jpg","galleries_id":134354,"server_id":1,"link":"photo_2055033.html","width":130,"caption":"Field of flowers","height":87});
															thumbnails[3315594] = clik.newPhoto({"id":3315594,"src":"bluebell-woods-dawn_thumb.jpg","galleries_id":134353,"server_id":1,"link":"photo_3315594.html","width":130,"caption":"Bluebell woods, dawn","height":88});
															thumbnails[4731798] = clik.newPhoto({"id":4731798,"src":"abstract-seascape-with-rock1_thumb.jpg","galleries_id":137278,"server_id":1,"link":"photo_4731798.html","width":130,"caption":"Sea stack","height":87});
															thumbnails[4731803] = clik.newPhoto({"id":4731803,"src":"oxeye-moon-daisies-meadow_thumb.jpg","galleries_id":271467,"server_id":1,"link":"photo_4731803.html","width":130,"caption":"Moon daisy meadow","height":86});
															thumbnails[4739595] = clik.newPhoto({"id":4739595,"src":"thatched-hut-on-river-test_thumb.jpg","galleries_id":134354,"server_id":1,"link":"photo_4739595.html","width":130,"caption":"Thatched river hut","height":87});
															thumbnails[4739983] = clik.newPhoto({"id":4739983,"src":"burton-mill-pond-sussex_thumb.jpg","galleries_id":130531,"server_id":1,"link":"photo_4739983.html","width":130,"caption":"Burton mill pond, Sussex","height":69});
															thumbnails[2054986] = clik.newPhoto({"id":2054986,"src":"scots-pine-trees-new-forest_thumb.jpg","galleries_id":130531,"server_id":1,"link":"photo_2054986.html","width":130,"caption":"Moorland pines","height":87});
															thumbnails[2227920] = clik.newPhoto({"id":2227920,"src":"rugged-coast-sandymouth_thumb.jpg","galleries_id":130166,"server_id":1,"link":"photo_2227920.html","width":130,"caption":"Sandymouth beach, winter","height":87});
															thumbnails[3315620] = clik.newPhoto({"id":3315620,"src":"mist-moss-and-autumn-leaves_thumb.jpg","galleries_id":134355,"server_id":1,"link":"photo_3315620.html","width":130,"caption":"Autumn mist in beechwoods","height":87});
															thumbnails[4740008] = clik.newPhoto({"id":4740008,"src":"barley-field-south-downs_thumb.jpg","galleries_id":134354,"server_id":1,"link":"photo_4740008.html","width":130,"caption":"Summer on the downs","height":87});
															thumbnails[2054385] = clik.newPhoto({"id":2054385,"src":"straw-bales-hot-weather_thumb.jpg","galleries_id":134354,"server_id":1,"link":"photo_2054385.html","width":130,"caption":"Field of bales","height":65});
															thumbnails[2054952] = clik.newPhoto({"id":2054952,"src":"solent-sea-defences_thumb.jpg","galleries_id":130166,"server_id":1,"link":"photo_2054952.html","width":130,"caption":"Last light, Solent","height":87});
															thumbnails[2054984] = clik.newPhoto({"id":2054984,"src":"scots-pine-new-forest_thumb.jpg","galleries_id":130531,"server_id":1,"link":"photo_2054984.html","width":130,"caption":"Land of mist","height":87});
															thumbnails[3315601] = clik.newPhoto({"id":3315601,"src":"exbury-maple-autumn-season_thumb.jpg","galleries_id":134355,"server_id":1,"link":"photo_3315601.html","width":130,"caption":"Island maple, Exbury","height":87});
															thumbnails[2054965] = clik.newPhoto({"id":2054965,"src":"hatchet-pond-new-forest_thumb.jpg","galleries_id":130531,"server_id":1,"link":"photo_2054965.html","width":130,"caption":"Hatchet pond, New Forest","height":87});
															thumbnails[3315608] = clik.newPhoto({"id":3315608,"src":"japanese-bridge-exbury_thumb.jpg","galleries_id":134355,"server_id":1,"link":"photo_3315608.html","width":130,"caption":"Waterside, Exbury","height":66});
															thumbnails[4740013] = clik.newPhoto({"id":4740013,"src":"misty-pine-wood_thumb.jpg","galleries_id":134354,"server_id":1,"link":"photo_4740013.html","width":130,"caption":"Pinewoods in summer","height":66});
															thumbnails[4740383] = clik.newPhoto({"id":4740383,"src":"rhue-lighthouse-ullapool_thumb.jpg","galleries_id":130166,"server_id":1,"link":"photo_4740383.html","width":130,"caption":"Rhue Point lighthouse, Ullapool","height":87});
															thumbnails[3315540] = clik.newPhoto({"id":3315540,"src":"river-avon-salisbury_thumb.jpg","galleries_id":134354,"server_id":1,"link":"photo_3315540.html","width":130,"caption":"River Avon in August","height":87});
															thumbnails[3315614] = clik.newPhoto({"id":3315614,"src":"autumn-trees-exbury-gardens_thumb.jpg","galleries_id":134355,"server_id":1,"link":"photo_3315614.html","width":130,"caption":"Autumn light, Exbury","height":87});
															thumbnails[3315684] = clik.newPhoto({"id":3315684,"src":"end-of-a-rainbow-at-sea_thumb.jpg","galleries_id":130166,"server_id":1,"link":"photo_3315684.html","width":130,"caption":"Rainbow at sea","height":87});
															thumbnails[3878895] = clik.newPhoto({"id":3878895,"src":"arable-landscape-england_thumb.jpg","galleries_id":130531,"server_id":1,"link":"photo_3878895.html","width":130,"caption":"Hampshire Downs in September","height":75});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[134353] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Spring","link":"gallery_134353.html","maxRecords":0.0,"photoIDs":[4740167.0,4737196.0,2055124.0,5396382.0,4737198.0,4737187.0,2054999.0,4737202.0,3315547.0,2055030.0,2054395.0,3315594.0],"skipIndex":0,"section_code":"gallery","featured_images":4740167.0,"id":134353,"singleSection":false});				  						galleries[134354] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Summer","link":"gallery_134354.html","maxRecords":0.0,"photoIDs":[4740174.0,2054398.0,5396408.0,2055138.0,3315587.0,2054426.0,2054996.0,4737183.0,5396393.0,2054949.0,2055033.0,4739595.0,4740008.0,2054385.0,4740013.0,3315540.0],"skipIndex":0,"section_code":"gallery","featured_images":4740174.0,"id":134354,"singleSection":false});				  						galleries[134355] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Autumn","link":"gallery_134355.html","maxRecords":0.0,"photoIDs":[3878905.0,2054380.0,2054954.0,2054363.0,2054417.0,2054969.0,2054421.0,2054964.0,2054424.0,2054389.0,2054972.0,2055023.0,3315620.0,3315601.0,3315608.0,3315614.0],"skipIndex":0,"section_code":"gallery","featured_images":3878905.0,"id":134355,"singleSection":false});				  						galleries[134356] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Winter","link":"gallery_134356.html","maxRecords":0.0,"photoIDs":[2055035.0,2054987.0,2054383.0,2054970.0,3315533.0,2054400.0,2054975.0,2054978.0,4740384.0,2054968.0,3404099.0,2054991.0],"skipIndex":0,"section_code":"gallery","featured_images":2055035.0,"id":134356,"singleSection":false});				  						galleries[130531] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Landscapes","link":"gallery_130531.html","maxRecords":0.0,"photoIDs":[4731827.0,2054989.0,4739883.0,3878900.0,4731832.0,2178495.0,2054369.0,4731825.0,2054945.0,2055001.0,2054950.0,4739983.0,2054986.0,2054984.0,2054965.0,3878895.0],"skipIndex":0,"section_code":"gallery","featured_images":4731827.0,"id":130531,"singleSection":false});				  						galleries[130166] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Seascapes","link":"gallery_130166.html","maxRecords":0.0,"photoIDs":[2002686.0,2055028.0,3315664.0,4731852.0,2055009.0,3315768.0,2054374.0,4731853.0,4739893.0,3315676.0,3315681.0,2055032.0,2227920.0,2054952.0,4740383.0,3315684.0],"skipIndex":0,"section_code":"gallery","featured_images":2002686.0,"id":130166,"singleSection":false});				  						galleries[271467] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wild Flowers","link":"gallery_271467.html","maxRecords":0.0,"photoIDs":[4728184.0,4728272.0,4728326.0,5396396.0,4728284.0,2054372.0,4737167.0,2055017.0,4731802.0,4731804.0,4731806.0,4731803.0],"skipIndex":0,"section_code":"gallery","featured_images":4728184.0,"id":271467,"singleSection":false});				  						galleries[137278] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Black & White","link":"gallery_137278.html","maxRecords":0.0,"photoIDs":[2055008.0,2055006.0,3315630.0,3315635.0,3318986.0,2054977.0,2055013.0,4821756.0,3360443.0,3601402.0,2055014.0,4731798.0],"skipIndex":0,"section_code":"gallery","featured_images":2055008.0,"id":137278,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8740899';
imageSets[2] = '4740174,4740167,4731827,4728184,3878905,2055035,2055008,2002686';
imageSets[3] = '8994566,8774036,8774033,8740905,8740904,8740899,8740897,7742666,7339110,7281981,6866630,6162722,5396424,5396423,5396422,5396421,5396420,5396419,5396418,5396409,5396408,5396396,5396393,5396382,5395244,5395237,5395230,4821756,4740384,4740383,4740174,4740167,4740013,4740008,4739983,4739893,4739883,4739595,4737202,4737198,4737196,4737187,4737183,4737167,4731853,4731852,4731832,4731827,4731825,4731806';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/colinroberts/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/colinroberts/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/colinroberts/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/colinroberts/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/colinroberts/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/colinroberts/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/colinroberts/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/colinroberts/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/colinroberts/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/colinroberts/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/colinroberts/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/colinroberts/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/colinroberts/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/colinroberts/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/colinroberts/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/colinroberts/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/colinroberts/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/colinroberts/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/colinroberts/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/colinroberts/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/colinroberts/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/colinroberts/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/colinroberts/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/colinroberts/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/colinroberts/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/colinroberts/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/colinroberts/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 = 'COLIN ROBERTS 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>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else {
		
	}
	if (this.item_price !== '') {
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

