window.thumbnails = {};
															thumbnails[2928932] = clik.newPhoto({"id":2928932,"src":"008jpg_thumb.jpg","galleries_id":181118,"server_id":1,"link":"photo_2928932.html","width":130,"caption":"Bathtime (008)","height":85});
															thumbnails[2928985] = clik.newPhoto({"id":2928985,"src":"004jpg_thumb.jpg","galleries_id":181118,"server_id":1,"link":"photo_2928985.html","width":130,"caption":"Just Good Friends (0041)","height":92});
															thumbnails[2928987] = clik.newPhoto({"id":2928987,"src":"026jagjpg_thumb.jpg","galleries_id":181128,"server_id":1,"link":"photo_2928987.html","width":130,"caption":"Jaguar (026)","height":74});
															thumbnails[2929008] = clik.newPhoto({"id":2929008,"src":"0314jpg_thumb.jpg","galleries_id":181115,"server_id":1,"link":"photo_2929008.html","width":130,"caption":"B&W Towers 2 (0314)","height":196});
															thumbnails[2929029] = clik.newPhoto({"id":2929029,"src":"0571jpg_thumb.jpg","galleries_id":181117,"server_id":1,"link":"photo_2929029.html","width":130,"caption":"Lily (0571)","height":185});
															thumbnails[2929125] = clik.newPhoto({"id":2929125,"src":"0736sjpg_thumb.jpg","galleries_id":180916,"server_id":1,"link":"photo_2929125.html","width":130,"caption":"Kite Surfers (0736s)","height":95});
															thumbnails[2929126] = clik.newPhoto({"id":2929126,"src":"0846jpg_thumb.jpg","galleries_id":181116,"server_id":1,"link":"photo_2929126.html","width":130,"caption":"Huts 1 (0846)","height":86});
															thumbnails[2929128] = clik.newPhoto({"id":2929128,"src":"0885jpg_thumb.jpg","galleries_id":180916,"server_id":1,"link":"photo_2929128.html","width":130,"caption":"Hampton Ramp (0885)","height":99});
															thumbnails[2929129] = clik.newPhoto({"id":2929129,"src":"0955jpg_thumb.jpg","galleries_id":180916,"server_id":1,"link":"photo_2929129.html","width":130,"caption":"Lifeguard Hut (0955)","height":198});
															thumbnails[2929131] = clik.newPhoto({"id":2929131,"src":"0990jpg_thumb.jpg","galleries_id":181116,"server_id":1,"link":"photo_2929131.html","width":130,"caption":"Huts 2 (0990)","height":102});
															thumbnails[2929133] = clik.newPhoto({"id":2929133,"src":"1002jpg_thumb.jpg","galleries_id":180916,"server_id":1,"link":"photo_2929133.html","width":130,"caption":"Swan Lake (1002)","height":95});
															thumbnails[2929134] = clik.newPhoto({"id":2929134,"src":"1026jpg_thumb.jpg","galleries_id":180916,"server_id":1,"link":"photo_2929134.html","width":130,"caption":"Low tide at Hampton (1026)","height":86});
															thumbnails[2929136] = clik.newPhoto({"id":2929136,"src":"1343jpg_thumb.jpg","galleries_id":180916,"server_id":1,"link":"photo_2929136.html","width":130,"caption":"Sundown (1343)","height":86});
															thumbnails[2929138] = clik.newPhoto({"id":2929138,"src":"1471jpg_thumb.jpg","galleries_id":181115,"server_id":1,"link":"photo_2929138.html","width":130,"caption":"B&W Towers 1 (1471)","height":177});
															thumbnails[2929142] = clik.newPhoto({"id":2929142,"src":"1116jpg_thumb.jpg","galleries_id":181128,"server_id":1,"link":"photo_2929142.html","width":130,"caption":"Blue Lake (1116)","height":95});
															thumbnails[2929145] = clik.newPhoto({"id":2929145,"src":"1759jpg_thumb.jpg","galleries_id":181116,"server_id":1,"link":"photo_2929145.html","width":130,"caption":"Reculver Towers at sunset (1759)","height":86});
															thumbnails[2929148] = clik.newPhoto({"id":2929148,"src":"1764a4jpg_thumb.jpg","galleries_id":181116,"server_id":1,"link":"photo_2929148.html","width":130,"caption":"Sun Rays (1764)","height":177});
															thumbnails[2929149] = clik.newPhoto({"id":2929149,"src":"1918jpg_thumb.jpg","galleries_id":181115,"server_id":1,"link":"photo_2929149.html","width":130,"caption":"Footprint (0706)","height":196});
															thumbnails[2929156] = clik.newPhoto({"id":2929156,"src":"9001jpg_thumb.jpg","galleries_id":181116,"server_id":1,"link":"photo_2929156.html","width":130,"caption":"B&W Towers (9001)","height":86});
															thumbnails[2929161] = clik.newPhoto({"id":2929161,"src":"2212jpg_thumb.jpg","galleries_id":181118,"server_id":1,"link":"photo_2929161.html","width":130,"caption":"Who you looking at! (2212)","height":182});
															thumbnails[2929171] = clik.newPhoto({"id":2929171,"src":"IDW000printingjpg_thumb.jpg","galleries_id":181116,"server_id":1,"link":"photo_2929171.html","width":130,"caption":"Clock Tower (0001)","height":162});
															thumbnails[2929173] = clik.newPhoto({"id":2929173,"src":"IDW0016inesjpg_thumb.jpg","galleries_id":181115,"server_id":1,"link":"photo_2929173.html","width":130,"caption":"Railway Track (0016)","height":181});
															thumbnails[2929194] = clik.newPhoto({"id":2929194,"src":"IDW028jpg_thumb.jpg","galleries_id":181117,"server_id":1,"link":"photo_2929194.html","width":130,"caption":"Clematis (028)","height":92});
															thumbnails[2929196] = clik.newPhoto({"id":2929196,"src":"IDW8803jpg_thumb.jpg","galleries_id":181117,"server_id":1,"link":"photo_2929196.html","width":130,"caption":"Cactus (8803)","height":162});
															thumbnails[2929245] = clik.newPhoto({"id":2929245,"src":"IDW 0022jpg_thumb.jpg","galleries_id":181128,"server_id":1,"link":"photo_2929245.html","width":130,"caption":"Wreck (0022)","height":104});
															thumbnails[2929246] = clik.newPhoto({"id":2929246,"src":"1556jpg_thumb1_thumb.jpg","galleries_id":181128,"server_id":1,"link":"photo_2929246.html","width":130,"caption":"West Beach (1556)","height":195});
															thumbnails[2929248] = clik.newPhoto({"id":2929248,"src":"walkjpg_thumb.jpg","galleries_id":181115,"server_id":1,"link":"photo_2929248.html","width":130,"caption":"B&W West Beach (1556 B+W)","height":198});
															thumbnails[2929250] = clik.newPhoto({"id":2929250,"src":"4061canterburyjpg_thumb.jpg","galleries_id":180917,"server_id":1,"link":"photo_2929250.html","width":130,"caption":"Canterbury from Westgate Towers (4061)","height":183});
															thumbnails[2929251] = clik.newPhoto({"id":2929251,"src":"IDW002jpg_thumb.jpg","galleries_id":180917,"server_id":1,"link":"photo_2929251.html","width":130,"caption":"Broomfield (0021)","height":102});
															thumbnails[2929284] = clik.newPhoto({"id":2929284,"src":"recjpg_thumb.jpg","galleries_id":181115,"server_id":1,"link":"photo_2929284.html","width":130,"caption":"Reculver Fence (9002s)","height":95});
															thumbnails[2929290] = clik.newPhoto({"id":2929290,"src":"IDW150jpg_thumb.jpg","galleries_id":181128,"server_id":1,"link":"photo_2929290.html","width":130,"caption":"Spitfire (150)","height":92});
															thumbnails[2929292] = clik.newPhoto({"id":2929292,"src":"LW9901jpg_thumb.jpg","galleries_id":181118,"server_id":1,"link":"photo_2929292.html","width":130,"caption":"Happy Frog (LW9901)","height":104});
															thumbnails[2929293] = clik.newPhoto({"id":2929293,"src":"LW040jpg_thumb.jpg","galleries_id":181118,"server_id":1,"link":"photo_2929293.html","width":130,"caption":"Peacock (LW040)","height":98});
															thumbnails[2929304] = clik.newPhoto({"id":2929304,"src":"LW0070jpg_thumb.jpg","galleries_id":180916,"server_id":1,"link":"photo_2929304.html","width":130,"caption":"Waves (LW0070)","height":97});
															thumbnails[2954944] = clik.newPhoto({"id":2954944,"src":"0013_thumb.jpg","galleries_id":181116,"server_id":1,"link":"photo_2954944.html","width":130,"caption":"Bandstand Herne Bay (0013)","height":193});
															thumbnails[2954950] = clik.newPhoto({"id":2954950,"src":"0023_thumb.jpg","galleries_id":180917,"server_id":1,"link":"photo_2954950.html","width":130,"caption":"Harbour Street Whitstable (0023)","height":102});
															thumbnails[2954957] = clik.newPhoto({"id":2954957,"src":"0018_thumb.jpg","galleries_id":181128,"server_id":1,"link":"photo_2954957.html","width":130,"caption":"Derek Minter (0018)","height":194});
															thumbnails[2954959] = clik.newPhoto({"id":2954959,"src":"0024_thumb.jpg","galleries_id":180917,"server_id":1,"link":"photo_2954959.html","width":130,"caption":"Island Wall Whitstable (0024)","height":173});
															thumbnails[2954966] = clik.newPhoto({"id":2954966,"src":"0025_thumb.jpg","galleries_id":181128,"server_id":1,"link":"photo_2954966.html","width":130,"caption":"Vincent (0025)","height":83});
															thumbnails[2954968] = clik.newPhoto({"id":2954968,"src":"2138_thumb.jpg","galleries_id":181116,"server_id":1,"link":"photo_2954968.html","width":130,"caption":"Bouys (2138)","height":86});
															thumbnails[2954977] = clik.newPhoto({"id":2954977,"src":"8811_thumb.jpg","galleries_id":180917,"server_id":1,"link":"photo_2954977.html","width":130,"caption":"Trees (8811)","height":86});
															thumbnails[2955008] = clik.newPhoto({"id":2955008,"src":"IDW0020runwayjpg_thumb.jpg","galleries_id":180916,"server_id":1,"link":"photo_2955008.html","width":130,"caption":"Horsebridge (0020)","height":111});
															thumbnails[2955019] = clik.newPhoto({"id":2955019,"src":"10013jpg_thumb.jpg","galleries_id":181115,"server_id":1,"link":"photo_2955019.html","width":130,"caption":"Rough Sea Herne Bay Pier (10013)","height":82});
															thumbnails[2967891] = clik.newPhoto({"id":2967891,"src":"IDW3333jpg_thumb.jpg","galleries_id":181118,"server_id":1,"link":"photo_2967891.html","width":130,"caption":"Robin (3333)","height":104});
															thumbnails[3062427] = clik.newPhoto({"id":3062427,"src":"2398 copy_thumb.jpg","galleries_id":180917,"server_id":1,"link":"photo_3062427.html","width":130,"caption":"At Boords Farm Batcombe (2398)","height":86});
															thumbnails[3104106] = clik.newPhoto({"id":3104106,"src":"1803 s copy1_thumb.jpg","galleries_id":181116,"server_id":1,"link":"photo_3104106.html","width":130,"caption":"Reculver (1803s)","height":86});
															thumbnails[3271355] = clik.newPhoto({"id":3271355,"src":"1744a copy_thumb.jpg","galleries_id":181116,"server_id":1,"link":"photo_3271355.html","width":130,"caption":"Reculver I (1744a)","height":88});
															thumbnails[3271380] = clik.newPhoto({"id":3271380,"src":"1176a copy_thumb.jpg","galleries_id":181116,"server_id":1,"link":"photo_3271380.html","width":130,"caption":"Hampton (1176a)","height":86});
															thumbnails[3271385] = clik.newPhoto({"id":3271385,"src":"IDW00002 useful copy_thumb.jpg","galleries_id":181117,"server_id":1,"link":"photo_3271385.html","width":130,"caption":"Prickly (00002)","height":182});
															thumbnails[3271391] = clik.newPhoto({"id":3271391,"src":"IDW0011 sunset same as source vivid gamma 2_thumb.jpg","galleries_id":181116,"server_id":1,"link":"photo_3271391.html","width":130,"caption":"Sunset at Hampton (0011)","height":75});
															thumbnails[3271392] = clik.newPhoto({"id":3271392,"src":"IDW0014 morris copy_thumb.jpg","galleries_id":181128,"server_id":1,"link":"photo_3271392.html","width":130,"caption":"Morris (0014)","height":72});
															thumbnails[3271404] = clik.newPhoto({"id":3271404,"src":"LW0062 copy_thumb.jpg","galleries_id":181115,"server_id":1,"link":"photo_3271404.html","width":130,"caption":"Steps at Kings Hall Herne Bay (LW0062)","height":163});
															thumbnails[3271407] = clik.newPhoto({"id":3271407,"src":"1115 copy_thumb.jpg","galleries_id":180916,"server_id":1,"link":"photo_3271407.html","width":130,"caption":"Austria (1115)","height":139});
															thumbnails[3271461] = clik.newPhoto({"id":3271461,"src":"0314c-copy_thumb.jpg","galleries_id":181116,"server_id":1,"link":"photo_3271461.html","width":130,"caption":"Reculver c (0134c)","height":182});
															thumbnails[3310979] = clik.newPhoto({"id":3310979,"src":"Cross Trax copy_thumb.jpg","galleries_id":201532,"server_id":1,"link":"photo_3310979.html","width":130,"caption":"Cross Trax Bishopstone","height":98});
															thumbnails[3310988] = clik.newPhoto({"id":3310988,"src":"MISTery Figures copy_thumb.jpg","galleries_id":201532,"server_id":1,"link":"photo_3310988.html","width":130,"caption":"MIST-ery Figures Bishopstone","height":98});
															thumbnails[3311011] = clik.newPhoto({"id":3311011,"src":"Misty Walk copy_thumb.jpg","galleries_id":201532,"server_id":1,"link":"photo_3311011.html","width":130,"caption":"Misty Walk<br>\r\nSt Mary's Church Reculver","height":98});
															thumbnails[3325066] = clik.newPhoto({"id":3325066,"src":"HW180_copy_thumb.jpg","galleries_id":201532,"server_id":1,"link":"photo_3325066.html","width":130,"caption":"Memorial Park, Herne Bay (HW180)","height":104});
															thumbnails[3409621] = clik.newPhoto({"id":3409621,"src":"2914-copy_thumb.jpg","galleries_id":180916,"server_id":1,"link":"photo_3409621.html","width":130,"caption":"Huts 3 (2914)","height":92});
															thumbnails[3536319] = clik.newPhoto({"id":3536319,"src":"3234_Hello_thumb.jpg","galleries_id":181118,"server_id":1,"link":"photo_3536319.html","width":130,"caption":"Hello (3234)","height":152});
															thumbnails[3536397] = clik.newPhoto({"id":3536397,"src":"1698_copy_thumb.jpg","galleries_id":180916,"server_id":1,"link":"photo_3536397.html","width":130,"caption":"Pagham (1698)","height":86});
															thumbnails[3557631] = clik.newPhoto({"id":3557631,"src":"1959_thumb.jpg","galleries_id":181118,"server_id":1,"link":"photo_3557631.html","width":130,"caption":"Eye On You (1959)","height":75});
															thumbnails[3557651] = clik.newPhoto({"id":3557651,"src":"3641_thumb.jpg","galleries_id":181116,"server_id":1,"link":"photo_3557651.html","width":130,"caption":"Arms View (3641)","height":95});
															thumbnails[3557714] = clik.newPhoto({"id":3557714,"src":"3667_thumb.jpg","galleries_id":181128,"server_id":1,"link":"photo_3557714.html","width":130,"caption":"Drops (3667)","height":173});
															thumbnails[3588974] = clik.newPhoto({"id":3588974,"src":"3562_BW_copy_thumb.jpg","galleries_id":181116,"server_id":1,"link":"photo_3588974.html","width":130,"caption":"Herne Bay Clocktower (3562 B+W)","height":86});
															thumbnails[3592931] = clik.newPhoto({"id":3592931,"src":"2536_copy_thumb.jpg","galleries_id":180917,"server_id":1,"link":"photo_3592931.html","width":130,"caption":"Batcombe (2536)","height":86});
															thumbnails[3778639] = clik.newPhoto({"id":3778639,"src":"bluebells1_thumb.jpg","galleries_id":181117,"server_id":1,"link":"photo_3778639.html","width":130,"caption":"Bluebells 1 (4553)","height":130});
															thumbnails[3778667] = clik.newPhoto({"id":3778667,"src":"bluebells2_thumb.jpg","galleries_id":181117,"server_id":1,"link":"photo_3778667.html","width":130,"caption":"Bluebells 2 (00571)","height":130});
															thumbnails[3778672] = clik.newPhoto({"id":3778672,"src":"_DSC3826_copy_thumb.jpg","galleries_id":181128,"server_id":1,"link":"photo_3778672.html","width":130,"caption":"Jellybeans (3826)","height":195});
															thumbnails[3778675] = clik.newPhoto({"id":3778675,"src":"4039_copy_thumb.jpg","galleries_id":181128,"server_id":1,"link":"photo_3778675.html","width":130,"caption":"Spiral (4039)","height":125});
															thumbnails[3778682] = clik.newPhoto({"id":3778682,"src":"4096_copy_thumb.jpg","galleries_id":181128,"server_id":1,"link":"photo_3778682.html","width":130,"caption":"Treats (4096)","height":182});
															thumbnails[3861104] = clik.newPhoto({"id":3861104,"src":"_DSC4099_copy_thumb.jpg","galleries_id":181117,"server_id":1,"link":"photo_3861104.html","width":130,"caption":"Daffodil (4099)","height":205});
															thumbnails[3861110] = clik.newPhoto({"id":3861110,"src":"1605_BW_copy_thumb.jpg","galleries_id":181115,"server_id":1,"link":"photo_3861110.html","width":130,"caption":"West Beach Littlehampton (1605 B+W)","height":196});
															thumbnails[3861112] = clik.newPhoto({"id":3861112,"src":"2774a_6x4_copy_thumb.jpg","galleries_id":181118,"server_id":1,"link":"photo_3861112.html","width":130,"caption":"Flamingo (2774a)","height":87});
															thumbnails[3861120] = clik.newPhoto({"id":3861120,"src":"3396_gamma1_thumb.jpg","galleries_id":181116,"server_id":1,"link":"photo_3861120.html","width":130,"caption":"Herne Bay (3396)","height":86});
															thumbnails[3861125] = clik.newPhoto({"id":3861125,"src":"3603_BW_lighter_steps_copy_thumb.jpg","galleries_id":181116,"server_id":1,"link":"photo_3861125.html","width":130,"caption":"Neptunes Arm (3603 B+W)","height":86});
															thumbnails[3861129] = clik.newPhoto({"id":3861129,"src":"3915_copy_thumb.jpg","galleries_id":181128,"server_id":1,"link":"photo_3861129.html","width":130,"caption":"Mansion Faces (3915)","height":94});
															thumbnails[3861198] = clik.newPhoto({"id":3861198,"src":"4107_c_copy_thumb.jpg","galleries_id":181117,"server_id":1,"link":"photo_3861198.html","width":130,"caption":"Weird Petals (4107) available in other styles.","height":205});
															thumbnails[3861201] = clik.newPhoto({"id":3861201,"src":"4239_brightness3_copy_thumb.jpg","galleries_id":181116,"server_id":1,"link":"photo_3861201.html","width":130,"caption":"Sunset over Hampton (4239)","height":86});
															thumbnails[4285465] = clik.newPhoto({"id":4285465,"src":"5214s_Herne_Windmill_thumb.jpg","galleries_id":181116,"server_id":1,"link":"photo_4285465.html","width":130,"caption":"Herne Windmill (5214s)","height":196});
															thumbnails[4523796] = clik.newPhoto({"id":4523796,"src":"5137_Pebbles_at_Reculver_thumb.jpg","galleries_id":181128,"server_id":1,"link":"photo_4523796.html","width":130,"caption":"5137 (Pebbles at Reculver)","height":86});
															thumbnails[4523801] = clik.newPhoto({"id":4523801,"src":"5140__Rust_at_Reculver_thumb.jpg","galleries_id":181128,"server_id":1,"link":"photo_4523801.html","width":130,"caption":"5140 (Rust)","height":86});
															thumbnails[5147953] = clik.newPhoto({"id":5147953,"src":"6755_copy_thumb.jpg","galleries_id":181128,"server_id":1,"link":"photo_5147953.html","width":130,"caption":" Burton Bradstock (6775)","height":87});
															thumbnails[5147956] = clik.newPhoto({"id":5147956,"src":"6766_copy_thumb.jpg","galleries_id":181128,"server_id":1,"link":"photo_5147956.html","width":130,"caption":" Burton Bradstock (6766)","height":105});
															thumbnails[5147957] = clik.newPhoto({"id":5147957,"src":"6775_copy_thumb.jpg","galleries_id":181128,"server_id":1,"link":"photo_5147957.html","width":130,"caption":" Burton Bradstock (6775)","height":87});
															thumbnails[5325881] = clik.newPhoto({"id":5325881,"src":"1399_for_printing_copy_thumb.jpg","galleries_id":180916,"server_id":1,"link":"photo_5325881.html","width":130,"caption":"Pagham (1399)","height":86});
															thumbnails[5624383] = clik.newPhoto({"id":5624383,"src":"7480_copy_thumb.jpg","galleries_id":181116,"server_id":1,"link":"photo_5624383.html","width":130,"caption":"Herne Bay Pier Head (7480)","height":86});
															thumbnails[5624403] = clik.newPhoto({"id":5624403,"src":"LW0052_copy_thumb.jpg","galleries_id":181116,"server_id":1,"link":"photo_5624403.html","width":130,"caption":"Herne Bay Pier Head from Kings Hall (LW0052)","height":163});
															thumbnails[6482036] = clik.newPhoto({"id":6482036,"src":"Evie_1_BW_copy_thumb.jpg","galleries_id":181128,"server_id":1,"link":"photo_6482036.html","width":130,"caption":"Hi Mum (not for sale)","height":163});
															thumbnails[6482049] = clik.newPhoto({"id":6482049,"src":"Evie_3__BW_copy_thumb.jpg","galleries_id":181128,"server_id":1,"link":"photo_6482049.html","width":130,"caption":"Grandads Girl (not for sale)","height":195});
															thumbnails[7375991] = clik.newPhoto({"id":7375991,"src":"8789_copy_thumb.jpg","galleries_id":181116,"server_id":1,"link":"photo_7375991.html","width":130,"caption":"Shadows (8789)","height":196});
															thumbnails[7380268] = clik.newPhoto({"id":7380268,"src":"8785_copy_thumb.jpg","galleries_id":181116,"server_id":1,"link":"photo_7380268.html","width":130,"caption":"Shadows (8785)","height":86});
															thumbnails[7576329] = clik.newPhoto({"id":7576329,"src":"H_thumb.jpg","galleries_id":181115,"server_id":1,"link":"photo_7576329.html","width":130,"caption":"H (not for sale)","height":195});
															thumbnails[7576332] = clik.newPhoto({"id":7576332,"src":"Hb_thumb.jpg","galleries_id":181115,"server_id":1,"link":"photo_7576332.html","width":130,"caption":"H (not for sale)","height":163});
															thumbnails[7576346] = clik.newPhoto({"id":7576346,"src":"DSC_0021_BW_thumb.jpg","galleries_id":201532,"server_id":1,"link":"photo_7576346.html","width":130,"caption":"Bottle Bank","height":87});
															thumbnails[7576350] = clik.newPhoto({"id":7576350,"src":"_DSC9180_thumb.jpg","galleries_id":201532,"server_id":1,"link":"photo_7576350.html","width":130,"caption":"Shadows of the past","height":196});
															thumbnails[7576352] = clik.newPhoto({"id":7576352,"src":"_DSC9182_thumb.jpg","galleries_id":201532,"server_id":1,"link":"photo_7576352.html","width":130,"caption":"Community Spirit","height":196});
															thumbnails[7576354] = clik.newPhoto({"id":7576354,"src":"_DSC9209_thumb.jpg","galleries_id":201532,"server_id":1,"link":"photo_7576354.html","width":130,"caption":"I Love This Town (Herne Bay)","height":104});
															thumbnails[3305702] = clik.newPhoto({"id":3305702,"src":"HW 186 B+W copy1_thumb.jpg","galleries_id":201532,"server_id":1,"link":"photo_3305702.html","width":130,"caption":"Memorial Park Bench (HW186 B+W)","height":98});
															thumbnails[3305720] = clik.newPhoto({"id":3305720,"src":"HW 202 fog copy1_thumb.jpg","galleries_id":201532,"server_id":1,"link":"photo_3305720.html","width":130,"caption":"Memorial Park, Herne Bay (HW202)","height":98});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[181117] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Flowers","link":"gallery_181117.html","maxRecords":0.0,"photoIDs":[2929029.0,2929194.0,2929196.0,3271385.0,3778639.0,3778667.0,3861104.0,3861198.0],"skipIndex":0,"section_code":"gallery","featured_images":"3861198,3861104,3778667,3778639,3271385,2929196,2929194,2929029","id":181117,"singleSection":false});				  						galleries[181116] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Local scenes","link":"gallery_181116.html","maxRecords":0.0,"photoIDs":[2929126.0,2929131.0,2929145.0,2929148.0,2929156.0,2929171.0,2954944.0,2954968.0,3104106.0,3271355.0,3271380.0,3271391.0,3271461.0,3557651.0,3588974.0,3861120.0,3861125.0,3861201.0,4285465.0,5624383.0,5624403.0,7375991.0,7380268.0],"skipIndex":0,"section_code":"gallery","featured_images":2929171.0,"id":181116,"singleSection":false});				  						galleries[181128] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Miscellaneous","link":"gallery_181128.html","maxRecords":0.0,"photoIDs":[2928987.0,2929142.0,2929245.0,2929246.0,2929290.0,2954957.0,2954966.0,3271392.0,3557714.0,3778672.0,3778675.0,3778682.0,3861129.0,4523796.0,4523801.0,5147953.0,5147956.0,5147957.0,6482036.0,6482049.0],"skipIndex":0,"section_code":"gallery","featured_images":2929290.0,"id":181128,"singleSection":false});				  						galleries[181115] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Monochrome","link":"gallery_181115.html","maxRecords":0.0,"photoIDs":[2929008.0,2929138.0,2929149.0,2929173.0,2929248.0,2929284.0,2955019.0,3271404.0,3861110.0,7576329.0,7576332.0],"skipIndex":0,"section_code":"gallery","featured_images":2929248.0,"id":181115,"singleSection":false});				  						galleries[181118] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wildlife","link":"gallery_181118.html","maxRecords":0.0,"photoIDs":[2928932.0,2928985.0,2929161.0,2929292.0,2929293.0,2967891.0,3536319.0,3557631.0,3861112.0],"skipIndex":0,"section_code":"gallery","featured_images":"2929161,2928985","id":181118,"singleSection":false});				  						galleries[180916] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Water","link":"gallery_180916.html","maxRecords":0.0,"photoIDs":[2929125.0,2929128.0,2929129.0,2929133.0,2929134.0,2929136.0,2929304.0,2955008.0,3271407.0,3409621.0,3536397.0,5325881.0],"skipIndex":0,"section_code":"gallery","featured_images":2929125.0,"id":180916,"singleSection":false});				  						galleries[180917] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Land","link":"gallery_180917.html","maxRecords":0.0,"photoIDs":[2929250.0,2929251.0,2954950.0,2954959.0,2954977.0,3062427.0,3592931.0],"skipIndex":0,"section_code":"gallery","featured_images":2929251.0,"id":180917,"singleSection":false});				  						galleries[201532] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Photography by Honor","link":"gallery_201532.html","maxRecords":0.0,"photoIDs":[3310979.0,3310988.0,3311011.0,3325066.0,7576346.0,7576350.0,7576352.0,7576354.0,3305702.0,3305720.0],"skipIndex":0,"section_code":"gallery","featured_images":3305702.0,"id":201532,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[232897] = '7576329';
imageSets[1] = '7576329,3536319,3409621,2929134,2929133';
imageSets[2] = '2929290,2929251,2929248,2929171,2929161,2929125,2928985,3305702';
imageSets[3] = '7576354,7576352,7576350,7576346,7576332,7576329,7380268,7375991,6482049,6482036,5624403,5624383,5325881,5147957,5147956,5147953,4523801,4523796,4285465,3861201,3861198,3861129,3861125,3861120,3861112,3861110,3861104,3778682,3778675,3778672,3778667,3778639,3592931,3588974,3557714,3557651,3557631,3536397,3536319,3409621,3325066,3311011,3310988,3310979,3305720,3305702,3271461,3271407,3271404,3271392';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/olympusid/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/olympusid/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/olympusid/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/olympusid/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/olympusid/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/olympusid/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/olympusid/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/olympusid/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/olympusid/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/olympusid/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/olympusid/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/olympusid/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/olympusid/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/olympusid/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/olympusid/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/olympusid/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/olympusid/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/olympusid/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/olympusid/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/olympusid/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/olympusid/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/olympusid/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/olympusid/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/olympusid/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/olympusid/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 = 'Original Photographs by Ian Woollams: ' + 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="OLYMPUSID">';
			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;
	}
}

			

