window.thumbnails = {};
															thumbnails[5898012] = clik.newPhoto({"id":5898012,"src":"Jean_Baker_-_image_thumb.jpg","galleries_id":130542,"server_id":18,"link":"photo_5898012.html","width":130,"caption":"Jean Baker","height":130});
															thumbnails[7744815] = clik.newPhoto({"id":7744815,"src":"Richard_Hancey2_thumb.jpg","galleries_id":130558,"server_id":18,"link":"photo_7744815.html","width":130,"caption":"Richard Hancey","height":98});
															thumbnails[7745197] = clik.newPhoto({"id":7745197,"src":"Pip_Nall_-_Image_thumb.jpg","galleries_id":130551,"server_id":18,"link":"photo_7745197.html","width":130,"caption":"Pip Nail","height":128});
															thumbnails[7745200] = clik.newPhoto({"id":7745200,"src":"Barbara_Northen_Image_thumb.jpg","galleries_id":130551,"server_id":18,"link":"photo_7745200.html","width":130,"caption":"Barbara Northen","height":98});
															thumbnails[1873052] = clik.newPhoto({"id":1873052,"src":"Allan_Oliver_2_thumb.jpg","galleries_id":130552,"server_id":18,"link":"photo_1873052.html","width":130,"caption":"Alan Oliver","height":94});
															thumbnails[1898240] = clik.newPhoto({"id":1898240,"src":"Jane_Sanders_Brochure_cover_image_thumb.jpg","galleries_id":130555,"server_id":18,"link":"photo_1898240.html","width":130,"caption":"Jane C Sanders","height":128});
															thumbnails[1924975] = clik.newPhoto({"id":1924975,"src":"Christine_Baker_-_Image_thumb.jpg","galleries_id":130542,"server_id":18,"link":"photo_1924975.html","width":130,"caption":"Christine Baker","height":128});
															thumbnails[1924986] = clik.newPhoto({"id":1924986,"src":"Pip_Rawlings_-_Image_ewe_and_her_lambs118_thumb.jpg","galleries_id":130554,"server_id":18,"link":"photo_1924986.html","width":130,"caption":"Pip Rawlings","height":90});
															thumbnails[1925206] = clik.newPhoto({"id":1925206,"src":"Catmose-Gallery_thumb.jpg","galleries_id":130543,"server_id":18,"link":"photo_1925206.html","width":130,"caption":"Catmose Gallery","height":130});
															thumbnails[1949521] = clik.newPhoto({"id":1949521,"src":"Dawn_Issac_Image_1_thumb.jpg","galleries_id":130547,"server_id":18,"link":"photo_1949521.html","width":130,"caption":"Dawn Isaac","height":196});
															thumbnails[1986068] = clik.newPhoto({"id":1986068,"src":"Mo_Gardner2_thumb.jpg","galleries_id":130546,"server_id":18,"link":"photo_1986068.html","width":130,"caption":"Mo Gardner","height":196});
															thumbnails[1997507] = clik.newPhoto({"id":1997507,"src":"Chris_Davis_1_thumb.jpg","galleries_id":130544,"server_id":18,"link":"photo_1997507.html","width":130,"caption":"Christine Davis","height":104});
															thumbnails[3818928] = clik.newPhoto({"id":3818928,"src":"Gay_Mayes_thumb.jpg","galleries_id":130550,"server_id":18,"link":"photo_3818928.html","width":130,"caption":"Gay Mayes","height":180});
															thumbnails[3819911] = clik.newPhoto({"id":3819911,"src":"Julie-Wade_thumb.jpg","galleries_id":130557,"server_id":18,"link":"photo_3819911.html","width":130,"caption":"Julie Wade","height":98});
															thumbnails[3820172] = clik.newPhoto({"id":3820172,"src":"Ian_Park_2_thumb.jpg","galleries_id":130553,"server_id":18,"link":"photo_3820172.html","width":130,"caption":"Ian Park","height":104});
															thumbnails[3820368] = clik.newPhoto({"id":3820368,"src":"Sue_Van_Silver_-_Brochure_Cover_Image_thumb.jpg","galleries_id":232727,"server_id":18,"link":"photo_3820368.html","width":130,"caption":"Sue Van Silver","height":185});
															thumbnails[7739161] = clik.newPhoto({"id":7739161,"src":"Brian_Andrews_Image_thumb.jpg","galleries_id":130541,"server_id":18,"link":"photo_7739161.html","width":130,"caption":"Brian Andrews","height":101});
															thumbnails[7740476] = clik.newPhoto({"id":7740476,"src":"Tanis_Eastwood_thumb.jpg","galleries_id":232725,"server_id":18,"link":"photo_7740476.html","width":130,"caption":"Tanis Eastwood","height":190});
															thumbnails[7745062] = clik.newPhoto({"id":7745062,"src":"Sonia_Kendal_-_Image_thumb.jpg","galleries_id":232726,"server_id":18,"link":"photo_7745062.html","width":130,"caption":"Sonia Kendal","height":86});
															thumbnails[7745085] = clik.newPhoto({"id":7745085,"src":"Roger_Lancaster_thumb.jpg","galleries_id":130549,"server_id":18,"link":"photo_7745085.html","width":130,"caption":"Roger Lancaster","height":83});
															thumbnails[7746008] = clik.newPhoto({"id":7746008,"src":"Annie_Tappenden_thumb.jpg","galleries_id":130556,"server_id":18,"link":"photo_7746008.html","width":130,"caption":"Annie Tappenden","height":85});
															thumbnails[7746185] = clik.newPhoto({"id":7746185,"src":"Hillary_SALOMON_PURPLELADY_thumb.jpg","galleries_id":130555,"server_id":18,"link":"photo_7746185.html","width":130,"caption":"Hillary Salomon","height":131});
															thumbnails[1873078] = clik.newPhoto({"id":1873078,"src":"Audrey_Fogleman_Image_thumb.jpg","galleries_id":130545,"server_id":18,"link":"photo_1873078.html","width":130,"caption":"Audrey Fogelman","height":85});
															thumbnails[1873137] = clik.newPhoto({"id":1873137,"src":"Barbara-Taylor-Harris_thumb.jpg","galleries_id":130556,"server_id":18,"link":"photo_1873137.html","width":130,"caption":"Barbara Taylor-Harris","height":130});
															thumbnails[1898234] = clik.newPhoto({"id":1898234,"src":"Angela_Harding_image_2_thumb.jpg","galleries_id":130558,"server_id":18,"link":"photo_1898234.html","width":130,"caption":"Angela Harding","height":131});
															thumbnails[3818916] = clik.newPhoto({"id":3818916,"src":"Sue_Bagshaw_-_Image_thumb.jpg","galleries_id":130542,"server_id":18,"link":"photo_3818916.html","width":130,"caption":"Sue Bagshaw","height":165});
															thumbnails[3818925] = clik.newPhoto({"id":3818925,"src":"Joel_2_thumb.jpg","galleries_id":130557,"server_id":18,"link":"photo_3818925.html","width":130,"caption":"Joel Walker","height":99});
															thumbnails[3820355] = clik.newPhoto({"id":3820355,"src":"Liz_Emery_-_Image_2_thumb.jpg","galleries_id":232725,"server_id":18,"link":"photo_3820355.html","width":130,"caption":"Liz Emery","height":131});
															thumbnails[5897755] = clik.newPhoto({"id":5897755,"src":"Pat_Armstrong_1_thumb.jpg","galleries_id":130541,"server_id":18,"link":"photo_5897755.html","width":130,"caption":"Charles Armstrong","height":173});
															thumbnails[5898128] = clik.newPhoto({"id":5898128,"src":"Frances_Lowe_thumb.jpg","galleries_id":130549,"server_id":18,"link":"photo_5898128.html","width":130,"caption":"Frances Lowe","height":130});
															thumbnails[7739188] = clik.newPhoto({"id":7739188,"src":"Ann_Archer_3_thumb.jpg","galleries_id":130541,"server_id":18,"link":"photo_7739188.html","width":130,"caption":"Ann Archer","height":87});
															thumbnails[7744551] = clik.newPhoto({"id":7744551,"src":"Victoria_George_2_thumb.jpg","galleries_id":130546,"server_id":18,"link":"photo_7744551.html","width":130,"caption":"Victoria George","height":46});
															thumbnails[7745134] = clik.newPhoto({"id":7745134,"src":"Stephanie_Jane_Mitchell_thumb.jpg","galleries_id":130550,"server_id":18,"link":"photo_7745134.html","width":130,"caption":"Stephanie Jane Mitchell","height":195});
															thumbnails[7745198] = clik.newPhoto({"id":7745198,"src":"john_nicholls_-_Image_thumb.jpg","galleries_id":130551,"server_id":18,"link":"photo_7745198.html","width":130,"caption":"John Nicholls","height":201});
															thumbnails[7745227] = clik.newPhoto({"id":7745227,"src":"Janet_Patterson_thumb.jpg","galleries_id":130553,"server_id":18,"link":"photo_7745227.html","width":130,"caption":"Janet Patterson","height":96});
															thumbnails[7745237] = clik.newPhoto({"id":7745237,"src":"Terry_Raybold_thumb.jpg","galleries_id":130554,"server_id":18,"link":"photo_7745237.html","width":130,"caption":"Terry Raybold","height":95});
															thumbnails[1898233] = clik.newPhoto({"id":1898233,"src":"Gizella_Warburton_Image_thumb.jpg","galleries_id":130557,"server_id":18,"link":"photo_1898233.html","width":130,"caption":"Gizella K Warburton","height":84});
															thumbnails[1898303] = clik.newPhoto({"id":1898303,"src":"Sandra_Peck_Image_thumb.jpg","galleries_id":130553,"server_id":18,"link":"photo_1898303.html","width":130,"caption":"Sandra Peck","height":98});
															thumbnails[1946055] = clik.newPhoto({"id":1946055,"src":"Mike-Moralee_thumb.jpg","galleries_id":130550,"server_id":18,"link":"photo_1946055.html","width":130,"caption":"Michael Moralee","height":130});
															thumbnails[1946057] = clik.newPhoto({"id":1946057,"src":"Neil_Harding_thumb.jpg","galleries_id":130558,"server_id":18,"link":"photo_1946057.html","width":130,"caption":"Neil Harding","height":98});
															thumbnails[1997811] = clik.newPhoto({"id":1997811,"src":"Pat_Armstrong_2_thumb.jpg","galleries_id":130541,"server_id":18,"link":"photo_1997811.html","width":130,"caption":"Patricia Armstrong","height":98});
															thumbnails[7739929] = clik.newPhoto({"id":7739929,"src":"Josette_Caroll_thumb.jpg","galleries_id":130543,"server_id":18,"link":"photo_7739929.html","width":130,"caption":"Josette Caroll","height":192});
															thumbnails[7744552] = clik.newPhoto({"id":7744552,"src":"Robert_Goodwin_thumb.jpg","galleries_id":130546,"server_id":18,"link":"photo_7744552.html","width":130,"caption":"Robert Goodwin","height":98});
															thumbnails[7745940] = clik.newPhoto({"id":7745940,"src":"Vanda_Richards_thumb.jpg","galleries_id":130554,"server_id":18,"link":"photo_7745940.html","width":130,"caption":"Vanda Richards","height":98});
															thumbnails[7745986] = clik.newPhoto({"id":7745986,"src":"Paul_Sibbering_thumb.jpg","galleries_id":130555,"server_id":18,"link":"photo_7745986.html","width":130,"caption":"Paul Sibbering","height":127});
															thumbnails[1925154] = clik.newPhoto({"id":1925154,"src":"Anne_Goold_thumb.jpg","galleries_id":130546,"server_id":18,"link":"photo_1925154.html","width":130,"caption":"Anne Goold","height":98});
															thumbnails[1943619] = clik.newPhoto({"id":1943619,"src":"Helen_Chadband_thumb.jpg","galleries_id":130543,"server_id":18,"link":"photo_1943619.html","width":130,"caption":"Helen Chadband","height":91});
															thumbnails[1946076] = clik.newPhoto({"id":1946076,"src":"Peter_Moralee_thumb.jpg","galleries_id":130550,"server_id":18,"link":"photo_1946076.html","width":130,"caption":"Peter Moralee","height":109});
															thumbnails[1946088] = clik.newPhoto({"id":1946088,"src":"Stella_Warburton_thumb.jpg","galleries_id":130557,"server_id":18,"link":"photo_1946088.html","width":130,"caption":"Stella Warburton","height":98});
															thumbnails[1949547] = clik.newPhoto({"id":1949547,"src":"Vilma-Nyss_thumb.jpg","galleries_id":130551,"server_id":18,"link":"photo_1949547.html","width":130,"caption":"Vilma Nyss","height":261});
															thumbnails[1949556] = clik.newPhoto({"id":1949556,"src":"Wendy_Penrice_thumb.jpg","galleries_id":130553,"server_id":18,"link":"photo_1949556.html","width":130,"caption":"Wendy Penrice","height":94});
															thumbnails[3818932] = clik.newPhoto({"id":3818932,"src":"Gillian_Durno_-_Image_1_thumb.jpg","galleries_id":130544,"server_id":18,"link":"photo_3818932.html","width":130,"caption":"Gillian Durno","height":98});
															thumbnails[6029532] = clik.newPhoto({"id":6029532,"src":"Maggie_Rogers_thumb.jpg","galleries_id":130554,"server_id":18,"link":"photo_6029532.html","width":130,"caption":"Maggie Rogers","height":173});
															thumbnails[7739811] = clik.newPhoto({"id":7739811,"src":"Lucy_Cade-Steward_Image_thumb.jpg","galleries_id":130543,"server_id":18,"link":"photo_7739811.html","width":130,"caption":"Lucy Cade","height":93});
															thumbnails[7745008] = clik.newPhoto({"id":7745008,"src":"Suzanne_Harry_-_Image_thumb.jpg","galleries_id":130558,"server_id":18,"link":"photo_7745008.html","width":130,"caption":"Suzanne Harry","height":98});
															thumbnails[7745948] = clik.newPhoto({"id":7745948,"src":"Berit_Richter_thumb.jpg","galleries_id":130554,"server_id":18,"link":"photo_7745948.html","width":130,"caption":"Berit Richter","height":107});
															thumbnails[7745996] = clik.newPhoto({"id":7745996,"src":"Sarah_Stillman_2_thumb.jpg","galleries_id":130555,"server_id":18,"link":"photo_7745996.html","width":130,"caption":"Sarah Stillman","height":184});
															thumbnails[1898215] = clik.newPhoto({"id":1898215,"src":"Betty_Holliday_thumb.jpg","galleries_id":130558,"server_id":18,"link":"photo_1898215.html","width":130,"caption":"Betty Holliday","height":91});
															thumbnails[1946053] = clik.newPhoto({"id":1946053,"src":"Margaret-Harding_thumb.jpg","galleries_id":130555,"server_id":18,"link":"photo_1946053.html","width":130,"caption":"Margaret I Shepherd","height":98});
															thumbnails[6029583] = clik.newPhoto({"id":6029583,"src":"Sarah_Watson_thumb.jpg","galleries_id":130557,"server_id":18,"link":"photo_6029583.html","width":130,"caption":"Sarah Watson","height":182});
															thumbnails[7739823] = clik.newPhoto({"id":7739823,"src":"Ian_Calder_thumb.jpg","galleries_id":130543,"server_id":18,"link":"photo_7739823.html","width":130,"caption":"Ian Calder","height":181});
															thumbnails[7744656] = clik.newPhoto({"id":7744656,"src":"Allan__Lorna_Grey_Hidden_Treasure_thumb.jpg","galleries_id":130546,"server_id":18,"link":"photo_7744656.html","width":130,"caption":"Allan & Lorna Grey","height":89});
															thumbnails[1873176] = clik.newPhoto({"id":1873176,"src":"Dick-Clarke_thumb.jpg","galleries_id":130543,"server_id":18,"link":"photo_1873176.html","width":130,"caption":"Dick Clarke","height":83});
															thumbnails[1946082] = clik.newPhoto({"id":1946082,"src":"Roy_Holley_thumb.jpg","galleries_id":130558,"server_id":18,"link":"photo_1946082.html","width":130,"caption":"Roy Holley","height":103});
															thumbnails[3818945] = clik.newPhoto({"id":3818945,"src":"Sally_Wilson_-_Image_thumb.jpg","galleries_id":130557,"server_id":18,"link":"photo_3818945.html","width":130,"caption":"Sally Wilson","height":90});
															thumbnails[3819913] = clik.newPhoto({"id":3819913,"src":"Ann_Wheeler_thumb.jpg","galleries_id":130557,"server_id":18,"link":"photo_3819913.html","width":130,"caption":"Ann Wheeler","height":173});
															thumbnails[1898220] = clik.newPhoto({"id":1898220,"src":"Chris_Clayton_Image_So_where_did_you_leave_them_small_thumb.jpg","galleries_id":130543,"server_id":18,"link":"photo_1898220.html","width":130,"caption":"Chris Clayton","height":179});
															thumbnails[1898389] = clik.newPhoto({"id":1898389,"src":"Fay_Howison_thumb.jpg","galleries_id":130558,"server_id":18,"link":"photo_1898389.html","width":130,"caption":"Fay Howison","height":87});
															thumbnails[2231761] = clik.newPhoto({"id":2231761,"src":"Gay_Wilson_thumb.jpg","galleries_id":130557,"server_id":18,"link":"photo_2231761.html","width":130,"caption":"Gay Wilson","height":109});
															thumbnails[7740119] = clik.newPhoto({"id":7740119,"src":"David_Close_-_Image_thumb.jpg","galleries_id":130543,"server_id":18,"link":"photo_7740119.html","width":130,"caption":"David Close","height":98});
															thumbnails[1945997] = clik.newPhoto({"id":1945997,"src":"KS_thumb.jpg","galleries_id":130555,"server_id":18,"link":"photo_1945997.html","width":130,"caption":"Keith Sturgess","height":129});
															thumbnails[1986036] = clik.newPhoto({"id":1986036,"src":"Ingrid-Hunter_thumb.jpg","galleries_id":130558,"server_id":18,"link":"photo_1986036.html","width":130,"caption":"Ingrid Hunter","height":127});
															thumbnails[7739659] = clik.newPhoto({"id":7739659,"src":"Jim_Barnes_thumb.jpg","galleries_id":130542,"server_id":18,"link":"photo_7739659.html","width":130,"caption":"Jim Barnes","height":87});
															thumbnails[1946007] = clik.newPhoto({"id":1946007,"src":"Krys_Witts_image_thumb.jpg","galleries_id":130557,"server_id":18,"link":"photo_1946007.html","width":130,"caption":"Krys Witts","height":172});
															thumbnails[1949525] = clik.newPhoto({"id":1949525,"src":"Graham_Biggs_thumb.jpg","galleries_id":130542,"server_id":18,"link":"photo_1949525.html","width":130,"caption":"Graham Biggs","height":185});
															thumbnails[1873164] = clik.newPhoto({"id":1873164,"src":"David_Wright_thumb.jpg","galleries_id":130557,"server_id":18,"link":"photo_1873164.html","width":130,"caption":"David Wright","height":195});
															thumbnails[3820151] = clik.newPhoto({"id":3820151,"src":"Peter_Cooper_thumb.jpg","galleries_id":130543,"server_id":18,"link":"photo_3820151.html","width":130,"caption":"Peter Cooper","height":177});
															thumbnails[1898258] = clik.newPhoto({"id":1898258,"src":"Joanna_Crawford_Image_thumb.jpg","galleries_id":130543,"server_id":18,"link":"photo_1898258.html","width":130,"caption":"Joanna Crawford","height":98});
															thumbnails[1949542] = clik.newPhoto({"id":1949542,"src":"Tishy-Budden_thumb.jpg","galleries_id":130542,"server_id":18,"link":"photo_1949542.html","width":130,"caption":"Tishy Budden","height":98});
															thumbnails[1986053] = clik.newPhoto({"id":1986053,"src":"Ian_Cunningham_thumb.jpg","galleries_id":130543,"server_id":18,"link":"photo_1986053.html","width":130,"caption":"Ian Cunningham","height":173});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[130541] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"A","link":"gallery_130541.html","maxRecords":0.0,"photoIDs":[7739161.0,5897755.0,7739188.0,1997811.0],"skipIndex":0,"section_code":"gallery","featured_images":"7739188,7739161,5897755,1997811","id":130541,"singleSection":false});				  						galleries[130542] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"B","link":"gallery_130542.html","maxRecords":0.0,"photoIDs":[5898012.0,1924975.0,3818916.0,7739659.0,1949525.0,1949542.0],"skipIndex":0,"section_code":"gallery","featured_images":"7739659,5898012,3818916,1949542,1949525,1924975","id":130542,"singleSection":false});				  						galleries[130543] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"C","link":"gallery_130543.html","maxRecords":0.0,"photoIDs":[1925206.0,7739929.0,1943619.0,7739811.0,7739823.0,1873176.0,1898220.0,7740119.0,3820151.0,1898258.0,1986053.0],"skipIndex":0,"section_code":"gallery","featured_images":"7740119,7739929,7739823,7739811,3820151,1986053,1943619,1925206,1898258,1898220","id":130543,"singleSection":false});				  						galleries[130544] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"D","link":"gallery_130544.html","maxRecords":0.0,"photoIDs":[1997507.0,3818932.0],"skipIndex":0,"section_code":"gallery","featured_images":"3818932,1997507","id":130544,"singleSection":false});				  						galleries[232725] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"E","link":"gallery_232725.html","maxRecords":0.0,"photoIDs":[7740476.0,3820355.0],"skipIndex":0,"section_code":"gallery","featured_images":"7740476,3820355","id":232725,"singleSection":false});				  						galleries[130545] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"F","link":"gallery_130545.html","maxRecords":0.0,"photoIDs":[1873078.0],"skipIndex":0,"section_code":"gallery","featured_images":1873078.0,"id":130545,"singleSection":false});				  						galleries[130546] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"G","link":"gallery_130546.html","maxRecords":0.0,"photoIDs":[1986068.0,7744551.0,7744552.0,1925154.0,7744656.0],"skipIndex":0,"section_code":"gallery","featured_images":"7744656,7744552,7744551,1986068,1925154","id":130546,"singleSection":false});				  						galleries[130558] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"H","link":"gallery_130558.html","maxRecords":0.0,"photoIDs":[7744815.0,1898234.0,1946057.0,7745008.0,1898215.0,1946082.0,1898389.0,1986036.0],"skipIndex":0,"section_code":"gallery","featured_images":"7745008,7744815,1986036,1946082,1946057,1898389,1898234,1898215","id":130558,"singleSection":false});				  						galleries[130547] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"I","link":"gallery_130547.html","maxRecords":0.0,"photoIDs":[1949521.0],"skipIndex":0,"section_code":"gallery","featured_images":1949521.0,"id":130547,"singleSection":false});				  						galleries[130548] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"J","link":"gallery_130548.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"","id":130548,"singleSection":false});				  						galleries[232726] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"K","link":"gallery_232726.html","maxRecords":0.0,"photoIDs":[7745062.0],"skipIndex":0,"section_code":"gallery","featured_images":7745062.0,"id":232726,"singleSection":false});				  						galleries[130549] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"L","link":"gallery_130549.html","maxRecords":0.0,"photoIDs":[7745085.0,5898128.0],"skipIndex":0,"section_code":"gallery","featured_images":"7745085,5898128","id":130549,"singleSection":false});				  						galleries[130550] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"M","link":"gallery_130550.html","maxRecords":0.0,"photoIDs":[3818928.0,7745134.0,1946055.0,1946076.0],"skipIndex":0,"section_code":"gallery","featured_images":"7745134,3818928,1946076,1946055","id":130550,"singleSection":false});				  						galleries[130551] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"N","link":"gallery_130551.html","maxRecords":0.0,"photoIDs":[7745197.0,7745200.0,7745198.0,1949547.0],"skipIndex":0,"section_code":"gallery","featured_images":"7745200,7745198,7745197,1949547","id":130551,"singleSection":false});				  						galleries[130552] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"O","link":"gallery_130552.html","maxRecords":0.0,"photoIDs":[1873052.0],"skipIndex":0,"section_code":"gallery","featured_images":1873052.0,"id":130552,"singleSection":false});				  						galleries[130553] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"P","link":"gallery_130553.html","maxRecords":0.0,"photoIDs":[3820172.0,7745227.0,1898303.0,1949556.0],"skipIndex":0,"section_code":"gallery","featured_images":"7745227,3820172,1949556,1898303","id":130553,"singleSection":false});				  						galleries[130554] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"R","link":"gallery_130554.html","maxRecords":0.0,"photoIDs":[1924986.0,7745237.0,7745940.0,6029532.0,7745948.0],"skipIndex":0,"section_code":"gallery","featured_images":"7745948,7745940,7745237,6029532,1924986","id":130554,"singleSection":false});				  						galleries[130555] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"S","link":"gallery_130555.html","maxRecords":0.0,"photoIDs":[1898240.0,7746185.0,7745986.0,7745996.0,1946053.0,1945997.0],"skipIndex":0,"section_code":"gallery","featured_images":"7746185,7745996,7745986,1946053,1945997,1898240","id":130555,"singleSection":false});				  						galleries[130556] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"T","link":"gallery_130556.html","maxRecords":0.0,"photoIDs":[7746008.0,1873137.0],"skipIndex":0,"section_code":"gallery","featured_images":"7746008,1873137","id":130556,"singleSection":false});				  						galleries[232727] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"V","link":"gallery_232727.html","maxRecords":0.0,"photoIDs":[3820368.0],"skipIndex":0,"section_code":"gallery","featured_images":3820368.0,"id":232727,"singleSection":false});				  						galleries[130557] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"W","link":"gallery_130557.html","maxRecords":0.0,"photoIDs":[3819911.0,3818925.0,1898233.0,1946088.0,6029583.0,3818945.0,3819913.0,2231761.0,1946007.0,1873164.0],"skipIndex":0,"section_code":"gallery","featured_images":"6029583,3819913,3819911,3818945,3818925,2231761,1946088,1946007,1898233,1873164","id":130557,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '3820368,3820172,3819911,3818928,1997507,1986068,1949521,1925206,1924986,1924975,1898240,1873052,3820355,3818925,3818916,1898234,1873137,1873078,1946057,1946055,1898303,1898233,3818932,1949556,1949547,1946088,1946076,1943619,1925154,1946053,1898215,3819913,3818945,1946082,1873176,2231761,1898389,1898220,1986036,1945997,1949525,1946007,1873164,3820151,1949542,1898258,1986053';
imageSets[3] = '7746185,7746008,7745996,7745986,7745948,7745940,7745237,7745227,7745200,7745198,7745197,7745134,7745085,7745062,7745008,7744815,7744656,7744552,7744551,7740476,7740119,7739929,7739823,7739811,7739659,7739188,7739161,6029583,6029532,5898128,5898012,5897755,3820368,3820355,3820172,3820151,3819913,3819911,3818945,3818932,3818928,3818925,3818916,2231761,1997811,1997507,1986068,1986053,1986036,1949556';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/ROS2008/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'www.clikpic.com/ROS2008/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/ROS2008/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/ROS2008/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/ROS2008/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/ROS2008/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/ROS2008/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/ROS2008/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/ROS2008/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/ROS2008/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/ROS2008/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/ROS2008/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/ROS2008/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/ROS2008/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/ROS2008/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/ROS2008/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/ROS2008/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/ROS2008/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/ROS2008/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/ROS2008/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/ROS2008/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/ROS2008/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/ROS2008/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/ROS2008/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/ROS2008/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 = 'Rutland Open Studios 2011: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp += '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
	else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

