window.thumbnails = {};
															thumbnails[4920579] = clik.newPhoto({"id":4920579,"src":"Avenue_of_trees_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Avenue of Trees","height":90});
															thumbnails[4926897] = clik.newPhoto({"id":4926897,"src":"Gunmetal__Gold_xmas_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Gunmetal & Gold Xmas Tree","height":130});
															thumbnails[4926914] = clik.newPhoto({"id":4926914,"src":"Silver__Red_xmas_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Silver & Red Xmas Tree","height":130});
															thumbnails[5557436] = clik.newPhoto({"id":5557436,"src":"Horizon_light_1_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Horizon Light 1","height":130});
															thumbnails[5557437] = clik.newPhoto({"id":5557437,"src":"Horizon_light_2_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Horizon Light 2","height":130});
															thumbnails[5557442] = clik.newPhoto({"id":5557442,"src":"Horizon_light_3_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Horizon Light 3","height":130});
															thumbnails[5557444] = clik.newPhoto({"id":5557444,"src":"Horizon_light_4_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Horizon Light 4","height":130});
															thumbnails[5557488] = clik.newPhoto({"id":5557488,"src":"Copy_1_of_IMG_0023_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Laser \"Horizon\" Installation","height":87});
															thumbnails[5557489] = clik.newPhoto({"id":5557489,"src":"Copy_1_of_IMG_0143_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Laser \"Horizon\" Installation","height":87});
															thumbnails[5557496] = clik.newPhoto({"id":5557496,"src":"Copy_1_of_IMG_0026_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Laser \"Horizon\" Installation","height":87});
															thumbnails[5557583] = clik.newPhoto({"id":5557583,"src":"Copy_1_of_IMG_0146_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Laser \"Horizon\" Installation","height":87});
															thumbnails[5624241] = clik.newPhoto({"id":5624241,"src":"Liz_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Liz James","height":228});
															thumbnails[5941662] = clik.newPhoto({"id":5941662,"src":"Liz_James_studio_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"The Studio","height":98});
															thumbnails[4914961] = clik.newPhoto({"id":4914961,"src":"01_05_092_thumb.jpg","galleries_id":280348,"server_id":18,"link":"photo_4914961.html","width":130,"caption":"Estuary","height":256});
															thumbnails[4914965] = clik.newPhoto({"id":4914965,"src":"Splash_thumb.jpg","galleries_id":280348,"server_id":18,"link":"photo_4914965.html","width":130,"caption":"Splash","height":259});
															thumbnails[4915617] = clik.newPhoto({"id":4915617,"src":"Autumn_sunset1_thumb.jpg","galleries_id":280348,"server_id":18,"link":"photo_4915617.html","width":130,"caption":"Autumn Sunset","height":167});
															thumbnails[4915650] = clik.newPhoto({"id":4915650,"src":"Golden_Sunset1_thumb.jpg","galleries_id":280348,"server_id":18,"link":"photo_4915650.html","width":130,"caption":"Golden Sunset","height":164});
															thumbnails[4915705] = clik.newPhoto({"id":4915705,"src":"E_James1_thumb.jpg","galleries_id":280348,"server_id":18,"link":"photo_4915705.html","width":130,"caption":"Sea Triptych","height":122});
															thumbnails[4915775] = clik.newPhoto({"id":4915775,"src":"Wave_updated_thumb.jpg","galleries_id":280348,"server_id":18,"link":"photo_4915775.html","width":130,"caption":"Wave","height":528});
															thumbnails[4919330] = clik.newPhoto({"id":4919330,"src":"4_landscapes_thumb.jpg","galleries_id":280348,"server_id":18,"link":"photo_4919330.html","width":130,"caption":"Four Landscapes","height":180});
															thumbnails[4919338] = clik.newPhoto({"id":4919338,"src":"Four_Sunsets_thumb.jpg","galleries_id":395373,"server_id":18,"link":"photo_4919338.html","width":130,"caption":"Four Sunsets","height":173});
															thumbnails[4919343] = clik.newPhoto({"id":4919343,"src":"eaj-pic-044-lo-uc_thumb.jpg","galleries_id":280348,"server_id":18,"link":"photo_4919343.html","width":130,"caption":"Shimmer III","height":130});
															thumbnails[4919642] = clik.newPhoto({"id":4919642,"src":"Aqua_21_thumb.jpg","galleries_id":280348,"server_id":18,"link":"photo_4919642.html","width":130,"caption":"Aqua II","height":320});
															thumbnails[4919994] = clik.newPhoto({"id":4919994,"src":"Norfolk_Storm_1A_thumb.jpg","galleries_id":280348,"server_id":18,"link":"photo_4919994.html","width":130,"caption":"Norfolk Storm","height":281});
															thumbnails[4920460] = clik.newPhoto({"id":4920460,"src":"Autumn_tree_1_thumb.jpg","galleries_id":280348,"server_id":18,"link":"photo_4920460.html","width":130,"caption":"Autumn Tree II","height":186});
															thumbnails[4920659] = clik.newPhoto({"id":4920659,"src":"Trees_by_the_lake12_thumb.jpg","galleries_id":280348,"server_id":18,"link":"photo_4920659.html","width":130,"caption":"Lakeside","height":93});
															thumbnails[4920664] = clik.newPhoto({"id":4920664,"src":"Winter_fields_12_thumb.jpg","galleries_id":280348,"server_id":18,"link":"photo_4920664.html","width":130,"caption":"Winter Fields","height":89});
															thumbnails[4920913] = clik.newPhoto({"id":4920913,"src":"Sunrise_2_thumb.jpg","galleries_id":280348,"server_id":18,"link":"photo_4920913.html","width":130,"caption":"Sunrise 2","height":261});
															thumbnails[4920914] = clik.newPhoto({"id":4920914,"src":"Sunset_thumb.jpg","galleries_id":280348,"server_id":18,"link":"photo_4920914.html","width":130,"caption":"Sunset","height":261});
															thumbnails[4920987] = clik.newPhoto({"id":4920987,"src":"Dark_sunset_thumb.jpg","galleries_id":395373,"server_id":18,"link":"photo_4920987.html","width":130,"caption":"Morning Sunrise","height":130});
															thumbnails[4920997] = clik.newPhoto({"id":4920997,"src":"Oil_summer_sky_thumb.jpg","galleries_id":395373,"server_id":18,"link":"photo_4920997.html","width":130,"caption":"Summer Sky","height":130});
															thumbnails[4926522] = clik.newPhoto({"id":4926522,"src":"04_05_09_SOS_Blackthorpe_Barn_09_thumb.jpg","galleries_id":280348,"server_id":18,"link":"photo_4926522.html","width":130,"caption":"Crashing Wave","height":256});
															thumbnails[4927093] = clik.newPhoto({"id":4927093,"src":"River_journey2_thumb.jpg","galleries_id":280348,"server_id":18,"link":"photo_4927093.html","width":130,"caption":"River Journey Triptych","height":25});
															thumbnails[4934146] = clik.newPhoto({"id":4934146,"src":"Winter_sky12_thumb.jpg","galleries_id":280348,"server_id":18,"link":"photo_4934146.html","width":130,"caption":"Winter Sky","height":130});
															thumbnails[4934901] = clik.newPhoto({"id":4934901,"src":"Winter_sunlight_through_clouds_SOS_Blackthorpe_Barn_09_thumb.jpg","galleries_id":280348,"server_id":18,"link":"photo_4934901.html","width":130,"caption":"Winter Sunlight","height":130});
															thumbnails[4934926] = clik.newPhoto({"id":4934926,"src":"Sky_2_24_021_thumb.jpg","galleries_id":280348,"server_id":18,"link":"photo_4934926.html","width":130,"caption":"Summer Sky","height":130});
															thumbnails[4936319] = clik.newPhoto({"id":4936319,"src":"eaj-pic-022-lo-uc_thumb.jpg","galleries_id":280348,"server_id":18,"link":"photo_4936319.html","width":130,"caption":"Lapping Wave","height":96});
															thumbnails[4936612] = clik.newPhoto({"id":4936612,"src":"eaj-pic-036-lo-uc_thumb.jpg","galleries_id":280348,"server_id":18,"link":"photo_4936612.html","width":130,"caption":"Autumn Tree I","height":207});
															thumbnails[4936854] = clik.newPhoto({"id":4936854,"src":"eaj-pic-tree_thumb.jpg","galleries_id":280348,"server_id":18,"link":"photo_4936854.html","width":130,"caption":"Wild Tree","height":128});
															thumbnails[4941867] = clik.newPhoto({"id":4941867,"src":"Card_selection_medium_thumb.jpg","galleries_id":279827,"server_id":18,"link":"photo_4941867.html","width":130,"caption":"Medium Size Cards","height":79});
															thumbnails[4941883] = clik.newPhoto({"id":4941883,"src":"Card_selection_tall_thumb.jpg","galleries_id":279827,"server_id":18,"link":"photo_4941883.html","width":130,"caption":"Tall Cards","height":112});
															thumbnails[4941969] = clik.newPhoto({"id":4941969,"src":"Tidal_sold_thumb.jpg","galleries_id":280348,"server_id":18,"link":"photo_4941969.html","width":130,"caption":"Tidal","height":68});
															thumbnails[5854488] = clik.newPhoto({"id":5854488,"src":"Suffolk_Dawn_thumb.jpg","galleries_id":395373,"server_id":18,"link":"photo_5854488.html","width":130,"caption":"Dedham Dawn","height":103});
															thumbnails[5854551] = clik.newPhoto({"id":5854551,"src":"Approaching_storm_thumb.jpg","galleries_id":280348,"server_id":18,"link":"photo_5854551.html","width":130,"caption":"Advancing Storm","height":38});
															thumbnails[5854587] = clik.newPhoto({"id":5854587,"src":"Brancaster_thumb.jpg","galleries_id":280348,"server_id":18,"link":"photo_5854587.html","width":130,"caption":"Brancaster","height":245});
															thumbnails[5854692] = clik.newPhoto({"id":5854692,"src":"Glisten_1_thumb.jpg","galleries_id":280348,"server_id":18,"link":"photo_5854692.html","width":130,"caption":"Glisten I","height":252});
															thumbnails[5854696] = clik.newPhoto({"id":5854696,"src":"Glisten2_thumb.jpg","galleries_id":280348,"server_id":18,"link":"photo_5854696.html","width":130,"caption":"Glisten II","height":262});
															thumbnails[5854701] = clik.newPhoto({"id":5854701,"src":"Misty_Dawn_thumb.jpg","galleries_id":395373,"server_id":18,"link":"photo_5854701.html","width":130,"caption":"Misty Dawn","height":130});
															thumbnails[5854781] = clik.newPhoto({"id":5854781,"src":"Poppy_field_1_thumb.jpg","galleries_id":280348,"server_id":18,"link":"photo_5854781.html","width":130,"caption":"Poppy Field I","height":183});
															thumbnails[5854784] = clik.newPhoto({"id":5854784,"src":"Poppy_field_2_thumb.jpg","galleries_id":280348,"server_id":18,"link":"photo_5854784.html","width":130,"caption":"Poppy Field II","height":180});
															thumbnails[5854854] = clik.newPhoto({"id":5854854,"src":"Russet_Leaves_thumb.jpg","galleries_id":280348,"server_id":18,"link":"photo_5854854.html","width":130,"caption":"Russet Leaves","height":189});
															thumbnails[5855096] = clik.newPhoto({"id":5855096,"src":"Sheringham1_thumb.jpg","galleries_id":280348,"server_id":18,"link":"photo_5855096.html","width":130,"caption":"Sheringham I","height":130});
															thumbnails[5855246] = clik.newPhoto({"id":5855246,"src":"Rapeseed5_thumb.jpg","galleries_id":280348,"server_id":18,"link":"photo_5855246.html","width":130,"caption":"Rapeseed V","height":182});
															thumbnails[5855271] = clik.newPhoto({"id":5855271,"src":"Thetford_thumb.jpg","galleries_id":280348,"server_id":18,"link":"photo_5855271.html","width":130,"caption":"Thetford","height":190});
															thumbnails[5855314] = clik.newPhoto({"id":5855314,"src":"Twilight_Broad_thumb.jpg","galleries_id":280348,"server_id":18,"link":"photo_5855314.html","width":130,"caption":"Twilight Broad","height":40});
															thumbnails[5855324] = clik.newPhoto({"id":5855324,"src":"Vermillion_Sunset_thumb.jpg","galleries_id":280348,"server_id":18,"link":"photo_5855324.html","width":130,"caption":"Vermillion Sunset","height":130});
															thumbnails[5856203] = clik.newPhoto({"id":5856203,"src":"DSC00423_thumb.JPG","galleries_id":279827,"server_id":18,"link":"photo_5856203.html","width":130,"caption":"Fridge Magnets","height":98});
															thumbnails[5941745] = clik.newPhoto({"id":5941745,"src":"IMG_0729_thumb.jpg","galleries_id":395373,"server_id":18,"link":"photo_5941745.html","width":130,"caption":"Almost Gone","height":130});
															thumbnails[5941758] = clik.newPhoto({"id":5941758,"src":"IMG_0728_thumb.jpg","galleries_id":280348,"server_id":18,"link":"photo_5941758.html","width":130,"caption":"Almost Gone II","height":130});
															thumbnails[7786814] = clik.newPhoto({"id":7786814,"src":"Andy_and_Socks1_thumb.jpg","galleries_id":420714,"server_id":18,"link":"photo_7786814.html","width":130,"caption":"Rendlesham Walk 2010","height":375});
															thumbnails[7822625] = clik.newPhoto({"id":7822625,"src":"IMG_1573_thumb.jpg","galleries_id":420714,"server_id":18,"link":"photo_7822625.html","width":130,"caption":"Family Fun","height":335});
															thumbnails[8061045] = clik.newPhoto({"id":8061045,"src":"Perfect_day_thumb.jpg","galleries_id":420714,"server_id":18,"link":"photo_8061045.html","width":130,"caption":"Perfect Day","height":322});
															thumbnails[8061050] = clik.newPhoto({"id":8061050,"src":"Trolley_days_thumb.jpg","galleries_id":420714,"server_id":18,"link":"photo_8061050.html","width":130,"caption":"Trolley Days","height":352});
															thumbnails[7822617] = clik.newPhoto({"id":7822617,"src":"IMG_1599_thumb.jpg","galleries_id":280348,"server_id":18,"link":"photo_7822617.html","width":130,"caption":"Cromer","height":366});
															thumbnails[7822866] = clik.newPhoto({"id":7822866,"src":"IMG_1571_thumb.jpg","galleries_id":280348,"server_id":18,"link":"photo_7822866.html","width":130,"caption":"Shoreline","height":130});
															thumbnails[7822630] = clik.newPhoto({"id":7822630,"src":"IMG_1590_thumb.jpg","galleries_id":280348,"server_id":18,"link":"photo_7822630.html","width":130,"caption":"Reflection I","height":43});
															thumbnails[4941908] = clik.newPhoto({"id":4941908,"src":"Ultramarine_Comm_thumb.jpg","galleries_id":279961,"server_id":18,"link":"photo_4941908.html","width":130,"caption":"Private Client - Buckinghamshire","height":241});
															thumbnails[7908922] = clik.newPhoto({"id":7908922,"src":"Monochrome_pebbles_1_thumb.jpg","galleries_id":279819,"server_id":18,"link":"photo_7908922.html","width":130,"caption":"Monochrome Pebbles I","height":171});
															thumbnails[8250513] = clik.newPhoto({"id":8250513,"src":"Deben_1_thumb.jpg","galleries_id":279826,"server_id":18,"link":"photo_8250513.html","width":130,"caption":"Backwater I","height":39});
															thumbnails[8250533] = clik.newPhoto({"id":8250533,"src":"Deben_3_thumb.jpg","galleries_id":280348,"server_id":18,"link":"photo_8250533.html","width":130,"caption":"Deben","height":38});
															thumbnails[7784628] = clik.newPhoto({"id":7784628,"src":"Evening_Horizon_Light1_thumb.jpg","galleries_id":395373,"server_id":18,"link":"photo_7784628.html","width":130,"caption":"Horizon Light","height":32});
															thumbnails[7786723] = clik.newPhoto({"id":7786723,"src":"Summers_End_thumb.jpg","galleries_id":280348,"server_id":18,"link":"photo_7786723.html","width":130,"caption":"Summers End","height":130});
															thumbnails[7786730] = clik.newPhoto({"id":7786730,"src":"Through_the_trees_thumb.jpg","galleries_id":280348,"server_id":18,"link":"photo_7786730.html","width":130,"caption":"Through The Trees","height":130});
															thumbnails[7784677] = clik.newPhoto({"id":7784677,"src":"Frinton_11_thumb.jpg","galleries_id":280348,"server_id":18,"link":"photo_7784677.html","width":130,"caption":"Frinton I","height":366});
															thumbnails[4920380] = clik.newPhoto({"id":4920380,"src":"Commission_painting1_thumb.jpg","galleries_id":279961,"server_id":18,"link":"photo_4920380.html","width":130,"caption":"Insolvency Practitioners - Norwich","height":149});
															thumbnails[7908934] = clik.newPhoto({"id":7908934,"src":"Monochrome_pebbles_2_thumb.jpg","galleries_id":279819,"server_id":18,"link":"photo_7908934.html","width":130,"caption":"Monochrome Pebbles II","height":169});
															thumbnails[8250514] = clik.newPhoto({"id":8250514,"src":"Deben_2_thumb.jpg","galleries_id":279826,"server_id":18,"link":"photo_8250514.html","width":130,"caption":"Backwater II","height":37});
															thumbnails[4915691] = clik.newPhoto({"id":4915691,"src":"storm_thumb.jpg","galleries_id":279961,"server_id":18,"link":"photo_4915691.html","width":130,"caption":"Private Client - Bury St Edmunds","height":68});
															thumbnails[8033290] = clik.newPhoto({"id":8033290,"src":"Monochrome_pebbles_3_thumb.jpg","galleries_id":279819,"server_id":18,"link":"photo_8033290.html","width":130,"caption":"MONOCHROME PEBBLES III","height":174});
															thumbnails[8250550] = clik.newPhoto({"id":8250550,"src":"Deben_Sunset_thumb.jpg","galleries_id":279826,"server_id":18,"link":"photo_8250550.html","width":130,"caption":"Backwater Sunset","height":38});
															thumbnails[4920817] = clik.newPhoto({"id":4920817,"src":"Calm_1_thumb.jpg","galleries_id":279961,"server_id":18,"link":"photo_4920817.html","width":130,"caption":"Private Client - Bury St Edmunds","height":67});
															thumbnails[7822727] = clik.newPhoto({"id":7822727,"src":"IMG_1588_thumb.jpg","galleries_id":279826,"server_id":18,"link":"photo_7822727.html","width":130,"caption":"Reflection II","height":43});
															thumbnails[8061039] = clik.newPhoto({"id":8061039,"src":"IMG_1874_thumb.jpg","galleries_id":279819,"server_id":18,"link":"photo_8061039.html","width":130,"caption":"Incoming Tide","height":173});
															thumbnails[4939359] = clik.newPhoto({"id":4939359,"src":"Sunset_commission_thumb.jpg","galleries_id":279961,"server_id":18,"link":"photo_4939359.html","width":130,"caption":"Private Client - Norwich","height":45});
															thumbnails[7786651] = clik.newPhoto({"id":7786651,"src":"Tree_in_Autumn_thumb.jpg","galleries_id":279826,"server_id":18,"link":"photo_7786651.html","width":130,"caption":"Rendlesham I","height":185});
															thumbnails[8250557] = clik.newPhoto({"id":8250557,"src":"Summer_shore_1_thumb.jpg","galleries_id":279819,"server_id":18,"link":"photo_8250557.html","width":130,"caption":"Summer Shore I","height":97});
															thumbnails[5855327] = clik.newPhoto({"id":5855327,"src":"Wintry_Wicken_thumb.jpg","galleries_id":279826,"server_id":18,"link":"photo_5855327.html","width":130,"caption":"Wintry Wicken","height":264});
															thumbnails[8250558] = clik.newPhoto({"id":8250558,"src":"Summer_Shore_2_thumb.jpg","galleries_id":279819,"server_id":18,"link":"photo_8250558.html","width":130,"caption":"Summer Shore II","height":96});
															thumbnails[5855317] = clik.newPhoto({"id":5855317,"src":"Twilight_Tree_thumb.jpg","galleries_id":279826,"server_id":18,"link":"photo_5855317.html","width":130,"caption":"Twilight Tree","height":189});
															thumbnails[8250555] = clik.newPhoto({"id":8250555,"src":"Coming_in_thumb.jpg","galleries_id":279819,"server_id":18,"link":"photo_8250555.html","width":130,"caption":"Coming In","height":83});
															thumbnails[8061072] = clik.newPhoto({"id":8061072,"src":"Low_tide_thumb.jpg","galleries_id":279819,"server_id":18,"link":"photo_8061072.html","width":130,"caption":"Low Tide","height":44});
															thumbnails[4920550] = clik.newPhoto({"id":4920550,"src":"Autumn_tree_3_thumb.jpg","galleries_id":279826,"server_id":18,"link":"photo_4920550.html","width":130,"caption":"Autumn Tree III","height":198});
															thumbnails[7784589] = clik.newPhoto({"id":7784589,"src":"Beach_thumb.jpg","galleries_id":279819,"server_id":18,"link":"photo_7784589.html","width":130,"caption":"Beach","height":248});
															thumbnails[4920425] = clik.newPhoto({"id":4920425,"src":"Autumn_leaves_11_thumb.jpg","galleries_id":279826,"server_id":18,"link":"photo_4920425.html","width":130,"caption":"Autumn Leaves I","height":204});
															thumbnails[7784606] = clik.newPhoto({"id":7784606,"src":"Lapping_Sea1_thumb.jpg","galleries_id":279819,"server_id":18,"link":"photo_7784606.html","width":130,"caption":"Shore Edge","height":237});
															thumbnails[5854628] = clik.newPhoto({"id":5854628,"src":"Daybreak_thumb.jpg","galleries_id":279826,"server_id":18,"link":"photo_5854628.html","width":130,"caption":"Daybreak","height":188});
															thumbnails[7786662] = clik.newPhoto({"id":7786662,"src":"Beach_Sea_Sky1_thumb.jpg","galleries_id":279819,"server_id":18,"link":"photo_7786662.html","width":130,"caption":"Summer Sea","height":258});
															thumbnails[5854709] = clik.newPhoto({"id":5854709,"src":"Misty_forest_thumb.jpg","galleries_id":279826,"server_id":18,"link":"photo_5854709.html","width":130,"caption":"Woodland Mist","height":184});
															thumbnails[5854778] = clik.newPhoto({"id":5854778,"src":"Pebble_beach_thumb.jpg","galleries_id":279819,"server_id":18,"link":"photo_5854778.html","width":130,"caption":"Pebble Beach","height":262});
															thumbnails[5854542] = clik.newPhoto({"id":5854542,"src":"Aldeburgh_thumb.jpg","galleries_id":279819,"server_id":18,"link":"photo_5854542.html","width":130,"caption":"Aldeburgh","height":263});
															thumbnails[5855263] = clik.newPhoto({"id":5855263,"src":"Rapeseed6_thumb.jpg","galleries_id":279826,"server_id":18,"link":"photo_5855263.html","width":130,"caption":"Rapeseed VI","height":181});
															thumbnails[4914963] = clik.newPhoto({"id":4914963,"src":"IMG_0196_thumb.jpg","galleries_id":279819,"server_id":18,"link":"photo_4914963.html","width":130,"caption":"Jade Sea","height":267});
															thumbnails[4920580] = clik.newPhoto({"id":4920580,"src":"Distant_Forest_thumb.jpg","galleries_id":279826,"server_id":18,"link":"photo_4920580.html","width":130,"caption":"Distant Forest","height":87});
															thumbnails[4919620] = clik.newPhoto({"id":4919620,"src":"Aqua_thumb.jpg","galleries_id":279819,"server_id":18,"link":"photo_4919620.html","width":130,"caption":"Aqua","height":304});
															thumbnails[4939394] = clik.newPhoto({"id":4939394,"src":"River_diptych_thumb.jpg","galleries_id":279826,"server_id":18,"link":"photo_4939394.html","width":130,"caption":"River Diptych","height":172});
															thumbnails[4920994] = clik.newPhoto({"id":4920994,"src":"River_journey_thumb.jpg","galleries_id":279826,"server_id":18,"link":"photo_4920994.html","width":130,"caption":"River Journey","height":130});
															thumbnails[7786748] = clik.newPhoto({"id":7786748,"src":"Frinton_212_thumb.jpg","galleries_id":279819,"server_id":18,"link":"photo_7786748.html","width":130,"caption":"Frinton II","height":360});
															thumbnails[4919281] = clik.newPhoto({"id":4919281,"src":"Dusk_thumb.jpg","galleries_id":279819,"server_id":18,"link":"photo_4919281.html","width":130,"caption":"Dusk","height":123});
															thumbnails[4935668] = clik.newPhoto({"id":4935668,"src":"Square_tree_2_thumb.jpg","galleries_id":279826,"server_id":18,"link":"photo_4935668.html","width":130,"caption":"Old Tree II","height":131});
															thumbnails[4919286] = clik.newPhoto({"id":4919286,"src":"Calm_sea_thumb.jpg","galleries_id":279819,"server_id":18,"link":"photo_4919286.html","width":130,"caption":"Calm Sea","height":129});
															thumbnails[4935676] = clik.newPhoto({"id":4935676,"src":"Square_tree_31_thumb.jpg","galleries_id":279826,"server_id":18,"link":"photo_4935676.html","width":130,"caption":"Old Tree III","height":128});
															thumbnails[4919291] = clik.newPhoto({"id":4919291,"src":"Indigo_Sea_thumb.jpg","galleries_id":279819,"server_id":18,"link":"photo_4919291.html","width":130,"caption":"Indigo Sea","height":125});
															thumbnails[4919301] = clik.newPhoto({"id":4919301,"src":"Sunlight_thumb.jpg","galleries_id":279819,"server_id":18,"link":"photo_4919301.html","width":130,"caption":"Sunlight","height":124});
															thumbnails[5855143] = clik.newPhoto({"id":5855143,"src":"Sheringham2_thumb.jpg","galleries_id":279819,"server_id":18,"link":"photo_5855143.html","width":130,"caption":"Sheringham II","height":130});
															thumbnails[5855155] = clik.newPhoto({"id":5855155,"src":"Sheringham3_thumb.jpg","galleries_id":279819,"server_id":18,"link":"photo_5855155.html","width":130,"caption":"Sheringham III","height":130});
															thumbnails[5855157] = clik.newPhoto({"id":5855157,"src":"Sheringham4_thumb.jpg","galleries_id":279819,"server_id":18,"link":"photo_5855157.html","width":130,"caption":"Sheringham IV","height":130});
															thumbnails[5854595] = clik.newPhoto({"id":5854595,"src":"Cadmium_Sky_thumb.jpg","galleries_id":279819,"server_id":18,"link":"photo_5854595.html","width":130,"caption":"Cadmium Sky","height":130});
															thumbnails[5854715] = clik.newPhoto({"id":5854715,"src":"Orange_Glow_thumb.jpg","galleries_id":279819,"server_id":18,"link":"photo_5854715.html","width":130,"caption":"Orange Glow","height":130});
															thumbnails[4921002] = clik.newPhoto({"id":4921002,"src":"Holkham_bay_new_pic_thumb.jpg","galleries_id":279819,"server_id":18,"link":"photo_4921002.html","width":130,"caption":"Holkham Bay","height":130});
															thumbnails[4920828] = clik.newPhoto({"id":4920828,"src":"small_holkham_bay1_thumb.jpg","galleries_id":279819,"server_id":18,"link":"photo_4920828.html","width":130,"caption":"Holkham Bay - small","height":130});
															thumbnails[4920835] = clik.newPhoto({"id":4920835,"src":"indigo_seaShore1_thumb.jpg","galleries_id":279819,"server_id":18,"link":"photo_4920835.html","width":130,"caption":"Indigo Sea & Shore","height":130});
															thumbnails[4921080] = clik.newPhoto({"id":4921080,"src":"Shimmer_framed_thumb.jpg","galleries_id":279819,"server_id":18,"link":"photo_4921080.html","width":130,"caption":"Shimmer I","height":188});
															thumbnails[4921081] = clik.newPhoto({"id":4921081,"src":"Shimmer_unframed_thumb.jpg","galleries_id":279819,"server_id":18,"link":"photo_4921081.html","width":130,"caption":"Shimmer II","height":183});
															thumbnails[4919334] = clik.newPhoto({"id":4919334,"src":"Four_Seas_thumb.jpg","galleries_id":279819,"server_id":18,"link":"photo_4919334.html","width":130,"caption":"Four Seas","height":183});
															thumbnails[4921086] = clik.newPhoto({"id":4921086,"src":"Undulating_wave_new_pic_thumb.jpg","galleries_id":279819,"server_id":18,"link":"photo_4921086.html","width":130,"caption":"Undulating Wave","height":217});
															thumbnails[7786750] = clik.newPhoto({"id":7786750,"src":"Golden_Sand_thumb.jpg","galleries_id":279819,"server_id":18,"link":"photo_7786750.html","width":130,"caption":"Golden Sand","height":208});
															thumbnails[4921096] = clik.newPhoto({"id":4921096,"src":"Splash2_new_pic_thumb.jpg","galleries_id":279819,"server_id":18,"link":"photo_4921096.html","width":130,"caption":"Splash II","height":439});
															thumbnails[7786753] = clik.newPhoto({"id":7786753,"src":"Stones_and_Surf_thumb.jpg","galleries_id":279819,"server_id":18,"link":"photo_7786753.html","width":130,"caption":"Surf & Stones","height":213});
															thumbnails[7825851] = clik.newPhoto({"id":7825851,"src":"IMG_1575_thumb.jpg","galleries_id":279819,"server_id":18,"link":"photo_7825851.html","width":130,"caption":"Incoming Surf","height":215});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[420714] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Photo Paintings","link":"gallery_420714.html","maxRecords":0.0,"photoIDs":[7786814.0,7822625.0,8061045.0,8061050.0],"skipIndex":0,"section_code":"gallery","featured_images":"8061050,8061045,7822625,7786814","id":420714,"singleSection":false});				  						galleries[420569] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"2012 Collection Coming Soon","link":"gallery_420569.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"","id":420569,"singleSection":false});				  						galleries[279819] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"SEASCAPES","link":"gallery_279819.html","maxRecords":0.0,"photoIDs":[7908922.0,7908934.0,8033290.0,8061039.0,8250557.0,8250558.0,8250555.0,8061072.0,7784589.0,7784606.0,7786662.0,5854778.0,5854542.0,4914963.0,4919620.0,7786748.0,4919281.0,4919286.0,4919291.0,4919301.0,5855143.0,5855155.0,5855157.0,5854595.0,5854715.0,4921002.0,4920828.0,4920835.0,4921080.0,4921081.0,4919334.0,4921086.0,7786750.0,4921096.0,7786753.0,7825851.0],"skipIndex":0,"section_code":"gallery","featured_images":"7786662,7784606,7784589,5854542,4919281","id":279819,"singleSection":false});				  						galleries[279826] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"LANDSCAPES","link":"gallery_279826.html","maxRecords":0.0,"photoIDs":[8250513.0,8250514.0,8250550.0,7822727.0,7786651.0,5855327.0,5855317.0,4920550.0,4920425.0,5854628.0,5854709.0,5855263.0,4920580.0,4939394.0,4920994.0,4935668.0,4935676.0],"skipIndex":0,"section_code":"gallery","featured_images":"8250513,7786651,5855327","id":279826,"singleSection":false});				  						galleries[395373] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"SKIES","link":"gallery_395373.html","maxRecords":0.0,"photoIDs":[4919338.0,4920987.0,4920997.0,5854488.0,5854701.0,5941745.0,7784628.0],"skipIndex":0,"section_code":"gallery","featured_images":5854488.0,"id":395373,"singleSection":false});				  						galleries[279961] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Commissioned Work","link":"gallery_279961.html","maxRecords":0.0,"photoIDs":[4941908.0,4920380.0,4915691.0,4920817.0,4939359.0],"skipIndex":0,"section_code":"gallery","featured_images":4920380.0,"id":279961,"singleSection":false});				  						galleries[280348] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Sold Work","link":"gallery_280348.html","maxRecords":0.0,"photoIDs":[4914961.0,4914965.0,4915617.0,4915650.0,4915705.0,4915775.0,4919330.0,4919343.0,4919642.0,4919994.0,4920460.0,4920659.0,4920664.0,4920913.0,4920914.0,4926522.0,4927093.0,4934146.0,4934901.0,4934926.0,4936319.0,4936612.0,4936854.0,4941969.0,5854551.0,5854587.0,5854692.0,5854696.0,5854781.0,5854784.0,5854854.0,5855096.0,5855246.0,5855271.0,5855314.0,5855324.0,5941758.0,7822617.0,7822866.0,7822630.0,8250533.0,7786723.0,7786730.0,7784677.0],"skipIndex":0,"section_code":"gallery","featured_images":"7822617,5854854,5854696,5854587,4919330,4914961","id":280348,"singleSection":false});				  						galleries[279827] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Bits & Pieces","link":"gallery_279827.html","maxRecords":0.0,"photoIDs":[4941867.0,4941883.0,5856203.0],"skipIndex":0,"section_code":"gallery","featured_images":"5856203,4941867","id":279827,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '7822625,5855314,5855271,5854551,7822617,7822630,8250514,4920380,8033290,4915691,8061072';
imageSets[2] = '5856203,5854854,5854696,5854587,5854488,5557442,4941867,4926914,4919330,4914961,7822617,8250513,4920380,7786651,5855327,7784589,7784606,7786662,5854542,4919281';
imageSets[3] = '8250558';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/lizjames/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/lizjames/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/lizjames/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/lizjames/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/lizjames/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/lizjames/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/lizjames/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/lizjames/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/lizjames/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/lizjames/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/lizjames/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/lizjames/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/lizjames/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/lizjames/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/lizjames/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/lizjames/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/lizjames/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/lizjames/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/lizjames/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/lizjames/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/lizjames/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/lizjames/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/lizjames/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/lizjames/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/lizjames/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/lizjames/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/lizjames/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 = 'Elizabeth James: ' + 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>Price </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>Size </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>  </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> &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.item_price !== '') {
																		temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="art@elizabeth-james.com">';
					temp += '<input type="hidden" name="currency_code" value="GBP">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="art@elizabeth-james.com">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

