window.thumbnails = {};
															thumbnails[5814389] = clik.newPhoto({"id":5814389,"src":"Kris08-06-6230-web_thumb.jpg","galleries_id":164655,"server_id":15,"link":"photo_5814389.html","width":120,"caption":"The Glade","height":120});
															thumbnails[652075] = clik.newPhoto({"id":652075,"src":"Liberator-in-Orbit_thumb.jpg","galleries_id":131633,"server_id":15,"link":"photo_652075.html","width":120,"caption":"Liberator in Orbit","height":120});
															thumbnails[1959233] = clik.newPhoto({"id":1959233,"src":"Kristen06-06-04-611-F-web_thumb.jpg","galleries_id":4471,"server_id":15,"link":"photo_1959233.html","width":120,"caption":"The Prisoner","height":120});
															thumbnails[2683764] = clik.newPhoto({"id":2683764,"src":"Sue00-08-122w_thumb.jpg","galleries_id":230097,"server_id":15,"link":"photo_2683764.html","width":130,"caption":"Warrior Woman","height":182});
															thumbnails[5814120] = clik.newPhoto({"id":5814120,"src":"The-Rock-web_thumb.jpg","galleries_id":164617,"server_id":15,"link":"photo_5814120.html","width":120,"caption":"The Rock","height":120});
															thumbnails[5814367] = clik.newPhoto({"id":5814367,"src":"Kris08-06-4895-97-web_thumb.jpg","galleries_id":164627,"server_id":15,"link":"photo_5814367.html","width":120,"caption":"The Lady in White","height":120});
															thumbnails[7325123] = clik.newPhoto({"id":7325123,"src":"Paul_Holroyd_phphotoimages__MG_9178-80-web_thumb.jpg","galleries_id":164655,"server_id":15,"link":"photo_7325123.html","width":120,"caption":"The Tree","height":120});
															thumbnails[7325432] = clik.newPhoto({"id":7325432,"src":"Paul_Holroyd_phphotoimages__1020128-32-web_thumb.jpg","galleries_id":164593,"server_id":15,"link":"photo_7325432.html","width":120,"caption":"The Tower and the Tree","height":120});
															thumbnails[43425] = clik.newPhoto({"id":43425,"src":"SueHulk_thumb.jpg","galleries_id":230097,"server_id":15,"link":"photo_43425.html","width":130,"caption":"She Hulk","height":200});
															thumbnails[43437] = clik.newPhoto({"id":43437,"src":"Kristen2002-06-110_thumb.jpg","galleries_id":164592,"server_id":15,"link":"photo_43437.html","width":130,"caption":"The Harem Door","height":257});
															thumbnails[686517] = clik.newPhoto({"id":686517,"src":"Heidi05-04-075-w_thumb.jpg","galleries_id":4473,"server_id":15,"link":"photo_686517.html","width":130,"caption":"Red Leather","height":195});
															thumbnails[988115] = clik.newPhoto({"id":988115,"src":"Kelly07-04-01-029f-web_thumb.jpg","galleries_id":4471,"server_id":15,"link":"photo_988115.html","width":120,"caption":"Pretty Sharp","height":120});
															thumbnails[1971488] = clik.newPhoto({"id":1971488,"src":"Guardian-of-the-Flame-web_thumb.jpg","galleries_id":131637,"server_id":15,"link":"photo_1971488.html","width":120,"caption":"Guardian of the Flame","height":120});
															thumbnails[5814363] = clik.newPhoto({"id":5814363,"src":"Kris08-06-4178-web_thumb.jpg","galleries_id":164627,"server_id":15,"link":"photo_5814363.html","width":120,"caption":"The Two Paintings 2","height":120});
															thumbnails[5820423] = clik.newPhoto({"id":5820423,"src":"Dark-Lightv2-web_thumb.jpg","galleries_id":164617,"server_id":15,"link":"photo_5820423.html","width":120,"caption":"Dark Light","height":120});
															thumbnails[7325115] = clik.newPhoto({"id":7325115,"src":"Paul_Holroyd_phphotoimages__MG_9131_9143-web_thumb.jpg","galleries_id":164655,"server_id":15,"link":"photo_7325115.html","width":120,"caption":"The Rising River","height":120});
															thumbnails[7325344] = clik.newPhoto({"id":7325344,"src":"Paul_Holroyd_phphotoimages__9223340-44-web_thumb.jpg","galleries_id":164593,"server_id":15,"link":"photo_7325344.html","width":120,"caption":"Hermitage Castle","height":120});
															thumbnails[43408] = clik.newPhoto({"id":43408,"src":"lamia-web_thumb.jpg","galleries_id":131633,"server_id":15,"link":"photo_43408.html","width":120,"caption":"Lamia","height":120});
															thumbnails[43431] = clik.newPhoto({"id":43431,"src":"Kristen2002-06-0061_thumb.jpg","galleries_id":164592,"server_id":15,"link":"photo_43431.html","width":130,"caption":"Day Dreams","height":233});
															thumbnails[43446] = clik.newPhoto({"id":43446,"src":"Kith04-04-319_thumb.jpg","galleries_id":230097,"server_id":15,"link":"photo_43446.html","width":130,"caption":"One Poison Drives Out Another","height":195});
															thumbnails[686520] = clik.newPhoto({"id":686520,"src":"Heidi05-06-018-w_thumb.jpg","galleries_id":4473,"server_id":15,"link":"photo_686520.html","width":130,"caption":"Sword Mistress","height":210});
															thumbnails[988116] = clik.newPhoto({"id":988116,"src":"Kelly07-04-01-261f-web_thumb.jpg","galleries_id":4471,"server_id":15,"link":"photo_988116.html","width":120,"caption":"Dark Fairy","height":120});
															thumbnails[1069643] = clik.newPhoto({"id":1069643,"src":"Heather07-04-22-230f-2-web_thumb.jpg","galleries_id":131637,"server_id":15,"link":"photo_1069643.html","width":120,"caption":"The Tattoo 1","height":120});
															thumbnails[2015836] = clik.newPhoto({"id":2015836,"src":"The-Shameness-web_thumb.jpg","galleries_id":131672,"server_id":15,"link":"photo_2015836.html","width":120,"caption":"The Shameness","height":120});
															thumbnails[6056742] = clik.newPhoto({"id":6056742,"src":"DragonThrall_thumb.jpg","galleries_id":164617,"server_id":15,"link":"photo_6056742.html","width":120,"caption":"Dragon Thrall","height":120});
															thumbnails[7325095] = clik.newPhoto({"id":7325095,"src":"Paul_Holroyd_phphotoimages__MG_8721-23-web_thumb.jpg","galleries_id":164655,"server_id":15,"link":"photo_7325095.html","width":120,"caption":"Ophelia - One","height":120});
															thumbnails[7325327] = clik.newPhoto({"id":7325327,"src":"Paul_Holroyd_phphotoimages__9288685-89-web_thumb.jpg","galleries_id":164593,"server_id":15,"link":"photo_7325327.html","width":120,"caption":"The Rock","height":120});
															thumbnails[43418] = clik.newPhoto({"id":43418,"src":"Sacred-portalF-web_thumb.jpg","galleries_id":131633,"server_id":15,"link":"photo_43418.html","width":120,"caption":"Sacred Portal","height":120});
															thumbnails[43438] = clik.newPhoto({"id":43438,"src":"Kristen2002-06-1781_thumb.jpg","galleries_id":164592,"server_id":15,"link":"photo_43438.html","width":130,"caption":"The Spiral Stairs 1","height":198});
															thumbnails[57853] = clik.newPhoto({"id":57853,"src":"Kith04-04-110_thumb.jpg","galleries_id":230097,"server_id":15,"link":"photo_57853.html","width":130,"caption":"The Warrior","height":197});
															thumbnails[686522] = clik.newPhoto({"id":686522,"src":"Heidi05-06-072-w_thumb.jpg","galleries_id":4473,"server_id":15,"link":"photo_686522.html","width":130,"caption":"Honour Guard","height":191});
															thumbnails[1069644] = clik.newPhoto({"id":1069644,"src":"Heather07-04-22-288f-2-web_thumb.jpg","galleries_id":131637,"server_id":15,"link":"photo_1069644.html","width":120,"caption":"The Tattoo 3","height":120});
															thumbnails[1959263] = clik.newPhoto({"id":1959263,"src":"Nivine06-10-14-0127-F-web_thumb.jpg","galleries_id":4471,"server_id":15,"link":"photo_1959263.html","width":120,"caption":"Candlelight","height":120});
															thumbnails[2585619] = clik.newPhoto({"id":2585619,"src":"Kris08-06-4775-web_thumb.jpg","galleries_id":164627,"server_id":15,"link":"photo_2585619.html","width":120,"caption":"The Fire Burns Bright","height":120});
															thumbnails[5814126] = clik.newPhoto({"id":5814126,"src":"Vampires-DomainV2-web_thumb.jpg","galleries_id":164617,"server_id":15,"link":"photo_5814126.html","width":120,"caption":"The Vampires' Domain","height":120});
															thumbnails[7325070] = clik.newPhoto({"id":7325070,"src":"Paul_Holroyd_phphotoimages__MG_8685-87-web_thumb.jpg","galleries_id":164655,"server_id":15,"link":"photo_7325070.html","width":120,"caption":"Ophelia- Two","height":120});
															thumbnails[7325319] = clik.newPhoto({"id":7325319,"src":"Paul_Holroyd_phphotoimages__9256873-77-web_thumb.jpg","galleries_id":164593,"server_id":15,"link":"photo_7325319.html","width":120,"caption":"Holy Cairn I","height":120});
															thumbnails[43420] = clik.newPhoto({"id":43420,"src":"signal-web_thumb.jpg","galleries_id":131633,"server_id":15,"link":"photo_43420.html","width":120,"caption":"The Signal","height":120});
															thumbnails[43439] = clik.newPhoto({"id":43439,"src":"Kristen2002-06-233_thumb.jpg","galleries_id":164592,"server_id":15,"link":"photo_43439.html","width":130,"caption":"The Spiral Stairs 2","height":185});
															thumbnails[317239] = clik.newPhoto({"id":317239,"src":"Paul_Holroyd_Amellie_in_Black_thumb.jpg","galleries_id":4473,"server_id":15,"link":"photo_317239.html","width":130,"caption":"The Curve of the Blade","height":130});
															thumbnails[652005] = clik.newPhoto({"id":652005,"src":"Nivine06-10-14-0112-F-web_thumb.jpg","galleries_id":4471,"server_id":15,"link":"photo_652005.html","width":120,"caption":"Warrior Woman","height":120});
															thumbnails[1069646] = clik.newPhoto({"id":1069646,"src":"Heather07-04-22-308f-web_thumb.jpg","galleries_id":131637,"server_id":15,"link":"photo_1069646.html","width":120,"caption":"The Tattoo 3","height":120});
															thumbnails[1069650] = clik.newPhoto({"id":1069650,"src":"Jo05-03-180w_thumb.jpg","galleries_id":230097,"server_id":15,"link":"photo_1069650.html","width":130,"caption":"Prisoner of the Moon","height":202});
															thumbnails[2015812] = clik.newPhoto({"id":2015812,"src":"The-Firemaiden-web_thumb.jpg","galleries_id":131672,"server_id":15,"link":"photo_2015812.html","width":120,"caption":"The Fire Maiden 1","height":120});
															thumbnails[2585618] = clik.newPhoto({"id":2585618,"src":"Kris08-6-4714-18-web_thumb.jpg","galleries_id":164627,"server_id":15,"link":"photo_2585618.html","width":120,"caption":"Lillies","height":120});
															thumbnails[5814111] = clik.newPhoto({"id":5814111,"src":"Amongst_the_temple_ruins-web_thumb.jpg","galleries_id":164617,"server_id":15,"link":"photo_5814111.html","width":120,"caption":"Amongst the Temple Ruins","height":120});
															thumbnails[7325005] = clik.newPhoto({"id":7325005,"src":"Paul_Holroyd_phphotoimages__9244927-29-web_thumb.jpg","galleries_id":164655,"server_id":15,"link":"photo_7325005.html","width":120,"caption":"At the Doorway","height":120});
															thumbnails[7325313] = clik.newPhoto({"id":7325313,"src":"Paul_Holroyd_phphotoimages__9288125-29-web_thumb.jpg","galleries_id":164593,"server_id":15,"link":"photo_7325313.html","width":120,"caption":"Castlerigg Stone Circle","height":120});
															thumbnails[43411] = clik.newPhoto({"id":43411,"src":"SoSun-MightReturn-web_thumb.jpg","galleries_id":131633,"server_id":15,"link":"photo_43411.html","width":120,"caption":"So the Sun Might Return","height":120});
															thumbnails[43426] = clik.newPhoto({"id":43426,"src":"P61100011_thumb.jpg","galleries_id":4473,"server_id":15,"link":"photo_43426.html","width":130,"caption":"Mistress","height":183});
															thumbnails[43440] = clik.newPhoto({"id":43440,"src":"Kristen2002-06-287_thumb.jpg","galleries_id":164592,"server_id":15,"link":"photo_43440.html","width":130,"caption":"The Apparition","height":256});
															thumbnails[43452] = clik.newPhoto({"id":43452,"src":"Jo03-06-076_thumb.jpg","galleries_id":230097,"server_id":15,"link":"photo_43452.html","width":130,"caption":"The Succubus","height":178});
															thumbnails[652015] = clik.newPhoto({"id":652015,"src":"Nivine06-10-14-0422-F-web_thumb.jpg","galleries_id":4471,"server_id":15,"link":"photo_652015.html","width":120,"caption":"Leather and Steel","height":120});
															thumbnails[1710681] = clik.newPhoto({"id":1710681,"src":"Throne-of-the-Snowqueen-web_thumb.jpg","galleries_id":131637,"server_id":15,"link":"photo_1710681.html","width":120,"caption":"Throne of the Snow Queen","height":120});
															thumbnails[2015806] = clik.newPhoto({"id":2015806,"src":"Between-the-Stones-web_thumb.jpg","galleries_id":131672,"server_id":15,"link":"photo_2015806.html","width":120,"caption":"Between the Stones 1","height":120});
															thumbnails[2585606] = clik.newPhoto({"id":2585606,"src":"Kris08-06-4976-78-web_thumb.jpg","galleries_id":164627,"server_id":15,"link":"photo_2585606.html","width":120,"caption":"Lady in White","height":120});
															thumbnails[4443203] = clik.newPhoto({"id":4443203,"src":"The-Circular-Doorway-web_thumb.jpg","galleries_id":164617,"server_id":15,"link":"photo_4443203.html","width":120,"caption":"The Circular Doorway","height":120});
															thumbnails[7324995] = clik.newPhoto({"id":7324995,"src":"Paul_Holroyd_phphotoimages__9246400-04-web_thumb.jpg","galleries_id":329113,"server_id":15,"link":"photo_7324995.html","width":120,"caption":"The Dream - One","height":120});
															thumbnails[7325287] = clik.newPhoto({"id":7325287,"src":"Paul_Holroyd_phphotoimages__9288860-64-web_thumb.jpg","galleries_id":164593,"server_id":15,"link":"photo_7325287.html","width":120,"caption":"Buttermere ","height":120});
															thumbnails[43412] = clik.newPhoto({"id":43412,"src":"Carfax-web_thumb.jpg","galleries_id":131633,"server_id":15,"link":"photo_43412.html","width":120,"caption":"Carfax","height":120});
															thumbnails[43430] = clik.newPhoto({"id":43430,"src":"Jackie2003-09-101-clik1_thumb.jpg","galleries_id":4473,"server_id":15,"link":"photo_43430.html","width":130,"caption":"The Gladiatrix","height":99});
															thumbnails[43445] = clik.newPhoto({"id":43445,"src":"Cathy02-06-173_thumb.jpg","galleries_id":164592,"server_id":15,"link":"photo_43445.html","width":130,"caption":"The Decision","height":214});
															thumbnails[1627915] = clik.newPhoto({"id":1627915,"src":"TheHallofPillars-web_thumb.jpg","galleries_id":131637,"server_id":15,"link":"photo_1627915.html","width":120,"caption":"The Hall of Pillars","height":120});
															thumbnails[1959224] = clik.newPhoto({"id":1959224,"src":"Miki94-01-036_thumb.jpg","galleries_id":230097,"server_id":15,"link":"photo_1959224.html","width":130,"caption":"The Window","height":176});
															thumbnails[1959243] = clik.newPhoto({"id":1959243,"src":"Nivine06-10-14-0914-F-web_thumb.jpg","galleries_id":4471,"server_id":15,"link":"photo_1959243.html","width":120,"caption":"The Throne","height":120});
															thumbnails[2585557] = clik.newPhoto({"id":2585557,"src":"Jackie08-06-7644-web_thumb.jpg","galleries_id":164655,"server_id":15,"link":"photo_2585557.html","width":120,"caption":"Jungle Queen","height":120});
															thumbnails[2585598] = clik.newPhoto({"id":2585598,"src":"Kris08-06-5519-23-web_thumb.jpg","galleries_id":164627,"server_id":15,"link":"photo_2585598.html","width":120,"caption":"Between the Windows","height":120});
															thumbnails[4417159] = clik.newPhoto({"id":4417159,"src":"OldDarkHouse-web_thumb.jpg","galleries_id":164617,"server_id":15,"link":"photo_4417159.html","width":120,"caption":"The Old Dark House","height":120});
															thumbnails[5814269] = clik.newPhoto({"id":5814269,"src":"Becky10-02-07-091-web_thumb.jpg","galleries_id":4476,"server_id":15,"link":"photo_5814269.html","width":120,"caption":"The Red Dagger","height":120});
															thumbnails[7324991] = clik.newPhoto({"id":7324991,"src":"Paul_Holroyd_phphotoimages__9246070-74-web_thumb.jpg","galleries_id":329113,"server_id":15,"link":"photo_7324991.html","width":120,"caption":"The Dream - Two","height":120});
															thumbnails[7325262] = clik.newPhoto({"id":7325262,"src":"Paul_Holroyd_phphotoimages_9288830-34-web_thumb.jpg","galleries_id":164593,"server_id":15,"link":"photo_7325262.html","width":120,"caption":"Buttermere","height":120});
															thumbnails[43421] = clik.newPhoto({"id":43421,"src":"The-Vigil-web_thumb.jpg","galleries_id":131633,"server_id":15,"link":"photo_43421.html","width":120,"caption":"The Vigil","height":120});
															thumbnails[43428] = clik.newPhoto({"id":43428,"src":"Jackie2003-09-192-clik_thumb.jpg","galleries_id":4473,"server_id":15,"link":"photo_43428.html","width":130,"caption":"The Vampire","height":102});
															thumbnails[43449] = clik.newPhoto({"id":43449,"src":"Kate2002-03-032_thumb.jpg","galleries_id":230097,"server_id":15,"link":"photo_43449.html","width":130,"caption":"At the Altar","height":130});
															thumbnails[652056] = clik.newPhoto({"id":652056,"src":"Nivine06-10-14-0700-F-web_thumb.jpg","galleries_id":4471,"server_id":15,"link":"photo_652056.html","width":120,"caption":"Sorceress","height":120});
															thumbnails[1074310] = clik.newPhoto({"id":1074310,"src":"Awaiting-the-Witchfinder-web_thumb.jpg","galleries_id":131637,"server_id":15,"link":"photo_1074310.html","width":120,"caption":"Awaiting the Witchfinder","height":120});
															thumbnails[1971635] = clik.newPhoto({"id":1971635,"src":"The-Pit-web_thumb.jpg","galleries_id":131672,"server_id":15,"link":"photo_1971635.html","width":120,"caption":"The Pit","height":120});
															thumbnails[2015891] = clik.newPhoto({"id":2015891,"src":"Cathy95-06-044w_thumb.jpg","galleries_id":164592,"server_id":15,"link":"photo_2015891.html","width":130,"caption":"The Library","height":174});
															thumbnails[2585548] = clik.newPhoto({"id":2585548,"src":"Jackie08-06-7943-web_thumb.jpg","galleries_id":164655,"server_id":15,"link":"photo_2585548.html","width":120,"caption":"The Dryad 1","height":120});
															thumbnails[2585621] = clik.newPhoto({"id":2585621,"src":"Kris08-06-4014-web_thumb.jpg","galleries_id":164627,"server_id":15,"link":"photo_2585621.html","width":120,"caption":"The Two Paintings","height":120});
															thumbnails[2649992] = clik.newPhoto({"id":2649992,"src":"Carole15-8-85-100lw_thumb.jpg","galleries_id":164591,"server_id":15,"link":"photo_2649992.html","width":130,"caption":"Waters Edge","height":94});
															thumbnails[3296450] = clik.newPhoto({"id":3296450,"src":"Paul_Holroyd_Kerosene_on_the_rocks_thumb.jpg","galleries_id":164617,"server_id":15,"link":"photo_3296450.html","width":130,"caption":"On the Rocks","height":130});
															thumbnails[5814333] = clik.newPhoto({"id":5814333,"src":"Becky10-02-07-313-web_thumb.jpg","galleries_id":4476,"server_id":15,"link":"photo_5814333.html","width":120,"caption":"The Doorway","height":120});
															thumbnails[7324817] = clik.newPhoto({"id":7324817,"src":"Paul_Holroyd_phphotoimages_UnderAMoonlitSky-web_thumb.jpg","galleries_id":340583,"server_id":15,"link":"photo_7324817.html","width":120,"caption":"Under A Moonlit Sky","height":120});
															thumbnails[7324962] = clik.newPhoto({"id":7324962,"src":"Paul_Holroyd_phphotoimages__9245555-59-web_thumb.jpg","galleries_id":329113,"server_id":15,"link":"photo_7324962.html","width":120,"caption":"The Dagger and the Door","height":120});
															thumbnails[7325260] = clik.newPhoto({"id":7325260,"src":"Paul_Holroyd_phphotoimages_9309615-19-web_thumb.jpg","galleries_id":164593,"server_id":15,"link":"photo_7325260.html","width":120,"caption":"The Coop House at Dusk","height":120});
															thumbnails[43416] = clik.newPhoto({"id":43416,"src":"Exploer-the-Universe-web_thumb.jpg","galleries_id":131633,"server_id":15,"link":"photo_43416.html","width":120,"caption":"Explore the Universe (maintenance division)","height":120});
															thumbnails[43427] = clik.newPhoto({"id":43427,"src":"Jackie2003-05-374_thumb.jpg","galleries_id":4473,"server_id":15,"link":"photo_43427.html","width":130,"caption":"Lady Death","height":181});
															thumbnails[649234] = clik.newPhoto({"id":649234,"src":"Realm-of-the-Snow-Queen-web_thumb.jpg","galleries_id":131637,"server_id":15,"link":"photo_649234.html","width":120,"caption":"The Realm of The Snow Queen","height":120});
															thumbnails[649256] = clik.newPhoto({"id":649256,"src":"Jade06-06-13-150_thumb.jpg","galleries_id":4471,"server_id":15,"link":"photo_649256.html","width":130,"caption":"Skull Priestess","height":185});
															thumbnails[1069663] = clik.newPhoto({"id":1069663,"src":"Cathy96-09-345w_thumb.jpg","galleries_id":164591,"server_id":15,"link":"photo_1069663.html","width":130,"caption":"The Priestess","height":177});
															thumbnails[1971569] = clik.newPhoto({"id":1971569,"src":"Between-the-Stones-2-web_thumb.jpg","galleries_id":131672,"server_id":15,"link":"photo_1971569.html","width":120,"caption":"Between the Stones 2","height":120});
															thumbnails[2015886] = clik.newPhoto({"id":2015886,"src":"Cathy96-09-127w_thumb.jpg","galleries_id":164592,"server_id":15,"link":"photo_2015886.html","width":130,"caption":"The Purple Dress","height":164});
															thumbnails[2015905] = clik.newPhoto({"id":2015905,"src":"Kate2002-03-195_thumb.jpg","galleries_id":230097,"server_id":15,"link":"photo_2015905.html","width":130,"caption":"The Dagger","height":129});
															thumbnails[2585343] = clik.newPhoto({"id":2585343,"src":"Paul_Holroyd_The_Gateway_thumb.jpg","galleries_id":164617,"server_id":15,"link":"photo_2585343.html","width":120,"caption":"The Devil's Gateway","height":120});
															thumbnails[2585546] = clik.newPhoto({"id":2585546,"src":"Jackie08-06-7866-web_thumb.jpg","galleries_id":164655,"server_id":15,"link":"photo_2585546.html","width":120,"caption":"Windblown","height":120});
															thumbnails[2585603] = clik.newPhoto({"id":2585603,"src":"Kris08-06-5501-web_thumb.jpg","galleries_id":164627,"server_id":15,"link":"photo_2585603.html","width":120,"caption":"Cold Water","height":120});
															thumbnails[2649944] = clik.newPhoto({"id":2649944,"src":"Paul_Holroyd_St_Nectans_Glen_thumb.jpg","galleries_id":164593,"server_id":15,"link":"photo_2649944.html","width":130,"caption":"St. Nectan's Glen","height":130});
															thumbnails[5814343] = clik.newPhoto({"id":5814343,"src":"Becky10-02-07-385-web_thumb.jpg","galleries_id":4476,"server_id":15,"link":"photo_5814343.html","width":120,"caption":"The Doorway 2","height":120});
															thumbnails[6154348] = clik.newPhoto({"id":6154348,"src":"Dark-Magic-web_thumb.jpg","galleries_id":340583,"server_id":15,"link":"photo_6154348.html","width":120,"caption":"Dark Magic","height":120});
															thumbnails[7324938] = clik.newPhoto({"id":7324938,"src":"Paul_Holroyd_phphotoimages__9244800-04-web_thumb.jpg","galleries_id":329113,"server_id":15,"link":"photo_7324938.html","width":120,"caption":"In Front of the Windows","height":120});
															thumbnails[43417] = clik.newPhoto({"id":43417,"src":"GuardianofMinos-web_thumb.jpg","galleries_id":131633,"server_id":15,"link":"photo_43417.html","width":120,"caption":"Guardian of Minos","height":120});
															thumbnails[43433] = clik.newPhoto({"id":43433,"src":"Kristen02-01-061_thumb.jpg","galleries_id":4473,"server_id":15,"link":"photo_43433.html","width":130,"caption":"Priestess of the Skulls","height":207});
															thumbnails[43448] = clik.newPhoto({"id":43448,"src":"Kate2002-03-085_thumb.jpg","galleries_id":230097,"server_id":15,"link":"photo_43448.html","width":130,"caption":"The Captive","height":130});
															thumbnails[317259] = clik.newPhoto({"id":317259,"src":"Jade06-06-13-1961_thumb.jpg","galleries_id":4471,"server_id":15,"link":"photo_317259.html","width":130,"caption":"The Guardian","height":213});
															thumbnails[649236] = clik.newPhoto({"id":649236,"src":"MedusaSara_thumb.jpg","galleries_id":131637,"server_id":15,"link":"photo_649236.html","width":130,"caption":"Medusa","height":171});
															thumbnails[1069658] = clik.newPhoto({"id":1069658,"src":"Cathy96-09-007w_thumb.jpg","galleries_id":164592,"server_id":15,"link":"photo_1069658.html","width":130,"caption":"At the Piano","height":172});
															thumbnails[1965590] = clik.newPhoto({"id":1965590,"src":"Between-the-Stones-3-web_thumb.jpg","galleries_id":131672,"server_id":15,"link":"photo_1965590.html","width":120,"caption":"Between the Stones 3","height":120});
															thumbnails[2015896] = clik.newPhoto({"id":2015896,"src":"Cathy96-09-315w_thumb.jpg","galleries_id":164591,"server_id":15,"link":"photo_2015896.html","width":130,"caption":"The Wall","height":95});
															thumbnails[2585348] = clik.newPhoto({"id":2585348,"src":"Paul_Holroyd_Lydford_Devils_Punchbowl_thumb.jpg","galleries_id":164593,"server_id":15,"link":"photo_2585348.html","width":130,"caption":"Lydford Gorge","height":174});
															thumbnails[2585528] = clik.newPhoto({"id":2585528,"src":"Kris08-06-5581-web_thumb.jpg","galleries_id":164655,"server_id":15,"link":"photo_2585528.html","width":120,"caption":"Upon a Bough","height":120});
															thumbnails[2585592] = clik.newPhoto({"id":2585592,"src":"Jackie08-06-8129-31-web_thumb.jpg","galleries_id":164627,"server_id":15,"link":"photo_2585592.html","width":120,"caption":"Three Windows","height":120});
															thumbnails[3774637] = clik.newPhoto({"id":3774637,"src":"Sonia09-03-21-556f-web_thumb.jpg","galleries_id":4476,"server_id":15,"link":"photo_3774637.html","width":120,"caption":"At The Window 1","height":120});
															thumbnails[4443366] = clik.newPhoto({"id":4443366,"src":"A-Breach-in-the-Wall-web_thumb.jpg","galleries_id":164617,"server_id":15,"link":"photo_4443366.html","width":120,"caption":"A Breach In The Wall","height":120});
															thumbnails[6140948] = clik.newPhoto({"id":6140948,"src":"Persephone-web_thumb.jpg","galleries_id":340583,"server_id":15,"link":"photo_6140948.html","width":120,"caption":"Persephone","height":120});
															thumbnails[7324927] = clik.newPhoto({"id":7324927,"src":"Paul_Holroyd_phphotoimages__9244585-89-web_thumb.jpg","galleries_id":329113,"server_id":15,"link":"photo_7324927.html","width":120,"caption":"The Gaze","height":120});
															thumbnails[43419] = clik.newPhoto({"id":43419,"src":"The-Exile-web_thumb.jpg","galleries_id":131637,"server_id":15,"link":"photo_43419.html","width":120,"caption":"The Exile","height":120});
															thumbnails[43424] = clik.newPhoto({"id":43424,"src":"Sue92-10-91_thumb.jpg","galleries_id":131633,"server_id":15,"link":"photo_43424.html","width":130,"caption":"Sister of the Moon","height":231});
															thumbnails[43434] = clik.newPhoto({"id":43434,"src":"Kristen02-01-185_thumb.jpg","galleries_id":4473,"server_id":15,"link":"photo_43434.html","width":130,"caption":"Devotion","height":184});
															thumbnails[43457] = clik.newPhoto({"id":43457,"src":"Marisa98-06-047-clik_thumb.jpg","galleries_id":164591,"server_id":15,"link":"photo_43457.html","width":130,"caption":"The Secret Temple","height":106});
															thumbnails[317262] = clik.newPhoto({"id":317262,"src":"Jade06-06-13-3111_thumb.jpg","galleries_id":4471,"server_id":15,"link":"photo_317262.html","width":130,"caption":"The Sphere","height":195});
															thumbnails[1069671] = clik.newPhoto({"id":1069671,"src":"Cathy94-06-293w_thumb.jpg","galleries_id":164592,"server_id":15,"link":"photo_1069671.html","width":130,"caption":"The Window","height":174});
															thumbnails[1965054] = clik.newPhoto({"id":1965054,"src":"The-Firemaiden-2-web_thumb.jpg","galleries_id":131672,"server_id":15,"link":"photo_1965054.html","width":120,"caption":"The Fire Maiden 2","height":120});
															thumbnails[2015901] = clik.newPhoto({"id":2015901,"src":"Kate2002-03-140_thumb.jpg","galleries_id":230097,"server_id":15,"link":"photo_2015901.html","width":130,"caption":"The Captive 2","height":130});
															thumbnails[2585337] = clik.newPhoto({"id":2585337,"src":"Paul_Holroyd_The_Sentry_thumb.jpg","galleries_id":164617,"server_id":15,"link":"photo_2585337.html","width":130,"caption":"The Sentry","height":130});
															thumbnails[2585346] = clik.newPhoto({"id":2585346,"src":"_6240325_1_2_3_4_thumb.jpg","galleries_id":164593,"server_id":15,"link":"photo_2585346.html","width":130,"caption":"Lyford Gorge","height":173});
															thumbnails[2585520] = clik.newPhoto({"id":2585520,"src":"Kris08-06-6141-web_thumb.jpg","galleries_id":164655,"server_id":15,"link":"photo_2585520.html","width":120,"caption":"Dryad 2","height":120});
															thumbnails[2585588] = clik.newPhoto({"id":2585588,"src":"Jackie08-06-7363-65-web_thumb.jpg","galleries_id":164627,"server_id":15,"link":"photo_2585588.html","width":120,"caption":"Sunlight","height":120});
															thumbnails[3774644] = clik.newPhoto({"id":3774644,"src":"Sonia09-03-21-313f-web_thumb.jpg","galleries_id":4476,"server_id":15,"link":"photo_3774644.html","width":120,"caption":"At The Window 2","height":120});
															thumbnails[5814381] = clik.newPhoto({"id":5814381,"src":"Kris08-06-6095-97-web_thumb.jpg","galleries_id":329113,"server_id":15,"link":"photo_5814381.html","width":120,"caption":"The White Room","height":120});
															thumbnails[6133870] = clik.newPhoto({"id":6133870,"src":"Pity-Those-That-Find-Her-web_thumb.jpg","galleries_id":340583,"server_id":15,"link":"photo_6133870.html","width":120,"caption":"Pity Those That Find Her","height":120});
															thumbnails[7325254] = clik.newPhoto({"id":7325254,"src":"Paul_Holroyd_phphotoimages__MG_9572-74-web_thumb.jpg","galleries_id":396356,"server_id":15,"link":"photo_7325254.html","width":120,"caption":"A Bed of Ferns","height":120});
															thumbnails[43422] = clik.newPhoto({"id":43422,"src":"To-the-Light-web_thumb.jpg","galleries_id":131637,"server_id":15,"link":"photo_43422.html","width":120,"caption":"To the Light","height":120});
															thumbnails[43442] = clik.newPhoto({"id":43442,"src":"Kristen2003-05-662_thumb.jpg","galleries_id":4473,"server_id":15,"link":"photo_43442.html","width":130,"caption":"The Doorway","height":186});
															thumbnails[43444] = clik.newPhoto({"id":43444,"src":"Cathy93-09-153_thumb.jpg","galleries_id":164592,"server_id":15,"link":"photo_43444.html","width":130,"caption":"The Gothic Temple","height":317});
															thumbnails[43456] = clik.newPhoto({"id":43456,"src":"Marisa94-08-20_thumb.jpg","galleries_id":164591,"server_id":15,"link":"photo_43456.html","width":130,"caption":"The Musician","height":174});
															thumbnails[649257] = clik.newPhoto({"id":649257,"src":"Jade06-06-13-398f-web_thumb.jpg","galleries_id":4471,"server_id":15,"link":"photo_649257.html","width":120,"caption":"Waiting","height":120});
															thumbnails[1965044] = clik.newPhoto({"id":1965044,"src":"Out-of-the-Light-web_thumb.jpg","galleries_id":131672,"server_id":15,"link":"photo_1965044.html","width":120,"caption":"Out of the Light","height":120});
															thumbnails[2015853] = clik.newPhoto({"id":2015853,"src":"Paul_Holroyd_Last_Offering_thumb.jpg","galleries_id":164617,"server_id":15,"link":"photo_2015853.html","width":130,"caption":"The Last Offering","height":130});
															thumbnails[2015907] = clik.newPhoto({"id":2015907,"src":"Kate2002-03-044_thumb.jpg","galleries_id":230097,"server_id":15,"link":"photo_2015907.html","width":130,"caption":"Red","height":136});
															thumbnails[2585356] = clik.newPhoto({"id":2585356,"src":"Lunar-eclipse_thumb.jpg","galleries_id":164593,"server_id":15,"link":"photo_2585356.html","width":130,"caption":"Lunar Eclipse","height":125});
															thumbnails[2585516] = clik.newPhoto({"id":2585516,"src":"Kris08-06-5559-web_thumb.jpg","galleries_id":164655,"server_id":15,"link":"photo_2585516.html","width":120,"caption":"Treehugger","height":120});
															thumbnails[2585584] = clik.newPhoto({"id":2585584,"src":"Jackie08-06-7105-7-web_thumb.jpg","galleries_id":164627,"server_id":15,"link":"photo_2585584.html","width":120,"caption":"The Chalice and the Candlestick","height":120});
															thumbnails[3774651] = clik.newPhoto({"id":3774651,"src":"Sonia09-03-21-617f-2-web_thumb.jpg","galleries_id":4476,"server_id":15,"link":"photo_3774651.html","width":120,"caption":"At The Window 3","height":120});
															thumbnails[5814374] = clik.newPhoto({"id":5814374,"src":"Kris08-06-5641-web_thumb.jpg","galleries_id":329113,"server_id":15,"link":"photo_5814374.html","width":120,"caption":"The Pillar","height":120});
															thumbnails[6064723] = clik.newPhoto({"id":6064723,"src":"Beneath-the-Collosseum-web_thumb.jpg","galleries_id":340583,"server_id":15,"link":"photo_6064723.html","width":120,"caption":"Beneath the Collosseum","height":120});
															thumbnails[7325245] = clik.newPhoto({"id":7325245,"src":"Paul_Holroyd_phphotoimages__MG_9346-48-v2-web_thumb.jpg","galleries_id":396356,"server_id":15,"link":"photo_7325245.html","width":120,"caption":"The Bower","height":120});
															thumbnails[2585332] = clik.newPhoto({"id":2585332,"src":"Sue00-08-496_thumb.jpg","galleries_id":131633,"server_id":15,"link":"photo_2585332.html","width":130,"caption":"Firepower","height":189});
															thumbnails[43414] = clik.newPhoto({"id":43414,"src":"The-Window-corset-web_thumb.jpg","galleries_id":131637,"server_id":15,"link":"photo_43414.html","width":120,"caption":"The Window","height":120});
															thumbnails[2585277] = clik.newPhoto({"id":2585277,"src":"Kristen2002-06-373_thumb.jpg","galleries_id":164592,"server_id":15,"link":"photo_2585277.html","width":130,"caption":"Dangerous Liaison ","height":177});
															thumbnails[2585294] = clik.newPhoto({"id":2585294,"src":"Nikkii98-05-185_thumb.jpg","galleries_id":131633,"server_id":15,"link":"photo_2585294.html","width":130,"caption":"In Memoriam ","height":188});
															thumbnails[2585298] = clik.newPhoto({"id":2585298,"src":"Kristen02-01-130_thumb.jpg","galleries_id":4473,"server_id":15,"link":"photo_2585298.html","width":130,"caption":"Sorceress","height":130});
															thumbnails[2586077] = clik.newPhoto({"id":2586077,"src":"Sue97-06-160_thumb.jpg","galleries_id":164627,"server_id":15,"link":"photo_2586077.html","width":130,"caption":"The Yellow Shift","height":206});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[4469] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Digital Images","link":"gallery_4469.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"6140948,4417159,3296450,2015806,1971488,652075,649234,43411","id":4469,"singleSection":false});				  						galleries[79207] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"People - Studio","link":"gallery_79207.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"3774637,1959263,43448,43426,43425","id":79207,"singleSection":false});				  						galleries[79208] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"People - Location Interiors","link":"gallery_79208.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"2585619,43444","id":79208,"singleSection":false});				  						galleries[79209] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"People - Location Exteriors","link":"gallery_79209.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":2585557.0,"id":79209,"singleSection":false});				  						galleries[164593] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Landscapes","link":"gallery_164593.html","maxRecords":0.0,"photoIDs":[7325432.0,7325344.0,7325327.0,7325319.0,7325313.0,7325287.0,7325262.0,7325260.0,2649944.0,2585348.0,2585346.0,2585356.0],"skipIndex":0,"section_code":"gallery","featured_images":2649944.0,"id":164593,"singleSection":false});				  						galleries[340583] = clik.newGallery({"parentGallery":4469,"usePopups":false,"title":"Digital Images: Five","link":"gallery_340583.html","maxRecords":0.0,"photoIDs":[7324817.0,6154348.0,6140948.0,6133870.0,6064723.0],"skipIndex":0,"section_code":"gallery","featured_images":6140948.0,"id":340583,"singleSection":false});				  						galleries[164617] = clik.newGallery({"parentGallery":4469,"usePopups":false,"title":"Digital Images: Four","link":"gallery_164617.html","maxRecords":0.0,"photoIDs":[5814120.0,5820423.0,6056742.0,5814126.0,5814111.0,4443203.0,4417159.0,3296450.0,2585343.0,4443366.0,2585337.0,2015853.0],"skipIndex":0,"section_code":"gallery","featured_images":"4417159,3296450","id":164617,"singleSection":false});				  						galleries[4476] = clik.newGallery({"parentGallery":79207,"usePopups":false,"title":"People - Studio Work: Four","link":"gallery_4476.html","maxRecords":0.0,"photoIDs":[5814269.0,5814333.0,5814343.0,3774637.0,3774644.0,3774651.0],"skipIndex":0,"section_code":"gallery","featured_images":3774637.0,"id":4476,"singleSection":false});				  						galleries[131672] = clik.newGallery({"parentGallery":4469,"usePopups":false,"title":"Digital Images: Three","link":"gallery_131672.html","maxRecords":0.0,"photoIDs":[2015836.0,2015812.0,2015806.0,1971635.0,1971569.0,1965590.0,1965054.0,1965044.0],"skipIndex":0,"section_code":"gallery","featured_images":2015806.0,"id":131672,"singleSection":false});				  						galleries[396356] = clik.newGallery({"parentGallery":79209,"usePopups":false,"title":"People - Location Exteriors: Three","link":"gallery_396356.html","maxRecords":0.0,"photoIDs":[7325254.0,7325245.0],"skipIndex":0,"section_code":"gallery","featured_images":"7325254,7325245","id":396356,"singleSection":false});				  						galleries[329113] = clik.newGallery({"parentGallery":79208,"usePopups":false,"title":"People - Location Interiors: Three","link":"gallery_329113.html","maxRecords":0.0,"photoIDs":[7324995.0,7324991.0,7324962.0,7324938.0,7324927.0,5814381.0,5814374.0],"skipIndex":0,"section_code":"gallery","featured_images":"7324995,7324991,7324962,7324938,7324927,5814381,5814374","id":329113,"singleSection":false});				  						galleries[4471] = clik.newGallery({"parentGallery":79207,"usePopups":false,"title":"People - Studio Work: Three","link":"gallery_4471.html","maxRecords":0.0,"photoIDs":[1959233.0,988115.0,988116.0,1959263.0,652005.0,652015.0,1959243.0,652056.0,649256.0,317259.0,317262.0,649257.0],"skipIndex":0,"section_code":"gallery","featured_images":1959263.0,"id":4471,"singleSection":false});				  						galleries[131637] = clik.newGallery({"parentGallery":4469,"usePopups":false,"title":"Digital Images: Two","link":"gallery_131637.html","maxRecords":0.0,"photoIDs":[1971488.0,1069643.0,1069644.0,1069646.0,1710681.0,1627915.0,1074310.0,649234.0,649236.0,43419.0,43422.0,43414.0],"skipIndex":0,"section_code":"gallery","featured_images":"1971488,649234","id":131637,"singleSection":false});				  						galleries[164655] = clik.newGallery({"parentGallery":79209,"usePopups":false,"title":"People - Location Exteriors: Two","link":"gallery_164655.html","maxRecords":0.0,"photoIDs":[5814389.0,7325123.0,7325115.0,7325095.0,7325070.0,7325005.0,2585557.0,2585548.0,2585546.0,2585528.0,2585520.0,2585516.0],"skipIndex":0,"section_code":"gallery","featured_images":2585557.0,"id":164655,"singleSection":false});				  						galleries[164627] = clik.newGallery({"parentGallery":79208,"usePopups":false,"title":"People - Location Interiors: Two","link":"gallery_164627.html","maxRecords":0.0,"photoIDs":[5814367.0,5814363.0,2585619.0,2585618.0,2585606.0,2585598.0,2585621.0,2585603.0,2585592.0,2585588.0,2585584.0,2586077.0],"skipIndex":0,"section_code":"gallery","featured_images":2585619.0,"id":164627,"singleSection":false});				  						galleries[4473] = clik.newGallery({"parentGallery":79207,"usePopups":false,"title":"People - Studio Work: Two","link":"gallery_4473.html","maxRecords":0.0,"photoIDs":[686517.0,686520.0,686522.0,317239.0,43426.0,43430.0,43428.0,43427.0,43433.0,43434.0,43442.0,2585298.0],"skipIndex":0,"section_code":"gallery","featured_images":43426.0,"id":4473,"singleSection":false});				  						galleries[131633] = clik.newGallery({"parentGallery":4469,"usePopups":false,"title":"Digital Images: One","link":"gallery_131633.html","maxRecords":0.0,"photoIDs":[652075.0,43408.0,43418.0,43420.0,43411.0,43412.0,43421.0,43416.0,43417.0,43424.0,2585332.0,2585294.0],"skipIndex":0,"section_code":"gallery","featured_images":"652075,43411","id":131633,"singleSection":false});				  						galleries[164591] = clik.newGallery({"parentGallery":79209,"usePopups":false,"title":"People - Location Exteriors: One","link":"gallery_164591.html","maxRecords":0.0,"photoIDs":[2649992.0,1069663.0,2015896.0,43457.0,43456.0],"skipIndex":0,"section_code":"gallery","featured_images":"2649992,2015896,1069663,43457,43456","id":164591,"singleSection":false});				  						galleries[164592] = clik.newGallery({"parentGallery":79208,"usePopups":false,"title":"People - Location Interiors: One","link":"gallery_164592.html","maxRecords":0.0,"photoIDs":[43437.0,43431.0,43438.0,43439.0,43440.0,43445.0,2015891.0,2015886.0,1069658.0,1069671.0,43444.0,2585277.0],"skipIndex":0,"section_code":"gallery","featured_images":43444.0,"id":164592,"singleSection":false});				  						galleries[230097] = clik.newGallery({"parentGallery":79207,"usePopups":false,"title":"People - Studio work: One","link":"gallery_230097.html","maxRecords":0.0,"photoIDs":[2683764.0,43425.0,43446.0,57853.0,1069650.0,43452.0,1959224.0,43449.0,2015905.0,43448.0,2015901.0,2015907.0],"skipIndex":0,"section_code":"gallery","featured_images":"43448,43425","id":230097,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '652075,5820423,1971488,43408,5814126,43418,43420,2015806,5814269,4417159,43421,2649944,649234,6140948,649236';
