window.thumbnails = {};
															thumbnails[2666672] = clik.newPhoto({"id":2666672,"src":"Danebury_Logo_Website_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":169});
															thumbnails[2667942] = clik.newPhoto({"id":2667942,"src":"Me_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":143});
															thumbnails[2668067] = clik.newPhoto({"id":2668067,"src":"Basil_thumb.JPG","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":144});
															thumbnails[2668072] = clik.newPhoto({"id":2668072,"src":"Alf_thumb.JPG","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":152});
															thumbnails[2668075] = clik.newPhoto({"id":2668075,"src":"Betty_thumb.JPG","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":124});
															thumbnails[2669290] = clik.newPhoto({"id":2669290,"src":"Alfie Start Marshall_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":163});
															thumbnails[2669294] = clik.newPhoto({"id":2669294,"src":"Marshalls_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":49});
															thumbnails[2669826] = clik.newPhoto({"id":2669826,"src":"Location Map_thumb.JPG","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":90});
															thumbnails[4091237] = clik.newPhoto({"id":4091237,"src":"Amesbury_Carnival_2009_01_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"The one and only time you'll see Karen on a sidecar!","height":82});
															thumbnails[4091295] = clik.newPhoto({"id":4091295,"src":"Amesbury_Carnival_2009_02_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"The Float","height":83});
															thumbnails[4091334] = clik.newPhoto({"id":4091334,"src":"Amesbury_Carnival_2009_03_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"The Float Again","height":80});
															thumbnails[4091344] = clik.newPhoto({"id":4091344,"src":"Amesbury_Carnival_2009_04_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Betty, where's your driver?!","height":87});
															thumbnails[4091351] = clik.newPhoto({"id":4091351,"src":"Amesbury_Carnival_2009_05_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"What a cool little sidecar!","height":121});
															thumbnails[4868092] = clik.newPhoto({"id":4868092,"src":"Map_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":99});
															thumbnails[7081907] = clik.newPhoto({"id":7081907,"src":"Application_Form_thumb.JPG","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":183});
															thumbnails[7933043] = clik.newPhoto({"id":7933043,"src":"DGTRC-9094_New_Helicopter_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":99});
															thumbnails[8628919] = clik.newPhoto({"id":8628919,"src":"Regs_thumb.JPG","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":171});
															thumbnails[8912072] = clik.newPhoto({"id":8912072,"src":"Poster_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":175});
															thumbnails[2668909] = clik.newPhoto({"id":2668909,"src":"Quad Rider_thumb.jpg","galleries_id":168702,"server_id":5,"link":"photo_2668909.html","width":130,"caption":"Andy Heitman","height":98});
															thumbnails[2669014] = clik.newPhoto({"id":2669014,"src":"DGT_-36_thumb.jpg","galleries_id":168702,"server_id":5,"link":"photo_2669014.html","width":130,"caption":"Rachel Mothersole","height":104});
															thumbnails[2669161] = clik.newPhoto({"id":2669161,"src":"DGT_-30_thumb.jpg","galleries_id":168702,"server_id":5,"link":"photo_2669161.html","width":130,"caption":"Barry Powell","height":88});
															thumbnails[2669397] = clik.newPhoto({"id":2669397,"src":"James Peters_thumb.JPG","galleries_id":168702,"server_id":5,"link":"photo_2669397.html","width":130,"caption":"James Peters","height":110});
															thumbnails[2669470] = clik.newPhoto({"id":2669470,"src":"Charlie Saunders_thumb.jpg","galleries_id":168702,"server_id":5,"link":"photo_2669470.html","width":130,"caption":"Charlie Saunders","height":109});
															thumbnails[2669485] = clik.newPhoto({"id":2669485,"src":"Keith Richards_thumb.jpg","galleries_id":168702,"server_id":5,"link":"photo_2669485.html","width":130,"caption":"Keith Richards & Jake Cutler","height":93});
															thumbnails[2669488] = clik.newPhoto({"id":2669488,"src":"Peter Langran_thumb.jpg","galleries_id":168702,"server_id":5,"link":"photo_2669488.html","width":130,"caption":"Peter Langran & Rob Clementson","height":90});
															thumbnails[2669589] = clik.newPhoto({"id":2669589,"src":"Andy Gribble_thumb.JPG","galleries_id":168702,"server_id":5,"link":"photo_2669589.html","width":130,"caption":"Andy Gribble & David Williams","height":120});
															thumbnails[2669644] = clik.newPhoto({"id":2669644,"src":"George Penfold_thumb.JPG","galleries_id":168702,"server_id":5,"link":"photo_2669644.html","width":130,"caption":"Mark Heatley & Martin Davis","height":105});
															thumbnails[2669648] = clik.newPhoto({"id":2669648,"src":"John Jefferies_thumb.JPG","galleries_id":168702,"server_id":5,"link":"photo_2669648.html","width":130,"caption":"John Jefferies","height":94});
															thumbnails[2669650] = clik.newPhoto({"id":2669650,"src":"John Weeks_thumb.JPG","galleries_id":168702,"server_id":5,"link":"photo_2669650.html","width":130,"caption":"John Weeks","height":103});
															thumbnails[2669662] = clik.newPhoto({"id":2669662,"src":"Matt Fumarola_thumb.JPG","galleries_id":168702,"server_id":5,"link":"photo_2669662.html","width":130,"caption":"Matt Fumarola & Andy Wilson","height":90});
															thumbnails[2669683] = clik.newPhoto({"id":2669683,"src":"Mike Elliott_thumb.JPG","galleries_id":168702,"server_id":5,"link":"photo_2669683.html","width":130,"caption":"Mike & Simon Elliott","height":119});
															thumbnails[2669690] = clik.newPhoto({"id":2669690,"src":"Santa_thumb.JPG","galleries_id":168702,"server_id":5,"link":"photo_2669690.html","width":130,"caption":"Santa and Rudolph!","height":101});
															thumbnails[3442211] = clik.newPhoto({"id":3442211,"src":"The Devil 1_thumb.jpg","galleries_id":210594,"server_id":5,"link":"photo_3442211.html","width":130,"caption":"Hard at Work ... ?? You Little Devil!","height":119});
															thumbnails[3442239] = clik.newPhoto({"id":3442239,"src":"JH 1 Protected_thumb.jpg","galleries_id":168703,"server_id":5,"link":"photo_3442239.html","width":130,"caption":"","height":94});
															thumbnails[3442246] = clik.newPhoto({"id":3442246,"src":"JH Protected_thumb.jpg","galleries_id":168703,"server_id":5,"link":"photo_3442246.html","width":130,"caption":"","height":198});
															thumbnails[4940086] = clik.newPhoto({"id":4940086,"src":"Auto_Cadet_Tom_Brennan_thumb.jpg","galleries_id":282115,"server_id":5,"link":"photo_4940086.html","width":130,"caption":"Auto Cadet Champion - Tom Brennan","height":87});
															thumbnails[4940087] = clik.newPhoto({"id":4940087,"src":"Cadet_Edmund_Best_thumb.jpg","galleries_id":282115,"server_id":5,"link":"photo_4940087.html","width":130,"caption":"Cadet Champion - Edmund Best","height":87});
															thumbnails[4940089] = clik.newPhoto({"id":4940089,"src":"Inter_85MX_Sam_Morgan_thumb.jpg","galleries_id":282115,"server_id":5,"link":"photo_4940089.html","width":130,"caption":"Inter 85MX Champion - Sam Morgan","height":87});
															thumbnails[4940090] = clik.newPhoto({"id":4940090,"src":"Intermediate_Oliver_Greenwood_thumb.jpg","galleries_id":282115,"server_id":5,"link":"photo_4940090.html","width":130,"caption":"Intermediate Champion - Oliver Greenwood","height":86});
															thumbnails[4940091] = clik.newPhoto({"id":4940091,"src":"International_125_Craig_Drury_thumb.jpg","galleries_id":282115,"server_id":5,"link":"photo_4940091.html","width":130,"caption":"International 125cc Champion - Craig Drury","height":87});
															thumbnails[4940176] = clik.newPhoto({"id":4940176,"src":"Junior_65MX_Edmund_Best_thumb.jpg","galleries_id":282115,"server_id":5,"link":"photo_4940176.html","width":130,"caption":"Junior 65MX Champion - Edmund Best","height":87});
															thumbnails[4940289] = clik.newPhoto({"id":4940289,"src":"Junior_Robert_Lambert_thumb.jpg","galleries_id":282115,"server_id":5,"link":"photo_4940289.html","width":130,"caption":"Junior Champion - Robert Lambert","height":87});
															thumbnails[4940393] = clik.newPhoto({"id":4940393,"src":"Senior_85MX_Jordan_Holliday_thumb.jpg","galleries_id":282115,"server_id":5,"link":"photo_4940393.html","width":130,"caption":"Senior 85MX Champion - Jordan Holliday","height":117});
															thumbnails[4940394] = clik.newPhoto({"id":4940394,"src":"Senior_A_Josh_Dingle_thumb.jpg","galleries_id":282115,"server_id":5,"link":"photo_4940394.html","width":130,"caption":"Senior A Champion - Josh Dingle","height":87});
															thumbnails[4940395] = clik.newPhoto({"id":4940395,"src":"Senior_B_Craig_Drury_thumb.jpg","galleries_id":282115,"server_id":5,"link":"photo_4940395.html","width":130,"caption":"Senior B Champion - Craig Drury","height":87});
															thumbnails[4940397] = clik.newPhoto({"id":4940397,"src":"250_Harland_Cook_thumb.jpg","galleries_id":282117,"server_id":5,"link":"photo_4940397.html","width":130,"caption":"250cc Solo Champion - Harland Cook","height":86});
															thumbnails[4940398] = clik.newPhoto({"id":4940398,"src":"350_Nathan_Irwin_thumb.jpg","galleries_id":282117,"server_id":5,"link":"photo_4940398.html","width":130,"caption":"350cc Solo Champion - Nathan Irwin","height":87});
															thumbnails[4940399] = clik.newPhoto({"id":4940399,"src":"500_Harland_Cook_thumb.jpg","galleries_id":282117,"server_id":5,"link":"photo_4940399.html","width":130,"caption":"500cc Solo Champion - Harland Cook","height":86});
															thumbnails[4940400] = clik.newPhoto({"id":4940400,"src":"1000_SC_Neal_Owen_thumb.jpg","galleries_id":282117,"server_id":5,"link":"photo_4940400.html","width":130,"caption":"1000cc Sidecar Champions - Neal Owen & Kevin Colborne","height":87});
															thumbnails[4940401] = clik.newPhoto({"id":4940401,"src":"Upright_Ian_Gutteridge_thumb.jpg","galleries_id":282117,"server_id":5,"link":"photo_4940401.html","width":130,"caption":"Upright Solo Champion - Ian Gutteridge","height":87});
															thumbnails[6984704] = clik.newPhoto({"id":6984704,"src":"Trophies_2_thumb.JPG","galleries_id":378524,"server_id":5,"link":"photo_6984704.html","width":130,"caption":"The Danebury Club Championship Trophies","height":44});
															thumbnails[6984757] = clik.newPhoto({"id":6984757,"src":"Robbie_thumb.jpg","galleries_id":378536,"server_id":5,"link":"photo_6984757.html","width":130,"caption":"Robbie Gregory & Richard Chamberlane","height":84});
															thumbnails[6984763] = clik.newPhoto({"id":6984763,"src":"Deano_thumb.jpg","galleries_id":378536,"server_id":5,"link":"photo_6984763.html","width":130,"caption":"Dean Cutler","height":120});
															thumbnails[6984784] = clik.newPhoto({"id":6984784,"src":"G_Southgate_thumb.jpg","galleries_id":378536,"server_id":5,"link":"photo_6984784.html","width":130,"caption":"Gary Southgate & Natasha Bartlett","height":87});
															thumbnails[6984803] = clik.newPhoto({"id":6984803,"src":"Ghostbusters_thumb.jpg","galleries_id":378536,"server_id":5,"link":"photo_6984803.html","width":130,"caption":"Mark Heatley & Martin Davis (AKA The Ghostbusters)","height":93});
															thumbnails[6984815] = clik.newPhoto({"id":6984815,"src":"J_Goodwin_thumb.jpg","galleries_id":378536,"server_id":5,"link":"photo_6984815.html","width":130,"caption":"Josh Goodwin & A Kingsmill","height":82});
															thumbnails[6984824] = clik.newPhoto({"id":6984824,"src":"Phil_thumb.jpg","galleries_id":378536,"server_id":5,"link":"photo_6984824.html","width":130,"caption":"Phil Spencer","height":144});
															thumbnails[6984825] = clik.newPhoto({"id":6984825,"src":"Pammy_thumb.jpg","galleries_id":378536,"server_id":5,"link":"photo_6984825.html","width":130,"caption":"Oliver Greenwood (AKA Pamela Anderson)","height":137});
															thumbnails[6984831] = clik.newPhoto({"id":6984831,"src":"Rachel_thumb.jpg","galleries_id":378536,"server_id":5,"link":"photo_6984831.html","width":130,"caption":"Rachel Mothersole","height":86});
															thumbnails[7003423] = clik.newPhoto({"id":7003423,"src":"stockbridge_oct_2010_3_thumb.jpg","galleries_id":378524,"server_id":5,"link":"photo_7003423.html","width":130,"caption":"James Shanes - Intermediate Winner","height":100});
															thumbnails[7003523] = clik.newPhoto({"id":7003523,"src":"stockbridge_oct_2010_38_thumb.jpg","galleries_id":378524,"server_id":5,"link":"photo_7003523.html","width":130,"caption":"The 'Flying' Michael Nash!","height":102});
															thumbnails[7003530] = clik.newPhoto({"id":7003530,"src":"stockbridge_oct_2010_29_thumb.jpg","galleries_id":378524,"server_id":5,"link":"photo_7003530.html","width":130,"caption":"Mark Heatley & Martin Davis","height":99});
															thumbnails[7003535] = clik.newPhoto({"id":7003535,"src":"stockbridge_oct_2010_30_thumb.jpg","galleries_id":378524,"server_id":5,"link":"photo_7003535.html","width":130,"caption":"John Stafford & Lee Jones","height":98});
															thumbnails[7003539] = clik.newPhoto({"id":7003539,"src":"stockbridge_oct_2010_34_thumb.jpg","galleries_id":378524,"server_id":5,"link":"photo_7003539.html","width":130,"caption":"Phil Syms & Gareth Bemister","height":99});
															thumbnails[7003543] = clik.newPhoto({"id":7003543,"src":"stockbridge_oct_2010_35_thumb.jpg","galleries_id":378524,"server_id":5,"link":"photo_7003543.html","width":130,"caption":"Joe Mogg & Jake Cutler","height":100});
															thumbnails[7003547] = clik.newPhoto({"id":7003547,"src":"stockbridge_oct_2010_32_thumb.jpg","galleries_id":378524,"server_id":5,"link":"photo_7003547.html","width":130,"caption":"Joe Trewin & Duncan Patton","height":102});
															thumbnails[7003553] = clik.newPhoto({"id":7003553,"src":"stockbridge_oct_2010_28_thumb.jpg","galleries_id":378524,"server_id":5,"link":"photo_7003553.html","width":130,"caption":"Neal Owen & Wayne Rickards - Winners of the 'John Hiscock Fastest 1000cc Sidecar' trophy","height":101});
															thumbnails[7003586] = clik.newPhoto({"id":7003586,"src":"stockbridge_oct_2010_15_thumb.jpg","galleries_id":378524,"server_id":5,"link":"photo_7003586.html","width":130,"caption":"Chris Mackett - Winner of the Upright Solo Class & the 'Keith Carter Fastest Upright Solo' shield","height":102});
															thumbnails[7003610] = clik.newPhoto({"id":7003610,"src":"stockbridge_oct_2010_5_thumb.jpg","galleries_id":378524,"server_id":5,"link":"photo_7003610.html","width":130,"caption":"Harland Cook - Winner of the 350cc Solo 'Clearway Motorcycles Championship'","height":100});
															thumbnails[7003614] = clik.newPhoto({"id":7003614,"src":"stockbridge_oct_2010_8_thumb.jpg","galleries_id":378524,"server_id":5,"link":"photo_7003614.html","width":130,"caption":"Harland Cook - Winner of the 500cc Solo 'Denny Phillips Memorial'","height":96});
															thumbnails[7003619] = clik.newPhoto({"id":7003619,"src":"stockbridge_oct_2010_9_thumb.jpg","galleries_id":378524,"server_id":5,"link":"photo_7003619.html","width":130,"caption":"Graeme Brown","height":94});
															thumbnails[7011683] = clik.newPhoto({"id":7011683,"src":"John_Hiscock_thumb.jpg","galleries_id":378524,"server_id":5,"link":"photo_7011683.html","width":130,"caption":"John Hiscock presenting his 'Fastest 1000cc Sidecar' Shield to Neal Owen & Wayne Rickards","height":245});
															thumbnails[7285984] = clik.newPhoto({"id":7285984,"src":"Barry__Nick_thumb.jpg","galleries_id":394028,"server_id":5,"link":"photo_7285984.html","width":130,"caption":"Solo Winners (AKA 'The Wobblers!') - 1st Barry Powell & 2nd Nick Mallett","height":87});
															thumbnails[7285991] = clik.newPhoto({"id":7285991,"src":"Phil_Syms_Gareth_Bemister__Simon_Heal_Terry_Madley_thumb.jpg","galleries_id":394028,"server_id":5,"link":"photo_7285991.html","width":130,"caption":"1000cc Sidecar Winners - 1st Phil Syms & Gareth Bemister, 2nd Simon Heal & Terry Madley","height":87});
															thumbnails[7285999] = clik.newPhoto({"id":7285999,"src":"Carl_Bunce__John_Elliott_thumb.jpg","galleries_id":394028,"server_id":5,"link":"photo_7285999.html","width":130,"caption":"Quad Winners - 1st Carl Bunce 3rd John Elliott","height":87});
															thumbnails[7286004] = clik.newPhoto({"id":7286004,"src":"Fancy_Dress_1_thumb.jpg","galleries_id":394028,"server_id":5,"link":"photo_7286004.html","width":130,"caption":"James 'The Stig' Shanes, Simon Heal & Terry Madley (Batman & Robin), Craig Phillips Batman No. 2!","height":87});
															thumbnails[7286007] = clik.newPhoto({"id":7286007,"src":"Fancy_Dress_2_thumb.jpg","galleries_id":394028,"server_id":5,"link":"photo_7286007.html","width":130,"caption":"","height":87});
															thumbnails[7286022] = clik.newPhoto({"id":7286022,"src":"Michael_Randall_thumb.jpg","galleries_id":394028,"server_id":5,"link":"photo_7286022.html","width":130,"caption":"3rd place Solo - Michael Randall","height":87});
															thumbnails[7286026] = clik.newPhoto({"id":7286026,"src":"Trevor_Heath__Nick_Laurence_thumb.jpg","galleries_id":394028,"server_id":5,"link":"photo_7286026.html","width":130,"caption":"500cc Sidecar Winners - Trevor Heath & Nick Laurence","height":87});
															thumbnails[8646975] = clik.newPhoto({"id":8646975,"src":"Lily_Mae_thumb.jpg","galleries_id":456645,"server_id":5,"link":"photo_8646975.html","width":130,"caption":"1st Lily Mae Walker (paired with Callum Walker)","height":196});
															thumbnails[8646984] = clik.newPhoto({"id":8646984,"src":"Callum_thumb.jpg","galleries_id":456645,"server_id":5,"link":"photo_8646984.html","width":130,"caption":"1st Callum Walker (paired with Lily Mae Walker)","height":101});
															thumbnails[8646987] = clik.newPhoto({"id":8646987,"src":"Jack_thumb.jpg","galleries_id":456645,"server_id":5,"link":"photo_8646987.html","width":130,"caption":"2nd Jack Bree (paired with Joe Nicholls)","height":170});
															thumbnails[8646990] = clik.newPhoto({"id":8646990,"src":"Joe_thumb.jpg","galleries_id":456645,"server_id":5,"link":"photo_8646990.html","width":130,"caption":"2nd Joe Nicholls (paired with Jack Bree)","height":165});
															thumbnails[8646992] = clik.newPhoto({"id":8646992,"src":"Callan_thumb.jpg","galleries_id":456645,"server_id":5,"link":"photo_8646992.html","width":130,"caption":"3rd Callan Phillips (paired with Luke Harris)","height":93});
															thumbnails[8646994] = clik.newPhoto({"id":8646994,"src":"Luke_Harris_thumb.jpg","galleries_id":456645,"server_id":5,"link":"photo_8646994.html","width":130,"caption":"3rd Luke Harris (paired with Callan Phillips)","height":86});
															thumbnails[8646996] = clik.newPhoto({"id":8646996,"src":"Leo_thumb.jpg","galleries_id":456646,"server_id":5,"link":"photo_8646996.html","width":130,"caption":"Leo Dummett - Winning Auto Cadet","height":180});
															thumbnails[8647031] = clik.newPhoto({"id":8647031,"src":"Lily_Mae_Sunday_thumb.jpg","galleries_id":456646,"server_id":5,"link":"photo_8647031.html","width":130,"caption":"Lily Mae Walker - Winning Cadet","height":98});
															thumbnails[8647033] = clik.newPhoto({"id":8647033,"src":"Edmund_thumb.jpg","galleries_id":456646,"server_id":5,"link":"photo_8647033.html","width":130,"caption":"Edmund Best - Winning Junior","height":164});
															thumbnails[8647038] = clik.newPhoto({"id":8647038,"src":"James_thumb.jpg","galleries_id":456646,"server_id":5,"link":"photo_8647038.html","width":130,"caption":"James Shanes - Winning Intermediate","height":96});
															thumbnails[8647042] = clik.newPhoto({"id":8647042,"src":"Steve_thumb.jpg","galleries_id":456646,"server_id":5,"link":"photo_8647042.html","width":130,"caption":"Steve Pantrey - Winning Quad","height":86});
															thumbnails[8647044] = clik.newPhoto({"id":8647044,"src":"Harland_thumb.jpg","galleries_id":456646,"server_id":5,"link":"photo_8647044.html","width":130,"caption":"Harland Cook - Winner of The Pinchbeck Championship (250cc Solo) & The Clearway Motorcycles Championship (350cc Solo)","height":97});
															thumbnails[8647048] = clik.newPhoto({"id":8647048,"src":"Andrew_thumb.jpg","galleries_id":456646,"server_id":5,"link":"photo_8647048.html","width":130,"caption":"Andrew Appleton - Winner of The Denny Phillips Memorial (500cc Solo)","height":87});
															thumbnails[8647051] = clik.newPhoto({"id":8647051,"src":"Luke_thumb.jpg","galleries_id":456646,"server_id":5,"link":"photo_8647051.html","width":130,"caption":"Luke Cox - Winner of The Haynes Garage Championship (Upright Solo)","height":98});
															thumbnails[8647053] = clik.newPhoto({"id":8647053,"src":"Graeme_thumb.jpg","galleries_id":456646,"server_id":5,"link":"photo_8647053.html","width":130,"caption":"Graeme Brown - Winner of The Keith Carter Fastest Upright Solo Shield","height":96});
															thumbnails[8647057] = clik.newPhoto({"id":8647057,"src":"Goudges_thumb.jpg","galleries_id":456646,"server_id":5,"link":"photo_8647057.html","width":130,"caption":"James & Dave Goudge - Winners of The Vic Hiscock Memorial, The Denny Phillips Memorial & The John Hiscock Fastest 1000cc Sidecar Shield","height":87});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[456645] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"2011 Danebury Youth Best Pairs","link":"gallery_456645.html","maxRecords":0.0,"photoIDs":[8646975.0,8646984.0,8646987.0,8646990.0,8646992.0,8646994.0],"skipIndex":0,"section_code":"gallery","featured_images":"8646994,8646992,8646990,8646987,8646984,8646975","id":456645,"singleSection":false});				  						galleries[456646] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"2011 Danebury Club Championship","link":"gallery_456646.html","maxRecords":0.0,"photoIDs":[8646996.0,8647031.0,8647033.0,8647038.0,8647042.0,8647044.0,8647048.0,8647051.0,8647053.0,8647057.0],"skipIndex":0,"section_code":"gallery","featured_images":"8647057,8647053,8647051,8647048,8647044,8647042,8647038,8647033,8647031,8646996","id":456646,"singleSection":false});				  						galleries[394028] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"2011 Burnfield New Year Spinner","link":"gallery_394028.html","maxRecords":0.0,"photoIDs":[7285984.0,7285991.0,7285999.0,7286004.0,7286007.0,7286022.0,7286026.0],"skipIndex":0,"section_code":"gallery","featured_images":"7286026,7286022,7286007,7286004,7285999,7285991,7285984","id":394028,"singleSection":false});				  						galleries[378524] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"2010 Danebury Club Championship","link":"gallery_378524.html","maxRecords":0.0,"photoIDs":[6984704.0,7003423.0,7003523.0,7003530.0,7003535.0,7003539.0,7003543.0,7003547.0,7003553.0,7003586.0,7003610.0,7003614.0,7003619.0,7011683.0],"skipIndex":0,"section_code":"gallery","featured_images":"7011683,7003619,7003614,7003610,7003586,7003553,7003547,7003543,7003539,7003535","id":378524,"singleSection":false});				  						galleries[378536] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"2010 Burnfield New Year Spinner","link":"gallery_378536.html","maxRecords":0.0,"photoIDs":[6984757.0,6984763.0,6984784.0,6984803.0,6984815.0,6984824.0,6984825.0,6984831.0],"skipIndex":0,"section_code":"gallery","featured_images":"6984831,6984825,6984824,6984815,6984803,6984784,6984763,6984757","id":378536,"singleSection":false});				  						galleries[282115] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"2009 British Youth Grasstrack Racing Championship","link":"gallery_282115.html","maxRecords":0.0,"photoIDs":[4940086.0,4940087.0,4940089.0,4940090.0,4940091.0,4940176.0,4940289.0,4940393.0,4940394.0,4940395.0],"skipIndex":0,"section_code":"gallery","featured_images":"4940395,4940394,4940393,4940289,4940176,4940091,4940090,4940089,4940087,4940086","id":282115,"singleSection":false});				  						galleries[282117] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"2009 Southern Centre Championships","link":"gallery_282117.html","maxRecords":0.0,"photoIDs":[4940397.0,4940398.0,4940399.0,4940400.0,4940401.0],"skipIndex":0,"section_code":"gallery","featured_images":"4940401,4940400,4940399,4940398,4940397","id":282117,"singleSection":false});				  						galleries[210594] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"2009 Burnfield New Year Spinner","link":"gallery_210594.html","maxRecords":0.0,"photoIDs":[3442211.0],"skipIndex":0,"section_code":"gallery","featured_images":3442211.0,"id":210594,"singleSection":false});				  						galleries[168703] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"2008 Southern Centre Championships","link":"gallery_168703.html","maxRecords":0.0,"photoIDs":[3442239.0,3442246.0],"skipIndex":0,"section_code":"gallery","featured_images":"3442246,3442239","id":168703,"singleSection":false});				  						galleries[168702] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"2008 Burnfield New Year Spinner","link":"gallery_168702.html","maxRecords":0.0,"photoIDs":[2668909.0,2669014.0,2669161.0,2669397.0,2669470.0,2669485.0,2669488.0,2669589.0,2669644.0,2669648.0,2669650.0,2669662.0,2669683.0,2669690.0],"skipIndex":0,"section_code":"gallery","featured_images":"2669690,2669683,2669662,2669650,2669648,2669644,2669589,2669488,2669485,2669470","id":168702,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8912072';
