window.thumbnails = {};
															thumbnails[1362344] = clik.newPhoto({"id":1362344,"src":"Adrigole-Church-[tn]3_thumb.jpg","galleries_id":84880,"server_id":18,"link":"photo_1362344.html","width":130,"caption":"Adrigole Church","height":78});
															thumbnails[1368433] = clik.newPhoto({"id":1368433,"src":"Post Box [TN]_thumb.jpg","galleries_id":84880,"server_id":18,"link":"photo_1368433.html","width":130,"caption":"irish postbox","height":88});
															thumbnails[1371837] = clik.newPhoto({"id":1371837,"src":"493-E6-[TN] 1_thumb.jpg","galleries_id":84880,"server_id":18,"link":"photo_1371837.html","width":130,"caption":"'Olive' Tree","height":86});
															thumbnails[1371840] = clik.newPhoto({"id":1371840,"src":"Flute Player_thumb.jpg","galleries_id":95763,"server_id":18,"link":"photo_1371840.html","width":130,"caption":"flute player","height":87});
															thumbnails[1371867] = clik.newPhoto({"id":1371867,"src":"TN2_thumb.jpg","galleries_id":95751,"server_id":18,"link":"photo_1371867.html","width":130,"caption":"gannets","height":82});
															thumbnails[1371880] = clik.newPhoto({"id":1371880,"src":"'Fiona-Patricia'-[TN]_thumb.jpg","galleries_id":95753,"server_id":18,"link":"photo_1371880.html","width":130,"caption":"'Fiona Patricia'","height":87});
															thumbnails[1371956] = clik.newPhoto({"id":1371956,"src":"Summer's-Day-[TN]_thumb.jpg","galleries_id":95756,"server_id":18,"link":"photo_1371956.html","width":130,"caption":"Summer's Day","height":82});
															thumbnails[1371976] = clik.newPhoto({"id":1371976,"src":"Horse-&-Cart-[TN]_thumb.jpg","galleries_id":95756,"server_id":18,"link":"photo_1371976.html","width":130,"caption":"Horse & Cart","height":86});
															thumbnails[1372055] = clik.newPhoto({"id":1372055,"src":"Terri-[TN]_thumb.jpg","galleries_id":95760,"server_id":18,"link":"photo_1372055.html","width":130,"caption":"Terry","height":86});
															thumbnails[1372058] = clik.newPhoto({"id":1372058,"src":"'Anima'-[TN]_thumb.jpg","galleries_id":95762,"server_id":18,"link":"photo_1372058.html","width":130,"caption":"'Anima'","height":86});
															thumbnails[1372068] = clik.newPhoto({"id":1372068,"src":"Cello 2-[TN]_thumb.jpg","galleries_id":95763,"server_id":18,"link":"photo_1372068.html","width":130,"caption":"Cellist","height":87});
															thumbnails[1372080] = clik.newPhoto({"id":1372080,"src":"Nealie-Sullivan-[TN]_thumb.jpg","galleries_id":95749,"server_id":18,"link":"photo_1372080.html","width":130,"caption":"Nealie Sullivan","height":86});
															thumbnails[1372094] = clik.newPhoto({"id":1372094,"src":"Steel-Bird-[TN]_thumb.jpg","galleries_id":95762,"server_id":18,"link":"photo_1372094.html","width":130,"caption":"Steel Bird","height":87});
															thumbnails[1380011] = clik.newPhoto({"id":1380011,"src":"Boreen-[tn]2_thumb.jpg","galleries_id":84880,"server_id":18,"link":"photo_1380011.html","width":130,"caption":"Boreen","height":83});
															thumbnails[1380029] = clik.newPhoto({"id":1380029,"src":"Sid-&-Charlie-[TN]_thumb.jpg","galleries_id":95760,"server_id":18,"link":"photo_1380029.html","width":130,"caption":"Sid & Charlie","height":91});
															thumbnails[1380032] = clik.newPhoto({"id":1380032,"src":"Three-Hens-[TN]_thumb.jpg","galleries_id":95760,"server_id":18,"link":"photo_1380032.html","width":130,"caption":"Three Hens","height":84});
															thumbnails[1380046] = clik.newPhoto({"id":1380046,"src":"Fisherman 1[TN]_thumb.jpg","galleries_id":95753,"server_id":18,"link":"photo_1380046.html","width":130,"caption":"Fisherman","height":86});
															thumbnails[1380050] = clik.newPhoto({"id":1380050,"src":"Car-in-mist-[TN]1_thumb.jpg","galleries_id":84880,"server_id":18,"link":"photo_1380050.html","width":130,"caption":"'Soft Day'","height":80});
															thumbnails[1380248] = clik.newPhoto({"id":1380248,"src":"Tim-Goulding---Painter[TN]_thumb.jpg","galleries_id":95749,"server_id":18,"link":"photo_1380248.html","width":130,"caption":"Tim Goulding","height":86});
															thumbnails[1383285] = clik.newPhoto({"id":1383285,"src":"Small Boats[TN]_thumb.jpg","galleries_id":95751,"server_id":18,"link":"photo_1383285.html","width":130,"caption":"Small Boats","height":91});
															thumbnails[1389644] = clik.newPhoto({"id":1389644,"src":"Cormac-74c6[TN]_thumb.jpg","galleries_id":95749,"server_id":18,"link":"photo_1389644.html","width":130,"caption":"Cormac Boydell","height":86});
															thumbnails[1389665] = clik.newPhoto({"id":1389665,"src":"Alastair---Dustman[TN]_thumb.jpg","galleries_id":95749,"server_id":18,"link":"photo_1389665.html","width":130,"caption":"Alistair","height":85});
															thumbnails[1389854] = clik.newPhoto({"id":1389854,"src":"John-'Boat'-288D1[TN]_thumb.jpg","galleries_id":95749,"server_id":18,"link":"photo_1389854.html","width":130,"caption":"John 'the Boat'","height":86});
															thumbnails[1390247] = clik.newPhoto({"id":1390247,"src":"Marco-&-Flora[TN]_thumb.jpg","galleries_id":95749,"server_id":18,"link":"photo_1390247.html","width":130,"caption":"Marco & Flora","height":87});
															thumbnails[1400915] = clik.newPhoto({"id":1400915,"src":"OldCitroen 213-B3-[TN]_thumb.jpg","galleries_id":84880,"server_id":18,"link":"photo_1400915.html","width":130,"caption":"Old Citroen","height":83});
															thumbnails[1400919] = clik.newPhoto({"id":1400919,"src":"Road-2-[TN]_thumb.jpg","galleries_id":84880,"server_id":18,"link":"photo_1400919.html","width":130,"caption":"Molly","height":78});
															thumbnails[1400920] = clik.newPhoto({"id":1400920,"src":"Tin-Mine-[TN]_thumb.jpg","galleries_id":84880,"server_id":18,"link":"photo_1400920.html","width":130,"caption":"Tin Mine","height":86});
															thumbnails[1400921] = clik.newPhoto({"id":1400921,"src":"Ice-Hose-[TN]_thumb.jpg","galleries_id":95753,"server_id":18,"link":"photo_1400921.html","width":130,"caption":"Ice Hose","height":87});
															thumbnails[1404807] = clik.newPhoto({"id":1404807,"src":"568-D6-[cobhChurch]-[TN]_thumb.jpg","galleries_id":84880,"server_id":18,"link":"photo_1404807.html","width":130,"caption":"Cobh Cathedral","height":86});
															thumbnails[1407426] = clik.newPhoto({"id":1407426,"src":"167-G2=-[Rio][TN]_thumb.jpg","galleries_id":95751,"server_id":18,"link":"photo_1407426.html","width":130,"caption":"'Rio'","height":86});
															thumbnails[1408051] = clik.newPhoto({"id":1408051,"src":"Violin-[TN]_thumb.jpg","galleries_id":95763,"server_id":18,"link":"photo_1408051.html","width":130,"caption":"Violin Case","height":87});
															thumbnails[1408071] = clik.newPhoto({"id":1408071,"src":"Violinist-[TN]_thumb.jpg","galleries_id":95763,"server_id":18,"link":"photo_1408071.html","width":130,"caption":"Violinist","height":89});
															thumbnails[1408073] = clik.newPhoto({"id":1408073,"src":"483-E1-[TN]_thumb.jpg","galleries_id":95763,"server_id":18,"link":"photo_1408073.html","width":130,"caption":"Violin Player","height":88});
															thumbnails[1408092] = clik.newPhoto({"id":1408092,"src":"Cobbler-[TN]_thumb.jpg","galleries_id":95756,"server_id":18,"link":"photo_1408092.html","width":130,"caption":"Jim the cobbler","height":86});
															thumbnails[1408103] = clik.newPhoto({"id":1408103,"src":"Horse-&-Cart-2-[TN]_thumb.jpg","galleries_id":95756,"server_id":18,"link":"photo_1408103.html","width":130,"caption":"Horse & Cart 2","height":87});
															thumbnails[1408105] = clik.newPhoto({"id":1408105,"src":"LeavingHome-[TN]_thumb.jpg","galleries_id":95756,"server_id":18,"link":"photo_1408105.html","width":130,"caption":"'Leaving Home'","height":79});
															thumbnails[1408109] = clik.newPhoto({"id":1408109,"src":"priest [TN]_thumb.jpg","galleries_id":95756,"server_id":18,"link":"photo_1408109.html","width":130,"caption":"Priest","height":86});
															thumbnails[1408154] = clik.newPhoto({"id":1408154,"src":"PeppiWilly[TN]1_thumb.jpg","galleries_id":96201,"server_id":18,"link":"photo_1408154.html","width":130,"caption":"Willy","height":85});
															thumbnails[1434941] = clik.newPhoto({"id":1434941,"src":"'Cahermore [TN]_thumb.jpg","galleries_id":95751,"server_id":18,"link":"photo_1434941.html","width":130,"caption":"Cahermore","height":85});
															thumbnails[1435141] = clik.newPhoto({"id":1435141,"src":"Communio-Day-[TN]_thumb.jpg","galleries_id":95756,"server_id":18,"link":"photo_1435141.html","width":130,"caption":"Communion Day","height":91});
															thumbnails[1435153] = clik.newPhoto({"id":1435153,"src":"HH_thumb.Tradrask[TN].jpg","galleries_id":84880,"server_id":18,"link":"photo_1435153.html","width":130,"caption":"Hungry Hill","height":84});
															thumbnails[1435402] = clik.newPhoto({"id":1435402,"src":"cLEG[TN]_thumb.jpg","galleries_id":96201,"server_id":18,"link":"photo_1435402.html","width":130,"caption":"leg at window","height":86});
															thumbnails[1436292] = clik.newPhoto({"id":1436292,"src":"fishermanGR[TN]_thumb.jpg","galleries_id":96201,"server_id":18,"link":"photo_1436292.html","width":130,"caption":"greek fisherman","height":88});
															thumbnails[1436295] = clik.newPhoto({"id":1436295,"src":"windmillGR[TN]_thumb.jpg","galleries_id":96201,"server_id":18,"link":"photo_1436295.html","width":130,"caption":"greek windmill","height":88});
															thumbnails[1454150] = clik.newPhoto({"id":1454150,"src":"sailing Boat in Bantry Bay -[TN]_thumb.jpg","galleries_id":95751,"server_id":18,"link":"photo_1454150.html","width":130,"caption":"Bantry Bay","height":85});
															thumbnails[1456535] = clik.newPhoto({"id":1456535,"src":"hAYRIX-+-HH-[TN]_thumb.jpg","galleries_id":96201,"server_id":18,"link":"photo_1456535.html","width":130,"caption":"Hayricks","height":87});
															thumbnails[1456545] = clik.newPhoto({"id":1456545,"src":"My-Bed[TN]_thumb.jpg","galleries_id":96201,"server_id":18,"link":"photo_1456545.html","width":130,"caption":"My Bed","height":85});
															thumbnails[1456972] = clik.newPhoto({"id":1456972,"src":"ArcTriomphe[TN]_thumb.jpg","galleries_id":96201,"server_id":18,"link":"photo_1456972.html","width":130,"caption":"Arc de Triomphe","height":87});
															thumbnails[1457316] = clik.newPhoto({"id":1457316,"src":"Helping-Hand-[TN]_thumb.jpg","galleries_id":95753,"server_id":18,"link":"photo_1457316.html","width":130,"caption":"two helping hands","height":86});
															thumbnails[1457317] = clik.newPhoto({"id":1457317,"src":"Boreen-2-[TN]_thumb.jpg","galleries_id":84880,"server_id":18,"link":"photo_1457317.html","width":130,"caption":"boreen 2","height":84});
															thumbnails[1457322] = clik.newPhoto({"id":1457322,"src":"Welders-[TN]_thumb.jpg","galleries_id":95753,"server_id":18,"link":"photo_1457322.html","width":130,"caption":"welders","height":87});
															thumbnails[1457326] = clik.newPhoto({"id":1457326,"src":"Taking on Provisions-[TN]_thumb.jpg","galleries_id":95753,"server_id":18,"link":"photo_1457326.html","width":130,"caption":"taking on provisions","height":93});
															thumbnails[1527421] = clik.newPhoto({"id":1527421,"src":"cPool-[TN]_thumb.jpg","galleries_id":96201,"server_id":18,"link":"photo_1527421.html","width":130,"caption":"White Umbrella","height":91});
															thumbnails[1527582] = clik.newPhoto({"id":1527582,"src":"olive-tree3-[TN]_thumb.jpg","galleries_id":84880,"server_id":18,"link":"photo_1527582.html","width":130,"caption":"'olive' tree 3","height":68});
															thumbnails[1527617] = clik.newPhoto({"id":1527617,"src":"cSofa-[TN]_thumb.jpg","galleries_id":96201,"server_id":18,"link":"photo_1527617.html","width":130,"caption":"sofa","height":93});
															thumbnails[1527639] = clik.newPhoto({"id":1527639,"src":"BoySicily[TN]_thumb.jpg","galleries_id":96201,"server_id":18,"link":"photo_1527639.html","width":130,"caption":"boy with boat","height":86});
															thumbnails[1542440] = clik.newPhoto({"id":1542440,"src":"greg-ELLIS[tn]_thumb.jpg","galleries_id":95763,"server_id":18,"link":"photo_1542440.html","width":130,"caption":"Greg Ellis","height":97});
															thumbnails[1547324] = clik.newPhoto({"id":1547324,"src":"TreesBL[tn]_thumb.jpg","galleries_id":96201,"server_id":18,"link":"photo_1547324.html","width":130,"caption":"forest","height":86});
															thumbnails[1547332] = clik.newPhoto({"id":1547332,"src":"LottieOF[tn]_thumb.jpg","galleries_id":96201,"server_id":18,"link":"photo_1547332.html","width":130,"caption":"lottie","height":87});
															thumbnails[1547376] = clik.newPhoto({"id":1547376,"src":"Battersea-2[TN]_thumb.jpg","galleries_id":96201,"server_id":18,"link":"photo_1547376.html","width":130,"caption":"Battersea Power Station 2","height":84});
															thumbnails[1547437] = clik.newPhoto({"id":1547437,"src":"Natalie-Clein[tn]_thumb.jpg","galleries_id":95763,"server_id":18,"link":"photo_1547437.html","width":130,"caption":"Natalie Clein","height":87});
															thumbnails[1547516] = clik.newPhoto({"id":1547516,"src":"Sawa[TN]_thumb.jpg","galleries_id":95763,"server_id":18,"link":"photo_1547516.html","width":130,"caption":"Kazuki Sawa","height":88});
															thumbnails[1547766] = clik.newPhoto({"id":1547766,"src":"434-b1[TN]_thumb.jpg","galleries_id":95762,"server_id":18,"link":"photo_1547766.html","width":130,"caption":"Concrete 'Buoy'","height":90});
															thumbnails[1547786] = clik.newPhoto({"id":1547786,"src":"174-D4=[TN]_thumb.jpg","galleries_id":95749,"server_id":18,"link":"photo_1547786.html","width":130,"caption":"Maurice Henderson","height":89});
															thumbnails[1551660] = clik.newPhoto({"id":1551660,"src":"308-A6[TN]_thumb.jpg","galleries_id":95763,"server_id":18,"link":"photo_1551660.html","width":130,"caption":"Practice","height":86});
															thumbnails[1551834] = clik.newPhoto({"id":1551834,"src":"304-F6-[TN]_thumb.jpg","galleries_id":95763,"server_id":18,"link":"photo_1551834.html","width":130,"caption":"Hugh Tinney","height":89});
															thumbnails[1578469] = clik.newPhoto({"id":1578469,"src":"adrigoleCHURCH[TN]_thumb.jpg","galleries_id":96201,"server_id":18,"link":"photo_1578469.html","width":130,"caption":"adrigole church","height":88});
															thumbnails[1580333] = clik.newPhoto({"id":1580333,"src":"Wreck[tn]_thumb.jpg","galleries_id":95751,"server_id":18,"link":"photo_1580333.html","width":130,"caption":"wreck at Roancarrig","height":87});
															thumbnails[1590501] = clik.newPhoto({"id":1590501,"src":"mSide2-[TN]_thumb.jpg","galleries_id":96201,"server_id":18,"link":"photo_1590501.html","width":130,"caption":"moss side 2","height":88});
															thumbnails[1596235] = clik.newPhoto({"id":1596235,"src":"106-E5-[TN]_thumb.jpg","galleries_id":95749,"server_id":18,"link":"photo_1596235.html","width":130,"caption":"John Kingerlee","height":87});
															thumbnails[1596293] = clik.newPhoto({"id":1596293,"src":"71-G5[TN]_thumb.jpg","galleries_id":95749,"server_id":18,"link":"photo_1596293.html","width":130,"caption":"Sean McCarthy","height":90});
															thumbnails[1597164] = clik.newPhoto({"id":1597164,"src":"puppy+barrow[TN]_thumb.jpg","galleries_id":95760,"server_id":18,"link":"photo_1597164.html","width":130,"caption":"'peach' in wheelbarrow","height":83});
															thumbnails[1597484] = clik.newPhoto({"id":1597484,"src":"the-skelligs[TN]_thumb.jpg","galleries_id":96201,"server_id":18,"link":"photo_1597484.html","width":130,"caption":"the skelligs","height":85});
															thumbnails[1600554] = clik.newPhoto({"id":1600554,"src":"538 B2 [TN]_thumb.jpg","galleries_id":95763,"server_id":18,"link":"photo_1600554.html","width":130,"caption":"violinist 2","height":89});
															thumbnails[1600628] = clik.newPhoto({"id":1600628,"src":"484-F1-[TN]_thumb.jpg","galleries_id":95763,"server_id":18,"link":"photo_1600628.html","width":130,"caption":"sarah sexton","height":88});
															thumbnails[1600653] = clik.newPhoto({"id":1600653,"src":"543-E1[TN]_thumb.jpg","galleries_id":95763,"server_id":18,"link":"photo_1600653.html","width":130,"caption":"violinist 4","height":86});
															thumbnails[1601097] = clik.newPhoto({"id":1601097,"src":"Clare[TN]_thumb.jpg","galleries_id":96201,"server_id":18,"link":"photo_1601097.html","width":130,"caption":"clare","height":86});
															thumbnails[1630834] = clik.newPhoto({"id":1630834,"src":"294-C3[TN]_thumb.jpg","galleries_id":95763,"server_id":18,"link":"photo_1630834.html","width":130,"caption":"john tavener","height":87});
															thumbnails[1646298] = clik.newPhoto({"id":1646298,"src":"Fastnet-20E5[TN]_thumb.jpg","galleries_id":95751,"server_id":18,"link":"photo_1646298.html","width":130,"caption":"fastnet lighthouse","height":92});
															thumbnails[1652030] = clik.newPhoto({"id":1652030,"src":"474-a3-[TN]_thumb.jpg","galleries_id":95751,"server_id":18,"link":"photo_1652030.html","width":130,"caption":"lone boatman","height":85});
															thumbnails[1671626] = clik.newPhoto({"id":1671626,"src":"545-B4-[TN]_thumb.jpg","galleries_id":95763,"server_id":18,"link":"photo_1671626.html","width":130,"caption":"elizabeth cooney","height":96});
															thumbnails[1685358] = clik.newPhoto({"id":1685358,"src":"hairGlow[TN]_thumb.jpg","galleries_id":96201,"server_id":18,"link":"photo_1685358.html","width":130,"caption":"hair","height":95});
															thumbnails[1685365] = clik.newPhoto({"id":1685365,"src":"cRed[TN]_thumb.jpg","galleries_id":95749,"server_id":18,"link":"photo_1685365.html","width":130,"caption":"joey bailey","height":86});
															thumbnails[1364157] = clik.newPhoto({"id":1364157,"src":"568 C6 [cobhChurch] copy_thumb.jpg","galleries_id":84880,"server_id":18,"link":"photo_1364157.html","width":130,"caption":"cobh","height":87});
															thumbnails[1364160] = clik.newPhoto({"id":1364160,"src":"Ardnakinna261-F4-[TN]_thumb.jpg","galleries_id":95751,"server_id":18,"link":"photo_1364160.html","width":130,"caption":"Ardnakinna Lighthouse","height":86});
															thumbnails[1378616] = clik.newPhoto({"id":1378616,"src":"Crookhaven[TN]_thumb.jpg","galleries_id":96201,"server_id":18,"link":"photo_1378616.html","width":130,"caption":"Crookhaven","height":84});
															thumbnails[1527222] = clik.newPhoto({"id":1527222,"src":"VQ-[TN]col_thumb.jpg","galleries_id":95763,"server_id":18,"link":"photo_1527222.html","width":130,"caption":"The Vanbrugh Quartet","height":82});
															thumbnails[1364158] = clik.newPhoto({"id":1364158,"src":"tn_thumb.jpg","galleries_id":84880,"server_id":18,"link":"photo_1364158.html","width":130,"caption":"'erratic' ","height":83});
															thumbnails[1362339] = clik.newPhoto({"id":1362339,"src":"Road 3 [TN]_thumb.jpg","galleries_id":84880,"server_id":18,"link":"photo_1362339.html","width":130,"caption":"roosk","height":86});
															thumbnails[1378627] = clik.newPhoto({"id":1378627,"src":"boysMossSide[TN]_thumb.jpg","galleries_id":96201,"server_id":18,"link":"photo_1378627.html","width":130,"caption":"Moss Side","height":87});
															thumbnails[1364161] = clik.newPhoto({"id":1364161,"src":"'Serrach' [TN]_thumb.jpg","galleries_id":95751,"server_id":18,"link":"photo_1364161.html","width":130,"caption":"'serrach'","height":76});
															thumbnails[1378633] = clik.newPhoto({"id":1378633,"src":"VENICE[TN]_thumb.jpg","galleries_id":96201,"server_id":18,"link":"photo_1378633.html","width":130,"caption":"Venice","height":80});
															thumbnails[1435975] = clik.newPhoto({"id":1435975,"src":"RedBelt[TN]_thumb.jpg","galleries_id":96201,"server_id":18,"link":"photo_1435975.html","width":130,"caption":"red belt","height":125});
															thumbnails[1375149] = clik.newPhoto({"id":1375149,"src":"cVEIL-[TN]_thumb.jpg","galleries_id":96201,"server_id":18,"link":"photo_1375149.html","width":130,"caption":"Veil","height":201});
															thumbnails[1380044] = clik.newPhoto({"id":1380044,"src":"'Mistletoe'--[TN]_thumb.jpg","galleries_id":95753,"server_id":18,"link":"photo_1380044.html","width":130,"caption":"'Mistletoe'","height":191});
															thumbnails[1380063] = clik.newPhoto({"id":1380063,"src":"Boreen 4[TN]_thumb.jpg","galleries_id":84880,"server_id":18,"link":"photo_1380063.html","width":130,"caption":"Boreen 4","height":210});
															thumbnails[1397474] = clik.newPhoto({"id":1397474,"src":"timmy+pup-[TN]_thumb.jpg","galleries_id":95756,"server_id":18,"link":"photo_1397474.html","width":130,"caption":"Timmy and Peach","height":86});
															thumbnails[1400917] = clik.newPhoto({"id":1400917,"src":"Hayrick-[TN]_thumb.jpg","galleries_id":84880,"server_id":18,"link":"photo_1400917.html","width":130,"caption":"Hayrick","height":197});
															thumbnails[1407396] = clik.newPhoto({"id":1407396,"src":"Cello-Player-[TN] 2_thumb.jpg","galleries_id":95763,"server_id":18,"link":"photo_1407396.html","width":130,"caption":"Anne Gastinel","height":182});
															thumbnails[1407467] = clik.newPhoto({"id":1407467,"src":"SmallBoat-[TN]_thumb.jpg","galleries_id":95751,"server_id":18,"link":"photo_1407467.html","width":130,"caption":"small boat","height":160});
															thumbnails[1407501] = clik.newPhoto({"id":1407501,"src":"Hayrick-at-Roosk[TN]_thumb.jpg","galleries_id":96201,"server_id":18,"link":"photo_1407501.html","width":130,"caption":"Hayrick","height":195});
															thumbnails[1435159] = clik.newPhoto({"id":1435159,"src":"Statue-Nue-[TN]_thumb.jpg","galleries_id":95762,"server_id":18,"link":"photo_1435159.html","width":130,"caption":"Statue nue","height":190});
															thumbnails[1526294] = clik.newPhoto({"id":1526294,"src":"My-Bed-2-[TN]4_thumb.jpg","galleries_id":95762,"server_id":18,"link":"photo_1526294.html","width":130,"caption":"bed","height":197});
															thumbnails[1397273] = clik.newPhoto({"id":1397273,"src":"Timmy-&Scythe[TN]_thumb.jpg","galleries_id":95756,"server_id":18,"link":"photo_1397273.html","width":130,"caption":"timmy & scythe","height":197});
															thumbnails[1408036] = clik.newPhoto({"id":1408036,"src":"Cello-[TN]_thumb.jpg","galleries_id":95763,"server_id":18,"link":"photo_1408036.html","width":130,"caption":"Quirine Viersen","height":192});
															thumbnails[1434949] = clik.newPhoto({"id":1434949,"src":"DogNose-[TN]_thumb.jpg","galleries_id":95760,"server_id":18,"link":"photo_1434949.html","width":130,"caption":"'Peach' at door","height":196});
															thumbnails[1435313] = clik.newPhoto({"id":1435313,"src":"Bull-Rock-[TN]1_thumb.jpg","galleries_id":95751,"server_id":18,"link":"photo_1435313.html","width":130,"caption":"calf rock","height":190});
															thumbnails[1436312] = clik.newPhoto({"id":1436312,"src":"timmy-and-scythe[TN]_thumb.jpg","galleries_id":96201,"server_id":18,"link":"photo_1436312.html","width":130,"caption":"timmy & scythe","height":193});
															thumbnails[1397568] = clik.newPhoto({"id":1397568,"src":"Timmy-at-Harvest[TN]_thumb.jpg","galleries_id":95756,"server_id":18,"link":"photo_1397568.html","width":130,"caption":"Timmy","height":144});
															thumbnails[1397414] = clik.newPhoto({"id":1397414,"src":"'Timmy'-TN1_thumb.jpg","galleries_id":95756,"server_id":18,"link":"photo_1397414.html","width":130,"caption":"Timmy at harvest","height":185});
															thumbnails[1434953] = clik.newPhoto({"id":1434953,"src":"Dog-at-Window-[TN]_thumb.jpg","galleries_id":95760,"server_id":18,"link":"photo_1434953.html","width":130,"caption":"Dog at window","height":196});
															thumbnails[1453893] = clik.newPhoto({"id":1453893,"src":"IceHose-[TN]_thumb.jpg","galleries_id":95753,"server_id":18,"link":"photo_1453893.html","width":130,"caption":"taking on ice","height":194});
															thumbnails[1456556] = clik.newPhoto({"id":1456556,"src":"2Girls-OF[TN]_thumb.jpg","galleries_id":96201,"server_id":18,"link":"photo_1456556.html","width":130,"caption":"two girls on boat","height":199});
															thumbnails[1390437] = clik.newPhoto({"id":1390437,"src":"Jenny - Fashion Model1_thumb.jpg","galleries_id":95749,"server_id":18,"link":"photo_1390437.html","width":130,"caption":"Marisa","height":85});
															thumbnails[1400918] = clik.newPhoto({"id":1400918,"src":"'Leitrim-Beg'-[TN]_thumb.jpg","galleries_id":84880,"server_id":18,"link":"photo_1400918.html","width":130,"caption":"'Leitrim Beg'","height":195});
															thumbnails[1408063] = clik.newPhoto({"id":1408063,"src":"Viola-Player[TN]_thumb.jpg","galleries_id":95763,"server_id":18,"link":"photo_1408063.html","width":130,"caption":"Viola Player","height":194});
															thumbnails[1435145] = clik.newPhoto({"id":1435145,"src":"PBoxIceCream [TN]_thumb.jpg","galleries_id":84880,"server_id":18,"link":"photo_1435145.html","width":130,"caption":"post box","height":196});
															thumbnails[1435403] = clik.newPhoto({"id":1435403,"src":"cRedABS[TN]_thumb.jpg","galleries_id":96201,"server_id":18,"link":"photo_1435403.html","width":130,"caption":"red swimsuit","height":232});
															thumbnails[1456559] = clik.newPhoto({"id":1456559,"src":"Battersea-[TN]_thumb.jpg","galleries_id":96201,"server_id":18,"link":"photo_1456559.html","width":130,"caption":"Battersea Power Station","height":186});
															thumbnails[1456650] = clik.newPhoto({"id":1456650,"src":"462-D1-[TN]_thumb.jpg","galleries_id":84880,"server_id":18,"link":"photo_1456650.html","width":130,"caption":"road 3","height":194});
															thumbnails[1457319] = clik.newPhoto({"id":1457319,"src":"olive tree 2[TN]_thumb.jpg","galleries_id":84880,"server_id":18,"link":"photo_1457319.html","width":130,"caption":"'olive tree' 2","height":187});
															thumbnails[1435150] = clik.newPhoto({"id":1435150,"src":"farmer-[TN]_thumb.jpg","galleries_id":95756,"server_id":18,"link":"photo_1435150.html","width":130,"caption":"farmer waiting for cows","height":194});
															thumbnails[1389880] = clik.newPhoto({"id":1389880,"src":"J_thumb.Turrell-[TN].jpg","galleries_id":95749,"server_id":18,"link":"photo_1389880.html","width":130,"caption":"James Turrell","height":115});
															thumbnails[1390394] = clik.newPhoto({"id":1390394,"src":"Georgina---Actress[TN]_thumb.jpg","galleries_id":95749,"server_id":18,"link":"photo_1390394.html","width":130,"caption":"Georgina","height":133});
															thumbnails[1456563] = clik.newPhoto({"id":1456563,"src":"Boreen-3-[TN]_thumb.jpg","galleries_id":84880,"server_id":18,"link":"photo_1456563.html","width":130,"caption":"boreen 3","height":182});
															thumbnails[1457330] = clik.newPhoto({"id":1457330,"src":"TN3_thumb.jpg","galleries_id":95763,"server_id":18,"link":"photo_1457330.html","width":130,"caption":"cello fingers","height":212});
															thumbnails[1457336] = clik.newPhoto({"id":1457336,"src":"Tin-Mine-2-[TN]_thumb.jpg","galleries_id":84880,"server_id":18,"link":"photo_1457336.html","width":130,"caption":"tin mine 2","height":196});
															thumbnails[1527304] = clik.newPhoto({"id":1527304,"src":"Maria[TN]_thumb.jpg","galleries_id":95749,"server_id":18,"link":"photo_1527304.html","width":130,"caption":"maria","height":168});
															thumbnails[1527465] = clik.newPhoto({"id":1527465,"src":"s_thumb.DOANE[TN.jpg","galleries_id":95763,"server_id":18,"link":"photo_1527465.html","width":130,"caption":"Steven Doane","height":195});
															thumbnails[1527647] = clik.newPhoto({"id":1527647,"src":"Abs_thumb.Car-2[TN].jpg","galleries_id":96201,"server_id":18,"link":"photo_1527647.html","width":130,"caption":"abstract","height":196});
															thumbnails[1542374] = clik.newPhoto({"id":1542374,"src":"BERLINSKY-[TN]_thumb.jpg","galleries_id":95763,"server_id":18,"link":"photo_1542374.html","width":130,"caption":"Valentin Berlinsky","height":194});
															thumbnails[1400916] = clik.newPhoto({"id":1400916,"src":"Bantry Bay [TN]_thumb.jpg","galleries_id":95751,"server_id":18,"link":"photo_1400916.html","width":130,"caption":"Bantry Bay","height":196});
															thumbnails[1457340] = clik.newPhoto({"id":1457340,"src":"WRECK 2 [TN]_thumb.jpg","galleries_id":95751,"server_id":18,"link":"photo_1457340.html","width":130,"caption":"wreck at Roancarrig 2","height":116});
															thumbnails[1578460] = clik.newPhoto({"id":1578460,"src":"3-Boats-[TN]_thumb.jpg","galleries_id":95753,"server_id":18,"link":"photo_1578460.html","width":130,"caption":"boats on the hard","height":190});
															thumbnails[1578485] = clik.newPhoto({"id":1578485,"src":"sacrifice[TN]_thumb.jpg","galleries_id":96201,"server_id":18,"link":"photo_1578485.html","width":130,"caption":"'sacrifice'","height":190});
															thumbnails[1590505] = clik.newPhoto({"id":1590505,"src":"hanno-[tn]_thumb.jpg","galleries_id":95763,"server_id":18,"link":"photo_1590505.html","width":130,"caption":"hanno strydom","height":184});
															thumbnails[1596591] = clik.newPhoto({"id":1596591,"src":"044-F3-[TN]_thumb.jpg","galleries_id":95749,"server_id":18,"link":"photo_1596591.html","width":130,"caption":"Danny Osborne","height":192});
															thumbnails[1560372] = clik.newPhoto({"id":1560372,"src":"PeppiDYLAN[tn]_thumb.jpg","galleries_id":95749,"server_id":18,"link":"photo_1560372.html","width":130,"caption":"peppi","height":159});
															thumbnails[1651994] = clik.newPhoto({"id":1651994,"src":"539-D5[TN]_thumb.jpg","galleries_id":95749,"server_id":18,"link":"photo_1651994.html","width":130,"caption":"Katrina","height":184});
															thumbnails[1667412] = clik.newPhoto({"id":1667412,"src":"394 f2 [TN]_thumb.jpg","galleries_id":95749,"server_id":18,"link":"photo_1667412.html","width":130,"caption":"claudio viscardi","height":193});
															thumbnails[1685341] = clik.newPhoto({"id":1685341,"src":"OldManGreece[TN]_thumb.jpg","galleries_id":96201,"server_id":18,"link":"photo_1685341.html","width":130,"caption":"old man in Greece","height":189});
															thumbnails[1652061] = clik.newPhoto({"id":1652061,"src":"487-F3-[TN]_thumb.jpg","galleries_id":84880,"server_id":18,"link":"photo_1652061.html","width":130,"caption":"CLOUDS","height":192});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[84880] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Irish Landscapes","link":"gallery_84880.html","maxRecords":0.0,"photoIDs":[1362344.0,1368433.0,1371837.0,1380011.0,1380050.0,1400915.0,1400919.0,1400920.0,1404807.0,1435153.0,1457317.0,1527582.0,1364157.0,1364158.0,1362339.0,1380063.0,1400917.0,1400918.0,1435145.0,1456650.0,1457319.0,1456563.0,1457336.0,1652061.0],"skipIndex":0,"section_code":"gallery","featured_images":"1527582,1457317,1435153,1404807,1400920,1400915,1380011,1371837,1364158,1364157,1362344","id":84880,"singleSection":false});				  						galleries[95751] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Irish Seascapes","link":"gallery_95751.html","maxRecords":0.0,"photoIDs":[1371867.0,1383285.0,1407426.0,1434941.0,1454150.0,1580333.0,1646298.0,1652030.0,1364160.0,1364161.0,1407467.0,1435313.0,1400916.0,1457340.0],"skipIndex":0,"section_code":"gallery","featured_images":"1652030,1646298,1580333,1454150,1434941,1407426,1383285,1371867,1364161,1364160","id":95751,"singleSection":false});				  						galleries[95756] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"People","link":"gallery_95756.html","maxRecords":0.0,"photoIDs":[1371956.0,1371976.0,1408092.0,1408103.0,1408105.0,1408109.0,1435141.0,1397474.0,1397273.0,1397568.0,1397414.0,1435150.0],"skipIndex":0,"section_code":"gallery","featured_images":"1435141,1408109,1408105,1408103,1397474,1371976,1371956","id":95756,"singleSection":false});				  						galleries[95753] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Fishing","link":"gallery_95753.html","maxRecords":0.0,"photoIDs":[1371880.0,1380046.0,1400921.0,1457316.0,1457322.0,1457326.0,1380044.0,1453893.0,1578460.0],"skipIndex":0,"section_code":"gallery","featured_images":"1457322,1457316,1400921,1371880","id":95753,"singleSection":false});				  						galleries[95760] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Animals","link":"gallery_95760.html","maxRecords":0.0,"photoIDs":[1372055.0,1380029.0,1380032.0,1597164.0,1434949.0,1434953.0],"skipIndex":0,"section_code":"gallery","featured_images":"1597164,1380032,1380029,1372055","id":95760,"singleSection":false});				  						galleries[95749] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portraits","link":"gallery_95749.html","maxRecords":0.0,"photoIDs":[1372080.0,1380248.0,1389644.0,1389665.0,1389854.0,1390247.0,1547786.0,1596235.0,1596293.0,1685365.0,1390437.0,1389880.0,1390394.0,1527304.0,1596591.0,1560372.0,1651994.0,1667412.0],"skipIndex":0,"section_code":"gallery","featured_images":"1685365,1596235,1389854,1389665,1389644,1380248,1372080","id":95749,"singleSection":false});				  						galleries[95762] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Still-Life","link":"gallery_95762.html","maxRecords":0.0,"photoIDs":[1372058.0,1372094.0,1547766.0,1435159.0,1526294.0],"skipIndex":0,"section_code":"gallery","featured_images":"1547766,1372094,1372058","id":95762,"singleSection":false});				  						galleries[95763] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Musicians","link":"gallery_95763.html","maxRecords":0.0,"photoIDs":[1371840.0,1372068.0,1408051.0,1408071.0,1408073.0,1542440.0,1547437.0,1547516.0,1551660.0,1551834.0,1600554.0,1600628.0,1600653.0,1630834.0,1671626.0,1527222.0,1407396.0,1408036.0,1408063.0,1457330.0,1527465.0,1542374.0,1590505.0],"skipIndex":0,"section_code":"gallery","featured_images":"1671626,1600653,1600628,1600554,1551834,1551660,1542440,1408073,1408071,1408051,1372068,1371840","id":95763,"singleSection":false});				  						galleries[96201] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Colour","link":"gallery_96201.html","maxRecords":0.0,"photoIDs":[1408154.0,1435402.0,1436292.0,1436295.0,1456535.0,1456545.0,1456972.0,1527421.0,1527617.0,1527639.0,1547324.0,1547332.0,1547376.0,1578469.0,1590501.0,1597484.0,1601097.0,1685358.0,1378616.0,1378627.0,1378633.0,1435975.0,1375149.0,1407501.0,1436312.0,1456556.0,1435403.0,1456559.0,1527647.0,1578485.0,1685341.0],"skipIndex":0,"section_code":"gallery","featured_images":"1601097,1597484,1590501,1578469,1547376,1547332,1547324,1527639,1527617,1527421,1456972,1456545,1456535,1436295,1436292,1435402,1408154,1378633,1378627,1378616","id":96201,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '1580333,1454150,1435153,1400921,1400915,1380011,1372094,1372058,1371976,1371880,1371867,1371837,1368433,1378616,1364160,1364157,1364161';
