function thumbnail(g,e,b,f,d,a,c){this.id=g;this.galleries_id=e;this.caption=b;this.src=getServerPath(c)+"/"+f;this.width=d;this.height=a}function gallery(e,c,d,b,a){this.id=e;this.featured_images=c;this.title=d;this.section_code=b;this.photoIDs=a}var thumbnails=new Object();thumbnails[1300805]=new thumbnail(1300805,"92222","The Pictures (Promo Photographs)","Promotional pic 1_thumb.jpg",130,87,15);thumbnails[1300807]=new thumbnail(1300807,"92222","The Pictures (Promo Photographs)","Promotional pic 3_thumb.jpg",130,87,15);thumbnails[1300808]=new thumbnail(1300808,"92222","The Pictures (Promo Photographs)","Promotional pic 4_thumb.jpg",130,173,15);thumbnails[1300810]=new thumbnail(1300810,"92222","The Pictures (Promo Photographs)","Promotional pic 6_thumb.jpg",130,87,15);thumbnails[2490534]=new thumbnail(2490534,"92220","","01FORCLIKPIC_thumb.jpg",130,195,15);thumbnails[4883269]=new thumbnail(4883269,"137980","","02_thumb.jpg",130,195,15);thumbnails[4883298]=new thumbnail(4883298,"137980","","011_thumb.jpg",130,195,15);thumbnails[4883305]=new thumbnail(4883305,"137980","","03_thumb.jpg",130,187,15);thumbnails[4883308]=new thumbnail(4883308,"137980","","04_thumb.jpg",130,87,15);thumbnails[4883382]=new thumbnail(4883382,"137980","","05_thumb.jpg",130,87,15);thumbnails[4883393]=new thumbnail(4883393,"137980","","06_thumb.jpg",130,198,15);thumbnails[4883448]=new thumbnail(4883448,"137980","","07_thumb.jpg",130,87,15);thumbnails[4883467]=new thumbnail(4883467,"137980","","08_thumb.jpg",130,89,15);thumbnails[4883511]=new thumbnail(4883511,"137980","","09_thumb.jpg",130,87,15);thumbnails[4883556]=new thumbnail(4883556,"137980","","11_thumb.jpg",130,82,15);thumbnails[4883564]=new thumbnail(4883564,"137980","","12_thumb.jpg",130,198,15);thumbnails[4883554]=new thumbnail(4883554,"137980","","10_thumb.jpg",130,195,15);thumbnails[4883566]=new thumbnail(4883566,"137980","","13_thumb.jpg",130,87,15);thumbnails[4883580]=new thumbnail(4883580,"137980","","14_thumb.jpg",130,86,15);thumbnails[4883591]=new thumbnail(4883591,"137980","","15_thumb.jpg",130,87,15);thumbnails[4883614]=new thumbnail(4883614,"137980","","16_thumb.jpg",130,88,15);thumbnails[4883620]=new thumbnail(4883620,"137980","","17_thumb.jpg",130,87,15);thumbnails[4883637]=new thumbnail(4883637,"137980","","18_thumb.jpg",130,87,15);thumbnails[4883652]=new thumbnail(4883652,"137980","","19_thumb.jpg",130,188,15);thumbnails[4883662]=new thumbnail(4883662,"137980","","20_thumb.jpg",130,87,15);thumbnails[4883788]=new thumbnail(4883788,"278562","","21_thumb.jpg",130,89,15);thumbnails[4883793]=new thumbnail(4883793,"278562","","22_thumb.jpg",130,87,15);thumbnails[4883804]=new thumbnail(4883804,"278562","","23_thumb.jpg",130,87,15);thumbnails[4883940]=new thumbnail(4883940,"278562","","24_thumb.jpg",130,204,15);thumbnails[4883945]=new thumbnail(4883945,"278562","","25_thumb.jpg",130,87,15);thumbnails[4883954]=new thumbnail(4883954,"278562","","26_thumb.jpg",130,195,15);thumbnails[4883959]=new thumbnail(4883959,"278562","","27_thumb.jpg",130,85,15);thumbnails[4883962]=new thumbnail(4883962,"278562","","28_thumb.jpg",130,88,15);thumbnails[4883964]=new thumbnail(4883964,"278562","","29_thumb.jpg",130,195,15);thumbnails[4883965]=new thumbnail(4883965,"278562","","30_thumb.jpg",130,87,15);thumbnails[4883974]=new thumbnail(4883974,"278562","","012_thumb.jpg",130,188,15);thumbnails[4883995]=new thumbnail(4883995,"278562","","021_thumb.jpg",130,87,15);thumbnails[4884040]=new thumbnail(4884040,"278562","","031_thumb.jpg",130,181,15);thumbnails[4884057]=new thumbnail(4884057,"278562","","042_thumb.jpg",130,87,15);thumbnails[4884069]=new thumbnail(4884069,"278562","","051_thumb.jpg",130,87,15);thumbnails[4884072]=new thumbnail(4884072,"278562","","061_thumb.jpg",130,87,15);thumbnails[4884120]=new thumbnail(4884120,"278562","","071_thumb.jpg",130,87,15);thumbnails[4884122]=new thumbnail(4884122,"278562","","081_thumb.jpg",130,101,15);thumbnails[4884129]=new thumbnail(4884129,"278562","","091_thumb.jpg",130,87,15);thumbnails[4884138]=new thumbnail(4884138,"278562","","101_thumb.jpg",130,89,15);thumbnails[1758439]=new thumbnail(1758439,"90662","Charles Bridge, Prague.","Charles Bridge, Prague_thumb.jpg",130,87,15);thumbnails[1286808]=new thumbnail(1286808,"90662","Beach Walk","BEACH WALK with watermark_thumb.jpg",130,87,15);thumbnails[1286811]=new thumbnail(1286811,"90662","Castlewellen Forest Park ","Castlewellen Forest Park with watermark_thumb.jpg",130,87,15);thumbnails[1286815]=new thumbnail(1286815,"90662","Co. Antrim Coast","CO_thumb.ANTRIM COAST with watermark.jpg",130,87,15);thumbnails[1286872]=new thumbnail(1286872,"90662","Dunluce Castle<br>\r\n'SERENITY EXHIBITION'","Dunluce Castle with watermark_thumb.jpg",130,87,15);thumbnails[1286923]=new thumbnail(1286923,"90662","Giants Causeway Mountain","GIANTS CAUSEWAY MOUNTAIN with watermark_thumb.jpg",130,87,15);thumbnails[1286948]=new thumbnail(1286948,"90662","Isolation","ISOLATION with watermark_thumb.jpg",130,87,15);thumbnails[1286951]=new thumbnail(1286951,"90662","Railway","RAILWAY with watermark_thumb.jpg",130,87,15);thumbnails[1286955]=new thumbnail(1286955,"90662","Victoria Lock","Victoria Lock with watermark_thumb.jpg",130,87,15);thumbnails[1286959]=new thumbnail(1286959,"90662","Giants Causeway Coast","GIANTS CAUSEWAY COAST with watermark_thumb.jpg",130,87,15);thumbnails[1286968]=new thumbnail(1286968,"90662","Tyrella Beach","Tyrella Beach with watermark_thumb.jpg",130,87,15);thumbnails[1288669]=new thumbnail(1288669,"90662","Bridge Over Water<br>\r\n","Bridge over Water3_thumb.jpg",130,87,15);thumbnails[1288675]=new thumbnail(1288675,"90662","A Fermanagh View","A Fermanagh View_thumb.jpg",130,87,15);thumbnails[1288680]=new thumbnail(1288680,"90662","Giants Causeway","giants causeway_thumb.jpg",130,87,15);thumbnails[1288681]=new thumbnail(1288681,"90662","Giants Causeway Clouded Mountain","Giants Causeway Clouded Mountain_thumb.jpg",130,87,15);thumbnails[1288682]=new thumbnail(1288682,"90662","Slieve Foy","Slieve Foy Mountain_thumb.jpg",130,87,15);thumbnails[1288683]=new thumbnail(1288683,"90662","Rock & Sand","Rock and Sand_thumb.jpg",130,87,15);thumbnails[1288686]=new thumbnail(1288686,"90662","Strangford Lough Sailing","Strangford Lough Sailing_thumb.jpg",130,87,15);thumbnails[1288690]=new thumbnail(1288690,"90662","Streaming at Bloody Bridge","Streaming at Bloody Bridge_thumb.jpg",130,87,15);thumbnails[1288691]=new thumbnail(1288691,"90662","Yellowwater Forest","Yellowwater Forest_thumb.jpg",130,87,15);thumbnails[1288692]=new thumbnail(1288692,"90662","Yellowwater Forest Park Bridge","Yellowwater Forest Park Bridge_thumb.jpg",130,87,15);thumbnails[1288695]=new thumbnail(1288695,"90662","Mourne Mountains","Mourne Mountains with watermark_thumb.jpg",130,87,15);thumbnails[1295126]=new thumbnail(1295126,"90662","Cliffs at Bloody Bridge","Cliffs at Bloody Bridge_thumb.jpg",130,87,15);thumbnails[1295133]=new thumbnail(1295133,"90662","Lissadell House","Lissadell House_thumb.jpg",130,87,15);thumbnails[1295135]=new thumbnail(1295135,"90662","Lone Figure on a Sligo Beach","Lone Figure on a Sligo Beach_thumb.jpg",130,87,15);thumbnails[1308168]=new thumbnail(1308168,"90662","Abandon","Abandon_thumb.jpg",130,87,15);thumbnails[1308169]=new thumbnail(1308169,"90662","View the Beach","View the Beach_thumb.jpg",130,87,15);thumbnails[1310023]=new thumbnail(1310023,"90662","Narrow Water Keep<br>\r\n'SERENITY EXHIBITION'","Narrow Water Keep with watermark_thumb.jpg",130,87,15);thumbnails[1460023]=new thumbnail(1460023,"90662","Belfast Rooftops","Belfast Rooftops1_thumb.jpg",130,87,15);thumbnails[1460035]=new thumbnail(1460035,"90662","Loneliness","Loneliness_thumb.jpg",130,87,15);thumbnails[1460050]=new thumbnail(1460050,"90662","Yellowwater","Yellowwater_thumb.jpg",130,87,15);thumbnails[1460676]=new thumbnail(1460676,"90662","Forsaken","Forsaken_thumb.jpg",130,87,15);thumbnails[1339950]=new thumbnail(1339950,"90662","Atmospheric Tree","Atmospheric Tree2_thumb.jpg",130,195,15);thumbnails[1460031]=new thumbnail(1460031,"90662","Silhouette Tree","Clouded1_thumb.jpg",130,196,15);thumbnails[1460040]=new thumbnail(1460040,"90662","Stairway","Stairway_thumb.jpg",130,195,15);thumbnails[1372156]=new thumbnail(1372156,"91614","Home portrait ","Shannon1_thumb.jpg",130,92,15);thumbnails[1368416]=new thumbnail(1368416,"91614","Sonya Duffy 1","Sonya 11_thumb.jpg",130,195,15);thumbnails[1368417]=new thumbnail(1368417,"91614","Sonya Duffy 2","Sonya 21_thumb.jpg",130,195,15);thumbnails[1417345]=new thumbnail(1417345,"91614","Sonya Duffy 3","Sonya 3_thumb.jpg",130,181,15);thumbnails[1440937]=new thumbnail(1440937,"91614","Sonya Duffy 4","Sonya 4_thumb.jpg",130,195,15);thumbnails[1444679]=new thumbnail(1444679,"91614","Sonya Triptych","Sonya triptych_thumb.jpg",130,87,15);thumbnails[1286510]=new thumbnail(1286510,"90665","Ballykeel Dolmen<br>\r\n'SERENITY EXHIBITION'","Ballykeel Dolmen with watermark_thumb.jpg",130,87,15);thumbnails[1286516]=new thumbnail(1286516,"90665","Ballymacdermott Court Tomb<br>\r\n'SERENITY EXHIBITION'","Ballymacdermott Court Tomb with watermark_thumb.jpg",130,87,15);thumbnails[1286655]=new thumbnail(1286655,"90665","Clontygora Court Tomb 1<br>\r\n'SERENITY EXHIBITION'","Clontygora Court Tomb Moonlight1_thumb.jpg",130,87,15);thumbnails[1286662]=new thumbnail(1286662,"90665","Clontygora Court Tomb 2<br>\r\n'SERENITY EXHIBITION'","Clontygora Court Tomb with watermark_thumb.jpg",130,87,15);thumbnails[1286723]=new thumbnail(1286723,"90665","Goward Dolmen<br>\r\n'SERENITY EXHIBITION'","Goward Dolmen with watermark_thumb.jpg",130,87,15);thumbnails[1288694]=new thumbnail(1288694,"90665","Drumbo Round Tower<br>\r\n'SERENITY EXHIBITION'","Drumbo Round Tower with watermark_thumb.jpg",130,87,15);thumbnails[1758462]=new thumbnail(1758462,"90666","St. Vitus Cathedral, Prague","St_thumb. Vitus Cathedral, Prague.jpg",130,87,15);thumbnails[1286372]=new thumbnail(1286372,"90666","Armagh Cathedral","Armagh Cathedral with watermark_thumb.jpg",130,87,15);thumbnails[1286455]=new thumbnail(1286455,"90666","Killeavy Church<br>\r\n'SERENITY EXHIBITION'","Killeavy Church with watermark_thumb.jpg",130,87,15);thumbnails[1286457]=new thumbnail(1286457,"90666","Killeavy Old Church<br>\r\n'SERENITY EXHIBITION'","Killeavy Old Church with watermark_thumb.jpg",130,87,15);thumbnails[1286459]=new thumbnail(1286459,"90666","Newry Cathedral","Newry Cathedral with watermark_thumb.jpg",130,87,15);thumbnails[1286472]=new thumbnail(1286472,"90666","Armagh Church 2","Armagh Church with watermark_thumb.jpg",130,87,15);thumbnails[1286500]=new thumbnail(1286500,"90666","Armagh Church","Armagh Church 2 with watermark1_thumb.jpg",130,87,15);thumbnails[1288693]=new thumbnail(1288693,"90666","Church & Field","CHURCH AND FIELD with watermark_thumb.jpg",130,87,15);thumbnails[1531996]=new thumbnail(1531996,"91615","Gerry Adams Book Signing.","Gerry Adams Book Signing_thumb.jpg",130,119,15);thumbnails[1532029]=new thumbnail(1532029,"91615","Newry Football Club 2007","Newry Football Club_thumb.jpg",130,67,15);thumbnails[1759484]=new thumbnail(1759484,"91615","Arizona Spur Steakhouse & Grill.","Spur Bar and Restaurant_thumb.jpg",130,87,15);thumbnails[1759487]=new thumbnail(1759487,"91615","Highlife Hoopla, Cobbles Bar, Newry","Highlife Hoopla, Cobbles Bar, Newry_thumb.jpg",130,87,15);thumbnails[1759490]=new thumbnail(1759490,"91615","A member of the breakdancing group Zombie Cru.","Highlife Hoopla, Cobbles Bar, Newry 2_thumb.jpg",130,114,15);thumbnails[1759529]=new thumbnail(1759529,"91615","A member of the breakdancing group Zombie Cru.","Highlife Hoopla, Cobbles Bar, Newry 3_thumb.jpg",130,195,15);thumbnails[1759537]=new thumbnail(1759537,"91615","DJ Cool C, from Dublin, entertaining the crowds in Cobbles Bar.","Highlife Hoopla, Cobbles Bar, Newry 4_thumb.jpg",130,87,15);thumbnails[1927597]=new thumbnail(1927597,"91615","Ultimate Conflict 'Battle on the Border'","Ultimate Conflict 01_thumb.jpg",130,87,15);thumbnails[1927598]=new thumbnail(1927598,"91615","Ultimate Conflict 'Battle on the Border'","Ultimate Conflict 02_thumb.jpg",130,87,15);thumbnails[1287400]=new thumbnail(1287400,"91351","Tree Trunk","TREE TRUNK with watermark_thumb.jpg",130,87,15);thumbnails[1459930]=new thumbnail(1459930,"91351","Rock Pool","Rock Pool_thumb.jpg",130,87,15);thumbnails[1459931]=new thumbnail(1459931,"91351","Rock Face","Rock Face_thumb.jpg",130,87,15);var galleries=new Object();galleries[278561]=new gallery(278561,"4884138,4884129,4884122,4884120,4884072,4884069,4884057,4884040,4883995,4883974","Lifting the Veil Contemporary Wedding Photography","gallery",[]);galleries[92220]=new gallery(92220,"2490534","Live band photography","gallery",[2490534]);galleries[92222]=new gallery(92222,"1300810,1300808,1300807,1300805","Promotional Band Photographs","gallery",[1300805,1300807,1300808,1300810]);galleries[137980]=new gallery(137980,"4883662,4883652,4883637,4883620,4883614,4883591,4883580,4883566,4883564,4883556","Wedding Photography Gallery One","gallery",[4883269,4883298,4883305,4883308,4883382,4883393,4883448,4883467,4883511,4883556,4883564,4883554,4883566,4883580,4883591,4883614,4883620,4883637,4883652,4883662]);galleries[278562]=new gallery(278562,"4884138,4884129,4884122,4884120,4884072,4884069,4884057,4884040,4883995,4883974","Wedding Photography Gallery Two","gallery",[4883788,4883793,4883804,4883940,4883945,4883954,4883959,4883962,4883964,4883965,4883974,4883995,4884040,4884057,4884069,4884072,4884120,4884122,4884129,4884138]);galleries[91612]=new gallery(91612,"1758462,1758439,1460676,1460050,1460040,1460035,1460031,1460023,1459931,1459930","Fine Art Photography","gallery",[]);galleries[90662]=new gallery(90662,"1758439,1460676,1460050,1460040,1460035,1460031,1460023,1339950,1310023,1308169","Landscapes","gallery",[1758439,1286808,1286811,1286815,1286872,1286923,1286948,1286951,1286955,1286959,1286968,1288669,1288675,1288680,1288681,1288682,1288683,1288686,1288690,1288691,1288692,1288695,1295126,1295133,1295135,1308168,1308169,1310023,1460023,1460035,1460050,1460676,1339950,1460031,1460040]);galleries[91614]=new gallery(91614,"1444679,1440937,1417345,1372156,1368417,1368416","Portraiture","gallery",[1372156,1368416,1368417,1417345,1440937,1444679]);galleries[90665]=new gallery(90665,"1288694,1286723,1286662,1286655,1286516,1286510","Dolmens, Round Towers & Court Tombs","gallery",[1286510,1286516,1286655,1286662,1286723,1288694]);galleries[90666]=new gallery(90666,"1758462,1288693,1286500,1286472,1286459,1286457,1286455,1286372","Churches","gallery",[1758462,1286372,1286455,1286457,1286459,1286472,1286500,1288693]);galleries[92221]=new gallery(92221,"2490534,1300810,1300808,1300807,1300805","Band/Gig Photography","gallery",[]);galleries[91615]=new gallery(91615,"1927598,1927597,1759537,1759529,1759490,1759487,1759484,1532029,1531996","Promotional Photography","gallery",[1531996,1532029,1759484,1759487,1759490,1759529,1759537,1927597,1927598]);galleries[91351]=new gallery(91351,"1459931,1459930,1287400","Abstract","gallery",[1287400,1459930,1459931]);var imageSets=new Object();imageSets[1]="4884069,4884057,4883962,4883804,4883580,4883511,4883467,4883448,4883393,4883382,4883298,4883269";imageSets[3]="4884138,4884129,4884122,4884120,4884072,4884069,4884057,4884040,4883995,4883974,4883965,4883964,4883962,4883959,4883954,4883945,4883940,4883804,4883793,4883788,4883662,4883652,4883637,4883620,4883614,4883591,4883580,4883566,4883564,4883556,4883554,4883511,4883467,4883448,4883393,4883382,4883308,4883305,4883298,4883269,2490534,1927598,1927597,1759537,1759529,1759490,1759487,1759484,1758462,1758439";function randomListVal(a){arrayVals=a.split(",");if(arrayVals.length){pos=Math.round(Math.random()*(arrayVals.length-1));val=arrayVals[pos]}else{val=0}return val}function getServerPath(a){var b=-1;switch(a){case 21:b="http://www6.clikpic.com/ronanmcgovern/images";break}switch(a){case 1:b="http://www1.clikpic.com/ronanmcgovern/images";break}switch(a){case 2:b="http://admin.clikpic.com/ronanmcgovern/images";break}switch(a){case 24:b="http://tpc15/clikpic/ronanmcgovern/images";break}switch(a){case 4:b="http://www.clikchurch.com/ronanmcgovern/images";break}switch(a){case 5:b="http://www2.clikpic.com/ronanmcgovern/images";break}switch(a){case 22:b="http://tpc5/clikpic/ronanmcgovern/images";break}switch(a){case 23:b="http://tpc10/clikpic/ronanmcgovern/images";break}switch(a){case 25:b="http://tpc16/clikpic/ronanmcgovern/images";break}switch(a){case 15:b="http://www3.clikpic.com/ronanmcgovern/images";break}switch(a){case 18:b="http://www4.clikpic.com/ronanmcgovern/images";break}switch(a){case 19:b="http://www5.clikpic.com/ronanmcgovern/images";break}switch(a){case 31:b="http://www7.clikpic.com/ronanmcgovern/images";break}switch(a){case 32:b="http://admin2.clikpic.com/ronanmcgovern/images";break}switch(a){case 33:b="http://www8.clikpic.com/ronanmcgovern/images";break}switch(a){case 34:b="http://www9.clikpic.com/ronanmcgovern/images";break}switch(a){case 35:b="http://admin3.clikpic.com/ronanmcgovern/images";break}switch(a){case 37:b="http://admin4.clikpic.com/ronanmcgovern/images";break}return b}function showHomeImage(a){imageID=randomListVal("");if(!basic){a.src=photos[imageID].src;a.width=photos[imageID].width;a.height=photos[imageID].height}else{newImage=new Image(photos[imageID].width,photos[imageID].height);newImage.src=photos[imageID].src;document.images[a.name]=newImage}}function showHomeImageInline(){html="";imageID=randomListVal(imageSets[1]);if("gallery"!=""){if(backgrounds[imageID].galleries_id!=""){html+='<a href="'+backgrounds[imageID].section_code+"_"+backgrounds[imageID].galleries_id+'.html">'}else{html+='<a href="gallery.html">'}}html+='<img src="'+backgrounds[imageID].src+'" width="'+backgrounds[imageID].width+'" height="'+backgrounds[imageID].height+'" class="mainhomepageimage photo" id="mainSample" name="mainSample" alt="'+backgrounds[imageID].caption+'" border="0">';if("gallery"!=""){html+="</a>"}$("#homepageimage").html(html)}function getNextId(b,d,a){var c=getArrayPos(d,b);if(a){if(c==0){nextImgPos=d.length-1}else{nextImgPos=c-1}}else{if(c==d.length-1){nextImgPos=0}else{nextImgPos=c+1}}nextImg=d[nextImgPos];return nextImg}function next(d,b){var c=d.value;var a=galleries[photos[c].galleries_id].photoIDs;nextImg=getNextId(c,a);if(nextImg!=-1){updateImage(nextImg,d,b)}}function updateImage(f,e,b){if(!basic){document.getElementById("imagePhoto").innerHTML='<img class="mainphoto photo" src="'+photos[f].src+' " id="mainPic" name="mainPic" width="'+photos[f].width+'" height="'+photos[f].height+'" alt="'+photos[f].caption+'">';e.value=photos[f].id;$("#imageTitle").html(photos[f].caption);document.title="Ronan McGovern Photography: "+photos[f].caption;if(photos[f].caption==""){document.getElementById("imageTitle").style.display="none"}else{document.getElementById("imageTitle").style.display="block"}var a=fnGetImageDetails(f);if(a==""){document.getElementById("imageDetails").style.display="none";var c=document.getElementById("infoWrap");var d=document.getElementById("photoInfo");if(photos[f].caption==""){if(c!=null){c.className="empty"}if(d!=null){d.className="empty"}}else{if(c!=null){c.className="noinfo"}if(d!=null){d.className="noinfo"}}}else{document.getElementById("imageDetails").style.display="block";var c=document.getElementById("infoWrap");if(c!=null){c.className="normal"}var d=document.getElementById("photoInfo");if(d!=null){d.className="normal"}}document.getElementById("imageDetails").innerHTML=a;toggleAddToCartConfirm()}else{window.location="photo_"+photos[f].id+".html"}}function toggleAddToCartConfirm(){if($("#paymentConfirm").size()){$("#paymentConfirm").hide();$("#paymentAddButton").unbind().click(function(){form=document.getElementById("paymentForm");option_id=0;if(form.item_option.value){option_id=form.item_option.value}if(addItemToBasket(form.item_number.value,photos,form.site.value,parseInt(form.quantity.value,10),option_id)){if($.browser.msie){$("#paymentConfirm").text("Item added to cart").show()}else{$("#paymentConfirm").text("Item added to cart").fadeIn()}}else{$("#paymentConfirm").text("Item not added - check cookies are enabled in your browser.").fadeIn()}})}}function fnGetImageDetails(b){var a="";if(photos[b].description!=""){a=a+'<p id="imageDescription">'+photos[b].description+"</p>"}if(photos[b].photo_ref!=""){a=a+'<p class="imageinfo" id="imageRef"><strong>Ref: </strong>'+photos[b].photo_ref+"</p>"}if(photos[b].takendate!=""){a=a+'<p class="imageinfo" id="imageDate"><strong>Date: </strong>'+photos[b].takendate+"</p>"}if(photos[b].location!=""){a=a+'<p class="imageinfo" id="imageLocation"><strong>Location: </strong>'+photos[b].location+"</p>"}if(photos[b].photographer!=""){a=a+'<p class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>'+photos[b].photographer+"</p>"}a=a+fnGetPaymentInfo(photos[b]);if(a!=""){a=a+'<div class="spacer"></div>'}return a}function fnGetPaymentInfo(c){var b="";if(c.item_price!==""){b=b+"<p>Buy now using PayPal:</p>";b=b+'<p class="imageinfo" id="imagePrice"><strong>'+c.purchase_instruction+"</strong> 				&pound;"+(c.item_price).toFixed(2)+"</p>";var e=c.purchase_instruction;var d=(c.item_price).toFixed(2);var a=0}else{if(c.payment_groups_id!==""){b=b+"<p>Buy this print online:</p>";b=b+'<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';b=b+'<select class="paymentlink" name="payment_options_id" onchange="updateItemValues(document.forms.paymentForm,this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';b=b+getPaymentOptions(c.payment_groups_id);b=b+"</select>";b=b+"</form>";var a=paymentGroups[c.payment_groups_id].options[0];if(paymentOptions[a]){var e=paymentOptions[a].payment_option;var d=paymentOptions[a].price}}else{}}if(c.item_price!==""||c.payment_groups_id!==""){b=b+'<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';b=b+'<input type="hidden" name="item_name" value="'+e+'">';ref="";if(c.photo_ref!=""){ref=c.photo_ref+" - "+c.caption}else{ref=c.id+" - "+c.caption}price=d;b=b+'<input type="hidden" name="cmd" value="_cart">';b=b+'<input type="hidden" name="business" value="ronanmcgovern@hotmail.co.uk">';b=b+'<input type="hidden" name="currency_code" value="GBP">';b=b+'<input type="hidden" name="add" value="1">';b=b+'<input type="hidden" name="amount" value="'+d+'">';b=b+'<input type="hidden" name="item_number" value="'+ref+'">';b=b+'<input type="Submit" value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';">';b=b+"</form>";b=b+'<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';b=b+'<input type="hidden" name="cmd" value="_cart">';b=b+'<input type="hidden" name="business" value="ronanmcgovern@hotmail.co.uk">';b=b+'<input type="hidden" name="display" value="1">';b=b+'<input type="Submit" value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';">';b=b+"</form>";b=b+'<div class="clearing">&nbsp;</div>'}return b}function previous(d,b){var c=d.value;var a=galleries[photos[c].galleries_id].photoIDs;nextImg=getNextId(c,a,1);if(nextImg!=-1){updateImage(nextImg,d,b)}}function showGalleryImage(c,b){imageID=randomListVal(galleries[c].featured_images);if(imageID!=0){b.src=thumbnails[imageID].src;b.width=thumbnails[imageID].width;b.height=thumbnails[imageID].height;if(b.width<130){var f=$("img#gallery"+c);f.parents(".thumbWrap").width(b.width);var a=f.siblings("h3").size()==1?f.siblings("h3"):f.parent(".thumbWrap").siblings("h3");var g=parseInt(a.css("padding-left"))+parseInt(a.css("padding-right"));var d=parseInt(a.css("border-left-width"))+parseInt(a.css("border-right-width"));var e=parseInt(f.parents(".thumbWrap").css("border-left-width"))+parseInt(f.parents(".thumbWrap").css("border-right-width"));a.width(f.outerWidth(true)-g-d+e)}}}function showGalleries(a){if(!basic){temp="";for(i=0;i<galleries.length;i++){if(galleries[i].id!=a){if(temp!=""){temp=temp+" | "}temp=temp+'<a href="gallery_'+galleries[i].id+'.html">'+galleries[i].title+"</a>"}}document.all.galleryLinks.innerHTML="Other galleries: "+temp}}function resizePhotoInfo(n){var b=$.extend({centre:false},n||{});var d=3;$("div#photoPanelOuter").height("auto");$("div#infoWrap").width(200);$("div#photoDetail").css("width","auto");var h=$("div#maincolContent").width();var j=$("div#photoWrap").outerWidth(true);var m=$("div#infoWrap").outerWidth(true);var k=$("div#photoWrap").outerHeight();var f=$("div#infoWrap").outerHeight();var c=$("div#infoWrap").hasClass("empty");floatDrop=0;var g=j;if(!c){if(h<(j+m)){floatDrop=1}if(!floatDrop){var a=$("div#infoWrap").innerWidth();$("div#infoWrap").width(a+(h-j-m-d));m=$("div#infoWrap").outerWidth(true);g=j+m;if(k>f){var e=$("div#photoPanelOuter").height();$("div#photoPanelOuter").height(e+(k-f));var f=$("div#infoWrap").outerHeight()}}else{var l=$("div#photoWrap").outerWidth();$("div#infoWrap").width(l)}}if(b.centre){$("div#photoDetail").width(g);$("div#photoDetail").css("margin-left","auto");$("div#photoDetail").css("margin-right","auto")}else{$("div#photoDetail").css("margin-left","0");$("div#photoDetail").css("margin-right","0")}}function getArrayPos(c,b){for(var a=0;a<c.length;a++){if(c[a]==b){return a}}return -1}function changeBgImg(a,e){var c=randomListVal(imageSets[e]);var d=backgrounds[c].src;var b=$(a);if(b.size()>0){if(/\bimg$/.test(a)){b.attr({src:d})}else{b.css({"background-image":'url("'+d+'")'})}}};