window.thumbnails = {};
															thumbnails[7599775] = clik.newPhoto({"id":7599775,"src":"BritishbyDesign_thumb.jpg","galleries_id":205575,"server_id":32,"link":"photo_7599775.html","width":130,"caption":"British by Design","height":86});
															thumbnails[7599778] = clik.newPhoto({"id":7599778,"src":"OneManandhisDog_thumb.jpg","galleries_id":205575,"server_id":32,"link":"photo_7599778.html","width":130,"caption":"One Man and his Dog","height":79});
															thumbnails[7155475] = clik.newPhoto({"id":7155475,"src":"1-IMG_9500a1_thumb.jpg","galleries_id":205575,"server_id":32,"link":"photo_7155475.html","width":130,"caption":"Red Squirrel","height":87});
															thumbnails[7155489] = clik.newPhoto({"id":7155489,"src":"Clematis31_thumb.jpg","galleries_id":205575,"server_id":32,"link":"photo_7155489.html","width":130,"caption":"Clematis 3","height":114});
															thumbnails[7155496] = clik.newPhoto({"id":7155496,"src":"Clematis41_thumb.jpg","galleries_id":205575,"server_id":32,"link":"photo_7155496.html","width":130,"caption":"Clematis 4","height":101});
															thumbnails[7155500] = clik.newPhoto({"id":7155500,"src":"Red-Leaves-on-Wall-actual-final-print-copy1-1_thumb.jpg","galleries_id":205575,"server_id":32,"link":"photo_7155500.html","width":130,"caption":"Red Leaves on Wall","height":94});
															thumbnails[7155505] = clik.newPhoto({"id":7155505,"src":"TusdcanLandscape21_thumb.jpg","galleries_id":205575,"server_id":32,"link":"photo_7155505.html","width":130,"caption":"Tuscan Landscape 2","height":85});
															thumbnails[4407334] = clik.newPhoto({"id":4407334,"src":"another-place-II_thumb.jpg","galleries_id":193807,"server_id":32,"link":"photo_4407334.html","width":130,"caption":"Another Place II","height":87});
															thumbnails[3218426] = clik.newPhoto({"id":3218426,"src":"competition-3_thumb.jpg","galleries_id":193807,"server_id":32,"link":"photo_3218426.html","width":130,"caption":"Off to war","height":131});
															thumbnails[3218862] = clik.newPhoto({"id":3218862,"src":"hay-bales-3_thumb.jpg","galleries_id":193807,"server_id":32,"link":"photo_3218862.html","width":130,"caption":"Field of Gold 2","height":70});
															thumbnails[3218876] = clik.newPhoto({"id":3218876,"src":"bluebells-3-slcc_thumb.jpg","galleries_id":193807,"server_id":32,"link":"photo_3218876.html","width":130,"caption":"Yoxall Wood","height":173});
															thumbnails[3218892] = clik.newPhoto({"id":3218892,"src":"in-motion_thumb.jpg","galleries_id":193807,"server_id":32,"link":"photo_3218892.html","width":130,"caption":"Hawkstone Park Moto X","height":151});
															thumbnails[3218939] = clik.newPhoto({"id":3218939,"src":"nicol-end_thumb.jpg","galleries_id":193807,"server_id":32,"link":"photo_3218939.html","width":130,"caption":"Dawn at Nicol End","height":87});
															thumbnails[3221485] = clik.newPhoto({"id":3221485,"src":"bluebells-4slcc_thumb.jpg","galleries_id":193807,"server_id":32,"link":"photo_3221485.html","width":130,"caption":"Bluebells","height":98});
															thumbnails[3221495] = clik.newPhoto({"id":3221495,"src":"albert-(-battle-of-nantwich_thumb.jpg","galleries_id":193807,"server_id":32,"link":"photo_3221495.html","width":130,"caption":"Battle of Nantwich 2007","height":88});
															thumbnails[3242667] = clik.newPhoto({"id":3242667,"src":"Bridge-to-Skye_thumb.jpg","galleries_id":197724,"server_id":32,"link":"photo_3242667.html","width":130,"caption":"Bridge - to - Skye","height":87});
															thumbnails[3242675] = clik.newPhoto({"id":3242675,"src":"lily-study4_thumb.jpg","galleries_id":197724,"server_id":32,"link":"photo_3242675.html","width":130,"caption":"Lily - Study4","height":87});
															thumbnails[3242690] = clik.newPhoto({"id":3242690,"src":"Loch-Lubhair_thumb.jpg","galleries_id":197724,"server_id":32,"link":"photo_3242690.html","width":130,"caption":"Loch - Lubhair","height":87});
															thumbnails[3242698] = clik.newPhoto({"id":3242698,"src":"Reflection-at-Salford-Quay_thumb.jpg","galleries_id":197724,"server_id":32,"link":"photo_3242698.html","width":130,"caption":"Reflection-at-Salford-Quay","height":196});
															thumbnails[3366580] = clik.newPhoto({"id":3366580,"src":"Greek-Wine-Seller_thumb.jpg","galleries_id":205575,"server_id":32,"link":"photo_3366580.html","width":130,"caption":"Greek Wine Seller","height":91});
															thumbnails[3366589] = clik.newPhoto({"id":3366589,"src":"Lakesland-Reflection_thumb.jpg","galleries_id":205575,"server_id":32,"link":"photo_3366589.html","width":130,"caption":"Lakesland Reflection","height":61});
															thumbnails[3366590] = clik.newPhoto({"id":3366590,"src":"Loch-Reflections_thumb.jpg","galleries_id":205575,"server_id":32,"link":"photo_3366590.html","width":130,"caption":"Loch Reflections","height":87});
															thumbnails[3366591] = clik.newPhoto({"id":3366591,"src":"Pink-Beauty_thumb.jpg","galleries_id":205575,"server_id":32,"link":"photo_3366591.html","width":130,"caption":"Pink Beauty","height":252});
															thumbnails[3366593] = clik.newPhoto({"id":3366593,"src":"Poppy_thumb.jpg","galleries_id":205575,"server_id":32,"link":"photo_3366593.html","width":130,"caption":"Poppy","height":87});
															thumbnails[3366599] = clik.newPhoto({"id":3366599,"src":"Stone-on-Rock_thumb.jpg","galleries_id":205575,"server_id":32,"link":"photo_3366599.html","width":130,"caption":"Stone on Rock","height":87});
															thumbnails[3366601] = clik.newPhoto({"id":3366601,"src":"umbrella-impression_thumb.jpg","galleries_id":205575,"server_id":32,"link":"photo_3366601.html","width":130,"caption":"Umbrella Impression","height":87});
															thumbnails[3459546] = clik.newPhoto({"id":3459546,"src":"Rozenhoedkaai,Bruges_thumb.jpg","galleries_id":211530,"server_id":32,"link":"photo_3459546.html","width":130,"caption":"Rozenhoedkaai, Bruges","height":98});
															thumbnails[3459572] = clik.newPhoto({"id":3459572,"src":"Flowing_thumb.jpg","galleries_id":211530,"server_id":32,"link":"photo_3459572.html","width":130,"caption":"Flowing","height":98});
															thumbnails[3459580] = clik.newPhoto({"id":3459580,"src":"In the lead_thumb.jpg","galleries_id":211530,"server_id":32,"link":"photo_3459580.html","width":130,"caption":"In the lead","height":98});
															thumbnails[3459582] = clik.newPhoto({"id":3459582,"src":"Satay Man _thumb.jpg","galleries_id":211530,"server_id":32,"link":"photo_3459582.html","width":130,"caption":"Satay Man","height":173});
															thumbnails[3459586] = clik.newPhoto({"id":3459586,"src":"The Birdman_thumb.jpg","galleries_id":211530,"server_id":32,"link":"photo_3459586.html","width":130,"caption":"The Bird Man","height":98});
															thumbnails[3502822] = clik.newPhoto({"id":3502822,"src":"04-10-09_DM2_49_thumb.jpg","galleries_id":214285,"server_id":32,"link":"photo_3502822.html","width":130,"caption":"Sidecar","height":87});
															thumbnails[3502825] = clik.newPhoto({"id":3502825,"src":"20110410_0672_thumb.jpg","galleries_id":214285,"server_id":32,"link":"photo_3502825.html","width":130,"caption":"Millstones","height":87});
															thumbnails[3502827] = clik.newPhoto({"id":3502827,"src":"Ballarinas_thumb.jpg","galleries_id":214285,"server_id":32,"link":"photo_3502827.html","width":130,"caption":"Ballarinas","height":194});
															thumbnails[3502830] = clik.newPhoto({"id":3502830,"src":"Handspring_thumb.jpg","galleries_id":214285,"server_id":32,"link":"photo_3502830.html","width":130,"caption":"Handspring","height":46});
															thumbnails[3502834] = clik.newPhoto({"id":3502834,"src":"Portland_Bill_thumb.jpg","galleries_id":214285,"server_id":32,"link":"photo_3502834.html","width":130,"caption":"Portland Bill","height":87});
															thumbnails[3502836] = clik.newPhoto({"id":3502836,"src":"20110410_0703_thumb.jpg","galleries_id":214285,"server_id":32,"link":"photo_3502836.html","width":130,"caption":"Climers Rest","height":195});
															thumbnails[3502838] = clik.newPhoto({"id":3502838,"src":"IMG_3301_Mist_thumb.jpg","galleries_id":214285,"server_id":32,"link":"photo_3502838.html","width":130,"caption":"Mist","height":195});
															thumbnails[3502839] = clik.newPhoto({"id":3502839,"src":"IMG_9532_thumb.jpg","galleries_id":214285,"server_id":32,"link":"photo_3502839.html","width":130,"caption":"Victory Celebration","height":185});
															thumbnails[3502916] = clik.newPhoto({"id":3502916,"src":"04-10-09_DM2_72_thumb.jpg","galleries_id":214285,"server_id":32,"link":"photo_3502916.html","width":130,"caption":"Acceleration","height":87});
															thumbnails[3502922] = clik.newPhoto({"id":3502922,"src":"2_Misty_Forest_thumb.jpg","galleries_id":214285,"server_id":32,"link":"photo_3502922.html","width":130,"caption":"Misty_Forest","height":87});
															thumbnails[3502930] = clik.newPhoto({"id":3502930,"src":"20110410_0749_thumb.jpg","galleries_id":214285,"server_id":32,"link":"photo_3502930.html","width":130,"caption":"Top Of The Ridge","height":67});
															thumbnails[3502939] = clik.newPhoto({"id":3502939,"src":"IMG_1396_thumb.jpg","galleries_id":214285,"server_id":32,"link":"photo_3502939.html","width":130,"caption":"Crab Apples","height":87});
															thumbnails[3502940] = clik.newPhoto({"id":3502940,"src":"Crossing_thumb.jpg","galleries_id":214285,"server_id":32,"link":"photo_3502940.html","width":130,"caption":"Trevor Aqueduct","height":195});
															thumbnails[3502941] = clik.newPhoto({"id":3502941,"src":"IMG_9285_thumb.jpg","galleries_id":214285,"server_id":32,"link":"photo_3502941.html","width":130,"caption":"Yellow Speed 2","height":87});
															thumbnails[3503162] = clik.newPhoto({"id":3503162,"src":"DSC_0215T-copy_thumb.jpg","galleries_id":214286,"server_id":32,"link":"photo_3503162.html","width":130,"caption":"Amarillis","height":105});
															thumbnails[3503168] = clik.newPhoto({"id":3503168,"src":"P1000048T-copy_thumb.jpg","galleries_id":214286,"server_id":32,"link":"photo_3503168.html","width":130,"caption":"Orchid","height":185});
															thumbnails[3503171] = clik.newPhoto({"id":3503171,"src":"P1000466T-copy_thumb.jpg","galleries_id":214286,"server_id":32,"link":"photo_3503171.html","width":130,"caption":"Contemplation","height":192});
															thumbnails[3503174] = clik.newPhoto({"id":3503174,"src":"P1000521T-copy_thumb.jpg","galleries_id":214286,"server_id":32,"link":"photo_3503174.html","width":130,"caption":"Ancient and Modern","height":70});
															thumbnails[3503176] = clik.newPhoto({"id":3503176,"src":"P1010055T_thumb.jpg","galleries_id":214286,"server_id":32,"link":"photo_3503176.html","width":130,"caption":"The Crooked Doorway","height":205});
															thumbnails[3503177] = clik.newPhoto({"id":3503177,"src":"P1010207Tcopy_thumb.jpg","galleries_id":214286,"server_id":32,"link":"photo_3503177.html","width":130,"caption":"Summertime","height":104});
															thumbnails[3505647] = clik.newPhoto({"id":3505647,"src":"20110306_01391_thumb.jpg","galleries_id":214285,"server_id":32,"link":"photo_3505647.html","width":130,"caption":"Doorway","height":195});
															thumbnails[3505649] = clik.newPhoto({"id":3505649,"src":"20110306_0043_thumb.jpg","galleries_id":214285,"server_id":32,"link":"photo_3505649.html","width":130,"caption":"Museum Wall","height":87});
															thumbnails[3668262] = clik.newPhoto({"id":3668262,"src":"b-w-watera_thumb.jpg","galleries_id":224019,"server_id":32,"link":"photo_3668262.html","width":130,"caption":"B & W Water","height":87});
															thumbnails[3668267] = clik.newPhoto({"id":3668267,"src":"butterflya_thumb.jpg","galleries_id":224019,"server_id":32,"link":"photo_3668267.html","width":130,"caption":"Butterfly","height":87});
															thumbnails[3668320] = clik.newPhoto({"id":3668320,"src":"gateway-to-the-carribeana_thumb.jpg","galleries_id":224019,"server_id":32,"link":"photo_3668320.html","width":130,"caption":"Gateway to the Carribean","height":195});
															thumbnails[3668357] = clik.newPhoto({"id":3668357,"src":"going-homea_thumb.jpg","galleries_id":224019,"server_id":32,"link":"photo_3668357.html","width":130,"caption":"Going Home","height":98});
															thumbnails[3668359] = clik.newPhoto({"id":3668359,"src":"half-open-poppya_thumb.jpg","galleries_id":224019,"server_id":32,"link":"photo_3668359.html","width":130,"caption":"Half Open Poppy","height":87});
															thumbnails[3668361] = clik.newPhoto({"id":3668361,"src":"hover-flya_thumb.jpg","galleries_id":224019,"server_id":32,"link":"photo_3668361.html","width":130,"caption":"Hover Fly","height":87});
															thumbnails[3668362] = clik.newPhoto({"id":3668362,"src":"isle-of-wight-sun-seta_thumb.jpg","galleries_id":224019,"server_id":32,"link":"photo_3668362.html","width":130,"caption":"Isle of Wight Sun Set","height":194});
															thumbnails[3668365] = clik.newPhoto({"id":3668365,"src":"last-of-the-suna_thumb.jpg","galleries_id":224019,"server_id":32,"link":"photo_3668365.html","width":130,"caption":"Last of the Sun","height":173});
															thumbnails[3668368] = clik.newPhoto({"id":3668368,"src":"old-boat-berwick-on-tweeda_thumb.jpg","galleries_id":224019,"server_id":32,"link":"photo_3668368.html","width":130,"caption":"Old Boat - Berwick on Tweed","height":82});
															thumbnails[3668370] = clik.newPhoto({"id":3668370,"src":"pnt-du-normandya_thumb.jpg","galleries_id":224019,"server_id":32,"link":"photo_3668370.html","width":130,"caption":"Pnt Du Normandy","height":159});
															thumbnails[3668373] = clik.newPhoto({"id":3668373,"src":"poppy-buda_thumb.jpg","galleries_id":224019,"server_id":32,"link":"photo_3668373.html","width":130,"caption":"Poppy Bud","height":87});
															thumbnails[3668377] = clik.newPhoto({"id":3668377,"src":"port-at-st-luciaa_thumb.jpg","galleries_id":224019,"server_id":32,"link":"photo_3668377.html","width":130,"caption":"Port at St Lucia","height":142});
															thumbnails[3668379] = clik.newPhoto({"id":3668379,"src":"rosiea_thumb.jpg","galleries_id":224019,"server_id":32,"link":"photo_3668379.html","width":130,"caption":"Rosie","height":173});
															thumbnails[3668382] = clik.newPhoto({"id":3668382,"src":"still-watersa_thumb.jpg","galleries_id":224019,"server_id":32,"link":"photo_3668382.html","width":130,"caption":"Still Waters","height":87});
															thumbnails[3668390] = clik.newPhoto({"id":3668390,"src":"waiting-for-the-suna_thumb.jpg","galleries_id":224019,"server_id":32,"link":"photo_3668390.html","width":130,"caption":"Waiting for the Sun","height":195});
															thumbnails[3668416] = clik.newPhoto({"id":3668416,"src":"watendlatha_thumb.jpg","galleries_id":224019,"server_id":32,"link":"photo_3668416.html","width":130,"caption":"Watendlath","height":87});
															thumbnails[3668418] = clik.newPhoto({"id":3668418,"src":"white-flowersa_thumb.jpg","galleries_id":224019,"server_id":32,"link":"photo_3668418.html","width":130,"caption":"White Flowers","height":90});
															thumbnails[4407506] = clik.newPhoto({"id":4407506,"src":"burgh-island_thumb.jpg","galleries_id":193807,"server_id":32,"link":"photo_4407506.html","width":130,"caption":"Burgh Island Dawn","height":81});
															thumbnails[4407514] = clik.newPhoto({"id":4407514,"src":"1937-Cord--border_thumb.jpg","galleries_id":193807,"server_id":32,"link":"photo_4407514.html","width":130,"caption":"1937 Cord","height":79});
															thumbnails[4468564] = clik.newPhoto({"id":4468564,"src":"ready-for-war_thumb.jpg","galleries_id":193807,"server_id":32,"link":"photo_4468564.html","width":130,"caption":"Ready for War","height":94});
															thumbnails[5648364] = clik.newPhoto({"id":5648364,"src":"jimmy_thumb.jpg","galleries_id":205757,"server_id":32,"link":"photo_5648364.html","width":130,"caption":"Jimmy","height":155});
															thumbnails[5648370] = clik.newPhoto({"id":5648370,"src":"mid-air-collision_thumb.jpg","galleries_id":205757,"server_id":32,"link":"photo_5648370.html","width":130,"caption":"Mid - Air - Collision","height":167});
															thumbnails[5648381] = clik.newPhoto({"id":5648381,"src":"stafford-ABC_thumb.jpg","galleries_id":205757,"server_id":32,"link":"photo_5648381.html","width":130,"caption":" Stafford - A.B.C","height":195});
															thumbnails[5648387] = clik.newPhoto({"id":5648387,"src":"the-chapel_thumb.jpg","galleries_id":205757,"server_id":32,"link":"photo_5648387.html","width":130,"caption":"The Chapel","height":87});
															thumbnails[5648395] = clik.newPhoto({"id":5648395,"src":"under-thw-bridge_thumb.jpg","galleries_id":205757,"server_id":32,"link":"photo_5648395.html","width":130,"caption":"Under The Bridge","height":87});
															thumbnails[6684046] = clik.newPhoto({"id":6684046,"src":"red-arrows-1_thumb.jpg","galleries_id":193807,"server_id":32,"link":"photo_6684046.html","width":130,"caption":"Red, white and blue","height":130});
															thumbnails[7797359] = clik.newPhoto({"id":7797359,"src":"IMG_1415-1_thumb.JPG","galleries_id":193807,"server_id":32,"link":"photo_7797359.html","width":130,"caption":"Nuggett Point Lighthouse","height":87});
															thumbnails[7797454] = clik.newPhoto({"id":7797454,"src":"IMG_5338_thumb.jpg","galleries_id":193807,"server_id":32,"link":"photo_7797454.html","width":130,"caption":"Dirt Rider","height":87});
															thumbnails[7797456] = clik.newPhoto({"id":7797456,"src":"IMG_5458-1_thumb.JPG","galleries_id":193807,"server_id":32,"link":"photo_7797456.html","width":130,"caption":"Dawn at Dunstanburgh Castle","height":88});
															thumbnails[7797462] = clik.newPhoto({"id":7797462,"src":"IMG_7597-1_thumb.JPG","galleries_id":193807,"server_id":32,"link":"photo_7797462.html","width":130,"caption":"Back Street Boys","height":77});
															thumbnails[8492872] = clik.newPhoto({"id":8492872,"src":"Memories_thumb.jpg","galleries_id":193808,"server_id":32,"link":"photo_8492872.html","width":130,"caption":"Memories","height":85});
															thumbnails[8492891] = clik.newPhoto({"id":8492891,"src":"Fuchsia_thumb.jpg","galleries_id":193808,"server_id":32,"link":"photo_8492891.html","width":130,"caption":"Fushia","height":133});
															thumbnails[8492893] = clik.newPhoto({"id":8492893,"src":"Evening_In_Whitby_thumb.jpg","galleries_id":193808,"server_id":32,"link":"photo_8492893.html","width":130,"caption":"An Evening In Whitby","height":61});
															thumbnails[8492896] = clik.newPhoto({"id":8492896,"src":"Blue_Tit_thumb.jpg","galleries_id":193808,"server_id":32,"link":"photo_8492896.html","width":130,"caption":"Blue Tit","height":158});
															thumbnails[8492901] = clik.newPhoto({"id":8492901,"src":"Railway_Enthusiast_thumb.JPG","galleries_id":193808,"server_id":32,"link":"photo_8492901.html","width":130,"caption":"Railway Enthusiast","height":189});
															thumbnails[8982833] = clik.newPhoto({"id":8982833,"src":"BeachHuts_-_Copy_thumb.jpg","galleries_id":205575,"server_id":32,"link":"photo_8982833.html","width":130,"caption":"Beach Huts","height":52});
															thumbnails[8982836] = clik.newPhoto({"id":8982836,"src":"ChaseTreesinAutumn_-_Copy_thumb.jpg","galleries_id":205575,"server_id":32,"link":"photo_8982836.html","width":130,"caption":"Chase Trees in Autumn","height":87});
															thumbnails[8982839] = clik.newPhoto({"id":8982839,"src":"FrozenCanalLockMilford_-_Copy_thumb.jpg","galleries_id":205575,"server_id":32,"link":"photo_8982839.html","width":130,"caption":"Frozen Canal Lock Milford","height":72});
															thumbnails[8982843] = clik.newPhoto({"id":8982843,"src":"FrozenCanalMilford_-_Copy_thumb.jpg","galleries_id":205575,"server_id":32,"link":"photo_8982843.html","width":130,"caption":"Frozen Canal Milford","height":83});
															thumbnails[8982852] = clik.newPhoto({"id":8982852,"src":"MillandCottageRiverAnt_-_Copy_thumb.jpg","galleries_id":205575,"server_id":32,"link":"photo_8982852.html","width":130,"caption":"Mill and Cottage River Ant","height":87});
															thumbnails[8982856] = clik.newPhoto({"id":8982856,"src":"MorningLightonPineTreesCannockChase_-_Copy_thumb.jpg","galleries_id":205575,"server_id":32,"link":"photo_8982856.html","width":130,"caption":"Morning Light on Pine Trees Cannock Chase","height":87});
															thumbnails[8982860] = clik.newPhoto({"id":8982860,"src":"PoppyscapeImpression_-_Copy_thumb.jpg","galleries_id":205575,"server_id":32,"link":"photo_8982860.html","width":130,"caption":"Poppyscape Impression","height":197});
															thumbnails[8982863] = clik.newPhoto({"id":8982863,"src":"SilverBirchesonCannockChase_-_Copy_thumb.jpg","galleries_id":205575,"server_id":32,"link":"photo_8982863.html","width":130,"caption":"Silver Birches on Cannock Chase","height":87});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[205757] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Alan Preston","link":"gallery_205757.html","maxRecords":0.0,"photoIDs":[5648364.0,5648370.0,5648381.0,5648387.0,5648395.0],"skipIndex":0,"section_code":"gallery","featured_images":"5648395,5648387,5648381,5648370,5648364","id":205757,"singleSection":false});				  						galleries[211530] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Andy Bridge","link":"gallery_211530.html","maxRecords":0.0,"photoIDs":[3459546.0,3459572.0,3459580.0,3459582.0,3459586.0],"skipIndex":0,"section_code":"gallery","featured_images":"3459586,3459582,3459580,3459572,3459546","id":211530,"singleSection":false});				  						galleries[214285] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Dave Batho","link":"gallery_214285.html","maxRecords":0.0,"photoIDs":[3502822.0,3502825.0,3502827.0,3502830.0,3502834.0,3502836.0,3502838.0,3502839.0,3502916.0,3502922.0,3502930.0,3502939.0,3502940.0,3502941.0,3505647.0,3505649.0],"skipIndex":0,"section_code":"gallery","featured_images":"3505649,3505647,3502941,3502940,3502939,3502930,3502922,3502916,3502839,3502838","id":214285,"singleSection":false});				  						galleries[214286] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Joy Miller","link":"gallery_214286.html","maxRecords":0.0,"photoIDs":[3503162.0,3503168.0,3503171.0,3503174.0,3503176.0,3503177.0],"skipIndex":0,"section_code":"gallery","featured_images":"3503177,3503176,3503174,3503171,3503168,3503162","id":214286,"singleSection":false});				  						galleries[224019] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Julie Evans","link":"gallery_224019.html","maxRecords":0.0,"photoIDs":[3668262.0,3668267.0,3668320.0,3668357.0,3668359.0,3668361.0,3668362.0,3668365.0,3668368.0,3668370.0,3668373.0,3668377.0,3668379.0,3668382.0,3668390.0,3668416.0,3668418.0],"skipIndex":0,"section_code":"gallery","featured_images":"3668418,3668416,3668390,3668382,3668379,3668377,3668373,3668370,3668368,3668365","id":224019,"singleSection":false});				  						galleries[193807] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Graham Argent, CPAGB","link":"gallery_193807.html","maxRecords":0.0,"photoIDs":[4407334.0,3218426.0,3218862.0,3218876.0,3218892.0,3218939.0,3221485.0,3221495.0,4407506.0,4407514.0,4468564.0,6684046.0,7797359.0,7797454.0,7797456.0,7797462.0],"skipIndex":0,"section_code":"gallery","featured_images":"7797462,7797456,7797454,7797359,6684046,4468564,4407514,4407506,4407334,3221495","id":193807,"singleSection":false});				  						galleries[197724] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Radu Handoca","link":"gallery_197724.html","maxRecords":0.0,"photoIDs":[3242667.0,3242675.0,3242690.0,3242698.0],"skipIndex":0,"section_code":"gallery","featured_images":"3242698,3242690,3242675,3242667","id":197724,"singleSection":false});				  						galleries[193808] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"John Shipley","link":"gallery_193808.html","maxRecords":0.0,"photoIDs":[8492872.0,8492891.0,8492893.0,8492896.0,8492901.0],"skipIndex":0,"section_code":"gallery","featured_images":"8492901,8492896,8492893,8492891,8492872","id":193808,"singleSection":false});				  						galleries[205575] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Tony Winfield","link":"gallery_205575.html","maxRecords":0.0,"photoIDs":[7599775.0,7599778.0,7155475.0,7155489.0,7155496.0,7155500.0,7155505.0,3366580.0,3366589.0,3366590.0,3366591.0,3366593.0,3366599.0,3366601.0,8982833.0,8982836.0,8982839.0,8982843.0,8982852.0,8982856.0,8982860.0,8982863.0],"skipIndex":0,"section_code":"gallery","featured_images":"8982863,8982860,8982856,8982852,8982843,8982839,8982836,8982833,7599778,7599775","id":205575,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8982863,8982860,8982856,8982852,8982843,8982839,8982836,8982833,8492901,8492896,8492893,8492891,8492872,7797462,7797456,7797454,7797359,7599778,7599775,7155505,7155500,7155496,7155489,7155475,6684046,5648395,5648387,5648381,5648370,5648364,4468564,4407514,4407506,4407334,3668418,3668416,3668390,3668382,3668379,3668377,3668373,3668370,3668368,3668365,3668362,3668361,3668359,3668357,3668320,3668267,3668262,3505649,3505647,3503177,3503176,3503174,3503171,3503168,3503162,3502941,3502940,3502939,3502930,3502922,3502916,3502839,3502838,3502836,3502834,3502830,3502827,3502825,3502822,3459586,3459582,3459580,3459572,3459546,3366601,3366599,3366593,3366591,3366590,3366589,3366580,3242698,3242690,3242675,3242667,3221495,3221485,3218939,3218892,3218876,3218862,3218426';
imageSets[3] = '8982863,8982860,8982856,8982852,8982843,8982839,8982836,8982833,8492901,8492896,8492893,8492891,8492872,7797462,7797456,7797454,7797359,7599778,7599775,7155505,7155500,7155496,7155489,7155475,6684046,5648395,5648387,5648381,5648370,5648364,4468564,4407514,4407506,4407334,3668418,3668416,3668390,3668382,3668379,3668377,3668373,3668370,3668368,3668365,3668362,3668361,3668359,3668357,3668320,3668267';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/gcattley/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/gcattley/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/gcattley/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/gcattley/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/gcattley/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/gcattley/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/gcattley/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/gcattley/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/gcattley/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/gcattley/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/gcattley/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/gcattley/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/gcattley/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/gcattley/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/gcattley/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/gcattley/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/gcattley/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/gcattley/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/gcattley/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/gcattley/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/gcattley/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/gcattley/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/gcattley/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/gcattley/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/gcattley/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/gcattley/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/gcattley/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 = 'St Leonards Camera Club: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else {
		
	}
	if (this.item_price !== '') {
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

