window.thumbnails = {};
															thumbnails[1469479] = clik.newPhoto({"id":1469479,"src":"Hawaii 2 sml.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Hawaii Shoreline","height":90});
															thumbnails[1469484] = clik.newPhoto({"id":1469484,"src":"Journey to Assan sml.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Nile Journey to Assan","height":90});
															thumbnails[1469498] = clik.newPhoto({"id":1469498,"src":"Pacific tiny island sml.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"pacific tiny island","height":92});
															thumbnails[3680858] = clik.newPhoto({"id":3680858,"src":"london_city_bridges_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":77,"caption":"London City Bridges","height":160});
															thumbnails[3681538] = clik.newPhoto({"id":3681538,"src":"Scottishloch_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Scottish Loch","height":97});
															thumbnails[3681551] = clik.newPhoto({"id":3681551,"src":"StPaulssunset_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"St Pauls Sunset","height":102});
															thumbnails[4826288] = clik.newPhoto({"id":4826288,"src":"Artistillustratorwriteup-1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":122,"caption":"Artist&Illustrator cover","height":160});
															thumbnails[6210235] = clik.newPhoto({"id":6210235,"src":"OrangesLemonsLondon_Churches_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Oranges and Lemons City Churches london","height":130});
															thumbnails[6210389] = clik.newPhoto({"id":6210389,"src":"Greenwich_135_x_135_mm_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Greenwich","height":130});
															thumbnails[7003781] = clik.newPhoto({"id":7003781,"src":"metalic_london_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Metalic London","height":130});
															thumbnails[7003999] = clik.newPhoto({"id":7003999,"src":"londonsquares_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"London Squares","height":108});
															thumbnails[7004007] = clik.newPhoto({"id":7004007,"src":"oranges_and_lemons_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Oranges and Lemons","height":130});
															thumbnails[7004116] = clik.newPhoto({"id":7004116,"src":"london_thames1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"London Thames 1","height":61});
															thumbnails[7004123] = clik.newPhoto({"id":7004123,"src":"Londonthames2_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"London Thames 2","height":66});
															thumbnails[7004201] = clik.newPhoto({"id":7004201,"src":"FSA_Foyer_1st_floor_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"The FSA first floor reception area<br>\r\nLondon Double","height":87});
															thumbnails[7004260] = clik.newPhoto({"id":7004260,"src":"sqsunand_o2_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":82,"caption":"Square Sun and O2","height":160});
															thumbnails[7004281] = clik.newPhoto({"id":7004281,"src":"Canary_Wharf_and_Plane_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Canary Wharf and Plane","height":130});
															thumbnails[7004344] = clik.newPhoto({"id":7004344,"src":"docklands_icon123456789_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Docklands docklands icon","height":158});
															thumbnails[7004385] = clik.newPhoto({"id":7004385,"src":"Thames_Time_Line1_thumb_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Thames Timeline","height":130});
															thumbnails[7353665] = clik.newPhoto({"id":7353665,"src":"greenwich_print_framed_50x50cms_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Greenwich","height":130});
															thumbnails[8381215] = clik.newPhoto({"id":8381215,"src":"North_Hill_Chess_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"North Hill Snow Chorleywood","height":130});
															thumbnails[3681535] = clik.newPhoto({"id":3681535,"src":"Essex_River_Scene_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Essex River Scene","height":86});
															thumbnails[6400544] = clik.newPhoto({"id":6400544,"src":"Bargepinmill_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Barge Pin Mill Suffolk ","height":89});
															thumbnails[3680780] = clik.newPhoto({"id":3680780,"src":"London_24x24cms_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"London Lines","height":130});
															thumbnails[6400602] = clik.newPhoto({"id":6400602,"src":"Daily_Mail_Boverie_St12_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":119,"caption":"Daily Mail Boverie Street, London","height":160});
															thumbnails[6400691] = clik.newPhoto({"id":6400691,"src":"London2_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"London 2","height":89});
															thumbnails[6400707] = clik.newPhoto({"id":6400707,"src":"Musicalinstruments_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Musical Instruments","height":89});
															thumbnails[6400715] = clik.newPhoto({"id":6400715,"src":"Old_Shad_Thames12_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Old Shad Thames","height":139});
															thumbnails[1469513] = clik.newPhoto({"id":1469513,"src":"The City of Londonsml.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"City of London panoramic","height":51});
															thumbnails[6400819] = clik.newPhoto({"id":6400819,"src":"StPauls_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":115,"caption":"St Pauls","height":160});
															thumbnails[1469495] = clik.newPhoto({"id":1469495,"src":"smallthameslondon.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"London Thames","height":130});
															thumbnails[4219156] = clik.newPhoto({"id":4219156,"src":"Greenwich_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Greenwich and the Discovery Ship","height":130});
															thumbnails[1469481] = clik.newPhoto({"id":1469481,"src":"lHawaii sunset sml.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Hawaii Sunset","height":92});
															thumbnails[1469500] = clik.newPhoto({"id":1469500,"src":"Paris gouache smls.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Paris","height":98});
															thumbnails[6210358] = clik.newPhoto({"id":6210358,"src":"City_of_London_thumb.jpg","galleries_id":346218,"server_id":1,"link":"photo_6210358.html","width":130,"caption":"City of London","height":130});
															thumbnails[6210364] = clik.newPhoto({"id":6210364,"src":"docklands_montage_thumb.jpg","galleries_id":346218,"server_id":1,"link":"photo_6210364.html","width":130,"caption":"Docklands Montage","height":130});
															thumbnails[6210369] = clik.newPhoto({"id":6210369,"src":"EastLondonHospitalFacades_thumb.jpg","galleries_id":346218,"server_id":1,"link":"photo_6210369.html","width":130,"caption":"East London Hospital Facades","height":130});
															thumbnails[6210508] = clik.newPhoto({"id":6210508,"src":"canarywharf02_thumb.jpg","galleries_id":346218,"server_id":1,"link":"photo_6210508.html","width":130,"caption":"Canary Wharf, Trinity Buoy and 02","height":130});
															thumbnails[8336026] = clik.newPhoto({"id":8336026,"src":"theeyelondon_thumb.jpg","galleries_id":346218,"server_id":1,"link":"photo_8336026.html","width":130,"caption":"The Eye London","height":130});
															thumbnails[8336041] = clik.newPhoto({"id":8336041,"src":"greenwichdiscovery_thumb.jpg","galleries_id":346218,"server_id":1,"link":"photo_8336041.html","width":130,"caption":"Greenwich and Discovery","height":130});
															thumbnails[8336042] = clik.newPhoto({"id":8336042,"src":"brixhamboats_F1175FBA-24E8-5EC4-4F3D9985B39EA180_thumb.jpg","galleries_id":346218,"server_id":1,"link":"photo_8336042.html","width":130,"caption":"Brixham Boats Devon","height":130});
															thumbnails[8336043] = clik.newPhoto({"id":8336043,"src":"Sarratt_Snow_thumb.jpg","galleries_id":346218,"server_id":1,"link":"photo_8336043.html","width":130,"caption":"Sarratt Snow","height":130});
															thumbnails[8830910] = clik.newPhoto({"id":8830910,"src":"Gillian_Burrows_2012_CD_Calendar_PROOF-3-1_thumb.jpg","galleries_id":346218,"server_id":1,"link":"photo_8830910.html","width":130,"caption":"2012 Gillian Burrows  CD Calendar ","height":150});
															thumbnails[6210398] = clik.newPhoto({"id":6210398,"src":"East_London_2010_thumb.jpg","galleries_id":346218,"server_id":1,"link":"photo_6210398.html","width":130,"caption":"East London 2010","height":130});
															thumbnails[6210355] = clik.newPhoto({"id":6210355,"src":"CityBridges_thumb.jpg","galleries_id":346218,"server_id":1,"link":"photo_6210355.html","width":130,"caption":"City of London Bridges","height":130});
															thumbnails[7228638] = clik.newPhoto({"id":7228638,"src":"River_chess_latimer_thumb.jpg","galleries_id":346218,"server_id":1,"link":"photo_7228638.html","width":130,"caption":"Latimer Chess River Herts","height":130});
															thumbnails[7228639] = clik.newPhoto({"id":7228639,"src":"family_walk_thumb.jpg","galleries_id":346218,"server_id":1,"link":"photo_7228639.html","width":130,"caption":"Family snow walk Hertfordshire","height":130});
															thumbnails[7228640] = clik.newPhoto({"id":7228640,"src":"Sarratt_pond_thumb.jpg","galleries_id":346218,"server_id":1,"link":"photo_7228640.html","width":130,"caption":"Sarratt Pond hertfordshire","height":130});
															thumbnails[7228641] = clik.newPhoto({"id":7228641,"src":"North_Hill__thumb.jpg","galleries_id":346218,"server_id":1,"link":"photo_7228641.html","width":130,"caption":"North Hill Chess River hertfordshire","height":130});
															thumbnails[7228642] = clik.newPhoto({"id":7228642,"src":"Chess_River_Sarratt_thumb.jpg","galleries_id":346218,"server_id":1,"link":"photo_7228642.html","width":130,"caption":"Chess River Sarratt","height":130});
															thumbnails[7228643] = clik.newPhoto({"id":7228643,"src":"merlinwoods_thumb.jpg","galleries_id":346218,"server_id":1,"link":"photo_7228643.html","width":130,"caption":"Merlin Woods Chandlers Cross","height":130});
															thumbnails[1585757] = clik.newPhoto({"id":1585757,"src":"DVD cover small.jpg","galleries_id":108406,"server_id":1,"link":"photo_1585757.html","width":119,"caption":"A Picture of East London A documentary film about this exciting and vibrant modern area.  You can purchase the DVD from Gillian.","height":160});
															thumbnails[1833160] = clik.newPhoto({"id":1833160,"src":"Rotherhythe river front_thumb.jpg","galleries_id":123325,"server_id":1,"link":"photo_1833160.html","width":130,"caption":"Rotherhythe river front","height":160});
															thumbnails[1833896] = clik.newPhoto({"id":1833896,"src":"Crown Wharf_thumb.jpg","galleries_id":123325,"server_id":1,"link":"photo_1833896.html","width":130,"caption":"Crown Wharf","height":160});
															thumbnails[1833920] = clik.newPhoto({"id":1833920,"src":"Endeavour greenwich L_thumb.jpg","galleries_id":123325,"server_id":1,"link":"photo_1833920.html","width":130,"caption":"Endeavour at Greenwich","height":160});
															thumbnails[1833992] = clik.newPhoto({"id":1833992,"src":"Prospect of whitby view l_thumb.jpg","galleries_id":123325,"server_id":1,"link":"photo_1833992.html","width":130,"caption":"Old view Prospect of Whitby","height":160});
															thumbnails[1834006] = clik.newPhoto({"id":1834006,"src":"St Saviours Wharf L_thumb.jpg","galleries_id":123325,"server_id":1,"link":"photo_1834006.html","width":130,"caption":"St saviours Wharf","height":160});
															thumbnails[1834037] = clik.newPhoto({"id":1834037,"src":"Thames estuary l_thumb.jpg","galleries_id":123325,"server_id":1,"link":"photo_1834037.html","width":130,"caption":"Thames Estuary ","height":128});
															thumbnails[1834038] = clik.newPhoto({"id":1834038,"src":"The Thames Erith l_thumb.jpg","galleries_id":123325,"server_id":1,"link":"photo_1834038.html","width":130,"caption":"The Thames at Erith","height":128});
															thumbnails[8381174] = clik.newPhoto({"id":8381174,"src":"Chess_flowing_Latimer_thumb.jpg","galleries_id":101144,"server_id":1,"link":"photo_8381174.html","width":130,"caption":"River Chess Latimer 2","height":130});
															thumbnails[8381194] = clik.newPhoto({"id":8381194,"src":"Chiltern_Bluebells_thumb.jpg","galleries_id":101144,"server_id":1,"link":"photo_8381194.html","width":130,"caption":"Chiltern Bluebells","height":130});
															thumbnails[8381207] = clik.newPhoto({"id":8381207,"src":"loudwater_herts_thumb.jpg","galleries_id":101144,"server_id":1,"link":"photo_8381207.html","width":130,"caption":"Loudwater Herts Snow","height":130});
															thumbnails[7352484] = clik.newPhoto({"id":7352484,"src":"BrixhamHarbour_thumb.jpg","galleries_id":101144,"server_id":1,"link":"photo_7352484.html","width":130,"caption":"Brixham Harbour","height":93});
															thumbnails[7472823] = clik.newPhoto({"id":7472823,"src":"Torquay_Colours_thumb.jpg","galleries_id":268569,"server_id":1,"link":"photo_7472823.html","width":130,"caption":"Torquay Colours","height":130});
															thumbnails[7957241] = clik.newPhoto({"id":7957241,"src":"shard_and_London_profiles_thumb.jpg","galleries_id":268569,"server_id":1,"link":"photo_7957241.html","width":130,"caption":"London Lines 2011","height":130});
															thumbnails[8067496] = clik.newPhoto({"id":8067496,"src":"santanacalifornianpoppiessml_thumb.jpg","galleries_id":268569,"server_id":1,"link":"photo_8067496.html","width":130,"caption":"Santana Californian Poppies","height":130});
															thumbnails[2416936] = clik.newPhoto({"id":2416936,"src":"HFC thamestimeline large_thumb.jpg","galleries_id":123377,"server_id":1,"link":"photo_2416936.html","width":130,"caption":"Thames Timeline","height":132});
															thumbnails[3539282] = clik.newPhoto({"id":3539282,"src":"2012mapLondon_thumb.jpg","galleries_id":268569,"server_id":1,"link":"photo_3539282.html","width":130,"caption":"2012 London Olympic map","height":130});
															thumbnails[7329248] = clik.newPhoto({"id":7329248,"src":"GoodringtonSandsWinter_thumb.jpg","galleries_id":101144,"server_id":1,"link":"photo_7329248.html","width":130,"caption":"Goodrington Sands Winter Devon","height":95});
															thumbnails[7352811] = clik.newPhoto({"id":7352811,"src":"Brixham_Boats_thumb.jpg","galleries_id":268569,"server_id":1,"link":"photo_7352811.html","width":130,"caption":"Brixham Boats Devon","height":105});
															thumbnails[3669088] = clik.newPhoto({"id":3669088,"src":"daynightdocklands_thumb.jpg","galleries_id":123377,"server_id":1,"link":"photo_3669088.html","width":130,"caption":"Day and Night Docklands","height":130});
															thumbnails[3669189] = clik.newPhoto({"id":3669189,"src":"Greenwich_copy_thumb.jpg","galleries_id":123377,"server_id":1,"link":"photo_3669189.html","width":130,"caption":" The Discovery Greenwich","height":130});
															thumbnails[4782407] = clik.newPhoto({"id":4782407,"src":"Canary_Wharf_in_yellow_light_thumb.jpg","galleries_id":101144,"server_id":1,"link":"photo_4782407.html","width":130,"caption":"Canary Wharf in Yellow Light","height":93});
															thumbnails[7924198] = clik.newPhoto({"id":7924198,"src":"Daytime-View-SR_thumb.jpg","galleries_id":268569,"server_id":1,"link":"photo_7924198.html","width":130,"caption":"Day Time View SR","height":130});
															thumbnails[3669247] = clik.newPhoto({"id":3669247,"src":"Docklands_and_the_World_thumb.jpg","galleries_id":123377,"server_id":1,"link":"photo_3669247.html","width":130,"caption":"Docklands and the world","height":130});
															thumbnails[4782674] = clik.newPhoto({"id":4782674,"src":"Evening_View_of_the_City_of_London_thumb.jpg","galleries_id":101144,"server_id":1,"link":"photo_4782674.html","width":130,"caption":"Evening View of the City of London","height":107});
															thumbnails[2416944] = clik.newPhoto({"id":2416944,"src":"HFCPlane CW large_thumb.jpg","galleries_id":123377,"server_id":1,"link":"photo_2416944.html","width":130,"caption":"Canary Wharf and Plane","height":130});
															thumbnails[3669502] = clik.newPhoto({"id":3669502,"src":"Thames_Timeline1_thumb.jpg","galleries_id":123377,"server_id":1,"link":"photo_3669502.html","width":130,"caption":"Thames London","height":130});
															thumbnails[3680919] = clik.newPhoto({"id":3680919,"src":"Eastlondon__thumb.jpg","galleries_id":268569,"server_id":1,"link":"photo_3680919.html","width":130,"caption":"East London","height":108});
															thumbnails[4219148] = clik.newPhoto({"id":4219148,"src":"City_of_London_tryptich_thumb.jpg","galleries_id":123377,"server_id":1,"link":"photo_4219148.html","width":130,"caption":"City of London tryptich ","height":130});
															thumbnails[1469486] = clik.newPhoto({"id":1469486,"src":"London skyline sml.jpg","galleries_id":123377,"server_id":1,"link":"photo_1469486.html","width":130,"caption":"London Skyline","height":65});
															thumbnails[4662725] = clik.newPhoto({"id":4662725,"src":"Canary_Wharf_and_TBW_61_x_61cmssq_thumb.jpg","galleries_id":123377,"server_id":1,"link":"photo_4662725.html","width":130,"caption":"DOCKLANDS","height":130});
															thumbnails[4219163] = clik.newPhoto({"id":4219163,"src":"London_Profiles_thumb.jpg","galleries_id":123377,"server_id":1,"link":"photo_4219163.html","width":130,"caption":"London Profiles","height":130});
															thumbnails[4223900] = clik.newPhoto({"id":4223900,"src":"britian_flattened_thumb.jpg","galleries_id":123377,"server_id":1,"link":"photo_4223900.html","width":130,"caption":"Great Britian","height":130});
															thumbnails[4662738] = clik.newPhoto({"id":4662738,"src":"Dockland_Layers_acrylic_on_canvas_76cms_square_thumb.jpg","galleries_id":123377,"server_id":1,"link":"photo_4662738.html","width":130,"caption":"Docklands layers","height":132});
															thumbnails[1464007] = clik.newPhoto({"id":1464007,"src":"large_fishsquare1.jpg","galleries_id":268569,"server_id":1,"link":"photo_1464007.html","width":130,"caption":"Fish Square","height":130});
															thumbnails[3680790] = clik.newPhoto({"id":3680790,"src":"Docklands_thumb.jpg","galleries_id":268569,"server_id":1,"link":"photo_3680790.html","width":130,"caption":"Docklands Angle","height":130});
															thumbnails[4662740] = clik.newPhoto({"id":4662740,"src":"Lincolns_Inn_11_thumb.jpg","galleries_id":123377,"server_id":1,"link":"photo_4662740.html","width":130,"caption":"Lincoln's Inn, the City of London","height":130});
															thumbnails[4662742] = clik.newPhoto({"id":4662742,"src":"st_pauls_14_x_14_ins_thumb.jpg","galleries_id":123377,"server_id":1,"link":"photo_4662742.html","width":130,"caption":"St Pauls","height":130});
															thumbnails[1465766] = clik.newPhoto({"id":1465766,"src":"smallcitycentre61x61cms.jpg","galleries_id":268569,"server_id":1,"link":"photo_1465766.html","width":130,"caption":"International City Centre","height":130});
															thumbnails[1466713] = clik.newPhoto({"id":1466713,"src":"1Dubai.jpg","galleries_id":268569,"server_id":1,"link":"photo_1466713.html","width":130,"caption":"Dubai","height":130});
															thumbnails[1469485] = clik.newPhoto({"id":1469485,"src":"London Eye sml.jpg","galleries_id":123377,"server_id":1,"link":"photo_1469485.html","width":130,"caption":"London Eye","height":92});
															thumbnails[1469471] = clik.newPhoto({"id":1469471,"src":"Blue-Spectrum sml.jpg","galleries_id":123377,"server_id":1,"link":"photo_1469471.html","width":103,"caption":"Blue Spectrum","height":140});
															thumbnails[1466557] = clik.newPhoto({"id":1466557,"src":"smallnewyork76x76cms.jpg","galleries_id":268569,"server_id":1,"link":"photo_1466557.html","width":130,"caption":"New York","height":130});
															thumbnails[1834039] = clik.newPhoto({"id":1834039,"src":"Times past hibernia L_thumb.jpg","galleries_id":101144,"server_id":1,"link":"photo_1834039.html","width":130,"caption":"Times past Hibernia Wharf","height":160});
															thumbnails[3681525] = clik.newPhoto({"id":3681525,"src":"St_Pauls_Ludgate_thumb.jpg","galleries_id":101144,"server_id":1,"link":"photo_3681525.html","width":113,"caption":"St Pauls Ludgate","height":160});
															thumbnails[4662356] = clik.newPhoto({"id":4662356,"src":"Blue_City_Spectrum_17_x_25_cms_acrylic_on_paper_thumb.jpg","galleries_id":268569,"server_id":1,"link":"photo_4662356.html","width":130,"caption":"Blue Spectrum, City of London","height":76});
															thumbnails[1469508] = clik.newPhoto({"id":1469508,"src":"smlThamesErith.jpg","galleries_id":101144,"server_id":1,"link":"photo_1469508.html","width":130,"caption":"Erith","height":102});
															thumbnails[1469468] = clik.newPhoto({"id":1469468,"src":"l Egypptian symbols sml.jpg","galleries_id":101144,"server_id":1,"link":"photo_1469468.html","width":130,"caption":"Egyptian Symbols","height":102});
															thumbnails[1466643] = clik.newPhoto({"id":1466643,"src":"smallhongkong18x26cms.jpg","galleries_id":101144,"server_id":1,"link":"photo_1466643.html","width":130,"caption":"Hong Kong","height":98});
															thumbnails[1465938] = clik.newPhoto({"id":1465938,"src":"smallTokyo .jpg","galleries_id":101144,"server_id":1,"link":"photo_1465938.html","width":130,"caption":"Tokyo","height":98});
															thumbnails[6585689] = clik.newPhoto({"id":6585689,"src":"Cranes_East_London_thumb.jpg","galleries_id":361103,"server_id":1,"link":"photo_6585689.html","width":130,"caption":"Cranes East London","height":130});
															thumbnails[6742300] = clik.newPhoto({"id":6742300,"src":"Docklands_Icons_thumb.jpg","galleries_id":361103,"server_id":1,"link":"photo_6742300.html","width":82,"caption":"Docklands Icons","height":160});
															thumbnails[6742362] = clik.newPhoto({"id":6742362,"src":"shoreditch_thumb.jpg","galleries_id":361103,"server_id":1,"link":"photo_6742362.html","width":130,"caption":"Shoreditch","height":142});
															thumbnails[4662364] = clik.newPhoto({"id":4662364,"src":"cranes_original_100_x_100_cms_acrylic_on_canvas_thumb.jpg","galleries_id":361103,"server_id":1,"link":"photo_4662364.html","width":130,"caption":"Cranes Docklands E14","height":130});
															thumbnails[1463907] = clik.newPhoto({"id":1463907,"src":"canarywharfandplane_thumb.jpg","galleries_id":361103,"server_id":1,"link":"photo_1463907.html","width":130,"caption":"Canary Wharf and Plane","height":130});
															thumbnails[1466081] = clik.newPhoto({"id":1466081,"src":"Thames_Time_Line1_thumb.jpg","galleries_id":361103,"server_id":1,"link":"photo_1466081.html","width":130,"caption":"Thames Timeline","height":130});
															thumbnails[4662402] = clik.newPhoto({"id":4662402,"src":"GoldThamesLondon_acrylic_76cmsq_thumb.jpg","galleries_id":361103,"server_id":1,"link":"photo_4662402.html","width":130,"caption":"London and the Thames","height":130});
															thumbnails[4662483] = clik.newPhoto({"id":4662483,"src":"Victoria_Dock_thumb.jpg","galleries_id":361103,"server_id":1,"link":"photo_4662483.html","width":130,"caption":"Victoria Dock","height":130});
															thumbnails[4662431] = clik.newPhoto({"id":4662431,"src":"Canary_Wharf_and_the_City_watercolour_30_x_22_ins_thumb.jpg","galleries_id":361103,"server_id":1,"link":"photo_4662431.html","width":130,"caption":"The City from the Isle of Dogs","height":88});
															thumbnails[6586693] = clik.newPhoto({"id":6586693,"src":"OldDocklands1_thumb.jpg","galleries_id":361103,"server_id":1,"link":"photo_6586693.html","width":130,"caption":"Old Docklands 1","height":107});
															thumbnails[6586705] = clik.newPhoto({"id":6586705,"src":"OldDocklands2_thumb.jpg","galleries_id":361103,"server_id":1,"link":"photo_6586705.html","width":130,"caption":"Old Docklands 2","height":107});
															thumbnails[6586707] = clik.newPhoto({"id":6586707,"src":"OldDocklands3_thumb.jpg","galleries_id":361103,"server_id":1,"link":"photo_6586707.html","width":130,"caption":"Old Docklands 3","height":107});
															thumbnails[1469503] = clik.newPhoto({"id":1469503,"src":"Royal Docks Collage 3.jpg","galleries_id":361103,"server_id":1,"link":"photo_1469503.html","width":65,"caption":"Royal Docks collage","height":130});
															thumbnails[4662413] = clik.newPhoto({"id":4662413,"src":"the_Royal_Docks_thumb.jpg","galleries_id":361103,"server_id":1,"link":"photo_4662413.html","width":130,"caption":"The Royal Docks","height":130});
															thumbnails[4782396] = clik.newPhoto({"id":4782396,"src":"Pura_Demolishing_E14_thumb.jpg","galleries_id":361103,"server_id":1,"link":"photo_4782396.html","width":130,"caption":"Pura demolishing E14","height":90});
															thumbnails[1835618] = clik.newPhoto({"id":1835618,"src":"J_RothschildAssurance,com_thumb.jpg","galleries_id":123449,"server_id":1,"link":"photo_1835618.html","width":130,"caption":"J.Rothschild Assurance","height":86});
															thumbnails[1835622] = clik.newPhoto({"id":1835622,"src":"cowatcanarywharffornewwave_thumb.jpg","galleries_id":123449,"server_id":1,"link":"photo_1835622.html","width":130,"caption":"Cow parade at Canary Wharf","height":90});
															thumbnails[1835626] = clik.newPhoto({"id":1835626,"src":"LondonCityAirport_thumb.jpg","galleries_id":123449,"server_id":1,"link":"photo_1835626.html","width":130,"caption":"London City Airport reception","height":101});
															thumbnails[1835629] = clik.newPhoto({"id":1835629,"src":"maclay ms_thumb.jpg","galleries_id":123449,"server_id":1,"link":"photo_1835629.html","width":74,"caption":"Maclay Murray Splens","height":76});
															thumbnails[1835630] = clik.newPhoto({"id":1835630,"src":"Marriott menu_thumb.jpg","galleries_id":123449,"server_id":1,"link":"photo_1835630.html","width":101,"caption":"Curve Menu, Marriott Hotel Docklands","height":131});
															thumbnails[1835638] = clik.newPhoto({"id":1835638,"src":"marriott mural_thumb.jpg","galleries_id":123449,"server_id":1,"link":"photo_1835638.html","width":130,"caption":"London Marriott Docklands mural","height":73});
															thumbnails[1835641] = clik.newPhoto({"id":1835641,"src":"reg logo_thumb.jpg","galleries_id":123449,"server_id":1,"link":"photo_1835641.html","width":66,"caption":"Reg Logo","height":65});
															thumbnails[1835645] = clik.newPhoto({"id":1835645,"src":"TowerHamletsmuralExtrct_thumb.jpg","galleries_id":123449,"server_id":1,"link":"photo_1835645.html","width":130,"caption":"Tower Hamlets Town Hall Mural","height":84});
															thumbnails[1835767] = clik.newPhoto({"id":1835767,"src":"BLP mural 1_thumb.jpg","galleries_id":123449,"server_id":1,"link":"photo_1835767.html","width":130,"caption":"London Mural 1 Berwin Leighton Paisner","height":34});
															thumbnails[1835768] = clik.newPhoto({"id":1835768,"src":"BLP mural 2_thumb.jpg","galleries_id":123449,"server_id":1,"link":"photo_1835768.html","width":130,"caption":"Mural 2 Berwin Leighton Paisner","height":34});
															thumbnails[1835769] = clik.newPhoto({"id":1835769,"src":"BLP mural 3_thumb.jpg","galleries_id":123449,"server_id":1,"link":"photo_1835769.html","width":130,"caption":"Mural 3 Berwin Leighton Paisner","height":33});
															thumbnails[1835771] = clik.newPhoto({"id":1835771,"src":"BLP mural 4_thumb.jpg","galleries_id":123449,"server_id":1,"link":"photo_1835771.html","width":130,"caption":"Mural 4 Berwin Leighton Paisner","height":43});
															thumbnails[2404505] = clik.newPhoto({"id":2404505,"src":"A large_thumb.jpg","galleries_id":123449,"server_id":1,"link":"photo_2404505.html","width":130,"caption":"A. Education andMulticulture in Tower Hamlets, Mile End Hospital, East London","height":129});
															thumbnails[2404982] = clik.newPhoto({"id":2404982,"src":"Telescope tryptic large_thumb.jpg","galleries_id":123449,"server_id":1,"link":"photo_2404982.html","width":130,"caption":"Microscope Tryptych, Mile end Hospital","height":160});
															thumbnails[2405032] = clik.newPhoto({"id":2405032,"src":"Double helix tryptic large_thumb.jpg","galleries_id":123449,"server_id":1,"link":"photo_2405032.html","width":130,"caption":"Double Helix Tryptych, Education Unit Mile End Hospital","height":160});
															thumbnails[2408373] = clik.newPhoto({"id":2408373,"src":"Emmeline Pankhurst large_thumb.jpg","galleries_id":123449,"server_id":1,"link":"photo_2408373.html","width":130,"caption":"Emmeline (Emily) Pankhurst watercolour Houses of Parliament","height":160});
															thumbnails[2432538] = clik.newPhoto({"id":2432538,"src":"B people and learning 1500 x 1500 mmL_thumb.jpg","galleries_id":123449,"server_id":1,"link":"photo_2432538.html","width":130,"caption":"Multiculture and Education ","height":130});
															thumbnails[2453400] = clik.newPhoto({"id":2453400,"src":"Tower Hamlets Street Markets l_thumb.jpg","galleries_id":123449,"server_id":1,"link":"photo_2453400.html","width":130,"caption":"Tower Hamlets Street Markets","height":96});
															thumbnails[2476308] = clik.newPhoto({"id":2476308,"src":"Orchard Place murals L_thumb.jpg","galleries_id":123449,"server_id":1,"link":"photo_2476308.html","width":130,"caption":"Orchard Place murals 1","height":98});
															thumbnails[2476314] = clik.newPhoto({"id":2476314,"src":"Orchard Place murals 2L_thumb.jpg","galleries_id":123449,"server_id":1,"link":"photo_2476314.html","width":130,"caption":"Orchard Place Murals 2","height":156});
															thumbnails[2476317] = clik.newPhoto({"id":2476317,"src":"Orchard Place murals 3L_thumb.jpg","galleries_id":123449,"server_id":1,"link":"photo_2476317.html","width":130,"caption":"Orchard Place Murals 3","height":156});
															thumbnails[3224638] = clik.newPhoto({"id":3224638,"src":"mile end_thumb.jpg","galleries_id":123449,"server_id":1,"link":"photo_3224638.html","width":90,"caption":"The Education and Training Centre Mile End Hospital","height":140});
															thumbnails[3224657] = clik.newPhoto({"id":3224657,"src":"Mile End Hospital_thumb.jpg","galleries_id":123449,"server_id":1,"link":"photo_3224657.html","width":90,"caption":"Mile End Hospital painting","height":140});
															thumbnails[3224665] = clik.newPhoto({"id":3224665,"src":"Tower Hamlets_thumb.jpg","galleries_id":123449,"server_id":1,"link":"photo_3224665.html","width":90,"caption":"The Borough of Tower Hamlets","height":140});
															thumbnails[4601641] = clik.newPhoto({"id":4601641,"src":"David_B_painting_for_the_DKB_Suite_web_thumb.jpg","galleries_id":123449,"server_id":1,"link":"photo_4601641.html","width":130,"caption":"Torbay","height":84});
															thumbnails[4671083] = clik.newPhoto({"id":4671083,"src":"Logo_69_Ltd_thumb.jpg","galleries_id":123449,"server_id":1,"link":"photo_4671083.html","width":130,"caption":"Logo 69 Ltd commission","height":118});
															thumbnails[6227034] = clik.newPhoto({"id":6227034,"src":"presentationalwenwilliamsjun2210_75BA72C2-1D09-001F-99C2FC20C99D928B_thumb.jpg","galleries_id":123449,"server_id":1,"link":"photo_6227034.html","width":130,"caption":"Commission for CE Alwen Williams CBE<br>\r\nTower Hamlets NHS","height":102});
															thumbnails[1469477] = clik.newPhoto({"id":1469477,"src":"City of London 100 x 100 cms sml.jpg","galleries_id":123449,"server_id":1,"link":"photo_1469477.html","width":130,"caption":" London City","height":130});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[268569] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Acrylic on canvas Paintings ","link":"section135094_268569.html","maxRecords":0.0,"photoIDs":[7472823.0,7957241.0,8067496.0,3539282.0,7352811.0,7924198.0,3680919.0,1464007.0,3680790.0,1465766.0,1466713.0,1466557.0,4662356.0],"skipIndex":0,"section_code":"section135094","featured_images":1466557.0,"id":268569,"singleSection":false});				  						galleries[346218] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Greeting Cards","link":"section413464.html","maxRecords":0.0,"photoIDs":[6210358.0,6210364.0,6210369.0,6210508.0,8336026.0,8336041.0,8336042.0,8336043.0,8830910.0,6210398.0,6210355.0,7228638.0,7228639.0,7228640.0,7228641.0,7228642.0,7228643.0],"skipIndex":0,"section_code":"section413464","featured_images":"8830910,8336043,8336042,8336041,8336026,7228643,7228642,7228641,7228640,7228639","id":346218,"singleSection":true});				  						galleries[101144] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gouache & watercolours","link":"section135094_101144.html","maxRecords":0.0,"photoIDs":[8381174.0,8381194.0,8381207.0,7352484.0,7329248.0,4782407.0,4782674.0,1834039.0,3681525.0,1469508.0,1469468.0,1466643.0,1465938.0],"skipIndex":0,"section_code":"section135094","featured_images":1465938.0,"id":101144,"singleSection":false});				  						galleries[123377] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Contemporary London & Docklands prints ","link":"section135094_123377.html","maxRecords":0.0,"photoIDs":[2416936.0,3669088.0,3669189.0,3669247.0,2416944.0,3669502.0,4219148.0,1469486.0,4662725.0,4219163.0,4223900.0,4662738.0,4662740.0,4662742.0,1469485.0,1469471.0],"skipIndex":0,"section_code":"section135094","featured_images":"4662742,4662740,4662738,4662725,4223900,4219163,4219148,3669502,3669247,3669189","id":123377,"singleSection":false});				  						galleries[123325] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Docklands Traditional Prints  ","link":"section135094_123325.html","maxRecords":0.0,"photoIDs":[1833160.0,1833896.0,1833920.0,1833992.0,1834006.0,1834037.0,1834038.0],"skipIndex":0,"section_code":"section135094","featured_images":1833920.0,"id":123325,"singleSection":false});				  						galleries[123449] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Commissions","link":"section198015.html","maxRecords":0.0,"photoIDs":[1835618.0,1835622.0,1835626.0,1835629.0,1835630.0,1835638.0,1835641.0,1835645.0,1835767.0,1835768.0,1835769.0,1835771.0,2404505.0,2404982.0,2405032.0,2408373.0,2432538.0,2453400.0,2476308.0,2476314.0,2476317.0,3224638.0,3224657.0,3224665.0,4601641.0,4671083.0,6227034.0,1469477.0],"skipIndex":0,"section_code":"section198015","featured_images":"6227034,4671083,4601641,3224665,3224657,3224638,2476317,2476314,2476308,2453400","id":123449,"singleSection":true});				  						galleries[108406] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"A Picture of East London","link":"section135094_108406.html","maxRecords":0.0,"photoIDs":[1585757.0],"skipIndex":0,"section_code":"section135094","featured_images":1585757.0,"id":108406,"singleSection":false});				  						galleries[361103] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Mile End Hospital EX. February 2012","link":"section473871.html","maxRecords":0.0,"photoIDs":[6585689.0,6742300.0,6742362.0,4662364.0,1463907.0,1466081.0,4662402.0,4662483.0,4662431.0,6586693.0,6586705.0,6586707.0,1469503.0,4662413.0,4782396.0],"skipIndex":0,"section_code":"section473871","featured_images":1463907.0,"id":361103,"singleSection":true});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '3224665,3224657,3224638,2476317,2453400,2432538,2405032,2404982,2404505,1833920,1833160,3539282,2416936,1463907,3669088,1469513,1469486,1469495,1464007,1469471,1466557,1466643';
imageSets[2] = '1833920,1463907,1466557,1465938';
imageSets[3] = '8830910,8381215,8381207,8381194,8381174,8336043,8336042,8336041,8336026,8067496,7957241,7924198,7472823,7353665,7352811,7352484,7329248,7228643,7228642,7228641,7228640,7228639,7228638,7004385,7004344,7004281,7004260,7004201,7004123,7004116,7004007,7003999,7003781,6742362,6742300,6586707,6586705,6586693,6585689,6400819,6400715,6400707,6400691,6400602,6400544,6227034,6210508,6210398,6210389,6210369';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/artistgb/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/artistgb/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/artistgb/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/artistgb/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/artistgb/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/artistgb/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/artistgb/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/artistgb/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/artistgb/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/artistgb/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/artistgb/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/artistgb/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/artistgb/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/artistgb/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/artistgb/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/artistgb/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/artistgb/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/artistgb/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/artistgb/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/artistgb/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/artistgb/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/artistgb/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/artistgb/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/artistgb/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/artistgb/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/artistgb/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/artistgb/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 += 'section413464.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 && 'section413464' != '') {
					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 = 'Gillian Burrows Artist: ' + 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>Artist </strong>' + this.photographer + '</div>';
	}
				
	temp += this.fnGetPaymentInfo();
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
																		temp += '<p>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this original or print online</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
		 									temp += '<select class="paymentlink" name="payment_options_id" onchange="updateCartValue($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
		else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
											temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm">';
			temp += '	<input type="hidden" name="item_option" value="' + item_option + '">';
			temp += '	<input type="hidden" name="site" value="ARTISTGB">';
			temp += '	<input type="hidden" name="item_number" value="'+ this.id +'">';
			temp += '	<input type="hidden" name="quantity" value="1">';
						temp += '	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\'\;" onmouseout="this.className=\'button\'\;" type="Button">';
							temp += '	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';
			temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
			temp += '<div id="confirmContainer">';
			temp += '<div id="paymentConfirm">Item added to cart</div>';
			temp += '</div>';
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

