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[4877886]=new thumbnail(4877886,"","","goldcompositependantimagedetail_72dpi_thumb.jpg",130,105,5);thumbnails[4877887]=new thumbnail(4877887,"","","silvercompositependantimagedetail_72dpi_thumb.jpg",130,105,5);thumbnails[5088630]=new thumbnail(5088630,"","'Bead' patterned wedding band","beadplainband_72dpi_thumb.jpg",130,131,5);thumbnails[5088707]=new thumbnail(5088707,"","'Cube' Pattern Wedding Band","cubeplainband_72dpi_thumb.jpg",130,130,5);thumbnails[6122192]=new thumbnail(6122192,"","","BJALOGOforclicpix_thumb.jpg",130,186,5);thumbnails[4885941]=new thumbnail(4885941,"","'Contemporary Classics' Silver Cube Earrings No.1","6mmsquaresilvertopazearringoblique_72dpi_thumb.jpg",130,130,5);thumbnails[4898474]=new thumbnail(4898474,"279197","Engagement and Wedding ring combination","5mmsquaregoldweddingtopview_72dpi_thumb.jpg",130,129,5);thumbnails[4999636]=new thumbnail(4999636,"","","circilarlogoandname_72dpi_thumb.jpg",130,130,5);thumbnails[4885953]=new thumbnail(4885953,"","'Contemporary Classics' Silver Cube Earrings No.2","squaresilvertopaztassleearringoblique01_72dpi_thumb.jpg",130,130,5);thumbnails[4886208]=new thumbnail(4886208,"","'Contemporary Classics' Silver Cube Pendant No.2","silvertopaztasslependant_72dpi_thumb.jpg",130,105,5);thumbnails[4886316]=new thumbnail(4886316,"","'Contemporary Classics' Gold Cube Pendant No.2","7mmsqgoldgarnettasslependant_72dpi_thumb.jpg",130,105,5);thumbnails[4886418]=new thumbnail(4886418,"","","goldmultichainnecklacestonedetail_72dpi_thumb.jpg",130,130,5);thumbnails[4886443]=new thumbnail(4886443,"","","silvertopazmultichainnecklacedetail_72dpi_thumb.jpg",130,130,5);thumbnails[4898488]=new thumbnail(4898488,"","Engagement and Wedding Band Combination","5mmsquaregoldweddingsetsideview_72dpi_thumb.jpg",130,129,5);thumbnails[4954653]=new thumbnail(4954653,"","St Paul's Cufflink Detail","stpaulcufflinkdetail_300dpi_thumb.jpg",130,130,5);thumbnails[6086463]=new thumbnail(6086463,"","Silver multi chain necklace","silvertopazmultichainnecklacedetail_72dpi_04063957-1EC9-D45B-1CE589EAE98CFCD5_thumb.jpg",130,130,5);thumbnails[4886229]=new thumbnail(4886229,"","'Contemporary Classics' Silver Motif Pendant No.1","silvermotifpendantview1_72dpi_thumb.jpg",130,105,5);thumbnails[4886322]=new thumbnail(4886322,"","'Contemporary Classics' Gold Motif Pendant no.1","goldmotifpendant_72dpi_thumb.jpg",130,105,5);thumbnails[4886416]=new thumbnail(4886416,"","","goldmultichainnecklaceclaspdetail_72dpi_thumb.jpg",130,130,5);thumbnails[4898486]=new thumbnail(4898486,"279197","Engagement and Wedding Ring Combination","5mmsquaresilverweddingsettopview_72dpi_thumb.jpg",130,128,5);thumbnails[5088989]=new thumbnail(5088989,"","'Contemporary Classics' Silver Cube Earrings No.2","squaresilvergarnettassleearringflat_72dpi_thumb.jpg",130,130,5);thumbnails[4881816]=new thumbnail(4881816,"","'Contemporary Classics' Gold Ring No.8","7mmroungoldringobliqueview_72dpi_thumb.jpg",130,130,5);thumbnails[4885979]=new thumbnail(4885979,"","'Contemporary Classics' Silver Motif Earrings No.1","silvermotifearringsoblique_72dpi_thumb.jpg",130,130,5);thumbnails[4885986]=new thumbnail(4885986,"","'Contemporary Classics' Silver Motif Earrings No.2","silvermotiftassleearringsoblique_72dpi_thumb.jpg",130,130,5);thumbnails[4886251]=new thumbnail(4886251,"","'Contemporary Classics' Silver Motif Pendant No.2","silvertopazmotiftasslependant_72dpi_thumb.jpg",130,105,5);thumbnails[4886328]=new thumbnail(4886328,"","'Contemporary Classics' Gold Motif Pendant No.2","goldgarnetmotiftasslependant__72dpi_thumb.jpg",130,105,5);thumbnails[4898143]=new thumbnail(4898143,"","Bank Cufflink Detail","bankcufflinkdetail_300dpi_thumb.jpg",130,130,5);thumbnails[4898490]=new thumbnail(4898490,"","Engagement and Wedding Ring Combination","5mmsquaresilverweddingsetsideview_72dpi_thumb.jpg",130,128,5);thumbnails[5088715]=new thumbnail(5088715,"","'Motif' Engagement Ring","silverbandwithtourmaline_72dpi_thumb.jpg",130,130,5);thumbnails[4885918]=new thumbnail(4885918,"","'Contemporary Classics' Gold Motif Earrings No.3","goldgarnetmotiftassleearringsoblique_72dpi_thumb.jpg",130,130,5);thumbnails[5088719]=new thumbnail(5088719,"","'Motif' Engagement Ring With Plain Wedding Ring","silverbandringwithtourmaline03_72dpi_thumb.jpg",130,130,5);thumbnails[4885999]=new thumbnail(4885999,"","'Contemporary Classics' Silver Motif Earring No.3","silvertopazmotiftassleearringflat01_72dpi_thumb.jpg",130,130,5);thumbnails[4886201]=new thumbnail(4886201,"","","silvermotifpendantdetail_72dpi_thumb.jpg",130,130,5);thumbnails[4886302]=new thumbnail(4886302,"","","goldmotifpendantdetail_72dpi_thumb.jpg",130,130,5);thumbnails[5088769]=new thumbnail(5088769,"","'Motif' Engagement Ring with choice of patterned wedding rings.","widebandsilvertourmalinewithtwoplainbands_72dpi_thumb.jpg",130,130,5);thumbnails[5095840]=new thumbnail(5095840,"","'Contemporary Classics' Ring No. 9","silverbandwithtourmalinesideview01_72dpi_thumb.jpg",130,130,5);thumbnails[2721917]=new thumbnail(2721917,"279197","Plain and Patterned Wedding Rings","goldsilvermultibandstackingrings_thumb.jpg",130,87,5);thumbnails[4886202]=new thumbnail(4886202,"","","generalsilverclaspdetailforpendants_72dpi_thumb.jpg",130,130,5);thumbnails[5095783]=new thumbnail(5095783,"","Stacking Ring Combinations","goldround_and_squarestone02_72dpi_thumb.jpg",130,130,5);thumbnails[2721919]=new thumbnail(2721919,"","Plain and patterned wedding rings","goldsilvermultibandstackingringsupright_thumb.jpg",130,125,5);thumbnails[4886205]=new thumbnail(4886205,"","","silvertopazmotiftasslependantdetail_72dpi_thumb.jpg",130,130,5);thumbnails[4886308]=new thumbnail(4886308,"","","goldgarnetmotiftasslependantdetail__72dpi_thumb.jpg",130,130,5);thumbnails[5088712]=new thumbnail(5088712,"","Patterned and Plain Wedding Rings","threesilverweddingbands_200dpi_thumb.jpg",130,130,5);thumbnails[5095791]=new thumbnail(5095791,"","Stacking Ring Combinations","goldsqaureandsquarestone_72dpi_thumb.jpg",130,130,5);thumbnails[2721954]=new thumbnail(2721954,"","Silver 'cube and sphere' cufflinks","cubeandspherecufflinks_thumb.jpg",130,87,5);thumbnails[5095805]=new thumbnail(5095805,"","Stacking Ring Combinations","goldtwosquarestones02_72dpi_thumb.jpg",130,130,5);thumbnails[2721957]=new thumbnail(2721957,"","Silver and gold plated earrings.","earringsgoldsilver_thumb.jpg",130,87,5);thumbnails[5095812]=new thumbnail(5095812,"","Stacking Ring Combinations","goldthreesqaurerings_72dpi_thumb.jpg",130,130,5);thumbnails[2720257]=new thumbnail(2720257,"172716","St Paul's Cufflinks <br>\r\n","stpaulcufflinkscompositeimage_300dpi1_thumb.jpg",130,130,5);thumbnails[4881778]=new thumbnail(4881778,"278505","Classic Ring No.5","bkennedyclassicringNo5groupclikpix_72dpi_thumb.JPG",130,97,5);thumbnails[4881782]=new thumbnail(4881782,"278505","Classic Ring No.6","bkennedyclassicringNo6groupclikpix_72dpi_thumb.JPG",130,94,5);thumbnails[2720250]=new thumbnail(2720250,"172716","'Bank of England' Silver Cufflinks<br>\r\n","BronaghKennedBankCufflinks_thumb.jpg",130,121,5);thumbnails[4881809]=new thumbnail(4881809,"278505","Classic Ring No.7","bkennedyclassicringNo7group01clikpix_72dpi_thumb.JPG",130,99,5);thumbnails[4877880]=new thumbnail(4877880,"278505","Classic Ring No. 8","bkennedyclassicringNo10groupclikpix_72dpi_thumb.JPG",130,130,5);thumbnails[5189273]=new thumbnail(5189273,"172716","St Paul's Brooch","stpaulsbroochfront_72dpi_thumb.jpg",130,131,5);thumbnails[4882492]=new thumbnail(4882492,"278505","Silver and Gold Stack Ring","silvergoldstackring_72dpi_thumb.jpg",130,130,5);thumbnails[5189281]=new thumbnail(5189281,"172716","St Paul's Brooch Pin","stpaulsbroochback_72dpi_thumb.jpg",130,130,5);thumbnails[4882498]=new thumbnail(4882498,"278505","Silver Stack Ring","silverstackring_72dpi_thumb.jpg",130,130,5);thumbnails[4885511]=new thumbnail(4885511,"278512","Classic Cube Earrings No.1","bkennedyclassicearringsgroupclikpix_72dpi_thumb.JPG",130,79,5);thumbnails[4898056]=new thumbnail(4898056,"279186","London Map Rings","bkennedylondonmapring_thumb.jpg",130,105,5);thumbnails[4885775]=new thumbnail(4885775,"278512","Classic Cube Earrings No.2","bkennedycubeearringNo2groupclikpix_72dpi_thumb.JPG",130,88,5);thumbnails[4898064]=new thumbnail(4898064,"279186","London Map Ring","oxidisedmapring_72dpi_thumb.jpg",130,105,5);thumbnails[4885793]=new thumbnail(4885793,"278512","Classic Motif Earrings No.1","bkennedymotifearringNo1groupclikpix_72dpi_thumb.JPG",130,94,5);thumbnails[4885908]=new thumbnail(4885908,"278512","Classic Motif Earrings No.2","bkennedymotif_earringgroup_72dpi_11_thumb.jpg",130,92,5);thumbnails[4886295]=new thumbnail(4886295,"278510","Classic Cube Pendant","bkennedypclassicpendantsgroupclikpix_72dpi_thumb.JPG",130,98,5);thumbnails[4898078]=new thumbnail(4898078,"279191","Belfast City Centre ","belfastcufflinks02_72dpi_thumb.jpg",130,105,5);thumbnails[4886299]=new thumbnail(4886299,"278510","Classic Cube Pendant","bkennedyclasssicpendantclikpix_72dpi_thumb.JPG",130,130,5);thumbnails[4898081]=new thumbnail(4898081,"279191","","belfastcufflinks01_72dpi_thumb.jpg",130,105,5);thumbnails[4886412]=new thumbnail(4886412,"278510","Classic Multi Chain Necklace","goldmultichainnecklace_72dpi_thumb.jpg",130,192,5);thumbnails[4898084]=new thumbnail(4898084,"279191","Belfast City Centre brooch","belfastbroochback_72dpi_thumb.jpg",130,105,5);thumbnails[4898086]=new thumbnail(4898086,"279191","Belfast City Centre brooch","belfastbroochfront_72dpi_thumb.jpg",130,105,5);thumbnails[4898088]=new thumbnail(4898088,"279191","Hatton Garden Cufflinks","hattongardencufflinks_72dpi_thumb.jpg",130,105,5);thumbnails[6122000]=new thumbnail(6122000,"278510","Multi-Chain Necklace in Silver and Garnet.","bkennedysilvermultichaon_72dpi_3_thumb.jpg",130,111,5);thumbnails[4886306]=new thumbnail(4886306,"278510","Classic Long Chain Necklace","bkennedyclassiclongchaingoldclikpix_72dpi_thumb.JPG",130,133,5);thumbnails[6086525]=new thumbnail(6086525,"278510","Classic Long Chain Necklace","bkennedylongchaingroupclikpix_72dpi_thumb.jpg",130,130,5);thumbnails[6121981]=new thumbnail(6121981,"343101","Classic Bangles","bkennedybanglescloseup_72dpi_4_thumb.jpg",130,98,5);thumbnails[4877884]=new thumbnail(4877884,"278506","'Contemporary Classics' Silver Collection","compositesilverring_72dpi_thumb.jpg",130,105,5);thumbnails[6121873]=new thumbnail(6121873,"343101","Classic Bangles","bkennedybanglesgroup_72dpi_thumb.jpg",130,98,5);thumbnails[4882158]=new thumbnail(4882158,"278506","'Contemporary Classics' Silver Ring No. 5","5mmsquaresilverringobliqueview_72dpi_thumb.jpg",130,130,5);thumbnails[4882167]=new thumbnail(4882167,"278506","'Contemporary Classics' Silver Ring No.6","6mmsquaresilverringobliqueview_72dpi_thumb.jpg",130,130,5);thumbnails[4882180]=new thumbnail(4882180,"278506","'Contemporary Classics' Silver Ring No.7","7mmsquaresilverringobliqueview_72dpi_thumb.jpg",130,130,5);thumbnails[4882277]=new thumbnail(4882277,"278506","'Contemporary Classics' Silver Ring No.8","7mmroundsilverringobliqueview_72dpi_thumb.jpg",130,130,5);thumbnails[4882436]=new thumbnail(4882436,"278506","Choice of stones","foursilverringswithcolouredstones_72dpi_thumb.jpg",130,130,5);thumbnails[4886128]=new thumbnail(4886128,"278511","'Contemporary Classic' Silver Cube Pendant No.1","7mmsilvertopazpendant_72dpi_thumb.jpg",130,105,5);thumbnails[4886148]=new thumbnail(4886148,"278511","","7mmsilvertopazpendantstonedetail_72dpi_copy_thumb.jpg",130,130,5);thumbnails[4886473]=new thumbnail(4886473,"278511","'Contemporary Classics' Motif Chain Necklace","silvermotifchainoblique_72dpi_thumb.jpg",130,130,5);thumbnails[4886532]=new thumbnail(4886532,"278511","","silvermotifchainobliquedetail_72dpi_thumb.jpg",130,130,5);thumbnails[4886438]=new thumbnail(4886438,"278511","'Contemporary Classics' Silver Multi-Chain Necklace No.1","silvertopazmultichainnecklace_72dpi_thumb.jpg",130,105,5);var galleries=new Object();galleries[279197]=new gallery(279197,"4898474,2721917","Engagement, Wedding and Commitment Rings","section334609",[4898474,4898486,2721917]);galleries[172716]=new gallery(172716,"2720257","Cityscape Cufflinks","section215794",[2720257,2720250,5189273,5189281]);galleries[328716]=new gallery(328716,"","NEW COLLECTION!","section393853",[]);galleries[278505]=new gallery(278505,"4877880","Rings","section387560",[4881778,4881782,4881809,4877880,4882492,4882498]);galleries[278512]=new gallery(278512,"4885511","Earrings","section387560",[4885511,4885775,4885793,4885908]);galleries[279186]=new gallery(279186,"4898056","London Map Rings","section215794",[4898056,4898064]);galleries[279191]=new gallery(279191,"4898078","Commissioned Pieces","section215794",[4898078,4898081,4898084,4898086,4898088]);galleries[278510]=new gallery(278510,"4886295","Necklaces","section387560",[4886295,4886299,4886412,6122000,4886306,6086525]);galleries[343101]=new gallery(343101,"6121981","Bangles","section387560",[6121981,6121873]);galleries[278506]=new gallery(278506,"4877884","Silver Rings","section393853",[4877884,4882158,4882167,4882180,4882277,4882436]);galleries[278515]=new gallery(278515,"","Silver Earrings","section393853",[]);galleries[278511]=new gallery(278511,"4886473,4886438","Silver Necklaces","section393853",[4886128,4886148,4886473,4886532,4886438]);var imageSets=new Object();imageSets[1]="4999636,4898056,4885511,4882492,4881809,4881782,4877880,2720257";imageSets[2]="6121981,4898474,4898078,4898056,4886473,4886438,4886295,4886205,4885941,4885511,4877884,4877880,2721917,2720257";imageSets[3]="6122192,6122000,6121981,6121873,6086525,6086463,5189281,5189273,5095840,5095812,5095805,5095791,5095783,5088989,5088769,5088719,5088715,5088712,5088707,5088630,4999636,4954653,4898490,4898488,4898486,4898474,4898143,4898088,4898086,4898084,4898081,4898078,4898064,4898056,4886532,4886473,4886443,4886438,4886418,4886416,4886412,4886328,4886322,4886316,4886308,4886306,4886302,4886299,4886295,4886251";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/whitken/images";break}switch(a){case 1:b="http://www1.clikpic.com/whitken/images";break}switch(a){case 2:b="http://admin.clikpic.com/whitken/images";break}switch(a){case 24:b="http://tpc15/clikpic/whitken/images";break}switch(a){case 4:b="http://www.clikchurch.com/whitken/images";break}switch(a){case 5:b="http://www2.clikpic.com/whitken/images";break}switch(a){case 22:b="http://tpc5/clikpic/whitken/images";break}switch(a){case 23:b="http://tpc10/clikpic/whitken/images";break}switch(a){case 25:b="http://tpc16/clikpic/whitken/images";break}switch(a){case 15:b="http://www3.clikpic.com/whitken/images";break}switch(a){case 18:b="http://www4.clikpic.com/whitken/images";break}switch(a){case 19:b="http://www5.clikpic.com/whitken/images";break}switch(a){case 31:b="http://www7.clikpic.com/whitken/images";break}switch(a){case 32:b="http://admin2.clikpic.com/whitken/images";break}switch(a){case 33:b="http://www8.clikpic.com/whitken/images";break}switch(a){case 34:b="http://www9.clikpic.com/whitken/images";break}switch(a){case 35:b="http://admin3.clikpic.com/whitken/images";break}switch(a){case 37:b="http://admin4.clikpic.com/whitken/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("section393853"!=""){if(backgrounds[imageID].galleries_id!=""){html+='<a href="'+backgrounds[imageID].section_code+"_"+backgrounds[imageID].galleries_id+'.html">'}else{html+='<a href="section393853.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("section393853"!=""){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="Bronagh Kennedy Jewellery: "+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].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>"}if(a!=""){a=a+'<div class="spacer"></div>'}return a}function fnGetPaymentInfo(c){var b="";if(c.item_price!==""){b=b+"<p>Order this print:</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="">';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="">';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+'")'})}}};