window.thumbnails = {};
															thumbnails[2803415] = clik.newPhoto({"id":2803415,"src":"Stainforth-Force_thumb.jpg","galleries_id":135625,"server_id":32,"link":"photo_2803415.html","width":130,"caption":"Stainforth Force <em>Annette Miller<\/em> 1st","height":87});
															thumbnails[3393080] = clik.newPhoto({"id":3393080,"src":"w-Female-Spider,-Argiope-br_thumb.jpg","galleries_id":207196,"server_id":32,"link":"photo_3393080.html","width":130,"caption":"Female Spider, Argiope bruennichi <em>Michael Newton<\/em> 1st","height":98});
															thumbnails[3393096] = clik.newPhoto({"id":3393096,"src":"w-This-Way-to-The-Ballroom-_thumb.jpg","galleries_id":207196,"server_id":32,"link":"photo_3393096.html","width":130,"caption":"This Way to The Ballroom <em>Alisa Yates<\/em> 2nd","height":98});
															thumbnails[3393100] = clik.newPhoto({"id":3393100,"src":"w-Pale-Clouded-Yellow-JMN_thumb.jpg","galleries_id":207196,"server_id":32,"link":"photo_3393100.html","width":130,"caption":"Pale Clouded Yellow <em>Michael Newton<\/em> 3rd","height":98});
															thumbnails[3393103] = clik.newPhoto({"id":3393103,"src":"w-Liverpool-Art-Installatio_thumb.jpg","galleries_id":207196,"server_id":32,"link":"photo_3393103.html","width":130,"caption":"Liverpool Art Installation <em>John Vessey<\/em> Highly Comm.","height":102});
															thumbnails[3393107] = clik.newPhoto({"id":3393107,"src":"w-Light-in-Malaga-Cathedral_thumb.jpg","galleries_id":207196,"server_id":32,"link":"photo_3393107.html","width":98,"caption":"Light in Malaga Cathedral <em>Michael Newton<\/em> Highly Comm.","height":130});
															thumbnails[3393113] = clik.newPhoto({"id":3393113,"src":"w-Green-Glade-HR_thumb.jpg","galleries_id":207196,"server_id":32,"link":"photo_3393113.html","width":87,"caption":"Green Glade <em>Howard Rawlinson<\/em> Comm.","height":130});
															thumbnails[2019322] = clik.newPhoto({"id":2019322,"src":"w-The-Health-and-Safety-Ins_thumb.jpg","galleries_id":135362,"server_id":32,"link":"photo_2019322.html","width":130,"caption":"The Health and Safety Inspector's Nightmare <em>Howard Rawlinson<\/em> 1st","height":88});
															thumbnails[2074643] = clik.newPhoto({"id":2074643,"src":"w-Male-Emerald-Damselfly-Le_thumb.jpg","galleries_id":132748,"server_id":32,"link":"photo_2074643.html","width":130,"caption":"Male Emerald Damselfly (Lestes sponsa) <em>Annette Miller<\/em> 1st","height":89});
															thumbnails[2074731] = clik.newPhoto({"id":2074731,"src":"P-R-1-Loyghrigg-Fell-19-Mar_thumb.jpg","galleries_id":135625,"server_id":32,"link":"photo_2074731.html","width":130,"caption":"Loughrigg Fell 19th March <em>Max Sunderland<\/em> 2nd","height":86});
															thumbnails[2074741] = clik.newPhoto({"id":2074741,"src":"P-R-2-Male-Yellow-Warbler-on-Coral-Beach-20-Marks-&-1st_thumb.jpg","galleries_id":135626,"server_id":32,"link":"photo_2074741.html","width":130,"caption":"Male Yellow Warbler on Coral Beach <em>Max Sunderland<\/em> 1st","height":87});
															thumbnails[2122029] = clik.newPhoto({"id":2122029,"src":"02-Damsel-Fly-RIMG1087_thumb.jpg","galleries_id":141149,"server_id":32,"link":"photo_2122029.html","width":130,"caption":"Damselfly <em>Philip Dean<\/em> 1st","height":98});
															thumbnails[2450391] = clik.newPhoto({"id":2450391,"src":"1 Norwegian Wood H Rawlinson_thumb.jpg","galleries_id":157997,"server_id":32,"link":"photo_2450391.html","width":95,"caption":"Norwegian Wood <em>Howard Rawlinson<\/em> 1st","height":130});
															thumbnails[2872399] = clik.newPhoto({"id":2872399,"src":"3-School's-Out-AM-blank_thumb.jpg","galleries_id":177981,"server_id":32,"link":"photo_2872399.html","width":130,"caption":"School's Out <em>Annette Miller<\/em> 1st","height":97});
															thumbnails[3308116] = clik.newPhoto({"id":3308116,"src":"w-Oyster-Catcher-With-Eggs_thumb.jpg","galleries_id":201291,"server_id":32,"link":"photo_3308116.html","width":130,"caption":"Oyster catcher with Eggs <em>Max Sunderland<\/em> (Applied Class) 1st","height":98});
															thumbnails[3419040] = clik.newPhoto({"id":3419040,"src":"Behind-Bars-R-4-08-1st_thumb.jpg","galleries_id":157995,"server_id":32,"link":"photo_3419040.html","width":130,"caption":"Behind Bars <em>Max Sunderland<\/em> !st","height":87});
															thumbnails[3420125] = clik.newPhoto({"id":3420125,"src":"American-Oystercatcher-taking-a-bath-R-1-09-1st_thumb.jpg","galleries_id":207195,"server_id":32,"link":"photo_3420125.html","width":130,"caption":"American Oystercatcher taking a bath <em>Max Sunderland<\/em> 1st","height":87});
															thumbnails[3420169] = clik.newPhoto({"id":3420169,"src":"Lion 2_thumb.jpg","galleries_id":201290,"server_id":32,"link":"photo_3420169.html","width":113,"caption":"Lion, Kruger National Park <em>Alan Greenwood<\/em> (Applied Class) 1st","height":130});
															thumbnails[3677048] = clik.newPhoto({"id":3677048,"src":"1st-A-Emerald-Damselfly-_thumb.jpg","galleries_id":224669,"server_id":32,"link":"photo_3677048.html","width":98,"caption":"Emerald Damselfly <em>Jim Strom<\/em> 1st","height":130});
															thumbnails[5886689] = clik.newPhoto({"id":5886689,"src":"JBSunset-through-the-pier_1st_thumb.jpg","galleries_id":332474,"server_id":32,"link":"photo_5886689.html","width":98,"caption":"Sunset through the pier <em>Judith Baron<\/em> 1st","height":130});
															thumbnails[5887774] = clik.newPhoto({"id":5887774,"src":"JSAGolden-Torch-Cactus-Bi_thumb.jpg","galleries_id":332544,"server_id":32,"link":"photo_5887774.html","width":98,"caption":"Golden Torch Cactus <em>Jim Strom<\/em> (Applied Class) 1st & Best in Competition","height":130});
															thumbnails[2019337] = clik.newPhoto({"id":2019337,"src":"w-A-Male-Metellina-segmenta_thumb.jpg","galleries_id":135362,"server_id":32,"link":"photo_2019337.html","width":130,"caption":"Male Metellina segmenta & prey <em>Annette Miller<\/em> 2nd ","height":115});
															thumbnails[2074650] = clik.newPhoto({"id":2074650,"src":"w-Geochelone-Elephantopus-P_thumb.jpg","galleries_id":132748,"server_id":32,"link":"photo_2074650.html","width":130,"caption":"Geochelone Elephantopus Portrait <em>Max Sunderland<\/em> 2nd","height":98});
															thumbnails[2074739] = clik.newPhoto({"id":2074739,"src":"P-R-1-Poncho-Man-17-Marks-&_thumb.jpg","galleries_id":135625,"server_id":32,"link":"photo_2074739.html","width":130,"caption":"Poncho Man <em>Max Sunderland<\/em> Highly Comm.","height":87});
															thumbnails[2122031] = clik.newPhoto({"id":2122031,"src":"Franklins-Gull-_thumb.jpg","galleries_id":141149,"server_id":32,"link":"photo_2122031.html","width":130,"caption":"Franklins Gull <em>Max Sunderland<\/em> 2nd","height":98});
															thumbnails[2450413] = clik.newPhoto({"id":2450413,"src":"2 Lord of the Flies Annette Miller_thumb.jpg","galleries_id":157997,"server_id":32,"link":"photo_2450413.html","width":130,"caption":"Lord of the Flies <em>Annette Miller<\/em> 2nd","height":96});
															thumbnails[2862124] = clik.newPhoto({"id":2862124,"src":"1-A-Lot-of-Hot-Air-AM_thumb.jpg","galleries_id":177981,"server_id":32,"link":"photo_2862124.html","width":130,"caption":"A Lot of Hot Air <em>Annette Miller<\/em> 2nd","height":89});
															thumbnails[3308225] = clik.newPhoto({"id":3308225,"src":"w-Small-Tortoiseshell_thumb.jpg","galleries_id":201291,"server_id":32,"link":"photo_3308225.html","width":130,"caption":"Small Tortoiseshell Butterfly <em>Michael Newton<\/em> (Applied Class) 2nd","height":98});
															thumbnails[3420128] = clik.newPhoto({"id":3420128,"src":"Winter-Wonderland_thumb.jpg","galleries_id":207195,"server_id":32,"link":"photo_3420128.html","width":130,"caption":"Winter Wonderland <em>Michael Newton<\/em> 2nd","height":103});
															thumbnails[3677064] = clik.newPhoto({"id":3677064,"src":"2nd-First-Flowers_thumb.jpg","galleries_id":224669,"server_id":32,"link":"photo_3677064.html","width":130,"caption":"First Flowers <em>Michael Newton<\/em> 2nd","height":98});
															thumbnails[5886790] = clik.newPhoto({"id":5886790,"src":"JMNBeauty-in-Death-2nd_thumb.jpg","galleries_id":332474,"server_id":32,"link":"photo_5886790.html","width":130,"caption":"Beauty in Death <em>Michael Newton<\/em> 2nd","height":86});
															thumbnails[5887780] = clik.newPhoto({"id":5887780,"src":"APDAGentiana-alpina-2nd_thumb.jpg","galleries_id":332544,"server_id":32,"link":"photo_5887780.html","width":130,"caption":"Gentiana alpina <em>Tony Dyson<\/em> (Applied Class) 2nd","height":98});
															thumbnails[2019342] = clik.newPhoto({"id":2019342,"src":"w-2-Foot-Of-The-Cascade-P10_thumb.jpg","galleries_id":135362,"server_id":32,"link":"photo_2019342.html","width":130,"caption":"Foot Of The Cascade <em>Philip Dean<\/em> 3rd","height":98});
															thumbnails[2023192] = clik.newPhoto({"id":2023192,"src":"Little-Nipper_thumb.jpg","galleries_id":135626,"server_id":32,"link":"photo_2023192.html","width":130,"caption":"Little Nipper <em>Jim Strom<\/em> 3rd","height":98});
															thumbnails[2074655] = clik.newPhoto({"id":2074655,"src":"w-Beach-Boys-JS_thumb.jpg","galleries_id":132748,"server_id":32,"link":"photo_2074655.html","width":130,"caption":"Beach Boys <em>Jim Strom<\/em> 3rd","height":98});
															thumbnails[2074738] = clik.newPhoto({"id":2074738,"src":"P-R-1-Vermilion-Flycatcher-_thumb.jpg","galleries_id":135625,"server_id":32,"link":"photo_2074738.html","width":130,"caption":"Vermilion Flycatcher <em>Max Sunderland<\/em> Highly Comm.","height":87});
															thumbnails[2122032] = clik.newPhoto({"id":2122032,"src":"A-Ruddy-Darter-detail-Annet_thumb.jpg","galleries_id":141149,"server_id":32,"link":"photo_2122032.html","width":130,"caption":"Ruddy Darter Detail <em>Annette Miller<\/em> 3rd=","height":112});
															thumbnails[2179700] = clik.newPhoto({"id":2179700,"src":"Grey-Herons_thumb.jpg","galleries_id":141148,"server_id":32,"link":"photo_2179700.html","width":85,"caption":"Grey Herons on Nest <em>Annette Miller<\/em> 3rd=","height":130});
															thumbnails[2450416] = clik.newPhoto({"id":2450416,"src":"3 Angel Annette Miller_thumb.jpg","galleries_id":157997,"server_id":32,"link":"photo_2450416.html","width":130,"caption":"Angel <em>Annette Miller<\/em> 3rd","height":106});
															thumbnails[2461579] = clik.newPhoto({"id":2461579,"src":"Liner _thumb.jpg","galleries_id":157995,"server_id":32,"link":"photo_2461579.html","width":130,"caption":"Liner <em>Alan Greenwood<\/em> 2nd=","height":99});
															thumbnails[2862129] = clik.newPhoto({"id":2862129,"src":"6-Fooling-the-Fountains-(my_thumb.jpg","galleries_id":177981,"server_id":32,"link":"photo_2862129.html","width":130,"caption":"Fooling the Fountains (my Niece) <em>John Vessey<\/em> 3rd=","height":95});
															thumbnails[2864609] = clik.newPhoto({"id":2864609,"src":"A-Wild-Bunch-of-Summer-Visi_thumb.jpg","galleries_id":177979,"server_id":32,"link":"photo_2864609.html","width":130,"caption":"A Wild Bunch of Summer Visitors <em>Annette Miller<\/em> 3rd","height":90});
															thumbnails[3308227] = clik.newPhoto({"id":3308227,"src":"w-Chaffinch_thumb.jpg","galleries_id":201291,"server_id":32,"link":"photo_3308227.html","width":98,"caption":"Chaffinch <em>Philip Dean<\/em> (Applied Class) 3rd=","height":130});
															thumbnails[3420131] = clik.newPhoto({"id":3420131,"src":"City-ArtistR-1-09-3rd_thumb.jpg","galleries_id":207195,"server_id":32,"link":"photo_3420131.html","width":130,"caption":"City Artist <em>Max Sunderland<\/em> 3rd","height":86});
															thumbnails[3677068] = clik.newPhoto({"id":3677068,"src":"3rd-Nice-to-Chat_Max-Sunder_thumb.jpg","galleries_id":224669,"server_id":32,"link":"photo_3677068.html","width":130,"caption":"Nice to Chat <em>Max Sunderland<\/em> 3rd","height":86});
															thumbnails[5886855] = clik.newPhoto({"id":5886855,"src":"APDAve-Maria-3rd_thumb.jpg","galleries_id":332474,"server_id":32,"link":"photo_5886855.html","width":130,"caption":"Ave Maria <em>Tony Dyson<\/em> 3rd","height":98});
															thumbnails[5887784] = clik.newPhoto({"id":5887784,"src":"MSABrown-Pelican-in-Fligh_thumb.jpg","galleries_id":332544,"server_id":32,"link":"photo_5887784.html","width":130,"caption":"Brown Pelican in Flight <em>Max Sunderland<\/em> (Applied Class) 3rd","height":98});
															thumbnails[2179704] = clik.newPhoto({"id":2179704,"src":"Hellibore1_thumb.jpg","galleries_id":141148,"server_id":32,"link":"photo_2179704.html","width":87,"caption":"Hellebore 1 <em>Annette Miller<\/em> 3rd=","height":130});
															thumbnails[2450675] = clik.newPhoto({"id":2450675,"src":"3 Pirn-Bobbins_thumb.jpg","galleries_id":157995,"server_id":32,"link":"photo_2450675.html","width":130,"caption":"Pirn Bobbins <em>Jim Strom<\/em> 4th","height":98});
															thumbnails[2019352] = clik.newPhoto({"id":2019352,"src":"w-Squirrel-Nutkin-(Jim-Stro_thumb.jpg","galleries_id":135362,"server_id":32,"link":"photo_2019352.html","width":98,"caption":"Squirrel Nutkin <em>Jim Strom<\/em> Highly Comm.","height":130});
															thumbnails[2023431] = clik.newPhoto({"id":2023431,"src":"Blue-Harbour_thumb.jpg","galleries_id":135626,"server_id":32,"link":"photo_2023431.html","width":98,"caption":"Blue Harbour <em>Jim Strom<\/em> Highly Comm.","height":130});
															thumbnails[2074662] = clik.newPhoto({"id":2074662,"src":"w-Sunshine-Yellow-AJY_thumb.jpg","galleries_id":132748,"server_id":32,"link":"photo_2074662.html","width":130,"caption":"Sunshine Yellow <em>Alisa Yates<\/em> Highly Comm.","height":93});
															thumbnails[2122033] = clik.newPhoto({"id":2122033,"src":"Oyster-Catcher-With-Eggs_thumb.jpg","galleries_id":141149,"server_id":32,"link":"photo_2122033.html","width":130,"caption":"Oystercatcher with Eggs <em>Max Sunderland<\/em> 3rd=","height":98});
															thumbnails[2176593] = clik.newPhoto({"id":2176593,"src":"Misty-Blue-for-web_thumb.jpg","galleries_id":141148,"server_id":32,"link":"photo_2176593.html","width":130,"caption":"Misty Blue <em>Graham Speak<\/em> Comm.","height":98});
															thumbnails[2450419] = clik.newPhoto({"id":2450419,"src":"HC In the pink H Rawlinson_thumb.jpg","galleries_id":157997,"server_id":32,"link":"photo_2450419.html","width":88,"caption":"In The Pink <em>Howard Rawlinson<\/em> Highly Comm.","height":130});
															thumbnails[2450676] = clik.newPhoto({"id":2450676,"src":"HC blue-haze_thumb.jpg","galleries_id":157995,"server_id":32,"link":"photo_2450676.html","width":130,"caption":"Blue Haze <em>Annette Miller<\/em> Highly Comm.","height":92});
															thumbnails[2864580] = clik.newPhoto({"id":2864580,"src":"1-Buttercups-JV_thumb.jpg","galleries_id":177981,"server_id":32,"link":"photo_2864580.html","width":130,"caption":"Buttercups <em>John Vessey<\/em> 3rd=","height":97});
															thumbnails[2872537] = clik.newPhoto({"id":2872537,"src":"My-Generation_thumb.jpg","galleries_id":177979,"server_id":32,"link":"photo_2872537.html","width":130,"caption":"My Generation: Summer of Seaside Skirmishes <em>Annette Miller<\/em> Highly Commended","height":116});
															thumbnails[3308229] = clik.newPhoto({"id":3308229,"src":"w-Starling_thumb.jpg","galleries_id":201291,"server_id":32,"link":"photo_3308229.html","width":130,"caption":"Starling <em>Maureen Dean<\/em> (Applied Class) 3rd=","height":98});
															thumbnails[3418926] = clik.newPhoto({"id":3418926,"src":"Mocking-Bird--Annual-08-H_thumb.C..jpg","galleries_id":201290,"server_id":32,"link":"photo_3418926.html","width":130,"caption":"Mocking Bird <em>Max Sunderland<\/em> (Applied Class) Highly Comm.","height":87});
															thumbnails[3677070] = clik.newPhoto({"id":3677070,"src":"HC-Church---Ben-Cliff_thumb.jpg","galleries_id":224669,"server_id":32,"link":"photo_3677070.html","width":130,"caption":"Church <em>Ben Cliff<\/em> Highly Comm.","height":98});
															thumbnails[5886890] = clik.newPhoto({"id":5886890,"src":"DSDerwentwater-HC_thumb.jpg","galleries_id":332474,"server_id":32,"link":"photo_5886890.html","width":130,"caption":"Derwentwater <em>David Stansfield<\/em> Highly Comm.","height":90});
															thumbnails[5887789] = clik.newPhoto({"id":5887789,"src":"JSASpring-Spawn-HC_thumb.jpg","galleries_id":332544,"server_id":32,"link":"photo_5887789.html","width":130,"caption":"Spring Spawn, Common Frog <em>Jim Strom<\/em> (Applied Class) Highly Comm.","height":98});
															thumbnails[3420147] = clik.newPhoto({"id":3420147,"src":"Golden-Ringed-Dragonfly---C_thumb.jpg","galleries_id":201290,"server_id":32,"link":"photo_3420147.html","width":100,"caption":"Golden-Ringed Dragonfly, Cordulegaster boltonii <em>Michael Newton<\/em> (Applied Class) Highly Commended","height":130});
															thumbnails[2020292] = clik.newPhoto({"id":2020292,"src":"w-G-Calla-Lily-A-J-Yates-cr_thumb.jpg","galleries_id":135362,"server_id":32,"link":"photo_2020292.html","width":126,"caption":"Calla Lily <em>Alisa Yates<\/em> Comm.","height":130});
															thumbnails[2074667] = clik.newPhoto({"id":2074667,"src":"w-Herr-Flick-of-the-Gestapo_thumb.jpg","galleries_id":132748,"server_id":32,"link":"photo_2074667.html","width":98,"caption":"Herr Flick of the Gestapo <em>Graham Speak<\/em> Highly Comm.","height":130});
															thumbnails[2122034] = clik.newPhoto({"id":2122034,"src":"Smoke-and-Steam-Graham-Spea_thumb.jpg","galleries_id":141149,"server_id":32,"link":"photo_2122034.html","width":130,"caption":"Smoke and Steam <em>Graham Speak<\/em> Highly Comm.","height":98});
															thumbnails[2179707] = clik.newPhoto({"id":2179707,"src":"Daffodils_thumb.jpg","galleries_id":141148,"server_id":32,"link":"photo_2179707.html","width":89,"caption":"April Downpour <em>Annette Miller<\/em> Comm.","height":130});
															thumbnails[2450521] = clik.newPhoto({"id":2450521,"src":"HC Low tide_thumb.jpg","galleries_id":157997,"server_id":32,"link":"photo_2450521.html","width":130,"caption":"Low Tide <em>Richard Redman<\/em> Highly Comm.","height":102});
															thumbnails[2864590] = clik.newPhoto({"id":2864590,"src":"4-Summer's-Sting--AM_thumb.jpg","galleries_id":177981,"server_id":32,"link":"photo_2864590.html","width":130,"caption":"Summer's Sting <em>Annette Miller<\/em> Highly Commended","height":103});
															thumbnails[3308231] = clik.newPhoto({"id":3308231,"src":"w-Speckled-Wood_thumb.jpg","galleries_id":201291,"server_id":32,"link":"photo_3308231.html","width":130,"caption":"Speckled Wood Butterfly <em>Philip Dean<\/em> (Applied Class) Cert. of Merit","height":98});
															thumbnails[3419015] = clik.newPhoto({"id":3419015,"src":"Male-Yellow-Warbler-Annual-08-H_thumb.C..jpg","galleries_id":201290,"server_id":32,"link":"photo_3419015.html","width":130,"caption":"Male Yellow Warbler <em>Max Sunderland<\/em> (Applied Class) Highly Comm.","height":87});
															thumbnails[3420135] = clik.newPhoto({"id":3420135,"src":"Watching_thumb.jpg","galleries_id":207195,"server_id":32,"link":"photo_3420135.html","width":130,"caption":"Watching <em>Michael Newton<\/em> Comm.","height":87});
															thumbnails[5886894] = clik.newPhoto({"id":5886894,"src":"GSImpression-of-Autumn-HC_thumb.jpg","galleries_id":332474,"server_id":32,"link":"photo_5886894.html","width":130,"caption":"Impression of Autumn <em>Graham Speak<\/em> Highly Comm.","height":87});
															thumbnails[5887795] = clik.newPhoto({"id":5887795,"src":"PDAGolden-Ringed-Dragonfl_thumb.jpg","galleries_id":332544,"server_id":32,"link":"photo_5887795.html","width":130,"caption":"Golden Ringed Dragonfly <em>Philip Dean<\/em> (Applied Class) Highly Comm.","height":98});
															thumbnails[2020297] = clik.newPhoto({"id":2020297,"src":"w-Alpine-Autumn-H-Rawlinson_thumb.jpg","galleries_id":135362,"server_id":32,"link":"photo_2020297.html","width":130,"caption":"Alpine Autumn <em>Howard Rawlinson<\/em> Comm.","height":87});
															thumbnails[2074674] = clik.newPhoto({"id":2074674,"src":"w-Cup-&-Saucer-AJY_thumb.jpg","galleries_id":132748,"server_id":32,"link":"photo_2074674.html","width":130,"caption":"Cup and Saucer <em>Alisa Yates<\/em> Comm.","height":93});
															thumbnails[2122035] = clik.newPhoto({"id":2122035,"src":"01-Glaslyn-Evening-P1030393_thumb.jpg","galleries_id":141149,"server_id":32,"link":"photo_2122035.html","width":130,"caption":"Glaslyn Evening <em>Philip Dean<\/em> Highly Comm.","height":92});
															thumbnails[2184180] = clik.newPhoto({"id":2184180,"src":"Kerikeri-Headland_thumb.jpg","galleries_id":141148,"server_id":32,"link":"photo_2184180.html","width":98,"caption":"Kerikeri Headland <em>Jim Strom<\/em> Comm.","height":130});
															thumbnails[2864592] = clik.newPhoto({"id":2864592,"src":"3-Scavenger-Seagull-JV_thumb.jpg","galleries_id":177981,"server_id":32,"link":"photo_2864592.html","width":130,"caption":"Scavenger Seagull <em>John Vessey<\/em> Highly Commended","height":97});
															thumbnails[3308895] = clik.newPhoto({"id":3308895,"src":"w The-sailor's-art_thumb.jpg","galleries_id":201291,"server_id":32,"link":"photo_3308895.html","width":85,"caption":"The Sailor's Art <em>Margaret Beaumont<\/em> (General Class) 1st","height":130});
															thumbnails[5886898] = clik.newPhoto({"id":5886898,"src":"AJYWalk-These-Streets-HC_thumb.jpg","galleries_id":332474,"server_id":32,"link":"photo_5886898.html","width":130,"caption":"Walk These Streets <em>Alisa Yates<\/em> Highly Comm.","height":98});
															thumbnails[5887809] = clik.newPhoto({"id":5887809,"src":"MSARed-Footed-Booby-HC_thumb.jpg","galleries_id":332544,"server_id":32,"link":"photo_5887809.html","width":130,"caption":"Red Footed Booby <em>Max Sunderland<\/em> (Applied Class) Highly Comm.","height":98});
															thumbnails[2020300] = clik.newPhoto({"id":2020300,"src":"1-Orewa-Beach-P1040410_thumb.jpg","galleries_id":135362,"server_id":32,"link":"photo_2020300.html","width":130,"caption":"Orewa Beach <em>Maureen Dean<\/em> Comm.","height":98});
															thumbnails[2074680] = clik.newPhoto({"id":2074680,"src":"w-Waved_Albatross_MS_thumb.jpg","galleries_id":132748,"server_id":32,"link":"photo_2074680.html","width":130,"caption":"Waved Albatross <em>Max Sunderland<\/em> Comm.","height":98});
															thumbnails[2122036] = clik.newPhoto({"id":2122036,"src":"Lava-Rock-Falls-(JS)_thumb.jpg","galleries_id":141149,"server_id":32,"link":"photo_2122036.html","width":98,"caption":"Lava Rock Falls <em>Jim Strom<\/em> Comm.","height":130});
															thumbnails[2179711] = clik.newPhoto({"id":2179711,"src":"Liquid-Reflections_thumb.jpg","galleries_id":141148,"server_id":32,"link":"photo_2179711.html","width":65,"caption":"Liquid Reflections <em>Annette Miller<\/em> Comm.","height":130});
															thumbnails[2450573] = clik.newPhoto({"id":2450573,"src":"HC Mountain highlight  TonyD_thumb.jpg","galleries_id":157997,"server_id":32,"link":"photo_2450573.html","width":130,"caption":"Mountain Highlight <em>Tony Dyson<\/em> Highly Comm.","height":98});
															thumbnails[2469771] = clik.newPhoto({"id":2469771,"src":"Tulips_thumb.jpg","galleries_id":157995,"server_id":32,"link":"photo_2469771.html","width":130,"caption":"Tulips <em>Annette Miller<\/em> Highly Comm.","height":87});
															thumbnails[2864596] = clik.newPhoto({"id":2864596,"src":"4-Chaffinch-PD_thumb.jpg","galleries_id":177981,"server_id":32,"link":"photo_2864596.html","width":97,"caption":"Chaffinch <em>Philip Dean<\/em> Commended","height":130});
															thumbnails[3308949] = clik.newPhoto({"id":3308949,"src":"w Herr-Flick-of-the-Gestapo_thumb.jpg","galleries_id":201291,"server_id":32,"link":"photo_3308949.html","width":98,"caption":"Herr Flick of the Gestapo <em>Graham Speak<\/em> (General Class) 2nd=","height":130});
															thumbnails[3308961] = clik.newPhoto({"id":3308961,"src":"w One,-two,-Samba_thumb.jpg","galleries_id":201291,"server_id":32,"link":"photo_3308961.html","width":130,"caption":"One, two, Samba <em>Alisa Yates<\/em> (General Class) 2nd=","height":98});
															thumbnails[5886906] = clik.newPhoto({"id":5886906,"src":"APDForaging-pollinator-C_thumb.jpg","galleries_id":332474,"server_id":32,"link":"photo_5886906.html","width":130,"caption":"Foraging Pollinator <em>Tony Dyson<\/em> Comm.","height":98});
															thumbnails[5887820] = clik.newPhoto({"id":5887820,"src":"JAGDark-day-for-the-City-_thumb.jpg","galleries_id":332544,"server_id":32,"link":"photo_5887820.html","width":130,"caption":"Dark Day for the City <em>John Akroyd<\/em> (General Class) 1st","height":98});
															thumbnails[2020305] = clik.newPhoto({"id":2020305,"src":"w-1-Watching-The-Light-Show_thumb.jpg","galleries_id":135362,"server_id":32,"link":"photo_2020305.html","width":130,"caption":"Watching The Light Show <em>Philip Dean<\/em> Comm.","height":98});
															thumbnails[2074684] = clik.newPhoto({"id":2074684,"src":"w-Curious-Currawong-JS_thumb.jpg","galleries_id":132748,"server_id":32,"link":"photo_2074684.html","width":98,"caption":"Curious Currawong <em>Jim Strom<\/em> Comm.","height":130});
															thumbnails[2122037] = clik.newPhoto({"id":2122037,"src":"Market-Trader_thumb.jpg","galleries_id":141149,"server_id":32,"link":"photo_2122037.html","width":130,"caption":"Market Trader <em>Max Sunderland<\/em> Comm.","height":98});
															thumbnails[2450628] = clik.newPhoto({"id":2450628,"src":"HC Trees in the Mist JS_thumb.jpg","galleries_id":157997,"server_id":32,"link":"photo_2450628.html","width":130,"caption":"Trees in the Mist <em>Jim Strom<\/em> Highly Comm.","height":64});
															thumbnails[2450635] = clik.newPhoto({"id":2450635,"src":"C  Land Iguana Max_thumb.jpg","galleries_id":157997,"server_id":32,"link":"photo_2450635.html","width":130,"caption":"Land Iguana <em>Max Sunderland<\/em> Comm.","height":98});
															thumbnails[3308970] = clik.newPhoto({"id":3308970,"src":"w Ocean-Trader_thumb.jpg","galleries_id":201291,"server_id":32,"link":"photo_3308970.html","width":130,"caption":"Ocean Trader <em>Maureen Dean<\/em> (General Class) Highly Comm.","height":98});
															thumbnails[5886914] = clik.newPhoto({"id":5886914,"src":"JSThe-Castle-Precinct-Yor_thumb.jpg","galleries_id":332474,"server_id":32,"link":"photo_5886914.html","width":130,"caption":"The Castle Precinct, York <em>Jim Strom<\/em> Comm.","height":75});
															thumbnails[5887828] = clik.newPhoto({"id":5887828,"src":"MDGPark-Track-2nd_thumb.jpg","galleries_id":332544,"server_id":32,"link":"photo_5887828.html","width":98,"caption":"Park Track <em>Maureen Dean<\/em> (General Class) 2nd","height":130});
															thumbnails[2020307] = clik.newPhoto({"id":2020307,"src":"w-G-Feather-A-J-Yates-crop_thumb.jpg","galleries_id":135362,"server_id":32,"link":"photo_2020307.html","width":130,"caption":"Feather <em>Alisa Yates<\/em> Comm.","height":98});
															thumbnails[2074687] = clik.newPhoto({"id":2074687,"src":"w-After-glow-HR_thumb.jpg","galleries_id":132748,"server_id":32,"link":"photo_2074687.html","width":130,"caption":"Afterglow <em>Howard Rawlinson<\/em> Comm.","height":78});
															thumbnails[2122039] = clik.newPhoto({"id":2122039,"src":"Melba-Lights-(JS)_thumb.jpg","galleries_id":141149,"server_id":32,"link":"photo_2122039.html","width":130,"caption":"Melba Lights <em>Jim Strom<\/em> Comm.","height":98});
															thumbnails[2450678] = clik.newPhoto({"id":2450678,"src":"C pink-amemone_thumb.jpg","galleries_id":157995,"server_id":32,"link":"photo_2450678.html","width":130,"caption":"Pink Anemone <em>Annette Miller<\/em> Comm.","height":105});
															thumbnails[3308995] = clik.newPhoto({"id":3308995,"src":"w Smoke-And-Steam_thumb.jpg","galleries_id":201291,"server_id":32,"link":"photo_3308995.html","width":130,"caption":"Smoke and Steam <em>Graham Speak<\/em> (General Class) Highly Comm.","height":98});
															thumbnails[5886917] = clik.newPhoto({"id":5886917,"src":"JBWheat-field-C_thumb.jpg","galleries_id":332474,"server_id":32,"link":"photo_5886917.html","width":96,"caption":"Wheat field <em>Judith Baron<\/em> Comm.","height":130});
															thumbnails[5887898] = clik.newPhoto({"id":5887898,"src":"GSGImpression-of-Autumn-3_thumb.jpg","galleries_id":332544,"server_id":32,"link":"photo_5887898.html","width":130,"caption":"Impression of Autumn <em>Graham Speak<\/em> (General Class) 3rd","height":87});
															thumbnails[2020313] = clik.newPhoto({"id":2020313,"src":"w-4-Keep-Running!-P1020388b_thumb.jpg","galleries_id":135362,"server_id":32,"link":"photo_2020313.html","width":130,"caption":"Keep Running <em>Philip Dean<\/em> Comm.","height":98});
															thumbnails[2122040] = clik.newPhoto({"id":2122040,"src":"A-Peacock-on-buddleia_thumb.jpg","galleries_id":141149,"server_id":32,"link":"photo_2122040.html","width":130,"caption":"Peacock on Buddleia <em>Annette Miller<\/em> Comm.","height":118});
															thumbnails[2450641] = clik.newPhoto({"id":2450641,"src":"C Cotton Mill Express at Mytholmroyd Graham Speak_thumb.jpg","galleries_id":157997,"server_id":32,"link":"photo_2450641.html","width":130,"caption":"Cotton Mill Express at Mytholmroyd <em>Graham Speak<\/em> Comm.","height":98});
															thumbnails[3308984] = clik.newPhoto({"id":3308984,"src":"w Which-way-is-it_thumb.jpg","galleries_id":201291,"server_id":32,"link":"photo_3308984.html","width":130,"caption":"Which Way Is It? <em>Maureen Dean<\/em> (General Class) Comm.","height":98});
															thumbnails[5888017] = clik.newPhoto({"id":5888017,"src":"MSGWhere-Next-HC_thumb.jpg","galleries_id":332544,"server_id":32,"link":"photo_5888017.html","width":130,"caption":"Where Next? <em>Max Sunderland<\/em> (General Class) Highly Comm.","height":98});
															thumbnails[2020318] = clik.newPhoto({"id":2020318,"src":"w-G-Pencil-Shaving-A-J-Yate_thumb.jpg","galleries_id":135362,"server_id":32,"link":"photo_2020318.html","width":123,"caption":"Pencil Shaving <em>Alisa Yates<\/em> Comm.","height":130});
															thumbnails[2122046] = clik.newPhoto({"id":2122046,"src":"the-venerable-beech-H-rawli_thumb.jpg","galleries_id":141149,"server_id":32,"link":"photo_2122046.html","width":130,"caption":"The Venerable Beech <em>Howard Rawlinson<\/em> Comm.","height":87});
															thumbnails[2450642] = clik.newPhoto({"id":2450642,"src":"C Hoar Mist at Blackshaw JS_thumb.jpg","galleries_id":157997,"server_id":32,"link":"photo_2450642.html","width":130,"caption":"Hoar Mist at Blackshaw <em>Jim Strom<\/em> Comm.","height":45});
															thumbnails[5888149] = clik.newPhoto({"id":5888149,"src":"JMNGFirst-Flowers-C_thumb.jpg","galleries_id":332544,"server_id":32,"link":"photo_5888149.html","width":130,"caption":"First Flowers <em>Michael Newton<\/em> General Class) Comm.","height":98});
															thumbnails[2122047] = clik.newPhoto({"id":2122047,"src":"1-Balcony-Pattern-JMN_thumb.jpg","galleries_id":141149,"server_id":32,"link":"photo_2122047.html","width":130,"caption":"Balcony Pattern <em>Michael Newton<\/em> Comm.","height":98});
															thumbnails[2450643] = clik.newPhoto({"id":2450643,"src":"C Rain deposits John Vessey_thumb.jpg","galleries_id":157997,"server_id":32,"link":"photo_2450643.html","width":82,"caption":"Rain Deposits <em>John Vessey<\/em> Comm.","height":130});
															thumbnails[2461582] = clik.newPhoto({"id":2461582,"src":"Lion _thumb.jpg","galleries_id":157995,"server_id":32,"link":"photo_2461582.html","width":113,"caption":"Lion <em>Alan Greenwood<\/em> Comm.","height":130});
															thumbnails[5888250] = clik.newPhoto({"id":5888250,"src":"BCGI-Love-London-C_thumb.jpg","galleries_id":332544,"server_id":32,"link":"photo_5888250.html","width":130,"caption":"I Love London <em>Ben Cliff<\/em> (General Class) Comm.","height":98});
															thumbnails[2450644] = clik.newPhoto({"id":2450644,"src":"C String of Beads Annette Miller_thumb.jpg","galleries_id":157997,"server_id":32,"link":"photo_2450644.html","width":130,"caption":"String of Beads <em>Annette Miller<\/em> Comm.","height":87});
															thumbnails[5888281] = clik.newPhoto({"id":5888281,"src":"BCGSt-Pauls-By-Night-C_thumb.jpg","galleries_id":332544,"server_id":32,"link":"photo_5888281.html","width":130,"caption":"St. Paul's by Night? <em>Ben Cliff<\/em> (General Class) Comm.","height":98});
															thumbnails[2461729] = clik.newPhoto({"id":2461729,"src":"But is it art_thumb.jpg","galleries_id":157995,"server_id":32,"link":"photo_2461729.html","width":62,"caption":"But is it art? MOMA, New York <em>Alan Greenwood<\/em> Comm.","height":130});
															thumbnails[5888286] = clik.newPhoto({"id":5888286,"src":"JMNGLight-in-Malaga-Cathe1_thumb.jpg","galleries_id":332544,"server_id":32,"link":"photo_5888286.html","width":98,"caption":"Light in Malaga Cathedral <em>Michael Newton<\/em> (General Class) Comm.","height":130});
															thumbnails[2589747] = clik.newPhoto({"id":2589747,"src":"Hands_thumb.jpg","galleries_id":157995,"server_id":32,"link":"photo_2589747.html","width":130,"caption":"Hands - Section of a Gravestone <em>Margaret Beaumont<\/em> Comm.","height":98});
															thumbnails[5888290] = clik.newPhoto({"id":5888290,"src":"RRGLowry-in-the-Alps-C_thumb.jpg","galleries_id":332544,"server_id":32,"link":"photo_5888290.html","width":130,"caption":"Lowry in the Alps <em>Richard Redman<\/em> (General Class) Comm.","height":97});
															thumbnails[4667797] = clik.newPhoto({"id":4667797,"src":"w_Frogs_Reunited_-_Jim_Strom_thumb.jpg","galleries_id":269091,"server_id":32,"link":"photo_4667797.html","width":130,"caption":"Winner of the most First Place votes:<br>\r\nFrogs Reunited by Jim Strom","height":87});
															thumbnails[4668050] = clik.newPhoto({"id":4668050,"src":"w_Colden_Path_-_Michael_Newton_thumb.jpg","galleries_id":269091,"server_id":32,"link":"photo_4668050.html","width":130,"caption":"Winner of most votes for a single print :<br>\r\nColden Path by Michael Newton","height":92});
															thumbnails[4668056] = clik.newPhoto({"id":4668056,"src":"w_A_Corner_of_the_National_Trust_-_John_Akroyd_thumb.jpg","galleries_id":269091,"server_id":32,"link":"photo_4668056.html","width":130,"caption":"Winner of most votes for all prints:<br>\r\nthis is John Akroyd's A Corner of the National Trust","height":92});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[269091] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gallery - 2009 Exhibition Winners","link":"section323817.html","maxRecords":0.0,"photoIDs":[4667797.0,4668050.0,4668056.0],"skipIndex":0,"section_code":"section323817","featured_images":"4668056,4668050,4667797","id":269091,"singleSection":true});				  						galleries[332544] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Annual 2009 - Projected Images","link":"section172035_332544.html","maxRecords":0.0,"photoIDs":[5887774.0,5887780.0,5887784.0,5887789.0,5887795.0,5887809.0,5887820.0,5887828.0,5887898.0,5888017.0,5888149.0,5888250.0,5888281.0,5888286.0,5888290.0],"skipIndex":0,"section_code":"section172035","featured_images":"5888290,5888286,5888281,5888250,5888149,5888017,5887898,5887828,5887820,5887809","id":332544,"singleSection":false});				  						galleries[332474] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Round 3 2009 - Projected Images","link":"section172035_332474.html","maxRecords":0.0,"photoIDs":[5886689.0,5886790.0,5886855.0,5886890.0,5886894.0,5886898.0,5886906.0,5886914.0,5886917.0],"skipIndex":0,"section_code":"section172035","featured_images":"5886917,5886914,5886906,5886898,5886894,5886890,5886855,5886790,5886689","id":332474,"singleSection":false});				  						galleries[224669] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Round 2 2009 - Projected Images","link":"section172035_224669.html","maxRecords":0.0,"photoIDs":[3677048.0,3677064.0,3677068.0,3677070.0],"skipIndex":0,"section_code":"section172035","featured_images":"3677070,3677068,3677064,3677048","id":224669,"singleSection":false});				  						galleries[224668] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Round 2 2009 - Prints","link":"section172035_224668.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"section172035","featured_images":"","id":224668,"singleSection":false});				  						galleries[207196] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Round 1 2009 - Projected Images","link":"section172035_207196.html","maxRecords":0.0,"photoIDs":[3393080.0,3393096.0,3393100.0,3393103.0,3393107.0,3393113.0],"skipIndex":0,"section_code":"section172035","featured_images":"3393113,3393107,3393103,3393100,3393096,3393080","id":207196,"singleSection":false});				  						galleries[207195] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Round 1 2009 - Prints","link":"section172035_207195.html","maxRecords":0.0,"photoIDs":[3420125.0,3420128.0,3420131.0,3420135.0],"skipIndex":0,"section_code":"section172035","featured_images":"3420135,3420131,3420128,3420125","id":207195,"singleSection":false});				  						galleries[201291] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Annual 2008 - Projected Images","link":"section172035_201291.html","maxRecords":0.0,"photoIDs":[3308116.0,3308225.0,3308227.0,3308229.0,3308231.0,3308895.0,3308949.0,3308961.0,3308970.0,3308995.0,3308984.0],"skipIndex":0,"section_code":"section172035","featured_images":"3308995,3308984,3308970,3308961,3308949,3308895,3308231,3308229,3308227,3308225","id":201291,"singleSection":false});				  						galleries[201290] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Annual 2008 - Prints","link":"section172035_201290.html","maxRecords":0.0,"photoIDs":[3420169.0,3418926.0,3420147.0,3419015.0],"skipIndex":0,"section_code":"section172035","featured_images":"3420169,3420147,3419015,3418926","id":201290,"singleSection":false});				  						galleries[177981] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Round 5 2008 - Projected Images","link":"section172035_177981.html","maxRecords":0.0,"photoIDs":[2872399.0,2862124.0,2862129.0,2864580.0,2864590.0,2864592.0,2864596.0],"skipIndex":0,"section_code":"section172035","featured_images":"2872399,2864596,2864592,2864590,2864580,2862129,2862124","id":177981,"singleSection":false});				  						galleries[177979] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Round 5 2008 - Prints","link":"section172035_177979.html","maxRecords":0.0,"photoIDs":[2864609.0,2872537.0],"skipIndex":0,"section_code":"section172035","featured_images":"2872537,2864609","id":177979,"singleSection":false});				  						galleries[157997] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Round 4 2008 - Projected Images","link":"section172035_157997.html","maxRecords":0.0,"photoIDs":[2450391.0,2450413.0,2450416.0,2450419.0,2450521.0,2450573.0,2450628.0,2450635.0,2450641.0,2450642.0,2450643.0,2450644.0],"skipIndex":0,"section_code":"section172035","featured_images":"2450644,2450643,2450642,2450641,2450635,2450628,2450573,2450521,2450419,2450416","id":157997,"singleSection":false});				  						galleries[157995] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Round 4 2008 - Prints","link":"section172035_157995.html","maxRecords":0.0,"photoIDs":[3419040.0,2461579.0,2450675.0,2450676.0,2469771.0,2450678.0,2461582.0,2461729.0,2589747.0],"skipIndex":0,"section_code":"section172035","featured_images":"3419040,2589747,2469771,2461729,2461582,2461579,2450678,2450676,2450675","id":157995,"singleSection":false});				  						galleries[141149] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Round 3 2008 - Projected Images","link":"section172035_141149.html","maxRecords":0.0,"photoIDs":[2122029.0,2122031.0,2122032.0,2122033.0,2122034.0,2122035.0,2122036.0,2122037.0,2122039.0,2122040.0,2122046.0,2122047.0],"skipIndex":0,"section_code":"section172035","featured_images":"2122047,2122046,2122040,2122039,2122037,2122036,2122035,2122034,2122033,2122032","id":141149,"singleSection":false});				  						galleries[141148] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Round 3 2008 - Prints","link":"section172035_141148.html","maxRecords":0.0,"photoIDs":[2179700.0,2179704.0,2176593.0,2179707.0,2184180.0,2179711.0],"skipIndex":0,"section_code":"section172035","featured_images":"2184180,2179711,2179707,2179704,2179700,2176593","id":141148,"singleSection":false});				  						galleries[135362] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Round 2 2008 - Projected Images","link":"section172035_135362.html","maxRecords":0.0,"photoIDs":[2019322.0,2019337.0,2019342.0,2019352.0,2020292.0,2020297.0,2020300.0,2020305.0,2020307.0,2020313.0,2020318.0],"skipIndex":0,"section_code":"section172035","featured_images":"2020318,2020313,2020307,2020305,2020300,2020297,2020292,2019352,2019342,2019337","id":135362,"singleSection":false});				  						galleries[135626] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Round 2 2008 - Prints","link":"section172035_135626.html","maxRecords":0.0,"photoIDs":[2074741.0,2023192.0,2023431.0],"skipIndex":0,"section_code":"section172035","featured_images":"2074741,2023431,2023192","id":135626,"singleSection":false});				  						galleries[132748] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Round 1 2008 - Projected Images","link":"section172035_132748.html","maxRecords":0.0,"photoIDs":[2074643.0,2074650.0,2074655.0,2074662.0,2074667.0,2074674.0,2074680.0,2074684.0,2074687.0],"skipIndex":0,"section_code":"section172035","featured_images":"2074687,2074684,2074680,2074674,2074667,2074662,2074655,2074650,2074643","id":132748,"singleSection":false});				  						galleries[135625] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Round 1 2008 - Prints","link":"section172035_135625.html","maxRecords":0.0,"photoIDs":[2803415.0,2074731.0,2074739.0,2074738.0],"skipIndex":0,"section_code":"section172035","featured_images":"2803415,2074739,2074738,2074731","id":135625,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '5888290,5888286,5888281,5888250,5888149,5888017,5887898,5887828,5887820,5887809,5887795,5887789,5887784,5887780,5887774,5886917,5886914,5886906,5886898,5886894,5886890,5886855,5886790,5886689,4668056,4668050,4667797,3677070,3677068,3677064,3677048,3420169,3420147,3420135,3420131,3420128,3420125,3419040,3419015,3418926,3393113,3393107,3393103,3393100,3393096,3393080,3308995,3308984,3308970,3308961';
imageSets[3] = '5888290,5888286,5888281,5888250,5888149,5888017,5887898,5887828,5887820,5887809,5887795,5887789,5887784,5887780,5887774,5886917,5886914,5886906,5886898,5886894,5886890,5886855,5886790,5886689,4668056,4668050,4667797,3677070,3677068,3677064,3677048,3420169,3420147,3420135,3420131,3420128,3420125,3419040,3419015,3418926,3393113,3393107,3393103,3393100,3393096,3393080,3308995,3308984,3308970,3308961';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/hbcc/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/hbcc/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/hbcc/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/hbcc/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/hbcc/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/hbcc/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/hbcc/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/hbcc/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/hbcc/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/hbcc/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/hbcc/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/hbcc/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/hbcc/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/hbcc/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/hbcc/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/hbcc/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/hbcc/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/hbcc/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/hbcc/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/hbcc/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/hbcc/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/hbcc/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/hbcc/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/hbcc/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 += 'section172035.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 && 'section172035' != '') {
					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 = 'Hebden Bridge Camera Club: ' + 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.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp += '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
	else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
			temp += '<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;
	}
}

			

