window.thumbnails = {};
															thumbnails[6108382] = clik.newPhoto({"id":6108382,"src":"DoverSpitfire1webf_thumb.jpg","galleries_id":260402,"server_id":18,"link":"photo_6108382.html","width":130,"caption":"Spitfire MkIX at Charles Rolls' Channel flight  centenary celebrations at Dover, June 6th 2010","height":88});
															thumbnails[4396135] = clik.newPhoto({"id":4396135,"src":"Eye_and_Lampost_thumb.jpg","galleries_id":257811,"server_id":18,"link":"photo_4396135.html","width":130,"caption":"London Eye and Lamp post.","height":86});
															thumbnails[4437583] = clik.newPhoto({"id":4437583,"src":"427web_thumb.jpg","galleries_id":255814,"server_id":18,"link":"photo_4437583.html","width":130,"caption":"'427'","height":74});
															thumbnails[4437587] = clik.newPhoto({"id":4437587,"src":"carcontoursweb_thumb.jpg","galleries_id":255814,"server_id":18,"link":"photo_4437587.html","width":130,"caption":"Dolomite Contours","height":85});
															thumbnails[4437592] = clik.newPhoto({"id":4437592,"src":"etyperearweb_thumb.jpg","galleries_id":255814,"server_id":18,"link":"photo_4437592.html","width":130,"caption":"E Type Jaguar aerial","height":78});
															thumbnails[4437600] = clik.newPhoto({"id":4437600,"src":"Tigerweb_thumb.jpg","galleries_id":255815,"server_id":18,"link":"photo_4437600.html","width":130,"caption":"Portrait of Tiger the tabby","height":90});
															thumbnails[4480060] = clik.newPhoto({"id":4480060,"src":"Hathawayswatercolour_edited-1_thumb.jpg","galleries_id":255816,"server_id":18,"link":"photo_4480060.html","width":130,"caption":"Anne Hathaways Cottage, Stratford","height":95});
															thumbnails[4699078] = clik.newPhoto({"id":4699078,"src":"Bosham_Churchposter_edited-1_thumb.jpg","galleries_id":260408,"server_id":18,"link":"photo_4699078.html","width":130,"caption":"Bosham Church, West Sussex","height":195});
															thumbnails[4699109] = clik.newPhoto({"id":4699109,"src":"StNicholasPoster2_thumb.jpg","galleries_id":255799,"server_id":18,"link":"photo_4699109.html","width":130,"caption":"St Nicholas Church, New Romney","height":86});
															thumbnails[4699115] = clik.newPhoto({"id":4699115,"src":"StNicholasPoster_edited-1_thumb.jpg","galleries_id":255799,"server_id":18,"link":"photo_4699115.html","width":130,"caption":"Detail of St Nicholas Church, New Romney","height":86});
															thumbnails[4699119] = clik.newPhoto({"id":4699119,"src":"Kobeposter_edited-1_thumb.jpg","galleries_id":255815,"server_id":18,"link":"photo_4699119.html","width":130,"caption":"Tabby Face","height":126});
															thumbnails[4875092] = clik.newPhoto({"id":4875092,"src":"jetbadge_edited-1_thumb.jpg","galleries_id":255814,"server_id":18,"link":"photo_4875092.html","width":130,"caption":"Jet Badge","height":187});
															thumbnails[4875207] = clik.newPhoto({"id":4875207,"src":"Cal_look_edited-1_thumb.jpg","galleries_id":255814,"server_id":18,"link":"photo_4875207.html","width":130,"caption":"VW Cal Look","height":184});
															thumbnails[4875213] = clik.newPhoto({"id":4875213,"src":"Egypt_Sand_Sculptures_thumb.jpg","galleries_id":278151,"server_id":18,"link":"photo_4875213.html","width":130,"caption":"Egyptian Sand Sculptures at Brighton","height":87});
															thumbnails[4875222] = clik.newPhoto({"id":4875222,"src":"Whitby_Abbey_thumb.jpg","galleries_id":278151,"server_id":18,"link":"photo_4875222.html","width":130,"caption":"Whitby Abbey","height":195});
															thumbnails[4875272] = clik.newPhoto({"id":4875272,"src":"VW_edited-1_thumb.jpg","galleries_id":255814,"server_id":18,"link":"photo_4875272.html","width":130,"caption":"VW","height":87});
															thumbnails[4912767] = clik.newPhoto({"id":4912767,"src":"etyperear2_thumb.jpg","galleries_id":255814,"server_id":18,"link":"photo_4912767.html","width":130,"caption":"E Type Jag","height":79});
															thumbnails[4912769] = clik.newPhoto({"id":4912769,"src":"etypesidelight3_thumb.jpg","galleries_id":255814,"server_id":18,"link":"photo_4912769.html","width":130,"caption":"Louvre and Lines","height":190});
															thumbnails[5019654] = clik.newPhoto({"id":5019654,"src":"holypuddle_thumb.jpg","galleries_id":255799,"server_id":18,"link":"photo_5019654.html","width":130,"caption":"Ecclesiastic Reflections","height":92});
															thumbnails[5303541] = clik.newPhoto({"id":5303541,"src":"webbandstand_thumb.jpg","galleries_id":255812,"server_id":18,"link":"photo_5303541.html","width":130,"caption":"Leas Bandstand","height":97});
															thumbnails[5303545] = clik.newPhoto({"id":5303545,"src":"webBurstin_thumb.jpg","galleries_id":255812,"server_id":18,"link":"photo_5303545.html","width":130,"caption":"Grand Burstin Hotel","height":102});
															thumbnails[5303577] = clik.newPhoto({"id":5303577,"src":"webeastcliff_thumb.jpg","galleries_id":255812,"server_id":18,"link":"photo_5303577.html","width":130,"caption":"View of Folkestone East Cliff","height":99});
															thumbnails[5303579] = clik.newPhoto({"id":5303579,"src":"webharbour_thumb.jpg","galleries_id":255812,"server_id":18,"link":"photo_5303579.html","width":130,"caption":"Folkestone Inner Harbour at High Tide","height":97});
															thumbnails[5303582] = clik.newPhoto({"id":5303582,"src":"webHorse1_thumb.jpg","galleries_id":255812,"server_id":18,"link":"photo_5303582.html","width":130,"caption":"Folkestone White Horse","height":96});
															thumbnails[5303589] = clik.newPhoto({"id":5303589,"src":"webLift2_thumb.jpg","galleries_id":255812,"server_id":18,"link":"photo_5303589.html","width":130,"caption":"The Leas Lift","height":73});
															thumbnails[5303600] = clik.newPhoto({"id":5303600,"src":"webThe_hills_thumb.jpg","galleries_id":255812,"server_id":18,"link":"photo_5303600.html","width":130,"caption":"The Folkestone Downs","height":95});
															thumbnails[5303609] = clik.newPhoto({"id":5303609,"src":"webwarren_thumb.jpg","galleries_id":255812,"server_id":18,"link":"photo_5303609.html","width":130,"caption":"Folkestone Warren","height":101});
															thumbnails[5306584] = clik.newPhoto({"id":5306584,"src":"beachposter2_edited-2_thumb.jpg","galleries_id":255812,"server_id":18,"link":"photo_5306584.html","width":130,"caption":"Coronation Parade and Beach","height":88});
															thumbnails[5312572] = clik.newPhoto({"id":5312572,"src":"zagpath_thumb.jpg","galleries_id":255812,"server_id":18,"link":"photo_5312572.html","width":130,"caption":"Zig Zag path from the Leas","height":100});
															thumbnails[5713740] = clik.newPhoto({"id":5713740,"src":"CATFACE_thumb.jpg","galleries_id":255815,"server_id":18,"link":"photo_5713740.html","width":130,"caption":"Catface","height":102});
															thumbnails[5713761] = clik.newPhoto({"id":5713761,"src":"Samphire_tower_thumb.jpg","galleries_id":260408,"server_id":18,"link":"photo_5713761.html","width":130,"caption":"Samphire Hoe, the tower.","height":87});
															thumbnails[5713770] = clik.newPhoto({"id":5713770,"src":"Rocks_and_limpets_thumb.jpg","galleries_id":260408,"server_id":18,"link":"photo_5713770.html","width":130,"caption":"Rocks and Limpets","height":87});
															thumbnails[5713801] = clik.newPhoto({"id":5713801,"src":"Rocks_and_limpets2_thumb.jpg","galleries_id":260408,"server_id":18,"link":"photo_5713801.html","width":130,"caption":"Rocks and Limpets2","height":82});
															thumbnails[6586960] = clik.newPhoto({"id":6586960,"src":"GNOIRweb1_thumb.jpg","galleries_id":260402,"server_id":18,"link":"photo_6586960.html","width":130,"caption":"","height":87});
															thumbnails[7634089] = clik.newPhoto({"id":7634089,"src":"Britanniawebc_thumb.jpg","galleries_id":255812,"server_id":18,"link":"photo_7634089.html","width":130,"caption":"Britannia crossing the Dover Road Bridge, Folkestone April 7th 2011","height":93});
															thumbnails[7634480] = clik.newPhoto({"id":7634480,"src":"Avesters_thumb.jpg","galleries_id":414048,"server_id":18,"link":"photo_7634480.html","width":130,"caption":"Avebury Stereocards","height":184});
															thumbnails[7647472] = clik.newPhoto({"id":7647472,"src":"View_of_St_Michaels_Mountweb_thumb.jpg","galleries_id":260408,"server_id":18,"link":"photo_7647472.html","width":130,"caption":"","height":77});
															thumbnails[7647479] = clik.newPhoto({"id":7647479,"src":"treesilhouettewebc_thumb.jpg","galleries_id":255812,"server_id":18,"link":"photo_7647479.html","width":130,"caption":"Tree on Castle Hill","height":196});
															thumbnails[7647483] = clik.newPhoto({"id":7647483,"src":"Bushsilhouettewebc_thumb.jpg","galleries_id":255812,"server_id":18,"link":"photo_7647483.html","width":130,"caption":"Sunset on Castle Hill","height":87});
															thumbnails[7647495] = clik.newPhoto({"id":7647495,"src":"Aveweb1_thumb.jpg","galleries_id":414048,"server_id":18,"link":"photo_7647495.html","width":130,"caption":"Avebury Stereocard","height":87});
															thumbnails[7647509] = clik.newPhoto({"id":7647509,"src":"Aveweb2_thumb.jpg","galleries_id":414048,"server_id":18,"link":"photo_7647509.html","width":130,"caption":"Avebury Stereocard","height":87});
															thumbnails[7647513] = clik.newPhoto({"id":7647513,"src":"Aveweb3_thumb.jpg","galleries_id":414048,"server_id":18,"link":"photo_7647513.html","width":130,"caption":"Avebury Stereocard","height":87});
															thumbnails[7647518] = clik.newPhoto({"id":7647518,"src":"Aveweb4_thumb.jpg","galleries_id":414048,"server_id":18,"link":"photo_7647518.html","width":130,"caption":"Avebury Stereocard","height":87});
															thumbnails[7647522] = clik.newPhoto({"id":7647522,"src":"Aveweb5_thumb.jpg","galleries_id":414048,"server_id":18,"link":"photo_7647522.html","width":130,"caption":"Avebury Stereocard","height":87});
															thumbnails[8189154] = clik.newPhoto({"id":8189154,"src":"SStereocard1_thumb.jpg","galleries_id":437144,"server_id":18,"link":"photo_8189154.html","width":130,"caption":"Folkestone Roman Villa Excavation 2011","height":98});
															thumbnails[8189160] = clik.newPhoto({"id":8189160,"src":"SStereocardcorfe2_thumb.jpg","galleries_id":437144,"server_id":18,"link":"photo_8189160.html","width":130,"caption":"Corfe Castle in Dorset","height":50});
															thumbnails[8189165] = clik.newPhoto({"id":8189165,"src":"SSterecard2_thumb.jpg","galleries_id":437144,"server_id":18,"link":"photo_8189165.html","width":130,"caption":"Cliffs detail at Kimmeridge Bay, Dorset","height":52});
															thumbnails[8189176] = clik.newPhoto({"id":8189176,"src":"SStereocardcustom_thumb.jpg","galleries_id":437144,"server_id":18,"link":"photo_8189176.html","width":130,"caption":"Custom Ford Popular","height":52});
															thumbnails[8189180] = clik.newPhoto({"id":8189180,"src":"SStereocardFolkestoneHarbour_thumb.jpg","galleries_id":437144,"server_id":18,"link":"photo_8189180.html","width":130,"caption":"Folkestone Harbour","height":87});
															thumbnails[8201662] = clik.newPhoto({"id":8201662,"src":"webCastlescene2card_thumb.jpg","galleries_id":437144,"server_id":18,"link":"photo_8201662.html","width":130,"caption":"Folkestone Sandcastle Competition 2011","height":97});
															thumbnails[8201764] = clik.newPhoto({"id":8201764,"src":"webcastscenecard_thumb.jpg","galleries_id":437144,"server_id":18,"link":"photo_8201764.html","width":130,"caption":"Folkestone Sandcastle Competition 2011","height":99});
															thumbnails[8201795] = clik.newPhoto({"id":8201795,"src":"webMonstereo2card_thumb.jpg","galleries_id":437144,"server_id":18,"link":"photo_8201795.html","width":130,"caption":"Monster Sandcastle","height":44});
															thumbnails[8201807] = clik.newPhoto({"id":8201807,"src":"webMonsterstereo_thumb.jpg","galleries_id":437144,"server_id":18,"link":"photo_8201807.html","width":130,"caption":"Sandcastle Monster.","height":99});
															thumbnails[8201810] = clik.newPhoto({"id":8201810,"src":"webSquidcard_thumb.jpg","galleries_id":437144,"server_id":18,"link":"photo_8201810.html","width":130,"caption":"Sandcastle Monster","height":45});
															thumbnails[8230721] = clik.newPhoto({"id":8230721,"src":"webArklet_thumb.jpg","galleries_id":437144,"server_id":18,"link":"photo_8230721.html","width":130,"caption":"The Arklet Falls in 3D","height":50});
															thumbnails[8230731] = clik.newPhoto({"id":8230731,"src":"webFalkirk_Wheel_card_thumb.jpg","galleries_id":437144,"server_id":18,"link":"photo_8230731.html","width":130,"caption":"The Falkirk Wheel in Stereo 3D","height":51});
															thumbnails[8230868] = clik.newPhoto({"id":8230868,"src":"WebInversnaid_thumb.jpg","galleries_id":437144,"server_id":18,"link":"photo_8230868.html","width":130,"caption":"Stereoscopic view across Loch Lomond from Inversnaid, Scotland.","height":51});
															thumbnails[8230878] = clik.newPhoto({"id":8230878,"src":"webSteps_thumb.jpg","galleries_id":437144,"server_id":18,"link":"photo_8230878.html","width":130,"caption":"Stereoscopic view of The East Cliff Steps Folkestone","height":49});
															thumbnails[8230889] = clik.newPhoto({"id":8230889,"src":"webMermaid_thumb.jpg","galleries_id":437144,"server_id":18,"link":"photo_8230889.html","width":130,"caption":"Stereoscopic view of the Folkestone Mermaid","height":49});
															thumbnails[8230899] = clik.newPhoto({"id":8230899,"src":"webRugPeopleCard_thumb.jpg","galleries_id":437144,"server_id":18,"link":"photo_8230899.html","width":130,"caption":"Stereoscopic view of the Rug People at Folkestone.","height":98});
															thumbnails[8230908] = clik.newPhoto({"id":8230908,"src":"webSeacard_thumb.jpg","galleries_id":437144,"server_id":18,"link":"photo_8230908.html","width":130,"caption":"Stereoscopic view of the For Those in Peril on the Sea artwork at Folkestone.","height":49});
															thumbnails[8603404] = clik.newPhoto({"id":8603404,"src":"Dungenessweb_thumb.jpg","galleries_id":442392,"server_id":18,"link":"photo_8603404.html","width":130,"caption":"Dungeness","height":97});
															thumbnails[8603406] = clik.newPhoto({"id":8603406,"src":"Herne_Bay_Seafront_thumb.jpg","galleries_id":442392,"server_id":18,"link":"photo_8603406.html","width":130,"caption":"Herne Bay, Kent","height":98});
															thumbnails[8603439] = clik.newPhoto({"id":8603439,"src":"Hever_Castle_Fountain_thumb.jpg","galleries_id":442392,"server_id":18,"link":"photo_8603439.html","width":130,"caption":"Fountain at Hever Castle, Kent","height":97});
															thumbnails[8603445] = clik.newPhoto({"id":8603445,"src":"Kimmeridge_Bay_thumb.jpg","galleries_id":442392,"server_id":18,"link":"photo_8603445.html","width":130,"caption":"Plant on cliffs at Kimmeridge Bay on the Jurassic Coast, Dorset","height":104});
															thumbnails[8603478] = clik.newPhoto({"id":8603478,"src":"Lympne_thumb.jpg","galleries_id":442392,"server_id":18,"link":"photo_8603478.html","width":130,"caption":"Lympne, Kent","height":45});
															thumbnails[8603498] = clik.newPhoto({"id":8603498,"src":"Rippon_Tor_Dartmoor_thumb.jpg","galleries_id":442392,"server_id":18,"link":"photo_8603498.html","width":130,"caption":"Rippon Tor, Dartmoor","height":86});
															thumbnails[8603503] = clik.newPhoto({"id":8603503,"src":"Webboatdis_thumb.jpg","galleries_id":442392,"server_id":18,"link":"photo_8603503.html","width":130,"caption":"Fishing boat, Folkestone Harbour","height":182});
															thumbnails[8886767] = clik.newPhoto({"id":8886767,"src":"Moonrise_at_Beachboroughweb_thumb.jpg","galleries_id":467389,"server_id":18,"link":"photo_8886767.html","width":130,"caption":"Beachborough Moonrise","height":93});
															thumbnails[8935221] = clik.newPhoto({"id":8935221,"src":"webFatherChristmas3Dcard_thumb.jpg","galleries_id":437144,"server_id":18,"link":"photo_8935221.html","width":130,"caption":"Happy 3D stereo Christmas","height":105});
															thumbnails[8935223] = clik.newPhoto({"id":8935223,"src":"webSnowman3D1_thumb.jpg","galleries_id":437144,"server_id":18,"link":"photo_8935223.html","width":130,"caption":"Snowman Stereocard","height":100});
															thumbnails[4437596] = clik.newPhoto({"id":4437596,"src":"FREDDIEINGRASSweb_thumb.jpg","galleries_id":255815,"server_id":18,"link":"photo_4437596.html","width":130,"caption":"Freddy","height":87});
															thumbnails[4533219] = clik.newPhoto({"id":4533219,"src":"laseratsamphireweb_thumb.jpg","galleries_id":255814,"server_id":18,"link":"photo_4533219.html","width":130,"caption":"Ford Capri Laser 1.6","height":89});
															thumbnails[8014005] = clik.newPhoto({"id":8014005,"src":"LochLomond1_thumb.jpg","galleries_id":430533,"server_id":18,"link":"photo_8014005.html","width":130,"caption":"View of Loch Lomond from Inversnaid Hotel","height":87});
															thumbnails[8333731] = clik.newPhoto({"id":8333731,"src":"webMonsterana_thumb.jpg","galleries_id":442392,"server_id":18,"link":"photo_8333731.html","width":130,"caption":"Sea monster Sandcastle","height":198});
															thumbnails[8014008] = clik.newPhoto({"id":8014008,"src":"LochLomond21_thumb.jpg","galleries_id":430533,"server_id":18,"link":"photo_8014008.html","width":130,"caption":"View of Loch Lomond from Inversnaid Hotel.","height":94});
															thumbnails[8333753] = clik.newPhoto({"id":8333753,"src":"webSquidana_thumb.jpg","galleries_id":442392,"server_id":18,"link":"photo_8333753.html","width":130,"caption":"Squid attacking boat sandcastle","height":90});
															thumbnails[8014011] = clik.newPhoto({"id":8014011,"src":"LochLomond3_thumb.jpg","galleries_id":430533,"server_id":18,"link":"photo_8014011.html","width":130,"caption":"The little harbour at Inversnaid Hotel, Loch Lomond.","height":82});
															thumbnails[5019643] = clik.newPhoto({"id":5019643,"src":"deckchairs_thumb.jpg","galleries_id":260408,"server_id":18,"link":"photo_5019643.html","width":130,"caption":"Deckchairs and Sunhats at Hastings","height":81});
															thumbnails[8014040] = clik.newPhoto({"id":8014040,"src":"LochLomond4_thumb.jpg","galleries_id":430533,"server_id":18,"link":"photo_8014040.html","width":130,"caption":"View of Loch Lomond from Inversnaid.","height":86});
															thumbnails[8014049] = clik.newPhoto({"id":8014049,"src":"LochLomond5_thumb.jpg","galleries_id":430533,"server_id":18,"link":"photo_8014049.html","width":130,"caption":"View of Loch Lomond from Inversnaid.","height":74});
															thumbnails[8014069] = clik.newPhoto({"id":8014069,"src":"LochLomond6_thumb.jpg","galleries_id":430533,"server_id":18,"link":"photo_8014069.html","width":130,"caption":"View across Loch Lomond towards Inveruglas.","height":90});
															thumbnails[4699096] = clik.newPhoto({"id":4699096,"src":"boshamhdrbw_thumb.jpg","galleries_id":260408,"server_id":18,"link":"photo_4699096.html","width":130,"caption":"Bosham Harbour, West Sussex.","height":195});
															thumbnails[8014088] = clik.newPhoto({"id":8014088,"src":"LochLomond7_thumb.jpg","galleries_id":430533,"server_id":18,"link":"photo_8014088.html","width":130,"caption":"View across Loch Lomond to Inveruglas.","height":93});
															thumbnails[8014133] = clik.newPhoto({"id":8014133,"src":"Falls2_thumb.jpg","galleries_id":430533,"server_id":18,"link":"photo_8014133.html","width":130,"caption":"Arklet Falls, Inversnaid","height":194});
															thumbnails[8014155] = clik.newPhoto({"id":8014155,"src":"InversnaidBoats1_thumb.jpg","galleries_id":430533,"server_id":18,"link":"photo_8014155.html","width":130,"caption":"Boats moored at Inversnaid. Loch Lomond","height":65});
															thumbnails[4408419] = clik.newPhoto({"id":4408419,"src":"Lastferryposter_thumb.jpg","galleries_id":255812,"server_id":18,"link":"photo_4408419.html","width":130,"caption":"The last Sealink Stena Line ferry from Folkestone. 1991","height":87});
															thumbnails[4395768] = clik.newPhoto({"id":4395768,"src":"Fairfield_HDR_thumb.jpg","galleries_id":255799,"server_id":18,"link":"photo_4395768.html","width":130,"caption":"Big Sky at Fairfield.","height":86});
															thumbnails[4409169] = clik.newPhoto({"id":4409169,"src":"DonnaTerenzi_thumb.jpg","galleries_id":258305,"server_id":18,"link":"photo_4409169.html","width":130,"caption":"Donna Terenzi","height":190});
															thumbnails[4455638] = clik.newPhoto({"id":4455638,"src":"RhythmDocsMidleyweb_thumb.jpg","galleries_id":258305,"server_id":18,"link":"photo_4455638.html","width":130,"caption":"The Rhythm Doctors at Midley","height":169});
															thumbnails[4463835] = clik.newPhoto({"id":4463835,"src":"oldromneyinfrareddigitalweb_thumb.jpg","galleries_id":255798,"server_id":18,"link":"photo_4463835.html","width":130,"caption":"St. Clements Church Old Romney in digital infra red.","height":77});
															thumbnails[4480106] = clik.newPhoto({"id":4480106,"src":"somewhereinEngland1945_edited-1_thumb.jpg","galleries_id":260402,"server_id":18,"link":"photo_4480106.html","width":130,"caption":"Somewhere Over England 1945","height":97});
															thumbnails[8014164] = clik.newPhoto({"id":8014164,"src":"Inveruglas1_thumb.jpg","galleries_id":430533,"server_id":18,"link":"photo_8014164.html","width":130,"caption":"Inveruglas Power Station, Loch Lomond.","height":194});
															thumbnails[4408428] = clik.newPhoto({"id":4408428,"src":"Parliament_thumb.jpg","galleries_id":257811,"server_id":18,"link":"photo_4408428.html","width":130,"caption":"Parliament","height":89});
															thumbnails[4395653] = clik.newPhoto({"id":4395653,"src":"Fairfield_thumb.jpg","galleries_id":255798,"server_id":18,"link":"photo_4395653.html","width":130,"caption":"Clouds at Fairfield","height":195});
															thumbnails[4455591] = clik.newPhoto({"id":4455591,"src":"correctedbelleskyweb_thumb.jpg","galleries_id":260402,"server_id":18,"link":"photo_4455591.html","width":130,"caption":"Somewhere over Europe 1943","height":88});
															thumbnails[4678221] = clik.newPhoto({"id":4678221,"src":"Horsa_poster_edited-1_thumb.jpg","galleries_id":255812,"server_id":18,"link":"photo_4678221.html","width":130,"caption":"Sealink Stena Line Horsa leaves Folkestone for the last time December 31st 1991","height":146});
															thumbnails[4408482] = clik.newPhoto({"id":4408482,"src":"The_Road_to_Tintagel_Castle_thumb.jpg","galleries_id":260408,"server_id":18,"link":"photo_4408482.html","width":130,"caption":"The Road to Tintagel Castle","height":83});
															thumbnails[4463844] = clik.newPhoto({"id":4463844,"src":"IanMorrisHorseweb_thumb.jpg","galleries_id":258305,"server_id":18,"link":"photo_4463844.html","width":130,"caption":"Ian Morris","height":196});
															thumbnails[4687285] = clik.newPhoto({"id":4687285,"src":"RedrockHDRposter_edited-1_thumb.jpg","galleries_id":260408,"server_id":18,"link":"photo_4687285.html","width":130,"caption":"The Red Rock","height":195});
															thumbnails[4408491] = clik.newPhoto({"id":4408491,"src":"View_from_Castle_Hill_thumb.jpg","galleries_id":255812,"server_id":18,"link":"photo_4408491.html","width":130,"caption":"The view from Castle Hill, Folkestone. 1991.","height":87});
															thumbnails[4687290] = clik.newPhoto({"id":4687290,"src":"Rock2HDR_edited-1_thumb.jpg","galleries_id":260408,"server_id":18,"link":"photo_4687290.html","width":130,"caption":"The White Rock","height":190});
															thumbnails[4687280] = clik.newPhoto({"id":4687280,"src":"Lord_Nelson_at_Folkestone_thumb.jpg","galleries_id":255812,"server_id":18,"link":"photo_4687280.html","width":130,"caption":"Lord Nelson at Folkestone Harbour 16\/6\/07","height":82});
															thumbnails[4687405] = clik.newPhoto({"id":4687405,"src":"RockHDR_edited-1_thumb.jpg","galleries_id":260408,"server_id":18,"link":"photo_4687405.html","width":130,"caption":"White Rock with Stones","height":195});
															thumbnails[4463851] = clik.newPhoto({"id":4463851,"src":"Shafthdrweb_thumb.jpg","galleries_id":255816,"server_id":18,"link":"photo_4463851.html","width":130,"caption":"Gold Hill Shaftesbury","height":76});
															thumbnails[4395726] = clik.newPhoto({"id":4395726,"src":"Brookland1_thumb.jpg","galleries_id":255798,"server_id":18,"link":"photo_4395726.html","width":130,"caption":"The Tree at Brookland","height":195});
															thumbnails[4408503] = clik.newPhoto({"id":4408503,"src":"Waves_at_Newquay_thumb.jpg","galleries_id":260408,"server_id":18,"link":"photo_4408503.html","width":130,"caption":"Waves at Newquay","height":77});
															thumbnails[4455627] = clik.newPhoto({"id":4455627,"src":"paulbluesmanweb_thumb.jpg","galleries_id":258305,"server_id":18,"link":"photo_4455627.html","width":130,"caption":"Playing the Blues","height":208});
															thumbnails[4455703] = clik.newPhoto({"id":4455703,"src":"Great_Big_Beautiful_Doll_Mustang_thumb.jpg","galleries_id":260402,"server_id":18,"link":"photo_4455703.html","width":130,"caption":"North American P51 Mustang 'Great Big Beautiful Doll' in flight.","height":77});
															thumbnails[4463834] = clik.newPhoto({"id":4463834,"src":"Fairfieldweb_thumb.jpg","galleries_id":255799,"server_id":18,"link":"photo_4463834.html","width":130,"caption":"Fairfield Church from the South East","height":83});
															thumbnails[5101061] = clik.newPhoto({"id":5101061,"src":"BankedCapris1_thumb.jpg","galleries_id":278151,"server_id":18,"link":"photo_5101061.html","width":130,"caption":"30 specially selected Ford Capris assembled on the famous Brooklands Banking at an event to celebrate 40 years of the car.","height":86});
															thumbnails[4455697] = clik.newPhoto({"id":4455697,"src":"KentSpitfire_thumb.jpg","galleries_id":260402,"server_id":18,"link":"photo_4455697.html","width":130,"caption":"The Kent Spitfire MkIXe","height":63});
															thumbnails[4463865] = clik.newPhoto({"id":4463865,"src":"TangmereJan09web_thumb.jpg","galleries_id":255812,"server_id":18,"link":"photo_4463865.html","width":130,"caption":"Steam locomotive Tangmere climbing the Folkestone harbour bank. January 2009.","height":196});
															thumbnails[6217918] = clik.newPhoto({"id":6217918,"src":"BOF_Lancaster_thumb.jpg","galleries_id":260402,"server_id":18,"link":"photo_6217918.html","width":130,"caption":"Battle of Britain Flight Avro Lancaster at Margate.","height":76});
															thumbnails[6217975] = clik.newPhoto({"id":6217975,"src":"DeHavilandVampire2_thumb.jpg","galleries_id":260402,"server_id":18,"link":"photo_6217975.html","width":130,"caption":"De Haviland Vampire at Margate 2010","height":86});
															thumbnails[6217960] = clik.newPhoto({"id":6217960,"src":"DeHavilandVampire_thumb.jpg","galleries_id":260402,"server_id":18,"link":"photo_6217960.html","width":130,"caption":"De Haviland Vampire at Margate 2010","height":87});
															thumbnails[4408397] = clik.newPhoto({"id":4408397,"src":"Boscastle_Harbour_thumb.jpg","galleries_id":260408,"server_id":18,"link":"photo_4408397.html","width":130,"caption":"Boscastle Harbour, Cornwall","height":85});
															thumbnails[4839992] = clik.newPhoto({"id":4839992,"src":"Harbourboyscan_edited-2_thumb.jpg","galleries_id":255812,"server_id":18,"link":"photo_4839992.html","width":130,"caption":"Folkestone Harbour at low tide.","height":93});
															thumbnails[6217981] = clik.newPhoto({"id":6217981,"src":"RedArrows1_thumb.jpg","galleries_id":260402,"server_id":18,"link":"photo_6217981.html","width":130,"caption":"Red Arrows at Margate 2010","height":87});
															thumbnails[4408479] = clik.newPhoto({"id":4408479,"src":"The_Man_on_the_Street_thumb.jpg","galleries_id":255816,"server_id":18,"link":"photo_4408479.html","width":130,"caption":"The Man on the Street","height":196});
															thumbnails[6217991] = clik.newPhoto({"id":6217991,"src":"RedArrows2_thumb.jpg","galleries_id":260402,"server_id":18,"link":"photo_6217991.html","width":130,"caption":"Red Arrows at Margate 2010","height":87});
															thumbnails[6217994] = clik.newPhoto({"id":6217994,"src":"RedArrows3_thumb.jpg","galleries_id":260402,"server_id":18,"link":"photo_6217994.html","width":130,"caption":"Red Arrows at Margate 2010","height":95});
															thumbnails[6218002] = clik.newPhoto({"id":6218002,"src":"RedArrows4_thumb.jpg","galleries_id":260402,"server_id":18,"link":"photo_6218002.html","width":130,"caption":"Red Arrows at Margate 2010","height":97});
															thumbnails[6218013] = clik.newPhoto({"id":6218013,"src":"RedArrows5_thumb.jpg","galleries_id":260402,"server_id":18,"link":"photo_6218013.html","width":130,"caption":"Red Arrows at Margate 2010","height":87});
															thumbnails[6218017] = clik.newPhoto({"id":6218017,"src":"RedArrows6_thumb.jpg","galleries_id":260402,"server_id":18,"link":"photo_6218017.html","width":130,"caption":"Red Arrows at Margate 2010","height":73});
															thumbnails[6218023] = clik.newPhoto({"id":6218023,"src":"RedArrows7_thumb.jpg","galleries_id":260402,"server_id":18,"link":"photo_6218023.html","width":130,"caption":"Red Arrows at Margate 2010","height":87});
															thumbnails[4408431] = clik.newPhoto({"id":4408431,"src":"Stoneface_thumb.jpg","galleries_id":255816,"server_id":18,"link":"photo_4408431.html","width":130,"caption":"Stoneface","height":99});
															thumbnails[4455611] = clik.newPhoto({"id":4455611,"src":"Dianaflowersweb_thumb.jpg","galleries_id":257811,"server_id":18,"link":"photo_4455611.html","width":130,"caption":"Flowers for Diana at Kensington Palace 1997.","height":81});
															thumbnails[4463838] = clik.newPhoto({"id":4463838,"src":"beachedboatweb_thumb.jpg","galleries_id":260408,"server_id":18,"link":"photo_4463838.html","width":130,"caption":"The Manaav Star beached at Jurys Gap in September 2004.","height":94});
															thumbnails[4678143] = clik.newPhoto({"id":4678143,"src":"Oliver_Cromwell_poster_thumb.jpg","galleries_id":255812,"server_id":18,"link":"photo_4678143.html","width":130,"caption":"Oliver Cromwell crossing the Dover Road viaduct, Folkestone.","height":87});
															thumbnails[4699101] = clik.newPhoto({"id":4699101,"src":"Fairfield_Thru_bushes_thumb.jpg","galleries_id":255799,"server_id":18,"link":"photo_4699101.html","width":130,"caption":"Fairfield Church through the bushes","height":87});
															thumbnails[6586952] = clik.newPhoto({"id":6586952,"src":"GNOIRweb3_thumb.jpg","galleries_id":260402,"server_id":18,"link":"photo_6586952.html","width":130,"caption":"","height":92});
															thumbnails[4840003] = clik.newPhoto({"id":4840003,"src":"redhero1_thumb.jpg","galleries_id":258305,"server_id":18,"link":"photo_4840003.html","width":130,"caption":"Driss from the Heroes at the Seahorse","height":184});
															thumbnails[4463857] = clik.newPhoto({"id":4463857,"src":"metropolisweb_thumb.jpg","galleries_id":257811,"server_id":18,"link":"photo_4463857.html","width":130,"caption":"London Docklands","height":86});
															thumbnails[4677950] = clik.newPhoto({"id":4677950,"src":"Last_harboursteam_thumb.jpg","galleries_id":255812,"server_id":18,"link":"photo_4677950.html","width":130,"caption":"March 2009. The last Folkestone Harbour train headed by Oliver Cromwell.","height":97});
															thumbnails[4840014] = clik.newPhoto({"id":4840014,"src":"seahorseheroesdrum_thumb.jpg","galleries_id":258305,"server_id":18,"link":"photo_4840014.html","width":130,"caption":"Dan from the Heroes at the Seahorse.","height":179});
															thumbnails[6909607] = clik.newPhoto({"id":6909607,"src":"Hastings_PierOctober2010a1_thumb.jpg","galleries_id":260408,"server_id":18,"link":"photo_6909607.html","width":130,"caption":"Hastings Pier, October 17th 2010","height":87});
															thumbnails[5433486] = clik.newPhoto({"id":5433486,"src":"Limpetshdr1poster_edited-2_thumb.jpg","galleries_id":260408,"server_id":18,"link":"photo_5433486.html","width":130,"caption":"Limpets","height":89});
															thumbnails[4396132] = clik.newPhoto({"id":4396132,"src":"London_Eye_thumb.jpg","galleries_id":257811,"server_id":18,"link":"photo_4396132.html","width":130,"caption":"The London Eye.","height":196});
															thumbnails[4704448] = clik.newPhoto({"id":4704448,"src":"Smudgeposter_edited-2_thumb.jpg","galleries_id":255815,"server_id":18,"link":"photo_4704448.html","width":130,"caption":"Eyes of Blue","height":98});
															thumbnails[7633911] = clik.newPhoto({"id":7633911,"src":"Smudgeweb_thumb.jpg","galleries_id":255815,"server_id":18,"link":"photo_7633911.html","width":130,"caption":"Smudge","height":87});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[260402] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Aircraft","link":"gallery_260402.html","maxRecords":0.0,"photoIDs":[6108382.0,6586960.0,4480106.0,4455591.0,4455703.0,4455697.0,6217918.0,6217975.0,6217960.0,6217981.0,6217991.0,6217994.0,6218002.0,6218013.0,6218017.0,6218023.0,6586952.0],"skipIndex":0,"section_code":"gallery","featured_images":"6586960,6586952,6218023,6218017,6218013,6218002,6217994,6217991,6217981,6217975","id":260402,"singleSection":false});				  						galleries[255815] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Cats","link":"gallery_255815.html","maxRecords":0.0,"photoIDs":[4437600.0,4699119.0,5713740.0,4437596.0,4704448.0,7633911.0],"skipIndex":0,"section_code":"gallery","featured_images":"7633911,5713740,4704448,4699119,4437600,4437596","id":255815,"singleSection":false});				  						galleries[255812] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Historic Folkestone","link":"gallery_255812.html","maxRecords":0.0,"photoIDs":[5303541.0,5303545.0,5303577.0,5303579.0,5303582.0,5303589.0,5303600.0,5303609.0,5306584.0,5312572.0,7634089.0,7647479.0,7647483.0,4408419.0,4678221.0,4408491.0,4687280.0,4463865.0,4839992.0,4678143.0,4677950.0],"skipIndex":0,"section_code":"gallery","featured_images":"7647483,7647479,7634089,5312572,5306584,5303609,5303600,5303589,5303582,5303579","id":255812,"singleSection":false});				  						galleries[257811] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"London","link":"gallery_257811.html","maxRecords":0.0,"photoIDs":[4396135.0,4408428.0,4455611.0,4463857.0,4396132.0],"skipIndex":0,"section_code":"gallery","featured_images":"4463857,4455611,4408428,4396135,4396132","id":257811,"singleSection":false});				  						galleries[255816] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Pot Pourri","link":"gallery_255816.html","maxRecords":0.0,"photoIDs":[4480060.0,4463851.0,4408479.0,4408431.0],"skipIndex":0,"section_code":"gallery","featured_images":"4480060,4463851,4408479,4408431","id":255816,"singleSection":false});				  						galleries[467389] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"The Kent Downs","link":"gallery_467389.html","maxRecords":0.0,"photoIDs":[8886767.0],"skipIndex":0,"section_code":"gallery","featured_images":8886767.0,"id":467389,"singleSection":false});				  						galleries[278151] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"The unsellables!","link":"gallery_278151.html","maxRecords":0.0,"photoIDs":[4875213.0,4875222.0,5101061.0],"skipIndex":0,"section_code":"gallery","featured_images":"5101061,4875222,4875213","id":278151,"singleSection":false});				  						galleries[437144] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Stereoscopic cards","link":"gallery_437144.html","maxRecords":0.0,"photoIDs":[8189154.0,8189160.0,8189165.0,8189176.0,8189180.0,8201662.0,8201764.0,8201795.0,8201807.0,8201810.0,8230721.0,8230731.0,8230868.0,8230878.0,8230889.0,8230899.0,8230908.0,8935221.0,8935223.0],"skipIndex":0,"section_code":"gallery","featured_images":"8935223,8935221,8230908,8230899,8230889,8230878,8230868,8230731,8230721,8201810","id":437144,"singleSection":false});				  						galleries[414048] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Stereocards to purchase","link":"gallery_414048.html","maxRecords":0.0,"photoIDs":[7634480.0,7647495.0,7647509.0,7647513.0,7647518.0,7647522.0],"skipIndex":0,"section_code":"gallery","featured_images":"7647522,7647518,7647513,7647509,7647495,7634480","id":414048,"singleSection":false});				  						galleries[255814] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Automobiles","link":"gallery_255814.html","maxRecords":0.0,"photoIDs":[4437583.0,4437587.0,4437592.0,4875092.0,4875207.0,4875272.0,4912767.0,4912769.0,4533219.0],"skipIndex":0,"section_code":"gallery","featured_images":"4912769,4912767,4875272,4875207,4875092,4533219,4437592,4437587,4437583","id":255814,"singleSection":false});				  						galleries[255798] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Romney Marsh: Monochrome","link":"gallery_255798.html","maxRecords":0.0,"photoIDs":[4463835.0,4395653.0,4395726.0],"skipIndex":0,"section_code":"gallery","featured_images":"4463835,4395726,4395653","id":255798,"singleSection":false});				  						galleries[255799] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Romney Marsh in Colour","link":"gallery_255799.html","maxRecords":0.0,"photoIDs":[4699109.0,4699115.0,5019654.0,4395768.0,4463834.0,4699101.0],"skipIndex":0,"section_code":"gallery","featured_images":"5019654,4699115,4699109,4699101,4463834,4395768","id":255799,"singleSection":false});				  						galleries[258305] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Music Makers","link":"gallery_258305.html","maxRecords":0.0,"photoIDs":[4409169.0,4455638.0,4463844.0,4455627.0,4840003.0,4840014.0],"skipIndex":0,"section_code":"gallery","featured_images":"4840014,4840003,4463844,4455638,4455627,4409169","id":258305,"singleSection":false});				  						galleries[442392] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Anaglyphs","link":"gallery_442392.html","maxRecords":0.0,"photoIDs":[8603404.0,8603406.0,8603439.0,8603445.0,8603478.0,8603498.0,8603503.0,8333731.0,8333753.0],"skipIndex":0,"section_code":"gallery","featured_images":"8603503,8603498,8603478,8603445,8603439,8603406,8603404,8333753,8333731","id":442392,"singleSection":false});				  						galleries[430533] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Scotland","link":"gallery_430533.html","maxRecords":0.0,"photoIDs":[8014005.0,8014008.0,8014011.0,8014040.0,8014049.0,8014069.0,8014088.0,8014133.0,8014155.0,8014164.0],"skipIndex":0,"section_code":"gallery","featured_images":"8014164,8014155,8014133,8014088,8014069,8014049,8014040,8014011,8014008,8014005","id":430533,"singleSection":false});				  						galleries[260408] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"The Coast","link":"gallery_260408.html","maxRecords":0.0,"photoIDs":[4699078.0,5713761.0,5713770.0,5713801.0,7647472.0,5019643.0,4699096.0,4408482.0,4687285.0,4687290.0,4687405.0,4408503.0,4408397.0,4463838.0,6909607.0,5433486.0],"skipIndex":0,"section_code":"gallery","featured_images":"7647472,6909607,5713801,5713770,5713761,5433486,5019643,4699096,4699078,4687405","id":260408,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8935223,8935221,8886767,8603503,8603498,8603478,8603445,8603439,8603406,8603404,8333753,8333731,8230908,8230899,8230889,8230878,8230868,8230731,8230721,8201810,8201807,8201795,8201764,8201662,8189180,8189176,8189165,8189160,8189154,8014164,8014155,8014133,8014088,8014069,8014049,8014040,8014011,8014008,8014005,7647522,7647518,7647513,7647509,7647495,7647483,7647479,7647472,7634480,7634089,7633911';
