window.thumbnails = {};
															thumbnails[2447600] = clik.newPhoto({"id":2447600,"src":"eyes_thumb.jpg","galleries_id":157408,"server_id":5,"link":"photo_2447600.html","width":130,"caption":"Eyes","height":99});
															thumbnails[2449423] = clik.newPhoto({"id":2449423,"src":"churchyard1_thumb.jpg","galleries_id":157853,"server_id":5,"link":"photo_2449423.html","width":130,"caption":"Churchyard 1","height":98});
															thumbnails[2449424] = clik.newPhoto({"id":2449424,"src":"autumn-leaves1_thumb.jpg","galleries_id":157848,"server_id":5,"link":"photo_2449424.html","width":130,"caption":"Autumn leaf","height":98});
															thumbnails[2449447] = clik.newPhoto({"id":2449447,"src":"weston-sunset11_thumb.jpg","galleries_id":157849,"server_id":5,"link":"photo_2449447.html","width":130,"caption":"Weston-super-mare sunset 1","height":87});
															thumbnails[2449449] = clik.newPhoto({"id":2449449,"src":"clevedon-pier1_thumb.jpg","galleries_id":157849,"server_id":5,"link":"photo_2449449.html","width":130,"caption":"Clevedon pier 1","height":92});
															thumbnails[2449451] = clik.newPhoto({"id":2449451,"src":"weston-sunset2_thumb.jpg","galleries_id":157849,"server_id":5,"link":"photo_2449451.html","width":130,"caption":"Weston sunset 2","height":84});
															thumbnails[2450242] = clik.newPhoto({"id":2450242,"src":"high-tide_thumb.jpg","galleries_id":157853,"server_id":5,"link":"photo_2450242.html","width":130,"caption":"High tide","height":103});
															thumbnails[2450292] = clik.newPhoto({"id":2450292,"src":"George21_thumb.jpg","galleries_id":157408,"server_id":5,"link":"photo_2450292.html","width":130,"caption":"Through The Eyes Of A Hunter","height":107});
															thumbnails[2450313] = clik.newPhoto({"id":2450313,"src":"Steamtrain1_thumb.jpg","galleries_id":157853,"server_id":5,"link":"photo_2450313.html","width":130,"caption":"Steam train 1","height":104});
															thumbnails[2450323] = clik.newPhoto({"id":2450323,"src":"tea-time_thumb.jpg","galleries_id":157408,"server_id":5,"link":"photo_2450323.html","width":130,"caption":"Tea-time","height":156});
															thumbnails[2450345] = clik.newPhoto({"id":2450345,"src":"clevedon-sunset3_thumb.jpg","galleries_id":157849,"server_id":5,"link":"photo_2450345.html","width":130,"caption":"Clevedon sunset 3","height":98});
															thumbnails[2450348] = clik.newPhoto({"id":2450348,"src":"freedom_thumb.jpg","galleries_id":157853,"server_id":5,"link":"photo_2450348.html","width":130,"caption":"Freedom","height":98});
															thumbnails[2512949] = clik.newPhoto({"id":2512949,"src":"clevedon-sunset11_thumb.jpg","galleries_id":157849,"server_id":5,"link":"photo_2512949.html","width":130,"caption":"Clevedon sunset 1","height":173});
															thumbnails[2512954] = clik.newPhoto({"id":2512954,"src":"church-clevedon11_thumb.jpg","galleries_id":157849,"server_id":5,"link":"photo_2512954.html","width":130,"caption":"St Andrews church, clevedon 1","height":173});
															thumbnails[2512963] = clik.newPhoto({"id":2512963,"src":"clevedon-pier2_thumb.jpg","galleries_id":157849,"server_id":5,"link":"photo_2512963.html","width":130,"caption":"Clevedon pier 2","height":173});
															thumbnails[2512967] = clik.newPhoto({"id":2512967,"src":"clevedon-pier63_thumb.jpg","galleries_id":157849,"server_id":5,"link":"photo_2512967.html","width":130,"caption":"Clevedon pier 6","height":173});
															thumbnails[2513020] = clik.newPhoto({"id":2513020,"src":"somerset-levels-0151_thumb.jpg","galleries_id":157849,"server_id":5,"link":"photo_2513020.html","width":130,"caption":"Somerset Levels 15","height":115});
															thumbnails[2513025] = clik.newPhoto({"id":2513025,"src":"Weston-pier11_thumb.jpg","galleries_id":157849,"server_id":5,"link":"photo_2513025.html","width":130,"caption":"Weston pier 1","height":173});
															thumbnails[2513028] = clik.newPhoto({"id":2513028,"src":"weston-sunset31_thumb.jpg","galleries_id":157849,"server_id":5,"link":"photo_2513028.html","width":130,"caption":"Weston sunset 3","height":165});
															thumbnails[2513101] = clik.newPhoto({"id":2513101,"src":"sunset-over-bridge21_thumb.jpg","galleries_id":157853,"server_id":5,"link":"photo_2513101.html","width":130,"caption":"Sunset and tree 2","height":169});
															thumbnails[2513243] = clik.newPhoto({"id":2513243,"src":"Angel2_thumb.jpg","galleries_id":157408,"server_id":5,"link":"photo_2513243.html","width":130,"caption":"Angel","height":165});
															thumbnails[2513246] = clik.newPhoto({"id":2513246,"src":"angel12_thumb.jpg","galleries_id":157408,"server_id":5,"link":"photo_2513246.html","width":130,"caption":"Angel 1","height":206});
															thumbnails[2513249] = clik.newPhoto({"id":2513249,"src":"babycakes2_thumb.jpg","galleries_id":157408,"server_id":5,"link":"photo_2513249.html","width":130,"caption":"Babycakes","height":195});
															thumbnails[2513256] = clik.newPhoto({"id":2513256,"src":"paws1_thumb.jpg","galleries_id":157408,"server_id":5,"link":"photo_2513256.html","width":130,"caption":"Paws","height":172});
															thumbnails[2513259] = clik.newPhoto({"id":2513259,"src":"Lily11_thumb.jpg","galleries_id":157408,"server_id":5,"link":"photo_2513259.html","width":130,"caption":"Lily 1","height":173});
															thumbnails[2513312] = clik.newPhoto({"id":2513312,"src":"sophie-31_thumb.jpg","galleries_id":157408,"server_id":5,"link":"photo_2513312.html","width":130,"caption":"Sophie On Red","height":88});
															thumbnails[2513315] = clik.newPhoto({"id":2513315,"src":"Three-of-a-kind,-plus-one1_thumb.jpg","galleries_id":157408,"server_id":5,"link":"photo_2513315.html","width":130,"caption":"Three of a kind, plus one","height":92});
															thumbnails[2513318] = clik.newPhoto({"id":2513318,"src":"trouble1_thumb.jpg","galleries_id":157408,"server_id":5,"link":"photo_2513318.html","width":130,"caption":"Trouble","height":112});
															thumbnails[2521230] = clik.newPhoto({"id":2521230,"src":"Daisy 2_thumb.jpg","galleries_id":157408,"server_id":5,"link":"photo_2521230.html","width":130,"caption":"Daisy 2","height":96});
															thumbnails[2521254] = clik.newPhoto({"id":2521254,"src":"Daisy 3_thumb.jpg","galleries_id":157408,"server_id":5,"link":"photo_2521254.html","width":130,"caption":"Daisy 3","height":173});
															thumbnails[2521405] = clik.newPhoto({"id":2521405,"src":"Windows_thumb.jpg","galleries_id":157853,"server_id":5,"link":"photo_2521405.html","width":130,"caption":"Windows","height":98});
															thumbnails[2521407] = clik.newPhoto({"id":2521407,"src":"The harbour_thumb.jpg","galleries_id":157850,"server_id":5,"link":"photo_2521407.html","width":130,"caption":"The harbour","height":173});
															thumbnails[2521408] = clik.newPhoto({"id":2521408,"src":"The pier_thumb.jpg","galleries_id":157849,"server_id":5,"link":"photo_2521408.html","width":130,"caption":"The pier","height":174});
															thumbnails[2521409] = clik.newPhoto({"id":2521409,"src":"Three plus one - Lilac_thumb.jpg","galleries_id":157408,"server_id":5,"link":"photo_2521409.html","width":130,"caption":"Three of a kind, plus one (lilac)","height":92});
															thumbnails[2521411] = clik.newPhoto({"id":2521411,"src":"Trees 4_thumb.jpg","galleries_id":157853,"server_id":5,"link":"photo_2521411.html","width":130,"caption":"Trees 4","height":173});
															thumbnails[2521412] = clik.newPhoto({"id":2521412,"src":"Water garden_thumb.jpg","galleries_id":157853,"server_id":5,"link":"photo_2521412.html","width":130,"caption":"Water garden","height":92});
															thumbnails[2521413] = clik.newPhoto({"id":2521413,"src":"Uphill 1_thumb.jpg","galleries_id":157849,"server_id":5,"link":"photo_2521413.html","width":130,"caption":"Uphill 1","height":173});
															thumbnails[2521414] = clik.newPhoto({"id":2521414,"src":"Uphill 2_thumb.jpg","galleries_id":157849,"server_id":5,"link":"photo_2521414.html","width":130,"caption":"Uphill 2","height":78});
															thumbnails[2521416] = clik.newPhoto({"id":2521416,"src":"Uphill 3_thumb.jpg","galleries_id":157849,"server_id":5,"link":"photo_2521416.html","width":130,"caption":"Uphill 3","height":98});
															thumbnails[2521418] = clik.newPhoto({"id":2521418,"src":"Uphill 4_thumb.jpg","galleries_id":157849,"server_id":5,"link":"photo_2521418.html","width":130,"caption":"Uphill 4","height":92});
															thumbnails[2521419] = clik.newPhoto({"id":2521419,"src":"Uphill 5_thumb.jpg","galleries_id":157849,"server_id":5,"link":"photo_2521419.html","width":130,"caption":"Uphill 5","height":98});
															thumbnails[2580087] = clik.newPhoto({"id":2580087,"src":"AnticipationSteam-SG3-C3P3097_thumb.jpg","galleries_id":164419,"server_id":5,"link":"photo_2580087.html","width":130,"caption":"Anticipation And Steam","height":92});
															thumbnails[2580093] = clik.newPhoto({"id":2580093,"src":"BathAbbeyArches-SG3-C3P2862_thumb.jpg","galleries_id":164419,"server_id":5,"link":"photo_2580093.html","width":130,"caption":"Bath Abbey Nave Arch","height":90});
															thumbnails[2580120] = clik.newPhoto({"id":2580120,"src":"CatCurtn-SG3-C3P5406_thumb.jpg","galleries_id":164419,"server_id":5,"link":"photo_2580120.html","width":130,"caption":"Cats Eyes And Curtain","height":167});
															thumbnails[2580125] = clik.newPhoto({"id":2580125,"src":"CatSiamHedge-SG3-CSP7460_thumb.jpg","galleries_id":164419,"server_id":5,"link":"photo_2580125.html","width":130,"caption":"Wary Seal Point Siamese","height":130});
															thumbnails[2580174] = clik.newPhoto({"id":2580174,"src":"CherryPick-SG3-CSP6284_thumb.jpg","galleries_id":164419,"server_id":5,"link":"photo_2580174.html","width":130,"caption":"Jostling Cherry Pickers","height":93});
															thumbnails[2580194] = clik.newPhoto({"id":2580194,"src":"GrnRedPark-SG3-CSP7395_thumb.jpg","galleries_id":164419,"server_id":5,"link":"photo_2580194.html","width":130,"caption":"Green Red Multi-Level","height":130});
															thumbnails[2580197] = clik.newPhoto({"id":2580197,"src":"JCB-hydraulic-SG3-CSP0093_thumb.jpg","galleries_id":164419,"server_id":5,"link":"photo_2580197.html","width":130,"caption":"Triangular Yellow Force","height":87});
															thumbnails[2580200] = clik.newPhoto({"id":2580200,"src":"MoonAndLights-SG3-Pict1983_thumb.jpg","galleries_id":164419,"server_id":5,"link":"photo_2580200.html","width":130,"caption":"Moon And Lights","height":130});
															thumbnails[2580201] = clik.newPhoto({"id":2580201,"src":"PigBasking-SG3-CSP71468_thumb.jpg","galleries_id":164419,"server_id":5,"link":"photo_2580201.html","width":130,"caption":"Piggy Basking","height":93});
															thumbnails[2580202] = clik.newPhoto({"id":2580202,"src":"SealsBuyOne-SG3-CP5543_thumb.jpg","galleries_id":164419,"server_id":5,"link":"photo_2580202.html","width":130,"caption":"Seals Saying Buy Me Buy Me","height":87});
															thumbnails[2580229] = clik.newPhoto({"id":2580229,"src":"SpikeLager-SG3-CSP6140b_thumb.jpg","galleries_id":164419,"server_id":5,"link":"photo_2580229.html","width":130,"caption":"Spiked Lager","height":173});
															thumbnails[2580232] = clik.newPhoto({"id":2580232,"src":"SwanBlack-SG3-CSP6199_thumb.jpg","galleries_id":164419,"server_id":5,"link":"photo_2580232.html","width":130,"caption":"Swan On Black","height":98});
															thumbnails[2580234] = clik.newPhoto({"id":2580234,"src":"TeddyGuard-SG3-CSP7682_thumb.jpg","galleries_id":164419,"server_id":5,"link":"photo_2580234.html","width":130,"caption":"Teddy On Guard","height":182});
															thumbnails[2580235] = clik.newPhoto({"id":2580235,"src":"WinscombeFatCow-SG3-C3P5609_thumb.jpg","galleries_id":164419,"server_id":5,"link":"photo_2580235.html","width":130,"caption":"Bovine Bulbousness","height":93});
															thumbnails[2712218] = clik.newPhoto({"id":2712218,"src":"Red Admiral Pair On Buddleia_thumb.jpg","galleries_id":164419,"server_id":5,"link":"photo_2712218.html","width":130,"caption":"Red Admiral Pair On Buddleia","height":87});
															thumbnails[3016648] = clik.newPhoto({"id":3016648,"src":"59_thumb.jpg","galleries_id":157408,"server_id":5,"link":"photo_3016648.html","width":130,"caption":"Tabby Time","height":115});
															thumbnails[3016649] = clik.newPhoto({"id":3016649,"src":"60 copy_thumb.jpg","galleries_id":157855,"server_id":5,"link":"photo_3016649.html","width":130,"caption":"Through The Eyes Of A Hunter (black and white)","height":100});
															thumbnails[3016739] = clik.newPhoto({"id":3016739,"src":"P1040215close up_thumb.jpg","galleries_id":157851,"server_id":5,"link":"photo_3016739.html","width":130,"caption":"Green Velocity","height":94});
															thumbnails[3016742] = clik.newPhoto({"id":3016742,"src":"Curious Cat_thumb.jpg","galleries_id":157408,"server_id":5,"link":"photo_3016742.html","width":130,"caption":"Curious Cat","height":98});
															thumbnails[3016743] = clik.newPhoto({"id":3016743,"src":"Eagles at Rannoch moor_thumb.jpg","galleries_id":157850,"server_id":5,"link":"photo_3016743.html","width":130,"caption":"Eagles At Rannoch Moor","height":92});
															thumbnails[3016745] = clik.newPhoto({"id":3016745,"src":"daisy A3copy_thumb.jpg","galleries_id":157854,"server_id":5,"link":"photo_3016745.html","width":92,"caption":"Daisy Dawning","height":130});
															thumbnails[3016747] = clik.newPhoto({"id":3016747,"src":"DPBORDER36_thumb.jpg","galleries_id":157855,"server_id":5,"link":"photo_3016747.html","width":130,"caption":"Stones With Squares Border","height":88});
															thumbnails[3016749] = clik.newPhoto({"id":3016749,"src":"Faith (inversion)1_thumb.jpg","galleries_id":157854,"server_id":5,"link":"photo_3016749.html","width":130,"caption":"Just Have Faith (inversion)","height":98});
															thumbnails[3016752] = clik.newPhoto({"id":3016752,"src":"Fox_thumb.jpg","galleries_id":157988,"server_id":5,"link":"photo_3016752.html","width":94,"caption":"Fox","height":130});
															thumbnails[3016758] = clik.newPhoto({"id":3016758,"src":"Eye Spy_thumb....jpg","galleries_id":157408,"server_id":5,"link":"photo_3016758.html","width":130,"caption":"Eye Spy...","height":98});
															thumbnails[3016890] = clik.newPhoto({"id":3016890,"src":"feather close up- copy_thumb.jpg","galleries_id":157854,"server_id":5,"link":"photo_3016890.html","width":103,"caption":"Feather Pixels","height":130});
															thumbnails[3016891] = clik.newPhoto({"id":3016891,"src":"Farewell Old Friend_thumb.jpg","galleries_id":157849,"server_id":5,"link":"photo_3016891.html","width":130,"caption":"Farewell Old Friend","height":98});
															thumbnails[3016894] = clik.newPhoto({"id":3016894,"src":"Graffiti Bridge_thumb.jpg","galleries_id":157853,"server_id":5,"link":"photo_3016894.html","width":92,"caption":"Graffiti Bridge","height":130});
															thumbnails[3016930] = clik.newPhoto({"id":3016930,"src":"loch ailort_thumb.jpg","galleries_id":157850,"server_id":5,"link":"photo_3016930.html","width":100,"caption":"Loch Ailort","height":130});
															thumbnails[3016931] = clik.newPhoto({"id":3016931,"src":"magic1_thumb.jpg","galleries_id":157408,"server_id":5,"link":"photo_3016931.html","width":91,"caption":"magic ","height":130});
															thumbnails[3016932] = clik.newPhoto({"id":3016932,"src":"marley7_thumb.jpg","galleries_id":157408,"server_id":5,"link":"photo_3016932.html","width":106,"caption":"Marley","height":130});
															thumbnails[3016933] = clik.newPhoto({"id":3016933,"src":"george 3_thumb.jpg","galleries_id":157408,"server_id":5,"link":"photo_3016933.html","width":99,"caption":"George 3","height":130});
															thumbnails[3016934] = clik.newPhoto({"id":3016934,"src":"Paper Rose_thumb.jpg","galleries_id":157854,"server_id":5,"link":"photo_3016934.html","width":91,"caption":"Paper Rose","height":130});
															thumbnails[3016935] = clik.newPhoto({"id":3016935,"src":"Paper Rose (black and white)_thumb.jpg","galleries_id":157855,"server_id":5,"link":"photo_3016935.html","width":98,"caption":"Paper Rose (black and white)","height":130});
															thumbnails[3016936] = clik.newPhoto({"id":3016936,"src":"Pylon 7_thumb.jpg","galleries_id":157855,"server_id":5,"link":"photo_3016936.html","width":98,"caption":"Pylon 7","height":130});
															thumbnails[3016938] = clik.newPhoto({"id":3016938,"src":"Rain Balls_thumb.jpg","galleries_id":157854,"server_id":5,"link":"photo_3016938.html","width":99,"caption":"Rainbow Balls","height":130});
															thumbnails[3016941] = clik.newPhoto({"id":3016941,"src":"Rannoch moor 3_thumb.jpg","galleries_id":157850,"server_id":5,"link":"photo_3016941.html","width":130,"caption":"Rannoch Moor 3","height":98});
															thumbnails[3016944] = clik.newPhoto({"id":3016944,"src":"Siamese_thumb.jpg","galleries_id":157408,"server_id":5,"link":"photo_3016944.html","width":99,"caption":"Siamese","height":130});
															thumbnails[3016948] = clik.newPhoto({"id":3016948,"src":"The Day The Sea Went Black_thumb.jpg","galleries_id":157849,"server_id":5,"link":"photo_3016948.html","width":130,"caption":"The Day The Sea Went Black","height":98});
															thumbnails[3016951] = clik.newPhoto({"id":3016951,"src":"The Secret_thumb.jpg","galleries_id":157854,"server_id":5,"link":"photo_3016951.html","width":130,"caption":"The Secret","height":92});
															thumbnails[3016953] = clik.newPhoto({"id":3016953,"src":"After The Flood_thumb.jpg","galleries_id":157854,"server_id":5,"link":"photo_3016953.html","width":101,"caption":"After The Flood","height":130});
															thumbnails[3016955] = clik.newPhoto({"id":3016955,"src":"Water Colours_thumb.jpg","galleries_id":157854,"server_id":5,"link":"photo_3016955.html","width":130,"caption":"Water Colours","height":92});
															thumbnails[3016956] = clik.newPhoto({"id":3016956,"src":"Weston Pier 21_thumb.jpg","galleries_id":157849,"server_id":5,"link":"photo_3016956.html","width":130,"caption":"Weston Pier 2","height":98});
															thumbnails[3016957] = clik.newPhoto({"id":3016957,"src":"Weston Pier-Pink  and Purple_thumb.jpg","galleries_id":157849,"server_id":5,"link":"photo_3016957.html","width":102,"caption":"Weston Sunset 3 - Pink And Purple","height":130});
															thumbnails[3016960] = clik.newPhoto({"id":3016960,"src":"Weston Sunset 6_thumb.jpg","galleries_id":157850,"server_id":5,"link":"photo_3016960.html","width":130,"caption":"Evening Stroll","height":98});
															thumbnails[3016962] = clik.newPhoto({"id":3016962,"src":"Zebra Juice No1 copy_thumb.jpg","galleries_id":157855,"server_id":5,"link":"photo_3016962.html","width":99,"caption":"Zebra Juice No1","height":130});
															thumbnails[3016965] = clik.newPhoto({"id":3016965,"src":"Zebra Juice No2_thumb.jpg","galleries_id":157855,"server_id":5,"link":"photo_3016965.html","width":97,"caption":"Zebra Juice No2","height":130});
															thumbnails[3017032] = clik.newPhoto({"id":3017032,"src":"Blue Boat Beach_thumb.jpg","galleries_id":157850,"server_id":5,"link":"photo_3017032.html","width":130,"caption":"Blue Boat Beach","height":69});
															thumbnails[3510772] = clik.newPhoto({"id":3510772,"src":"Boo_thumb....jpg","galleries_id":214722,"server_id":5,"link":"photo_3510772.html","width":92,"caption":"Boo....","height":130});
															thumbnails[3510776] = clik.newPhoto({"id":3510776,"src":"Casper in profile_thumb.jpg","galleries_id":214722,"server_id":5,"link":"photo_3510776.html","width":130,"caption":"Casper in Profile","height":96});
															thumbnails[3510788] = clik.newPhoto({"id":3510788,"src":"golden eagle (best) 1_thumb.jpg","galleries_id":214724,"server_id":5,"link":"photo_3510788.html","width":130,"caption":"Eagle in Profile","height":98});
															thumbnails[3510796] = clik.newPhoto({"id":3510796,"src":"little owl 1_thumb.jpg","galleries_id":214724,"server_id":5,"link":"photo_3510796.html","width":130,"caption":"Little Owl","height":98});
															thumbnails[3510865] = clik.newPhoto({"id":3510865,"src":"tawny owl 1_thumb.jpg","galleries_id":214724,"server_id":5,"link":"photo_3510865.html","width":98,"caption":"Tawny Owl","height":130});
															thumbnails[3510867] = clik.newPhoto({"id":3510867,"src":"wash and brush up_thumb..jpg","galleries_id":214724,"server_id":5,"link":"photo_3510867.html","width":98,"caption":"Wash and Brush Up","height":130});
															thumbnails[3510947] = clik.newPhoto({"id":3510947,"src":"barn owl_thumb.jpg","galleries_id":214724,"server_id":5,"link":"photo_3510947.html","width":98,"caption":"Barn Owl","height":130});
															thumbnails[3510990] = clik.newPhoto({"id":3510990,"src":"cream lilly with orange stamens_thumb.jpg","galleries_id":157848,"server_id":5,"link":"photo_3510990.html","width":130,"caption":"Cream Lily","height":92});
															thumbnails[3510993] = clik.newPhoto({"id":3510993,"src":"In The Spotlight_thumb.jpg","galleries_id":157854,"server_id":5,"link":"photo_3510993.html","width":98,"caption":"In the Spotlight","height":130});
															thumbnails[3511057] = clik.newPhoto({"id":3511057,"src":"Peeping_thumb....jpg","galleries_id":214722,"server_id":5,"link":"photo_3511057.html","width":92,"caption":"Peeping....","height":130});
															thumbnails[3511066] = clik.newPhoto({"id":3511066,"src":"watcher in the woods_thumb.jpg","galleries_id":214722,"server_id":5,"link":"photo_3511066.html","width":97,"caption":"Watcher in the Woods","height":130});
															thumbnails[3511106] = clik.newPhoto({"id":3511106,"src":"Pretty In Pink_thumb.jpg","galleries_id":157408,"server_id":5,"link":"photo_3511106.html","width":98,"caption":"Pretty in Pink","height":130});
															thumbnails[3511111] = clik.newPhoto({"id":3511111,"src":"The world in my eyes_thumb.jpg","galleries_id":157408,"server_id":5,"link":"photo_3511111.html","width":103,"caption":"The World In My Eyes","height":130});
															thumbnails[3511119] = clik.newPhoto({"id":3511119,"src":"what big eyes you have_thumb.... (mono).jpg","galleries_id":157855,"server_id":5,"link":"photo_3511119.html","width":130,"caption":"What Big Eyes You Have... (mono)","height":96});
															thumbnails[3511134] = clik.newPhoto({"id":3511134,"src":"what big eyes you have_thumb.....jpg","galleries_id":157408,"server_id":5,"link":"photo_3511134.html","width":130,"caption":"What Big Eyes You Have....","height":101});
															thumbnails[4113714] = clik.newPhoto({"id":4113714,"src":"Colour_Galaxy1_thumb.jpg","galleries_id":246582,"server_id":5,"link":"photo_4113714.html","width":104,"caption":"Colour Galaxy","height":130});
															thumbnails[4113718] = clik.newPhoto({"id":4113718,"src":"Curves_In_Pink_And_Blue1_thumb.jpg","galleries_id":246582,"server_id":5,"link":"photo_4113718.html","width":130,"caption":"Curves In Pink And Blue","height":98});
															thumbnails[4113727] = clik.newPhoto({"id":4113727,"src":"Jewel_In_The_Crown1_thumb.jpg","galleries_id":246582,"server_id":5,"link":"photo_4113727.html","width":130,"caption":"Jewel In The Crown","height":113});
															thumbnails[4113729] = clik.newPhoto({"id":4113729,"src":"Reflections_And_Light1_thumb.jpg","galleries_id":246582,"server_id":5,"link":"photo_4113729.html","width":85,"caption":"Reflections And Light","height":130});
															thumbnails[4113730] = clik.newPhoto({"id":4113730,"src":"Solar_Winds1_thumb.jpg","galleries_id":246582,"server_id":5,"link":"photo_4113730.html","width":92,"caption":"Solar Winds","height":130});
															thumbnails[4113733] = clik.newPhoto({"id":4113733,"src":"Refractions1_thumb.jpg","galleries_id":246582,"server_id":5,"link":"photo_4113733.html","width":100,"caption":"Refractions","height":130});
															thumbnails[4113736] = clik.newPhoto({"id":4113736,"src":"Spectrum_Runway1_thumb.jpg","galleries_id":246582,"server_id":5,"link":"photo_4113736.html","width":130,"caption":"Spectrum Runway","height":85});
															thumbnails[4113737] = clik.newPhoto({"id":4113737,"src":"The_Rainbow_Tree1_thumb.jpg","galleries_id":246582,"server_id":5,"link":"photo_4113737.html","width":92,"caption":"The Rainbow Tree","height":130});
															thumbnails[4113740] = clik.newPhoto({"id":4113740,"src":"Water_Prisms1_thumb.jpg","galleries_id":246582,"server_id":5,"link":"photo_4113740.html","width":130,"caption":"Water Prisms","height":98});
															thumbnails[4113741] = clik.newPhoto({"id":4113741,"src":"Tranquility1_thumb.jpg","galleries_id":246582,"server_id":5,"link":"photo_4113741.html","width":92,"caption":"Tranquility","height":130});
															thumbnails[4113761] = clik.newPhoto({"id":4113761,"src":"Tranquility_No21_thumb.jpg","galleries_id":246582,"server_id":5,"link":"photo_4113761.html","width":92,"caption":"Tranquility No 2","height":130});
															thumbnails[4113806] = clik.newPhoto({"id":4113806,"src":"sound_wave_spectrum1_thumb.jpg","galleries_id":246582,"server_id":5,"link":"photo_4113806.html","width":92,"caption":"Sound Wave Spectrum","height":130});
															thumbnails[4114851] = clik.newPhoto({"id":4114851,"src":"05_lily_1_author_Sally_Green_thumb.jpg","galleries_id":157848,"server_id":5,"link":"photo_4114851.html","width":98,"caption":"White lily detail","height":130});
															thumbnails[4114861] = clik.newPhoto({"id":4114861,"src":"lily2_author_Sally_Green_thumb.jpg","galleries_id":157848,"server_id":5,"link":"photo_4114861.html","width":98,"caption":"Lily 2","height":130});
															thumbnails[4114868] = clik.newPhoto({"id":4114868,"src":"lily_2saturation_styliser_effectauthor_Sally_Green_thumb.jpg","galleries_id":157854,"server_id":5,"link":"photo_4114868.html","width":98,"caption":"Lily 2 (effect)","height":130});
															thumbnails[4114872] = clik.newPhoto({"id":4114872,"src":"old_pier_author_Sally_Green_thumb.jpg","galleries_id":157854,"server_id":5,"link":"photo_4114872.html","width":130,"caption":"Old Pier - Weston-super-Mare","height":95});
															thumbnails[2513110] = clik.newPhoto({"id":2513110,"src":"april-rain1_thumb.jpg","galleries_id":157848,"server_id":5,"link":"photo_2513110.html","width":130,"caption":"April rain","height":173});
															thumbnails[2521310] = clik.newPhoto({"id":2521310,"src":"Worship_thumb.jpg","galleries_id":157855,"server_id":5,"link":"photo_2521310.html","width":130,"caption":"Worship","height":225});
															thumbnails[2521328] = clik.newPhoto({"id":2521328,"src":"Farmhouse on the hill_thumb.jpg","galleries_id":157850,"server_id":5,"link":"photo_2521328.html","width":130,"caption":"Farmhouse on the hill","height":173});
															thumbnails[2521391] = clik.newPhoto({"id":2521391,"src":"Mother and foal 2_thumb.jpg","galleries_id":157988,"server_id":5,"link":"photo_2521391.html","width":130,"caption":"Mother and foal 2","height":222});
															thumbnails[4274057] = clik.newPhoto({"id":4274057,"src":"Hauling_in__thumb.jpg","galleries_id":161659,"server_id":5,"link":"photo_4274057.html","width":130,"caption":"Hauling In","height":63});
															thumbnails[2521406] = clik.newPhoto({"id":2521406,"src":"The final sunset_thumb.jpg","galleries_id":157850,"server_id":5,"link":"photo_2521406.html","width":130,"caption":"The final sunset","height":200});
															thumbnails[4274070] = clik.newPhoto({"id":4274070,"src":"Waverley_thumb.JPG","galleries_id":161659,"server_id":5,"link":"photo_4274070.html","width":130,"caption":"Waverley","height":86});
															thumbnails[4274092] = clik.newPhoto({"id":4274092,"src":"Butterfly__thumb.jpg","galleries_id":161659,"server_id":5,"link":"photo_4274092.html","width":130,"caption":"Butterfly","height":97});
															thumbnails[4274062] = clik.newPhoto({"id":4274062,"src":"Middle_hope_thumb.JPG","galleries_id":161659,"server_id":5,"link":"photo_4274062.html","width":130,"caption":"Middle Hope","height":87});
															thumbnails[2513099] = clik.newPhoto({"id":2513099,"src":"Steamtrain21_thumb.jpg","galleries_id":157853,"server_id":5,"link":"photo_2513099.html","width":130,"caption":"Steam train 2","height":180});
															thumbnails[2513233] = clik.newPhoto({"id":2513233,"src":"squirrel 1_thumb.jpg","galleries_id":157988,"server_id":5,"link":"photo_2513233.html","width":130,"caption":"Squirrel 1","height":181});
															thumbnails[2521225] = clik.newPhoto({"id":2521225,"src":"Broken swirls_thumb.jpg","galleries_id":157854,"server_id":5,"link":"photo_2521225.html","width":130,"caption":"Broken swirls","height":184});
															thumbnails[2521229] = clik.newPhoto({"id":2521229,"src":"Cornish life_thumb.jpg","galleries_id":157850,"server_id":5,"link":"photo_2521229.html","width":130,"caption":"Cornish life","height":173});
															thumbnails[2521398] = clik.newPhoto({"id":2521398,"src":"Spring flowers_thumb.jpg","galleries_id":157848,"server_id":5,"link":"photo_2521398.html","width":130,"caption":"Spring flowers","height":173});
															thumbnails[4274068] = clik.newPhoto({"id":4274068,"src":"Sand_Yatch_thumb.jpg","galleries_id":161659,"server_id":5,"link":"photo_4274068.html","width":130,"caption":"Sand Yacht","height":98});
															thumbnails[2513238] = clik.newPhoto({"id":2513238,"src":"St Andrews church, clevedon 3 b&w_thumb.jpg","galleries_id":157855,"server_id":5,"link":"photo_2513238.html","width":130,"caption":"St Andrews church, clevedon 3","height":173});
															thumbnails[4274065] = clik.newPhoto({"id":4274065,"src":"Mont_Orgueil_Castle__thumb.jpg","galleries_id":161659,"server_id":5,"link":"photo_4274065.html","width":130,"caption":"Mont Orgueil Castle","height":87});
															thumbnails[4274109] = clik.newPhoto({"id":4274109,"src":"Westonburt_copy_thumb.JPG","galleries_id":161659,"server_id":5,"link":"photo_4274109.html","width":130,"caption":"Westonburt","height":97});
															thumbnails[4274107] = clik.newPhoto({"id":4274107,"src":"orange_flower_copy_thumb.jpg","galleries_id":161659,"server_id":5,"link":"photo_4274107.html","width":130,"caption":"Orange Flower","height":87});
															thumbnails[2450296] = clik.newPhoto({"id":2450296,"src":"mushrooms1_thumb.jpg","galleries_id":157851,"server_id":5,"link":"photo_2450296.html","width":130,"caption":"Mushrooms 1","height":98});
															thumbnails[2513105] = clik.newPhoto({"id":2513105,"src":"Lake-district21_thumb.jpg","galleries_id":157850,"server_id":5,"link":"photo_2513105.html","width":130,"caption":"Lake district 2","height":160});
															thumbnails[2521352] = clik.newPhoto({"id":2521352,"src":"feathers  glow 1_thumb.jpg","galleries_id":157854,"server_id":5,"link":"photo_2521352.html","width":130,"caption":"Feathers glow 1","height":184});
															thumbnails[2521279] = clik.newPhoto({"id":2521279,"src":"Enlightenment 3_thumb.jpg","galleries_id":157855,"server_id":5,"link":"photo_2521279.html","width":130,"caption":"Enlightenment 3","height":173});
															thumbnails[2521274] = clik.newPhoto({"id":2521274,"src":"Enlightenment_thumb.jpg","galleries_id":157855,"server_id":5,"link":"photo_2521274.html","width":130,"caption":"Enlightenment","height":168});
															thumbnails[4274044] = clik.newPhoto({"id":4274044,"src":"baby_robin_thumb.JPG","galleries_id":161659,"server_id":5,"link":"photo_4274044.html","width":130,"caption":"Baby Robiin","height":92});
															thumbnails[2513114] = clik.newPhoto({"id":2513114,"src":"best-of-the-bunch1_thumb.jpg","galleries_id":157848,"server_id":5,"link":"photo_2513114.html","width":130,"caption":"Best of the bunch","height":173});
															thumbnails[2521396] = clik.newPhoto({"id":2521396,"src":"red feathers falling_thumb.jpg","galleries_id":157854,"server_id":5,"link":"photo_2521396.html","width":130,"caption":"Red feathers falling","height":184});
															thumbnails[4274048] = clik.newPhoto({"id":4274048,"src":"Damsel_Fly_thumb.jpg","galleries_id":161659,"server_id":5,"link":"photo_4274048.html","width":130,"caption":"Damsel Fly","height":91});
															thumbnails[4274056] = clik.newPhoto({"id":4274056,"src":"Fyne_Court__thumb.JPG","galleries_id":161659,"server_id":5,"link":"photo_4274056.html","width":130,"caption":"Fyne Court","height":96});
															thumbnails[4274059] = clik.newPhoto({"id":4274059,"src":"Having_Fun_thumb.jpg","galleries_id":161659,"server_id":5,"link":"photo_4274059.html","width":130,"caption":"Having Fun","height":92});
															thumbnails[2513121] = clik.newPhoto({"id":2513121,"src":"Daisy21_thumb.jpg","galleries_id":157848,"server_id":5,"link":"photo_2513121.html","width":130,"caption":"Daisy 2","height":123});
															thumbnails[2521211] = clik.newPhoto({"id":2521211,"src":"Blue droplet 2_thumb.jpg","galleries_id":157851,"server_id":5,"link":"photo_2521211.html","width":130,"caption":"Blue droplet 2","height":97});
															thumbnails[2521307] = clik.newPhoto({"id":2521307,"src":"Spirals 7_thumb.jpg","galleries_id":157855,"server_id":5,"link":"photo_2521307.html","width":130,"caption":"Spirals 7","height":168});
															thumbnails[2521323] = clik.newPhoto({"id":2521323,"src":"Evening stroll_thumb.jpg","galleries_id":157849,"server_id":5,"link":"photo_2521323.html","width":130,"caption":"Evening stroll","height":98});
															thumbnails[2523295] = clik.newPhoto({"id":2523295,"src":"cat in bird feeder copy_thumb.jpg","galleries_id":161659,"server_id":5,"link":"photo_2523295.html","width":130,"caption":"cat in bird feeder ","height":112});
															thumbnails[2521402] = clik.newPhoto({"id":2521402,"src":"Squished 2 (pastel)_thumb.jpg","galleries_id":157854,"server_id":5,"link":"photo_2521402.html","width":130,"caption":"Squished 2 (pastel)","height":188});
															thumbnails[4274053] = clik.newPhoto({"id":4274053,"src":"Egret_thumb.jpg","galleries_id":161659,"server_id":5,"link":"photo_4274053.html","width":130,"caption":"Egret in Flight","height":99});
															thumbnails[2450229] = clik.newPhoto({"id":2450229,"src":"dragonfly_thumb.jpg","galleries_id":214724,"server_id":5,"link":"photo_2450229.html","width":130,"caption":"Dragonfly","height":113});
															thumbnails[2521399] = clik.newPhoto({"id":2521399,"src":"Squished 1 (deep colour)_thumb.jpg","galleries_id":157854,"server_id":5,"link":"photo_2521399.html","width":130,"caption":"Squished 1 (deep colour)","height":173});
															thumbnails[4274051] = clik.newPhoto({"id":4274051,"src":"Dolphins_thumb.JPG","galleries_id":161659,"server_id":5,"link":"photo_4274051.html","width":130,"caption":"Dolphins","height":85});
															thumbnails[2450347] = clik.newPhoto({"id":2450347,"src":"darkness(manipilated)_thumb.jpg","galleries_id":157854,"server_id":5,"link":"photo_2450347.html","width":130,"caption":"Into the light","height":119});
															thumbnails[2450354] = clik.newPhoto({"id":2450354,"src":"geranium1_thumb.jpg","galleries_id":157848,"server_id":5,"link":"photo_2450354.html","width":130,"caption":"Geranium","height":111});
															thumbnails[2513088] = clik.newPhoto({"id":2513088,"src":"firewriting1_thumb.jpg","galleries_id":157854,"server_id":5,"link":"photo_2513088.html","width":130,"caption":"Firewriting","height":106});
															thumbnails[2521204] = clik.newPhoto({"id":2521204,"src":"Autumn trees_thumb.jpg","galleries_id":157850,"server_id":5,"link":"photo_2521204.html","width":130,"caption":"Autunm trees","height":94});
															thumbnails[2521315] = clik.newPhoto({"id":2521315,"src":"Uphill (black and white)_thumb.jpg","galleries_id":157855,"server_id":5,"link":"photo_2521315.html","width":130,"caption":"Uphill (black and white)","height":169});
															thumbnails[2628859] = clik.newPhoto({"id":2628859,"src":"SallyGreen-SwanAndRipples_thumb.jpg","galleries_id":214724,"server_id":5,"link":"photo_2628859.html","width":130,"caption":"Swan and Ripples","height":95});
															thumbnails[4274046] = clik.newPhoto({"id":4274046,"src":"Biddulph_Grange__thumb.jpg","galleries_id":161659,"server_id":5,"link":"photo_4274046.html","width":130,"caption":"Biddulph Grange","height":86});
															thumbnails[2513119] = clik.newPhoto({"id":2513119,"src":"blue-flower11_thumb.jpg","galleries_id":157848,"server_id":5,"link":"photo_2513119.html","width":130,"caption":"Blue flower 1","height":102});
															thumbnails[2521296] = clik.newPhoto({"id":2521296,"src":"Holkham hall 3_thumb.jpg","galleries_id":157855,"server_id":5,"link":"photo_2521296.html","width":130,"caption":"Holker hall 3","height":157});
															thumbnails[2521384] = clik.newPhoto({"id":2521384,"src":"Leaf No4_thumb.jpg","galleries_id":157851,"server_id":5,"link":"photo_2521384.html","width":130,"caption":"Leaf No4","height":92});
															thumbnails[2450302] = clik.newPhoto({"id":2450302,"src":"openrose_thumb.jpg","galleries_id":157848,"server_id":5,"link":"photo_2450302.html","width":130,"caption":"Open rose","height":103});
															thumbnails[2521383] = clik.newPhoto({"id":2521383,"src":"Just have Faith_thumb....jpg","galleries_id":157850,"server_id":5,"link":"photo_2521383.html","width":130,"caption":"Just have Faith...","height":95});
															thumbnails[2449363] = clik.newPhoto({"id":2449363,"src":"Lake-district1_thumb.jpg","galleries_id":157850,"server_id":5,"link":"photo_2449363.html","width":130,"caption":"Lake district 1","height":88});
															thumbnails[2450299] = clik.newPhoto({"id":2450299,"src":"pineapple1_thumb.jpg","galleries_id":157851,"server_id":5,"link":"photo_2450299.html","width":130,"caption":"Pineapple 1","height":93});
															thumbnails[2513236] = clik.newPhoto({"id":2513236,"src":"somerset levels 026 infrared_thumb.jpg","galleries_id":157855,"server_id":5,"link":"photo_2513236.html","width":130,"caption":"Somerset level 26 (infrared)","height":98});
															thumbnails[2521259] = clik.newPhoto({"id":2521259,"src":"Dark autumn_thumb.jpg","galleries_id":157854,"server_id":5,"link":"photo_2521259.html","width":130,"caption":"Dark autumn","height":98});
															thumbnails[2521355] = clik.newPhoto({"id":2521355,"src":"Iguana 2_thumb.jpg","galleries_id":157988,"server_id":5,"link":"photo_2521355.html","width":130,"caption":"Iguana 2","height":103});
															thumbnails[2521385] = clik.newPhoto({"id":2521385,"src":"Lizard 2_thumb.jpg","galleries_id":157988,"server_id":5,"link":"photo_2521385.html","width":130,"caption":"Lizard 2","height":100});
															thumbnails[2449484] = clik.newPhoto({"id":2449484,"src":"leaves(manipilated)_thumb.jpg","galleries_id":157854,"server_id":5,"link":"photo_2449484.html","width":130,"caption":"Rusty leaves","height":98});
															thumbnails[2450247] = clik.newPhoto({"id":2450247,"src":"Dog-days_thumb.jpg","galleries_id":157988,"server_id":5,"link":"photo_2450247.html","width":130,"caption":"Dog days","height":98});
															thumbnails[2521298] = clik.newPhoto({"id":2521298,"src":"Re-claimed by the mud_thumb.jpg","galleries_id":157855,"server_id":5,"link":"photo_2521298.html","width":130,"caption":"Re-claimed by the mud","height":98});
															thumbnails[2450297] = clik.newPhoto({"id":2450297,"src":"oranges_thumb.jpg","galleries_id":157851,"server_id":5,"link":"photo_2450297.html","width":130,"caption":"Oranges","height":92});
															thumbnails[2450372] = clik.newPhoto({"id":2450372,"src":"sunrose2_thumb.jpg","galleries_id":157848,"server_id":5,"link":"photo_2450372.html","width":130,"caption":"Sunrose 2","height":99});
															thumbnails[2513094] = clik.newPhoto({"id":2513094,"src":"New-worlds1_thumb.jpg","galleries_id":157854,"server_id":5,"link":"photo_2513094.html","width":130,"caption":"New worlds","height":100});
															thumbnails[2450320] = clik.newPhoto({"id":2450320,"src":"stones1-b&w_thumb.jpg","galleries_id":157855,"server_id":5,"link":"photo_2450320.html","width":130,"caption":"Stones (black and white)","height":98});
															thumbnails[2450270] = clik.newPhoto({"id":2450270,"src":"church-clevedon2-b&w_thumb.jpg","galleries_id":157855,"server_id":5,"link":"photo_2450270.html","width":130,"caption":"St Andrews Church, clevedon 2 (black and white)","height":98});
															thumbnails[2513241] = clik.newPhoto({"id":2513241,"src":"somerset levels 2_thumb.jpg","galleries_id":157855,"server_id":5,"link":"photo_2513241.html","width":130,"caption":"Somerset levels 2","height":98});
															thumbnails[2521288] = clik.newPhoto({"id":2521288,"src":"Faith (inversion) black and white_thumb.jpg","galleries_id":157855,"server_id":5,"link":"photo_2521288.html","width":130,"caption":"Faith (inversion) black and white","height":98});
															thumbnails[2521265] = clik.newPhoto({"id":2521265,"src":"Dereliction 5_thumb.jpg","galleries_id":157855,"server_id":5,"link":"photo_2521265.html","width":130,"caption":"Dereliction 5","height":95});
															thumbnails[2449466] = clik.newPhoto({"id":2449466,"src":"Weston-pier3-b&w_thumb.jpg","galleries_id":157855,"server_id":5,"link":"photo_2449466.html","width":130,"caption":"Weston pier 3  (black and white)","height":95});
															thumbnails[2449460] = clik.newPhoto({"id":2449460,"src":"somerset-levels1_thumb.jpg","galleries_id":157855,"server_id":5,"link":"photo_2449460.html","width":130,"caption":"Somerset levels 1 (black and white)","height":98});
															thumbnails[2523329] = clik.newPhoto({"id":2523329,"src":"Red Deer copy_thumb.jpg","galleries_id":161659,"server_id":5,"link":"photo_2523329.html","width":130,"caption":"Red Deer ","height":86});
															thumbnails[2521199] = clik.newPhoto({"id":2521199,"src":"Autumn leaves_thumb.jpg","galleries_id":157854,"server_id":5,"link":"photo_2521199.html","width":130,"caption":"Autumn leaves","height":92});
															thumbnails[2521389] = clik.newPhoto({"id":2521389,"src":"Mother and foal 1_thumb.jpg","galleries_id":157988,"server_id":5,"link":"photo_2521389.html","width":130,"caption":"Mother and foal 1","height":92});
															thumbnails[2439253] = clik.newPhoto({"id":2439253,"src":"clevedon-pier(manipilated)_thumb.jpg","galleries_id":157854,"server_id":5,"link":"photo_2439253.html","width":130,"caption":"Clevedon Pier in Brown","height":91});
															thumbnails[2523304] = clik.newPhoto({"id":2523304,"src":"Duckling copy_thumb.jpg","galleries_id":161659,"server_id":5,"link":"photo_2523304.html","width":130,"caption":"Duckling ","height":93});
															thumbnails[2521309] = clik.newPhoto({"id":2521309,"src":"Tractor_thumb.jpg","galleries_id":157855,"server_id":5,"link":"photo_2521309.html","width":130,"caption":"Tractor","height":101});
															thumbnails[2523306] = clik.newPhoto({"id":2523306,"src":"Finch copy_thumb.jpg","galleries_id":161659,"server_id":5,"link":"photo_2523306.html","width":130,"caption":"Finch ","height":86});
															thumbnails[2523307] = clik.newPhoto({"id":2523307,"src":"Gazania copy_thumb.jpg","galleries_id":161659,"server_id":5,"link":"photo_2523307.html","width":130,"caption":"Gazania ","height":86});
															thumbnails[2523308] = clik.newPhoto({"id":2523308,"src":"Geranium and Bee copy_thumb.jpg","galleries_id":161659,"server_id":5,"link":"photo_2523308.html","width":130,"caption":"Geranium and Bee ","height":94});
															thumbnails[2523311] = clik.newPhoto({"id":2523311,"src":"Lemur_01 copy_thumb.jpg","galleries_id":161659,"server_id":5,"link":"photo_2523311.html","width":130,"caption":"Lemur","height":104});
															thumbnails[2523338] = clik.newPhoto({"id":2523338,"src":"Stable Block copy_thumb.jpg","galleries_id":161659,"server_id":5,"link":"photo_2523338.html","width":130,"caption":"Stable Block ","height":86});
															thumbnails[2523313] = clik.newPhoto({"id":2523313,"src":"Otter copy_thumb.jpg","galleries_id":161659,"server_id":5,"link":"photo_2523313.html","width":130,"caption":"Otter ","height":93});
															thumbnails[2513096] = clik.newPhoto({"id":2513096,"src":"somerset-levels-0121_thumb.jpg","galleries_id":157854,"server_id":5,"link":"photo_2513096.html","width":130,"caption":"Somerset levels 12","height":80});
															thumbnails[2521301] = clik.newPhoto({"id":2521301,"src":"Spirals 2_thumb.jpg","galleries_id":157855,"server_id":5,"link":"photo_2521301.html","width":130,"caption":"Spirals 2","height":91});
															thumbnails[2521295] = clik.newPhoto({"id":2521295,"src":"Holkam hall 2_thumb.jpg","galleries_id":157855,"server_id":5,"link":"photo_2521295.html","width":130,"caption":"Holker hall 2","height":91});
															thumbnails[4274060] = clik.newPhoto({"id":4274060,"src":"Ightham_moat_thumb.jpg","galleries_id":161659,"server_id":5,"link":"photo_4274060.html","width":96,"caption":"Ightham Moat","height":130});
															thumbnails[4274066] = clik.newPhoto({"id":4274066,"src":"Part_of_the_Old_Town_Quarry__thumb.JPG","galleries_id":161659,"server_id":5,"link":"photo_4274066.html","width":95,"caption":"Old Town Quarry","height":130});
															thumbnails[4274072] = clik.newPhoto({"id":4274072,"src":"cheeta-02_copy_thumb.JPG","galleries_id":161659,"server_id":5,"link":"photo_4274072.html","width":104,"caption":"Cheetah","height":130});
															thumbnails[4274047] = clik.newPhoto({"id":4274047,"src":"bracket_fungus_thumb.jpg","galleries_id":161659,"server_id":5,"link":"photo_4274047.html","width":130,"caption":"Bracket Fungus","height":125});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[157988] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Animals","link":"gallery_157988.html","maxRecords":0.0,"photoIDs":[3016752.0,2521391.0,2513233.0,2521355.0,2521385.0,2450247.0,2521389.0],"skipIndex":0,"section_code":"gallery","featured_images":"3016752,2521391,2521389,2521385,2521355,2513233,2450247","id":157988,"singleSection":false});				  						galleries[157855] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Black and White","link":"gallery_157855.html","maxRecords":0.0,"photoIDs":[3016649.0,3016747.0,3016935.0,3016936.0,3016962.0,3016965.0,3511119.0,2521310.0,2513238.0,2521279.0,2521274.0,2521307.0,2521315.0,2521296.0,2513236.0,2521298.0,2450320.0,2450270.0,2513241.0,2521288.0,2521265.0,2449466.0,2449460.0,2521309.0,2521301.0,2521295.0],"skipIndex":0,"section_code":"gallery","featured_images":"3511119,3016965,3016962,3016936,3016935,3016747,3016649,2521315,2521310,2521309","id":157855,"singleSection":false});				  						galleries[161659] = clik.newGallery({"parentGallery":161658,"usePopups":false,"title":"Carol Wilson","link":"gallery_161659.html","maxRecords":0.0,"photoIDs":[4274057.0,4274070.0,4274092.0,4274062.0,4274068.0,4274065.0,4274109.0,4274107.0,4274044.0,4274048.0,4274056.0,4274059.0,2523295.0,4274053.0,4274051.0,4274046.0,2523329.0,2523304.0,2523306.0,2523307.0,2523308.0,2523311.0,2523338.0,2523313.0,4274060.0,4274066.0,4274072.0,4274047.0],"skipIndex":0,"section_code":"gallery","featured_images":"4274109,4274092,4274056,2523329,2523313,2523311,2523306,2523304","id":161659,"singleSection":false});				  						galleries[164419] = clik.newGallery({"parentGallery":161658,"usePopups":false,"title":"Colin S Pearson","link":"gallery_164419.html","maxRecords":0.0,"photoIDs":[2580087.0,2580093.0,2580120.0,2580125.0,2580174.0,2580194.0,2580197.0,2580200.0,2580201.0,2580202.0,2580229.0,2580232.0,2580234.0,2580235.0,2712218.0],"skipIndex":0,"section_code":"gallery","featured_images":2580194.0,"id":164419,"singleSection":false});				  						galleries[157848] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Flowers","link":"gallery_157848.html","maxRecords":0.0,"photoIDs":[2449424.0,3510990.0,4114851.0,4114861.0,2513110.0,2521398.0,2513114.0,2513121.0,2450354.0,2513119.0,2450302.0,2450372.0],"skipIndex":0,"section_code":"gallery","featured_images":"4114861,4114851,3510990,2521398,2513121,2513119,2513114,2513110,2450372,2450354","id":157848,"singleSection":false});				  						galleries[161658] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Guest Photographers","link":"gallery_161658.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"4274109,4274092,4274056,2580194,2523329,2523313,2523311,2523306,2523304","id":161658,"singleSection":false});				  						galleries[157850] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Landscapes","link":"gallery_157850.html","maxRecords":0.0,"photoIDs":[2521407.0,3016743.0,3016930.0,3016941.0,3016960.0,3017032.0,2521328.0,2521406.0,2521229.0,2513105.0,2521204.0,2521383.0,2449363.0],"skipIndex":0,"section_code":"gallery","featured_images":"3017032,3016960,3016941,3016930,3016743,2521407,2521406,2521383,2521328,2521229","id":157850,"singleSection":false});				  						galleries[157851] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Macro","link":"gallery_157851.html","maxRecords":0.0,"photoIDs":[3016739.0,2450296.0,2521211.0,2521384.0,2450299.0,2450297.0],"skipIndex":0,"section_code":"gallery","featured_images":"3016739,2521384,2521211,2450299,2450297,2450296","id":157851,"singleSection":false});				  						galleries[157854] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Manipulated","link":"gallery_157854.html","maxRecords":0.0,"photoIDs":[3016745.0,3016749.0,3016890.0,3016934.0,3016938.0,3016951.0,3016953.0,3016955.0,3510993.0,4114868.0,4114872.0,2521225.0,2521352.0,2521396.0,2521402.0,2521399.0,2450347.0,2513088.0,2521259.0,2449484.0,2513094.0,2521199.0,2439253.0,2513096.0],"skipIndex":0,"section_code":"gallery","featured_images":"4114872,4114868,3510993,3016955,3016953,3016951,3016938,3016934,3016890,3016749","id":157854,"singleSection":false});				  						galleries[157853] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"miscellaneous  ","link":"gallery_157853.html","maxRecords":0.0,"photoIDs":[2449423.0,2450242.0,2450313.0,2450348.0,2513101.0,2521405.0,2521411.0,2521412.0,3016894.0,2513099.0],"skipIndex":0,"section_code":"gallery","featured_images":"3016894,2521412,2521411,2521405,2513101,2513099,2450348,2450313,2450242,2449423","id":157853,"singleSection":false});				  						galleries[246582] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Spectrum Art","link":"gallery_246582.html","maxRecords":0.0,"photoIDs":[4113714.0,4113718.0,4113727.0,4113729.0,4113730.0,4113733.0,4113736.0,4113737.0,4113740.0,4113741.0,4113761.0,4113806.0],"skipIndex":0,"section_code":"gallery","featured_images":"4113741,4113727","id":246582,"singleSection":false});				  						galleries[157849] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"West country","link":"gallery_157849.html","maxRecords":0.0,"photoIDs":[2449447.0,2449449.0,2449451.0,2450345.0,2512949.0,2512954.0,2512963.0,2512967.0,2513020.0,2513025.0,2513028.0,2521408.0,2521413.0,2521414.0,2521416.0,2521418.0,2521419.0,3016891.0,3016948.0,3016956.0,3016957.0,2521323.0],"skipIndex":0,"section_code":"gallery","featured_images":2449447.0,"id":157849,"singleSection":false});				  						galleries[214722] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"My Latest Work","link":"gallery_214722.html","maxRecords":0.0,"photoIDs":[3510772.0,3510776.0,3511057.0,3511066.0],"skipIndex":0,"section_code":"gallery","featured_images":"3511066,3511057,3510776,3510772","id":214722,"singleSection":false});				  						galleries[214724] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Birds and Creatures of Flight.","link":"gallery_214724.html","maxRecords":0.0,"photoIDs":[3510788.0,3510796.0,3510865.0,3510867.0,3510947.0,2450229.0,2628859.0],"skipIndex":0,"section_code":"gallery","featured_images":"3510947,3510867,3510865,3510796,3510788,2628859,2450229","id":214724,"singleSection":false});				  						galleries[157408] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Cats","link":"gallery_157408.html","maxRecords":0.0,"photoIDs":[2447600.0,2450292.0,2450323.0,2513243.0,2513246.0,2513249.0,2513256.0,2513259.0,2513312.0,2513315.0,2513318.0,2521230.0,2521254.0,2521409.0,3016648.0,3016742.0,3016758.0,3016931.0,3016932.0,3016933.0,3016944.0,3511106.0,3511111.0,3511134.0],"skipIndex":0,"section_code":"gallery","featured_images":2447600.0,"id":157408,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '4114872,4113806,4113737,3511134,3511106,3511057,3510990,3510947,3510865,3510796,3017032,3016955,3016953,3016948,3016752,3016745,2580232,2580194,2580120,2580087,2521419,2521413,2521412,2521405,2521230,2450292,2449451,2449449,2449447,2449424,2447600,2521328,2521406,2521229,2521352,2521396,2521323,2521315,2628859,2450302,2449363,2521355,2521259,2450372,2521288,2521265,2449460,2521199,2521389,2521301,2521295';
