window.thumbnails = {};
															thumbnails[4710914] = clik.newPhoto({"id":4710914,"src":"IMG_3881-River_Axeorton_thumb.jpg","galleries_id":18906,"server_id":15,"link":"photo_4710914.html","width":130,"caption":"Morning Mist over River Axe Devon UK","height":87});
															thumbnails[5061009] = clik.newPhoto({"id":5061009,"src":"IMG_4679-doorortonvigbwothers_thumb.jpg","galleries_id":18992,"server_id":15,"link":"photo_5061009.html","width":130,"caption":"Old Miners Shed.","height":116});
															thumbnails[208689] = clik.newPhoto({"id":208689,"src":"2005_1004Image0018_thumb.JPG","galleries_id":18988,"server_id":15,"link":"photo_208689.html","width":130,"caption":"Bald Headed Eagle taken at Newent Falconry Centre","height":86});
															thumbnails[208702] = clik.newPhoto({"id":208702,"src":"boat in mauritius-lowres_thumb.jpg","galleries_id":18989,"server_id":15,"link":"photo_208702.html","width":130,"caption":"Boat in the clear blue waters of Mauritius","height":88});
															thumbnails[208715] = clik.newPhoto({"id":208715,"src":"boat repair skopolos- lowres_thumb.jpg","galleries_id":18989,"server_id":15,"link":"photo_208715.html","width":130,"caption":"Boat repairs in Skopolos Greece","height":184});
															thumbnails[208723] = clik.newPhoto({"id":208723,"src":"cyclamens may hill (16)_thumb.jpg","galleries_id":18997,"server_id":15,"link":"photo_208723.html","width":130,"caption":"Pink Cyclamen","height":163});
															thumbnails[208727] = clik.newPhoto({"id":208727,"src":"IMG_0052-xprocess+overlay+bw+orton_thumb.jpg","galleries_id":18992,"server_id":15,"link":"photo_208727.html","width":130,"caption":"Old Door Northern Colliery Cinderford ","height":195});
															thumbnails[208736] = clik.newPhoto({"id":208736,"src":"church on skopolos_thumb.JPG","galleries_id":18989,"server_id":15,"link":"photo_208736.html","width":130,"caption":"Small Orthodox Church on Skopolos Greece","height":85});
															thumbnails[208752] = clik.newPhoto({"id":208752,"src":"Copy of Copy of Copy of jamaica-02-040013 - lowres_thumb.jpg","galleries_id":18989,"server_id":15,"link":"photo_208752.html","width":130,"caption":"Yachts in Jamaica","height":173});
															thumbnails[208760] = clik.newPhoto({"id":208760,"src":"Copy of Copy of staircase rome_thumb.jpg","galleries_id":18989,"server_id":15,"link":"photo_208760.html","width":130,"caption":"Spiral Stairs Vatican Museum Rome","height":89});
															thumbnails[208769] = clik.newPhoto({"id":208769,"src":"Copy of DS060219122305-lowres_thumb.jpg","galleries_id":18989,"server_id":15,"link":"photo_208769.html","width":130,"caption":"View of Florence from the Piazzale Michelangelo","height":72});
															thumbnails[208777] = clik.newPhoto({"id":208777,"src":"IMG_0132_thumb.jpg","galleries_id":18988,"server_id":15,"link":"photo_208777.html","width":130,"caption":"New Beginnings.","height":195});
															thumbnails[208781] = clik.newPhoto({"id":208781,"src":"Copy of LOST-80-pinhole_thumb.jpg","galleries_id":18992,"server_id":15,"link":"photo_208781.html","width":130,"caption":"Country Gate.","height":195});
															thumbnails[208790] = clik.newPhoto({"id":208790,"src":"IMG_1953_thumb.jpg","galleries_id":18906,"server_id":15,"link":"photo_208790.html","width":130,"caption":"Flotsom at Treganhawke Beach Whitsand Bay Cornwall UK","height":185});
															thumbnails[208795] = clik.newPhoto({"id":208795,"src":"IMG_0047_thumb.jpg","galleries_id":18997,"server_id":15,"link":"photo_208795.html","width":130,"caption":"Early Spotted Orchids.","height":195});
															thumbnails[208805] = clik.newPhoto({"id":208805,"src":"IMG_0105_thumb.jpg","galleries_id":18991,"server_id":15,"link":"photo_208805.html","width":130,"caption":"Sunset at Whitsand Bay Cornwall","height":186});
															thumbnails[208831] = clik.newPhoto({"id":208831,"src":"DS060131221857-lowres1_thumb.jpg","galleries_id":18997,"server_id":15,"link":"photo_208831.html","width":130,"caption":"My Garden at Home.","height":200});
															thumbnails[208842] = clik.newPhoto({"id":208842,"src":"DS060322210904-b&w-lowres_thumb.jpg","galleries_id":18989,"server_id":15,"link":"photo_208842.html","width":130,"caption":"The Duomo in Florence.","height":167});
															thumbnails[208862] = clik.newPhoto({"id":208862,"src":"IMG_0990-orton+bw_thumb.jpg","galleries_id":18992,"server_id":15,"link":"photo_208862.html","width":130,"caption":"Old Platform Clock, Severn Valley Railway, Kidderminster.","height":170});
															thumbnails[208866] = clik.newPhoto({"id":208866,"src":"IMG_2043_thumb.jpg","galleries_id":18906,"server_id":15,"link":"photo_208866.html","width":130,"caption":"Sunset at Tregantle Beach Cornwall UK","height":195});
															thumbnails[208877] = clik.newPhoto({"id":208877,"src":"IMG_0871_thumb.jpg","galleries_id":18906,"server_id":15,"link":"photo_208877.html","width":130,"caption":"Freathy Beach Cornwall.","height":88});
															thumbnails[208892] = clik.newPhoto({"id":208892,"src":"Copy of IMG_0017_thumb.jpg","galleries_id":18997,"server_id":15,"link":"photo_208892.html","width":130,"caption":"Purple Geranium.","height":87});
															thumbnails[208895] = clik.newPhoto({"id":208895,"src":"IMG_0088_thumb.jpg","galleries_id":18997,"server_id":15,"link":"photo_208895.html","width":130,"caption":"Penstemon Pink Endurance.","height":81});
															thumbnails[208903] = clik.newPhoto({"id":208903,"src":"IMG_1977_thumb.jpg","galleries_id":18906,"server_id":15,"link":"photo_208903.html","width":130,"caption":"Gentle waves.","height":85});
															thumbnails[209210] = clik.newPhoto({"id":209210,"src":"DS060322211649-lowres_thumb.jpg","galleries_id":18989,"server_id":15,"link":"photo_209210.html","width":130,"caption":"View From Piazzale Michelangelo Florence Italy.","height":81});
															thumbnails[209214] = clik.newPhoto({"id":209214,"src":"IMG_0017jpeglowres_thumb.jpg","galleries_id":18997,"server_id":15,"link":"photo_209214.html","width":130,"caption":"Frost covered Cow Parsley","height":86});
															thumbnails[209222] = clik.newPhoto({"id":209222,"src":"lonely tree-lowres_thumb.jpg","galleries_id":18989,"server_id":15,"link":"photo_209222.html","width":130,"caption":"Lonely Tree, Fethiye Bay Turkey.","height":193});
															thumbnails[209232] = clik.newPhoto({"id":209232,"src":"IMG_0143_thumb.jpg","galleries_id":18906,"server_id":15,"link":"photo_209232.html","width":130,"caption":"Whitsand Bay Cornwall","height":186});
															thumbnails[209236] = clik.newPhoto({"id":209236,"src":"R0011459-lowres_thumb.jpg","galleries_id":18991,"server_id":15,"link":"photo_209236.html","width":130,"caption":"Sunset At Whitsand Bay Cornwall UK","height":173});
															thumbnails[209243] = clik.newPhoto({"id":209243,"src":"Copy of R0011447-sky blend_thumb.jpg","galleries_id":18991,"server_id":15,"link":"photo_209243.html","width":130,"caption":"Seagulls catching the last warm rays of the day.","height":98});
															thumbnails[209245] = clik.newPhoto({"id":209245,"src":"IMG_0060_thumb.jpg","galleries_id":18991,"server_id":15,"link":"photo_209245.html","width":130,"caption":"Sunrise, Rame Head, Cornwall.","height":87});
															thumbnails[209246] = clik.newPhoto({"id":209246,"src":"orange daisey_thumb.jpg","galleries_id":18997,"server_id":15,"link":"photo_209246.html","width":130,"caption":"Orange Calendula","height":121});
															thumbnails[209324] = clik.newPhoto({"id":209324,"src":"owl - lowres_thumb.jpg","galleries_id":18988,"server_id":15,"link":"photo_209324.html","width":130,"caption":"Happy Looking Owl","height":86});
															thumbnails[209650] = clik.newPhoto({"id":209650,"src":"IMG_0011_thumb.jpg","galleries_id":18997,"server_id":15,"link":"photo_209650.html","width":130,"caption":"Spotted Orchid","height":195});
															thumbnails[209652] = clik.newPhoto({"id":209652,"src":"Bluebells and Tree 1 + Orton_thumb.jpg","galleries_id":18988,"server_id":15,"link":"photo_209652.html","width":130,"caption":"Bluebells.","height":195});
															thumbnails[209654] = clik.newPhoto({"id":209654,"src":"secretary bird_thumb.jpg","galleries_id":18988,"server_id":15,"link":"photo_209654.html","width":130,"caption":"Secretary Bird","height":86});
															thumbnails[211308] = clik.newPhoto({"id":211308,"src":"Copy of jamaica-02-040022-lowres_thumb.jpg","galleries_id":18989,"server_id":15,"link":"photo_211308.html","width":130,"caption":"Sunrise in Jamaica","height":199});
															thumbnails[211319] = clik.newPhoto({"id":211319,"src":"Copy of 2005_1013Image0043-lowres_thumb.jpg","galleries_id":18989,"server_id":15,"link":"photo_211319.html","width":130,"caption":"Paragliding over Olu Deniz Beach Turkey","height":98});
															thumbnails[211324] = clik.newPhoto({"id":211324,"src":"Copy of Copy of CUBA-nov030019-lowres_thumb.jpg","galleries_id":18989,"server_id":15,"link":"photo_211324.html","width":130,"caption":"Havana Car","height":104});
															thumbnails[212989] = clik.newPhoto({"id":212989,"src":"IMG_2112-rame_thumb.jpg","galleries_id":18991,"server_id":15,"link":"photo_212989.html","width":130,"caption":"Sunrise over Rame Head Whitsand Bay Cornwall UK","height":87});
															thumbnails[247828] = clik.newPhoto({"id":247828,"src":"dandelion seeds-lowres_thumb.jpg","galleries_id":18997,"server_id":15,"link":"photo_247828.html","width":130,"caption":"Dandelion Seed Heads ","height":87});
															thumbnails[306024] = clik.newPhoto({"id":306024,"src":"IMG_0046_thumb.jpg","galleries_id":18997,"server_id":15,"link":"photo_306024.html","width":130,"caption":"Close Up of a Spotted Orchid.","height":195});
															thumbnails[306026] = clik.newPhoto({"id":306026,"src":"IMG_0062_thumb.jpg","galleries_id":18997,"server_id":15,"link":"photo_306026.html","width":130,"caption":"Spotted Orchid.","height":195});
															thumbnails[306084] = clik.newPhoto({"id":306084,"src":"IMG_0102_thumb.jpg","galleries_id":18997,"server_id":15,"link":"photo_306084.html","width":130,"caption":"Wood Anemones & Bluebells.","height":195});
															thumbnails[337580] = clik.newPhoto({"id":337580,"src":"sunset sweetpeas_thumb.jpg","galleries_id":18997,"server_id":15,"link":"photo_337580.html","width":130,"caption":"Sweet Peas at Sunset.","height":190});
															thumbnails[337627] = clik.newPhoto({"id":337627,"src":"DS060322211516-lowres_thumb.jpg","galleries_id":18989,"server_id":15,"link":"photo_337627.html","width":130,"caption":"View from the Duomo ","height":94});
															thumbnails[337647] = clik.newPhoto({"id":337647,"src":"Copy of DS060312133232-lowres_thumb.jpg","galleries_id":18989,"server_id":15,"link":"photo_337647.html","width":130,"caption":"Sunset over Ile aux Cerfs Mauritius ","height":70});
															thumbnails[337648] = clik.newPhoto({"id":337648,"src":"IMG_0029 - bw+sepia+orton_thumb.jpg","galleries_id":18992,"server_id":15,"link":"photo_337648.html","width":130,"caption":"Abandoned Colliery Buildings.","height":93});
															thumbnails[337666] = clik.newPhoto({"id":337666,"src":"IMG_00621_thumb.jpg","galleries_id":18997,"server_id":15,"link":"photo_337666.html","width":130,"caption":"Close up of Clematis Niobe..","height":87});
															thumbnails[337670] = clik.newPhoto({"id":337670,"src":"Copy_of_IMG_0038_thumb.jpg","galleries_id":18992,"server_id":15,"link":"photo_337670.html","width":130,"caption":"Dangerous Crossing!.","height":161});
															thumbnails[337671] = clik.newPhoto({"id":337671,"src":"Copy of R0010380-ps sepia-tatty-pinhole_thumb.jpg","galleries_id":18992,"server_id":15,"link":"photo_337671.html","width":130,"caption":"Old Steam Train Carriage.","height":173});
															thumbnails[337674] = clik.newPhoto({"id":337674,"src":"orange calendula_thumb.jpg","galleries_id":18997,"server_id":15,"link":"photo_337674.html","width":130,"caption":"Close-up of Orange Calendula.","height":87});
															thumbnails[337675] = clik.newPhoto({"id":337675,"src":"IMG_1988-treg+orton_thumb.jpg","galleries_id":18906,"server_id":15,"link":"photo_337675.html","width":130,"caption":"Stones on Treganhawke Beach Cornwall UK","height":195});
															thumbnails[337687] = clik.newPhoto({"id":337687,"src":"IMG_2148_thumb.jpg","galleries_id":18906,"server_id":15,"link":"photo_337687.html","width":130,"caption":"Rame Head Cornwall UK","height":90});
															thumbnails[337689] = clik.newPhoto({"id":337689,"src":"IMG_0103-bw2_thumb.jpg","galleries_id":18906,"server_id":15,"link":"photo_337689.html","width":130,"caption":"Sunset at Whitsand Bay Cornwall.","height":193});
															thumbnails[337706] = clik.newPhoto({"id":337706,"src":"Copy of 2007_0315(002)-lowres_thumb.jpg","galleries_id":18991,"server_id":15,"link":"photo_337706.html","width":130,"caption":"Sunrise over Rame Head.","height":195});
															thumbnails[531148] = clik.newPhoto({"id":531148,"src":"Raw00144-treg_thumb.jpg","galleries_id":18991,"server_id":15,"link":"photo_531148.html","width":160,"caption":"Sunset from Sharrow Point Whitsand Bay Cornwall UK","height":96});
															thumbnails[531168] = clik.newPhoto({"id":531168,"src":"Copy of IMG_0141a_thumb.jpg","galleries_id":18991,"server_id":15,"link":"photo_531168.html","width":130,"caption":"Sunset  Whitsand Bay Cornwall UK","height":87});
															thumbnails[531603] = clik.newPhoto({"id":531603,"src":"IMG_0117_thumb.jpg","galleries_id":18991,"server_id":15,"link":"photo_531603.html","width":130,"caption":"Sunset  Whitsand Bay Cornwall UK","height":185});
															thumbnails[531606] = clik.newPhoto({"id":531606,"src":"Raw00066-rame_thumb.jpg","galleries_id":18991,"server_id":15,"link":"photo_531606.html","width":160,"caption":"Sunset over Rame Head Whitsand Bay Cornwall UK","height":107});
															thumbnails[992891] = clik.newPhoto({"id":992891,"src":"IMG_0085-orton_thumb.jpg","galleries_id":18997,"server_id":15,"link":"photo_992891.html","width":130,"caption":"Nelly Moser Close-up","height":87});
															thumbnails[993144] = clik.newPhoto({"id":993144,"src":"IMG_0032_thumb.jpg","galleries_id":18992,"server_id":15,"link":"photo_993144.html","width":130,"caption":"Waves hitting the Rocks.","height":195});
															thumbnails[3499182] = clik.newPhoto({"id":3499182,"src":"IMG_2826-newgale=orton_thumb.jpg","galleries_id":18906,"server_id":15,"link":"photo_3499182.html","width":130,"caption":"Newgale Beach Pembrokeshire","height":195});
															thumbnails[3499184] = clik.newPhoto({"id":3499184,"src":"IMG_2837-newgale + orton_thumb.jpg","galleries_id":18906,"server_id":15,"link":"photo_3499184.html","width":130,"caption":"Washed up.","height":198});
															thumbnails[3499186] = clik.newPhoto({"id":3499186,"src":"IMG_2797-abereiddy+bw+sf+orton_thumb.jpg","galleries_id":18906,"server_id":15,"link":"photo_3499186.html","width":130,"caption":"Cold day at Abereiddy, Pembrokeshire.","height":87});
															thumbnails[3499196] = clik.newPhoto({"id":3499196,"src":"IMG_2820-newgale+orton+bw1_thumb.jpg","galleries_id":18992,"server_id":15,"link":"photo_3499196.html","width":130,"caption":"Path to Newgale Beach.","height":195});
															thumbnails[3499198] = clik.newPhoto({"id":3499198,"src":"IMG_2760- orton_thumb.jpg","galleries_id":18991,"server_id":15,"link":"photo_3499198.html","width":130,"caption":"Sunset & Snow.","height":87});
															thumbnails[3499203] = clik.newPhoto({"id":3499203,"src":"Copy of IMG_2735-yart lane_thumb.jpg","galleries_id":18991,"server_id":15,"link":"photo_3499203.html","width":130,"caption":"Sunset, Snow & Shadows.","height":87});
															thumbnails[3499394] = clik.newPhoto({"id":3499394,"src":"middle-1894_thumb.jpg","galleries_id":18991,"server_id":15,"link":"photo_3499394.html","width":130,"caption":"Surfers at Sunset","height":87});
															thumbnails[3499402] = clik.newPhoto({"id":3499402,"src":"IMG_1876_thumb.jpg","galleries_id":18992,"server_id":15,"link":"photo_3499402.html","width":130,"caption":"Waiting for the next wave.","height":87});
															thumbnails[3499418] = clik.newPhoto({"id":3499418,"src":"IMG_0135_thumb.jpg","galleries_id":18991,"server_id":15,"link":"photo_3499418.html","width":130,"caption":"Sunset, Freathy Beach, Whitsand Bay, Cornwall, UK","height":186});
															thumbnails[3499424] = clik.newPhoto({"id":3499424,"src":"IMG_0122_thumb.jpg","galleries_id":18991,"server_id":15,"link":"photo_3499424.html","width":130,"caption":"Sunset, Freathy Beach, Whitsand Bay, Cornwall, UK","height":87});
															thumbnails[3499428] = clik.newPhoto({"id":3499428,"src":"IMG_0132a_thumb.jpg","galleries_id":18991,"server_id":15,"link":"photo_3499428.html","width":130,"caption":"Sunset, Freathy Beach, Whitsand Bay, Cornwall, UK","height":85});
															thumbnails[3499493] = clik.newPhoto({"id":3499493,"src":"IMG_0019-ps_thumb.jpg","galleries_id":18906,"server_id":15,"link":"photo_3499493.html","width":130,"caption":"Looking back towards home.","height":87});
															thumbnails[3499499] = clik.newPhoto({"id":3499499,"src":"IMG_0076-vignette_thumb.jpg","galleries_id":18988,"server_id":15,"link":"photo_3499499.html","width":130,"caption":"Mushrooms at Rame Head.","height":192});
															thumbnails[3499512] = clik.newPhoto({"id":3499512,"src":"Raw00060-whitsands_thumb.jpg","galleries_id":18991,"server_id":15,"link":"photo_3499512.html","width":107,"caption":"Sunset over Whitsand Bay Cornwall UK","height":160});
															thumbnails[3499535] = clik.newPhoto({"id":3499535,"src":"IMG_1939_thumb.jpg","galleries_id":18906,"server_id":15,"link":"photo_3499535.html","width":130,"caption":"Grasses & Rocks.","height":195});
															thumbnails[3499545] = clik.newPhoto({"id":3499545,"src":"IMG_2169-bw+pinhole_thumb.jpg","galleries_id":18992,"server_id":15,"link":"photo_3499545.html","width":130,"caption":"Chapel at Rame Head.","height":195});
															thumbnails[3499553] = clik.newPhoto({"id":3499553,"src":"IMG_2176-duo_thumb.jpg","galleries_id":18906,"server_id":15,"link":"photo_3499553.html","width":130,"caption":"Path to Rame Head.","height":195});
															thumbnails[3499555] = clik.newPhoto({"id":3499555,"src":"IMG_2159_thumb.jpg","galleries_id":18906,"server_id":15,"link":"photo_3499555.html","width":130,"caption":"Path to Rame Head.","height":195});
															thumbnails[3499562] = clik.newPhoto({"id":3499562,"src":"IMG_2794-abereiddy+zoom_thumb.jpg","galleries_id":18992,"server_id":15,"link":"photo_3499562.html","width":130,"caption":"Zooming!","height":195});
															thumbnails[3499566] = clik.newPhoto({"id":3499566,"src":"IMG_2835-newgale+xprocess_thumb.jpg","galleries_id":18906,"server_id":15,"link":"photo_3499566.html","width":130,"caption":"Newgale Beach.","height":87});
															thumbnails[3499578] = clik.newPhoto({"id":3499578,"src":"IMG_0023a_thumb.jpg","galleries_id":18991,"server_id":15,"link":"photo_3499578.html","width":130,"caption":"Washed up.","height":195});
															thumbnails[3499611] = clik.newPhoto({"id":3499611,"src":"IMG_2825-newgale+orton_thumb.jpg","galleries_id":18906,"server_id":15,"link":"photo_3499611.html","width":130,"caption":"Heading Back.","height":195});
															thumbnails[3499628] = clik.newPhoto({"id":3499628,"src":"IMG_0694-softfocus_thumb.jpg","galleries_id":18997,"server_id":15,"link":"photo_3499628.html","width":130,"caption":"Rosa Eglantyne","height":87});
															thumbnails[3774113] = clik.newPhoto({"id":3774113,"src":"IMG_2473_-_mayhill_high_contrastmax_blur_thumb.jpg","galleries_id":18906,"server_id":15,"link":"photo_3774113.html","width":130,"caption":"It's Cold....!!!","height":87});
															thumbnails[4099600] = clik.newPhoto({"id":4099600,"src":"Copy_of_may_hill_panoramic2-cropped1_thumb.jpg","galleries_id":18906,"server_id":15,"link":"photo_4099600.html","width":130,"caption":"Rainbow Over May Hill.","height":64});
															thumbnails[4339678] = clik.newPhoto({"id":4339678,"src":"IMG_3843-cornfield_stockenham_devon-sharp_thumb.jpg","galleries_id":18906,"server_id":15,"link":"photo_4339678.html","width":130,"caption":"Church & Cornfields Stokenham Devon UK","height":195});
															thumbnails[4357530] = clik.newPhoto({"id":4357530,"src":"IMG_3763-_Boat_at_Beesandsortonbw_thumb.jpg","galleries_id":18992,"server_id":15,"link":"photo_4357530.html","width":130,"caption":"Boat at Beesands Devon UK","height":98});
															thumbnails[4357605] = clik.newPhoto({"id":4357605,"src":"IMG_3825-torcrossbw_thumb.jpg","galleries_id":18992,"server_id":15,"link":"photo_4357605.html","width":130,"caption":"Shadows at Dusk.","height":195});
															thumbnails[4384012] = clik.newPhoto({"id":4384012,"src":"IMG_3765_-_bw__distressed_thumb.jpg","galleries_id":18992,"server_id":15,"link":"photo_4384012.html","width":130,"caption":"Fish Drying","height":195});
															thumbnails[4413194] = clik.newPhoto({"id":4413194,"src":"IMG_3793-guiness__sepia_thumb.jpg","galleries_id":18992,"server_id":15,"link":"photo_4413194.html","width":77,"caption":"There's Nothing Better...!!","height":130});
															thumbnails[4462201] = clik.newPhoto({"id":4462201,"src":"IMG_3606-_poppies__orton_thumb.jpg","galleries_id":18906,"server_id":15,"link":"photo_4462201.html","width":130,"caption":"Poppy Field & Malvern Hills.","height":87});
															thumbnails[4710925] = clik.newPhoto({"id":4710925,"src":"IMG_6720-plumporton_thumb.jpg","galleries_id":18906,"server_id":15,"link":"photo_4710925.html","width":104,"caption":"Autumn Sunrays Forest of Dean Gloucestershire UK","height":160});
															thumbnails[5061015] = clik.newPhoto({"id":5061015,"src":"IMG_4497-attack_shiporton1_thumb.jpg","galleries_id":18991,"server_id":15,"link":"photo_5061015.html","width":130,"caption":"Attack Ship at Sunset.","height":77});
															thumbnails[5061187] = clik.newPhoto({"id":5061187,"src":"IMG_4644-leavesortonZZ_thumb.jpg","galleries_id":18988,"server_id":15,"link":"photo_5061187.html","width":130,"caption":"","height":97});
															thumbnails[5061323] = clik.newPhoto({"id":5061323,"src":"IMG_4633-leavesortoncrop_thumb.jpg","galleries_id":18988,"server_id":15,"link":"photo_5061323.html","width":130,"caption":"Just Leaves","height":124});
															thumbnails[5185257] = clik.newPhoto({"id":5185257,"src":"IMG_4254-red_treeorton_thumb.jpg","galleries_id":18988,"server_id":15,"link":"photo_5185257.html","width":130,"caption":"From the shadows looking out.","height":87});
															thumbnails[7129878] = clik.newPhoto({"id":7129878,"src":"IMG_6440-foxglove_thumb.jpg","galleries_id":18997,"server_id":15,"link":"photo_7129878.html","width":107,"caption":"","height":160});
															thumbnails[7129887] = clik.newPhoto({"id":7129887,"src":"Raw00101-sharrow_thumb.jpg","galleries_id":18906,"server_id":15,"link":"photo_7129887.html","width":118,"caption":"","height":160});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[18906] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Landscapes","link":"gallery_18906.html","maxRecords":0.0,"photoIDs":[4710914.0,208790.0,208866.0,208877.0,208903.0,209232.0,337675.0,337687.0,337689.0,3499182.0,3499184.0,3499186.0,3499493.0,3499535.0,3499553.0,3499555.0,3499566.0,3499611.0,3774113.0,4099600.0,4339678.0,4462201.0,4710925.0,7129887.0],"skipIndex":0,"section_code":"gallery","featured_images":209232.0,"id":18906,"singleSection":false});				  						galleries[18988] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Nature\/Wildlife","link":"gallery_18988.html","maxRecords":0.0,"photoIDs":[208689.0,208777.0,209324.0,209652.0,209654.0,3499499.0,5061187.0,5061323.0,5185257.0],"skipIndex":0,"section_code":"gallery","featured_images":208689.0,"id":18988,"singleSection":false});				  						galleries[18991] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Sunsets\/Sunrise","link":"gallery_18991.html","maxRecords":0.0,"photoIDs":[208805.0,209236.0,209243.0,209245.0,212989.0,337706.0,531148.0,531168.0,531603.0,531606.0,3499198.0,3499203.0,3499394.0,3499418.0,3499424.0,3499428.0,3499512.0,3499578.0,5061015.0],"skipIndex":0,"section_code":"gallery","featured_images":208805.0,"id":18991,"singleSection":false});				  						galleries[18989] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Travel","link":"gallery_18989.html","maxRecords":0.0,"photoIDs":[208702.0,208715.0,208736.0,208752.0,208760.0,208769.0,208842.0,209210.0,209222.0,211308.0,211319.0,211324.0,337627.0,337647.0],"skipIndex":0,"section_code":"gallery","featured_images":208702.0,"id":18989,"singleSection":false});				  						galleries[18997] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Flowers","link":"gallery_18997.html","maxRecords":0.0,"photoIDs":[208723.0,208795.0,208831.0,208892.0,208895.0,209214.0,209246.0,209650.0,247828.0,306024.0,306026.0,306084.0,337580.0,337666.0,337674.0,992891.0,3499628.0,7129878.0],"skipIndex":0,"section_code":"gallery","featured_images":208831.0,"id":18997,"singleSection":false});				  						galleries[18992] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"B&W","link":"gallery_18992.html","maxRecords":0.0,"photoIDs":[5061009.0,208727.0,208781.0,208862.0,337648.0,337670.0,337671.0,993144.0,3499196.0,3499402.0,3499545.0,3499562.0,4357530.0,4357605.0,4384012.0,4413194.0],"skipIndex":0,"section_code":"gallery","featured_images":"4357530,208727","id":18992,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '992891,531606,531603,337689,337675,337674,337666,247828,212989,211308,209650,209232,208842,208805,208781,208760,208752,208736,208715,208702';
imageSets[2] = '4357530,209232,208831,208805,208727,208702,208689';
imageSets[3] = '5061015';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/marksaunders/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/marksaunders/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/marksaunders/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/marksaunders/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/marksaunders/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/marksaunders/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/marksaunders/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/marksaunders/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/marksaunders/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/marksaunders/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/marksaunders/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/marksaunders/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/marksaunders/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/marksaunders/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/marksaunders/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/marksaunders/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/marksaunders/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/marksaunders/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/marksaunders/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/marksaunders/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/marksaunders/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/marksaunders/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/marksaunders/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/marksaunders/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/marksaunders/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/marksaunders/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/marksaunders/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 = 'Mark Saunders Photography: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
	temp += this.fnGetPaymentInfo();
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
																		temp += '<p>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp += '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
		else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
																		temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="catkins.mayhill@tiscali.co.uk">';
					temp += '<input type="hidden" name="currency_code" value="GBP">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="catkins.mayhill@tiscali.co.uk">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