imageSets[2] = '652075,1971488,43425,2585619,1959263,2015806,43426,43411,4417159,2585557,3296450,2649944,649234,6140948,3774637,43448,43444';
imageSets[3] = '7325432,7325344,7325327,7325319,7325313,7325287,7325262,7325260,7325254,7325245,7325123,7325115,7325095,7325070,7325005,7324995,7324991,7324962,7324938,7324927,7324817,6154348,6140948,6133870,6064723,6056742,5820423,5814389,5814381,5814374,5814367,5814363,5814343,5814333,5814269,5814126,5814120,5814111,4443366,4443203,4417159,3774651,3774644,3774637,3296450,2683764,2649992,2649944,2586077,2585621';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/phphotoimages/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/phphotoimages/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/phphotoimages/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/phphotoimages/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/phphotoimages/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/phphotoimages/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/phphotoimages/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/phphotoimages/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/phphotoimages/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/phphotoimages/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/phphotoimages/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/phphotoimages/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/phphotoimages/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/phphotoimages/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/phphotoimages/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/phphotoimages/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/phphotoimages/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/phphotoimages/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/phphotoimages/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/phphotoimages/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/phphotoimages/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/phphotoimages/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/phphotoimages/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/phphotoimages/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/phphotoimages/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/phphotoimages/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/phphotoimages/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 = 'Paul Holroyd Photography and Imaging: ' + 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;
	}
}

			

