window.thumbnails = {};
															thumbnails[7987348] = clik.newPhoto({"id":7987348,"src":"views_brecan74691_thumb.jpg","galleries_id":185861,"server_id":32,"link":"photo_7987348.html","width":130,"caption":"south wales","height":195});
															thumbnails[7987409] = clik.newPhoto({"id":7987409,"src":"wales_0877_thumb.jpg","galleries_id":185861,"server_id":32,"link":"photo_7987409.html","width":130,"caption":"tree","height":87});
															thumbnails[7987526] = clik.newPhoto({"id":7987526,"src":"wales_v_0892_thumb.jpg","galleries_id":185861,"server_id":32,"link":"photo_7987526.html","width":130,"caption":"","height":195});
															thumbnails[5353312] = clik.newPhoto({"id":5353312,"src":"misty_6x4_thumb.jpg","galleries_id":185861,"server_id":32,"link":"photo_5353312.html","width":130,"caption":"misty","height":184});
															thumbnails[5353329] = clik.newPhoto({"id":5353329,"src":"silence1_6x4_thumb.jpg","galleries_id":185861,"server_id":32,"link":"photo_5353329.html","width":130,"caption":"blue","height":87});
															thumbnails[5353341] = clik.newPhoto({"id":5353341,"src":"tree_6x4_thumb.jpg","galleries_id":185861,"server_id":32,"link":"photo_5353341.html","width":130,"caption":"winter tree","height":87});
															thumbnails[5353350] = clik.newPhoto({"id":5353350,"src":"views-inst_6x4_thumb.jpg","galleries_id":185861,"server_id":32,"link":"photo_5353350.html","width":130,"caption":"views instow","height":87});
															thumbnails[5353360] = clik.newPhoto({"id":5353360,"src":"woodpath1_6x4_thumb.jpg","galleries_id":185861,"server_id":32,"link":"photo_5353360.html","width":130,"caption":"snow path","height":87});
															thumbnails[5024129] = clik.newPhoto({"id":5024129,"src":"massey-cobine2_edited-1_thumb.jpg","galleries_id":188809,"server_id":32,"link":"photo_5024129.html","width":130,"caption":"RUSTY MASSEY FERGUSON","height":87});
															thumbnails[5024131] = clik.newPhoto({"id":5024131,"src":"whiteriver_edited-1_thumb.jpg","galleries_id":185790,"server_id":32,"link":"photo_5024131.html","width":130,"caption":"summer river rains","height":87});
															thumbnails[4765463] = clik.newPhoto({"id":4765463,"src":"Appeldore_near_Bidefoed_N_Devon_thumb.jpg","galleries_id":188809,"server_id":32,"link":"photo_4765463.html","width":130,"caption":"red sky at night","height":92});
															thumbnails[4765473] = clik.newPhoto({"id":4765473,"src":"bideford_bay_thumb.jpg","galleries_id":188809,"server_id":32,"link":"photo_4765473.html","width":130,"caption":"appledore red sky","height":87});
															thumbnails[4575385] = clik.newPhoto({"id":4575385,"src":"swallow-insummer_thumb.jpg","galleries_id":185870,"server_id":32,"link":"photo_4575385.html","width":130,"caption":"swallows in summer","height":184});
															thumbnails[4537870] = clik.newPhoto({"id":4537870,"src":"iron_hayturner_thumb.jpg","galleries_id":185861,"server_id":32,"link":"photo_4537870.html","width":130,"caption":"old iron hay turner machinery ","height":92});
															thumbnails[4537892] = clik.newPhoto({"id":4537892,"src":"Elephant_hawk_moth_thumb.jpg","galleries_id":185870,"server_id":32,"link":"photo_4537892.html","width":130,"caption":"Elephant Hawk Moth Caterpillar","height":92});
															thumbnails[4186151] = clik.newPhoto({"id":4186151,"src":"beach2_thumb.jpg","galleries_id":185785,"server_id":32,"link":"photo_4186151.html","width":130,"caption":"Rocky Beach","height":87});
															thumbnails[4186208] = clik.newPhoto({"id":4186208,"src":"dear1_thumb.jpg","galleries_id":186009,"server_id":32,"link":"photo_4186208.html","width":130,"caption":"Red Dear Buck","height":163});
															thumbnails[3869968] = clik.newPhoto({"id":3869968,"src":"Wisteria_thumb.jpg","galleries_id":185870,"server_id":32,"link":"photo_3869968.html","width":130,"caption":"blue on blue","height":104});
															thumbnails[3870072] = clik.newPhoto({"id":3870072,"src":"horse-chesnut_thumb.jpg","galleries_id":185870,"server_id":32,"link":"photo_3870072.html","width":130,"caption":"blossom ","height":184});
															thumbnails[3870091] = clik.newPhoto({"id":3870091,"src":"zaylia_thumb.jpg","galleries_id":185870,"server_id":32,"link":"photo_3870091.html","width":130,"caption":"red","height":104});
															thumbnails[3752921] = clik.newPhoto({"id":3752921,"src":"church_thumb.jpg","galleries_id":185861,"server_id":32,"link":"photo_3752921.html","width":130,"caption":"old tower ruin","height":87});
															thumbnails[3752939] = clik.newPhoto({"id":3752939,"src":"hartland_thumb.jpg","galleries_id":185790,"server_id":32,"link":"photo_3752939.html","width":130,"caption":"soft river","height":195});
															thumbnails[3422299] = clik.newPhoto({"id":3422299,"src":"road snowblocked_thumb.jpg","galleries_id":199188,"server_id":32,"link":"photo_3422299.html","width":130,"caption":"snow covered road","height":195});
															thumbnails[3422322] = clik.newPhoto({"id":3422322,"src":"simonsbath_thumb.jpg","galleries_id":199188,"server_id":32,"link":"photo_3422322.html","width":130,"caption":"winters first snowfalls simonsbath","height":87});
															thumbnails[3422349] = clik.newPhoto({"id":3422349,"src":"the sign posts_thumb.jpg","galleries_id":199188,"server_id":32,"link":"photo_3422349.html","width":130,"caption":"the sign posts","height":93});
															thumbnails[3573130] = clik.newPhoto({"id":3573130,"src":"grave_stones1_edited-2_thumb.jpg","galleries_id":199188,"server_id":32,"link":"photo_3573130.html","width":130,"caption":"snow cover graves","height":87});
															thumbnails[3573216] = clik.newPhoto({"id":3573216,"src":"church2_thumb.jpg","galleries_id":199188,"server_id":32,"link":"photo_3573216.html","width":130,"caption":"church","height":87});
															thumbnails[3573285] = clik.newPhoto({"id":3573285,"src":"exmoor_snow_thumb.jpg","galleries_id":199188,"server_id":32,"link":"photo_3573285.html","width":130,"caption":"Exmoor winter views","height":87});
															thumbnails[3266984] = clik.newPhoto({"id":3266984,"src":"landacre_5195 copy_thumb.jpg","galleries_id":199188,"server_id":32,"link":"photo_3266984.html","width":130,"caption":"view of landacre Exmoor","height":92});
															thumbnails[3267022] = clik.newPhoto({"id":3267022,"src":"seat_5216_thumb.jpg","galleries_id":199188,"server_id":32,"link":"photo_3267022.html","width":130,"caption":"the cold seat","height":92});
															thumbnails[3267078] = clik.newPhoto({"id":3267078,"src":"landacrebrigde_5197_thumb.jpg","galleries_id":199188,"server_id":32,"link":"photo_3267078.html","width":130,"caption":"winter Bridge in winter sun","height":101});
															thumbnails[3267088] = clik.newPhoto({"id":3267088,"src":"vallyfarm_5243_thumb.jpg","galleries_id":199188,"server_id":32,"link":"photo_3267088.html","width":130,"caption":"farm in the valley","height":91});
															thumbnails[3267123] = clik.newPhoto({"id":3267123,"src":"frostriver5241_thumb.jpg","galleries_id":199188,"server_id":32,"link":"photo_3267123.html","width":130,"caption":"cold river","height":87});
															thumbnails[3267167] = clik.newPhoto({"id":3267167,"src":"sign post_5194_thumb.jpg","galleries_id":199188,"server_id":32,"link":"photo_3267167.html","width":130,"caption":"cold sign post","height":184});
															thumbnails[3267208] = clik.newPhoto({"id":3267208,"src":"frostyriver_5237_thumb.jpg","galleries_id":199188,"server_id":32,"link":"photo_3267208.html","width":130,"caption":"winter river","height":87});
															thumbnails[3308856] = clik.newPhoto({"id":3308856,"src":"exmoor view_thumb.jpg","galleries_id":199188,"server_id":32,"link":"photo_3308856.html","width":130,"caption":"winter views","height":92});
															thumbnails[3308889] = clik.newPhoto({"id":3308889,"src":"FROST-SEAT_thumb.jpg","galleries_id":199188,"server_id":32,"link":"photo_3308889.html","width":130,"caption":"the cold seat","height":101});
															thumbnails[3222499] = clik.newPhoto({"id":3222499,"src":"coal tit_thumb.jpg","galleries_id":185870,"server_id":32,"link":"photo_3222499.html","width":130,"caption":"coal tit","height":184});
															thumbnails[3222501] = clik.newPhoto({"id":3222501,"src":"great tit_thumb.jpg","galleries_id":185870,"server_id":32,"link":"photo_3222501.html","width":130,"caption":"great tit","height":184});
															thumbnails[3019684] = clik.newPhoto({"id":3019684,"src":"walkers_thumb.jpg","galleries_id":185785,"server_id":32,"link":"photo_3019684.html","width":130,"caption":"beach walkers on dunes ","height":87});
															thumbnails[3039048] = clik.newPhoto({"id":3039048,"src":"river 4375_thumb.jpeg","galleries_id":185790,"server_id":32,"link":"photo_3039048.html","width":130,"caption":"River","height":87});
															thumbnails[3308816] = clik.newPhoto({"id":3308816,"src":"BOATEND_thumb.jpg","galleries_id":185785,"server_id":32,"link":"photo_3308816.html","width":130,"caption":"Sand Barge wreck","height":87});
															thumbnails[3308989] = clik.newPhoto({"id":3308989,"src":"boat_thumb.jpg","galleries_id":185785,"server_id":32,"link":"photo_3308989.html","width":130,"caption":"the boat","height":163});
															thumbnails[3047956] = clik.newPhoto({"id":3047956,"src":"boat_0052_thumb.JPG","galleries_id":185785,"server_id":32,"link":"photo_3047956.html","width":130,"caption":"Boat left on beach","height":87});
															thumbnails[3024591] = clik.newPhoto({"id":3024591,"src":"horse1jpg_thumb.jpg","galleries_id":186009,"server_id":32,"link":"photo_3024591.html","width":130,"caption":"Horses in field of yellow Butter cups","height":93});
															thumbnails[3021497] = clik.newPhoto({"id":3021497,"src":"spring-walk_thumb.jpg","galleries_id":185861,"server_id":32,"link":"photo_3021497.html","width":130,"caption":"Spring Walk down the track","height":87});
															thumbnails[3021516] = clik.newPhoto({"id":3021516,"src":"wood-path_thumb.jpg","galleries_id":185861,"server_id":32,"link":"photo_3021516.html","width":130,"caption":"walking in the wood","height":87});
															thumbnails[3422518] = clik.newPhoto({"id":3422518,"src":"windswept snow trees_thumb.jpg","galleries_id":199188,"server_id":32,"link":"photo_3422518.html","width":130,"caption":"winter trees","height":87});
															thumbnails[3786895] = clik.newPhoto({"id":3786895,"src":"rock-layers_thumb.jpg","galleries_id":185785,"server_id":32,"link":"photo_3786895.html","width":130,"caption":"layers of rock","height":87});
															thumbnails[6315198] = clik.newPhoto({"id":6315198,"src":"castle_thumb.jpg","galleries_id":185861,"server_id":32,"link":"photo_6315198.html","width":130,"caption":"castle Ruin","height":104});
															thumbnails[6315201] = clik.newPhoto({"id":6315201,"src":"fort_william_thumb.jpg","galleries_id":185861,"server_id":32,"link":"photo_6315201.html","width":130,"caption":"","height":87});
															thumbnails[6315210] = clik.newPhoto({"id":6315210,"src":"fort_william_park_thumb.jpg","galleries_id":185861,"server_id":32,"link":"photo_6315210.html","width":130,"caption":"","height":87});
															thumbnails[6315269] = clik.newPhoto({"id":6315269,"src":"red_dear1_thumb.jpg","galleries_id":185861,"server_id":32,"link":"photo_6315269.html","width":130,"caption":"Red DEAR","height":87});
															thumbnails[6315272] = clik.newPhoto({"id":6315272,"src":"The_jackobite_Harry_Potter_thumb.jpg","galleries_id":185861,"server_id":32,"link":"photo_6315272.html","width":130,"caption":"Harry potter Steem train the Jacobite","height":87});
															thumbnails[6315282] = clik.newPhoto({"id":6315282,"src":"Balmoral_castle_thumb.jpg","galleries_id":185861,"server_id":32,"link":"photo_6315282.html","width":130,"caption":"Balmoral Castle ","height":87});
															thumbnails[6315296] = clik.newPhoto({"id":6315296,"src":"scotie_dogs_thumb.jpg","galleries_id":186009,"server_id":32,"link":"photo_6315296.html","width":130,"caption":"Scottie Dogs","height":87});
															thumbnails[6315312] = clik.newPhoto({"id":6315312,"src":"pond_thumb.jpg","galleries_id":185861,"server_id":32,"link":"photo_6315312.html","width":130,"caption":"lake","height":87});
															thumbnails[6315323] = clik.newPhoto({"id":6315323,"src":"farm_house_thumb.jpg","galleries_id":185861,"server_id":32,"link":"photo_6315323.html","width":130,"caption":"old farm house","height":87});
															thumbnails[6315333] = clik.newPhoto({"id":6315333,"src":"old_house_thumb.jpg","galleries_id":185861,"server_id":32,"link":"photo_6315333.html","width":130,"caption":"old ruin farm house","height":87});
															thumbnails[6315338] = clik.newPhoto({"id":6315338,"src":"the_tree_thumb.jpg","galleries_id":185861,"server_id":32,"link":"photo_6315338.html","width":130,"caption":"","height":87});
															thumbnails[6315366] = clik.newPhoto({"id":6315366,"src":"bonny_prince_charile_memorial_thumb.jpg","galleries_id":185861,"server_id":32,"link":"photo_6315366.html","width":130,"caption":"memorial ","height":87});
															thumbnails[6567606] = clik.newPhoto({"id":6567606,"src":"cathrdrl5581_thumb.jpg","galleries_id":186771,"server_id":32,"link":"photo_6567606.html","width":130,"caption":"Gloucester cathedral ","height":87});
															thumbnails[7372413] = clik.newPhoto({"id":7372413,"src":"_MG_6178_thumb.jpg","galleries_id":399084,"server_id":32,"link":"photo_7372413.html","width":130,"caption":"Bottle in hand","height":195});
															thumbnails[7372414] = clik.newPhoto({"id":7372414,"src":"face1_edited-1_thumb.jpg","galleries_id":399084,"server_id":32,"link":"photo_7372414.html","width":130,"caption":"stone Face","height":195});
															thumbnails[7372427] = clik.newPhoto({"id":7372427,"src":"hand_edited-1_thumb.jpg","galleries_id":399084,"server_id":32,"link":"photo_7372427.html","width":130,"caption":"packet in hand ","height":87});
															thumbnails[7372490] = clik.newPhoto({"id":7372490,"src":"_MG_6171_edited-1_thumb.jpg","galleries_id":399084,"server_id":32,"link":"photo_7372490.html","width":130,"caption":"black man shadow","height":136});
															thumbnails[3039079] = clik.newPhoto({"id":3039079,"src":"post1_thumb.jpg","galleries_id":185785,"server_id":32,"link":"photo_3039079.html","width":130,"caption":"Wooden Post","height":195});
															thumbnails[3039032] = clik.newPhoto({"id":3039032,"src":"bluel-lake_thumb.jpg","galleries_id":186771,"server_id":32,"link":"photo_3039032.html","width":130,"caption":"blue lake ","height":87});
															thumbnails[3039015] = clik.newPhoto({"id":3039015,"src":"motel_thumb.jpg","galleries_id":186771,"server_id":32,"link":"photo_3039015.html","width":130,"caption":"Motel pink poodle ","height":87});
															thumbnails[3038103] = clik.newPhoto({"id":3038103,"src":"twelveapostles1_thumb.jpg","galleries_id":186771,"server_id":32,"link":"photo_3038103.html","width":130,"caption":"one of the twelve apostles Great 0cean road Sydney to Melbourn","height":88});
															thumbnails[3038116] = clik.newPhoto({"id":3038116,"src":"Great0ceanroad_thumb.jpg","galleries_id":186771,"server_id":32,"link":"photo_3038116.html","width":130,"caption":"Great 0cean road Melbourn Sydney ","height":87});
															thumbnails[3038184] = clik.newPhoto({"id":3038184,"src":"Bay_thumb.jpg","galleries_id":186771,"server_id":32,"link":"photo_3038184.html","width":130,"caption":"The bay of Martyrs ","height":85});
															thumbnails[3024424] = clik.newPhoto({"id":3024424,"src":"appal-blossom_thumb.jpg","galleries_id":185870,"server_id":32,"link":"photo_3024424.html","width":130,"caption":"appal Blossom ","height":87});
															thumbnails[3039087] = clik.newPhoto({"id":3039087,"src":"cliff-tasmania_thumb.jpg","galleries_id":186771,"server_id":32,"link":"photo_3039087.html","width":130,"caption":"cliff","height":87});
															thumbnails[3047972] = clik.newPhoto({"id":3047972,"src":"tree-cone_thumb.jpg","galleries_id":185870,"server_id":32,"link":"photo_3047972.html","width":130,"caption":"tree cone","height":87});
															thumbnails[3021396] = clik.newPhoto({"id":3021396,"src":"wagtail1_thumb.jpg","galleries_id":185870,"server_id":32,"link":"photo_3021396.html","width":130,"caption":"grey wagtail","height":87});
															thumbnails[3021418] = clik.newPhoto({"id":3021418,"src":"meadow_thumb.jpg","galleries_id":185870,"server_id":32,"link":"photo_3021418.html","width":130,"caption":"Meadow Brown Butterfly","height":87});
															thumbnails[3159064] = clik.newPhoto({"id":3159064,"src":"old tree_thumb.jpg","galleries_id":185861,"server_id":32,"link":"photo_3159064.html","width":130,"caption":"woodland valley","height":195});
															thumbnails[3115709] = clik.newPhoto({"id":3115709,"src":"BLACKBIRD4820_edited-3_thumb.jpg","galleries_id":185870,"server_id":32,"link":"photo_3115709.html","width":130,"caption":"Black Bird ","height":195});
															thumbnails[3115718] = clik.newPhoto({"id":3115718,"src":"DEAR CLOSE_4866_edited-3_thumb.jpg","galleries_id":185870,"server_id":32,"link":"photo_3115718.html","width":130,"caption":"wild dear","height":163});
															thumbnails[3115726] = clik.newPhoto({"id":3115726,"src":"Woodland_thumb.jpg","galleries_id":185861,"server_id":32,"link":"photo_3115726.html","width":130,"caption":"woodland","height":87});
															thumbnails[3073282] = clik.newPhoto({"id":3073282,"src":"fremington22_thumb.jpg","galleries_id":188809,"server_id":32,"link":"photo_3073282.html","width":130,"caption":"Fremington quay old iron bridge, and lime pills","height":87});
															thumbnails[3073291] = clik.newPhoto({"id":3073291,"src":"fremington_thumb.jpg","galleries_id":188809,"server_id":32,"link":"photo_3073291.html","width":130,"caption":"fremington iron railway bridge","height":87});
															thumbnails[3073313] = clik.newPhoto({"id":3073313,"src":"fremington3_thumb.jpg","galleries_id":188809,"server_id":32,"link":"photo_3073313.html","width":130,"caption":"The Beach Café Fremington quay","height":87});
															thumbnails[3019487] = clik.newPhoto({"id":3019487,"src":"sand-barge_thumb.jpg","galleries_id":185785,"server_id":32,"link":"photo_3019487.html","width":130,"caption":" barge boat  ","height":87});
															thumbnails[3019671] = clik.newPhoto({"id":3019671,"src":"marsh-pond_thumb.jpg","galleries_id":185790,"server_id":32,"link":"photo_3019671.html","width":130,"caption":"marshland river","height":87});
															thumbnails[3019913] = clik.newPhoto({"id":3019913,"src":"shell_Beach_thumb.jpg","galleries_id":185785,"server_id":32,"link":"photo_3019913.html","width":130,"caption":"Shells on local Beach saunton ","height":104});
															thumbnails[3024341] = clik.newPhoto({"id":3024341,"src":"Canada gees1_thumb.jpg","galleries_id":185870,"server_id":32,"link":"photo_3024341.html","width":130,"caption":"Canada gees","height":87});
															thumbnails[3159078] = clik.newPhoto({"id":3159078,"src":"brayford_thumb.jpg","galleries_id":185790,"server_id":32,"link":"photo_3159078.html","width":130,"caption":"river","height":87});
															thumbnails[3024516] = clik.newPhoto({"id":3024516,"src":"blackcat_thumb.jpg","galleries_id":186009,"server_id":32,"link":"photo_3024516.html","width":130,"caption":"Black Cat","height":104});
															thumbnails[3159104] = clik.newPhoto({"id":3159104,"src":"blue-flower_thumb.jpg","galleries_id":185870,"server_id":32,"link":"photo_3159104.html","width":130,"caption":"blue flower","height":195});
															thumbnails[3159119] = clik.newPhoto({"id":3159119,"src":"tall tree1_thumb.jpg","galleries_id":186771,"server_id":32,"link":"photo_3159119.html","width":130,"caption":"Tall trees","height":195});
															thumbnails[3021150] = clik.newPhoto({"id":3021150,"src":"appeldore church_thumb.jpg","galleries_id":185861,"server_id":32,"link":"photo_3021150.html","width":130,"caption":"church at appeldore","height":87});
															thumbnails[3021638] = clik.newPhoto({"id":3021638,"src":"RIVER CROSSING5_thumb.jpg","galleries_id":185790,"server_id":32,"link":"photo_3021638.html","width":130,"caption":"river in valley near brayford ","height":104});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[399084] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Art","link":"gallery_399084.html","maxRecords":0.0,"photoIDs":[7372413.0,7372414.0,7372427.0,7372490.0],"skipIndex":0,"section_code":"gallery","featured_images":"7372427,7372414,7372413","id":399084,"singleSection":false});				  						galleries[199188] = clik.newGallery({"parentGallery":184304,"usePopups":false,"title":"Exmoor ","link":"gallery_199188.html","maxRecords":0.0,"photoIDs":[3422299.0,3422322.0,3422349.0,3573130.0,3573216.0,3573285.0,3266984.0,3267022.0,3267078.0,3267088.0,3267123.0,3267167.0,3267208.0,3308856.0,3308889.0,3422518.0],"skipIndex":0,"section_code":"gallery","featured_images":"3573285,3573216,3573130,3422518,3422349,3422322,3422299,3308889,3308856,3267208","id":199188,"singleSection":false});				  						galleries[188809] = clik.newGallery({"parentGallery":184304,"usePopups":false,"title":"FREMINGTON","link":"gallery_188809.html","maxRecords":0.0,"photoIDs":[5024129.0,4765463.0,4765473.0,3073282.0,3073291.0,3073313.0],"skipIndex":0,"section_code":"gallery","featured_images":5024129.0,"id":188809,"singleSection":false});				  						galleries[185870] = clik.newGallery({"parentGallery":184303,"usePopups":false,"title":"Nature","link":"gallery_185870.html","maxRecords":0.0,"photoIDs":[4575385.0,4537892.0,3869968.0,3870072.0,3870091.0,3222499.0,3222501.0,3024424.0,3047972.0,3021396.0,3021418.0,3115709.0,3115718.0,3024341.0,3159104.0],"skipIndex":0,"section_code":"gallery","featured_images":"4575385,4537892","id":185870,"singleSection":false});				  						galleries[186771] = clik.newGallery({"parentGallery":184303,"usePopups":false,"title":"Travel photo's","link":"gallery_186771.html","maxRecords":0.0,"photoIDs":[6567606.0,3039032.0,3039015.0,3038103.0,3038116.0,3038184.0,3039087.0,3159119.0],"skipIndex":0,"section_code":"gallery","featured_images":"3039087,3038184,3038116,3038103","id":186771,"singleSection":false});				  						galleries[185785] = clik.newGallery({"parentGallery":184303,"usePopups":false,"title":"Beach photo's","link":"gallery_185785.html","maxRecords":0.0,"photoIDs":[4186151.0,3019684.0,3308816.0,3308989.0,3047956.0,3786895.0,3039079.0,3019487.0,3019913.0],"skipIndex":0,"section_code":"gallery","featured_images":3039079.0,"id":185785,"singleSection":false});				  						galleries[186009] = clik.newGallery({"parentGallery":184303,"usePopups":false,"title":"Animals & Pets","link":"gallery_186009.html","maxRecords":0.0,"photoIDs":[4186208.0,3024591.0,6315296.0,3024516.0],"skipIndex":0,"section_code":"gallery","featured_images":"6315296,4186208,3024591,3024516","id":186009,"singleSection":false});				  						galleries[184303] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gallery 1","link":"gallery_184303.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"7987409,7987348,6315366,6315338,6315333,6315323,6315312,6315282,6315269,6315210,5024131,4575385,4537892,3159064,3039087,3039079,3038184,3038116,3038103","id":184303,"singleSection":false});				  						galleries[184304] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gallery 2","link":"gallery_184304.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":5024129.0,"id":184304,"singleSection":false});				  						galleries[185861] = clik.newGallery({"parentGallery":184303,"usePopups":false,"title":"Landscapes","link":"gallery_185861.html","maxRecords":0.0,"photoIDs":[7987348.0,7987409.0,7987526.0,5353312.0,5353329.0,5353341.0,5353350.0,5353360.0,4537870.0,3752921.0,3021497.0,3021516.0,6315198.0,6315201.0,6315210.0,6315269.0,6315272.0,6315282.0,6315312.0,6315323.0,6315333.0,6315338.0,6315366.0,3159064.0,3115726.0,3021150.0],"skipIndex":0,"section_code":"gallery","featured_images":"7987409,7987348,6315366,6315338,6315333,6315323,6315312,6315282,6315269,6315210,3159064","id":185861,"singleSection":false});				  						galleries[185790] = clik.newGallery({"parentGallery":184303,"usePopups":false,"title":"Rivers ponds & marshes","link":"gallery_185790.html","maxRecords":0.0,"photoIDs":[5024131.0,3752939.0,3039048.0,3019671.0,3159078.0,3021638.0],"skipIndex":0,"section_code":"gallery","featured_images":5024131.0,"id":185790,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '7987409,7987348,7372427,7372414,7372413,6567606,6315366,6315338,6315333,6315201,6315198,5353360,5353350,5353341,5353329,4765463,4537892,4186208,4186151,3870091,3870072,3869968,3786895,3752939,3752921,3573285,3573216,3573130,3422518,3422349,3422322,3308989,3308889,3308856,3308816,3267208,3267167,3267123,3267088,3267078,3266984,3222501,3222499,3047956,3039048,3024591,3021516,3021497,3019684,3039087,3039079,3039032,3039015,3038184,3038116,3038103,3021418,3021396,3159104,3159078,3159064,3115726,3115718,3115709,3073313,3073291,3073282,3024516,3024341,3021638,3021150,3019913,3019671,3019487';
imageSets[2] = '7987409,7987348,7372427,7372414,7372413,6315366,6315338,6315333,6315323,6315312,6315282,6315269,6315210,5024131,5024129,4575385,4537892,3039087,3039079,3038184,3038116,3038103,3159064';
imageSets[3] = '7372427,7372414,7372413,6567606,6315366,6315338,6315333,6315323,6315312,6315282,6315269,6315210,6315201,6315198,4537870';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/knbirch/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/knbirch/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/knbirch/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/knbirch/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/knbirch/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/knbirch/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/knbirch/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/knbirch/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/knbirch/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/knbirch/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/knbirch/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/knbirch/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/knbirch/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/knbirch/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/knbirch/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/knbirch/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/knbirch/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/knbirch/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/knbirch/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/knbirch/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/knbirch/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/knbirch/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/knbirch/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/knbirch/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/knbirch/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/knbirch/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 = 'Kens images & photography : ' + 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>';
	}
				
	temp += this.fnGetPaymentInfo();
				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>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else if (this.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="updateCartValue($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';
		
		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 += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm">';
			temp += '	<input type="hidden" name="item_option" value="' + item_option + '">';
			temp += '	<input type="hidden" name="site" value="KNBIRCH">';
			temp += '	<input type="hidden" name="item_number" value="'+ this.id +'">';
			temp += '	<input type="hidden" name="quantity" value="1">';
						temp += '	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\'\;" onmouseout="this.className=\'button\'\;" type="Button">';
							temp += '	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';
			temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
			temp += '<div id="confirmContainer">';
			temp += '<div id="paymentConfirm">Item added to cart</div>';
			temp += '</div>';
			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;
	}
}

			