imageSets[2] = '1685365,1671626,1652030,1646298,1601097,1600653,1600628,1600554,1597484,1597164,1596235,1590501,1580333,1578469,1551834,1551660,1547766,1547376,1547332,1547324,1542440,1527639,1527617,1527582,1527421,1457322,1457317,1457316,1456972,1456545,1456535,1454150,1436295,1436292,1435402,1435153,1435141,1434941,1408154,1408109,1408105,1408103,1408073,1408071,1408051,1407426,1404807,1400921,1400920,1400915,1389854,1389665,1389644,1383285,1380248,1380032,1380029,1380011,1372094,1372080,1372068,1372058,1372055,1371976,1371956,1371880,1371867,1371840,1371837,1362344,1378616,1364160,1364157,1364158,1378627,1364161,1378633,1397474';
imageSets[3] = '1685365,1685358,1685341,1671626,1667412,1652061,1652030,1651994,1646298,1630834,1601097,1600653,1600628,1600554,1597484,1597164,1596591,1596293,1596235,1590505,1590501,1580333,1578485,1578469,1578460,1560372,1551834,1551660,1547786,1547766,1547516,1547437,1547376,1547332,1547324,1542440,1542374,1527647,1527639,1527617,1527582,1527465,1527421,1527304,1527222,1526294,1457340,1457336,1457330,1457326';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/aldobelmonte/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/aldobelmonte/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/aldobelmonte/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/aldobelmonte/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/aldobelmonte/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/aldobelmonte/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/aldobelmonte/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/aldobelmonte/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/aldobelmonte/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/aldobelmonte/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/aldobelmonte/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/aldobelmonte/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/aldobelmonte/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/aldobelmonte/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/aldobelmonte/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/aldobelmonte/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/aldobelmonte/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/aldobelmonte/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/aldobelmonte/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/aldobelmonte/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/aldobelmonte/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/aldobelmonte/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/aldobelmonte/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/aldobelmonte/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/aldobelmonte/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/aldobelmonte/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/aldobelmonte/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = (backgrounds || photos || {})[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$detailContainer:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
		op = $.extend({},defaults,options),
		html = '', temp = '',
		photoId = op.nextPhoto.id,
		photoCaption = ''+op.nextPhoto.caption,
		photoSrc = op.nextPhoto.src;
	
	if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'Aldo Belmonte PHOTOGRAPHY: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
	temp += this.fnGetPaymentInfo();
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
																		temp += '<p>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
		 									temp += '<select class="paymentlink" name="payment_options_id" onchange="updateCartValue($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
		else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
											temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm">';
			temp += '	<input type="hidden" name="item_option" value="' + item_option + '">';
			temp += '	<input type="hidden" name="site" value="ALDOBELMONTE">';
			temp += '	<input type="hidden" name="item_number" value="'+ this.id +'">';
			temp += '	<input type="hidden" name="quantity" value="1">';
						temp += '	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\'\;" onmouseout="this.className=\'button\'\;" type="Button">';
							temp += '	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';
			temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
			temp += '<div id="confirmContainer">';
			temp += '<div id="paymentConfirm">Item added to cart</div>';
			temp += '</div>';
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

