window.thumbnails = {};
															thumbnails[3489650] = clik.newPhoto({"id":3489650,"src":"IMG_6295_1_thumb.JPG","galleries_id":213400,"server_id":15,"link":"photo_3489650.html","width":130,"caption":"Aldeburgh Beach - Suffolk","height":87});
															thumbnails[3489655] = clik.newPhoto({"id":3489655,"src":"IMG_6341_1_thumb.JPG","galleries_id":213400,"server_id":15,"link":"photo_3489655.html","width":130,"caption":"Fishing Boat @ Aldeburgh Beach - Suffolk","height":87});
															thumbnails[3489658] = clik.newPhoto({"id":3489658,"src":"IMG_6346_1_thumb.JPG","galleries_id":213400,"server_id":15,"link":"photo_3489658.html","width":130,"caption":"Aldeburgh Chimney - Suffolk","height":195});
															thumbnails[3489671] = clik.newPhoto({"id":3489671,"src":"IMG_6355_1_thumb.JPG","galleries_id":213400,"server_id":15,"link":"photo_3489671.html","width":130,"caption":"Aldeburgh Beach - Scallop Sculpture - Suffolk","height":195});
															thumbnails[3489677] = clik.newPhoto({"id":3489677,"src":"IMG_6363_1_thumb.JPG","galleries_id":213400,"server_id":15,"link":"photo_3489677.html","width":130,"caption":"Maggi Hambling's Scallop Sculpture - Aldeburgh Beach","height":195});
															thumbnails[3489685] = clik.newPhoto({"id":3489685,"src":"IMG_6379_1_thumb.JPG","galleries_id":213400,"server_id":15,"link":"photo_3489685.html","width":130,"caption":"'A Conversation with the Sea' - Scallop Sculpture - Aldeburgh Beach","height":195});
															thumbnails[3489687] = clik.newPhoto({"id":3489687,"src":"IMG_6457_1_thumb.JPG","galleries_id":213400,"server_id":15,"link":"photo_3489687.html","width":130,"caption":"Sculpture @ Snape Maltings","height":87});
															thumbnails[3489600] = clik.newPhoto({"id":3489600,"src":"IMG_4789_1_thumb.JPG","galleries_id":17313,"server_id":15,"link":"photo_3489600.html","width":130,"caption":"La Mola Window 1 - Menorca","height":195});
															thumbnails[3489618] = clik.newPhoto({"id":3489618,"src":"IMG_4791_1_thumb.JPG","galleries_id":17313,"server_id":15,"link":"photo_3489618.html","width":130,"caption":"La Mola - Menorca","height":195});
															thumbnails[3489621] = clik.newPhoto({"id":3489621,"src":"IMG_4827_1_thumb.JPG","galleries_id":17313,"server_id":15,"link":"photo_3489621.html","width":130,"caption":"La Mola Window 2 - Menorca","height":87});
															thumbnails[3489628] = clik.newPhoto({"id":3489628,"src":"IMG_5018_1_thumb.JPG","galleries_id":17313,"server_id":15,"link":"photo_3489628.html","width":130,"caption":"La Mola Window 3 - Menorca","height":195});
															thumbnails[3489596] = clik.newPhoto({"id":3489596,"src":"IMG_4637_1_thumb.JPG","galleries_id":17313,"server_id":15,"link":"photo_3489596.html","width":130,"caption":"Cales Fonts - Menorca","height":87});
															thumbnails[3489586] = clik.newPhoto({"id":3489586,"src":"IMG_4425_1_thumb.JPG","galleries_id":17313,"server_id":15,"link":"photo_3489586.html","width":130,"caption":"Horse Statue @ San Martorellet - Menorca","height":195});
															thumbnails[3489526] = clik.newPhoto({"id":3489526,"src":"IMG_3828_1_thumb.JPG","galleries_id":17313,"server_id":15,"link":"photo_3489526.html","width":130,"caption":"Fornells - Menorca","height":87});
															thumbnails[3489536] = clik.newPhoto({"id":3489536,"src":"IMG_3834_1_thumb.JPG","galleries_id":17313,"server_id":15,"link":"photo_3489536.html","width":130,"caption":"Fornells Fishing Boat - Menorca","height":195});
															thumbnails[3489552] = clik.newPhoto({"id":3489552,"src":"IMG_3869_1_thumb.JPG","galleries_id":17313,"server_id":15,"link":"photo_3489552.html","width":130,"caption":"Cales Fonts @ Dusk - Menorca","height":87});
															thumbnails[3489559] = clik.newPhoto({"id":3489559,"src":"IMG_3891_1_thumb.JPG","galleries_id":17313,"server_id":15,"link":"photo_3489559.html","width":130,"caption":"Cales Fonts @ Night - Menorca","height":87});
															thumbnails[3513613] = clik.newPhoto({"id":3513613,"src":"IMG_3270_1_thumb.JPG","galleries_id":214904,"server_id":15,"link":"photo_3513613.html","width":130,"caption":"Southend Pier - New Entrance Structure","height":195});
															thumbnails[3513616] = clik.newPhoto({"id":3513616,"src":"IMG_3347_1_thumb.JPG","galleries_id":214904,"server_id":15,"link":"photo_3513616.html","width":130,"caption":"Southend Pier - View from New Entrance","height":195});
															thumbnails[3513622] = clik.newPhoto({"id":3513622,"src":"IMG_3351_1_thumb.JPG","galleries_id":214904,"server_id":15,"link":"photo_3513622.html","width":130,"caption":"Southend Pier Head - Seat Detail","height":195});
															thumbnails[3513627] = clik.newPhoto({"id":3513627,"src":"IMG_3389_1_thumb.JPG","galleries_id":214904,"server_id":15,"link":"photo_3513627.html","width":130,"caption":"Southend Pier Head - Seat","height":87});
															thumbnails[3513632] = clik.newPhoto({"id":3513632,"src":"IMG_3422_1_thumb.JPG","galleries_id":214904,"server_id":15,"link":"photo_3513632.html","width":130,"caption":"Southend Pier - \"The Boards\"","height":87});
															thumbnails[3513639] = clik.newPhoto({"id":3513639,"src":"IMG_3441_1_thumb.JPG","galleries_id":214904,"server_id":15,"link":"photo_3513639.html","width":130,"caption":"Leigh-on-Sea - view from Southend Pier","height":195});
															thumbnails[3513645] = clik.newPhoto({"id":3513645,"src":"IMG_3460_1_thumb.JPG","galleries_id":214904,"server_id":15,"link":"photo_3513645.html","width":130,"caption":"Southend Pier - New Entrance 1","height":87});
															thumbnails[3513648] = clik.newPhoto({"id":3513648,"src":"IMG_3461_1_thumb.JPG","galleries_id":214904,"server_id":15,"link":"photo_3513648.html","width":130,"caption":"Southend Pier - New Entrance 2","height":195});
															thumbnails[3481427] = clik.newPhoto({"id":3481427,"src":"IMG_8955_6_1_thumb.JPG","galleries_id":212890,"server_id":15,"link":"photo_3481427.html","width":130,"caption":"London Eye","height":195});
															thumbnails[3481461] = clik.newPhoto({"id":3481461,"src":"IMG_8993_7_1_thumb.JPG","galleries_id":212890,"server_id":15,"link":"photo_3481461.html","width":130,"caption":"Golden Jubilee Bridge","height":87});
															thumbnails[3481465] = clik.newPhoto({"id":3481465,"src":"IMG_9042_6_1_thumb.JPG","galleries_id":212890,"server_id":15,"link":"photo_3481465.html","width":130,"caption":"DALI 1 @ London Eye","height":195});
															thumbnails[3481492] = clik.newPhoto({"id":3481492,"src":"IMG_9088_5_1_thumb.JPG","galleries_id":212890,"server_id":15,"link":"photo_3481492.html","width":130,"caption":"DALI 2 @ London Eye","height":195});
															thumbnails[3481518] = clik.newPhoto({"id":3481518,"src":"IMG_9078_7_1_thumb.JPG","galleries_id":212890,"server_id":15,"link":"photo_3481518.html","width":130,"caption":"Houses of Parliament - Silhouette 1","height":87});
															thumbnails[3481520] = clik.newPhoto({"id":3481520,"src":"IMG_9081_5_1_thumb.JPG","galleries_id":212890,"server_id":15,"link":"photo_3481520.html","width":130,"caption":"Houses of Parliament - Silhouette 2","height":195});
															thumbnails[3481578] = clik.newPhoto({"id":3481578,"src":"IMG_9248-crop_6_1_thumb.jpg","galleries_id":212890,"server_id":15,"link":"photo_3481578.html","width":130,"caption":"Houses of Parliament","height":87});
															thumbnails[3481581] = clik.newPhoto({"id":3481581,"src":"IMG_9328_5_1_thumb.JPG","galleries_id":212890,"server_id":15,"link":"photo_3481581.html","width":130,"caption":"Millenium Bridge","height":195});
															thumbnails[3481582] = clik.newPhoto({"id":3481582,"src":"IMG_9338-crop_5_1_thumb.jpg","galleries_id":212890,"server_id":15,"link":"photo_3481582.html","width":130,"caption":"Millenium Bridge & St. Pauls","height":93});
															thumbnails[3481658] = clik.newPhoto({"id":3481658,"src":"IMG_9343_4_1_thumb.JPG","galleries_id":212890,"server_id":15,"link":"photo_3481658.html","width":130,"caption":"Millenium Bridge to St. Pauls","height":195});
															thumbnails[3481660] = clik.newPhoto({"id":3481660,"src":"IMG_9349-crop_5_1_thumb.jpg","galleries_id":212890,"server_id":15,"link":"photo_3481660.html","width":130,"caption":"St. Pauls","height":93});
															thumbnails[3481694] = clik.newPhoto({"id":3481694,"src":"IMG_9370_5_1_thumb.JPG","galleries_id":212890,"server_id":15,"link":"photo_3481694.html","width":130,"caption":"London City from Waterloo Bridge","height":87});
															thumbnails[3481725] = clik.newPhoto({"id":3481725,"src":"IMG_9368_5_11_thumb.JPG","galleries_id":212890,"server_id":15,"link":"photo_3481725.html","width":130,"caption":"The Misty City from Waterloo Bridge","height":87});
															thumbnails[3481728] = clik.newPhoto({"id":3481728,"src":"IMG_9371_5_1_thumb.JPG","galleries_id":212890,"server_id":15,"link":"photo_3481728.html","width":130,"caption":"The London Eye from Waterloo Bridge","height":87});
															thumbnails[432443] = clik.newPhoto({"id":432443,"src":"IMG_4513Aug06_thumb.jpg","galleries_id":34418,"server_id":15,"link":"photo_432443.html","width":130,"caption":"Tiara Two","height":87});
															thumbnails[432458] = clik.newPhoto({"id":432458,"src":"IMG_4621Aug06_thumb.jpg","galleries_id":34418,"server_id":15,"link":"photo_432458.html","width":130,"caption":"Tiara Five","height":87});
															thumbnails[432462] = clik.newPhoto({"id":432462,"src":"IMG_4679Aug06_thumb.jpg","galleries_id":34418,"server_id":15,"link":"photo_432462.html","width":130,"caption":"Tiara Seven","height":87});
															thumbnails[432775] = clik.newPhoto({"id":432775,"src":"IMG_4070Aug06_thumb.jpg","galleries_id":17307,"server_id":15,"link":"photo_432775.html","width":130,"caption":"Kestrel","height":195});
															thumbnails[432781] = clik.newPhoto({"id":432781,"src":"IMG_4311Aug06_thumb.jpg","galleries_id":34419,"server_id":15,"link":"photo_432781.html","width":130,"caption":"","height":195});
															thumbnails[432771] = clik.newPhoto({"id":432771,"src":"IMG_3846Aug06_thumb.jpg","galleries_id":17309,"server_id":15,"link":"photo_432771.html","width":130,"caption":"","height":195});
															thumbnails[432756] = clik.newPhoto({"id":432756,"src":"IMG_3655Aug061_thumb.jpg","galleries_id":17310,"server_id":15,"link":"photo_432756.html","width":130,"caption":"Ragdoll","height":87});
															thumbnails[432747] = clik.newPhoto({"id":432747,"src":"IMG_3539Aug06_thumb.jpg","galleries_id":17307,"server_id":15,"link":"photo_432747.html","width":130,"caption":"Mallard Duckling","height":195});
															thumbnails[432750] = clik.newPhoto({"id":432750,"src":"IMG_3598Aug06_thumb.jpg","galleries_id":17311,"server_id":15,"link":"photo_432750.html","width":130,"caption":"","height":87});
															thumbnails[432657] = clik.newPhoto({"id":432657,"src":"IMG_2219Aug06_thumb.jpg","galleries_id":34419,"server_id":15,"link":"photo_432657.html","width":130,"caption":"Snow Leopard","height":87});
															thumbnails[432658] = clik.newPhoto({"id":432658,"src":"IMG_2272Aug06_thumb.jpg","galleries_id":34419,"server_id":15,"link":"photo_432658.html","width":130,"caption":"Snow Leopard","height":87});
															thumbnails[432659] = clik.newPhoto({"id":432659,"src":"IMG_2380Aug06_thumb.jpg","galleries_id":34419,"server_id":15,"link":"photo_432659.html","width":130,"caption":"Tiger ","height":87});
															thumbnails[432663] = clik.newPhoto({"id":432663,"src":"IMG_2441Aug06_thumb.jpg","galleries_id":34419,"server_id":15,"link":"photo_432663.html","width":130,"caption":"Tiger ","height":87});
															thumbnails[432665] = clik.newPhoto({"id":432665,"src":"IMG_2578Aug06_thumb.jpg","galleries_id":34419,"server_id":15,"link":"photo_432665.html","width":130,"caption":"","height":87});
															thumbnails[432668] = clik.newPhoto({"id":432668,"src":"IMG_2608Aug06_thumb.jpg","galleries_id":34419,"server_id":15,"link":"photo_432668.html","width":130,"caption":"","height":87});
															thumbnails[432739] = clik.newPhoto({"id":432739,"src":"IMG_2707Aug06_thumb.jpg","galleries_id":34419,"server_id":15,"link":"photo_432739.html","width":130,"caption":"","height":87});
															thumbnails[432742] = clik.newPhoto({"id":432742,"src":"IMG_2747Aug06_thumb.jpg","galleries_id":34419,"server_id":15,"link":"photo_432742.html","width":130,"caption":"Cheetah","height":87});
															thumbnails[432641] = clik.newPhoto({"id":432641,"src":"IMG_1743-cropAug06_thumb.jpg","galleries_id":17311,"server_id":15,"link":"photo_432641.html","width":130,"caption":"Heath Fritillary Butterfly - Essex","height":195});
															thumbnails[218682] = clik.newPhoto({"id":218682,"src":"IMG_0319m_thumb.jpg","galleries_id":19859,"server_id":15,"link":"photo_218682.html","width":130,"caption":"Post & Rope","height":195});
															thumbnails[218679] = clik.newPhoto({"id":218679,"src":"IMG_0134m_thumb.jpg","galleries_id":19859,"server_id":15,"link":"photo_218679.html","width":130,"caption":"Woodland Gate Post","height":195});
															thumbnails[218662] = clik.newPhoto({"id":218662,"src":"IMG_0110b_thumb.jpg","galleries_id":17307,"server_id":15,"link":"photo_218662.html","width":130,"caption":"Mallard Duck in Flight","height":87});
															thumbnails[249062] = clik.newPhoto({"id":249062,"src":"IMG_89481_thumb.jpg","galleries_id":17309,"server_id":15,"link":"photo_249062.html","width":130,"caption":"Water Fountain - Stratford-Upon-Avon","height":195});
															thumbnails[218680] = clik.newPhoto({"id":218680,"src":"IMG_0321m_thumb.jpg","galleries_id":19859,"server_id":15,"link":"photo_218680.html","width":130,"caption":"Silver Birch","height":195});
															thumbnails[193044] = clik.newPhoto({"id":193044,"src":"IMG_8443w_thumb.jpg","galleries_id":17311,"server_id":15,"link":"photo_193044.html","width":130,"caption":"Snowy Farm Gate","height":87});
															thumbnails[249079] = clik.newPhoto({"id":249079,"src":"IMG_7992_thumb.jpg","galleries_id":17309,"server_id":15,"link":"photo_249079.html","width":130,"caption":"Chimney Sweeps Brush - Essex","height":195});
															thumbnails[193034] = clik.newPhoto({"id":193034,"src":"IMG_7706w_thumb.jpg","galleries_id":17311,"server_id":15,"link":"photo_193034.html","width":130,"caption":"Frosty Oak Leaves","height":87});
															thumbnails[193109] = clik.newPhoto({"id":193109,"src":"IMG_7571b_thumb.jpg","galleries_id":17307,"server_id":15,"link":"photo_193109.html","width":130,"caption":"Mallard - In Flight","height":87});
															thumbnails[191798] = clik.newPhoto({"id":191798,"src":"IMG_6883w_thumb.jpg","galleries_id":17311,"server_id":15,"link":"photo_191798.html","width":130,"caption":"","height":195});
															thumbnails[191799] = clik.newPhoto({"id":191799,"src":"IMG_6928w_thumb.jpg","galleries_id":17311,"server_id":15,"link":"photo_191799.html","width":130,"caption":"","height":87});
															thumbnails[193104] = clik.newPhoto({"id":193104,"src":"IMG_7114b_thumb.jpg","galleries_id":17307,"server_id":15,"link":"photo_193104.html","width":130,"caption":"Canada Goose","height":87});
															thumbnails[193107] = clik.newPhoto({"id":193107,"src":"IMG_7135b_thumb.jpg","galleries_id":17307,"server_id":15,"link":"photo_193107.html","width":130,"caption":"Rosy-Billed Pochard (Netta peposaca)","height":87});
															thumbnails[191781] = clik.newPhoto({"id":191781,"src":"IMG_6626m_thumb.jpg","galleries_id":17313,"server_id":15,"link":"photo_191781.html","width":130,"caption":"Ciutadella - Menorca 2005","height":195});
															thumbnails[191778] = clik.newPhoto({"id":191778,"src":"IMG_6492m_thumb.jpg","galleries_id":17313,"server_id":15,"link":"photo_191778.html","width":130,"caption":"El Sereno - Menorca 2005","height":87});
															thumbnails[191776] = clik.newPhoto({"id":191776,"src":"IMG_6410m_thumb.jpg","galleries_id":17313,"server_id":15,"link":"photo_191776.html","width":130,"caption":"Sant Lluis - Menorca 2005","height":195});
															thumbnails[189233] = clik.newPhoto({"id":189233,"src":"IMG_6370m_thumb.jpg","galleries_id":17313,"server_id":15,"link":"photo_189233.html","width":130,"caption":"Cales Fonts - Menorca 2005","height":195});
															thumbnails[191775] = clik.newPhoto({"id":191775,"src":"IMG_6396m_thumb.jpg","galleries_id":17313,"server_id":15,"link":"photo_191775.html","width":130,"caption":"Cales Fonts @ Night- Menorca 2005","height":87});
															thumbnails[249090] = clik.newPhoto({"id":249090,"src":"IMG_6138r_thumb.jpg","galleries_id":34419,"server_id":15,"link":"photo_249090.html","width":130,"caption":"Fishing Cat - Kent","height":195});
															thumbnails[191796] = clik.newPhoto({"id":191796,"src":"IMG_5369w_thumb.jpg","galleries_id":17311,"server_id":15,"link":"photo_191796.html","width":130,"caption":"Summer Thistle - Essex","height":195});
															thumbnails[191794] = clik.newPhoto({"id":191794,"src":"IMG_5266w_thumb.jpg","galleries_id":17311,"server_id":15,"link":"photo_191794.html","width":130,"caption":"Heath Fritillary Butterfly - Essex","height":87});
															thumbnails[191793] = clik.newPhoto({"id":191793,"src":"IMG_5104w_thumb.jpg","galleries_id":17311,"server_id":15,"link":"photo_191793.html","width":130,"caption":"Five-Spot Burnet Moth - Essex","height":195});
															thumbnails[191792] = clik.newPhoto({"id":191792,"src":"IMG_4956w_thumb.jpg","galleries_id":17311,"server_id":15,"link":"photo_191792.html","width":130,"caption":"White Foxglove (Digitalis purpurea) - Essex","height":195});
															thumbnails[191790] = clik.newPhoto({"id":191790,"src":"IMG_4561w_thumb.jpg","galleries_id":17311,"server_id":15,"link":"photo_191790.html","width":130,"caption":"Bluebells - Essex","height":87});
															thumbnails[250028] = clik.newPhoto({"id":250028,"src":"IMG_4444w_thumb.jpg","galleries_id":17311,"server_id":15,"link":"photo_250028.html","width":130,"caption":"Bluebell (Hyacinthoides non-scripta)","height":87});
															thumbnails[193071] = clik.newPhoto({"id":193071,"src":"IMG_1039r_thumb.jpg","galleries_id":17310,"server_id":15,"link":"photo_193071.html","width":130,"caption":"Tabby Cat","height":87});
															thumbnails[249089] = clik.newPhoto({"id":249089,"src":"CC270305_thumb.jpg","galleries_id":17309,"server_id":15,"link":"photo_249089.html","width":130,"caption":"Chinese Garden Fountain","height":195});
															thumbnails[1108193] = clik.newPhoto({"id":1108193,"src":"IMG_2916_thumb.jpg","galleries_id":81337,"server_id":15,"link":"photo_1108193.html","width":130,"caption":"Outside Church Doorway","height":87});
															thumbnails[1108197] = clik.newPhoto({"id":1108197,"src":"IMG_3026_thumb.jpg","galleries_id":81337,"server_id":15,"link":"photo_1108197.html","width":130,"caption":"Groom Laughing","height":87});
															thumbnails[1108200] = clik.newPhoto({"id":1108200,"src":"IMG_3054_thumb.jpg","galleries_id":81337,"server_id":15,"link":"photo_1108200.html","width":130,"caption":"Bride & Groom","height":87});
															thumbnails[1108207] = clik.newPhoto({"id":1108207,"src":"IMG_3098_thumb.jpg","galleries_id":81337,"server_id":15,"link":"photo_1108207.html","width":130,"caption":"Bride & Groom ","height":87});
															thumbnails[1108215] = clik.newPhoto({"id":1108215,"src":"IMG_3135_thumb.jpg","galleries_id":81337,"server_id":15,"link":"photo_1108215.html","width":130,"caption":"Bride & Groom Outside","height":87});
															thumbnails[1108248] = clik.newPhoto({"id":1108248,"src":"IMG_2940bwJPG_thumb.jpg","galleries_id":81337,"server_id":15,"link":"photo_1108248.html","width":130,"caption":"Outside Church Doorway (Mono)","height":195});
															thumbnails[1108252] = clik.newPhoto({"id":1108252,"src":"IMG_2948JPG_thumb.jpg","galleries_id":81337,"server_id":15,"link":"photo_1108252.html","width":130,"caption":"Walking on the Lawn","height":195});
															thumbnails[1108253] = clik.newPhoto({"id":1108253,"src":"IMG_2997JPG_thumb.jpg","galleries_id":81337,"server_id":15,"link":"photo_1108253.html","width":130,"caption":"Bride on the Lawn","height":195});
															thumbnails[1108260] = clik.newPhoto({"id":1108260,"src":"IMG_3042JPG_thumb.jpg","galleries_id":81337,"server_id":15,"link":"photo_1108260.html","width":130,"caption":"Bride","height":195});
															thumbnails[1108270] = clik.newPhoto({"id":1108270,"src":"IMG_3205JPG_thumb.jpg","galleries_id":81337,"server_id":15,"link":"photo_1108270.html","width":130,"caption":"Walking in the Grounds","height":195});
															thumbnails[1108274] = clik.newPhoto({"id":1108274,"src":"IMG_3223JPG_thumb.jpg","galleries_id":81337,"server_id":15,"link":"photo_1108274.html","width":130,"caption":"Inside Church Doorway","height":195});
															thumbnails[1108276] = clik.newPhoto({"id":1108276,"src":"IMG_3269JPG_thumb.jpg","galleries_id":81337,"server_id":15,"link":"photo_1108276.html","width":130,"caption":"Walking up the Aisle","height":195});
															thumbnails[1108277] = clik.newPhoto({"id":1108277,"src":"IMG_3389JPG_thumb.jpg","galleries_id":81337,"server_id":15,"link":"photo_1108277.html","width":130,"caption":"Bride @ Window","height":195});
															thumbnails[1108284] = clik.newPhoto({"id":1108284,"src":"IMG_3447bwJPG_thumb.jpg","galleries_id":81337,"server_id":15,"link":"photo_1108284.html","width":130,"caption":"Groom @ Window","height":195});
															thumbnails[1108286] = clik.newPhoto({"id":1108286,"src":"IMG_3522JPG_thumb.jpg","galleries_id":81337,"server_id":15,"link":"photo_1108286.html","width":130,"caption":"Adjusting Tie","height":195});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[212890] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"London","link":"gallery_212890.html","maxRecords":0.0,"photoIDs":[3481427.0,3481461.0,3481465.0,3481492.0,3481518.0,3481520.0,3481578.0,3481581.0,3481582.0,3481658.0,3481660.0,3481694.0,3481725.0,3481728.0],"skipIndex":0,"section_code":"gallery","featured_images":"3481728,3481725,3481694,3481660,3481658,3481582,3481581,3481578,3481520,3481518","id":212890,"singleSection":false});				  						galleries[82897] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wedding Photography","link":"gallery_82897.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"1108286,1108284,1108277,1108276,1108274,1108270,1108260,1108253,1108252,1108248","id":82897,"singleSection":false});				  						galleries[81337] = clik.newGallery({"parentGallery":82897,"usePopups":false,"title":"Wedding - 19\/06\/07","link":"gallery_81337.html","maxRecords":0.0,"photoIDs":[1108193.0,1108197.0,1108200.0,1108207.0,1108215.0,1108248.0,1108252.0,1108253.0,1108260.0,1108270.0,1108274.0,1108276.0,1108277.0,1108284.0,1108286.0],"skipIndex":0,"section_code":"gallery","featured_images":"1108286,1108284,1108277,1108276,1108274,1108270,1108260,1108253,1108252,1108248","id":81337,"singleSection":false});				  						galleries[34418] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Recent Commissions","link":"gallery_34418.html","maxRecords":0.0,"photoIDs":[432443.0,432458.0,432462.0],"skipIndex":0,"section_code":"gallery","featured_images":"432462,432458,432443","id":34418,"singleSection":false});				  						galleries[17309] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Buildings & Abstract","link":"gallery_17309.html","maxRecords":0.0,"photoIDs":[432771.0,249062.0,249079.0,249089.0],"skipIndex":0,"section_code":"gallery","featured_images":"432771,249089,249079,249062","id":17309,"singleSection":false});				  						galleries[17310] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Cats","link":"gallery_17310.html","maxRecords":0.0,"photoIDs":[432756.0,193071.0],"skipIndex":0,"section_code":"gallery","featured_images":"432756,193071","id":17310,"singleSection":false});				  						galleries[17311] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Woodland & Countryside","link":"gallery_17311.html","maxRecords":0.0,"photoIDs":[432750.0,432641.0,193044.0,193034.0,191798.0,191799.0,191796.0,191794.0,191793.0,191792.0,191790.0,250028.0],"skipIndex":0,"section_code":"gallery","featured_images":"432750,432641,250028,193044,193034,191799,191798,191796,191794,191793","id":17311,"singleSection":false});				  						galleries[17313] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Menorca","link":"gallery_17313.html","maxRecords":0.0,"photoIDs":[3489600.0,3489618.0,3489621.0,3489628.0,3489596.0,3489586.0,3489526.0,3489536.0,3489552.0,3489559.0,191781.0,191778.0,191776.0,189233.0,191775.0],"skipIndex":0,"section_code":"gallery","featured_images":"3489628,3489621,3489618,3489600,3489596,3489586,3489559,3489552,3489536,3489526","id":17313,"singleSection":false});				  						galleries[34419] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Big Cats & SafariPark's","link":"gallery_34419.html","maxRecords":0.0,"photoIDs":[432781.0,432657.0,432658.0,432659.0,432663.0,432665.0,432668.0,432739.0,432742.0,249090.0],"skipIndex":0,"section_code":"gallery","featured_images":"432781,432742,432739,432668,432665,432663,432659,432658,432657,249090","id":34419,"singleSection":false});				  						galleries[17307] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Birds","link":"gallery_17307.html","maxRecords":0.0,"photoIDs":[432775.0,432747.0,218662.0,193109.0,193104.0,193107.0],"skipIndex":0,"section_code":"gallery","featured_images":"432775,432747,218662,193109,193107,193104","id":17307,"singleSection":false});				  						galleries[19859] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Mono","link":"gallery_19859.html","maxRecords":0.0,"photoIDs":[218682.0,218679.0,218680.0],"skipIndex":0,"section_code":"gallery","featured_images":"218682,218680,218679","id":19859,"singleSection":false});				  						galleries[213400] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Norfolk & Suffolk","link":"gallery_213400.html","maxRecords":0.0,"photoIDs":[3489650.0,3489655.0,3489658.0,3489671.0,3489677.0,3489685.0,3489687.0],"skipIndex":0,"section_code":"gallery","featured_images":"3489687,3489685,3489677,3489671,3489658,3489655,3489650","id":213400,"singleSection":false});				  						galleries[214904] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Southend-on-Sea","link":"gallery_214904.html","maxRecords":0.0,"photoIDs":[3513613.0,3513616.0,3513622.0,3513627.0,3513632.0,3513639.0,3513645.0,3513648.0],"skipIndex":0,"section_code":"gallery","featured_images":"3513648,3513645,3513639,3513632,3513627,3513622,3513616,3513613","id":214904,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '249090,249089,249062,218682,191798,191793,191776,189233';
