function thumbnail(g,e,b,f,d,a,c){this.id=g;this.galleries_id=e;this.caption=b;this.src=getServerPath(c)+"/"+f;this.width=d;this.height=a}function gallery(e,c,d,b,a){this.id=e;this.featured_images=c;this.title=d;this.section_code=b;this.photoIDs=a}var thumbnails=new Object();thumbnails[6412068]=new thumbnail(6412068,"354247","Tattersalls/Ward Union Hunt Show 2010","_7255979-1_thumb.JPG",130,173,18);thumbnails[6412097]=new thumbnail(6412097,"354247","Tattersalls/Ward Union Hunt Show","_7255962_thumb.JPG",130,173,18);thumbnails[6412142]=new thumbnail(6412142,"354247","Tattersalls/Ward Union Hunt Show 2010","_7255867_copy_thumb.jpg",130,173,18);thumbnails[6412158]=new thumbnail(6412158,"354247","Tattersalls/Ward Union Horse Show 2010","_7255874_copy_thumb.jpg",130,174,18);thumbnails[6412185]=new thumbnail(6412185,"354247","Tattersalls/Ward Union Hunt Show 2010","_7255935-1_thumb.JPG",130,173,18);thumbnails[6421105]=new thumbnail(6421105,"354247","Tattersalls/Ward Union Horse Show","over-2_thumb.jpg",130,173,18);thumbnails[6421368]=new thumbnail(6421368,"354247","Tattersalls/Ward Union Horse Show","_7256079_copy-4_thumb.jpg",130,174,18);thumbnails[6421530]=new thumbnail(6421530,"354247","","_7255833_thumb.JPG",130,173,18);thumbnails[6421665]=new thumbnail(6421665,"354247","","_7256102_copy-1_thumb.jpg",130,173,18);thumbnails[6421701]=new thumbnail(6421701,"354247","Tattersalls/Ward Union Horse Show","_7255823-1_thumb.JPG",130,173,18);thumbnails[6421729]=new thumbnail(6421729,"354247","Tattersalls/Ward Union Horse Show","_7255828_thumb.JPG",130,173,18);thumbnails[6421755]=new thumbnail(6421755,"354247","Tattersalls/Ward Union Horse Show","_7255847_thumb.JPG",130,173,18);thumbnails[6421869]=new thumbnail(6421869,"354247","","_7255881_thumb.JPG",130,173,18);thumbnails[6421876]=new thumbnail(6421876,"354247","Tattersalls/Ward Union Horse Show","_7255882_thumb.JPG",130,174,18);thumbnails[6421899]=new thumbnail(6421899,"354247","Tattersalls/Ward Union Horse Trials","_7255885_thumb.JPG",130,173,18);thumbnails[6428304]=new thumbnail(6428304,"354247","Tattersalls/Ward Union Horse Show","_7255982_thumb.JPG",130,174,18);thumbnails[6421907]=new thumbnail(6421907,"354247","Tattersalls/Ward Union Horse Show","_7255889_thumb.JPG",130,98,18);thumbnails[6428314]=new thumbnail(6428314,"354247","Tattersalls/Ward Union Horse Show","_7255988_copy_thumb.jpg",130,174,18);thumbnails[6422241]=new thumbnail(6422241,"354247","No rest for some","_7255914_thumb.JPG",130,195,18);thumbnails[6428348]=new thumbnail(6428348,"354247","Tattersalls/Ward Union Horse Show","_7255785_copy-1_thumb.jpg",130,173,18);thumbnails[6428481]=new thumbnail(6428481,"354247","Tattersalls/Ward Union Horse Show","_7255945_copy_thumb.jpg",130,173,18);thumbnails[6428529]=new thumbnail(6428529,"354247","Tattersalls/Ward Union Horse Show","_7256084_thumb.JPG",130,173,18);thumbnails[6112409]=new thumbnail(6112409,"282253","Red Fox (Dog)","Red_Fox_thumb.jpg",130,98,18);thumbnails[6195944]=new thumbnail(6195944,"282253","Meadow Pipit","Meadow_Pipit_copy-1_thumb.jpg",130,173,18);thumbnails[6163168]=new thumbnail(6163168,"282253","Pied Wagtail","_6154803-1_thumb.JPG",130,98,18);thumbnails[6158614]=new thumbnail(6158614,"282253","Rook - Corvus frugilegus","PC060621_copy-1_thumb.jpg",130,104,18);thumbnails[6112400]=new thumbnail(6112400,"282253","Juvenile Kingfisher","Kingfisher_thumb.jpg",130,130,18);thumbnails[6025886]=new thumbnail(6025886,"282253","European Rabbit","European_Rabbit_thumb.jpg",130,130,18);thumbnails[6025885]=new thumbnail(6025885,"282253","Common Frog (Froglet)","Froglet_thumb.jpg",130,98,18);thumbnails[6158654]=new thumbnail(6158654,"282253","Turnstone - Arenaria interpres","Birds_thumb.jpg",130,104,18);thumbnails[6158659]=new thumbnail(6158659,"282253","Ruff - Philomachus pugnax ","P3070826_copy_thumb.jpg",130,104,18);thumbnails[6154303]=new thumbnail(6154303,"282253","Fulmar pair","Fulmar_thumb.jpg",130,104,18);thumbnails[5474686]=new thumbnail(5474686,"282253","Evening Stroll","P1081510-2_thumb.JPG",130,163,18);thumbnails[5474739]=new thumbnail(5474739,"282253","White","P1071494-1_thumb.JPG",130,104,18);thumbnails[5474850]=new thumbnail(5474850,"282253","Reflections  ","glow-1_thumb.jpg",130,173,18);thumbnails[5475044]=new thumbnail(5475044,"282253","Light Shines Through","P1081528_thumb.JPG",130,104,18);thumbnails[5475057]=new thumbnail(5475057,"282253","Winter","P1081517-1_thumb.JPG",130,87,18);thumbnails[6158630]=new thumbnail(6158630,"282253","Grey Plover - Pluvialis squatarola","Grey_Plover_thumb.jpg",130,104,18);thumbnails[6028087]=new thumbnail(6028087,"282253","Grey Wagtail","Grey_Wagtail_thumb.JPG",130,104,18);thumbnails[5026093]=new thumbnail(5026093,"282253","Greenfinch - Carduelis chloris","_9208382_thumb.JPG",130,104,18);thumbnails[6025912]=new thumbnail(6025912,"282253","Water Beetle","Water_Beetle_thumb.jpg",130,104,18);thumbnails[5026088]=new thumbnail(5026088,"282253","Meadown Pipit - Anthus pratensis","MP_thumb.jpg",130,104,18);thumbnails[6154165]=new thumbnail(6154165,"282253","Black-Tailed and Bar-Tailed Godwit in a territorial dispute.","Godwit_thumb.jpg",130,104,18);thumbnails[6028076]=new thumbnail(6028076,"282253","Common Blue Butterfly","Common_Blue_thumb.JPG",130,98,18);thumbnails[5125426]=new thumbnail(5125426,"282253","Western Lowland Gorilla","2701766026_b0edd64511_o_thumb.jpg",130,109,18);thumbnails[6154319]=new thumbnail(6154319,"282253","Grey Heron with Little Egret in the background","Grey_Egret_thumb.jpg",130,104,18);thumbnails[6154325]=new thumbnail(6154325,"282253","Grey Heron with eel","Lunch_thumb.jpg",130,104,18);thumbnails[4968642]=new thumbnail(4968642,"282253","Female Reed Bunting","RBF-1_thumb.jpg",130,130,18);thumbnails[6028102]=new thumbnail(6028102,"282253","Rock Pinks","Rock_Pink_thumb.jpg",130,163,18);thumbnails[5125223]=new thumbnail(5125223,"282253","Little Egret","3269779927_9133182ea8_o_thumb.jpg",130,104,18);thumbnails[5125230]=new thumbnail(5125230,"282253","Collard Dove","3226866962_7f84b2597c_o_thumb.jpg",130,130,18);thumbnails[5981280]=new thumbnail(5981280,"282253","Wren","wren_thumb.jpg",130,164,18);thumbnails[5125290]=new thumbnail(5125290,"282253","Fallow Deer Doe","2997015580_92ed0812fe_o_thumb.jpg",130,104,18);thumbnails[5125344]=new thumbnail(5125344,"282253","Fallow Deer Mating","3000996788_9ae37b0b8a_o_thumb.jpg",130,104,18);thumbnails[6025914]=new thumbnail(6025914,"282253","Solitary Wasp","Solitary_Wasp_thumb.jpg",130,108,18);thumbnails[6026056]=new thumbnail(6026056,"282253","Black Crowned Night Heron","Black_Crowned_Night_Heron_thumb.jpg",130,163,18);thumbnails[6026051]=new thumbnail(6026051,"282253","American Black Vulture","American_Black_Vulture_thumb.jpg",130,104,18);thumbnails[6025889]=new thumbnail(6025889,"282253","Common Green Grasshopper","Grasshopper_thumb.jpg",130,162,18);thumbnails[6025891]=new thumbnail(6025891,"282253","Pyramidal Orchid","Pyramidal_Orchid_thumb.jpg",130,173,18);thumbnails[5125271]=new thumbnail(5125271,"282253","Water Boatman ","Waterboatman2_thumb.jpg",130,163,18);thumbnails[5981644]=new thumbnail(5981644,"282253","Robin","Robin_thumb.jpg",130,163,18);thumbnails[5026285]=new thumbnail(5026285,"282253","Wren - Troglodytes troglodytes","1234-1_thumb.jpg",130,163,18);thumbnails[5026287]=new thumbnail(5026287,"282253","Blackbird - Turdus merula","P5244595-2_thumb.jpg",130,104,18);thumbnails[5026288]=new thumbnail(5026288,"282253","Swallow - Hirundo rustica","P5264711-1_thumb.jpg",130,163,18);thumbnails[5026289]=new thumbnail(5026289,"282253","Wheatear - Oenanthe oenanthe","PA253944-1_thumb.jpg",130,104,18);thumbnails[5026290]=new thumbnail(5026290,"282253","Whitethroat -Sylvia communis","whit-2_thumb.jpg",130,163,18);thumbnails[5735474]=new thumbnail(5735474,"324968",' "Once, we wore soft, warm wool; now only white feathers protect us from the cold."',"4042655773_b56a994357_o1_thumb.jpg",130,104,18);thumbnails[6066306]=new thumbnail(6066306,"339577","Suzanne Jordan CARNEYHAUGH CONQUISTADOR","fly_copy-2_thumb.jpg",130,173,18);thumbnails[6066556]=new thumbnail(6066556,"339577","Zara Philips High Kingdom","Zara-1_thumb.jpg",130,163,18);thumbnails[6073597]=new thumbnail(6073597,"339577","Jayne Doherty RAVENSTAR","_5304381-1_thumb.JPG",130,173,18);thumbnails[6073681]=new thumbnail(6073681,"339577","Mary King APACHE SAUCE","_5304216-2_thumb.JPG",130,174,18);thumbnails[6073793]=new thumbnail(6073793,"339577","Sharon Reilly TRIPLE POINT","_5304041-1_thumb.JPG",130,174,18);thumbnails[6074029]=new thumbnail(6074029,"339577","Andrew Nicholson ARMADA","_5304312_thumb.JPG",130,173,18);thumbnails[6079637]=new thumbnail(6079637,"339577","Isabelle Crosse TURFMASTER ","isabelle-1_thumb.jpg",130,173,18);thumbnails[6141551]=new thumbnail(6141551,"339577","Fred Scala The Hedonist","_5304061_thumb.JPG",130,174,18);thumbnails[6053372]=new thumbnail(6053372,"339577","Sally Corscadden - MILLRIDGE HERO","_5293764_thumb.JPG",130,98,18);thumbnails[6053377]=new thumbnail(6053377,"339577","Petra Tuvesson - MR BEAU JANGLES","_5293761-2_thumb.JPG",130,98,18);thumbnails[6053411]=new thumbnail(6053411,"339577","Neil Wrynn - LEAMCHOILL DRIFTER","_5293809-2_thumb.JPG",130,98,18);thumbnails[6053515]=new thumbnail(6053515,"339577","Alexander Mills IMAGINE IF","_5293771_thumb.JPG",130,98,18);thumbnails[6053536]=new thumbnail(6053536,"339577","Louise Duffy ASSESSED","_5293773_thumb.JPG",130,174,18);thumbnails[6053614]=new thumbnail(6053614,"339577","Matthew Wright WELTON RODRIGO","_5293812_thumb.JPG",130,174,18);thumbnails[6073189]=new thumbnail(6073189,"339577","Matthew Wright IF YOU WANT","Matthew_Wright-1_thumb.jpg",130,130,18);thumbnails[6046805]=new thumbnail(6046805,"339577","Sara Steen - Jacobs Creek (IRL) ","_5283420-2_thumb.JPG",130,98,18);thumbnails[6046853]=new thumbnail(6046853,"339577","Clare Abbott - The Dali Lama (IRL)","Clare_Abbott_thumb.jpg",130,98,18);thumbnails[6047267]=new thumbnail(6047267,"339577","Andrew Nicholson - VISCOUNT GEORGE","Andrew_Nicholson_E0F8D09A-24E8-5EC4-4F4C98E22466A6D0_thumb.jpg",130,98,18);thumbnails[6047273]=new thumbnail(6047273,"339577","Felicity Ward - THE ILLUSIONIST","_5283476-1_thumb.JPG",130,98,18);thumbnails[6039576]=new thumbnail(6039576,"339577","Andrew Nicholson - QWANZA","_5273262_thumb.JPG",130,173,18);thumbnails[5823280]=new thumbnail(5823280,"324968",'Fionnuala reached out her head towards her stepmother pleading, "Ease our plight a little. Say at least that we shall not be swans forever."',"white_swans_thumb.jpg",130,163,18);thumbnails[5857558]=new thumbnail(5857558,"324968","As to Bodb Dearg and the Tuatha de Danaan they came to the shore of Loch Dairbhreach, and they made their camp there to be listening to the music of the swans. ","sleeping_thumb.jpg",130,162,18);thumbnails[5735416]=new thumbnail(5735416,"324968",'"Is there any way to put you into your own shapes again?" said Lir. "There is no way," said Fionnuala, "for all the men of the world could not help us till we have gone through our time, and that will not be," Fionnuala said, "till the end of nine hundred years."  ',"P3040767-1_thumb.JPG",130,130,18);thumbnails[5735417]=new thumbnail(5735417,"324968",'"And go away out of my sight now, children of Lir," Aoife said, "with your white faces, with your stammering Irish"',"Neck-2_thumb.jpg",130,104,18);thumbnails[5735419]=new thumbnail(5735419,"324968",'"Swans or humans; our shape doesn\'t matter. We are the children of Lir. We\'ll make him proud," Aed said, swimming close to Fionnuala. "We\'ll make you proud too."',"Golden_swan-3_thumb.jpg",130,130,18);thumbnails[5735407]=new thumbnail(5735407,"324968",'"Don\'t be sad, Father," Aed called.<br>\r\n"We still have our human minds and speak with our human voice," Fiacra said.<br>\r\n"And our songs will ease the sadness in your heart," Conn said.<br>\r\n',"P3141075-1_thumb.JPG",130,153,18);thumbnails[5857537]=new thumbnail(5857537,"324968","For 300 years they remained on Lough Derravaragh","bw_swan_thumb.jpg",130,130,18);thumbnails[5125158]=new thumbnail(5125158,"324968",'"It is without a spot our bedclothes are, our bodies covered over with curved feathers; but it is often we were dressed in purple, and we drinking pleasant mead."',"4053911358_3c55e59aaa_o_thumb.jpg",130,163,18);thumbnails[5769547]=new thumbnail(5769547,"324968",'It was not long after that, they saw Aodh coming, his head dry and his feathers beautiful, and Fionnuala gave him a great welcome, and she put him in under the feathers of her breast, and Fiachra under her right wing and Conn under her left wing, the way she could put her feathers over them all. "And Och! my brothers," she said, "this was a bad night to us, and it is many of its like are before us from this out." ',"Look_to_the_light_thumb.jpg",130,163,18);thumbnails[6198029]=new thumbnail(6198029,"324968","","Wing_raised_thumb.jpg",130,104,18);thumbnails[5735423]=new thumbnail(5735423,"324968",'When she reached the shore of the lake, Aoife drew forth her druidical wand and began chanting. "Children of Lir, good fortune has always followed you but now your good fortune is at an end. Family of Lir and Bov no more, henceforth your only family shall be the waterfowl. Your cries will mingle with the birds of the lake. Be seen no more. As Aoife chanted the children began to transform.',"PC060550-4_thumb.jpg",130,103,18);thumbnails[5125180]=new thumbnail(5125180,"324968",'"The three I loved, Och! the three I loved, that slept under the shelter of my feathers; till the dead come back to the living I will see them no more for ever."',"3399697970_a64e9c5204_o_thumb.jpg",130,104,18);thumbnails[5857579]=new thumbnail(5857579,"324968",'"The time is come for us to leave this place. And it is to Irrus Domnann we must go now," she said, "after our three hundred years here. And indeed there will be no rest for us there, or any standing ground, or any shelter from the storms. But since it is time for us to go, let us set out on the cold wind, the way we will not go astray." ',"swan_painting_thumb.jpg",130,174,18);thumbnails[6348810]=new thumbnail(6348810,"324968","Gently Curved","Neck-1_thumb.jpg",130,104,18);thumbnails[6348815]=new thumbnail(6348815,"324968","Elegance","_6275161-8_thumb.JPG",130,174,18);thumbnails[6039567]=new thumbnail(6039567,"339577","Petra Tuvesson - MR BEAU JANGLES","_5273245-1_thumb.JPG",130,173,18);thumbnails[6039670]=new thumbnail(6039670,"339577","Sara Burdess - Bright Side","_5273294_thumb.JPG",130,173,18);thumbnails[6039685]=new thumbnail(6039685,"339577","Steven Smith - WHOA NELLY","_5273301_thumb.JPG",130,173,18);thumbnails[6039784]=new thumbnail(6039784,"339577","Jodie Ronan - DARGLE LOOKS","_5273319_thumb.JPG",130,173,18);thumbnails[6039913]=new thumbnail(6039913,"339577","Shane Power - TLB INTERACTIVE","_5273358_thumb.JPG",130,98,18);thumbnails[6040464]=new thumbnail(6040464,"339577","Kate Harrington - TRUE LOVE","_5273325_thumb.JPG",130,173,18);thumbnails[5665013]=new thumbnail(5665013,"320796","37","37_thumb.jpg",130,162,18);thumbnails[5665034]=new thumbnail(5665034,"320796","46","46_thumb.jpg",130,163,18);thumbnails[5665056]=new thumbnail(5665056,"320796","50","50_thumb.jpg",130,163,18);thumbnails[5665227]=new thumbnail(5665227,"320796","81","81-3_thumb.jpg",130,104,18);thumbnails[5665826]=new thumbnail(5665826,"320796","30 Pairs","P3171454_thumb.JPG",130,163,18);thumbnails[5665953]=new thumbnail(5665953,"320796","30 Pairs","P3171456_thumb.JPG",130,163,18);thumbnails[5665958]=new thumbnail(5665958,"320796","29 Pairs","P3171452_thumb.JPG",130,163,18);thumbnails[5665962]=new thumbnail(5665962,"320796","31 Pairs","P3171461_thumb.JPG",130,163,18);thumbnails[5665968]=new thumbnail(5665968,"320796","32 Pairs","P3171464_thumb.JPG",130,104,18);thumbnails[5665973]=new thumbnail(5665973,"320796","34 Pairs","P3171466_thumb.JPG",130,163,18);thumbnails[5665975]=new thumbnail(5665975,"320796","35 Pairs","P3171469_thumb.JPG",130,104,18);thumbnails[5665977]=new thumbnail(5665977,"320796","35 Pairs","P3171471_thumb.JPG",130,163,18);thumbnails[5667021]=new thumbnail(5667021,"320796","136","136_copy-1_thumb.jpg",130,163,18);thumbnails[5010600]=new thumbnail(5010600,"320796","Warming up","_A189003_copy-1_thumb.jpg",130,186,18);thumbnails[5010606]=new thumbnail(5010606,"320796","Riding out","_A189075_thumb.JPG",130,94,18);thumbnails[5010611]=new thumbnail(5010611,"320796","The Wall","_A189133_copy-2_thumb.jpg",130,163,18);thumbnails[5010619]=new thumbnail(5010619,"320796","","_A189113_thumb.JPG",130,104,18);thumbnails[5662663]=new thumbnail(5662663,"320796","8 Louth Hunter Trials","8_thumb.jpg",130,195,18);thumbnails[5664933]=new thumbnail(5664933,"320796","15","15_thumb.jpg",130,163,18);thumbnails[5662674]=new thumbnail(5662674,"320796","17","17_thumb.jpg",130,163,18);thumbnails[5664936]=new thumbnail(5664936,"320796","18","18_thumb.jpg",130,104,18);thumbnails[5662679]=new thumbnail(5662679,"320796","22","22_thumb.jpg",130,162,18);thumbnails[5664949]=new thumbnail(5664949,"320796","25","25_thumb.jpg",130,163,18);thumbnails[5664963]=new thumbnail(5664963,"320796","28","28_thumb.jpg",130,104,18);thumbnails[5664980]=new thumbnail(5664980,"320796","30","30_thumb.jpg",130,104,18);thumbnails[5665178]=new thumbnail(5665178,"320796","27","27_thumb.jpg",130,163,18);thumbnails[5032510]=new thumbnail(5032510,"320796"," Johnstown Hunt Run","_A189017_thumb.jpg",130,163,18);thumbnails[5032511]=new thumbnail(5032511,"320796"," Johnstown Hunt Run","_A189023-1_thumb.jpg",130,161,18);thumbnails[5032512]=new thumbnail(5032512,"320796"," Johnstown Hunt Run","_A189088_thumb.jpg",130,104,18);thumbnails[5032513]=new thumbnail(5032513,"320796"," Johnstown Hunt Run","_A189090_copy-1_thumb.jpg",130,163,18);thumbnails[5032514]=new thumbnail(5032514,"320796"," Johnstown Hunt Run","_A189143-1_thumb.jpg",130,163,18);thumbnails[5216562]=new thumbnail(5216562,"282252","Cirque Du Cheval","coss2_copy_thumb.jpg",130,163,18);thumbnails[5216588]=new thumbnail(5216588,"282252","Cirque Du Cheval","Bow_thumb.jpg",130,163,18);thumbnails[5216593]=new thumbnail(5216593,"282252","Cirque Du Cheval","PC040280-1_thumb.JPG",130,130,18);thumbnails[5270445]=new thumbnail(5270445,"282252","William Fox Pitt","Fox_Pitt_thumb.jpg",130,195,18);thumbnails[5795537]=new thumbnail(5795537,"282252","Camilla Speirs (IRL)","camilla_spiers_thumb.jpg",130,163,18);thumbnails[5795540]=new thumbnail(5795540,"282252","Patricia Ryan (IRL)","Ryan_thumb.jpg",130,173,18);thumbnails[5795541]=new thumbnail(5795541,"282252","Who needs a horse!","gerry_thumb.jpg",130,163,18);thumbnails[5795546]=new thumbnail(5795546,"282252","Brooke Staples - Australia","brooke_thumb.jpg",130,130,18);thumbnails[5801159]=new thumbnail(5801159,"282252","Legs","Legs_thumb.jpg",130,104,18);thumbnails[5801165]=new thumbnail(5801165,"282252","Leslie-Ann Lyons (IRL)","leslie_thumb.jpg",130,162,18);thumbnails[4970139]=new thumbnail(4970139,"282252","Dave Collins - Bluebell Dancer","P5305012_edited-2_thumb.jpg",130,162,18);thumbnails[4970155]=new thumbnail(4970155,"282252","Clayton Fredericks - Brookleigh","P5304947-1_thumb.JPG",130,195,18);thumbnails[5270448]=new thumbnail(5270448,"282252","Mary King","Mary_King_thumb.jpg",130,195,18);thumbnails[5801172]=new thumbnail(5801172,"282252","Bronwyn Lait (IRL)","Bronywn_Lait_thumb.jpg",130,180,18);thumbnails[5801147]=new thumbnail(5801147,"282252","Julian Stiller (USA) ","Julian_Stiller_thumb.jpg",130,104,18);thumbnails[5801151]=new thumbnail(5801151,"282252","The Great Ian Olding (IRL) ","Ian_Olding_thumb.jpg",130,104,18);thumbnails[5801154]=new thumbnail(5801154,"282252","Andrew Nicholson (NZ) ","Andrew_Nicholson_thumb.jpg",130,104,18);thumbnails[4971472]=new thumbnail(4971472,"282252","Elaine Turley - Christy Moore","Against_the_clock_thumb.jpg",130,163,18);thumbnails[5026655]=new thumbnail(5026655,"282252","Boot 'n Stirrup","P5315129-3_thumb.JPG",130,130,18);thumbnails[5026801]=new thumbnail(5026801,"282252","Tattersalls Horse Show 09","_7256561_thumb.jpg",130,181,18);thumbnails[5026802]=new thumbnail(5026802,"282252","Tattersalls Horse Show 09","_7256563-1_thumb.jpg",130,162,18);thumbnails[5026803]=new thumbnail(5026803,"282252","Tattersalls Horse Show 09","_7256570-1_thumb.jpg",130,162,18);thumbnails[5026804]=new thumbnail(5026804,"282252","Tattersalls Horse Show 09","_7256599_thumb.jpg",130,180,18);thumbnails[5175570]=new thumbnail(5175570,"292231","Ratoath U17 V Moate","PB289964-1_thumb.JPG",130,163,18);thumbnails[5175579]=new thumbnail(5175579,"292231","Ratoath U17 V Moate","PB280062_thumb.JPG",130,173,18);thumbnails[5175588]=new thumbnail(5175588,"292231","Ratoath U17 V Moate","PB280077_thumb.JPG",130,104,18);thumbnails[5175602]=new thumbnail(5175602,"292231","Ratoath U17 V Moate","PB280050_thumb.JPG",130,98,18);thumbnails[5175611]=new thumbnail(5175611,"292231","Ratoath RFC V Moate","PB280024_thumb.JPG",130,163,18);thumbnails[5175643]=new thumbnail(5175643,"292231","Ratoath U17 V Moate","PB280012_thumb.JPG",130,104,18);thumbnails[5175653]=new thumbnail(5175653,"292231","Ratoath U17 V Moate","PB280015_thumb.JPG",130,98,18);thumbnails[4968619]=new thumbnail(4968619,"284094","Old Grey","P6236013_copy-4_thumb.jpg",130,163,18);thumbnails[5026800]=new thumbnail(5026800,"284094","Easy Livin","P6236018-3_thumb.jpg",130,104,18);thumbnails[5998484]=new thumbnail(5998484,"337953","Side Splash","splish_copy-1_thumb.jpg",130,173,18);thumbnails[6163153]=new thumbnail(6163153,"283801","Common Frog Tadpole","_6040064-1_thumb.JPG",130,98,18);thumbnails[5998499]=new thumbnail(5998499,"283801","Celtic Spiral","P5039987-2_thumb.JPG",130,104,18);thumbnails[5998614]=new thumbnail(5998614,"283801","Three Spirals","_5032732-4_thumb.JPG",130,162,18);thumbnails[6025898]=new thumbnail(6025898,"283801","Hedge Bindweed","Hedge_Bindweed_thumb.jpg",130,163,18);thumbnails[5005688]=new thumbnail(5005688,"283801","Ladybird - Coccinellidae","_8026911-2_thumb.JPG",130,104,18);thumbnails[6158604]=new thumbnail(6158604,"283801","Garden Spider - Araneus diadematus","_8227805_thumb.JPG",130,130,18);thumbnails[5026239]=new thumbnail(5026239,"283801","Wild Garlic","P5033930-1_thumb.jpg",130,104,18);thumbnails[5026240]=new thumbnail(5026240,"283801","Clematis","P5174459-1_thumb.jpg",130,98,18);thumbnails[5026241]=new thumbnail(5026241,"283801","Long Walk","P8026880-1_thumb.jpg",130,104,18);thumbnails[5026242]=new thumbnail(5026242,"283801","Raindrops","_7246525_copy-1_thumb.jpg",130,162,18);thumbnails[5027290]=new thumbnail(5027290,"283801","Peacock Butterfly","butt-1_thumb.jpg",130,130,18);thumbnails[5026243]=new thumbnail(5026243,"283801"," Golden Ear","_8026763_thumb.jpg",130,163,18);thumbnails[5027291]=new thumbnail(5027291,"283801","Dandelion","dand-1_thumb.jpg",130,162,18);thumbnails[5027292]=new thumbnail(5027292,"283801","DNA","dna-1_thumb.jpg",130,162,18);thumbnails[5027293]=new thumbnail(5027293,"283801","Fingers","fingers-1_thumb.jpg",130,130,18);thumbnails[5027294]=new thumbnail(5027294,"283801","Suspended","Suspended-1_thumb.jpg",130,166,18);var galleries=new Object();galleries[354247]=new gallery(354247,"6428529,6428481,6428348,6428314,6428304,6422241,6421907,6421899,6421876,6421869","Tattersalls/Ward Union Hunt Show 2010","gallery",[6412068,6412097,6412142,6412158,6412185,6421105,6421368,6421530,6421665,6421701,6421729,6421755,6421869,6421876,6421899,6428304,6421907,6428314,6422241,6428348,6428481,6428529]);galleries[282253]=new gallery(282253,"6195944,6028087,5475057,4968642","Wildlife Photography","gallery",[6112409,6195944,6163168,6158614,6112400,6025886,6025885,6158654,6158659,6154303,5474686,5474739,5474850,5475044,5475057,6158630,6028087,5026093,6025912,5026088,6154165,6028076,5125426,6154319,6154325,4968642,6028102,5125223,5125230,5981280,5125290,5125344,6025914,6026056,6026051,6025889,6025891,5125271,5981644,5026285,5026287,5026288,5026289,5026290]);galleries[324968]=new gallery(324968,"6348815,6348810,5735416","Swan Diaries","gallery",[5735474,5823280,5857558,5735416,5735417,5735419,5735407,5857537,5125158,5769547,6198029,5735423,5125180,5857579,6348810,6348815]);galleries[339577]=new gallery(339577,"6040464,6039784","Tattersalls International Horse Trials 2010","gallery",[6066306,6066556,6073597,6073681,6073793,6074029,6079637,6141551,6053372,6053377,6053411,6053515,6053536,6053614,6073189,6046805,6046853,6047267,6047273,6039576,6039567,6039670,6039685,6039784,6039913,6040464]);galleries[320796]=new gallery(320796,"5667021,5665227,5662663","Hunt and Hunter Trials Photography","gallery",[5665013,5665034,5665056,5665227,5665826,5665953,5665958,5665962,5665968,5665973,5665975,5665977,5667021,5010600,5010606,5010611,5010619,5662663,5664933,5662674,5664936,5662679,5664949,5664963,5664980,5665178,5032510,5032511,5032512,5032513,5032514]);galleries[282252]=new gallery(282252,"5216562,5026655","Equestrian Photography","gallery",[5216562,5216588,5216593,5270445,5795537,5795540,5795541,5795546,5801159,5801165,4970139,4970155,5270448,5801172,5801147,5801151,5801154,4971472,5026655,5026801,5026802,5026803,5026804]);galleries[292231]=new gallery(292231,"5175653,5175643,5175611,5175602,5175588,5175579,5175570","Ratoath RFC","gallery",[5175570,5175579,5175588,5175602,5175611,5175643,5175653]);galleries[284094]=new gallery(284094,"5026800,4968619","General Equestrian","gallery",[4968619,5026800]);galleries[337953]=new gallery(337953,"5998484","Abstract","gallery",[5998484]);galleries[283801]=new gallery(283801,"6163153,6158604,6025898,5998614,5998499,5027294,5027293,5027292,5027291,5027290","Nature In Macro Photography","gallery",[6163153,5998499,5998614,6025898,5005688,6158604,5026239,5026240,5026241,5026242,5027290,5026243,5027291,5027292,5027293,5027294]);var imageSets=new Object();imageSets[1]="6198029,5026655";imageSets[2]="6348815,6348810,6195944,6040464,6039784,6028087,5735416,5667021,5665227,5662663,5475057,5216562,5026655,4968642";imageSets[3]="6428529,6428481,6428348,6428314,6428304,6422241,6421907,6421899,6421876,6421869,6421755,6421729,6421701,6421665,6421530,6421368,6421105,6412185,6412158,6412142,6412097,6412068,6198029,6163168,6163153,6158659,6158654,6158630,6158614,6158604,6154325,6154319,6154303,6154165,6141551,6112409,6112400,6079637,6074029,6073793,6073681,6073597,6073189,6066556,6066306,6053614,6053536,6053515,6053411,6053377,6053372,6047273,6047267,6046853,6046805,6039913,6039685,6039670,6039576,6039567,6028102,6028076,6026056,6026051,6025914,6025912,6025898,6025891,6025889,6025886,6025885,5998614,5998499,5998484,5981644,5981280,5857579,5857558,5857537,5823280,5801172,5801165,5801159,5801154,5801151,5801147,5795546,5795541,5795540,5795537,5769547,5735474,5735423,5735419,5735417,5735407,5665977,5665975,5665973,5665968,5665962,5665958,5665953,5665826,5665178,5665056,5665034,5665013,5664980,5664963,5664949,5664936,5664933,5662679,5662674,5475044,5474850,5474686,5270448,5270445,5216593,5216588,5175653,5175643,5175611,5175602,5175588,5175579,5175570,5125426,5125344,5125290,5125271,5125230,5125223,5125180,5125158,5032514,5032513,5032512,5032511,5032510,5027294,5027293,5027292,5027291,5026804,5026802,5026801,5026800,5026290,5026289,5026288,5026287,5026285,5026243,5026242,5026241,5026240,5026239,5010619,5010611,5010606,5010600,4970139,4968619";function randomListVal(a){arrayVals=a.split(",");if(arrayVals.length){pos=Math.round(Math.random()*(arrayVals.length-1));val=arrayVals[pos]}else{val=0}return val}function getServerPath(a){var b=-1;switch(a){case 21:b="http://www6.clikpic.com/Barnowl62/images";break}switch(a){case 1:b="http://www1.clikpic.com/Barnowl62/images";break}switch(a){case 2:b="http://admin.clikpic.com/Barnowl62/images";break}switch(a){case 24:b="http://tpc15/clikpic/Barnowl62/images";break}switch(a){case 4:b="http://www.clikchurch.com/Barnowl62/images";break}switch(a){case 5:b="http://www2.clikpic.com/Barnowl62/images";break}switch(a){case 22:b="http://tpc5/clikpic/Barnowl62/images";break}switch(a){case 23:b="http://tpc10/clikpic/Barnowl62/images";break}switch(a){case 25:b="http://tpc16/clikpic/Barnowl62/images";break}switch(a){case 15:b="http://www3.clikpic.com/Barnowl62/images";break}switch(a){case 18:b="http://www4.clikpic.com/Barnowl62/images";break}switch(a){case 19:b="http://www5.clikpic.com/Barnowl62/images";break}switch(a){case 31:b="http://www7.clikpic.com/Barnowl62/images";break}switch(a){case 32:b="http://admin2.clikpic.com/Barnowl62/images";break}switch(a){case 33:b="http://www8.clikpic.com/Barnowl62/images";break}switch(a){case 34:b="http://www9.clikpic.com/Barnowl62/images";break}switch(a){case 35:b="http://admin3.clikpic.com/Barnowl62/images";break}switch(a){case 37:b="http://admin4.clikpic.com/Barnowl62/images";break}return b}function showHomeImage(a){imageID=randomListVal("");if(!basic){a.src=photos[imageID].src;a.width=photos[imageID].width;a.height=photos[imageID].height}else{newImage=new Image(photos[imageID].width,photos[imageID].height);newImage.src=photos[imageID].src;document.images[a.name]=newImage}}function showHomeImageInline(){html="";imageID=randomListVal(imageSets[1]);if("gallery"!=""){if(backgrounds[imageID].galleries_id!=""){html+='<a href="'+backgrounds[imageID].section_code+"_"+backgrounds[imageID].galleries_id+'.html">'}else{html+='<a href="gallery.html">'}}html+='<img src="'+backgrounds[imageID].src+'" width="'+backgrounds[imageID].width+'" height="'+backgrounds[imageID].height+'" class="mainhomepageimage photo" id="mainSample" name="mainSample" alt="'+escape(backgrounds[imageID].caption)+'" border="0">';if("gallery"!=""){html+="</a>"}$("#homepageimage").html(html)}function getNextId(b,d,a){var c=getArrayPos(d,b);if(a){if(c==0){nextImgPos=d.length-1}else{nextImgPos=c-1}}else{if(c==d.length-1){nextImgPos=0}else{nextImgPos=c+1}}nextImg=d[nextImgPos];return nextImg}function next(d,b){var c=d.value;var a=galleries[photos[c].galleries_id].photoIDs;nextImg=getNextId(c,a);if(nextImg!=-1){updateImage(nextImg,d,b)}}function updateImage(f,e,b){if(!basic){document.getElementById("imagePhoto").innerHTML='<img class="mainphoto photo" src="'+photos[f].src+' " id="mainPic" name="mainPic" width="'+photos[f].width+'" height="'+photos[f].height+'" alt="'+photos[f].caption+'">';e.value=photos[f].id;$("#imageTitle").html(photos[f].caption);document.title="Ray Kellett Photography: "+photos[f].caption;if(photos[f].caption==""){document.getElementById("imageTitle").style.display="none"}else{document.getElementById("imageTitle").style.display="block"}var a=fnGetImageDetails(f);if(a==""){document.getElementById("imageDetails").style.display="none";var c=document.getElementById("infoWrap");var d=document.getElementById("photoInfo");if(photos[f].caption==""){if(c!=null){c.className="empty"}if(d!=null){d.className="empty"}}else{if(c!=null){c.className="noinfo"}if(d!=null){d.className="noinfo"}}}else{document.getElementById("imageDetails").style.display="block";var c=document.getElementById("infoWrap");if(c!=null){c.className="normal"}var d=document.getElementById("photoInfo");if(d!=null){d.className="normal"}}document.getElementById("imageDetails").innerHTML=a;toggleAddToCartConfirm()}else{window.location="photo_"+photos[f].id+".html"}}function toggleAddToCartConfirm(){if($("#paymentConfirm").size()){$("#paymentConfirm").hide();$("#paymentAddButton").unbind().click(function(){form=document.getElementById("paymentForm");option_id=0;if(form.item_option.value){option_id=form.item_option.value}if(addItemToBasket(form.item_number.value,photos,form.site.value,parseInt(form.quantity.value,10),option_id)){if($.browser.msie){$("#paymentConfirm").text("Item added to cart").show()}else{$("#paymentConfirm").text("Item added to cart").fadeIn()}}else{$("#paymentConfirm").text("Item not added - check cookies are enabled in your browser.").fadeIn()}})}}function fnGetImageDetails(b){var a="";if(photos[b].description!=""){a=a+'<p id="imageDescription">'+photos[b].description+"</p>"}if(photos[b].photo_ref!=""){a=a+'<p class="imageinfo" id="imageRef"><strong>Ref: </strong>'+photos[b].photo_ref+"</p>"}if(photos[b].takendate!=""){a=a+'<p class="imageinfo" id="imageDate"><strong>Date: </strong>'+photos[b].takendate+"</p>"}if(photos[b].location!=""){a=a+'<p class="imageinfo" id="imageLocation"><strong>Location: </strong>'+photos[b].location+"</p>"}if(photos[b].photographer!=""){a=a+'<p class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>'+photos[b].photographer+"</p>"}if(a!=""){a=a+'<div class="spacer"></div>'}return a}function fnGetPaymentInfo(c){var b="";if(c.item_price!==""){b=b+"<p>Order this print:</p>";b=b+'<p class="imageinfo" id="imagePrice"><strong>'+c.purchase_instruction+"</strong> 							"+(c.item_price).toFixed(2)+"</p>";var e=c.purchase_instruction;var d=(c.item_price).toFixed(2);var a=0}else{if(c.payment_groups_id!==""){b=b+"<p>Buy this print online:</p>";b=b+'<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';b=b+'<select class="paymentlink" name="payment_options_id" onchange="updateItemValues(document.forms.paymentForm,this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';b=b+getPaymentOptions(c.payment_groups_id);b=b+"</select>";b=b+"</form>";var a=paymentGroups[c.payment_groups_id].options[0];if(paymentOptions[a]){var e=paymentOptions[a].payment_option;var d=paymentOptions[a].price}}else{}}if(c.item_price!==""||c.payment_groups_id!==""){b=b+'<div class="clearing">&nbsp;</div>'}return b}function previous(d,b){var c=d.value;var a=galleries[photos[c].galleries_id].photoIDs;nextImg=getNextId(c,a,1);if(nextImg!=-1){updateImage(nextImg,d,b)}}function showGalleryImage(c,b){imageID=randomListVal(galleries[c].featured_images);if(imageID!=0){b.src=thumbnails[imageID].src;b.width=thumbnails[imageID].width;b.height=thumbnails[imageID].height;if(b.width<130){var f=$("img#gallery"+c);f.parents(".thumbWrap").width(b.width);var a=f.siblings("h3").size()==1?f.siblings("h3"):f.parent(".thumbWrap").siblings("h3");var g=parseInt(a.css("padding-left"))+parseInt(a.css("padding-right"));var d=parseInt(a.css("border-left-width"))+parseInt(a.css("border-right-width"));var e=parseInt(f.parents(".thumbWrap").css("border-left-width"))+parseInt(f.parents(".thumbWrap").css("border-right-width"));a.width(f.outerWidth(true)-g-d+e)}}}function showGalleries(a){if(!basic){temp="";for(i=0;i<galleries.length;i++){if(galleries[i].id!=a){if(temp!=""){temp=temp+" | "}temp=temp+'<a href="gallery_'+galleries[i].id+'.html">'+galleries[i].title+"</a>"}}document.all.galleryLinks.innerHTML="Other galleries: "+temp}}function resizePhotoInfo(n){var b=$.extend({centre:false},n||{});var d=3;$("div#photoPanelOuter").height("auto");$("div#infoWrap").width(200);$("div#photoDetail").css("width","auto");var h=$("div#maincolContent").width();var j=$("div#photoWrap").outerWidth(true);var m=$("div#infoWrap").outerWidth(true);var k=$("div#photoWrap").outerHeight();var f=$("div#infoWrap").outerHeight();var c=$("div#infoWrap").hasClass("empty");floatDrop=0;var g=j;if(!c){if(h<(j+m)){floatDrop=1}if(!floatDrop){var a=$("div#infoWrap").innerWidth();$("div#infoWrap").width(a+(h-j-m-d));m=$("div#infoWrap").outerWidth(true);g=j+m;if(k>f){var e=$("div#photoPanelOuter").height();$("div#photoPanelOuter").height(e+(k-f));var f=$("div#infoWrap").outerHeight()}}else{var l=$("div#photoWrap").outerWidth();$("div#infoWrap").width(l)}}if(b.centre){$("div#photoDetail").width(g);$("div#photoDetail").css("margin-left","auto");$("div#photoDetail").css("margin-right","auto")}else{$("div#photoDetail").css("margin-left","0");$("div#photoDetail").css("margin-right","0")}}function getArrayPos(c,b){for(var a=0;a<c.length;a++){if(c[a]==b){return a}}return -1}function changeBgImg(a,e){var c=randomListVal(imageSets[e]);var d=backgrounds[c].src;var b=$(a);if(b.size()>0){if(/\bimg$/.test(a)){b.attr({src:d})}else{b.css({"background-image":'url("'+d+'")'})}}};