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[414086]=new thumbnail(414086,"324801","Ground No.4 mixed media on Canvas 76x51cm sold.","Fragment1_thumb.jpg",130,86,15);thumbnails[414087]=new thumbnail(414087,"324801","Ground No.1 mixed media on canvas 76x51cm","Fragment2_thumb.jpg",130,87,15);thumbnails[414089]=new thumbnail(414089,"324801","Ground No.3 mixed media on canvas 76x51cm","Fragment4_thumb.jpg",130,86,15);thumbnails[414096]=new thumbnail(414096,"324801","Ground No.2 mixed media on canvas 76x51cm sold.","Split_thumb.jpg",130,86,15);thumbnails[414102]=new thumbnail(414102,"324801","Stillness, mixed media on canvas 152x152cm sold.","No3_thumb.jpg",130,130,15);thumbnails[414108]=new thumbnail(414108,"324801","Edge, mixed media on canvas 102x102cm sold.","No6_thumb.jpg",130,132,15);thumbnails[414109]=new thumbnail(414109,"324801","Clearing, mixed media on canvas 102x102cm","No7_thumb.jpg",130,131,15);thumbnails[414123]=new thumbnail(414123,"324801","Gathering No.3, mixed media on canvas 103x75cm sold.","Gathering3_thumb.jpg",130,96,15);thumbnails[414132]=new thumbnail(414132,"324801","Land No.4, mixed media on canvas 183x152cm","No4_thumb.jpg",130,161,15);thumbnails[414147]=new thumbnail(414147,"324801","Land No.2, mixed media on canvas 91x61cm","No2_thumb.jpg",130,197,15);thumbnails[414217]=new thumbnail(414217,"324801","Gathering No.1, mixed media on canvas 103x75cm sold.","Gathering1_thumb.jpg",130,94,15);thumbnails[414275]=new thumbnail(414275,"324801","Gathering No.2, mixed media on canvas 103x75cm sold.","Gathering2_thumb.jpg",130,96,15);thumbnails[425879]=new thumbnail(425879,"324801","Uncertainty, mixed media on canvas 50X40cm sold.","New1_thumb.jpg",130,163,15);thumbnails[425880]=new thumbnail(425880,"324801","Uncertainty NO.3, mixed media on canvas 50X40cm sold.","New3_thumb.jpg",130,164,15);thumbnails[425881]=new thumbnail(425881,"324801","Uncertainty NO.4, mixed media on canvas 50X40cm sold.","New4_thumb.jpg",130,168,15);thumbnails[425884]=new thumbnail(425884,"324801","Remorseless No.1, mixed media on canvas 50x40cm","New5_thumb.jpg",130,164,15);thumbnails[425885]=new thumbnail(425885,"324801","Remorseless No.2, mixed media on canvas 50x40cm","New6_thumb.jpg",130,165,15);thumbnails[425888]=new thumbnail(425888,"324801","Remorseless No.3, mixed media on canvas 50x40cm","New7_thumb.jpg",130,167,15);thumbnails[425889]=new thumbnail(425889,"324801","Remorseless No.4, mixed media on canvas 50x40cm","New8_thumb.jpg",130,165,15);thumbnails[425892]=new thumbnail(425892,"324801","All up hill, mixed media on canvas 40x40cm sold.","New9_thumb.jpg",130,131,15);thumbnails[425893]=new thumbnail(425893,"324801","Looking to you mixed media on canvas 40x40cm sold.","New10_thumb.jpg",130,133,15);thumbnails[432028]=new thumbnail(432028,"324801","Land No. 6, 50x70cm mixed media on canvas sold.","Pic1_thumb.jpg",130,185,15);thumbnails[432031]=new thumbnail(432031,"324801","Land No.7, 50x70cm mixed media on canvas sold.","Pic2_thumb.jpg",130,183,15);thumbnails[432033]=new thumbnail(432033,"324801","Land No. 8, 50x70cm mixed media on canvas sold.","Pic3_thumb.jpg",130,183,15);thumbnails[512725]=new thumbnail(512725,"324801","Mist, 80x60cm mixed media on canvas sold.","Mist1_thumb.jpg",130,171,15);thumbnails[512738]=new thumbnail(512738,"324801","Mist No.1, 60x50cm mixed media on canvas sold.","Mist2_thumb.jpg",130,159,15);thumbnails[512742]=new thumbnail(512742,"324801","Mist No.2, 60x50cm mixed media on canvas sold.","Mist3_thumb.jpg",130,158,15);thumbnails[885499]=new thumbnail(885499,"324801","Long way to go, mixed media on canvas 40x40cm sold.","New11_thumb.jpg",130,133,15);thumbnails[1021083]=new thumbnail(1021083,"324801",'One More Step <br>\r\nmixed media on canvas 61x76cm sold.<br>\r\nRBSA Prise Exhibition "HIghly commended" ',"One More Step_thumb.jpg",130,165,15);thumbnails[1021091]=new thumbnail(1021091,"324801","The First Step <br>\r\nmixed media on canvas 61x76cm sold.","The First Step_thumb.jpg",130,164,15);thumbnails[1219188]=new thumbnail(1219188,"324801","Flood Plain, mixed media on stretched canvas <br>\r\nover board 50X40cm sold.","new12_thumb.jpg",130,164,15);thumbnails[1219195]=new thumbnail(1219195,"324801","Fields of Rain mixed media on stretched canvas <br>\r\nover board 50X40cm sold.","new21_thumb.jpg",130,168,15);thumbnails[1219199]=new thumbnail(1219199,"324801","Abandon Hope, mixed media on stretched canvas <br>\r\nover board 50X40cm","new31_thumb.jpg",130,163,15);thumbnails[1282723]=new thumbnail(1282723,"324801","For Our Land, mixed media on stretched <br>\r\ncanvas over board 50X40cm sold.","For our land_thumb.jpg",130,166,15);thumbnails[1282724]=new thumbnail(1282724,"324801","Patch of Earth, mixed media on stretched canvas <br>\r\nover board 50X40cm sold.","Patch of Earth_thumb.jpg",130,166,15);thumbnails[1282726]=new thumbnail(1282726,"324801","Submission, mixed media on stretched canvas <br>\r\nover board 50X40cm sold.","Submission_thumb.jpg",130,165,15);thumbnails[3670945]=new thumbnail(3670945,"324802","After passing.<br>\r\nmixed media on canvas 30x30 sold.<br>\r\n<br>\r\n","AfterPassing09_thumb.jpg",130,130,15);thumbnails[3670950]=new thumbnail(3670950,"324802","Cross the paddock beyond,<br>\r\nmixed media on canvas 30x30 sold.<br>\r\n<br>\r\n","CrossThePaddockBeyond09_thumb.jpg",130,132,15);thumbnails[3670952]=new thumbnail(3670952,"324802","Walk up a field to reach a stile,<br>\r\nmixed media on canvas 30x30 sold.<br>\r\n<br>\r\n","FollowHeadlandAroundTheLeft09_thumb.jpg",130,129,15);thumbnails[3670953]=new thumbnail(3670953,"324802","Follow the tow path, mixed media on canvas 30x30 sold.","FollowTheTowpath09_thumb.jpg",130,128,15);thumbnails[3670955]=new thumbnail(3670955,"324802","The light woods,<br>\r\nmixed media on canvas 30x30 sold.<br>\r\n<br>\r\n","TheLightwoods09_thumb.jpg",130,130,15);thumbnails[3670970]=new thumbnail(3670970,"324802","Up the far side,<br>\r\nmixed media on canvas 30x30<br>\r\n<br>\r\n","UpTheFarSide09_thumb.jpg",130,131,15);thumbnails[3742380]=new thumbnail(3742380,"324802","Absence, mixed media on canvas 40x40<br>\r\n<br>\r\n","absenceofwaymarking_thumb.jpg",130,128,15);thumbnails[3742386]=new thumbnail(3742386,"324802","Short route goes left,<br>\r\nmixed media on canvas 30x30 sold.","hiddeninthetopleftcorner_thumb.jpg",130,130,15);thumbnails[3742389]=new thumbnail(3742389,"324802","Look for the exposed,<br>\r\nmixed media on canvas 40x40<br>\r\n<br>\r\n","lookfortheexposed_thumb.jpg",130,127,15);thumbnails[3742392]=new thumbnail(3742392,"324802","Held for a time,<br>\r\nmixed media on canvas 40x40<br>\r\n<br>\r\n","heldforatime_thumb.jpg",130,125,15);thumbnails[3742395]=new thumbnail(3742395,"324802","Visible until you get nearer,<br>\r\nmixed media on canvas 40x40<br>\r\n<br>\r\n","visibleuntilyougetnearer_thumb.jpg",130,131,15);thumbnails[3742415]=new thumbnail(3742415,"324802","Hidden in the top left corner,<br>\r\nmixed media on canvas 30x30 sold.<br>\r\n<br>\r\n","walkaheadtoalane_thumb.jpg",130,130,15);thumbnails[4086630]=new thumbnail(4086630,"324802","Far end of the lane, mixed media on canvas 30x30","FarEndOfTheLane30x30_thumb.jpg",130,128,15);thumbnails[4631073]=new thumbnail(4631073,"267400","Black Heath mixed media on canvas 30x30cm sold","BlackHeath30x30_thumb.jpg",130,132,15);thumbnails[4631089]=new thumbnail(4631089,"267400","Bore Heath mixed media on canvas 40x40cm","BoreHeath40x40_thumb.jpg",130,131,15);thumbnails[4631148]=new thumbnail(4631148,"267400","In the morning, mixed media on canvas 30x23cm","inthemorning30x23_thumb.jpg",130,95,15);thumbnails[4631156]=new thumbnail(4631156,"267400","See the light, mixed media on canvas 30x23cm","seethelight30x23_thumb.jpg",130,97,15);thumbnails[4631161]=new thumbnail(4631161,"267400","Lower Heath mixed media on canvas 40x40cm","LowerHeath40x40_thumb.jpg",130,123,15);thumbnails[4631164]=new thumbnail(4631164,"267400","So far, mixed media on canvas 30x23cm","sofar30x23_thumb.jpg",130,96,15);thumbnails[4631167]=new thumbnail(4631167,"267400","Still with me, mixed media on canvas 30x23cm","stillwithme30x23_thumb.jpg",130,96,15);thumbnails[4631173]=new thumbnail(4631173,"267400","Slepe mixed media on canvas 30x23cm","Slepe30x23_thumb.jpg",130,99,15);thumbnails[4631183]=new thumbnail(4631183,"267400","Slepe Heath mixed media on canvas 40x40cm","SlepeHeath40x40_thumb.jpg",130,125,15);thumbnails[4631187]=new thumbnail(4631187,"267400","South Heath, mixed media on canvas 30x30cm sold.","SouthHeath30x30_thumb.jpg",130,134,15);thumbnails[4631188]=new thumbnail(4631188,"267400","Stocks Wood, mixed media on canvas 30x23cm sold.","stockswood30x23_thumb.jpg",130,99,15);thumbnails[4873603]=new thumbnail(4873603,"267400","Concealed, Acrylic on board framed 43x43cm","28x28Concealed_thumb.jpg",130,127,15);thumbnails[4873604]=new thumbnail(4873604,"267400","Confusion Hill, acrylic on board, framed 43x43cm","28x28ConfusionHill_thumb.jpg",130,129,15);thumbnails[4873606]=new thumbnail(4873606,"267400","Lowest Point, acrylic on board, framed 43x43cm","28x28LowestPoint_thumb.jpg",130,128,15);thumbnails[4873608]=new thumbnail(4873608,"267400","Relevance, acrylic on board, framed 43x43cm","28x28Relevance_thumb.jpg",130,124,15);thumbnails[4873615]=new thumbnail(4873615,"267400","Testimony, acrylic on board, framed 43x43cm","28x28Testimony_thumb.jpg",130,130,15);thumbnails[5466263]=new thumbnail(5466263,"267400","Waters edge, mixed media on canvas 30x23cm","No2_A3D25A33-1EC9-D45B-1C4305BC44308F2A_thumb.jpg",130,100,15);thumbnails[5466266]=new thumbnail(5466266,"267400","I can see it, mixed media on canvas 30x23cm","No3_A3D2E4BF-1EC9-D45B-1CAC441F85195A48_thumb.jpg",130,100,15);thumbnails[5466268]=new thumbnail(5466268,"267400","Stand point, mixed media on canvas 30x23cm","No4_A3D3870A-1EC9-D45B-1CAE88B262015391_thumb.jpg",130,99,15);thumbnails[5466271]=new thumbnail(5466271,"267400","View from above, mixed media on canvas 30x23cm","No5_A3D40F45-1EC9-D45B-1C7095E5BB315A4F_thumb.jpg",130,97,15);thumbnails[5553298]=new thumbnail(5553298,"324793","In every bush, mixed media on canvas 50x40cm","InEveryBush50x40_thumb.jpg",130,162,15);thumbnails[5553301]=new thumbnail(5553301,"324793","In haste, mixed media on canvas 50x40cm","InHaste50x40_thumb.jpg",130,161,15);thumbnails[5553302]=new thumbnail(5553302,"324793","I yearned to wander, mixed media on canvas 50x40cm","IYearnedToWander50x40_thumb.jpg",130,158,15);thumbnails[5553307]=new thumbnail(5553307,"324793","Far outside the town, mixed media on canvas 50x40cm","FarOutsideTheTown50x40_thumb.jpg",130,158,15);thumbnails[5732546]=new thumbnail(5732546,"267400","I can see it, mixed media on canvas 30x23cm","1_thumb.jpg",130,96,15);thumbnails[5732549]=new thumbnail(5732549,"267400","Almost home, mixed media on canvas 30x23cm","2_thumb.jpg",130,97,15);thumbnails[5732559]=new thumbnail(5732559,"267400","A long way, mixed media on canvas 30x23cm","3_thumb.jpg",130,96,15);thumbnails[5732561]=new thumbnail(5732561,"267400","Just ahead, mixed media on canvas 30x23cm","4_thumb.jpg",130,96,15);thumbnails[5787683]=new thumbnail(5787683,"327783","No.1 Ever moving Mixed media on canvas 50x40cm","1_F3037425-24E8-5EC4-4F5EAFC25F117913_thumb.jpg",130,162,15);thumbnails[5787687]=new thumbnail(5787687,"327783","No.2 Golden head, crimson head Mixed media on canvas 50x40cm","2_F3047B75-24E8-5EC4-4F169D5CC008EE7A_thumb.jpg",130,161,15);thumbnails[5787698]=new thumbnail(5787698,"327783","No.3 Hope to find Mixed media on canvas 50x40cm","3_F3052041-24E8-5EC4-4FB5837907A6C6D9_thumb.jpg",130,162,15);thumbnails[5787700]=new thumbnail(5787700,"327783","No.4 Grey light meets green air Mixed media on canvas 50x40cm","4_F305DAF7-24E8-5EC4-4F6D7A18A9C8EE98_thumb.jpg",130,163,15);thumbnails[5787720]=new thumbnail(5787720,"327783","No.5 Follow the flight Mixed media on canvas 50x40cm","5_thumb.jpg",130,159,15);thumbnails[5787722]=new thumbnail(5787722,"327783","No.6 Light upon light Mixed media on canvas 50x40cm","6_thumb.jpg",130,160,15);thumbnails[5787726]=new thumbnail(5787726,"327783","No.7 Between the soft moor Mixed media on canvas 50x40cm","7_thumb.jpg",130,163,15);thumbnails[5787729]=new thumbnail(5787729,"327783","No.8 Still hills Mixed media on canvas 50x40cm","8_thumb.jpg",130,160,15);thumbnails[5787738]=new thumbnail(5787738,"327783","No.9 Pleasure in the wind Mixed media on board 60x60cm","9_thumb.jpg",130,129,15);thumbnails[5787762]=new thumbnail(5787762,"327783","No.10 Black wing, brown wing Mixed media on board 60x60cm","10_thumb.jpg",130,130,15);thumbnails[5787765]=new thumbnail(5787765,"327783","No.11 The long pass Mixed media on board 60x60cm","11_thumb.jpg",130,131,15);thumbnails[5787769]=new thumbnail(5787769,"327783","No.12 Not to be forgotten Mixed media on board 60x60cm","12_thumb.jpg",130,130,15);var galleries=new Object();galleries[324801]=new gallery(324801,"425885","earth and wind","gallery",[414086,414087,414089,414096,414102,414108,414109,414123,414132,414147,414217,414275,425879,425880,425881,425884,425885,425888,425889,425892,425893,432028,432031,432033,512725,512738,512742,885499,1021083,1021091,1219188,1219195,1219199,1282723,1282724,1282726]);galleries[324802]=new gallery(324802,"4086630,3742415,3742395,3742392,3742389,3742386,3742380,3670970,3670955,3670953","land observerd","gallery",[3670945,3670950,3670952,3670953,3670955,3670970,3742380,3742386,3742389,3742392,3742395,3742415,4086630]);galleries[327783]=new gallery(327783,"5787769,5787765,5787762,5787738,5787729,5787726,5787722,5787720,5787700,5787698","New Works","gallery",[5787683,5787687,5787698,5787700,5787720,5787722,5787726,5787729,5787738,5787762,5787765,5787769]);galleries[324793]=new gallery(324793,"5553307,5553302,5553301,5553298","open spaces","gallery",[5553298,5553301,5553302,5553307]);galleries[267400]=new gallery(267400,"5466271,5466268,5466266,5466263,4873615,4873608,4873606,4873603","visual diarys","gallery",[4631073,4631089,4631148,4631156,4631161,4631164,4631167,4631173,4631183,4631187,4631188,4873603,4873604,4873606,4873608,4873615,5466263,5466266,5466268,5466271,5732546,5732549,5732559,5732561]);var imageSets=new Object();imageSets[1]="5466271,5466268,5466266,5466263,4873615,4873608,4873606,4873603,3742395,3742386";imageSets[2]="5466271,5466268,5466266,5466263,4873615,4873608,4873606,4873603,425885";imageSets[3]="5466271,5466268,5466266,5466263,4873615,4873608,4873606,4873603";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/jmsteele/images";break}switch(a){case 1:b="http://www1.clikpic.com/jmsteele/images";break}switch(a){case 2:b="http://admin.clikpic.com/jmsteele/images";break}switch(a){case 24:b="http://tpc15/clikpic/jmsteele/images";break}switch(a){case 4:b="http://www.clikchurch.com/jmsteele/images";break}switch(a){case 5:b="http://www2.clikpic.com/jmsteele/images";break}switch(a){case 22:b="http://tpc5/clikpic/jmsteele/images";break}switch(a){case 23:b="http://tpc10/clikpic/jmsteele/images";break}switch(a){case 25:b="http://tpc16/clikpic/jmsteele/images";break}switch(a){case 15:b="http://www3.clikpic.com/jmsteele/images";break}switch(a){case 18:b="http://www4.clikpic.com/jmsteele/images";break}switch(a){case 19:b="http://www5.clikpic.com/jmsteele/images";break}switch(a){case 31:b="http://www7.clikpic.com/jmsteele/images";break}switch(a){case 32:b="http://admin2.clikpic.com/jmsteele/images";break}switch(a){case 33:b="http://www8.clikpic.com/jmsteele/images";break}switch(a){case 34:b="http://www9.clikpic.com/jmsteele/images";break}switch(a){case 35:b="http://admin3.clikpic.com/jmsteele/images";break}switch(a){case 37:b="http://admin4.clikpic.com/jmsteele/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="john Maxwell Steele Painter: "+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="steel123@btconnect.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="steel123@btconnect.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+'")'})}}};