imageSets[3] = '3513648,3513645,3513639,3513632,3513627,3513622,3513616,3513613,3489687,3489685,3489677,3489671,3489658,3489655,3489650,3489628,3489621,3489618,3489600,3489596,3489586,3489559,3489552,3489536,3489526,3481728,3481725,3481694,3481660,3481658,3481582,3481581,3481578,3481520,3481518,3481492,3481465,3481461,3481427,1108286,1108284,1108277,1108276,1108274,1108270,1108260,1108253,1108252,1108248,1108215';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/rwaphotography/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/rwaphotography/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/rwaphotography/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/rwaphotography/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/rwaphotography/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/rwaphotography/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/rwaphotography/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/rwaphotography/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/rwaphotography/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/rwaphotography/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/rwaphotography/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/rwaphotography/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/rwaphotography/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/rwaphotography/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/rwaphotography/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/rwaphotography/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/rwaphotography/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/rwaphotography/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/rwaphotography/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/rwaphotography/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/rwaphotography/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/rwaphotography/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/rwaphotography/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/rwaphotography/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/rwaphotography/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/rwaphotography/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/rwaphotography/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 = 'RWA 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="updateItemValues($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
		else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
																		temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="rwaphotography@btinternet.com">';
					temp += '<input type="hidden" name="currency_code" value="GBP">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="rwaphotography@btinternet.com">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						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;
	}
}

			

