window.thumbnails = new Object();
												thumbnails[2761550] = new thumbnail(2761550,'','Grey Squirrel','Cl356_thumb.jpg',130, 195,32,'#');
												thumbnails[3667329] = new thumbnail(3667329,'','','Ligtening21_thumb.jpg',130, 87,32,'#');
												thumbnails[6388123] = new thumbnail(6388123,'','','Under_The_Bridge_Down_Town_Exhib_Web__thumb.jpg',130, 87,32,'#');
												thumbnails[2756104] = new thumbnail(2756104,'172969','The Exhibitionist','Cl3_thumb.jpg',130, 87,32,'photo_2756104.html');
												thumbnails[2819637] = new thumbnail(2819637,'172970','Erics Everywhere','Clicp_thumb.jpg',130, 87,32,'photo_2819637.html');
												thumbnails[2756131] = new thumbnail(2756131,'172970','Eric Doggett at his Exhibition Opening \"Out There\"','Clp_thumb.jpg',130, 87,32,'photo_2756131.html');
												thumbnails[2756350] = new thumbnail(2756350,'174651','Day Dreaming','Cl24_thumb.jpg',130, 87,32,'photo_2756350.html');
												thumbnails[2756100] = new thumbnail(2756100,'172969','Must Dart','Cl21_thumb.jpg',130, 87,32,'photo_2756100.html');
												thumbnails[2756106] = new thumbnail(2756106,'172969','Sunkissed','Cl4_thumb.jpg',130, 92,32,'photo_2756106.html');
												thumbnails[2756118] = new thumbnail(2756118,'172969','Phoenix Lark','Cl6_thumb.jpg',130, 78,32,'photo_2756118.html');
												thumbnails[2756124] = new thumbnail(2756124,'172969','Starling','Cl8_thumb.jpg',130, 78,32,'photo_2756124.html');
												thumbnails[2756126] = new thumbnail(2756126,'172969','In Song','Cl9_thumb.jpg',130, 87,32,'photo_2756126.html');
												thumbnails[2756130] = new thumbnail(2756130,'172969','Jackdaw','Cl10_thumb.jpg',130, 87,32,'photo_2756130.html');
												thumbnails[3458659] = new thumbnail(3458659,'211479','Advert','Band Photographer Poster for WEB_thumb.jpg',130, 189,32,'photo_3458659.html');
												thumbnails[5554288] = new thumbnail(5554288,'314890','Whistling Heron','Whistling_Heron_thumb.jpg',130, 87,32,'photo_5554288.html');
												thumbnails[6392515] = new thumbnail(6392515,'353404','\"Under the Bridge down Town\"','Under_The_Bridge_Down_Town__thumb.jpg',130, 87,32,'photo_6392515.html');
												thumbnails[7894287] = new thumbnail(7894287,'425877','','Wed8_thumb.jpg',130, 195,32,'photo_7894287.html');
												thumbnails[2756200] = new thumbnail(2756200,'172969','Stonechat','Cl111_thumb.jpg',130, 87,32,'photo_2756200.html');
												thumbnails[2756224] = new thumbnail(2756224,'172969','Kittiwake','Cl13_thumb.jpg',130, 78,32,'photo_2756224.html');
												thumbnails[2756255] = new thumbnail(2756255,'172969','Out to Sea','Cl14_thumb.jpg',130, 78,32,'photo_2756255.html');
												thumbnails[2756267] = new thumbnail(2756267,'172969','The Sea Glider','Cl15_thumb.jpg',130, 78,32,'photo_2756267.html');
												thumbnails[2756276] = new thumbnail(2756276,'172969','Out There','Cl16_thumb.jpg',130, 87,32,'photo_2756276.html');
												thumbnails[2756300] = new thumbnail(2756300,'172969','Great Tit','Cl19_thumb.jpg',130, 78,32,'photo_2756300.html');
												thumbnails[2756307] = new thumbnail(2756307,'172969','Summers Here','Cl20_thumb.jpg',130, 78,32,'photo_2756307.html');
												thumbnails[3458668] = new thumbnail(3458668,'211479','Capoiera','Band_thumb.jpg',130, 195,32,'photo_3458668.html');
												thumbnails[5554290] = new thumbnail(5554290,'314890','Toco Toucan','Toco_Toucan3_thumb.jpg',130, 87,32,'photo_5554290.html');
												thumbnails[6392516] = new thumbnail(6392516,'353404','\"Weir at Slane\"','THe_Weir_at_Slane__thumb.jpg',130, 87,32,'photo_6392516.html');
												thumbnails[7894293] = new thumbnail(7894293,'425877','','Wed4_thumb.jpg',130, 195,32,'photo_7894293.html');
												thumbnails[2756322] = new thumbnail(2756322,'172969','Bottoms Up','Cl211_thumb.jpg',130, 78,32,'photo_2756322.html');
												thumbnails[2756335] = new thumbnail(2756335,'172969','Feeding Time','Cl22_thumb.jpg',130, 78,32,'photo_2756335.html');
												thumbnails[2756460] = new thumbnail(2756460,'172969','The Castle Climber','Cl27_thumb.jpg',130, 78,32,'photo_2756460.html');
												thumbnails[2756474] = new thumbnail(2756474,'172969','Just Me and You','Cl28_thumb.jpg',130, 87,32,'photo_2756474.html');
												thumbnails[2756527] = new thumbnail(2756527,'172969','Cooling Down','Cl29_thumb.jpg',130, 87,32,'photo_2756527.html');
												thumbnails[2756540] = new thumbnail(2756540,'172969','Bubbles','Cl30_thumb.jpg',130, 78,32,'photo_2756540.html');
												thumbnails[3458671] = new thumbnail(3458671,'211479','Capoiera','Band2_thumb.jpg',130, 195,32,'photo_3458671.html');
												thumbnails[5554296] = new thumbnail(5554296,'314890','Toco Toucan','Toco_Toucan2_thumb.jpg',130, 87,32,'photo_5554296.html');
												thumbnails[6392519] = new thumbnail(6392519,'353404','\"The Pascal Fire\"','The_Pascal_Fire__thumb.jpg',130, 87,32,'photo_6392519.html');
												thumbnails[7894304] = new thumbnail(7894304,'425877','','Wed7_thumb.jpg',130, 195,32,'photo_7894304.html');
												thumbnails[2756553] = new thumbnail(2756553,'172969','Look before you Leap','Cl311_thumb.jpg',130, 78,32,'photo_2756553.html');
												thumbnails[2756563] = new thumbnail(2756563,'172969','Wait A While','Cl32_thumb.jpg',130, 87,32,'photo_2756563.html');
												thumbnails[2756603] = new thumbnail(2756603,'172969','Fairy Like','Cl34_thumb.jpg',130, 78,32,'photo_2756603.html');
												thumbnails[2756627] = new thumbnail(2756627,'172969','Grye Squirrel','Cl35_thumb.jpg',130, 195,32,'photo_2756627.html');
												thumbnails[2756639] = new thumbnail(2756639,'172969','Curlew','Cl36_thumb.jpg',130, 78,32,'photo_2756639.html');
												thumbnails[2756646] = new thumbnail(2756646,'172969','On The Beat','Cl37_thumb.jpg',130, 78,32,'photo_2756646.html');
												thumbnails[2756650] = new thumbnail(2756650,'172969','Dawn With Geese','Cl38_thumb.jpg',130, 78,32,'photo_2756650.html');
												thumbnails[3458676] = new thumbnail(3458676,'211479','Pearl Jem','Band3_thumb.jpg',130, 195,32,'photo_3458676.html');
												thumbnails[5554300] = new thumbnail(5554300,'314890','Toco Toucan','Toco_Toucan_thumb.jpg',130, 87,32,'photo_5554300.html');
												thumbnails[6392520] = new thumbnail(6392520,'353404','\"The Tree\"','The_Tree__thumb.jpg',130, 87,32,'photo_6392520.html');
												thumbnails[7894297] = new thumbnail(7894297,'425877','','Wed9_thumb.jpg',130, 87,32,'photo_7894297.html');
												thumbnails[2756663] = new thumbnail(2756663,'172969','On The Wing','Cl40_thumb.jpg',130, 190,32,'photo_2756663.html');
												thumbnails[2756670] = new thumbnail(2756670,'172969','Robin','Cl41_thumb.jpg',130, 195,32,'photo_2756670.html');
												thumbnails[2756673] = new thumbnail(2756673,'172969','Treecreeper','Cl42_thumb.jpg',130, 78,32,'photo_2756673.html');
												thumbnails[2756676] = new thumbnail(2756676,'172969','Blackcap','Cl44_thumb.jpg',130, 78,32,'photo_2756676.html');
												thumbnails[2756681] = new thumbnail(2756681,'172969','Deer','Cl46_thumb.jpg',130, 87,32,'photo_2756681.html');
												thumbnails[2756685] = new thumbnail(2756685,'172970','Ambition','Cl47_thumb.jpg',130, 197,32,'photo_2756685.html');
												thumbnails[2756690] = new thumbnail(2756690,'174651','The Halpenny Bridge','Cl48_thumb.jpg',130, 89,32,'photo_2756690.html');
												thumbnails[2756694] = new thumbnail(2756694,'174651','Slane Castle','Cl49_thumb.jpg',130, 87,32,'photo_2756694.html');
												thumbnails[2756697] = new thumbnail(2756697,'174651','Edingburgh Castle','Cl50_thumb.jpg',130, 87,32,'photo_2756697.html');
												thumbnails[2756700] = new thumbnail(2756700,'174651','Sunset','Cl51_thumb.jpg',130, 195,32,'photo_2756700.html');
												thumbnails[3458680] = new thumbnail(3458680,'211479','Samba','Samba_thumb.jpg',130, 195,32,'photo_3458680.html');
												thumbnails[5554303] = new thumbnail(5554303,'314890','Tarantula','Turantula_thumb.jpg',130, 87,32,'photo_5554303.html');
												thumbnails[6392521] = new thumbnail(6392521,'353404','\"The Mill over the Bridge\"','The_Mill_over_the_Bridge__thumb.jpg',130, 87,32,'photo_6392521.html');
												thumbnails[7894305] = new thumbnail(7894305,'425877','','Wed10_thumb.jpg',130, 87,32,'photo_7894305.html');
												thumbnails[2756931] = new thumbnail(2756931,'172969','Egret with Eel','Cl54_thumb.jpg',130, 78,32,'photo_2756931.html');
												thumbnails[2756935] = new thumbnail(2756935,'172969','Fern','Cl56_thumb.jpg',130, 195,32,'photo_2756935.html');
												thumbnails[3458683] = new thumbnail(3458683,'211479','Samba 2','Samba2_thumb.jpg',130, 87,32,'photo_3458683.html');
												thumbnails[5554304] = new thumbnail(5554304,'314890','Tarantula','Tarantula2_thumb.jpg',130, 87,32,'photo_5554304.html');
												thumbnails[6392522] = new thumbnail(6392522,'353404','\"The Mill at Dusk\"','The_Mill_at_Dusk__thumb.jpg',130, 94,32,'photo_6392522.html');
												thumbnails[7894306] = new thumbnail(7894306,'425877','','Wed1_thumb.jpg',130, 87,32,'photo_7894306.html');
												thumbnails[7894307] = new thumbnail(7894307,'425877','','Wed2_thumb.jpg',130, 87,32,'photo_7894307.html');
												thumbnails[3458689] = new thumbnail(3458689,'211479','Happy City Samba Band','Happy City_thumb.jpg',130, 87,32,'photo_3458689.html');
												thumbnails[5554311] = new thumbnail(5554311,'314890','Striated Heron','Striated_Heron_thumb.jpg',130, 87,32,'photo_5554311.html');
												thumbnails[6392523] = new thumbnail(6392523,'353404','\"The Mill\"','THe_Mill___thumb.jpg',130, 87,32,'photo_6392523.html');
												thumbnails[7894308] = new thumbnail(7894308,'425877','','Wed5_thumb.jpg',130, 87,32,'photo_7894308.html');
												thumbnails[3257633] = new thumbnail(3257633,'172970','\"Eric\'s Dreaming\"','W1_thumb.jpg',130, 87,32,'photo_3257633.html');
												thumbnails[5554312] = new thumbnail(5554312,'314890','Southern Screamer','Southern_Screamer_thumb.jpg',130, 87,32,'photo_5554312.html');
												thumbnails[6392524] = new thumbnail(6392524,'353404','\"The Horseshoe Weir\"','The_Horseshoe_Weir__thumb.jpg',130, 87,32,'photo_6392524.html');
												thumbnails[7894309] = new thumbnail(7894309,'425877','','Wed3_thumb.jpg',130, 87,32,'photo_7894309.html');
												thumbnails[3257629] = new thumbnail(3257629,'174651','\"Old Folk of the Burren\"','W_thumb.jpg',130, 87,32,'photo_3257629.html');
												thumbnails[5554316] = new thumbnail(5554316,'314890','Southern Lapwing','Southern_Lapwing_thumb.jpg',130, 87,32,'photo_5554316.html');
												thumbnails[6392526] = new thumbnail(6392526,'353404','\"The Horseshoe Dancer\"','The_Horseshoe_Dancer_thumb.jpg',130, 87,32,'photo_6392526.html');
												thumbnails[7894310] = new thumbnail(7894310,'425877','','Wed6_thumb.jpg',130, 87,32,'photo_7894310.html');
												thumbnails[3257643] = new thumbnail(3257643,'174651','Carrickdexter Castle','W2_thumb.jpg',130, 87,32,'photo_3257643.html');
												thumbnails[5554318] = new thumbnail(5554318,'314890','Smooth Billed Ani','Smooth_Billed_Ani2_thumb.jpg',130, 87,32,'photo_5554318.html');
												thumbnails[6392527] = new thumbnail(6392527,'353404','\"The Hill of Slane\"','THe_Hill_of_Slane__thumb.jpg',130, 87,32,'photo_6392527.html');
												thumbnails[7894311] = new thumbnail(7894311,'425877','','Wed11_thumb.jpg',130, 87,32,'photo_7894311.html');
												thumbnails[6392528] = new thumbnail(6392528,'353404','\"The Dairy\"','The_Dairy__thumb.jpg',130, 87,32,'photo_6392528.html');
												thumbnails[5554323] = new thumbnail(5554323,'314890','Slate-Coloured Hawk','Slate-Coloured_Hawk_2_thumb.jpg',130, 87,32,'photo_5554323.html');
												thumbnails[6392529] = new thumbnail(6392529,'353404','\"The Castle Ghost\"','The_Castle_Ghost_thumb.jpg',130, 87,32,'photo_6392529.html');
												thumbnails[5554328] = new thumbnail(5554328,'314890','Roseate Spoonbill','Roseate_Spoonbill3__thumb.jpg',130, 87,32,'photo_5554328.html');
												thumbnails[6392530] = new thumbnail(6392530,'353404','\"Sunset at the Hill of Slane\"','Sunset_at_the_Hill_of_Slane__thumb.jpg',130, 87,32,'photo_6392530.html');
												thumbnails[5554342] = new thumbnail(5554342,'314890','Ringed Kingfisher','Ringed_Kingfisher4_thumb.jpg',130, 87,32,'photo_5554342.html');
												thumbnails[6392531] = new thumbnail(6392531,'353404','\"Summer Blossom\"','Summer_Blossom__thumb.jpg',130, 87,32,'photo_6392531.html');
												thumbnails[3266367] = new thumbnail(3266367,'172969','Waxwing3','Waxwing2a_thumb.jpg',130, 87,32,'photo_3266367.html');
												thumbnails[5554351] = new thumbnail(5554351,'314890','Red and Green Macaws in Flight','Red_and_Green_Macaws_in_Flight_thumb.jpg',130, 87,32,'photo_5554351.html');
												thumbnails[6392532] = new thumbnail(6392532,'353404','\"Summer at Slane Castle\"','Summer_at_Slane_Castle__1_thumb.jpg',130, 87,32,'photo_6392532.html');
												thumbnails[5554358] = new thumbnail(5554358,'314890','Red and Green Macaw2','Red_and_Green_Macaw2_thumb.jpg',130, 87,32,'photo_5554358.html');
												thumbnails[6392535] = new thumbnail(6392535,'353404','\"St.Erc\'s Hermitage\"','StErcs_Hermitage_BW__thumb.jpg',130, 195,32,'photo_6392535.html');
												thumbnails[3281948] = new thumbnail(3281948,'172969','Curlew','Curlew on the Bull2_thumb.jpg',130, 87,32,'photo_3281948.html');
												thumbnails[5554367] = new thumbnail(5554367,'314890','Red and Green Macaw','Red_and_Green_Macaw_thumb.jpg',130, 87,32,'photo_5554367.html');
												thumbnails[5554423] = new thumbnail(5554423,'314890','Coatimundi','Racoon_like_thumb.jpg',130, 87,32,'photo_5554423.html');
												thumbnails[6392536] = new thumbnail(6392536,'353404','\"Spring\"','Spring__thumb.jpg',130, 87,32,'photo_6392536.html');
												thumbnails[3281992] = new thumbnail(3281992,'172969','Fieldfare','Fieldfare3_thumb.jpg',130, 87,32,'photo_3281992.html');
												thumbnails[5554425] = new thumbnail(5554425,'314890','Brown Capuchin Monkey','Monkey_thumb.jpg',130, 87,32,'photo_5554425.html');
												thumbnails[6392537] = new thumbnail(6392537,'353404','\"Slane Castle\'','Slane_Castle___thumb.jpg',130, 87,32,'photo_6392537.html');
												thumbnails[5554442] = new thumbnail(5554442,'314890','Monk Parakeets','Monk_Parakeets_thumb.jpg',130, 87,32,'photo_5554442.html');
												thumbnails[6392538] = new thumbnail(6392538,'353404','\"Scabby Arch\"','Scabby_Arch__thumb.jpg',130, 87,32,'photo_6392538.html');
												thumbnails[3326113] = new thumbnail(3326113,'174651','Geese in the morning sun','Bull1b_thumb.jpg',130, 87,32,'photo_3326113.html');
												thumbnails[5555080] = new thumbnail(5555080,'314890','Lizard on tree','Lizard_on_Treejpg_thumb.jpg',130, 87,32,'photo_5555080.html');
												thumbnails[6392539] = new thumbnail(6392539,'353404','\'Saint Patrick\" ','Saint_Patrick__thumb.jpg',130, 195,32,'photo_6392539.html');
												thumbnails[5555082] = new thumbnail(5555082,'314890','Lizard on rock','Lizard_on_Rock2_thumb.jpg',130, 87,32,'photo_5555082.html');
												thumbnails[6392540] = new thumbnail(6392540,'353404','\"Reflections\"','Reflections__thumb.jpg',130, 87,32,'photo_6392540.html');
												thumbnails[3326118] = new thumbnail(3326118,'172969','Egret','Bull7b_thumb.jpg',130, 87,32,'photo_3326118.html');
												thumbnails[5555087] = new thumbnail(5555087,'314890','Lesser Yellow - Headed Vulture','Lesser_Yellow-Headed_Vulture_thumb.jpg',130, 87,32,'photo_5555087.html');
												thumbnails[6392541] = new thumbnail(6392541,'353404','\"Reflecting on the Boyne\"','Reflecting_on_the_Boyne_thumb.jpg',130, 87,32,'photo_6392541.html');
												thumbnails[5555094] = new thumbnail(5555094,'314890','Large Billed Tern','Large_Billed_Tern_thumb.jpg',130, 87,32,'photo_5555094.html');
												thumbnails[6392542] = new thumbnail(6392542,'353404','\"Pied Lunch\"','Pied_Lunch__thumb.jpg',130, 87,32,'photo_6392542.html');
												thumbnails[3406302] = new thumbnail(3406302,'174651','Fresh Morning Start','Fresh Morning Start_thumb.jpg',130, 87,32,'photo_3406302.html');
												thumbnails[5555098] = new thumbnail(5555098,'314890','Jabiru','Jabiru4_thumb.jpg',130, 87,32,'photo_5555098.html');
												thumbnails[6392543] = new thumbnail(6392543,'353404','\"Over the Boyne\"','Over_the_Boyne__thumb.jpg',130, 87,32,'photo_6392543.html');
												thumbnails[3406311] = new thumbnail(3406311,'174651','Snowy Day','Snowy Day_thumb.jpg',130, 87,32,'photo_3406311.html');
												thumbnails[5555103] = new thumbnail(5555103,'314890','Hyacinth Macaw','Hyacinth_Macaw_thumb.jpg',130, 87,32,'photo_5555103.html');
												thumbnails[6392544] = new thumbnail(6392544,'353404','\"Otter\"','Otter__thumb.jpg',130, 87,32,'photo_6392544.html');
												thumbnails[3326143] = new thumbnail(3326143,'172969','Egret','Bull18b_thumb.jpg',130, 87,32,'photo_3326143.html');
												thumbnails[3406317] = new thumbnail(3406317,'174651','St.Stephans Green','St_thumb.Stephans Green.jpg',130, 87,32,'photo_3406317.html');
												thumbnails[5555110] = new thumbnail(5555110,'314890','Hummingbird','Hummingbird_thumb.jpg',130, 87,32,'photo_5555110.html');
												thumbnails[6392545] = new thumbnail(6392545,'353404','\"On the Boyne Love\"','On_The_Boyne_Love__thumb.jpg',130, 87,32,'photo_6392545.html');
												thumbnails[5555116] = new thumbnail(5555116,'314890','Green Ibis','Green_Ibis_thumb.jpg',130, 87,32,'photo_5555116.html');
												thumbnails[6392546] = new thumbnail(6392546,'353404','\"My Silhouette\"','My_Silhouette__thumb.jpg',130, 87,32,'photo_6392546.html');
												thumbnails[3406170] = new thumbnail(3406170,'172969','Black-headed Gull','Black-headed Gull_thumb.jpg',130, 87,32,'photo_3406170.html');
												thumbnails[5555119] = new thumbnail(5555119,'314890','Great Black Hawk with Crab','Great_Black_Hawk_with_food_2_thumb.jpg',130, 87,32,'photo_5555119.html');
												thumbnails[6392547] = new thumbnail(6392547,'353404','\"Mirror Me\"','Mirror_Me__thumb.jpg',130, 195,32,'photo_6392547.html');
												thumbnails[3406281] = new thumbnail(3406281,'172969','Blue Tit','Blue Tit_thumb.jpg',130, 87,32,'photo_3406281.html');
												thumbnails[5555122] = new thumbnail(5555122,'314890','Fork Tailed Woodnymph','Fork-Tailed_Woodnymph_thumb.jpg',130, 87,32,'photo_5555122.html');
												thumbnails[6392548] = new thumbnail(6392548,'353404','\"Little Grebe\"','Little_Grebe__thumb.jpg',130, 87,32,'photo_6392548.html');
												thumbnails[3406285] = new thumbnail(3406285,'172969','Coot','Coot_thumb.jpg',130, 87,32,'photo_3406285.html');
												thumbnails[5555129] = new thumbnail(5555129,'314890','Fasciated Tiger-Heron','Fasciated_Tiger-Heron_thumb.jpg',130, 87,32,'photo_5555129.html');
												thumbnails[6392549] = new thumbnail(6392549,'353404','\"Kingfisher\"','Kingfisher__thumb.jpg',130, 87,32,'photo_6392549.html');
												thumbnails[3406287] = new thumbnail(3406287,'172969','Cormorant','Cormorant_thumb.jpg',130, 87,32,'photo_3406287.html');
												thumbnails[5555131] = new thumbnail(5555131,'314890','Deer 3','Deer3_thumb.jpg',130, 87,32,'photo_5555131.html');
												thumbnails[6392550] = new thumbnail(6392550,'353404','\"In Good Shape\"','In_Good_Shape__thumb.jpg',130, 87,32,'photo_6392550.html');
												thumbnails[3406291] = new thumbnail(3406291,'172969','Cormorant 2','Cormorant2_thumb.jpg',130, 87,32,'photo_3406291.html');
												thumbnails[5555133] = new thumbnail(5555133,'314890','Dead cow and Black Vultures','Dead_Cow_and_Black_Vultures_thumb.jpg',130, 87,32,'photo_5555133.html');
												thumbnails[5555549] = new thumbnail(5555549,'174651','Waterfalls','Waterfalls_thumb.jpg',130, 87,32,'photo_5555549.html');
												thumbnails[6392551] = new thumbnail(6392551,'353404','\"Hows it Goin? \"','Hows_it_Goin-__thumb.jpg',130, 87,32,'photo_6392551.html');
												thumbnails[3406293] = new thumbnail(3406293,'172969','Cormorant 3','Cormorant3_thumb.jpg',130, 87,32,'photo_3406293.html');
												thumbnails[5555138] = new thumbnail(5555138,'314890','Crimson - Crested Woodpecker','Crimson-Crested_Woodpecker3_thumb.jpg',130, 87,32,'photo_5555138.html');
												thumbnails[5555140] = new thumbnail(5555140,'314890','Crimson - Crested Woodpecker2','Crimson-Crested_Woodpecker4_thumb.jpg',130, 87,32,'photo_5555140.html');
												thumbnails[5555565] = new thumbnail(5555565,'174651','Waterfalls2','Waterfall2_thumb.jpg',130, 87,32,'photo_5555565.html');
												thumbnails[6392552] = new thumbnail(6392552,'353404','\"Gates to Castle\"','Gates_to_Castle__thumb.jpg',130, 87,32,'photo_6392552.html');
												thumbnails[5555406] = new thumbnail(5555406,'314890','Crested Caracara','Crested_Caracara2_thumb.jpg',130, 87,32,'photo_5555406.html');
												thumbnails[5555582] = new thumbnail(5555582,'174651','The Devils Throat','The_Devils_Throat__thumb.jpg',130, 87,32,'photo_5555582.html');
												thumbnails[6392553] = new thumbnail(6392553,'353404','\"Frame the Mill\"','Frame_the_Mill__thumb.jpg',130, 195,32,'photo_6392553.html');
												thumbnails[3406330] = new thumbnail(3406330,'172969','Mallard','Mallard_thumb.jpg',130, 87,32,'photo_3406330.html');
												thumbnails[5555410] = new thumbnail(5555410,'314890','Capivara','Capivara_thumb.jpg',130, 87,32,'photo_5555410.html');
												thumbnails[6392554] = new thumbnail(6392554,'353404','\"Fenner Castle\"','Fenner_Castle___thumb.jpg',130, 87,32,'photo_6392554.html');
												thumbnails[5555417] = new thumbnail(5555417,'314890','Caimens','Caimens_thumb.jpg',130, 87,32,'photo_5555417.html');
												thumbnails[5555602] = new thumbnail(5555602,'174651','Misty Scene','Misty_Scene_thumb.jpg',130, 87,32,'photo_5555602.html');
												thumbnails[6392555] = new thumbnail(6392555,'353404','\"Fenced In\"','Fenced_in__thumb.jpg',130, 87,32,'photo_6392555.html');
												thumbnails[3406339] = new thumbnail(3406339,'172969','Moorhen 2','Moorhen2_thumb.jpg',130, 87,32,'photo_3406339.html');
												thumbnails[5555434] = new thumbnail(5555434,'314890','Caimen1','Caimen1_thumb.jpg',130, 87,32,'photo_5555434.html');
												thumbnails[5555612] = new thumbnail(5555612,'174651','Lightening','Lightening__thumb.jpg',130, 87,32,'photo_5555612.html');
												thumbnails[6392556] = new thumbnail(6392556,'353404','\"Down to the River\"','Down_to_the_River__thumb.jpg',130, 87,32,'photo_6392556.html');
												thumbnails[5555488] = new thumbnail(5555488,'314890','Butterfly','Butterfly_88_thumb.jpg',130, 87,32,'photo_5555488.html');
												thumbnails[5555620] = new thumbnail(5555620,'174651','Lightening 2','Ligtening2_thumb.jpg',130, 87,32,'photo_5555620.html');
												thumbnails[6392557] = new thumbnail(6392557,'353404','\"Comerant\"','Comerant__thumb.jpg',130, 87,32,'photo_6392557.html');
												thumbnails[3417825] = new thumbnail(3417825,'172969','Deer in the park','Deer in the Parka_thumb.jpg',130, 87,32,'photo_3417825.html');
												thumbnails[5555493] = new thumbnail(5555493,'314890','Boatman with Great Black Hawk','Boatman_with_Great_Black_Hawk_thumb.jpg',130, 87,32,'photo_5555493.html');
												thumbnails[6392558] = new thumbnail(6392558,'353404','\"Church\"','Church__thumb.jpg',130, 87,32,'photo_6392558.html');
												thumbnails[3417837] = new thumbnail(3417837,'172969','Deer in the Snow','Deer in the Parkb_thumb.jpg',130, 87,32,'photo_3417837.html');
												thumbnails[5555499] = new thumbnail(5555499,'314890','Black Vultures and Crested Caracara','Black_Vultures_and_Crested_Caracara_thumb.jpg',130, 87,32,'photo_5555499.html');
												thumbnails[5555630] = new thumbnail(5555630,'174651','Lightening 3','Lightening3_thumb.jpg',130, 87,32,'photo_5555630.html');
												thumbnails[6392559] = new thumbnail(6392559,'353404','\"Catch of the Day\"','Catch_of_the_Day_thumb.jpg',130, 87,32,'photo_6392559.html');
												thumbnails[3417840] = new thumbnail(3417840,'172969','Deer grazing in Snow','Deer in the Parkc_thumb.jpg',130, 87,32,'photo_3417840.html');
												thumbnails[5555505] = new thumbnail(5555505,'314890','Black Collared Hawk','Black_Collared_Hawk3_thumb.jpg',130, 87,32,'photo_5555505.html');
												thumbnails[5555638] = new thumbnail(5555638,'174651','Lightening 4','Lightening4_thumb.jpg',130, 87,32,'photo_5555638.html');
												thumbnails[6392560] = new thumbnail(6392560,'353404','\"Castle Solo\"','Castle_Solo__thumb.jpg',130, 87,32,'photo_6392560.html');
												thumbnails[3417843] = new thumbnail(3417843,'172969','Mallard on Ice','Mallard in the Parka_thumb.jpg',130, 87,32,'photo_3417843.html');
												thumbnails[5555643] = new thumbnail(5555643,'174651','Lightening5','Lightening5_thumb.jpg',130, 87,32,'photo_5555643.html');
												thumbnails[6392561] = new thumbnail(6392561,'353404','\"Buzzard Soars\"','Buzzard_Soars__thumb.jpg',130, 87,32,'photo_6392561.html');
												thumbnails[3458639] = new thumbnail(3458639,'172969','\"On the Beat\"','Sanderlings_thumb.jpg',130, 84,32,'photo_3458639.html');
												thumbnails[5555509] = new thumbnail(5555509,'314890','Black Collared Hawk and Black Vultures','Black_Collared_Hawk_and_Black_Vultures_thumb.jpg',130, 87,32,'photo_5555509.html');
												thumbnails[5555649] = new thumbnail(5555649,'174651','Lightening 6','Lightening6_thumb.jpg',130, 87,32,'photo_5555649.html');
												thumbnails[6392562] = new thumbnail(6392562,'353404','\"Butter Fly\"','Butter_Fly__thumb.jpg',130, 87,32,'photo_6392562.html');
												thumbnails[5555515] = new thumbnail(5555515,'314890','Bare Faced Ibis','Bare_Faced_Ibis_2_thumb.jpg',130, 87,32,'photo_5555515.html');
												thumbnails[5555659] = new thumbnail(5555659,'174651','Lightening 7','Lightening7_thumb.jpg',130, 87,32,'photo_5555659.html');
												thumbnails[6392563] = new thumbnail(6392563,'353404','\"Bridge by Night\"','Bridge_by_Night___thumb.jpg',130, 87,32,'photo_6392563.html');
												thumbnails[5555520] = new thumbnail(5555520,'314890','Anaconda','Anaconda_thumb.jpg',130, 87,32,'photo_5555520.html');
												thumbnails[6392564] = new thumbnail(6392564,'353404','\"Bell Tower\"','Bell_Tower__thumb.jpg',130, 195,32,'photo_6392564.html');
												thumbnails[5555527] = new thumbnail(5555527,'314890','Anaconda 2','Anaconda2_thumb.jpg',130, 87,32,'photo_5555527.html');
												thumbnails[5555534] = new thumbnail(5555534,'314890','Amazon Kingfisher','Amazon_Kingfisher2_thumb.jpg',130, 87,32,'photo_5555534.html');
												thumbnails[5555668] = new thumbnail(5555668,'174651','Lightening 8','Lightening8_thumb.jpg',130, 87,32,'photo_5555668.html');
												thumbnails[6392565] = new thumbnail(6392565,'353404','\"Bee\"','Bee__thumb.jpg',130, 87,32,'photo_6392565.html');
												thumbnails[6392566] = new thumbnail(6392566,'353404','\"Autumn Splash\"','Autumn_Splash__thumb.jpg',130, 87,32,'photo_6392566.html');
												thumbnails[6392567] = new thumbnail(6392567,'353404','\"Autumn at the Castle Gates\"','Autumn_at_Castle_Gates__thumb.jpg',130, 87,32,'photo_6392567.html');
												thumbnails[6392568] = new thumbnail(6392568,'353404','\"Along the Boyne\"','Along_the_Boyne__thumb.jpg',130, 87,32,'photo_6392568.html');
												thumbnails[6392569] = new thumbnail(6392569,'353404','\" X Fighter 1\"','X-Fighter1__thumb.jpg',130, 87,32,'photo_6392569.html');
												thumbnails[6392570] = new thumbnail(6392570,'353404','\" X Fighter 2 \"','X-Fighter2__thumb.jpg',130, 87,32,'photo_6392570.html');
												thumbnails[6392571] = new thumbnail(6392571,'353404','\"X Fighter 4\"','X-Fighter4__thumb.jpg',130, 87,32,'photo_6392571.html');
												thumbnails[3464193] = new thumbnail(3464193,'172969','Reflecting Curlew','Curlew Reflecting Web_thumb.jpg',130, 87,32,'photo_3464193.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[353404] = new gallery(353404,'6392515','      \"Slane Scenes\"       ON LINE EXHIBITION','gallery',[6392515,6392516,6392519,6392520,6392521,6392522,6392523,6392524,6392526,6392527,6392528,6392529,6392530,6392531,6392532,6392535,6392536,6392537,6392538,6392539,6392540,6392541,6392542,6392543,6392544,6392545,6392546,6392547,6392548,6392549,6392550,6392551,6392552,6392553,6392554,6392555,6392556,6392557,6392558,6392559,6392560,6392561,6392562,6392563,6392564,6392565,6392566,6392567,6392568,6392569,6392570,6392571],0, 0, '', 'gallery_353404.html',0,0);
				  					galleries[174651] = new gallery(174651,'2756350','Scapes','gallery',[2756350,2756690,2756694,2756697,2756700,3257629,3257643,3326113,3406302,3406311,3406317,5555549,5555565,5555582,5555602,5555612,5555620,5555630,5555638,5555643,5555649,5555659,5555668],0, 0, '', 'gallery_174651.html',0,0);
				  					galleries[172969] = new gallery(172969,'3464193,3458639,3417843,3417840,3417837,3417825,3406339,3406330,3406293,3406291','Wildlife','gallery',[2756104,2756100,2756106,2756118,2756124,2756126,2756130,2756200,2756224,2756255,2756267,2756276,2756300,2756307,2756322,2756335,2756460,2756474,2756527,2756540,2756553,2756563,2756603,2756627,2756639,2756646,2756650,2756663,2756670,2756673,2756676,2756681,2756931,2756935,3266367,3281948,3281992,3326118,3326143,3406170,3406281,3406285,3406287,3406291,3406293,3406330,3406339,3417825,3417837,3417840,3417843,3458639,3464193],0, 0, '', 'gallery_172969.html',0,0);
				  					galleries[172970] = new gallery(172970,'3257633,2819637,2756685,2756131','People','gallery',[2819637,2756131,2756685,3257633],0, 0, '', 'gallery_172970.html',0,0);
				  					galleries[314890] = new gallery(314890,'5554290','South American Wildlife','gallery',[5554288,5554290,5554296,5554300,5554303,5554304,5554311,5554312,5554316,5554318,5554323,5554328,5554342,5554351,5554358,5554367,5554423,5554425,5554442,5555080,5555082,5555087,5555094,5555098,5555103,5555110,5555116,5555119,5555122,5555129,5555131,5555133,5555138,5555140,5555406,5555410,5555417,5555434,5555488,5555493,5555499,5555505,5555509,5555515,5555520,5555527,5555534],0, 0, '', 'gallery_314890.html',0,0);
				  					galleries[211479] = new gallery(211479,'3458659','Band Photography','gallery',[3458659,3458668,3458671,3458676,3458680,3458683,3458689],0, 0, '', 'gallery_211479.html',0,0);
				  					galleries[425877] = new gallery(425877,'7894287','Wedding Photography','gallery',[7894287,7894293,7894304,7894297,7894305,7894306,7894307,7894308,7894309,7894310,7894311],0, 0, '', 'gallery_425877.html',0,0);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[1] = '6388123';
imageSets[2] = '7894287,6392515,6388123,5554290,3458659,2756350';
imageSets[3] = '7894311,7894310,7894309,7894308,7894307,7894306,7894305,7894304,7894297,7894293,7894287,6392571,6392570,6392569,6392568,6392567,6392566,6392565,6392564,6392563,6392562,6392561,6392560,6392559,6392558,6392557,6392556,6392555,6392554,6392553,6392552,6392551,6392550,6392549,6392548,6392547,6392546,6392545,6392544,6392543,6392542,6392541,6392540,6392539,6392538,6392537,6392536,6392535,6392532,6392531';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/ericdoggett/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/ericdoggett/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/ericdoggett/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/ericdoggett/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/ericdoggett/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/ericdoggett/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/ericdoggett/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/ericdoggett/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/ericdoggett/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/ericdoggett/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/ericdoggett/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/ericdoggett/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/ericdoggett/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/ericdoggett/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/ericdoggett/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/ericdoggett/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/ericdoggett/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/ericdoggett/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/ericdoggett/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/ericdoggett/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/ericdoggett/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/ericdoggett/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:'',
                    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 (!basic) {
    if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
    }
				
    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));		  $('body').trigger('clikUpdate');		}, op.onBefore);
      }    }
    	if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'Photographer Eric Doggett: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
	    var options = {};	    	      	      resizePhotoInfo(options);
        if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
  	      toggleAddToCartConfirm(backgrounds);
  	    } else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
  	      toggleAddToCartConfirm(photos);
  	    }
	    });
    }
        if (!op.speed) {      clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));      $('body').trigger('clikUpdate');    }        
    return html;			}
	else {
				
		window.location = 'photo_' + nextPhoto.id + '.html';
	}
		
}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array){
  if (typeof(array) !== 'object') {
    array = photos;
  }
	if($('#paymentConfirm').length > 0){
		$('#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,array,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();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm').text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}
/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
photo.prototype.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp = temp +  '<p id="imageDescription">' + this.description + '</p>';
	}
		if (this.photo_ref != '') {
		temp = temp + '<p class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</p>';
	}
		if (this.takendate != '') {
				
		temp = temp + '<p class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</p>';
	}
	
	if (this.location != '') {
				
		temp = temp + '<p class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</p>';
	}
	
	if (this.photographer != '') {
				
		temp = temp + '<p class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</p>';
	}
					
				if (temp != '') {
		temp = temp + '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
photo.prototype.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp = temp + '<p>Order this print:</p>';
				temp = temp + '<p class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (this.item_price).toFixed(2) + '</p>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.payment_groups_id !== '') {
		temp = temp + '<p>Buy this print online:</p>';
				temp = temp + '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp = temp + '<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);">';
				
		temp = temp + getPaymentOptions(this.payment_groups_id);
		temp = temp + '</select>';
		temp = 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 = temp + '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
		
	if(img){
	      if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
        imageID = imageID[1];
      } else {
			  imageID = randomListVal(galleries[gallery_id].featured_images);
      }
							
			if (imageID != 0) {
				img.src = thumbnails[imageID].src;
				img.width = thumbnails[imageID].width;
				img.height = thumbnails[imageID].height;
				img.alt = galleries[gallery_id].title;
        if (updateLink) {
          $(img).parent().attr({            href: thumbnails[imageID].fnGalleryLink(gallery_id),            title: galleries[gallery_id].title          });
        }
							}
										}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp = temp + ' | ';
				}
				temp = temp + '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
			}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

