window.thumbnails = {};
															thumbnails[660871] = clik.newPhoto({"id":660871,"src":"Rubbing-21.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Inscription for oak table","height":78});
															thumbnails[689492] = clik.newPhoto({"id":689492,"src":"Napkin-ring1.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Napkin ring cut by my father with a penknife","height":103});
															thumbnails[7406122] = clik.newPhoto({"id":7406122,"src":"Spitalfield-hands_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":195});
															thumbnails[7523050] = clik.newPhoto({"id":7523050,"src":"interview-1_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Spitalfield interview 1","height":193});
															thumbnails[7523065] = clik.newPhoto({"id":7523065,"src":"interview-2_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Interview page 2","height":182});
															thumbnails[7523077] = clik.newPhoto({"id":7523077,"src":"forum-article_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Forum article 1","height":195});
															thumbnails[7523078] = clik.newPhoto({"id":7523078,"src":"foum-2_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Forum 2","height":195});
															thumbnails[7523133] = clik.newPhoto({"id":7523133,"src":"rubbing_B162F89B-1E4F-37DC-71CCBE20BA84CD50_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"rubbing of janacek wood","height":48});
															thumbnails[7553919] = clik.newPhoto({"id":7553919,"src":"Catterson-detail_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Detail of headstone","height":143});
															thumbnails[7824905] = clik.newPhoto({"id":7824905,"src":"rubbing_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":48});
															thumbnails[652238] = clik.newPhoto({"id":652238,"src":"Mare-Nostrum1.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Pebble","height":107});
															thumbnails[655142] = clik.newPhoto({"id":655142,"src":"Daw-sarcen1.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Sarsen stone","height":99});
															thumbnails[700106] = clik.newPhoto({"id":700106,"src":"More-pendants2.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Slate pendants","height":69});
															thumbnails[8043789] = clik.newPhoto({"id":8043789,"src":"Wren_thumb.jpg","galleries_id":49613,"server_id":18,"link":"photo_8043789.html","width":130,"caption":"Wren","height":128});
															thumbnails[651090] = clik.newPhoto({"id":651090,"src":"sunflower-detail1.jpg","galleries_id":49613,"server_id":18,"link":"photo_651090.html","width":130,"caption":"Sunflower","height":125});
															thumbnails[655140] = clik.newPhoto({"id":655140,"src":"Medal-21.jpg","galleries_id":49614,"server_id":18,"link":"photo_655140.html","width":130,"caption":"The Volunteer Reserves Service Medal","height":156});
															thumbnails[699713] = clik.newPhoto({"id":699713,"src":"Breadboard3.jpg","galleries_id":49607,"server_id":18,"link":"photo_699713.html","width":130,"caption":"Breadboard","height":127});
															thumbnails[8107791] = clik.newPhoto({"id":8107791,"src":"Blacksell-front-of-stone_thumb.jpg","galleries_id":49606,"server_id":18,"link":"photo_8107791.html","width":130,"caption":"Cornish slate ","height":216});
															thumbnails[652261] = clik.newPhoto({"id":652261,"src":"Medal-11.jpg","galleries_id":49614,"server_id":18,"link":"photo_652261.html","width":130,"caption":"The Queen's Volunteer Reserves Medal","height":132});
															thumbnails[8107796] = clik.newPhoto({"id":8107796,"src":"Blacksell--back-of-stone_thumb.jpg","galleries_id":49606,"server_id":18,"link":"photo_8107796.html","width":130,"caption":"Back of stone","height":209});
															thumbnails[8558511] = clik.newPhoto({"id":8558511,"src":"DD-lewis-headstone_thumb.jpg","galleries_id":49606,"server_id":18,"link":"photo_8558511.html","width":130,"caption":"Welsh slate ","height":198});
															thumbnails[5691090] = clik.newPhoto({"id":5691090,"src":"Christ_Church_inscription12_thumb.jpg","galleries_id":49609,"server_id":18,"link":"photo_5691090.html","width":130,"caption":"Christ Church Spitalfields ","height":180});
															thumbnails[651861] = clik.newPhoto({"id":651861,"src":"Dean-gallery1.jpg","galleries_id":49609,"server_id":18,"link":"photo_651861.html","width":130,"caption":"Dean Gallery, Edinburgh","height":151});
															thumbnails[652003] = clik.newPhoto({"id":652003,"src":"oak-leaves-detail-again1.jpg","galleries_id":49613,"server_id":18,"link":"photo_652003.html","width":130,"caption":"Oak leaves","height":106});
															thumbnails[661828] = clik.newPhoto({"id":661828,"src":"lux-umbra3.jpg","galleries_id":49612,"server_id":18,"link":"photo_661828.html","width":130,"caption":"Wooden Icon","height":166});
															thumbnails[691304] = clik.newPhoto({"id":691304,"src":"jasmine-card4.jpg","galleries_id":49615,"server_id":18,"link":"photo_691304.html","width":100,"caption":"","height":220});
															thumbnails[691529] = clik.newPhoto({"id":691529,"src":"paper-works1.jpg","galleries_id":49612,"server_id":18,"link":"photo_691529.html","width":130,"caption":"Proposal","height":136});
															thumbnails[5577895] = clik.newPhoto({"id":5577895,"src":"Stone-bowl_thumb.jpg","galleries_id":49607,"server_id":18,"link":"photo_5577895.html","width":130,"caption":"Stone bowl","height":87});
															thumbnails[664986] = clik.newPhoto({"id":664986,"src":"seven-dials-againthumb.jpg","galleries_id":49609,"server_id":18,"link":"photo_664986.html","width":130,"caption":"Seven Dials column sundials","height":229});
															thumbnails[651865] = clik.newPhoto({"id":651865,"src":"seven-dials-detail-again1.jpg","galleries_id":49609,"server_id":18,"link":"photo_651865.html","width":130,"caption":"Seven Dials, detail","height":137});
															thumbnails[691508] = clik.newPhoto({"id":691508,"src":"neon-32.jpg","galleries_id":49612,"server_id":18,"link":"photo_691508.html","width":130,"caption":"Neon","height":105});
															thumbnails[659193] = clik.newPhoto({"id":659193,"src":"delacroix3.jpg","galleries_id":49612,"server_id":18,"link":"photo_659193.html","width":130,"caption":"Fragment","height":98});
															thumbnails[5370455] = clik.newPhoto({"id":5370455,"src":"Calvocoressi-headstone1_thumb.jpg","galleries_id":49606,"server_id":18,"link":"photo_5370455.html","width":130,"caption":"Broughton Moor green slate","height":234});
															thumbnails[650636] = clik.newPhoto({"id":650636,"src":"table-detail-web3.jpg","galleries_id":49608,"server_id":18,"link":"photo_650636.html","width":130,"caption":"Elm Table inscription","height":110});
															thumbnails[651853] = clik.newPhoto({"id":651853,"src":"hyde-detail1.jpg","galleries_id":49613,"server_id":18,"link":"photo_651853.html","width":130,"caption":"Pin-oak leaves","height":120});
															thumbnails[689626] = clik.newPhoto({"id":689626,"src":"rear-garden1.jpg","galleries_id":52786,"server_id":18,"link":"photo_689626.html","width":130,"caption":"Back garden","height":191});
															thumbnails[691297] = clik.newPhoto({"id":691297,"src":"Ivy8.jpg","galleries_id":49615,"server_id":18,"link":"photo_691297.html","width":100,"caption":"","height":215});
															thumbnails[693853] = clik.newPhoto({"id":693853,"src":"Ron's-swift1.jpg","galleries_id":49610,"server_id":18,"link":"photo_693853.html","width":130,"caption":"Slate for a garden wall","height":125});
															thumbnails[691312] = clik.newPhoto({"id":691312,"src":"Spindle1.jpg","galleries_id":49615,"server_id":18,"link":"photo_691312.html","width":130,"caption":"","height":202});
															thumbnails[693857] = clik.newPhoto({"id":693857,"src":"Aga1.jpg","galleries_id":52786,"server_id":18,"link":"photo_693857.html","width":130,"caption":"Kitchen","height":188});
															thumbnails[653535] = clik.newPhoto({"id":653535,"src":"Keepsake-M1.jpg","galleries_id":49607,"server_id":18,"link":"photo_653535.html","width":130,"caption":"Keepsake","height":93});
															thumbnails[659435] = clik.newPhoto({"id":659435,"src":"Table-hands1.jpg","galleries_id":49608,"server_id":18,"link":"photo_659435.html","width":130,"caption":"Carving lettering","height":110});
															thumbnails[666750] = clik.newPhoto({"id":666750,"src":"tiles-x-rescan3.jpg","galleries_id":49607,"server_id":18,"link":"photo_666750.html","width":130,"caption":"Alphabet tiles","height":72});
															thumbnails[689630] = clik.newPhoto({"id":689630,"src":"Fireplace3.jpg","galleries_id":52786,"server_id":18,"link":"photo_689630.html","width":130,"caption":"Christmas at home","height":173});
															thumbnails[7943052] = clik.newPhoto({"id":7943052,"src":"Catterson_2_copy_thumb.JPG","galleries_id":49606,"server_id":18,"link":"photo_7943052.html","width":130,"caption":"Welsh slate ","height":226});
															thumbnails[3032650] = clik.newPhoto({"id":3032650,"src":"Ridley-stone-1-jpg_thumb.jpg","galleries_id":49606,"server_id":18,"link":"photo_3032650.html","width":130,"caption":"Portland stone","height":224});
															thumbnails[659205] = clik.newPhoto({"id":659205,"src":"Bodley-test1.jpg","galleries_id":49606,"server_id":18,"link":"photo_659205.html","width":130,"caption":"Portland Stone ","height":190});
															thumbnails[664988] = clik.newPhoto({"id":664988,"src":"dennys-rear-again1.jpg","galleries_id":49613,"server_id":18,"link":"photo_664988.html","width":130,"caption":"Moorhen","height":119});
															thumbnails[689621] = clik.newPhoto({"id":689621,"src":"garden-path1.jpg","galleries_id":52786,"server_id":18,"link":"photo_689621.html","width":130,"caption":"Garden path","height":136});
															thumbnails[691313] = clik.newPhoto({"id":691313,"src":"Snowdrop1.jpg","galleries_id":49615,"server_id":18,"link":"photo_691313.html","width":130,"caption":"","height":184});
															thumbnails[1135013] = clik.newPhoto({"id":1135013,"src":"Mrs-Marshall-stone1.jpg","galleries_id":49606,"server_id":18,"link":"photo_1135013.html","width":130,"caption":"Purbeck Thornback","height":221});
															thumbnails[651157] = clik.newPhoto({"id":651157,"src":"Doves-detail1.jpg","galleries_id":49613,"server_id":18,"link":"photo_651157.html","width":130,"caption":"Doves","height":89});
															thumbnails[656558] = clik.newPhoto({"id":656558,"src":"Highgate1.jpg","galleries_id":49608,"server_id":18,"link":"photo_656558.html","width":130,"caption":"Shop fascia lettering","height":57});
															thumbnails[691308] = clik.newPhoto({"id":691308,"src":"holly-card4.jpg","galleries_id":49615,"server_id":18,"link":"photo_691308.html","width":100,"caption":"","height":189});
															thumbnails[652267] = clik.newPhoto({"id":652267,"src":"feather1.jpg","galleries_id":49607,"server_id":18,"link":"photo_652267.html","width":130,"caption":"Keepsake for Ted Hughes","height":72});
															thumbnails[689618] = clik.newPhoto({"id":689618,"src":"studio-foxgloves6.jpg","galleries_id":52786,"server_id":18,"link":"photo_689618.html","width":130,"caption":"My studio","height":112});
															thumbnails[693847] = clik.newPhoto({"id":693847,"src":"Preschute-church-thumb.jpg","galleries_id":49609,"server_id":18,"link":"photo_693847.html","width":130,"caption":"Restoring a sundial","height":142});
															thumbnails[658400] = clik.newPhoto({"id":658400,"src":"garden-c-again1.jpg","galleries_id":49610,"server_id":18,"link":"photo_658400.html","width":130,"caption":"Garden stone","height":85});
															thumbnails[658408] = clik.newPhoto({"id":658408,"src":"new-shop-front-detail1.jpg","galleries_id":49608,"server_id":18,"link":"photo_658408.html","width":130,"caption":"Shop fascia (detail)","height":79});
															thumbnails[662018] = clik.newPhoto({"id":662018,"src":"red-alphabet3.jpg","galleries_id":49607,"server_id":18,"link":"photo_662018.html","width":130,"caption":"Alphabet","height":170});
															thumbnails[7256354] = clik.newPhoto({"id":7256354,"src":"Elm-bowl_thumb.jpg","galleries_id":49607,"server_id":18,"link":"photo_7256354.html","width":130,"caption":"Elm bowl","height":128});
															thumbnails[652274] = clik.newPhoto({"id":652274,"src":"64A1.jpg","galleries_id":49608,"server_id":18,"link":"photo_652274.html","width":130,"caption":"Carved shop number","height":75});
															thumbnails[691330] = clik.newPhoto({"id":691330,"src":"Card-of-home1.jpg","galleries_id":49615,"server_id":18,"link":"photo_691330.html","width":130,"caption":"","height":160});
															thumbnails[8783129] = clik.newPhoto({"id":8783129,"src":"barneyheadstone_thumb.jpg","galleries_id":49606,"server_id":18,"link":"photo_8783129.html","width":130,"caption":"Purbeck PondFree ","height":191});
															thumbnails[691328] = clik.newPhoto({"id":691328,"src":"Conock-card1.jpg","galleries_id":49615,"server_id":18,"link":"photo_691328.html","width":130,"caption":"","height":115});
															thumbnails[651995] = clik.newPhoto({"id":651995,"src":"holm-oak-card3.jpg","galleries_id":49615,"server_id":18,"link":"photo_651995.html","width":130,"caption":"","height":142});
															thumbnails[655139] = clik.newPhoto({"id":655139,"src":"rosehip-card1.jpg","galleries_id":49615,"server_id":18,"link":"photo_655139.html","width":130,"caption":"","height":60});
															thumbnails[695956] = clik.newPhoto({"id":695956,"src":"sun-stone-winter-detail1.jpg","galleries_id":49610,"server_id":18,"link":"photo_695956.html","width":130,"caption":"Detail of sun stone","height":84});
															thumbnails[7054613] = clik.newPhoto({"id":7054613,"src":"Hare-Krishna-post-12_thumb.jpg","galleries_id":49608,"server_id":18,"link":"photo_7054613.html","width":130,"caption":"Oak post for George Harrison Memorial","height":237});
															thumbnails[655136] = clik.newPhoto({"id":655136,"src":"blossom-card1.jpg","galleries_id":49615,"server_id":18,"link":"photo_655136.html","width":130,"caption":"","height":61});
															thumbnails[659626] = clik.newPhoto({"id":659626,"src":"moss1.jpg","galleries_id":49610,"server_id":18,"link":"photo_659626.html","width":130,"caption":"Moss stone","height":102});
															thumbnails[686790] = clik.newPhoto({"id":686790,"src":"somewhere-to-sit1.jpg","galleries_id":52786,"server_id":18,"link":"photo_686790.html","width":130,"caption":"A place to sit","height":105});
															thumbnails[690939] = clik.newPhoto({"id":690939,"src":"flowers1.jpg","galleries_id":52786,"server_id":18,"link":"photo_690939.html","width":130,"caption":"Flower border","height":101});
															thumbnails[692059] = clik.newPhoto({"id":692059,"src":"Unfurl1.jpg","galleries_id":52786,"server_id":18,"link":"photo_692059.html","width":130,"caption":"Garden stone","height":106});
															thumbnails[659196] = clik.newPhoto({"id":659196,"src":"sheep1.jpg","galleries_id":49612,"server_id":18,"link":"photo_659196.html","width":130,"caption":"Sheepfold inscription","height":59});
															thumbnails[660943] = clik.newPhoto({"id":660943,"src":"griffen3.jpg","galleries_id":49613,"server_id":18,"link":"photo_660943.html","width":130,"caption":"Heraldic  griffin","height":90});
															thumbnails[690941] = clik.newPhoto({"id":690941,"src":"Hills1.jpg","galleries_id":52786,"server_id":18,"link":"photo_690941.html","width":130,"caption":"Walkers Hill","height":93});
															thumbnails[652018] = clik.newPhoto({"id":652018,"src":"Yew1.jpg","galleries_id":49609,"server_id":18,"link":"photo_652018.html","width":130,"caption":"Millenium stone","height":104});
															thumbnails[659197] = clik.newPhoto({"id":659197,"src":"Talbot-rice1.jpg","galleries_id":49606,"server_id":18,"link":"photo_659197.html","width":130,"caption":"Purbeck Thornback ","height":179});
															thumbnails[659584] = clik.newPhoto({"id":659584,"src":"eclogue1.jpg","galleries_id":49612,"server_id":18,"link":"photo_659584.html","width":130,"caption":"Gate","height":51});
															thumbnails[660949] = clik.newPhoto({"id":660949,"src":"cat-web1.jpg","galleries_id":49613,"server_id":18,"link":"photo_660949.html","width":130,"caption":"Heraldic cat","height":85});
															thumbnails[651542] = clik.newPhoto({"id":651542,"src":"Greek-bench1.jpg","galleries_id":49608,"server_id":18,"link":"photo_651542.html","width":130,"caption":"Memorial bench","height":237});
															thumbnails[653556] = clik.newPhoto({"id":653556,"src":"calne1.jpg","galleries_id":49609,"server_id":18,"link":"photo_653556.html","width":130,"caption":"Tree rings","height":69});
															thumbnails[699219] = clik.newPhoto({"id":699219,"src":"21.jpg","galleries_id":49607,"server_id":18,"link":"photo_699219.html","width":130,"caption":"House number","height":132});
															thumbnails[8657698] = clik.newPhoto({"id":8657698,"src":"Pate-inscription_thumb.jpg","galleries_id":49608,"server_id":18,"link":"photo_8657698.html","width":130,"caption":"Memorial ","height":213});
															thumbnails[8657906] = clik.newPhoto({"id":8657906,"src":"Organ-panel_31EE2BDD-24E8-5EC4-4FFD7A15011039E0_thumb.jpg","galleries_id":49608,"server_id":18,"link":"photo_8657906.html","width":130,"caption":"Organ inscription","height":190});
															thumbnails[656033] = clik.newPhoto({"id":656033,"src":"dunbar-1.jpg","galleries_id":49606,"server_id":18,"link":"photo_656033.html","width":130,"caption":"Riven Caithness Slate ","height":87});
															thumbnails[6469173] = clik.newPhoto({"id":6469173,"src":"Yew-Tree_thumb.jpg","galleries_id":49608,"server_id":18,"link":"photo_6469173.html","width":130,"caption":"Yew tree inscription (detail)","height":77});
															thumbnails[662222] = clik.newPhoto({"id":662222,"src":"bowl1.jpg","galleries_id":49608,"server_id":18,"link":"photo_662222.html","width":130,"caption":"Bowl","height":126});
															thumbnails[667608] = clik.newPhoto({"id":667608,"src":"butchers-shop3.jpg","galleries_id":49608,"server_id":18,"link":"photo_667608.html","width":130,"caption":"Old Butcher's Shop (detail)","height":44});
															thumbnails[659279] = clik.newPhoto({"id":659279,"src":"Highgate3.jpg","galleries_id":49609,"server_id":18,"link":"photo_659279.html","width":130,"caption":"Shop fascia lettering","height":57});
															thumbnails[660115] = clik.newPhoto({"id":660115,"src":"sweetest..3.jpg","galleries_id":49609,"server_id":18,"link":"photo_660115.html","width":130,"caption":"Stones for wetland park","height":54});
															thumbnails[658419] = clik.newPhoto({"id":658419,"src":"Q1.jpg","galleries_id":49610,"server_id":18,"link":"photo_658419.html","width":130,"caption":"Stone for a Quincunx","height":100});
															thumbnails[651545] = clik.newPhoto({"id":651545,"src":"Flight1.jpg","galleries_id":49610,"server_id":18,"link":"photo_651545.html","width":130,"caption":"Standing stone","height":353});
															thumbnails[7940735] = clik.newPhoto({"id":7940735,"src":"Pole-2_copy_thumb.jpg","galleries_id":49610,"server_id":18,"link":"photo_7940735.html","width":130,"caption":"Carved oak pole for an arboretum","height":191});
															thumbnails[651120] = clik.newPhoto({"id":651120,"src":"Idyll-web1.jpg","galleries_id":49610,"server_id":18,"link":"photo_651120.html","width":130,"caption":"Carved slate","height":186});
															thumbnails[1137715] = clik.newPhoto({"id":1137715,"src":"Hellebores-detail-indoors5.jpg","galleries_id":49613,"server_id":18,"link":"photo_1137715.html","width":130,"caption":"Hellebores","height":87});
															thumbnails[1356232] = clik.newPhoto({"id":1356232,"src":"A-grey-day5.jpg","galleries_id":49610,"server_id":18,"link":"photo_1356232.html","width":130,"caption":"Garden wall inscription","height":91});
															thumbnails[1355965] = clik.newPhoto({"id":1355965,"src":"greydaydetail1.jpg","galleries_id":49610,"server_id":18,"link":"photo_1355965.html","width":130,"caption":"Detail of garden wall inscription","height":109});
															thumbnails[5371328] = clik.newPhoto({"id":5371328,"src":"pebble_thumb.jpg","galleries_id":49607,"server_id":18,"link":"photo_5371328.html","width":130,"caption":"Pebble","height":106});
															thumbnails[3095786] = clik.newPhoto({"id":3095786,"src":"yew-tree-card_thumb.jpg","galleries_id":49615,"server_id":18,"link":"photo_3095786.html","width":130,"caption":"","height":185});
															thumbnails[1697783] = clik.newPhoto({"id":1697783,"src":"Lunaria_thumb.jpg","galleries_id":49615,"server_id":18,"link":"photo_1697783.html","width":130,"caption":"","height":182});
															thumbnails[5374769] = clik.newPhoto({"id":5374769,"src":"bee_thumb.jpg","galleries_id":49607,"server_id":18,"link":"photo_5374769.html","width":130,"caption":"Bowl with carved bee","height":123});
															thumbnails[4620644] = clik.newPhoto({"id":4620644,"src":"Laurus-card1_thumb.jpg","galleries_id":49615,"server_id":18,"link":"photo_4620644.html","width":130,"caption":"","height":186});
															thumbnails[7256335] = clik.newPhoto({"id":7256335,"src":"Bowl-detail_thumb.jpg","galleries_id":49608,"server_id":18,"link":"photo_7256335.html","width":130,"caption":"Carved bowl","height":83});
															thumbnails[5369805] = clik.newPhoto({"id":5369805,"src":"Bee-hives_thumb.jpg","galleries_id":49610,"server_id":18,"link":"photo_5369805.html","width":130,"caption":"Beehive inscriptions","height":104});
															thumbnails[5369810] = clik.newPhoto({"id":5369810,"src":"Bees-2_thumb.jpg","galleries_id":49610,"server_id":18,"link":"photo_5369810.html","width":130,"caption":"Detail of beehive","height":90});
															thumbnails[7643777] = clik.newPhoto({"id":7643777,"src":"Mistletoe-christmas-card_thumb.jpg","galleries_id":49615,"server_id":18,"link":"photo_7643777.html","width":130,"caption":"","height":94});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[49608] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Inscriptions in wood","link":"gallery_49608.html","maxRecords":0.0,"photoIDs":[650636.0,659435.0,656558.0,658408.0,652274.0,7054613.0,651542.0,8657698.0,8657906.0,6469173.0,662222.0,667608.0,7256335.0],"skipIndex":0,"section_code":"gallery","featured_images":650636.0,"id":49608,"singleSection":false});				  						galleries[49607] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Small works ","link":"gallery_49607.html","maxRecords":0.0,"photoIDs":[699713.0,5577895.0,653535.0,666750.0,652267.0,662018.0,7256354.0,699219.0,5371328.0,5374769.0],"skipIndex":0,"section_code":"gallery","featured_images":666750.0,"id":49607,"singleSection":false});				  						galleries[49610] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Garden inscriptions","link":"gallery_49610.html","maxRecords":0.0,"photoIDs":[693853.0,658400.0,695956.0,659626.0,658419.0,651545.0,7940735.0,651120.0,1356232.0,1355965.0,5369805.0,5369810.0],"skipIndex":0,"section_code":"gallery","featured_images":658400.0,"id":49610,"singleSection":false});				  						galleries[49612] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Ian Hamilton Finlay","link":"gallery_49612.html","maxRecords":0.0,"photoIDs":[661828.0,691529.0,691508.0,659193.0,659196.0,659584.0],"skipIndex":0,"section_code":"gallery","featured_images":659196.0,"id":49612,"singleSection":false});				  						galleries[49606] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Memorials","link":"gallery_49606.html","maxRecords":0.0,"photoIDs":[8107791.0,8107796.0,8558511.0,5370455.0,7943052.0,3032650.0,659205.0,1135013.0,8783129.0,659197.0,656033.0],"skipIndex":0,"section_code":"gallery","featured_images":656033.0,"id":49606,"singleSection":false});				  						galleries[49609] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Public inscriptions","link":"gallery_49609.html","maxRecords":0.0,"photoIDs":[5691090.0,651861.0,664986.0,651865.0,693847.0,652018.0,653556.0,659279.0,660115.0],"skipIndex":0,"section_code":"gallery","featured_images":651865.0,"id":49609,"singleSection":false});				  						galleries[49613] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Decorative carving","link":"gallery_49613.html","maxRecords":0.0,"photoIDs":[8043789.0,651090.0,652003.0,651853.0,664988.0,651157.0,660943.0,660949.0,1137715.0],"skipIndex":0,"section_code":"gallery","featured_images":8043789.0,"id":49613,"singleSection":false});				  						galleries[49614] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Medals","link":"gallery_49614.html","maxRecords":0.0,"photoIDs":[655140.0,652261.0],"skipIndex":0,"section_code":"gallery","featured_images":652261.0,"id":49614,"singleSection":false});				  						galleries[49615] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Linocuts","link":"gallery_49615.html","maxRecords":0.0,"photoIDs":[691304.0,691297.0,691312.0,691313.0,691308.0,691330.0,691328.0,651995.0,655139.0,655136.0,3095786.0,1697783.0,4620644.0,7643777.0],"skipIndex":0,"section_code":"gallery","featured_images":651995.0,"id":49615,"singleSection":false});				  						galleries[52786] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"My home","link":"gallery_52786.html","maxRecords":0.0,"photoIDs":[689626.0,693857.0,689630.0,689621.0,689618.0,686790.0,690939.0,692059.0,690941.0],"skipIndex":0,"section_code":"gallery","featured_images":689618.0,"id":52786,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '7406122';
