window.thumbnails = {};
															thumbnails[1309739] = clik.newPhoto({"id":1309739,"src":"painting shoes and fabrics_thumb.JPG","galleries_id":83588,"server_id":15,"link":"photo_1309739.html","width":130,"caption":"Painting of shoes and dresses. Acrylics,watercolour and thread.","height":192});
															thumbnails[1309945] = clik.newPhoto({"id":1309945,"src":"evelynrose_thumb.jpg","galleries_id":92704,"server_id":15,"link":"photo_1309945.html","width":130,"caption":"Evelyn Rose","height":175});
															thumbnails[1309958] = clik.newPhoto({"id":1309958,"src":"dressnorah_thumb.JPG","galleries_id":92704,"server_id":15,"link":"photo_1309958.html","width":130,"caption":"Norah's dress","height":172});
															thumbnails[1309959] = clik.newPhoto({"id":1309959,"src":"Corset_thumb.JPG","galleries_id":92704,"server_id":15,"link":"photo_1309959.html","width":130,"caption":"Corset","height":139});
															thumbnails[1309986] = clik.newPhoto({"id":1309986,"src":"corsetdetail_thumb.JPG","galleries_id":92704,"server_id":15,"link":"photo_1309986.html","width":130,"caption":"Corset detail","height":173});
															thumbnails[1309993] = clik.newPhoto({"id":1309993,"src":"Sarah'sWedding_thumb.JPG","galleries_id":92704,"server_id":15,"link":"photo_1309993.html","width":130,"caption":"Sarah's Wedding","height":176});
															thumbnails[1310038] = clik.newPhoto({"id":1310038,"src":"pedrovista_thumb.jpg","galleries_id":83588,"server_id":15,"link":"photo_1310038.html","width":130,"caption":"Pedra Vista","height":166});
															thumbnails[1310040] = clik.newPhoto({"id":1310040,"src":"tunisianinterior_thumb.jpg","galleries_id":83588,"server_id":15,"link":"photo_1310040.html","width":130,"caption":"Tunisian Interior","height":222});
															thumbnails[1310042] = clik.newPhoto({"id":1310042,"src":"moroccaninterior_thumb.jpg","galleries_id":83588,"server_id":15,"link":"photo_1310042.html","width":130,"caption":"Moroccan Interior","height":180});
															thumbnails[1310144] = clik.newPhoto({"id":1310144,"src":"mixedmediaBeachcomber_thumb.jpg","galleries_id":83588,"server_id":15,"link":"photo_1310144.html","width":130,"caption":"Beachcomber","height":351});
															thumbnails[1310147] = clik.newPhoto({"id":1310147,"src":"MixedmediaItaly_thumb.jpg","galleries_id":83588,"server_id":15,"link":"photo_1310147.html","width":130,"caption":"Postcard from Italy","height":352});
															thumbnails[1333343] = clik.newPhoto({"id":1333343,"src":"nparchways_thumb.jpg","galleries_id":83588,"server_id":15,"link":"photo_1333343.html","width":130,"caption":"Norton Priory Archways","height":186});
															thumbnails[1333361] = clik.newPhoto({"id":1333361,"src":"npdoorway_thumb.jpg","galleries_id":83588,"server_id":15,"link":"photo_1333361.html","width":130,"caption":"Norton Prior Doorway","height":202});
															thumbnails[1333393] = clik.newPhoto({"id":1333393,"src":"nptiles1_thumb.jpg","galleries_id":83588,"server_id":15,"link":"photo_1333393.html","width":130,"caption":"Norton Priory Tiles<br>\r\nThis piece was selected for exhibition at the Sale Waterside Open Art Exhibition in 2008 ","height":181});
															thumbnails[1338978] = clik.newPhoto({"id":1338978,"src":"blueandwhite_thumb.JPG","galleries_id":83588,"server_id":15,"link":"photo_1338978.html","width":130,"caption":"Reverse applique based on blue and white interiors","height":196});
															thumbnails[1339035] = clik.newPhoto({"id":1339035,"src":"drawingofbodice1_thumb.jpg","galleries_id":83588,"server_id":15,"link":"photo_1339035.html","width":130,"caption":"Study of corset in pen","height":184});
															thumbnails[1472484] = clik.newPhoto({"id":1472484,"src":"multiweb_thumb.jpg","galleries_id":432172,"server_id":15,"link":"photo_1472484.html","width":130,"caption":"A selection of button bracelets","height":75});
															thumbnails[1707348] = clik.newPhoto({"id":1707348,"src":"blue stamp dressweb_thumb.jpg","galleries_id":92704,"server_id":15,"link":"photo_1707348.html","width":130,"caption":"Blue dress made out of postage stamps","height":173});
															thumbnails[2364912] = clik.newPhoto({"id":2364912,"src":"orangebrac_thumb.JPG","galleries_id":432172,"server_id":15,"link":"photo_2364912.html","width":130,"caption":"orange bracelet","height":31});
															thumbnails[2364926] = clik.newPhoto({"id":2364926,"src":"raspripplebrac_thumb.JPG","galleries_id":432172,"server_id":15,"link":"photo_2364926.html","width":130,"caption":"raspberry ripple bracelet","height":32});
															thumbnails[2364934] = clik.newPhoto({"id":2364934,"src":"MOPbrac_thumb.JPG","galleries_id":432172,"server_id":15,"link":"photo_2364934.html","width":130,"caption":"Mother of Pearl Bracelet","height":30});
															thumbnails[2364935] = clik.newPhoto({"id":2364935,"src":"Blackwhitebrac_thumb.JPG","galleries_id":432172,"server_id":15,"link":"photo_2364935.html","width":130,"caption":"Black and white bracelet","height":39});
															thumbnails[2364976] = clik.newPhoto({"id":2364976,"src":"Mariacorsetrose_thumb.JPG","galleries_id":92704,"server_id":15,"link":"photo_2364976.html","width":130,"caption":"Rose corset","height":132});
															thumbnails[2364977] = clik.newPhoto({"id":2364977,"src":"mariacorsetviolet_thumb.JPG","galleries_id":92704,"server_id":15,"link":"photo_2364977.html","width":130,"caption":"Violet corset","height":130});
															thumbnails[2364978] = clik.newPhoto({"id":2364978,"src":"Mariacosetfelicia_thumb.JPG","galleries_id":92704,"server_id":15,"link":"photo_2364978.html","width":130,"caption":"Felicia corset","height":131});
															thumbnails[3868241] = clik.newPhoto({"id":3868241,"src":"charlieandrose_thumb.jpg","galleries_id":235172,"server_id":15,"link":"photo_3868241.html","width":130,"caption":"Wedding Day","height":194});
															thumbnails[3868442] = clik.newPhoto({"id":3868442,"src":"chaserd_thumb.JPG","galleries_id":235172,"server_id":15,"link":"photo_3868442.html","width":130,"caption":"Chase road","height":182});
															thumbnails[3868449] = clik.newPhoto({"id":3868449,"src":"donkeyrides_thumb.JPG","galleries_id":235172,"server_id":15,"link":"photo_3868449.html","width":130,"caption":"Donkey rides","height":189});
															thumbnails[3868454] = clik.newPhoto({"id":3868454,"src":"IMG_5489_thumb.JPG","galleries_id":235172,"server_id":15,"link":"photo_3868454.html","width":130,"caption":"Blackpool Beach","height":179});
															thumbnails[3868484] = clik.newPhoto({"id":3868484,"src":"monkeyweb_thumb.JPG","galleries_id":235172,"server_id":15,"link":"photo_3868484.html","width":130,"caption":"Which one is the monkey?","height":183});
															thumbnails[3868487] = clik.newPhoto({"id":3868487,"src":"IMG_5497_thumb.JPG","galleries_id":235172,"server_id":15,"link":"photo_3868487.html","width":130,"caption":"Happy Family","height":182});
															thumbnails[3868616] = clik.newPhoto({"id":3868616,"src":"IMG_5491_thumb.JPG","galleries_id":235172,"server_id":15,"link":"photo_3868616.html","width":130,"caption":"Birthday Party","height":174});
															thumbnails[3868629] = clik.newPhoto({"id":3868629,"src":"IMG_6232_thumb.JPG","galleries_id":235172,"server_id":15,"link":"photo_3868629.html","width":130,"caption":"Summer Sun","height":193});
															thumbnails[4013445] = clik.newPhoto({"id":4013445,"src":"booksgrandmotherflatsquare_thumb.jpg","galleries_id":350746,"server_id":15,"link":"photo_4013445.html","width":130,"caption":"Grandmother reading","height":130});
															thumbnails[4013452] = clik.newPhoto({"id":4013452,"src":"bootsinsnow_copy_thumb.jpg","galleries_id":350746,"server_id":15,"link":"photo_4013452.html","width":130,"caption":"\"Pa was mending boots all day\"","height":130});
															thumbnails[4013457] = clik.newPhoto({"id":4013457,"src":"coatflatweb_thumb.jpg","galleries_id":350746,"server_id":15,"link":"photo_4013457.html","width":130,"caption":"\" You can bring your money and buy a coat\"","height":186});
															thumbnails[4013460] = clik.newPhoto({"id":4013460,"src":"dorothy_thumb.jpg","galleries_id":350746,"server_id":15,"link":"photo_4013460.html","width":130,"caption":"\"Our Dorothy is going worse naughty\"","height":130});
															thumbnails[4013464] = clik.newPhoto({"id":4013464,"src":"plates_thumb.jpg","galleries_id":350746,"server_id":15,"link":"photo_4013464.html","width":130,"caption":"\"We hardly have any plates left the way she keeps smashing them\"","height":130});
															thumbnails[4013472] = clik.newPhoto({"id":4013472,"src":"hugmetight_thumb.jpg","galleries_id":350746,"server_id":15,"link":"photo_4013472.html","width":130,"caption":"\" I have got me a hug me tight\"","height":130});
															thumbnails[4013474] = clik.newPhoto({"id":4013474,"src":"lettercrop_copy_thumb.jpg","galleries_id":350746,"server_id":15,"link":"photo_4013474.html","width":130,"caption":"\" I would rather have a spoon\"","height":130});
															thumbnails[4013480] = clik.newPhoto({"id":4013480,"src":"mona1_copyweb_thumb.jpg","galleries_id":350746,"server_id":15,"link":"photo_4013480.html","width":130,"caption":"\"I hope you dress is equal to the occasion\"","height":184});
															thumbnails[4013488] = clik.newPhoto({"id":4013488,"src":"washingtransferweb_thumb.jpg","galleries_id":350746,"server_id":15,"link":"photo_4013488.html","width":130,"caption":"\"The washing gets me down\"","height":186});
															thumbnails[4013555] = clik.newPhoto({"id":4013555,"src":"nicefrockweb3_thumb.jpg","galleries_id":350746,"server_id":15,"link":"photo_4013555.html","width":130,"caption":"\"she is delighted with the picture of herself with the nice frock on\"","height":180});
															thumbnails[6324272] = clik.newPhoto({"id":6324272,"src":"mariawalkertapemeasure_thumb.JPG","galleries_id":350746,"server_id":15,"link":"photo_6324272.html","width":130,"caption":" Hidden Lives Tape measure Maria Walker","height":219});
															thumbnails[6324283] = clik.newPhoto({"id":6324283,"src":"mariawalkerhaircomb1_thumb.JPG","galleries_id":350746,"server_id":15,"link":"photo_6324283.html","width":130,"caption":"Hidden Lives - Haircomb from Platt Hall Collection. Maria Walker","height":219});
															thumbnails[6324285] = clik.newPhoto({"id":6324285,"src":"mariawalkerhaircomb2_thumb.JPG","galleries_id":350746,"server_id":15,"link":"photo_6324285.html","width":130,"caption":"Hidden Lives Haircomb from the Platt Hall Collection- objects of personal use and adornment.","height":221});
															thumbnails[6324287] = clik.newPhoto({"id":6324287,"src":"moo5_thumb.JPG","galleries_id":350746,"server_id":15,"link":"photo_6324287.html","width":130,"caption":"Hidden Lives- 'A very small key might open a very heavy door'","height":301});
															thumbnails[6324365] = clik.newPhoto({"id":6324365,"src":"bookcorset_thumb.JPG","galleries_id":350746,"server_id":15,"link":"photo_6324365.html","width":130,"caption":"Hidden Lives- corset","height":139});
															thumbnails[6325256] = clik.newPhoto({"id":6325256,"src":"bookperfume_thumb.JPG","galleries_id":350746,"server_id":15,"link":"photo_6325256.html","width":130,"caption":"Hidden Lives Perfume spray","height":98});
															thumbnails[6325262] = clik.newPhoto({"id":6325262,"src":"bookperfumedetail_thumb.JPG","galleries_id":350746,"server_id":15,"link":"photo_6325262.html","width":130,"caption":"Hidden Lives Perfume Spray detail","height":173});
															thumbnails[6325264] = clik.newPhoto({"id":6325264,"src":"bookscissors_thumb.JPG","galleries_id":350746,"server_id":15,"link":"photo_6325264.html","width":130,"caption":"Hidden Lives- Scissors","height":132});
															thumbnails[6325270] = clik.newPhoto({"id":6325270,"src":"bookspoon_thumb.JPG","galleries_id":350746,"server_id":15,"link":"photo_6325270.html","width":130,"caption":"Hidden Lives- spoon","height":173});
															thumbnails[6325273] = clik.newPhoto({"id":6325273,"src":"screenprint_thumb.JPG","galleries_id":350746,"server_id":15,"link":"photo_6325273.html","width":130,"caption":"Screen Print","height":173});
															thumbnails[6325278] = clik.newPhoto({"id":6325278,"src":"screenprint2_thumb.JPG","galleries_id":350746,"server_id":15,"link":"photo_6325278.html","width":130,"caption":"Screen Print","height":98});
															thumbnails[6325291] = clik.newPhoto({"id":6325291,"src":"apron1_thumb.JPG","galleries_id":350746,"server_id":15,"link":"photo_6325291.html","width":130,"caption":"\"A woman's work is never done I\" Housemaid's Apron","height":131});
															thumbnails[6325300] = clik.newPhoto({"id":6325300,"src":"apron2_thumb.JPG","galleries_id":350746,"server_id":15,"link":"photo_6325300.html","width":130,"caption":"\"A woman's wprk is never done II\" Housemaids apron","height":109});
															thumbnails[6325314] = clik.newPhoto({"id":6325314,"src":"Marieantoinettescorset_thumb.JPG","galleries_id":92704,"server_id":15,"link":"photo_6325314.html","width":130,"caption":"'Marie Antoinette's Corset\"","height":140});
															thumbnails[6683760] = clik.newPhoto({"id":6683760,"src":"tatiana1web_thumb.JPG","galleries_id":92704,"server_id":15,"link":"photo_6683760.html","width":130,"caption":"Tatiana's wedding Dress","height":183});
															thumbnails[6684000] = clik.newPhoto({"id":6684000,"src":"Dorothy_Bag_small_thumb.JPG","galleries_id":350746,"server_id":15,"link":"photo_6684000.html","width":130,"caption":"Dorothy Bag","height":176});
															thumbnails[6684002] = clik.newPhoto({"id":6684002,"src":"MariaWalkerDorcasBagSmall_thumb.JPG","galleries_id":350746,"server_id":15,"link":"photo_6684002.html","width":130,"caption":"Dorcas Bag","height":166});
															thumbnails[6684006] = clik.newPhoto({"id":6684006,"src":"dorcas_bag_detail_small_thumb.JPG","galleries_id":350746,"server_id":15,"link":"photo_6684006.html","width":130,"caption":"Dorcas Bag detail","height":173});
															thumbnails[6684011] = clik.newPhoto({"id":6684011,"src":"Secrets_Lie_Within_small_thumb.JPG","galleries_id":350746,"server_id":15,"link":"photo_6684011.html","width":130,"caption":"Sectrets lie within","height":438});
															thumbnails[6684017] = clik.newPhoto({"id":6684017,"src":"MariaWalkerSecrets_detai_smalll_thumb.JPG","galleries_id":350746,"server_id":15,"link":"photo_6684017.html","width":130,"caption":"Secret's Details","height":173});
															thumbnails[6684032] = clik.newPhoto({"id":6684032,"src":"sketchbookpage_thumb.JPG","galleries_id":92704,"server_id":15,"link":"photo_6684032.html","width":130,"caption":"sketchbook page","height":178});
															thumbnails[8290978] = clik.newPhoto({"id":8290978,"src":"appleblossomdressweb_thumb.jpg","galleries_id":92704,"server_id":38,"link":"photo_8290978.html","width":130,"caption":"Tea Dance Series  Appleblossom Dress","height":185});
															thumbnails[8293068] = clik.newPhoto({"id":8293068,"src":"Bevs-Bridesmaid-dressweb_thumb.jpg","galleries_id":92704,"server_id":37,"link":"photo_8293068.html","width":130,"caption":"Bev's Bridesmaid Dress","height":173});
															thumbnails[8414155] = clik.newPhoto({"id":8414155,"src":"make-me-a-dress_thumb.jpg","galleries_id":445780,"server_id":37,"link":"photo_8414155.html","width":130,"caption":"Make me a Dress","height":108});
															thumbnails[8414253] = clik.newPhoto({"id":8414253,"src":"IMG_2013_thumb.jpg","galleries_id":445780,"server_id":37,"link":"photo_8414253.html","width":130,"caption":"Frances' Suitcase","height":98});
															thumbnails[8414254] = clik.newPhoto({"id":8414254,"src":"IMG_6310_thumb.jpg","galleries_id":445780,"server_id":37,"link":"photo_8414254.html","width":130,"caption":"A Woman's Work is Never Done","height":87});
															thumbnails[8414255] = clik.newPhoto({"id":8414255,"src":"IMG_6311_thumb.jpg","galleries_id":445780,"server_id":37,"link":"photo_8414255.html","width":130,"caption":"","height":195});
															thumbnails[8414382] = clik.newPhoto({"id":8414382,"src":"img263_thumb.jpg","galleries_id":445780,"server_id":37,"link":"photo_8414382.html","width":130,"caption":"Publicity Image for exhbition","height":91});
															thumbnails[8414666] = clik.newPhoto({"id":8414666,"src":"IMG_1522_thumb.jpg","galleries_id":350746,"server_id":37,"link":"photo_8414666.html","width":130,"caption":"","height":98});
															thumbnails[8414670] = clik.newPhoto({"id":8414670,"src":"IMG_1527_thumb.jpg","galleries_id":350746,"server_id":37,"link":"photo_8414670.html","width":130,"caption":"","height":98});
															thumbnails[8414672] = clik.newPhoto({"id":8414672,"src":"IMG_1556_thumb.jpg","galleries_id":350746,"server_id":37,"link":"photo_8414672.html","width":130,"caption":"","height":173});
															thumbnails[8414690] = clik.newPhoto({"id":8414690,"src":"IMG_1853_thumb.jpg","galleries_id":445780,"server_id":37,"link":"photo_8414690.html","width":130,"caption":"","height":98});
															thumbnails[8414692] = clik.newPhoto({"id":8414692,"src":"IMG_1849_thumb.jpg","galleries_id":445780,"server_id":37,"link":"photo_8414692.html","width":130,"caption":"Skates","height":98});
															thumbnails[8414723] = clik.newPhoto({"id":8414723,"src":"IMG_2006_thumb.jpg","galleries_id":445780,"server_id":37,"link":"photo_8414723.html","width":130,"caption":"Women of Widnes .Textile Installation","height":173});
															thumbnails[8414724] = clik.newPhoto({"id":8414724,"src":"IMG_6230_thumb.jpg","galleries_id":445780,"server_id":37,"link":"photo_8414724.html","width":130,"caption":"Window at the Brindley","height":87});
															thumbnails[8414739] = clik.newPhoto({"id":8414739,"src":"IMG_2036_thumb.jpg","galleries_id":445780,"server_id":37,"link":"photo_8414739.html","width":130,"caption":"Ada's Washing ","height":98});
															thumbnails[8414743] = clik.newPhoto({"id":8414743,"src":"IMG_2017_thumb.jpg","galleries_id":445780,"server_id":37,"link":"photo_8414743.html","width":130,"caption":"Ada's Washing ","height":98});
															thumbnails[8414751] = clik.newPhoto({"id":8414751,"src":"IMG_6280_thumb.jpg","galleries_id":445780,"server_id":37,"link":"photo_8414751.html","width":130,"caption":"Typewriter Installation","height":195});
															thumbnails[8414754] = clik.newPhoto({"id":8414754,"src":"IMG_6303_thumb.jpg","galleries_id":445780,"server_id":37,"link":"photo_8414754.html","width":130,"caption":"Barrowcoat from Ada's Washing","height":195});
															thumbnails[8062072] = clik.newPhoto({"id":8062072,"src":"MariaWalkerImage_thumb.jpg","galleries_id":101538,"server_id":15,"link":"photo_8062072.html","width":130,"caption":"Maria Walker at Zest Creative Writing Day","height":195});
															thumbnails[8062116] = clik.newPhoto({"id":8062116,"src":"MariaWalkerZest1small_thumb.jpg","galleries_id":101538,"server_id":15,"link":"photo_8062116.html","width":130,"caption":"Maria Walker with finished artwork at Zest","height":87});
															thumbnails[8062137] = clik.newPhoto({"id":8062137,"src":"MariaWalkerZestCloseup_thumb.jpg","galleries_id":101538,"server_id":15,"link":"photo_8062137.html","width":130,"caption":"Work in Progress at Residency","height":87});
															thumbnails[8065312] = clik.newPhoto({"id":8065312,"src":"Exhib1_thumb.jpg","galleries_id":432276,"server_id":15,"link":"photo_8065312.html","width":130,"caption":"Maria Walker with poet John Lindley ","height":87});
															thumbnails[8065322] = clik.newPhoto({"id":8065322,"src":"exhib2_thumb.jpg","galleries_id":432276,"server_id":15,"link":"photo_8065322.html","width":130,"caption":"Maria Walker with poet John Lindley ","height":87});
															thumbnails[8065334] = clik.newPhoto({"id":8065334,"src":"exhib3_thumb.jpg","galleries_id":432276,"server_id":15,"link":"photo_8065334.html","width":130,"caption":"workshop participant with their work","height":87});
															thumbnails[8065336] = clik.newPhoto({"id":8065336,"src":"Exhib4_thumb.jpg","galleries_id":432276,"server_id":15,"link":"photo_8065336.html","width":130,"caption":"artist with their work","height":96});
															thumbnails[8065350] = clik.newPhoto({"id":8065350,"src":"exhib5_thumb.jpg","galleries_id":432276,"server_id":15,"link":"photo_8065350.html","width":130,"caption":"artist with her work","height":87});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[445780] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Lightfoot Letters Exhibition","link":"gallery_445780.html","maxRecords":0.0,"photoIDs":[8414155.0,8414253.0,8414254.0,8414255.0,8414382.0,8414690.0,8414692.0,8414723.0,8414724.0,8414739.0,8414743.0,8414751.0,8414754.0],"skipIndex":0,"section_code":"gallery","featured_images":"8414754,8414155","id":445780,"singleSection":false});				  						galleries[350746] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"The Lightfoot Letters","link":"gallery_350746.html","maxRecords":0.0,"photoIDs":[4013445.0,4013452.0,4013457.0,4013460.0,4013464.0,4013472.0,4013474.0,4013480.0,4013488.0,4013555.0,6324272.0,6324283.0,6324285.0,6324287.0,6324365.0,6325256.0,6325262.0,6325264.0,6325270.0,6325273.0,6325278.0,6325291.0,6325300.0,6684000.0,6684002.0,6684006.0,6684011.0,6684017.0,8414666.0,8414670.0,8414672.0],"skipIndex":0,"section_code":"gallery","featured_images":6324272.0,"id":350746,"singleSection":false});				  						galleries[92704] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Garments","link":"gallery_92704.html","maxRecords":0.0,"photoIDs":[1309945.0,1309958.0,1309959.0,1309986.0,1309993.0,1707348.0,2364976.0,2364977.0,2364978.0,6325314.0,6683760.0,6684032.0,8290978.0,8293068.0],"skipIndex":0,"section_code":"gallery","featured_images":6683760.0,"id":92704,"singleSection":false});				  						galleries[235172] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Recollections I - childhood","link":"gallery_235172.html","maxRecords":0.0,"photoIDs":[3868241.0,3868442.0,3868449.0,3868454.0,3868484.0,3868487.0,3868616.0,3868629.0],"skipIndex":0,"section_code":"gallery","featured_images":3868454.0,"id":235172,"singleSection":false});				  						galleries[83588] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Archive","link":"gallery_83588.html","maxRecords":0.0,"photoIDs":[1309739.0,1310038.0,1310040.0,1310042.0,1310144.0,1310147.0,1333343.0,1333361.0,1333393.0,1338978.0,1339035.0],"skipIndex":0,"section_code":"gallery","featured_images":1333343.0,"id":83588,"singleSection":false});				  						galleries[432172] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"jewellery","link":"gallery_432172.html","maxRecords":0.0,"photoIDs":[1472484.0,2364912.0,2364926.0,2364934.0,2364935.0],"skipIndex":0,"section_code":"gallery","featured_images":"2364935,2364934,2364926,2364912,1472484","id":432172,"singleSection":false});				  						galleries[432276] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Reminiscence","link":"section427197_432276.html","maxRecords":0.0,"photoIDs":[8065312.0,8065322.0,8065334.0,8065336.0,8065350.0],"skipIndex":0,"section_code":"section427197","featured_images":"8065350,8065336,8065334,8065322,8065312","id":432276,"singleSection":false});				  						galleries[101538] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Residencies","link":"section427197_101538.html","maxRecords":0.0,"photoIDs":[8062072.0,8062116.0,8062137.0],"skipIndex":0,"section_code":"section427197","featured_images":8062072.0,"id":101538,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8414739,8414690,8414670,8414382,8414254,8414155,4013464';
