window.thumbnails = {};
															thumbnails[1575452] = clik.newPhoto({"id":1575452,"src":"BOARDMEETING1[1]1.JPG","galleries_id":105072,"server_id":18,"link":"photo_1575452.html","width":130,"caption":"Board Meeting","height":95});
															thumbnails[1596270] = clik.newPhoto({"id":1596270,"src":"YELLOWSURF1[1]1.JPG","galleries_id":105072,"server_id":18,"link":"photo_1596270.html","width":130,"caption":"The Summer Sails","height":87});
															thumbnails[1600752] = clik.newPhoto({"id":1600752,"src":"LIMEGREEN1[1]1.JPG","galleries_id":105072,"server_id":18,"link":"photo_1600752.html","width":130,"caption":"Lime Green","height":87});
															thumbnails[1636465] = clik.newPhoto({"id":1636465,"src":"pierbw[1]_thumb.JPG","galleries_id":206198,"server_id":18,"link":"photo_1636465.html","width":130,"caption":"Away Day","height":88});
															thumbnails[1869165] = clik.newPhoto({"id":1869165,"src":"HEARTS_thumb.JPG","galleries_id":105072,"server_id":18,"link":"photo_1869165.html","width":130,"caption":"HEARTS","height":93});
															thumbnails[1964991] = clik.newPhoto({"id":1964991,"src":"MEIN GOTT_thumb.jpg","galleries_id":105072,"server_id":18,"link":"photo_1964991.html","width":130,"caption":"Reclining","height":87});
															thumbnails[2826170] = clik.newPhoto({"id":2826170,"src":"JASCLIK_thumb.jpg","galleries_id":105070,"server_id":18,"link":"photo_2826170.html","width":130,"caption":"Jasna Lake","height":88});
															thumbnails[2998526] = clik.newPhoto({"id":2998526,"src":"WONDERMENTCLIK_thumb.jpg","galleries_id":105060,"server_id":18,"link":"photo_2998526.html","width":130,"caption":"Wonderment","height":88});
															thumbnails[3239967] = clik.newPhoto({"id":3239967,"src":"alpineflowPZ_thumb.jpg","galleries_id":105070,"server_id":18,"link":"photo_3239967.html","width":130,"caption":"Alpine Flow","height":87});
															thumbnails[3353309] = clik.newPhoto({"id":3353309,"src":"swings and rounderboutsPZ_thumb.jpg","galleries_id":206198,"server_id":18,"link":"photo_3353309.html","width":130,"caption":"Swings and Roundabouts","height":105});
															thumbnails[3363932] = clik.newPhoto({"id":3363932,"src":"flight_thumb.jpg","galleries_id":105071,"server_id":18,"link":"photo_3363932.html","width":93,"caption":"Flight","height":130});
															thumbnails[3368417] = clik.newPhoto({"id":3368417,"src":"CLIKME_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":115});
															thumbnails[3385052] = clik.newPhoto({"id":3385052,"src":"THEPOSERPZCLIK_thumb.jpg","galleries_id":105071,"server_id":18,"link":"photo_3385052.html","width":130,"caption":"The Poser","height":100});
															thumbnails[3674217] = clik.newPhoto({"id":3674217,"src":"greyowlPZ_thumb.jpg","galleries_id":105071,"server_id":18,"link":"photo_3674217.html","width":130,"caption":"Great Grey Owl","height":90});
															thumbnails[4090055] = clik.newPhoto({"id":4090055,"src":"puffingood1PZ_thumb.jpg","galleries_id":105071,"server_id":18,"link":"photo_4090055.html","width":130,"caption":"Puffin","height":102});
															thumbnails[4090084] = clik.newPhoto({"id":4090084,"src":"LilleshallPZ_thumb.jpg","galleries_id":428113,"server_id":18,"link":"photo_4090084.html","width":130,"caption":"Lilleshall Hill","height":56});
															thumbnails[4132256] = clik.newPhoto({"id":4132256,"src":"theVictorianCLIK_thumb.jpg","galleries_id":105060,"server_id":18,"link":"photo_4132256.html","width":130,"caption":"The Victorian ","height":101});
															thumbnails[4132261] = clik.newPhoto({"id":4132261,"src":"victoriankitchenCLIK_thumb.jpg","galleries_id":105060,"server_id":18,"link":"photo_4132261.html","width":130,"caption":"The Victorian Kitchen","height":91});
															thumbnails[4132305] = clik.newPhoto({"id":4132305,"src":"sweepCLIK_thumb.jpg","galleries_id":105060,"server_id":18,"link":"photo_4132305.html","width":130,"caption":"Chimney Sweep","height":91});
															thumbnails[4132747] = clik.newPhoto({"id":4132747,"src":"the_gondolierCLIK_thumb.jpg","galleries_id":206198,"server_id":18,"link":"photo_4132747.html","width":130,"caption":"The Gondoliers","height":111});
															thumbnails[4135633] = clik.newPhoto({"id":4135633,"src":"ragbw_thumb.jpg","galleries_id":206198,"server_id":18,"link":"photo_4135633.html","width":130,"caption":"Victorian Rug Maker","height":100});
															thumbnails[4385918] = clik.newPhoto({"id":4385918,"src":"gatesgarthpz_thumb.jpg","galleries_id":105070,"server_id":18,"link":"photo_4385918.html","width":130,"caption":"Gatesgarth Beck","height":90});
															thumbnails[4758245] = clik.newPhoto({"id":4758245,"src":"HOLYISLANCLIK_thumb.jpg","galleries_id":105070,"server_id":18,"link":"photo_4758245.html","width":130,"caption":"Holy Island","height":91});
															thumbnails[4765426] = clik.newPhoto({"id":4765426,"src":"dunstcastleCLIK_thumb.jpg","galleries_id":428113,"server_id":18,"link":"photo_4765426.html","width":130,"caption":"Dunstanburgh Castle","height":91});
															thumbnails[5127342] = clik.newPhoto({"id":5127342,"src":"BEADNELL_012bwclik_thumb.jpg","galleries_id":206198,"server_id":18,"link":"photo_5127342.html","width":130,"caption":"Beadnell Bay","height":91});
															thumbnails[5528289] = clik.newPhoto({"id":5528289,"src":"LOVERSCLIK_thumb.jpg","galleries_id":206198,"server_id":18,"link":"photo_5528289.html","width":130,"caption":"Lovers","height":91});
															thumbnails[5532553] = clik.newPhoto({"id":5532553,"src":"ToowittoohooCLIK_thumb.jpg","galleries_id":105071,"server_id":18,"link":"photo_5532553.html","width":130,"caption":"Golden Eyes","height":90});
															thumbnails[5533057] = clik.newPhoto({"id":5533057,"src":"PUFFINCLIK_thumb.jpg","galleries_id":105071,"server_id":18,"link":"photo_5533057.html","width":130,"caption":"Skomer Puffin","height":112});
															thumbnails[5533117] = clik.newPhoto({"id":5533117,"src":"VICTORIANACLIK_thumb.jpg","galleries_id":105060,"server_id":18,"link":"photo_5533117.html","width":130,"caption":"Victoriana","height":91});
															thumbnails[5533125] = clik.newPhoto({"id":5533125,"src":"REDCLIK_thumb.jpg","galleries_id":428113,"server_id":18,"link":"photo_5533125.html","width":130,"caption":"RED","height":87});
															thumbnails[5538322] = clik.newPhoto({"id":5538322,"src":"riflemanCLIK_thumb.jpg","galleries_id":105060,"server_id":18,"link":"photo_5538322.html","width":130,"caption":"Rifleman","height":121});
															thumbnails[5538520] = clik.newPhoto({"id":5538520,"src":"thebiggerpictureCLIK_thumb.jpg","galleries_id":105060,"server_id":18,"link":"photo_5538520.html","width":130,"caption":"The Bigger Picture","height":91});
															thumbnails[5538590] = clik.newPhoto({"id":5538590,"src":"betweenclik_thumb.jpg","galleries_id":105070,"server_id":18,"link":"photo_5538590.html","width":130,"caption":"Somewhere Inbetween","height":91});
															thumbnails[5538622] = clik.newPhoto({"id":5538622,"src":"BEADNELLCLIK_thumb.jpg","galleries_id":105070,"server_id":18,"link":"photo_5538622.html","width":130,"caption":"Beadnell Bay","height":91});
															thumbnails[5875145] = clik.newPhoto({"id":5875145,"src":"MERE_012clik_thumb.jpg","galleries_id":105071,"server_id":18,"link":"photo_5875145.html","width":130,"caption":"Reed Bunting","height":78});
															thumbnails[6156860] = clik.newPhoto({"id":6156860,"src":"brodickCLIK_thumb.jpg","galleries_id":344439,"server_id":18,"link":"photo_6156860.html","width":130,"caption":"Brodick Bay ","height":90});
															thumbnails[6159223] = clik.newPhoto({"id":6159223,"src":"EYESPYCLIK_thumb.jpg","galleries_id":105071,"server_id":18,"link":"photo_6159223.html","width":130,"caption":"I-Spy","height":90});
															thumbnails[6161372] = clik.newPhoto({"id":6161372,"src":"TOOLSCLIK_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":91});
															thumbnails[6346892] = clik.newPhoto({"id":6346892,"src":"SLOVINIATEDD_095CLIK_thumb.jpg","galleries_id":105070,"server_id":18,"link":"photo_6346892.html","width":130,"caption":"Sunbed Heaven","height":85});
															thumbnails[6485863] = clik.newPhoto({"id":6485863,"src":"goldenCLIK_thumb.jpg","galleries_id":428113,"server_id":18,"link":"photo_6485863.html","width":130,"caption":"Golden","height":65});
															thumbnails[6486001] = clik.newPhoto({"id":6486001,"src":"watercolourclik_thumb.jpg","galleries_id":105070,"server_id":18,"link":"photo_6486001.html","width":130,"caption":"Water Colour","height":92});
															thumbnails[6858447] = clik.newPhoto({"id":6858447,"src":"PilgrimageCLIK_thumb.jpg","galleries_id":344439,"server_id":18,"link":"photo_6858447.html","width":130,"caption":"Pilgrimage","height":91});
															thumbnails[6858449] = clik.newPhoto({"id":6858449,"src":"wideangletideCLIK_thumb.jpg","galleries_id":344439,"server_id":18,"link":"photo_6858449.html","width":130,"caption":"Wide Angle Tide","height":91});
															thumbnails[6858451] = clik.newPhoto({"id":6858451,"src":"LindisfarnecastleCLIK_thumb.jpg","galleries_id":344439,"server_id":18,"link":"photo_6858451.html","width":130,"caption":"Lindisfarne Castle","height":88});
															thumbnails[6858494] = clik.newPhoto({"id":6858494,"src":"SNOOK2clik_thumb.jpg","galleries_id":344439,"server_id":18,"link":"photo_6858494.html","width":130,"caption":"Rock Pool","height":91});
															thumbnails[6858507] = clik.newPhoto({"id":6858507,"src":"BOATS1clik_thumb.jpg","galleries_id":344439,"server_id":18,"link":"photo_6858507.html","width":130,"caption":"Blue Boat","height":91});
															thumbnails[7082241] = clik.newPhoto({"id":7082241,"src":"LindisfarneCLIK_thumb.jpg","galleries_id":428113,"server_id":18,"link":"photo_7082241.html","width":130,"caption":"Lindisfarne Castle","height":91});
															thumbnails[7082329] = clik.newPhoto({"id":7082329,"src":"badderlyCLIK_thumb.jpg","galleries_id":344439,"server_id":18,"link":"photo_7082329.html","width":130,"caption":"Baddesley Clinton","height":91});
															thumbnails[7082335] = clik.newPhoto({"id":7082335,"src":"PackwoodhouseCLIK_thumb.jpg","galleries_id":344439,"server_id":18,"link":"photo_7082335.html","width":130,"caption":"Packwood House","height":91});
															thumbnails[7082359] = clik.newPhoto({"id":7082359,"src":"thechinesehouseCLIK_thumb.jpg","galleries_id":344439,"server_id":18,"link":"photo_7082359.html","width":130,"caption":"The Chinese House","height":84});
															thumbnails[7082372] = clik.newPhoto({"id":7082372,"src":"CARDINGMILLCLIK_thumb.jpg","galleries_id":344439,"server_id":18,"link":"photo_7082372.html","width":130,"caption":"Carding Mill Valley","height":91});
															thumbnails[7082399] = clik.newPhoto({"id":7082399,"src":"attingham2CLIK_thumb.jpg","galleries_id":344439,"server_id":18,"link":"photo_7082399.html","width":130,"caption":"Attingham Park","height":91});
															thumbnails[7082408] = clik.newPhoto({"id":7082408,"src":"LindisfarnecastleCLIK1_thumb.jpg","galleries_id":344439,"server_id":18,"link":"photo_7082408.html","width":130,"caption":"Lindisfarne Castle","height":91});
															thumbnails[7106673] = clik.newPhoto({"id":7106673,"src":"rhossilibayCLIK_thumb.jpg","galleries_id":105070,"server_id":18,"link":"photo_7106673.html","width":130,"caption":"Rhossili Reflection","height":91});
															thumbnails[7106773] = clik.newPhoto({"id":7106773,"src":"3CLIFFSclik_thumb.jpg","galleries_id":105070,"server_id":18,"link":"photo_7106773.html","width":130,"caption":"Three Cliffs Bay","height":91});
															thumbnails[7168593] = clik.newPhoto({"id":7168593,"src":"winterwonderlandCLIK_C1EC2853-24E8-5EC4-4F7316B056ED0C52_thumb.jpg","galleries_id":105070,"server_id":18,"link":"photo_7168593.html","width":130,"caption":"Winter Wonderland","height":91});
															thumbnails[7390539] = clik.newPhoto({"id":7390539,"src":"saturacragCLIK_thumb.jpg","galleries_id":105070,"server_id":18,"link":"photo_7390539.html","width":130,"caption":"Satura Crag","height":91});
															thumbnails[7390543] = clik.newPhoto({"id":7390543,"src":"BUCKCRAGCLIK_thumb.jpg","galleries_id":105070,"server_id":18,"link":"photo_7390543.html","width":130,"caption":"Buck Crag","height":70});
															thumbnails[7390544] = clik.newPhoto({"id":7390544,"src":"HARTSOPCLIK_thumb.jpg","galleries_id":105070,"server_id":18,"link":"photo_7390544.html","width":130,"caption":"Hartsop above How","height":91});
															thumbnails[7390575] = clik.newPhoto({"id":7390575,"src":"ANGLETARNclik_thumb.jpg","galleries_id":400100,"server_id":18,"link":"photo_7390575.html","width":130,"caption":"Angle Tarn","height":91});
															thumbnails[7390584] = clik.newPhoto({"id":7390584,"src":"highstreetclik_thumb.jpg","galleries_id":105070,"server_id":18,"link":"photo_7390584.html","width":130,"caption":"High Street","height":119});
															thumbnails[7390609] = clik.newPhoto({"id":7390609,"src":"ANGLETARN4clik_thumb.jpg","galleries_id":428113,"server_id":18,"link":"photo_7390609.html","width":130,"caption":"Angle Tarn","height":92});
															thumbnails[7504958] = clik.newPhoto({"id":7504958,"src":"TONGMONOCLIK_thumb.jpg","galleries_id":206198,"server_id":18,"link":"photo_7504958.html","width":130,"caption":"Tong Church","height":93});
															thumbnails[7504965] = clik.newPhoto({"id":7504965,"src":"SANCTUARYclik_thumb.jpg","galleries_id":206198,"server_id":18,"link":"photo_7504965.html","width":130,"caption":"Sanctuary","height":92});
															thumbnails[7690854] = clik.newPhoto({"id":7690854,"src":"RAINBOWclik_thumb.jpg","galleries_id":400100,"server_id":18,"link":"photo_7690854.html","width":130,"caption":"Rainbow Royale","height":92});
															thumbnails[7690905] = clik.newPhoto({"id":7690905,"src":"SHADEOFBLUEclik_thumb.jpg","galleries_id":105072,"server_id":18,"link":"photo_7690905.html","width":130,"caption":"Shades of Blue","height":83});
															thumbnails[7690934] = clik.newPhoto({"id":7690934,"src":"ALMSHOUSEclik_thumb.jpg","galleries_id":400100,"server_id":18,"link":"photo_7690934.html","width":130,"caption":"Almshouses","height":91});
															thumbnails[7690980] = clik.newPhoto({"id":7690980,"src":"MOATclik_thumb.jpg","galleries_id":400100,"server_id":18,"link":"photo_7690980.html","width":130,"caption":"The Wells Moat","height":91});
															thumbnails[7919052] = clik.newPhoto({"id":7919052,"src":"Bovington08_075_thumb.JPG","galleries_id":426858,"server_id":18,"link":"photo_7919052.html","width":130,"caption":"","height":93});
															thumbnails[7919056] = clik.newPhoto({"id":7919056,"src":"SHREWSHOW_014_thumb.JPG","galleries_id":426858,"server_id":18,"link":"photo_7919056.html","width":130,"caption":"","height":87});
															thumbnails[7919059] = clik.newPhoto({"id":7919059,"src":"COCOROSA3_007_thumb.JPG","galleries_id":426858,"server_id":18,"link":"photo_7919059.html","width":130,"caption":"","height":86});
															thumbnails[7919061] = clik.newPhoto({"id":7919061,"src":"COCOROSATHREE_026_thumb.JPG","galleries_id":426858,"server_id":18,"link":"photo_7919061.html","width":130,"caption":"","height":93});
															thumbnails[7919065] = clik.newPhoto({"id":7919065,"src":"OMAN2_056_thumb.JPG","galleries_id":426858,"server_id":18,"link":"photo_7919065.html","width":130,"caption":"","height":86});
															thumbnails[7919069] = clik.newPhoto({"id":7919069,"src":"OMAN2_110_thumb.JPG","galleries_id":426858,"server_id":18,"link":"photo_7919069.html","width":130,"caption":"","height":77});
															thumbnails[7919142] = clik.newPhoto({"id":7919142,"src":"DPAV_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":124});
															thumbnails[7919148] = clik.newPhoto({"id":7919148,"src":"HOWICKCLIK_thumb.jpg","galleries_id":400100,"server_id":18,"link":"photo_7919148.html","width":130,"caption":"Howick Hall","height":87});
															thumbnails[7921469] = clik.newPhoto({"id":7921469,"src":"OMAN2_106_thumb.JPG","galleries_id":426858,"server_id":18,"link":"photo_7921469.html","width":130,"caption":"","height":72});
															thumbnails[7925239] = clik.newPhoto({"id":7925239,"src":"golfclub3clik_thumb.jpg","galleries_id":426858,"server_id":18,"link":"photo_7925239.html","width":130,"caption":"","height":80});
															thumbnails[7925326] = clik.newPhoto({"id":7925326,"src":"OMAN2_102_thumb.JPG","galleries_id":426858,"server_id":18,"link":"photo_7925326.html","width":130,"caption":"","height":86});
															thumbnails[7939719] = clik.newPhoto({"id":7939719,"src":"golf2clik1_thumb.jpg","galleries_id":426858,"server_id":18,"link":"photo_7939719.html","width":130,"caption":"","height":80});
															thumbnails[7939722] = clik.newPhoto({"id":7939722,"src":"LOVEclik_thumb.jpg","galleries_id":105071,"server_id":18,"link":"photo_7939722.html","width":130,"caption":"Love","height":94});
															thumbnails[7939728] = clik.newPhoto({"id":7939728,"src":"Anwickclik_thumb.jpg","galleries_id":400100,"server_id":18,"link":"photo_7939728.html","width":130,"caption":"Alnwick Castle Gardens","height":87});
															thumbnails[7939736] = clik.newPhoto({"id":7939736,"src":"dunclik_thumb.jpg","galleries_id":400100,"server_id":18,"link":"photo_7939736.html","width":130,"caption":"Dunstanburgh Castle","height":80});
															thumbnails[7939740] = clik.newPhoto({"id":7939740,"src":"slipwayclik_thumb.jpg","galleries_id":400100,"server_id":18,"link":"photo_7939740.html","width":130,"caption":"Slip Away","height":87});
															thumbnails[7939745] = clik.newPhoto({"id":7939745,"src":"DUNSTclik_thumb.jpg","galleries_id":400100,"server_id":18,"link":"photo_7939745.html","width":130,"caption":"Crown of Light","height":87});
															thumbnails[7939748] = clik.newPhoto({"id":7939748,"src":"ALNWICKclik1_thumb.jpg","galleries_id":400100,"server_id":18,"link":"photo_7939748.html","width":130,"caption":"Alnwick Castle","height":90});
															thumbnails[7939750] = clik.newPhoto({"id":7939750,"src":"howickclik2_thumb.jpg","galleries_id":400100,"server_id":18,"link":"photo_7939750.html","width":130,"caption":"Howick Hall","height":87});
															thumbnails[7939756] = clik.newPhoto({"id":7939756,"src":"gillyclik_thumb.jpg","galleries_id":105071,"server_id":18,"link":"photo_7939756.html","width":130,"caption":"Guillemots","height":87});
															thumbnails[7942684] = clik.newPhoto({"id":7942684,"src":"FUNNYMANCLIK_thumb.jpg","galleries_id":105060,"server_id":18,"link":"photo_7942684.html","width":96,"caption":"\"Are you having a Laugh\"?","height":130});
															thumbnails[7942694] = clik.newPhoto({"id":7942694,"src":"TURNERCLIK_thumb.jpg","galleries_id":400100,"server_id":18,"link":"photo_7942694.html","width":130,"caption":"Lindisfarne Sundown","height":91});
															thumbnails[7942704] = clik.newPhoto({"id":7942704,"src":"hollyCLIK_thumb.jpg","galleries_id":105060,"server_id":18,"link":"photo_7942704.html","width":129,"caption":"Holly","height":130});
															thumbnails[7942768] = clik.newPhoto({"id":7942768,"src":"Thepilgrimclik_thumb.jpg","galleries_id":206198,"server_id":18,"link":"photo_7942768.html","width":91,"caption":"The Pilgrim","height":130});
															thumbnails[7942798] = clik.newPhoto({"id":7942798,"src":"golfclubclik_thumb.jpg","galleries_id":426858,"server_id":18,"link":"photo_7942798.html","width":130,"caption":"","height":86});
															thumbnails[7942807] = clik.newPhoto({"id":7942807,"src":"GOLFCLIK1_thumb.jpg","galleries_id":426858,"server_id":18,"link":"photo_7942807.html","width":130,"caption":"","height":87});
															thumbnails[7948103] = clik.newPhoto({"id":7948103,"src":"DPAVclik_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":124});
															thumbnails[7948781] = clik.newPhoto({"id":7948781,"src":"DPFCLIKbanner_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":21});
															thumbnails[7948786] = clik.newPhoto({"id":7948786,"src":"clikimage_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":97});
															thumbnails[7949163] = clik.newPhoto({"id":7949163,"src":"DPFCLIKbanner1_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":21});
															thumbnails[7949931] = clik.newPhoto({"id":7949931,"src":"grarclik_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":89});
															thumbnails[7951120] = clik.newPhoto({"id":7951120,"src":"ullsclik_thumb.jpg","galleries_id":428113,"server_id":18,"link":"photo_7951120.html","width":130,"caption":"Ullswater","height":87});
															thumbnails[7951150] = clik.newPhoto({"id":7951150,"src":"hollyshowclik_thumb.jpg","galleries_id":428113,"server_id":18,"link":"photo_7951150.html","width":130,"caption":"Princess in the Tower","height":93});
															thumbnails[7951161] = clik.newPhoto({"id":7951161,"src":"CrastharbCLIK_thumb.jpg","galleries_id":428113,"server_id":18,"link":"photo_7951161.html","width":130,"caption":"Craster Harbour","height":87});
															thumbnails[7951288] = clik.newPhoto({"id":7951288,"src":"llanclik_thumb.jpg","galleries_id":428113,"server_id":18,"link":"photo_7951288.html","width":130,"caption":"Llandudno","height":87});
															thumbnails[7951302] = clik.newPhoto({"id":7951302,"src":"ANTIGUAclik_thumb.jpg","galleries_id":428113,"server_id":18,"link":"photo_7951302.html","width":130,"caption":"Antigua","height":77});
															thumbnails[7957676] = clik.newPhoto({"id":7957676,"src":"solitudeclik_thumb.jpg","galleries_id":428113,"server_id":18,"link":"photo_7957676.html","width":130,"caption":"Dead Calm","height":87});
															thumbnails[8167685] = clik.newPhoto({"id":8167685,"src":"ALPINE1Clik_thumb.jpg","galleries_id":400100,"server_id":18,"link":"photo_8167685.html","width":130,"caption":"Alpine Path","height":87});
															thumbnails[8167691] = clik.newPhoto({"id":8167691,"src":"ALPINE6Clik_thumb.jpg","galleries_id":400100,"server_id":18,"link":"photo_8167691.html","width":130,"caption":"Haflinger Horses","height":88});
															thumbnails[8167712] = clik.newPhoto({"id":8167712,"src":"ALPINE3Clik_thumb.jpg","galleries_id":400100,"server_id":18,"link":"photo_8167712.html","width":130,"caption":"Ferwall Glacier Walk","height":87});
															thumbnails[8167714] = clik.newPhoto({"id":8167714,"src":"ALPINE4Clik_thumb.jpg","galleries_id":400100,"server_id":18,"link":"photo_8167714.html","width":130,"caption":"Schonwieshutte Seat","height":87});
															thumbnails[8167739] = clik.newPhoto({"id":8167739,"src":"ALPINE6Clik1_thumb.jpg","galleries_id":400100,"server_id":18,"link":"photo_8167739.html","width":130,"caption":"Pillar See Lake","height":87});
															thumbnails[8167749] = clik.newPhoto({"id":8167749,"src":"ALPINE7Clik_thumb.jpg","galleries_id":400100,"server_id":18,"link":"photo_8167749.html","width":130,"caption":"Gaisberg Trail","height":87});
															thumbnails[8172877] = clik.newPhoto({"id":8172877,"src":"LAYERSclik_thumb.jpg","galleries_id":428113,"server_id":18,"link":"photo_8172877.html","width":130,"caption":"Poppy Field","height":87});
															thumbnails[8172897] = clik.newPhoto({"id":8172897,"src":"meranclik_thumb.jpg","galleries_id":428113,"server_id":18,"link":"photo_8172897.html","width":130,"caption":"Meran Garden's","height":87});
															thumbnails[8345668] = clik.newPhoto({"id":8345668,"src":"MAS18CLIK_thumb.jpg","galleries_id":426858,"server_id":18,"link":"photo_8345668.html","width":130,"caption":"","height":89});
															thumbnails[8345682] = clik.newPhoto({"id":8345682,"src":"MikeFamily_049clik_thumb.jpg","galleries_id":426858,"server_id":18,"link":"photo_8345682.html","width":130,"caption":"","height":87});
															thumbnails[8701311] = clik.newPhoto({"id":8701311,"src":"pisaclik_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":87});
															thumbnails[8701315] = clik.newPhoto({"id":8701315,"src":"fruitclik_thumb.jpg","galleries_id":105060,"server_id":18,"link":"photo_8701315.html","width":130,"caption":"Fruit Seller","height":80});
															thumbnails[8701324] = clik.newPhoto({"id":8701324,"src":"IT1clik_thumb.jpg","galleries_id":400100,"server_id":18,"link":"photo_8701324.html","width":130,"caption":"Lake Maggiore","height":87});
															thumbnails[8701380] = clik.newPhoto({"id":8701380,"src":"handleclik_thumb.jpg","galleries_id":426858,"server_id":18,"link":"photo_8701380.html","width":130,"caption":"","height":76});
															thumbnails[8701419] = clik.newPhoto({"id":8701419,"src":"centclik_thumb.jpg","galleries_id":105060,"server_id":18,"link":"photo_8701419.html","width":130,"caption":"Smoking Centurian","height":87});
															thumbnails[8701430] = clik.newPhoto({"id":8701430,"src":"swissclik_thumb.jpg","galleries_id":105060,"server_id":18,"link":"photo_8701430.html","width":87,"caption":"Swiss Guard","height":130});
															thumbnails[8701712] = clik.newPhoto({"id":8701712,"src":"clik_thumb.jpg","galleries_id":400100,"server_id":18,"link":"photo_8701712.html","width":130,"caption":"Heaven Above ","height":87});
															thumbnails[8701765] = clik.newPhoto({"id":8701765,"src":"maggoireclik_thumb.jpg","galleries_id":400100,"server_id":18,"link":"photo_8701765.html","width":130,"caption":"Isola Pescatori","height":87});
															thumbnails[8783606] = clik.newPhoto({"id":8783606,"src":"goldenhourB_thumb.jpg","galleries_id":428113,"server_id":18,"link":"photo_8783606.html","width":130,"caption":"The Golden Hour","height":74});
															thumbnails[8790639] = clik.newPhoto({"id":8790639,"src":"ROBCLIK_thumb.jpg","galleries_id":105071,"server_id":18,"link":"photo_8790639.html","width":130,"caption":"Robin","height":109});
															thumbnails[8790653] = clik.newPhoto({"id":8790653,"src":"CHAFFinxCLIK_thumb.jpg","galleries_id":105071,"server_id":18,"link":"photo_8790653.html","width":130,"caption":"Chaffinch","height":91});
															thumbnails[8790655] = clik.newPhoto({"id":8790655,"src":"greattitCLIK_thumb.jpg","galleries_id":105071,"server_id":18,"link":"photo_8790655.html","width":130,"caption":"Great Tit","height":85});
															thumbnails[8790656] = clik.newPhoto({"id":8790656,"src":"BEHIND_YOUCLIK_thumb.jpg","galleries_id":105071,"server_id":18,"link":"photo_8790656.html","width":130,"caption":"Behind You","height":102});
															thumbnails[8790658] = clik.newPhoto({"id":8790658,"src":"SWANMUTECLIK_thumb.jpg","galleries_id":105071,"server_id":18,"link":"photo_8790658.html","width":130,"caption":"Mute Swan ","height":91});
															thumbnails[8790661] = clik.newPhoto({"id":8790661,"src":"coaltit.jpgCLIK_thumb.jpg","galleries_id":105071,"server_id":18,"link":"photo_8790661.html","width":130,"caption":"Coal Tit","height":92});
															thumbnails[8790668] = clik.newPhoto({"id":8790668,"src":"Farne2011CLIK_thumb.jpg","galleries_id":105071,"server_id":18,"link":"photo_8790668.html","width":113,"caption":"Arctic Terns","height":130});
															thumbnails[8790843] = clik.newPhoto({"id":8790843,"src":"TUFTYCLIK_thumb.jpg","galleries_id":105071,"server_id":18,"link":"photo_8790843.html","width":130,"caption":"Tufted Duck","height":57});
															thumbnails[8793417] = clik.newPhoto({"id":8793417,"src":"BAMBBWclik_thumb.jpg","galleries_id":206198,"server_id":18,"link":"photo_8793417.html","width":91,"caption":"Bamburgh Castle","height":130});
															thumbnails[8793420] = clik.newPhoto({"id":8793420,"src":"pilgrim1clik_thumb.jpg","galleries_id":206198,"server_id":18,"link":"photo_8793420.html","width":130,"caption":"Pilgrims Way","height":91});
															thumbnails[8793421] = clik.newPhoto({"id":8793421,"src":"SMALLREPAIRSclik_thumb.jpg","galleries_id":206198,"server_id":18,"link":"photo_8793421.html","width":94,"caption":"A Few Small Repairs","height":130});
															thumbnails[8793423] = clik.newPhoto({"id":8793423,"src":"eiderclik_thumb.jpg","galleries_id":105071,"server_id":18,"link":"photo_8793423.html","width":130,"caption":"Female Eider ","height":91});
															thumbnails[8793425] = clik.newPhoto({"id":8793425,"src":"SISKINclik_thumb.jpg","galleries_id":105071,"server_id":18,"link":"photo_8793425.html","width":130,"caption":"Siskin","height":87});
															thumbnails[8795214] = clik.newPhoto({"id":8795214,"src":"Doubletake_thumb.JPG","galleries_id":105071,"server_id":18,"link":"photo_8795214.html","width":130,"caption":"Double Take","height":86});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[400100] = clik.newGallery({"parentGallery":"","usePopups":false,"title":" LATEST IMAGES","link":"gallery_400100.html","maxRecords":0.0,"photoIDs":[7390575.0,7690854.0,7690934.0,7690980.0,7919148.0,7939728.0,7939736.0,7939740.0,7939745.0,7939748.0,7939750.0,7942694.0,8167685.0,8167691.0,8167712.0,8167714.0,8167739.0,8167749.0,8701324.0,8701712.0,8701765.0],"skipIndex":0,"section_code":"gallery","featured_images":"8701765,8701712,8701324,8167749,8167739,8167714,8167712,8167691,8167685,7942694","id":400100,"singleSection":false});				  						galleries[105071] = clik.newGallery({"parentGallery":"","usePopups":false,"title":" My Feathered Friends","link":"gallery_105071.html","maxRecords":0.0,"photoIDs":[3363932.0,3385052.0,3674217.0,4090055.0,5532553.0,5533057.0,5875145.0,6159223.0,7939722.0,7939756.0,8790639.0,8790653.0,8790655.0,8790656.0,8790658.0,8790661.0,8790668.0,8790843.0,8793423.0,8793425.0,8795214.0],"skipIndex":0,"section_code":"gallery","featured_images":"8795214,8793425,8793423,8790843,8790668,8790661,8790658,8790656,8790655,8790653","id":105071,"singleSection":false});				  						galleries[105060] = clik.newGallery({"parentGallery":"","usePopups":false,"title":" PEOPLE","link":"gallery_105060.html","maxRecords":0.0,"photoIDs":[2998526.0,4132256.0,4132261.0,4132305.0,5533117.0,5538322.0,5538520.0,7942684.0,7942704.0,8701315.0,8701419.0,8701430.0],"skipIndex":0,"section_code":"gallery","featured_images":"8701430,8701419,8701315,7942704,7942684,5538520,5538322,5533117,4132305,4132261","id":105060,"singleSection":false});				  						galleries[344439] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"ARCHIVE IMAGES","link":"gallery_344439.html","maxRecords":0.0,"photoIDs":[6156860.0,6858447.0,6858449.0,6858451.0,6858494.0,6858507.0,7082329.0,7082335.0,7082359.0,7082372.0,7082399.0,7082408.0],"skipIndex":0,"section_code":"gallery","featured_images":"7082408,7082399,7082372,7082359,7082335,7082329,6858507,6858494,6858451,6858449","id":344439,"singleSection":false});				  						galleries[206198] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"BLACK & WHITE","link":"gallery_206198.html","maxRecords":0.0,"photoIDs":[1636465.0,3353309.0,4132747.0,4135633.0,5127342.0,5528289.0,7504958.0,7504965.0,7942768.0,8793417.0,8793420.0,8793421.0],"skipIndex":0,"section_code":"gallery","featured_images":"8793421,8793420,8793417,7942768,7504965,7504958,5528289,5127342,4135633,4132747","id":206198,"singleSection":false});				  						galleries[426858] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"COMMERCIAL IMAGES","link":"gallery_426858.html","maxRecords":0.0,"photoIDs":[7919052.0,7919056.0,7919059.0,7919061.0,7919065.0,7919069.0,7921469.0,7925239.0,7925326.0,7939719.0,7942798.0,7942807.0,8345668.0,8345682.0,8701380.0],"skipIndex":0,"section_code":"gallery","featured_images":7921469.0,"id":426858,"singleSection":false});				  						galleries[105072] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"FUNKY PIX","link":"gallery_105072.html","maxRecords":0.0,"photoIDs":[1575452.0,1596270.0,1600752.0,1869165.0,1964991.0,7690905.0],"skipIndex":0,"section_code":"gallery","featured_images":"1869165,1600752,1596270,1575452","id":105072,"singleSection":false});				  						galleries[428113] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"SHOWCASE","link":"gallery_428113.html","maxRecords":0.0,"photoIDs":[4090084.0,4765426.0,5533125.0,6485863.0,7082241.0,7390609.0,7951120.0,7951150.0,7951161.0,7951288.0,7951302.0,7957676.0,8172877.0,8172897.0,8783606.0],"skipIndex":0,"section_code":"gallery","featured_images":"8783606,8172897,8172877,7957676,7951302,7951288,7951161,7951150,7951120,7390609","id":428113,"singleSection":false});				  						galleries[105070] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"THE GREAT OUTDOORS","link":"gallery_105070.html","maxRecords":0.0,"photoIDs":[2826170.0,3239967.0,4385918.0,4758245.0,5538590.0,5538622.0,6346892.0,6486001.0,7106673.0,7106773.0,7168593.0,7390539.0,7390543.0,7390544.0,7390584.0],"skipIndex":0,"section_code":"gallery","featured_images":7390539.0,"id":105070,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '7951120';
imageSets[2] = '7921469,7390539,1869165,1600752,1596270,1575452';
imageSets[3] = '5127342,4765426,4758245,4385918,4135633,4132747,4132305,4132261,4132256,4090084,4090055,3674217,3385052,3368417,3363932,3353309,3239967,2998526';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/Farrago/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/Farrago/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/Farrago/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/Farrago/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/Farrago/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/Farrago/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/Farrago/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/Farrago/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/Farrago/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/Farrago/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/Farrago/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/Farrago/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/Farrago/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/Farrago/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/Farrago/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/Farrago/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/Farrago/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/Farrago/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/Farrago/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/Farrago/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/Farrago/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/Farrago/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/Farrago/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/Farrago/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/Farrago/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/Farrago/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/Farrago/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 = 'DAVID FARRAR 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;
	}
}

			

