window.thumbnails = {};
															thumbnails[3771691] = clik.newPhoto({"id":3771691,"src":"IMG_8893_thumb.jpg","galleries_id":262953,"server_id":32,"link":"photo_3771691.html","width":130,"caption":"Surfing","height":87});
															thumbnails[4792674] = clik.newPhoto({"id":4792674,"src":"Falmouth_Regatta-0039_thumb.jpg","galleries_id":274246,"server_id":32,"link":"photo_4792674.html","width":130,"caption":"Falmouth Regatta Working Boats","height":87});
															thumbnails[4792675] = clik.newPhoto({"id":4792675,"src":"Falmouth_Regatta-0041_thumb.jpg","galleries_id":274246,"server_id":32,"link":"photo_4792675.html","width":130,"caption":"Falmouth Regatta Working Boats","height":87});
															thumbnails[4792676] = clik.newPhoto({"id":4792676,"src":"Falmouth_Regatta-0056_thumb.jpg","galleries_id":274246,"server_id":32,"link":"photo_4792676.html","width":130,"caption":"Falmouth Regatta Working Boats","height":87});
															thumbnails[7350400] = clik.newPhoto({"id":7350400,"src":"Welsh_Rally_thumb.jpg","galleries_id":262955,"server_id":32,"link":"photo_7350400.html","width":130,"caption":"","height":88});
															thumbnails[7767181] = clik.newPhoto({"id":7767181,"src":"IMG_3520_thumb.jpg","galleries_id":419785,"server_id":32,"link":"photo_7767181.html","width":130,"caption":"","height":96});
															thumbnails[7797100] = clik.newPhoto({"id":7797100,"src":"IMG_3535_thumb.jpg","galleries_id":419785,"server_id":32,"link":"photo_7797100.html","width":130,"caption":"","height":91});
															thumbnails[7797103] = clik.newPhoto({"id":7797103,"src":"IMG_3587_thumb.jpg","galleries_id":419785,"server_id":32,"link":"photo_7797103.html","width":130,"caption":"","height":90});
															thumbnails[7797105] = clik.newPhoto({"id":7797105,"src":"IMG_3596_thumb.jpg","galleries_id":419785,"server_id":32,"link":"photo_7797105.html","width":130,"caption":"","height":79});
															thumbnails[7797106] = clik.newPhoto({"id":7797106,"src":"IMG_3615_thumb.jpg","galleries_id":419785,"server_id":32,"link":"photo_7797106.html","width":130,"caption":"","height":87});
															thumbnails[7797109] = clik.newPhoto({"id":7797109,"src":"IMG_3627_thumb.jpg","galleries_id":419785,"server_id":32,"link":"photo_7797109.html","width":130,"caption":"","height":116});
															thumbnails[7797111] = clik.newPhoto({"id":7797111,"src":"IMG_3697_thumb.jpg","galleries_id":419785,"server_id":32,"link":"photo_7797111.html","width":130,"caption":"","height":173});
															thumbnails[7797113] = clik.newPhoto({"id":7797113,"src":"IMG_3733_thumb.jpg","galleries_id":419785,"server_id":32,"link":"photo_7797113.html","width":130,"caption":"","height":74});
															thumbnails[7797118] = clik.newPhoto({"id":7797118,"src":"IMG_3732_thumb.jpg","galleries_id":419785,"server_id":32,"link":"photo_7797118.html","width":130,"caption":"","height":82});
															thumbnails[7797127] = clik.newPhoto({"id":7797127,"src":"IMG_35411_thumb.jpg","galleries_id":419785,"server_id":32,"link":"photo_7797127.html","width":130,"caption":"","height":133});
															thumbnails[7797136] = clik.newPhoto({"id":7797136,"src":"IMG_3710_thumb.jpg","galleries_id":419785,"server_id":32,"link":"photo_7797136.html","width":130,"caption":"","height":93});
															thumbnails[8331958] = clik.newPhoto({"id":8331958,"src":"IMG_4677_thumb.jpg","galleries_id":442899,"server_id":19,"link":"photo_8331958.html","width":130,"caption":"","height":168});
															thumbnails[8331959] = clik.newPhoto({"id":8331959,"src":"IMG_4694_thumb.jpg","galleries_id":442899,"server_id":19,"link":"photo_8331959.html","width":130,"caption":"","height":150});
															thumbnails[8331961] = clik.newPhoto({"id":8331961,"src":"IMG_4695_thumb.jpg","galleries_id":442899,"server_id":19,"link":"photo_8331961.html","width":130,"caption":"","height":195});
															thumbnails[8331962] = clik.newPhoto({"id":8331962,"src":"IMG_4698_thumb.jpg","galleries_id":442899,"server_id":19,"link":"photo_8331962.html","width":130,"caption":"","height":157});
															thumbnails[8331964] = clik.newPhoto({"id":8331964,"src":"IMG_4701_thumb.jpg","galleries_id":442899,"server_id":19,"link":"photo_8331964.html","width":130,"caption":"","height":173});
															thumbnails[8332012] = clik.newPhoto({"id":8332012,"src":"IMG_4912_thumb.jpg","galleries_id":442895,"server_id":19,"link":"photo_8332012.html","width":130,"caption":"","height":51});
															thumbnails[8332013] = clik.newPhoto({"id":8332013,"src":"IMG_4965_thumb.jpg","galleries_id":442895,"server_id":19,"link":"photo_8332013.html","width":130,"caption":"","height":66});
															thumbnails[8332015] = clik.newPhoto({"id":8332015,"src":"IMG_5948_thumb.jpg","galleries_id":442895,"server_id":19,"link":"photo_8332015.html","width":130,"caption":"","height":87});
															thumbnails[8332016] = clik.newPhoto({"id":8332016,"src":"IMG_5953_thumb.jpg","galleries_id":442895,"server_id":19,"link":"photo_8332016.html","width":130,"caption":"","height":81});
															thumbnails[8332017] = clik.newPhoto({"id":8332017,"src":"IMG_5987_thumb.jpg","galleries_id":442895,"server_id":19,"link":"photo_8332017.html","width":130,"caption":"","height":74});
															thumbnails[8332020] = clik.newPhoto({"id":8332020,"src":"IMG_6059_thumb.jpg","galleries_id":442895,"server_id":19,"link":"photo_8332020.html","width":130,"caption":"","height":65});
															thumbnails[8332022] = clik.newPhoto({"id":8332022,"src":"IMG_6060_thumb.jpg","galleries_id":442895,"server_id":19,"link":"photo_8332022.html","width":130,"caption":"","height":73});
															thumbnails[8332023] = clik.newPhoto({"id":8332023,"src":"IMG_6115_thumb.jpg","galleries_id":442895,"server_id":19,"link":"photo_8332023.html","width":130,"caption":"","height":106});
															thumbnails[8332035] = clik.newPhoto({"id":8332035,"src":"IMG_5827_thumb.jpg","galleries_id":442896,"server_id":19,"link":"photo_8332035.html","width":130,"caption":"","height":70});
															thumbnails[8332037] = clik.newPhoto({"id":8332037,"src":"IMG_5834_thumb.jpg","galleries_id":442896,"server_id":19,"link":"photo_8332037.html","width":130,"caption":"","height":70});
															thumbnails[8332038] = clik.newPhoto({"id":8332038,"src":"IMG_5839_thumb.jpg","galleries_id":442896,"server_id":19,"link":"photo_8332038.html","width":130,"caption":"","height":88});
															thumbnails[8332039] = clik.newPhoto({"id":8332039,"src":"IMG_5852_thumb.jpg","galleries_id":442896,"server_id":19,"link":"photo_8332039.html","width":130,"caption":"","height":82});
															thumbnails[8332040] = clik.newPhoto({"id":8332040,"src":"IMG_5860_thumb.jpg","galleries_id":442896,"server_id":19,"link":"photo_8332040.html","width":130,"caption":"","height":74});
															thumbnails[8332060] = clik.newPhoto({"id":8332060,"src":"IMG_5863_thumb.jpg","galleries_id":442896,"server_id":19,"link":"photo_8332060.html","width":130,"caption":"","height":77});
															thumbnails[8332089] = clik.newPhoto({"id":8332089,"src":"IMG_5904_thumb.jpg","galleries_id":442896,"server_id":19,"link":"photo_8332089.html","width":130,"caption":"","height":55});
															thumbnails[8332105] = clik.newPhoto({"id":8332105,"src":"IMG_5905_thumb.jpg","galleries_id":442896,"server_id":19,"link":"photo_8332105.html","width":130,"caption":"","height":61});
															thumbnails[8332106] = clik.newPhoto({"id":8332106,"src":"IMG_5915_thumb.jpg","galleries_id":442896,"server_id":19,"link":"photo_8332106.html","width":130,"caption":"","height":67});
															thumbnails[8332108] = clik.newPhoto({"id":8332108,"src":"IMG_5916_thumb.jpg","galleries_id":442896,"server_id":19,"link":"photo_8332108.html","width":130,"caption":"","height":62});
															thumbnails[8332883] = clik.newPhoto({"id":8332883,"src":"IMG_6845_thumb.jpg","galleries_id":391640,"server_id":19,"link":"photo_8332883.html","width":130,"caption":"","height":76});
															thumbnails[8332885] = clik.newPhoto({"id":8332885,"src":"IMG_6835_thumb.jpg","galleries_id":391640,"server_id":19,"link":"photo_8332885.html","width":130,"caption":"","height":85});
															thumbnails[8332886] = clik.newPhoto({"id":8332886,"src":"IMG_6839_thumb.jpg","galleries_id":391640,"server_id":19,"link":"photo_8332886.html","width":130,"caption":"","height":81});
															thumbnails[2604881] = clik.newPhoto({"id":2604881,"src":"Le Mans '07-102_thumb.jpg","galleries_id":262954,"server_id":32,"link":"photo_2604881.html","width":130,"caption":"Le Mans","height":86});
															thumbnails[3188261] = clik.newPhoto({"id":3188261,"src":"IMG_7729_thumb.jpg","galleries_id":262948,"server_id":32,"link":"photo_3188261.html","width":130,"caption":"Early Morning Rowing on the Thames","height":87});
															thumbnails[3648062] = clik.newPhoto({"id":3648062,"src":"IMG_8770_thumb.jpg","galleries_id":262953,"server_id":32,"link":"photo_3648062.html","width":130,"caption":"Para Surfing","height":87});
															thumbnails[5574063] = clik.newPhoto({"id":5574063,"src":"Triathlon-0175_thumb.jpg","galleries_id":316103,"server_id":32,"link":"photo_5574063.html","width":130,"caption":"Off they go!","height":83});
															thumbnails[3648055] = clik.newPhoto({"id":3648055,"src":"IMG_8680_thumb.jpg","galleries_id":262948,"server_id":32,"link":"photo_3648055.html","width":130,"caption":"Heads of the River Race","height":87});
															thumbnails[5574065] = clik.newPhoto({"id":5574065,"src":"IMG_0217_thumb.jpg","galleries_id":316103,"server_id":32,"link":"photo_5574065.html","width":130,"caption":"Next stage","height":214});
															thumbnails[3648056] = clik.newPhoto({"id":3648056,"src":"IMG_8683_thumb.jpg","galleries_id":262948,"server_id":32,"link":"photo_3648056.html","width":130,"caption":"Heads of the River Race","height":87});
															thumbnails[5649146] = clik.newPhoto({"id":5649146,"src":"IMG_0231_thumb.jpg","galleries_id":316103,"server_id":32,"link":"photo_5649146.html","width":130,"caption":"","height":101});
															thumbnails[3648058] = clik.newPhoto({"id":3648058,"src":"IMG_8722_thumb.jpg","galleries_id":262948,"server_id":32,"link":"photo_3648058.html","width":130,"caption":"Heads of the River Race","height":87});
															thumbnails[5649147] = clik.newPhoto({"id":5649147,"src":"IMG_0265_thumb.jpg","galleries_id":316103,"server_id":32,"link":"photo_5649147.html","width":130,"caption":"","height":87});
															thumbnails[2604877] = clik.newPhoto({"id":2604877,"src":"Le Man's 08-3901_thumb.jpg","galleries_id":262954,"server_id":32,"link":"photo_2604877.html","width":130,"caption":"Le Mans","height":86});
															thumbnails[5649150] = clik.newPhoto({"id":5649150,"src":"IMG_0441_thumb.jpg","galleries_id":316103,"server_id":32,"link":"photo_5649150.html","width":130,"caption":"","height":96});
															thumbnails[2604867] = clik.newPhoto({"id":2604867,"src":"Le Man's 08-4341_thumb.jpg","galleries_id":262954,"server_id":32,"link":"photo_2604867.html","width":130,"caption":"Le Mans","height":86});
															thumbnails[5649152] = clik.newPhoto({"id":5649152,"src":"IMG_0465_thumb.jpg","galleries_id":316103,"server_id":32,"link":"photo_5649152.html","width":130,"caption":"","height":100});
															thumbnails[2604862] = clik.newPhoto({"id":2604862,"src":"Le Man's 08-1091_thumb.jpg","galleries_id":262954,"server_id":32,"link":"photo_2604862.html","width":130,"caption":"Le Mans","height":86});
															thumbnails[5649157] = clik.newPhoto({"id":5649157,"src":"IMG_0469_thumb.jpg","galleries_id":316103,"server_id":32,"link":"photo_5649157.html","width":130,"caption":"","height":130});
															thumbnails[2604856] = clik.newPhoto({"id":2604856,"src":"Le Man's 08-1841_thumb.jpg","galleries_id":262954,"server_id":32,"link":"photo_2604856.html","width":130,"caption":"Le Mans","height":86});
															thumbnails[5649159] = clik.newPhoto({"id":5649159,"src":"IMG_0470_thumb.jpg","galleries_id":316103,"server_id":32,"link":"photo_5649159.html","width":130,"caption":"","height":112});
															thumbnails[2604858] = clik.newPhoto({"id":2604858,"src":"Le Man's 08-2132_thumb.jpg","galleries_id":262954,"server_id":32,"link":"photo_2604858.html","width":130,"caption":"Le Mans","height":86});
															thumbnails[5649163] = clik.newPhoto({"id":5649163,"src":"IMG_0471_thumb.jpg","galleries_id":316103,"server_id":32,"link":"photo_5649163.html","width":130,"caption":"","height":87});
															thumbnails[2604864] = clik.newPhoto({"id":2604864,"src":"Le Man's 08-214_thumb.jpg","galleries_id":262954,"server_id":32,"link":"photo_2604864.html","width":130,"caption":"Le Mans","height":86});
															thumbnails[2604874] = clik.newPhoto({"id":2604874,"src":"Le Man's 08-3531_thumb.jpg","galleries_id":262954,"server_id":32,"link":"photo_2604874.html","width":130,"caption":"Le Mans","height":86});
															thumbnails[2604876] = clik.newPhoto({"id":2604876,"src":"Le Man's 08-3801_thumb.jpg","galleries_id":262954,"server_id":32,"link":"photo_2604876.html","width":130,"caption":"Le Mans","height":86});
															thumbnails[3188227] = clik.newPhoto({"id":3188227,"src":"IMG_8302_thumb.jpg","galleries_id":262955,"server_id":32,"link":"photo_3188227.html","width":130,"caption":"","height":87});
															thumbnails[3188225] = clik.newPhoto({"id":3188225,"src":"IMG_8283_thumb.jpg","galleries_id":262955,"server_id":32,"link":"photo_3188225.html","width":130,"caption":"","height":87});
															thumbnails[4215974] = clik.newPhoto({"id":4215974,"src":"IMG_0014_thumb.jpg","galleries_id":262948,"server_id":32,"link":"photo_4215974.html","width":130,"caption":"Get Set","height":87});
															thumbnails[3188223] = clik.newPhoto({"id":3188223,"src":"IMG_8257_thumb.jpg","galleries_id":262955,"server_id":32,"link":"photo_3188223.html","width":130,"caption":"","height":87});
															thumbnails[4215995] = clik.newPhoto({"id":4215995,"src":"IMG_0091_thumb.jpg","galleries_id":262948,"server_id":32,"link":"photo_4215995.html","width":130,"caption":"Go","height":87});
															thumbnails[3188224] = clik.newPhoto({"id":3188224,"src":"IMG_8282_thumb.jpg","galleries_id":262955,"server_id":32,"link":"photo_3188224.html","width":130,"caption":"","height":87});
															thumbnails[4215980] = clik.newPhoto({"id":4215980,"src":"IMG_0068_thumb.jpg","galleries_id":262948,"server_id":32,"link":"photo_4215980.html","width":130,"caption":"In the Lead","height":87});
															thumbnails[4216028] = clik.newPhoto({"id":4216028,"src":"IMG_0020_thumb.jpg","galleries_id":262948,"server_id":32,"link":"photo_4216028.html","width":130,"caption":"","height":62});
															thumbnails[4215996] = clik.newPhoto({"id":4215996,"src":"IMG_0057_thumb.jpg","galleries_id":262948,"server_id":32,"link":"photo_4215996.html","width":130,"caption":"Timing","height":87});
															thumbnails[4215999] = clik.newPhoto({"id":4215999,"src":"IMG_7708_thumb.jpg","galleries_id":262948,"server_id":32,"link":"photo_4215999.html","width":130,"caption":"Dedication","height":87});
															thumbnails[4216001] = clik.newPhoto({"id":4216001,"src":"IMG_7757_thumb.jpg","galleries_id":262948,"server_id":32,"link":"photo_4216001.html","width":130,"caption":"Sweeping","height":87});
															thumbnails[4216003] = clik.newPhoto({"id":4216003,"src":"IMG_0047_thumb.jpg","galleries_id":262948,"server_id":32,"link":"photo_4216003.html","width":130,"caption":"Making a Splash","height":87});
															thumbnails[4360395] = clik.newPhoto({"id":4360395,"src":"IMG_0176_thumb.jpg","galleries_id":262948,"server_id":32,"link":"photo_4360395.html","width":130,"caption":"Henley Royal Regatta","height":87});
															thumbnails[4360400] = clik.newPhoto({"id":4360400,"src":"IMG_0220_thumb.jpg","galleries_id":262948,"server_id":32,"link":"photo_4360400.html","width":130,"caption":"Henley Royal Regatta","height":87});
															thumbnails[4360397] = clik.newPhoto({"id":4360397,"src":"IMG_0189_thumb.jpg","galleries_id":262948,"server_id":32,"link":"photo_4360397.html","width":130,"caption":"Henley Royal Regatta","height":87});
															thumbnails[4360396] = clik.newPhoto({"id":4360396,"src":"IMG_0183_thumb.jpg","galleries_id":262948,"server_id":32,"link":"photo_4360396.html","width":130,"caption":"Henley Royal Regatta","height":87});
															thumbnails[4360398] = clik.newPhoto({"id":4360398,"src":"IMG_0207_thumb.jpg","galleries_id":262948,"server_id":32,"link":"photo_4360398.html","width":130,"caption":"Henley Royal Regatta","height":87});
															thumbnails[4360415] = clik.newPhoto({"id":4360415,"src":"IMG_0179_thumb.jpg","galleries_id":262948,"server_id":32,"link":"photo_4360415.html","width":130,"caption":"Henley Royal Regatta","height":87});
															thumbnails[4360417] = clik.newPhoto({"id":4360417,"src":"IMG_0199_thumb.jpg","galleries_id":262948,"server_id":32,"link":"photo_4360417.html","width":130,"caption":"Henley Royal Regatta","height":87});
															thumbnails[8332212] = clik.newPhoto({"id":8332212,"src":"P1000144_thumb.jpg","galleries_id":442903,"server_id":37,"link":"photo_8332212.html","width":130,"caption":"Stockholm","height":98});
															thumbnails[8332271] = clik.newPhoto({"id":8332271,"src":"IMG_1568_thumb.jpg","galleries_id":442903,"server_id":19,"link":"photo_8332271.html","width":130,"caption":"Oslo","height":86});
															thumbnails[8332356] = clik.newPhoto({"id":8332356,"src":"IMG_1589_thumb.jpg","galleries_id":442903,"server_id":37,"link":"photo_8332356.html","width":130,"caption":"Helsinki","height":87});
															thumbnails[8332358] = clik.newPhoto({"id":8332358,"src":"IMG_1598_thumb.jpg","galleries_id":442903,"server_id":37,"link":"photo_8332358.html","width":130,"caption":"Helsinki","height":87});
															thumbnails[8332359] = clik.newPhoto({"id":8332359,"src":"IMG_1602_thumb.jpg","galleries_id":442903,"server_id":37,"link":"photo_8332359.html","width":130,"caption":"Helsinki","height":87});
															thumbnails[8332360] = clik.newPhoto({"id":8332360,"src":"IMG_1608_thumb.jpg","galleries_id":442903,"server_id":37,"link":"photo_8332360.html","width":130,"caption":"Helsinki","height":80});
															thumbnails[8332628] = clik.newPhoto({"id":8332628,"src":"IMG_4043_thumb.jpg","galleries_id":442911,"server_id":19,"link":"photo_8332628.html","width":130,"caption":"Lake Worthersee","height":87});
															thumbnails[8332629] = clik.newPhoto({"id":8332629,"src":"IMG_4047_thumb.jpg","galleries_id":442911,"server_id":19,"link":"photo_8332629.html","width":130,"caption":"Lake Worthersee","height":195});
															thumbnails[8332631] = clik.newPhoto({"id":8332631,"src":"IMG_4460_thumb.jpg","galleries_id":442912,"server_id":19,"link":"photo_8332631.html","width":130,"caption":"Passo dello Stelvio","height":87});
															thumbnails[8332649] = clik.newPhoto({"id":8332649,"src":"MEMO0001_thumb.jpg","galleries_id":442913,"server_id":19,"link":"photo_8332649.html","width":130,"caption":"Lac du Chambon","height":98});
															thumbnails[8332652] = clik.newPhoto({"id":8332652,"src":"P1000429_thumb.jpg","galleries_id":442913,"server_id":19,"link":"photo_8332652.html","width":130,"caption":"Alpe de Huez","height":98});
															thumbnails[2604938] = clik.newPhoto({"id":2604938,"src":"Nige Cuba-231_thumb.jpg","galleries_id":262946,"server_id":32,"link":"photo_2604938.html","width":130,"caption":"This is the life","height":86});
															thumbnails[4791287] = clik.newPhoto({"id":4791287,"src":"Bali-0196_thumb.jpg","galleries_id":274167,"server_id":32,"link":"photo_4791287.html","width":130,"caption":"Sunset over Kuta Beach, Bali","height":195});
															thumbnails[2878774] = clik.newPhoto({"id":2878774,"src":"Italy '05-253_thumb.jpg","galleries_id":262961,"server_id":32,"link":"photo_2878774.html","width":130,"caption":"Italian Sunset","height":97});
															thumbnails[3979006] = clik.newPhoto({"id":3979006,"src":"IMG_0078-1_thumb.jpg","galleries_id":262947,"server_id":32,"link":"photo_3979006.html","width":130,"caption":"Pike Peak Summit","height":195});
															thumbnails[4791285] = clik.newPhoto({"id":4791285,"src":"Bali-0158_thumb.jpg","galleries_id":274167,"server_id":32,"link":"photo_4791285.html","width":130,"caption":"Infinity Church, Nusa Dua, Bali","height":195});
															thumbnails[2878776] = clik.newPhoto({"id":2878776,"src":"Italy '05-301_thumb.jpg","galleries_id":262961,"server_id":32,"link":"photo_2878776.html","width":130,"caption":"Italian Sunset","height":97});
															thumbnails[4791295] = clik.newPhoto({"id":4791295,"src":"Bali-0327_thumb.jpg","galleries_id":274167,"server_id":32,"link":"photo_4791295.html","width":130,"caption":"Mount Batur Volcano, Bali","height":195});
															thumbnails[5406801] = clik.newPhoto({"id":5406801,"src":"RC_Nepal-0072_thumb.jpg","galleries_id":262947,"server_id":32,"link":"photo_5406801.html","width":130,"caption":"Pushing to the top","height":180});
															thumbnails[2878773] = clik.newPhoto({"id":2878773,"src":"Italy '05-232_thumb.jpg","galleries_id":262961,"server_id":32,"link":"photo_2878773.html","width":130,"caption":"Italian Sunset","height":97});
															thumbnails[3978998] = clik.newPhoto({"id":3978998,"src":"IMG_0057-1_thumb.jpg","galleries_id":262947,"server_id":32,"link":"photo_3978998.html","width":130,"caption":"Up in the Clouds","height":87});
															thumbnails[4791300] = clik.newPhoto({"id":4791300,"src":"Bali-0388_thumb.jpg","galleries_id":274167,"server_id":32,"link":"photo_4791300.html","width":130,"caption":"Mount Batur Volcano, Bali","height":87});
															thumbnails[3979008] = clik.newPhoto({"id":3979008,"src":"IMG_0087-1_thumb.jpg","galleries_id":262947,"server_id":32,"link":"photo_3979008.html","width":130,"caption":"Everest from Pike Peak","height":87});
															thumbnails[4791292] = clik.newPhoto({"id":4791292,"src":"Bali-0257_thumb.jpg","galleries_id":274167,"server_id":32,"link":"photo_4791292.html","width":130,"caption":"Mount Batur Volcano, Bali","height":87});
															thumbnails[3979016] = clik.newPhoto({"id":3979016,"src":"IMG_0136-1_thumb.jpg","galleries_id":262947,"server_id":32,"link":"photo_3979016.html","width":130,"caption":"What a view","height":87});
															thumbnails[4791297] = clik.newPhoto({"id":4791297,"src":"Bali-0336_thumb.jpg","galleries_id":274167,"server_id":32,"link":"photo_4791297.html","width":130,"caption":"View from Mount Batur Volcano, Bali","height":87});
															thumbnails[4791274] = clik.newPhoto({"id":4791274,"src":"Bali-0021_thumb.jpg","galleries_id":274167,"server_id":32,"link":"photo_4791274.html","width":130,"caption":"UluWatu Temple, Bali","height":87});
															thumbnails[5406798] = clik.newPhoto({"id":5406798,"src":"RC_Nepal-9937_thumb.jpg","galleries_id":262947,"server_id":32,"link":"photo_5406798.html","width":130,"caption":"Morning Sky","height":87});
															thumbnails[4791277] = clik.newPhoto({"id":4791277,"src":"Bali-0064_thumb.jpg","galleries_id":274167,"server_id":32,"link":"photo_4791277.html","width":130,"caption":"Rice Fields, Bali","height":87});
															thumbnails[5406807] = clik.newPhoto({"id":5406807,"src":"RC_Nepal-0051_thumb.jpg","galleries_id":262947,"server_id":32,"link":"photo_5406807.html","width":130,"caption":"Dawn in the mountains","height":90});
															thumbnails[2878792] = clik.newPhoto({"id":2878792,"src":"Maldives '06-931_thumb.jpg","galleries_id":262958,"server_id":32,"link":"photo_2878792.html","width":130,"caption":"Maldives Hotel","height":86});
															thumbnails[4791279] = clik.newPhoto({"id":4791279,"src":"Bali-0119_thumb.jpg","galleries_id":274167,"server_id":32,"link":"photo_4791279.html","width":130,"caption":"Tanah Lot Temple, Bali","height":87});
															thumbnails[5406805] = clik.newPhoto({"id":5406805,"src":"RC_Nepal-0046_thumb.jpg","galleries_id":262947,"server_id":32,"link":"photo_5406805.html","width":130,"caption":"Sunrise","height":87});
															thumbnails[3278473] = clik.newPhoto({"id":3278473,"src":"Maldives '06-45_thumb.jpg","galleries_id":262958,"server_id":32,"link":"photo_3278473.html","width":130,"caption":"Maldives Diner","height":87});
															thumbnails[4791283] = clik.newPhoto({"id":4791283,"src":"Bali-0129_thumb.jpg","galleries_id":274167,"server_id":32,"link":"photo_4791283.html","width":130,"caption":"Local Fishing Boat, Bali","height":87});
															thumbnails[5479737] = clik.newPhoto({"id":5479737,"src":"IMG_0005_thumb.jpg","galleries_id":262947,"server_id":32,"link":"photo_5479737.html","width":130,"caption":"Mountain View","height":87});
															thumbnails[2878781] = clik.newPhoto({"id":2878781,"src":"Maldives '06-211_thumb.jpg","galleries_id":262958,"server_id":32,"link":"photo_2878781.html","width":130,"caption":"Maldives Band","height":86});
															thumbnails[4791272] = clik.newPhoto({"id":4791272,"src":"Bali-1_thumb.jpg","galleries_id":274167,"server_id":32,"link":"photo_4791272.html","width":130,"caption":"Local Balinese Dancer, Bali","height":120});
															thumbnails[5479742] = clik.newPhoto({"id":5479742,"src":"IMG_9918_thumb.jpg","galleries_id":262947,"server_id":32,"link":"photo_5479742.html","width":130,"caption":"Local village","height":87});
															thumbnails[2878789] = clik.newPhoto({"id":2878789,"src":"Maldives '06-871_thumb.jpg","galleries_id":262958,"server_id":32,"link":"photo_2878789.html","width":130,"caption":"Maldives Driveway","height":86});
															thumbnails[5479744] = clik.newPhoto({"id":5479744,"src":"IMG_0161_thumb.jpg","galleries_id":262947,"server_id":32,"link":"photo_5479744.html","width":130,"caption":"Keeping an Eye on us","height":87});
															thumbnails[2878790] = clik.newPhoto({"id":2878790,"src":"Maldives '06-882_thumb.jpg","galleries_id":262958,"server_id":32,"link":"photo_2878790.html","width":130,"caption":"Maldives Sunset","height":86});
															thumbnails[4791290] = clik.newPhoto({"id":4791290,"src":"Bali-0212_thumb.jpg","galleries_id":274167,"server_id":32,"link":"photo_4791290.html","width":130,"caption":"Sunset over Kuta Beach, Bali","height":87});
															thumbnails[2878783] = clik.newPhoto({"id":2878783,"src":"Maldives '06-221_thumb.jpg","galleries_id":262958,"server_id":32,"link":"photo_2878783.html","width":129,"caption":"Maldives Sunset","height":194});
															thumbnails[2878784] = clik.newPhoto({"id":2878784,"src":"Maldives '06-853_thumb.jpg","galleries_id":262958,"server_id":32,"link":"photo_2878784.html","width":130,"caption":"Maldives Sunset","height":97});
															thumbnails[2878794] = clik.newPhoto({"id":2878794,"src":"Maldives '06-961_thumb.jpg","galleries_id":262958,"server_id":32,"link":"photo_2878794.html","width":130,"caption":"Maldives Island","height":86});
															thumbnails[3278476] = clik.newPhoto({"id":3278476,"src":"Monaco '07-30_thumb.jpg","galleries_id":262961,"server_id":32,"link":"photo_3278476.html","width":130,"caption":"Monaco","height":87});
															thumbnails[2878797] = clik.newPhoto({"id":2878797,"src":"Monaco '07-61_thumb.jpg","galleries_id":262961,"server_id":32,"link":"photo_2878797.html","width":130,"caption":"Monaco Coastline","height":86});
															thumbnails[2878800] = clik.newPhoto({"id":2878800,"src":"Monaco '07-241_thumb.jpg","galleries_id":262961,"server_id":32,"link":"photo_2878800.html","width":130,"caption":"Monaco Hotel Life","height":86});
															thumbnails[2878801] = clik.newPhoto({"id":2878801,"src":"Monaco '07-231_thumb.jpg","galleries_id":262961,"server_id":32,"link":"photo_2878801.html","width":130,"caption":"Monaco Cafe Life","height":86});
															thumbnails[2878869] = clik.newPhoto({"id":2878869,"src":"Nige Cuba-2601_thumb.jpg","galleries_id":262946,"server_id":32,"link":"photo_2878869.html","width":130,"caption":"Cuban Taxi","height":86});
															thumbnails[2878855] = clik.newPhoto({"id":2878855,"src":"Nige Cuba-2551_thumb.jpg","galleries_id":262946,"server_id":32,"link":"photo_2878855.html","width":130,"caption":"Cuban Taxi","height":86});
															thumbnails[2878802] = clik.newPhoto({"id":2878802,"src":"Wen Cuba-761_thumb.jpg","galleries_id":262946,"server_id":32,"link":"photo_2878802.html","width":130,"caption":"Cuban Gent","height":97});
															thumbnails[2878852] = clik.newPhoto({"id":2878852,"src":"Nige Cuba-2531_thumb.jpg","galleries_id":262946,"server_id":32,"link":"photo_2878852.html","width":130,"caption":"Cuban Rain","height":86});
															thumbnails[2878851] = clik.newPhoto({"id":2878851,"src":"Nige Cuba-2422_thumb.jpg","galleries_id":262946,"server_id":32,"link":"photo_2878851.html","width":130,"caption":"Cuban Sunset","height":86});
															thumbnails[2878849] = clik.newPhoto({"id":2878849,"src":"Nige Cuba-2392_thumb.jpg","galleries_id":262946,"server_id":32,"link":"photo_2878849.html","width":130,"caption":"Cuba","height":86});
															thumbnails[2878858] = clik.newPhoto({"id":2878858,"src":"Nige Cuba-3011_thumb.jpg","galleries_id":262946,"server_id":32,"link":"photo_2878858.html","width":130,"caption":"Cuban Seascape","height":86});
															thumbnails[2878806] = clik.newPhoto({"id":2878806,"src":"Nige Cuba-1481_thumb.jpg","galleries_id":262946,"server_id":32,"link":"photo_2878806.html","width":129,"caption":"Cuban Nightsky","height":194});
															thumbnails[2879066] = clik.newPhoto({"id":2879066,"src":"Nige Cuba-1911_thumb.jpg","galleries_id":262946,"server_id":32,"link":"photo_2879066.html","width":129,"caption":"Cuban Town Scene","height":194});
															thumbnails[2879207] = clik.newPhoto({"id":2879207,"src":"Nige Cuba-40_thumb.jpg","galleries_id":262946,"server_id":32,"link":"photo_2879207.html","width":129,"caption":"Cuban Town","height":194});
															thumbnails[4271435] = clik.newPhoto({"id":4271435,"src":"Cuba-128_thumb.jpg","galleries_id":262946,"server_id":32,"link":"photo_4271435.html","width":130,"caption":"Local Hero","height":195});
															thumbnails[2878804] = clik.newPhoto({"id":2878804,"src":"Nige Cuba-51_thumb.jpg","galleries_id":262946,"server_id":32,"link":"photo_2878804.html","width":130,"caption":"Havana Sunset","height":86});
															thumbnails[2878805] = clik.newPhoto({"id":2878805,"src":"Nige Cuba-1051_thumb.jpg","galleries_id":262946,"server_id":32,"link":"photo_2878805.html","width":130,"caption":"Havana Sunset","height":86});
															thumbnails[6294964] = clik.newPhoto({"id":6294964,"src":"IMG_0904_thumb.jpg","galleries_id":349236,"server_id":32,"link":"photo_6294964.html","width":130,"caption":"River Ouse","height":87});
															thumbnails[6294966] = clik.newPhoto({"id":6294966,"src":"IMG_0906_thumb.jpg","galleries_id":349236,"server_id":32,"link":"photo_6294966.html","width":130,"caption":"River Ouse","height":195});
															thumbnails[7472302] = clik.newPhoto({"id":7472302,"src":"IMG_34001_thumb.jpg","galleries_id":349236,"server_id":32,"link":"photo_7472302.html","width":130,"caption":"Early Morning at Dorney Lake","height":144});
															thumbnails[2895478] = clik.newPhoto({"id":2895478,"src":"IMG_7648_thumb.jpg","galleries_id":262960,"server_id":32,"link":"photo_2895478.html","width":130,"caption":"London Skyline","height":86});
															thumbnails[3648060] = clik.newPhoto({"id":3648060,"src":"IMG_8568_thumb.jpg","galleries_id":262957,"server_id":32,"link":"photo_3648060.html","width":130,"caption":"Cornwall Coast","height":195});
															thumbnails[3771693] = clik.newPhoto({"id":3771693,"src":"IMG_8931-1_thumb.jpg","galleries_id":274179,"server_id":32,"link":"photo_3771693.html","width":130,"caption":"Brecon Beacons","height":87});
															thumbnails[3819528] = clik.newPhoto({"id":3819528,"src":"IMG_8973-1_thumb.jpg","galleries_id":262949,"server_id":32,"link":"photo_3819528.html","width":130,"caption":"Waterfall","height":87});
															thumbnails[3188220] = clik.newPhoto({"id":3188220,"src":"IMG_1300_thumb.jpg","galleries_id":262960,"server_id":32,"link":"photo_3188220.html","width":130,"caption":"London Skyline","height":87});
															thumbnails[3270817] = clik.newPhoto({"id":3270817,"src":"Cornwall Coast-13_thumb.jpg","galleries_id":262957,"server_id":32,"link":"photo_3270817.html","width":130,"caption":"Cornwall Coast","height":195});
															thumbnails[3771697] = clik.newPhoto({"id":3771697,"src":"IMG_8944-1_thumb.jpg","galleries_id":274179,"server_id":32,"link":"photo_3771697.html","width":130,"caption":"Brecon Beacons","height":87});
															thumbnails[3819531] = clik.newPhoto({"id":3819531,"src":"IMG_8983-1_thumb.jpg","galleries_id":262949,"server_id":32,"link":"photo_3819531.html","width":130,"caption":"Waterfall","height":87});
															thumbnails[3270824] = clik.newPhoto({"id":3270824,"src":"Cornwall Coast-18_thumb.jpg","galleries_id":262957,"server_id":32,"link":"photo_3270824.html","width":130,"caption":"Cornwall Coast","height":195});
															thumbnails[3271241] = clik.newPhoto({"id":3271241,"src":"London Life-85_thumb.jpg","galleries_id":262960,"server_id":32,"link":"photo_3271241.html","width":130,"caption":"London Skyline","height":87});
															thumbnails[3771698] = clik.newPhoto({"id":3771698,"src":"IMG_8946-1_thumb.jpg","galleries_id":274179,"server_id":32,"link":"photo_3771698.html","width":130,"caption":"Brecon Beacons","height":87});
															thumbnails[3819533] = clik.newPhoto({"id":3819533,"src":"IMG_8985-1_thumb.jpg","galleries_id":262949,"server_id":32,"link":"photo_3819533.html","width":130,"caption":"","height":87});
															thumbnails[3271248] = clik.newPhoto({"id":3271248,"src":"London Life-97_thumb.jpg","galleries_id":262960,"server_id":32,"link":"photo_3271248.html","width":130,"caption":"London Skyline","height":87});
															thumbnails[3819535] = clik.newPhoto({"id":3819535,"src":"IMG_8987-1_thumb.jpg","galleries_id":262949,"server_id":32,"link":"photo_3819535.html","width":130,"caption":"Waterfall","height":87});
															thumbnails[3270916] = clik.newPhoto({"id":3270916,"src":"Cornwall Coast-41_thumb.jpg","galleries_id":262957,"server_id":32,"link":"photo_3270916.html","width":130,"caption":"Cornwall Coast","height":87});
															thumbnails[3819537] = clik.newPhoto({"id":3819537,"src":"IMG_8990-1_thumb.jpg","galleries_id":262949,"server_id":32,"link":"photo_3819537.html","width":130,"caption":"Waterfall","height":87});
															thumbnails[3270818] = clik.newPhoto({"id":3270818,"src":"Cornwall Coast-28_thumb.jpg","galleries_id":262957,"server_id":32,"link":"photo_3270818.html","width":130,"caption":"Cornwall Coast","height":87});
															thumbnails[5649175] = clik.newPhoto({"id":5649175,"src":"IMG_0322_thumb.jpg","galleries_id":262957,"server_id":32,"link":"photo_5649175.html","width":130,"caption":"Sunset over Porth Beach, Newquay, Cornwall","height":48});
															thumbnails[2895480] = clik.newPhoto({"id":2895480,"src":"Thames Life-121_thumb.jpg","galleries_id":262959,"server_id":32,"link":"photo_2895480.html","width":130,"caption":"Thames Path","height":86});
															thumbnails[3271298] = clik.newPhoto({"id":3271298,"src":"Thames Life-15_thumb.jpg","galleries_id":262959,"server_id":32,"link":"photo_3271298.html","width":130,"caption":"Thames Path","height":87});
															thumbnails[3271299] = clik.newPhoto({"id":3271299,"src":"Thames Life-33_thumb.jpg","galleries_id":262959,"server_id":32,"link":"photo_3271299.html","width":130,"caption":"Thames Path","height":87});
															thumbnails[3271302] = clik.newPhoto({"id":3271302,"src":"Thames Life-90_thumb.jpg","galleries_id":262959,"server_id":32,"link":"photo_3271302.html","width":130,"caption":"Thames Path","height":87});
															thumbnails[3271341] = clik.newPhoto({"id":3271341,"src":"Thames Life-144_thumb.jpg","galleries_id":262959,"server_id":32,"link":"photo_3271341.html","width":130,"caption":"Thames Path","height":87});
															thumbnails[4792686] = clik.newPhoto({"id":4792686,"src":"Falconry_Show-7454_thumb.jpg","galleries_id":390258,"server_id":32,"link":"photo_4792686.html","width":130,"caption":"Flying Off ......","height":87});
															thumbnails[4792688] = clik.newPhoto({"id":4792688,"src":"Falconry_Show-7457_thumb.jpg","galleries_id":390258,"server_id":32,"link":"photo_4792688.html","width":130,"caption":"On the glove!","height":87});
															thumbnails[4792689] = clik.newPhoto({"id":4792689,"src":"Falconry_Show-7458_thumb.jpg","galleries_id":390258,"server_id":32,"link":"photo_4792689.html","width":130,"caption":"Hawk Eye","height":87});
															thumbnails[7289434] = clik.newPhoto({"id":7289434,"src":"IMG_1616_thumb.jpg","galleries_id":377227,"server_id":32,"link":"photo_7289434.html","width":130,"caption":"White Rhino - South Africa","height":78});
															thumbnails[7289448] = clik.newPhoto({"id":7289448,"src":"IMG_1901_thumb.jpg","galleries_id":377227,"server_id":32,"link":"photo_7289448.html","width":130,"caption":"White Lion - South Africa","height":195});
															thumbnails[7289458] = clik.newPhoto({"id":7289458,"src":"IMG_2446_thumb.jpg","galleries_id":377227,"server_id":32,"link":"photo_7289458.html","width":130,"caption":"African Elephant - Kenya","height":172});
															thumbnails[8332470] = clik.newPhoto({"id":8332470,"src":"IMG_2464_thumb.jpg","galleries_id":377227,"server_id":19,"link":"photo_8332470.html","width":130,"caption":"","height":118});
															thumbnails[8332471] = clik.newPhoto({"id":8332471,"src":"IMG_2519_thumb.jpg","galleries_id":377227,"server_id":19,"link":"photo_8332471.html","width":130,"caption":"","height":75});
															thumbnails[8332472] = clik.newPhoto({"id":8332472,"src":"IMG_2523_thumb.jpg","galleries_id":377227,"server_id":19,"link":"photo_8332472.html","width":130,"caption":"","height":87});
															thumbnails[8332473] = clik.newPhoto({"id":8332473,"src":"IMG_2316_thumb.jpg","galleries_id":391446,"server_id":19,"link":"photo_8332473.html","width":130,"caption":"","height":160});
															thumbnails[8332474] = clik.newPhoto({"id":8332474,"src":"IMG_2317_thumb.jpg","galleries_id":391446,"server_id":19,"link":"photo_8332474.html","width":130,"caption":"","height":90});
															thumbnails[8332476] = clik.newPhoto({"id":8332476,"src":"IMG_2318_thumb.jpg","galleries_id":391446,"server_id":19,"link":"photo_8332476.html","width":130,"caption":"","height":79});
															thumbnails[8332480] = clik.newPhoto({"id":8332480,"src":"IMG_2559_thumb.jpg","galleries_id":391446,"server_id":19,"link":"photo_8332480.html","width":130,"caption":"","height":88});
															thumbnails[8332483] = clik.newPhoto({"id":8332483,"src":"IMG_2563_thumb.jpg","galleries_id":391446,"server_id":19,"link":"photo_8332483.html","width":130,"caption":"","height":90});
															thumbnails[8332485] = clik.newPhoto({"id":8332485,"src":"IMG_2565_thumb.jpg","galleries_id":391446,"server_id":19,"link":"photo_8332485.html","width":130,"caption":"","height":85});
															thumbnails[8332486] = clik.newPhoto({"id":8332486,"src":"IMG_2578_thumb.jpg","galleries_id":391446,"server_id":19,"link":"photo_8332486.html","width":130,"caption":"","height":90});
															thumbnails[7272731] = clik.newPhoto({"id":7272731,"src":"NPH-139_thumb.jpg","galleries_id":391447,"server_id":32,"link":"photo_7272731.html","width":130,"caption":"","height":87});
															thumbnails[7272735] = clik.newPhoto({"id":7272735,"src":"NPH-141_thumb.jpg","galleries_id":391447,"server_id":32,"link":"photo_7272735.html","width":130,"caption":"","height":87});
															thumbnails[7272740] = clik.newPhoto({"id":7272740,"src":"NPH-145_thumb.jpg","galleries_id":391447,"server_id":32,"link":"photo_7272740.html","width":130,"caption":"","height":87});
															thumbnails[7348562] = clik.newPhoto({"id":7348562,"src":"IMG_2654_thumb.jpg","galleries_id":390295,"server_id":32,"link":"photo_7348562.html","width":130,"caption":"","height":87});
															thumbnails[7348565] = clik.newPhoto({"id":7348565,"src":"IMG_2662_thumb.jpg","galleries_id":390295,"server_id":32,"link":"photo_7348565.html","width":130,"caption":"","height":87});
															thumbnails[7348569] = clik.newPhoto({"id":7348569,"src":"IMG_2666_thumb.jpg","galleries_id":390295,"server_id":32,"link":"photo_7348569.html","width":130,"caption":"","height":87});
															thumbnails[7348571] = clik.newPhoto({"id":7348571,"src":"IMG_2667_thumb.jpg","galleries_id":390295,"server_id":32,"link":"photo_7348571.html","width":130,"caption":"","height":87});
															thumbnails[3978961] = clik.newPhoto({"id":3978961,"src":"IMG_9650-1_thumb.jpg","galleries_id":390291,"server_id":32,"link":"photo_3978961.html","width":130,"caption":"Trading","height":87});
															thumbnails[3978963] = clik.newPhoto({"id":3978963,"src":"IMG_9739-1_thumb.jpg","galleries_id":390291,"server_id":32,"link":"photo_3978963.html","width":130,"caption":"Look at those eyes","height":87});
															thumbnails[5479694] = clik.newPhoto({"id":5479694,"src":"IMG_0387-Edit_thumb.jpg","galleries_id":390291,"server_id":32,"link":"photo_5479694.html","width":130,"caption":"Hard Day!!","height":150});
															thumbnails[7348566] = clik.newPhoto({"id":7348566,"src":"IMG_2664_thumb.jpg","galleries_id":390295,"server_id":32,"link":"photo_7348566.html","width":130,"caption":"","height":181});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[390258] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Birds of Prey","link":"section449057_390258.html","maxRecords":0.0,"photoIDs":[4792686.0,4792688.0,4792689.0],"skipIndex":0,"section_code":"section449057","featured_images":4792689.0,"id":390258,"singleSection":false});				  						galleries[390291] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Children of Nepal","link":"section329418_390291.html","maxRecords":0.0,"photoIDs":[3978961.0,3978963.0,5479694.0],"skipIndex":0,"section_code":"section329418","featured_images":"5479694,3978963,3978961","id":390291,"singleSection":false});				  						galleries[391640] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Cycling","link":"section329416_391640.html","maxRecords":0.0,"photoIDs":[8332883.0,8332885.0,8332886.0],"skipIndex":0,"section_code":"section329416","featured_images":8332883.0,"id":391640,"singleSection":false});				  						galleries[262960] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"London","link":"section329417_262960.html","maxRecords":0.0,"photoIDs":[2895478.0,3188220.0,3271241.0,3271248.0],"skipIndex":0,"section_code":"section329417","featured_images":"3271248,3271241,3188220,2895478","id":262960,"singleSection":false});				  						galleries[262947] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Nepal","link":"section329415_262947.html","maxRecords":0.0,"photoIDs":[3979006.0,5406801.0,3978998.0,3979008.0,3979016.0,5406798.0,5406807.0,5406805.0,5479737.0,5479742.0,5479744.0],"skipIndex":0,"section_code":"section329415","featured_images":3978998.0,"id":262947,"singleSection":false});				  						galleries[274167] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Bali","link":"section329415_274167.html","maxRecords":0.0,"photoIDs":[4791287.0,4791285.0,4791295.0,4791300.0,4791292.0,4791297.0,4791274.0,4791277.0,4791279.0,4791283.0,4791272.0,4791290.0],"skipIndex":0,"section_code":"section329415","featured_images":4791290.0,"id":274167,"singleSection":false});				  						galleries[377227] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Big 5","link":"section449057_377227.html","maxRecords":0.0,"photoIDs":[7289434.0,7289448.0,7289458.0,8332470.0,8332471.0,8332472.0],"skipIndex":0,"section_code":"section449057","featured_images":7289434.0,"id":377227,"singleSection":false});				  						galleries[390295] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Little Roots Academy, Kenya","link":"section329418_390295.html","maxRecords":0.0,"photoIDs":[7348562.0,7348565.0,7348569.0,7348571.0,7348566.0],"skipIndex":0,"section_code":"section329418","featured_images":7348566.0,"id":390295,"singleSection":false});				  						galleries[442899] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Mountain Bikes","link":"section329416_442899.html","maxRecords":0.0,"photoIDs":[8331958.0,8331959.0,8331961.0,8331962.0,8331964.0],"skipIndex":0,"section_code":"section329416","featured_images":8331958.0,"id":442899,"singleSection":false});				  						galleries[262959] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Thames Life","link":"section329417_262959.html","maxRecords":0.0,"photoIDs":[2895480.0,3271298.0,3271299.0,3271302.0,3271341.0],"skipIndex":0,"section_code":"section329417","featured_images":"3271341,3271302,3271299,3271298,2895480","id":262959,"singleSection":false});				  						galleries[391446] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"African Wildlife","link":"section449057_391446.html","maxRecords":0.0,"photoIDs":[8332473.0,8332474.0,8332476.0,8332480.0,8332483.0,8332485.0,8332486.0],"skipIndex":0,"section_code":"section449057","featured_images":"8332486,8332485,8332483,8332480,8332476,8332474,8332473","id":391446,"singleSection":false});				  						galleries[262957] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Cornwall Coast","link":"section329417_262957.html","maxRecords":0.0,"photoIDs":[3648060.0,3270817.0,3270824.0,3270916.0,3270818.0,5649175.0],"skipIndex":0,"section_code":"section329417","featured_images":5649175.0,"id":262957,"singleSection":false});				  						galleries[262958] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Maldives","link":"section329415_262958.html","maxRecords":0.0,"photoIDs":[2878792.0,3278473.0,2878781.0,2878789.0,2878790.0,2878783.0,2878784.0,2878794.0],"skipIndex":0,"section_code":"section329415","featured_images":3278473.0,"id":262958,"singleSection":false});				  						galleries[391447] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Music Events","link":"section329418_391447.html","maxRecords":0.0,"photoIDs":[7272731.0,7272735.0,7272740.0],"skipIndex":0,"section_code":"section329418","featured_images":"7272740,7272735,7272731","id":391447,"singleSection":false});				  						galleries[316103] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Triathlon","link":"section329416_316103.html","maxRecords":0.0,"photoIDs":[5574063.0,5574065.0,5649146.0,5649147.0,5649150.0,5649152.0,5649157.0,5649159.0,5649163.0],"skipIndex":0,"section_code":"section329416","featured_images":5574063.0,"id":316103,"singleSection":false});				  						galleries[262946] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Cuba","link":"section329415_262946.html","maxRecords":0.0,"photoIDs":[2604938.0,2878869.0,2878855.0,2878802.0,2878852.0,2878851.0,2878849.0,2878858.0,2878806.0,2879066.0,2879207.0,4271435.0,2878804.0,2878805.0],"skipIndex":0,"section_code":"section329415","featured_images":2878851.0,"id":262946,"singleSection":false});				  						galleries[262948] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Rowing","link":"section329416_262948.html","maxRecords":0.0,"photoIDs":[3188261.0,3648055.0,3648056.0,3648058.0,4215974.0,4215995.0,4215980.0,4216028.0,4215996.0,4215999.0,4216001.0,4216003.0,4360395.0,4360400.0,4360397.0,4360396.0,4360398.0,4360415.0,4360417.0],"skipIndex":0,"section_code":"section329416","featured_images":3188261.0,"id":262948,"singleSection":false});				  						galleries[349236] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"UK Countryside","link":"section329417_349236.html","maxRecords":0.0,"photoIDs":[6294964.0,6294966.0,7472302.0],"skipIndex":0,"section_code":"section329417","featured_images":6294964.0,"id":349236,"singleSection":false});				  						galleries[262954] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Le Mans 24Hr","link":"section329416_262954.html","maxRecords":0.0,"photoIDs":[2604881.0,2604877.0,2604867.0,2604862.0,2604856.0,2604858.0,2604864.0,2604874.0,2604876.0],"skipIndex":0,"section_code":"section329416","featured_images":"2604881,2604877,2604876,2604874,2604867,2604864,2604862,2604858,2604856","id":262954,"singleSection":false});				  						galleries[442903] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Nordics","link":"section329415_442903.html","maxRecords":0.0,"photoIDs":[8332212.0,8332271.0,8332356.0,8332358.0,8332359.0,8332360.0],"skipIndex":0,"section_code":"section329415","featured_images":8332212.0,"id":442903,"singleSection":false});				  						galleries[262949] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Virginia Water","link":"section329417_262949.html","maxRecords":0.0,"photoIDs":[3819528.0,3819531.0,3819533.0,3819535.0,3819537.0],"skipIndex":0,"section_code":"section329417","featured_images":3819531.0,"id":262949,"singleSection":false});				  						galleries[274179] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Brecon Beacons","link":"section329417_274179.html","maxRecords":0.0,"photoIDs":[3771693.0,3771697.0,3771698.0],"skipIndex":0,"section_code":"section329417","featured_images":"3771698,3771697,3771693","id":274179,"singleSection":false});				  						galleries[262961] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Mediterranean","link":"section329415_262961.html","maxRecords":0.0,"photoIDs":[2878774.0,2878776.0,2878773.0,3278476.0,2878797.0,2878800.0,2878801.0],"skipIndex":0,"section_code":"section329415","featured_images":"3278476,2878801,2878800,2878797,2878776,2878774,2878773","id":262961,"singleSection":false});				  						galleries[262955] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Rallying","link":"section329416_262955.html","maxRecords":0.0,"photoIDs":[7350400.0,3188227.0,3188225.0,3188223.0,3188224.0],"skipIndex":0,"section_code":"section329416","featured_images":"7350400,3188225","id":262955,"singleSection":false});				  						galleries[442895] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"F2 Racing","link":"section329416_442895.html","maxRecords":0.0,"photoIDs":[8332012.0,8332013.0,8332015.0,8332016.0,8332017.0,8332020.0,8332022.0,8332023.0],"skipIndex":0,"section_code":"section329416","featured_images":8332015.0,"id":442895,"singleSection":false});				  						galleries[391280] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Kenya","link":"section329415_391280.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"section329415","featured_images":"","id":391280,"singleSection":false});				  						galleries[442907] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"North Wales","link":"section329417_442907.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"section329417","featured_images":"","id":442907,"singleSection":false});				  						galleries[442909] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Scotland","link":"section329417_442909.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"section329417","featured_images":"","id":442909,"singleSection":false});				  						galleries[391282] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"South Africa","link":"section329415_391282.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"section329415","featured_images":"","id":391282,"singleSection":false});				  						galleries[442896] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Sports Cars","link":"section329416_442896.html","maxRecords":0.0,"photoIDs":[8332035.0,8332037.0,8332038.0,8332039.0,8332040.0,8332060.0,8332089.0,8332105.0,8332106.0,8332108.0],"skipIndex":0,"section_code":"section329416","featured_images":8332040.0,"id":442896,"singleSection":false});				  						galleries[442911] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Austria","link":"section329415_442911.html","maxRecords":0.0,"photoIDs":[8332628.0,8332629.0],"skipIndex":0,"section_code":"section329415","featured_images":8332628.0,"id":442911,"singleSection":false});				  						galleries[419785] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Zapcat Racing","link":"section329416_419785.html","maxRecords":0.0,"photoIDs":[7767181.0,7797100.0,7797103.0,7797105.0,7797106.0,7797109.0,7797111.0,7797113.0,7797118.0,7797127.0,7797136.0],"skipIndex":0,"section_code":"section329416","featured_images":7797118.0,"id":419785,"singleSection":false});				  						galleries[442912] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Italy","link":"section329415_442912.html","maxRecords":0.0,"photoIDs":[8332631.0],"skipIndex":0,"section_code":"section329415","featured_images":8332631.0,"id":442912,"singleSection":false});				  						galleries[274246] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Sailing","link":"section329416_274246.html","maxRecords":0.0,"photoIDs":[4792674.0,4792675.0,4792676.0],"skipIndex":0,"section_code":"section329416","featured_images":4792675.0,"id":274246,"singleSection":false});				  						galleries[442913] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"France","link":"section329415_442913.html","maxRecords":0.0,"photoIDs":[8332649.0,8332652.0],"skipIndex":0,"section_code":"section329415","featured_images":"8332652,8332649","id":442913,"singleSection":false});				  						galleries[262953] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Surfing","link":"section329416_262953.html","maxRecords":0.0,"photoIDs":[3771691.0,3648062.0],"skipIndex":0,"section_code":"section329416","featured_images":3648062.0,"id":262953,"singleSection":false});				  						galleries[442914] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Spain","link":"section329415_442914.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"section329415","featured_images":"","id":442914,"singleSection":false});				  						galleries[442897] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Water\/Jet Skiing","link":"section329416_442897.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"section329416","featured_images":"","id":442897,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '3978998';
