window.thumbnails = {};
															thumbnails[4875625] = clik.newPhoto({"id":4875625,"src":"voucher1_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":60});
															thumbnails[2361478] = clik.newPhoto({"id":2361478,"src":"border web_thumb.jpg","galleries_id":153687,"server_id":32,"link":"photo_2361478.html","width":130,"caption":"<strong>\"Minty\"<\/strong> Border Terrier","height":159});
															thumbnails[2361491] = clik.newPhoto({"id":2361491,"src":"Comfy Spot web_thumb.jpg","galleries_id":153713,"server_id":32,"link":"photo_2361491.html","width":130,"caption":"<strong>\"Comfy Spot\"<\/strong>","height":177});
															thumbnails[2361497] = clik.newPhoto({"id":2361497,"src":"Devon web_thumb.jpg","galleries_id":153713,"server_id":32,"link":"photo_2361497.html","width":130,"caption":"<strong>\"Devon\"<\/strong> Yellow Labrador","height":179});
															thumbnails[2361782] = clik.newPhoto({"id":2361782,"src":"Ozzyweb_thumb.jpg","galleries_id":153713,"server_id":32,"link":"photo_2361782.html","width":130,"caption":"<strong>\"Little Ozzi\"<\/strong> Pug","height":98});
															thumbnails[2364938] = clik.newPhoto({"id":2364938,"src":"English Pointer web9_thumb.jpg","galleries_id":153687,"server_id":32,"link":"photo_2364938.html","width":130,"caption":"English Pointer","height":140});
															thumbnails[2364950] = clik.newPhoto({"id":2364950,"src":"black lab web3_thumb.jpg","galleries_id":153687,"server_id":32,"link":"photo_2364950.html","width":130,"caption":"Black Labrador","height":129});
															thumbnails[2364965] = clik.newPhoto({"id":2364965,"src":"King Charles web_thumb.jpg","galleries_id":153687,"server_id":32,"link":"photo_2364965.html","width":130,"caption":"Cavalier King Charles Spaniel","height":116});
															thumbnails[2367846] = clik.newPhoto({"id":2367846,"src":"Becky web_thumb.jpg","galleries_id":153687,"server_id":32,"link":"photo_2367846.html","width":130,"caption":"<strong>\"Becky\"<\/strong> Springer Spaniel","height":149});
															thumbnails[2367848] = clik.newPhoto({"id":2367848,"src":"Cocker Web_thumb.jpg","galleries_id":153687,"server_id":32,"link":"photo_2367848.html","width":130,"caption":"Cocker Spaniel","height":168});
															thumbnails[2367854] = clik.newPhoto({"id":2367854,"src":"Collie web_thumb.jpg","galleries_id":153713,"server_id":32,"link":"photo_2367854.html","width":130,"caption":"Smooth Coated Collie","height":95});
															thumbnails[2367882] = clik.newPhoto({"id":2367882,"src":"fox terrier web_thumb.jpg","galleries_id":153713,"server_id":32,"link":"photo_2367882.html","width":130,"caption":"<strong>\"Pie Eyed\"<\/strong><br>\r\nWire Haired Fox Terrier","height":174});
															thumbnails[2367893] = clik.newPhoto({"id":2367893,"src":"Golden Retreiver web_thumb.jpg","galleries_id":153687,"server_id":32,"link":"photo_2367893.html","width":130,"caption":"Golden Retriever","height":142});
															thumbnails[2367898] = clik.newPhoto({"id":2367898,"src":"Jack Russel web_thumb.jpg","galleries_id":153687,"server_id":32,"link":"photo_2367898.html","width":130,"caption":"Jack Russell Terrier","height":142});
															thumbnails[2367901] = clik.newPhoto({"id":2367901,"src":"Let's Go web_thumb.jpg","galleries_id":153713,"server_id":32,"link":"photo_2367901.html","width":130,"caption":"<strong>\"Let's Go\"<\/strong","height":177});
															thumbnails[2367912] = clik.newPhoto({"id":2367912,"src":"Waiting for the boss web_thumb.jpg","galleries_id":153713,"server_id":32,"link":"photo_2367912.html","width":130,"caption":"<strong>\"Waiting for the Boss\"<\/strong>","height":173});
															thumbnails[2369272] = clik.newPhoto({"id":2369272,"src":"pointer painting web_thumb.jpg","galleries_id":153713,"server_id":32,"link":"photo_2369272.html","width":130,"caption":"English Pointer","height":177});
															thumbnails[2372171] = clik.newPhoto({"id":2372171,"src":"A Fine Brace web_thumb.jpg","galleries_id":153713,"server_id":32,"link":"photo_2372171.html","width":130,"caption":"<strong>\"A Fine Brace\"<\/strong>","height":171});
															thumbnails[2372173] = clik.newPhoto({"id":2372173,"src":"Starting Out web_thumb.jpg","galleries_id":153713,"server_id":32,"link":"photo_2372173.html","width":130,"caption":"<strong>\"Starting Out\"<\/strong>","height":177});
															thumbnails[2427540] = clik.newPhoto({"id":2427540,"src":"Bedlington web_thumb.jpg","galleries_id":153713,"server_id":32,"link":"photo_2427540.html","width":130,"caption":"Bedlington Terrier","height":323});
															thumbnails[2427559] = clik.newPhoto({"id":2427559,"src":"Bull Terrier web_thumb.jpg","galleries_id":153713,"server_id":32,"link":"photo_2427559.html","width":130,"caption":"Bull Terrier","height":323});
															thumbnails[2527814] = clik.newPhoto({"id":2527814,"src":"collie drawing web_thumb.jpg","galleries_id":153687,"server_id":32,"link":"photo_2527814.html","width":130,"caption":"<strong>\"Barney\"<\/strong> Border Collie","height":143});
															thumbnails[2957320] = clik.newPhoto({"id":2957320,"src":"Whipet web2_thumb.jpg","galleries_id":153687,"server_id":32,"link":"photo_2957320.html","width":130,"caption":"<strong>\"Lark\"<\/strong> Lurcher","height":102});
															thumbnails[3048064] = clik.newPhoto({"id":3048064,"src":"Clyde1_thumb.jpg","galleries_id":153687,"server_id":32,"link":"photo_3048064.html","width":130,"caption":"<strong>\"Clyde\"<\/strong> ","height":112});
															thumbnails[3237207] = clik.newPhoto({"id":3237207,"src":"beagle_thumb.jpg","galleries_id":153687,"server_id":32,"link":"photo_3237207.html","width":130,"caption":"Beagle","height":103});
															thumbnails[3237210] = clik.newPhoto({"id":3237210,"src":"border old web_thumb.jpg","galleries_id":153687,"server_id":32,"link":"photo_3237210.html","width":130,"caption":"Border Terrier","height":156});
															thumbnails[3237211] = clik.newPhoto({"id":3237211,"src":"cairn terrier_thumb.jpg","galleries_id":153713,"server_id":32,"link":"photo_3237211.html","width":130,"caption":"Cairn Terrier","height":159});
															thumbnails[3237212] = clik.newPhoto({"id":3237212,"src":"English Springer Spaniel web_thumb.jpg","galleries_id":153713,"server_id":32,"link":"photo_3237212.html","width":130,"caption":"<strong>\"Max\"<\/strong><br>\r\nEnglish Springer Spaniel<br>\r\n","height":163});
															thumbnails[3353098] = clik.newPhoto({"id":3353098,"src":"millie_thumb.jpg","galleries_id":153687,"server_id":32,"link":"photo_3353098.html","width":130,"caption":"<strong>\"Millie\"<\/strong> Boxer","height":132});
															thumbnails[4064473] = clik.newPhoto({"id":4064473,"src":"Weirmaraner_thumb.jpg","galleries_id":153687,"server_id":32,"link":"photo_4064473.html","width":130,"caption":"<strong>Weimaraner<\/strong>","height":140});
															thumbnails[4070628] = clik.newPhoto({"id":4070628,"src":"Jasper_Lexi_Meg__Purdy_thumb.jpg","galleries_id":153713,"server_id":32,"link":"photo_4070628.html","width":130,"caption":"<strong>JASPER, LEXI, MEG & PURDY<\/strong>","height":56});
															thumbnails[4163979] = clik.newPhoto({"id":4163979,"src":"Black_Brace_thumb.jpg","galleries_id":153713,"server_id":32,"link":"photo_4163979.html","width":130,"caption":"<strong>Lucy and Tikka<\/strong>","height":174});
															thumbnails[4442447] = clik.newPhoto({"id":4442447,"src":"Dobermans_thumb.jpg","galleries_id":153713,"server_id":32,"link":"photo_4442447.html","width":130,"caption":"<strong>Mollie, Jimbo, Brooke & Izzie<\/strong","height":56});
															thumbnails[4772058] = clik.newPhoto({"id":4772058,"src":"Rufus_thumb.jpg","galleries_id":153713,"server_id":32,"link":"photo_4772058.html","width":130,"caption":"<strong>Rufus<\/strong>","height":165});
															thumbnails[5424862] = clik.newPhoto({"id":5424862,"src":"labradoodle_thumb.jpg","galleries_id":153687,"server_id":32,"link":"photo_5424862.html","width":130,"caption":"<strong>LABRADOODLE<\/strong>","height":177});
															thumbnails[5424876] = clik.newPhoto({"id":5424876,"src":"springer_Rosie_thumb.jpg","galleries_id":153687,"server_id":32,"link":"photo_5424876.html","width":130,"caption":"<strong>'ROSIE' SPRINGER SPANIEL<\/strong","height":167});
															thumbnails[5424939] = clik.newPhoto({"id":5424939,"src":"boxer_pup_thumb.jpg","galleries_id":153713,"server_id":32,"link":"photo_5424939.html","width":130,"caption":"<strong>BOXER PUP<\/strong>","height":178});
															thumbnails[5922738] = clik.newPhoto({"id":5922738,"src":"Schnauzers_thumb.jpg","galleries_id":153687,"server_id":32,"link":"photo_5922738.html","width":130,"caption":"<strong>Miniature Schnauzer Pups<\/strong>","height":101});
															thumbnails[6900249] = clik.newPhoto({"id":6900249,"src":"Gus_thumb.jpg","galleries_id":153687,"server_id":32,"link":"photo_6900249.html","width":130,"caption":"<strong>\"Gus\"<\/strong> Border Terrier","height":123});
															thumbnails[6900294] = clik.newPhoto({"id":6900294,"src":"border_collie_Tess_thumb.jpg","galleries_id":153687,"server_id":32,"link":"photo_6900294.html","width":130,"caption":"<strong>\"Tess\"<\/strong> Border Collie","height":157});
															thumbnails[2361694] = clik.newPhoto({"id":2361694,"src":"Romeo web_thumb.jpg","galleries_id":153719,"server_id":32,"link":"photo_2361694.html","width":130,"caption":"<strong>\"Romeo\"<\/strong><br>\r\nWelsh Section D<br>\r\n","height":174});
															thumbnails[2361701] = clik.newPhoto({"id":2361701,"src":"In Hand  web_thumb.jpg","galleries_id":153719,"server_id":32,"link":"photo_2361701.html","width":130,"caption":"<strong>\"Trotting Up\"<\/strong>","height":102});
															thumbnails[2361712] = clik.newPhoto({"id":2361712,"src":"Sue web_thumb.jpg","galleries_id":153718,"server_id":32,"link":"photo_2361712.html","width":130,"caption":"<strong>\"Sue's Trio\"<\/strong>","height":78});
															thumbnails[2361795] = clik.newPhoto({"id":2361795,"src":"Grey Mare web_thumb.jpg","galleries_id":153719,"server_id":32,"link":"photo_2361795.html","width":130,"caption":"<strong>\"Aliah Al Shaqab\"<\/strong> Arab Mare","height":107});
															thumbnails[2364932] = clik.newPhoto({"id":2364932,"src":"Jack web_thumb.jpg","galleries_id":153718,"server_id":32,"link":"photo_2364932.html","width":130,"caption":"<strong>\"Jack The Lad\"<\/strong> Driving Pony","height":207});
															thumbnails[2367862] = clik.newPhoto({"id":2367862,"src":"Foal at Foot web_thumb.jpg","galleries_id":153719,"server_id":32,"link":"photo_2367862.html","width":130,"caption":"<strong>\"Foal at Foot\"<\/strong>","height":96});
															thumbnails[2368014] = clik.newPhoto({"id":2368014,"src":"big grey web_thumb.jpg","galleries_id":153719,"server_id":32,"link":"photo_2368014.html","width":130,"caption":"\"<strong>Dao de Courenne\"<\/strong> Lusitano","height":92});
															thumbnails[2368018] = clik.newPhoto({"id":2368018,"src":"Walker web_thumb.jpg","galleries_id":153719,"server_id":32,"link":"photo_2368018.html","width":130,"caption":"<strong>\"Miss Walkers Gelding\"<\/strong>","height":178});
															thumbnails[2368023] = clik.newPhoto({"id":2368023,"src":"Nelly web_thumb.jpg","galleries_id":153718,"server_id":32,"link":"photo_2368023.html","width":130,"caption":"<strong>\"Nelly\"<\/stron>","height":189});
															thumbnails[2368026] = clik.newPhoto({"id":2368026,"src":"Rollie_thumb.jpg","galleries_id":153718,"server_id":32,"link":"photo_2368026.html","width":130,"caption":"<strong>\"Ro\"<\/strong>","height":176});
															thumbnails[2368279] = clik.newPhoto({"id":2368279,"src":"Apache web_thumb.jpg","galleries_id":153719,"server_id":32,"link":"photo_2368279.html","width":130,"caption":"<strong>\"Apache\"<\/strong>","height":176});
															thumbnails[2376851] = clik.newPhoto({"id":2376851,"src":"Lucy web_thumb.jpg","galleries_id":153718,"server_id":32,"link":"photo_2376851.html","width":130,"caption":"<strong>\"Lucy\"<\/strong>","height":179});
															thumbnails[2546227] = clik.newPhoto({"id":2546227,"src":"racing web_thumb.jpg","galleries_id":153719,"server_id":32,"link":"photo_2546227.html","width":130,"caption":"<strong>\"The Downfall of Princes\"<\/strong>","height":57});
															thumbnails[3214330] = clik.newPhoto({"id":3214330,"src":"Here We Go_thumb.jpg","galleries_id":153719,"server_id":32,"link":"photo_3214330.html","width":130,"caption":"<strong>\"Here We Go\"<\/strong>","height":58});
															thumbnails[3427776] = clik.newPhoto({"id":3427776,"src":"The Polo Players1_thumb.jpg","galleries_id":153719,"server_id":32,"link":"photo_3427776.html","width":130,"caption":"<strong>\"The Polo Players\"<\/strong>","height":40});
															thumbnails[3931319] = clik.newPhoto({"id":3931319,"src":"Shadow_thumb.jpg","galleries_id":153719,"server_id":32,"link":"photo_3931319.html","width":130,"caption":"<strong>\"Shadow\"<\/strong>","height":174});
															thumbnails[4065031] = clik.newPhoto({"id":4065031,"src":"dressage_web_thumb.jpg","galleries_id":153719,"server_id":32,"link":"photo_4065031.html","width":130,"caption":"<strong>Friday's Dressage<\/strong>","height":102});
															thumbnails[5424886] = clik.newPhoto({"id":5424886,"src":"Aislinn_and_Chesney_thumb.jpg","galleries_id":153719,"server_id":32,"link":"photo_5424886.html","width":130,"caption":"<strong>Aislinn and Chesney<\/strong>","height":94});
															thumbnails[5492424] = clik.newPhoto({"id":5492424,"src":"Sidney_thumb.jpg","galleries_id":153718,"server_id":32,"link":"photo_5492424.html","width":130,"caption":"<strong>'Sidney'<\/strong>","height":100});
															thumbnails[5780828] = clik.newPhoto({"id":5780828,"src":"Monty_thumb.jpg","galleries_id":153719,"server_id":32,"link":"photo_5780828.html","width":130,"caption":"<strong>'Monty'<\/strong>","height":96});
															thumbnails[5780833] = clik.newPhoto({"id":5780833,"src":"Madigan_thumb.jpg","galleries_id":153718,"server_id":32,"link":"photo_5780833.html","width":130,"caption":"<strong>'Madigan'<\/strong>","height":92});
															thumbnails[5780902] = clik.newPhoto({"id":5780902,"src":"Tranquil_thumb.jpg","galleries_id":153719,"server_id":32,"link":"photo_5780902.html","width":130,"caption":"<strong>'Tranquil'<\/strong>","height":102});
															thumbnails[5949011] = clik.newPhoto({"id":5949011,"src":"yearling_thumb.jpg","galleries_id":153719,"server_id":32,"link":"photo_5949011.html","width":130,"caption":"<strong>'The Yearling'<\/strong>","height":171});
															thumbnails[6687491] = clik.newPhoto({"id":6687491,"src":"ploughing_match_thumb.jpg","galleries_id":153719,"server_id":32,"link":"photo_6687491.html","width":130,"caption":"<strong>\"Ploughing Match\"<\/strong>","height":43});
															thumbnails[2367947] = clik.newPhoto({"id":2367947,"src":"baker web_thumb.jpg","galleries_id":154047,"server_id":32,"link":"photo_2367947.html","width":130,"caption":"<strong>\"Early Delivery\"<\/strong>","height":114});
															thumbnails[2367951] = clik.newPhoto({"id":2367951,"src":"Butchers cart web_thumb.jpg","galleries_id":154047,"server_id":32,"link":"photo_2367951.html","width":130,"caption":"<strong>\"Butchers Cart\"<\/strong>","height":101});
															thumbnails[2367952] = clik.newPhoto({"id":2367952,"src":"Omnibus web_thumb.jpg","galleries_id":154047,"server_id":32,"link":"photo_2367952.html","width":130,"caption":"<strong>\"Garden Seat Omnibus\"<\/strong>","height":103});
															thumbnails[2367953] = clik.newPhoto({"id":2367953,"src":"Ian team web_thumb.jpg","galleries_id":154047,"server_id":32,"link":"photo_2367953.html","width":130,"caption":"<strong>\"Mr Johnson's Team\"<\/strong>","height":92});
															thumbnails[2367955] = clik.newPhoto({"id":2367955,"src":"Coloured Driving Pony web_thumb.jpg","galleries_id":154047,"server_id":32,"link":"photo_2367955.html","width":130,"caption":"Driving pony","height":96});
															thumbnails[2367959] = clik.newPhoto({"id":2367959,"src":"cats web_thumb.jpg","galleries_id":154030,"server_id":32,"link":"photo_2367959.html","width":130,"caption":"<strong>\"Double Trouble\"<\/strong>","height":112});
															thumbnails[2368000] = clik.newPhoto({"id":2368000,"src":"Lawrence web_thumb.jpg","galleries_id":154030,"server_id":32,"link":"photo_2368000.html","width":130,"caption":"<strong>\"Lawrence\"<?strong>","height":165});
															thumbnails[2368250] = clik.newPhoto({"id":2368250,"src":"Terrier Man web_thumb.jpg","galleries_id":196723,"server_id":32,"link":"photo_2368250.html","width":130,"caption":"<strong>\"Terrier Man\"<\/strong>","height":178});
															thumbnails[2368255] = clik.newPhoto({"id":2368255,"src":"Lakeland man 1 web_thumb.jpg","galleries_id":196723,"server_id":32,"link":"photo_2368255.html","width":130,"caption":"<strong>\"The Showing Man\"<\/strong>","height":177});
															thumbnails[2369364] = clik.newPhoto({"id":2369364,"src":"Escrick web_thumb.jpg","galleries_id":154047,"server_id":32,"link":"photo_2369364.html","width":130,"caption":"<strong>\"Escrick Park 08\"<\/strong>","height":72});
															thumbnails[2957321] = clik.newPhoto({"id":2957321,"src":"dino web_thumb.jpg","galleries_id":154047,"server_id":32,"link":"photo_2957321.html","width":130,"caption":"Driving Cones","height":99});
															thumbnails[3219724] = clik.newPhoto({"id":3219724,"src":"wedding drwing web_thumb.jpg","galleries_id":196723,"server_id":32,"link":"photo_3219724.html","width":130,"caption":"<strong>Portrait as a Young Man<\/strong>","height":180});
															thumbnails[3427207] = clik.newPhoto({"id":3427207,"src":"Self Portrait web_thumb.jpg","galleries_id":196723,"server_id":32,"link":"photo_3427207.html","width":130,"caption":"<strong>Self Portrait<\/strong><br>\r\n<br>\r\n","height":160});
															thumbnails[3427286] = clik.newPhoto({"id":3427286,"src":"mum web_thumb.jpg","galleries_id":196723,"server_id":32,"link":"photo_3427286.html","width":130,"caption":"<strong>Portrait as a Young Lady<\/strong>","height":185});
															thumbnails[3644054] = clik.newPhoto({"id":3644054,"src":"Hare_thumb.jpg","galleries_id":222747,"server_id":32,"link":"photo_3644054.html","width":130,"caption":"<strong>Mad March Hare<\/strong>","height":180});
															thumbnails[3917414] = clik.newPhoto({"id":3917414,"src":"Roe_Buck_web1_thumb.jpg","galleries_id":222747,"server_id":32,"link":"photo_3917414.html","width":130,"caption":"<strong>Roe Buck<\/strong>","height":180});
															thumbnails[4023886] = clik.newPhoto({"id":4023886,"src":"Wily_Person_thumb.jpg","galleries_id":222747,"server_id":32,"link":"photo_4023886.html","width":130,"caption":"<strong>Wily Person<\/strong>","height":187});
															thumbnails[4023896] = clik.newPhoto({"id":4023896,"src":"Fawn_thumb.jpg","galleries_id":222747,"server_id":32,"link":"photo_4023896.html","width":130,"caption":"<strong>Fawn<\/strong>","height":90});
															thumbnails[4492527] = clik.newPhoto({"id":4492527,"src":"Bolting_Hare_thumb.jpg","galleries_id":222747,"server_id":32,"link":"photo_4492527.html","width":130,"caption":"<strong>Bolting Hare<\/strong>","height":97});
															thumbnails[5055704] = clik.newPhoto({"id":5055704,"src":"boxing_hares_thumb.jpg","galleries_id":222747,"server_id":32,"link":"photo_5055704.html","width":130,"caption":"<strong>Boxing Hares<\/strong>","height":157});
															thumbnails[6615288] = clik.newPhoto({"id":6615288,"src":"boxing_hares_2_thumb.jpg","galleries_id":222747,"server_id":32,"link":"photo_6615288.html","width":130,"caption":"<strong>More Boxing Hares<\/strong>","height":157});
															thumbnails[2365034] = clik.newPhoto({"id":2365034,"src":"hounds web_thumb.jpg","galleries_id":338012,"server_id":32,"link":"photo_2365034.html","width":130,"caption":"<strong>\"The Badsworth Boys\"<\/strong><br>\r\n","height":42});
															thumbnails[2376841] = clik.newPhoto({"id":2376841,"src":"Looking on web_thumb.jpg","galleries_id":338012,"server_id":32,"link":"photo_2376841.html","width":130,"caption":"<strong>\"Looking On\"<\/strong>","height":43});
															thumbnails[2376875] = clik.newPhoto({"id":2376875,"src":"huntsman web1_thumb.jpg","galleries_id":338012,"server_id":32,"link":"photo_2376875.html","width":130,"caption":"<strong>\"One Jan Zero Eight\"<\/strong>","height":391});
															thumbnails[3855183] = clik.newPhoto({"id":3855183,"src":"on_the_trail_thumb.jpg","galleries_id":338012,"server_id":32,"link":"photo_3855183.html","width":130,"caption":"<strong>\"On The Trail\"<\/strong>","height":43});
															thumbnails[4163987] = clik.newPhoto({"id":4163987,"src":"Bramham_Boys_thumb.jpg","galleries_id":338012,"server_id":32,"link":"photo_4163987.html","width":130,"caption":"<strong>The Bramham Boys<\/strong>","height":90});
															thumbnails[4316513] = clik.newPhoto({"id":4316513,"src":"The_Other_Bramham_Boys_thumb.jpg","galleries_id":338012,"server_id":32,"link":"photo_4316513.html","width":130,"caption":"<strong>The Other Bramham Boys<\/strong>","height":96});
															thumbnails[6000137] = clik.newPhoto({"id":6000137,"src":"coarsing_white_thumb.jpg","galleries_id":338013,"server_id":32,"link":"photo_6000137.html","width":130,"caption":"<strong>'White'<\/strong>","height":101});
															thumbnails[7887294] = clik.newPhoto({"id":7887294,"src":"Ready_For_The_Off_thumb.jpg","galleries_id":338012,"server_id":32,"link":"photo_7887294.html","width":130,"caption":"'Ready For The Off'","height":99});
															thumbnails[7938006] = clik.newPhoto({"id":7938006,"src":"Hound_1_thumb.jpg","galleries_id":338012,"server_id":32,"link":"photo_7938006.html","width":130,"caption":"Hound Study 1","height":105});
															thumbnails[7938010] = clik.newPhoto({"id":7938010,"src":"Hound_2_thumb.jpg","galleries_id":338012,"server_id":32,"link":"photo_7938010.html","width":130,"caption":"Hound Study 2","height":164});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[154047] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Carriage Driving","link":"section196236_154047.html","maxRecords":0.0,"photoIDs":[2367947.0,2367951.0,2367952.0,2367953.0,2367955.0,2369364.0,2957321.0],"skipIndex":0,"section_code":"section196236","featured_images":"2957321,2369364,2367955,2367953,2367952,2367951,2367947","id":154047,"singleSection":false});				  						galleries[153687] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Dog Drawings","link":"gallery_153687.html","maxRecords":0.0,"photoIDs":[2361478.0,2364938.0,2364950.0,2364965.0,2367846.0,2367848.0,2367893.0,2367898.0,2527814.0,2957320.0,3048064.0,3237207.0,3237210.0,3353098.0,4064473.0,5424862.0,5424876.0,5922738.0,6900249.0,6900294.0],"skipIndex":0,"section_code":"gallery","featured_images":"6900294,6900249,5424862,2361478","id":153687,"singleSection":false});				  						galleries[153713] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Dog Paintings","link":"gallery_153713.html","maxRecords":0.0,"photoIDs":[2361491.0,2361497.0,2361782.0,2367854.0,2367882.0,2367901.0,2367912.0,2369272.0,2372171.0,2372173.0,2427540.0,2427559.0,3237211.0,3237212.0,4070628.0,4163979.0,4442447.0,4772058.0,5424939.0],"skipIndex":0,"section_code":"gallery","featured_images":"4772058,2369272","id":153713,"singleSection":false});				  						galleries[338013] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Field Sports","link":"section404710_338013.html","maxRecords":0.0,"photoIDs":[6000137.0],"skipIndex":0,"section_code":"section404710","featured_images":6000137.0,"id":338013,"singleSection":false});				  						galleries[153718] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Horse Drawings","link":"section195919_153718.html","maxRecords":0.0,"photoIDs":[2361712.0,2364932.0,2368023.0,2368026.0,2376851.0,5492424.0,5780833.0],"skipIndex":0,"section_code":"section195919","featured_images":"5780833,5492424,2376851,2368026,2368023,2364932,2361712","id":153718,"singleSection":false});				  						galleries[153719] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Horse Paintings","link":"section195919_153719.html","maxRecords":0.0,"photoIDs":[2361694.0,2361701.0,2361795.0,2367862.0,2368014.0,2368018.0,2368279.0,2546227.0,3214330.0,3427776.0,3931319.0,4065031.0,5424886.0,5780828.0,5780902.0,5949011.0,6687491.0],"skipIndex":0,"section_code":"section195919","featured_images":"5424886,3214330","id":153719,"singleSection":false});				  						galleries[338012] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Hunting","link":"section404710_338012.html","maxRecords":0.0,"photoIDs":[2365034.0,2376841.0,2376875.0,3855183.0,4163987.0,4316513.0,7887294.0,7938006.0,7938010.0],"skipIndex":0,"section_code":"section404710","featured_images":"7938010,7938006,7887294,4316513,4163987,3855183,2376875,2376841,2365034","id":338012,"singleSection":false});				  						galleries[154030] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Other Pets","link":"section196236_154030.html","maxRecords":0.0,"photoIDs":[2367959.0,2368000.0],"skipIndex":0,"section_code":"section196236","featured_images":"2368000,2367959","id":154030,"singleSection":false});				  						galleries[196723] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"People","link":"section196236_196723.html","maxRecords":0.0,"photoIDs":[2368250.0,2368255.0,3219724.0,3427207.0,3427286.0],"skipIndex":0,"section_code":"section196236","featured_images":"3427286,3427207","id":196723,"singleSection":false});				  						galleries[222747] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wildlife","link":"section196236_222747.html","maxRecords":0.0,"photoIDs":[3644054.0,3917414.0,4023886.0,4023896.0,4492527.0,5055704.0,6615288.0],"skipIndex":0,"section_code":"section196236","featured_images":"5055704,3644054","id":222747,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '3427776,3427207,3214330,2376841,2369272,2364965,2361712,2361701,2361478';
