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[1683380]=new thumbnail(1683380,"113464","","20s_thumb.Vionnetsale.jpg",57,80,1);thumbnails[1683384]=new thumbnail(1683384,"113464","","30s_thumb.Adriansale.jpg",57,80,1);thumbnails[1683385]=new thumbnail(1683385,"113464","","30s_thumb.mainbochersale.jpg",57,80,1);thumbnails[1683386]=new thumbnail(1683386,"113464","","40s_thumb.Charles-Jamessale.jpg",57,80,1);thumbnails[1683387]=new thumbnail(1683387,"113464","","50s_thumb.givenchysale.jpg",57,80,1);thumbnails[1684743]=new thumbnail(1684743,"113464","","20s_thumb.fashionsale.jpg",57,80,1);thumbnails[1684745]=new thumbnail(1684745,"113464","","50sdiorsale_thumb.jpg",57,80,1);thumbnails[1684750]=new thumbnail(1684750,"113464","","80s_thumb.Versacesale.jpg",57,80,1);thumbnails[1802933]=new thumbnail(1802933,"96698","","times_thumb.spankingweb.jpg",70,70,1);thumbnails[1802945]=new thumbnail(1802945,"96698","","rollsroycelondon_thumb.jpg",70,70,1);thumbnails[1802951]=new thumbnail(1802951,"96698","","rollsroyce_thumb.derby.jpg",70,70,1);thumbnails[1950895]=new thumbnail(1950895,"96698","","T3moth_thumb.jpg",70,70,1);thumbnails[1950897]=new thumbnail(1950897,"96698","","orgcover_thumb.jpg",70,70,1);thumbnails[2211122]=new thumbnail(2211122,"96698","","T3_thumb.rolling-stones.jpg",70,70,1);thumbnails[2211129]=new thumbnail(2211129,"96698","","times_thumb.escort.jpg",70,70,1);thumbnails[1683235]=new thumbnail(1683235,"96698","","timesxmasprob_thumb.jpg",70,70,1);thumbnails[1527059]=new thumbnail(1527059,"96698","","thumb.fire.jpg",70,70,1);thumbnails[1527207]=new thumbnail(1527207,"96698","","thumb-sacre.jpg",70,70,1);thumbnails[1400065]=new thumbnail(1400065,"96698","","thumbsfhm.jpg",70,70,1);thumbnails[1400183]=new thumbnail(1400183,"96698","","thumbstimesnuts.jpg",70,70,1);thumbnails[3598351]=new thumbnail(3598351,"96698","","armalite_thumb.jpg",70,70,1);thumbnails[3598429]=new thumbnail(3598429,"96698","","NY_thumb.jpg",70,70,1);thumbnails[3598438]=new thumbnail(3598438,"96698","","Timessmoking_thumb.jpg",70,70,1);thumbnails[3598441]=new thumbnail(3598441,"96698","","times-nipples_thumb.jpg",70,70,1);thumbnails[3598369]=new thumbnail(3598369,"96698","","T3God_thumb.jpg",70,70,1);thumbnails[3598433]=new thumbnail(3598433,"96698","","BA-Paris-colour_thumb.jpg",70,70,1);thumbnails[3598358]=new thumbnail(3598358,"96698","","a-short-gent_thumb.jpg",70,70,1);thumbnails[3598371]=new thumbnail(3598371,"96698","","T3-playlists-colour_thumb.jpg",70,70,1);thumbnails[3598360]=new thumbnail(3598360,"96698","","browns_thumb.jpg",70,70,1);thumbnails[3598361]=new thumbnail(3598361,"96698","","loaded_thumb.jpg",70,70,1);thumbnails[3598363]=new thumbnail(3598363,"96698","","pet-people_thumb.jpg",70,70,1);thumbnails[3598364]=new thumbnail(3598364,"96698","","t3surveillance_thumb.jpg",70,70,1);thumbnails[3598365]=new thumbnail(3598365,"96698","","T3-apple-punch-up_thumb.jpg",70,70,1);thumbnails[3598366]=new thumbnail(3598366,"96698","","T3-auto-pilot-cars-colour_thumb.jpg",70,70,1);thumbnails[3598367]=new thumbnail(3598367,"96698","","t3-bionic-humans_thumb.jpg",70,70,1);thumbnails[3598370]=new thumbnail(3598370,"96698","","T3lego_thumb.jpg",70,70,1);thumbnails[1950893]=new thumbnail(1950893,"97482","","deadidentities_thumb.jpg",70,70,1);thumbnails[1802941]=new thumbnail(1802941,"97482","","T3_thumb.tank&soldier.jpg",70,70,1);thumbnails[1659565]=new thumbnail(1659565,"97482","","Timesnetporn_thumb.jpg",70,70,1);thumbnails[1400105]=new thumbnail(1400105,"97482","","thumbT3networking.jpg",70,70,1);thumbnails[1400108]=new thumbnail(1400108,"97482","","thumbT3TVoverload.jpg",70,70,1);thumbnails[1400111]=new thumbnail(1400111,"97482","","thumbwii.jpg",70,70,1);thumbnails[1400141]=new thumbnail(1400141,"97482","","thumbstimesfoot.jpg",70,70,1);thumbnails[1400185]=new thumbnail(1400185,"97482","","thumbstimespiza.jpg",70,70,1);thumbnails[1400187]=new thumbnail(1400187,"97482","","thumbstimessex.jpg",70,70,1);thumbnails[1400093]=new thumbnail(1400093,"97482","","thumbT3drm.jpg",70,70,1);thumbnails[1400116]=new thumbnail(1400116,"97482","","thumbT33Dphone.jpg",70,70,1);thumbnails[1400090]=new thumbnail(1400090,"97482","","thumbT3alansugar.jpg",70,70,1);thumbnails[3598437]=new thumbnail(3598437,"97482","","t33dtv_thumb.jpg",70,70,1);thumbnails[3598423]=new thumbnail(3598423,"97482","","Copenhagen_thumb.jpg",70,70,1);thumbnails[3598425]=new thumbnail(3598425,"97482","","Muscat_thumb.jpg",70,70,1);thumbnails[3598427]=new thumbnail(3598427,"97482","","Singapore_thumb.jpg",70,70,1);thumbnails[3598442]=new thumbnail(3598442,"97482","","warsaw_thumb.jpg",70,70,1);thumbnails[3598447]=new thumbnail(3598447,"97482","","times-handcuffs_thumb.jpg",70,70,1);thumbnails[3598450]=new thumbnail(3598450,"97482","","Timesretention_thumb.jpg",70,70,1);thumbnails[3598431]=new thumbnail(3598431,"97482","","NYkids_thumb.jpg",70,70,1);thumbnails[2062604]=new thumbnail(2062604,"219914","","h_thumb.been-there-done-that.jpg",70,70,1);thumbnails[2062607]=new thumbnail(2062607,"219914","","h_thumb.intelligent.hedonism.jpg",70,70,1);thumbnails[2062611]=new thumbnail(2062611,"219914","","h_thumb.why.jpg",70,70,1);thumbnails[2062612]=new thumbnail(2062612,"219914","","h_thumb.yes-but-why.jpg",70,70,1);thumbnails[1803117]=new thumbnail(1803117,"219914","","shakespeare_thumb.jpg",70,70,1);thumbnails[1802957]=new thumbnail(1802957,"219914","","gogreen_thumb.jpg",70,70,1);thumbnails[1527031]=new thumbnail(1527031,"219914","","thumb.xmas.jpg",70,70,1);thumbnails[1402756]=new thumbnail(1402756,"219914","","thumbswomansweekly.jpg",70,70,1);thumbnails[1402723]=new thumbnail(1402723,"219914","","thumbsburlesque.jpg",70,70,1);thumbnails[1402753]=new thumbnail(1402753,"219914","","thumbsstylemag.jpg",70,70,1);thumbnails[1402745]=new thumbnail(1402745,"219914","","thumbskremlinaires.jpg",70,70,1);thumbnails[1402743]=new thumbnail(1402743,"219914","","thumbskew.jpg",70,70,1);thumbnails[1402741]=new thumbnail(1402741,"219914","","thumbsflyer.jpg",70,70,1);thumbnails[1402750]=new thumbnail(1402750,"219914","","thumbssex.jpg",70,70,1);thumbnails[1402747]=new thumbnail(1402747,"219914","","thumbsloveis.jpg",70,70,1);thumbnails[1400194]=new thumbnail(1400194,"219914","","thumbsvegas.jpg",70,70,1);thumbnails[1402740]=new thumbnail(1402740,"219914","","thumbsfable61.jpg",70,70,1);thumbnails[1402738]=new thumbnail(1402738,"219914","","thumbsfable41.jpg",70,70,1);thumbnails[1402739]=new thumbnail(1402739,"219914","","thumbsfable5.jpg",70,70,1);thumbnails[1402732]=new thumbnail(1402732,"219914","","thumbsfable1.jpg",70,70,1);thumbnails[1400100]=new thumbnail(1400100,"219914","","thumbT3iphonefeatures.jpg",70,70,1);thumbnails[1400098]=new thumbnail(1400098,"219914","","thumbT3iphone.jpg",70,70,1);thumbnails[1400087]=new thumbnail(1400087,"219914","","thumbT3knife.jpg",70,70,1);thumbnails[1400189]=new thumbnail(1400189,"219914","","thumbstimesxmasfeast.jpg",70,70,1);thumbnails[1400191]=new thumbnail(1400191,"219914","","thumbstimesxmasmachine.jpg",70,70,1);thumbnails[1400062]=new thumbnail(1400062,"219914","","thumbselvissheep.jpg",70,70,1);thumbnails[1400082]=new thumbnail(1400082,"219914","","thumbsromrec.jpg",70,70,1);thumbnails[1400080]=new thumbnail(1400080,"219914","","thumbsmrsmills.jpg",70,70,1);thumbnails[1402124]=new thumbnail(1402124,"96701","","thumbsz.jpg",70,70,1);thumbnails[1407063]=new thumbnail(1407063,"97779","","thumbs20schanel.jpg",70,70,1);thumbnails[1402112]=new thumbnail(1402112,"96701","","thumbspreen.jpg",70,70,1);thumbnails[1407065]=new thumbnail(1407065,"97779","","thumbs20slanvin.jpg",70,70,1);thumbnails[1402107]=new thumbnail(1402107,"96701","","thumbsdeacon.jpg",70,70,1);thumbnails[1407071]=new thumbnail(1407071,"97779","","thumbs20svoinnet.jpg",70,70,1);thumbnails[1402106]=new thumbnail(1402106,"96701","","thumbsbalenciaga.jpg",70,70,1);thumbnails[1407067]=new thumbnail(1407067,"97779","","thumbs20sschiaparelli.jpg",70,70,1);thumbnails[1402105]=new thumbnail(1402105,"96701","","thumbsblackfashion1.jpg",70,70,1);thumbnails[1407072]=new thumbnail(1407072,"97779","","thumbs30sadrian.jpg",70,70,1);thumbnails[1402109]=new thumbnail(1402109,"96701","","thumbsmcqueen.jpg",70,70,1);thumbnails[1407069]=new thumbnail(1407069,"97779","","thumbs20slucian.jpg",70,70,1);thumbnails[1402110]=new thumbnail(1402110,"96701","","thumbsblackandwhite.jpg",70,70,1);thumbnails[1407073]=new thumbnail(1407073,"97779","","thumbs30smadamegres.jpg",70,70,1);thumbnails[1402123]=new thumbnail(1402123,"96701","","thumbstights.jpg",70,70,1);thumbnails[1407075]=new thumbnail(1407075,"97779","","thumbs40scharles.jpg",70,70,1);thumbnails[1402120]=new thumbnail(1402120,"96701","","thumbsredface.jpg",70,70,1);thumbnails[1407076]=new thumbnail(1407076,"97779","","thumbs40snorell.jpg",70,70,1);thumbnails[1407077]=new thumbnail(1407077,"97779","","thumbs50sgivenchy.jpg",70,70,1);thumbnails[1402122]=new thumbnail(1402122,"96701","","thumbssoapbox.jpg",70,70,1);thumbnails[1407079]=new thumbnail(1407079,"97779","","thumbs60scassini.jpg",70,70,1);thumbnails[1402117]=new thumbnail(1402117,"96701","","thumbs20sfashion2.jpg",70,70,1);thumbnails[1402118]=new thumbnail(1402118,"96701","","thumbs20sfashiontree.jpg",70,70,1);thumbnails[1407080]=new thumbnail(1407080,"97779","","thumbs60spaco.jpg",70,70,1);thumbnails[1407081]=new thumbnail(1407081,"97779","","thumbs60spucci.jpg",70,70,1);thumbnails[1402115]=new thumbnail(1402115,"96701","","thumbs20sfashion.jpg",70,70,1);thumbnails[1407082]=new thumbnail(1407082,"97779","","thumbs70sbillgibb.jpg",70,70,1);thumbnails[1402114]=new thumbnail(1402114,"96701","","thumbsrandm.jpg",70,70,1);thumbnails[1407084]=new thumbnail(1407084,"97779","","thumbsmissoni.jpg",70,70,1);thumbnails[1407085]=new thumbnail(1407085,"97779","","thumbs70stheaporter.jpg",70,70,1);thumbnails[1407086]=new thumbnail(1407086,"97779","","thumbs80scomme.jpg",70,70,1);thumbnails[1407087]=new thumbnail(1407087,"97779","","thumbs80sgalliano.jpg",70,70,1);thumbnails[1407090]=new thumbnail(1407090,"97779","","thumbsaccessriesgaultier.jpg",70,70,1);thumbnails[1407092]=new thumbnail(1407092,"97779","","thumbs80slacroix.jpg",70,70,1);thumbnails[1407095]=new thumbnail(1407095,"97779","","thumbs80smontana.jpg",70,70,1);thumbnails[1407096]=new thumbnail(1407096,"97779","","thumbsacessoriesferragamo.jpg",70,70,1);thumbnails[1407098]=new thumbnail(1407098,"97779","","thumbsacessorieshaskel.jpg",70,70,1);thumbnails[1407100]=new thumbnail(1407100,"97779","","thumbsaccessoriesvuitton.jpg",70,70,1);thumbnails[1402729]=new thumbnail(1402729,"96701","","thumbscakeswoman.jpg",70,70,1);thumbnails[1950900]=new thumbnail(1950900,"96701","","bluewoman_thumb.jpg",70,70,1);var galleries=new Object();galleries[113464]=new gallery(113464,"1684750,1684745,1684743,1683387,1683386,1683385,1683384,1683380","shop","section148733",[1683380,1683384,1683385,1683386,1683387,1684743,1684745,1684750]);galleries[96698]=new gallery(96698,"3598361","recent work","gallery",[1802933,1802945,1802951,1950895,1950897,2211122,2211129,1683235,1527059,1527207,1400065,1400183,3598351,3598429,3598438,3598441,3598369,3598433,3598358,3598371,3598360,3598361,3598363,3598364,3598365,3598366,3598367,3598370]);galleries[97482]=new gallery(97482,"3598423","More work","gallery",[1950893,1802941,1659565,1400105,1400108,1400111,1400141,1400185,1400187,1400093,1400116,1400090,3598437,3598423,3598425,3598427,3598442,3598447,3598450,3598431]);galleries[219914]=new gallery(219914,"1400194","Even More...","gallery",[2062604,2062607,2062611,2062612,1803117,1802957,1527031,1402756,1402723,1402753,1402745,1402743,1402741,1402750,1402747,1400194,1402740,1402738,1402739,1402732,1400100,1400098,1400087,1400189,1400191,1400062,1400082,1400080]);galleries[96701]=new gallery(96701,"1402115,1402110","fashion","gallery",[1402124,1402112,1402107,1402106,1402105,1402109,1402110,1402123,1402120,1402122,1402117,1402118,1402115,1402114,1402729,1950900]);galleries[97779]=new gallery(97779,"1407063","vintage fashion","gallery",[1407063,1407065,1407071,1407067,1407072,1407069,1407073,1407075,1407076,1407077,1407079,1407080,1407081,1407082,1407084,1407085,1407086,1407087,1407090,1407092,1407095,1407096,1407098,1407100]);var imageSets=new Object();imageSets[1]="3598438,3598361,3598360,1802933,1527059,1400065";imageSets[2]="3598423,3598361,1407063,1402115,1402110,1400194";imageSets[3]="3598450,3598447,3598442,3598441,3598438,3598437,3598433,3598431,3598429,3598427,3598425,3598423,3598371,3598370,3598369,3598367,3598366,3598365,3598364,3598363,3598361,3598360,3598358,3598351,2211129,2211122,2062612,2062611,2062607,2062604,1950900,1950897,1950895,1950893,1803117,1802957,1802951,1802945,1802941,1802933,1684750,1684745,1684743,1683387,1683386,1683385,1683384,1683380,1683235,1659565";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 34:b="http://www9.clikpic.com/richmerritt100/images";break}switch(a){case 1:b="http://www1.clikpic.com/richmerritt100/images";break}switch(a){case 2:b="http://admin.clikpic.com/richmerritt100/images";break}switch(a){case 4:b="http://www.clikchurch.com/richmerritt100/images";break}switch(a){case 5:b="http://www2.clikpic.com/richmerritt100/images";break}switch(a){case 15:b="http://www3.clikpic.com/richmerritt100/images";break}switch(a){case 21:b="http://www6.clikpic.com/richmerritt100/images";break}switch(a){case 18:b="http://www4.clikpic.com/richmerritt100/images";break}switch(a){case 19:b="http://www5.clikpic.com/richmerritt100/images";break}switch(a){case 22:b="http://tpc5/clikpic/richmerritt100/images";break}switch(a){case 23:b="http://tpc10/clikpic/richmerritt100/images";break}switch(a){case 24:b="http://tpc15/clikpic/richmerritt100/images";break}switch(a){case 25:b="http://tpc16/clikpic/richmerritt100/images";break}switch(a){case 31:b="http://www7.clikpic.com/richmerritt100/images";break}switch(a){case 32:b="http://admin2.clikpic.com/richmerritt100/images";break}switch(a){case 33:b="http://www8.clikpic.com/richmerritt100/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="richard-merritt.com: "+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>"}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="richmerritt100@yahoo.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="richmerritt100@yahoo.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<80){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+'")'})}}};
