window.thumbnails = {};
															thumbnails[2402930] = clik.newPhoto({"id":2402930,"src":"arwen9974_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":93});
															thumbnails[1289542] = clik.newPhoto({"id":1289542,"src":"VP9V1415-01_thumb.jpg","galleries_id":74741,"server_id":1,"link":"photo_1289542.html","width":86,"caption":"Goshawk","height":130});
															thumbnails[1289544] = clik.newPhoto({"id":1289544,"src":"VP9V1428-01_thumb.jpg","galleries_id":74741,"server_id":1,"link":"photo_1289544.html","width":130,"caption":"Goshawk2","height":84});
															thumbnails[1289536] = clik.newPhoto({"id":1289536,"src":"VP9V1086_thumb.jpg","galleries_id":74741,"server_id":1,"link":"photo_1289536.html","width":130,"caption":"Golden Eagle","height":87});
															thumbnails[1289469] = clik.newPhoto({"id":1289469,"src":"VP9V0755_thumb.gif","galleries_id":74741,"server_id":1,"link":"photo_1289469.html","width":87,"caption":"Martial Eagle","height":130});
															thumbnails[1289517] = clik.newPhoto({"id":1289517,"src":"VP9V0871_thumb.jpg","galleries_id":74741,"server_id":1,"link":"photo_1289517.html","width":130,"caption":"Peregrine in flight","height":84});
															thumbnails[1289524] = clik.newPhoto({"id":1289524,"src":"VP9V0879_thumb.jpg","galleries_id":74741,"server_id":1,"link":"photo_1289524.html","width":130,"caption":"Peregrine in flight 2","height":87});
															thumbnails[1289532] = clik.newPhoto({"id":1289532,"src":"VP9V1029_thumb.jpg","galleries_id":74741,"server_id":1,"link":"photo_1289532.html","width":87,"caption":"Red Tailed Hawk","height":130});
															thumbnails[1289830] = clik.newPhoto({"id":1289830,"src":"hare2881_thumb.jpg","galleries_id":91520,"server_id":1,"link":"photo_1289830.html","width":130,"caption":"Brown Hare","height":82});
															thumbnails[1289893] = clik.newPhoto({"id":1289893,"src":"Rhinos1552-01_thumb.jpg","galleries_id":91520,"server_id":1,"link":"photo_1289893.html","width":130,"caption":"Rhinos","height":86});
															thumbnails[1289641] = clik.newPhoto({"id":1289641,"src":"white-tailed-sea-eagle4800_thumb.jpg","galleries_id":74741,"server_id":1,"link":"photo_1289641.html","width":130,"caption":"Sea Eagle","height":87});
															thumbnails[1289574] = clik.newPhoto({"id":1289574,"src":"D1EV1823sharpened_thumb.jpg","galleries_id":73632,"server_id":1,"link":"photo_1289574.html","width":130,"caption":"Harris hawk","height":86});
															thumbnails[1289640] = clik.newPhoto({"id":1289640,"src":"buzzard_9341_thumb.jpg","galleries_id":74741,"server_id":1,"link":"photo_1289640.html","width":130,"caption":"Wild Buzzard","height":87});
															thumbnails[1289890] = clik.newPhoto({"id":1289890,"src":"puffin_9202_thumb.jpg","galleries_id":91520,"server_id":1,"link":"photo_1289890.html","width":130,"caption":"Puffin","height":86});
															thumbnails[1289887] = clik.newPhoto({"id":1289887,"src":"puffin_9175_thumb.jpg","galleries_id":91520,"server_id":1,"link":"photo_1289887.html","width":130,"caption":"Puffin","height":89});
															thumbnails[1289821] = clik.newPhoto({"id":1289821,"src":"D1EV1856_thumb.jpg","galleries_id":91520,"server_id":1,"link":"photo_1289821.html","width":130,"caption":"Red Squirrel","height":86});
															thumbnails[1289824] = clik.newPhoto({"id":1289824,"src":"D1EV1875a_thumb.jpg","galleries_id":91520,"server_id":1,"link":"photo_1289824.html","width":87,"caption":"Red Squirrel 2","height":130});
															thumbnails[1289809] = clik.newPhoto({"id":1289809,"src":"CRW_8164_thumb.jpg","galleries_id":91520,"server_id":1,"link":"photo_1289809.html","width":130,"caption":"Grey Seal pup","height":87});
															thumbnails[1289818] = clik.newPhoto({"id":1289818,"src":"CRW_8323_thumb.jpg","galleries_id":91520,"server_id":1,"link":"photo_1289818.html","width":130,"caption":"Grey Seal Colony","height":86});
															thumbnails[1289894] = clik.newPhoto({"id":1289894,"src":"seal8340_thumb.jpg","galleries_id":91520,"server_id":1,"link":"photo_1289894.html","width":130,"caption":"Grey seal female","height":87});
															thumbnails[1289896] = clik.newPhoto({"id":1289896,"src":"sealpup8443sunset_thumb.jpg","galleries_id":91520,"server_id":1,"link":"photo_1289896.html","width":130,"caption":"Seal pup","height":87});
															thumbnails[1289800] = clik.newPhoto({"id":1289800,"src":"CRW_7520_thumb.jpg","galleries_id":91520,"server_id":1,"link":"photo_1289800.html","width":130,"caption":"Swans","height":87});
															thumbnails[1289855] = clik.newPhoto({"id":1289855,"src":"leopard_5825_thumb.jpg","galleries_id":91520,"server_id":1,"link":"photo_1289855.html","width":130,"caption":"whats up there?","height":87});
															thumbnails[995310] = clik.newPhoto({"id":995310,"src":"VP9V5606-012.jpg","galleries_id":73632,"server_id":1,"link":"photo_995310.html","width":130,"caption":"Arwen the Harris Hawk","height":87});
															thumbnails[995311] = clik.newPhoto({"id":995311,"src":"VP9V52832.jpg","galleries_id":73632,"server_id":1,"link":"photo_995311.html","width":130,"caption":"red tailed hawk 2","height":87});
															thumbnails[995320] = clik.newPhoto({"id":995320,"src":"VP9V5588-011.jpg","galleries_id":73632,"server_id":1,"link":"photo_995320.html","width":130,"caption":"harris hawk on hedge","height":87});
															thumbnails[995333] = clik.newPhoto({"id":995333,"src":"VP9V5595-012.jpg","galleries_id":73632,"server_id":1,"link":"photo_995333.html","width":130,"caption":"harris hawk on hedge 2","height":84});
															thumbnails[995342] = clik.newPhoto({"id":995342,"src":"VP9V5606-014.jpg","galleries_id":73632,"server_id":1,"link":"photo_995342.html","width":130,"caption":"over the hedge","height":87});
															thumbnails[995347] = clik.newPhoto({"id":995347,"src":"VP9V5610-012.jpg","galleries_id":73632,"server_id":1,"link":"photo_995347.html","width":130,"caption":"flying low","height":84});
															thumbnails[995361] = clik.newPhoto({"id":995361,"src":"VP9V58351.jpg","galleries_id":73632,"server_id":1,"link":"photo_995361.html","width":87,"caption":"on the lookout","height":130});
															thumbnails[995380] = clik.newPhoto({"id":995380,"src":"VP9V6588-011.jpg","galleries_id":73632,"server_id":1,"link":"photo_995380.html","width":87,"caption":"red tailed hawk","height":130});
															thumbnails[995383] = clik.newPhoto({"id":995383,"src":"VP9V6678-011.jpg","galleries_id":73632,"server_id":1,"link":"photo_995383.html","width":130,"caption":"soaring over yorkshire","height":87});
															thumbnails[995384] = clik.newPhoto({"id":995384,"src":"VP9V6679-011.jpg","galleries_id":73632,"server_id":1,"link":"photo_995384.html","width":130,"caption":"soaring over yorkshire 2","height":87});
															thumbnails[995393] = clik.newPhoto({"id":995393,"src":"VP9V6700-011.jpg","galleries_id":73632,"server_id":1,"link":"photo_995393.html","width":130,"caption":"which way should i go","height":87});
															thumbnails[995424] = clik.newPhoto({"id":995424,"src":"VP9V7380-011.jpg","galleries_id":73632,"server_id":1,"link":"photo_995424.html","width":130,"caption":"vera the vulture","height":87});
															thumbnails[995429] = clik.newPhoto({"id":995429,"src":"VP9V7452-011.jpg","galleries_id":73632,"server_id":1,"link":"photo_995429.html","width":130,"caption":"soaring over the fields","height":87});
															thumbnails[995440] = clik.newPhoto({"id":995440,"src":"VP9V8307-011.jpg","galleries_id":73632,"server_id":1,"link":"photo_995440.html","width":130,"caption":"a black kite","height":87});
															thumbnails[995458] = clik.newPhoto({"id":995458,"src":"CRW_18521.jpg","galleries_id":73632,"server_id":1,"link":"photo_995458.html","width":87,"caption":"tasty","height":130});
															thumbnails[995492] = clik.newPhoto({"id":995492,"src":"CRW_19281.jpg","galleries_id":73632,"server_id":1,"link":"photo_995492.html","width":87,"caption":"oooooo my favorite","height":130});
															thumbnails[995558] = clik.newPhoto({"id":995558,"src":"D1EV00441.jpg","galleries_id":73632,"server_id":1,"link":"photo_995558.html","width":130,"caption":"its getting a bit dark","height":86});
															thumbnails[995562] = clik.newPhoto({"id":995562,"src":"D1EV00531.jpg","galleries_id":73632,"server_id":1,"link":"photo_995562.html","width":87,"caption":"a nice sunset","height":130});
															thumbnails[995589] = clik.newPhoto({"id":995589,"src":"D1EV01921.jpg","galleries_id":73632,"server_id":1,"link":"photo_995589.html","width":130,"caption":"windy","height":86});
															thumbnails[995597] = clik.newPhoto({"id":995597,"src":"D1EV96411.jpg","galleries_id":73632,"server_id":1,"link":"photo_995597.html","width":130,"caption":"I see you","height":86});
															thumbnails[995598] = clik.newPhoto({"id":995598,"src":"O1M55411.jpg","galleries_id":73632,"server_id":1,"link":"photo_995598.html","width":130,"caption":"have a nice flight","height":87});
															thumbnails[995603] = clik.newPhoto({"id":995603,"src":"O1M55691.jpg","galleries_id":73632,"server_id":1,"link":"photo_995603.html","width":100,"caption":"harris hawk flying2","height":130});
															thumbnails[995605] = clik.newPhoto({"id":995605,"src":"O1M56291.jpg","galleries_id":73632,"server_id":1,"link":"photo_995605.html","width":130,"caption":"me and my harris hawk","height":87});
															thumbnails[995609] = clik.newPhoto({"id":995609,"src":"O1M57611.jpg","galleries_id":73632,"server_id":1,"link":"photo_995609.html","width":130,"caption":"off you go","height":87});
															thumbnails[1013539] = clik.newPhoto({"id":1013539,"src":"lanner50431.jpg","galleries_id":74741,"server_id":1,"link":"photo_1013539.html","width":130,"caption":"","height":94});
															thumbnails[1013542] = clik.newPhoto({"id":1013542,"src":"MO1M75391.jpg","galleries_id":74741,"server_id":1,"link":"photo_1013542.html","width":87,"caption":"","height":130});
															thumbnails[1013544] = clik.newPhoto({"id":1013544,"src":"rutland-ospreys1.jpg","galleries_id":74741,"server_id":1,"link":"photo_1013544.html","width":130,"caption":"","height":89});
															thumbnails[1013545] = clik.newPhoto({"id":1013545,"src":"scar58441.jpg","galleries_id":74741,"server_id":1,"link":"photo_1013545.html","width":87,"caption":"","height":130});
															thumbnails[1013547] = clik.newPhoto({"id":1013547,"src":"VP9V55281.jpg","galleries_id":74741,"server_id":1,"link":"photo_1013547.html","width":130,"caption":"","height":87});
															thumbnails[1013549] = clik.newPhoto({"id":1013549,"src":"VP9V68801.jpg","galleries_id":74741,"server_id":1,"link":"photo_1013549.html","width":130,"caption":"","height":82});
															thumbnails[1013550] = clik.newPhoto({"id":1013550,"src":"VP9V68871.jpg","galleries_id":74741,"server_id":1,"link":"photo_1013550.html","width":130,"caption":"","height":78});
															thumbnails[1013554] = clik.newPhoto({"id":1013554,"src":"VP9V8307-013.jpg","galleries_id":74741,"server_id":1,"link":"photo_1013554.html","width":130,"caption":"","height":90});
															thumbnails[1013555] = clik.newPhoto({"id":1013555,"src":"VP9V8373-011.jpg","galleries_id":74741,"server_id":1,"link":"photo_1013555.html","width":130,"caption":"","height":55});
															thumbnails[1013556] = clik.newPhoto({"id":1013556,"src":"VP9V84861.jpg","galleries_id":74741,"server_id":1,"link":"photo_1013556.html","width":130,"caption":"","height":87});
															thumbnails[1013557] = clik.newPhoto({"id":1013557,"src":"VP9V85031.jpg","galleries_id":74741,"server_id":1,"link":"photo_1013557.html","width":87,"caption":"","height":130});
															thumbnails[1013558] = clik.newPhoto({"id":1013558,"src":"VP9V85271.jpg","galleries_id":74741,"server_id":1,"link":"photo_1013558.html","width":87,"caption":"","height":130});
															thumbnails[1021144] = clik.newPhoto({"id":1021144,"src":"VP9V67381_thumb.jpg","galleries_id":74741,"server_id":1,"link":"photo_1021144.html","width":87,"caption":"ready for off","height":130});
															thumbnails[1021147] = clik.newPhoto({"id":1021147,"src":"VP9V70123_thumb.jpg","galleries_id":74741,"server_id":1,"link":"photo_1021147.html","width":110,"caption":"returning to boss?","height":130});
															thumbnails[1021648] = clik.newPhoto({"id":1021648,"src":"MO1M7103_thumb_7BB25F39-24E8-5EC4-4F9586CD4DC8040D.jpg","galleries_id":74741,"server_id":1,"link":"photo_1021648.html","width":130,"caption":"bald eagle","height":123});
															thumbnails[1021651] = clik.newPhoto({"id":1021651,"src":"MO1M7224_thumb.jpg","galleries_id":74741,"server_id":1,"link":"photo_1021651.html","width":130,"caption":"black kite flying","height":87});
															thumbnails[1021661] = clik.newPhoto({"id":1021661,"src":"MO1M7334_thumb.jpg","galleries_id":74741,"server_id":1,"link":"photo_1021661.html","width":130,"caption":"white tailed sea eagle","height":81});
															thumbnails[1021667] = clik.newPhoto({"id":1021667,"src":"MO1M7343_thumb.jpg","galleries_id":74741,"server_id":1,"link":"photo_1021667.html","width":130,"caption":"white tailed sea eagle 3","height":79});
															thumbnails[1021671] = clik.newPhoto({"id":1021671,"src":"MO1M7391_thumb.jpg","galleries_id":74741,"server_id":1,"link":"photo_1021671.html","width":130,"caption":"white tailed sea eagle 5","height":78});
															thumbnails[1021673] = clik.newPhoto({"id":1021673,"src":"VP9V4687_thumb.jpg","galleries_id":74741,"server_id":1,"link":"photo_1021673.html","width":130,"caption":"red kite","height":87});
															thumbnails[1021678] = clik.newPhoto({"id":1021678,"src":"VP9V4754_thumb.jpg","galleries_id":74741,"server_id":1,"link":"photo_1021678.html","width":81,"caption":"griffin vulture","height":130});
															thumbnails[1021679] = clik.newPhoto({"id":1021679,"src":"VP9V4762_thumb.jpg","galleries_id":74741,"server_id":1,"link":"photo_1021679.html","width":130,"caption":"griffin vulture 2","height":87});
															thumbnails[1021682] = clik.newPhoto({"id":1021682,"src":"VP9V4863_thumb.jpg","galleries_id":74741,"server_id":1,"link":"photo_1021682.html","width":90,"caption":"lanner falcon 2","height":130});
															thumbnails[1021691] = clik.newPhoto({"id":1021691,"src":"VP9V4988_thumb.jpg","galleries_id":74741,"server_id":1,"link":"photo_1021691.html","width":130,"caption":"eagle owl","height":87});
															thumbnails[1021697] = clik.newPhoto({"id":1021697,"src":"VP9V5163_thumb.jpg","galleries_id":74741,"server_id":1,"link":"photo_1021697.html","width":130,"caption":"gyr hybrid","height":78});
															thumbnails[1021707] = clik.newPhoto({"id":1021707,"src":"VP9V8271_thumb.jpg","galleries_id":74741,"server_id":1,"link":"photo_1021707.html","width":130,"caption":"battler eagle 5","height":43});
															thumbnails[1289547] = clik.newPhoto({"id":1289547,"src":"VP9V1547-01_thumb.jpg","galleries_id":74741,"server_id":1,"link":"photo_1289547.html","width":130,"caption":"Goshawk 3","height":85});
															thumbnails[1289655] = clik.newPhoto({"id":1289655,"src":"boxer-6788clu_thumb.jpg","galleries_id":91520,"server_id":1,"link":"photo_1289655.html","width":130,"caption":"Barbery Macaques","height":87});
															thumbnails[1289833] = clik.newPhoto({"id":1289833,"src":"leopard-2_thumb.jpg","galleries_id":91520,"server_id":1,"link":"photo_1289833.html","width":130,"caption":"Leopard","height":118});
															thumbnails[1289850] = clik.newPhoto({"id":1289850,"src":"leopard-12_thumb.jpg","galleries_id":91520,"server_id":1,"link":"photo_1289850.html","width":85,"caption":"Leopard 2","height":130});
															thumbnails[1289859] = clik.newPhoto({"id":1289859,"src":"lion2482_thumb.jpg","galleries_id":91520,"server_id":1,"link":"photo_1289859.html","width":130,"caption":"Male African Lion.","height":87});
															thumbnails[1289870] = clik.newPhoto({"id":1289870,"src":"lion-cub2368_thumb.jpg","galleries_id":91520,"server_id":1,"link":"photo_1289870.html","width":130,"caption":"Lion cub","height":87});
															thumbnails[1289872] = clik.newPhoto({"id":1289872,"src":"lions2263_thumb.jpg","galleries_id":91520,"server_id":1,"link":"photo_1289872.html","width":130,"caption":"Young lions","height":87});
															thumbnails[1289874] = clik.newPhoto({"id":1289874,"src":"monkey-6447_thumb.jpg","galleries_id":91520,"server_id":1,"link":"photo_1289874.html","width":86,"caption":"Barbary Macaques","height":130});
															thumbnails[1289903] = clik.newPhoto({"id":1289903,"src":"tiger1787-01_thumb.jpg","galleries_id":91520,"server_id":1,"link":"photo_1289903.html","width":130,"caption":"Tiger","height":86});
															thumbnails[1289905] = clik.newPhoto({"id":1289905,"src":"tiger1828_thumb.jpg","galleries_id":91520,"server_id":1,"link":"photo_1289905.html","width":130,"caption":"Drinking Tiger","height":87});
															thumbnails[1289907] = clik.newPhoto({"id":1289907,"src":"zebra1645-01_thumb.jpg","galleries_id":91520,"server_id":1,"link":"photo_1289907.html","width":130,"caption":"Zebras","height":91});
															thumbnails[1289911] = clik.newPhoto({"id":1289911,"src":"zebra1665-01_thumb.jpg","galleries_id":91520,"server_id":1,"link":"photo_1289911.html","width":130,"caption":"Zebra","height":86});
															thumbnails[2402938] = clik.newPhoto({"id":2402938,"src":"cast kill9744_thumb.jpg","galleries_id":155683,"server_id":1,"link":"photo_2402938.html","width":130,"caption":"","height":105});
															thumbnails[2402942] = clik.newPhoto({"id":2402942,"src":"first pheasant kill5656-01_thumb.jpg","galleries_id":155683,"server_id":1,"link":"photo_2402942.html","width":130,"caption":"","height":86});
															thumbnails[2402950] = clik.newPhoto({"id":2402950,"src":"rabbit kill6260_thumb.jpg","galleries_id":155683,"server_id":1,"link":"photo_2402950.html","width":130,"caption":"","height":87});
															thumbnails[2402951] = clik.newPhoto({"id":2402951,"src":"VP9V0013 (1)_thumb.jpg","galleries_id":155683,"server_id":1,"link":"photo_2402951.html","width":130,"caption":"","height":91});
															thumbnails[2402952] = clik.newPhoto({"id":2402952,"src":"VP9V0236_thumb.jpg","galleries_id":155683,"server_id":1,"link":"photo_2402952.html","width":130,"caption":"","height":126});
															thumbnails[2403003] = clik.newPhoto({"id":2403003,"src":"VP9V1435_thumb.jpg","galleries_id":155683,"server_id":1,"link":"photo_2403003.html","width":130,"caption":"","height":100});
															thumbnails[2403055] = clik.newPhoto({"id":2403055,"src":"VP9V1443-01_thumb.jpg","galleries_id":155683,"server_id":1,"link":"photo_2403055.html","width":130,"caption":"","height":86});
															thumbnails[2403209] = clik.newPhoto({"id":2403209,"src":"VP9V1546-01_thumb.jpg","galleries_id":155683,"server_id":1,"link":"photo_2403209.html","width":130,"caption":"","height":88});
															thumbnails[2403386] = clik.newPhoto({"id":2403386,"src":"VP9V1608-01_thumb.jpg","galleries_id":155683,"server_id":1,"link":"photo_2403386.html","width":130,"caption":"","height":124});
															thumbnails[2403429] = clik.newPhoto({"id":2403429,"src":"VP9V2957_thumb.jpg","galleries_id":155683,"server_id":1,"link":"photo_2403429.html","width":130,"caption":"","height":101});
															thumbnails[2403430] = clik.newPhoto({"id":2403430,"src":"VP9V3372_thumb.jpg","galleries_id":155683,"server_id":1,"link":"photo_2403430.html","width":130,"caption":"","height":84});
															thumbnails[2403432] = clik.newPhoto({"id":2403432,"src":"VP9V3459_thumb.jpg","galleries_id":155683,"server_id":1,"link":"photo_2403432.html","width":130,"caption":"","height":87});
															thumbnails[2403434] = clik.newPhoto({"id":2403434,"src":"VP9V3856_thumb.jpg","galleries_id":155683,"server_id":1,"link":"photo_2403434.html","width":130,"caption":"","height":96});
															thumbnails[2403436] = clik.newPhoto({"id":2403436,"src":"VP9V3857_thumb.jpg","galleries_id":155683,"server_id":1,"link":"photo_2403436.html","width":130,"caption":"","height":103});
															thumbnails[2403444] = clik.newPhoto({"id":2403444,"src":"VP9V3878_thumb.jpg","galleries_id":155683,"server_id":1,"link":"photo_2403444.html","width":130,"caption":"","height":87});
															thumbnails[2403445] = clik.newPhoto({"id":2403445,"src":"VP9V3895_thumb.jpg","galleries_id":155683,"server_id":1,"link":"photo_2403445.html","width":130,"caption":"","height":87});
															thumbnails[2403483] = clik.newPhoto({"id":2403483,"src":"VP9V4326_thumb.jpg","galleries_id":155683,"server_id":1,"link":"photo_2403483.html","width":130,"caption":"","height":87});
															thumbnails[2403502] = clik.newPhoto({"id":2403502,"src":"VP9V4487_thumb.jpg","galleries_id":155683,"server_id":1,"link":"photo_2403502.html","width":130,"caption":"","height":87});
															thumbnails[2403587] = clik.newPhoto({"id":2403587,"src":"VP9V9192_thumb.jpg","galleries_id":155683,"server_id":1,"link":"photo_2403587.html","width":130,"caption":"","height":87});
															thumbnails[2403588] = clik.newPhoto({"id":2403588,"src":"VP9V9307_thumb.jpg","galleries_id":155683,"server_id":1,"link":"photo_2403588.html","width":130,"caption":"","height":88});
															thumbnails[2403590] = clik.newPhoto({"id":2403590,"src":"VP9V9327_thumb.jpg","galleries_id":155683,"server_id":1,"link":"photo_2403590.html","width":130,"caption":"","height":83});
															thumbnails[2403600] = clik.newPhoto({"id":2403600,"src":"VP9V9329_thumb.jpg","galleries_id":155683,"server_id":1,"link":"photo_2403600.html","width":130,"caption":"","height":87});
															thumbnails[2403603] = clik.newPhoto({"id":2403603,"src":"VP9V9385_thumb.jpg","galleries_id":155683,"server_id":1,"link":"photo_2403603.html","width":130,"caption":"","height":83});
															thumbnails[2403606] = clik.newPhoto({"id":2403606,"src":"VP9V9458_thumb.jpg","galleries_id":155683,"server_id":1,"link":"photo_2403606.html","width":130,"caption":"","height":87});
															thumbnails[2403608] = clik.newPhoto({"id":2403608,"src":"VP9V9471_thumb.jpg","galleries_id":155683,"server_id":1,"link":"photo_2403608.html","width":130,"caption":"","height":87});
															thumbnails[2403611] = clik.newPhoto({"id":2403611,"src":"VP9V9742_thumb.jpg","galleries_id":155683,"server_id":1,"link":"photo_2403611.html","width":130,"caption":"","height":89});
															thumbnails[2403615] = clik.newPhoto({"id":2403615,"src":"VP9V9791_thumb.jpg","galleries_id":155683,"server_id":1,"link":"photo_2403615.html","width":130,"caption":"","height":87});
															thumbnails[2403619] = clik.newPhoto({"id":2403619,"src":"VP9V9949_thumb.jpg","galleries_id":155683,"server_id":1,"link":"photo_2403619.html","width":130,"caption":"","height":87});
															thumbnails[2403620] = clik.newPhoto({"id":2403620,"src":"VP9V9950_thumb.jpg","galleries_id":155683,"server_id":1,"link":"photo_2403620.html","width":130,"caption":"","height":87});
															thumbnails[2403624] = clik.newPhoto({"id":2403624,"src":"VP9V9952_thumb.jpg","galleries_id":155683,"server_id":1,"link":"photo_2403624.html","width":130,"caption":"","height":87});
															thumbnails[3645133] = clik.newPhoto({"id":3645133,"src":"770K0115star-fav_thumb.jpg","galleries_id":222862,"server_id":1,"link":"photo_3645133.html","width":130,"caption":"Alfie in the snow","height":98});
															thumbnails[3645140] = clik.newPhoto({"id":3645140,"src":"770K0512skirfare_thumb.jpg","galleries_id":222862,"server_id":1,"link":"photo_3645140.html","width":130,"caption":"","height":98});
															thumbnails[3645151] = clik.newPhoto({"id":3645151,"src":"770K8021alfie_thumb.jpg","galleries_id":222862,"server_id":1,"link":"photo_3645151.html","width":130,"caption":"pointing","height":87});
															thumbnails[3645157] = clik.newPhoto({"id":3645157,"src":"770K8033alfie_thumb.jpg","galleries_id":222862,"server_id":1,"link":"photo_3645157.html","width":130,"caption":"","height":87});
															thumbnails[3645162] = clik.newPhoto({"id":3645162,"src":"770K8110alfie_thumb.jpg","galleries_id":222862,"server_id":1,"link":"photo_3645162.html","width":130,"caption":"","height":87});
															thumbnails[3645168] = clik.newPhoto({"id":3645168,"src":"770K8983alfie_thumb.jpg","galleries_id":222862,"server_id":1,"link":"photo_3645168.html","width":130,"caption":"","height":87});
															thumbnails[3645171] = clik.newPhoto({"id":3645171,"src":"770K9163alfie_thumb.jpg","galleries_id":222862,"server_id":1,"link":"photo_3645171.html","width":130,"caption":"","height":87});
															thumbnails[3645178] = clik.newPhoto({"id":3645178,"src":"770K9170alfie_thumb.jpg","galleries_id":222862,"server_id":1,"link":"photo_3645178.html","width":87,"caption":"","height":130});
															thumbnails[3645181] = clik.newPhoto({"id":3645181,"src":"770K9243alfie_thumb.jpg","galleries_id":222862,"server_id":1,"link":"photo_3645181.html","width":130,"caption":"","height":87});
															thumbnails[3645185] = clik.newPhoto({"id":3645185,"src":"770K9303alfie_thumb.jpg","galleries_id":222862,"server_id":1,"link":"photo_3645185.html","width":130,"caption":"","height":87});
															thumbnails[3645193] = clik.newPhoto({"id":3645193,"src":"770K9408alfie_thumb.jpg","galleries_id":222862,"server_id":1,"link":"photo_3645193.html","width":130,"caption":"","height":87});
															thumbnails[3645200] = clik.newPhoto({"id":3645200,"src":"IMG_1098alfie_thumb.jpg","galleries_id":222862,"server_id":1,"link":"photo_3645200.html","width":130,"caption":"","height":98});
															thumbnails[3645206] = clik.newPhoto({"id":3645206,"src":"IMG_1141alfie_thumb.jpg","galleries_id":222862,"server_id":1,"link":"photo_3645206.html","width":130,"caption":"","height":98});
															thumbnails[3645211] = clik.newPhoto({"id":3645211,"src":"IMG_1179alfie_thumb.jpg","galleries_id":222862,"server_id":1,"link":"photo_3645211.html","width":130,"caption":"","height":98});
															thumbnails[3645280] = clik.newPhoto({"id":3645280,"src":"IMG_1249alfie_thumb.jpg","galleries_id":222862,"server_id":1,"link":"photo_3645280.html","width":98,"caption":"","height":130});
															thumbnails[3645283] = clik.newPhoto({"id":3645283,"src":"IMG_1256alfie_thumb.jpg","galleries_id":222862,"server_id":1,"link":"photo_3645283.html","width":130,"caption":"","height":98});
															thumbnails[3645286] = clik.newPhoto({"id":3645286,"src":"IMG_1273alfie_thumb.jpg","galleries_id":222862,"server_id":1,"link":"photo_3645286.html","width":130,"caption":"","height":98});
															thumbnails[3645290] = clik.newPhoto({"id":3645290,"src":"IMG_1282alfie_thumb.jpg","galleries_id":222862,"server_id":1,"link":"photo_3645290.html","width":130,"caption":"","height":98});
															thumbnails[3645291] = clik.newPhoto({"id":3645291,"src":"IMG_1311alfie_thumb.jpg","galleries_id":222862,"server_id":1,"link":"photo_3645291.html","width":130,"caption":"","height":98});
															thumbnails[3645295] = clik.newPhoto({"id":3645295,"src":"IMG_1326-alfie-fav_thumb.jpg","galleries_id":222862,"server_id":1,"link":"photo_3645295.html","width":98,"caption":"","height":130});
															thumbnails[3645297] = clik.newPhoto({"id":3645297,"src":"IMG_1331alfie_thumb.jpg","galleries_id":222862,"server_id":1,"link":"photo_3645297.html","width":130,"caption":"","height":98});
															thumbnails[3645323] = clik.newPhoto({"id":3645323,"src":"770K0025star_thumb.jpg","galleries_id":222862,"server_id":1,"link":"photo_3645323.html","width":130,"caption":"","height":87});
															thumbnails[3645327] = clik.newPhoto({"id":3645327,"src":"770K0106star_thumb.jpg","galleries_id":222862,"server_id":1,"link":"photo_3645327.html","width":130,"caption":"","height":87});
															thumbnails[3645332] = clik.newPhoto({"id":3645332,"src":"770K0114star_thumb.jpg","galleries_id":222862,"server_id":1,"link":"photo_3645332.html","width":130,"caption":"","height":87});
															thumbnails[3645339] = clik.newPhoto({"id":3645339,"src":"770K0186star_thumb.jpg","galleries_id":222862,"server_id":1,"link":"photo_3645339.html","width":130,"caption":"","height":87});
															thumbnails[3645350] = clik.newPhoto({"id":3645350,"src":"770K0228star-crop_thumb.jpg","galleries_id":222862,"server_id":1,"link":"photo_3645350.html","width":111,"caption":"","height":130});
															thumbnails[3645400] = clik.newPhoto({"id":3645400,"src":"770K0344star-fav1_thumb.jpg","galleries_id":222873,"server_id":1,"link":"photo_3645400.html","width":130,"caption":"","height":98});
															thumbnails[3645403] = clik.newPhoto({"id":3645403,"src":"770K0694grantley-fav_thumb.jpg","galleries_id":222862,"server_id":1,"link":"photo_3645403.html","width":98,"caption":"","height":130});
															thumbnails[3645415] = clik.newPhoto({"id":3645415,"src":"770K7847-fav_thumb.jpg","galleries_id":222873,"server_id":1,"link":"photo_3645415.html","width":130,"caption":"","height":98});
															thumbnails[3645420] = clik.newPhoto({"id":3645420,"src":"770K8166stryder_thumb.jpg","galleries_id":222873,"server_id":1,"link":"photo_3645420.html","width":130,"caption":"","height":90});
															thumbnails[3645422] = clik.newPhoto({"id":3645422,"src":"falconry-08-to-09-054-fav_thumb.jpg","galleries_id":222873,"server_id":1,"link":"photo_3645422.html","width":130,"caption":"","height":98});
															thumbnails[3645423] = clik.newPhoto({"id":3645423,"src":"falconry-08-to-09-058-fav_thumb.jpg","galleries_id":222873,"server_id":1,"link":"photo_3645423.html","width":130,"caption":"","height":98});
															thumbnails[3645425] = clik.newPhoto({"id":3645425,"src":"falconry-08-to-09-161-fav_thumb.jpg","galleries_id":222873,"server_id":1,"link":"photo_3645425.html","width":130,"caption":"","height":98});
															thumbnails[3645427] = clik.newPhoto({"id":3645427,"src":"falconry-08-to-09-168-fav_thumb.jpg","galleries_id":222873,"server_id":1,"link":"photo_3645427.html","width":130,"caption":"","height":98});
															thumbnails[3645428] = clik.newPhoto({"id":3645428,"src":"falconry-08-to-09-269-fav_thumb.jpg","galleries_id":222873,"server_id":1,"link":"photo_3645428.html","width":130,"caption":"","height":98});
															thumbnails[3645434] = clik.newPhoto({"id":3645434,"src":"770K0207star_thumb.jpg","galleries_id":222873,"server_id":1,"link":"photo_3645434.html","width":130,"caption":"","height":89});
															thumbnails[3645440] = clik.newPhoto({"id":3645440,"src":"770K0082star_thumb.jpg","galleries_id":222873,"server_id":1,"link":"photo_3645440.html","width":130,"caption":"","height":85});
															thumbnails[3646302] = clik.newPhoto({"id":3646302,"src":"770K0891arwen_thumb.jpg","galleries_id":222873,"server_id":1,"link":"photo_3646302.html","width":130,"caption":"","height":86});
															thumbnails[3646307] = clik.newPhoto({"id":3646307,"src":"770K0903arwen_thumb.jpg","galleries_id":222873,"server_id":1,"link":"photo_3646307.html","width":130,"caption":"","height":87});
															thumbnails[3646309] = clik.newPhoto({"id":3646309,"src":"770K0965leverets_thumb.jpg","galleries_id":91520,"server_id":1,"link":"photo_3646309.html","width":130,"caption":"","height":91});
															thumbnails[3646310] = clik.newPhoto({"id":3646310,"src":"770K0989leverets_thumb.jpg","galleries_id":91520,"server_id":1,"link":"photo_3646310.html","width":130,"caption":"","height":81});
															thumbnails[3646314] = clik.newPhoto({"id":3646314,"src":"770K8820ruby_thumb.jpg","galleries_id":222873,"server_id":1,"link":"photo_3646314.html","width":130,"caption":"","height":87});
															thumbnails[3646318] = clik.newPhoto({"id":3646318,"src":"770K8854ruby_thumb.jpg","galleries_id":222873,"server_id":1,"link":"photo_3646318.html","width":130,"caption":"","height":87});
															thumbnails[3651037] = clik.newPhoto({"id":3651037,"src":"193grassington_thumb.jpg","galleries_id":222873,"server_id":1,"link":"photo_3651037.html","width":130,"caption":"","height":98});
															thumbnails[3651041] = clik.newPhoto({"id":3651041,"src":"770K0689grantley_thumb.jpg","galleries_id":222873,"server_id":1,"link":"photo_3651041.html","width":130,"caption":"","height":98});
															thumbnails[3651044] = clik.newPhoto({"id":3651044,"src":"770K0807web-crop_thumb.jpg","galleries_id":222873,"server_id":1,"link":"photo_3651044.html","width":125,"caption":"","height":130});
															thumbnails[3651049] = clik.newPhoto({"id":3651049,"src":"770K4299_thumb.jpg","galleries_id":222862,"server_id":1,"link":"photo_3651049.html","width":113,"caption":"","height":130});
															thumbnails[3651060] = clik.newPhoto({"id":3651060,"src":"falconry-08-to-09-055_thumb.jpg","galleries_id":222873,"server_id":1,"link":"photo_3651060.html","width":130,"caption":"","height":97});
															thumbnails[3651074] = clik.newPhoto({"id":3651074,"src":"Bradgatepark00074_RT16_thumb.jpg","galleries_id":91520,"server_id":1,"link":"photo_3651074.html","width":130,"caption":"","height":87});
															thumbnails[3651084] = clik.newPhoto({"id":3651084,"src":"VP9V8863scar_thumb.jpg","galleries_id":91520,"server_id":1,"link":"photo_3651084.html","width":87,"caption":"","height":130});
															thumbnails[7732611] = clik.newPhoto({"id":7732611,"src":"770K4008_thumb.jpg","galleries_id":418300,"server_id":1,"link":"photo_7732611.html","width":130,"caption":"","height":87});
															thumbnails[7732614] = clik.newPhoto({"id":7732614,"src":"770K8502_thumb.jpg","galleries_id":418300,"server_id":1,"link":"photo_7732614.html","width":130,"caption":"","height":87});
															thumbnails[7732619] = clik.newPhoto({"id":7732619,"src":"770K5122_thumb.jpg","galleries_id":418300,"server_id":1,"link":"photo_7732619.html","width":130,"caption":"","height":87});
															thumbnails[7732621] = clik.newPhoto({"id":7732621,"src":"770K9666_thumb.jpg","galleries_id":418300,"server_id":1,"link":"photo_7732621.html","width":130,"caption":"","height":87});
															thumbnails[7732625] = clik.newPhoto({"id":7732625,"src":"770K3301_thumb.jpg","galleries_id":418300,"server_id":1,"link":"photo_7732625.html","width":130,"caption":"","height":87});
															thumbnails[7732629] = clik.newPhoto({"id":7732629,"src":"770K3361_thumb.jpg","galleries_id":418300,"server_id":1,"link":"photo_7732629.html","width":130,"caption":"","height":87});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[222862] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Alfie the Brittany","link":"gallery_222862.html","maxRecords":0.0,"photoIDs":[3645133.0,3645140.0,3645151.0,3645157.0,3645162.0,3645168.0,3645171.0,3645178.0,3645181.0,3645185.0,3645193.0,3645200.0,3645206.0,3645211.0,3645280.0,3645283.0,3645286.0,3645290.0,3645291.0,3645295.0,3645297.0,3645323.0,3645327.0,3645332.0,3645339.0,3645350.0,3645403.0,3651049.0],"skipIndex":0,"section_code":"gallery","featured_images":3645133.0,"id":222862,"singleSection":false});				  						galleries[418300] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Finnish Goshawks","link":"gallery_418300.html","maxRecords":0.0,"photoIDs":[7732611.0,7732614.0,7732619.0,7732621.0,7732625.0,7732629.0],"skipIndex":0,"section_code":"gallery","featured_images":"7732629,7732625,7732621,7732619,7732614,7732611","id":418300,"singleSection":false});				  						galleries[155683] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Hunting and Action","link":"gallery_155683.html","maxRecords":0.0,"photoIDs":[2402938.0,2402942.0,2402950.0,2402951.0,2402952.0,2403003.0,2403055.0,2403209.0,2403386.0,2403429.0,2403430.0,2403432.0,2403434.0,2403436.0,2403444.0,2403445.0,2403483.0,2403502.0,2403587.0,2403588.0,2403590.0,2403600.0,2403603.0,2403606.0,2403608.0,2403611.0,2403615.0,2403619.0,2403620.0,2403624.0],"skipIndex":0,"section_code":"gallery","featured_images":"2403624,2403620,2403619,2403615,2403611,2403608,2403606,2403603,2403600,2403590","id":155683,"singleSection":false});				  						galleries[222873] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"new falconry 2008\/09","link":"gallery_222873.html","maxRecords":0.0,"photoIDs":[3645400.0,3645415.0,3645420.0,3645422.0,3645423.0,3645425.0,3645427.0,3645428.0,3645434.0,3645440.0,3646302.0,3646307.0,3646314.0,3646318.0,3651037.0,3651041.0,3651044.0,3651060.0],"skipIndex":0,"section_code":"gallery","featured_images":3645423.0,"id":222873,"singleSection":false});				  						galleries[73632] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"FALCONRY","link":"gallery_73632.html","maxRecords":0.0,"photoIDs":[1289574.0,995310.0,995311.0,995320.0,995333.0,995342.0,995347.0,995361.0,995380.0,995383.0,995384.0,995393.0,995424.0,995429.0,995440.0,995458.0,995492.0,995558.0,995562.0,995589.0,995597.0,995598.0,995603.0,995605.0,995609.0],"skipIndex":0,"section_code":"gallery","featured_images":995393.0,"id":73632,"singleSection":false});				  						galleries[74741] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"falconry2","link":"gallery_74741.html","maxRecords":0.0,"photoIDs":[1289542.0,1289544.0,1289536.0,1289469.0,1289517.0,1289524.0,1289532.0,1289641.0,1289640.0,1013539.0,1013542.0,1013544.0,1013545.0,1013547.0,1013549.0,1013550.0,1013554.0,1013555.0,1013556.0,1013557.0,1013558.0,1021144.0,1021147.0,1021648.0,1021651.0,1021661.0,1021667.0,1021671.0,1021673.0,1021678.0,1021679.0,1021682.0,1021691.0,1021697.0,1021707.0,1289547.0],"skipIndex":0,"section_code":"gallery","featured_images":"1289641,1289640,1289547,1289544,1289542,1289536,1289532,1289524,1289517,1289469","id":74741,"singleSection":false});				  						galleries[91520] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wildlife","link":"gallery_91520.html","maxRecords":0.0,"photoIDs":[1289830.0,1289893.0,1289890.0,1289887.0,1289821.0,1289824.0,1289809.0,1289818.0,1289894.0,1289896.0,1289800.0,1289855.0,1289655.0,1289833.0,1289850.0,1289859.0,1289870.0,1289872.0,1289874.0,1289903.0,1289905.0,1289907.0,1289911.0,3646309.0,3646310.0,3651074.0,3651084.0],"skipIndex":0,"section_code":"gallery","featured_images":1289905.0,"id":91520,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '3646307,3646302,3645428,3645427,3645425,3645423,3645415,3645327,3645323,3645133,2403611,2403603,2403590,2403444,2403386,2403209,2403003,2402930,1289905,1289872,995393';
