window.thumbnails = {};
															thumbnails[8729245] = clik.newPhoto({"id":8729245,"src":"Ariadne_thumb.jpg","galleries_id":372124,"server_id":1,"link":"photo_8729245.html","width":92,"caption":"Ariadne by Brian Hale","height":130});
															thumbnails[8729256] = clik.newPhoto({"id":8729256,"src":"Ashley_IMG_2109_12x8_low_res_thumb.jpg","galleries_id":372124,"server_id":1,"link":"photo_8729256.html","width":130,"caption":"Ashley by Micky Thompson","height":87});
															thumbnails[8729382] = clik.newPhoto({"id":8729382,"src":"Yellow_Tulip_thumb.jpg","galleries_id":372124,"server_id":1,"link":"photo_8729382.html","width":87,"caption":"Tulip by Janet Taylor","height":130});
															thumbnails[8729392] = clik.newPhoto({"id":8729392,"src":"Yellow_Tulip1_thumb.jpg","galleries_id":372122,"server_id":1,"link":"photo_8729392.html","width":87,"caption":"1st Yellow Tulip by Janet Taylor","height":130});
															thumbnails[8744397] = clik.newPhoto({"id":8744397,"src":"Yvonne_Knibbs_thumb.jpg","galleries_id":372124,"server_id":1,"link":"photo_8744397.html","width":98,"caption":"by Yvonne Knibbs","height":130});
															thumbnails[8938289] = clik.newPhoto({"id":8938289,"src":"glossy_ibis_02_copy_highly_comended002_thumb.jpg","galleries_id":372124,"server_id":1,"link":"photo_8938289.html","width":130,"caption":"Glossy Ibis by Simon Ball","height":89});
															thumbnails[8957218] = clik.newPhoto({"id":8957218,"src":"wave_jpeg001_thumb.jpg","galleries_id":372124,"server_id":1,"link":"photo_8957218.html","width":130,"caption":"The Wave by Simon Ball","height":56});
															thumbnails[8681299] = clik.newPhoto({"id":8681299,"src":"6_Mustang_Stampede006_thumb.jpg","galleries_id":372121,"server_id":1,"link":"photo_8681299.html","width":130,"caption":"First 'Stampede' by Lorraine Saville","height":87});
															thumbnails[8681313] = clik.newPhoto({"id":8681313,"src":"Tornado_in_Town001_thumb.jpg","galleries_id":372124,"server_id":1,"link":"photo_8681313.html","width":130,"caption":"Tornado in Town by Jo Stephens","height":87});
															thumbnails[8744384] = clik.newPhoto({"id":8744384,"src":"Jane_White001_thumb.jpg","galleries_id":372123,"server_id":1,"link":"photo_8744384.html","width":130,"caption":"Winner - Isabella by Jane White","height":87});
															thumbnails[8729385] = clik.newPhoto({"id":8729385,"src":"2nd_Abandoned_thumb.jpg","galleries_id":372123,"server_id":1,"link":"photo_8729385.html","width":130,"caption":"2nd Abandoned by Janet Taylor","height":123});
															thumbnails[8938286] = clik.newPhoto({"id":8938286,"src":"2nd_place_at_exhibtion001_thumb.jpg","galleries_id":372121,"server_id":1,"link":"photo_8938286.html","width":130,"caption":"Second Place by Simon Ball","height":104});
															thumbnails[8681286] = clik.newPhoto({"id":8681286,"src":"View_From_A_Bridge_small_thumb.jpg","galleries_id":372121,"server_id":1,"link":"photo_8681286.html","width":130,"caption":"Third 'a view from a bridge' Steve Woof","height":47});
															thumbnails[266920] = clik.newPhoto({"id":266920,"src":"Blea tarn gate copy001_thumb.jpg","galleries_id":22503,"server_id":1,"link":"photo_266920.html","width":130,"caption":"Blea Tarn Gate","height":93});
															thumbnails[266922] = clik.newPhoto({"id":266922,"src":"BLRA TARN 1 copy001_thumb.jpg","galleries_id":22503,"server_id":1,"link":"photo_266922.html","width":130,"caption":"Blea Tarn","height":87});
															thumbnails[266923] = clik.newPhoto({"id":266923,"src":"boathouse copy001_thumb.jpg","galleries_id":22503,"server_id":1,"link":"photo_266923.html","width":86,"caption":"The Boat House","height":130});
															thumbnails[266924] = clik.newPhoto({"id":266924,"src":"tiger copy001_thumb.jpg","galleries_id":22503,"server_id":1,"link":"photo_266924.html","width":87,"caption":"Tiger ","height":130});
															thumbnails[266927] = clik.newPhoto({"id":266927,"src":"lamb copy001_thumb.jpg","galleries_id":23783,"server_id":1,"link":"photo_266927.html","width":130,"caption":"Lamb","height":88});
															thumbnails[266928] = clik.newPhoto({"id":266928,"src":"RAINBOW 2 copy001_thumb.jpg","galleries_id":23783,"server_id":1,"link":"photo_266928.html","width":86,"caption":"Rainbow","height":130});
															thumbnails[266929] = clik.newPhoto({"id":266929,"src":"SEAGULL SCRATCHING copy001_thumb.jpg","galleries_id":23783,"server_id":1,"link":"photo_266929.html","width":88,"caption":"Seagull scratching","height":130});
															thumbnails[266931] = clik.newPhoto({"id":266931,"src":"SUNFLOWER copy001_thumb.jpg","galleries_id":23783,"server_id":1,"link":"photo_266931.html","width":130,"caption":"Sunflower","height":87});
															thumbnails[270706] = clik.newPhoto({"id":270706,"src":"Austin_A30001_thumb.jpg","galleries_id":24094,"server_id":1,"link":"photo_270706.html","width":90,"caption":"Austin A30","height":130});
															thumbnails[270707] = clik.newPhoto({"id":270707,"src":"Kennet_Canal3001_thumb.jpg","galleries_id":24094,"server_id":1,"link":"photo_270707.html","width":86,"caption":"Kennet Canal Hungerford","height":130});
															thumbnails[270709] = clik.newPhoto({"id":270709,"src":"Woolacombe_Beach1001_thumb.jpg","galleries_id":24094,"server_id":1,"link":"photo_270709.html","width":87,"caption":"Woolacombe Beach","height":130});
															thumbnails[272914] = clik.newPhoto({"id":272914,"src":"GibbHCC99_MG_0798-01001_thumb.jpg","galleries_id":24094,"server_id":1,"link":"photo_272914.html","width":92,"caption":"Combe Gibbet","height":130});
															thumbnails[830399] = clik.newPhoto({"id":830399,"src":"sunderise-A5 copy001_thumb.jpg","galleries_id":64198,"server_id":1,"link":"photo_830399.html","width":130,"caption":"","height":86});
															thumbnails[830400] = clik.newPhoto({"id":830400,"src":"Pines-A5 copy001_thumb.jpg","galleries_id":64198,"server_id":1,"link":"photo_830400.html","width":88,"caption":"Pines","height":130});
															thumbnails[830403] = clik.newPhoto({"id":830403,"src":"chase-stream-A5 copy001_thumb.jpg","galleries_id":64198,"server_id":1,"link":"photo_830403.html","width":88,"caption":"","height":130});
															thumbnails[946569] = clik.newPhoto({"id":946569,"src":"Pic1_thumb.jpg","galleries_id":71655,"server_id":1,"link":"photo_946569.html","width":130,"caption":"Barn Owl!","height":130});
															thumbnails[946582] = clik.newPhoto({"id":946582,"src":"Train 069_thumb.jpg","galleries_id":71655,"server_id":1,"link":"photo_946582.html","width":130,"caption":"Train 069","height":87});
															thumbnails[946583] = clik.newPhoto({"id":946583,"src":"Splash of colour_thumb.jpg","galleries_id":71655,"server_id":1,"link":"photo_946583.html","width":130,"caption":"Splash of colour","height":87});
															thumbnails[946586] = clik.newPhoto({"id":946586,"src":"Geometrical pattern_thumb.jpg","galleries_id":71655,"server_id":1,"link":"photo_946586.html","width":130,"caption":"Geometrical pattern","height":87});
															thumbnails[1467842] = clik.newPhoto({"id":1467842,"src":"exhibition print001_thumb.jpg","galleries_id":57623,"server_id":1,"link":"photo_1467842.html","width":58,"caption":"Venice canal","height":130});
															thumbnails[3966895] = clik.newPhoto({"id":3966895,"src":"foxglove_thumb.jpg","galleries_id":192114,"server_id":1,"link":"photo_3966895.html","width":73,"caption":"Foxglove","height":130});
															thumbnails[3966899] = clik.newPhoto({"id":3966899,"src":"goldfinch_thumb.jpg","galleries_id":192114,"server_id":1,"link":"photo_3966899.html","width":87,"caption":"","height":130});
															thumbnails[3966902] = clik.newPhoto({"id":3966902,"src":"horse_thumb.jpg","galleries_id":192114,"server_id":1,"link":"photo_3966902.html","width":86,"caption":"","height":130});
															thumbnails[3966905] = clik.newPhoto({"id":3966905,"src":"stonehenge_thumb.jpg","galleries_id":192114,"server_id":1,"link":"photo_3966905.html","width":130,"caption":"","height":87});
															thumbnails[4136203] = clik.newPhoto({"id":4136203,"src":"Lily_thumb.jpg","galleries_id":24704,"server_id":1,"link":"photo_4136203.html","width":91,"caption":"Lily","height":130});
															thumbnails[4136208] = clik.newPhoto({"id":4136208,"src":"Beauty_thumb.jpg","galleries_id":24704,"server_id":1,"link":"photo_4136208.html","width":104,"caption":"Beauty","height":130});
															thumbnails[4136214] = clik.newPhoto({"id":4136214,"src":"Peacock_Feather_thumb.jpg","galleries_id":24704,"server_id":1,"link":"photo_4136214.html","width":87,"caption":"","height":130});
															thumbnails[4136220] = clik.newPhoto({"id":4136220,"src":"A_Place_to_Rest_thumb.jpg","galleries_id":24704,"server_id":1,"link":"photo_4136220.html","width":87,"caption":"","height":130});
															thumbnails[4382187] = clik.newPhoto({"id":4382187,"src":"IMG_00451_thumb.jpg","galleries_id":42620,"server_id":1,"link":"photo_4382187.html","width":130,"caption":"","height":92});
															thumbnails[4382200] = clik.newPhoto({"id":4382200,"src":"IMG_02152_thumb.jpg","galleries_id":42620,"server_id":1,"link":"photo_4382200.html","width":130,"caption":"","height":98});
															thumbnails[4382203] = clik.newPhoto({"id":4382203,"src":"IMG_06084_thumb.jpg","galleries_id":42620,"server_id":1,"link":"photo_4382203.html","width":130,"caption":"","height":98});
															thumbnails[4382206] = clik.newPhoto({"id":4382206,"src":"IMG_02713_thumb.jpg","galleries_id":42620,"server_id":1,"link":"photo_4382206.html","width":130,"caption":"","height":92});
															thumbnails[4382293] = clik.newPhoto({"id":4382293,"src":"Dsc_1405a1_thumb.jpg","galleries_id":84576,"server_id":1,"link":"photo_4382293.html","width":87,"caption":"","height":130});
															thumbnails[4382296] = clik.newPhoto({"id":4382296,"src":"Dsc_6859a2_thumb.jpg","galleries_id":84576,"server_id":1,"link":"photo_4382296.html","width":87,"caption":"","height":130});
															thumbnails[4382297] = clik.newPhoto({"id":4382297,"src":"Dsc_7968a3_thumb.jpg","galleries_id":84576,"server_id":1,"link":"photo_4382297.html","width":87,"caption":"","height":130});
															thumbnails[4382300] = clik.newPhoto({"id":4382300,"src":"Dsc_8109a4_thumb.jpg","galleries_id":84576,"server_id":1,"link":"photo_4382300.html","width":87,"caption":"","height":130});
															thumbnails[6290092] = clik.newPhoto({"id":6290092,"src":"IMG_0675small_thumb.jpg","galleries_id":30822,"server_id":1,"link":"photo_6290092.html","width":130,"caption":"","height":98});
															thumbnails[6290108] = clik.newPhoto({"id":6290108,"src":"IMG_0414small001_thumb.jpg","galleries_id":30822,"server_id":1,"link":"photo_6290108.html","width":98,"caption":"","height":130});
															thumbnails[6290156] = clik.newPhoto({"id":6290156,"src":"IMG_0833small001_thumb.jpg","galleries_id":30822,"server_id":1,"link":"photo_6290156.html","width":130,"caption":"","height":98});
															thumbnails[6290160] = clik.newPhoto({"id":6290160,"src":"IMG_9128small002_thumb.jpg","galleries_id":30822,"server_id":1,"link":"photo_6290160.html","width":98,"caption":"","height":130});
															thumbnails[7749869] = clik.newPhoto({"id":7749869,"src":"Cuba_2__24_7_to_8_8_2010_061web001_thumb.jpg","galleries_id":22641,"server_id":1,"link":"photo_7749869.html","width":98,"caption":"","height":130});
															thumbnails[7749873] = clik.newPhoto({"id":7749873,"src":"Cuba_2__24_7_to_8_8_2010_343web002_thumb.jpg","galleries_id":22641,"server_id":1,"link":"photo_7749873.html","width":130,"caption":"","height":81});
															thumbnails[7749875] = clik.newPhoto({"id":7749875,"src":"Ria_16_05_2010_001_391web003_thumb.jpg","galleries_id":22641,"server_id":1,"link":"photo_7749875.html","width":130,"caption":"","height":130});
															thumbnails[7749878] = clik.newPhoto({"id":7749878,"src":"Stowell_Park__20_06_2010_034web004_thumb.jpg","galleries_id":22641,"server_id":1,"link":"photo_7749878.html","width":130,"caption":"","height":130});
															thumbnails[8729249] = clik.newPhoto({"id":8729249,"src":"B__W_Freddie_sm002_thumb.jpg","galleries_id":460023,"server_id":1,"link":"photo_8729249.html","width":130,"caption":"","height":86});
															thumbnails[8729250] = clik.newPhoto({"id":8729250,"src":"IMG_0591_sm003_thumb.jpg","galleries_id":460023,"server_id":1,"link":"photo_8729250.html","width":110,"caption":"","height":130});
															thumbnails[8729251] = clik.newPhoto({"id":8729251,"src":"IMG_1716_sm004_thumb.jpg","galleries_id":460023,"server_id":1,"link":"photo_8729251.html","width":130,"caption":"","height":98});
															thumbnails[8729253] = clik.newPhoto({"id":8729253,"src":"St_Ives_sm001_thumb.jpg","galleries_id":460023,"server_id":1,"link":"photo_8729253.html","width":130,"caption":"","height":61});
															thumbnails[1467845] = clik.newPhoto({"id":1467845,"src":"Boats in the sunset0011_thumb.jpg","galleries_id":22296,"server_id":1,"link":"photo_1467845.html","width":130,"caption":"2nd Judged - Lorraine Saville - Boats in the Sunset","height":48});
															thumbnails[1471253] = clik.newPhoto({"id":1471253,"src":"snowdrops_thumb.jpg","galleries_id":22503,"server_id":1,"link":"photo_1471253.html","width":130,"caption":"1st Public vote David Cook - Snowdrops","height":92});
															thumbnails[1472591] = clik.newPhoto({"id":1472591,"src":"SEAGULL 3001_thumb.jpg","galleries_id":23783,"server_id":1,"link":"photo_1472591.html","width":130,"caption":"3rd Judged - Jackie Cook - Seagull","height":87});
															thumbnails[376530] = clik.newPhoto({"id":376530,"src":"scan0001001_thumb.jpg","galleries_id":30678,"server_id":1,"link":"photo_376530.html","width":130,"caption":"My grandchildren","height":87});
															thumbnails[746627] = clik.newPhoto({"id":746627,"src":"American Sparrow Hawk001_thumb.jpg","galleries_id":57623,"server_id":1,"link":"photo_746627.html","width":87,"caption":"American Sparrow Hawk","height":130});
															thumbnails[1352415] = clik.newPhoto({"id":1352415,"src":"PendineRays001_thumb.jpg","galleries_id":94690,"server_id":1,"link":"photo_1352415.html","width":130,"caption":"Pendine Rays","height":80});
															thumbnails[1352435] = clik.newPhoto({"id":1352435,"src":"Gull at an Angle at 72 dpi0010011_thumb.jpg","galleries_id":22296,"server_id":1,"link":"photo_1352435.html","width":130,"caption":"Angle Poise","height":89});
															thumbnails[1471347] = clik.newPhoto({"id":1471347,"src":"Puffin with Sand Eels001001_thumb.jpg","galleries_id":101245,"server_id":1,"link":"photo_1471347.html","width":92,"caption":"Puffin with Sand Eels","height":130});
															thumbnails[2981945] = clik.newPhoto({"id":2981945,"src":"Party Animal_thumb.jpg","galleries_id":183608,"server_id":1,"link":"photo_2981945.html","width":95,"caption":"Party Animal","height":130});
															thumbnails[249624] = clik.newPhoto({"id":249624,"src":"DSC_0114_thumb.jpg","galleries_id":22504,"server_id":1,"link":"photo_249624.html","width":86,"caption":"Monster Truck","height":130});
															thumbnails[376531] = clik.newPhoto({"id":376531,"src":"scan0002001_thumb.jpg","galleries_id":30678,"server_id":1,"link":"photo_376531.html","width":87,"caption":"","height":130});
															thumbnails[746629] = clik.newPhoto({"id":746629,"src":"Coombe001_thumb.jpg","galleries_id":57623,"server_id":1,"link":"photo_746629.html","width":87,"caption":"Coombe in the frost","height":130});
															thumbnails[1352419] = clik.newPhoto({"id":1352419,"src":"Racing125001_thumb.jpg","galleries_id":94690,"server_id":1,"link":"photo_1352419.html","width":130,"caption":"Racing","height":92});
															thumbnails[1352438] = clik.newPhoto({"id":1352438,"src":"Feet in Pool0010010011_thumb.jpg","galleries_id":22296,"server_id":1,"link":"photo_1352438.html","width":130,"caption":"It's in here somewhere","height":80});
															thumbnails[249626] = clik.newPhoto({"id":249626,"src":"DSC_0190_thumb.jpg","galleries_id":22504,"server_id":1,"link":"photo_249626.html","width":77,"caption":"Stars and Stripes","height":130});
															thumbnails[376532] = clik.newPhoto({"id":376532,"src":"scan0003001_thumb.jpg","galleries_id":30678,"server_id":1,"link":"photo_376532.html","width":130,"caption":"","height":87});
															thumbnails[746631] = clik.newPhoto({"id":746631,"src":"Helford Estuary001_thumb.jpg","galleries_id":57623,"server_id":1,"link":"photo_746631.html","width":130,"caption":"Helford Estuary","height":87});
															thumbnails[1352422] = clik.newPhoto({"id":1352422,"src":"AutumnK&A001_thumb.jpg","galleries_id":94690,"server_id":1,"link":"photo_1352422.html","width":94,"caption":"Autumn","height":130});
															thumbnails[1352440] = clik.newPhoto({"id":1352440,"src":"Egypt slide 18 B&W_thumb.jpg","galleries_id":22296,"server_id":1,"link":"photo_1352440.html","width":104,"caption":"Bakeesh please","height":130});
															thumbnails[2981948] = clik.newPhoto({"id":2981948,"src":"StNichs_thumb.jpg","galleries_id":183608,"server_id":1,"link":"photo_2981948.html","width":130,"caption":"Clouds","height":86});
															thumbnails[249621] = clik.newPhoto({"id":249621,"src":"DSC_0204_thumb.jpg","galleries_id":22504,"server_id":1,"link":"photo_249621.html","width":96,"caption":"Bumper car","height":130});
															thumbnails[376533] = clik.newPhoto({"id":376533,"src":"scan0004001_thumb.jpg","galleries_id":30678,"server_id":1,"link":"photo_376533.html","width":130,"caption":"","height":87});
															thumbnails[746633] = clik.newPhoto({"id":746633,"src":"Waterfall in Doone Valley001_thumb.jpg","galleries_id":57623,"server_id":1,"link":"photo_746633.html","width":130,"caption":"Waterfall in the Doone Valley","height":87});
															thumbnails[1352425] = clik.newPhoto({"id":1352425,"src":"BaldEagle001_thumb.jpg","galleries_id":94690,"server_id":1,"link":"photo_1352425.html","width":111,"caption":"Bald Eagle","height":130});
															thumbnails[2981951] = clik.newPhoto({"id":2981951,"src":"Tree Roots_thumb.jpg","galleries_id":183608,"server_id":1,"link":"photo_2981951.html","width":87,"caption":"Tree Roots","height":130});
															thumbnails[249618] = clik.newPhoto({"id":249618,"src":"Panaromic_view_off_Bridge_-_Copy_thumb.jpg","galleries_id":22504,"server_id":1,"link":"photo_249618.html","width":130,"caption":"Panaroma","height":72});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[372121] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"The Hofgartner Cup winners 2011","link":"section443647_372121.html","maxRecords":0.0,"photoIDs":[8681299.0,8938286.0,8681286.0],"skipIndex":0,"section_code":"section443647","featured_images":8681299.0,"id":372121,"singleSection":false});				  						galleries[372122] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"The Public Vote winners 2011","link":"section443647_372122.html","maxRecords":0.0,"photoIDs":[8729392.0],"skipIndex":0,"section_code":"section443647","featured_images":8729392.0,"id":372122,"singleSection":false});				  						galleries[372123] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Cooks Crystal winners 2011","link":"section443647_372123.html","maxRecords":0.0,"photoIDs":[8744384.0,8729385.0],"skipIndex":0,"section_code":"section443647","featured_images":8744384.0,"id":372123,"singleSection":false});				  						galleries[372124] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Highly Commended Certificates awarded 2011","link":"section443647_372124.html","maxRecords":0.0,"photoIDs":[8729245.0,8729256.0,8729382.0,8744397.0,8938289.0,8957218.0,8681313.0],"skipIndex":0,"section_code":"section443647","featured_images":"8938289,8744397,8729382,8729256,8729245,8681313","id":372124,"singleSection":false});				  						galleries[22503] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"David Cook ","link":"gallery_22503.html","maxRecords":0.0,"photoIDs":[266920.0,266922.0,266923.0,266924.0,1471253.0],"skipIndex":0,"section_code":"gallery","featured_images":1471253.0,"id":22503,"singleSection":false});				  						galleries[22296] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Lorraine Saville","link":"gallery_22296.html","maxRecords":0.0,"photoIDs":[1467845.0,1352435.0,1352438.0,1352440.0],"skipIndex":0,"section_code":"gallery","featured_images":1352438.0,"id":22296,"singleSection":false});				  						galleries[22641] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Micky Thompson","link":"gallery_22641.html","maxRecords":0.0,"photoIDs":[7749869.0,7749873.0,7749875.0,7749878.0],"skipIndex":0,"section_code":"gallery","featured_images":"7749875,7749873,7749869","id":22641,"singleSection":false});				  						galleries[22504] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Carl Holmes","link":"gallery_22504.html","maxRecords":0.0,"photoIDs":[249624.0,249626.0,249621.0,249618.0],"skipIndex":0,"section_code":"gallery","featured_images":249621.0,"id":22504,"singleSection":false});				  						galleries[23783] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Jackie Cook","link":"gallery_23783.html","maxRecords":0.0,"photoIDs":[266927.0,266928.0,266929.0,266931.0,1472591.0],"skipIndex":0,"section_code":"gallery","featured_images":266931.0,"id":23783,"singleSection":false});				  						galleries[24094] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Chris Keene","link":"gallery_24094.html","maxRecords":0.0,"photoIDs":[270706.0,270707.0,270709.0,272914.0],"skipIndex":0,"section_code":"gallery","featured_images":272914.0,"id":24094,"singleSection":false});				  						galleries[24704] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Janet Taylor","link":"gallery_24704.html","maxRecords":0.0,"photoIDs":[4136203.0,4136208.0,4136214.0,4136220.0],"skipIndex":0,"section_code":"gallery","featured_images":"4136220,4136214,4136208,4136203","id":24704,"singleSection":false});				  						galleries[64198] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Neil Salmon","link":"gallery_64198.html","maxRecords":0.0,"photoIDs":[830399.0,830400.0,830403.0],"skipIndex":0,"section_code":"gallery","featured_images":830399.0,"id":64198,"singleSection":false});				  						galleries[42620] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Giff Cooper","link":"gallery_42620.html","maxRecords":0.0,"photoIDs":[4382187.0,4382200.0,4382203.0,4382206.0],"skipIndex":0,"section_code":"gallery","featured_images":"4382206,4382203,4382200,4382187","id":42620,"singleSection":false});				  						galleries[30678] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Patricia Nicholson","link":"gallery_30678.html","maxRecords":0.0,"photoIDs":[376530.0,376531.0,376532.0,376533.0],"skipIndex":0,"section_code":"gallery","featured_images":376530.0,"id":30678,"singleSection":false});				  						galleries[30822] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Mike Robinson","link":"gallery_30822.html","maxRecords":0.0,"photoIDs":[6290092.0,6290108.0,6290156.0,6290160.0],"skipIndex":0,"section_code":"gallery","featured_images":"6290160,6290156,6290108,6290092","id":30822,"singleSection":false});				  						galleries[71655] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Tony Bartlett","link":"gallery_71655.html","maxRecords":0.0,"photoIDs":[946569.0,946582.0,946583.0,946586.0],"skipIndex":0,"section_code":"gallery","featured_images":946583.0,"id":71655,"singleSection":false});				  						galleries[84576] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Janet O'Hara","link":"gallery_84576.html","maxRecords":0.0,"photoIDs":[4382293.0,4382296.0,4382297.0,4382300.0],"skipIndex":0,"section_code":"gallery","featured_images":"4382300,4382297,4382296,4382293","id":84576,"singleSection":false});				  						galleries[94690] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Richard Crowther","link":"gallery_94690.html","maxRecords":0.0,"photoIDs":[1352415.0,1352419.0,1352422.0,1352425.0],"skipIndex":0,"section_code":"gallery","featured_images":1352415.0,"id":94690,"singleSection":false});				  						galleries[101245] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Pat Kenchington","link":"gallery_101245.html","maxRecords":0.0,"photoIDs":[1471347.0],"skipIndex":0,"section_code":"gallery","featured_images":1471347.0,"id":101245,"singleSection":false});				  						galleries[183608] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"John Priest","link":"gallery_183608.html","maxRecords":0.0,"photoIDs":[2981945.0,2981948.0,2981951.0],"skipIndex":0,"section_code":"gallery","featured_images":2981945.0,"id":183608,"singleSection":false});				  						galleries[192114] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Brian Price","link":"gallery_192114.html","maxRecords":0.0,"photoIDs":[3966895.0,3966899.0,3966902.0,3966905.0],"skipIndex":0,"section_code":"gallery","featured_images":3966905.0,"id":192114,"singleSection":false});				  						galleries[57623] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Simon Ball","link":"gallery_57623.html","maxRecords":0.0,"photoIDs":[1467842.0,746627.0,746629.0,746631.0,746633.0],"skipIndex":0,"section_code":"gallery","featured_images":746633.0,"id":57623,"singleSection":false});				  						galleries[460023] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Steve Woof","link":"gallery_460023.html","maxRecords":0.0,"photoIDs":[8729249.0,8729250.0,8729251.0,8729253.0],"skipIndex":0,"section_code":"gallery","featured_images":"8729253,8729250,8729249","id":460023,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8957218,8744397,8729382,8729256,8729253,8729250,8729249,8729245,7749878,7749875,7749873,6290160,6290156,6290108,6290092,4136220,4136214,4136208,4136203,3966905,3966902,3966899,3966895,946586,946583,946582,946569,830403,830400,830399,272914,266931,266929,266927,266924,266922,266920,1472591,1471253,1467845,8744384,8681313,8681299,2981945,1471347,1352435,1352415,746627,8938286,8729385,1352438,1352419,746629,249624,8681286,2981948,1352440,1352422,746631,249626,2981951,1352425,746633,249621,249618';