imageSets[2] = '8414754,8414155,8062072,6683760,6324272,3868454,1333343';
imageSets[3] = '8414754,8414751,8414743,8414739,8414724,8414723,8414692,8414690,8414672,8414670,8414666,8414382,8414255,8414254,8414253,8414155,8293068,8290978,8065350,8065336,8065334,8065322,8065312,8062137,8062116,8062072,6684032,6684017,6684011,6684006,6684002,6684000,6683760,6325314,6325300,6325291,6325278,6325273,6325270,6325264,6325262,6325256,6324365,6324287,6324285,6324283,6324272,4013555,4013488,4013480';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/MariaWalker/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/MariaWalker/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/MariaWalker/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/MariaWalker/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/MariaWalker/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/MariaWalker/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/MariaWalker/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/MariaWalker/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/MariaWalker/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/MariaWalker/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/MariaWalker/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/MariaWalker/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/MariaWalker/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/MariaWalker/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/MariaWalker/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/MariaWalker/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/MariaWalker/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/MariaWalker/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/MariaWalker/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/MariaWalker/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/MariaWalker/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/MariaWalker/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/MariaWalker/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 = 'Maria Walker: ' + 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({					href: thumbnails[imageID].fnGalleryLink(gallery_id),					title: galleries[gallery_id].title				});
			}
		}
	}
}

/***************************************************************************
* 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;
	}
}

			

