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[1556529]=new thumbnail(1556529,"","","widepan617thumb_thumb.jpg",130,83,18);thumbnails[1556582]=new thumbnail(1556582,"","","pen67v2_thumb.jpg",130,87,18);thumbnails[1719866]=new thumbnail(1719866,"","","web2_thumb.jpg",130,178,18);thumbnails[3856141]=new thumbnail(3856141,"81960","Hope Valley and the 'Great Ridge' from Carhead Rocks","LSDER617-7v2_thumb.jpg",130,402,18);thumbnails[3856171]=new thumbnail(3856171,"81960","Stanage Edge from Carhead Rocks","LSDER617-111_thumb.jpg",130,42,18);thumbnails[3856179]=new thumbnail(3856179,"81960","Sunset at Carhead Rocks","LSDER617-25_thumb.jpg",130,42,18);thumbnails[3875639]=new thumbnail(3875639,"81960","Winter in the Peak District","LSDER617-13_thumb.jpg",130,42,18);thumbnails[1121902]=new thumbnail(1121902,"81960","Ben Nevis from Corpach, Southern Highlands, Scotland","img010panoramic2_thumb.jpg",130,49,18);thumbnails[1544886]=new thumbnail(1544886,"81960","Chateaux Trevignon, Point de Trevignon, Brittany, France","img071webusm_thumb.jpg",130,64,18);thumbnails[1545627]=new thumbnail(1545627,"81960","View towards Over Owler Tor and Millstone Edge from Stanage Edge, Peak District National Park","img070web_thumb.jpg",130,64,18);thumbnails[1545719]=new thumbnail(1545719,"81960","Approaching storm over the Hope Valley from Stanage Edge, Peak District National Park","img069webusm_thumb.jpg",130,64,18);thumbnails[727201]=new thumbnail(727201,"107233","Elderly Greek gentleman, Crete","img003c_thumb.jpg",130,195,18);thumbnails[1552016]=new thumbnail(1552016,"107233","Chateaux Trevignon, Point de Trevignon, Brittany, France","img063websmallersmart_thumb.jpg",130,154,18);thumbnails[1485327]=new thumbnail(1485327,"107233","Local Market, Normandy, France","img035webUSM_thumb.jpg",130,195,18);thumbnails[1568764]=new thumbnail(1568764,"107233","Street Signs, Brehal, Normandy, France","img031websmart_thumb.jpg",130,87,18);thumbnails[1486070]=new thumbnail(1486070,"107233","Indoor Market, Granville, Normandy, France","img032webUSM_thumb.jpg",130,195,18);thumbnails[1572527]=new thumbnail(1572527,"107233","Indoor market, Granville, Normandy, France","img050web2smart_thumb.jpg",130,195,18);thumbnails[830297]=new thumbnail(830297,"107233","Local Market, Brittany, France","frenchtomatoesweb_thumb.jpg",130,195,18);thumbnails[866868]=new thumbnail(866868,"107233","Elderly Singapore Gentleman","man-sleepingfinal_thumb.jpg",130,195,18);thumbnails[1486105]=new thumbnail(1486105,"107233","A Busy Indoor Market, Granville, Normandy, France","img034webusm_thumb.jpg",130,195,18);thumbnails[773477]=new thumbnail(773477,"107233","Spice stall, Normandy.","spicesfinal_thumb.jpg",130,195,18);thumbnails[1579225]=new thumbnail(1579225,"107233","Indoor market, Granville, Normandy, France","img048webusm_thumb.jpg",130,195,18);thumbnails[746646]=new thumbnail(746646,"107233","Singapore Stall","wok-man2water_thumb.jpg",130,195,18);thumbnails[830138]=new thumbnail(830138,"33773","Cley Mill, Cley-next-the-Sea, Holt, Norfolk","cleywindwebfinal_thumb.jpg",130,153,18);thumbnails[3856126]=new thumbnail(3856126,"33773","Stanage Edge and the Hope Valley from Carhead Rocks","LSDER67-16_thumb.jpg",130,103,18);thumbnails[784746]=new thumbnail(784746,"33773","Langdale Pikes, Cumbria","langdalefinal_thumb.jpg",130,111,18);thumbnails[793963]=new thumbnail(793963,"33773","Sunrise, Morston Quay, North Norfolk","morstonagainweb_thumb.jpg",130,154,18);thumbnails[2633144]=new thumbnail(2633144,"33773","Old John Tower, Bradgate Country Park, Leicestershire<br>\r\n<br>\r\n","img084croppedweb_thumb.jpg",130,164,18);thumbnails[770742]=new thumbnail(770742,"33773","Lake Disrict Tranquility","Grasmerewebfinal_thumb.jpg",130,108,18);thumbnails[785173]=new thumbnail(785173,"33773","Millstones, Stanage Edge","stonesfinal_thumb.jpg",130,156,18);thumbnails[733056]=new thumbnail(733056,"33773","Bamford Edge, Peak District","img078cv2_thumb.jpg",130,109,18);thumbnails[731791]=new thumbnail(731791,"33773","Stanage Edge, Peak District","stanageagain2water_thumb.jpg",130,153,18);thumbnails[796433]=new thumbnail(796433,"33773","Bedruthan Steps, North Cornwall","bedruthanfinal_thumb.jpg",130,155,18);thumbnails[733061]=new thumbnail(733061,"33773","Dusk over the Wye Valley, Brecon Beacons<br>\r\n","how-bluff22water_thumb.jpg",130,110,18);thumbnails[796284]=new thumbnail(796284,"33773","Mist over the River Soar, Cossington, Leicestershire","cossingtonfinal_thumb.jpg",130,111,18);thumbnails[1662903]=new thumbnail(1662903,"33773","Dramatic light over the Great Ridge, Peak District National Park, Derbyshire","img065webfinal_thumb.jpg",130,108,18);thumbnails[784648]=new thumbnail(784648,"33773","Twighlight at Loughrigg Tarn","loughriggfinal_thumb.jpg",130,108,18);thumbnails[773360]=new thumbnail(773360,"33773","Loughrigg Reflections","loughrigg-tarnwebagainfinal_thumb.jpg",130,108,18);thumbnails[790827]=new thumbnail(790827,"33773","Early morning squall, Morston Quay, North Norfolk","morstonfinal_thumb.jpg",130,153,18);thumbnails[792476]=new thumbnail(792476,"33773","Sunrise, Rutland Water","rutlandwebfinal_thumb.jpg",130,111,18);thumbnails[731569]=new thumbnail(731569,"33773","Rannoch Moor, Scotland","rannochmud2water_thumb.jpg",130,154,18);thumbnails[731607]=new thumbnail(731607,"33773","Lochan Na-h Achlaise and The Black Mount, Rannoch Moor, Scotland","rannochagain2water_thumb.jpg",130,154,18);thumbnails[731789]=new thumbnail(731789,"33773","Falls below Sgwd Gwladus, River Pyrddin, Brecon Beacons, Wales.<br>\r\n","sgwd2water_thumb.jpg",130,111,18);thumbnails[798165]=new thumbnail(798165,"33773","Twighlight, Loch Tulla, Argyll & Bute, Scotland","lochtullafinal_thumb.jpg",130,110,18);thumbnails[852509]=new thumbnail(852509,"33773","Early Morning Reflections, Cossington South Lakes, Leicestershire","cossingtonfinalweb_thumb.jpg",130,87,18);thumbnails[727235]=new thumbnail(727235,"33774","Caribbean Carnival","carabean-again2water_thumb.jpg",130,195,18);thumbnails[727836]=new thumbnail(727836,"33774","Royal Show Judge","img034b_thumb.jpg",130,87,18);thumbnails[727765]=new thumbnail(727765,"33774","Troopers Helmet, Belvoir Castle, Leicestershire","img014_thumb.jpg",130,195,18);thumbnails[731731]=new thumbnail(731731,"33774","A serious moment","img030c_thumb.jpg",130,195,18);thumbnails[727241]=new thumbnail(727241,"33774","Royal Show","laughingcartmanwater_thumb.jpg",130,195,18);thumbnails[727756]=new thumbnail(727756,"33774","Conductor","conductorwater_thumb.jpg",130,195,18);thumbnails[731714]=new thumbnail(731714,"33774","Street Dancing","black girlwater_thumb.jpg",130,87,18);thumbnails[731718]=new thumbnail(731718,"33774","Morgan Horse Show","gorgeous-bird2water_thumb.jpg",130,195,18);thumbnails[727788]=new thumbnail(727788,"33774","Medieval Armour","img016b_thumb.jpg",130,195,18);thumbnails[727883]=new thumbnail(727883,"33774","Old Friends","old-men-again2water_thumb.jpg",130,195,18);thumbnails[727762]=new thumbnail(727762,"33774","Cornet Player","cornetagain2water_thumb.jpg",130,195,18);thumbnails[727848]=new thumbnail(727848,"33774","Soldier","manblowing2water_thumb.jpg",130,195,18);thumbnails[415345]=new thumbnail(415345,"33774","Panned shot of young girl on roundabout. ","Meganweb2final_thumb.jpg",130,86,18);thumbnails[735738]=new thumbnail(735738,"33774","Tuba player","img027b_thumb.jpg",130,195,18);thumbnails[728092]=new thumbnail(728092,"33776","Hereford Cattle, Ashby Show, Leicestershire","herefordwater_thumb.jpg",130,87,18);thumbnails[796480]=new thumbnail(796480,"33776","Worcestershire Foxhounds, Royal Show, Stoneleigh","houndsfinal_thumb.jpg",130,195,18);thumbnails[731725]=new thumbnail(731725,"33776","Serious business at the scoreboard","scoreboard2water_thumb.jpg",130,87,18);thumbnails[731727]=new thumbnail(731727,"33776","A Spectator's View","rearspectatorswater_thumb.jpg",130,195,18);thumbnails[733777]=new thumbnail(733777,"33776","Local Events","dogagain2water_thumb.jpg",130,195,18);thumbnails[746605]=new thumbnail(746605,"33776","Pony and Trap","horse-and-trap-again final2water_thumb.jpg",130,87,18);thumbnails[733784]=new thumbnail(733784,"33776","Grand view","spectators2b_thumb.jpg",130,195,18);thumbnails[746618]=new thumbnail(746618,"33776","A 'Different' Perspective","diagonal-tractorwater_thumb.jpg",130,87,18);thumbnails[733790]=new thumbnail(733790,"33776","Driving classes","horseand-cartfront2water_thumb.jpg",130,195,18);thumbnails[728084]=new thumbnail(728084,"33776","Prize Winner","bull22water_thumb.jpg",130,87,18);thumbnails[770797]=new thumbnail(770797,"33776","Fordson Tractor","fordsonfinal_thumb.jpg",130,195,18);thumbnails[770757]=new thumbnail(770757,"33776","Dog Agility","alsationfinal_thumb.jpg",130,195,18);thumbnails[773389]=new thumbnail(773389,"33778","Stanway, Gloucestershire.","st-peters-stanway-gloswebfinal-_thumb.jpg",130,154,18);thumbnails[786761]=new thumbnail(786761,"33778","St Matthew's Church, Rutland Water","normantonfinal_thumb.jpg",130,114,18);thumbnails[801616]=new thumbnail(801616,"33778","St Luke, Gaddesby, Leicestershire","churchfinal_thumb.jpg",130,155,18);thumbnails[733071]=new thumbnail(733071,"33778","The church at Normanton-on-Soar, Leicestershire","normantonwatersaturated_thumb.jpg",130,112,18);thumbnails[786826]=new thumbnail(786826,"33778","The 'Worked' image","st-barth Aldsworth glos final_thumb.jpg",130,195,18);thumbnails[830155]=new thumbnail(830155,"33778","St Michael and All Angels , Hallaton, Leicestershire","hallaton_thumb.jpg",130,154,18);thumbnails[731738]=new thumbnail(731738,"33778","Stained Glass","newglass2water_thumb.jpg",130,195,18);thumbnails[731748]=new thumbnail(731748,"33778","Southwell Minster 1.","glass-again2water_thumb.jpg",130,195,18);thumbnails[853753]=new thumbnail(853753,"33778","Southwell Minster 2","img044webfinal_thumb.jpg",130,195,18);thumbnails[853642]=new thumbnail(853642,"33778","St James, Longborough, Gloucestershire","StJames-Longborough-Gloswebfinal_thumb.jpg",130,195,18);thumbnails[735608]=new thumbnail(735608,"33778","Stained Glass Scripture","scripture3water_thumb.jpg",130,87,18);thumbnails[729220]=new thumbnail(729220,"33775","Sword","robin-hood-again2water_thumb.jpg",130,195,18);thumbnails[770694]=new thumbnail(770694,"33775","Classic collection","oil-cans final_thumb.jpg",130,195,18);thumbnails[727878]=new thumbnail(727878,"33775","Keeping an 'eye' on the competition.","gun-on-sjhoulder2water_thumb.jpg",130,87,18);thumbnails[746658]=new thumbnail(746658,"33775","Poppy","poppy3water_thumb.jpg",130,195,18);thumbnails[727216]=new thumbnail(727216,"33775","Bowls match","bowlers-arm22water_thumb.jpg",130,87,18);thumbnails[728075]=new thumbnail(728075,"33775","Chive in flower","chiveagain3water_thumb.jpg",130,87,18);thumbnails[727759]=new thumbnail(727759,"33775","Clay Shooting","hull-cartridge3water_thumb.jpg",130,87,18);thumbnails[770675]=new thumbnail(770675,"33775","Who's there?","dogaround-armfinal_thumb.jpg",130,195,18);thumbnails[770799]=new thumbnail(770799,"33775","Patterns","bikesfinal_thumb.jpg",130,195,18);thumbnails[773058]=new thumbnail(773058,"33775","Abstract","fodenfinal2_thumb.jpg",130,87,18);thumbnails[1121473]=new thumbnail(1121473,"33775","Chocolates","089bweb_thumb.jpg",130,196,18);thumbnails[1841064]=new thumbnail(1841064,"56696","*Latest* Leicestershire and Rutland Life feature ","Rut-Life-Feb-29_168_Rutland_thumb.jpg",130,171,18);thumbnails[1841072]=new thumbnail(1841072,"56696","*Latest* Leicestershire and Rutland Life feature p2","Rut-Life-Feb-29_169_Rutland_thumb.jpg",130,171,18);thumbnails[829739]=new thumbnail(829739,"56696","Competition Success","stainedfinal_thumb.jpg",130,180,18);thumbnails[727192]=new thumbnail(727192,"56696","Elderly Greek woman. ","test_thumb.jpg",130,195,18);thumbnails[786913]=new thumbnail(786913,"56696","NFU Promotional Leaflet","NFU-Mutualleaflet-A_W-2final_thumb.jpg",130,92,18);thumbnails[829706]=new thumbnail(829706,"56696","Mr Jones Enjoys his Retirement","davidweb_thumb.jpg",130,87,18);thumbnails[801099]=new thumbnail(801099,"56696","NFU Planning Leaflets","leafletweb_thumb.jpg",130,196,18);var galleries=new Object();galleries[81960]=new gallery(81960,"3856171,1121902","Panoramics *Under Construction*","gallery",[3856141,3856171,3856179,3875639,1121902,1544886,1545627,1545719]);galleries[107233]=new gallery(107233,"830297","Travel","gallery",[727201,1552016,1485327,1568764,1486070,1572527,830297,866868,1486105,773477,1579225,746646]);galleries[33773]=new gallery(33773,"784746","Landscapes","gallery",[830138,3856126,784746,793963,2633144,770742,785173,733056,731791,796433,733061,796284,1662903,784648,773360,790827,792476,731569,731607,731789,798165,852509]);galleries[33774]=new gallery(33774,"727235","Candids","gallery",[727235,727836,727765,731731,727241,727756,731714,731718,727788,727883,727762,727848,415345,735738]);galleries[33776]=new gallery(33776,"728092","Farming & Agriculture ","gallery",[728092,796480,731725,731727,733777,746605,733784,746618,733790,728084,770797,770757]);galleries[33778]=new gallery(33778,"773389","Buildings and Architecture","gallery",[773389,786761,801616,733071,786826,830155,731738,731748,853753,853642,735608]);galleries[33775]=new gallery(33775,"727216","Miscellaneous","gallery",[729220,770694,727878,746658,727216,728075,727759,770675,770799,773058,1121473]);galleries[56696]=new gallery(56696,"1841072,1841064,829739,829706,801099,786913,727192","Tear Sheets/Competitions","gallery",[1841064,1841072,829739,727192,786913,829706,801099]);var imageSets=new Object();imageSets[1]="2633144,830138,784746";imageSets[2]="3856171,1121902,830297,784746,773389,728092,727235,727216";imageSets[3]="3875639,3856179,3856171,3856141,3856126,2633144,1841072,1841064,1719866,1662903,1579225,1572527,1568764,1556582,1556529,1552016,1545719,1545627,1544886,1486105,1486070,1485327,1121902,1121473,866868,853753,853642,852509,830297,830155,830138,829739,829706,801616,801099,798165,796480,796433,796284,793963,792476,790827,786913,786826,786761,785173,784746,784648,773477,773389";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/jsallis/images";break}switch(a){case 1:b="http://www1.clikpic.com/jsallis/images";break}switch(a){case 2:b="http://admin.clikpic.com/jsallis/images";break}switch(a){case 24:b="http://tpc15/clikpic/jsallis/images";break}switch(a){case 4:b="http://www.clikchurch.com/jsallis/images";break}switch(a){case 5:b="http://www2.clikpic.com/jsallis/images";break}switch(a){case 22:b="http://tpc5/clikpic/jsallis/images";break}switch(a){case 23:b="http://tpc10/clikpic/jsallis/images";break}switch(a){case 25:b="http://tpc16/clikpic/jsallis/images";break}switch(a){case 15:b="http://www3.clikpic.com/jsallis/images";break}switch(a){case 18:b="http://www4.clikpic.com/jsallis/images";break}switch(a){case 19:b="http://www5.clikpic.com/jsallis/images";break}switch(a){case 31:b="http://www7.clikpic.com/jsallis/images";break}switch(a){case 32:b="http://admin2.clikpic.com/jsallis/images";break}switch(a){case 33:b="http://www8.clikpic.com/jsallis/images";break}switch(a){case 34:b="http://www9.clikpic.com/jsallis/images";break}switch(a){case 35:b="http://admin3.clikpic.com/jsallis/images";break}switch(a){case 37:b="http://admin4.clikpic.com/jsallis/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="Jim Sallis Travel and Location Photography: "+photos[f].caption;if(photos[f].caption==""){document.getElementById("imageTitle").style.display="none"}else{document.getElementById("imageTitle").style.display="block"}var a=fnGetImageDetails(f);if(a==""){document.getElementById("imageDetails").style.display="none";var c=document.getElementById("infoWrap");var d=document.getElementById("photoInfo");if(photos[f].caption==""){if(c!=null){c.className="empty"}if(d!=null){d.className="empty"}}else{if(c!=null){c.className="noinfo"}if(d!=null){d.className="noinfo"}}}else{document.getElementById("imageDetails").style.display="block";var c=document.getElementById("infoWrap");if(c!=null){c.className="normal"}var d=document.getElementById("photoInfo");if(d!=null){d.className="normal"}}document.getElementById("imageDetails").innerHTML=a;toggleAddToCartConfirm()}else{window.location="photo_"+photos[f].id+".html"}}function toggleAddToCartConfirm(){if($("#paymentConfirm").size()){$("#paymentConfirm").hide();$("#paymentAddButton").unbind().click(function(){form=document.getElementById("paymentForm");option_id=0;if(form.item_option.value){option_id=form.item_option.value}if(addItemToBasket(form.item_number.value,photos,form.site.value,parseInt(form.quantity.value,10),option_id)){if($.browser.msie){$("#paymentConfirm").text("Item added to cart").show()}else{$("#paymentConfirm").text("Item added to cart").fadeIn()}}else{$("#paymentConfirm").text("Item not added - check cookies are enabled in your browser.").fadeIn()}})}}function fnGetImageDetails(b){var a="";if(photos[b].description!=""){a=a+'<p id="imageDescription">'+photos[b].description+"</p>"}if(photos[b].photo_ref!=""){a=a+'<p class="imageinfo" id="imageRef"><strong>Ref: </strong>'+photos[b].photo_ref+"</p>"}if(photos[b].takendate!=""){a=a+'<p class="imageinfo" id="imageDate"><strong>Date: </strong>'+photos[b].takendate+"</p>"}if(photos[b].location!=""){a=a+'<p class="imageinfo" id="imageLocation"><strong>Location: </strong>'+photos[b].location+"</p>"}if(photos[b].photographer!=""){a=a+'<p class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>'+photos[b].photographer+"</p>"}a=a+fnGetPaymentInfo(photos[b]);if(a!=""){a=a+'<div class="spacer"></div>'}return a}function fnGetPaymentInfo(c){var b="";if(c.item_price!==""){b=b+"<p>Buy now using PayPal:</p>";b=b+'<p class="imageinfo" id="imagePrice"><strong>'+c.purchase_instruction+"</strong> 				&pound;"+(c.item_price).toFixed(2)+"</p>";var e=c.purchase_instruction;var d=(c.item_price).toFixed(2);var a=0}else{if(c.payment_groups_id!==""){b=b+"<p>Buy this print online:</p>";b=b+'<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';b=b+'<select class="paymentlink" name="payment_options_id" onchange="updateItemValues(document.forms.paymentForm,this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';b=b+getPaymentOptions(c.payment_groups_id);b=b+"</select>";b=b+"</form>";var a=paymentGroups[c.payment_groups_id].options[0];if(paymentOptions[a]){var e=paymentOptions[a].payment_option;var d=paymentOptions[a].price}}else{}}if(c.item_price!==""||c.payment_groups_id!==""){b=b+'<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';b=b+'<input type="hidden" name="item_name" value="'+e+'">';ref="";if(c.photo_ref!=""){ref=c.photo_ref+" - "+c.caption}else{ref=c.id+" - "+c.caption}price=d;b=b+'<input type="hidden" name="cmd" value="_cart">';b=b+'<input type="hidden" name="business" value="jimsallis@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="jimsallis@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+'")'})}}};