window.thumbnails = {};
															thumbnails[2511161] = clik.newPhoto({"id":2511161,"src":"Birmingham, H, Genetic Drift, A_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Genetic Drift","height":153});
															thumbnails[2511531] = clik.newPhoto({"id":2511531,"src":"helenbwweb1_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Helen BIRMINGHAM","height":173});
															thumbnails[6149760] = clik.newPhoto({"id":6149760,"src":"Image0303_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":181});
															thumbnails[6928525] = clik.newPhoto({"id":6928525,"src":"1web2_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Charles Darwin","height":201});
															thumbnails[6928532] = clik.newPhoto({"id":6928532,"src":"2web_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Time & Tide I","height":127});
															thumbnails[6928535] = clik.newPhoto({"id":6928535,"src":"3web_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Ebb & Flow (detail)","height":173});
															thumbnails[6928536] = clik.newPhoto({"id":6928536,"src":"4web_thumb.JPG","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Exhibition Poster","height":183});
															thumbnails[6928538] = clik.newPhoto({"id":6928538,"src":"5web_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Auricula Helen Barter","height":111});
															thumbnails[6928539] = clik.newPhoto({"id":6928539,"src":"6web_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Research, Research, Research","height":131});
															thumbnails[6928540] = clik.newPhoto({"id":6928540,"src":"7web_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Darwin's Sketch 1837","height":220});
															thumbnails[6928542] = clik.newPhoto({"id":6928542,"src":"8web_thumb.JPG","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Seminal Sentence","height":201});
															thumbnails[6928543] = clik.newPhoto({"id":6928543,"src":"9web_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"My Pebble","height":103});
															thumbnails[6928544] = clik.newPhoto({"id":6928544,"src":"10web1_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Pebble Lines","height":197});
															thumbnails[6928545] = clik.newPhoto({"id":6928545,"src":"11web_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Extreme Imperfection","height":130});
															thumbnails[6928546] = clik.newPhoto({"id":6928546,"src":"12aweb_thumb.JPG","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Pebble Influence","height":208});
															thumbnails[6928547] = clik.newPhoto({"id":6928547,"src":"13web_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"The Map That Changed the World","height":192});
															thumbnails[6929157] = clik.newPhoto({"id":6929157,"src":"14web_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Fault","height":211});
															thumbnails[6929160] = clik.newPhoto({"id":6929160,"src":"16web_thumb.JPG","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Entangled Bank","height":182});
															thumbnails[6929161] = clik.newPhoto({"id":6929161,"src":"17web_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Ab 'original' Life","height":130});
															thumbnails[6929163] = clik.newPhoto({"id":6929163,"src":"19web_CE425F8D-1D09-001F-993EE1B13DB93DCD_thumb.JPG","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Pebble Formation","height":179});
															thumbnails[6929181] = clik.newPhoto({"id":6929181,"src":"15web_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"from Geology and Fossil Series","height":174});
															thumbnails[6929182] = clik.newPhoto({"id":6929182,"src":"18web_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"from Tree of Life series","height":172});
															thumbnails[6929886] = clik.newPhoto({"id":6929886,"src":"heart_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Heart","height":147});
															thumbnails[6929889] = clik.newPhoto({"id":6929889,"src":"website062_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Bridal Headbands","height":107});
															thumbnails[6929891] = clik.newPhoto({"id":6929891,"src":"website_067_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Book Cover","height":114});
															thumbnails[6929892] = clik.newPhoto({"id":6929892,"src":"website_114_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Promise Books","height":173});
															thumbnails[6929893] = clik.newPhoto({"id":6929893,"src":"website_071_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Beetle Necklace","height":129});
															thumbnails[6929965] = clik.newPhoto({"id":6929965,"src":"christmascardweb_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Christmas Stars 2007","height":168});
															thumbnails[6929984] = clik.newPhoto({"id":6929984,"src":"buttons_013web_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"ART on a BUTTON","height":123});
															thumbnails[6930069] = clik.newPhoto({"id":6930069,"src":"19web21_thumb.JPG","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":178});
															thumbnails[6931691] = clik.newPhoto({"id":6931691,"src":"17_D1467341-1D09-001F-99F1BB36176D3E9B_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Ab'original' Life","height":130});
															thumbnails[6931789] = clik.newPhoto({"id":6931789,"src":"darwin2009_059_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Faversham Hops","height":173});
															thumbnails[6931792] = clik.newPhoto({"id":6931792,"src":"website_069_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Dragonfly Necklace","height":173});
															thumbnails[6931807] = clik.newPhoto({"id":6931807,"src":"daisy_008_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Honesty","height":130});
															thumbnails[6931821] = clik.newPhoto({"id":6931821,"src":"coastival-brochure_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":181});
															thumbnails[6931822] = clik.newPhoto({"id":6931822,"src":"helenbirmingham_thumb.JPG","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Time and Tide: An exhibition for Scarborough(Scarborough Castle)","height":90});
															thumbnails[8182627] = clik.newPhoto({"id":8182627,"src":"web1_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":160,"caption":"flat entrance hall","height":214});
															thumbnails[8182628] = clik.newPhoto({"id":8182628,"src":"web2_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":160,"caption":"bathroom","height":214});
															thumbnails[8182629] = clik.newPhoto({"id":8182629,"src":"web3_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":160,"caption":"kitchen area","height":214});
															thumbnails[8182630] = clik.newPhoto({"id":8182630,"src":"web4_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":160,"caption":"large double\/2 single","height":214});
															thumbnails[8182631] = clik.newPhoto({"id":8182631,"src":"web10_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":160,"caption":"dining\/working area","height":214});
															thumbnails[8182632] = clik.newPhoto({"id":8182632,"src":"web6_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":160,"caption":"sofa and tv area","height":214});
															thumbnails[8182633] = clik.newPhoto({"id":8182633,"src":"web7_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":160,"caption":"5 belle vue parade","height":214});
															thumbnails[8182635] = clik.newPhoto({"id":8182635,"src":"web8_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":160,"caption":"entrance shared with gallery","height":214});
															thumbnails[8182636] = clik.newPhoto({"id":8182636,"src":"web9_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":160,"caption":"dressing area","height":214});
															thumbnails[8357840] = clik.newPhoto({"id":8357840,"src":"Image1611b_thumb.jpg","galleries_id":"","server_id":35,"link":"#","width":160,"caption":"","height":214});
															thumbnails[8357844] = clik.newPhoto({"id":8357844,"src":"Image1874a_thumb.jpg","galleries_id":"","server_id":35,"link":"#","width":160,"caption":"","height":170});
															thumbnails[8357847] = clik.newPhoto({"id":8357847,"src":"Image1876c_thumb.jpg","galleries_id":"","server_id":35,"link":"#","width":160,"caption":"","height":114});
															thumbnails[8357849] = clik.newPhoto({"id":8357849,"src":"floorplan_thumb.JPG","galleries_id":"","server_id":35,"link":"#","width":160,"caption":"","height":228});
															thumbnails[8412203] = clik.newPhoto({"id":8412203,"src":"helenbwsmall1_thumb.jpg","galleries_id":"","server_id":38,"link":"#","width":160,"caption":"Helen Birmingham - Mixed Media Artist","height":214});
															thumbnails[8412205] = clik.newPhoto({"id":8412205,"src":"twitter_thumb.jpg","galleries_id":"","server_id":38,"link":"#","width":160,"caption":"from Evolution Series","height":157});
															thumbnails[8412207] = clik.newPhoto({"id":8412207,"src":"Copy_of_24small1_thumb.jpg","galleries_id":"","server_id":38,"link":"#","width":160,"caption":"Cirripedes (detail)","height":120});
															thumbnails[8412211] = clik.newPhoto({"id":8412211,"src":"web31_15AA2387-1EC9-DFB6-0917E669B0264311_thumb.jpg","galleries_id":"","server_id":38,"link":"#","width":160,"caption":"Nascency (detail)","height":162});
															thumbnails[6929164] = clik.newPhoto({"id":6929164,"src":"20web_thumb.JPG","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Nascency","height":211});
															thumbnails[6929172] = clik.newPhoto({"id":6929172,"src":"21web_CE43779E-1D09-001F-99DE83D68CE879CC_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Stage 1","height":172});
															thumbnails[6929173] = clik.newPhoto({"id":6929173,"src":"22web_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Stage 2","height":172});
															thumbnails[6929174] = clik.newPhoto({"id":6929174,"src":"23web_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Stage 3","height":177});
															thumbnails[6929176] = clik.newPhoto({"id":6929176,"src":"24web_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Stage 4","height":131});
															thumbnails[6929177] = clik.newPhoto({"id":6929177,"src":"25web_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Stage 5","height":177});
															thumbnails[6929179] = clik.newPhoto({"id":6929179,"src":"26web_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Stage 6","height":172});
															thumbnails[4938177] = clik.newPhoto({"id":4938177,"src":"postcard061_thumb.JPG","galleries_id":280721,"server_id":15,"link":"photo_4938177.html","width":130,"caption":"No 1","height":131});
															thumbnails[4938179] = clik.newPhoto({"id":4938179,"src":"lifeline_thumb.jpg","galleries_id":280721,"server_id":15,"link":"photo_4938179.html","width":130,"caption":"No 2","height":130});
															thumbnails[4938182] = clik.newPhoto({"id":4938182,"src":"31_thumb.jpg","galleries_id":280721,"server_id":15,"link":"photo_4938182.html","width":130,"caption":"No 3","height":130});
															thumbnails[4938185] = clik.newPhoto({"id":4938185,"src":"art_080_thumb.jpg","galleries_id":280721,"server_id":15,"link":"photo_4938185.html","width":130,"caption":"No 4","height":132});
															thumbnails[4938187] = clik.newPhoto({"id":4938187,"src":"52_thumb.jpg","galleries_id":280721,"server_id":15,"link":"photo_4938187.html","width":130,"caption":"No 5","height":137});
															thumbnails[4938189] = clik.newPhoto({"id":4938189,"src":"71_thumb.jpg","galleries_id":280721,"server_id":15,"link":"photo_4938189.html","width":130,"caption":"No 6","height":136});
															thumbnails[4938190] = clik.newPhoto({"id":4938190,"src":"91_thumb.jpg","galleries_id":280721,"server_id":15,"link":"photo_4938190.html","width":130,"caption":"No 7","height":136});
															thumbnails[4938192] = clik.newPhoto({"id":4938192,"src":"61_thumb.jpg","galleries_id":280721,"server_id":15,"link":"photo_4938192.html","width":130,"caption":"No 8","height":137});
															thumbnails[4938194] = clik.newPhoto({"id":4938194,"src":"81_thumb.jpg","galleries_id":280721,"server_id":15,"link":"photo_4938194.html","width":130,"caption":"No 9","height":121});
															thumbnails[4938196] = clik.newPhoto({"id":4938196,"src":"111_thumb.jpg","galleries_id":280721,"server_id":15,"link":"photo_4938196.html","width":130,"caption":"No 10","height":128});
															thumbnails[4938197] = clik.newPhoto({"id":4938197,"src":"art_1091_thumb.jpg","galleries_id":280721,"server_id":15,"link":"photo_4938197.html","width":130,"caption":"No 11","height":129});
															thumbnails[4938198] = clik.newPhoto({"id":4938198,"src":"121_thumb.jpg","galleries_id":280721,"server_id":15,"link":"photo_4938198.html","width":130,"caption":"No 12","height":142});
															thumbnails[4938199] = clik.newPhoto({"id":4938199,"src":"131_thumb.jpg","galleries_id":280721,"server_id":15,"link":"photo_4938199.html","width":130,"caption":"No 13","height":139});
															thumbnails[4938200] = clik.newPhoto({"id":4938200,"src":"14_1_thumb.jpg","galleries_id":280721,"server_id":15,"link":"photo_4938200.html","width":130,"caption":"No 14","height":128});
															thumbnails[4938204] = clik.newPhoto({"id":4938204,"src":"19web_thumb.jpg","galleries_id":280721,"server_id":15,"link":"photo_4938204.html","width":130,"caption":"No 15","height":124});
															thumbnails[4938205] = clik.newPhoto({"id":4938205,"src":"16_thumb.jpg","galleries_id":280721,"server_id":15,"link":"photo_4938205.html","width":130,"caption":"No 16","height":130});
															thumbnails[4938206] = clik.newPhoto({"id":4938206,"src":"15_thumb.jpg","galleries_id":280721,"server_id":15,"link":"photo_4938206.html","width":130,"caption":"No 17","height":143});
															thumbnails[4938207] = clik.newPhoto({"id":4938207,"src":"17_thumb.jpg","galleries_id":280721,"server_id":15,"link":"photo_4938207.html","width":130,"caption":"No 18","height":126});
															thumbnails[4938209] = clik.newPhoto({"id":4938209,"src":"18_thumb.jpg","galleries_id":280721,"server_id":15,"link":"photo_4938209.html","width":130,"caption":"No 19","height":130});
															thumbnails[4938211] = clik.newPhoto({"id":4938211,"src":"20_thumb.jpg","galleries_id":280721,"server_id":15,"link":"photo_4938211.html","width":130,"caption":"No 20","height":136});
															thumbnails[4938214] = clik.newPhoto({"id":4938214,"src":"24_thumb.jpg","galleries_id":280721,"server_id":15,"link":"photo_4938214.html","width":130,"caption":"No 21","height":138});
															thumbnails[4938217] = clik.newPhoto({"id":4938217,"src":"art_205_thumb.jpg","galleries_id":280721,"server_id":15,"link":"photo_4938217.html","width":130,"caption":"No 22","height":137});
															thumbnails[4938220] = clik.newPhoto({"id":4938220,"src":"art_084_thumb.jpg","galleries_id":280721,"server_id":15,"link":"photo_4938220.html","width":130,"caption":"No 23","height":130});
															thumbnails[4938223] = clik.newPhoto({"id":4938223,"src":"framedprints_0061_thumb.jpg","galleries_id":280721,"server_id":15,"link":"photo_4938223.html","width":130,"caption":"No 24","height":130});
															thumbnails[4938225] = clik.newPhoto({"id":4938225,"src":"22_thumb.jpg","galleries_id":280721,"server_id":15,"link":"photo_4938225.html","width":130,"caption":"No 25","height":139});
															thumbnails[4938227] = clik.newPhoto({"id":4938227,"src":"darwinexhibition_005a_thumb.jpg","galleries_id":280721,"server_id":15,"link":"photo_4938227.html","width":130,"caption":"No 26","height":140});
															thumbnails[4938231] = clik.newPhoto({"id":4938231,"src":"27_thumb.jpg","galleries_id":280721,"server_id":15,"link":"photo_4938231.html","width":130,"caption":"No 27","height":124});
															thumbnails[4938234] = clik.newPhoto({"id":4938234,"src":"28_thumb.jpg","galleries_id":280721,"server_id":15,"link":"photo_4938234.html","width":130,"caption":"No 28","height":131});
															thumbnails[4938238] = clik.newPhoto({"id":4938238,"src":"art_007a_thumb.jpg","galleries_id":280721,"server_id":15,"link":"photo_4938238.html","width":130,"caption":"No 29","height":125});
															thumbnails[4938243] = clik.newPhoto({"id":4938243,"src":"art_1051_thumb.jpg","galleries_id":280721,"server_id":15,"link":"photo_4938243.html","width":130,"caption":"No 30","height":130});
															thumbnails[7343646] = clik.newPhoto({"id":7343646,"src":"helenbirmingham_D273D40F-1EC9-D45B-1C6C4C7D8A6FED26_thumb.JPG","galleries_id":397543,"server_id":15,"link":"photo_7343646.html","width":160,"caption":"TIME & TIDE: an exhibition for Scarborough","height":111});
															thumbnails[7343826] = clik.newPhoto({"id":7343826,"src":"photo1_thumb.jpg","galleries_id":397543,"server_id":15,"link":"photo_7343826.html","width":160,"caption":"Scarborough Castle","height":237});
															thumbnails[7343829] = clik.newPhoto({"id":7343829,"src":"photo2_thumb.jpg","galleries_id":397543,"server_id":15,"link":"photo_7343829.html","width":160,"caption":"Spa Footbridge (detail)","height":246});
															thumbnails[7343831] = clik.newPhoto({"id":7343831,"src":"photo3_thumb.jpg","galleries_id":397543,"server_id":15,"link":"photo_7343831.html","width":160,"caption":"Amusement Arcades","height":223});
															thumbnails[7343834] = clik.newPhoto({"id":7343834,"src":"photo4_thumb.jpg","galleries_id":397543,"server_id":15,"link":"photo_7343834.html","width":160,"caption":"South Bay Lido (detail)","height":202});
															thumbnails[7343838] = clik.newPhoto({"id":7343838,"src":"photo5_thumb.jpg","galleries_id":397543,"server_id":15,"link":"photo_7343838.html","width":160,"caption":"Holiday Reminiscence (detail)","height":247});
															thumbnails[7343873] = clik.newPhoto({"id":7343873,"src":"Image1264_thumb.jpg","galleries_id":397543,"server_id":15,"link":"photo_7343873.html","width":160,"caption":"Rockpools (detail)","height":239});
															thumbnails[7343874] = clik.newPhoto({"id":7343874,"src":"photo7_thumb.jpg","galleries_id":397543,"server_id":15,"link":"photo_7343874.html","width":160,"caption":"Scarborough Harbour","height":229});
															thumbnails[7343878] = clik.newPhoto({"id":7343878,"src":"photo8_thumb.jpg","galleries_id":397543,"server_id":15,"link":"photo_7343878.html","width":160,"caption":"Sarony's People","height":233});
															thumbnails[7343879] = clik.newPhoto({"id":7343879,"src":"photo9_thumb.jpg","galleries_id":397543,"server_id":15,"link":"photo_7343879.html","width":160,"caption":"Parks & Gardens","height":223});
															thumbnails[7343882] = clik.newPhoto({"id":7343882,"src":"photo10_thumb.jpg","galleries_id":397543,"server_id":15,"link":"photo_7343882.html","width":160,"caption":"Geology & Fossils","height":231});
															thumbnails[8363003] = clik.newPhoto({"id":8363003,"src":"Image1834_thumb.jpg","galleries_id":444018,"server_id":19,"link":"photo_8363003.html","width":160,"caption":"","height":226});
															thumbnails[8363005] = clik.newPhoto({"id":8363005,"src":"Image1835_thumb.jpg","galleries_id":444018,"server_id":19,"link":"photo_8363005.html","width":160,"caption":"SOLD","height":227});
															thumbnails[8363016] = clik.newPhoto({"id":8363016,"src":"Image1836_thumb.jpg","galleries_id":444018,"server_id":19,"link":"photo_8363016.html","width":160,"caption":"","height":240});
															thumbnails[8363017] = clik.newPhoto({"id":8363017,"src":"Image1837_thumb.jpg","galleries_id":444018,"server_id":19,"link":"photo_8363017.html","width":160,"caption":"","height":238});
															thumbnails[8363018] = clik.newPhoto({"id":8363018,"src":"Image1839_thumb.jpg","galleries_id":444018,"server_id":19,"link":"photo_8363018.html","width":160,"caption":"","height":234});
															thumbnails[8363019] = clik.newPhoto({"id":8363019,"src":"Image1840_thumb.jpg","galleries_id":444018,"server_id":19,"link":"photo_8363019.html","width":160,"caption":"","height":235});
															thumbnails[8363021] = clik.newPhoto({"id":8363021,"src":"Image1841_thumb.jpg","galleries_id":444018,"server_id":19,"link":"photo_8363021.html","width":160,"caption":"","height":235});
															thumbnails[8363022] = clik.newPhoto({"id":8363022,"src":"Image1842_thumb.jpg","galleries_id":444018,"server_id":19,"link":"photo_8363022.html","width":160,"caption":"","height":237});
															thumbnails[8363023] = clik.newPhoto({"id":8363023,"src":"Image1843_thumb.jpg","galleries_id":444018,"server_id":19,"link":"photo_8363023.html","width":160,"caption":"SOLD","height":236});
															thumbnails[8363024] = clik.newPhoto({"id":8363024,"src":"Image1844_thumb.jpg","galleries_id":444018,"server_id":19,"link":"photo_8363024.html","width":160,"caption":"","height":231});
															thumbnails[6149963] = clik.newPhoto({"id":6149963,"src":"timetide1a_thumb.jpg","galleries_id":375660,"server_id":15,"link":"photo_6149963.html","width":130,"caption":"Time & Tide I ","height":126});
															thumbnails[6150086] = clik.newPhoto({"id":6150086,"src":"timetide2a_thumb.jpg","galleries_id":375660,"server_id":15,"link":"photo_6150086.html","width":130,"caption":"Time & Tide II","height":129});
															thumbnails[6150132] = clik.newPhoto({"id":6150132,"src":"timetide3a_thumb.jpg","galleries_id":375660,"server_id":15,"link":"photo_6150132.html","width":130,"caption":"Time & Tide III","height":128});
															thumbnails[6150133] = clik.newPhoto({"id":6150133,"src":"tidetime4a1_thumb.jpg","galleries_id":375660,"server_id":15,"link":"photo_6150133.html","width":130,"caption":"Time & Tide IV","height":128});
															thumbnails[6150134] = clik.newPhoto({"id":6150134,"src":"timetide5a_thumb.jpg","galleries_id":375660,"server_id":15,"link":"photo_6150134.html","width":130,"caption":"Time & Tide V","height":140});
															thumbnails[6150136] = clik.newPhoto({"id":6150136,"src":"timetide6a_thumb.jpg","galleries_id":375660,"server_id":15,"link":"photo_6150136.html","width":130,"caption":"Time & Tide VI","height":126});
															thumbnails[6150137] = clik.newPhoto({"id":6150137,"src":"timetide7a_thumb.jpg","galleries_id":375660,"server_id":15,"link":"photo_6150137.html","width":130,"caption":"Time & Tide VII","height":128});
															thumbnails[6150138] = clik.newPhoto({"id":6150138,"src":"timetide8a_thumb.jpg","galleries_id":375660,"server_id":15,"link":"photo_6150138.html","width":130,"caption":"Time & Tide VIII","height":129});
															thumbnails[6150142] = clik.newPhoto({"id":6150142,"src":"timetide9a_thumb.jpg","galleries_id":375660,"server_id":15,"link":"photo_6150142.html","width":130,"caption":"Time & Tide IX","height":129});
															thumbnails[6150143] = clik.newPhoto({"id":6150143,"src":"timetide10a_thumb.jpg","galleries_id":375660,"server_id":15,"link":"photo_6150143.html","width":130,"caption":"Time & Tide X","height":130});
															thumbnails[3425020] = clik.newPhoto({"id":3425020,"src":"art_071_thumb.jpg","galleries_id":375676,"server_id":15,"link":"photo_3425020.html","width":130,"caption":"Stage 1","height":173});
															thumbnails[3425023] = clik.newPhoto({"id":3425023,"src":"web22_thumb.jpg","galleries_id":375676,"server_id":15,"link":"photo_3425023.html","width":130,"caption":"Stage 2","height":176});
															thumbnails[3425025] = clik.newPhoto({"id":3425025,"src":"web31_thumb.jpg","galleries_id":375676,"server_id":15,"link":"photo_3425025.html","width":130,"caption":"Stage 3","height":176});
															thumbnails[6930073] = clik.newPhoto({"id":6930073,"src":"art_074_thumb.jpg","galleries_id":375676,"server_id":15,"link":"photo_6930073.html","width":130,"caption":"Stage 4","height":175});
															thumbnails[3425027] = clik.newPhoto({"id":3425027,"src":"web41_thumb.jpg","galleries_id":375676,"server_id":15,"link":"photo_3425027.html","width":130,"caption":"Stage 5","height":178});
															thumbnails[3425048] = clik.newPhoto({"id":3425048,"src":"nascencyIweb_thumb.jpg","galleries_id":375672,"server_id":15,"link":"photo_3425048.html","width":130,"caption":"Nascency I","height":131});
															thumbnails[3425051] = clik.newPhoto({"id":3425051,"src":"nascencyIIweb_thumb.jpg","galleries_id":375672,"server_id":15,"link":"photo_3425051.html","width":130,"caption":"Nascency II","height":133});
															thumbnails[6931435] = clik.newPhoto({"id":6931435,"src":"nascencyIIIweb_thumb.jpg","galleries_id":375672,"server_id":15,"link":"photo_6931435.html","width":130,"caption":"Nascency III","height":131});
															thumbnails[3425055] = clik.newPhoto({"id":3425055,"src":"nascencyIVweb_thumb.jpg","galleries_id":375672,"server_id":15,"link":"photo_3425055.html","width":130,"caption":"Nascency IV","height":131});
															thumbnails[6931437] = clik.newPhoto({"id":6931437,"src":"nascencyVweb_thumb.jpg","galleries_id":375672,"server_id":15,"link":"photo_6931437.html","width":130,"caption":"Nascency V","height":134});
															thumbnails[3425059] = clik.newPhoto({"id":3425059,"src":"nascencyVIweb_thumb.jpg","galleries_id":375672,"server_id":15,"link":"photo_3425059.html","width":130,"caption":"Nascency VI","height":135});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[375672] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Nascency","link":"section447437.html","maxRecords":0.0,"photoIDs":[3425048.0,3425051.0,6931435.0,3425055.0,6931437.0,3425059.0],"skipIndex":0,"section_code":"section447437","featured_images":"6931437,6931435,3425059,3425055,3425051,3425048","id":375672,"singleSection":true});				  						galleries[375676] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Pebble Formation","link":"section447440.html","maxRecords":0.0,"photoIDs":[3425020.0,3425023.0,3425025.0,6930073.0,3425027.0],"skipIndex":0,"section_code":"section447440","featured_images":"6930073,3425027,3425025,3425023,3425020","id":375676,"singleSection":true});				  						galleries[397543] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Scarborough","link":"section447425_397543.html","maxRecords":0.0,"photoIDs":[7343646.0,7343826.0,7343829.0,7343831.0,7343834.0,7343838.0,7343873.0,7343874.0,7343878.0,7343879.0,7343882.0],"skipIndex":0,"section_code":"section447425","featured_images":"7343882,7343879,7343878,7343874,7343873,7343838,7343834,7343831,7343829,7343826","id":397543,"singleSection":false});				  						galleries[375660] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Series I  Nos 1-10","link":"section447425_375660.html","maxRecords":0.0,"photoIDs":[6149963.0,6150086.0,6150132.0,6150133.0,6150134.0,6150136.0,6150137.0,6150138.0,6150142.0,6150143.0],"skipIndex":0,"section_code":"section447425","featured_images":"6150143,6150142,6150138,6150137,6150136,6150134,6150133,6150132,6150086,6149963","id":375660,"singleSection":false});				  						galleries[444018] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Series II Nos 1-10","link":"section447425_444018.html","maxRecords":0.0,"photoIDs":[8363003.0,8363005.0,8363016.0,8363017.0,8363018.0,8363019.0,8363021.0,8363022.0,8363023.0,8363024.0],"skipIndex":0,"section_code":"section447425","featured_images":"8363024,8363023,8363022,8363021,8363019,8363018,8363017,8363016,8363005,8363003","id":444018,"singleSection":false});				  						galleries[280721] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Voyage of Discovery","link":"section337337.html","maxRecords":0.0,"photoIDs":[4938177.0,4938179.0,4938182.0,4938185.0,4938187.0,4938189.0,4938190.0,4938192.0,4938194.0,4938196.0,4938197.0,4938198.0,4938199.0,4938200.0,4938204.0,4938205.0,4938206.0,4938207.0,4938209.0,4938211.0,4938214.0,4938217.0,4938220.0,4938223.0,4938225.0,4938227.0,4938231.0,4938234.0,4938238.0,4938243.0],"skipIndex":0,"section_code":"section337337","featured_images":"4938243,4938238,4938234,4938231,4938227,4938225,4938223,4938220,4938217,4938214","id":280721,"singleSection":true});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '6931691';
imageSets[3] = '6931822,6931821,6931807,6931792,6931789,6931691,6930069,6929984,6929965,6929893,6929892,6929891,6929889,6929886,6929182,6929181,6929163,6929161,6929160,6929157,6928547,6928546,6928545,6928544,6928543,6928542,6928540,6928539,6928538,6928536,6928535,6928532,6928525,6929164,6929172,6931435,6929173,6930073,6929174,6150133,6931437,6929176,6150134,6929177,6150136,6929179,6150137,6150138,6150142,6150143';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/helenbirmingham/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/helenbirmingham/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/helenbirmingham/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/helenbirmingham/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/helenbirmingham/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/helenbirmingham/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/helenbirmingham/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/helenbirmingham/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/helenbirmingham/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/helenbirmingham/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/helenbirmingham/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/helenbirmingham/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/helenbirmingham/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/helenbirmingham/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/helenbirmingham/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/helenbirmingham/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/helenbirmingham/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/helenbirmingham/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/helenbirmingham/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/helenbirmingham/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/helenbirmingham/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/helenbirmingham/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/helenbirmingham/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/helenbirmingham/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 && backgrounds[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'section337337.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 && 'section337337' != '') {
					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 = 'Helen Birmingham: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp += '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
		
		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 += '<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;
	}
}

			

