window.thumbnails = {};
															thumbnails[2858602] = clik.newPhoto({"id":2858602,"src":"Stitch Cloth Paper_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Stitch Cloth Paper and Paint","height":184});
															thumbnails[5247271] = clik.newPhoto({"id":5247271,"src":"landscapebag_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Landscape Bag","height":173});
															thumbnails[5864061] = clik.newPhoto({"id":5864061,"src":"dvd_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":183});
															thumbnails[8301498] = clik.newPhoto({"id":8301498,"src":"Copy_of_Bird_Garden_001_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":183});
															thumbnails[8995212] = clik.newPhoto({"id":8995212,"src":"Bejewelled_Bag_072_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[841233] = clik.newPhoto({"id":841233,"src":"Sundialdiptychopen_thumb.JPG","galleries_id":177914,"server_id":1,"link":"photo_841233.html","width":130,"caption":"Sundial Diptych","height":173});
															thumbnails[841291] = clik.newPhoto({"id":841291,"src":"Sundialdiptychopendetail_thumb.JPG","galleries_id":177914,"server_id":1,"link":"photo_841291.html","width":130,"caption":"Sundial Diptych, detail","height":173});
															thumbnails[841301] = clik.newPhoto({"id":841301,"src":"SundialDiptychclosed_thumb.JPG","galleries_id":177914,"server_id":1,"link":"photo_841301.html","width":130,"caption":"Sundial Diptych, closed","height":116});
															thumbnails[841342] = clik.newPhoto({"id":841342,"src":"bsdoorsopen 2_thumb.JPG","galleries_id":177914,"server_id":1,"link":"photo_841342.html","width":130,"caption":"Indian Book Shrine","height":211});
															thumbnails[841365] = clik.newPhoto({"id":841365,"src":"bsdoorsopendetail2_thumb.JPG","galleries_id":177914,"server_id":1,"link":"photo_841365.html","width":130,"caption":"Indian Book Shrine, detail","height":173});
															thumbnails[841467] = clik.newPhoto({"id":841467,"src":"bejewelledbags_thumb.jpg","galleries_id":64892,"server_id":1,"link":"photo_841467.html","width":130,"caption":"Bejewelled Bags","height":173});
															thumbnails[841591] = clik.newPhoto({"id":841591,"src":"dreamsampler_thumb.jpg","galleries_id":64213,"server_id":1,"link":"photo_841591.html","width":130,"caption":"Dream Sampler","height":98});
															thumbnails[841598] = clik.newPhoto({"id":841598,"src":"livelifebag_thumb.jpg","galleries_id":64892,"server_id":1,"link":"photo_841598.html","width":130,"caption":"Live Life Bag","height":173});
															thumbnails[841608] = clik.newPhoto({"id":841608,"src":"travel_thumb.jpg","galleries_id":64892,"server_id":1,"link":"photo_841608.html","width":130,"caption":"Steamer Boxes","height":173});
															thumbnails[841609] = clik.newPhoto({"id":841609,"src":"traveldetail_thumb.jpg","galleries_id":64892,"server_id":1,"link":"photo_841609.html","width":130,"caption":"Steamer boxes","height":98});
															thumbnails[841627] = clik.newPhoto({"id":841627,"src":"Babel detail 11_thumb.jpg","galleries_id":64892,"server_id":1,"link":"photo_841627.html","width":130,"caption":"babel detail","height":197});
															thumbnails[841630] = clik.newPhoto({"id":841630,"src":"uriel_thumb.jpg","galleries_id":64892,"server_id":1,"link":"photo_841630.html","width":130,"caption":"Uriel","height":173});
															thumbnails[841654] = clik.newPhoto({"id":841654,"src":"unfoldingworddetail2_thumb.jpg","galleries_id":64892,"server_id":1,"link":"photo_841654.html","width":130,"caption":"Unfolding Word","height":193});
															thumbnails[841663] = clik.newPhoto({"id":841663,"src":"wakeup_thumb.jpg","galleries_id":64892,"server_id":1,"link":"photo_841663.html","width":130,"caption":"Wake Up (The Ledbury Rap)","height":194});
															thumbnails[841665] = clik.newPhoto({"id":841665,"src":"Wakeupdetail 1_thumb.jpg","galleries_id":64892,"server_id":1,"link":"photo_841665.html","width":130,"caption":"Wake Up, detail","height":197});
															thumbnails[841672] = clik.newPhoto({"id":841672,"src":"wakeupdetaila_thumb.jpg","galleries_id":64892,"server_id":1,"link":"photo_841672.html","width":130,"caption":"wake up, detail","height":87});
															thumbnails[875282] = clik.newPhoto({"id":875282,"src":"mixedmediabooks_thumb.JPG","galleries_id":177914,"server_id":1,"link":"photo_875282.html","width":130,"caption":"Mixed Media Notebooks","height":159});
															thumbnails[875300] = clik.newPhoto({"id":875300,"src":"indianartifact_thumb.JPG","galleries_id":177914,"server_id":1,"link":"photo_875300.html","width":130,"caption":"Indian Artifact","height":200});
															thumbnails[875388] = clik.newPhoto({"id":875388,"src":"mixed media010_thumb.JPG","galleries_id":177914,"server_id":1,"link":"photo_875388.html","width":130,"caption":"Indian Artifact (detail)","height":173});
															thumbnails[886853] = clik.newPhoto({"id":886853,"src":"alteredbook1_thumb.jpg","galleries_id":68009,"server_id":1,"link":"photo_886853.html","width":130,"caption":"Altered book","height":104});
															thumbnails[928507] = clik.newPhoto({"id":928507,"src":"threepodthings2_thumb.jpg","galleries_id":64892,"server_id":1,"link":"photo_928507.html","width":130,"caption":"Three Pod Things","height":173});
															thumbnails[1148629] = clik.newPhoto({"id":1148629,"src":"tulip_thumb.jpg","galleries_id":64213,"server_id":1,"link":"photo_1148629.html","width":130,"caption":"tulip, mixed media, oil pastel","height":205});
															thumbnails[1435088] = clik.newPhoto({"id":1435088,"src":"3spikeyflowers_thumb.jpg","galleries_id":64892,"server_id":1,"link":"photo_1435088.html","width":130,"caption":"","height":173});
															thumbnails[1449170] = clik.newPhoto({"id":1449170,"src":"Hughes, A Night Garden, A 002_thumb.jpg","galleries_id":64892,"server_id":1,"link":"photo_1449170.html","width":130,"caption":"Night Garden","height":100});
															thumbnails[1722248] = clik.newPhoto({"id":1722248,"src":"long purse001_thumb.JPG","galleries_id":64892,"server_id":1,"link":"photo_1722248.html","width":130,"caption":"Long purse ","height":254});
															thumbnails[1722250] = clik.newPhoto({"id":1722250,"src":"long purse002_thumb.JPG","galleries_id":64892,"server_id":1,"link":"photo_1722250.html","width":130,"caption":"long purse detail","height":173});
															thumbnails[1722349] = clik.newPhoto({"id":1722349,"src":"cosmosbw2_thumb.jpg","galleries_id":68009,"server_id":1,"link":"photo_1722349.html","width":130,"caption":"Cosmos bookwrap","height":177});
															thumbnails[1722351] = clik.newPhoto({"id":1722351,"src":"cosmos detail_thumb.jpg","galleries_id":68009,"server_id":1,"link":"photo_1722351.html","width":130,"caption":"Cosmas bookwrap detail","height":144});
															thumbnails[1722354] = clik.newPhoto({"id":1722354,"src":"flower1 copy_thumb.jpg","galleries_id":68009,"server_id":1,"link":"photo_1722354.html","width":130,"caption":"Flower Bookwrap","height":191});
															thumbnails[1722358] = clik.newPhoto({"id":1722358,"src":"garden copy_thumb.jpg","galleries_id":68009,"server_id":1,"link":"photo_1722358.html","width":130,"caption":"Garden Bookwrap","height":180});
															thumbnails[1722360] = clik.newPhoto({"id":1722360,"src":"garden detail_thumb.jpg","galleries_id":68009,"server_id":1,"link":"photo_1722360.html","width":130,"caption":"Garden Bookwrap detail","height":111});
															thumbnails[1722361] = clik.newPhoto({"id":1722361,"src":"Pebbles copy_thumb.jpg","galleries_id":68009,"server_id":1,"link":"photo_1722361.html","width":130,"caption":"Pebbles Bookwrap","height":184});
															thumbnails[1722364] = clik.newPhoto({"id":1722364,"src":"Pebbles detail_thumb.jpg","galleries_id":68009,"server_id":1,"link":"photo_1722364.html","width":130,"caption":"Pebbles bookwrap detail","height":114});
															thumbnails[1722421] = clik.newPhoto({"id":1722421,"src":"memory ship_thumb.jpg","galleries_id":64213,"server_id":1,"link":"photo_1722421.html","width":130,"caption":"Memory Ship poem by Fiona Sampson","height":83});
															thumbnails[1722422] = clik.newPhoto({"id":1722422,"src":"Memory Ship detail 1_thumb.jpg","galleries_id":64213,"server_id":1,"link":"photo_1722422.html","width":130,"caption":"Memory Ship detail","height":87});
															thumbnails[1779015] = clik.newPhoto({"id":1779015,"src":"trinity 006_thumb.jpg","galleries_id":64892,"server_id":1,"link":"photo_1779015.html","width":130,"caption":"Trinity","height":124});
															thumbnails[1779018] = clik.newPhoto({"id":1779018,"src":"trinity 013_thumb.jpg","galleries_id":64892,"server_id":1,"link":"photo_1779018.html","width":130,"caption":"Trinity detail","height":98});
															thumbnails[1779022] = clik.newPhoto({"id":1779022,"src":"trinity 015_thumb.jpg","galleries_id":64892,"server_id":1,"link":"photo_1779022.html","width":130,"caption":"Trinity detail","height":173});
															thumbnails[2303523] = clik.newPhoto({"id":2303523,"src":"hungwithstars_thumb.jpg","galleries_id":64892,"server_id":1,"link":"photo_2303523.html","width":130,"caption":"Hung with Stars.","height":181});
															thumbnails[3300082] = clik.newPhoto({"id":3300082,"src":"bookwrap 011_thumb.jpg","galleries_id":68009,"server_id":1,"link":"photo_3300082.html","width":130,"caption":"new bookwrap","height":176});
															thumbnails[3300119] = clik.newPhoto({"id":3300119,"src":"Image37_thumb.jpg","galleries_id":64892,"server_id":1,"link":"photo_3300119.html","width":130,"caption":"Seasons Greetings","height":95});
															thumbnails[3426506] = clik.newPhoto({"id":3426506,"src":"Madi_thumb.JPG","galleries_id":368524,"server_id":1,"link":"photo_3426506.html","width":130,"caption":"indian artifact by madi","height":173});
															thumbnails[3428316] = clik.newPhoto({"id":3428316,"src":"madi sundial open_thumb.jpg","galleries_id":368524,"server_id":1,"link":"photo_3428316.html","width":130,"caption":"Madi's Sundial","height":218});
															thumbnails[3428322] = clik.newPhoto({"id":3428322,"src":"madi sundial closed_thumb.jpg","galleries_id":368524,"server_id":1,"link":"photo_3428322.html","width":130,"caption":"Madi's sundial closed","height":113});
															thumbnails[4646189] = clik.newPhoto({"id":4646189,"src":"go_forth_thumb.jpg","galleries_id":64213,"server_id":1,"link":"photo_4646189.html","width":130,"caption":"The Young Masefield Goes Forth","height":192});
															thumbnails[4646226] = clik.newPhoto({"id":4646226,"src":"go_forth_detail_thumb.jpg","galleries_id":64213,"server_id":1,"link":"photo_4646226.html","width":130,"caption":"Go Forth detail","height":173});
															thumbnails[4957266] = clik.newPhoto({"id":4957266,"src":"amulets001_thumb.JPG","galleries_id":64213,"server_id":1,"link":"photo_4957266.html","width":130,"caption":"Mica Amulet","height":219});
															thumbnails[5154253] = clik.newPhoto({"id":5154253,"src":"house_project_002_thumb.jpg","galleries_id":68009,"server_id":1,"link":"photo_5154253.html","width":130,"caption":"House book front cover","height":176});
															thumbnails[5154299] = clik.newPhoto({"id":5154299,"src":"house_project_001_thumb.jpg","galleries_id":68009,"server_id":1,"link":"photo_5154299.html","width":130,"caption":"House book, front cover","height":209});
															thumbnails[5154303] = clik.newPhoto({"id":5154303,"src":"house_project_003_thumb.jpg","galleries_id":68009,"server_id":1,"link":"photo_5154303.html","width":130,"caption":"House book page 1","height":204});
															thumbnails[5247250] = clik.newPhoto({"id":5247250,"src":"abstractbag_thumb.jpg","galleries_id":64892,"server_id":1,"link":"photo_5247250.html","width":130,"caption":"Abstract Bag","height":173});
															thumbnails[5247268] = clik.newPhoto({"id":5247268,"src":"klimtbag_thumb.jpg","galleries_id":64892,"server_id":1,"link":"photo_5247268.html","width":130,"caption":"Large Klimt Bag","height":173});
															thumbnails[5247273] = clik.newPhoto({"id":5247273,"src":"a4klimtbag_thumb.jpg","galleries_id":64892,"server_id":1,"link":"photo_5247273.html","width":130,"caption":"Small Klimt bag","height":98});
															thumbnails[5247274] = clik.newPhoto({"id":5247274,"src":"hundertbag_thumb.jpg","galleries_id":64892,"server_id":1,"link":"photo_5247274.html","width":130,"caption":"Hundertwasser Bag","height":98});
															thumbnails[6268481] = clik.newPhoto({"id":6268481,"src":"Copy_of_Chorus_thumb.jpg","galleries_id":64892,"server_id":1,"link":"photo_6268481.html","width":130,"caption":"","height":173});
															thumbnails[6268501] = clik.newPhoto({"id":6268501,"src":"Copy_of_Chorus3_thumb.jpg","galleries_id":64892,"server_id":1,"link":"photo_6268501.html","width":130,"caption":"Chorus","height":173});
															thumbnails[6268502] = clik.newPhoto({"id":6268502,"src":"Copy_of_gardens_002_thumb.jpg","galleries_id":64892,"server_id":1,"link":"photo_6268502.html","width":130,"caption":"Straight backed ladies","height":173});
															thumbnails[6268504] = clik.newPhoto({"id":6268504,"src":"Copy_of_Last_of_Summer1_thumb.jpg","galleries_id":64892,"server_id":1,"link":"photo_6268504.html","width":130,"caption":"Last of Summer","height":173});
															thumbnails[6268506] = clik.newPhoto({"id":6268506,"src":"Copy_of_Last_of_Summer2_thumb.jpg","galleries_id":64892,"server_id":1,"link":"photo_6268506.html","width":130,"caption":"Last of Summer","height":179});
															thumbnails[6268513] = clik.newPhoto({"id":6268513,"src":"Copy_of_Maids2_thumb.jpg","galleries_id":64892,"server_id":1,"link":"photo_6268513.html","width":130,"caption":"Maids of the Garden","height":173});
															thumbnails[6268515] = clik.newPhoto({"id":6268515,"src":"Copy_of_Sraight3_thumb.jpg","galleries_id":64892,"server_id":1,"link":"photo_6268515.html","width":130,"caption":"Straight Backed Ladies","height":173});
															thumbnails[6268517] = clik.newPhoto({"id":6268517,"src":"Copy_of_We_Can_Fly1_thumb.jpg","galleries_id":64892,"server_id":1,"link":"photo_6268517.html","width":130,"caption":"We Can Fly","height":180});
															thumbnails[6268522] = clik.newPhoto({"id":6268522,"src":"Copy_of_We_Can_Fly3_thumb.jpg","galleries_id":64892,"server_id":1,"link":"photo_6268522.html","width":130,"caption":"We Can Fly","height":173});
															thumbnails[6405680] = clik.newPhoto({"id":6405680,"src":"Copy_of_Spain_149_thumb.jpg","galleries_id":353943,"server_id":1,"link":"photo_6405680.html","width":130,"caption":"","height":98});
															thumbnails[6405706] = clik.newPhoto({"id":6405706,"src":"Copy_of_Spain_148_thumb.jpg","galleries_id":353943,"server_id":1,"link":"photo_6405706.html","width":130,"caption":"Granada's Alhambra visit, notes and all","height":98});
															thumbnails[6405709] = clik.newPhoto({"id":6405709,"src":"Copy_of_Spain_152_thumb.jpg","galleries_id":353943,"server_id":1,"link":"photo_6405709.html","width":130,"caption":"Alhambra again","height":98});
															thumbnails[6405715] = clik.newPhoto({"id":6405715,"src":"Copy_of_Spain_147_thumb.jpg","galleries_id":353943,"server_id":1,"link":"photo_6405715.html","width":130,"caption":"A terrifying journey to the mountain top village of Comares","height":98});
															thumbnails[6405718] = clik.newPhoto({"id":6405718,"src":"Copy_of_Spain_150_thumb.jpg","galleries_id":353943,"server_id":1,"link":"photo_6405718.html","width":130,"caption":"Picasso museum Malaga.","height":98});
															thumbnails[6405724] = clik.newPhoto({"id":6405724,"src":"Copy_of_Spain_thumb.jpg","galleries_id":353943,"server_id":1,"link":"photo_6405724.html","width":130,"caption":"Picasso again, does the last picture look familiar?","height":98});
															thumbnails[6405725] = clik.newPhoto({"id":6405725,"src":"Copy_of_Spain_151_thumb.jpg","galleries_id":353943,"server_id":1,"link":"photo_6405725.html","width":130,"caption":"last day, cockroaches, sun, sand and Paella.","height":98});
															thumbnails[6770165] = clik.newPhoto({"id":6770165,"src":"Marjolijin_van_Wijk_thumb.JPG","galleries_id":368524,"server_id":1,"link":"photo_6770165.html","width":130,"caption":"Marjolijn's super piece from the Netherlands made from a Klimt kit she bought at The Festival of Quilts","height":187});
															thumbnails[7021517] = clik.newPhoto({"id":7021517,"src":"Sampler_thumb.jpg","galleries_id":368524,"server_id":1,"link":"photo_7021517.html","width":130,"caption":"","height":169});
															thumbnails[7150351] = clik.newPhoto({"id":7150351,"src":"exploring_velvet_018_thumb.jpg","galleries_id":64892,"server_id":1,"link":"photo_7150351.html","width":130,"caption":"'Winter Came Too Early'","height":173});
															thumbnails[7150403] = clik.newPhoto({"id":7150403,"src":"birds_006_thumb.jpg","galleries_id":64892,"server_id":1,"link":"photo_7150403.html","width":130,"caption":"Birdee's","height":98});
															thumbnails[7150417] = clik.newPhoto({"id":7150417,"src":"Copy_of_oz_001_thumb.jpg","galleries_id":64892,"server_id":1,"link":"photo_7150417.html","width":130,"caption":"coolibah trees","height":229});
															thumbnails[7150419] = clik.newPhoto({"id":7150419,"src":"Copy_of_oz_002_thumb.jpg","galleries_id":64892,"server_id":1,"link":"photo_7150419.html","width":130,"caption":"Kora and Palms","height":195});
															thumbnails[7885592] = clik.newPhoto({"id":7885592,"src":"odds_020_thumb.jpg","galleries_id":68009,"server_id":1,"link":"photo_7885592.html","width":130,"caption":"Altered book round robin","height":173});
															thumbnails[7885594] = clik.newPhoto({"id":7885594,"src":"odds_022_thumb.jpg","galleries_id":68009,"server_id":1,"link":"photo_7885594.html","width":130,"caption":"Altered book round robin","height":98});
															thumbnails[7885599] = clik.newPhoto({"id":7885599,"src":"odds_023_thumb.jpg","galleries_id":68009,"server_id":1,"link":"photo_7885599.html","width":130,"caption":"","height":98});
															thumbnails[7956690] = clik.newPhoto({"id":7956690,"src":"Angie_Hughes_thumb.JPG","galleries_id":428313,"server_id":1,"link":"photo_7956690.html","width":130,"caption":"","height":98});
															thumbnails[7956712] = clik.newPhoto({"id":7956712,"src":"hundetrwasser_onions_thumb.JPG","galleries_id":428313,"server_id":1,"link":"photo_7956712.html","width":130,"caption":"","height":98});
															thumbnails[7956778] = clik.newPhoto({"id":7956778,"src":"NZ_043_thumb.jpg","galleries_id":428313,"server_id":1,"link":"photo_7956778.html","width":130,"caption":"","height":173});
															thumbnails[7956879] = clik.newPhoto({"id":7956879,"src":"wolveseg_5A10B6EA-1EC9-DFB6-09FC3D86C3A2FC69_thumb.JPG","galleries_id":428313,"server_id":1,"link":"photo_7956879.html","width":130,"caption":"Wolverhampton EG","height":247});
															thumbnails[7956890] = clik.newPhoto({"id":7956890,"src":"wolves3_thumb.JPG","galleries_id":428313,"server_id":1,"link":"photo_7956890.html","width":130,"caption":"Angie being busy","height":98});
															thumbnails[7956927] = clik.newPhoto({"id":7956927,"src":"machine_embroidery_002_thumb.jpg","galleries_id":428313,"server_id":1,"link":"photo_7956927.html","width":130,"caption":"Machine Embroidery","height":98});
															thumbnails[7957023] = clik.newPhoto({"id":7957023,"src":"machine_embroidery_003_thumb.jpg","galleries_id":428313,"server_id":1,"link":"photo_7957023.html","width":130,"caption":"Eileen assesing the situation","height":98});
															thumbnails[8302889] = clik.newPhoto({"id":8302889,"src":"Fabric_Indian_book_finished_1_thumb.jpg","galleries_id":368524,"server_id":1,"link":"photo_8302889.html","width":130,"caption":"Wendy's housebook","height":102});
															thumbnails[8302890] = clik.newPhoto({"id":8302890,"src":"Fabric_small_tag_book_cmplete_thumb.jpg","galleries_id":368524,"server_id":1,"link":"photo_8302890.html","width":130,"caption":"Wendy's tagbook","height":89});
															thumbnails[8302903] = clik.newPhoto({"id":8302903,"src":"hundetrwasser_onions_CDDCFF3C-1EC9-D45B-1C40A7134B371E96_thumb.JPG","galleries_id":368524,"server_id":1,"link":"photo_8302903.html","width":130,"caption":"Katie's work on the Hundertwasser workshop at Milton Keynes","height":98});
															thumbnails[8302906] = clik.newPhoto({"id":8302906,"src":"Angie_Hughes_CDDDE1EA-1EC9-D45B-1CBC6F14A340CC50_thumb.JPG","galleries_id":428313,"server_id":1,"link":"photo_8302906.html","width":130,"caption":"Milton Keynes EG","height":98});
															thumbnails[841580] = clik.newPhoto({"id":841580,"src":"Babel_thumb.JPG","galleries_id":64892,"server_id":1,"link":"photo_841580.html","width":130,"caption":"Babel","height":198});
															thumbnails[830609] = clik.newPhoto({"id":830609,"src":"Babel 2_thumb.JPG","galleries_id":64892,"server_id":1,"link":"photo_830609.html","width":130,"caption":"Babel, detail","height":199});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[68009] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Books","link":"gallery_68009.html","maxRecords":0.0,"photoIDs":[886853.0,1722349.0,1722351.0,1722354.0,1722358.0,1722360.0,1722361.0,1722364.0,3300082.0,5154253.0,5154299.0,5154303.0,7885592.0,7885594.0,7885599.0],"skipIndex":0,"section_code":"gallery","featured_images":"7885599,7885594,7885592,5154303,5154299,5154253,3300082,1722364,1722361,1722360","id":68009,"singleSection":false});				  						galleries[353943] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Journaling","link":"gallery_353943.html","maxRecords":0.0,"photoIDs":[6405680.0,6405706.0,6405709.0,6405715.0,6405718.0,6405724.0,6405725.0],"skipIndex":0,"section_code":"gallery","featured_images":"6405725,6405724,6405718,6405715,6405709,6405706,6405680","id":353943,"singleSection":false});				  						galleries[64892] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Machine Embroidery","link":"gallery_64892.html","maxRecords":0.0,"photoIDs":[841467.0,841598.0,841608.0,841609.0,841627.0,841630.0,841654.0,841663.0,841665.0,841672.0,928507.0,1435088.0,1449170.0,1722248.0,1722250.0,1779015.0,1779018.0,1779022.0,2303523.0,3300119.0,5247250.0,5247268.0,5247273.0,5247274.0,6268481.0,6268501.0,6268502.0,6268504.0,6268506.0,6268513.0,6268515.0,6268517.0,6268522.0,7150351.0,7150403.0,7150417.0,7150419.0,841580.0,830609.0],"skipIndex":0,"section_code":"gallery","featured_images":"7150419,7150417,7150403,7150351,6268522,6268517,6268515,6268513,6268506,6268504","id":64892,"singleSection":false});				  						galleries[177914] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Stitch Cloth Paper and Paint","link":"gallery_177914.html","maxRecords":0.0,"photoIDs":[841233.0,841291.0,841301.0,841342.0,841365.0,875282.0,875300.0,875388.0],"skipIndex":0,"section_code":"gallery","featured_images":"875388,875300,875282,841365,841342,841301,841291,841233","id":177914,"singleSection":false});				  						galleries[368524] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Student and Friends Work","link":"gallery_368524.html","maxRecords":0.0,"photoIDs":[3426506.0,3428316.0,3428322.0,6770165.0,7021517.0,8302889.0,8302890.0,8302903.0],"skipIndex":0,"section_code":"gallery","featured_images":"8302903,8302890,8302889,7021517,6770165,3428322,3428316,3426506","id":368524,"singleSection":false});				  						galleries[428313] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Workshops for Guilds and Groups","link":"gallery_428313.html","maxRecords":0.0,"photoIDs":[7956690.0,7956712.0,7956778.0,7956879.0,7956890.0,7956927.0,7957023.0,8302906.0],"skipIndex":0,"section_code":"gallery","featured_images":"8302906,7957023,7956927,7956890,7956879,7956778,7956712,7956690","id":428313,"singleSection":false});				  						galleries[64213] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Mixed Media","link":"gallery_64213.html","maxRecords":0.0,"photoIDs":[841591.0,1148629.0,1722421.0,1722422.0,4646189.0,4646226.0,4957266.0],"skipIndex":0,"section_code":"gallery","featured_images":"4957266,4646226,4646189,1722422,1722421,1148629,841591","id":64213,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8995212';
imageSets[2] = '5864061,2858602';
imageSets[3] = '7885599,7885594,7885592,6405706,6405680,5154299,5154253,3300082,2858602';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/angieh18b/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/angieh18b/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/angieh18b/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/angieh18b/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/angieh18b/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/angieh18b/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/angieh18b/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/angieh18b/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/angieh18b/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/angieh18b/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/angieh18b/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/angieh18b/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/angieh18b/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/angieh18b/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/angieh18b/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/angieh18b/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/angieh18b/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/angieh18b/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/angieh18b/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/angieh18b/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/angieh18b/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/angieh18b/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/angieh18b/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/angieh18b/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/angieh18b/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/angieh18b/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/angieh18b/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = (backgrounds || photos || {})[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$detailContainer:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
		op = $.extend({},defaults,options),
		html = '', temp = '',
		photoId = op.nextPhoto.id,
		photoCaption = ''+op.nextPhoto.caption,
		photoSrc = op.nextPhoto.src;
	
	if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'Angie Hughes: ' + 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> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else {
		
	}
	if (this.item_price !== '') {
																		temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="angie@angiehughes.com">';
					temp += '<input type="hidden" name="currency_code" value="GBP">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="angie@angiehughes.com">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

