window.thumbnails = {};
															thumbnails[1927002] = clik.newPhoto({"id":1927002,"src":"three_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":75,"caption":"Josephine and Keith Stringer..neighbours and friends","height":100});
															thumbnails[1927024] = clik.newPhoto({"id":1927024,"src":"lzmcmanus_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":100,"caption":"Liz McManus, TD with Mary Duffy","height":75});
															thumbnails[1927026] = clik.newPhoto({"id":1927026,"src":"jammers_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":100,"caption":"The place was jammers...","height":75});
															thumbnails[1927064] = clik.newPhoto({"id":1927064,"src":"ger and rita_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":83,"caption":"My sisters, Ger and Rita Duffy","height":100});
															thumbnails[1927073] = clik.newPhoto({"id":1927073,"src":"mary and linda_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":100,"caption":"At the end of a long night with Linda O'Shea Farran","height":75});
															thumbnails[1927077] = clik.newPhoto({"id":1927077,"src":"denis and frank_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":100,"caption":"Denis Buckley and Frank Bouchier, ","height":75});
															thumbnails[1927078] = clik.newPhoto({"id":1927078,"src":"Mary Grainne John _thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":75,"caption":"Mary, Gráinne and John","height":100});
															thumbnails[1969099] = clik.newPhoto({"id":1969099,"src":"three1_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":75,"caption":"Josephine & Keith Stringer","height":100});
															thumbnails[1969102] = clik.newPhoto({"id":1969102,"src":"ger and rita1_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":83,"caption":"Ger and Rita Duffy","height":100});
															thumbnails[1969128] = clik.newPhoto({"id":1969128,"src":"mary and linda1_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":100,"caption":"After a Long Night","height":75});
															thumbnails[1969138] = clik.newPhoto({"id":1969138,"src":"denis and frank1_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":100,"caption":"Denis Buckley and Frank Bouchier","height":75});
															thumbnails[1969147] = clik.newPhoto({"id":1969147,"src":"Mary Grainne John 1_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":75,"caption":"Mary, Gráinne and John","height":100});
															thumbnails[1969240] = clik.newPhoto({"id":1969240,"src":"carrie_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":63,"caption":"Carrie Crowley and Mary Duffy","height":100});
															thumbnails[1969286] = clik.newPhoto({"id":1969286,"src":"confrank_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":75,"caption":"","height":100});
															thumbnails[1971058] = clik.newPhoto({"id":1971058,"src":"Mary GerW_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":75,"caption":"Mary Duffy ","height":100});
															thumbnails[1971073] = clik.newPhoto({"id":1971073,"src":"frankieMary_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":75,"caption":"","height":100});
															thumbnails[1971086] = clik.newPhoto({"id":1971086,"src":"elaine_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":68,"caption":"Elaine Buckley","height":100});
															thumbnails[1971169] = clik.newPhoto({"id":1971169,"src":"eamon_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":75,"caption":"Éamon de Buitléar","height":100});
															thumbnails[2490876] = clik.newPhoto({"id":2490876,"src":"Ceoil na mara_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":87,"caption":"Painting in Burren, Co Clare..","height":100});
															thumbnails[2490882] = clik.newPhoto({"id":2490882,"src":"DSCN2042_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":100,"caption":"Happy days!","height":75});
															thumbnails[2490892] = clik.newPhoto({"id":2490892,"src":"red boad_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":100,"caption":"","height":77});
															thumbnails[2752960] = clik.newPhoto({"id":2752960,"src":"Kinvara_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":100,"caption":"Kinvara","height":71});
															thumbnails[3890803] = clik.newPhoto({"id":3890803,"src":"Mary_and_Eilish_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":75,"caption":"","height":100});
															thumbnails[3890804] = clik.newPhoto({"id":3890804,"src":"P1010251_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":100,"caption":"","height":75});
															thumbnails[3890810] = clik.newPhoto({"id":3890810,"src":"P1010252_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":100,"caption":"","height":75});
															thumbnails[3890814] = clik.newPhoto({"id":3890814,"src":"P1010253_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":100,"caption":"","height":75});
															thumbnails[3890815] = clik.newPhoto({"id":3890815,"src":"P1010256_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":100,"caption":"","height":75});
															thumbnails[3890819] = clik.newPhoto({"id":3890819,"src":"P1010257_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":100,"caption":"","height":75});
															thumbnails[3890824] = clik.newPhoto({"id":3890824,"src":"P1010259_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":100,"caption":"","height":75});
															thumbnails[3890831] = clik.newPhoto({"id":3890831,"src":"P1010260_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":100,"caption":"","height":75});
															thumbnails[3890908] = clik.newPhoto({"id":3890908,"src":"P1010263_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":100,"caption":"","height":75});
															thumbnails[3890914] = clik.newPhoto({"id":3890914,"src":"P1010264_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":100,"caption":"","height":72});
															thumbnails[3890931] = clik.newPhoto({"id":3890931,"src":"P1010266_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":75,"caption":"","height":100});
															thumbnails[3890933] = clik.newPhoto({"id":3890933,"src":"P1010267_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":100,"caption":"","height":75});
															thumbnails[3890934] = clik.newPhoto({"id":3890934,"src":"P1010269_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":100,"caption":"","height":75});
															thumbnails[3890936] = clik.newPhoto({"id":3890936,"src":"P1010270_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":100,"caption":"","height":75});
															thumbnails[3890938] = clik.newPhoto({"id":3890938,"src":"P1010273_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":75,"caption":"","height":100});
															thumbnails[3890949] = clik.newPhoto({"id":3890949,"src":"P1010275_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":75,"caption":"","height":100});
															thumbnails[3890955] = clik.newPhoto({"id":3890955,"src":"P1010278_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":100,"caption":"","height":75});
															thumbnails[3890965] = clik.newPhoto({"id":3890965,"src":"P1010283_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":100,"caption":"","height":75});
															thumbnails[3890975] = clik.newPhoto({"id":3890975,"src":"P1010288_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":47,"caption":"","height":100});
															thumbnails[3890979] = clik.newPhoto({"id":3890979,"src":"P1010290_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":100,"caption":"","height":71});
															thumbnails[3890988] = clik.newPhoto({"id":3890988,"src":"P1010291_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":100,"caption":"","height":75});
															thumbnails[3890994] = clik.newPhoto({"id":3890994,"src":"P10102911_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":100,"caption":"","height":75});
															thumbnails[3891429] = clik.newPhoto({"id":3891429,"src":"P1010292_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":100,"caption":"","height":75});
															thumbnails[3891494] = clik.newPhoto({"id":3891494,"src":"P1010293_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":100,"caption":"","height":75});
															thumbnails[3891501] = clik.newPhoto({"id":3891501,"src":"P1010295_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":100,"caption":"","height":75});
															thumbnails[3891536] = clik.newPhoto({"id":3891536,"src":"P1010296_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":100,"caption":"","height":75});
															thumbnails[3891551] = clik.newPhoto({"id":3891551,"src":"P1010300_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":100,"caption":"","height":75});
															thumbnails[3891553] = clik.newPhoto({"id":3891553,"src":"P1010301_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":100,"caption":"","height":75});
															thumbnails[3891556] = clik.newPhoto({"id":3891556,"src":"P1010305_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":100,"caption":"","height":71});
															thumbnails[3891561] = clik.newPhoto({"id":3891561,"src":"P1010306_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":100,"caption":"","height":75});
															thumbnails[3891565] = clik.newPhoto({"id":3891565,"src":"P1010310_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":75,"caption":"","height":100});
															thumbnails[3891580] = clik.newPhoto({"id":3891580,"src":"P1010313_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":75,"caption":"Artist_Mary_Duffy_&_Denis_Buckley","height":100});
															thumbnails[3891589] = clik.newPhoto({"id":3891589,"src":"P1010314_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":100,"caption":"","height":75});
															thumbnails[3891593] = clik.newPhoto({"id":3891593,"src":"P1010315_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":100,"caption":"","height":75});
															thumbnails[3891598] = clik.newPhoto({"id":3891598,"src":"peter_and_denis_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":100,"caption":"","height":75});
															thumbnails[3891608] = clik.newPhoto({"id":3891608,"src":"pkand_Md_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":75,"caption":"","height":100});
															thumbnails[3891614] = clik.newPhoto({"id":3891614,"src":"sue_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":100,"caption":"","height":75});
															thumbnails[4983539] = clik.newPhoto({"id":4983539,"src":"1966_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":67,"caption":"Mary Duffy, 1966, aged 5 years.","height":100});
															thumbnails[5146031] = clik.newPhoto({"id":5146031,"src":"artfair_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":100,"caption":"At the Art Fair, RDS, Dublin","height":75});
															thumbnails[5478496] = clik.newPhoto({"id":5478496,"src":"winners_of_pitch_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":100,"caption":"Rebecca & Sharon Carey, winners of the Make a Pitch for my painting, with their prize. Rebecca is holding her picture which is part of the winning mother & daughter joint entry.","height":94});
															thumbnails[5629553] = clik.newPhoto({"id":5629553,"src":"olive_tree_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":70,"caption":"Olive Tree","height":100});
															thumbnails[5674842] = clik.newPhoto({"id":5674842,"src":"Dock_Wexford_8054_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":65,"caption":"By the Dock, Wexford","height":100});
															thumbnails[7025107] = clik.newPhoto({"id":7025107,"src":"RDS_stand_pic_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":100,"caption":"At the RDS Art Fair this year","height":53});
															thumbnails[7025134] = clik.newPhoto({"id":7025134,"src":"Photo_specs_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":100,"caption":"","height":75});
															thumbnails[7326780] = clik.newPhoto({"id":7326780,"src":"RDS_small_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":85,"caption":"At the RDS Art Fair, 2010","height":100});
															thumbnails[7326906] = clik.newPhoto({"id":7326906,"src":"red_on_green_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":80,"caption":"At Art Fair St Stephen's Green, Dublin 2010","height":100});
															thumbnails[7326921] = clik.newPhoto({"id":7326921,"src":"self_photo_1987_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":95,"caption":"","height":100});
															thumbnails[7428590] = clik.newPhoto({"id":7428590,"src":"poll_result_big12_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":100,"caption":"Poll Result","height":53});
															thumbnails[8307642] = clik.newPhoto({"id":8307642,"src":"blogging_pru_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":160,"caption":"","height":107});
															thumbnails[8758503] = clik.newPhoto({"id":8758503,"src":"hpmoonrocks1_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":160,"caption":"","height":90});
															thumbnails[8758597] = clik.newPhoto({"id":8758597,"src":"hp_top_crop_rock_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":160,"caption":"","height":83});
															thumbnails[3890796] = clik.newPhoto({"id":3890796,"src":"eam_pat_mary_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":100,"caption":"","height":75});
															thumbnails[8756051] = clik.newPhoto({"id":8756051,"src":"detail_2_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":160,"caption":"detail of Golden Pool","height":120});
															thumbnails[3829993] = clik.newPhoto({"id":3829993,"src":"woman_seated_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":65,"caption":"Woman Seated","height":100});
															thumbnails[941480] = clik.newPhoto({"id":941480,"src":"REDBOAT1.jpg","galleries_id":"","server_id":1,"link":"#","width":100,"caption":"Red Boat, Arklow","height":67});
															thumbnails[938224] = clik.newPhoto({"id":938224,"src":"wc.blanket-bog-1.jpg","galleries_id":110668,"server_id":1,"link":"photo_938224.html","width":100,"caption":"Blanket Bog, Connemara<br>\r\nsold","height":67});
															thumbnails[1913782] = clik.newPhoto({"id":1913782,"src":"purple water_thumb.JPG","galleries_id":110668,"server_id":1,"link":"photo_1913782.html","width":100,"caption":"Purple Water","height":39});
															thumbnails[2752890] = clik.newPhoto({"id":2752890,"src":"the cuilin_thumb.JPG","galleries_id":299361,"server_id":1,"link":"photo_2752890.html","width":100,"caption":"The Cúilín","height":77});
															thumbnails[2752943] = clik.newPhoto({"id":2752943,"src":"Time & Tide_thumb.JPG","galleries_id":299361,"server_id":1,"link":"photo_2752943.html","width":100,"caption":"Time nor Tide","height":73});
															thumbnails[2752968] = clik.newPhoto({"id":2752968,"src":"the black rock_thumb.JPG","galleries_id":110668,"server_id":1,"link":"photo_2752968.html","width":100,"caption":"The Black Rock, Bunmahon","height":73});
															thumbnails[2753128] = clik.newPhoto({"id":2753128,"src":"graiguenamanagh_thumb.JPG","galleries_id":110668,"server_id":1,"link":"photo_2753128.html","width":100,"caption":"Graiguenamanagh","height":66});
															thumbnails[2753246] = clik.newPhoto({"id":2753246,"src":"wild blue1_thumb.JPG","galleries_id":110668,"server_id":1,"link":"photo_2753246.html","width":100,"caption":"Wild Blue","height":62});
															thumbnails[3197276] = clik.newPhoto({"id":3197276,"src":"bog w lilies_thumb.JPG","galleries_id":299382,"server_id":1,"link":"photo_3197276.html","width":100,"caption":"Bog_Pool_with_Lillies","height":64});
															thumbnails[3197338] = clik.newPhoto({"id":3197338,"src":"village_thumb.JPG","galleries_id":110668,"server_id":1,"link":"photo_3197338.html","width":100,"caption":"La fin de l'apres-midi","height":73});
															thumbnails[3197342] = clik.newPhoto({"id":3197342,"src":"wexford02_thumb.JPG","galleries_id":110668,"server_id":1,"link":"photo_3197342.html","width":100,"caption":"The Quay, Wexford","height":48});
															thumbnails[3934875] = clik.newPhoto({"id":3934875,"src":"le_marche_thumb.JPG","galleries_id":299378,"server_id":1,"link":"photo_3934875.html","width":100,"caption":"Le_Marché_aux_Légumes","height":85});
															thumbnails[3934969] = clik.newPhoto({"id":3934969,"src":"evening_before_tsunami_1_thumb.jpg","galleries_id":299361,"server_id":1,"link":"photo_3934969.html","width":100,"caption":"Evening_before_Tsunami","height":69});
															thumbnails[3934981] = clik.newPhoto({"id":3934981,"src":"going_home_thumb.JPG","galleries_id":299378,"server_id":1,"link":"photo_3934981.html","width":69,"caption":"Going Home","height":100});
															thumbnails[4983662] = clik.newPhoto({"id":4983662,"src":"dawn_before_tsunami_thumb.jpg","galleries_id":57228,"server_id":1,"link":"photo_4983662.html","width":100,"caption":"Dawn Before Tsumnami","height":69});
															thumbnails[5557833] = clik.newPhoto({"id":5557833,"src":"gift_certificate_thumb.JPG","galleries_id":226403,"server_id":1,"link":"photo_5557833.html","width":100,"caption":"I am delighted to be able to offer gift certificates, to be redeemed against any painting or limited edition print currently available on my website. You can buy a certificate for €50, or for a multiple of €50, by entering the multiple the amount box. For example, to buy a certificate to the value of €500, enter ","height":71});
															thumbnails[5629547] = clik.newPhoto({"id":5629547,"src":"bog_12_thumb.jpg","galleries_id":110668,"server_id":1,"link":"photo_5629547.html","width":74,"caption":"Bog","height":100});
															thumbnails[5629874] = clik.newPhoto({"id":5629874,"src":"bog_pool_thumb.jpg","galleries_id":299382,"server_id":1,"link":"photo_5629874.html","width":68,"caption":"Bog Pool","height":100});
															thumbnails[5674863] = clik.newPhoto({"id":5674863,"src":"The_last_Summer_8078B1A2-1D09-001F-99EEF20150974D27_thumb.JPG","galleries_id":110668,"server_id":1,"link":"photo_5674863.html","width":100,"caption":"The Last Summer, Greystones Harbour","height":38});
															thumbnails[5674886] = clik.newPhoto({"id":5674886,"src":"martin_naughton_thumb.JPG","galleries_id":299363,"server_id":1,"link":"photo_5674886.html","width":65,"caption":"Portrait of Martin Naughton","height":100});
															thumbnails[5674889] = clik.newPhoto({"id":5674889,"src":"Portrait_Martin_Naughton_detail_thumb.JPG","galleries_id":299363,"server_id":1,"link":"photo_5674889.html","width":82,"caption":"detail of the Portrait of Martin Naughton, 2009","height":100});
															thumbnails[5674930] = clik.newPhoto({"id":5674930,"src":"Lilies_in_Spring_last_version_thumb.JPG","galleries_id":299379,"server_id":1,"link":"photo_5674930.html","width":63,"caption":"Lilies in Spring","height":100});
															thumbnails[5675016] = clik.newPhoto({"id":5675016,"src":"road_home_thumb.jpg","galleries_id":321541,"server_id":1,"link":"photo_5675016.html","width":75,"caption":"The Road Home","height":100});
															thumbnails[5675048] = clik.newPhoto({"id":5675048,"src":"Poached_Eggs_80B6D0F4-1D09-001F-994788FC21A785DC_thumb.JPG","galleries_id":299379,"server_id":1,"link":"photo_5675048.html","width":100,"caption":"Poached Eggs","height":79});
															thumbnails[5675098] = clik.newPhoto({"id":5675098,"src":"wild_blue1_80BF369C-1D09-001F-992113A41030D420_thumb.JPG","galleries_id":57228,"server_id":1,"link":"photo_5675098.html","width":100,"caption":"Wild Blue -Giclee Print Limited edition of 25, on canvas","height":62});
															thumbnails[5675732] = clik.newPhoto({"id":5675732,"src":"selskar2010_thumb.JPG","galleries_id":299378,"server_id":1,"link":"photo_5675732.html","width":160,"caption":"Selskar St., Wexford","height":430});
															thumbnails[5888591] = clik.newPhoto({"id":5888591,"src":"ciabatta_thumb.JPG","galleries_id":57141,"server_id":1,"link":"photo_5888591.html","width":100,"caption":"Dreaming of Ciabatta","height":68});
															thumbnails[5888596] = clik.newPhoto({"id":5888596,"src":"the_samovar_thumb.JPG","galleries_id":57141,"server_id":1,"link":"photo_5888596.html","width":100,"caption":"The Samovar","height":85});
															thumbnails[5888597] = clik.newPhoto({"id":5888597,"src":"dr_poppel_thumb.jpg","galleries_id":57141,"server_id":1,"link":"photo_5888597.html","width":72,"caption":"Dr Poppel","height":100});
															thumbnails[5888599] = clik.newPhoto({"id":5888599,"src":"martin_thumb.JPG","galleries_id":299363,"server_id":1,"link":"photo_5888599.html","width":85,"caption":"Drawing ","height":100});
															thumbnails[5888600] = clik.newPhoto({"id":5888600,"src":"Storm_2010004_thumb.JPG","galleries_id":299361,"server_id":1,"link":"photo_5888600.html","width":100,"caption":"Storm","height":74});
															thumbnails[6657168] = clik.newPhoto({"id":6657168,"src":"david_portrait_thumb.JPG","galleries_id":299363,"server_id":1,"link":"photo_6657168.html","width":80,"caption":"","height":100});
															thumbnails[6657172] = clik.newPhoto({"id":6657172,"src":"9011_thumb.JPG","galleries_id":321541,"server_id":1,"link":"photo_6657172.html","width":100,"caption":"Road to the Sally Gap","height":65});
															thumbnails[6657192] = clik.newPhoto({"id":6657192,"src":"2009021_thumb.JPG","galleries_id":321541,"server_id":1,"link":"photo_6657192.html","width":100,"caption":"Lough Tay","height":63});
															thumbnails[6914816] = clik.newPhoto({"id":6914816,"src":"Red_hot_pokers_thumb.JPG","galleries_id":299379,"server_id":1,"link":"photo_6914816.html","width":36,"caption":"Red Hot Pokers","height":100});
															thumbnails[6996154] = clik.newPhoto({"id":6996154,"src":"Lilies_in_summer2008073_thumb.JPG","galleries_id":299379,"server_id":1,"link":"photo_6996154.html","width":100,"caption":"Lilies in Summer","height":61});
															thumbnails[7326882] = clik.newPhoto({"id":7326882,"src":"Mayo_bog_small_thumb.JPG","galleries_id":299382,"server_id":1,"link":"photo_7326882.html","width":67,"caption":"","height":100});
															thumbnails[7435451] = clik.newPhoto({"id":7435451,"src":"Carrownisky_thumb.JPG","galleries_id":299361,"server_id":1,"link":"photo_7435451.html","width":160,"caption":"Carrownisky Beach, Co. Mayo","height":112});
															thumbnails[7435470] = clik.newPhoto({"id":7435470,"src":"Puesta_del_sol1_thumb.JPG","galleries_id":299361,"server_id":1,"link":"photo_7435470.html","width":160,"caption":"Sunset at sea","height":120});
															thumbnails[7435474] = clik.newPhoto({"id":7435474,"src":"Tormenta_1_thumb.JPG","galleries_id":299361,"server_id":1,"link":"photo_7435474.html","width":160,"caption":"Tormenta 1","height":119});
															thumbnails[7435494] = clik.newPhoto({"id":7435494,"src":"Tormenta_2_thumb.JPG","galleries_id":299361,"server_id":1,"link":"photo_7435494.html","width":160,"caption":"","height":216});
															thumbnails[8254013] = clik.newPhoto({"id":8254013,"src":"the_avenue_thumb.JPG","galleries_id":299379,"server_id":1,"link":"photo_8254013.html","width":160,"caption":"The Avenue","height":121});
															thumbnails[8254015] = clik.newPhoto({"id":8254015,"src":"Maple_and_lemon_grass_thumb.JPG","galleries_id":299379,"server_id":1,"link":"photo_8254015.html","width":160,"caption":"Maple and Lemon Grass","height":119});
															thumbnails[8304061] = clik.newPhoto({"id":8304061,"src":"before_the_race_sm1_thumb.JPG","galleries_id":299361,"server_id":1,"link":"photo_8304061.html","width":160,"caption":"Before the Race","height":223});
															thumbnails[8758600] = clik.newPhoto({"id":8758600,"src":"rocks_at_eirlach_thumb.JPG","galleries_id":461199,"server_id":1,"link":"photo_8758600.html","width":160,"caption":"Rocks at Eirlach","height":103});
															thumbnails[2759808] = clik.newPhoto({"id":2759808,"src":"Near the Slip_thumb.JPG","galleries_id":110668,"server_id":1,"link":"photo_2759808.html","width":100,"caption":"From Knockmahon<br>\r\n","height":80});
															thumbnails[5648893] = clik.newPhoto({"id":5648893,"src":"Self_portrait_2006_thumb.jpg","galleries_id":299363,"server_id":1,"link":"photo_5648893.html","width":81,"caption":"Self portrait ","height":100});
															thumbnails[8755976] = clik.newPhoto({"id":8755976,"src":"Golden_sands_deep_thumb.JPG","galleries_id":461199,"server_id":1,"link":"photo_8755976.html","width":160,"caption":"Golden Sands, Deep Water","height":242});
															thumbnails[983554] = clik.newPhoto({"id":983554,"src":"evening_before_tsunami1.jpg","galleries_id":57228,"server_id":1,"link":"photo_983554.html","width":100,"caption":"Evening Before the Tsunami","height":69});
															thumbnails[2753112] = clik.newPhoto({"id":2753112,"src":"dark lillies_thumb.JPG","galleries_id":110668,"server_id":1,"link":"photo_2753112.html","width":100,"caption":"Dark Lillies","height":72});
															thumbnails[5576362] = clik.newPhoto({"id":5576362,"src":"Rose_best_thumb.jpg","galleries_id":299363,"server_id":1,"link":"photo_5576362.html","width":65,"caption":"Portrait of Rose with Vermillion Scarf","height":100});
															thumbnails[3825034] = clik.newPhoto({"id":3825034,"src":"the_quay_wicklow_thumb.jpg","galleries_id":57228,"server_id":1,"link":"photo_3825034.html","width":100,"caption":"The Quay, wicklow","height":70});
															thumbnails[3825061] = clik.newPhoto({"id":3825061,"src":"The_holding_thumb.jpg","galleries_id":57228,"server_id":1,"link":"photo_3825061.html","width":100,"caption":"'The Holding'","height":63});
															thumbnails[8755985] = clik.newPhoto({"id":8755985,"src":"Calm_day_Eirlach_thumb_DAA4D35A-1EC9-D45B-1C91FEDF025544C4.JPG","galleries_id":461199,"server_id":1,"link":"photo_8755985.html","width":160,"caption":"Calm Day at Eirlach","height":242});
															thumbnails[3825092] = clik.newPhoto({"id":3825092,"src":"six_mile_point_thumb.jpg","galleries_id":57228,"server_id":1,"link":"photo_3825092.html","width":100,"caption":"Six Mile Point, Newcastle, Co. Wicklow","height":69});
															thumbnails[8755994] = clik.newPhoto({"id":8755994,"src":"Golden_Pool_thumb.JPG","galleries_id":461199,"server_id":1,"link":"photo_8755994.html","width":160,"caption":"Golden Pool","height":252});
															thumbnails[2506015] = clik.newPhoto({"id":2506015,"src":"Afternoon Sun_thumb.JPG","galleries_id":110668,"server_id":1,"link":"photo_2506015.html","width":100,"caption":"Afternoon Sun","height":66});
															thumbnails[3197284] = clik.newPhoto({"id":3197284,"src":"elenna 2_thumb.JPG","galleries_id":299363,"server_id":1,"link":"photo_3197284.html","width":67,"caption":"Elena","height":100});
															thumbnails[8755928] = clik.newPhoto({"id":8755928,"src":"2010011_thumb_DAD88745-1EC9-D45B-1C0F6BEA66CA8286.JPG","galleries_id":461199,"server_id":1,"link":"photo_8755928.html","width":160,"caption":"Rockpool 111","height":220});
															thumbnails[8755962] = clik.newPhoto({"id":8755962,"src":"detail_of_rockpool_3_thumb.JPG","galleries_id":461199,"server_id":1,"link":"photo_8755962.html","width":160,"caption":"detail of Rockpool 111","height":130});
															thumbnails[938184] = clik.newPhoto({"id":938184,"src":"Sweetpeas3.jpg","galleries_id":57141,"server_id":1,"link":"photo_938184.html","width":86,"caption":"Sweetpeas","height":100});
															thumbnails[984619] = clik.newPhoto({"id":984619,"src":"fanoreJPG1.jpg","galleries_id":299361,"server_id":1,"link":"photo_984619.html","width":100,"caption":"Fanore 11","height":75});
															thumbnails[3830425] = clik.newPhoto({"id":3830425,"src":"pond_fauve_thumb.JPG","galleries_id":110668,"server_id":1,"link":"photo_3830425.html","width":100,"caption":"Lily Pond, Fauve","height":74});
															thumbnails[3830402] = clik.newPhoto({"id":3830402,"src":"Pond_east_thumb.JPG","galleries_id":299379,"server_id":1,"link":"photo_3830402.html","width":100,"caption":"Mount Usher Pond, East","height":75});
															thumbnails[3830472] = clik.newPhoto({"id":3830472,"src":"derelict_thumb.JPG","galleries_id":110668,"server_id":1,"link":"photo_3830472.html","width":100,"caption":"Derelict House, Mount Usher Gardens","height":75});
															thumbnails[984617] = clik.newPhoto({"id":984617,"src":"painting_in_mt_usher3.jpg","galleries_id":299379,"server_id":1,"link":"photo_984617.html","width":88,"caption":"Painting the Lilly Pond in Mount Usher Gardens, Ashford, Co. Wicklow","height":100});
															thumbnails[938182] = clik.newPhoto({"id":938182,"src":"Sugarloaf21.jpg","galleries_id":110668,"server_id":1,"link":"photo_938182.html","width":100,"caption":"The Sugar Loaf, Co. Wicklow","height":61});
															thumbnails[938161] = clik.newPhoto({"id":938161,"src":"Field-July7.jpg","galleries_id":110668,"server_id":1,"link":"photo_938161.html","width":100,"caption":"The Willow Field, July","height":60});
															thumbnails[984616] = clik.newPhoto({"id":984616,"src":"Lilly_pond_mount_usher3.jpg","galleries_id":110668,"server_id":1,"link":"photo_984616.html","width":100,"caption":"Lily Pond, Mount Usher Gardens","height":75});
															thumbnails[5674239] = clik.newPhoto({"id":5674239,"src":"bog_in_May_thumb.JPG","galleries_id":299382,"server_id":1,"link":"photo_5674239.html","width":100,"caption":"","height":66});
															thumbnails[938163] = clik.newPhoto({"id":938163,"src":"leabeg21.jpg","galleries_id":110668,"server_id":1,"link":"photo_938163.html","width":100,"caption":"Leabeg.... rainy days... flooded fields...","height":65});
															thumbnails[938292] = clik.newPhoto({"id":938292,"src":"CAOIMHE22.jpg","galleries_id":299363,"server_id":1,"link":"photo_938292.html","width":100,"caption":"Caoimhe","height":69});
															thumbnails[938218] = clik.newPhoto({"id":938218,"src":"The-Goose-Field,-111.jpg","galleries_id":110668,"server_id":1,"link":"photo_938218.html","width":100,"caption":"The Goose Field at Blackditch Reserve in Co. Wicklow","height":67});
															thumbnails[938148] = clik.newPhoto({"id":938148,"src":"fanore3.21.jpg","galleries_id":299361,"server_id":1,"link":"photo_938148.html","width":100,"caption":"Preparing my canvas with a red ground for 'Fanore 11'.  ","height":75});
															thumbnails[938312] = clik.newPhoto({"id":938312,"src":"siadhbh1.jpg","galleries_id":299363,"server_id":1,"link":"photo_938312.html","width":71,"caption":"Siadbh","height":100});
															thumbnails[938349] = clik.newPhoto({"id":938349,"src":"wetlandsblue23.jpg","galleries_id":110668,"server_id":1,"link":"photo_938349.html","width":100,"caption":"January, Blackditch ","height":39});
															thumbnails[986222] = clik.newPhoto({"id":986222,"src":"carrownikey_13.jpg","galleries_id":110668,"server_id":1,"link":"photo_986222.html","width":100,"caption":"Carrowniskey Beach... January 2006 ","height":64});
															thumbnails[5674310] = clik.newPhoto({"id":5674310,"src":"lara_psd_thumb.jpg","galleries_id":299363,"server_id":1,"link":"photo_5674310.html","width":71,"caption":"Girl with Cello","height":100});
															thumbnails[5674236] = clik.newPhoto({"id":5674236,"src":"blanket_bog_thumb.JPG","galleries_id":110668,"server_id":1,"link":"photo_5674236.html","width":100,"caption":"Blanket Bog, Roundstone","height":67});
															thumbnails[5887761] = clik.newPhoto({"id":5887761,"src":"billy_head_thumb.JPG","galleries_id":299363,"server_id":1,"link":"photo_5887761.html","width":75,"caption":"Detail of Portrait of Billy","height":100});
															thumbnails[5674262] = clik.newPhoto({"id":5674262,"src":"donal_80113CC5-1D09-001F-99B6BFF5E7D94B8A_thumb.jpg","galleries_id":299363,"server_id":1,"link":"photo_5674262.html","width":73,"caption":"Portrait of Donal Toolan, Disability Rights Activist and Actor","height":100});
															thumbnails[1633710] = clik.newPhoto({"id":1633710,"src":"Still_Water_thumb.JPG","galleries_id":315958,"server_id":1,"link":"photo_1633710.html","width":75,"caption":"Painting ","height":100});
															thumbnails[1768323] = clik.newPhoto({"id":1768323,"src":"with Denis_thumb.JPG","galleries_id":315958,"server_id":1,"link":"photo_1768323.html","width":100,"caption":"Painting Winter Solstice, 2007","height":74});
															thumbnails[5629523] = clik.newPhoto({"id":5629523,"src":"august_the_Field1_thumb.jpg","galleries_id":315958,"server_id":1,"link":"photo_5629523.html","width":72,"caption":"August, The Field","height":100});
															thumbnails[5629545] = clik.newPhoto({"id":5629545,"src":"Blackditch_August_thumb.jpg","galleries_id":315958,"server_id":1,"link":"photo_5629545.html","width":40,"caption":"August, Blackditch","height":100});
															thumbnails[5629864] = clik.newPhoto({"id":5629864,"src":"Sweetpeas_thumb.jpg","galleries_id":320064,"server_id":1,"link":"photo_5629864.html","width":85,"caption":"Sweetpeas","height":100});
															thumbnails[5674817] = clik.newPhoto({"id":5674817,"src":"Blackditch_August_806D4E88-1D09-001F-99BBBBD80EF97480_thumb.jpg","galleries_id":315958,"server_id":1,"link":"photo_5674817.html","width":40,"caption":"August, Blackditch","height":100});
															thumbnails[8254006] = clik.newPhoto({"id":8254006,"src":"greenpool2011_thumb.JPG","galleries_id":315958,"server_id":1,"link":"photo_8254006.html","width":160,"caption":"Green Pool","height":240});
															thumbnails[5629724] = clik.newPhoto({"id":5629724,"src":"rockpool_thumb.jpg","galleries_id":315958,"server_id":1,"link":"photo_5629724.html","width":68,"caption":"Rock Pool","height":100});
															thumbnails[5629689] = clik.newPhoto({"id":5629689,"src":"Mayo_bog_5284ADE1-24E8-5EC4-4F4A63C6D197EFE8_thumb.jpg","galleries_id":320064,"server_id":1,"link":"photo_5629689.html","width":67,"caption":"Mayo Bog","height":100});
															thumbnails[5629656] = clik.newPhoto({"id":5629656,"src":"little_blue_orange_thumb.jpg","galleries_id":320064,"server_id":1,"link":"photo_5629656.html","width":36,"caption":"Little Blue & Orange","height":100});
															thumbnails[3934892] = clik.newPhoto({"id":3934892,"src":"up_my_garden_path_thumb.JPG","galleries_id":320064,"server_id":1,"link":"photo_3934892.html","width":100,"caption":"Garden Path","height":66});
															thumbnails[5318881] = clik.newPhoto({"id":5318881,"src":"before_the_storm_thumb.JPG","galleries_id":320064,"server_id":1,"link":"photo_5318881.html","width":100,"caption":"Sea, Sky & The Square Mile Opening Night March 2008. ","height":39});
															thumbnails[1633303] = clik.newPhoto({"id":1633303,"src":"Five_Mile_point_Evening_thumb.JPG","galleries_id":315958,"server_id":1,"link":"photo_1633303.html","width":100,"caption":"Winter's Eve, Five Mile Point","height":39});
															thumbnails[3830315] = clik.newPhoto({"id":3830315,"src":"Still_Water1_thumb.JPG","galleries_id":315958,"server_id":1,"link":"photo_3830315.html","width":65,"caption":"Still Water","height":100});
															thumbnails[1901034] = clik.newPhoto({"id":1901034,"src":"blue yellow evening_thumb.JPG","galleries_id":315958,"server_id":1,"link":"photo_1901034.html","width":100,"caption":"Yellow and Blue evening","height":37});
															thumbnails[1913716] = clik.newPhoto({"id":1913716,"src":"Triple Aqua_thumb.JPG","galleries_id":315958,"server_id":1,"link":"photo_1913716.html","width":100,"caption":"Triple Aqua","height":65});
															thumbnails[1913728] = clik.newPhoto({"id":1913728,"src":"rushes in winter_thumb.JPG","galleries_id":320064,"server_id":1,"link":"photo_1913728.html","width":100,"caption":"Rushes in Winter","height":38});
															thumbnails[2752815] = clik.newPhoto({"id":2752815,"src":"blue green dyke_thumb.JPG","galleries_id":315958,"server_id":1,"link":"photo_2752815.html","width":37,"caption":"Blue Green Dyke, Newcastle, Co. Wicklow","height":100});
															thumbnails[984791] = clik.newPhoto({"id":984791,"src":"KILLOUGHTER_window1.jpg","galleries_id":315958,"server_id":1,"link":"photo_984791.html","width":100,"caption":"From Killoughter, Co. Wicklow","height":37});
															thumbnails[938089] = clik.newPhoto({"id":938089,"src":"After-Christmas--3.jpg","galleries_id":315958,"server_id":1,"link":"photo_938089.html","width":100,"caption":"Painting 'January Blackditch","height":75});
															thumbnails[938158] = clik.newPhoto({"id":938158,"src":"detail-of-Sea-&-Sky-at-Six-6.jpg","galleries_id":315958,"server_id":1,"link":"photo_938158.html","width":100,"caption":"Detail of The Station House, Six Mile Point, NewcastleThis shingly shore is one of my favourite places to paint and one to which I keep returning.","height":59});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[458262] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Calendar 2012","link":"section554708.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"section554708","featured_images":"","id":458262,"singleSection":true});				  						galleries[320064] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Paintings from a Thousand Days","link":"section357919_320064.html","maxRecords":0.0,"photoIDs":[5629864.0,5629689.0,5629656.0,3934892.0,5318881.0,1913728.0],"skipIndex":0,"section_code":"section357919","featured_images":"5629689,5629656","id":320064,"singleSection":false});				  						galleries[315958] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Sea Sky & the Square Mile","link":"section357919_315958.html","maxRecords":0.0,"photoIDs":[1633710.0,1768323.0,5629523.0,5629545.0,5674817.0,8254006.0,5629724.0,1633303.0,3830315.0,1901034.0,1913716.0,2752815.0,984791.0,938089.0,938158.0],"skipIndex":0,"section_code":"section357919","featured_images":"5629724,5629545,5629523,2752815,1633710,1633303,984791","id":315958,"singleSection":false});				  						galleries[461199] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Rock Pool Series","link":"section51135_461199.html","maxRecords":0.0,"photoIDs":[8758600.0,8755976.0,8755985.0,8755994.0,8755928.0,8755962.0],"skipIndex":0,"section_code":"section51135","featured_images":"8758600,8755994,8755985,8755976,8755962,8755928","id":461199,"singleSection":false});				  						galleries[299382] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Connemara","link":"section51135_299382.html","maxRecords":0.0,"photoIDs":[3197276.0,5629874.0,7326882.0,5674239.0],"skipIndex":0,"section_code":"section51135","featured_images":"7326882,5674239,5629874,3197276","id":299382,"singleSection":false});				  						galleries[299379] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gardens","link":"section51135_299379.html","maxRecords":0.0,"photoIDs":[5674930.0,5675048.0,6914816.0,6996154.0,8254013.0,8254015.0,3830402.0,984617.0],"skipIndex":0,"section_code":"section51135","featured_images":"6996154,6914816","id":299379,"singleSection":false});				  						galleries[299361] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Coastal","link":"section51135_299361.html","maxRecords":0.0,"photoIDs":[2752890.0,2752943.0,3934969.0,5888600.0,7435451.0,7435470.0,7435474.0,7435494.0,8304061.0,984619.0,938148.0],"skipIndex":0,"section_code":"section51135","featured_images":"8304061,7435494,7435474,7435451,5888600,2752943,938148","id":299361,"singleSection":false});				  						galleries[299363] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portraits","link":"section51135_299363.html","maxRecords":0.0,"photoIDs":[5674886.0,5674889.0,5888599.0,6657168.0,5648893.0,5576362.0,3197284.0,938292.0,938312.0,5674310.0,5887761.0,5674262.0],"skipIndex":0,"section_code":"section51135","featured_images":"6657168,5674886,5674310,938312","id":299363,"singleSection":false});				  						galleries[299378] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Urban","link":"section51135_299378.html","maxRecords":0.0,"photoIDs":[3934875.0,3934981.0,5675732.0],"skipIndex":0,"section_code":"section51135","featured_images":3934875,"id":299378,"singleSection":false});				  						galleries[57228] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Giclée prints","link":"section51135_57228.html","maxRecords":0.0,"photoIDs":[4983662.0,5675098.0,983554.0,3825034.0,3825061.0,3825092.0],"skipIndex":0,"section_code":"section51135","featured_images":983554.0,"id":57228,"singleSection":false});				  						galleries[57141] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Still Life","link":"section51135_57141.html","maxRecords":0.0,"photoIDs":[5888591.0,5888596.0,5888597.0,938184.0],"skipIndex":0,"section_code":"section51135","featured_images":938184.0,"id":57141,"singleSection":false});				  						galleries[110668] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Archive","link":"section51135_110668.html","maxRecords":0.0,"photoIDs":[938224.0,1913782.0,2752968.0,2753128.0,2753246.0,3197338.0,3197342.0,5629547.0,5674863.0,2759808.0,2753112.0,2506015.0,3830425.0,3830472.0,938182.0,938161.0,984616.0,938163.0,938218.0,938349.0,986222.0,5674236.0],"skipIndex":0,"section_code":"section51135","featured_images":"2753246,2506015,986222,984616,938349,938224,938182,938163,938161","id":110668,"singleSection":false});				  						galleries[321541] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"The Road Home","link":"section51135_321541.html","maxRecords":0.0,"photoIDs":[5675016.0,6657172.0,6657192.0],"skipIndex":0,"section_code":"section51135","featured_images":"6657192,6657172,5675016","id":321541,"singleSection":false});				  						galleries[226403] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gift Certificate","link":"section51135_226403.html","maxRecords":0.0,"photoIDs":[5557833.0],"skipIndex":0,"section_code":"section51135","featured_images":5557833.0,"id":226403,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[234875] = '5674817,5629545,5629656,5318881,3830315,1901034,1913728,2752815';