imageSets[2] = '8043789,652261,651865,650636,666750,689618,658400,651995,659196,656033';
imageSets[3] = '8783129,8657906,8657698,8558511,8107796,8107791,8043789,7943052,7940735,7824905,7643777,7553919,7523133,7523078,7523077,7523065,7523050,7406122,7256354,7256335,7054613,6469173,5691090,5577895,5374769,5371328,5370455,5369810,5369805,4620644,3095786,3032650,1697783,1356232,1355965,1137715,1135013,700106,699713,699219,695956,693857,693853,693847,692059,691529,691508,691330,691328,691313';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/carolinewebb/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/carolinewebb/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/carolinewebb/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/carolinewebb/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/carolinewebb/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/carolinewebb/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/carolinewebb/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/carolinewebb/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/carolinewebb/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/carolinewebb/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/carolinewebb/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/carolinewebb/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/carolinewebb/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/carolinewebb/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/carolinewebb/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/carolinewebb/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/carolinewebb/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/carolinewebb/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/carolinewebb/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/carolinewebb/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/carolinewebb/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/carolinewebb/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/carolinewebb/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/carolinewebb/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/carolinewebb/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 += 'gallery.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$detailContainer:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
		op = $.extend({},defaults,options),
		html = '', temp = '',
		photoId = op.nextPhoto.id,
		photoCaption = ''+op.nextPhoto.caption,
		photoSrc = op.nextPhoto.src;
	
	if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'Caroline Webb Lettercarver & Lettering Designer : ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else {
		
	}
	if (this.item_price !== '' || 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;
	}
}

			