imageSets[2] = '6900294,6900249,5424886,5424862,5055704,4772058,3644054,3427286,3427207,3214330,2369272,2361478';
imageSets[3] = '7938010,7938006,7887294,6900294,6900249,6687491,6615288,6000137,5949011,5922738,5780902,5780833,5780828,5492424,5424939,5424886,5424876,5424862,5055704,4875625,4772058,4492527,4442447,4316513,4163987,4163979,4070628,4065031,4064473,4023896,4023886,3931319,3917414,3855183,3644054,3427776,3427286,3427207,3353098,3237212,3237211,3237210,3237207,3219724,3214330,3048064,2957321,2957320,2546227,2527814';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/janart/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/janart/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/janart/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/janart/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/janart/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/janart/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/janart/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/janart/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/janart/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/janart/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/janart/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/janart/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/janart/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/janart/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/janart/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/janart/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/janart/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/janart/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/janart/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/janart/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/janart/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/janart/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/janart/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/janart/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = backgrounds && backgrounds[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$detailContainer:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
		op = $.extend({},defaults,options),
		html = '', temp = '',
		photoId = op.nextPhoto.id,
		photoCaption = ''+op.nextPhoto.caption,
		photoSrc = op.nextPhoto.src;
	
	if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'Jan Martin Equestrian & Sporting Artist: ' + 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.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>Artist </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;
	}
}

			