imageSets[1] = '8758600,8758597,8758503,8755985,8755994';
imageSets[2] = '8304061,7435494,7435474,7435451,7025107,6996154,6914816,6657168,5888600,5674886,5674842,5629553,5629545,5629523,3890955,3890949,2753246,2752943,2490892,2490882,1633710,938224,3890796,983554,5629724,5629689,5629656,2506015,938184,1633303,2752815,984791,938182,984616,938161,938163,938148,938312,938349,986222,941480,5674310';
imageSets[3] = '5674886,5674863,5629553,5557833,5146031,4983662,4983539,3934981,3934969,5629724,5629689';
imageSets[222052] = '5675016,5674863,2753246,5576362';
imageSets[244245] = '8307642';
imageSets[222166] = '3890815,3890814,3890810,3890804,3890803';
imageSets[236350] = '5675732,5675098,5674930,2753246,2759808,3825034,3830425';
imageSets[236352] = '5629874,5629864,5629547,5629523,5648893,5629724,5629689';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/maryduffy/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/maryduffy/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/maryduffy/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/maryduffy/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/maryduffy/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/maryduffy/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/maryduffy/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/maryduffy/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/maryduffy/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/maryduffy/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/maryduffy/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/maryduffy/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/maryduffy/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/maryduffy/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/maryduffy/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/maryduffy/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/maryduffy/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/maryduffy/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/maryduffy/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/maryduffy/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/maryduffy/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/maryduffy/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/maryduffy/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/maryduffy/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/maryduffy/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/maryduffy/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/maryduffy/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = (backgrounds || photos || {})[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'section51135.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 && 'section51135' != '') {
					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 = 'Mary Duffy\nBold, Vibrant & Energetic: ' + 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 list').show();}
				else{
					$('#paymentConfirm', root).text('Item added to list').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>     </p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &euro;' + (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>   </p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp += '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
		else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
																		temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="maryduffy@ireland.com">';
					temp += '<input type="hidden" name="currency_code" value="EUR">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Buy\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="maryduffy@ireland.com">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View list\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					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;
	}
}

			