imageSets[2] = '4113741,4113727,2580194,2449447,2447600,4274092,4274109,4274056,2523329,2523304,2523306,2523311,2523313';
imageSets[3] = '4274109,4274107,4274092,4274072,4274070,4274068,4274066,4274065,4274062,4274060,4274059,4274057,4274056,4274053,4274051,4274048,4274047,4274046,4274044,4114872,4114868,4114861,4114851,4113806,4113761,4113741,4113740,4113737,4113736,4113733,4113730,4113729,4113727,4113718,4113714,3511134,3511119,3511111,3511106,3511066,3511057,3510993,3510990,3510947,3510867,3510865,3510796,3510788,3510776,3510772';
imageSets[120743] = '4114872,4114851,4113806,4113741,4113740,4113737,4113729,4113727,4113718,4113714,3511119,3511106,3511066,3511057,3510772,2521413,2521412,2513315,2513312,2513249,2513243,2513028,2450292,2449447,2447600,2521328,2513110,2521406,2521229,2521274,2513114,2521323,2521307,2450229,2628859,2521384,2513119,2521259,2513236,2521385,2450372,2450270,2449460,2521199,2439253';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/sallygreen/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/sallygreen/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/sallygreen/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/sallygreen/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/sallygreen/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/sallygreen/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/sallygreen/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/sallygreen/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/sallygreen/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/sallygreen/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/sallygreen/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/sallygreen/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/sallygreen/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/sallygreen/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/sallygreen/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/sallygreen/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/sallygreen/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/sallygreen/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/sallygreen/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/sallygreen/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/sallygreen/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/sallygreen/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/sallygreen/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/sallygreen/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/sallygreen/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = backgrounds && backgrounds[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$detailContainer:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
		op = $.extend({},defaults,options),
		html = '', temp = '',
		photoId = op.nextPhoto.id,
		photoCaption = ''+op.nextPhoto.caption,
		photoSrc = op.nextPhoto.src;
	
	if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'White Leopard Graphics: ' + 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>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
		 									temp += '<select class="paymentlink" name="payment_options_id" onchange="updateCartValue($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
	else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
											temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm">';
			temp += '	<input type="hidden" name="item_option" value="' + item_option + '">';
			temp += '	<input type="hidden" name="site" value="SALLYGREEN">';
			temp += '	<input type="hidden" name="item_number" value="'+ this.id +'">';
			temp += '	<input type="hidden" name="quantity" value="1">';
						temp += '	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\'\;" onmouseout="this.className=\'button\'\;" type="Button">';
							temp += '	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';
			temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
			temp += '<div id="confirmContainer">';
			temp += '<div id="paymentConfirm">Item added to cart</div>';
			temp += '</div>';
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

