window.thumbnails = {};
															thumbnails[3535147] = clik.newPhoto({"id":3535147,"src":"Poole_Harbour_sunset_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":196});
															thumbnails[3535150] = clik.newPhoto({"id":3535150,"src":"Rich_EXP00022_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":96});
															thumbnails[3535151] = clik.newPhoto({"id":3535151,"src":"DSC_0038_thumb.JPG","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":87});
															thumbnails[3593756] = clik.newPhoto({"id":3593756,"src":"Durdle_Door_Dorset_thumb.jpg","galleries_id":212957,"server_id":15,"link":"photo_3593756.html","width":130,"caption":"","height":70});
															thumbnails[3593764] = clik.newPhoto({"id":3593764,"src":"Misty_Morning_Dorset_thumb.jpg","galleries_id":212957,"server_id":15,"link":"photo_3593764.html","width":130,"caption":"","height":75});
															thumbnails[3593772] = clik.newPhoto({"id":3593772,"src":"Swan_Lake_Dagenham_thumb.jpg","galleries_id":212957,"server_id":15,"link":"photo_3593772.html","width":130,"caption":"","height":87});
															thumbnails[3594148] = clik.newPhoto({"id":3594148,"src":"Sani_Pass_thumb.jpg","galleries_id":215017,"server_id":15,"link":"photo_3594148.html","width":130,"caption":"Sani Pass","height":65});
															thumbnails[3600609] = clik.newPhoto({"id":3600609,"src":"Alghero_marina_thumb.jpg","galleries_id":215008,"server_id":15,"link":"photo_3600609.html","width":130,"caption":"","height":300});
															thumbnails[3600611] = clik.newPhoto({"id":3600611,"src":"Snow_Leopard_thumb.jpg","galleries_id":215008,"server_id":15,"link":"photo_3600611.html","width":130,"caption":"","height":93});
															thumbnails[3600614] = clik.newPhoto({"id":3600614,"src":"Zak_thumb.jpg","galleries_id":215008,"server_id":15,"link":"photo_3600614.html","width":130,"caption":"","height":117});
															thumbnails[3605285] = clik.newPhoto({"id":3605285,"src":"Like_A_Statue1_thumb.jpg","galleries_id":219642,"server_id":15,"link":"photo_3605285.html","width":130,"caption":"","height":194});
															thumbnails[3605287] = clik.newPhoto({"id":3605287,"src":"Lambourne_End_Church1_thumb.jpg","galleries_id":219642,"server_id":15,"link":"photo_3605287.html","width":130,"caption":"","height":194});
															thumbnails[3605289] = clik.newPhoto({"id":3605289,"src":"Greenwich_Sunset1_thumb.jpg","galleries_id":219642,"server_id":15,"link":"photo_3605289.html","width":130,"caption":"","height":194});
															thumbnails[3621141] = clik.newPhoto({"id":3621141,"src":"Wheres_the_train_copy_thumb.jpg","galleries_id":215014,"server_id":15,"link":"photo_3621141.html","width":130,"caption":"","height":173});
															thumbnails[3621150] = clik.newPhoto({"id":3621150,"src":"Ramsey_Gardens_Edinburgh_copy_thumb.jpg","galleries_id":215014,"server_id":15,"link":"photo_3621150.html","width":130,"caption":"","height":94});
															thumbnails[3621154] = clik.newPhoto({"id":3621154,"src":"Central_Park_New_York_copy_thumb.jpg","galleries_id":215014,"server_id":15,"link":"photo_3621154.html","width":130,"caption":"","height":87});
															thumbnails[3621158] = clik.newPhoto({"id":3621158,"src":"Beethoven_House_Bonn_copy_thumb.jpg","galleries_id":215014,"server_id":15,"link":"photo_3621158.html","width":130,"caption":"","height":184});
															thumbnails[3625839] = clik.newPhoto({"id":3625839,"src":"DSC_1070_rsc_thumb.jpg","galleries_id":215017,"server_id":15,"link":"photo_3625839.html","width":130,"caption":"Orphan Child-South Africa","height":179});
															thumbnails[3641148] = clik.newPhoto({"id":3641148,"src":"DSC00583_graf_rsc_thumb.jpg","galleries_id":215009,"server_id":15,"link":"photo_3641148.html","width":130,"caption":"Are You Dissing Me?","height":173});
															thumbnails[3641151] = clik.newPhoto({"id":3641151,"src":"IMG_4505_garda_rsc_thumb.jpg","galleries_id":215009,"server_id":15,"link":"photo_3641151.html","width":130,"caption":"Love In The Mist","height":173});
															thumbnails[3641154] = clik.newPhoto({"id":3641154,"src":"IMG_5438_lyme_rsc_thumb.jpg","galleries_id":215009,"server_id":15,"link":"photo_3641154.html","width":130,"caption":"Lyme Regis","height":98});
															thumbnails[3641636] = clik.newPhoto({"id":3641636,"src":"IMG_0605_rsc1_thumb.jpg","galleries_id":215013,"server_id":15,"link":"photo_3641636.html","width":130,"caption":"","height":98});
															thumbnails[3641638] = clik.newPhoto({"id":3641638,"src":"IMG_0618_rsc_thumb.jpg","galleries_id":215013,"server_id":15,"link":"photo_3641638.html","width":130,"caption":"","height":98});
															thumbnails[3641646] = clik.newPhoto({"id":3641646,"src":"IMG_0621_rsc_thumb.jpg","galleries_id":215013,"server_id":15,"link":"photo_3641646.html","width":130,"caption":"","height":98});
															thumbnails[3641647] = clik.newPhoto({"id":3641647,"src":"IMG_0625_rsc_thumb.jpg","galleries_id":215013,"server_id":15,"link":"photo_3641647.html","width":130,"caption":"","height":98});
															thumbnails[3641649] = clik.newPhoto({"id":3641649,"src":"lakeland_rsc_thumb.jpg","galleries_id":215013,"server_id":15,"link":"photo_3641649.html","width":130,"caption":"","height":87});
															thumbnails[3673879] = clik.newPhoto({"id":3673879,"src":"Stick_1_143rsc_thumb.jpg","galleries_id":215007,"server_id":15,"link":"photo_3673879.html","width":130,"caption":"","height":170});
															thumbnails[3673881] = clik.newPhoto({"id":3673881,"src":"stick1_086rsc_thumb.jpg","galleries_id":215007,"server_id":15,"link":"photo_3673881.html","width":130,"caption":"","height":105});
															thumbnails[3673883] = clik.newPhoto({"id":3673883,"src":"Stick_1_190rsc_thumb.jpg","galleries_id":215007,"server_id":15,"link":"photo_3673883.html","width":130,"caption":"","height":87});
															thumbnails[3704717] = clik.newPhoto({"id":3704717,"src":"DSC_0059rsc_thumb.jpg","galleries_id":215006,"server_id":15,"link":"photo_3704717.html","width":130,"caption":"","height":86});
															thumbnails[3704718] = clik.newPhoto({"id":3704718,"src":"DSC_0077rsc_thumb.jpg","galleries_id":215006,"server_id":15,"link":"photo_3704718.html","width":130,"caption":"","height":86});
															thumbnails[3704720] = clik.newPhoto({"id":3704720,"src":"DSC_0615rsc_thumb.jpg","galleries_id":215006,"server_id":15,"link":"photo_3704720.html","width":130,"caption":"","height":86});
															thumbnails[3704722] = clik.newPhoto({"id":3704722,"src":"DSC_0060_thumb.jpg","galleries_id":214240,"server_id":15,"link":"photo_3704722.html","width":130,"caption":"","height":86});
															thumbnails[3704723] = clik.newPhoto({"id":3704723,"src":"DSC_0675rsc_thumb.jpg","galleries_id":214240,"server_id":15,"link":"photo_3704723.html","width":130,"caption":"","height":86});
															thumbnails[3704724] = clik.newPhoto({"id":3704724,"src":"pic3rsc_thumb.jpg","galleries_id":214240,"server_id":15,"link":"photo_3704724.html","width":130,"caption":"","height":86});
															thumbnails[3714498] = clik.newPhoto({"id":3714498,"src":"Autumn_Colours_rsc_thumb.jpg","galleries_id":226981,"server_id":15,"link":"photo_3714498.html","width":130,"caption":"","height":98});
															thumbnails[3714500] = clik.newPhoto({"id":3714500,"src":"Dorset_View_rsc_thumb.jpg","galleries_id":226981,"server_id":15,"link":"photo_3714500.html","width":130,"caption":"","height":92});
															thumbnails[3714501] = clik.newPhoto({"id":3714501,"src":"Fungi_rsc_thumb.jpg","galleries_id":226981,"server_id":15,"link":"photo_3714501.html","width":130,"caption":"","height":98});
															thumbnails[3714502] = clik.newPhoto({"id":3714502,"src":"Wet_Rocks_rsc_thumb.jpg","galleries_id":226981,"server_id":15,"link":"photo_3714502.html","width":130,"caption":"","height":98});
															thumbnails[3776751] = clik.newPhoto({"id":3776751,"src":"harriet_1_rsc_thumb.jpg","galleries_id":215013,"server_id":15,"link":"photo_3776751.html","width":130,"caption":"Harriet","height":195});
															thumbnails[3776753] = clik.newPhoto({"id":3776753,"src":"IMG_0732_rsc_thumb.jpg","galleries_id":215013,"server_id":15,"link":"photo_3776753.html","width":130,"caption":"","height":195});
															thumbnails[3776754] = clik.newPhoto({"id":3776754,"src":"IMG_0749_rsc_thumb.jpg","galleries_id":215013,"server_id":15,"link":"photo_3776754.html","width":130,"caption":"","height":195});
															thumbnails[4562826] = clik.newPhoto({"id":4562826,"src":"MEERCAT_thumb.jpg","galleries_id":212957,"server_id":15,"link":"photo_4562826.html","width":130,"caption":"MEERCAT","height":219});
															thumbnails[4562832] = clik.newPhoto({"id":4562832,"src":"LANDSCAPE_PATTERNS_thumb.jpg","galleries_id":212957,"server_id":15,"link":"photo_4562832.html","width":130,"caption":"","height":229});
															thumbnails[4562833] = clik.newPhoto({"id":4562833,"src":"SOLID_FAITH_thumb.jpg","galleries_id":212957,"server_id":15,"link":"photo_4562833.html","width":130,"caption":"","height":178});
															thumbnails[4562834] = clik.newPhoto({"id":4562834,"src":"ULTING_CHURCH_thumb.jpg","galleries_id":212957,"server_id":15,"link":"photo_4562834.html","width":130,"caption":"","height":218});
															thumbnails[6583507] = clik.newPhoto({"id":6583507,"src":"DCC_Amaryllis_b_thumb.jpg","galleries_id":215008,"server_id":15,"link":"photo_6583507.html","width":130,"caption":"","height":92});
															thumbnails[6583508] = clik.newPhoto({"id":6583508,"src":"DCC_Passing_the_time_b_thumb.jpg","galleries_id":215008,"server_id":15,"link":"photo_6583508.html","width":130,"caption":"","height":87});
															thumbnails[6583509] = clik.newPhoto({"id":6583509,"src":"DCC_Early_one_morning_b_thumb.jpg","galleries_id":212957,"server_id":15,"link":"photo_6583509.html","width":130,"caption":"","height":65});
															thumbnails[6583510] = clik.newPhoto({"id":6583510,"src":"Carackle_3_b1_thumb.jpg","galleries_id":361178,"server_id":15,"link":"photo_6583510.html","width":130,"caption":"","height":190});
															thumbnails[6583513] = clik.newPhoto({"id":6583513,"src":"Leopard_1_b_thumb.jpg","galleries_id":361178,"server_id":15,"link":"photo_6583513.html","width":130,"caption":"","height":194});
															thumbnails[6583514] = clik.newPhoto({"id":6583514,"src":"You_dropped_this_b1_thumb.jpg","galleries_id":361178,"server_id":15,"link":"photo_6583514.html","width":130,"caption":"","height":174});
															thumbnails[6583515] = clik.newPhoto({"id":6583515,"src":"Lion_11_copy_b_thumb.jpg","galleries_id":361178,"server_id":15,"link":"photo_6583515.html","width":130,"caption":"","height":194});
															thumbnails[6586242] = clik.newPhoto({"id":6586242,"src":"IMG_5065b_thumb.jpg","galleries_id":215009,"server_id":15,"link":"photo_6586242.html","width":130,"caption":"","height":120});
															thumbnails[6586399] = clik.newPhoto({"id":6586399,"src":"Frangrant_Harbour_b_thumb.jpg","galleries_id":361183,"server_id":15,"link":"photo_6586399.html","width":130,"caption":"","height":79});
															thumbnails[6586406] = clik.newPhoto({"id":6586406,"src":"Air_Race_b1_thumb.jpg","galleries_id":361183,"server_id":15,"link":"photo_6586406.html","width":130,"caption":"","height":93});
															thumbnails[6586407] = clik.newPhoto({"id":6586407,"src":"In_the_Pink_b_thumb.jpg","galleries_id":361183,"server_id":15,"link":"photo_6586407.html","width":130,"caption":"","height":230});
															thumbnails[6586408] = clik.newPhoto({"id":6586408,"src":"White_flower_b_thumb.jpg","galleries_id":361183,"server_id":15,"link":"photo_6586408.html","width":130,"caption":"","height":184});
															thumbnails[7513286] = clik.newPhoto({"id":7513286,"src":"Majestic_thumb.jpg","galleries_id":226981,"server_id":15,"link":"photo_7513286.html","width":130,"caption":"","height":173});
															thumbnails[7516149] = clik.newPhoto({"id":7516149,"src":"Arum_lily1_thumb.jpg","galleries_id":226981,"server_id":15,"link":"photo_7516149.html","width":130,"caption":"","height":98});
															thumbnails[7516151] = clik.newPhoto({"id":7516151,"src":"Let_me_out_thumb.jpg","galleries_id":226981,"server_id":15,"link":"photo_7516151.html","width":130,"caption":"","height":104});
															thumbnails[7516153] = clik.newPhoto({"id":7516153,"src":"Orang_otan_thumb.jpg","galleries_id":226981,"server_id":15,"link":"photo_7516153.html","width":130,"caption":"","height":186});
															thumbnails[7516156] = clik.newPhoto({"id":7516156,"src":"Deep_slumber_thumb.jpg","galleries_id":226981,"server_id":15,"link":"photo_7516156.html","width":130,"caption":"","height":98});
															thumbnails[7516158] = clik.newPhoto({"id":7516158,"src":"Black_squirrel_thumb.jpg","galleries_id":226981,"server_id":15,"link":"photo_7516158.html","width":130,"caption":"","height":98});
															thumbnails[7516160] = clik.newPhoto({"id":7516160,"src":"Rocky_coast_thumb.jpg","galleries_id":226981,"server_id":15,"link":"photo_7516160.html","width":130,"caption":"","height":78});
															thumbnails[7516162] = clik.newPhoto({"id":7516162,"src":"Anconi1_thumb.jpg","galleries_id":226981,"server_id":15,"link":"photo_7516162.html","width":130,"caption":"","height":98});
															thumbnails[7565917] = clik.newPhoto({"id":7565917,"src":"A_Cry_For_Help2_thumb.jpg","galleries_id":409632,"server_id":15,"link":"photo_7565917.html","width":130,"caption":"","height":76});
															thumbnails[7565918] = clik.newPhoto({"id":7565918,"src":"Coniston_Waters2_thumb.jpg","galleries_id":409632,"server_id":15,"link":"photo_7565918.html","width":130,"caption":"","height":40});
															thumbnails[7565920] = clik.newPhoto({"id":7565920,"src":"gull2_thumb.jpg","galleries_id":409632,"server_id":15,"link":"photo_7565920.html","width":130,"caption":"","height":70});
															thumbnails[7565923] = clik.newPhoto({"id":7565923,"src":"Remberence2_thumb.jpg","galleries_id":409632,"server_id":15,"link":"photo_7565923.html","width":130,"caption":"","height":58});
															thumbnails[7565924] = clik.newPhoto({"id":7565924,"src":"spiral2_thumb.jpg","galleries_id":409632,"server_id":15,"link":"photo_7565924.html","width":130,"caption":"","height":86});
															thumbnails[7565925] = clik.newPhoto({"id":7565925,"src":"The_Wharf2_thumb.jpg","galleries_id":409632,"server_id":15,"link":"photo_7565925.html","width":130,"caption":"","height":86});
															thumbnails[7565945] = clik.newPhoto({"id":7565945,"src":"Trafalgar_Square21_thumb.jpg","galleries_id":409631,"server_id":15,"link":"photo_7565945.html","width":130,"caption":"","height":68});
															thumbnails[7565949] = clik.newPhoto({"id":7565949,"src":"flower2_thumb.jpg","galleries_id":409631,"server_id":15,"link":"photo_7565949.html","width":130,"caption":"","height":126});
															thumbnails[7565950] = clik.newPhoto({"id":7565950,"src":"tulipa2_thumb.jpg","galleries_id":409631,"server_id":15,"link":"photo_7565950.html","width":130,"caption":"","height":203});
															thumbnails[7565957] = clik.newPhoto({"id":7565957,"src":"plop2_thumb.jpg","galleries_id":409631,"server_id":15,"link":"photo_7565957.html","width":130,"caption":"","height":77});
															thumbnails[9047506] = clik.newPhoto({"id":9047506,"src":"Red_Kite_6D68B991-1EC9-DFB6-09E693B65C30BFC8_thumb.jpg","galleries_id":215017,"server_id":15,"link":"photo_9047506.html","width":130,"caption":"Red Kite","height":93});
															thumbnails[9047507] = clik.newPhoto({"id":9047507,"src":"eagle_over_warrington_castle_6D68D91F-1EC9-DFB6-099C3D2161489254_thumb.jpg","galleries_id":215017,"server_id":15,"link":"photo_9047507.html","width":130,"caption":"eagle over warrington castle","height":104});
															thumbnails[9047508] = clik.newPhoto({"id":9047508,"src":"Amur_Leopard_6D68F94F-1EC9-DFB6-0942A3DA5FABF5DB_thumb.jpg","galleries_id":215017,"server_id":15,"link":"photo_9047508.html","width":130,"caption":"Amur Leopard","height":92});
															thumbnails[9058782] = clik.newPhoto({"id":9058782,"src":"butterfly_toung_E2187DBF-1EC9-D45B-1C7BCD4C1E175EE7_thumb.jpg","galleries_id":477572,"server_id":15,"link":"photo_9058782.html","width":130,"caption":"butterfly toung","height":186});
															thumbnails[9058783] = clik.newPhoto({"id":9058783,"src":"Dandelion_in_green_E218B364-1EC9-D45B-1C7796A0E601D995_thumb.jpg","galleries_id":477572,"server_id":15,"link":"photo_9058783.html","width":130,"caption":"Dandelion in green","height":119});
															thumbnails[9058788] = clik.newPhoto({"id":9058788,"src":"Smoke_60_E21F5132-1EC9-D45B-1CD6D44CA7ED503E_thumb.jpg","galleries_id":477572,"server_id":15,"link":"photo_9058788.html","width":130,"caption":"Smoke 60","height":177});
															thumbnails[9058789] = clik.newPhoto({"id":9058789,"src":"Smoke_75_E21F6F67-1EC9-D45B-1C3EF4EB46C03406_thumb.jpg","galleries_id":477572,"server_id":15,"link":"photo_9058789.html","width":130,"caption":"Smoke 75","height":87});
															thumbnails[9058794] = clik.newPhoto({"id":9058794,"src":"Crane_E22961F4-1EC9-D45B-1CA2B78C500E7489_thumb.jpg","galleries_id":477572,"server_id":15,"link":"photo_9058794.html","width":130,"caption":"Crane","height":193});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[215017] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Andy Shorey","link":"gallery_215017.html","maxRecords":0.0,"photoIDs":[3594148.0,3625839.0,9047506.0,9047507.0,9047508.0],"skipIndex":0,"section_code":"gallery","featured_images":"9047508,9047507,9047506,3625839,3594148","id":215017,"singleSection":false});				  						galleries[477572] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Andy Taylor","link":"gallery_477572.html","maxRecords":0.0,"photoIDs":[9058782.0,9058783.0,9058788.0,9058789.0,9058794.0],"skipIndex":0,"section_code":"gallery","featured_images":"9058794,9058789,9058788,9058783,9058782","id":477572,"singleSection":false});				  						galleries[215007] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Carole Barritt","link":"gallery_215007.html","maxRecords":0.0,"photoIDs":[3673879.0,3673881.0,3673883.0],"skipIndex":0,"section_code":"gallery","featured_images":"3673883,3673881,3673879","id":215007,"singleSection":false});				  						galleries[409632] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Danny Gilbert","link":"gallery_409632.html","maxRecords":0.0,"photoIDs":[7565917.0,7565918.0,7565920.0,7565923.0,7565924.0,7565925.0],"skipIndex":0,"section_code":"gallery","featured_images":"7565925,7565924,7565923,7565920,7565918,7565917","id":409632,"singleSection":false});				  						galleries[409631] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Debbie Gilbert","link":"gallery_409631.html","maxRecords":0.0,"photoIDs":[7565945.0,7565949.0,7565950.0,7565957.0],"skipIndex":0,"section_code":"gallery","featured_images":"7565957,7565950,7565949,7565945","id":409631,"singleSection":false});				  						galleries[361178] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Del Hunter","link":"gallery_361178.html","maxRecords":0.0,"photoIDs":[6583510.0,6583513.0,6583514.0,6583515.0],"skipIndex":0,"section_code":"gallery","featured_images":"6583515,6583514,6583513,6583510","id":361178,"singleSection":false});				  						galleries[215009] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Diana Speller","link":"gallery_215009.html","maxRecords":0.0,"photoIDs":[3641148.0,3641151.0,3641154.0,6586242.0],"skipIndex":0,"section_code":"gallery","featured_images":"6586242,3641154,3641151,3641148","id":215009,"singleSection":false});				  						galleries[215013] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Ernie Bruns","link":"gallery_215013.html","maxRecords":0.0,"photoIDs":[3641636.0,3641638.0,3641646.0,3641647.0,3641649.0,3776751.0,3776753.0,3776754.0],"skipIndex":0,"section_code":"gallery","featured_images":"3776754,3776753,3776751,3641649,3641647,3641646,3641638,3641636","id":215013,"singleSection":false});				  						galleries[215006] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Giannine Chorley","link":"gallery_215006.html","maxRecords":0.0,"photoIDs":[3704717.0,3704718.0,3704720.0],"skipIndex":0,"section_code":"gallery","featured_images":"3704720,3704718,3704717","id":215006,"singleSection":false});				  						galleries[215008] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Iris Donovan","link":"gallery_215008.html","maxRecords":0.0,"photoIDs":[3600609.0,3600611.0,3600614.0,6583507.0,6583508.0],"skipIndex":0,"section_code":"gallery","featured_images":"6583508,6583507,3600614,3600611,3600609","id":215008,"singleSection":false});				  						galleries[219642] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Jacqui Magner","link":"gallery_219642.html","maxRecords":0.0,"photoIDs":[3605285.0,3605287.0,3605289.0],"skipIndex":0,"section_code":"gallery","featured_images":"3605289,3605287,3605285","id":219642,"singleSection":false});				  						galleries[361183] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Jean Gerrish","link":"gallery_361183.html","maxRecords":0.0,"photoIDs":[6586399.0,6586406.0,6586407.0,6586408.0],"skipIndex":0,"section_code":"gallery","featured_images":"6586408,6586407,6586406,6586399","id":361183,"singleSection":false});				  						galleries[214240] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Michael Smith","link":"gallery_214240.html","maxRecords":0.0,"photoIDs":[3704722.0,3704723.0,3704724.0],"skipIndex":0,"section_code":"gallery","featured_images":"3704724,3704723,3704722","id":214240,"singleSection":false});				  						galleries[212957] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Mick Hahn","link":"gallery_212957.html","maxRecords":0.0,"photoIDs":[3593756.0,3593764.0,3593772.0,4562826.0,4562832.0,4562833.0,4562834.0,6583509.0],"skipIndex":0,"section_code":"gallery","featured_images":3593756.0,"id":212957,"singleSection":false});				  						galleries[226981] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Ron Winyard","link":"gallery_226981.html","maxRecords":0.0,"photoIDs":[3714498.0,3714500.0,3714501.0,3714502.0,7513286.0,7516149.0,7516151.0,7516153.0,7516156.0,7516158.0,7516160.0,7516162.0],"skipIndex":0,"section_code":"gallery","featured_images":"7516162,7516160,7516158,7516156,7516153,7516151,7516149,7513286,3714502,3714501","id":226981,"singleSection":false});				  						galleries[215014] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Sylvia Smith","link":"gallery_215014.html","maxRecords":0.0,"photoIDs":[3621141.0,3621150.0,3621154.0,3621158.0],"skipIndex":0,"section_code":"gallery","featured_images":"3621158,3621154,3621150,3621141","id":215014,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '6583515,6583514,6583513,6583510,6583509,6583508,6583507';
imageSets[2] = '3593756';
imageSets[3] = '6583515,6583514,6583513,6583510,6583509,6583508,6583507';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/AndyShorey/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/AndyShorey/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/AndyShorey/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/AndyShorey/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/AndyShorey/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/AndyShorey/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/AndyShorey/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/AndyShorey/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/AndyShorey/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/AndyShorey/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/AndyShorey/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/AndyShorey/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/AndyShorey/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/AndyShorey/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/AndyShorey/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/AndyShorey/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/AndyShorey/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/AndyShorey/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/AndyShorey/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/AndyShorey/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/AndyShorey/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/AndyShorey/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/AndyShorey/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/AndyShorey/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/AndyShorey/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/AndyShorey/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/AndyShorey/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = (backgrounds || photos || {})[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$detailContainer:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
		op = $.extend({},defaults,options),
		html = '', temp = '',
		photoId = op.nextPhoto.id,
		photoCaption = ''+op.nextPhoto.caption,
		photoSrc = op.nextPhoto.src;
	
	if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'Dagenham 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;
	}
}

			

