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[767923]=new thumbnail(767923,"","Finlandia in snowy Hatfield ","FinlaHat070209_thumb.jpg",130,87,15);thumbnails[753403]=new thumbnail(753403,"","Defiant at Wooler Bank, February 2007","Defiant070203_thumb.jpg",130,109,15);thumbnails[753284]=new thumbnail(753284,"","Jubilant and Justice eye-ing-up Finlandia chew","J&J070129_thumb.jpg",130,98,15);thumbnails[753262]=new thumbnail(753262,"","Finlandia at Calais, before crossing the Channel","Finla070128_thumb.jpg",130,99,15);thumbnails[767925]=new thumbnail(767925,"","Jubilant ornament on the window sill ","JubWindow070211a_thumb.jpg",130,169,15);thumbnails[1046651]=new thumbnail(1046651,"","","mrpc97_thumb.gif",130,94,15);thumbnails[5459780]=new thumbnail(5459780,"308923","","NS100124-423_thumb.jpg",130,166,15);thumbnails[5459782]=new thumbnail(5459782,"308923","","NS100124-427_thumb.jpg",130,169,15);thumbnails[5459784]=new thumbnail(5459784,"308923","","NS100124-430_thumb.jpg",130,129,15);thumbnails[5459787]=new thumbnail(5459787,"308923","","NS100124-439_thumb.jpg",130,89,15);thumbnails[5459791]=new thumbnail(5459791,"308923","","NS100124-442_thumb.jpg",130,121,15);thumbnails[5459793]=new thumbnail(5459793,"308923","","NS100124-445_thumb.jpg",130,188,15);thumbnails[5459797]=new thumbnail(5459797,"308923","","NS100124-448_thumb.jpg",130,79,15);thumbnails[5459799]=new thumbnail(5459799,"308923","","NS100124-449_thumb.jpg",130,187,15);thumbnails[5459803]=new thumbnail(5459803,"308923","","NS100124-451_thumb.jpg",130,194,15);thumbnails[5476483]=new thumbnail(5476483,"","","BerkeleyP_thumb.png",130,226,15);thumbnails[1027892]=new thumbnail(1027892,"","Finlandia at the Hook of Holland","NSD72070528K_thumb.jpg",130,195,15);thumbnails[1938132]=new thumbnail(1938132,"","","Crufts2008_BLO_BOB_thumb.jpg",130,111,15);thumbnails[5276728]=new thumbnail(5276728,"","Jovial with cup won in the Senior Stake at the ABB trials in the Cotswolds Spring 2005.","20050402-523-Jovial2ndSenior_thumb.jpg",130,188,15);thumbnails[5276669]=new thumbnail(5276669,"","Jovial at her first open show handled by Jill","20050724-655-JovialJill_thumb.jpg",130,112,15);thumbnails[5268204]=new thumbnail(5268204,"","The Season's Greetings and Happy 2010!","TravJustXmas09_thumb.jpg",130,84,15);thumbnails[5266409]=new thumbnail(5266409,"","Defiant and Finlandia out in the dawn snow","091218-163-DefFinInSnow_thumb.jpg",130,86,15);thumbnails[753375]=new thumbnail(753375,"64171","Jubilant, Finlandia & Defiant at Wooler Bank","J,F&D070203_thumb.jpg",130,96,15);thumbnails[808214]=new thumbnail(808214,"64171","The original Sanft after winning the Marlwood Beaker in January 1999","SanftMarlwood86_thumb.jpg",130,66,15);thumbnails[910023]=new thumbnail(910023,"64171","Sanctus, Sable and Salt in 1992","SS&S92_thumb.jpg",130,108,15);thumbnails[5276613]=new thumbnail(5276613,"48357","Travis with the cup for winning the ABB Trials Novice Stake","20071209-1157-Trav1stNoviceCup_thumb.jpg",130,158,15);thumbnails[986839]=new thumbnail(986839,"48357",'Travis in his first "Tiger Pull Tail" video',"PTTbutton_thumb.jpg",130,95,15);thumbnails[768230]=new thumbnail(768230,"48357","Travis coming in to identify, February 2007","Trav070211_thumb.jpg",130,157,15);thumbnails[1091212]=new thumbnail(1091212,"48357","Travis with Jill at Richmond Championship Show 2006","NS060908-Jill-Travis-Richmond_thumb.jpg",130,143,15);thumbnails[1687875]=new thumbnail(1687875,"48357","Travis playing the hare at Huttoft","071209-1197T_thumb.jpg",130,195,15);thumbnails[1046530]=new thumbnail(1046530,"48357","Jill and Travis at the Bloodhound Club Show, where Travis won the Special Beginners and Working Trial classes.","NS070602-1221a-Jill-Travis_thumb.jpg",130,125,15);thumbnails[808273]=new thumbnail(808273,"48356","Sanctus with her 4 7-day-old pups ","Sa15My98_thumb.jpg",130,207,15);thumbnails[808263]=new thumbnail(808263,"48356","Defiant and Jovial at 3 days old","D&Jat3daysOld_thumb.jpg",130,74,15);thumbnails[5363195]=new thumbnail(5363195,"296542","","20091218-158-DefiantRIP_thumb.jpg",130,88,15);thumbnails[1931078]=new thumbnail(1931078,"296542","","04100200_thumb.jpg",130,208,15);thumbnails[4633181]=new thumbnail(4633181,"296542","Defiant with the three-year-old Cammonstone Js","CamJ090830_thumb.jpg",130,67,15);thumbnails[5276733]=new thumbnail(5276733,"296542","Jovial and Defiant on Boxing day at parents","20041226-434-JovialDefiant_thumb.jpg",130,81,15);thumbnails[5276673]=new thumbnail(5276673,"296542","Defiant with Trophies won in 2005","20050529-558-DefiantTrophies_thumb.jpg",130,142,15);thumbnails[750341]=new thumbnail(750341,"296542","Defiant's 5 month-old Cammonstone puppies","GillLamb070204_thumb.jpg",130,86,15);thumbnails[6349573]=new thumbnail(6349573,"296542","Cammonstone Jupiter & Scentall Legend","NS100418-D70-040_thumb.jpg",130,93,15);thumbnails[3496994]=new thumbnail(3496994,"47687","Finlandia and Defiant exploring the boundary","F&D-MV090221-1559_thumb.jpg",130,108,15);thumbnails[3496999]=new thumbnail(3496999,"47687","Finlandia and Defiant in the orchard","F&D-MV090221-1549_thumb.jpg",130,124,15);thumbnails[820657]=new thumbnail(820657,"47687","Finlandia & Jubilant on Skegness beach","Skegness148_thumb.jpg",130,104,15);thumbnails[820730]=new thumbnail(820730,"47687","Finlandia & Justice","Skegness147_thumb.jpg",130,102,15);thumbnails[753497]=new thumbnail(753497,"47687","Finlandia's first play in the snow, 8th Feb 2007","J,J&F070208_thumb.jpg",130,117,15);thumbnails[753396]=new thumbnail(753396,"47687","Finlandia at Wooler Bank after six days in Britain","Finla070203_thumb.jpg",130,123,15);thumbnails[753429]=new thumbnail(753429,"47687","Finlandia, Jubilant & Defiant at Harrington","HarringtonFJ&D_thumb.jpg",130,98,15);thumbnails[753479]=new thumbnail(753479,"47687","Finlandia at Harrington","HarringtonFinla_thumb.jpg",130,98,15);thumbnails[753315]=new thumbnail(753315,"47687","Finlandia in the early hours, guarding her chew.","Finla070129_thumb.jpg",130,174,15);thumbnails[5757689]=new thumbnail(5757689,"47687","","Finlandia201003_0036_thumb.jpg",130,119,15);thumbnails[6120587]=new thumbnail(6120587,"47687","","NS100606-D90-712_thumb.jpg",130,173,15);thumbnails[820606]=new thumbnail(820606,"47687","Finlandia in the dunes","Fin0703158_thumb.jpg",130,101,15);thumbnails[986838]=new thumbnail(986838,"47687","Finlandia at Mill View","P990i070507a_thumb.jpg",130,173,15);thumbnails[1091191]=new thumbnail(1091191,"47687","Finlandia moving in the ring at Hampen","NS070526-1117-Finlandia_thumb.jpg",130,118,15);thumbnails[1027888]=new thumbnail(1027888,"47687","Finlandia ready to return from the Hook of Holland","NSD72070528-1171_thumb.jpg",130,172,15);thumbnails[4434017]=new thumbnail(4434017,"47687","Finlandia and the boys","20090801-1630-FJDT_thumb.jpg",130,98,15);thumbnails[1685699]=new thumbnail(1685699,"47687","Finlandia, Defiant and Travis at Huttoft","071207-1196FDT_thumb.jpg",130,87,15);thumbnails[1685702]=new thumbnail(1685702,"47687","Finlandia, Defiant and Travis at Huttoft","071207-1199FDT_thumb.jpg",130,87,15);thumbnails[1687861]=new thumbnail(1687861,"47687","Finlandia and Travis at Huttoft","071209-1200FT_thumb.jpg",130,87,15);thumbnails[1685704]=new thumbnail(1685704,"47687","Finlandia at Huttoft","071207-1212F_thumb.jpg",130,120,15);thumbnails[1685707]=new thumbnail(1685707,"47687","Finlandia at Huttoft<br>\r\n","071207-1214F_thumb.jpg",130,120,15);thumbnails[1027880]=new thumbnail(1027880,"47687","Finlandia at the Danish Bloodhound Club Show 2007","SA070526-855_thumb.jpg",130,171,15);thumbnails[6120601]=new thumbnail(6120601,"47687","Finlandia looking Noble","NS100418-D70-206-Noble_thumb.jpg",130,161,15);thumbnails[6120579]=new thumbnail(6120579,"47687","Best Matching Pair ","NS100606-D90-713_thumb.jpg",130,169,15);thumbnails[6122492]=new thumbnail(6122492,"47687","FBI at Golden Jubilee Fun Obedience","NS100606-D90-796_thumb.jpg",130,130,15);thumbnails[683838]=new thumbnail(683838,"296417","Justice and Travis","Image004_thumb.jpg",130,98,15);thumbnails[4434290]=new thumbnail(4434290,"296417","","20090801-1709-Justice_thumb.jpg",130,173,15);thumbnails[5276569]=new thumbnail(5276569,"296417","Justice posing in the Autumn morning sunshine.","20091112-012-Justice_thumb.jpg",130,167,15);thumbnails[5266141]=new thumbnail(5266141,"296417","Justice and Jubilant in the Snow","091218-180-JJinSnowC_thumb.jpg",130,86,15);thumbnails[5266280]=new thumbnail(5266280,"296417","Justice after burying his head in the Snow :-)","091218-143-JusInSnow_thumb.jpg",130,87,15);thumbnails[5266234]=new thumbnail(5266234,"296417","Justice enjoying the Daybreak Snow","091218-151-JusInSnow_thumb.jpg",130,145,15);thumbnails[5266285]=new thumbnail(5266285,"296417","Justice  - Head in the clouds","091218-171-JusInSnow_thumb.jpg",130,87,15);thumbnails[5270328]=new thumbnail(5270328,"296417","Justice  full-frontal","091218-130-JusInSnow_thumb.jpg",130,192,15);thumbnails[767926]=new thumbnail(767926,"296437","Jubilant ornament on the window sill ","JubWindow070211b_thumb.jpg",130,174,15);thumbnails[1042684]=new thumbnail(1042684,"296437","Jubilant nodding off as dad keeps guard","NS070602-1246c_thumb.jpg",130,87,15);thumbnails[1042682]=new thumbnail(1042682,"296437","Jubilant watching the show at Baginton ","BW070602-8247a_thumb.jpg",130,130,15);thumbnails[5270334]=new thumbnail(5270334,"296437","Jubilant with Jill at the ABB Ch Show 2009","JubJill090830-1223_thumb.jpg",130,107,15);thumbnails[5911396]=new thumbnail(5911396,"296437","Jubilant at the ABB Open Show 2010,<br>\r\nwinning Open Bitch","1_thumb.jpg",130,109,15);thumbnails[6243078]=new thumbnail(6243078,"296437","Jubilant sitting with CC Trophies for 2009","NS100626D90-004_thumb.jpg",130,86,15);thumbnails[6240217]=new thumbnail(6240217,"296437","Jubilant with 3 Show Trophies","NS100626D90-026J3Trophies1_thumb.jpg",130,83,15);thumbnails[1519335]=new thumbnail(1519335,"104275","","71022095_thumb.jpg",130,101,15);thumbnails[1519371]=new thumbnail(1519371,"104275","","71022100_thumb.jpg",130,69,15);thumbnails[1519381]=new thumbnail(1519381,"104275","","71022099_thumb.jpg",130,117,15);thumbnails[1519383]=new thumbnail(1519383,"104275","","71022101_thumb.jpg",130,67,15);thumbnails[1519386]=new thumbnail(1519386,"104275","","71022102_thumb.jpg",130,78,15);thumbnails[1519389]=new thumbnail(1519389,"104275","","71022103_thumb.jpg",130,113,15);thumbnails[1519396]=new thumbnail(1519396,"104275","","71022106_thumb.jpg",130,81,15);thumbnails[1519398]=new thumbnail(1519398,"104275","","71022109_thumb.jpg",130,94,15);thumbnails[1519401]=new thumbnail(1519401,"104275","","71022111_thumb.jpg",130,126,15);thumbnails[1519403]=new thumbnail(1519403,"104275","","71022114_thumb.jpg",130,195,15);thumbnails[1519407]=new thumbnail(1519407,"104275","","71022116_thumb.jpg",130,113,15);thumbnails[1519411]=new thumbnail(1519411,"104275","","71022117_thumb.jpg",130,64,15);var galleries=new Object();galleries[308923]=new gallery(308923,"5459803,5459799,5459797,5459793,5459791,5459787,5459784,5459782,5459780","Harness","gallery",[5459780,5459782,5459784,5459787,5459791,5459793,5459797,5459799,5459803]);galleries[64171]=new gallery(64171,"5276613,1687875,1091212,1046530,808214","Bloodhounds over the years","gallery",[753375,808214,910023]);galleries[48357]=new gallery(48357,"5276613,1687875,1091212,1046530","Travis","section71782",[5276613,986839,768230,1091212,1687875,1046530]);galleries[48356]=new gallery(48356,"808273","Sanctus","section71778",[808273,808263]);galleries[296542]=new gallery(296542,"5276733,5276673,4633181,1931078","Defiant","section71779",[5363195,1931078,4633181,5276733,5276673,750341,6349573]);galleries[47687]=new gallery(47687,"6122492,6120601,6120579,5757689,4434017,3496994,986838,820606","Finlandia","gallery",[3496994,3496999,820657,820730,753497,753396,753429,753479,753315,5757689,6120587,820606,986838,1091191,1027888,4434017,1685699,1685702,1687861,1685704,1685707,1027880,6120601,6120579,6122492]);galleries[296417]=new gallery(296417,"5276569,5270328,5266234,5266141,683838","Justice","section71784",[683838,4434290,5276569,5266141,5266280,5266234,5266285,5270328]);galleries[296437]=new gallery(296437,"5911396,1042682","Jubilant","section71784",[767926,1042684,1042682,5270334,5911396,6243078,6240217]);galleries[104275]=new gallery(104275,"1519411,1519407,1519403,1519401,1519398,1519396,1519389,1519386,1519383,1519381","Netherlands","gallery",[1519335,1519371,1519381,1519383,1519386,1519389,1519396,1519398,1519401,1519403,1519407,1519411]);var imageSets=new Object();imageSets[1]="5363195";imageSets[2]="6122492,6120601,6120579,5911396,5757689,5276733,5276673,5276613,5276569,5270328,5266234,5266141,4633181,4434017,3496994,1931078,1687875,1091212,1046530,1042682,986838,820606,808273,808214,683838";imageSets[3]="6349573,6243078,6240217,6122492,6120601,6120587,6120579,5911396,5757689,5476483,5459803,5459799,5459797,5459793,5459791,5459787,5459784,5459782,5459780,5363195,5276733,5276728,5276673,5276669,5276613,5276569,5270334,5270328,5268204,5266409,5266285,5266280,5266234,5266141,4633181,4434290,4434017,3496999,3496994,1938132,1931078,1687875,1687861,1685707,1685704,1685702,1685699,1519411,1519407,1519403";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/sanft/images";break}switch(a){case 1:b="http://www1.clikpic.com/sanft/images";break}switch(a){case 2:b="http://admin.clikpic.com/sanft/images";break}switch(a){case 24:b="http://tpc15/clikpic/sanft/images";break}switch(a){case 4:b="http://www.clikchurch.com/sanft/images";break}switch(a){case 5:b="http://www2.clikpic.com/sanft/images";break}switch(a){case 22:b="http://tpc5/clikpic/sanft/images";break}switch(a){case 23:b="http://tpc10/clikpic/sanft/images";break}switch(a){case 25:b="http://tpc16/clikpic/sanft/images";break}switch(a){case 15:b="http://www3.clikpic.com/sanft/images";break}switch(a){case 18:b="http://www4.clikpic.com/sanft/images";break}switch(a){case 19:b="http://www5.clikpic.com/sanft/images";break}switch(a){case 31:b="http://www7.clikpic.com/sanft/images";break}switch(a){case 32:b="http://admin2.clikpic.com/sanft/images";break}switch(a){case 33:b="http://www8.clikpic.com/sanft/images";break}switch(a){case 34:b="http://www9.clikpic.com/sanft/images";break}switch(a){case 35:b="http://admin3.clikpic.com/sanft/images";break}switch(a){case 37:b="http://admin4.clikpic.com/sanft/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="'+escape(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="Sanft: "+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>Pay by credit card 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="paypal@cleanboot.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 purchases" 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="paypal@cleanboot.co.uk">';b=b+'<input type="hidden" name="display" value="1">';b=b+'<input type="Submit" value="View purchases" 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+'")'})}}};