window.thumbnails = {};
															thumbnails[3426884] = clik.newPhoto({"id":3426884,"src":"shell_thumb.jpg","galleries_id":209467,"server_id":15,"link":"photo_3426884.html","width":130,"caption":"Broken Scallop, Newquay, Wales.","height":87});
															thumbnails[3426927] = clik.newPhoto({"id":3426927,"src":"ZEBRA_1_thumb.jpg","galleries_id":209470,"server_id":15,"link":"photo_3426927.html","width":130,"caption":"Zebra, Rekero Camp, Maasai Mara, Kenya.","height":87});
															thumbnails[3426957] = clik.newPhoto({"id":3426957,"src":"turnstonebw_1_thumb.jpg","galleries_id":209469,"server_id":15,"link":"photo_3426957.html","width":130,"caption":"Turnstones, Aberaeron beach.","height":76});
															thumbnails[3426961] = clik.newPhoto({"id":3426961,"src":"cheetah_thumb.jpg","galleries_id":209470,"server_id":15,"link":"photo_3426961.html","width":130,"caption":"Cheetah (male), Lewa Downs, Kenya.","height":87});
															thumbnails[3426968] = clik.newPhoto({"id":3426968,"src":"ellie_thumb.jpg","galleries_id":209470,"server_id":15,"link":"photo_3426968.html","width":130,"caption":"Elephant, Maasai Mara, Kenya","height":85});
															thumbnails[3427005] = clik.newPhoto({"id":3427005,"src":"LISA8_thumb.jpg","galleries_id":209472,"server_id":15,"link":"photo_3427005.html","width":130,"caption":"","height":87});
															thumbnails[3427331] = clik.newPhoto({"id":3427331,"src":"reedwarbler_thumb.jpg","galleries_id":209469,"server_id":15,"link":"photo_3427331.html","width":130,"caption":"Reed Warbler","height":153});
															thumbnails[3427337] = clik.newPhoto({"id":3427337,"src":"Barn OwlDE_thumb.jpg","galleries_id":209469,"server_id":15,"link":"photo_3427337.html","width":130,"caption":"Barn Owl","height":87});
															thumbnails[3427350] = clik.newPhoto({"id":3427350,"src":"poppies_thumb.jpg","galleries_id":209468,"server_id":15,"link":"photo_3427350.html","width":130,"caption":"Poppies!","height":195});
															thumbnails[3431252] = clik.newPhoto({"id":3431252,"src":"ROCK_1_thumb.jpg","galleries_id":209467,"server_id":15,"link":"photo_3431252.html","width":130,"caption":"Rock, Mull.","height":195});
															thumbnails[3431256] = clik.newPhoto({"id":3431256,"src":"ABERROOF_1_thumb.jpg","galleries_id":209467,"server_id":15,"link":"photo_3431256.html","width":130,"caption":"Roof, Aberystwyth.","height":82});
															thumbnails[3431266] = clik.newPhoto({"id":3431266,"src":"FLOWER1_1_thumb.jpg","galleries_id":209536,"server_id":15,"link":"photo_3431266.html","width":130,"caption":"Glass Rose","height":71});
															thumbnails[3431284] = clik.newPhoto({"id":3431284,"src":"popgold2_1_1_thumb.jpg","galleries_id":209536,"server_id":15,"link":"photo_3431284.html","width":130,"caption":"Garden poppies","height":87});
															thumbnails[3431287] = clik.newPhoto({"id":3431287,"src":"BARTG_1_thumb.jpg","galleries_id":209469,"server_id":15,"link":"photo_3431287.html","width":130,"caption":"Bar tailed Godwits, Ynyslas.","height":71});
															thumbnails[3431290] = clik.newPhoto({"id":3431290,"src":"Barn Owl 3_thumb.jpg","galleries_id":209469,"server_id":15,"link":"photo_3431290.html","width":130,"caption":"Barn Owl","height":87});
															thumbnails[3432016] = clik.newPhoto({"id":3432016,"src":"LISA7dtgg_thumb.jpg","galleries_id":209472,"server_id":15,"link":"photo_3432016.html","width":130,"caption":"","height":87});
															thumbnails[3432018] = clik.newPhoto({"id":3432018,"src":"LISABW_thumb.jpg","galleries_id":209472,"server_id":15,"link":"photo_3432018.html","width":130,"caption":"","height":87});
															thumbnails[3432803] = clik.newPhoto({"id":3432803,"src":"9_1_thumb.jpg","galleries_id":209470,"server_id":15,"link":"photo_3432803.html","width":130,"caption":"Lion (male), Maasai Mara, Kenya","height":87});
															thumbnails[3432827] = clik.newPhoto({"id":3432827,"src":"G4_1_thumb.jpg","galleries_id":209470,"server_id":15,"link":"photo_3432827.html","width":130,"caption":"Grevvy's Zebra, Lewa Downs, Kenya","height":87});
															thumbnails[3432836] = clik.newPhoto({"id":3432836,"src":"zebralong_1_1_thumb.jpg","galleries_id":209470,"server_id":15,"link":"photo_3432836.html","width":130,"caption":"Zebra, Rekero Camp, Maasai Mara, Kenya","height":30});
															thumbnails[3436075] = clik.newPhoto({"id":3436075,"src":"C3_1_thumb.jpg","galleries_id":209470,"server_id":15,"link":"photo_3436075.html","width":130,"caption":"Head in the clouds!","height":87});
															thumbnails[3644628] = clik.newPhoto({"id":3644628,"src":"T2_thumb.jpg","galleries_id":209536,"server_id":15,"link":"photo_3644628.html","width":130,"caption":"","height":195});
															thumbnails[4330936] = clik.newPhoto({"id":4330936,"src":"LM4_thumb.jpg","galleries_id":209472,"server_id":15,"link":"photo_4330936.html","width":130,"caption":"Lisa obviously enjoying herself!","height":195});
															thumbnails[4330943] = clik.newPhoto({"id":4330943,"src":"LM6_1_thumb.jpg","galleries_id":209472,"server_id":15,"link":"photo_4330943.html","width":130,"caption":"Always a smile :)","height":100});
															thumbnails[4330946] = clik.newPhoto({"id":4330946,"src":"LM7_thumb.jpg","galleries_id":209472,"server_id":15,"link":"photo_4330946.html","width":130,"caption":"Is that an eye I see!! rare shot indeed!","height":87});
															thumbnails[4330948] = clik.newPhoto({"id":4330948,"src":"LM8_thumb.jpg","galleries_id":209472,"server_id":15,"link":"photo_4330948.html","width":130,"caption":"Lady sings the blues!","height":195});
															thumbnails[4330953] = clik.newPhoto({"id":4330953,"src":"LM92_thumb.jpg","galleries_id":209472,"server_id":15,"link":"photo_4330953.html","width":130,"caption":"","height":195});
															thumbnails[4554904] = clik.newPhoto({"id":4554904,"src":"A4_thumb.jpg","galleries_id":264166,"server_id":15,"link":"photo_4554904.html","width":130,"caption":"On parade","height":87});
															thumbnails[4554915] = clik.newPhoto({"id":4554915,"src":"A5_thumb.jpg","galleries_id":264166,"server_id":15,"link":"photo_4554915.html","width":130,"caption":"Little Bee-eaters","height":150});
															thumbnails[4554924] = clik.newPhoto({"id":4554924,"src":"A6_thumb.jpg","galleries_id":264166,"server_id":15,"link":"photo_4554924.html","width":130,"caption":"Best side!","height":87});
															thumbnails[4554988] = clik.newPhoto({"id":4554988,"src":"A7_thumb.jpg","galleries_id":264166,"server_id":15,"link":"photo_4554988.html","width":130,"caption":"John, Paul, George & Ringo","height":43});
															thumbnails[4555001] = clik.newPhoto({"id":4555001,"src":"A9_thumb.jpg","galleries_id":264166,"server_id":15,"link":"photo_4555001.html","width":130,"caption":"Buffalo Sunset","height":87});
															thumbnails[4556712] = clik.newPhoto({"id":4556712,"src":"2A_thumb.jpg","galleries_id":264166,"server_id":15,"link":"photo_4556712.html","width":130,"caption":"Kilimanjaro","height":87});
															thumbnails[4556723] = clik.newPhoto({"id":4556723,"src":"2C_thumb.jpg","galleries_id":264166,"server_id":15,"link":"photo_4556723.html","width":130,"caption":"Magnificent seven","height":50});
															thumbnails[4556729] = clik.newPhoto({"id":4556729,"src":"2D_thumb.jpg","galleries_id":264166,"server_id":15,"link":"photo_4556729.html","width":130,"caption":"Green winged Pytilia","height":87});
															thumbnails[4556732] = clik.newPhoto({"id":4556732,"src":"2E_thumb.jpg","galleries_id":264166,"server_id":15,"link":"photo_4556732.html","width":130,"caption":"Maasai","height":195});
															thumbnails[4556741] = clik.newPhoto({"id":4556741,"src":"2F_thumb.jpg","galleries_id":264166,"server_id":15,"link":"photo_4556741.html","width":130,"caption":"Long tailed Fiscal Shrike","height":87});
															thumbnails[4556797] = clik.newPhoto({"id":4556797,"src":"2H_thumb.jpg","galleries_id":264166,"server_id":15,"link":"photo_4556797.html","width":130,"caption":"Elephant Sunset","height":87});
															thumbnails[4557875] = clik.newPhoto({"id":4557875,"src":"3A_thumb.jpg","galleries_id":264166,"server_id":15,"link":"photo_4557875.html","width":130,"caption":"Close enough!","height":79});
															thumbnails[4557882] = clik.newPhoto({"id":4557882,"src":"3I_thumb.jpg","galleries_id":264166,"server_id":15,"link":"photo_4557882.html","width":130,"caption":"Young Zebra","height":87});
															thumbnails[4557890] = clik.newPhoto({"id":4557890,"src":"3E_1_thumb.jpg","galleries_id":264166,"server_id":15,"link":"photo_4557890.html","width":130,"caption":"Weaver","height":122});
															thumbnails[4557912] = clik.newPhoto({"id":4557912,"src":"3H_thumb.jpg","galleries_id":264166,"server_id":15,"link":"photo_4557912.html","width":130,"caption":"Glorious","height":87});
															thumbnails[4559726] = clik.newPhoto({"id":4559726,"src":"4B_thumb.jpg","galleries_id":264522,"server_id":15,"link":"photo_4559726.html","width":130,"caption":"Deja vu?","height":87});
															thumbnails[4559731] = clik.newPhoto({"id":4559731,"src":"4D_thumb.jpg","galleries_id":264522,"server_id":15,"link":"photo_4559731.html","width":130,"caption":"Zebra toned","height":79});
															thumbnails[4559736] = clik.newPhoto({"id":4559736,"src":"4G_1_thumb.jpg","galleries_id":264522,"server_id":15,"link":"photo_4559736.html","width":130,"caption":"Sundowner","height":55});
															thumbnails[4570269] = clik.newPhoto({"id":4570269,"src":"5B_thumb.jpg","galleries_id":264522,"server_id":15,"link":"photo_4570269.html","width":130,"caption":"Loved up!","height":87});
															thumbnails[4570288] = clik.newPhoto({"id":4570288,"src":"5E_1_thumb.jpg","galleries_id":264522,"server_id":15,"link":"photo_4570288.html","width":130,"caption":"Wildebeest","height":42});
															thumbnails[4570308] = clik.newPhoto({"id":4570308,"src":"5F_thumb.jpg","galleries_id":264522,"server_id":15,"link":"photo_4570308.html","width":130,"caption":"Snap without his Crackle & Pop","height":87});
															thumbnails[4570363] = clik.newPhoto({"id":4570363,"src":"5H_thumb.jpg","galleries_id":264522,"server_id":15,"link":"photo_4570363.html","width":130,"caption":"and they kept coming!","height":87});
															thumbnails[4570366] = clik.newPhoto({"id":4570366,"src":"5I_thumb.jpg","galleries_id":264522,"server_id":15,"link":"photo_4570366.html","width":130,"caption":"Fast cat!","height":87});
															thumbnails[4574319] = clik.newPhoto({"id":4574319,"src":"6B_thumb.jpg","galleries_id":264522,"server_id":15,"link":"photo_4574319.html","width":130,"caption":"Pied Kingfisher","height":133});
															thumbnails[4574329] = clik.newPhoto({"id":4574329,"src":"6D_thumb.jpg","galleries_id":264522,"server_id":15,"link":"photo_4574329.html","width":130,"caption":"Leap of faith","height":87});
															thumbnails[4574334] = clik.newPhoto({"id":4574334,"src":"6E_thumb.jpg","galleries_id":264522,"server_id":15,"link":"photo_4574334.html","width":130,"caption":"Flying Lion!!!","height":87});
															thumbnails[4574347] = clik.newPhoto({"id":4574347,"src":"6F_thumb.jpg","galleries_id":264522,"server_id":15,"link":"photo_4574347.html","width":130,"caption":"Crash!!","height":87});
															thumbnails[4574367] = clik.newPhoto({"id":4574367,"src":"6H_thumb.jpg","galleries_id":264522,"server_id":15,"link":"photo_4574367.html","width":130,"caption":"King of the Marsh","height":87});
															thumbnails[4574376] = clik.newPhoto({"id":4574376,"src":"6I_thumb.jpg","galleries_id":264522,"server_id":15,"link":"photo_4574376.html","width":130,"caption":"Rekero Crossing","height":87});
															thumbnails[4574400] = clik.newPhoto({"id":4574400,"src":"6J_thumb.jpg","galleries_id":264522,"server_id":15,"link":"photo_4574400.html","width":130,"caption":"Farewell to the Mara","height":87});
															thumbnails[4580095] = clik.newPhoto({"id":4580095,"src":"9A_1_thumb.jpg","galleries_id":265343,"server_id":15,"link":"photo_4580095.html","width":130,"caption":"Pearl spotted Owlet","height":143});
															thumbnails[4584544] = clik.newPhoto({"id":4584544,"src":"7A_thumb.jpg","galleries_id":265343,"server_id":15,"link":"photo_4584544.html","width":130,"caption":"Fireball Lily","height":87});
															thumbnails[4584552] = clik.newPhoto({"id":4584552,"src":"7B_thumb.jpg","galleries_id":265343,"server_id":15,"link":"photo_4584552.html","width":130,"caption":"White Rhino","height":87});
															thumbnails[4584563] = clik.newPhoto({"id":4584563,"src":"7D_1_thumb.jpg","galleries_id":265343,"server_id":15,"link":"photo_4584563.html","width":130,"caption":"Grey headed Kingfisher","height":124});
															thumbnails[4584596] = clik.newPhoto({"id":4584596,"src":"7E_thumb.jpg","galleries_id":265343,"server_id":15,"link":"photo_4584596.html","width":130,"caption":"Superb Starling","height":87});
															thumbnails[4584616] = clik.newPhoto({"id":4584616,"src":"7H_thumb.jpg","galleries_id":265343,"server_id":15,"link":"photo_4584616.html","width":130,"caption":"Ellies are coming","height":87});
															thumbnails[4584843] = clik.newPhoto({"id":4584843,"src":"9I_thumb.jpg","galleries_id":265343,"server_id":15,"link":"photo_4584843.html","width":130,"caption":"Cub","height":195});
															thumbnails[4584886] = clik.newPhoto({"id":4584886,"src":"9J_thumb.jpg","galleries_id":265343,"server_id":15,"link":"photo_4584886.html","width":130,"caption":"Black Rhino","height":87});
															thumbnails[4584908] = clik.newPhoto({"id":4584908,"src":"10B_1_thumb.jpg","galleries_id":265343,"server_id":15,"link":"photo_4584908.html","width":130,"caption":"Spot-flanked Barbet","height":144});
															thumbnails[4584926] = clik.newPhoto({"id":4584926,"src":"10E_thumb.jpg","galleries_id":265343,"server_id":15,"link":"photo_4584926.html","width":130,"caption":"Lazy day","height":87});
															thumbnails[4584929] = clik.newPhoto({"id":4584929,"src":"10F_thumb.jpg","galleries_id":265343,"server_id":15,"link":"photo_4584929.html","width":130,"caption":"Grevy's Zebra","height":87});
															thumbnails[4584931] = clik.newPhoto({"id":4584931,"src":"10G_thumb.jpg","galleries_id":265343,"server_id":15,"link":"photo_4584931.html","width":130,"caption":"Three Amigo's","height":87});
															thumbnails[4677867] = clik.newPhoto({"id":4677867,"src":"SSS1_thumb.jpg","galleries_id":269412,"server_id":15,"link":"photo_4677867.html","width":130,"caption":"Seasick Steve + crazy drummer","height":87});
															thumbnails[4677868] = clik.newPhoto({"id":4677868,"src":"SSS2_thumb.jpg","galleries_id":269412,"server_id":15,"link":"photo_4677868.html","width":130,"caption":"","height":87});
															thumbnails[4677938] = clik.newPhoto({"id":4677938,"src":"SSS3_thumb.jpg","galleries_id":269412,"server_id":15,"link":"photo_4677938.html","width":130,"caption":"Seasick with that amazing guitar","height":195});
															thumbnails[4677939] = clik.newPhoto({"id":4677939,"src":"LM1_11_thumb.jpg","galleries_id":209472,"server_id":15,"link":"photo_4677939.html","width":130,"caption":"Lisa Mills - with new hairstyle!!","height":87});
															thumbnails[4677942] = clik.newPhoto({"id":4677942,"src":"LM21_thumb.jpg","galleries_id":209472,"server_id":15,"link":"photo_4677942.html","width":130,"caption":"","height":195});
															thumbnails[4812049] = clik.newPhoto({"id":4812049,"src":"stip2_thumb.jpg","galleries_id":209468,"server_id":15,"link":"photo_4812049.html","width":130,"caption":"Stiperstones","height":87});
															thumbnails[5713923] = clik.newPhoto({"id":5713923,"src":"perigo_thumb.jpg","galleries_id":323691,"server_id":15,"link":"photo_5713923.html","width":130,"caption":"Perigo minas","height":195});
															thumbnails[5713925] = clik.newPhoto({"id":5713925,"src":"bridge_thumb.jpg","galleries_id":323691,"server_id":15,"link":"photo_5713925.html","width":130,"caption":"Bridge","height":195});
															thumbnails[5721665] = clik.newPhoto({"id":5721665,"src":"longwalk_thumb.jpg","galleries_id":323691,"server_id":15,"link":"photo_5721665.html","width":130,"caption":"Long walk","height":146});
															thumbnails[5721673] = clik.newPhoto({"id":5721673,"src":"tables_thumb.jpg","galleries_id":323691,"server_id":15,"link":"photo_5721673.html","width":130,"caption":"Tables","height":195});
															thumbnails[5721678] = clik.newPhoto({"id":5721678,"src":"star_thumb.jpg","galleries_id":323691,"server_id":15,"link":"photo_5721678.html","width":130,"caption":"Star","height":195});
															thumbnails[5726969] = clik.newPhoto({"id":5726969,"src":"war_thumb.jpg","galleries_id":323691,"server_id":15,"link":"photo_5726969.html","width":130,"caption":"Imperial War Museum","height":195});
															thumbnails[5782971] = clik.newPhoto({"id":5782971,"src":"crop2_thumb.jpg","galleries_id":209472,"server_id":15,"link":"photo_5782971.html","width":130,"caption":"","height":195});
															thumbnails[5938941] = clik.newPhoto({"id":5938941,"src":"d1_thumb.jpg","galleries_id":209469,"server_id":15,"link":"photo_5938941.html","width":130,"caption":"Dotterel (male)","height":87});
															thumbnails[5938945] = clik.newPhoto({"id":5938945,"src":"d3_thumb.jpg","galleries_id":209469,"server_id":15,"link":"photo_5938945.html","width":130,"caption":"Dotterel (female)","height":87});
															thumbnails[5938952] = clik.newPhoto({"id":5938952,"src":"LAMENTA1_thumb.jpg","galleries_id":335104,"server_id":15,"link":"photo_5938952.html","width":130,"caption":"Toned","height":87});
															thumbnails[6438766] = clik.newPhoto({"id":6438766,"src":"datb3_thumb.jpg","galleries_id":209511,"server_id":15,"link":"photo_6438766.html","width":130,"caption":"British Summertime","height":87});
															thumbnails[6438767] = clik.newPhoto({"id":6438767,"src":"datb4_thumb.jpg","galleries_id":209511,"server_id":15,"link":"photo_6438767.html","width":130,"caption":"Dutch Courage","height":87});
															thumbnails[6438768] = clik.newPhoto({"id":6438768,"src":"datb5_thumb.jpg","galleries_id":209511,"server_id":15,"link":"photo_6438768.html","width":130,"caption":"Umbrella","height":87});
															thumbnails[6438790] = clik.newPhoto({"id":6438790,"src":"datbi_thumb.jpg","galleries_id":209511,"server_id":15,"link":"photo_6438790.html","width":130,"caption":"Singer - Scirocco","height":87});
															thumbnails[6733495] = clik.newPhoto({"id":6733495,"src":"ffa_thumb.jpg","galleries_id":327467,"server_id":15,"link":"photo_6733495.html","width":130,"caption":"Flower Man","height":195});
															thumbnails[6733556] = clik.newPhoto({"id":6733556,"src":"lamb_thumb.jpg","galleries_id":335104,"server_id":15,"link":"photo_6733556.html","width":130,"caption":"","height":87});
															thumbnails[6733558] = clik.newPhoto({"id":6733558,"src":"lamc_thumb.jpg","galleries_id":335104,"server_id":15,"link":"photo_6733558.html","width":130,"caption":"","height":87});
															thumbnails[6733563] = clik.newPhoto({"id":6733563,"src":"lamf_thumb.jpg","galleries_id":335104,"server_id":15,"link":"photo_6733563.html","width":130,"caption":"","height":87});
															thumbnails[6733580] = clik.newPhoto({"id":6733580,"src":"lamk_thumb.jpg","galleries_id":335104,"server_id":15,"link":"photo_6733580.html","width":130,"caption":"","height":87});
															thumbnails[8211892] = clik.newPhoto({"id":8211892,"src":"lm_thumb.jpg","galleries_id":209472,"server_id":15,"link":"photo_8211892.html","width":130,"caption":"Wistanstow Village Hall","height":87});
															thumbnails[8211895] = clik.newPhoto({"id":8211895,"src":"lmb_thumb.jpg","galleries_id":209472,"server_id":15,"link":"photo_8211895.html","width":130,"caption":"","height":195});
															thumbnails[8211896] = clik.newPhoto({"id":8211896,"src":"lmh_thumb.jpg","galleries_id":209472,"server_id":15,"link":"photo_8211896.html","width":130,"caption":"","height":87});
															thumbnails[8211898] = clik.newPhoto({"id":8211898,"src":"cc_thumb.jpg","galleries_id":209468,"server_id":15,"link":"photo_8211898.html","width":130,"caption":"Caer Caradoc","height":87});
															thumbnails[8211908] = clik.newPhoto({"id":8211908,"src":"carf_thumb.jpg","galleries_id":209468,"server_id":15,"link":"photo_8211908.html","width":130,"caption":"","height":195});
															thumbnails[8211909] = clik.newPhoto({"id":8211909,"src":"R5_thumb.jpg","galleries_id":209468,"server_id":15,"link":"photo_8211909.html","width":130,"caption":"Little Dragon","height":87});
															thumbnails[8211910] = clik.newPhoto({"id":8211910,"src":"R2_thumb.jpg","galleries_id":209468,"server_id":15,"link":"photo_8211910.html","width":130,"caption":"","height":159});
															thumbnails[8211911] = clik.newPhoto({"id":8211911,"src":"R3_thumb.jpg","galleries_id":209468,"server_id":15,"link":"photo_8211911.html","width":130,"caption":"","height":184});
															thumbnails[8211916] = clik.newPhoto({"id":8211916,"src":"epr1_thumb.jpg","galleries_id":269412,"server_id":15,"link":"photo_8211916.html","width":130,"caption":"Eli Paperboy Reed","height":87});
															thumbnails[8211918] = clik.newPhoto({"id":8211918,"src":"epr2_thumb.jpg","galleries_id":269412,"server_id":15,"link":"photo_8211918.html","width":130,"caption":"","height":195});
															thumbnails[8211919] = clik.newPhoto({"id":8211919,"src":"epr3_thumb.jpg","galleries_id":269412,"server_id":15,"link":"photo_8211919.html","width":130,"caption":"","height":87});
															thumbnails[8211920] = clik.newPhoto({"id":8211920,"src":"epr4_thumb.jpg","galleries_id":269412,"server_id":15,"link":"photo_8211920.html","width":130,"caption":"","height":87});
															thumbnails[8211922] = clik.newPhoto({"id":8211922,"src":"epr5_thumb.jpg","galleries_id":269412,"server_id":15,"link":"photo_8211922.html","width":130,"caption":"","height":112});
															thumbnails[8211989] = clik.newPhoto({"id":8211989,"src":"ab_thumb.jpg","galleries_id":438031,"server_id":15,"link":"photo_8211989.html","width":130,"caption":"","height":87});
															thumbnails[8212029] = clik.newPhoto({"id":8212029,"src":"ae_thumb.jpg","galleries_id":438031,"server_id":15,"link":"photo_8212029.html","width":130,"caption":"Modest","height":195});
															thumbnails[8242246] = clik.newPhoto({"id":8242246,"src":"gba_thumb.jpg","galleries_id":438762,"server_id":15,"link":"photo_8242246.html","width":130,"caption":"It's Black It's White","height":200});
															thumbnails[8242255] = clik.newPhoto({"id":8242255,"src":"gbb_thumb.jpg","galleries_id":438762,"server_id":15,"link":"photo_8242255.html","width":130,"caption":"","height":195});
															thumbnails[8242265] = clik.newPhoto({"id":8242265,"src":"gbc_thumb.jpg","galleries_id":438762,"server_id":15,"link":"photo_8242265.html","width":130,"caption":"Rickenbacker","height":87});
															thumbnails[8242357] = clik.newPhoto({"id":8242357,"src":"lmb_8C2E3DB8-1EC9-D45B-1C9102D22A4714A7_thumb.jpg","galleries_id":438762,"server_id":15,"link":"photo_8242357.html","width":130,"caption":"C'mon Everybody","height":195});
															thumbnails[8242359] = clik.newPhoto({"id":8242359,"src":"lmc_thumb.jpg","galleries_id":438762,"server_id":15,"link":"photo_8242359.html","width":130,"caption":"Lisa Mills","height":195});
															thumbnails[8242364] = clik.newPhoto({"id":8242364,"src":"lme_thumb.jpg","galleries_id":438762,"server_id":15,"link":"photo_8242364.html","width":130,"caption":"","height":195});
															thumbnails[8242368] = clik.newPhoto({"id":8242368,"src":"lmf_thumb.jpg","galleries_id":438762,"server_id":15,"link":"photo_8242368.html","width":130,"caption":"","height":87});
															thumbnails[8242370] = clik.newPhoto({"id":8242370,"src":"lmg_thumb.jpg","galleries_id":438762,"server_id":15,"link":"photo_8242370.html","width":130,"caption":"","height":87});
															thumbnails[8242374] = clik.newPhoto({"id":8242374,"src":"lmh_8C337DC2-1EC9-D45B-1C3006B6E5363803_thumb.jpg","galleries_id":438762,"server_id":15,"link":"photo_8242374.html","width":130,"caption":"","height":195});
															thumbnails[8242377] = clik.newPhoto({"id":8242377,"src":"lmi_thumb.jpg","galleries_id":438762,"server_id":15,"link":"photo_8242377.html","width":130,"caption":"","height":195});
															thumbnails[8242378] = clik.newPhoto({"id":8242378,"src":"lmj_thumb.jpg","galleries_id":438762,"server_id":15,"link":"photo_8242378.html","width":130,"caption":"","height":195});
															thumbnails[8242380] = clik.newPhoto({"id":8242380,"src":"lmk_thumb.jpg","galleries_id":438762,"server_id":15,"link":"photo_8242380.html","width":130,"caption":"","height":87});
															thumbnails[8242382] = clik.newPhoto({"id":8242382,"src":"lml_thumb.jpg","galleries_id":438762,"server_id":15,"link":"photo_8242382.html","width":130,"caption":"","height":87});
															thumbnails[8242392] = clik.newPhoto({"id":8242392,"src":"lmp_thumb.jpg","galleries_id":438762,"server_id":15,"link":"photo_8242392.html","width":130,"caption":"","height":87});
															thumbnails[8286002] = clik.newPhoto({"id":8286002,"src":"mbwa_thumb.jpg","galleries_id":440977,"server_id":15,"link":"photo_8286002.html","width":130,"caption":"","height":87});
															thumbnails[8286003] = clik.newPhoto({"id":8286003,"src":"mbwb_thumb.jpg","galleries_id":440977,"server_id":15,"link":"photo_8286003.html","width":130,"caption":"","height":96});
															thumbnails[8286004] = clik.newPhoto({"id":8286004,"src":"mbwc_thumb.jpg","galleries_id":440977,"server_id":15,"link":"photo_8286004.html","width":130,"caption":"","height":87});
															thumbnails[8286005] = clik.newPhoto({"id":8286005,"src":"mbwd_thumb.jpg","galleries_id":440977,"server_id":15,"link":"photo_8286005.html","width":130,"caption":"","height":102});
															thumbnails[8286006] = clik.newPhoto({"id":8286006,"src":"mbwe_thumb.jpg","galleries_id":440977,"server_id":15,"link":"photo_8286006.html","width":130,"caption":"","height":195});
															thumbnails[8286008] = clik.newPhoto({"id":8286008,"src":"mbwg_thumb.jpg","galleries_id":440977,"server_id":15,"link":"photo_8286008.html","width":130,"caption":"","height":87});
															thumbnails[8286009] = clik.newPhoto({"id":8286009,"src":"mbwh_thumb.jpg","galleries_id":440977,"server_id":15,"link":"photo_8286009.html","width":130,"caption":"","height":87});
															thumbnails[8286010] = clik.newPhoto({"id":8286010,"src":"mbwi_thumb.jpg","galleries_id":440977,"server_id":15,"link":"photo_8286010.html","width":130,"caption":"","height":87});
															thumbnails[8291360] = clik.newPhoto({"id":8291360,"src":"cr1_thumb.jpg","galleries_id":327467,"server_id":15,"link":"photo_8291360.html","width":130,"caption":"","height":195});
															thumbnails[8291362] = clik.newPhoto({"id":8291362,"src":"cr3_thumb.jpg","galleries_id":327467,"server_id":15,"link":"photo_8291362.html","width":130,"caption":"","height":195});
															thumbnails[8291367] = clik.newPhoto({"id":8291367,"src":"cr8_thumb.jpg","galleries_id":327467,"server_id":15,"link":"photo_8291367.html","width":130,"caption":"","height":87});
															thumbnails[8291369] = clik.newPhoto({"id":8291369,"src":"cr9a_thumb.jpg","galleries_id":327467,"server_id":15,"link":"photo_8291369.html","width":130,"caption":"","height":87});
															thumbnails[8291374] = clik.newPhoto({"id":8291374,"src":"m70c2_thumb.jpg","galleries_id":327467,"server_id":15,"link":"photo_8291374.html","width":130,"caption":"","height":87});
															thumbnails[8291385] = clik.newPhoto({"id":8291385,"src":"m70f4_thumb.jpg","galleries_id":327467,"server_id":15,"link":"photo_8291385.html","width":130,"caption":"","height":87});
															thumbnails[8291390] = clik.newPhoto({"id":8291390,"src":"sc_thumb.jpg","galleries_id":327467,"server_id":15,"link":"photo_8291390.html","width":130,"caption":"","height":87});
															thumbnails[8291391] = clik.newPhoto({"id":8291391,"src":"f1_thumb.jpg","galleries_id":327467,"server_id":15,"link":"photo_8291391.html","width":130,"caption":"Chasing fairies","height":87});
															thumbnails[8291393] = clik.newPhoto({"id":8291393,"src":"f2_thumb.jpg","galleries_id":327467,"server_id":15,"link":"photo_8291393.html","width":130,"caption":"Looking for fairies","height":195});
															thumbnails[8291394] = clik.newPhoto({"id":8291394,"src":"f3_thumb.jpg","galleries_id":327467,"server_id":15,"link":"photo_8291394.html","width":130,"caption":"","height":87});
															thumbnails[8291395] = clik.newPhoto({"id":8291395,"src":"f4_thumb.jpg","galleries_id":327467,"server_id":15,"link":"photo_8291395.html","width":130,"caption":"","height":87});
															thumbnails[8291396] = clik.newPhoto({"id":8291396,"src":"f5_thumb.jpg","galleries_id":327467,"server_id":15,"link":"photo_8291396.html","width":130,"caption":"","height":103});
															thumbnails[8291397] = clik.newPhoto({"id":8291397,"src":"f6_thumb.jpg","galleries_id":327467,"server_id":15,"link":"photo_8291397.html","width":130,"caption":"","height":195});
															thumbnails[8291398] = clik.newPhoto({"id":8291398,"src":"f7_thumb.jpg","galleries_id":327467,"server_id":15,"link":"photo_8291398.html","width":130,"caption":"","height":195});
															thumbnails[8481209] = clik.newPhoto({"id":8481209,"src":"R1_thumb.jpg","galleries_id":438031,"server_id":15,"link":"photo_8481209.html","width":130,"caption":"","height":195});
															thumbnails[8481212] = clik.newPhoto({"id":8481212,"src":"R3_788AD046-1EC9-D45B-1CB29D00B150C1E8_thumb.jpg","galleries_id":438031,"server_id":15,"link":"photo_8481212.html","width":130,"caption":"","height":87});
															thumbnails[8481218] = clik.newPhoto({"id":8481218,"src":"R9A_thumb.jpg","galleries_id":438031,"server_id":15,"link":"photo_8481218.html","width":130,"caption":"","height":87});
															thumbnails[8481221] = clik.newPhoto({"id":8481221,"src":"HO8_thumb.jpg","galleries_id":438031,"server_id":15,"link":"photo_8481221.html","width":130,"caption":"","height":87});
															thumbnails[8481225] = clik.newPhoto({"id":8481225,"src":"S4_thumb.jpg","galleries_id":438031,"server_id":15,"link":"photo_8481225.html","width":130,"caption":"","height":87});
															thumbnails[8481227] = clik.newPhoto({"id":8481227,"src":"athf_thumb.jpg","galleries_id":438031,"server_id":15,"link":"photo_8481227.html","width":130,"caption":"","height":87});
															thumbnails[8481233] = clik.newPhoto({"id":8481233,"src":"athh_thumb.jpg","galleries_id":438031,"server_id":15,"link":"photo_8481233.html","width":130,"caption":"","height":87});
															thumbnails[8481240] = clik.newPhoto({"id":8481240,"src":"sytb_thumb.jpg","galleries_id":438031,"server_id":15,"link":"photo_8481240.html","width":130,"caption":"","height":195});
															thumbnails[8481254] = clik.newPhoto({"id":8481254,"src":"sytm_thumb.jpg","galleries_id":438031,"server_id":15,"link":"photo_8481254.html","width":130,"caption":"","height":195});
															thumbnails[8640244] = clik.newPhoto({"id":8640244,"src":"2012_A3_Rev_Web_thumb.jpg","galleries_id":438031,"server_id":15,"link":"photo_8640244.html","width":130,"caption":"","height":183});
															thumbnails[8640247] = clik.newPhoto({"id":8640247,"src":"Cover_Web_2012_thumb.jpg","galleries_id":438031,"server_id":15,"link":"photo_8640247.html","width":130,"caption":"","height":195});
															thumbnails[6618725] = clik.newPhoto({"id":6618725,"src":"lm4_B52E8094-1EC9-D45B-1C8E9B8D64C7BCB3_thumb.jpg","galleries_id":209472,"server_id":15,"link":"photo_6618725.html","width":130,"caption":"Lisa Mills","height":195});
															thumbnails[6733547] = clik.newPhoto({"id":6733547,"src":"lam1_thumb.jpg","galleries_id":335104,"server_id":15,"link":"photo_6733547.html","width":130,"caption":"","height":87});
															thumbnails[6733490] = clik.newPhoto({"id":6733490,"src":"ff1_1_thumb.jpg","galleries_id":209536,"server_id":15,"link":"photo_6733490.html","width":130,"caption":"","height":58});
															thumbnails[3644632] = clik.newPhoto({"id":3644632,"src":"T6_thumb.jpg","galleries_id":209536,"server_id":15,"link":"photo_3644632.html","width":130,"caption":"","height":195});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[438031] = clik.newGallery({"parentGallery":366947,"usePopups":false,"title":2012.0,"link":"gallery_438031.html","maxRecords":0.0,"photoIDs":[8211989.0,8212029.0,8481209.0,8481212.0,8481218.0,8481221.0,8481225.0,8481227.0,8481233.0,8481240.0,8481254.0,8640244.0,8640247.0],"skipIndex":0,"section_code":"gallery","featured_images":"8640247,8640244,8481254,8481240,8481233,8481227,8481225,8481221,8481218,8481212","id":438031,"singleSection":false});				  						galleries[209511] = clik.newGallery({"parentGallery":209471,"usePopups":false,"title":"A Day @ The Bridges","link":"gallery_209511.html","maxRecords":0.0,"photoIDs":[6438766.0,6438767.0,6438768.0,6438790.0],"skipIndex":0,"section_code":"gallery","featured_images":"6438790,6438766","id":209511,"singleSection":false});				  						galleries[209469] = clik.newGallery({"parentGallery":209455,"usePopups":false,"title":"Birds","link":"gallery_209469.html","maxRecords":0.0,"photoIDs":[3426957.0,3427331.0,3427337.0,3431287.0,3431290.0,5938941.0,5938945.0],"skipIndex":0,"section_code":"gallery","featured_images":"5938941,3431290,3426957","id":209469,"singleSection":false});				  						galleries[209467] = clik.newGallery({"parentGallery":209454,"usePopups":false,"title":"Coast","link":"gallery_209467.html","maxRecords":0.0,"photoIDs":[3426884.0,3431252.0,3431256.0],"skipIndex":0,"section_code":"gallery","featured_images":"3431256,3431252,3426884","id":209467,"singleSection":false});				  						galleries[269412] = clik.newGallery({"parentGallery":209471,"usePopups":false,"title":"Concerts","link":"gallery_269412.html","maxRecords":0.0,"photoIDs":[4677867.0,4677868.0,4677938.0,8211916.0,8211918.0,8211919.0,8211920.0,8211922.0],"skipIndex":0,"section_code":"gallery","featured_images":"8211922,8211920,8211919,8211918,8211916,4677938,4677868,4677867","id":269412,"singleSection":false});				  						galleries[366947] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Events","link":"gallery_366947.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"8640247,8640244,8481254,8481240,8481233,8481227,8481225,8481221,8481218,8481212","id":366947,"singleSection":false});				  						galleries[327467] = clik.newGallery({"parentGallery":209471,"usePopups":false,"title":"Informal portraits","link":"gallery_327467.html","maxRecords":0.0,"photoIDs":[6733495.0,8291360.0,8291362.0,8291367.0,8291369.0,8291374.0,8291385.0,8291390.0,8291391.0,8291393.0,8291394.0,8291395.0,8291396.0,8291397.0,8291398.0],"skipIndex":0,"section_code":"gallery","featured_images":"8291398,8291397,8291396,8291395,8291394,8291393,8291391,8291390,8291385,8291374","id":327467,"singleSection":false});				  						galleries[209470] = clik.newGallery({"parentGallery":209455,"usePopups":false,"title":"Kenya 2006","link":"gallery_209470.html","maxRecords":0.0,"photoIDs":[3426927.0,3426961.0,3426968.0,3432803.0,3432827.0,3432836.0,3436075.0],"skipIndex":0,"section_code":"gallery","featured_images":"3432836,3426968,3426961,3426927","id":209470,"singleSection":false});				  						galleries[264165] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Kenya 2009","link":"gallery_264165.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"4584931,4584929,4584926,4584908,4584886,4584843,4584616,4584596,4584563,4584552","id":264165,"singleSection":false});				  						galleries[335104] = clik.newGallery({"parentGallery":209471,"usePopups":false,"title":"Lament","link":"gallery_335104.html","maxRecords":0.0,"photoIDs":[5938952.0,6733556.0,6733558.0,6733563.0,6733580.0,6733547.0],"skipIndex":0,"section_code":"gallery","featured_images":6733547.0,"id":335104,"singleSection":false});				  						galleries[438762] = clik.newGallery({"parentGallery":209471,"usePopups":false,"title":"Langley Village Hall","link":"gallery_438762.html","maxRecords":0.0,"photoIDs":[8242246.0,8242255.0,8242265.0,8242357.0,8242359.0,8242364.0,8242368.0,8242370.0,8242374.0,8242377.0,8242378.0,8242380.0,8242382.0,8242392.0],"skipIndex":0,"section_code":"gallery","featured_images":"8242392,8242382,8242380,8242378,8242377,8242374,8242370,8242368,8242364,8242359","id":438762,"singleSection":false});				  						galleries[265343] = clik.newGallery({"parentGallery":264165,"usePopups":false,"title":"Lewa","link":"gallery_265343.html","maxRecords":0.0,"photoIDs":[4580095.0,4584544.0,4584552.0,4584563.0,4584596.0,4584616.0,4584843.0,4584886.0,4584908.0,4584926.0,4584929.0,4584931.0],"skipIndex":0,"section_code":"gallery","featured_images":"4584931,4584929,4584926,4584908,4584886,4584843,4584616,4584596,4584563,4584552","id":265343,"singleSection":false});				  						galleries[209472] = clik.newGallery({"parentGallery":209471,"usePopups":false,"title":"Lisa Mills","link":"gallery_209472.html","maxRecords":0.0,"photoIDs":[3427005.0,3432016.0,3432018.0,4330936.0,4330943.0,4330946.0,4330948.0,4330953.0,4677939.0,4677942.0,5782971.0,8211892.0,8211895.0,8211896.0,6618725.0],"skipIndex":0,"section_code":"gallery","featured_images":"6618725,4330943,4330936","id":209472,"singleSection":false});				  						galleries[209536] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Miscellaneous","link":"gallery_209536.html","maxRecords":0.0,"photoIDs":[3431266.0,3431284.0,3644628.0,6733490.0,3644632.0],"skipIndex":0,"section_code":"gallery","featured_images":"6733490,3644632,3644628,3431284,3431266","id":209536,"singleSection":false});				  						galleries[209471] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"People","link":"gallery_209471.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"6733547,6618725,6438790,6438766,4330943,4330936","id":209471,"singleSection":false});				  						galleries[264522] = clik.newGallery({"parentGallery":264165,"usePopups":false,"title":"Rekero, Maasai Mara ","link":"gallery_264522.html","maxRecords":0.0,"photoIDs":[4559726.0,4559731.0,4559736.0,4570269.0,4570288.0,4570308.0,4570363.0,4570366.0,4574319.0,4574329.0,4574334.0,4574347.0,4574367.0,4574376.0,4574400.0],"skipIndex":0,"section_code":"gallery","featured_images":"4574400,4574376,4574367,4574347,4574334,4574329,4574319,4570366,4570363,4570308","id":264522,"singleSection":false});				  						galleries[323691] = clik.newGallery({"parentGallery":318747,"usePopups":false,"title":"Salford","link":"gallery_323691.html","maxRecords":0.0,"photoIDs":[5713923.0,5713925.0,5721665.0,5721673.0,5721678.0,5726969.0],"skipIndex":0,"section_code":"gallery","featured_images":"5721678,5713923","id":323691,"singleSection":false});				  						galleries[209468] = clik.newGallery({"parentGallery":209454,"usePopups":false,"title":"Shropshire","link":"gallery_209468.html","maxRecords":0.0,"photoIDs":[3427350.0,4812049.0,8211898.0,8211908.0,8211909.0,8211910.0,8211911.0],"skipIndex":0,"section_code":"gallery","featured_images":3427350.0,"id":209468,"singleSection":false});				  						galleries[318747] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Street","link":"gallery_318747.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"5721678,5713923","id":318747,"singleSection":false});				  						galleries[440977] = clik.newGallery({"parentGallery":366947,"usePopups":false,"title":"The Wedding","link":"gallery_440977.html","maxRecords":0.0,"photoIDs":[8286002.0,8286003.0,8286004.0,8286005.0,8286006.0,8286008.0,8286009.0,8286010.0],"skipIndex":0,"section_code":"gallery","featured_images":"8286010,8286009,8286008,8286006,8286005,8286004,8286003,8286002","id":440977,"singleSection":false});				  						galleries[264166] = clik.newGallery({"parentGallery":264165,"usePopups":false,"title":"Tortilis, Amboseli","link":"gallery_264166.html","maxRecords":0.0,"photoIDs":[4554904.0,4554915.0,4554924.0,4554988.0,4555001.0,4556712.0,4556723.0,4556729.0,4556732.0,4556741.0,4556797.0,4557875.0,4557882.0,4557890.0,4557912.0],"skipIndex":0,"section_code":"gallery","featured_images":"4557912,4557890,4557882,4557875,4556797,4556741,4556732,4556729,4556723,4556712","id":264166,"singleSection":false});				  						galleries[209454] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Landscape","link":"gallery_209454.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"3431256,3431252,3427350,3426884","id":209454,"singleSection":false});				  						galleries[209455] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wildlife","link":"gallery_209455.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"5938941,3432836,3431290,3426968,3426961,3426957,3426927","id":209455,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '6618725,6733547,6733490,3644632';