imageSets[3] = '8912072,8647057,8647053,8647051,8647048,8647044,8647042,8647038,8647033,8647031,8646996,8646994,8646992,8646990,8646987,8646984,8646975,8628919,7933043,7286026,7286022,7286007,7286004,7285999,7285991,7285984,7081907,7011683,7003619,7003614,7003610,7003586,7003553,7003547,7003543,7003539,7003535,7003530,7003523,7003423,6984831,6984825,6984824,6984815,6984803,6984784,6984763,6984757,6984704,4940401';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/Daneburygtrc/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/Daneburygtrc/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/Daneburygtrc/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/Daneburygtrc/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/Daneburygtrc/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/Daneburygtrc/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/Daneburygtrc/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/Daneburygtrc/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/Daneburygtrc/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/Daneburygtrc/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/Daneburygtrc/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/Daneburygtrc/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/Daneburygtrc/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/Daneburygtrc/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/Daneburygtrc/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/Daneburygtrc/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/Daneburygtrc/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/Daneburygtrc/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/Daneburygtrc/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/Daneburygtrc/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/Daneburygtrc/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/Daneburygtrc/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/Daneburygtrc/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/Daneburygtrc/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/Daneburygtrc/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/Daneburygtrc/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/Daneburygtrc/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = (backgrounds || photos || {})[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$detailContainer:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
		op = $.extend({},defaults,options),
		html = '', temp = '',
		photoId = op.nextPhoto.id,
		photoCaption = ''+op.nextPhoto.caption,
		photoSrc = op.nextPhoto.src;
	
	if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'Danebury Grasstrack Racing 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.item_price !== '') {
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

