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[4415728]=new thumbnail(4415728,"","","_MG_3761-Edit-Edit_thumb.jpg",130,87,18);thumbnails[4372227]=new thumbnail(4372227,"256865","","_MG_0715-1_thumb.jpg",130,87,18);thumbnails[4372236]=new thumbnail(4372236,"256865","","_MG_0801-3_thumb.jpg",130,87,18);thumbnails[4372240]=new thumbnail(4372240,"256865","","_MG_0842-4_thumb.jpg",130,87,18);thumbnails[3390778]=new thumbnail(3390778,"173193","","portrait_01_thumb.jpg",130,130,18);thumbnails[3390779]=new thumbnail(3390779,"173193","","portrait_02_thumb.jpg",130,130,18);thumbnails[3390780]=new thumbnail(3390780,"173193","","portrait_03_thumb.jpg",130,130,18);thumbnails[3390781]=new thumbnail(3390781,"173193","","portrait_04_thumb.jpg",130,130,18);thumbnails[3390782]=new thumbnail(3390782,"173193","","portrait_05_thumb.jpg",130,130,18);thumbnails[3390783]=new thumbnail(3390783,"173193","","portrait_06_thumb.jpg",130,130,18);thumbnails[3390784]=new thumbnail(3390784,"173193","","portrait_07_thumb.jpg",130,130,18);thumbnails[3390785]=new thumbnail(3390785,"173193","","portrait_08_thumb.jpg",130,130,18);thumbnails[3390786]=new thumbnail(3390786,"173193","","portrait_10_thumb.jpg",130,130,18);thumbnails[3390787]=new thumbnail(3390787,"173193","","portrait_11_thumb.jpg",130,112,18);thumbnails[3390788]=new thumbnail(3390788,"173193","","portrait_12_thumb.jpg",130,130,18);thumbnails[3390789]=new thumbnail(3390789,"173193","","portrait_13_thumb.jpg",130,130,18);thumbnails[3390790]=new thumbnail(3390790,"173193","","portrait_15_thumb.jpg",130,130,18);thumbnails[3390791]=new thumbnail(3390791,"173193","","portrait_16_thumb.jpg",130,130,18);thumbnails[4415811]=new thumbnail(4415811,"173193","","charlotte_thumb.jpg",130,87,18);thumbnails[4371169]=new thumbnail(4371169,"133686","","709_thumb.JPG",130,87,18);thumbnails[4371175]=new thumbnail(4371175,"133686","","JR_on_sheenes_RG_thumb.jpg",130,92,18);thumbnails[4372105]=new thumbnail(4372105,"133686","","_MG_0090_thumb.jpg",130,87,18);thumbnails[2613667]=new thumbnail(2613667,"133686","","IMG_1286_thumb.jpg",130,86,18);thumbnails[2763566]=new thumbnail(2763566,"173190","IMG 0005","IMG_0005_thumb.jpg",130,87,18);thumbnails[2763567]=new thumbnail(2763567,"173190","IMG 0006","IMG_0006_thumb.jpg",130,195,18);thumbnails[2763568]=new thumbnail(2763568,"173190","IMG 0009","IMG_00091_thumb.jpg",130,87,18);thumbnails[2763569]=new thumbnail(2763569,"173190","IMG 0010","IMG_0010_thumb.jpg",130,196,18);thumbnails[2763572]=new thumbnail(2763572,"173190","IMG 0016","IMG_0016_thumb.jpg",130,195,18);thumbnails[2763573]=new thumbnail(2763573,"173190","IMG 0025","IMG_0025_thumb.jpg",130,195,18);thumbnails[2763574]=new thumbnail(2763574,"173190","IMG 0028","IMG_0028_thumb.jpg",130,87,18);thumbnails[2763631]=new thumbnail(2763631,"173190","IMG 0164","IMG_0164_thumb.jpg",130,195,18);thumbnails[2763632]=new thumbnail(2763632,"173190","IMG 0167","IMG_0167_thumb.jpg",130,87,18);thumbnails[2763633]=new thumbnail(2763633,"173190","IMG 0172","IMG_0172_thumb.jpg",130,86,18);thumbnails[2763578]=new thumbnail(2763578,"173190","IMG 0039","IMG_0039_thumb.jpg",130,87,18);thumbnails[2763579]=new thumbnail(2763579,"173190","IMG 0042","IMG_00421_thumb.jpg",130,195,18);thumbnails[2763582]=new thumbnail(2763582,"173190","IMG 0047","IMG_0047_thumb.jpg",130,87,18);thumbnails[2763638]=new thumbnail(2763638,"173190","IMG 0191","IMG_01911_thumb.jpg",130,87,18);thumbnails[2763584]=new thumbnail(2763584,"173190","IMG 0051","IMG_0051_thumb.jpg",130,195,18);thumbnails[2763640]=new thumbnail(2763640,"173190","IMG 0199","IMG_0199_thumb.jpg",130,86,18);thumbnails[2763585]=new thumbnail(2763585,"173190","IMG 0052","IMG_0052_thumb.jpg",130,87,18);thumbnails[2763587]=new thumbnail(2763587,"173190","IMG 0058","IMG_0058_thumb.jpg",130,195,18);thumbnails[2763644]=new thumbnail(2763644,"173190","IMG 0213","IMG_0213_thumb.jpg",130,195,18);thumbnails[2763589]=new thumbnail(2763589,"173190","IMG 0062","IMG_0062_thumb.jpg",130,195,18);thumbnails[2763590]=new thumbnail(2763590,"173190","IMG 0066","IMG_0066_thumb.jpg",130,87,18);thumbnails[2763591]=new thumbnail(2763591,"173190","IMG 0069","IMG_0069_thumb.jpg",130,87,18);thumbnails[2763647]=new thumbnail(2763647,"173190","IMG 0221","IMG_0221_thumb.jpg",130,195,18);thumbnails[2763593]=new thumbnail(2763593,"173190","IMG 0077","IMG_0077_thumb.jpg",130,87,18);thumbnails[2763649]=new thumbnail(2763649,"173190","IMG 0224","IMG_0224_thumb.jpg",130,87,18);thumbnails[2763594]=new thumbnail(2763594,"173190","IMG 0080","IMG_00801_thumb.jpg",130,195,18);thumbnails[2763650]=new thumbnail(2763650,"173190","IMG 0230","IMG_0230_thumb.jpg",130,195,18);thumbnails[2763596]=new thumbnail(2763596,"173190","IMG 0082","IMG_0082_thumb.jpg",130,87,18);thumbnails[2763652]=new thumbnail(2763652,"173190","IMG 0249","IMG_0249_thumb.jpg",130,87,18);thumbnails[2763597]=new thumbnail(2763597,"173190","IMG 0088","IMG_0088_thumb.jpg",130,87,18);thumbnails[2763653]=new thumbnail(2763653,"173190","IMG 0251","IMG_0251_thumb.jpg",130,87,18);thumbnails[2763654]=new thumbnail(2763654,"173190","IMG 0254","IMG_0254_thumb.jpg",130,87,18);thumbnails[2763655]=new thumbnail(2763655,"173190","IMG 0258","IMG_0258_thumb.jpg",130,87,18);thumbnails[2763600]=new thumbnail(2763600,"173190","IMG 0096","IMG_0096_thumb.jpg",130,195,18);thumbnails[2763601]=new thumbnail(2763601,"173190","IMG 0098","IMG_00981_thumb.jpg",130,87,18);thumbnails[2763659]=new thumbnail(2763659,"173190","IMG 0269","IMG_0269_thumb.jpg",130,87,18);thumbnails[2763604]=new thumbnail(2763604,"173190","IMG 0110","IMG_0110_thumb.jpg",130,195,18);thumbnails[2763660]=new thumbnail(2763660,"173190","IMG 0273","IMG_0273_thumb.jpg",130,195,18);thumbnails[2763605]=new thumbnail(2763605,"173190","IMG 0111","IMG_0111_thumb.jpg",130,195,18);thumbnails[2763661]=new thumbnail(2763661,"173190","IMG 0282","IMG_0282_thumb.jpg",130,195,18);thumbnails[2763606]=new thumbnail(2763606,"173190","IMG 0112","IMG_0112_thumb.jpg",130,195,18);thumbnails[2763662]=new thumbnail(2763662,"173190","IMG 0288","IMG_0288_thumb.jpg",130,87,18);thumbnails[2763664]=new thumbnail(2763664,"173190","IMG 0300","IMG_0300_thumb.jpg",130,195,18);thumbnails[2763609]=new thumbnail(2763609,"173190","IMG 0127","IMG_0127_thumb.jpg",130,195,18);thumbnails[2763610]=new thumbnail(2763610,"173190","IMG 0130","IMG_01301_thumb.jpg",130,195,18);thumbnails[2763666]=new thumbnail(2763666,"173190","IMG 0314","IMG_03141_thumb.jpg",130,87,18);thumbnails[2763615]=new thumbnail(2763615,"173190","IMG 0139","IMG_0139_thumb.jpg",130,195,18);thumbnails[2763625]=new thumbnail(2763625,"173190","IMG 0145","IMG_0145_thumb.jpg",130,195,18);thumbnails[2763626]=new thumbnail(2763626,"173190","IMG 0146","IMG_0146_thumb.jpg",130,195,18);thumbnails[2763629]=new thumbnail(2763629,"173190","IMG 0153","IMG_0153_thumb.jpg",130,87,18);thumbnails[2763630]=new thumbnail(2763630,"173190","IMG 0161","IMG_0161_thumb.jpg",130,194,18);thumbnails[2763628]=new thumbnail(2763628,"173190","IMG 0151","IMG_0151_thumb.jpg",130,87,18);thumbnails[2763683]=new thumbnail(2763683,"173190","IMG 0381","IMG_0381_thumb.jpg",130,87,18);thumbnails[2763685]=new thumbnail(2763685,"173190","IMG 0400","IMG_0400_thumb.jpg",130,87,18);thumbnails[2763686]=new thumbnail(2763686,"173190","IMG 0405","IMG_0405_thumb.jpg",130,87,18);thumbnails[2763688]=new thumbnail(2763688,"173190","IMG 0408","IMG_0408_thumb.jpg",130,87,18);thumbnails[2763696]=new thumbnail(2763696,"173190","IMG 0426","IMG_0426_thumb.jpg",130,87,18);thumbnails[2763698]=new thumbnail(2763698,"173190","IMG 0429","IMG_0429_thumb.jpg",130,87,18);thumbnails[2763677]=new thumbnail(2763677,"173190","IMG 0348","IMG_0348_thumb.jpg",130,195,18);thumbnails[2763709]=new thumbnail(2763709,"173190","IMG 0467","IMG_0467_thumb.jpg",130,87,18);thumbnails[2763602]=new thumbnail(2763602,"173190","IMG 0103","IMG_01031_thumb.jpg",130,195,18);thumbnails[2763712]=new thumbnail(2763712,"173190","IMG 0472","IMG_04721_thumb.jpg",130,195,18);thumbnails[2763713]=new thumbnail(2763713,"173190","IMG 0475","IMG_0475_thumb.jpg",130,195,18);thumbnails[2763667]=new thumbnail(2763667,"173190","IMG 0321","IMG_0321_thumb.jpg",130,195,18);thumbnails[2763668]=new thumbnail(2763668,"173190","IMG 0334","IMG_0334_thumb.jpg",130,195,18);thumbnails[2763676]=new thumbnail(2763676,"173190","IMG 0344","IMG_0344_thumb.jpg",130,195,18);thumbnails[2763680]=new thumbnail(2763680,"173190","IMG 0360","IMG_0360_thumb.jpg",130,195,18);thumbnails[2763682]=new thumbnail(2763682,"173190","IMG 0366","IMG_0366_thumb.jpg",130,87,18);thumbnails[2763684]=new thumbnail(2763684,"173190","IMG 0384","IMG_0384_thumb.jpg",130,87,18);thumbnails[992203]=new thumbnail(992203,"74461","","web0030_thumb.JPG",130,87,18);thumbnails[992257]=new thumbnail(992257,"74461","","web0004_thumb.JPG",130,87,18);thumbnails[992260]=new thumbnail(992260,"74461","","web0005_thumb.JPG",130,87,18);thumbnails[992265]=new thumbnail(992265,"74461","","web0011_thumb.JPG",130,87,18);thumbnails[992266]=new thumbnail(992266,"74461","","web0009_thumb.JPG",130,87,18);thumbnails[992285]=new thumbnail(992285,"74461","","web0014_thumb.JPG",130,92,18);thumbnails[992292]=new thumbnail(992292,"74461","","web0008_thumb.JPG",130,87,18);thumbnails[992296]=new thumbnail(992296,"74461","","web0010_thumb.JPG",130,87,18);thumbnails[1008862]=new thumbnail(1008862,"74461","","web00151_thumb.JPG",130,87,18);thumbnails[1808725]=new thumbnail(1808725,"74461","","IMG_0106_thumb.JPG",130,87,18);thumbnails[1808730]=new thumbnail(1808730,"74461","","IMG_8760_thumb.JPG",130,87,18);thumbnails[1808998]=new thumbnail(1808998,"74461","","IMG_8787_thumb.JPG",130,75,18);thumbnails[1809015]=new thumbnail(1809015,"74461","","IMG_8942_thumb.JPG",130,87,18);thumbnails[1809035]=new thumbnail(1809035,"74461","","IMG_9107_thumb.JPG",130,87,18);thumbnails[1809044]=new thumbnail(1809044,"74461","","IMG_9145_thumb.JPG",130,85,18);thumbnails[1809080]=new thumbnail(1809080,"74461","","IMG_9575_thumb.JPG",130,81,18);thumbnails[1809087]=new thumbnail(1809087,"74461","","IMG_9648_thumb.JPG",130,87,18);thumbnails[1833763]=new thumbnail(1833763,"74461","","IMG_9756_thumb.JPG",130,64,18);thumbnails[1834041]=new thumbnail(1834041,"74461","","IMG_9742_thumb.JPG",130,85,18);thumbnails[1834042]=new thumbnail(1834042,"74461","","IMG_9942_thumb.JPG",130,87,18);thumbnails[1834044]=new thumbnail(1834044,"74461","","IMG_9988_thumb.JPG",130,85,18);thumbnails[1856252]=new thumbnail(1856252,"74461","","IMG_9490_thumb.JPG",130,87,18);thumbnails[1856271]=new thumbnail(1856271,"74461","","IMG_9567_thumb.JPG",130,87,18);var galleries=new Object();galleries[256865]=new gallery(256865,"4372240,4372236,4372227","STUDIO","gallery",[4372227,4372236,4372240]);galleries[173193]=new gallery(173193,"4415811","PORTRAITS","gallery",[3390778,3390779,3390780,3390781,3390782,3390783,3390784,3390785,3390786,3390787,3390788,3390789,3390790,3390791,4415811]);galleries[173186]=new gallery(173186,"2763582","WEDDINGS","gallery",[]);galleries[133686]=new gallery(133686,"4371175","EVENTS","gallery",[4371169,4371175,4372105,2613667]);galleries[173190]=new gallery(173190,"2763582","Mark & Alice Boston","gallery",[2763566,2763567,2763568,2763569,2763572,2763573,2763574,2763631,2763632,2763633,2763578,2763579,2763582,2763638,2763584,2763640,2763585,2763587,2763644,2763589,2763590,2763591,2763647,2763593,2763649,2763594,2763650,2763596,2763652,2763597,2763653,2763654,2763655,2763600,2763601,2763659,2763604,2763660,2763605,2763661,2763606,2763662,2763664,2763609,2763610,2763666,2763615,2763625,2763626,2763629,2763630,2763628,2763683,2763685,2763686,2763688,2763696,2763698,2763677,2763709,2763602,2763712,2763713,2763667,2763668,2763676,2763680,2763682,2763684]);galleries[74461]=new gallery(74461,"1808730","NATURE","gallery",[992203,992257,992260,992265,992266,992285,992292,992296,1008862,1808725,1808730,1808998,1809015,1809035,1809044,1809080,1809087,1833763,1834041,1834042,1834044,1856252,1856271]);var imageSets=new Object();imageSets[1]="4415728,992203";imageSets[2]="4415811,4371175,2763582,1808730";imageSets[3]="4415811,4415728,4372240,4372236,4372227,4372105,4371175,4371169,3390791,3390790,3390789,3390788,3390787,3390786,3390785,3390784,3390783,3390782,3390781,3390780,3390779,3390778,2763713,2763712,2763709,2763698,2763696,2763688,2763686,2763685,2763684,2763683,2763682,2763680,2763677,2763676,2763668,2763667,2763666,2763664,2763662,2763661,2763660,2763659,2763655,2763654,2763653,2763652,2763650,2763649";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/globalocal/images";break}switch(a){case 1:b="http://www1.clikpic.com/globalocal/images";break}switch(a){case 2:b="http://admin.clikpic.com/globalocal/images";break}switch(a){case 24:b="http://tpc15/clikpic/globalocal/images";break}switch(a){case 4:b="http://www.clikchurch.com/globalocal/images";break}switch(a){case 5:b="http://www2.clikpic.com/globalocal/images";break}switch(a){case 22:b="http://tpc5/clikpic/globalocal/images";break}switch(a){case 23:b="http://tpc10/clikpic/globalocal/images";break}switch(a){case 25:b="http://tpc16/clikpic/globalocal/images";break}switch(a){case 15:b="http://www3.clikpic.com/globalocal/images";break}switch(a){case 18:b="http://www4.clikpic.com/globalocal/images";break}switch(a){case 19:b="http://www5.clikpic.com/globalocal/images";break}switch(a){case 31:b="http://www7.clikpic.com/globalocal/images";break}switch(a){case 32:b="http://admin2.clikpic.com/globalocal/images";break}switch(a){case 33:b="http://www8.clikpic.com/globalocal/images";break}switch(a){case 34:b="http://www9.clikpic.com/globalocal/images";break}switch(a){case 35:b="http://admin3.clikpic.com/globalocal/images";break}switch(a){case 37:b="http://admin4.clikpic.com/globalocal/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="johnordphotography.co.uk: "+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="john.ord@mac.com">';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="john.ord@mac.com">';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+'")'})}}};