window.thumbnails = {};
															thumbnails[5970415] = clik.newPhoto({"id":5970415,"src":"AutumnMistonWinterHill_thumb.jpg","galleries_id":336702,"server_id":5,"link":"photo_5970415.html","width":130,"caption":"autumn mist on winter hill","height":104});
															thumbnails[5970420] = clik.newPhoto({"id":5970420,"src":"AutumntracktoPendleburys_thumb.jpg","galleries_id":336702,"server_id":5,"link":"photo_5970420.html","width":130,"caption":"autumn track to pendleburys","height":109});
															thumbnails[5970428] = clik.newPhoto({"id":5970428,"src":"bewarethebog_thumb.jpg","galleries_id":336702,"server_id":5,"link":"photo_5970428.html","width":130,"caption":"beware the bog","height":104});
															thumbnails[5976130] = clik.newPhoto({"id":5976130,"src":"endofsummer_thumb.jpg","galleries_id":336702,"server_id":5,"link":"photo_5976130.html","width":130,"caption":"end of summer","height":107});
															thumbnails[5976137] = clik.newPhoto({"id":5976137,"src":"Hopeornohope_thumb.jpg","galleries_id":336702,"server_id":5,"link":"photo_5976137.html","width":130,"caption":"hope or no hope","height":96});
															thumbnails[5976148] = clik.newPhoto({"id":5976148,"src":"justbeforethesungoesdown_thumb.jpg","galleries_id":425049,"server_id":5,"link":"photo_5976148.html","width":130,"caption":"just before the sun goes down","height":97});
															thumbnails[5976157] = clik.newPhoto({"id":5976157,"src":"Lightandwarmthgivehope_thumb.jpg","galleries_id":425049,"server_id":5,"link":"photo_5976157.html","width":130,"caption":"light and warmth give hope","height":102});
															thumbnails[5976191] = clik.newPhoto({"id":5976191,"src":"LightoverRivington_thumb.jpg","galleries_id":425049,"server_id":5,"link":"photo_5976191.html","width":130,"caption":"light over rivington","height":104});
															thumbnails[5976197] = clik.newPhoto({"id":5976197,"src":"MistoverLowerRivingtonReservoir_thumb.jpg","galleries_id":425049,"server_id":5,"link":"photo_5976197.html","width":130,"caption":"mist over lower rivington reservoir","height":102});
															thumbnails[5976203] = clik.newPhoto({"id":5976203,"src":"mistywoodsrivington_thumb.jpg","galleries_id":425049,"server_id":5,"link":"photo_5976203.html","width":130,"caption":"misty woods rivington","height":103});
															thumbnails[5976210] = clik.newPhoto({"id":5976210,"src":"mountainbikerdevouredtheWittonWeaversWay_thumb.jpg","galleries_id":336702,"server_id":5,"link":"photo_5976210.html","width":130,"caption":"mountain biker devoured the witton weavers way","height":97});
															thumbnails[5976223] = clik.newPhoto({"id":5976223,"src":"Pathwaysandbarriers_thumb.jpg","galleries_id":425049,"server_id":5,"link":"photo_5976223.html","width":130,"caption":"pathways and barriers","height":107});
															thumbnails[5976228] = clik.newPhoto({"id":5976228,"src":"smithillscountrypark_thumb.jpg","galleries_id":336702,"server_id":5,"link":"photo_5976228.html","width":130,"caption":"smithills country park","height":107});
															thumbnails[5976233] = clik.newPhoto({"id":5976233,"src":"sometimesthereshopesometimesthereisnot_thumb.jpg","galleries_id":336702,"server_id":5,"link":"photo_5976233.html","width":130,"caption":"sometimes theres hope sometimes there is not","height":97});
															thumbnails[5976241] = clik.newPhoto({"id":5976241,"src":"stormcloudsoverwinterhill_thumb.jpg","galleries_id":336702,"server_id":5,"link":"photo_5976241.html","width":130,"caption":"storm clouds over winter hill","height":108});
															thumbnails[5976255] = clik.newPhoto({"id":5976255,"src":"Thereisatimetoturnback_thumb.jpg","galleries_id":425049,"server_id":5,"link":"photo_5976255.html","width":130,"caption":"there is a time to turn back","height":102});
															thumbnails[5976276] = clik.newPhoto({"id":5976276,"src":"Thesunshinesontherooftilesofeventheisolated_thumb.jpg","galleries_id":336702,"server_id":5,"link":"photo_5976276.html","width":130,"caption":"the sun shines on the roof tiles of even the isolated","height":103});
															thumbnails[5976282] = clik.newPhoto({"id":5976282,"src":"thewaybackbutthemistisclosingin_thumb.jpg","galleries_id":336702,"server_id":5,"link":"photo_5976282.html","width":130,"caption":"the way back but the mist is closing in","height":104});
															thumbnails[5976341] = clik.newPhoto({"id":5976341,"src":"thewayhomeithink_thumb.jpg","galleries_id":336702,"server_id":5,"link":"photo_5976341.html","width":130,"caption":"the way home i think","height":103});
															thumbnails[5976350] = clik.newPhoto({"id":5976350,"src":"WinterTracktoPendleburys_thumb.jpg","galleries_id":425049,"server_id":5,"link":"photo_5976350.html","width":130,"caption":"winter track to pendleburys","height":105});
															thumbnails[5976358] = clik.newPhoto({"id":5976358,"src":"Youareonyourown_thumb.jpg","galleries_id":336702,"server_id":5,"link":"photo_5976358.html","width":130,"caption":"you are on your own","height":100});
															thumbnails[5976889] = clik.newPhoto({"id":5976889,"src":"fieldnearirwelllarge1_thumb.jpg","galleries_id":425064,"server_id":5,"link":"photo_5976889.html","width":130,"caption":"field near the mersey (large version)","height":107});
															thumbnails[5976907] = clik.newPhoto({"id":5976907,"src":"englishsummerfield_thumb.jpg","galleries_id":425064,"server_id":5,"link":"photo_5976907.html","width":130,"caption":"english summer field","height":149});
															thumbnails[5980097] = clik.newPhoto({"id":5980097,"src":"Bartleygreen1_thumb.jpg","galleries_id":425064,"server_id":5,"link":"photo_5980097.html","width":130,"caption":"bartley green no.1","height":183});
															thumbnails[5980099] = clik.newPhoto({"id":5980099,"src":"Bartleygreen2_thumb.jpg","galleries_id":425064,"server_id":5,"link":"photo_5980099.html","width":130,"caption":"bartley green no.2","height":130});
															thumbnails[5980155] = clik.newPhoto({"id":5980155,"src":"brokenfencetowardstheendoftheday_thumb.jpg","galleries_id":425062,"server_id":5,"link":"photo_5980155.html","width":130,"caption":"broken fence towards the end of the day","height":96});
															thumbnails[5980157] = clik.newPhoto({"id":5980157,"src":"brokentreebroke-fencebrokenlight1805_thumb.jpg","galleries_id":425062,"server_id":5,"link":"photo_5980157.html","width":130,"caption":"broken tree broken fence broken light","height":170});
															thumbnails[5980159] = clik.newPhoto({"id":5980159,"src":"copsesmithillscountrypark_thumb.jpg","galleries_id":425062,"server_id":5,"link":"photo_5980159.html","width":130,"caption":"copse smithills country park","height":162});
															thumbnails[5980169] = clik.newPhoto({"id":5980169,"src":"fieldneartheriver-rwellsmall_thumb.jpg","galleries_id":425064,"server_id":5,"link":"photo_5980169.html","width":130,"caption":"field near the mersey (small version)","height":92});
															thumbnails[5980177] = clik.newPhoto({"id":5980177,"src":"gatetotippethouseNo1_thumb.jpg","galleries_id":425062,"server_id":5,"link":"photo_5980177.html","width":130,"caption":"gate to tippet house no.1","height":103});
															thumbnails[5980181] = clik.newPhoto({"id":5980181,"src":"gatet-tippethouseNo2_thumb.jpg","galleries_id":336703,"server_id":5,"link":"photo_5980181.html","width":130,"caption":"gate to tippet house no.2","height":93});
															thumbnails[5980187] = clik.newPhoto({"id":5980187,"src":"isolatedfarmhousedark_thumb.jpg","galleries_id":425062,"server_id":5,"link":"photo_5980187.html","width":130,"caption":"isolated farm house (dark version)","height":104});
															thumbnails[5980295] = clik.newPhoto({"id":5980295,"src":"lonewalker_thumb.jpg","galleries_id":336703,"server_id":5,"link":"photo_5980295.html","width":130,"caption":"lone walker","height":169});
															thumbnails[5980401] = clik.newPhoto({"id":5980401,"src":"Lookingintothemist_thumb.jpg","galleries_id":336703,"server_id":5,"link":"photo_5980401.html","width":130,"caption":"looking into the mist","height":173});
															thumbnails[5980522] = clik.newPhoto({"id":5980522,"src":"mistonlowerrivirezza_thumb.jpg","galleries_id":425062,"server_id":5,"link":"photo_5980522.html","width":130,"caption":"mist on lower rivington","height":84});
															thumbnails[5980590] = clik.newPhoto({"id":5980590,"src":"roadtoPennys_thumb.jpg","galleries_id":425062,"server_id":5,"link":"photo_5980590.html","width":130,"caption":"road to penny's","height":101});
															thumbnails[5980683] = clik.newPhoto({"id":5980683,"src":"sometimesthere-hopesometimesthereisnt_thumb.jpg","galleries_id":425062,"server_id":5,"link":"photo_5980683.html","width":130,"caption":"sometimes there is hope sometimes there isn't","height":85});
															thumbnails[5980688] = clik.newPhoto({"id":5980688,"src":"stepstotheriver_thumb.jpg","galleries_id":425064,"server_id":5,"link":"photo_5980688.html","width":130,"caption":"steps to the river","height":222});
															thumbnails[5980692] = clik.newPhoto({"id":5980692,"src":"stilespitlersedge_thumb.jpg","galleries_id":336703,"server_id":5,"link":"photo_5980692.html","width":130,"caption":"stile spitlers edge","height":175});
															thumbnails[5980694] = clik.newPhoto({"id":5980694,"src":"summerwit-Garry_thumb.jpg","galleries_id":425064,"server_id":5,"link":"photo_5980694.html","width":130,"caption":"summer with garry","height":98});
															thumbnails[5980695] = clik.newPhoto({"id":5980695,"src":"talltreesonbanktop_thumb.jpg","galleries_id":425064,"server_id":5,"link":"photo_5980695.html","width":130,"caption":"tall trees on banktop","height":113});
															thumbnails[5980697] = clik.newPhoto({"id":5980697,"src":"Tammylarge_thumb.jpg","galleries_id":425064,"server_id":5,"link":"photo_5980697.html","width":130,"caption":"tammy (large)","height":142});
															thumbnails[5981741] = clik.newPhoto({"id":5981741,"src":"Tammysmall_thumb.jpg","galleries_id":425064,"server_id":5,"link":"photo_5981741.html","width":130,"caption":"tammy (small)","height":175});
															thumbnails[5981744] = clik.newPhoto({"id":5981744,"src":"Thebeeches_thumb.jpg","galleries_id":425064,"server_id":5,"link":"photo_5981744.html","width":130,"caption":"the beeches","height":43});
															thumbnails[5981747] = clik.newPhoto({"id":5981747,"src":"thesunshinesontherooftilesofeventheisolated_AB16F5E9-1D09-001F-99B4D4C46A072583_thumb.jpg","galleries_id":336703,"server_id":5,"link":"photo_5981747.html","width":130,"caption":"the sun shines on the roof tiles of even the isolated","height":97});
															thumbnails[5981750] = clik.newPhoto({"id":5981750,"src":"trackburntedge_thumb.jpg","galleries_id":425062,"server_id":5,"link":"photo_5981750.html","width":130,"caption":"track burnt edge","height":115});
															thumbnails[5981754] = clik.newPhoto({"id":5981754,"src":"treesburntedge_thumb.jpg","galleries_id":425062,"server_id":5,"link":"photo_5981754.html","width":130,"caption":"trees burnt edge","height":117});
															thumbnails[6086460] = clik.newPhoto({"id":6086460,"src":"togetherandalsoalone_thumb.jpg","galleries_id":336703,"server_id":5,"link":"photo_6086460.html","width":130,"caption":"together and also alone","height":108});
															thumbnails[6086530] = clik.newPhoto({"id":6086530,"src":"derelictdrystonewall_thumb.jpg","galleries_id":336703,"server_id":5,"link":"photo_6086530.html","width":130,"caption":"derelict dry-stone wall","height":98});
															thumbnails[6459580] = clik.newPhoto({"id":6459580,"src":"anxietyinwintertrees_thumb.jpg","galleries_id":336703,"server_id":5,"link":"photo_6459580.html","width":130,"caption":"anxiety in winter trees","height":98});
															thumbnails[6459601] = clik.newPhoto({"id":6459601,"src":"springeveningno1_thumb.jpg","galleries_id":425049,"server_id":5,"link":"photo_6459601.html","width":130,"caption":"spring evening no.1","height":102});
															thumbnails[6459728] = clik.newPhoto({"id":6459728,"src":"springeveningno2_thumb.jpg","galleries_id":425049,"server_id":5,"link":"photo_6459728.html","width":130,"caption":"spring evening no.2","height":104});
															thumbnails[6459741] = clik.newPhoto({"id":6459741,"src":"thefutiletracktowardswhitehill_thumb.jpg","galleries_id":336702,"server_id":5,"link":"photo_6459741.html","width":130,"caption":"the futile track towards white hill","height":98});
															thumbnails[6459742] = clik.newPhoto({"id":6459742,"src":"springskyoverfields_thumb.jpg","galleries_id":336703,"server_id":5,"link":"photo_6459742.html","width":130,"caption":"spring sky over fields","height":91});
															thumbnails[6459788] = clik.newPhoto({"id":6459788,"src":"lightfromtheshadows_thumb.jpg","galleries_id":425049,"server_id":5,"link":"photo_6459788.html","width":130,"caption":"light from the shadows","height":96});
															thumbnails[6459840] = clik.newPhoto({"id":6459840,"src":"springtwilight_thumb.jpg","galleries_id":425049,"server_id":5,"link":"photo_6459840.html","width":130,"caption":"spring twilight","height":93});
															thumbnails[6459984] = clik.newPhoto({"id":6459984,"src":"thecertaintyoftheuncertainfuture_thumb.jpg","galleries_id":425049,"server_id":5,"link":"photo_6459984.html","width":130,"caption":"the certainty of the uncertain future","height":103});
															thumbnails[6495081] = clik.newPhoto({"id":6495081,"src":"summereveningonthedean_thumb.jpg","galleries_id":425049,"server_id":5,"link":"photo_6495081.html","width":130,"caption":"summer evening on the \"dean\"","height":103});
															thumbnails[6562264] = clik.newPhoto({"id":6562264,"src":"fromthepyg_thumb.jpg","galleries_id":425049,"server_id":5,"link":"photo_6562264.html","width":130,"caption":"from the pyg","height":102});
															thumbnails[6562268] = clik.newPhoto({"id":6562268,"src":"gatewaytowarmsunshine_thumb.jpg","galleries_id":425049,"server_id":5,"link":"photo_6562268.html","width":130,"caption":"gateway to warm sunshine","height":106});
															thumbnails[6562270] = clik.newPhoto({"id":6562270,"src":"shadedtrackofoptimism_thumb.jpg","galleries_id":425049,"server_id":5,"link":"photo_6562270.html","width":130,"caption":"shaded track of optimism","height":103});
															thumbnails[6562286] = clik.newPhoto({"id":6562286,"src":"solitarytree_thumb.jpg","galleries_id":425049,"server_id":5,"link":"photo_6562286.html","width":130,"caption":"solitary tree","height":102});
															thumbnails[6562292] = clik.newPhoto({"id":6562292,"src":"girlatcomputer_thumb.jpg","galleries_id":336703,"server_id":5,"link":"photo_6562292.html","width":130,"caption":"girl at computer","height":186});
															thumbnails[6837852] = clik.newPhoto({"id":6837852,"src":"copsesmithills_thumb.jpg","galleries_id":425049,"server_id":5,"link":"photo_6837852.html","width":130,"caption":"copse, smithills","height":103});
															thumbnails[6965022] = clik.newPhoto({"id":6965022,"src":"springeveningsky_thumb.jpg","galleries_id":336703,"server_id":5,"link":"photo_6965022.html","width":130,"caption":"spring evening sky","height":109});
															thumbnails[6965025] = clik.newPhoto({"id":6965025,"src":"earlymorningwalkonthebeach_thumb.jpg","galleries_id":336703,"server_id":5,"link":"photo_6965025.html","width":130,"caption":"early morning walk on the beach","height":101});
															thumbnails[7246891] = clik.newPhoto({"id":7246891,"src":"isolatedfarmhouselight-version_thumb.jpg","galleries_id":425062,"server_id":5,"link":"photo_7246891.html","width":130,"caption":"isolated farmhouse (light version)","height":102});
															thumbnails[7246894] = clik.newPhoto({"id":7246894,"src":"after_thumb.jpg","galleries_id":425064,"server_id":5,"link":"photo_7246894.html","width":130,"caption":"after","height":88});
															thumbnails[7246899] = clik.newPhoto({"id":7246899,"src":"dianeandrobert_thumb.jpg","galleries_id":425064,"server_id":5,"link":"photo_7246899.html","width":130,"caption":"mother and child","height":192});
															thumbnails[7246906] = clik.newPhoto({"id":7246906,"src":"gatewaytowarmsunshine_4760CDB0-1EC9-D45B-1CABA87109C6C2E8_thumb.jpg","galleries_id":336703,"server_id":5,"link":"photo_7246906.html","width":130,"caption":"gateway to warm sunshine","height":86});
															thumbnails[7246909] = clik.newPhoto({"id":7246909,"src":"goinghome_thumb.jpg","galleries_id":425064,"server_id":5,"link":"photo_7246909.html","width":130,"caption":"going home","height":89});
															thumbnails[7246917] = clik.newPhoto({"id":7246917,"src":"manandsleepingwoman_thumb.jpg","galleries_id":425064,"server_id":5,"link":"photo_7246917.html","width":130,"caption":"man and sleeping woman","height":110});
															thumbnails[7246920] = clik.newPhoto({"id":7246920,"src":"morningshade_4766D757-1EC9-D45B-1C3113E1DBD4FBFE_thumb.jpg","galleries_id":336703,"server_id":5,"link":"photo_7246920.html","width":130,"caption":"morning shade","height":102});
															thumbnails[7246926] = clik.newPhoto({"id":7246926,"src":"onthebeach_thumb.jpg","galleries_id":425064,"server_id":5,"link":"photo_7246926.html","width":130,"caption":"on the beach","height":151});
															thumbnails[7247772] = clik.newPhoto({"id":7247772,"src":"poplars_thumb.jpg","galleries_id":425064,"server_id":5,"link":"photo_7247772.html","width":130,"caption":"poplars","height":154});
															thumbnails[7247800] = clik.newPhoto({"id":7247800,"src":"onceuponatimeiknewherno2_thumb.jpg","galleries_id":336703,"server_id":5,"link":"photo_7247800.html","width":130,"caption":"once upon a time i knew her no.2","height":75});
															thumbnails[7247810] = clik.newPhoto({"id":7247810,"src":"salfordsoapfactory_thumb.jpg","galleries_id":425064,"server_id":5,"link":"photo_7247810.html","width":130,"caption":"salford soap factory","height":209});
															thumbnails[7247816] = clik.newPhoto({"id":7247816,"src":"stilllifeinwindow_thumb.jpg","galleries_id":425064,"server_id":5,"link":"photo_7247816.html","width":130,"caption":"still life in window","height":116});
															thumbnails[7247821] = clik.newPhoto({"id":7247821,"src":"sunsetoveranglezarkelarge_thumb.jpg","galleries_id":336703,"server_id":5,"link":"photo_7247821.html","width":130,"caption":"sunset overanglezarke (large)","height":193});
															thumbnails[7247824] = clik.newPhoto({"id":7247824,"src":"sunsetoveranglezarkesmall_thumb.jpg","galleries_id":336703,"server_id":5,"link":"photo_7247824.html","width":130,"caption":"sunset over anglezarke (small)","height":182});
															thumbnails[7247828] = clik.newPhoto({"id":7247828,"src":"womanatthewindow_thumb.jpg","galleries_id":425064,"server_id":5,"link":"photo_7247828.html","width":130,"caption":"woman at the window","height":145});
															thumbnails[7247832] = clik.newPhoto({"id":7247832,"src":"sleep_thumb.jpg","galleries_id":425064,"server_id":5,"link":"photo_7247832.html","width":130,"caption":"sleep","height":125});
															thumbnails[7320030] = clik.newPhoto({"id":7320030,"src":"asecretplaceno1_thumb.jpg","galleries_id":425049,"server_id":5,"link":"photo_7320030.html","width":130,"caption":"a secret place no.1","height":104});
															thumbnails[7320031] = clik.newPhoto({"id":7320031,"src":"asecretplaceno2_thumb.jpg","galleries_id":425049,"server_id":5,"link":"photo_7320031.html","width":130,"caption":"a secret place no.2","height":97});
															thumbnails[7320035] = clik.newPhoto({"id":7320035,"src":"asecretplaceno4_thumb.jpg","galleries_id":425049,"server_id":5,"link":"photo_7320035.html","width":130,"caption":"a secret place no.4","height":104});
															thumbnails[7320044] = clik.newPhoto({"id":7320044,"src":"theroadtothemoorsno1_thumb.jpg","galleries_id":425049,"server_id":5,"link":"photo_7320044.html","width":130,"caption":"the road to the moors no.1","height":104});
															thumbnails[7347671] = clik.newPhoto({"id":7347671,"src":"stormclouds_thumb.jpg","galleries_id":425063,"server_id":5,"link":"photo_7347671.html","width":130,"caption":"storm clouds","height":97});
															thumbnails[7401433] = clik.newPhoto({"id":7401433,"src":"theclimbtowinterhill_thumb.jpg","galleries_id":336703,"server_id":5,"link":"photo_7401433.html","width":130,"caption":"the climb to winter hill","height":85});
															thumbnails[7431513] = clik.newPhoto({"id":7431513,"src":"life-study-1_thumb.jpg","galleries_id":402851,"server_id":5,"link":"photo_7431513.html","width":130,"caption":"life study 1","height":177});
															thumbnails[7431519] = clik.newPhoto({"id":7431519,"src":"life-study-2_thumb.jpg","galleries_id":402851,"server_id":5,"link":"photo_7431519.html","width":130,"caption":"life study 2","height":235});
															thumbnails[7431543] = clik.newPhoto({"id":7431543,"src":"life-study-3_thumb.jpg","galleries_id":402851,"server_id":5,"link":"photo_7431543.html","width":130,"caption":"life study 3","height":96});
															thumbnails[7445783] = clik.newPhoto({"id":7445783,"src":"ianleftbank_thumb.jpg","galleries_id":425063,"server_id":5,"link":"photo_7445783.html","width":130,"caption":"ian, leftbank","height":170});
															thumbnails[7445796] = clik.newPhoto({"id":7445796,"src":"summertrackintothesun_2C8D3B7B-24E8-5EC4-4FB0C922424882CD_thumb.jpg","galleries_id":425063,"server_id":5,"link":"photo_7445796.html","width":130,"caption":"summer track into the sun","height":174});
															thumbnails[7482862] = clik.newPhoto({"id":7482862,"src":"Cold-Day-on-the-dean_thumb.jpg","galleries_id":425049,"server_id":5,"link":"photo_7482862.html","width":130,"caption":"cold day on the \"dean\"","height":108});
															thumbnails[7482873] = clik.newPhoto({"id":7482873,"src":"figures-in-the-fog_thumb.jpg","galleries_id":425049,"server_id":5,"link":"photo_7482873.html","width":130,"caption":"figures in the fog","height":98});
															thumbnails[7482907] = clik.newPhoto({"id":7482907,"src":"the-road-to-the-moors-no-2_thumb.jpg","galleries_id":425049,"server_id":5,"link":"photo_7482907.html","width":130,"caption":"the road to the moors no. 2","height":104});
															thumbnails[7482911] = clik.newPhoto({"id":7482911,"src":"Winter-track-with-dead-tree_thumb.jpg","galleries_id":425049,"server_id":5,"link":"photo_7482911.html","width":130,"caption":"winter track with dead tree","height":97});
															thumbnails[7640825] = clik.newPhoto({"id":7640825,"src":"cows_thumb.jpg","galleries_id":425063,"server_id":5,"link":"photo_7640825.html","width":130,"caption":"cows","height":130});
															thumbnails[7640829] = clik.newPhoto({"id":7640829,"src":"car_thumb.jpg","galleries_id":425063,"server_id":5,"link":"photo_7640829.html","width":130,"caption":"car","height":91});
															thumbnails[8031395] = clik.newPhoto({"id":8031395,"src":"canal_thumb.jpg","galleries_id":425063,"server_id":5,"link":"photo_8031395.html","width":130,"caption":"canal","height":130});
															thumbnails[8031546] = clik.newPhoto({"id":8031546,"src":"rehearsal_thumb.jpg","galleries_id":425063,"server_id":5,"link":"photo_8031546.html","width":130,"caption":"rehearsal","height":134});
															thumbnails[8039737] = clik.newPhoto({"id":8039737,"src":"lost-glove_thumb.jpg","galleries_id":425063,"server_id":5,"link":"photo_8039737.html","width":130,"caption":"lost glove","height":98});
															thumbnails[8039742] = clik.newPhoto({"id":8039742,"src":"the-finish_thumb.jpg","galleries_id":425063,"server_id":5,"link":"photo_8039742.html","width":130,"caption":"the finish","height":98});
															thumbnails[8256179] = clik.newPhoto({"id":8256179,"src":"Canal_No2_thumb.jpg","galleries_id":425050,"server_id":5,"link":"photo_8256179.html","width":130,"caption":"canal no. 2","height":131});
															thumbnails[8256181] = clik.newPhoto({"id":8256181,"src":"Meadow_No1_thumb.jpg","galleries_id":425050,"server_id":5,"link":"photo_8256181.html","width":130,"caption":"meadow no. 1","height":128});
															thumbnails[8256188] = clik.newPhoto({"id":8256188,"src":"Summer_Stillness_thumb.jpg","galleries_id":425050,"server_id":5,"link":"photo_8256188.html","width":130,"caption":"summer stillness","height":131});
															thumbnails[8256192] = clik.newPhoto({"id":8256192,"src":"canal-monoprint_thumb.jpg","galleries_id":425063,"server_id":5,"link":"photo_8256192.html","width":130,"caption":"canal ","height":147});
															thumbnails[8256194] = clik.newPhoto({"id":8256194,"src":"through-the-open-door_thumb.jpg","galleries_id":425063,"server_id":5,"link":"photo_8256194.html","width":130,"caption":"through the open door","height":147});
															thumbnails[8313699] = clik.newPhoto({"id":8313699,"src":"In_The_Shade_thumb.jpg","galleries_id":425050,"server_id":5,"link":"photo_8313699.html","width":130,"caption":"in the shade","height":104});
															thumbnails[8313709] = clik.newPhoto({"id":8313709,"src":"In_the_Sun_thumb.jpg","galleries_id":425050,"server_id":5,"link":"photo_8313709.html","width":130,"caption":"in the sun","height":163});
															thumbnails[8313712] = clik.newPhoto({"id":8313712,"src":"Just_Before_Sunset-no1_thumb.jpg","galleries_id":425050,"server_id":5,"link":"photo_8313712.html","width":130,"caption":"just before sunset no.1","height":155});
															thumbnails[8313716] = clik.newPhoto({"id":8313716,"src":"lancaster_thumb.jpg","galleries_id":425050,"server_id":5,"link":"photo_8313716.html","width":130,"caption":"lancaster","height":104});
															thumbnails[8313720] = clik.newPhoto({"id":8313720,"src":"New_Beginnings_thumb.jpg","galleries_id":425050,"server_id":5,"link":"photo_8313720.html","width":130,"caption":"new beginnings","height":108});
															thumbnails[8313727] = clik.newPhoto({"id":8313727,"src":"Summer_Field_thumb.jpg","galleries_id":425050,"server_id":5,"link":"photo_8313727.html","width":130,"caption":"summer field","height":104});
															thumbnails[8527305] = clik.newPhoto({"id":8527305,"src":"days-of-elijah_thumb.jpg","galleries_id":425050,"server_id":5,"link":"photo_8527305.html","width":130,"caption":"days of elijah","height":103});
															thumbnails[8621873] = clik.newPhoto({"id":8621873,"src":"sun-tracks_thumb.jpg","galleries_id":425050,"server_id":5,"link":"photo_8621873.html","width":130,"caption":"sun tracks","height":91});
															thumbnails[8656432] = clik.newPhoto({"id":8656432,"src":"Distant_poplars_thumb.jpg","galleries_id":425050,"server_id":5,"link":"photo_8656432.html","width":130,"caption":"distant poplars","height":97});
															thumbnails[8656440] = clik.newPhoto({"id":8656440,"src":"New_beginnings_no1_thumb.jpg","galleries_id":425050,"server_id":5,"link":"photo_8656440.html","width":130,"caption":"new beginnings no.1","height":87});
															thumbnails[8656460] = clik.newPhoto({"id":8656460,"src":"Shadow_of_the_cloud_thumb.jpg","galleries_id":425050,"server_id":5,"link":"photo_8656460.html","width":130,"caption":"shadow of the cloud","height":98});
															thumbnails[8656466] = clik.newPhoto({"id":8656466,"src":"Two_oak_trees_thumb.jpg","galleries_id":425050,"server_id":5,"link":"photo_8656466.html","width":130,"caption":"two oak trees","height":130});
															thumbnails[8656493] = clik.newPhoto({"id":8656493,"src":"sport-in-polymer1mb_thumb.jpg","galleries_id":425050,"server_id":5,"link":"photo_8656493.html","width":130,"caption":"sport in polymer","height":164});
															thumbnails[8665027] = clik.newPhoto({"id":8665027,"src":"late-afternoon-no1_thumb.jpg","galleries_id":425063,"server_id":5,"link":"photo_8665027.html","width":130,"caption":"late afternoon no.1","height":112});
															thumbnails[8665042] = clik.newPhoto({"id":8665042,"src":"late-afternoon-no2_thumb.jpg","galleries_id":425063,"server_id":5,"link":"photo_8665042.html","width":130,"caption":"late afternoon no.2","height":116});
															thumbnails[8665048] = clik.newPhoto({"id":8665048,"src":"late-afternoon-no3_thumb.jpg","galleries_id":425063,"server_id":5,"link":"photo_8665048.html","width":130,"caption":"late afternoon no.3","height":112});
															thumbnails[8665070] = clik.newPhoto({"id":8665070,"src":"oak-tree-shaped-by-the-wind_thumb.jpg","galleries_id":425063,"server_id":5,"link":"photo_8665070.html","width":130,"caption":"oak shaped by the wind","height":110});
															thumbnails[8913563] = clik.newPhoto({"id":8913563,"src":"angry-clouds_thumb.jpg","galleries_id":425063,"server_id":5,"link":"photo_8913563.html","width":130,"caption":"angry clouds","height":211});
															thumbnails[8913574] = clik.newPhoto({"id":8913574,"src":"car-linocut_thumb.jpg","galleries_id":425063,"server_id":5,"link":"photo_8913574.html","width":130,"caption":"car","height":101});
															thumbnails[8913576] = clik.newPhoto({"id":8913576,"src":"cows-linocut_thumb.jpg","galleries_id":425063,"server_id":5,"link":"photo_8913576.html","width":130,"caption":"cows","height":170});
															thumbnails[8913581] = clik.newPhoto({"id":8913581,"src":"morfa-nefyn_thumb.jpg","galleries_id":425063,"server_id":5,"link":"photo_8913581.html","width":130,"caption":"morfa-nefyn","height":95});
															thumbnails[9035049] = clik.newPhoto({"id":9035049,"src":"Oak-shaped-by-the-wind-drypoint_thumb.jpg","galleries_id":425063,"server_id":5,"link":"photo_9035049.html","width":130,"caption":"oak shaped by the wind","height":94});
															thumbnails[9035081] = clik.newPhoto({"id":9035081,"src":"Live-on-stage-mono_thumb.jpg","galleries_id":425063,"server_id":5,"link":"photo_9035081.html","width":130,"caption":"live on stage","height":107});
															thumbnails[9035088] = clik.newPhoto({"id":9035088,"src":"live-on-stage-etch_thumb.jpg","galleries_id":425063,"server_id":5,"link":"photo_9035088.html","width":130,"caption":"live on stage","height":110});
															thumbnails[9098520] = clik.newPhoto({"id":9098520,"src":"Boxing_Day_Sky_No1_1_thumb.jpg","galleries_id":425050,"server_id":5,"link":"photo_9098520.html","width":130,"caption":"boxing day sky no.1","height":98});
															thumbnails[9098525] = clik.newPhoto({"id":9098525,"src":"Boxing_Day_Sky_No2_1_thumb.jpg","galleries_id":425050,"server_id":5,"link":"photo_9098525.html","width":130,"caption":"boxing day sky no.2","height":94});
															thumbnails[9098526] = clik.newPhoto({"id":9098526,"src":"Gateway_To_Meadow_1_thumb.jpg","galleries_id":425050,"server_id":5,"link":"photo_9098526.html","width":130,"caption":"gateway to meadow","height":130});
															thumbnails[9098533] = clik.newPhoto({"id":9098533,"src":"Morning_Walk_In_The_Summer_1_thumb.jpg","galleries_id":425050,"server_id":5,"link":"photo_9098533.html","width":130,"caption":"morning walk in the summer","height":130});
															thumbnails[9098540] = clik.newPhoto({"id":9098540,"src":"Live_On_Stage_No1_1_thumb.jpg","galleries_id":425050,"server_id":5,"link":"photo_9098540.html","width":130,"caption":"live on stage no.1","height":98});
															thumbnails[9098549] = clik.newPhoto({"id":9098549,"src":"Live_On_Stage_No2_1_thumb.jpg","galleries_id":425050,"server_id":5,"link":"photo_9098549.html","width":130,"caption":"live on stage no.2","height":93});
															thumbnails[9098561] = clik.newPhoto({"id":9098561,"src":"Field-to-the-sun_1_thumb.jpg","galleries_id":425050,"server_id":5,"link":"photo_9098561.html","width":130,"caption":"field to the sun","height":93});
															thumbnails[5976214] = clik.newPhoto({"id":5976214,"src":"mountain-biker-in-the-landscape11_thumb.jpg","galleries_id":336702,"server_id":5,"link":"photo_5976214.html","width":130,"caption":"mountain biker in the landscape","height":174});
															thumbnails[5980597] = clik.newPhoto({"id":5980597,"src":"selfportrait_thumb.jpg","galleries_id":425064,"server_id":5,"link":"photo_5980597.html","width":130,"caption":"self portrait","height":140});
															thumbnails[7320033] = clik.newPhoto({"id":7320033,"src":"asecretplaceno3_thumb.jpg","galleries_id":425049,"server_id":5,"link":"photo_7320033.html","width":130,"caption":"a secret place no.3","height":174});
															thumbnails[7347652] = clik.newPhoto({"id":7347652,"src":"leftbankleeds300pixels_thumb.jpg","galleries_id":425063,"server_id":5,"link":"photo_7347652.html","width":130,"caption":"leftbank, leeds","height":439});
															thumbnails[5980643] = clik.newPhoto({"id":5980643,"src":"selfportraitindenimjacket_thumb.jpg","galleries_id":425064,"server_id":5,"link":"photo_5980643.html","width":130,"caption":"self portrait in denim jacket","height":146});
															thumbnails[6459594] = clik.newPhoto({"id":6459594,"src":"spingeveningno3_thumb.jpg","galleries_id":425049,"server_id":5,"link":"photo_6459594.html","width":130,"caption":"spring evening no.3","height":162});
															thumbnails[6837867] = clik.newPhoto({"id":6837867,"src":"morningshade_thumb.jpg","galleries_id":425049,"server_id":5,"link":"photo_6837867.html","width":130,"caption":"morning shade","height":163});
															thumbnails[7246842] = clik.newPhoto({"id":7246842,"src":"mark_thumb.jpg","galleries_id":425064,"server_id":5,"link":"photo_7246842.html","width":130,"caption":"mark","height":130});
															thumbnails[5980171] = clik.newPhoto({"id":5980171,"src":"Garry_thumb.jpg","galleries_id":425064,"server_id":5,"link":"photo_5980171.html","width":130,"caption":"garry","height":145});
															thumbnails[6459827] = clik.newPhoto({"id":6459827,"src":"rollingcloudsoverthemastwinterhill_thumb.jpg","galleries_id":425049,"server_id":5,"link":"photo_6459827.html","width":130,"caption":"rolling clouds over the mast, winter hill","height":180});
															thumbnails[5980103] = clik.newPhoto({"id":5980103,"src":"Brian_thumb.jpg","galleries_id":425064,"server_id":5,"link":"photo_5980103.html","width":130,"caption":"brian","height":135});
															thumbnails[6495089] = clik.newPhoto({"id":6495089,"src":"summertrackintothesun_thumb.jpg","galleries_id":425049,"server_id":5,"link":"photo_6495089.html","width":130,"caption":"summer track into the sun","height":161});
															thumbnails[5980102] = clik.newPhoto({"id":5980102,"src":"Bill_thumb.jpg","galleries_id":425064,"server_id":5,"link":"photo_5980102.html","width":130,"caption":"bill","height":157});
															thumbnails[6837927] = clik.newPhoto({"id":6837927,"src":"whenthesunwarmsyourneck1_thumb.jpg","galleries_id":425049,"server_id":5,"link":"photo_6837927.html","width":130,"caption":"when the sun warms your neck","height":163});
															thumbnails[7246912] = clik.newPhoto({"id":7246912,"src":"june_thumb.jpg","galleries_id":425064,"server_id":5,"link":"photo_7246912.html","width":130,"caption":"june","height":136});
															thumbnails[7320038] = clik.newPhoto({"id":7320038,"src":"sunstreakedwoods_thumb.jpg","galleries_id":425049,"server_id":5,"link":"photo_7320038.html","width":130,"caption":"sun streaked woods","height":162});
															thumbnails[5980232] = clik.newPhoto({"id":5980232,"src":"Kaz_thumb.jpg","galleries_id":425064,"server_id":5,"link":"photo_5980232.html","width":130,"caption":"kaz","height":149});
															thumbnails[6581824] = clik.newPhoto({"id":6581824,"src":"thesunisshingbutmysonhasgoneaway_thumb.jpg","galleries_id":425049,"server_id":5,"link":"photo_6581824.html","width":130,"caption":"the sun is shining but my son has gone away","height":163});
															thumbnails[7246930] = clik.newPhoto({"id":7246930,"src":"selfportraitagainstawindow_thumb.jpg","galleries_id":425064,"server_id":5,"link":"photo_7246930.html","width":130,"caption":"self portrait against a window","height":188});
															thumbnails[7482902] = clik.newPhoto({"id":7482902,"src":"Girl-at-the-computer_thumb.jpg","galleries_id":425049,"server_id":5,"link":"photo_7482902.html","width":130,"caption":"girl at the computer","height":163});
															thumbnails[5980585] = clik.newPhoto({"id":5980585,"src":"Randolin_thumb.jpg","galleries_id":425064,"server_id":5,"link":"photo_5980585.html","width":130,"caption":"randolin","height":141});
															thumbnails[6837877] = clik.newPhoto({"id":6837877,"src":"ThroughtheOpenDoor_thumb.jpg","galleries_id":425049,"server_id":5,"link":"photo_6837877.html","width":130,"caption":"through the open door","height":162});
															thumbnails[8013586] = clik.newPhoto({"id":8013586,"src":"Belmont_thumb.jpg","galleries_id":425050,"server_id":5,"link":"photo_8013586.html","width":130,"caption":"belmont","height":97});
															thumbnails[8013589] = clik.newPhoto({"id":8013589,"src":"Car_2BA3D2A2-24E8-5EC4-4F85D02AD91C9234_thumb.jpg","galleries_id":425050,"server_id":5,"link":"photo_8013589.html","width":130,"caption":"car","height":98});
															thumbnails[8013593] = clik.newPhoto({"id":8013593,"src":"Early_Morning_Walk_on_the_Beach_thumb.jpg","galleries_id":425050,"server_id":5,"link":"photo_8013593.html","width":130,"caption":"early morning walk on the beach","height":97});
															thumbnails[8013632] = clik.newPhoto({"id":8013632,"src":"red-car_thumb.jpg","galleries_id":425050,"server_id":5,"link":"photo_8013632.html","width":130,"caption":"red car","height":130});
															thumbnails[8013668] = clik.newPhoto({"id":8013668,"src":"Into_The_City_thumb.jpg","galleries_id":425050,"server_id":5,"link":"photo_8013668.html","width":130,"caption":"into the city","height":104});
															thumbnails[8013675] = clik.newPhoto({"id":8013675,"src":"freedom_thumb.jpg","galleries_id":425050,"server_id":5,"link":"photo_8013675.html","width":130,"caption":"freedom","height":132});
															thumbnails[8013681] = clik.newPhoto({"id":8013681,"src":"Meadow_thumb.jpg","galleries_id":425050,"server_id":5,"link":"photo_8013681.html","width":130,"caption":"meadow","height":130});
															thumbnails[8013686] = clik.newPhoto({"id":8013686,"src":"Just_Before_Sunset_thumb.jpg","galleries_id":425050,"server_id":5,"link":"photo_8013686.html","width":130,"caption":"just before sunset","height":130});
															thumbnails[8621884] = clik.newPhoto({"id":8621884,"src":"through-the-open-door-etching_thumb.jpg","galleries_id":425063,"server_id":5,"link":"photo_8621884.html","width":130,"caption":"through the open door","height":260});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[402851] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"drawing","link":"gallery_402851.html","maxRecords":0.0,"photoIDs":[7431513.0,7431519.0,7431543.0],"skipIndex":0,"section_code":"gallery","featured_images":"7431543,7431519,7431513","id":402851,"singleSection":false});				  						galleries[425048] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"painting","link":"gallery_425048.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"9098561,9098549,9098540,9098533,9098526,9098525,9098520,8656493,8656466,8656460","id":425048,"singleSection":false});				  						galleries[425061] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"printmaking","link":"gallery_425061.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"9035088,9035081,9035049,8913581,8913576,8913574,8913563,8665070,8665048,8665042","id":425061,"singleSection":false});				  						galleries[336702] = clik.newGallery({"parentGallery":425048,"usePopups":false,"title":"painting 2009","link":"gallery_336702.html","maxRecords":0.0,"photoIDs":[5970415.0,5970420.0,5970428.0,5976130.0,5976137.0,5976210.0,5976228.0,5976233.0,5976241.0,5976276.0,5976282.0,5976341.0,5976358.0,6459741.0,5976214.0],"skipIndex":0,"section_code":"gallery","featured_images":"6459741,5976358,5976341,5976282,5976276,5976241,5976233,5976228,5976214,5976210","id":336702,"singleSection":false});				  						galleries[425049] = clik.newGallery({"parentGallery":425048,"usePopups":false,"title":"painting 2010","link":"gallery_425049.html","maxRecords":0.0,"photoIDs":[5976148.0,5976157.0,5976191.0,5976197.0,5976203.0,5976223.0,5976255.0,5976350.0,6459601.0,6459728.0,6459788.0,6459840.0,6459984.0,6495081.0,6562264.0,6562268.0,6562270.0,6562286.0,6837852.0,7320030.0,7320031.0,7320035.0,7320044.0,7482862.0,7482873.0,7482907.0,7482911.0,7320033.0,6459594.0,6837867.0,6459827.0,6495089.0,6837927.0,7320038.0,6581824.0,7482902.0,6837877.0],"skipIndex":0,"section_code":"gallery","featured_images":"7482911,7482907,7482902,7482873,7482862,7320044,7320038,7320035,7320033,7320031","id":425049,"singleSection":false});				  						galleries[425050] = clik.newGallery({"parentGallery":425048,"usePopups":false,"title":"painting 2011","link":"gallery_425050.html","maxRecords":0.0,"photoIDs":[8256179.0,8256181.0,8256188.0,8313699.0,8313709.0,8313712.0,8313716.0,8313720.0,8313727.0,8527305.0,8621873.0,8656432.0,8656440.0,8656460.0,8656466.0,8656493.0,9098520.0,9098525.0,9098526.0,9098533.0,9098540.0,9098549.0,9098561.0,8013586.0,8013589.0,8013593.0,8013632.0,8013668.0,8013675.0,8013681.0,8013686.0],"skipIndex":0,"section_code":"gallery","featured_images":"9098561,9098549,9098540,9098533,9098526,9098525,9098520,8656493,8656466,8656460","id":425050,"singleSection":false});				  						galleries[425064] = clik.newGallery({"parentGallery":425061,"usePopups":false,"title":"pre-2009","link":"gallery_425064.html","maxRecords":0.0,"photoIDs":[5976889.0,5976907.0,5980097.0,5980099.0,5980169.0,5980688.0,5980694.0,5980695.0,5980697.0,5981741.0,5981744.0,7246894.0,7246899.0,7246909.0,7246917.0,7246926.0,7247772.0,7247810.0,7247816.0,7247828.0,7247832.0,5980597.0,5980643.0,7246842.0,5980171.0,5980103.0,5980102.0,7246912.0,5980232.0,7246930.0,5980585.0],"skipIndex":0,"section_code":"gallery","featured_images":"7247832,7247828,7247816,7247810,7247772,7246930,7246926,7246917,7246912,7246909","id":425064,"singleSection":false});				  						galleries[425062] = clik.newGallery({"parentGallery":425061,"usePopups":false,"title":"printmaking 2009","link":"gallery_425062.html","maxRecords":0.0,"photoIDs":[5980155.0,5980157.0,5980159.0,5980177.0,5980187.0,5980522.0,5980590.0,5980683.0,5981750.0,5981754.0,7246891.0],"skipIndex":0,"section_code":"gallery","featured_images":"7246891,5981754,5981750,5980683,5980590,5980522,5980187,5980177,5980159,5980157","id":425062,"singleSection":false});				  						galleries[336703] = clik.newGallery({"parentGallery":425061,"usePopups":false,"title":"printmaking 2010","link":"gallery_336703.html","maxRecords":0.0,"photoIDs":[5980181.0,5980295.0,5980401.0,5980692.0,5981747.0,6086460.0,6086530.0,6459580.0,6459742.0,6562292.0,6965022.0,6965025.0,7246906.0,7246920.0,7247800.0,7247821.0,7247824.0,7401433.0],"skipIndex":0,"section_code":"gallery","featured_images":"7401433,7247824,7247821,7247800,7246920,7246906,6965025,6965022,6562292,6459742","id":336703,"singleSection":false});				  						galleries[425063] = clik.newGallery({"parentGallery":425061,"usePopups":false,"title":"printmaking 2011","link":"gallery_425063.html","maxRecords":0.0,"photoIDs":[7347671.0,7445783.0,7445796.0,7640825.0,7640829.0,8031395.0,8031546.0,8039737.0,8039742.0,8256192.0,8256194.0,8665027.0,8665042.0,8665048.0,8665070.0,8913563.0,8913574.0,8913576.0,8913581.0,9035049.0,9035081.0,9035088.0,7347652.0,8621884.0],"skipIndex":0,"section_code":"gallery","featured_images":"9035088,9035081,9035049,8913581,8913576,8913574,8913563,8665070,8665048,8665042","id":425063,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '9098561,9098549,9098540,9098533,9098526,9098525,9098520,9035088,9035081,9035049,8913581,8913576,8913574,8913563,8665070,8665048,8665042,8665027,8656493,8656466,8656460,8656440,8656432,8621884,8621873,8527305,8313727,8313720,8313716,8313712,8313709,8313699,8256194,8256192,8256188,8256181,8256179,8039742,8039737,8031546,8031395,8013686,8013681,8013675,8013668,8013632,8013593,8013589,8013586,7640829';
imageSets[3] = '9098561,9098549,9098540,9098533,9098526,9098525,9098520,9035088,9035081,9035049,8913581,8913576,8913574,8913563,8665070,8665048,8665042,8665027,8656493,8656466,8656460,8656440,8656432,8621884,8621873,8527305,8313727,8313720,8313716,8313712,8313709,8313699,8256194,8256192,8256188,8256181,8256179,8039742,8039737,8031546,8031395,8013686,8013681,8013675,8013668,8013632,8013593,8013589,8013586,7640829';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/petemarshfineart/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/petemarshfineart/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/petemarshfineart/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/petemarshfineart/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/petemarshfineart/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/petemarshfineart/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/petemarshfineart/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/petemarshfineart/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/petemarshfineart/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/petemarshfineart/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/petemarshfineart/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/petemarshfineart/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/petemarshfineart/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/petemarshfineart/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/petemarshfineart/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/petemarshfineart/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/petemarshfineart/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/petemarshfineart/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/petemarshfineart/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/petemarshfineart/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/petemarshfineart/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/petemarshfineart/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/petemarshfineart/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/petemarshfineart/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/petemarshfineart/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/petemarshfineart/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/petemarshfineart/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 = 'pete marsh fine art: ' + 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;
	}
}

			