imageSets[2] = '8938289,8744397,8729392,8729382,8729256,8729253,8729250,8729249,8729245,7749875,7749873,7749869,6290160,6290156,6290108,6290092,3966905,946583,830399,272914,266931,1471253,8744384,8681313,8681299,2981945,1471347,1352415,376530,1352438,746633,249621';
imageSets[3] = '8957218,8938289,8938286,8744397,8744384,8729392,8729385,8729382,8729256,8729253,8729251,8729250,8729249,8729245,8681313,8681299,8681286,7749878,7749875,7749873,7749869,6290160,6290156,6290108,6290092,4382300,4382297,4382296,4382293,4382206,4382203,4382200,4382187,4136220,4136214,4136208,4136203,3966905,3966902,3966899,3966895,2981951,2981948,2981945,1472591,1471347,1471253,1467845,1467842,1352440';
imageSets[211002] = '7749878,7749875,7749873,7749869';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/HungferfordCC/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/HungferfordCC/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/HungferfordCC/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/HungferfordCC/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/HungferfordCC/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/HungferfordCC/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/HungferfordCC/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/HungferfordCC/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/HungferfordCC/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/HungferfordCC/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/HungferfordCC/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/HungferfordCC/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/HungferfordCC/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/HungferfordCC/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/HungferfordCC/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/HungferfordCC/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/HungferfordCC/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/HungferfordCC/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/HungferfordCC/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/HungferfordCC/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/HungferfordCC/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/HungferfordCC/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/HungferfordCC/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/HungferfordCC/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/HungferfordCC/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/HungferfordCC/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/HungferfordCC/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 += 'section443647.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 && 'section443647' != '') {
					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 = 'Hungerford Camera Club: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else {
		
	}
	if (this.item_price !== '') {
			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;
	}
}

			