imageSets[2] = '6438790,6438766,5938941,5721678,5713923,4330943,4330936,3644628,3432836,3431290,3431284,3431266,3431256,3431252,3427350,3426968,3426961,3426957,3426927,3426884,6618725,6733547,6733490,3644632';
imageSets[3] = '8640247,8640244,8481254,8481240,8481233,8481227,8481225,8481221,8481218,8481212,8481209,8291398,8291397,8291396,8291395,8291394,8291393,8291391,8291390,8291385,8291374,8291369,8291367,8291362,8291360,8286010,8286009,8286008,8286006,8286005,8286004,8286003,8286002,8242392,8242382,8242380,8242378,8242377,8242374,8242370,8242368,8242364,8242359,8242357,8242265,8242255,8242246,8212029,8211989,8211922';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/freybird/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/freybird/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/freybird/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/freybird/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/freybird/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/freybird/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/freybird/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/freybird/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/freybird/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/freybird/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/freybird/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/freybird/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/freybird/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/freybird/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/freybird/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/freybird/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/freybird/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/freybird/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/freybird/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/freybird/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/freybird/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/freybird/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/freybird/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/freybird/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/freybird/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/freybird/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/freybird/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 = 'Freybird 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>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else {
		
	}
	if (this.item_price !== '') {
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

