window.thumbnails = {};
															thumbnails[7159621] = clik.newPhoto({"id":7159621,"src":"Paul_Dorrell_Photography_reversed_logo_only_45_degree_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":129});
															thumbnails[468308] = clik.newPhoto({"id":468308,"src":"Paddy & Mary_thumb.jpg","galleries_id":77503,"server_id":1,"link":"photo_468308.html","width":130,"caption":"","height":163});
															thumbnails[468573] = clik.newPhoto({"id":468573,"src":"Wedded bliss_thumb.jpg","galleries_id":362394,"server_id":1,"link":"photo_468573.html","width":130,"caption":"","height":195});
															thumbnails[468818] = clik.newPhoto({"id":468818,"src":"First Aid group above060919_thumb.jpg","galleries_id":79397,"server_id":1,"link":"photo_468818.html","width":130,"caption":"","height":92});
															thumbnails[554653] = clik.newPhoto({"id":554653,"src":"0 device_thumb.jpg","galleries_id":79399,"server_id":1,"link":"photo_554653.html","width":130,"caption":"","height":43});
															thumbnails[554659] = clik.newPhoto({"id":554659,"src":"6 cure_thumb.jpg","galleries_id":79399,"server_id":1,"link":"photo_554659.html","width":130,"caption":"","height":130});
															thumbnails[1058567] = clik.newPhoto({"id":1058567,"src":"_MG_0335 (1)_thumb.jpg","galleries_id":77504,"server_id":1,"link":"photo_1058567.html","width":130,"caption":"","height":163});
															thumbnails[1070477] = clik.newPhoto({"id":1070477,"src":"_MG_9454_thumb.jpg","galleries_id":78283,"server_id":1,"link":"photo_1070477.html","width":130,"caption":"","height":130});
															thumbnails[1493484] = clik.newPhoto({"id":1493484,"src":"_MG_7475 (1)_thumb.jpg","galleries_id":81046,"server_id":1,"link":"photo_1493484.html","width":130,"caption":"Bad Day at the Office!","height":163});
															thumbnails[6600452] = clik.newPhoto({"id":6600452,"src":"0814_Linda__Bryan__099_thumb.jpg","galleries_id":362394,"server_id":1,"link":"photo_6600452.html","width":130,"caption":"","height":130});
															thumbnails[6600453] = clik.newPhoto({"id":6600453,"src":"ARC339A1_thumb.jpg","galleries_id":361846,"server_id":1,"link":"photo_6600453.html","width":130,"caption":"","height":130});
															thumbnails[6600454] = clik.newPhoto({"id":6600454,"src":"BDL339A1_thumb.jpg","galleries_id":362394,"server_id":1,"link":"photo_6600454.html","width":130,"caption":"","height":130});
															thumbnails[6600455] = clik.newPhoto({"id":6600455,"src":"CAD339A1_thumb.jpg","galleries_id":361846,"server_id":1,"link":"photo_6600455.html","width":130,"caption":"","height":130});
															thumbnails[6600456] = clik.newPhoto({"id":6600456,"src":"CAD339J1_thumb.jpg","galleries_id":79397,"server_id":1,"link":"photo_6600456.html","width":130,"caption":"","height":130});
															thumbnails[6600457] = clik.newPhoto({"id":6600457,"src":"FAS339O6_thumb.jpg","galleries_id":252087,"server_id":1,"link":"photo_6600457.html","width":130,"caption":"","height":130});
															thumbnails[6600458] = clik.newPhoto({"id":6600458,"src":"Paul_Dorrell_1_thumb.jpg","galleries_id":436491,"server_id":1,"link":"photo_6600458.html","width":130,"caption":"","height":130});
															thumbnails[6600461] = clik.newPhoto({"id":6600461,"src":"PCH339A31_thumb.jpg","galleries_id":361624,"server_id":1,"link":"photo_6600461.html","width":130,"caption":"","height":130});
															thumbnails[6600462] = clik.newPhoto({"id":6600462,"src":"PCH339J1_thumb.jpg","galleries_id":77503,"server_id":1,"link":"photo_6600462.html","width":130,"caption":"","height":130});
															thumbnails[6600463] = clik.newPhoto({"id":6600463,"src":"PCH339M1_thumb.jpg","galleries_id":77501,"server_id":1,"link":"photo_6600463.html","width":130,"caption":"","height":130});
															thumbnails[6600465] = clik.newPhoto({"id":6600465,"src":"PCL339J1_thumb.jpg","galleries_id":80581,"server_id":1,"link":"photo_6600465.html","width":130,"caption":"","height":130});
															thumbnails[6600467] = clik.newPhoto({"id":6600467,"src":"PFA339M3_thumb.jpg","galleries_id":77502,"server_id":1,"link":"photo_6600467.html","width":130,"caption":"","height":130});
															thumbnails[6600468] = clik.newPhoto({"id":6600468,"src":"WAG339A1_thumb.jpg","galleries_id":361625,"server_id":1,"link":"photo_6600468.html","width":130,"caption":"","height":130});
															thumbnails[6600469] = clik.newPhoto({"id":6600469,"src":"WAG339A11_thumb.jpg","galleries_id":37044,"server_id":1,"link":"photo_6600469.html","width":130,"caption":"","height":130});
															thumbnails[6600470] = clik.newPhoto({"id":6600470,"src":"WCL339A1_thumb.jpg","galleries_id":362394,"server_id":1,"link":"photo_6600470.html","width":130,"caption":"","height":130});
															thumbnails[6600471] = clik.newPhoto({"id":6600471,"src":"WRE339A3_thumb.jpg","galleries_id":37044,"server_id":1,"link":"photo_6600471.html","width":130,"caption":"","height":130});
															thumbnails[6600472] = clik.newPhoto({"id":6600472,"src":"WRE339A4_thumb.jpg","galleries_id":37044,"server_id":1,"link":"photo_6600472.html","width":130,"caption":"","height":130});
															thumbnails[6600473] = clik.newPhoto({"id":6600473,"src":"WRE339O1_thumb.jpg","galleries_id":37044,"server_id":1,"link":"photo_6600473.html","width":130,"caption":"","height":130});
															thumbnails[621239] = clik.newPhoto({"id":621239,"src":"_MG_6858-02_thumb.jpg","galleries_id":77501,"server_id":1,"link":"photo_621239.html","width":130,"caption":" ","height":185});
															thumbnails[468816] = clik.newPhoto({"id":468816,"src":"Team through fire060919_thumb.jpg","galleries_id":79397,"server_id":1,"link":"photo_468816.html","width":130,"caption":"","height":92});
															thumbnails[554579] = clik.newPhoto({"id":554579,"src":"In thought5_thumb.jpg","galleries_id":362394,"server_id":1,"link":"photo_554579.html","width":130,"caption":"","height":184});
															thumbnails[468821] = clik.newPhoto({"id":468821,"src":"Hogan Devitt Hose in hand060919_thumb.jpg","galleries_id":79397,"server_id":1,"link":"photo_468821.html","width":130,"caption":"Ready and waiting","height":92});
															thumbnails[620275] = clik.newPhoto({"id":620275,"src":"boy A3 for wall_thumb.jpg","galleries_id":78283,"server_id":1,"link":"photo_620275.html","width":130,"caption":"","height":184});
															thumbnails[1851077] = clik.newPhoto({"id":1851077,"src":"_MG_4303_thumb.jpg","galleries_id":37044,"server_id":1,"link":"photo_1851077.html","width":130,"caption":"","height":136});
															thumbnails[6120871] = clik.newPhoto({"id":6120871,"src":"0204_Boston_Galway__023_thumb.jpg","galleries_id":77504,"server_id":1,"link":"photo_6120871.html","width":130,"caption":"","height":188});
															thumbnails[8965169] = clik.newPhoto({"id":8965169,"src":"110305_Andrea_model_portfolio__037_6AB8B71D-1EC9-DFB6-09BEAC9AD73E1F1A_thumb.jpg","galleries_id":252087,"server_id":1,"link":"photo_8965169.html","width":130,"caption":"","height":93});
															thumbnails[8965175] = clik.newPhoto({"id":8965175,"src":"110208_Cronins__015And2more_fused_6ACC1CC0-1EC9-DFB6-09E858FA51D2324A_thumb.jpg","galleries_id":246320,"server_id":1,"link":"photo_8965175.html","width":130,"caption":"","height":92});
															thumbnails[8965191] = clik.newPhoto({"id":8965191,"src":"0507_Rachel__Claire__010_6AE0B4BB-1EC9-DFB6-091B1546C5549F8D_thumb.jpg","galleries_id":77503,"server_id":1,"link":"photo_8965191.html","width":130,"caption":"","height":163});
															thumbnails[596093] = clik.newPhoto({"id":596093,"src":"_MG_8406-01_thumb.jpg","galleries_id":37044,"server_id":1,"link":"photo_596093.html","width":130,"caption":"","height":163});
															thumbnails[468570] = clik.newPhoto({"id":468570,"src":"Emotions of the day_thumb.jpg","galleries_id":37044,"server_id":1,"link":"photo_468570.html","width":130,"caption":"","height":195});
															thumbnails[2037589] = clik.newPhoto({"id":2037589,"src":"CTC senior rugby final  062_thumb.jpg","galleries_id":81046,"server_id":1,"link":"photo_2037589.html","width":130,"caption":"","height":91});
															thumbnails[5146039] = clik.newPhoto({"id":5146039,"src":"1003_Pery_Square_Fashion__166_thumb.jpg","galleries_id":252087,"server_id":1,"link":"photo_5146039.html","width":130,"caption":"","height":166});
															thumbnails[6120872] = clik.newPhoto({"id":6120872,"src":"0218_Animal_Beats__019_thumb.jpg","galleries_id":139808,"server_id":1,"link":"photo_6120872.html","width":130,"caption":"","height":89});
															thumbnails[8965170] = clik.newPhoto({"id":8965170,"src":"110305_Andrea_model_portfolio__065_6AB92116-1EC9-DFB6-09A36540DC78B701_thumb.jpg","galleries_id":252087,"server_id":1,"link":"photo_8965170.html","width":130,"caption":"","height":303});
															thumbnails[8965176] = clik.newPhoto({"id":8965176,"src":"110811_Dermot_Ahern__024_6ACC6239-1EC9-DFB6-0935A37959D152B2_thumb.jpg","galleries_id":246320,"server_id":1,"link":"photo_8965176.html","width":130,"caption":"","height":93});
															thumbnails[8965194] = clik.newPhoto({"id":8965194,"src":"0507_Rachel__Claire__060_6AE114C8-1EC9-DFB6-096EB6E0CCECF6FF_thumb.jpg","galleries_id":77503,"server_id":1,"link":"photo_8965194.html","width":130,"caption":"","height":104});
															thumbnails[2037651] = clik.newPhoto({"id":2037651,"src":"CC JUnior cup final  098_thumb.jpg","galleries_id":81046,"server_id":1,"link":"photo_2037651.html","width":130,"caption":"George Egleston attempts the block.","height":127});
															thumbnails[2037668] = clik.newPhoto({"id":2037668,"src":"CTC semi  267_thumb.jpg","galleries_id":81046,"server_id":1,"link":"photo_2037668.html","width":130,"caption":"Down and out.","height":93});
															thumbnails[2098702] = clik.newPhoto({"id":2098702,"src":"Intrigue  120_thumb.jpg","galleries_id":139808,"server_id":1,"link":"photo_2098702.html","width":130,"caption":"","height":164});
															thumbnails[2098741] = clik.newPhoto({"id":2098741,"src":"intrigue studio  004_thumb.jpg","galleries_id":139808,"server_id":1,"link":"photo_2098741.html","width":130,"caption":"","height":130});
															thumbnails[3030031] = clik.newPhoto({"id":3030031,"src":"Bryan & Jennifer 300808  356_thumb.jpg","galleries_id":37044,"server_id":1,"link":"photo_3030031.html","width":130,"caption":"","height":209});
															thumbnails[4107466] = clik.newPhoto({"id":4107466,"src":"0611_Carl_Richardson__073_thumb.jpg","galleries_id":246320,"server_id":1,"link":"photo_4107466.html","width":130,"caption":"","height":163});
															thumbnails[5146040] = clik.newPhoto({"id":5146040,"src":"1003_Pery_Square_Fashion__200_thumb.jpg","galleries_id":252087,"server_id":1,"link":"photo_5146040.html","width":130,"caption":"","height":184});
															thumbnails[8965171] = clik.newPhoto({"id":8965171,"src":"Andrea1_6AB97058-1EC9-DFB6-09AD382C190EB9FB_thumb.jpg","galleries_id":252087,"server_id":1,"link":"photo_8965171.html","width":130,"caption":"","height":177});
															thumbnails[8965195] = clik.newPhoto({"id":8965195,"src":"0507_Rachel__Claire__081_6AE141AB-1EC9-DFB6-09DE21A1025225B1_thumb.jpg","galleries_id":77503,"server_id":1,"link":"photo_8965195.html","width":130,"caption":"","height":98});
															thumbnails[1851086] = clik.newPhoto({"id":1851086,"src":"_MG_6363_thumb.jpg","galleries_id":37044,"server_id":1,"link":"photo_1851086.html","width":130,"caption":"","height":163});
															thumbnails[2037652] = clik.newPhoto({"id":2037652,"src":"CC JUnior cup final  221_thumb.jpg","galleries_id":81046,"server_id":1,"link":"photo_2037652.html","width":130,"caption":"Castletroy College Junior team celebrate.","height":84});
															thumbnails[2037669] = clik.newPhoto({"id":2037669,"src":"CTC semi  302_thumb.jpg","galleries_id":81046,"server_id":1,"link":"photo_2037669.html","width":130,"caption":"George Egleston celebrates the winning try.","height":93});
															thumbnails[2098703] = clik.newPhoto({"id":2098703,"src":"Intrigue  140_thumb.jpg","galleries_id":139808,"server_id":1,"link":"photo_2098703.html","width":130,"caption":"","height":194});
															thumbnails[2098742] = clik.newPhoto({"id":2098742,"src":"intrigue studio  074_thumb.jpg","galleries_id":361846,"server_id":1,"link":"photo_2098742.html","width":130,"caption":"","height":130});
															thumbnails[4107467] = clik.newPhoto({"id":4107467,"src":"0611_Carl_Richardson__078_thumb.jpg","galleries_id":246320,"server_id":1,"link":"photo_4107467.html","width":130,"caption":"","height":163});
															thumbnails[6120874] = clik.newPhoto({"id":6120874,"src":"0218_Animal_Beats__066_thumb.jpg","galleries_id":139808,"server_id":1,"link":"photo_6120874.html","width":130,"caption":"Image from photo shoot with Limerick band, Animal Beats.","height":90});
															thumbnails[8965196] = clik.newPhoto({"id":8965196,"src":"0521_Gerldine_Moloney__064_6AE17F07-1EC9-DFB6-0908B0347F38366E_thumb.jpg","galleries_id":77503,"server_id":1,"link":"photo_8965196.html","width":130,"caption":"","height":130});
															thumbnails[1851052] = clik.newPhoto({"id":1851052,"src":"_MG_4269 (1)_thumb.jpg","galleries_id":37044,"server_id":1,"link":"photo_1851052.html","width":130,"caption":"","height":157});
															thumbnails[1851081] = clik.newPhoto({"id":1851081,"src":"_MG_6216_thumb.jpg","galleries_id":37044,"server_id":1,"link":"photo_1851081.html","width":130,"caption":"","height":152});
															thumbnails[1851106] = clik.newPhoto({"id":1851106,"src":"_MG_9461_thumb.jpg","galleries_id":78283,"server_id":1,"link":"photo_1851106.html","width":130,"caption":"","height":130});
															thumbnails[2098704] = clik.newPhoto({"id":2098704,"src":"Intrigue  168_thumb.jpg","galleries_id":139808,"server_id":1,"link":"photo_2098704.html","width":130,"caption":"","height":95});
															thumbnails[3030033] = clik.newPhoto({"id":3030033,"src":"Joanne & Niall  270_thumb.jpg","galleries_id":37044,"server_id":1,"link":"photo_3030033.html","width":130,"caption":"","height":163});
															thumbnails[4107468] = clik.newPhoto({"id":4107468,"src":"0611_Carl_Richardson__093_thumb.jpg","galleries_id":246320,"server_id":1,"link":"photo_4107468.html","width":130,"caption":"","height":184});
															thumbnails[5146042] = clik.newPhoto({"id":5146042,"src":"1003_Pery_Square_Fashion__241_thumb.jpg","galleries_id":252087,"server_id":1,"link":"photo_5146042.html","width":130,"caption":"","height":85});
															thumbnails[8965197] = clik.newPhoto({"id":8965197,"src":"0525_Brid_Hession__031_6AE1C57A-1EC9-DFB6-09B615490A1C0A7B_thumb.jpg","galleries_id":77503,"server_id":1,"link":"photo_8965197.html","width":130,"caption":"","height":163});
															thumbnails[3030035] = clik.newPhoto({"id":3030035,"src":"Nicola & Frank 250908  036_thumb.jpg","galleries_id":37044,"server_id":1,"link":"photo_3030035.html","width":130,"caption":"","height":112});
															thumbnails[6120877] = clik.newPhoto({"id":6120877,"src":"0218_Animal_Beats__130_thumb.jpg","galleries_id":139808,"server_id":1,"link":"photo_6120877.html","width":130,"caption":"","height":180});
															thumbnails[5146044] = clik.newPhoto({"id":5146044,"src":"1003_Pery_Square_Fashion__319_thumb.jpg","galleries_id":252087,"server_id":1,"link":"photo_5146044.html","width":130,"caption":"","height":130});
															thumbnails[5146045] = clik.newPhoto({"id":5146045,"src":"FAS339O1_thumb.jpg","galleries_id":252087,"server_id":1,"link":"photo_5146045.html","width":130,"caption":"","height":130});
															thumbnails[1103222] = clik.newPhoto({"id":1103222,"src":"_MG_7429_thumb.jpg","galleries_id":81046,"server_id":1,"link":"photo_1103222.html","width":130,"caption":"","height":200});
															thumbnails[1159355] = clik.newPhoto({"id":1159355,"src":"_MG_7676_thumb.jpg","galleries_id":81046,"server_id":1,"link":"photo_1159355.html","width":130,"caption":"","height":163});
															thumbnails[1375408] = clik.newPhoto({"id":1375408,"src":"Simon Storage  055_thumb.jpg","galleries_id":79397,"server_id":1,"link":"photo_1375408.html","width":130,"caption":"","height":196});
															thumbnails[1375450] = clik.newPhoto({"id":1375450,"src":"_MG_0217_thumb.jpg","galleries_id":77501,"server_id":1,"link":"photo_1375450.html","width":130,"caption":"","height":130});
															thumbnails[1562844] = clik.newPhoto({"id":1562844,"src":"Lisa Mulvihill  001_thumb.jpg","galleries_id":362394,"server_id":1,"link":"photo_1562844.html","width":130,"caption":"","height":182});
															thumbnails[1563007] = clik.newPhoto({"id":1563007,"src":"_MG_0886_thumb.jpg","galleries_id":77502,"server_id":1,"link":"photo_1563007.html","width":130,"caption":"","height":87});
															thumbnails[1563014] = clik.newPhoto({"id":1563014,"src":"_MG_1582_thumb.jpg","galleries_id":77504,"server_id":1,"link":"photo_1563014.html","width":130,"caption":"","height":163});
															thumbnails[3030038] = clik.newPhoto({"id":3030038,"src":"Nicola & Frank 250908  365_thumb.jpg","galleries_id":37044,"server_id":1,"link":"photo_3030038.html","width":130,"caption":"","height":74});
															thumbnails[6120881] = clik.newPhoto({"id":6120881,"src":"0315_Niall_Cannon__018_1D3C321A-1EC9-D45B-1C48DB31C5DF4945_thumb.jpg","galleries_id":77504,"server_id":1,"link":"photo_6120881.html","width":130,"caption":"Corporate photograph of Niall Cannon of IT Providers.","height":78});
															thumbnails[1562854] = clik.newPhoto({"id":1562854,"src":"Lisa Mulvihill  007_thumb.jpg","galleries_id":362394,"server_id":1,"link":"photo_1562854.html","width":130,"caption":"","height":108});
															thumbnails[1563002] = clik.newPhoto({"id":1563002,"src":"Rosemarie  002_thumb.jpg","galleries_id":78283,"server_id":1,"link":"photo_1563002.html","width":130,"caption":"","height":90});
															thumbnails[1563022] = clik.newPhoto({"id":1563022,"src":"_MG_8454 - Version 3_thumb.jpg","galleries_id":252075,"server_id":1,"link":"photo_1563022.html","width":130,"caption":"","height":81});
															thumbnails[1073191] = clik.newPhoto({"id":1073191,"src":"_MG_8657-Edit-2_thumb.jpg","galleries_id":77501,"server_id":1,"link":"photo_1073191.html","width":130,"caption":"","height":130});
															thumbnails[1103231] = clik.newPhoto({"id":1103231,"src":"_MG_7572_thumb.jpg","galleries_id":81046,"server_id":1,"link":"photo_1103231.html","width":130,"caption":"","height":107});
															thumbnails[1065206] = clik.newPhoto({"id":1065206,"src":"_MG_9760 - Version 2_thumb.jpg","galleries_id":77503,"server_id":1,"link":"photo_1065206.html","width":130,"caption":"","height":92});
															thumbnails[1159357] = clik.newPhoto({"id":1159357,"src":"_MG_7701_thumb.jpg","galleries_id":81046,"server_id":1,"link":"photo_1159357.html","width":130,"caption":"","height":151});
															thumbnails[3198951] = clik.newPhoto({"id":3198951,"src":"Mike  003_thumb.jpg","galleries_id":80581,"server_id":1,"link":"photo_3198951.html","width":130,"caption":"","height":130});
															thumbnails[6120884] = clik.newPhoto({"id":6120884,"src":"0401_Ash__Siobhan__084_thumb.jpg","galleries_id":252087,"server_id":1,"link":"photo_6120884.html","width":130,"caption":"","height":130});
															thumbnails[1103227] = clik.newPhoto({"id":1103227,"src":"_MG_7496_thumb.jpg","galleries_id":81046,"server_id":1,"link":"photo_1103227.html","width":130,"caption":"","height":45});
															thumbnails[1375454] = clik.newPhoto({"id":1375454,"src":"_MG_9453_thumb.jpg","galleries_id":77502,"server_id":1,"link":"photo_1375454.html","width":130,"caption":"","height":121});
															thumbnails[1562848] = clik.newPhoto({"id":1562848,"src":"Lisa Mulvihill  005_thumb.jpg","galleries_id":362394,"server_id":1,"link":"photo_1562848.html","width":130,"caption":"","height":196});
															thumbnails[1562858] = clik.newPhoto({"id":1562858,"src":"Lisa Mulvihill  010_thumb.jpg","galleries_id":362394,"server_id":1,"link":"photo_1562858.html","width":130,"caption":"","height":165});
															thumbnails[1563017] = clik.newPhoto({"id":1563017,"src":"_MG_2712_thumb.jpg","galleries_id":77504,"server_id":1,"link":"photo_1563017.html","width":130,"caption":"","height":196});
															thumbnails[3198955] = clik.newPhoto({"id":3198955,"src":"Padraig  047_thumb.jpg","galleries_id":139808,"server_id":1,"link":"photo_3198955.html","width":130,"caption":"","height":118});
															thumbnails[3691189] = clik.newPhoto({"id":3691189,"src":"HFD_0304__219_thumb.jpg","galleries_id":252075,"server_id":1,"link":"photo_3691189.html","width":130,"caption":"","height":93});
															thumbnails[3691190] = clik.newPhoto({"id":3691190,"src":"HFD_0304__234_thumb.jpg","galleries_id":252075,"server_id":1,"link":"photo_3691190.html","width":130,"caption":"","height":93});
															thumbnails[3198883] = clik.newPhoto({"id":3198883,"src":"CD launch 121208  120_thumb.jpg","galleries_id":139808,"server_id":1,"link":"photo_3198883.html","width":130,"caption":"","height":89});
															thumbnails[2744991] = clik.newPhoto({"id":2744991,"src":"IPPA 2008 Gold  010_thumb.jpg","galleries_id":79037,"server_id":1,"link":"photo_2744991.html","width":130,"caption":"IPPA 2008 Gold","height":130});
															thumbnails[2744992] = clik.newPhoto({"id":2744992,"src":"IPPA 2008 Gold  011_thumb.jpg","galleries_id":79037,"server_id":1,"link":"photo_2744992.html","width":130,"caption":"IPPA 2008 Gold","height":130});
															thumbnails[2744993] = clik.newPhoto({"id":2744993,"src":"IPPA 2008 Gold  0121_thumb.jpg","galleries_id":79037,"server_id":1,"link":"photo_2744993.html","width":130,"caption":"IPPA 2008 Gold","height":130});
															thumbnails[2744994] = clik.newPhoto({"id":2744994,"src":"IPPA 2008 Gold  013_thumb.jpg","galleries_id":79037,"server_id":1,"link":"photo_2744994.html","width":130,"caption":"IPPA 2008 Gold","height":130});
															thumbnails[6885029] = clik.newPhoto({"id":6885029,"src":"Clikpic_studio_sitting_thumb.jpg","galleries_id":373690,"server_id":1,"link":"photo_6885029.html","width":130,"caption":"","height":130});
															thumbnails[6885079] = clik.newPhoto({"id":6885079,"src":"Clikpic_studio_deposit_100_thumb.jpg","galleries_id":373690,"server_id":1,"link":"photo_6885079.html","width":130,"caption":"","height":130});
															thumbnails[6885081] = clik.newPhoto({"id":6885081,"src":"Clikpic_studio_deposit_200_thumb.jpg","galleries_id":373690,"server_id":1,"link":"photo_6885081.html","width":130,"caption":"","height":130});
															thumbnails[6885082] = clik.newPhoto({"id":6885082,"src":"Clikpic_studio_deposit_300_thumb.jpg","galleries_id":373690,"server_id":1,"link":"photo_6885082.html","width":130,"caption":"","height":130});
															thumbnails[6885024] = clik.newPhoto({"id":6885024,"src":"Clikpic_wedding_deposit_thumb.jpg","galleries_id":373690,"server_id":1,"link":"photo_6885024.html","width":130,"caption":"","height":130});
															thumbnails[6885083] = clik.newPhoto({"id":6885083,"src":"Clikpic_wedding_premier_thumb.jpg","galleries_id":373690,"server_id":1,"link":"photo_6885083.html","width":130,"caption":"","height":130});
															thumbnails[6885085] = clik.newPhoto({"id":6885085,"src":"Clikpic_wedding_premier_plus_thumb.jpg","galleries_id":373690,"server_id":1,"link":"photo_6885085.html","width":130,"caption":"","height":130});
															thumbnails[6885087] = clik.newPhoto({"id":6885087,"src":"Clikpic_wedding_Zenith_thumb.jpg","galleries_id":373690,"server_id":1,"link":"photo_6885087.html","width":130,"caption":"","height":130});
															thumbnails[6885100] = clik.newPhoto({"id":6885100,"src":"Clikpic_voucher_sitting_thumb.jpg","galleries_id":373690,"server_id":1,"link":"photo_6885100.html","width":130,"caption":"","height":130});
															thumbnails[6885101] = clik.newPhoto({"id":6885101,"src":"Clikpic_voucher_100_thumb.jpg","galleries_id":373690,"server_id":1,"link":"photo_6885101.html","width":130,"caption":"","height":130});
															thumbnails[6885104] = clik.newPhoto({"id":6885104,"src":"Clikpic_voucher_200_thumb.jpg","galleries_id":373690,"server_id":1,"link":"photo_6885104.html","width":130,"caption":"","height":130});
															thumbnails[6885106] = clik.newPhoto({"id":6885106,"src":"Clikpic_voucher_300_thumb.jpg","galleries_id":373690,"server_id":1,"link":"photo_6885106.html","width":130,"caption":"","height":130});
															thumbnails[6600466] = clik.newPhoto({"id":6600466,"src":"PFA339A1_thumb.jpg","galleries_id":386989,"server_id":1,"link":"photo_6600466.html","width":130,"caption":"","height":130});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[80581] = clik.newGallery({"parentGallery":361628,"usePopups":false,"title":"Adults","link":"gallery_80581.html","maxRecords":0.0,"photoIDs":[6600465.0,3198951.0],"skipIndex":0,"section_code":"gallery","featured_images":"6600465,3198951","id":80581,"singleSection":false});				  						galleries[252075] = clik.newGallery({"parentGallery":361628,"usePopups":false,"title":"Babies","link":"gallery_252075.html","maxRecords":0.0,"photoIDs":[1563022.0,3691189.0,3691190.0],"skipIndex":0,"section_code":"gallery","featured_images":"3691190,3691189,1563022","id":252075,"singleSection":false});				  						galleries[139808] = clik.newGallery({"parentGallery":37074,"usePopups":false,"title":"Bands","link":"gallery_139808.html","maxRecords":0.0,"photoIDs":[6120872.0,2098702.0,2098741.0,2098703.0,6120874.0,2098704.0,6120877.0,3198955.0,3198883.0],"skipIndex":0,"section_code":"gallery","featured_images":"6120877,6120874,6120872,3198955,3198883,2098741,2098704,2098703,2098702","id":139808,"singleSection":false});				  						galleries[77504] = clik.newGallery({"parentGallery":37074,"usePopups":false,"title":"Corporate Headshots","link":"gallery_77504.html","maxRecords":0.0,"photoIDs":[1058567.0,6120871.0,1563014.0,6120881.0,1563017.0],"skipIndex":0,"section_code":"gallery","featured_images":"6120881,6120871,1563017,1563014,1058567","id":77504,"singleSection":false});				  						galleries[77502] = clik.newGallery({"parentGallery":361628,"usePopups":false,"title":"Families","link":"gallery_77502.html","maxRecords":0.0,"photoIDs":[6600467.0,1563007.0,1375454.0],"skipIndex":0,"section_code":"gallery","featured_images":"6600467,1563007,1375454","id":77502,"singleSection":false});				  						galleries[252087] = clik.newGallery({"parentGallery":37074,"usePopups":false,"title":"Fashion & Beauty","link":"gallery_252087.html","maxRecords":0.0,"photoIDs":[6600457.0,8965169.0,5146039.0,8965170.0,5146040.0,8965171.0,5146042.0,5146044.0,5146045.0,6120884.0],"skipIndex":0,"section_code":"gallery","featured_images":"8965171,5146045","id":252087,"singleSection":false});				  						galleries[246320] = clik.newGallery({"parentGallery":37074,"usePopups":false,"title":"Food","link":"gallery_246320.html","maxRecords":0.0,"photoIDs":[8965175.0,8965176.0,4107466.0,4107467.0,4107468.0],"skipIndex":0,"section_code":"gallery","featured_images":"8965176,8965175,4107468,4107467,4107466","id":246320,"singleSection":false});				  						galleries[386989] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Generations Family Portrait","link":"section460232.html","maxRecords":0.0,"photoIDs":[6600466.0],"skipIndex":0,"section_code":"section460232","featured_images":6600466.0,"id":386989,"singleSection":true});				  						galleries[398655] = clik.newGallery({"parentGallery":37074,"usePopups":false,"title":"Interiors","link":"gallery_398655.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"","id":398655,"singleSection":false});				  						galleries[77501] = clik.newGallery({"parentGallery":361628,"usePopups":false,"title":"Kids","link":"gallery_77501.html","maxRecords":0.0,"photoIDs":[6600463.0,621239.0,1375450.0,1073191.0],"skipIndex":0,"section_code":"gallery","featured_images":"1375450,1073191","id":77501,"singleSection":false});				  						galleries[373690] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Online sales options","link":"section444949.html","maxRecords":0.0,"photoIDs":[6885029.0,6885079.0,6885081.0,6885082.0,6885024.0,6885083.0,6885085.0,6885087.0,6885100.0,6885101.0,6885104.0,6885106.0],"skipIndex":0,"section_code":"section444949","featured_images":"6885106,6885104,6885101,6885100,6885087,6885085,6885083,6885082,6885081,6885079","id":373690,"singleSection":true});				  						galleries[79397] = clik.newGallery({"parentGallery":37074,"usePopups":false,"title":"PR","link":"gallery_79397.html","maxRecords":0.0,"photoIDs":[468818.0,6600456.0,468816.0,468821.0,1375408.0],"skipIndex":0,"section_code":"gallery","featured_images":"1375408,468821","id":79397,"singleSection":false});				  						galleries[79399] = clik.newGallery({"parentGallery":37074,"usePopups":false,"title":"Product & process","link":"gallery_79399.html","maxRecords":0.0,"photoIDs":[554653.0,554659.0],"skipIndex":0,"section_code":"gallery","featured_images":"554659,554653","id":79399,"singleSection":false});				  						galleries[436491] = clik.newGallery({"parentGallery":361628,"usePopups":false,"title":"Schools","link":"gallery_436491.html","maxRecords":0.0,"photoIDs":[6600458.0],"skipIndex":0,"section_code":"gallery","featured_images":6600458.0,"id":436491,"singleSection":false});				  						galleries[77503] = clik.newGallery({"parentGallery":361628,"usePopups":false,"title":"Special Occasions","link":"gallery_77503.html","maxRecords":0.0,"photoIDs":[468308.0,6600462.0,8965191.0,8965194.0,8965195.0,8965196.0,8965197.0,1065206.0],"skipIndex":0,"section_code":"gallery","featured_images":8965195.0,"id":77503,"singleSection":false});				  						galleries[81046] = clik.newGallery({"parentGallery":37074,"usePopups":false,"title":"Sports","link":"gallery_81046.html","maxRecords":0.0,"photoIDs":[1493484.0,2037589.0,2037651.0,2037668.0,2037652.0,2037669.0,1103222.0,1159355.0,1103231.0,1159357.0,1103227.0],"skipIndex":0,"section_code":"gallery","featured_images":"2037669,2037668,2037652,2037651,2037589,1493484,1159357,1159355,1103231,1103227","id":81046,"singleSection":false});				  						galleries[78283] = clik.newGallery({"parentGallery":361628,"usePopups":false,"title":"Teens","link":"gallery_78283.html","maxRecords":0.0,"photoIDs":[1070477.0,620275.0,1851106.0,1563002.0],"skipIndex":0,"section_code":"gallery","featured_images":"1851106,620275","id":78283,"singleSection":false});				  						galleries[361628] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portrait gallery","link":"gallery_361628.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"8965195,1851106,1375450,1073191,620275","id":361628,"singleSection":false});				  						galleries[362393] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wedding Gallery","link":"gallery_362393.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":6600473.0,"id":362393,"singleSection":false});				  						galleries[37044] = clik.newGallery({"parentGallery":362393,"usePopups":false,"title":"Reportage","link":"gallery_37044.html","maxRecords":0.0,"photoIDs":[6600469.0,6600471.0,6600472.0,6600473.0,1851077.0,596093.0,468570.0,3030031.0,1851086.0,1851052.0,1851081.0,3030033.0,3030035.0,3030038.0],"skipIndex":0,"section_code":"gallery","featured_images":6600473.0,"id":37044,"singleSection":false});				  						galleries[362394] = clik.newGallery({"parentGallery":362393,"usePopups":false,"title":"Traditional","link":"gallery_362394.html","maxRecords":0.0,"photoIDs":[468573.0,6600452.0,6600454.0,6600470.0,554579.0,1562844.0,1562854.0,1562848.0,1562858.0],"skipIndex":0,"section_code":"gallery","featured_images":"6600470,6600454,6600452,1562858,1562854,1562848,1562844,554579,468573","id":362394,"singleSection":false});				  						galleries[37074] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Commercial Gallery","link":"gallery_37074.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"8965171,5146045,1375408,554659,554653,468821","id":37074,"singleSection":false});				  						galleries[361624] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portrait pricing","link":"gallery_361624.html","maxRecords":0.0,"photoIDs":[6600461.0],"skipIndex":0,"section_code":"gallery","featured_images":6600461.0,"id":361624,"singleSection":false});				  						galleries[361625] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wedding packages - 2011\/2012","link":"gallery_361625.html","maxRecords":0.0,"photoIDs":[6600468.0],"skipIndex":0,"section_code":"gallery","featured_images":6600468.0,"id":361625,"singleSection":false});				  						galleries[361846] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Commercial rates","link":"gallery_361846.html","maxRecords":0.0,"photoIDs":[6600453.0,6600455.0,2098742.0],"skipIndex":0,"section_code":"gallery","featured_images":"6600453,2098742","id":361846,"singleSection":false});				  						galleries[79037] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Awards","link":"section431161.html","maxRecords":0.0,"photoIDs":[2744991.0,2744992.0,2744993.0,2744994.0],"skipIndex":0,"section_code":"section431161","featured_images":"2744994,2744992","id":79037,"singleSection":true});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '6600454,1493484,2744992,8965195,8965171,5146045,6120884';
