window.thumbnails = {};
															thumbnails[5168609] = clik.newPhoto({"id":5168609,"src":"wren_thumb.jpg","galleries_id":181994,"server_id":5,"link":"photo_5168609.html","width":130,"caption":"Wren Greenplum red-handed","height":87});
															thumbnails[5176289] = clik.newPhoto({"id":5176289,"src":"monitor_thumb.jpg","galleries_id":174222,"server_id":5,"link":"photo_5176289.html","width":130,"caption":"Monitor Lizard, Litchfield National Park","height":87});
															thumbnails[5168611] = clik.newPhoto({"id":5168611,"src":"treefrog2_thumb.jpg","galleries_id":174222,"server_id":5,"link":"photo_5168611.html","width":130,"caption":"Green treefrog 2","height":91});
															thumbnails[2744209] = clik.newPhoto({"id":2744209,"src":"IMG_3360b_thumb.jpg","galleries_id":184915,"server_id":5,"link":"photo_2744209.html","width":130,"caption":"Snow patterns on Mount Field, Tasmania","height":83});
															thumbnails[2744962] = clik.newPhoto({"id":2744962,"src":"IMG_2602_thumb.jpg","galleries_id":270953,"server_id":5,"link":"photo_2744962.html","width":130,"caption":"Leave only footprints","height":195});
															thumbnails[2744973] = clik.newPhoto({"id":2744973,"src":"IMG_25891_thumb.jpg","galleries_id":184915,"server_id":5,"link":"photo_2744973.html","width":130,"caption":"Cradle mountain summit","height":195});
															thumbnails[2744978] = clik.newPhoto({"id":2744978,"src":"IMG_2609_thumb.jpg","galleries_id":270953,"server_id":5,"link":"photo_2744978.html","width":130,"caption":"Man Friday","height":195});
															thumbnails[2744982] = clik.newPhoto({"id":2744982,"src":"IMG_2624 bandw_thumb.jpg","galleries_id":270953,"server_id":5,"link":"photo_2744982.html","width":130,"caption":"Cradle Mountain summit","height":194});
															thumbnails[2744984] = clik.newPhoto({"id":2744984,"src":"IMG_3365a_thumb.jpg","galleries_id":184915,"server_id":5,"link":"photo_2744984.html","width":130,"caption":"Colour mini sastrugi","height":184});
															thumbnails[2744986] = clik.newPhoto({"id":2744986,"src":"IMG_2624_thumb.jpg","galleries_id":184915,"server_id":5,"link":"photo_2744986.html","width":130,"caption":"Josh and Jo on the summit of Cradle","height":195});
															thumbnails[2744988] = clik.newPhoto({"id":2744988,"src":"IMG_3425_thumb.jpg","galleries_id":184915,"server_id":5,"link":"photo_2744988.html","width":130,"caption":"Rime ice at Mount Field","height":87});
															thumbnails[2781378] = clik.newPhoto({"id":2781378,"src":"IMG_3676_thumb.jpg","galleries_id":174225,"server_id":5,"link":"photo_2781378.html","width":130,"caption":"Bluestone Bay 2","height":185});
															thumbnails[2781387] = clik.newPhoto({"id":2781387,"src":"IMG_2836_thumb.jpg","galleries_id":184915,"server_id":5,"link":"photo_2781387.html","width":130,"caption":"Solitary confinement ","height":87});
															thumbnails[2781389] = clik.newPhoto({"id":2781389,"src":"IMG_3309_thumb.jpg","galleries_id":174222,"server_id":5,"link":"photo_2781389.html","width":130,"caption":"Sandi's garden","height":95});
															thumbnails[2781390] = clik.newPhoto({"id":2781390,"src":"wellington huts june 2008 005a copy_thumb.jpg","galleries_id":174222,"server_id":5,"link":"photo_2781390.html","width":130,"caption":"Late leaf","height":87});
															thumbnails[2781451] = clik.newPhoto({"id":2781451,"src":"IMG_3318_thumb.jpg","galleries_id":174223,"server_id":5,"link":"photo_2781451.html","width":130,"caption":"","height":87});
															thumbnails[2781458] = clik.newPhoto({"id":2781458,"src":"IMG_3469_thumb.jpg","galleries_id":174223,"server_id":5,"link":"photo_2781458.html","width":130,"caption":"Gill on Apline","height":199});
															thumbnails[2781474] = clik.newPhoto({"id":2781474,"src":"IMG_3579_thumb.jpg","galleries_id":174223,"server_id":5,"link":"photo_2781474.html","width":130,"caption":"","height":186});
															thumbnails[2787179] = clik.newPhoto({"id":2787179,"src":"pumpkin1_thumb.jpg","galleries_id":174222,"server_id":5,"link":"photo_2787179.html","width":130,"caption":"Pumpkin<br>\r\n ","height":87});
															thumbnails[2792127] = clik.newPhoto({"id":2792127,"src":"IMG_3771_thumb.jpg","galleries_id":174225,"server_id":5,"link":"photo_2792127.html","width":130,"caption":"Remarkable Cave","height":195});
															thumbnails[2805482] = clik.newPhoto({"id":2805482,"src":"IMG_3781_thumb.jpg","galleries_id":175422,"server_id":5,"link":"photo_2805482.html","width":130,"caption":"Skinscape","height":184});
															thumbnails[2805483] = clik.newPhoto({"id":2805483,"src":"IMG_3783_thumb.jpg","galleries_id":175422,"server_id":5,"link":"photo_2805483.html","width":130,"caption":"Dad","height":190});
															thumbnails[2816056] = clik.newPhoto({"id":2816056,"src":"IMG_2102b_thumb.jpg","galleries_id":174225,"server_id":5,"link":"photo_2816056.html","width":130,"caption":"","height":195});
															thumbnails[2816153] = clik.newPhoto({"id":2816153,"src":"IMG_1355_thumb.jpg","galleries_id":174224,"server_id":5,"link":"photo_2816153.html","width":130,"caption":"Hobart","height":85});
															thumbnails[2829578] = clik.newPhoto({"id":2829578,"src":"IMG_3828_thumb.jpg","galleries_id":174224,"server_id":5,"link":"photo_2829578.html","width":130,"caption":"","height":89});
															thumbnails[2829579] = clik.newPhoto({"id":2829579,"src":"IMG_3833_thumb.jpg","galleries_id":270953,"server_id":5,"link":"photo_2829579.html","width":130,"caption":"Tolkien in strange places","height":195});
															thumbnails[2829586] = clik.newPhoto({"id":2829586,"src":"IMG_3867_thumb.jpg","galleries_id":174224,"server_id":5,"link":"photo_2829586.html","width":130,"caption":"","height":195});
															thumbnails[2840570] = clik.newPhoto({"id":2840570,"src":"IMG_3675e_thumb.jpg","galleries_id":174225,"server_id":5,"link":"photo_2840570.html","width":130,"caption":"Bluestone Bay duotone","height":188});
															thumbnails[2841569] = clik.newPhoto({"id":2841569,"src":"grave3bw_thumb.jpg","galleries_id":270953,"server_id":5,"link":"photo_2841569.html","width":130,"caption":"Convict graves ","height":92});
															thumbnails[2876700] = clik.newPhoto({"id":2876700,"src":"joshHDR1final_thumb.jpg","galleries_id":174223,"server_id":5,"link":"photo_2876700.html","width":130,"caption":"Josh on the summit of Cradle Mountain ","height":196});
															thumbnails[2947247] = clik.newPhoto({"id":2947247,"src":"IMG_4035_thumb.jpg","galleries_id":181994,"server_id":5,"link":"photo_2947247.html","width":130,"caption":"Rings","height":86});
															thumbnails[3002267] = clik.newPhoto({"id":3002267,"src":"IMG_4488_thumb.jpg","galleries_id":174223,"server_id":5,"link":"photo_3002267.html","width":130,"caption":"Nick soloing on the Rubik Cube","height":187});
															thumbnails[3053242] = clik.newPhoto({"id":3053242,"src":"IMG_4531a_thumb.jpg","galleries_id":270953,"server_id":5,"link":"photo_3053242.html","width":130,"caption":"Rusty tap","height":200});
															thumbnails[3116669] = clik.newPhoto({"id":3116669,"src":"IMG_4692a_thumb.jpg","galleries_id":270953,"server_id":5,"link":"photo_3116669.html","width":130,"caption":"Lone Tree","height":86});
															thumbnails[3116671] = clik.newPhoto({"id":3116671,"src":"IMG_4694_thumb.jpg","galleries_id":184915,"server_id":5,"link":"photo_3116671.html","width":130,"caption":"Barbed Wire","height":195});
															thumbnails[3141336] = clik.newPhoto({"id":3141336,"src":"IMG_4788-b__a_thumb.jpg","galleries_id":174223,"server_id":5,"link":"photo_3141336.html","width":130,"caption":"Arthur River in the Tarkine Wilderness","height":87});
															thumbnails[3264188] = clik.newPhoto({"id":3264188,"src":"cam-cleat_thumb.jpg","galleries_id":270953,"server_id":5,"link":"photo_3264188.html","width":130,"caption":"Cam cleats on Mirami","height":92});
															thumbnails[3340421] = clik.newPhoto({"id":3340421,"src":"IMG_6844_thumb.jpg","galleries_id":174225,"server_id":5,"link":"photo_3340421.html","width":130,"caption":"Hazards sunset 2","height":195});
															thumbnails[3340436] = clik.newPhoto({"id":3340436,"src":"IMG_6627_thumb.jpg","galleries_id":181994,"server_id":5,"link":"photo_3340436.html","width":130,"caption":"Cormac and Gill","height":92});
															thumbnails[3410680] = clik.newPhoto({"id":3410680,"src":"IMG_6931a_thumb.jpg","galleries_id":181994,"server_id":5,"link":"photo_3410680.html","width":130,"caption":"","height":185});
															thumbnails[3410683] = clik.newPhoto({"id":3410683,"src":"IMG_7311bw_thumb.jpg","galleries_id":270953,"server_id":5,"link":"photo_3410683.html","width":130,"caption":"","height":185});
															thumbnails[3410684] = clik.newPhoto({"id":3410684,"src":"IMG_7160_thumb.jpg","galleries_id":270953,"server_id":5,"link":"photo_3410684.html","width":130,"caption":"","height":85});
															thumbnails[3410685] = clik.newPhoto({"id":3410685,"src":"IMG_7299_thumb.jpg","galleries_id":270953,"server_id":5,"link":"photo_3410685.html","width":130,"caption":"","height":195});
															thumbnails[3410688] = clik.newPhoto({"id":3410688,"src":"IMG_7140_1_2_thumb.jpg","galleries_id":174224,"server_id":5,"link":"photo_3410688.html","width":130,"caption":"","height":91});
															thumbnails[3413585] = clik.newPhoto({"id":3413585,"src":"IMG_5031_thumb.jpg","galleries_id":181994,"server_id":5,"link":"photo_3413585.html","width":130,"caption":"Phil","height":155});
															thumbnails[3413586] = clik.newPhoto({"id":3413586,"src":"IMG_5056_thumb.jpg","galleries_id":181994,"server_id":5,"link":"photo_3413586.html","width":130,"caption":"","height":108});
															thumbnails[3413588] = clik.newPhoto({"id":3413588,"src":"IMG_5149_thumb.jpg","galleries_id":181994,"server_id":5,"link":"photo_3413588.html","width":130,"caption":"Leah","height":103});
															thumbnails[3413590] = clik.newPhoto({"id":3413590,"src":"IMG_4999_thumb.jpg","galleries_id":181994,"server_id":5,"link":"photo_3413590.html","width":98,"caption":"a wee Scot","height":200});
															thumbnails[3420641] = clik.newPhoto({"id":3420641,"src":"painted1__1__2a_thumb.jpg","galleries_id":174225,"server_id":5,"link":"photo_3420641.html","width":130,"caption":"Painted Cliffs","height":195});
															thumbnails[3447267] = clik.newPhoto({"id":3447267,"src":"bluetongue_thumb.jpg","galleries_id":174222,"server_id":5,"link":"photo_3447267.html","width":130,"caption":"Bluetongue Lizard on Bruny Island","height":87});
															thumbnails[3475127] = clik.newPhoto({"id":3475127,"src":"mother-and-child-bw_thumb.jpg","galleries_id":181994,"server_id":5,"link":"photo_3475127.html","width":130,"caption":"","height":96});
															thumbnails[3517749] = clik.newPhoto({"id":3517749,"src":"flying-saucers_thumb.jpg","galleries_id":174224,"server_id":5,"link":"photo_3517749.html","width":130,"caption":"Flying Saucers?","height":87});
															thumbnails[3517751] = clik.newPhoto({"id":3517751,"src":"bluetongue2_thumb.jpg","galleries_id":174222,"server_id":5,"link":"photo_3517751.html","width":130,"caption":"","height":87});
															thumbnails[3545448] = clik.newPhoto({"id":3545448,"src":"IMG_7824final_thumb.jpg","galleries_id":174225,"server_id":5,"link":"photo_3545448.html","width":130,"caption":"Tamar River","height":87});
															thumbnails[3545451] = clik.newPhoto({"id":3545451,"src":"IMG_7813_thumb.jpg","galleries_id":270953,"server_id":5,"link":"photo_3545451.html","width":130,"caption":"Dandelion clock","height":87});
															thumbnails[3647900] = clik.newPhoto({"id":3647900,"src":"cape-tourville2__1__2_thumb.jpg","galleries_id":174225,"server_id":5,"link":"photo_3647900.html","width":130,"caption":"Cape Tourville Lighthouse","height":195});
															thumbnails[3647902] = clik.newPhoto({"id":3647902,"src":"IMG_7998_thumb.jpg","galleries_id":174225,"server_id":5,"link":"photo_3647902.html","width":130,"caption":"Whitewater Wall ","height":91});
															thumbnails[3647906] = clik.newPhoto({"id":3647906,"src":"IMG_8761_thumb.jpg","galleries_id":174223,"server_id":5,"link":"photo_3647906.html","width":130,"caption":"Kellevie 24 hour race 2009","height":97});
															thumbnails[3647908] = clik.newPhoto({"id":3647908,"src":"IMG_8792_thumb.jpg","galleries_id":174223,"server_id":5,"link":"photo_3647908.html","width":130,"caption":"Kellevie 24 hr MTB race 2009","height":87});
															thumbnails[3722168] = clik.newPhoto({"id":3722168,"src":"cormac-at-cardwells_thumb.jpg","galleries_id":181994,"server_id":5,"link":"photo_3722168.html","width":130,"caption":"Cormac","height":194});
															thumbnails[4116210] = clik.newPhoto({"id":4116210,"src":"murlough_thumb.jpg","galleries_id":174225,"server_id":5,"link":"photo_4116210.html","width":130,"caption":"Murlough 1","height":87});
															thumbnails[4116215] = clik.newPhoto({"id":4116215,"src":"Mourne-Cattle_thumb.jpg","galleries_id":174222,"server_id":5,"link":"photo_4116215.html","width":130,"caption":"Mourne Cattle","height":181});
															thumbnails[4116221] = clik.newPhoto({"id":4116221,"src":"Eagle-rock_thumb.jpg","galleries_id":174223,"server_id":5,"link":"photo_4116221.html","width":130,"caption":"","height":195});
															thumbnails[4116227] = clik.newPhoto({"id":4116227,"src":"Murlough-runnels_thumb.jpg","galleries_id":270953,"server_id":5,"link":"photo_4116227.html","width":130,"caption":"Murlough at low tide","height":192});
															thumbnails[4116230] = clik.newPhoto({"id":4116230,"src":"petanquesmall1_thumb.jpg","galleries_id":174224,"server_id":5,"link":"photo_4116230.html","width":130,"caption":"","height":72});
															thumbnails[4116231] = clik.newPhoto({"id":4116231,"src":"Pillar-to-post_thumb.jpg","galleries_id":270953,"server_id":5,"link":"photo_4116231.html","width":130,"caption":"","height":86});
															thumbnails[4116234] = clik.newPhoto({"id":4116234,"src":"Fields-of-Gold_thumb.jpg","galleries_id":184915,"server_id":5,"link":"photo_4116234.html","width":130,"caption":"","height":195});
															thumbnails[4116260] = clik.newPhoto({"id":4116260,"src":"Mourne-wall_thumb.jpg","galleries_id":184915,"server_id":5,"link":"photo_4116260.html","width":130,"caption":"The Mourne Wall","height":195});
															thumbnails[4116285] = clik.newPhoto({"id":4116285,"src":"Murlough-Bluebells_thumb.jpg","galleries_id":184915,"server_id":5,"link":"photo_4116285.html","width":130,"caption":"","height":91});
															thumbnails[4827294] = clik.newPhoto({"id":4827294,"src":"feet_at_the_G2_thumb.jpg","galleries_id":270953,"server_id":5,"link":"photo_4827294.html","width":130,"caption":"Feet at the G","height":196});
															thumbnails[5017414] = clik.newPhoto({"id":5017414,"src":"cormac_eating_sand_HP_thumb.jpg","galleries_id":181994,"server_id":5,"link":"photo_5017414.html","width":130,"caption":"Cormac on black sand beach","height":110});
															thumbnails[5017415] = clik.newPhoto({"id":5017415,"src":"_MG_1651_thumb.jpg","galleries_id":174222,"server_id":5,"link":"photo_5017415.html","width":130,"caption":"Bamboozled","height":188});
															thumbnails[5034467] = clik.newPhoto({"id":5034467,"src":"nautilus_thumb.jpg","galleries_id":174222,"server_id":5,"link":"photo_5034467.html","width":130,"caption":"Nautilus shell on Blacksand beach","height":87});
															thumbnails[5071448] = clik.newPhoto({"id":5071448,"src":"cormac_shadowme2_thumb.jpg","galleries_id":181994,"server_id":5,"link":"photo_5071448.html","width":130,"caption":"Cormac and self portrait at Kewarra beach","height":194});
															thumbnails[5092618] = clik.newPhoto({"id":5092618,"src":"stingernet_thumb.jpg","galleries_id":174224,"server_id":5,"link":"photo_5092618.html","width":130,"caption":"The stinger nets are out for the season","height":184});
															thumbnails[5211940] = clik.newPhoto({"id":5211940,"src":"Fatherhood1_thumb.jpg","galleries_id":181994,"server_id":5,"link":"photo_5211940.html","width":130,"caption":"Luke and Wren","height":194});
															thumbnails[5211947] = clik.newPhoto({"id":5211947,"src":"trike2colour_thumb.jpg","galleries_id":184915,"server_id":5,"link":"photo_5211947.html","width":130,"caption":"Trike","height":87});
															thumbnails[5255779] = clik.newPhoto({"id":5255779,"src":"lorakeet_thumb.jpg","galleries_id":174222,"server_id":5,"link":"photo_5255779.html","width":130,"caption":"lorakeet","height":106});
															thumbnails[5285296] = clik.newPhoto({"id":5285296,"src":"billy1_thumb.jpg","galleries_id":270953,"server_id":5,"link":"photo_5285296.html","width":130,"caption":"Billy's coffee stall at Rusty's market","height":199});
															thumbnails[5285297] = clik.newPhoto({"id":5285297,"src":"billy3_thumb.jpg","galleries_id":270953,"server_id":5,"link":"photo_5285297.html","width":130,"caption":"Billy's","height":99});
															thumbnails[5312539] = clik.newPhoto({"id":5312539,"src":"waterlily_thumb.jpg","galleries_id":174222,"server_id":5,"link":"photo_5312539.html","width":130,"caption":"Waterlily","height":87});
															thumbnails[5371500] = clik.newPhoto({"id":5371500,"src":"fisherman_smoke_morning_2_thumb.jpg","galleries_id":174225,"server_id":5,"link":"photo_5371500.html","width":130,"caption":"A lone fisherman in bushfire haze at Caloundra, Queensland","height":85});
															thumbnails[5625529] = clik.newPhoto({"id":5625529,"src":"koala2_thumb.jpg","galleries_id":174222,"server_id":5,"link":"photo_5625529.html","width":130,"caption":"Koala on Magnetic Island","height":196});
															thumbnails[5747309] = clik.newPhoto({"id":5747309,"src":"mists_silverridge1_thumb.jpg","galleries_id":184915,"server_id":5,"link":"photo_5747309.html","width":130,"caption":"Silver Ridge in morning mist","height":87});
															thumbnails[5747315] = clik.newPhoto({"id":5747315,"src":"mt_roland_mono2_thumb.jpg","galleries_id":184915,"server_id":5,"link":"photo_5747315.html","width":130,"caption":"Mt Roland with the prominent and classic line of Rysavy Ridge just right of the summit","height":191});
															thumbnails[5747329] = clik.newPhoto({"id":5747329,"src":"mt_roland_mono1_thumb.jpg","galleries_id":184915,"server_id":5,"link":"photo_5747329.html","width":130,"caption":"The slopes of Mt Roland in morning mist","height":195});
															thumbnails[6417695] = clik.newPhoto({"id":6417695,"src":"crater_thumb.jpg","galleries_id":184915,"server_id":5,"link":"photo_6417695.html","width":130,"caption":"Formica Leo","height":87});
															thumbnails[6424089] = clik.newPhoto({"id":6424089,"src":"volcano_gill_cormac_thumb.jpg","galleries_id":174223,"server_id":5,"link":"photo_6424089.html","width":130,"caption":"The moonscape of Enclos Fouque, Piton de la Fournaise","height":43});
															thumbnails[6424158] = clik.newPhoto({"id":6424158,"src":"chairs_cormac_thumb.jpg","galleries_id":181994,"server_id":5,"link":"photo_6424158.html","width":130,"caption":"big, big world","height":89});
															thumbnails[6424164] = clik.newPhoto({"id":6424164,"src":"nephila_spider_thumb.jpg","galleries_id":174222,"server_id":5,"link":"photo_6424164.html","width":130,"caption":"Nephila spider","height":87});
															thumbnails[6424174] = clik.newPhoto({"id":6424174,"src":"best_toy_in_world_thumb.jpg","galleries_id":181994,"server_id":5,"link":"photo_6424174.html","width":130,"caption":"boys, and their toys","height":195});
															thumbnails[6424210] = clik.newPhoto({"id":6424210,"src":"mother_baby_ad_thumb.jpg","galleries_id":174224,"server_id":5,"link":"photo_6424210.html","width":130,"caption":"Street, St Pierre","height":181});
															thumbnails[6424217] = clik.newPhoto({"id":6424217,"src":"moules_frites2_thumb.jpg","galleries_id":181994,"server_id":5,"link":"photo_6424217.html","width":130,"caption":"Street scene St Pierre","height":200});
															thumbnails[6424223] = clik.newPhoto({"id":6424223,"src":"cormac_moules_frites_thumb.jpg","galleries_id":181994,"server_id":5,"link":"photo_6424223.html","width":130,"caption":"Cormac exploring Reunion streets","height":194});
															thumbnails[6424224] = clik.newPhoto({"id":6424224,"src":"maddy1_thumb.jpg","galleries_id":181994,"server_id":5,"link":"photo_6424224.html","width":130,"caption":"Maddy","height":190});
															thumbnails[6424259] = clik.newPhoto({"id":6424259,"src":"bag_o_chickens_thumb.jpg","galleries_id":181994,"server_id":5,"link":"photo_6424259.html","width":130,"caption":"bag of chickens, anyone?","height":95});
															thumbnails[6760824] = clik.newPhoto({"id":6760824,"src":"bodhran_thumb.jpg","galleries_id":181994,"server_id":5,"link":"photo_6760824.html","width":130,"caption":"bodhran","height":195});
															thumbnails[6760830] = clik.newPhoto({"id":6760830,"src":"cormac_bodhran_thumb.jpg","galleries_id":181994,"server_id":5,"link":"photo_6760830.html","width":130,"caption":"cormac playing bodhran","height":182});
															thumbnails[6760833] = clik.newPhoto({"id":6760833,"src":"drowning_sorrows_thumb.jpg","galleries_id":181994,"server_id":5,"link":"photo_6760833.html","width":130,"caption":"drowning sorrows","height":181});
															thumbnails[6760842] = clik.newPhoto({"id":6760842,"src":"fiddler1_thumb.jpg","galleries_id":181994,"server_id":5,"link":"photo_6760842.html","width":130,"caption":"fiddler","height":195});
															thumbnails[6760849] = clik.newPhoto({"id":6760849,"src":"fiddler2_thumb.jpg","galleries_id":181994,"server_id":5,"link":"photo_6760849.html","width":130,"caption":"fiddler 2","height":192});
															thumbnails[6760856] = clik.newPhoto({"id":6760856,"src":"scroll1_thumb.jpg","galleries_id":181994,"server_id":5,"link":"photo_6760856.html","width":130,"caption":"listener","height":87});
															thumbnails[6846113] = clik.newPhoto({"id":6846113,"src":"kippax_mono_a_thumb.jpg","galleries_id":174223,"server_id":5,"link":"photo_6846113.html","width":130,"caption":"Climber's hands","height":91});
															thumbnails[6846117] = clik.newPhoto({"id":6846117,"src":"kippax_mono_2a_thumb.jpg","galleries_id":174223,"server_id":5,"link":"photo_6846117.html","width":128,"caption":"finishing holds","height":200});
															thumbnails[6968862] = clik.newPhoto({"id":6968862,"src":"lion_rock_ebb_tide1_thumb.jpg","galleries_id":174225,"server_id":5,"link":"photo_6968862.html","width":130,"caption":"","height":179});
															thumbnails[6968877] = clik.newPhoto({"id":6968877,"src":"lion_rock_dawn1_thumb.jpg","galleries_id":174225,"server_id":5,"link":"photo_6968877.html","width":130,"caption":"","height":87});
															thumbnails[6968884] = clik.newPhoto({"id":6968884,"src":"lion_rock_dawn2_thumb.jpg","galleries_id":174225,"server_id":5,"link":"photo_6968884.html","width":130,"caption":"","height":91});
															thumbnails[6968888] = clik.newPhoto({"id":6968888,"src":"lion_rock_dawn_4_thumb.jpg","galleries_id":174225,"server_id":5,"link":"photo_6968888.html","width":130,"caption":"","height":130});
															thumbnails[6968909] = clik.newPhoto({"id":6968909,"src":"lion_rock_spur_thumb.jpg","galleries_id":174225,"server_id":5,"link":"photo_6968909.html","width":130,"caption":"","height":193});
															thumbnails[6968913] = clik.newPhoto({"id":6968913,"src":"lion_rock_silhouette_keith_thumb.jpg","galleries_id":174223,"server_id":5,"link":"photo_6968913.html","width":130,"caption":"","height":90});
															thumbnails[7097576] = clik.newPhoto({"id":7097576,"src":"rock_mono_thumb.jpg","galleries_id":270953,"server_id":5,"link":"photo_7097576.html","width":130,"caption":"taroona","height":130});
															thumbnails[7631585] = clik.newPhoto({"id":7631585,"src":"the_bard_thumb.jpg","galleries_id":181994,"server_id":5,"link":"photo_7631585.html","width":130,"caption":"a trad musician at the New Sydney","height":174});
															thumbnails[7631589] = clik.newPhoto({"id":7631589,"src":"paddy_beer_thumb.jpg","galleries_id":181994,"server_id":5,"link":"photo_7631589.html","width":130,"caption":"Patrick Davey","height":94});
															thumbnails[8779771] = clik.newPhoto({"id":8779771,"src":"south_wellington_thumb.jpg","galleries_id":377730,"server_id":5,"link":"photo_8779771.html","width":130,"caption":"Hobart and the Derwent from South Wellington","height":87});
															thumbnails[8782801] = clik.newPhoto({"id":8782801,"src":"IMG_0632_thumb.jpg","galleries_id":377730,"server_id":5,"link":"photo_8782801.html","width":130,"caption":"Surfers at the Gold Coast","height":130});
															thumbnails[8782802] = clik.newPhoto({"id":8782802,"src":"IMG_0647_thumb.jpg","galleries_id":377730,"server_id":5,"link":"photo_8782802.html","width":130,"caption":"Tracks in the sand","height":130});
															thumbnails[8782803] = clik.newPhoto({"id":8782803,"src":"IMG_0633_thumb.jpg","galleries_id":377730,"server_id":5,"link":"photo_8782803.html","width":130,"caption":"Boy","height":130});
															thumbnails[8782804] = clik.newPhoto({"id":8782804,"src":"IMG_0637small_thumb.jpg","galleries_id":377730,"server_id":5,"link":"photo_8782804.html","width":130,"caption":"Boys on balance bikes","height":130});
															thumbnails[8782805] = clik.newPhoto({"id":8782805,"src":"IMG_0497_thumb.jpg","galleries_id":377730,"server_id":5,"link":"photo_8782805.html","width":130,"caption":"Budget","height":130});
															thumbnails[8782806] = clik.newPhoto({"id":8782806,"src":"cascade-silo_thumb.jpg","galleries_id":377730,"server_id":5,"link":"photo_8782806.html","width":130,"caption":"Cascade silos","height":130});
															thumbnails[8782807] = clik.newPhoto({"id":8782807,"src":"IMG_0499_thumb.jpg","galleries_id":377730,"server_id":5,"link":"photo_8782807.html","width":130,"caption":"Hurry","height":130});
															thumbnails[8782808] = clik.newPhoto({"id":8782808,"src":"IMG_0537_thumb.jpg","galleries_id":377730,"server_id":5,"link":"photo_8782808.html","width":130,"caption":"Bike fix?","height":130});
															thumbnails[8782809] = clik.newPhoto({"id":8782809,"src":"IMG_0557_thumb.jpg","galleries_id":377730,"server_id":5,"link":"photo_8782809.html","width":130,"caption":"Sick boy","height":130});
															thumbnails[8782810] = clik.newPhoto({"id":8782810,"src":"IMG_0595_thumb.jpg","galleries_id":377730,"server_id":5,"link":"photo_8782810.html","width":130,"caption":"mountain biking in Mt Wellington snow","height":130});
															thumbnails[8782811] = clik.newPhoto({"id":8782811,"src":"IMG_0597_thumb.jpg","galleries_id":377730,"server_id":5,"link":"photo_8782811.html","width":130,"caption":"and somehow happy about it!?","height":130});
															thumbnails[5431731] = clik.newPhoto({"id":5431731,"src":"dumbrovskis_plants_anne_bw_thumb.jpg","galleries_id":270953,"server_id":5,"link":"photo_5431731.html","width":130,"caption":"Pandani, Lot and his Wife, from Mt Anne","height":189});
															thumbnails[7569798] = clik.newPhoto({"id":7569798,"src":"hazards2_thumb.jpg","galleries_id":174225,"server_id":5,"link":"photo_7569798.html","width":130,"caption":"The Hazards from Coles Bay","height":91});
															thumbnails[7569858] = clik.newPhoto({"id":7569858,"src":"_MG_9785_thumb.jpg","galleries_id":174225,"server_id":5,"link":"photo_7569858.html","width":130,"caption":"Looking South from Coles Bay","height":111});
															thumbnails[7569839] = clik.newPhoto({"id":7569839,"src":"hazards1_squarecrop_mono_thumb.jpg","galleries_id":270953,"server_id":5,"link":"photo_7569839.html","width":130,"caption":"The Hazards from Coles Bay - mono","height":130});
															thumbnails[7614478] = clik.newPhoto({"id":7614478,"src":"haig_sama_small_thumb.jpg","galleries_id":181994,"server_id":5,"link":"photo_7614478.html","width":130,"caption":"Haig at SAMA hut","height":89});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[377730] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"nua - new","link":"gallery_377730.html","maxRecords":0.0,"photoIDs":[8779771.0,8782801.0,8782802.0,8782803.0,8782804.0,8782805.0,8782806.0,8782807.0,8782808.0,8782809.0,8782810.0,8782811.0],"skipIndex":0,"section_code":"gallery","featured_images":"8782811,8782810,8782809,8782808,8782807,8782806,8782805,8782804,8782803,8782802","id":377730,"singleSection":false});				  						galleries[270953] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"monacrómacha ","link":"gallery_270953.html","maxRecords":0.0,"photoIDs":[2744962.0,2744978.0,2744982.0,2829579.0,2841569.0,3053242.0,3116669.0,3264188.0,3410683.0,3410684.0,3410685.0,3545451.0,4116227.0,4116231.0,4827294.0,5285296.0,5285297.0,7097576.0,5431731.0,7569839.0],"skipIndex":0,"section_code":"gallery","featured_images":3053242.0,"id":270953,"singleSection":false});				  						galleries[184915] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"sliabh & gleann","link":"gallery_184915.html","maxRecords":0.0,"photoIDs":[2744209.0,2744973.0,2744984.0,2744986.0,2744988.0,2781387.0,3116671.0,4116234.0,4116260.0,4116285.0,5211947.0,5747309.0,5747315.0,5747329.0,6417695.0],"skipIndex":0,"section_code":"gallery","featured_images":"6417695,5747329,5747315,5747309,5211947,4116285,4116260,4116234,3116671,2781387","id":184915,"singleSection":false});				  						galleries[174225] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"cladach","link":"gallery_174225.html","maxRecords":0.0,"photoIDs":[2781378.0,2792127.0,2816056.0,2840570.0,3340421.0,3420641.0,3545448.0,3647900.0,3647902.0,4116210.0,5371500.0,6968862.0,6968877.0,6968884.0,6968888.0,6968909.0,7569798.0,7569858.0],"skipIndex":0,"section_code":"gallery","featured_images":"7569858,7569798,6968909,6968888,6968884,6968877,6968862,5371500,4116210,3647902","id":174225,"singleSection":false});				  						galleries[174223] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"fiontar","link":"gallery_174223.html","maxRecords":0.0,"photoIDs":[2781451.0,2781458.0,2781474.0,2876700.0,3002267.0,3141336.0,3647906.0,3647908.0,4116221.0,6424089.0,6846113.0,6846117.0,6968913.0],"skipIndex":0,"section_code":"gallery","featured_images":"6968913,6846117,6846113,6424089,4116221,3647908,3647906,3141336,3002267,2876700","id":174223,"singleSection":false});				  						galleries[181994] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"daoine","link":"gallery_181994.html","maxRecords":0.0,"photoIDs":[5168609.0,2947247.0,3340436.0,3410680.0,3413585.0,3413586.0,3413588.0,3413590.0,3475127.0,3722168.0,5017414.0,5071448.0,5211940.0,6424158.0,6424174.0,6424217.0,6424223.0,6424224.0,6424259.0,6760824.0,6760830.0,6760833.0,6760842.0,6760849.0,6760856.0,7631585.0,7631589.0,7614478.0],"skipIndex":0,"section_code":"gallery","featured_images":"7631589,7631585,7614478,6760856,6760849,6760842,6760833,6760830,6760824,6424259","id":181994,"singleSection":false});				  						galleries[174222] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"fiadhúlra","link":"gallery_174222.html","maxRecords":0.0,"photoIDs":[5176289.0,5168611.0,2781389.0,2781390.0,2787179.0,3447267.0,3517751.0,4116215.0,5017415.0,5034467.0,5255779.0,5312539.0,5625529.0,6424164.0],"skipIndex":0,"section_code":"gallery","featured_images":"6424164,5625529,5312539,5255779,5176289,5168611,5034467,5017415,4116215,3517751","id":174222,"singleSection":false});				  						galleries[174224] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"monaraithe","link":"gallery_174224.html","maxRecords":0.0,"photoIDs":[2816153.0,2829578.0,2829586.0,3410688.0,3517749.0,4116230.0,5092618.0,6424210.0],"skipIndex":0,"section_code":"gallery","featured_images":"6424210,5092618,4116230,3517749,3410688,2829586,2829578,2816153","id":174224,"singleSection":false});				  						galleries[175422] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"péinteáil","link":"gallery_175422.html","maxRecords":0.0,"photoIDs":[2805482.0,2805483.0],"skipIndex":0,"section_code":"gallery","featured_images":"2805483,2805482","id":175422,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8782809,8782808,8782806,8782803,8782802,8782801,8779771';
