window.thumbnails = {};
															thumbnails[7044015] = clik.newPhoto({"id":7044015,"src":"NS101108D70c431JC_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Cezanne and Jubilant","height":130});
															thumbnails[753403] = clik.newPhoto({"id":753403,"src":"Defiant070203_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Defiant at Wooler Bank, February 2007","height":109});
															thumbnails[808214] = clik.newPhoto({"id":808214,"src":"SanftMarlwood86_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"The original Sanft after winning the Marlwood Beaker in January 1989","height":66});
															thumbnails[1046651] = clik.newPhoto({"id":1046651,"src":"mrpc97_thumb.gif","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":94});
															thumbnails[5476483] = clik.newPhoto({"id":5476483,"src":"BerkeleyP_thumb.png","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":226});
															thumbnails[1027892] = clik.newPhoto({"id":1027892,"src":"NSD72070528K_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Finlandia at the Hook of Holland","height":195});
															thumbnails[1938132] = clik.newPhoto({"id":1938132,"src":"Crufts2008_BLO_BOB_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":111});
															thumbnails[5276728] = clik.newPhoto({"id":5276728,"src":"20050402-523-Jovial2ndSenior_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Jovial with cup won in the Senior Stake at the ABB trials in the Cotswolds Spring 2005.","height":188});
															thumbnails[5276669] = clik.newPhoto({"id":5276669,"src":"20050724-655-JovialJill_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Jovial at her first open show handled by Jill","height":112});
															thumbnails[767925] = clik.newPhoto({"id":767925,"src":"JubWindow070211a_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Jubilant ornament on the window sill ","height":169});
															thumbnails[6775013] = clik.newPhoto({"id":6775013,"src":"NO100920_125718-ChCezanneJub_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Cezanne and Jubilant","height":195});
															thumbnails[7332040] = clik.newPhoto({"id":7332040,"src":"NS110122D90nc714EmeraldSft_thumb.jpg","galleries_id":396730,"server_id":15,"link":"photo_7332040.html","width":130,"caption":"Got the whole world in my hands!","height":189});
															thumbnails[3496994] = clik.newPhoto({"id":3496994,"src":"F&D-MV090221-1559_thumb.jpg","galleries_id":47687,"server_id":15,"link":"photo_3496994.html","width":130,"caption":"Finlandia and Defiant exploring the boundary","height":108});
															thumbnails[3496999] = clik.newPhoto({"id":3496999,"src":"F&D-MV090221-1549_thumb.jpg","galleries_id":47687,"server_id":15,"link":"photo_3496999.html","width":130,"caption":"Finlandia and Defiant in the orchard","height":124});
															thumbnails[5276613] = clik.newPhoto({"id":5276613,"src":"20071209-1157-Trav1stNoviceCup_thumb.jpg","galleries_id":48357,"server_id":15,"link":"photo_5276613.html","width":130,"caption":"Travis with the cup for winning the ABB Trials Novice Stake","height":158});
															thumbnails[986839] = clik.newPhoto({"id":986839,"src":"PTTbutton_thumb.jpg","galleries_id":48357,"server_id":15,"link":"photo_986839.html","width":130,"caption":"Travis in his first \"Tiger Pull Tail\" video","height":95});
															thumbnails[768230] = clik.newPhoto({"id":768230,"src":"Trav070211_thumb.jpg","galleries_id":48357,"server_id":15,"link":"photo_768230.html","width":130,"caption":"Travis coming in to identify, February 2007","height":157});
															thumbnails[753375] = clik.newPhoto({"id":753375,"src":"J,F&D070203_thumb.jpg","galleries_id":64171,"server_id":15,"link":"photo_753375.html","width":130,"caption":"Jubilant, Finlandia & Defiant at Wooler Bank","height":96});
															thumbnails[753396] = clik.newPhoto({"id":753396,"src":"Finla070203_thumb.jpg","galleries_id":47687,"server_id":15,"link":"photo_753396.html","width":130,"caption":"Finlandia at Wooler Bank after six days in Britain","height":123});
															thumbnails[910023] = clik.newPhoto({"id":910023,"src":"SS&S92_thumb.jpg","galleries_id":64171,"server_id":15,"link":"photo_910023.html","width":130,"caption":"Sanctus, Sable and Salt in 1992","height":108});
															thumbnails[1519335] = clik.newPhoto({"id":1519335,"src":"71022095_thumb.jpg","galleries_id":104275,"server_id":15,"link":"photo_1519335.html","width":130,"caption":"","height":101});
															thumbnails[1519381] = clik.newPhoto({"id":1519381,"src":"71022099_thumb.jpg","galleries_id":47687,"server_id":15,"link":"photo_1519381.html","width":130,"caption":"","height":117});
															thumbnails[1519383] = clik.newPhoto({"id":1519383,"src":"71022101_thumb.jpg","galleries_id":104275,"server_id":15,"link":"photo_1519383.html","width":130,"caption":"","height":67});
															thumbnails[1519389] = clik.newPhoto({"id":1519389,"src":"71022103_thumb.jpg","galleries_id":47687,"server_id":15,"link":"photo_1519389.html","width":130,"caption":"","height":113});
															thumbnails[1519403] = clik.newPhoto({"id":1519403,"src":"71022114_thumb.jpg","galleries_id":47687,"server_id":15,"link":"photo_1519403.html","width":130,"caption":"","height":195});
															thumbnails[1519407] = clik.newPhoto({"id":1519407,"src":"71022116_thumb.jpg","galleries_id":104275,"server_id":15,"link":"photo_1519407.html","width":130,"caption":"","height":113});
															thumbnails[5459780] = clik.newPhoto({"id":5459780,"src":"NS100124-423_thumb.jpg","galleries_id":308923,"server_id":15,"link":"photo_5459780.html","width":130,"caption":"","height":166});
															thumbnails[5459782] = clik.newPhoto({"id":5459782,"src":"NS100124-427_thumb.jpg","galleries_id":308923,"server_id":15,"link":"photo_5459782.html","width":130,"caption":"","height":169});
															thumbnails[5459784] = clik.newPhoto({"id":5459784,"src":"NS100124-430_thumb.jpg","galleries_id":308923,"server_id":15,"link":"photo_5459784.html","width":130,"caption":"","height":129});
															thumbnails[5459791] = clik.newPhoto({"id":5459791,"src":"NS100124-442_thumb.jpg","galleries_id":308923,"server_id":15,"link":"photo_5459791.html","width":130,"caption":"","height":121});
															thumbnails[5459793] = clik.newPhoto({"id":5459793,"src":"NS100124-445_thumb.jpg","galleries_id":308923,"server_id":15,"link":"photo_5459793.html","width":130,"caption":"","height":188});
															thumbnails[5459797] = clik.newPhoto({"id":5459797,"src":"NS100124-448_thumb.jpg","galleries_id":308923,"server_id":15,"link":"photo_5459797.html","width":130,"caption":"","height":79});
															thumbnails[5459799] = clik.newPhoto({"id":5459799,"src":"NS100124-449_thumb.jpg","galleries_id":308923,"server_id":15,"link":"photo_5459799.html","width":130,"caption":"","height":187});
															thumbnails[5459803] = clik.newPhoto({"id":5459803,"src":"NS100124-451_thumb.jpg","galleries_id":308923,"server_id":15,"link":"photo_5459803.html","width":130,"caption":"","height":194});
															thumbnails[5757689] = clik.newPhoto({"id":5757689,"src":"Finlandia201003_0036_thumb.jpg","galleries_id":47687,"server_id":15,"link":"photo_5757689.html","width":130,"caption":"","height":119});
															thumbnails[7044071] = clik.newPhoto({"id":7044071,"src":"NS101030D70nc344Fin_thumb.jpg","galleries_id":47687,"server_id":15,"link":"photo_7044071.html","width":130,"caption":"","height":130});
															thumbnails[7628345] = clik.newPhoto({"id":7628345,"src":"NS110306D90nc079Thm_thumb.jpg","galleries_id":104275,"server_id":15,"link":"photo_7628345.html","width":130,"caption":"BC Trials Trophies Spring 2011","height":69});
															thumbnails[1091212] = clik.newPhoto({"id":1091212,"src":"NS060908-Jill-Travis-Richmond_thumb.jpg","galleries_id":48357,"server_id":15,"link":"photo_1091212.html","width":130,"caption":"Travis with Jill at Richmond Championship Show 2006","height":143});
															thumbnails[820606] = clik.newPhoto({"id":820606,"src":"Fin0703158_thumb.jpg","galleries_id":47687,"server_id":15,"link":"photo_820606.html","width":130,"caption":"Finlandia in the dunes","height":101});
															thumbnails[986838] = clik.newPhoto({"id":986838,"src":"P990i070507a_thumb.jpg","galleries_id":47687,"server_id":15,"link":"photo_986838.html","width":130,"caption":"Finlandia at Mill View","height":173});
															thumbnails[1091191] = clik.newPhoto({"id":1091191,"src":"NS070526-1117-Finlandia_thumb.jpg","galleries_id":47687,"server_id":15,"link":"photo_1091191.html","width":130,"caption":"Finlandia moving in the ring at Hampen","height":118});
															thumbnails[1027888] = clik.newPhoto({"id":1027888,"src":"NSD72070528-1171_thumb.jpg","galleries_id":47687,"server_id":15,"link":"photo_1027888.html","width":130,"caption":"Finlandia ready to return from the Hook of Holland","height":172});
															thumbnails[4434017] = clik.newPhoto({"id":4434017,"src":"20090801-1630-FJDT_thumb.jpg","galleries_id":47687,"server_id":15,"link":"photo_4434017.html","width":130,"caption":"Finlandia and the boys","height":98});
															thumbnails[1685699] = clik.newPhoto({"id":1685699,"src":"071207-1196FDT_thumb.jpg","galleries_id":47687,"server_id":15,"link":"photo_1685699.html","width":130,"caption":"Finlandia, Defiant and Travis at Huttoft","height":87});
															thumbnails[1687875] = clik.newPhoto({"id":1687875,"src":"071209-1197T_thumb.jpg","galleries_id":48357,"server_id":15,"link":"photo_1687875.html","width":130,"caption":"Travis playing the hare at Huttoft","height":195});
															thumbnails[1687861] = clik.newPhoto({"id":1687861,"src":"071209-1200FT_thumb.jpg","galleries_id":47687,"server_id":15,"link":"photo_1687861.html","width":130,"caption":"Finlandia and Travis at Huttoft","height":87});
															thumbnails[1685704] = clik.newPhoto({"id":1685704,"src":"071207-1212F_thumb.jpg","galleries_id":47687,"server_id":15,"link":"photo_1685704.html","width":130,"caption":"Finlandia at Huttoft","height":120});
															thumbnails[1027880] = clik.newPhoto({"id":1027880,"src":"SA070526-855_thumb.jpg","galleries_id":47687,"server_id":15,"link":"photo_1027880.html","width":130,"caption":"Finlandia at the Danish Bloodhound Club Show 2007","height":171});
															thumbnails[1046530] = clik.newPhoto({"id":1046530,"src":"NS070602-1221a-Jill-Travis_thumb.jpg","galleries_id":48357,"server_id":15,"link":"photo_1046530.html","width":130,"caption":"Jill and Travis at the Bloodhound Club Show, where Travis won the Special Beginners and Working Trial classes.","height":125});
															thumbnails[5268204] = clik.newPhoto({"id":5268204,"src":"NS091218D90-148TravJus_thumb.jpg","galleries_id":48357,"server_id":15,"link":"photo_5268204.html","width":130,"caption":"Trav and Justice Play in Snow","height":84});
															thumbnails[6120601] = clik.newPhoto({"id":6120601,"src":"NS100418-D70-206-Noble_thumb.jpg","galleries_id":47687,"server_id":15,"link":"photo_6120601.html","width":130,"caption":"Finlandia looking Noble","height":161});
															thumbnails[6120579] = clik.newPhoto({"id":6120579,"src":"NS100606-D90-713_thumb.jpg","galleries_id":47687,"server_id":15,"link":"photo_6120579.html","width":130,"caption":"Best Matching Pair ","height":169});
															thumbnails[6785598] = clik.newPhoto({"id":6785598,"src":"NO100920-125709-FinIlkley_thumb.jpg","galleries_id":47687,"server_id":15,"link":"photo_6785598.html","width":130,"caption":"","height":90});
															thumbnails[7088562] = clik.newPhoto({"id":7088562,"src":"NO101114T140931_thumb.jpg","galleries_id":104275,"server_id":15,"link":"photo_7088562.html","width":130,"caption":"Post-Trials City Tour","height":173});
															thumbnails[7063383] = clik.newPhoto({"id":7063383,"src":"NS101114-JudgesWithJF_thumb.jpg","galleries_id":104275,"server_id":15,"link":"photo_7063383.html","width":130,"caption":"","height":159});
															thumbnails[7230089] = clik.newPhoto({"id":7230089,"src":"NS101226n574Thm_thumb.jpg","galleries_id":104275,"server_id":15,"link":"photo_7230089.html","width":130,"caption":"Jubilant and Finlandia","height":87});
															thumbnails[7343935] = clik.newPhoto({"id":7343935,"src":"NS110122D90NorekWithIce_thumb.jpg","galleries_id":396730,"server_id":15,"link":"photo_7343935.html","width":130,"caption":"","height":195});
															thumbnails[7343973] = clik.newPhoto({"id":7343973,"src":"NS110122D90SapphireGuardingPuppies_thumb.jpg","galleries_id":396730,"server_id":15,"link":"photo_7343973.html","width":130,"caption":"","height":195});
															thumbnails[7343868] = clik.newPhoto({"id":7343868,"src":"NS110122D90JFinSnow_thumb.jpg","galleries_id":104275,"server_id":15,"link":"photo_7343868.html","width":130,"caption":"","height":196});
															thumbnails[1519386] = clik.newPhoto({"id":1519386,"src":"NS110515D90-060Thm_thumb.jpg","galleries_id":104275,"server_id":15,"link":"photo_1519386.html","width":130,"caption":"Sledmere Fun Day","height":85});
															thumbnails[1685707] = clik.newPhoto({"id":1685707,"src":"NS110515D90nc064FinAtSledmere_thumb.jpg","galleries_id":47687,"server_id":15,"link":"photo_1685707.html","width":130,"caption":"Sledmere House","height":189});
															thumbnails[6977341] = clik.newPhoto({"id":6977341,"src":"NS110711D90-397Thm_thumb.jpg","galleries_id":104275,"server_id":15,"link":"photo_6977341.html","width":130,"caption":"Back in England","height":86});
															thumbnails[8276404] = clik.newPhoto({"id":8276404,"src":"NS110807nc569-EJF_thumb.jpg","galleries_id":396730,"server_id":15,"link":"photo_8276404.html","width":130,"caption":"Finlandia chasing two hares?","height":130});
															thumbnails[1042682] = clik.newPhoto({"id":1042682,"src":"NO110820c133_thumb.jpg","galleries_id":396730,"server_id":15,"link":"photo_1042682.html","width":130,"caption":"Ferry Practice ","height":93});
															thumbnails[7044120] = clik.newPhoto({"id":7044120,"src":"NO110829c024_thumb.jpg","galleries_id":396730,"server_id":15,"link":"photo_7044120.html","width":130,"caption":"Let Sleeping Dogs Lie","height":74});
															thumbnails[808273] = clik.newPhoto({"id":808273,"src":"Sa15My98_thumb.jpg","galleries_id":48356,"server_id":15,"link":"photo_808273.html","width":130,"caption":"Sanctus with her 4 7-day-old pups ","height":207});
															thumbnails[808263] = clik.newPhoto({"id":808263,"src":"D&Jat3daysOld_thumb.jpg","galleries_id":48356,"server_id":15,"link":"photo_808263.html","width":130,"caption":"Defiant and Jovial at 3 days old","height":74});
															thumbnails[5363195] = clik.newPhoto({"id":5363195,"src":"20091218-158-DefiantRIP_thumb.jpg","galleries_id":296542,"server_id":15,"link":"photo_5363195.html","width":130,"caption":"","height":88});
															thumbnails[1931078] = clik.newPhoto({"id":1931078,"src":"04100200_thumb.jpg","galleries_id":296542,"server_id":15,"link":"photo_1931078.html","width":130,"caption":"","height":208});
															thumbnails[4633181] = clik.newPhoto({"id":4633181,"src":"CamJ090830_thumb.jpg","galleries_id":296542,"server_id":15,"link":"photo_4633181.html","width":130,"caption":"Defiant with the three-year-old Cammonstone Js","height":67});
															thumbnails[5276733] = clik.newPhoto({"id":5276733,"src":"20041226-434-JovialDefiant_thumb.jpg","galleries_id":296542,"server_id":15,"link":"photo_5276733.html","width":130,"caption":"Jovial and Defiant on Boxing day at parents","height":81});
															thumbnails[5276673] = clik.newPhoto({"id":5276673,"src":"20050529-558-DefiantTrophies_thumb.jpg","galleries_id":296542,"server_id":15,"link":"photo_5276673.html","width":130,"caption":"Defiant with Trophies won in 2005","height":142});
															thumbnails[750341] = clik.newPhoto({"id":750341,"src":"GillLamb070204_thumb.jpg","galleries_id":296542,"server_id":15,"link":"photo_750341.html","width":130,"caption":"Defiant's 5 month-old Cammonstone puppies","height":86});
															thumbnails[6349573] = clik.newPhoto({"id":6349573,"src":"NS100418-D70-040_thumb.jpg","galleries_id":296542,"server_id":15,"link":"photo_6349573.html","width":130,"caption":"Cammonstone Jupiter & Scentall Legend","height":93});
															thumbnails[683838] = clik.newPhoto({"id":683838,"src":"Image004_thumb.jpg","galleries_id":296417,"server_id":15,"link":"photo_683838.html","width":130,"caption":"Justice and Travis","height":98});
															thumbnails[4434290] = clik.newPhoto({"id":4434290,"src":"20090801-1709-Justice_thumb.jpg","galleries_id":296417,"server_id":15,"link":"photo_4434290.html","width":130,"caption":"","height":173});
															thumbnails[7146538] = clik.newPhoto({"id":7146538,"src":"NS061122P900JJ1_thumb.jpg","galleries_id":296437,"server_id":15,"link":"photo_7146538.html","width":130,"caption":"\"Chocolate Drops\"","height":165});
															thumbnails[1042684] = clik.newPhoto({"id":1042684,"src":"NS070602-1246c_thumb.jpg","galleries_id":296437,"server_id":15,"link":"photo_1042684.html","width":130,"caption":"Jubilant nodding off as dad keeps guard","height":87});
															thumbnails[767926] = clik.newPhoto({"id":767926,"src":"JubWindow070211b_thumb.jpg","galleries_id":296437,"server_id":15,"link":"photo_767926.html","width":130,"caption":"Jubilant ornament on the window sill ","height":174});
															thumbnails[5270334] = clik.newPhoto({"id":5270334,"src":"JubJill090830-1223_thumb.jpg","galleries_id":296437,"server_id":15,"link":"photo_5270334.html","width":130,"caption":"Jubilant with Jill at the ABB Ch Show 2009","height":107});
															thumbnails[5276569] = clik.newPhoto({"id":5276569,"src":"20091112-012-Justice_thumb.jpg","galleries_id":296417,"server_id":15,"link":"photo_5276569.html","width":130,"caption":"Justice posing in the Autumn morning sunshine.","height":167});
															thumbnails[5266141] = clik.newPhoto({"id":5266141,"src":"091218-180-JJinSnowC_thumb.jpg","galleries_id":296417,"server_id":15,"link":"photo_5266141.html","width":130,"caption":"Justice and Jubilant in the Snow","height":86});
															thumbnails[5266280] = clik.newPhoto({"id":5266280,"src":"091218-143-JusInSnow_thumb.jpg","galleries_id":296417,"server_id":15,"link":"photo_5266280.html","width":130,"caption":"Justice after burying his head in the Snow :-)","height":87});
															thumbnails[5266234] = clik.newPhoto({"id":5266234,"src":"091218-151-JusInSnow_thumb.jpg","galleries_id":296417,"server_id":15,"link":"photo_5266234.html","width":130,"caption":"Justice enjoying the Daybreak Snow","height":145});
															thumbnails[5266285] = clik.newPhoto({"id":5266285,"src":"091218-171-JusInSnow_thumb.jpg","galleries_id":296417,"server_id":15,"link":"photo_5266285.html","width":130,"caption":"Justice  - Head in the clouds","height":87});
															thumbnails[5270328] = clik.newPhoto({"id":5270328,"src":"091218-130-JusInSnow_thumb.jpg","galleries_id":296417,"server_id":15,"link":"photo_5270328.html","width":130,"caption":"Justice  full-frontal","height":192});
															thumbnails[6243078] = clik.newPhoto({"id":6243078,"src":"NS100626D90-004_thumb.jpg","galleries_id":296437,"server_id":15,"link":"photo_6243078.html","width":130,"caption":"Jubilant sitting with CC Trophies for 2009","height":86});
															thumbnails[6240217] = clik.newPhoto({"id":6240217,"src":"NS100902D70ncJ3abbT_thumb.jpg","galleries_id":296437,"server_id":15,"link":"photo_6240217.html","width":130,"caption":"Jubilant with 3 Show Trophies","height":89});
															thumbnails[7088421] = clik.newPhoto({"id":7088421,"src":"NS100925D70c011-OrnamentUpdate_thumb.jpg","galleries_id":296437,"server_id":15,"link":"photo_7088421.html","width":130,"caption":"Ornament Update","height":188});
															thumbnails[7044027] = clik.newPhoto({"id":7044027,"src":"NS101108D70c416JC_thumb.jpg","galleries_id":296437,"server_id":15,"link":"photo_7044027.html","width":130,"caption":"Cezanne and Jubilant","height":130});
															thumbnails[7088210] = clik.newPhoto({"id":7088210,"src":"NO101120c100619_thumb.jpg","galleries_id":296437,"server_id":15,"link":"photo_7088210.html","width":130,"caption":"Beach Babe","height":95});
															thumbnails[7192580] = clik.newPhoto({"id":7192580,"src":"NS101212D90nc517Thm_thumb.jpg","galleries_id":296437,"server_id":15,"link":"photo_7192580.html","width":130,"caption":"Jubilant BoB LKA 2010","height":120});
															thumbnails[7487432] = clik.newPhoto({"id":7487432,"src":"NS110305D90nc047Thm_thumb.jpg","galleries_id":296437,"server_id":15,"link":"photo_7487432.html","width":130,"caption":"ID cup & 1st in Novice BC trials Spring 2011","height":130});
															thumbnails[7682901] = clik.newPhoto({"id":7682901,"src":"NS110503D90nc038A5L_thumb.jpg","galleries_id":296437,"server_id":15,"link":"photo_7682901.html","width":130,"caption":"LKA Trophies","height":81});
															thumbnails[7835069] = clik.newPhoto({"id":7835069,"src":"LD110520c280A5L_thumb.jpg","galleries_id":296437,"server_id":15,"link":"photo_7835069.html","width":130,"caption":"Danish Bloodhound Club Show","height":67});
															thumbnails[7088170] = clik.newPhoto({"id":7088170,"src":"NS110807nc652-RJN_thumb.jpg","galleries_id":296437,"server_id":15,"link":"photo_7088170.html","width":130,"caption":"Swedish Champion","height":130});
															thumbnails[7220836] = clik.newPhoto({"id":7220836,"src":"NS110919D90nc1014A5L_thumb.jpg","galleries_id":296437,"server_id":15,"link":"photo_7220836.html","width":130,"caption":"Breaking the 60 kg Barrier","height":103});
															thumbnails[5911396] = clik.newPhoto({"id":5911396,"src":"NS110925D90nc977_thumb.jpg","galleries_id":296437,"server_id":15,"link":"photo_5911396.html","width":130,"caption":"An eventful night","height":87});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[308923] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Harness","link":"gallery_308923.html","maxRecords":0.0,"photoIDs":[5459780.0,5459782.0,5459784.0,5459791.0,5459793.0,5459797.0,5459799.0,5459803.0],"skipIndex":0,"section_code":"gallery","featured_images":"5459803,5459799,5459797,5459793,5459791,5459784,5459782,5459780","id":308923,"singleSection":false});				  						galleries[64171] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Bloodhounds over the years","link":"gallery_64171.html","maxRecords":0.0,"photoIDs":[753375.0,910023.0],"skipIndex":0,"section_code":"gallery","featured_images":"5276613,5268204,1687875,1091212,1046530","id":64171,"singleSection":false});				  						galleries[48357] = clik.newGallery({"parentGallery":64171,"usePopups":false,"title":"Travis","link":"gallery_48357.html","maxRecords":0.0,"photoIDs":[5276613.0,986839.0,768230.0,1091212.0,1687875.0,1046530.0,5268204.0],"skipIndex":0,"section_code":"gallery","featured_images":"5276613,5268204,1687875,1091212,1046530","id":48357,"singleSection":false});				  						galleries[48356] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Sanctus","link":"section71778.html","maxRecords":0.0,"photoIDs":[808273.0,808263.0],"skipIndex":0,"section_code":"section71778","featured_images":808273.0,"id":48356,"singleSection":true});				  						galleries[296542] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Defiant","link":"section71779.html","maxRecords":0.0,"photoIDs":[5363195.0,1931078.0,4633181.0,5276733.0,5276673.0,750341.0,6349573.0],"skipIndex":0,"section_code":"section71779","featured_images":"5363195,5276733,5276673,4633181,1931078","id":296542,"singleSection":true});				  						galleries[47687] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Finlandia","link":"gallery_47687.html","maxRecords":0.0,"photoIDs":[3496994.0,3496999.0,753396.0,1519381.0,1519389.0,1519403.0,5757689.0,7044071.0,820606.0,986838.0,1091191.0,1027888.0,4434017.0,1685699.0,1687861.0,1685704.0,1027880.0,6120601.0,6120579.0,6785598.0,1685707.0],"skipIndex":0,"section_code":"gallery","featured_images":"7044071,6120601,6120579,5757689,4434017,3496994,1685707,1519403,1519389,1519381,986838,820606","id":47687,"singleSection":false});				  						galleries[296417] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Justice","link":"section71784_296417.html","maxRecords":0.0,"photoIDs":[683838.0,4434290.0,5276569.0,5266141.0,5266280.0,5266234.0,5266285.0,5270328.0],"skipIndex":0,"section_code":"section71784","featured_images":"5276569,5270328,5266234,5266141,683838","id":296417,"singleSection":false});				  						galleries[296437] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Jubilant","link":"section71784_296437.html","maxRecords":0.0,"photoIDs":[7146538.0,1042684.0,767926.0,5270334.0,6243078.0,6240217.0,7088421.0,7044027.0,7088210.0,7192580.0,7487432.0,7682901.0,7835069.0,7088170.0,7220836.0,5911396.0],"skipIndex":0,"section_code":"section71784","featured_images":"7835069,7682901,7487432,7220836,7192580,7088170,7044027,5911396","id":296437,"singleSection":false});				  						galleries[104275] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Finlandia and Jubilant","link":"gallery_104275.html","maxRecords":0.0,"photoIDs":[1519335.0,1519383.0,1519407.0,7628345.0,7088562.0,7063383.0,7230089.0,7343868.0,1519386.0,6977341.0],"skipIndex":0,"section_code":"gallery","featured_images":"7628345,7230089,7063383,6977341,1519386","id":104275,"singleSection":false});				  						galleries[396730] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Emerald","link":"gallery_396730.html","maxRecords":0.0,"photoIDs":[7332040.0,7343935.0,7343973.0,8276404.0,1042682.0,7044120.0],"skipIndex":0,"section_code":"gallery","featured_images":"8276404,7332040,7044120,1042682","id":396730,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '7628345,1519386,7835069,6977341,5911396';
