window.thumbnails = {};
															thumbnails[2246544] = clik.newPhoto({"id":2246544,"src":"Miami-yellow-hotel-front-20_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Miami 2008 (yellow art deco hotel) ","height":187});
															thumbnails[2246546] = clik.newPhoto({"id":2246546,"src":"Miami-yellow-and-pink-hotel_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Miami 2008 (yellow and pink art deco hotels)","height":188});
															thumbnails[2246548] = clik.newPhoto({"id":2246548,"src":"Miami-pink-hotel-with-palm-_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Miami 2008 (pink art deco hotel with palm)","height":186});
															thumbnails[2191625] = clik.newPhoto({"id":2191625,"src":"Fireworks-Florida-2005_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Fireworks, Florida 2005","height":173});
															thumbnails[2235834] = clik.newPhoto({"id":2235834,"src":"Florida-Diner-2005_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Florida Diner 2005","height":185});
															thumbnails[2235837] = clik.newPhoto({"id":2235837,"src":"d'Orsay-2007_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"D'Orsay Museum, Paris 2007","height":195});
															thumbnails[2235840] = clik.newPhoto({"id":2235840,"src":"d'Orsay-Clock-close-up-2007_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"D'Orsay Museum Clock, Paris 2007","height":195});
															thumbnails[2235842] = clik.newPhoto({"id":2235842,"src":"Eiffel-Shadow-BW-2007_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Eiffel Tower Shadow, Paris 2007","height":190});
															thumbnails[1491286] = clik.newPhoto({"id":1491286,"src":"Pantheon-Rome-2007_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Pantheon, Rome 2007<br>\r\n<br>\r\n","height":195});
															thumbnails[1587996] = clik.newPhoto({"id":1587996,"src":"Flat-Iron-Building-2004-cop_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Flat Iron Building, New York 2004","height":191});
															thumbnails[2235817] = clik.newPhoto({"id":2235817,"src":"Phone-Box-Portland-BW-and-R_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Portland 2006","height":195});
															thumbnails[2250457] = clik.newPhoto({"id":2250457,"src":"Munich-towers-2006_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Munich Towers 2007","height":195});
															thumbnails[1588025] = clik.newPhoto({"id":1588025,"src":"Langkawi-Circle_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Langkawi Island","height":163});
															thumbnails[2191552] = clik.newPhoto({"id":2191552,"src":"Langkawi-Circle-detail_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Langkawi Island - detail","height":162});
															thumbnails[3483221] = clik.newPhoto({"id":3483221,"src":"Touchy-Feely_thumb.jpg","galleries_id":75206,"server_id":18,"link":"photo_3483221.html","width":130,"caption":"Touchy Feely","height":130});
															thumbnails[3483225] = clik.newPhoto({"id":3483225,"src":"Louise_thumb.jpg","galleries_id":75348,"server_id":18,"link":"photo_3483225.html","width":130,"caption":"Louise","height":55});
															thumbnails[3483238] = clik.newPhoto({"id":3483238,"src":"Mercator-II_thumb.jpg","galleries_id":75358,"server_id":18,"link":"photo_3483238.html","width":130,"caption":"Mercator II","height":130});
															thumbnails[3483284] = clik.newPhoto({"id":3483284,"src":"Walls-Come-Tumbing-Down_thumb.gif","galleries_id":86273,"server_id":18,"link":"photo_3483284.html","width":130,"caption":"Walls Come Tumbling Down","height":130});
															thumbnails[3483500] = clik.newPhoto({"id":3483500,"src":"Pantalaimon_thumb.jpg","galleries_id":212995,"server_id":18,"link":"photo_3483500.html","width":130,"caption":"Pantalaimon","height":130});
															thumbnails[3483229] = clik.newPhoto({"id":3483229,"src":"Louise-detail_thumb.jpg","galleries_id":75348,"server_id":18,"link":"photo_3483229.html","width":130,"caption":"Louise - detail","height":87});
															thumbnails[3483289] = clik.newPhoto({"id":3483289,"src":"Walls-Come-Tumbing-Down-det_thumb.gif","galleries_id":86273,"server_id":18,"link":"photo_3483289.html","width":130,"caption":"Walls Come Tumbling Down - detail","height":87});
															thumbnails[3483607] = clik.newPhoto({"id":3483607,"src":"The-Long-Dark-Tea-Time-of-t_thumb.jpg","galleries_id":212995,"server_id":18,"link":"photo_3483607.html","width":130,"caption":"The Long Dark Tea Time of the Soul","height":130});
															thumbnails[334821] = clik.newPhoto({"id":334821,"src":"Birdsong_thumb.jpg","galleries_id":75206,"server_id":18,"link":"photo_334821.html","width":130,"caption":"Birdsong","height":131});
															thumbnails[334870] = clik.newPhoto({"id":334870,"src":"Deep-Blue_thumb.jpg","galleries_id":75206,"server_id":18,"link":"photo_334870.html","width":130,"caption":"Echo II","height":127});
															thumbnails[1003256] = clik.newPhoto({"id":1003256,"src":"Hubble-III1_thumb.jpg","galleries_id":75348,"server_id":18,"link":"photo_1003256.html","width":130,"caption":"Hubble III","height":130});
															thumbnails[336074] = clik.newPhoto({"id":336074,"src":"Core_thumb.jpg","galleries_id":75206,"server_id":18,"link":"photo_336074.html","width":130,"caption":"Core","height":128});
															thumbnails[336136] = clik.newPhoto({"id":336136,"src":"Sunken-Cathedral_thumb.jpg","galleries_id":75206,"server_id":18,"link":"photo_336136.html","width":130,"caption":"Sunken Cathedral","height":129});
															thumbnails[1003259] = clik.newPhoto({"id":1003259,"src":"Quiet-Earth_thumb.jpg","galleries_id":75206,"server_id":18,"link":"photo_1003259.html","width":130,"caption":"Quiet Earth","height":130});
															thumbnails[1005753] = clik.newPhoto({"id":1005753,"src":"Quiet-Earth-detail_thumb.jpg","galleries_id":75206,"server_id":18,"link":"photo_1005753.html","width":130,"caption":"Quiet Earth - detail","height":87});
															thumbnails[1003263] = clik.newPhoto({"id":1003263,"src":"Quiet-Earth-and-Core---Inst_thumb.jpg","galleries_id":75206,"server_id":18,"link":"photo_1003263.html","width":130,"caption":"Quiet Earth and Core","height":87});
															thumbnails[1003265] = clik.newPhoto({"id":1003265,"src":"Roman_thumb.jpg","galleries_id":75348,"server_id":18,"link":"photo_1003265.html","width":130,"caption":"Discobolos","height":131});
															thumbnails[1005845] = clik.newPhoto({"id":1005845,"src":"Mercator-IV_thumb.jpg","galleries_id":75348,"server_id":18,"link":"photo_1005845.html","width":130,"caption":"Mercator IV","height":130});
															thumbnails[1005754] = clik.newPhoto({"id":1005754,"src":"Approach-V_thumb.jpg","galleries_id":75348,"server_id":18,"link":"photo_1005754.html","width":130,"caption":"Approach V","height":130});
															thumbnails[1005806] = clik.newPhoto({"id":1005806,"src":"Lookout_thumb.jpg","galleries_id":75358,"server_id":18,"link":"photo_1005806.html","width":130,"caption":"Lookout","height":131});
															thumbnails[1087276] = clik.newPhoto({"id":1087276,"src":"Looking-at-the-Stars-II_thumb.jpg","galleries_id":75358,"server_id":18,"link":"photo_1087276.html","width":130,"caption":"Looking at the Stars II","height":130});
															thumbnails[1087351] = clik.newPhoto({"id":1087351,"src":"Looking-at-the-Stars-II-Det_thumb.jpg","galleries_id":75358,"server_id":18,"link":"photo_1087351.html","width":130,"caption":"Looking at the Stars II - detail","height":98});
															thumbnails[1202855] = clik.newPhoto({"id":1202855,"src":"Hubble-IV_thumb.jpg","galleries_id":75348,"server_id":18,"link":"photo_1202855.html","width":130,"caption":"Hubble IV","height":130});
															thumbnails[1202862] = clik.newPhoto({"id":1202862,"src":"Hubble-V_thumb.jpg","galleries_id":75348,"server_id":18,"link":"photo_1202862.html","width":130,"caption":"Hubble V","height":130});
															thumbnails[2162178] = clik.newPhoto({"id":2162178,"src":"Lagoon_thumb.jpg","galleries_id":75348,"server_id":18,"link":"photo_2162178.html","width":130,"caption":"Lagoon","height":130});
															thumbnails[1005767] = clik.newPhoto({"id":1005767,"src":"Looking-at-the-Stars_thumb.jpg","galleries_id":75358,"server_id":18,"link":"photo_1005767.html","width":130,"caption":"Looking at the Stars I","height":129});
															thumbnails[6973833] = clik.newPhoto({"id":6973833,"src":"Mercator-I_thumb.gif","galleries_id":75358,"server_id":18,"link":"photo_6973833.html","width":130,"caption":"Mercator I","height":130});
															thumbnails[1005770] = clik.newPhoto({"id":1005770,"src":"Looking-at-the-Stars-detail_thumb.jpg","galleries_id":75358,"server_id":18,"link":"photo_1005770.html","width":130,"caption":"Looking at the Stars I - detail","height":87});
															thumbnails[6926656] = clik.newPhoto({"id":6926656,"src":"Mercator-III_thumb.gif","galleries_id":75358,"server_id":18,"link":"photo_6926656.html","width":130,"caption":"Mercator III","height":130});
															thumbnails[1202874] = clik.newPhoto({"id":1202874,"src":"Tectonic-II_thumb.jpg","galleries_id":75358,"server_id":18,"link":"photo_1202874.html","width":130,"caption":"Tectonic II","height":130});
															thumbnails[1202877] = clik.newPhoto({"id":1202877,"src":"Untitled-bronze-and-black_thumb.jpg","galleries_id":75358,"server_id":18,"link":"photo_1202877.html","width":130,"caption":"Untitled - Bronze and Black","height":130});
															thumbnails[1001148] = clik.newPhoto({"id":1001148,"src":"Credo_thumb.jpg","galleries_id":86273,"server_id":18,"link":"photo_1001148.html","width":130,"caption":"Credo","height":68});
															thumbnails[1001171] = clik.newPhoto({"id":1001171,"src":"Credo II_thumb.jpg","galleries_id":86273,"server_id":18,"link":"photo_1001171.html","width":130,"caption":"Credo II","height":61});
															thumbnails[1202835] = clik.newPhoto({"id":1202835,"src":"Don't-You-Ever-Wonder_thumb.jpg","galleries_id":86273,"server_id":18,"link":"photo_1202835.html","width":130,"caption":"Don't You Ever Wonder How Things Might Have Turned Out?","height":88});
															thumbnails[1288813] = clik.newPhoto({"id":1288813,"src":"Pantheon-I_thumb.jpg","galleries_id":86273,"server_id":18,"link":"photo_1288813.html","width":130,"caption":"Pantheon I","height":130});
															thumbnails[1296343] = clik.newPhoto({"id":1296343,"src":"Pantheon-II_thumb.jpg","galleries_id":86273,"server_id":18,"link":"photo_1296343.html","width":130,"caption":"Pantheon II","height":92});
															thumbnails[1296347] = clik.newPhoto({"id":1296347,"src":"Pantheon-IIIL_thumb.jpg","galleries_id":86273,"server_id":18,"link":"photo_1296347.html","width":130,"caption":"Pantheon III","height":93});
															thumbnails[1296349] = clik.newPhoto({"id":1296349,"src":"Pantheon-IIIP_thumb.jpg","galleries_id":86273,"server_id":18,"link":"photo_1296349.html","width":130,"caption":"Pantheon III","height":182});
															thumbnails[1202844] = clik.newPhoto({"id":1202844,"src":"Move-On-Up_thumb.jpg","galleries_id":86273,"server_id":18,"link":"photo_1202844.html","width":130,"caption":"Move On Up","height":93});
															thumbnails[2207933] = clik.newPhoto({"id":2207933,"src":"Monicker-2008_thumb.jpg","galleries_id":86273,"server_id":18,"link":"photo_2207933.html","width":130,"caption":"Monicker","height":129});
															thumbnails[334882] = clik.newPhoto({"id":334882,"src":"First-One_thumb.jpg","galleries_id":212995,"server_id":18,"link":"photo_334882.html","width":130,"caption":"First One","height":136});
															thumbnails[334868] = clik.newPhoto({"id":334868,"src":"Crab-Hubble_thumb.jpg","galleries_id":212995,"server_id":18,"link":"photo_334868.html","width":130,"caption":"Ruby<br>\r\n","height":130});
															thumbnails[335154] = clik.newPhoto({"id":335154,"src":"Green-on-Pink_thumb.jpg","galleries_id":212995,"server_id":18,"link":"photo_335154.html","width":130,"caption":"Pterodactyl","height":130});
															thumbnails[4741298] = clik.newPhoto({"id":4741298,"src":"It-Took-an-Ecological-Catas_thumb.gif","galleries_id":27937,"server_id":18,"link":"photo_4741298.html","width":130,"caption":"It Took an Ecological Catastrophe to Allow Mammals to Become the Dominant Group","height":180});
															thumbnails[4741286] = clik.newPhoto({"id":4741286,"src":"Land-of-1000-Dances_thumb.gif","galleries_id":27937,"server_id":18,"link":"photo_4741286.html","width":130,"caption":"Land of 1,000 Dances","height":109});
															thumbnails[4741284] = clik.newPhoto({"id":4741284,"src":"Ayres-Road_thumb.gif","galleries_id":27937,"server_id":18,"link":"photo_4741284.html","width":130,"caption":"Ayres Road","height":130});
															thumbnails[3483065] = clik.newPhoto({"id":3483065,"src":"Whilst-Thinking-of-Leaving_thumb.gif","galleries_id":27937,"server_id":18,"link":"photo_3483065.html","width":130,"caption":"Whilst Thinking of Leaving","height":130});
															thumbnails[3755342] = clik.newPhoto({"id":3755342,"src":"Palimpsest_thumb.gif","galleries_id":229173,"server_id":18,"link":"photo_3755342.html","width":130,"caption":"Palimpsest","height":130});
															thumbnails[3483066] = clik.newPhoto({"id":3483066,"src":"Whilst-Thinking-of-Leaving-_thumb.gif","galleries_id":27937,"server_id":18,"link":"photo_3483066.html","width":130,"caption":"Whilst Thinking of Leaving - detail","height":87});
															thumbnails[3755350] = clik.newPhoto({"id":3755350,"src":"Palimpsest-detail_thumb.gif","galleries_id":229173,"server_id":18,"link":"photo_3755350.html","width":130,"caption":"Palimpsest - detail","height":87});
															thumbnails[3483099] = clik.newPhoto({"id":3483099,"src":"At-the-Twisted-Wheel_thumb.gif","galleries_id":27937,"server_id":18,"link":"photo_3483099.html","width":130,"caption":"At the Twisted Wheel","height":130});
															thumbnails[3483105] = clik.newPhoto({"id":3483105,"src":"At-the-Twisted-Wheel-detail_thumb.gif","galleries_id":27937,"server_id":18,"link":"photo_3483105.html","width":130,"caption":"At the Twisted Wheel - detail","height":89});
															thumbnails[1003046] = clik.newPhoto({"id":1003046,"src":"Barcelona-III_thumb.gif","galleries_id":27937,"server_id":18,"link":"photo_1003046.html","width":130,"caption":"Barcelona III<br>\r\n<br>\r\n","height":130});
															thumbnails[1003047] = clik.newPhoto({"id":1003047,"src":"Barcelona-II_thumb.jpg","galleries_id":27937,"server_id":18,"link":"photo_1003047.html","width":130,"caption":"Barcelona II","height":130});
															thumbnails[1005722] = clik.newPhoto({"id":1005722,"src":"Barcelona-II-detail_thumb.jpg","galleries_id":27937,"server_id":18,"link":"photo_1005722.html","width":130,"caption":"Barcelona II - detail","height":87});
															thumbnails[334823] = clik.newPhoto({"id":334823,"src":"Blue-Planet_thumb.jpg","galleries_id":229173,"server_id":18,"link":"photo_334823.html","width":130,"caption":"Castaway","height":130});
															thumbnails[334827] = clik.newPhoto({"id":334827,"src":"Bronze-and-White-II_thumb.jpg","galleries_id":229173,"server_id":18,"link":"photo_334827.html","width":130,"caption":"Bronze and White II","height":131});
															thumbnails[5007472] = clik.newPhoto({"id":5007472,"src":"Painting-no2_thumb.gif","galleries_id":27937,"server_id":18,"link":"photo_5007472.html","width":130,"caption":"Painting No. 2 (of a 3-part process)","height":130});
															thumbnails[5661014] = clik.newPhoto({"id":5661014,"src":"scan_thumb.gif","galleries_id":229173,"server_id":18,"link":"photo_5661014.html","width":130,"caption":"Scan<br>\r\n<br>\r\n","height":131});
															thumbnails[5105637] = clik.newPhoto({"id":5105637,"src":"Chimera_thumb.gif","galleries_id":229173,"server_id":18,"link":"photo_5105637.html","width":130,"caption":"Chimera","height":130});
															thumbnails[5105656] = clik.newPhoto({"id":5105656,"src":"Roobop_thumb.gif","galleries_id":229173,"server_id":18,"link":"photo_5105656.html","width":130,"caption":"Roobop<br>\r\n","height":130});
															thumbnails[5105670] = clik.newPhoto({"id":5105670,"src":"Roobop-detail_thumb.gif","galleries_id":229173,"server_id":18,"link":"photo_5105670.html","width":130,"caption":"Roobop (detail)","height":87});
															thumbnails[6067408] = clik.newPhoto({"id":6067408,"src":"Technical-Pleasure_thumb.gif","galleries_id":229173,"server_id":18,"link":"photo_6067408.html","width":130,"caption":"Technical Pleasure","height":130});
															thumbnails[6081905] = clik.newPhoto({"id":6081905,"src":"Fire-in-the-Holed_thumb.gif","galleries_id":229173,"server_id":18,"link":"photo_6081905.html","width":130,"caption":"Fire in the Holed","height":97});
															thumbnails[6197199] = clik.newPhoto({"id":6197199,"src":"Death-of-Chatterton-1998-co_thumb.gif","galleries_id":229173,"server_id":18,"link":"photo_6197199.html","width":130,"caption":"Death of Chatterton","height":104});
															thumbnails[7397450] = clik.newPhoto({"id":7397450,"src":"Jack-of-Hearts4_thumb.gif","galleries_id":27937,"server_id":18,"link":"photo_7397450.html","width":130,"caption":"Jack of Hearts 4","height":117});
															thumbnails[5934490] = clik.newPhoto({"id":5934490,"src":"Flareride-1_thumb.gif","galleries_id":229173,"server_id":18,"link":"photo_5934490.html","width":130,"caption":"Flareride 1","height":129});
															thumbnails[6766757] = clik.newPhoto({"id":6766757,"src":"Metro_thumb.gif","galleries_id":75206,"server_id":18,"link":"photo_6766757.html","width":130,"caption":"Metro","height":130});
															thumbnails[6866969] = clik.newPhoto({"id":6866969,"src":"Act-of-Random-Creativity_thumb.gif","galleries_id":27937,"server_id":18,"link":"photo_6866969.html","width":130,"caption":"Act of Random Creativity","height":130});
															thumbnails[3483051] = clik.newPhoto({"id":3483051,"src":"Soothe-Me_thumb.gif","galleries_id":28076,"server_id":18,"link":"photo_3483051.html","width":130,"caption":"Soothe Me","height":130});
															thumbnails[3248155] = clik.newPhoto({"id":3248155,"src":"Soothe-Me-detail_thumb.gif","galleries_id":28076,"server_id":18,"link":"photo_3248155.html","width":130,"caption":"Soothe Me (detail)<br>\r\n<br>\r\n","height":87});
															thumbnails[334814] = clik.newPhoto({"id":334814,"src":"Axe_thumb.jpg","galleries_id":28076,"server_id":18,"link":"photo_334814.html","width":130,"caption":"Axe","height":187});
															thumbnails[334874] = clik.newPhoto({"id":334874,"src":"Belladonna_thumb.jpg","galleries_id":28076,"server_id":18,"link":"photo_334874.html","width":130,"caption":"Belladonna","height":129});
															thumbnails[3755363] = clik.newPhoto({"id":3755363,"src":"Birdsong-II_thumb.gif","galleries_id":229173,"server_id":18,"link":"photo_3755363.html","width":130,"caption":"Birdsong II","height":122});
															thumbnails[1003095] = clik.newPhoto({"id":1003095,"src":"Decker_thumb.jpg","galleries_id":28076,"server_id":18,"link":"photo_1003095.html","width":130,"caption":"Decker","height":127});
															thumbnails[334883] = clik.newPhoto({"id":334883,"src":"Friends-of-Bedlam_thumb.jpg","galleries_id":28076,"server_id":18,"link":"photo_334883.html","width":130,"caption":"Bethlem I","height":130});
															thumbnails[335155] = clik.newPhoto({"id":335155,"src":"Green-Poles_thumb.jpg","galleries_id":28076,"server_id":18,"link":"photo_335155.html","width":130,"caption":"Green Poles","height":130});
															thumbnails[336031] = clik.newPhoto({"id":336031,"src":"Helmet_thumb.jpg","galleries_id":28076,"server_id":18,"link":"photo_336031.html","width":130,"caption":"Helmet","height":130});
															thumbnails[336047] = clik.newPhoto({"id":336047,"src":"Hubble-I_thumb.jpg","galleries_id":28076,"server_id":18,"link":"photo_336047.html","width":130,"caption":"Hold Position","height":131});
															thumbnails[6429930] = clik.newPhoto({"id":6429930,"src":"Ghosts_thumb.gif","galleries_id":28076,"server_id":18,"link":"photo_6429930.html","width":130,"caption":"Ghosts","height":57});
															thumbnails[3483179] = clik.newPhoto({"id":3483179,"src":"Belvedere_thumb.gif","galleries_id":28158,"server_id":18,"link":"photo_3483179.html","width":130,"caption":"Belvedere","height":130});
															thumbnails[3483182] = clik.newPhoto({"id":3483182,"src":"Belvedere-detail_thumb.gif","galleries_id":28158,"server_id":18,"link":"photo_3483182.html","width":130,"caption":"Belvedere - detail","height":94});
															thumbnails[2191635] = clik.newPhoto({"id":2191635,"src":"Liberty-Ships_thumb.jpg","galleries_id":28158,"server_id":18,"link":"photo_2191635.html","width":130,"caption":"Liberty Ships","height":130});
															thumbnails[2751198] = clik.newPhoto({"id":2751198,"src":"Englantis_thumb.jpg","galleries_id":28158,"server_id":18,"link":"photo_2751198.html","width":130,"caption":"Englantis","height":130});
															thumbnails[2751202] = clik.newPhoto({"id":2751202,"src":"Englantis-Detail_thumb.jpg","galleries_id":28158,"server_id":18,"link":"photo_2751202.html","width":130,"caption":"Englantis (detail)","height":87});
															thumbnails[2584444] = clik.newPhoto({"id":2584444,"src":"Contact_thumb.jpg","galleries_id":28158,"server_id":18,"link":"photo_2584444.html","width":130,"caption":"Contact","height":130});
															thumbnails[1005744] = clik.newPhoto({"id":1005744,"src":"Core-II_thumb.gif","galleries_id":28158,"server_id":18,"link":"photo_1005744.html","width":130,"caption":"Core II","height":128});
															thumbnails[336077] = clik.newPhoto({"id":336077,"src":"Soho-Moon_thumb.jpg","galleries_id":28158,"server_id":18,"link":"photo_336077.html","width":130,"caption":"SoHo Moon","height":130});
															thumbnails[3483198] = clik.newPhoto({"id":3483198,"src":"Enough-Already_thumb.jpg","galleries_id":28162,"server_id":18,"link":"photo_3483198.html","width":130,"caption":"Enough Already","height":130});
															thumbnails[3483204] = clik.newPhoto({"id":3483204,"src":"Exus-Trek_thumb.jpg","galleries_id":28162,"server_id":18,"link":"photo_3483204.html","width":130,"caption":"Exus Trek","height":130});
															thumbnails[1001106] = clik.newPhoto({"id":1001106,"src":"Closer_thumb.jpg","galleries_id":28162,"server_id":18,"link":"photo_1001106.html","width":130,"caption":"Closer","height":112});
															thumbnails[1003257] = clik.newPhoto({"id":1003257,"src":"Tectonic_thumb.jpg","galleries_id":28162,"server_id":18,"link":"photo_1003257.html","width":130,"caption":"Tectonic","height":130});
															thumbnails[520611] = clik.newPhoto({"id":520611,"src":"I-Dont-Wish-to-Worry-You_thumb.gif","galleries_id":28162,"server_id":18,"link":"photo_520611.html","width":130,"caption":"I Don't Wish to Worry You<br>\r\n<br>\r\n","height":129});
															thumbnails[1000996] = clik.newPhoto({"id":1000996,"src":"Approach III_thumb.jpg","galleries_id":28162,"server_id":18,"link":"photo_1000996.html","width":130,"caption":"Approach III","height":131});
															thumbnails[1005732] = clik.newPhoto({"id":1005732,"src":"Approach-III-detail_thumb.gif","galleries_id":28162,"server_id":18,"link":"photo_1005732.html","width":130,"caption":"Approach III - detail","height":87});
															thumbnails[1005787] = clik.newPhoto({"id":1005787,"src":"Brook-Benton_thumb.jpg","galleries_id":28162,"server_id":18,"link":"photo_1005787.html","width":130,"caption":"Brook Benton","height":130});
															thumbnails[1005791] = clik.newPhoto({"id":1005791,"src":"Brook-Benton-detail_thumb.jpg","galleries_id":28162,"server_id":18,"link":"photo_1005791.html","width":130,"caption":"Brook Benton - detail","height":122});
															thumbnails[1005737] = clik.newPhoto({"id":1005737,"src":"Blackdraft-1_thumb.jpg","galleries_id":75358,"server_id":18,"link":"photo_1005737.html","width":130,"caption":"Blackdraft I","height":131});
															thumbnails[1003101] = clik.newPhoto({"id":1003101,"src":"I-Dont-Wish-to-Worry-You-I_thumb.gif","galleries_id":212995,"server_id":18,"link":"photo_1003101.html","width":130,"caption":"I Don't Wish to Worry You II","height":129});
															thumbnails[1003267] = clik.newPhoto({"id":1003267,"src":"Oi_thumb.jpg","galleries_id":212995,"server_id":18,"link":"photo_1003267.html","width":130,"caption":"Oi","height":129});
															thumbnails[336061] = clik.newPhoto({"id":336061,"src":"London-Bridge_thumb.jpg","galleries_id":28158,"server_id":18,"link":"photo_336061.html","width":130,"caption":"When Will You","height":129});
															thumbnails[6516539] = clik.newPhoto({"id":6516539,"src":"Life-on-Mars_thumb.gif","galleries_id":212995,"server_id":18,"link":"photo_6516539.html","width":130,"caption":"Life on Mars","height":129});
															thumbnails[1001017] = clik.newPhoto({"id":1001017,"src":"Goldfinger_thumb.jpg","galleries_id":212995,"server_id":18,"link":"photo_1001017.html","width":130,"caption":"Goldfinger","height":130});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[27937] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gallery 1","link":"gallery_27937.html","maxRecords":0.0,"photoIDs":[4741298.0,4741286.0,4741284.0,3483065.0,3483066.0,3483099.0,3483105.0,1003046.0,1003047.0,1005722.0,5007472.0,7397450.0,6866969.0],"skipIndex":0,"section_code":"gallery","featured_images":7397450.0,"id":27937,"singleSection":false});				  						galleries[28076] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gallery 2","link":"gallery_28076.html","maxRecords":0.0,"photoIDs":[3483051.0,3248155.0,334814.0,334874.0,1003095.0,334883.0,335155.0,336031.0,336047.0,6429930.0],"skipIndex":0,"section_code":"gallery","featured_images":"6429930,3483051,3248155,1003095,336047,336031,335155,334883,334874,334814","id":28076,"singleSection":false});				  						galleries[28158] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gallery 3","link":"gallery_28158.html","maxRecords":0.0,"photoIDs":[3483179.0,3483182.0,2191635.0,2751198.0,2751202.0,2584444.0,1005744.0,336077.0,336061.0],"skipIndex":0,"section_code":"gallery","featured_images":3483182.0,"id":28158,"singleSection":false});				  						galleries[28162] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gallery 4","link":"gallery_28162.html","maxRecords":0.0,"photoIDs":[3483198.0,3483204.0,1001106.0,1003257.0,520611.0,1000996.0,1005732.0,1005787.0,1005791.0],"skipIndex":0,"section_code":"gallery","featured_images":"3483198,1003257","id":28162,"singleSection":false});				  						galleries[75206] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gallery 5","link":"gallery_75206.html","maxRecords":0.0,"photoIDs":[3483221.0,334821.0,334870.0,336074.0,336136.0,1003259.0,1005753.0,1003263.0,6766757.0],"skipIndex":0,"section_code":"gallery","featured_images":"3483221,336074","id":75206,"singleSection":false});				  						galleries[75348] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gallery 6","link":"gallery_75348.html","maxRecords":0.0,"photoIDs":[3483225.0,3483229.0,1003256.0,1003265.0,1005845.0,1005754.0,1202855.0,1202862.0,2162178.0],"skipIndex":0,"section_code":"gallery","featured_images":"3483229,3483225,1202855","id":75348,"singleSection":false});				  						galleries[75358] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gallery 7","link":"gallery_75358.html","maxRecords":0.0,"photoIDs":[3483238.0,1005806.0,1087276.0,1087351.0,1005767.0,6973833.0,1005770.0,6926656.0,1202874.0,1202877.0,1005737.0],"skipIndex":0,"section_code":"gallery","featured_images":3483238.0,"id":75358,"singleSection":false});				  						galleries[86273] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gallery 8","link":"gallery_86273.html","maxRecords":0.0,"photoIDs":[3483284.0,3483289.0,1001148.0,1001171.0,1202835.0,1288813.0,1296343.0,1296347.0,1296349.0,1202844.0,2207933.0],"skipIndex":0,"section_code":"gallery","featured_images":"3483289,3483284","id":86273,"singleSection":false});				  						galleries[212995] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gallery 9","link":"gallery_212995.html","maxRecords":0.0,"photoIDs":[3483500.0,3483607.0,334882.0,334868.0,335154.0,1003101.0,1003267.0,6516539.0,1001017.0],"skipIndex":0,"section_code":"gallery","featured_images":"3483607,3483500,1001017","id":212995,"singleSection":false});				  						galleries[229173] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gallery 10","link":"gallery_229173.html","maxRecords":0.0,"photoIDs":[3755342.0,3755350.0,334823.0,334827.0,5661014.0,5105637.0,5105656.0,5105670.0,6067408.0,6081905.0,6197199.0,5934490.0,3755363.0],"skipIndex":0,"section_code":"gallery","featured_images":6081905.0,"id":229173,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '7397450,6973833,6926656';
