window.thumbnails = {};
															thumbnails[82637] = clik.newPhoto({"id":82637,"src":"GlowingSheep_thumb.jpg","galleries_id":7860,"server_id":15,"link":"photo_82637.html","width":130,"caption":"Glowing sheep","height":68});
															thumbnails[82638] = clik.newPhoto({"id":82638,"src":"LochNaver_thumb.jpg","galleries_id":7860,"server_id":15,"link":"photo_82638.html","width":130,"caption":"Early mist Loch naver","height":83});
															thumbnails[102617] = clik.newPhoto({"id":102617,"src":"IMG_3103_thumb.jpg","galleries_id":7901,"server_id":15,"link":"photo_102617.html","width":130,"caption":"Alpaca close up","height":100});
															thumbnails[102621] = clik.newPhoto({"id":102621,"src":"IMG_3134_thumb.11.jpg","galleries_id":7901,"server_id":15,"link":"photo_102621.html","width":130,"caption":"Little posers","height":205});
															thumbnails[102624] = clik.newPhoto({"id":102624,"src":"IMG_3202_thumb.1.jpg","galleries_id":7901,"server_id":15,"link":"photo_102624.html","width":130,"caption":"Lady and hat floating islands","height":146});
															thumbnails[102625] = clik.newPhoto({"id":102625,"src":"IMG_3225_thumb.1.jpg","galleries_id":7901,"server_id":15,"link":"photo_102625.html","width":130,"caption":"Totora Reed Sailing boat","height":97});
															thumbnails[102626] = clik.newPhoto({"id":102626,"src":"IMG_3262_thumb.jpg","galleries_id":7901,"server_id":15,"link":"photo_102626.html","width":130,"caption":"Dancers Taquile Island","height":103});
															thumbnails[102627] = clik.newPhoto({"id":102627,"src":"IMG_3282_thumb.jpg","galleries_id":7901,"server_id":15,"link":"photo_102627.html","width":130,"caption":"Peru Rail Puno to Cusco","height":87});
															thumbnails[102629] = clik.newPhoto({"id":102629,"src":"IMG_3340_thumb.1.jpg","galleries_id":7901,"server_id":15,"link":"photo_102629.html","width":130,"caption":"Sacsayhuaman","height":51});
															thumbnails[102632] = clik.newPhoto({"id":102632,"src":"IMG_34741_thumb.jpg","galleries_id":7901,"server_id":15,"link":"photo_102632.html","width":130,"caption":"Machu Picchu in the clouds","height":85});
															thumbnails[126346] = clik.newPhoto({"id":126346,"src":"Evening light Mawddach estuary_thumb.jpg","galleries_id":7860,"server_id":15,"link":"photo_126346.html","width":130,"caption":"Evening light Mawddach Estuary","height":88});
															thumbnails[196812] = clik.newPhoto({"id":196812,"src":"Slate road_thumb.jpg","galleries_id":7860,"server_id":15,"link":"photo_196812.html","width":130,"caption":"Slate Road Cwmorthin","height":70});
															thumbnails[196813] = clik.newPhoto({"id":196813,"src":"Llyn Llydaw_thumb.jpg","galleries_id":7860,"server_id":15,"link":"photo_196813.html","width":130,"caption":"Llyn Llydaw","height":88});
															thumbnails[196994] = clik.newPhoto({"id":196994,"src":"Glowing Wreck Final_thumb.jpg","galleries_id":17967,"server_id":15,"link":"photo_196994.html","width":130,"caption":"Glowing Wreck Rossbeigh Bay","height":89});
															thumbnails[196996] = clik.newPhoto({"id":196996,"src":"Kicking up the leaves_thumb.jpg","galleries_id":17967,"server_id":15,"link":"photo_196996.html","width":130,"caption":"Kicking up the leaves","height":88});
															thumbnails[196997] = clik.newPhoto({"id":196997,"src":"LakeTekapo2 copy_thumb.jpg","galleries_id":17967,"server_id":15,"link":"photo_196997.html","width":130,"caption":"Lake Tekapo New Zealand","height":65});
															thumbnails[196999] = clik.newPhoto({"id":196999,"src":"Loch Naver Tree 2_thumb.jpg","galleries_id":17967,"server_id":15,"link":"photo_196999.html","width":130,"caption":"Early Mist Loch Naver","height":70});
															thumbnails[197002] = clik.newPhoto({"id":197002,"src":"Sossouvlei1_thumb.jpg","galleries_id":17967,"server_id":15,"link":"photo_197002.html","width":130,"caption":"Sossusvlei Namibia","height":87});
															thumbnails[197006] = clik.newPhoto({"id":197006,"src":"Sunset Whitesands bay final_thumb.jpg","galleries_id":17967,"server_id":15,"link":"photo_197006.html","width":130,"caption":"Sunset Whitesands Bay, Pembrokeshire","height":54});
															thumbnails[456667] = clik.newPhoto({"id":456667,"src":"3 White Seats_thumb.jpg","galleries_id":36204,"server_id":15,"link":"photo_456667.html","width":130,"caption":"3 White Seats","height":97});
															thumbnails[456672] = clik.newPhoto({"id":456672,"src":"Boat pattern textured copy_thumb.jpg","galleries_id":36204,"server_id":15,"link":"photo_456672.html","width":130,"caption":"Boats for hire Chenonceaux","height":87});
															thumbnails[456675] = clik.newPhoto({"id":456675,"src":"CRW_4776_thumb.jpg","galleries_id":36204,"server_id":15,"link":"photo_456675.html","width":130,"caption":"Chateau Chenonceaux Fountain","height":93});
															thumbnails[456685] = clik.newPhoto({"id":456685,"src":"D'Eyrinach 8_thumb.jpg","galleries_id":36204,"server_id":15,"link":"photo_456685.html","width":130,"caption":"Cat in the spotlight","height":186});
															thumbnails[456689] = clik.newPhoto({"id":456689,"src":"Totem poles & leaf_thumb.jpg","galleries_id":36204,"server_id":15,"link":"photo_456689.html","width":130,"caption":"Totem poles and leaf","height":172});
															thumbnails[456695] = clik.newPhoto({"id":456695,"src":"Marqueyssac 2 copy_thumb.jpg","galleries_id":36204,"server_id":15,"link":"photo_456695.html","width":130,"caption":"Topiary at Marqueyssac","height":94});
															thumbnails[456703] = clik.newPhoto({"id":456703,"src":"Boy on beach_thumb.jpg","galleries_id":36205,"server_id":15,"link":"photo_456703.html","width":130,"caption":"Boy and Misty Lighthouse","height":188});
															thumbnails[456707] = clik.newPhoto({"id":456707,"src":"Gate & wall shpd_thumb.jpg","galleries_id":36205,"server_id":15,"link":"photo_456707.html","width":130,"caption":"Gate & wall Coast path Cornwall","height":87});
															thumbnails[456722] = clik.newPhoto({"id":456722,"src":"On the beach_thumb.jpg","galleries_id":36205,"server_id":15,"link":"photo_456722.html","width":130,"caption":"On the beach","height":67});
															thumbnails[456725] = clik.newPhoto({"id":456725,"src":"Roque Gageac 9 copy_thumb.jpg","galleries_id":36203,"server_id":15,"link":"photo_456725.html","width":130,"caption":"La Roque Gageac, Dordogne","height":87});
															thumbnails[456726] = clik.newPhoto({"id":456726,"src":"Martignac 1 copy_thumb.jpg","galleries_id":36203,"server_id":15,"link":"photo_456726.html","width":130,"caption":"Martignac","height":87});
															thumbnails[456727] = clik.newPhoto({"id":456727,"src":"Rocamadour 11_thumb.jpg","galleries_id":36203,"server_id":15,"link":"photo_456727.html","width":130,"caption":"Rocamadour","height":182});
															thumbnails[456773] = clik.newPhoto({"id":456773,"src":"Sarlat 4 copy_thumb.jpg","galleries_id":36203,"server_id":15,"link":"photo_456773.html","width":130,"caption":"Restaurant, Sarlat","height":97});
															thumbnails[456774] = clik.newPhoto({"id":456774,"src":"Sarlat painter_thumb.jpg","galleries_id":36203,"server_id":15,"link":"photo_456774.html","width":130,"caption":"Painting the geese","height":167});
															thumbnails[456776] = clik.newPhoto({"id":456776,"src":"Terrasson 1 copy_thumb.jpg","galleries_id":36203,"server_id":15,"link":"photo_456776.html","width":130,"caption":"Bridge at Terrasson","height":87});
															thumbnails[456777] = clik.newPhoto({"id":456777,"src":"CRW_4547 copy_thumb.jpg","galleries_id":36203,"server_id":15,"link":"photo_456777.html","width":130,"caption":"Farm buildings Dordogne","height":87});
															thumbnails[1023968] = clik.newPhoto({"id":1023968,"src":"Bryce 1web_thumb.jpg","galleries_id":76512,"server_id":15,"link":"photo_1023968.html","width":130,"caption":"Tree at Sunset Bryce Canyon","height":90});
															thumbnails[1023973] = clik.newPhoto({"id":1023973,"src":"Bryce 7web_thumb.jpg","galleries_id":76512,"server_id":15,"link":"photo_1023973.html","width":130,"caption":"Lone Tree Bryce Canyon","height":188});
															thumbnails[1023974] = clik.newPhoto({"id":1023974,"src":"Bryce 16web_thumb.jpg","galleries_id":76512,"server_id":15,"link":"photo_1023974.html","width":130,"caption":"Hoodoos at Bryce Canyon","height":143});
															thumbnails[1023993] = clik.newPhoto({"id":1023993,"src":"GC62web_thumb.jpg","galleries_id":76512,"server_id":15,"link":"photo_1023993.html","width":130,"caption":"Evening light Grand Canyon","height":83});
															thumbnails[1024024] = clik.newPhoto({"id":1024024,"src":"GC 32web_thumb.jpg","galleries_id":76512,"server_id":15,"link":"photo_1024024.html","width":130,"caption":"Rim Tree Grand Canyon","height":90});
															thumbnails[1024029] = clik.newPhoto({"id":1024029,"src":"GC 56web_thumb.jpg","galleries_id":76512,"server_id":15,"link":"photo_1024029.html","width":130,"caption":"Passing storm Grand Canyon","height":73});
															thumbnails[1024030] = clik.newPhoto({"id":1024030,"src":"GC 62web_thumb.jpg","galleries_id":76512,"server_id":15,"link":"photo_1024030.html","width":130,"caption":"Sunset Grand Canyon","height":83});
															thumbnails[1024035] = clik.newPhoto({"id":1024035,"src":"Monument sunset 2web_thumb.jpg","galleries_id":76512,"server_id":15,"link":"photo_1024035.html","width":130,"caption":"Sunset Monument Valley","height":44});
															thumbnails[1024039] = clik.newPhoto({"id":1024039,"src":"Monument Valley sunset web_thumb.jpg","galleries_id":76512,"server_id":15,"link":"photo_1024039.html","width":130,"caption":"Monument Valley Sunset No.2","height":63});
															thumbnails[1024044] = clik.newPhoto({"id":1024044,"src":"Zion Tree web_thumb.jpg","galleries_id":76512,"server_id":15,"link":"photo_1024044.html","width":130,"caption":"Zion Park Tree and moon","height":187});
															thumbnails[1024060] = clik.newPhoto({"id":1024060,"src":"Zion 13 web_thumb.jpg","galleries_id":76512,"server_id":15,"link":"photo_1024060.html","width":130,"caption":"Virgin River at Zion Park","height":87});
															thumbnails[1024061] = clik.newPhoto({"id":1024061,"src":"Zion 21web_thumb.jpg","galleries_id":76512,"server_id":15,"link":"photo_1024061.html","width":130,"caption":"Rock Strata Zion Park","height":84});
															thumbnails[1024067] = clik.newPhoto({"id":1024067,"src":"Death Valley 5web_thumb.jpg","galleries_id":76512,"server_id":15,"link":"photo_1024067.html","width":130,"caption":"Zabriskie Point, Death Valley","height":82});
															thumbnails[1024084] = clik.newPhoto({"id":1024084,"src":"Death Valley 9web_thumb.jpg","galleries_id":76512,"server_id":15,"link":"photo_1024084.html","width":130,"caption":"Clouds over Death Valley","height":82});
															thumbnails[1024086] = clik.newPhoto({"id":1024086,"src":"Death Valley 19web_thumb.jpg","galleries_id":76512,"server_id":15,"link":"photo_1024086.html","width":130,"caption":"Artists Drive, Death Valley","height":80});
															thumbnails[1024101] = clik.newPhoto({"id":1024101,"src":"Death Valley 31web_thumb.jpg","galleries_id":76512,"server_id":15,"link":"photo_1024101.html","width":130,"caption":"Salt Pan Death Valley","height":87});
															thumbnails[1024107] = clik.newPhoto({"id":1024107,"src":"Monument valley 14web_thumb.jpg","galleries_id":76512,"server_id":15,"link":"photo_1024107.html","width":130,"caption":"Desert Tree Monument Valley","height":86});
															thumbnails[1024115] = clik.newPhoto({"id":1024115,"src":"Yosemite 14web_thumb.jpg","galleries_id":76512,"server_id":15,"link":"photo_1024115.html","width":130,"caption":"Half Dome Yosemite","height":87});
															thumbnails[1024138] = clik.newPhoto({"id":1024138,"src":"Yosemite 20web_thumb.jpg","galleries_id":76512,"server_id":15,"link":"photo_1024138.html","width":130,"caption":"Lone Tree Yosemite","height":185});
															thumbnails[1024140] = clik.newPhoto({"id":1024140,"src":"Yosemite 21web_thumb.jpg","galleries_id":76512,"server_id":15,"link":"photo_1024140.html","width":130,"caption":"Tree and Rock Yosemite","height":87});
															thumbnails[1024143] = clik.newPhoto({"id":1024143,"src":"Lake Powell 2web_thumb.jpg","galleries_id":76512,"server_id":15,"link":"photo_1024143.html","width":130,"caption":"Passing Storm near Lake Powell","height":58});
															thumbnails[1024150] = clik.newPhoto({"id":1024150,"src":"Lake Powell 9web_thumb.jpg","galleries_id":76512,"server_id":15,"link":"photo_1024150.html","width":130,"caption":"Clouds over Lake Powell","height":77});
															thumbnails[1024155] = clik.newPhoto({"id":1024155,"src":"Lake Powell 19web_thumb.jpg","galleries_id":76512,"server_id":15,"link":"photo_1024155.html","width":130,"caption":"Sunset Lake Powell","height":71});
															thumbnails[1024168] = clik.newPhoto({"id":1024168,"src":"Lake Powell 21web_thumb.jpg","galleries_id":76512,"server_id":15,"link":"photo_1024168.html","width":130,"caption":"Lake Powell Moorings","height":70});
															thumbnails[3395792] = clik.newPhoto({"id":3395792,"src":"Port-Haliguen-at-sunset_thumb.gif","galleries_id":207332,"server_id":15,"link":"photo_3395792.html","width":130,"caption":"Port Haliguen at Sunset","height":61});
															thumbnails[3395794] = clik.newPhoto({"id":3395794,"src":"Le-Mont-St-MIchel-at-night_thumb.gif","galleries_id":207332,"server_id":15,"link":"photo_3395794.html","width":130,"caption":"Le Mont St. Michel at night","height":74});
															thumbnails[3395795] = clik.newPhoto({"id":3395795,"src":"BN-29_thumb.gif","galleries_id":207332,"server_id":15,"link":"photo_3395795.html","width":130,"caption":"Phare d'Eckmuhl","height":210});
															thumbnails[3395796] = clik.newPhoto({"id":3395796,"src":"BB-5_thumb.gif","galleries_id":207332,"server_id":15,"link":"photo_3395796.html","width":130,"caption":"Vannes street light","height":203});
															thumbnails[3395797] = clik.newPhoto({"id":3395797,"src":"Artist's-impression_thumb.gif","galleries_id":207332,"server_id":15,"link":"photo_3395797.html","width":130,"caption":"Painter Vannes harbour","height":158});
															thumbnails[3395799] = clik.newPhoto({"id":3395799,"src":"BC-12_thumb.gif","galleries_id":207332,"server_id":15,"link":"photo_3395799.html","width":130,"caption":"Lost hat","height":157});
															thumbnails[3395802] = clik.newPhoto({"id":3395802,"src":"BS-24_thumb.gif","galleries_id":207332,"server_id":15,"link":"photo_3395802.html","width":130,"caption":"Chandlers Iles aux Moines","height":83});
															thumbnails[3395804] = clik.newPhoto({"id":3395804,"src":"Dinan-16_thumb.gif","galleries_id":207332,"server_id":15,"link":"photo_3395804.html","width":130,"caption":"Window pattern Dinan","height":212});
															thumbnails[3395807] = clik.newPhoto({"id":3395807,"src":"FL-48_thumb.gif","galleries_id":207332,"server_id":15,"link":"photo_3395807.html","width":130,"caption":"Auray","height":195});
															thumbnails[3395810] = clik.newPhoto({"id":3395810,"src":"FL-4_thumb.gif","galleries_id":207332,"server_id":15,"link":"photo_3395810.html","width":130,"caption":"Fountains Quimper","height":195});
															thumbnails[3397109] = clik.newPhoto({"id":3397109,"src":"_MG_1229_thumb.gif","galleries_id":207396,"server_id":15,"link":"photo_3397109.html","width":130,"caption":"Sunset at Bidart","height":76});
															thumbnails[3397111] = clik.newPhoto({"id":3397111,"src":"_MG_1235_thumb.gif","galleries_id":207396,"server_id":15,"link":"photo_3397111.html","width":130,"caption":"Evening light Bidart","height":75});
															thumbnails[3397113] = clik.newPhoto({"id":3397113,"src":"_MG_0774_thumb.gif","galleries_id":207396,"server_id":15,"link":"photo_3397113.html","width":130,"caption":"Tour de France replicas Col d'Aubisque","height":80});
															thumbnails[3397120] = clik.newPhoto({"id":3397120,"src":"_MG_1055-01_thumb.gif","galleries_id":207396,"server_id":15,"link":"photo_3397120.html","width":130,"caption":"Orgues Ille sur Tet","height":80});
															thumbnails[3397123] = clik.newPhoto({"id":3397123,"src":"_MG_1150_thumb.gif","galleries_id":207396,"server_id":15,"link":"photo_3397123.html","width":130,"caption":"Twin towers of La Romieu at sunset","height":195});
															thumbnails[3397136] = clik.newPhoto({"id":3397136,"src":"_MG_1040_thumb.gif","galleries_id":207396,"server_id":15,"link":"photo_3397136.html","width":130,"caption":"Abbey St Martin Canigou","height":195});
															thumbnails[3397144] = clik.newPhoto({"id":3397144,"src":"_MG_0790_thumb.gif","galleries_id":207396,"server_id":15,"link":"photo_3397144.html","width":130,"caption":"Petit Train d'Artouste","height":87});
															thumbnails[3397148] = clik.newPhoto({"id":3397148,"src":"_MG_0934_thumb.gif","galleries_id":207396,"server_id":15,"link":"photo_3397148.html","width":130,"caption":"Collioure harbour","height":87});
															thumbnails[3397156] = clik.newPhoto({"id":3397156,"src":"Lamp-&-shutter_thumb.gif","galleries_id":207396,"server_id":15,"link":"photo_3397156.html","width":130,"caption":"Abbey lamp","height":195});
															thumbnails[3397261] = clik.newPhoto({"id":3397261,"src":"_MG_0916_thumb.gif","galleries_id":207396,"server_id":15,"link":"photo_3397261.html","width":130,"caption":"Canal du Midi Toulouse","height":87});
															thumbnails[3397264] = clik.newPhoto({"id":3397264,"src":"_MG_0855_thumb.gif","galleries_id":207396,"server_id":15,"link":"photo_3397264.html","width":130,"caption":"Goat","height":87});
															thumbnails[3399465] = clik.newPhoto({"id":3399465,"src":"A-grey-day-in-the-fall_thumb.gif","galleries_id":207541,"server_id":15,"link":"photo_3399465.html","width":130,"caption":"Autumn reflections Sturbridge","height":57});
															thumbnails[3399466] = clik.newPhoto({"id":3399466,"src":"AU3_thumb.gif","galleries_id":207541,"server_id":15,"link":"photo_3399466.html","width":130,"caption":"Autumn view Shelburne Museum","height":169});
															thumbnails[3399476] = clik.newPhoto({"id":3399476,"src":"AU11_thumb.gif","galleries_id":207541,"server_id":15,"link":"photo_3399476.html","width":130,"caption":"Autumn leaves","height":80});
															thumbnails[3399508] = clik.newPhoto({"id":3399508,"src":"AU37_thumb.gif","galleries_id":207541,"server_id":15,"link":"photo_3399508.html","width":130,"caption":"Echo Lake","height":79});
															thumbnails[3399511] = clik.newPhoto({"id":3399511,"src":"CC8_thumb.gif","galleries_id":207541,"server_id":15,"link":"photo_3399511.html","width":130,"caption":"Nubble Lighthouse","height":76});
															thumbnails[3399513] = clik.newPhoto({"id":3399513,"src":"CC14_thumb.gif","galleries_id":207541,"server_id":15,"link":"photo_3399513.html","width":130,"caption":"Marginal Way walk","height":81});
															thumbnails[3399515] = clik.newPhoto({"id":3399515,"src":"H7_thumb.gif","galleries_id":207541,"server_id":15,"link":"photo_3399515.html","width":130,"caption":"Halloween cameo","height":90});
															thumbnails[3399517] = clik.newPhoto({"id":3399517,"src":"Boston-8_thumb.gif","galleries_id":207541,"server_id":15,"link":"photo_3399517.html","width":130,"caption":"Barbers shop, Boston","height":95});
															thumbnails[3399587] = clik.newPhoto({"id":3399587,"src":"AU18_thumb.gif","galleries_id":207541,"server_id":15,"link":"photo_3399587.html","width":130,"caption":"Jackson","height":93});
															thumbnails[3399628] = clik.newPhoto({"id":3399628,"src":"AU7_thumb.gif","galleries_id":207541,"server_id":15,"link":"photo_3399628.html","width":130,"caption":"Autumn glade","height":79});
															thumbnails[3399632] = clik.newPhoto({"id":3399632,"src":"AU10_thumb.gif","galleries_id":207541,"server_id":15,"link":"photo_3399632.html","width":130,"caption":"Autumn carpet","height":81});
															thumbnails[3399635] = clik.newPhoto({"id":3399635,"src":"H13_thumb.gif","galleries_id":207541,"server_id":15,"link":"photo_3399635.html","width":130,"caption":"Beatles Abbey Road Halloween Cameo","height":101});
															thumbnails[8999436] = clik.newPhoto({"id":8999436,"src":"TDP_26_thumb_05D69770-24E8-5EC4-4F81602789E572FB.jpg","galleries_id":473986,"server_id":15,"link":"photo_8999436.html","width":160,"caption":"Torres del Paine","height":213});
															thumbnails[8999446] = clik.newPhoto({"id":8999446,"src":"TDP_40_thumb.jpg","galleries_id":473986,"server_id":15,"link":"photo_8999446.html","width":160,"caption":"Pack horse","height":213});
															thumbnails[8999460] = clik.newPhoto({"id":8999460,"src":"TDP_2_thumb.jpg","galleries_id":473986,"server_id":15,"link":"photo_8999460.html","width":160,"caption":"Hosteria Las Torres","height":85});
															thumbnails[8999468] = clik.newPhoto({"id":8999468,"src":"TDP_15_thumb.jpg","galleries_id":473986,"server_id":15,"link":"photo_8999468.html","width":160,"caption":"Trail to Las Torres","height":120});
															thumbnails[8999471] = clik.newPhoto({"id":8999471,"src":"TDP_6_thumb.jpg","galleries_id":473986,"server_id":15,"link":"photo_8999471.html","width":160,"caption":"Access bridge to Hosteria Las Torres","height":240});
															thumbnails[8999474] = clik.newPhoto({"id":8999474,"src":"Otway_10_thumb.jpg","galleries_id":473986,"server_id":15,"link":"photo_8999474.html","width":160,"caption":"Magellan Penguin","height":214});
															thumbnails[8999486] = clik.newPhoto({"id":8999486,"src":"Otway_5_thumb.jpg","galleries_id":473986,"server_id":15,"link":"photo_8999486.html","width":160,"caption":"Magellan penguins","height":104});
															thumbnails[8999488] = clik.newPhoto({"id":8999488,"src":"LG_13_thumb.jpg","galleries_id":473986,"server_id":15,"link":"photo_8999488.html","width":160,"caption":"Andean Condor","height":107});
															thumbnails[8999489] = clik.newPhoto({"id":8999489,"src":"LG_39_thumb.jpg","galleries_id":473986,"server_id":15,"link":"photo_8999489.html","width":160,"caption":"Lago Grey","height":107});
															thumbnails[8999495] = clik.newPhoto({"id":8999495,"src":"Laguna_Verde_15_thumb.jpg","galleries_id":473986,"server_id":15,"link":"photo_8999495.html","width":160,"caption":"Patagonia Morning","height":88});
															thumbnails[8999498] = clik.newPhoto({"id":8999498,"src":"Laguna_Verde_13_thumb.jpg","galleries_id":473986,"server_id":15,"link":"photo_8999498.html","width":160,"caption":"Sunsetting in Patagonia","height":82});
															thumbnails[8999509] = clik.newPhoto({"id":8999509,"src":"Campana_4_thumb.jpg","galleries_id":473986,"server_id":15,"link":"photo_8999509.html","width":160,"caption":"La Campana","height":107});
															thumbnails[8999513] = clik.newPhoto({"id":8999513,"src":"Campana_8_thumb.jpg","galleries_id":473986,"server_id":15,"link":"photo_8999513.html","width":160,"caption":"Giant Palm; La Campana","height":240});
															thumbnails[9002329] = clik.newPhoto({"id":9002329,"src":"LP_13_thumb.jpg","galleries_id":473986,"server_id":15,"link":"photo_9002329.html","width":160,"caption":"Lenticular clouds","height":83});
															thumbnails[9002333] = clik.newPhoto({"id":9002333,"src":"Guanaco_1_thumb.jpg","galleries_id":473986,"server_id":15,"link":"photo_9002333.html","width":160,"caption":"Guanaco","height":120});
															thumbnails[9002342] = clik.newPhoto({"id":9002342,"src":"LG_26_thumb.jpg","galleries_id":473986,"server_id":15,"link":"photo_9002342.html","width":160,"caption":"Lago Pehoe","height":107});
															thumbnails[9002347] = clik.newPhoto({"id":9002347,"src":"Sant_13_thumb.jpg","galleries_id":473986,"server_id":15,"link":"photo_9002347.html","width":160,"caption":"Santiago reflection","height":213});
															thumbnails[9002352] = clik.newPhoto({"id":9002352,"src":"Sant_17_thumb.jpg","galleries_id":473986,"server_id":15,"link":"photo_9002352.html","width":160,"caption":"Santiago Cathedral window","height":118});
															thumbnails[9002356] = clik.newPhoto({"id":9002356,"src":"Sant_10_thumb.jpg","galleries_id":473986,"server_id":15,"link":"photo_9002356.html","width":160,"caption":"Santiago Miners Monument","height":213});
															thumbnails[9002536] = clik.newPhoto({"id":9002536,"src":"Trondheim_web_thumb.jpg","galleries_id":473987,"server_id":15,"link":"photo_9002536.html","width":160,"caption":"Trondheim riverfront","height":77});
															thumbnails[9002541] = clik.newPhoto({"id":9002541,"src":"Reflections_Bud_harbour_web_thumb.jpg","galleries_id":473987,"server_id":15,"link":"photo_9002541.html","width":160,"caption":"Bud Harbour reflections","height":244});
															thumbnails[9002548] = clik.newPhoto({"id":9002548,"src":"One_man_and_his_campervan_web_thumb.jpg","galleries_id":473987,"server_id":15,"link":"photo_9002548.html","width":160,"caption":"On the snow road","height":103});
															thumbnails[9002559] = clik.newPhoto({"id":9002559,"src":"Olden_reflections_web_thumb.jpg","galleries_id":473987,"server_id":15,"link":"photo_9002559.html","width":160,"caption":"Olden Campsite reflections","height":107});
															thumbnails[9002562] = clik.newPhoto({"id":9002562,"src":"Jetty_in_the_Mist_web_thumb.jpg","galleries_id":473987,"server_id":15,"link":"photo_9002562.html","width":160,"caption":"Jetty in the Mist","height":107});
															thumbnails[9002567] = clik.newPhoto({"id":9002567,"src":"Jetty_in_the_mist_web_mono_thumb.jpg","galleries_id":7860,"server_id":15,"link":"photo_9002567.html","width":160,"caption":"Jetty in the Mist","height":193});
															thumbnails[9002572] = clik.newPhoto({"id":9002572,"src":"Holbaek_Sailing_club_web_thumb.jpg","galleries_id":473987,"server_id":15,"link":"photo_9002572.html","width":160,"caption":"Holbaek Sailing Club","height":101});
															thumbnails[9002575] = clik.newPhoto({"id":9002575,"src":"From_the_Atlantic_road_web_thumb.jpg","galleries_id":473987,"server_id":15,"link":"photo_9002575.html","width":160,"caption":"From the Atlantic Road","height":87});
															thumbnails[9002581] = clik.newPhoto({"id":9002581,"src":"Bud_sunburst_web_thumb.jpg","galleries_id":473987,"server_id":15,"link":"photo_9002581.html","width":160,"caption":"Evening sunburst at Bud","height":45});
															thumbnails[9002582] = clik.newPhoto({"id":9002582,"src":"Danish_Abbey_web_thumb.jpg","galleries_id":473987,"server_id":15,"link":"photo_9002582.html","width":160,"caption":"Abbey Memorials Denmark","height":240});
															thumbnails[9002588] = clik.newPhoto({"id":9002588,"src":"Bodo_web_thumb.jpg","galleries_id":473987,"server_id":15,"link":"photo_9002588.html","width":160,"caption":"From Bodo campsite","height":95});
															thumbnails[9002595] = clik.newPhoto({"id":9002595,"src":"Bodaek_web_thumb.jpg","galleries_id":473987,"server_id":15,"link":"photo_9002595.html","width":160,"caption":"Bodaek, Denmark","height":77});
															thumbnails[9002606] = clik.newPhoto({"id":9002606,"src":"Atlantic_road_web_thumb.jpg","galleries_id":473987,"server_id":15,"link":"photo_9002606.html","width":160,"caption":"Atlantic Road","height":63});
															thumbnails[9002613] = clik.newPhoto({"id":9002613,"src":"Ferry_in_the_Mist_web_thumb.jpg","galleries_id":473987,"server_id":15,"link":"photo_9002613.html","width":160,"caption":"Ferry in the Mist Gerainger fjord","height":235});
															thumbnails[9002987] = clik.newPhoto({"id":9002987,"src":"Midnight_sun_web_cal_thumb.jpg","galleries_id":473987,"server_id":15,"link":"photo_9002987.html","width":160,"caption":"Waiting for the midnight Sun, Bodo","height":80});
															thumbnails[9002995] = clik.newPhoto({"id":9002995,"src":"Orchid_Hi_Key_web_thumb.jpg","galleries_id":7860,"server_id":15,"link":"photo_9002995.html","width":160,"caption":"Orchid detail","height":108});
															thumbnails[9003030] = clik.newPhoto({"id":9003030,"src":"MON-Flamingo_thumb.jpg","galleries_id":7860,"server_id":15,"link":"photo_9003030.html","width":160,"caption":"Flamingo hi-key","height":115});
															thumbnails[9003032] = clik.newPhoto({"id":9003032,"src":"MON_Kisdon_Force_thumb.jpg","galleries_id":7860,"server_id":15,"link":"photo_9003032.html","width":160,"caption":"Kisdon Force","height":105});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[207332] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Brittany","link":"gallery_207332.html","maxRecords":0.0,"photoIDs":[3395792.0,3395794.0,3395795.0,3395796.0,3395797.0,3395799.0,3395802.0,3395804.0,3395807.0,3395810.0],"skipIndex":0,"section_code":"gallery","featured_images":3395794.0,"id":207332,"singleSection":false});				  						galleries[36204] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Castles & Gardens","link":"gallery_36204.html","maxRecords":0.0,"photoIDs":[456667.0,456672.0,456675.0,456685.0,456689.0,456695.0],"skipIndex":0,"section_code":"gallery","featured_images":456667.0,"id":36204,"singleSection":false});				  						galleries[36205] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Cornwall","link":"gallery_36205.html","maxRecords":0.0,"photoIDs":[456703.0,456707.0,456722.0],"skipIndex":0,"section_code":"gallery","featured_images":"456722,456707,456703","id":36205,"singleSection":false});				  						galleries[36203] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Dordogne","link":"gallery_36203.html","maxRecords":0.0,"photoIDs":[456725.0,456726.0,456727.0,456773.0,456774.0,456776.0,456777.0],"skipIndex":0,"section_code":"gallery","featured_images":"456777,456776,456774,456773,456727,456726,456725","id":36203,"singleSection":false});				  						galleries[7860] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Monochrome","link":"gallery_7860.html","maxRecords":0.0,"photoIDs":[82637.0,82638.0,126346.0,196812.0,196813.0,9002567.0,9002995.0,9003030.0,9003032.0],"skipIndex":0,"section_code":"gallery","featured_images":82637.0,"id":7860,"singleSection":false});				  						galleries[17967] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"My Favourites","link":"gallery_17967.html","maxRecords":0.0,"photoIDs":[196994.0,196996.0,196997.0,196999.0,197002.0,197006.0],"skipIndex":0,"section_code":"gallery","featured_images":196994.0,"id":17967,"singleSection":false});				  						galleries[207541] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"New England in the Fall","link":"gallery_207541.html","maxRecords":0.0,"photoIDs":[3399465.0,3399466.0,3399476.0,3399508.0,3399511.0,3399513.0,3399515.0,3399517.0,3399587.0,3399628.0,3399632.0,3399635.0],"skipIndex":0,"section_code":"gallery","featured_images":"3399635,3399632,3399628,3399587,3399517,3399515,3399513,3399511,3399508,3399476","id":207541,"singleSection":false});				  						galleries[473987] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Norway","link":"gallery_473987.html","maxRecords":0.0,"photoIDs":[9002536.0,9002541.0,9002548.0,9002559.0,9002562.0,9002572.0,9002575.0,9002581.0,9002582.0,9002588.0,9002595.0,9002606.0,9002613.0,9002987.0],"skipIndex":0,"section_code":"gallery","featured_images":"9002987,9002613,9002606,9002595,9002588,9002582,9002581,9002575,9002572,9002562","id":473987,"singleSection":false});				  						galleries[473986] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Patagonia","link":"gallery_473986.html","maxRecords":0.0,"photoIDs":[8999436.0,8999446.0,8999460.0,8999468.0,8999471.0,8999474.0,8999486.0,8999488.0,8999489.0,8999495.0,8999498.0,8999509.0,8999513.0,9002329.0,9002333.0,9002342.0,9002347.0,9002352.0,9002356.0],"skipIndex":0,"section_code":"gallery","featured_images":"9002356,9002352,9002347,9002342,9002333,9002329,8999513,8999509,8999498,8999495","id":473986,"singleSection":false});				  						galleries[7901] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Peru","link":"gallery_7901.html","maxRecords":0.0,"photoIDs":[102617.0,102621.0,102624.0,102625.0,102626.0,102627.0,102629.0,102632.0],"skipIndex":0,"section_code":"gallery","featured_images":"102632,102629,102627,102626,102625,102624,102621,102617","id":7901,"singleSection":false});				  						galleries[207396] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Pyrenees","link":"gallery_207396.html","maxRecords":0.0,"photoIDs":[3397109.0,3397111.0,3397113.0,3397120.0,3397123.0,3397136.0,3397144.0,3397148.0,3397156.0,3397261.0,3397264.0],"skipIndex":0,"section_code":"gallery","featured_images":"3397264,3397261,3397156,3397148,3397144,3397136,3397123,3397120,3397113,3397111","id":207396,"singleSection":false});				  						galleries[76512] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"USA National Parks","link":"gallery_76512.html","maxRecords":0.0,"photoIDs":[1023968.0,1023973.0,1023974.0,1023993.0,1024024.0,1024029.0,1024030.0,1024035.0,1024039.0,1024044.0,1024060.0,1024061.0,1024067.0,1024084.0,1024086.0,1024101.0,1024107.0,1024115.0,1024138.0,1024140.0,1024143.0,1024150.0,1024155.0,1024168.0],"skipIndex":0,"section_code":"gallery","featured_images":1024140.0,"id":76512,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '1024140';