imageSets[2] = '6600473,6600468,6600461,6600453,554659,554653,468821,620275,2744992,8965195,8965171,2744994,2098742,1851106,5146045,1375450,1375408,1073191';
imageSets[3] = '8965197,8965196,8965195,8965194,8965191,8965176,8965175,8965171,8965170,8965169,7159621,6885106,6885104,6885101,6885100,6885087,6885085,6885083,6885082,6885081,6885079,6885029,6885024,6600473,6600472,6600471,6600470,6600469,6600468,6600467,6600466,6600465,6600463,6600462,6600461,6600458,6600457,6600456,6600455,6600454,6600453,6600452,6120884,6120881,6120877,6120874,6120872,6120871,5146045,5146044';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/PaulDorrell/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/PaulDorrell/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/PaulDorrell/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/PaulDorrell/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/PaulDorrell/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/PaulDorrell/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/PaulDorrell/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/PaulDorrell/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/PaulDorrell/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/PaulDorrell/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/PaulDorrell/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/PaulDorrell/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/PaulDorrell/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/PaulDorrell/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/PaulDorrell/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/PaulDorrell/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/PaulDorrell/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/PaulDorrell/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/PaulDorrell/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/PaulDorrell/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/PaulDorrell/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/PaulDorrell/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/PaulDorrell/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/PaulDorrell/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/PaulDorrell/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/PaulDorrell/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/PaulDorrell/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 = 'Paul Dorrell 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> &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>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="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="pauldorrell@eircom.net">';
					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=\"Add to cart\" 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="pauldorrell@eircom.net">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" 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;
	}
}

			