imageSets[2] = '7397450,6081905,3483607,3483500,3483289,3483284,3483238,3483229,3483225,3483221,3483198,3483182,2191625,1202855,1003257,1001017,336074';
imageSets[3] = '7397450,6973833,6926656,6866969,6766757,6516539,6429930,6197199,6081905,6067408,5934490,5661014,5105670,5105656,5105637,5007472,4741298,4741286,4741284,3755363,3755350,3755342,3483607,3483500,3483289,3483284,3483238,3483229,3483225,3483221,3483204,3483198,3483182,3483179,3483105,3483099,3483066,3483065,3483051,3248155,2751202,2751198,2584444,2250457,2246548,2246546,2246544,2235842,2235840,2235837';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/steveart/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/steveart/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/steveart/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/steveart/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/steveart/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/steveart/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/steveart/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/steveart/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/steveart/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/steveart/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/steveart/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/steveart/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/steveart/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/steveart/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/steveart/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/steveart/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/steveart/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/steveart/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/steveart/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/steveart/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/steveart/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/steveart/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/steveart/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = backgrounds && backgrounds[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$detailContainer:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
		op = $.extend({},defaults,options),
		html = '', temp = '',
		photoId = op.nextPhoto.id,
		photoCaption = ''+op.nextPhoto.caption,
		photoSrc = op.nextPhoto.src;
	
	if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'Stephen Riley 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> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp += '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
	else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
																		temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="stephenriley8@hotmail.com">';
					temp += '<input type="hidden" name="currency_code" value="GBP">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="stephenriley8@hotmail.com">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