imageSets[2] = '3645423,3645133,2402930,1289905,995393';
imageSets[3] = '7732629,7732625,7732621,7732619,7732614,7732611,3651084,3651074,3651060,3651049,3651044,3651041,3651037,3646318,3646314,3646310,3646309,3646307,3646302,3645440,3645434,3645428,3645427,3645425,3645423,3645422,3645420,3645415,3645403,3645400,3645350,3645339,3645332,3645327,3645323,3645297,3645295,3645291,3645290,3645286,3645283,3645280,3645211,3645206,3645200,3645193,3645185,3645181,3645178,3645171';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/trotterian/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/trotterian/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/trotterian/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/trotterian/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/trotterian/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/trotterian/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/trotterian/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/trotterian/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/trotterian/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/trotterian/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/trotterian/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/trotterian/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/trotterian/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/trotterian/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/trotterian/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/trotterian/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/trotterian/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/trotterian/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/trotterian/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/trotterian/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/trotterian/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/trotterian/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/trotterian/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/trotterian/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/trotterian/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/trotterian/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/trotterian/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 = 'FALCONRYPHOTOS: ' + 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.item_price !== '') {
																		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="anitrotter@tiscali.co.uk">';
					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="anitrotter@tiscali.co.uk">';
				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;
	}
}

			