imageSets[2] = '7332040,7044071,5757689,5363195,5276613,3496994,1931078,1519403,1519389,1519381,808273,808214,683838,7628345,1091212,820606,986838,4434017,4633181,1687875,5276733,5276673,1046530,5276569,5266141,5266234,5270328,5268204,6120601,6120579,7044027,7063383,7192580,7230089,7487432,7682901,1685707,1519386,7835069,6977341,7088170,8276404,1042682,7044120,7220836,5911396';
imageSets[3] = '8276404,7835069,7682901,7628345,7487432,7343973,7343935,7343868,7332040,7230089,7220836,7192580,7146538,7088562,7088421,7088210,7088170,7063383,7044120,7044071,7044027,7044015,6977341,6785598,6775013,6349573,6243078,6240217,6120601,6120579,5911396,5757689,5476483,5459803,5459799,5459797,5459793,5459791,5459784,5459782,5459780,5363195,5276733,5276728,5276673,5276669,5276613,5276569,5270334,5270328';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/sanft/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/sanft/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/sanft/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/sanft/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/sanft/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/sanft/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/sanft/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/sanft/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/sanft/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/sanft/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/sanft/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/sanft/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/sanft/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/sanft/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/sanft/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/sanft/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/sanft/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/sanft/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/sanft/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/sanft/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/sanft/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/sanft/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/sanft/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/sanft/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/sanft/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/sanft/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/sanft/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 = 'Sanft: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
	temp += this.fnGetPaymentInfo();
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
																		temp += '<p>Pay by credit card using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp += '<select class="paymentlink" name="payment_options_id" onchange="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 += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="paypal@cleanboot.co.uk">';
					temp += '<input type="hidden" name="currency_code" value="GBP">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to purchases\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="paypal@cleanboot.co.uk">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View purchases\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						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;
	}
}

			