imageSets[2] = '3395794,1024140,456667,196994,82637';
imageSets[3] = '9003032,9003030,9002995,9002987,9002613,9002606,9002595,9002588,9002582,9002581,9002575,9002572,9002567,9002562,9002559,9002548,9002541,9002536,9002356,9002352,9002347,9002342,9002333,9002329,8999513,8999509,8999498,8999495,8999489,8999488,8999486,8999474,8999471,8999468,8999460,8999446,8999436,3399635,3399632,3399628,3399587,3399517,3399515,3399513,3399511,3399508,3399476,3399466,3399465,3397264';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/granttimms/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/granttimms/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/granttimms/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/granttimms/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/granttimms/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/granttimms/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/granttimms/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/granttimms/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/granttimms/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/granttimms/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/granttimms/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/granttimms/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/granttimms/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/granttimms/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/granttimms/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/granttimms/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/granttimms/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/granttimms/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/granttimms/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/granttimms/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/granttimms/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/granttimms/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/granttimms/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/granttimms/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/granttimms/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/granttimms/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/granttimms/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = (backgrounds || photos || {})[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$detailContainer:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
		op = $.extend({},defaults,options),
		html = '', temp = '',
		photoId = op.nextPhoto.id,
		photoCaption = ''+op.nextPhoto.caption,
		photoSrc = op.nextPhoto.src;
	
	if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'Grant Timms 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> ' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else {
		
	}
	if (this.item_price !== '') {
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

		