imageSets[2] = '8332883,8332628,8332212,8332040,8332015,8331958,7797118,7350400,7348566,7289434,6294964,5649175,5574063,4792689,4792675,4791290,3978998,3819531,3648062,3278473,3188261,3188225,2878851';
imageSets[3] = '4792689,4792688,4792686,4792676,4792675,4792674,4791300,4791297,4791295,4791292,4791287,4791285,4791283,4791279,4791277,4791274,4791272,3979016,3979008,3819537,3819535,3819533,3819531,3819528,3771698,3771697';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/nigeheaney/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/nigeheaney/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/nigeheaney/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/nigeheaney/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/nigeheaney/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/nigeheaney/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/nigeheaney/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/nigeheaney/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/nigeheaney/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/nigeheaney/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/nigeheaney/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/nigeheaney/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/nigeheaney/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/nigeheaney/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/nigeheaney/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/nigeheaney/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/nigeheaney/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/nigeheaney/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/nigeheaney/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/nigeheaney/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/nigeheaney/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/nigeheaney/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/nigeheaney/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/nigeheaney/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 += 'section329416.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 && 'section329416' != '') {
					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 = 'Nige Heaney Photography: ' + 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="nigeheaney@gmail.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="nigeheaney@gmail.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({					href: thumbnails[imageID].fnGalleryLink(gallery_id),					title: galleries[gallery_id].title				});
			}
		}
	}
}

/***************************************************************************
* 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;
	}
}

			

