window.thumbnails = {};
															thumbnails[4454669] = clik.newPhoto({"id":4454669,"src":"Samos_Vineyards_thumb.jpg","galleries_id":15832,"server_id":18,"link":"photo_4454669.html","width":160,"caption":"Vineyards, Samos","height":113});
															thumbnails[174953] = clik.newPhoto({"id":174953,"src":"Dawn_over_the_Avon_thumb.jpg","galleries_id":15830,"server_id":18,"link":"photo_174953.html","width":160,"caption":"River Avon Dawn","height":120});
															thumbnails[8160287] = clik.newPhoto({"id":8160287,"src":"Cathedral_Fireworks_thumb.jpg","galleries_id":15830,"server_id":18,"link":"photo_8160287.html","width":160,"caption":"Cathedral Fireworks","height":168});
															thumbnails[5472986] = clik.newPhoto({"id":5472986,"src":"Snowy_Walk_thumb.jpg","galleries_id":108823,"server_id":18,"link":"photo_5472986.html","width":160,"caption":"A Winters Walk","height":113});
															thumbnails[4454700] = clik.newPhoto({"id":4454700,"src":"Marathokambos_thumb.jpg","galleries_id":15832,"server_id":18,"link":"photo_4454700.html","width":160,"caption":"Marathakambos View","height":113});
															thumbnails[7483686] = clik.newPhoto({"id":7483686,"src":"Bruges_Deep_thumb.jpg","galleries_id":15832,"server_id":18,"link":"photo_7483686.html","width":160,"caption":"Bruges Deep","height":113});
															thumbnails[5056494] = clik.newPhoto({"id":5056494,"src":"Poultry_X_at_night_thumb.jpg","galleries_id":15830,"server_id":18,"link":"photo_5056494.html","width":130,"caption":"The Poultry Cross at night.","height":130});
															thumbnails[174956] = clik.newPhoto({"id":174956,"src":"Salisbury_Fair_thumb.jpg","galleries_id":15830,"server_id":18,"link":"photo_174956.html","width":160,"caption":"Salisbury Funfair","height":115});
															thumbnails[1592330] = clik.newPhoto({"id":1592330,"src":"Stranger_on_the_shore3_thumb.jpg","galleries_id":108823,"server_id":18,"link":"photo_1592330.html","width":160,"caption":"Stranger on the shore","height":113});
															thumbnails[1592328] = clik.newPhoto({"id":1592328,"src":"I_can_drive_a_tractor_thumb.jpg","galleries_id":15830,"server_id":18,"link":"photo_1592328.html","width":160,"caption":"I can Drive A tractor","height":110});
															thumbnails[6495377] = clik.newPhoto({"id":6495377,"src":"Strasbourg_Cathedral_thumb.jpg","galleries_id":15832,"server_id":18,"link":"photo_6495377.html","width":160,"caption":"Strasbourg Cathedral","height":113});
															thumbnails[5473003] = clik.newPhoto({"id":5473003,"src":"Dorset_Coast_thumb.jpg","galleries_id":108823,"server_id":18,"link":"photo_5473003.html","width":160,"caption":"Dorset Coastline","height":113});
															thumbnails[3806338] = clik.newPhoto({"id":3806338,"src":"Cathedral_Cloisters_thumb.jpg","galleries_id":15830,"server_id":18,"link":"photo_3806338.html","width":160,"caption":"Salisbury Cathedral, Cloisters","height":113});
															thumbnails[7484946] = clik.newPhoto({"id":7484946,"src":"Lest_we_forget_thumb.jpg","galleries_id":108823,"server_id":18,"link":"photo_7484946.html","width":160,"caption":"Lest We Forget","height":114});
															thumbnails[6495362] = clik.newPhoto({"id":6495362,"src":"Buskers_Strasbourg_thumb.jpg","galleries_id":108823,"server_id":18,"link":"photo_6495362.html","width":160,"caption":"Strasbourg Buskers","height":113});
															thumbnails[2732312] = clik.newPhoto({"id":2732312,"src":"Poppy_Dawn2with_81wutif_thumb.jpg","galleries_id":15830,"server_id":18,"link":"photo_2732312.html","width":160,"caption":"Red Dawn","height":113});
															thumbnails[2329228] = clik.newPhoto({"id":2329228,"src":"Portrait_Sitting_thumb.jpg","galleries_id":15832,"server_id":18,"link":"photo_2329228.html","width":160,"caption":"Portrait Sitting, Montmarte, Paris","height":113});
															thumbnails[8160305] = clik.newPhoto({"id":8160305,"src":"Field_of_Dreams_thumb.jpg","galleries_id":15832,"server_id":18,"link":"photo_8160305.html","width":160,"caption":"Field of Dreams","height":93});
															thumbnails[3302091] = clik.newPhoto({"id":3302091,"src":"WinterScenewithSwan2_thumb.jpg","galleries_id":15830,"server_id":18,"link":"photo_3302091.html","width":160,"caption":"An Extreme Frost, Odstock Meadows","height":113});
															thumbnails[5056461] = clik.newPhoto({"id":5056461,"src":"Artist_at_Work_thumb.jpg","galleries_id":15832,"server_id":18,"link":"photo_5056461.html","width":160,"caption":"Artist at Work","height":116});
															thumbnails[992927] = clik.newPhoto({"id":992927,"src":"Capturing_a_moment_in_time_thumb.jpg","galleries_id":108823,"server_id":18,"link":"photo_992927.html","width":160,"caption":"Capturing A moment in Time","height":107});
															thumbnails[819524] = clik.newPhoto({"id":819524,"src":"Snowy_Morning_021_thumb.jpg","galleries_id":15830,"server_id":18,"link":"photo_819524.html","width":160,"caption":"Snowy Treeline","height":107});
															thumbnails[518514] = clik.newPhoto({"id":518514,"src":"One_Rotten_Apple_thumb.jpg","galleries_id":15832,"server_id":18,"link":"photo_518514.html","width":160,"caption":"One Rotten apple","height":112});
															thumbnails[5596474] = clik.newPhoto({"id":5596474,"src":"Snowy_Sunset_V2_thumb.jpg","galleries_id":15830,"server_id":18,"link":"photo_5596474.html","width":160,"caption":"WinterSunset, South Wilts Golf Course","height":113});
															thumbnails[2732326] = clik.newPhoto({"id":2732326,"src":"Rainy_Day_Montreal_thumb.jpg","galleries_id":108823,"server_id":18,"link":"photo_2732326.html","width":160,"caption":"A rainy day in Montreal","height":113});
															thumbnails[4164670] = clik.newPhoto({"id":4164670,"src":"The_Eel_House_thumb.jpg","galleries_id":15830,"server_id":18,"link":"photo_4164670.html","width":160,"caption":"The Eel House, Britford, Salisbury","height":113});
															thumbnails[3806452] = clik.newPhoto({"id":3806452,"src":"Fishy_Business_thumb.jpg","galleries_id":15832,"server_id":18,"link":"photo_3806452.html","width":160,"caption":"Fishy Business","height":106});
															thumbnails[1784190] = clik.newPhoto({"id":1784190,"src":"Sepia_Seine_thumb.jpg","galleries_id":108823,"server_id":18,"link":"photo_1784190.html","width":160,"caption":"Seine Trees, Paris","height":107});
															thumbnails[8160258] = clik.newPhoto({"id":8160258,"src":"Blue_Dream_thumb.jpg","galleries_id":15832,"server_id":18,"link":"photo_8160258.html","width":160,"caption":"Blue Dream","height":146});
															thumbnails[1654201] = clik.newPhoto({"id":1654201,"src":"Through_the_arch_thumb.jpg","galleries_id":108823,"server_id":18,"link":"photo_1654201.html","width":160,"caption":"Through the archway, St. Brelade's Churchyard","height":240});
															thumbnails[1654186] = clik.newPhoto({"id":1654186,"src":"Balloon_over_the_Cathedral_thumb.jpg","galleries_id":15830,"server_id":18,"link":"photo_1654186.html","width":160,"caption":"Ballooning over Salisbury Cathedral","height":107});
															thumbnails[518519] = clik.newPhoto({"id":518519,"src":"Epidauros_Steps_thumb.jpg","galleries_id":15832,"server_id":18,"link":"photo_518519.html","width":160,"caption":"Epidaurus Steps","height":99});
															thumbnails[8160427] = clik.newPhoto({"id":8160427,"src":"Tate_Cafe_thumb.jpg","galleries_id":15832,"server_id":18,"link":"photo_8160427.html","width":160,"caption":"Tate St.Ives","height":108});
															thumbnails[5900768] = clik.newPhoto({"id":5900768,"src":"Bexhill_Architecture_thumb.jpg","galleries_id":15832,"server_id":18,"link":"photo_5900768.html","width":160,"caption":"Bexhill Architecture","height":110});
															thumbnails[6495374] = clik.newPhoto({"id":6495374,"src":"One_man_and_his_dog_thumb.jpg","galleries_id":108823,"server_id":18,"link":"photo_6495374.html","width":160,"caption":"One man and his dog","height":240});
															thumbnails[5900774] = clik.newPhoto({"id":5900774,"src":"Bexhill_Evening_thumb.jpg","galleries_id":15832,"server_id":18,"link":"photo_5900774.html","width":160,"caption":"Bexhill Evening","height":113});
															thumbnails[5900852] = clik.newPhoto({"id":5900852,"src":"Dungeness_1_thumb.jpg","galleries_id":15832,"server_id":18,"link":"photo_5900852.html","width":160,"caption":"Desolate Dungeness","height":113});
															thumbnails[5900865] = clik.newPhoto({"id":5900865,"src":"Lone_Canoe_thumb.jpg","galleries_id":15832,"server_id":18,"link":"photo_5900865.html","width":160,"caption":"Lone Canoe","height":113});
															thumbnails[7485021] = clik.newPhoto({"id":7485021,"src":"_Seven_Sisters_thumb.jpg","galleries_id":15832,"server_id":18,"link":"photo_7485021.html","width":160,"caption":"Seven Sisters","height":113});
															thumbnails[4454715] = clik.newPhoto({"id":4454715,"src":"Joining_In2tif_thumb.jpg","galleries_id":108823,"server_id":18,"link":"photo_4454715.html","width":130,"caption":"Joining In","height":274});
															thumbnails[573599] = clik.newPhoto({"id":573599,"src":"Winters_Dawn_Langford_Lakes_thumb.jpg","galleries_id":15830,"server_id":18,"link":"photo_573599.html","width":160,"caption":"Winters Dawn, Langford Lakes","height":107});
															thumbnails[518508] = clik.newPhoto({"id":518508,"src":"AcroCorinth_moonrise_thumb.jpg","galleries_id":15832,"server_id":18,"link":"photo_518508.html","width":160,"caption":"Moonrise at AcroCorinth, Greece","height":107});
															thumbnails[8160268] = clik.newPhoto({"id":8160268,"src":"Brittany_Beach_thumb.jpg","galleries_id":15832,"server_id":18,"link":"photo_8160268.html","width":160,"caption":"Brittany Beach Stroll","height":184});
															thumbnails[7485066] = clik.newPhoto({"id":7485066,"src":"Salisbury_Races_thumb.jpg","galleries_id":15830,"server_id":18,"link":"photo_7485066.html","width":160,"caption":"The Final Furlong","height":129});
															thumbnails[6495364] = clik.newPhoto({"id":6495364,"src":"Cologne_Dusk_thumb.jpg","galleries_id":15832,"server_id":18,"link":"photo_6495364.html","width":160,"caption":"Cologne Dusk","height":113});
															thumbnails[7655816] = clik.newPhoto({"id":7655816,"src":"Tintern_Dawn_thumb.jpg","galleries_id":15832,"server_id":18,"link":"photo_7655816.html","width":160,"caption":"Tintern Dawn","height":113});
															thumbnails[4164733] = clik.newPhoto({"id":4164733,"src":"Morning_Paper_thumb.jpg","galleries_id":15832,"server_id":18,"link":"photo_4164733.html","width":160,"caption":"Morning Paper","height":107});
															thumbnails[4259774] = clik.newPhoto({"id":4259774,"src":"Cathedral_in_the_Snow2_thumb.jpg","galleries_id":15830,"server_id":18,"link":"photo_4259774.html","width":160,"caption":"Salisbury Cathedral in the snow","height":114});
															thumbnails[5635895] = clik.newPhoto({"id":5635895,"src":"Salisbury_Cathedral_Dawn_thumb.jpg","galleries_id":15830,"server_id":18,"link":"photo_5635895.html","width":160,"caption":"Let There be light","height":113});
															thumbnails[6495369] = clik.newPhoto({"id":6495369,"src":"Lucerne_thumb.jpg","galleries_id":15832,"server_id":18,"link":"photo_6495369.html","width":160,"caption":"Lucerne","height":113});
															thumbnails[764293] = clik.newPhoto({"id":764293,"src":"Lakeside_Dwn_thumb.jpg","galleries_id":15830,"server_id":18,"link":"photo_764293.html","width":160,"caption":"Golden Dawn","height":107});
															thumbnails[7484897] = clik.newPhoto({"id":7484897,"src":"Beguinage2_thumb.jpg","galleries_id":15832,"server_id":18,"link":"photo_7484897.html","width":160,"caption":"Beguinage","height":113});
															thumbnails[5472968] = clik.newPhoto({"id":5472968,"src":"Dawn_Fishing2_thumb.jpg","galleries_id":15830,"server_id":18,"link":"photo_5472968.html","width":160,"caption":"Dawn Fishing in the mist","height":113});
															thumbnails[7485006] = clik.newPhoto({"id":7485006,"src":"Wylye_Valley_Poppyfield_thumb.jpg","galleries_id":15830,"server_id":18,"link":"photo_7485006.html","width":160,"caption":"Poppyfield","height":113});
															thumbnails[8160292] = clik.newPhoto({"id":8160292,"src":"Field_Craft_thumb.jpg","galleries_id":15830,"server_id":18,"link":"photo_8160292.html","width":160,"caption":"Fieldcraft","height":113});
															thumbnails[5056518] = clik.newPhoto({"id":5056518,"src":"SW_Golf_Course_055_thumb.jpg","galleries_id":15830,"server_id":18,"link":"photo_5056518.html","width":160,"caption":"Salisbury Cathdral from South Wilts Golf Course","height":115});
															thumbnails[170303] = clik.newPhoto({"id":170303,"src":"Prague_Rooftops_thumb.jpg","galleries_id":15832,"server_id":18,"link":"photo_170303.html","width":160,"caption":"Prague Rooftops","height":116});
															thumbnails[8622794] = clik.newPhoto({"id":8622794,"src":"Lindisfarne_Pilgrims_Way__thumb.jpg","galleries_id":15832,"server_id":18,"link":"photo_8622794.html","width":160,"caption":"The Pilgrims Way, Lindisfarne","height":112});
															thumbnails[5056508] = clik.newPhoto({"id":5056508,"src":"Stourhead_thumb.jpg","galleries_id":15830,"server_id":18,"link":"photo_5056508.html","width":160,"caption":"Autumn reflections, Stourhead","height":107});
															thumbnails[170278] = clik.newPhoto({"id":170278,"src":"Wylye_Down_thumb.jpg","galleries_id":15830,"server_id":18,"link":"photo_170278.html","width":160,"caption":"Wylye Down ","height":120});
															thumbnails[8160243] = clik.newPhoto({"id":8160243,"src":"_Lavender_Field_thumb.jpg","galleries_id":15830,"server_id":18,"link":"photo_8160243.html","width":160,"caption":"Lavender Fields","height":155});
															thumbnails[6495365] = clik.newPhoto({"id":6495365,"src":"Crossing_the_square2_thumb.jpg","galleries_id":15832,"server_id":18,"link":"photo_6495365.html","width":160,"caption":"Crossing the Square","height":113});
															thumbnails[170241] = clik.newPhoto({"id":170241,"src":"River_Horses_LRPS_thumb.jpg","galleries_id":15830,"server_id":18,"link":"photo_170241.html","width":160,"caption":"River Horses at Odstock","height":120});
															thumbnails[4940081] = clik.newPhoto({"id":4940081,"src":"Sky_Fighter2_thumb.jpg","galleries_id":15832,"server_id":18,"link":"photo_4940081.html","width":160,"caption":"Knight of the sky","height":113});
															thumbnails[7484985] = clik.newPhoto({"id":7484985,"src":"Painted_Lady_thumb.jpg","galleries_id":15830,"server_id":18,"link":"photo_7484985.html","width":160,"caption":"Painted Lady","height":113});
															thumbnails[4939951] = clik.newPhoto({"id":4939951,"src":"Durdle_Dor_048_thumb.jpg","galleries_id":15832,"server_id":18,"link":"photo_4939951.html","width":160,"caption":"Durdle Door under a stormy sky","height":227});
															thumbnails[1784158] = clik.newPhoto({"id":1784158,"src":"Stratford_Dawn_thumb.jpg","galleries_id":15830,"server_id":18,"link":"photo_1784158.html","width":160,"caption":"Frosty Dawn looking towards Stratford sub Castle","height":113});
															thumbnails[8622793] = clik.newPhoto({"id":8622793,"src":"Misty_Cathedral_thumb.jpg","galleries_id":15830,"server_id":18,"link":"photo_8622793.html","width":160,"caption":"Salisbury Cathedral, Misty Dawning","height":120});
															thumbnails[7484926] = clik.newPhoto({"id":7484926,"src":"Speyer_Square_thumb.jpg","galleries_id":15832,"server_id":18,"link":"photo_7484926.html","width":160,"caption":"Speyer Square","height":226});
															thumbnails[7655826] = clik.newPhoto({"id":7655826,"src":"Tintern_Interior_thumb.jpg","galleries_id":15832,"server_id":18,"link":"photo_7655826.html","width":160,"caption":"Inside Tintern Abbey","height":226});
															thumbnails[7484968] = clik.newPhoto({"id":7484968,"src":"Bruges_Reflections_thumb.jpg","galleries_id":15832,"server_id":18,"link":"photo_7484968.html","width":160,"caption":"Bruges Reflections","height":226});
															thumbnails[752437] = clik.newPhoto({"id":752437,"src":"Stonhenge_mood_thumb.jpg","galleries_id":15830,"server_id":18,"link":"photo_752437.html","width":160,"caption":"Stonehenge Mood","height":53});
															thumbnails[1784174] = clik.newPhoto({"id":1784174,"src":"Bluebells_Two_031_thumb.jpg","galleries_id":15830,"server_id":18,"link":"photo_1784174.html","width":160,"caption":"Redlynch Wood Bluebells","height":107});
															thumbnails[8160364] = clik.newPhoto({"id":8160364,"src":"La_Boulangerie_thumb.jpg","galleries_id":15832,"server_id":18,"link":"photo_8160364.html","width":160,"caption":"La Boulangerie","height":211});
															thumbnails[6495375] = clik.newPhoto({"id":6495375,"src":"Rhine_by_Moonlight_thumb.jpg","galleries_id":15832,"server_id":18,"link":"photo_6495375.html","width":160,"caption":"Rhine by moonlight","height":240});
															thumbnails[2732320] = clik.newPhoto({"id":2732320,"src":"Mohawk4_thumb.jpg","galleries_id":15832,"server_id":18,"link":"photo_2732320.html","width":160,"caption":"Mohawk","height":227});
															thumbnails[4940084] = clik.newPhoto({"id":4940084,"src":"Robin_feeding_thumb.jpg","galleries_id":15832,"server_id":18,"link":"photo_4940084.html","width":160,"caption":"Robin Feeding","height":241});
															thumbnails[7485550] = clik.newPhoto({"id":7485550,"src":"A_Simple_Supper_thumb.jpg","galleries_id":15832,"server_id":18,"link":"photo_7485550.html","width":160,"caption":"A Simple Supper","height":240});
															thumbnails[3103204] = clik.newPhoto({"id":3103204,"src":"Autumn_Golf.2_thumb.jpg","galleries_id":15830,"server_id":18,"link":"photo_3103204.html","width":160,"caption":"Autumn Golf, South Wilts Golf Course","height":114});
															thumbnails[8160315] = clik.newPhoto({"id":8160315,"src":"Gatekeeper_thumb.jpg","galleries_id":15830,"server_id":18,"link":"photo_8160315.html","width":160,"caption":"Gatekeeper","height":113});
															thumbnails[752444] = clik.newPhoto({"id":752444,"src":"Alexandra_thumb.jpg","galleries_id":15832,"server_id":18,"link":"photo_752444.html","width":160,"caption":"Alexandra","height":240});
															thumbnails[1592309] = clik.newPhoto({"id":1592309,"src":"Stourhead_Reflection_thumb.jpg","galleries_id":15830,"server_id":18,"link":"photo_1592309.html","width":160,"caption":"Stourhead Reflection","height":227});
															thumbnails[518524] = clik.newPhoto({"id":518524,"src":"The_Thinker__thumb.jpg","galleries_id":15832,"server_id":18,"link":"photo_518524.html","width":160,"caption":"The Thinker","height":219});
															thumbnails[8160443] = clik.newPhoto({"id":8160443,"src":"St_Ives_Beach_thumb.jpg","galleries_id":15832,"server_id":18,"link":"photo_8160443.html","width":160,"caption":"St. Ives Beach scene","height":226});
															thumbnails[4259784] = clik.newPhoto({"id":4259784,"src":"The_Cathedrals_Express2tif_thumb.jpg","galleries_id":15830,"server_id":18,"link":"photo_4259784.html","width":160,"caption":"The Cathedrals Express","height":226});
															thumbnails[3302094] = clik.newPhoto({"id":3302094,"src":"Bembridge_Mill_thumb.jpg","galleries_id":15832,"server_id":18,"link":"photo_3302094.html","width":160,"caption":"Bembridge Windmill, Isle Of Wight","height":234});
															thumbnails[6495394] = clik.newPhoto({"id":6495394,"src":"Switzerland_thumb.jpg","galleries_id":15832,"server_id":18,"link":"photo_6495394.html","width":160,"caption":"Switzerland","height":240});
															thumbnails[5900879] = clik.newPhoto({"id":5900879,"src":"Church2_thumb.jpg","galleries_id":15832,"server_id":18,"link":"photo_5900879.html","width":160,"caption":"Fairfield Church","height":225});
															thumbnails[7655838] = clik.newPhoto({"id":7655838,"src":"Wales_Landscape1_thumb.jpg","galleries_id":15832,"server_id":18,"link":"photo_7655838.html","width":160,"caption":"Landscape Wales","height":226});
															thumbnails[1592284] = clik.newPhoto({"id":1592284,"src":"Gorey_Harbour_thumb.jpg","galleries_id":15832,"server_id":18,"link":"photo_1592284.html","width":160,"caption":"Gorey Harbour, Jersey","height":227});
															thumbnails[752435] = clik.newPhoto({"id":752435,"src":"Stonehenge_Avenue_thumb.jpg","galleries_id":15830,"server_id":18,"link":"photo_752435.html","width":160,"caption":"Stonehenge from the Avenue","height":240});
															thumbnails[8160385] = clik.newPhoto({"id":8160385,"src":"Stair_Design_thumb.jpg","galleries_id":15832,"server_id":18,"link":"photo_8160385.html","width":160,"caption":"Staircase Designs","height":240});
															thumbnails[5056484] = clik.newPhoto({"id":5056484,"src":"Cathedrals_thumb.jpg","galleries_id":15830,"server_id":18,"link":"photo_5056484.html","width":160,"caption":"The glorious Cathedrals","height":227});
															thumbnails[8160278] = clik.newPhoto({"id":8160278,"src":"Brittany_Sunset_thumb.jpg","galleries_id":15832,"server_id":18,"link":"photo_8160278.html","width":160,"caption":"Brittany Sunset","height":240});
															thumbnails[5635889] = clik.newPhoto({"id":5635889,"src":"Broken_Bridges_thumb.jpg","galleries_id":15830,"server_id":18,"link":"photo_5635889.html","width":160,"caption":"Broken Bridges, Salisbury","height":226});
															thumbnails[273683] = clik.newPhoto({"id":273683,"src":"Salisbury_Daffodils_thumb.jpg","galleries_id":15830,"server_id":18,"link":"photo_273683.html","width":160,"caption":"Salisbury Daffodils","height":240});
															thumbnails[3806360] = clik.newPhoto({"id":3806360,"src":"Cathedral_Sculptures_thumb.jpg","galleries_id":15830,"server_id":18,"link":"photo_3806360.html","width":160,"caption":"Cathedral Trinity","height":240});
															thumbnails[3806383] = clik.newPhoto({"id":3806383,"src":"Town_Path_Snow_Scene_thumb.jpg","galleries_id":15830,"server_id":18,"link":"photo_3806383.html","width":160,"caption":"A Snowy Journey","height":226});
															thumbnails[7484911] = clik.newPhoto({"id":7484911,"src":"Water_Lane_thumb.jpg","galleries_id":15830,"server_id":18,"link":"photo_7484911.html","width":160,"caption":"Water Lane","height":222});
															thumbnails[2329250] = clik.newPhoto({"id":2329250,"src":"Wardour2_thumb.jpg","galleries_id":15830,"server_id":18,"link":"photo_2329250.html","width":160,"caption":"Wardour Castle, late afternoon","height":226});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[15830] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Images of Wiltshire","link":"gallery_15830.html","maxRecords":0.0,"photoIDs":[174953.0,8160287.0,5056494.0,174956.0,1592328.0,3806338.0,2732312.0,3302091.0,819524.0,5596474.0,4164670.0,1654186.0,573599.0,7485066.0,4259774.0,5635895.0,764293.0,5472968.0,7485006.0,8160292.0,5056518.0,5056508.0,170278.0,8160243.0,170241.0,7484985.0,1784158.0,8622793.0,752437.0,1784174.0,3103204.0,8160315.0,1592309.0,4259784.0,752435.0,5056484.0,5635889.0,273683.0,3806360.0,3806383.0,7484911.0,2329250.0],"skipIndex":0,"section_code":"gallery","featured_images":8160292.0,"id":15830,"singleSection":false});				  						galleries[15832] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Other Images","link":"gallery_15832.html","maxRecords":0.0,"photoIDs":[4454669.0,4454700.0,7483686.0,6495377.0,2329228.0,8160305.0,5056461.0,518514.0,3806452.0,8160258.0,518519.0,8160427.0,5900768.0,5900774.0,5900852.0,5900865.0,7485021.0,518508.0,8160268.0,6495364.0,7655816.0,4164733.0,6495369.0,7484897.0,170303.0,8622794.0,6495365.0,4940081.0,4939951.0,7484926.0,7655826.0,7484968.0,8160364.0,6495375.0,2732320.0,4940084.0,7485550.0,752444.0,518524.0,8160443.0,3302094.0,6495394.0,5900879.0,7655838.0,1592284.0,8160385.0,8160278.0],"skipIndex":0,"section_code":"gallery","featured_images":5900768.0,"id":15832,"singleSection":false});				  						galleries[108823] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Monochrome Images","link":"gallery_108823.html","maxRecords":0.0,"photoIDs":[5472986.0,1592330.0,5473003.0,7484946.0,6495362.0,992927.0,2732326.0,1784190.0,1654201.0,6495374.0,4454715.0],"skipIndex":0,"section_code":"gallery","featured_images":"5472986,1592330","id":108823,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8160243';
imageSets[2] = '5472986,1592330,5900768,8160292';
imageSets[3] = '8622794,8622793,8160443,8160427,8160385,8160364,8160315,8160305,8160292,8160287,8160278,8160268,8160258,8160243,7655838,7655826,7655816,7485550,7485066,7485021,7485006,7484985,7484968,7484946,7484926,7484911,7484897,7483686,6495394,6495377,6495375,6495374,6495369,6495365,6495364,6495362,5900879,5900865,5900852,5900774,5900768,5635895,5635889,5596474,5473003,5472986,5472968,5056518,5056508,5056494';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/Oliver/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/Oliver/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/Oliver/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/Oliver/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/Oliver/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/Oliver/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/Oliver/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/Oliver/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/Oliver/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/Oliver/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/Oliver/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/Oliver/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/Oliver/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/Oliver/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/Oliver/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/Oliver/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/Oliver/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/Oliver/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/Oliver/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/Oliver/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/Oliver/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/Oliver/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/Oliver/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/Oliver/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/Oliver/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/Oliver/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/Oliver/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 = 'AROPics: ' + 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 !== '' || this.payment_groups_id !== '') {
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

