window.thumbnails = {};
															thumbnails[5610884] = clik.newPhoto({"id":5610884,"src":"Cherly_England__Turkish_bakers_web_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Turkish Bakers","height":163});
															thumbnails[5610891] = clik.newPhoto({"id":5610891,"src":"Cheryl_England_One_in_a_Million_web_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"One in a Million","height":78});
															thumbnails[5610887] = clik.newPhoto({"id":5610887,"src":"Cheryl_England_footsteps_web_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Footsteps","height":92});
															thumbnails[7165096] = clik.newPhoto({"id":7165096,"src":"DSC_4910_web_thumb.jpg","galleries_id":387108,"server_id":5,"link":"photo_7165096.html","width":130,"caption":"","height":86});
															thumbnails[7165099] = clik.newPhoto({"id":7165099,"src":"DSC_6830_web_thumb.jpg","galleries_id":387108,"server_id":5,"link":"photo_7165099.html","width":130,"caption":"","height":195});
															thumbnails[7165172] = clik.newPhoto({"id":7165172,"src":"PC150044-web_thumb.jpg","galleries_id":387108,"server_id":5,"link":"photo_7165172.html","width":130,"caption":"","height":171});
															thumbnails[7165174] = clik.newPhoto({"id":7165174,"src":"DSC_8677_web_thumb.jpg","galleries_id":387108,"server_id":5,"link":"photo_7165174.html","width":130,"caption":"","height":86});
															thumbnails[7165176] = clik.newPhoto({"id":7165176,"src":"DSC_9246_web_thumb.jpg","galleries_id":387108,"server_id":5,"link":"photo_7165176.html","width":130,"caption":"","height":195});
															thumbnails[6828211] = clik.newPhoto({"id":6828211,"src":"High-Jinx_edited-1_thumb.jpg","galleries_id":299019,"server_id":5,"link":"photo_6828211.html","width":130,"caption":"High Jinx","height":94});
															thumbnails[7165101] = clik.newPhoto({"id":7165101,"src":"pano---Angkor-Thom_web_thumb.jpg","galleries_id":387108,"server_id":5,"link":"photo_7165101.html","width":130,"caption":"","height":41});
															thumbnails[6461420] = clik.newPhoto({"id":6461420,"src":"Brewery-Front-web_thumb.jpg","galleries_id":356257,"server_id":5,"link":"photo_6461420.html","width":130,"caption":"Brewery Front","height":30});
															thumbnails[6461423] = clik.newPhoto({"id":6461423,"src":"Dunrunnin_thumb.gif","galleries_id":356257,"server_id":5,"link":"photo_6461423.html","width":130,"caption":"Dunrunnin","height":85});
															thumbnails[6461425] = clik.newPhoto({"id":6461425,"src":"Indian_Bike_thumb.gif","galleries_id":356257,"server_id":5,"link":"photo_6461425.html","width":130,"caption":"Indian Bike","height":85});
															thumbnails[6461426] = clik.newPhoto({"id":6461426,"src":"Knickers_thumb.gif","galleries_id":356257,"server_id":5,"link":"photo_6461426.html","width":130,"caption":"Knickers","height":85});
															thumbnails[6461428] = clik.newPhoto({"id":6461428,"src":"Wool-Shop-3-web_thumb.jpg","galleries_id":356257,"server_id":5,"link":"photo_6461428.html","width":130,"caption":"Wool Shop","height":27});
															thumbnails[6461438] = clik.newPhoto({"id":6461438,"src":"Snake-Man--Goat-web_thumb.jpg","galleries_id":356258,"server_id":5,"link":"photo_6461438.html","width":130,"caption":"Snake Man & Goat","height":82});
															thumbnails[6828251] = clik.newPhoto({"id":6828251,"src":"Quartet_edited-1_thumb.jpg","galleries_id":299019,"server_id":5,"link":"photo_6828251.html","width":130,"caption":"Quartet","height":91});
															thumbnails[5924189] = clik.newPhoto({"id":5924189,"src":"SueMoore04web_thumb.jpg","galleries_id":334350,"server_id":5,"link":"photo_5924189.html","width":130,"caption":"","height":186});
															thumbnails[6828245] = clik.newPhoto({"id":6828245,"src":"Loneliness_edited-1_thumb.jpg","galleries_id":299019,"server_id":5,"link":"photo_6828245.html","width":130,"caption":"Loneliness","height":94});
															thumbnails[5525612] = clik.newPhoto({"id":5525612,"src":"Alan_Barrow_final_bridge_1_2Web_thumb.jpg","galleries_id":312994,"server_id":5,"link":"photo_5525612.html","width":130,"caption":"Final bridge","height":87});
															thumbnails[5483998] = clik.newPhoto({"id":5483998,"src":"Steve_Mc_Gondalas_Venice_web_thumb.jpg","galleries_id":310334,"server_id":5,"link":"photo_5483998.html","width":130,"caption":"Gondalas Venice","height":43});
															thumbnails[5484003] = clik.newPhoto({"id":5484003,"src":"Steve_Mc_Habbana_Back__Street_web_thumb.jpg","galleries_id":310334,"server_id":5,"link":"photo_5484003.html","width":130,"caption":"Habbana Back Street","height":86});
															thumbnails[5472276] = clik.newPhoto({"id":5472276,"src":"Rod_S_FLESH-FLY_thumb.jpg","galleries_id":309685,"server_id":5,"link":"photo_5472276.html","width":130,"caption":"Flesh fly","height":86});
															thumbnails[5472284] = clik.newPhoto({"id":5472284,"src":"Rod_S_LION-AND-CUB_thumb.jpg","galleries_id":309685,"server_id":5,"link":"photo_5472284.html","width":130,"caption":"Lion and Cub","height":85});
															thumbnails[5472294] = clik.newPhoto({"id":5472294,"src":"Rod_S_LONG-ROAD-HOME_thumb.jpg","galleries_id":309685,"server_id":5,"link":"photo_5472294.html","width":130,"caption":"Long Road Home","height":75});
															thumbnails[5472300] = clik.newPhoto({"id":5472300,"src":"Rod_S_MIND-THE-GAP_thumb.jpg","galleries_id":309685,"server_id":5,"link":"photo_5472300.html","width":130,"caption":"Mind the Gap","height":196});
															thumbnails[5472322] = clik.newPhoto({"id":5472322,"src":"Rod_S_NUMBER-17_thumb.jpg","galleries_id":309685,"server_id":5,"link":"photo_5472322.html","width":130,"caption":"Number 17","height":87});
															thumbnails[5472326] = clik.newPhoto({"id":5472326,"src":"Rod_S_RUSH-HOUR_thumb.jpg","galleries_id":309685,"server_id":5,"link":"photo_5472326.html","width":130,"caption":"Rush Hour","height":88});
															thumbnails[5525628] = clik.newPhoto({"id":5525628,"src":"Alan_Barrow_ME_1_Web_thumb.jpg","galleries_id":312994,"server_id":5,"link":"photo_5525628.html","width":130,"caption":"Me","height":191});
															thumbnails[5463793] = clik.newPhoto({"id":5463793,"src":"Helen_LM_Bodylines_web_thumb.jpg","galleries_id":309213,"server_id":5,"link":"photo_5463793.html","width":130,"caption":"Bodylines","height":130});
															thumbnails[5463795] = clik.newPhoto({"id":5463795,"src":"Helen_LM_Oesophagus_web_thumb.jpg","galleries_id":309213,"server_id":5,"link":"photo_5463795.html","width":130,"caption":"Oesophagus","height":114});
															thumbnails[5463797] = clik.newPhoto({"id":5463797,"src":"Helen_LM_Scan_number_5_web_thumb.jpg","galleries_id":309213,"server_id":5,"link":"photo_5463797.html","width":130,"caption":"Scan Number 5","height":122});
															thumbnails[5463803] = clik.newPhoto({"id":5463803,"src":"Helen_LM_Stage_of_Enlightenment_web_thumb.jpg","galleries_id":309213,"server_id":5,"link":"photo_5463803.html","width":130,"caption":"Stage of Enlightenment","height":122});
															thumbnails[5463804] = clik.newPhoto({"id":5463804,"src":"Helen_LM_The_Photographer_web_thumb.jpg","galleries_id":309213,"server_id":5,"link":"photo_5463804.html","width":130,"caption":"The Photographer","height":122});
															thumbnails[5463801] = clik.newPhoto({"id":5463801,"src":"Helen_LM_Scenti-mental_web_thumb.jpg","galleries_id":309213,"server_id":5,"link":"photo_5463801.html","width":130,"caption":"Scenti-mental","height":181});
															thumbnails[6828221] = clik.newPhoto({"id":6828221,"src":"The-Red-Shoe_edited-1_thumb.jpg","galleries_id":299019,"server_id":5,"link":"photo_6828221.html","width":130,"caption":"The Red Shoe","height":180});
															thumbnails[6828233] = clik.newPhoto({"id":6828233,"src":"Three-into-Two_edited-1_thumb.jpg","galleries_id":299019,"server_id":5,"link":"photo_6828233.html","width":130,"caption":"Three into Two","height":94});
															thumbnails[5444172] = clik.newPhoto({"id":5444172,"src":"Ahmed_web_thumb.jpg","galleries_id":307899,"server_id":5,"link":"photo_5444172.html","width":130,"caption":"Ahmed","height":184});
															thumbnails[5372752] = clik.newPhoto({"id":5372752,"src":"DSC_3129-ed03_lighter_thumb.jpg","galleries_id":299018,"server_id":5,"link":"photo_5372752.html","width":130,"caption":"London Eye","height":87});
															thumbnails[5372745] = clik.newPhoto({"id":5372745,"src":"_DSC3263-ed01reduced_thumb.jpg","galleries_id":299018,"server_id":5,"link":"photo_5372745.html","width":130,"caption":"Garden in Winter","height":87});
															thumbnails[5458779] = clik.newPhoto({"id":5458779,"src":"Graham_Walton-Terror_Struck_web_thumb.jpg","galleries_id":308855,"server_id":5,"link":"photo_5458779.html","width":130,"caption":"Terror Struck","height":98});
															thumbnails[5444177] = clik.newPhoto({"id":5444177,"src":"Nuthatch_web_thumb.jpg","galleries_id":307899,"server_id":5,"link":"photo_5444177.html","width":130,"caption":"Nuthatch","height":139});
															thumbnails[5528986] = clik.newPhoto({"id":5528986,"src":"Ian_Hodgkiss_Road_blockers_Web_thumb.jpg","galleries_id":313240,"server_id":5,"link":"photo_5528986.html","width":130,"caption":"Road Blockers","height":74});
															thumbnails[5458776] = clik.newPhoto({"id":5458776,"src":"Graham_Walton-Moray_Shoreline_web_thumb.jpg","galleries_id":308855,"server_id":5,"link":"photo_5458776.html","width":130,"caption":"Moray Shoreline","height":98});
															thumbnails[5525652] = clik.newPhoto({"id":5525652,"src":"Alan_Barrow_tony_Web_thumb.jpg","galleries_id":312994,"server_id":5,"link":"photo_5525652.html","width":130,"caption":"Tony","height":200});
															thumbnails[5373982] = clik.newPhoto({"id":5373982,"src":"_NIK2234-ed01reduced_thumb.jpg","galleries_id":299018,"server_id":5,"link":"photo_5373982.html","width":130,"caption":"Racing Riley","height":87});
															thumbnails[5392079] = clik.newPhoto({"id":5392079,"src":"_NIK2393-ed01monotint02_web_thumb.jpg","galleries_id":299018,"server_id":5,"link":"photo_5392079.html","width":130,"caption":"Round the Hairpin","height":87});
															thumbnails[5458720] = clik.newPhoto({"id":5458720,"src":"Graham_Walton-Blacksmiths_Shop_web_thumb.jpg","galleries_id":308855,"server_id":5,"link":"photo_5458720.html","width":130,"caption":"Blacksmiths Shop","height":98});
															thumbnails[5458722] = clik.newPhoto({"id":5458722,"src":"Graham_Walton-Entrance_to_the_Mine_web_thumb.jpg","galleries_id":308855,"server_id":5,"link":"photo_5458722.html","width":130,"caption":"Entrance to the Mine","height":88});
															thumbnails[5444178] = clik.newPhoto({"id":5444178,"src":"sundown_web_thumb.jpg","galleries_id":307899,"server_id":5,"link":"photo_5444178.html","width":130,"caption":"Sundown","height":83});
															thumbnails[5372573] = clik.newPhoto({"id":5372573,"src":"Bedouins_thumb.jpg","galleries_id":302388,"server_id":5,"link":"photo_5372573.html","width":130,"caption":"Bedouins","height":86});
															thumbnails[5483988] = clik.newPhoto({"id":5483988,"src":"Steve_Mc_Camel__Dromadery_web_thumb.jpg","galleries_id":310334,"server_id":5,"link":"photo_5483988.html","width":130,"caption":"Camel Dromadery","height":86});
															thumbnails[5484012] = clik.newPhoto({"id":5484012,"src":"Steve_Mc_Tuareg_web_thumb.jpg","galleries_id":310334,"server_id":5,"link":"photo_5484012.html","width":130,"caption":"Tuareg","height":70});
															thumbnails[5444176] = clik.newPhoto({"id":5444176,"src":"Leaf_and_Grain_web_thumb.jpg","galleries_id":307899,"server_id":5,"link":"photo_5444176.html","width":130,"caption":"Leaf and Grain","height":86});
															thumbnails[5525650] = clik.newPhoto({"id":5525650,"src":"Alan_Barrow_rach_Web_thumb.jpg","galleries_id":312994,"server_id":5,"link":"photo_5525650.html","width":130,"caption":"Rach","height":193});
															thumbnails[5372623] = clik.newPhoto({"id":5372623,"src":"Girlwith_Teddy_thumb.jpg","galleries_id":302388,"server_id":5,"link":"photo_5372623.html","width":130,"caption":"Girl with Teddy","height":86});
															thumbnails[5923966] = clik.newPhoto({"id":5923966,"src":"BobMoore06_thumb.jpg","galleries_id":334349,"server_id":5,"link":"photo_5923966.html","width":130,"caption":"The Red Bed","height":87});
															thumbnails[5372670] = clik.newPhoto({"id":5372670,"src":"Top_of_the_Stairs_thumb.jpg","galleries_id":302388,"server_id":5,"link":"photo_5372670.html","width":130,"caption":"Top of the Stairs","height":86});
															thumbnails[5444175] = clik.newPhoto({"id":5444175,"src":"Goths_web_thumb.jpg","galleries_id":307899,"server_id":5,"link":"photo_5444175.html","width":130,"caption":"Goths","height":85});
															thumbnails[5528983] = clik.newPhoto({"id":5528983,"src":"Ian_Hodgkiss_Purple_and_Green_Web_thumb.jpg","galleries_id":313240,"server_id":5,"link":"photo_5528983.html","width":130,"caption":"Purple and Green","height":87});
															thumbnails[5528974] = clik.newPhoto({"id":5528974,"src":"Ian_Hodgkiss_Graffiti_Detail_Web_thumb.jpg","galleries_id":313240,"server_id":5,"link":"photo_5528974.html","width":130,"caption":"Graffiti Detail","height":87});
															thumbnails[5528970] = clik.newPhoto({"id":5528970,"src":"Ian_Hodgkiss_Garage_Facade_Web_thumb.jpg","galleries_id":313240,"server_id":5,"link":"photo_5528970.html","width":130,"caption":"Garage Facade","height":87});
															thumbnails[5528980] = clik.newPhoto({"id":5528980,"src":"Ian_Hodgkiss_Pillars_Of_The_Past_Web_thumb.jpg","galleries_id":313240,"server_id":5,"link":"photo_5528980.html","width":130,"caption":"Pillars of the Past","height":87});
															thumbnails[5372596] = clik.newPhoto({"id":5372596,"src":"Brother_and_Sister_thumb.jpg","galleries_id":302388,"server_id":5,"link":"photo_5372596.html","width":130,"caption":"Brother and Sister","height":87});
															thumbnails[5483977] = clik.newPhoto({"id":5483977,"src":"Steve_Mc_Brother__Sister_web_thumb.jpg","galleries_id":310334,"server_id":5,"link":"photo_5483977.html","width":130,"caption":"Brother & Sister","height":87});
															thumbnails[5484006] = clik.newPhoto({"id":5484006,"src":"Steve_Mc_The_Shopkeeper_thumb.jpg","galleries_id":310334,"server_id":5,"link":"photo_5484006.html","width":130,"caption":"The Shopkeeper","height":87});
															thumbnails[5372633] = clik.newPhoto({"id":5372633,"src":"GrandchildrenS_thumb.jpg","galleries_id":302388,"server_id":5,"link":"photo_5372633.html","width":130,"caption":"Grandchildren","height":87});
															thumbnails[5525611] = clik.newPhoto({"id":5525611,"src":"Alan_Barrow_BP_4165_-_Version_2Web_thumb.jpg","galleries_id":312994,"server_id":5,"link":"photo_5525611.html","width":130,"caption":"Brooke","height":195});
															thumbnails[5372638] = clik.newPhoto({"id":5372638,"src":"Lochside_winter_thumb.jpg","galleries_id":302388,"server_id":5,"link":"photo_5372638.html","width":130,"caption":"Lochside Winter","height":87});
															thumbnails[5372675] = clik.newPhoto({"id":5372675,"src":"Water_Slash_thumb.jpg","galleries_id":302388,"server_id":5,"link":"photo_5372675.html","width":130,"caption":"Water Slash","height":87});
															thumbnails[5525609] = clik.newPhoto({"id":5525609,"src":"Alan_Barrow_85E5987_1Web_thumb.jpg","galleries_id":312994,"server_id":5,"link":"photo_5525609.html","width":130,"caption":"Quad Bike","height":195});
															thumbnails[5372658] = clik.newPhoto({"id":5372658,"src":"The_Puppy_thumb.jpg","galleries_id":302388,"server_id":5,"link":"photo_5372658.html","width":130,"caption":"The Puppy","height":87});
															thumbnails[5458761] = clik.newPhoto({"id":5458761,"src":"Graham_Walton-In_Touch_With_Nature_web_thumb.jpg","galleries_id":308855,"server_id":5,"link":"photo_5458761.html","width":130,"caption":"In Touch with Nature","height":98});
															thumbnails[6461434] = clik.newPhoto({"id":6461434,"src":"Frosty-Seat-web_thumb.jpg","galleries_id":356258,"server_id":5,"link":"photo_6461434.html","width":130,"caption":"Frosty Seat","height":85});
															thumbnails[5528964] = clik.newPhoto({"id":5528964,"src":"Ian_Hodgkiss_Derwent_Water_Web_thumb.jpg","galleries_id":313240,"server_id":5,"link":"photo_5528964.html","width":130,"caption":"Derwent Water","height":87});
															thumbnails[5459079] = clik.newPhoto({"id":5459079,"src":"Trevor_D_East_meets_west_web_thumb.jpg","galleries_id":308869,"server_id":5,"link":"photo_5459079.html","width":130,"caption":"East meets West","height":88});
															thumbnails[5444174] = clik.newPhoto({"id":5444174,"src":"Autumn_Gold_web_thumb.jpg","galleries_id":307899,"server_id":5,"link":"photo_5444174.html","width":130,"caption":"Autumn Gold","height":86});
															thumbnails[5923945] = clik.newPhoto({"id":5923945,"src":"BobMoore02web_thumb.jpg","galleries_id":334349,"server_id":5,"link":"photo_5923945.html","width":130,"caption":"","height":87});
															thumbnails[5459084] = clik.newPhoto({"id":5459084,"src":"Trevor_D_Morning_Ride_web_thumb.jpg","galleries_id":308869,"server_id":5,"link":"photo_5459084.html","width":130,"caption":"Morning Ride","height":62});
															thumbnails[6461440] = clik.newPhoto({"id":6461440,"src":"Snogging-web_thumb.jpg","galleries_id":356258,"server_id":5,"link":"photo_6461440.html","width":130,"caption":"Snogging","height":86});
															thumbnails[5923962] = clik.newPhoto({"id":5923962,"src":"BobMoore04web_thumb.jpg","galleries_id":334349,"server_id":5,"link":"photo_5923962.html","width":130,"caption":"","height":88});
															thumbnails[5924185] = clik.newPhoto({"id":5924185,"src":"SueMoore02web_thumb.jpg","galleries_id":334350,"server_id":5,"link":"photo_5924185.html","width":130,"caption":"Father and Son","height":86});
															thumbnails[5923958] = clik.newPhoto({"id":5923958,"src":"BobMoore03web_thumb.jpg","galleries_id":334349,"server_id":5,"link":"photo_5923958.html","width":130,"caption":"Three Ladies","height":86});
															thumbnails[5372646] = clik.newPhoto({"id":5372646,"src":"Outside_the_Teashop_thumb.jpg","galleries_id":302388,"server_id":5,"link":"photo_5372646.html","width":130,"caption":"Outside the Teashop","height":87});
															thumbnails[5924192] = clik.newPhoto({"id":5924192,"src":"SueMoore06web_thumb.jpg","galleries_id":334350,"server_id":5,"link":"photo_5924192.html","width":130,"caption":"","height":185});
															thumbnails[5923964] = clik.newPhoto({"id":5923964,"src":"BobMoore05web_thumb.jpg","galleries_id":334349,"server_id":5,"link":"photo_5923964.html","width":130,"caption":"Farmer's Wife","height":87});
															thumbnails[5924190] = clik.newPhoto({"id":5924190,"src":"SueMoore05web_thumb.jpg","galleries_id":334350,"server_id":5,"link":"photo_5924190.html","width":130,"caption":"","height":91});
															thumbnails[5924183] = clik.newPhoto({"id":5924183,"src":"SueMoore01web_thumb.jpg","galleries_id":334350,"server_id":5,"link":"photo_5924183.html","width":130,"caption":"","height":87});
															thumbnails[6828240] = clik.newPhoto({"id":6828240,"src":"Cuban-Steel_edited-1_thumb.jpg","galleries_id":299019,"server_id":5,"link":"photo_6828240.html","width":130,"caption":"Cuban Steel","height":94});
															thumbnails[6461444] = clik.newPhoto({"id":6461444,"src":"Spring-Cottage-web_thumb.jpg","galleries_id":356258,"server_id":5,"link":"photo_6461444.html","width":130,"caption":"Spring Cottage","height":82});
															thumbnails[5459085] = clik.newPhoto({"id":5459085,"src":"Trevor_D_San_Pedro_Church_web_thumb.jpg","galleries_id":308869,"server_id":5,"link":"photo_5459085.html","width":130,"caption":"San Pedro Church","height":154});
															thumbnails[5924186] = clik.newPhoto({"id":5924186,"src":"SueMoore03web_thumb.jpg","galleries_id":334350,"server_id":5,"link":"photo_5924186.html","width":130,"caption":"","height":89});
															thumbnails[5459088] = clik.newPhoto({"id":5459088,"src":"Trevor_D_Sweet_Peas_web_thumb.jpg","galleries_id":308869,"server_id":5,"link":"photo_5459088.html","width":130,"caption":"Sweet Peas","height":127});
															thumbnails[5458781] = clik.newPhoto({"id":5458781,"src":"Graham_Walton-Tide_Splash_web_thumb.jpg","galleries_id":308855,"server_id":5,"link":"photo_5458781.html","width":130,"caption":"Tide Splash","height":98});
															thumbnails[5459082] = clik.newPhoto({"id":5459082,"src":"Trevor_d_Madrid_Palace_web_thumb.jpg","galleries_id":308869,"server_id":5,"link":"photo_5459082.html","width":130,"caption":"Madrid Palace","height":168});
															thumbnails[5459087] = clik.newPhoto({"id":5459087,"src":"Trevor_D_Sand_Lady_web_thumb.jpg","galleries_id":308869,"server_id":5,"link":"photo_5459087.html","width":130,"caption":"Sand Lady","height":84});
															thumbnails[5923967] = clik.newPhoto({"id":5923967,"src":"BobMoore_01web_thumb.jpg","galleries_id":334349,"server_id":5,"link":"photo_5923967.html","width":130,"caption":"Barber's Shop","height":86});
															thumbnails[5372598] = clik.newPhoto({"id":5372598,"src":"Contentment_thumb.jpg","galleries_id":302388,"server_id":5,"link":"photo_5372598.html","width":130,"caption":"Contentment","height":87});
															thumbnails[6461431] = clik.newPhoto({"id":6461431,"src":"French-Field-web_thumb.jpg","galleries_id":356258,"server_id":5,"link":"photo_6461431.html","width":130,"caption":"French Field","height":81});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[334349] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Bob Moore","link":"gallery_334349.html","maxRecords":0.0,"photoIDs":[5923966.0,5923945.0,5923962.0,5923958.0,5923964.0,5923967.0],"skipIndex":0,"section_code":"gallery","featured_images":"5923967,5923966,5923964,5923962,5923958,5923945","id":334349,"singleSection":false});				  						galleries[334350] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Sue Moore","link":"gallery_334350.html","maxRecords":0.0,"photoIDs":[5924189.0,5924185.0,5924192.0,5924190.0,5924183.0,5924186.0],"skipIndex":0,"section_code":"gallery","featured_images":"5924192,5924190,5924189,5924186,5924185,5924183","id":334350,"singleSection":false});				  						galleries[356257] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Andy Wharton","link":"gallery_356257.html","maxRecords":0.0,"photoIDs":[6461420.0,6461423.0,6461425.0,6461426.0,6461428.0],"skipIndex":0,"section_code":"gallery","featured_images":"6461428,6461426,6461425,6461423,6461420","id":356257,"singleSection":false});				  						galleries[356258] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Val Wharton","link":"gallery_356258.html","maxRecords":0.0,"photoIDs":[6461438.0,6461434.0,6461440.0,6461444.0,6461431.0],"skipIndex":0,"section_code":"gallery","featured_images":"6461444,6461440,6461438,6461434,6461431","id":356258,"singleSection":false});				  						galleries[302388] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"GB Cup Photos","link":"gallery_302388.html","maxRecords":0.0,"photoIDs":[5372573.0,5372623.0,5372670.0,5372596.0,5372633.0,5372638.0,5372675.0,5372658.0,5372646.0,5372598.0],"skipIndex":0,"section_code":"gallery","featured_images":"5372675,5372670,5372658,5372646,5372638,5372633,5372623,5372598,5372596,5372573","id":302388,"singleSection":false});				  						galleries[299019] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Rob Bracher ","link":"gallery_299019.html","maxRecords":0.0,"photoIDs":[6828211.0,6828251.0,6828245.0,6828221.0,6828233.0,6828240.0],"skipIndex":0,"section_code":"gallery","featured_images":"6828251,6828245,6828240,6828233,6828221,6828211","id":299019,"singleSection":false});				  						galleries[307899] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Dave Venables","link":"gallery_307899.html","maxRecords":0.0,"photoIDs":[5444172.0,5444177.0,5444178.0,5444176.0,5444175.0,5444174.0],"skipIndex":0,"section_code":"gallery","featured_images":"5444178,5444177,5444176,5444175,5444174,5444172","id":307899,"singleSection":false});				  						galleries[308855] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Graham Walton","link":"gallery_308855.html","maxRecords":0.0,"photoIDs":[5458779.0,5458776.0,5458720.0,5458722.0,5458761.0,5458781.0],"skipIndex":0,"section_code":"gallery","featured_images":"5458781,5458779,5458776,5458761,5458722,5458720","id":308855,"singleSection":false});				  						galleries[308869] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Trevor Doyle","link":"gallery_308869.html","maxRecords":0.0,"photoIDs":[5459079.0,5459084.0,5459085.0,5459088.0,5459082.0,5459087.0],"skipIndex":0,"section_code":"gallery","featured_images":"5459088,5459087,5459085,5459084,5459082,5459079","id":308869,"singleSection":false});				  						galleries[309213] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Helen Lloyd-Maggs","link":"gallery_309213.html","maxRecords":0.0,"photoIDs":[5463793.0,5463795.0,5463797.0,5463803.0,5463804.0,5463801.0],"skipIndex":0,"section_code":"gallery","featured_images":"5463804,5463803,5463801,5463797,5463795,5463793","id":309213,"singleSection":false});				  						galleries[309685] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Rod Stammer","link":"gallery_309685.html","maxRecords":0.0,"photoIDs":[5472276.0,5472284.0,5472294.0,5472300.0,5472322.0,5472326.0],"skipIndex":0,"section_code":"gallery","featured_images":"5472326,5472322,5472300,5472294,5472284,5472276","id":309685,"singleSection":false});				  						galleries[310334] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Stephen McDonald","link":"gallery_310334.html","maxRecords":0.0,"photoIDs":[5483998.0,5484003.0,5483988.0,5484012.0,5483977.0,5484006.0],"skipIndex":0,"section_code":"gallery","featured_images":"5484012,5484006,5484003,5483998,5483988,5483977","id":310334,"singleSection":false});				  						galleries[312994] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Alan Barrow","link":"gallery_312994.html","maxRecords":0.0,"photoIDs":[5525612.0,5525628.0,5525652.0,5525650.0,5525611.0,5525609.0],"skipIndex":0,"section_code":"gallery","featured_images":"5525652,5525650,5525628,5525612,5525611,5525609","id":312994,"singleSection":false});				  						galleries[313240] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Ian Hodgkiss","link":"gallery_313240.html","maxRecords":0.0,"photoIDs":[5528986.0,5528983.0,5528974.0,5528970.0,5528980.0,5528964.0],"skipIndex":0,"section_code":"gallery","featured_images":"5528986,5528983,5528980,5528974,5528970,5528964","id":313240,"singleSection":false});				  						galleries[387108] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Richard Atkinson","link":"gallery_387108.html","maxRecords":0.0,"photoIDs":[7165096.0,7165099.0,7165172.0,7165174.0,7165176.0,7165101.0],"skipIndex":0,"section_code":"gallery","featured_images":"7165176,7165174,7165172,7165101,7165099,7165096","id":387108,"singleSection":false});				  						galleries[299018] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Jim Hiscox","link":"gallery_299018.html","maxRecords":0.0,"photoIDs":[5372752.0,5372745.0,5373982.0,5392079.0],"skipIndex":0,"section_code":"gallery","featured_images":"5392079,5373982,5372752,5372745","id":299018,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '7165176,7165174,7165172,7165101,7165099,7165096';
imageSets[2] = '7165176,7165174,7165172,7165101,7165099,7165096';
imageSets[3] = '7165176,7165174,7165172,7165101,7165099,7165096,6828251,6828245,6828240,6828233,6828221,6828211,6461444,6461440,6461438,6461434,6461431,6461428,6461426,6461425,6461423,6461420,5924192,5924190,5924189,5924186,5924185,5924183,5923967,5923966,5923964,5923962,5923958,5923945,5610891,5610887,5610884,5528986,5528983,5528980,5528974,5528970,5528964,5525652,5525650,5525628,5525612,5525611,5525609,5484012';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/jimbo10/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/jimbo10/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/jimbo10/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/jimbo10/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/jimbo10/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/jimbo10/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/jimbo10/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/jimbo10/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/jimbo10/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/jimbo10/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/jimbo10/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/jimbo10/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/jimbo10/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/jimbo10/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/jimbo10/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/jimbo10/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/jimbo10/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/jimbo10/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/jimbo10/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/jimbo10/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/jimbo10/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/jimbo10/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/jimbo10/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/jimbo10/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/jimbo10/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/jimbo10/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/jimbo10/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 = 'Arden Photo Group: ' + 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;
	}
}

			