imageSets[3] = '8935223,8935221,8886767,8603503,8603498,8603478,8603445,8603439,8603406,8603404,8333753,8333731,8230908,8230899,8230889,8230878,8230868,8230731,8230721,8201810,8201807,8201795,8201764,8201662,8189180,8189176,8189165,8189160,8189154,8014164,8014155,8014133,8014088,8014069,8014049,8014040,8014011,8014008,8014005,7647522,7647518,7647513,7647509,7647495,7647483,7647479,7647472,7634480,7634089,7633911';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/KevDee/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/KevDee/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/KevDee/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/KevDee/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/KevDee/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/KevDee/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/KevDee/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/KevDee/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/KevDee/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/KevDee/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/KevDee/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/KevDee/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/KevDee/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/KevDee/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/KevDee/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/KevDee/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/KevDee/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/KevDee/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/KevDee/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/KevDee/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/KevDee/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/KevDee/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/KevDee/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/KevDee/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/KevDee/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/KevDee/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/KevDee/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 = 'Kevin D Harvey Images: ' + 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="updateCartValue($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
		else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
											temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm">';
			temp += '	<input type="hidden" name="item_option" value="' + item_option + '">';
			temp += '	<input type="hidden" name="site" value="KEVDEE">';
			temp += '	<input type="hidden" name="item_number" value="'+ this.id +'">';
			temp += '	<input type="hidden" name="quantity" value="1">';
						temp += '	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\'\;" onmouseout="this.className=\'button\'\;" type="Button">';
							temp += '	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';
			temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
			temp += '<div id="confirmContainer">';
			temp += '<div id="paymentConfirm">Item added to cart</div>';
			temp += '</div>';
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