imageSets[2] = '3053242';
imageSets[3] = '5747329,5747315,5747309';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/dreapadoir/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/dreapadoir/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/dreapadoir/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/dreapadoir/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/dreapadoir/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/dreapadoir/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/dreapadoir/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/dreapadoir/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/dreapadoir/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/dreapadoir/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/dreapadoir/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/dreapadoir/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/dreapadoir/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/dreapadoir/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/dreapadoir/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/dreapadoir/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/dreapadoir/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/dreapadoir/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/dreapadoir/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/dreapadoir/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/dreapadoir/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/dreapadoir/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/dreapadoir/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/dreapadoir/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/dreapadoir/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = backgrounds && backgrounds[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$detailContainer:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
		op = $.extend({},defaults,options),
		html = '', temp = '',
		photoId = op.nextPhoto.id,
		photoCaption = ''+op.nextPhoto.caption,
		photoSrc = op.nextPhoto.src;
	
	if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'www.dreapadoir.com: ' + 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>';
	}
				
	temp += this.fnGetPaymentInfo();
				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>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> AU$' + (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="updateCartValue($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';
		
		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">';
			temp += '	<input type="hidden" name="item_option" value="' + item_option + '">';
			temp += '	<input type="hidden" name="site" value="DREAPADOIR">';
			temp += '	<input type="hidden" name="item_number" value="'+ this.id +'">';
			temp += '	<input type="hidden" name="quantity" value="1">';
						temp += '	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\'\;" onmouseout="this.className=\'button\'\;" type="Button">';
							temp += '	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';
			temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
			temp += '<div id="confirmContainer">';
			temp += '<div id="paymentConfirm">Item added to cart</div>';
			temp += '</div>';
			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;
	}
}

			

