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[261442]=new thumbnail(261442,"","","Ipoua cup_thumb.jpg",130,217,15);thumbnails[261445]=new thumbnail(261445,"","","Trophy winners_thumb.jpg",130,88,15);thumbnails[261798]=new thumbnail(261798,"","Hereford United celebrate winning the Conference play off final. ","Champers1_thumb.jpg",130,71,15);thumbnails[3494630]=new thumbnail(3494630,"213387","","HFD4SCUDA_thumb.jpg",130,145,15);thumbnails[3494655]=new thumbnail(3494655,"213387","","July 2007 Extra_thumb.jpg",130,86,15);thumbnails[3494670]=new thumbnail(3494670,"213387","","LUD29FLOOD H_thumb.jpg",130,91,15);thumbnails[3494674]=new thumbnail(3494674,"213387","","The Limit enhanced_thumb.jpg",130,86,15);thumbnails[4713304]=new thumbnail(4713304,"270911","Catwoman to the rescue!","Les_6_thumb.jpg",130,157,15);thumbnails[4713313]=new thumbnail(4713313,"270911","","Les_14_thumb.jpg",130,191,15);thumbnails[4713319]=new thumbnail(4713319,"270911","","Les_17_thumb.jpg",130,139,15);thumbnails[4713323]=new thumbnail(4713323,"270911","","Les_21_thumb.jpg",130,85,15);thumbnails[4713370]=new thumbnail(4713370,"270911","","Les_25_thumb.jpg",130,174,15);thumbnails[4713425]=new thumbnail(4713425,"270911","wow, what a lovely pair! Legs are nice as well!","Les_29_thumb.jpg",130,126,15);thumbnails[4713444]=new thumbnail(4713444,"270911","","Les_44_thumb.jpg",130,199,15);thumbnails[4713447]=new thumbnail(4713447,"270911","","Les_51_thumb.jpg",130,101,15);thumbnails[4713460]=new thumbnail(4713460,"270911","","Les_V_thumb.jpg",130,156,15);thumbnails[4713501]=new thumbnail(4713501,"270911","","Les_H1_thumb.jpg",130,112,15);thumbnails[5260304]=new thumbnail(5260304,"","","Funpic_thumb.JPG",130,113,15);thumbnails[5299043]=new thumbnail(5299043,"","","Fun_time_thumb.JPG",130,102,15);thumbnails[5299384]=new thumbnail(5299384,"","","Another_one1_thumb.JPG",130,112,15);thumbnails[5351817]=new thumbnail(5351817,"","","Hfd_snow_-_Copy_thumb.jpg",130,163,15);thumbnails[5726269]=new thumbnail(5726269,"324323","","Fuert_1_thumb.jpg",130,86,15);thumbnails[5726278]=new thumbnail(5726278,"324323","","eight1_thumb.jpg",130,99,15);thumbnails[5726280]=new thumbnail(5726280,"324323","","Four1_thumb.jpg",130,89,15);thumbnails[5726292]=new thumbnail(5726292,"324323","","maybe_95_thumb.jpg",130,106,15);thumbnails[5726295]=new thumbnail(5726295,"324323","","Maybe_208_thumb.jpg",130,165,15);thumbnails[5726301]=new thumbnail(5726301,"324323","","maybe_217_thumb.jpg",130,183,15);thumbnails[5726362]=new thumbnail(5726362,"324323","","mAYBE_223_thumb.jpg",130,94,15);thumbnails[5726379]=new thumbnail(5726379,"324323","","Maybe_3431_thumb.jpg",130,90,15);thumbnails[5726397]=new thumbnail(5726397,"324323","","one_thumb.jpg",130,196,15);thumbnails[5726400]=new thumbnail(5726400,"324323","","sixteen_thumb.jpg",130,87,15);thumbnails[5726405]=new thumbnail(5726405,"324323","","walk_47_thumb.jpg",130,172,15);thumbnails[5726408]=new thumbnail(5726408,"324323","","walk_87_thumb.jpg",130,86,15);thumbnails[5726412]=new thumbnail(5726412,"324323","","walk_133_thumb.jpg",130,86,15);thumbnails[5726425]=new thumbnail(5726425,"324323","","walk_1481_thumb.jpg",130,100,15);thumbnails[5726429]=new thumbnail(5726429,"324323","","Walk_169_thumb.jpg",130,196,15);thumbnails[5726497]=new thumbnail(5726497,"324323","","Maybe_383_thumb.jpg",130,82,15);thumbnails[5726501]=new thumbnail(5726501,"324323","","Me_006_thumb.jpg",130,89,15);thumbnails[5726656]=new thumbnail(5726656,"324323","","clouds_thumb.jpg",130,86,15);thumbnails[5727583]=new thumbnail(5727583,"324428","","AC_511_thumb.jpg",130,92,15);thumbnails[5727585]=new thumbnail(5727585,"324428","","AC_5001_thumb.jpg",130,86,15);thumbnails[5727587]=new thumbnail(5727587,"324428","","AC_518_thumb.jpg",130,86,15);thumbnails[5727590]=new thumbnail(5727590,"324428","","AC_519_thumb.jpg",130,86,15);thumbnails[5727595]=new thumbnail(5727595,"324428","","Camera_Mag_thumb.jpg",130,86,15);thumbnails[5727596]=new thumbnail(5727596,"324428","","camera_mag_b_thumb.jpg",130,196,15);thumbnails[5727600]=new thumbnail(5727600,"324428","","DSC_00861_thumb.jpg",130,86,15);thumbnails[5727601]=new thumbnail(5727601,"324428","","DSC_0091_thumb.jpg",130,196,15);thumbnails[5727608]=new thumbnail(5727608,"324428","","DSC_0127_thumb.jpg",130,196,15);thumbnails[5727615]=new thumbnail(5727615,"324428","","Photo_mag_f_thumb.jpg",130,86,15);thumbnails[5727616]=new thumbnail(5727616,"324428","","Photo_Mag_A_thumb.jpg",130,86,15);thumbnails[5727618]=new thumbnail(5727618,"324428","","Photo_mag_thumb.jpg",130,86,15);thumbnails[5727619]=new thumbnail(5727619,"324428","","DSC_0214_thumb.jpg",130,66,15);thumbnails[5727621]=new thumbnail(5727621,"324428","","DSC_0162_thumb.jpg",130,196,15);thumbnails[5727623]=new thumbnail(5727623,"324428","","DSC_0140_thumb.jpg",130,86,15);thumbnails[136146]=new thumbnail(136146,"12516","One of my first most dramatic encounters. Seventy two sheep killed by one bolt of lightening while sheltering under a tree!","!DEADSHE_thumb.JPG",130,84,15);thumbnails[136147]=new thumbnail(136147,"12516","A former pupils from the Blue Coat Girls School in Hereford came to a re-union dressed as a school girl. Too good an opportunity not to miss!","1 Fuji entry_thumb.jpg",130,184,15);thumbnails[136148]=new thumbnail(136148,"12516","An Army bomb disposal expert carefully prepares these World War 2 tank bombs for safe detonation. He checked that I was insured before letting me so close!","Bomb_thumb.jpg",130,91,15);thumbnails[136149]=new thumbnail(136149,"12516","A beautiful bride makes her way around the church to her wedding accompanied by Del Boy and Uncle Albert look alikes from Only Fools and Horses. ","HFD8FOOLS_thumb.jpg",130,110,15);thumbnails[136150]=new thumbnail(136150,"12516","A picture used to promote a Magistrates Court open day. The magistrate in the photograph proved to be game for a laugh!","HFD12MAGSOPEN 3 Sept_thumb.jpg",130,183,15);thumbnails[136152]=new thumbnail(136152,"12516","What better way to picture the local pre-school assistant who was leaving to join the police force!","HFD29COP AUGUST_thumb.jpg",130,186,15);thumbnails[136153]=new thumbnail(136153,"12516","A football supporter is arrested during disturbances after a game in Hereford. ","Nicked_thumb.jpg",130,86,15);thumbnails[136154]=new thumbnail(136154,"12516","A pig takes its owner for an impromptu ride across the ring during judging at the Royal Welsh Show. ","Piggya_thumb.jpg",130,85,15);thumbnails[136206]=new thumbnail(136206,"12520","The circus offrered to supply me with some acrobats to promote their visit. I grabbed their offer with both hands but suggested the shoot should take place in Hereford High Town instead of the circus ring. Luckily they agreed!","5 Fuji entry_thumb.jpg",130,76,15);thumbnails[136209]=new thumbnail(136209,"12520","A picture used to promote the Small Breeds farm and Owl Centre near Kington, Herefordshire. Some feed on the owners hat was all that was needed to encourage miniature horse Carslberg to tuck in.  ","Carlsberg_thumb.jpg",130,92,15);thumbnails[136210]=new thumbnail(136210,"12520","Three willing subjects and a bit of imagination was all that was needed to promote this sponsored noise day at a local supermarket!","HFD27NOISE_thumb.jpg",130,95,15);thumbnails[136212]=new thumbnail(136212,"12520","A pretty girl and a wedding dress, is there a better way to promote a local dress maker/hire shop!","LAUR WEDDING_thumb.jpg",130,196,15);thumbnails[136213]=new thumbnail(136213,"12520","Taken during a commision to promote Powys. The picture depicts my son playing on a table at the Elan Valley near Rhayader, Mid Wales. ","Lewis elan_thumb.JPG",130,99,15);thumbnails[136214]=new thumbnail(136214,"12520","A picture used to promote a supermarkets fair trade deal in Shropshire. ","LUD11TRADE_thumb.jpg",130,185,15);thumbnails[177033]=new thumbnail(177033,"12520","Promoting Cider Apples","HFD30OCTOBER_thumb.jpg",130,98,15);thumbnails[989099]=new thumbnail(989099,"12520","A pic advertising Kick Boxing Lessons in Hereford.","Kick Boxer_thumb.jpg",130,98,15);thumbnails[136176]=new thumbnail(136176,"12518","Hereford United forward Rob Purdie celebrates scoring in a Conference match against Shrewsbury Town. Made so much better because I am a born and bred Hereford United supporter!","HFD2SLOP_thumb.jpg",130,167,15);thumbnails[136183]=new thumbnail(136183,"12518","OUCH........Roy Rutherford lands a left hook on the nose of Dazzo Williams. Dazzo Williams is one of the best down to earth sportsmen I have ever met. A true champion!<br>\r\n","HFD11DAZO 10_thumb.jpg",130,98,15);thumbnails[136186]=new thumbnail(136186,"12518","Hereford United midfielder Ben Smith celebrates scoring against Dagenham and Redbridge in the Conference. ","HFD17DAGGERS 4 Oct_thumb.jpg",130,163,15);thumbnails[136188]=new thumbnail(136188,"12518","A jockey falls off his mount during a race at Hereford. Both horse and jockey were okay. Unfortunatley for them It was the right place at the right time for me!","HFD17HORSE_thumb.jpg",130,91,15);thumbnails[136190]=new thumbnail(136190,"12518","A Hereford rugby player is tackled by a rival from Ludlow during a cup game. One of my earlier sports photographs but I was pleased with my timing!","of Rugby1_thumb.JPG",130,101,15);thumbnails[136201]=new thumbnail(136201,"12518","Good pictures can be caught even at the small sporting events. Here a player from Presteigne Reserves and a rival from Radnor Valley settle a disagreement. ","Presteigne Footy_thumb.jpg",130,96,15);thumbnails[184269]=new thumbnail(184269,"12518","GET IN THERE!","Magic Moments_thumb.jpg",130,124,15);thumbnails[136155]=new thumbnail(136155,"12519","Hundreds turned up to see this Coronation Street star as he arrived in Telford, Shropshire. ","ASHLEY_thumb.jpg",130,85,15);thumbnails[136156]=new thumbnail(136156,"12519","A close up of Princess Anne at Bala Lake, Mid Wales. I received a runners-up spot in the Martini Royal Press Photographer of the Year with this shot!","Copy of Anne1_thumb.JPG",130,184,15);thumbnails[136158]=new thumbnail(136158,"12519","MAKE MY DAY.........A schoolboy is delighted when a royal visitor leans on him during a walkabout in Oswestry, Shropshire.  ","Copy of Duchess1_thumb.JPG",130,178,15);thumbnails[136159]=new thumbnail(136159,"12519","The Euro Disney Ambassador, a local girl,  visited her relatives in Mid Wales and was happy to pose with these farm animals. ","Copy of Miss Disney_thumb.JPG",130,103,15);thumbnails[136161]=new thumbnail(136161,"12519","Eastenders star Ross Kemp acted out this arrest scene for my benefit when he visited Hereford. ","HFD21KEMP Nov_thumb.jpg",130,183,15);thumbnails[136164]=new thumbnail(136164,"12519","Mid Wales woman Julie Davies was obviously pleased with being crowned Miss Wales!","Julie_thumb.jpg",130,93,15);thumbnails[136167]=new thumbnail(136167,"12519","The first picture of Montgomeryshire MP Lembit Opik and television weathergirl Sian Lloyd as a couple as they amble through Montgomery on the way to the shops. The happy couple stopped to look at my pictures on the back of my digital camera and ordered two copies of this photograph on the spot!","PO7LEMBIT_thumb.jpg",130,202,15);thumbnails[136169]=new thumbnail(136169,"12519","MP Ron Davies is confronted by angry farmers when he visits the Elan Valley in Mid Wales.","Ron_thumb.jpg",130,191,15);thumbnails[989092]=new thumbnail(989092,"12519","Ulrika Johnsson and her then boyfriend the Gladiator Hunter promoting a childrens charity.","BOCHAMPS_thumb.jpg",130,205,15);thumbnails[989104]=new thumbnail(989104,"12519","Sian lloyd enjoys a laugh with yours truly. ","POITSIAN_thumb.jpg",130,138,15);thumbnails[136130]=new thumbnail(136130,"12517","One of my favourites and a Fuji Film Merit Award winner. ","Copy of Lisa Welsh Girl_thumb.jpg",130,89,15);thumbnails[136132]=new thumbnail(136132,"12517","A woman admires a wall of names beamed onto the Oriel 31 gallery in Newtown. ","!PO10NAM_thumb.JPG",130,85,15);thumbnails[136133]=new thumbnail(136133,"12517","A little girl and her pet fox. The fox was very shy at first but soon got used to having a photographer in his pen.","2 Fuji entry_thumb.jpg",130,94,15);thumbnails[136134]=new thumbnail(136134,"12517","The beautiful staircase at Moccas Court in Herefordshire. A Fuji Film Merit Award Winner.","3 Fuji entry_thumb.jpg",130,198,15);thumbnails[136135]=new thumbnail(136135,"12517","The Bishop of Hereford is rescued by firefighters during an exercise to test the emergency services at Hereford Cathedral","4 Fuji entry_thumb.jpg",130,85,15);thumbnails[136137]=new thumbnail(136137,"12517","Two young girls enjoy the sunset at Borth near Aberystwyth, Mid Wales. ","Copy of Girlsunset_thumb.JPG",130,197,15);thumbnails[136139]=new thumbnail(136139,"12517","A picture used to demonstrate the fun of the fair. I like the expressions on these two brave women as they are catapulted into the air!","HFD13FAIR A MAY_thumb.jpg",130,135,15);thumbnails[136143]=new thumbnail(136143,"12517","Jay Brittain of the Small Breeds Farm and Owl Centre near Kington, Herefordshire helps shares an ice lolly with thirsty foal.","Jay1_thumb.jpg",130,177,15);thumbnails[136144]=new thumbnail(136144,"12517","A digitally enhanced picture taken when I was new to digital photography. The picture was used on the front of the newspaper to promote a kaleidesope exhibition. ","Kaleid_thumb.JPG",130,204,15);thumbnails[177017]=new thumbnail(177017,"12517","Taken to promote a production of My Fair Lady","LUD3BEDSTONE_thumb.jpg",130,86,15);thumbnails[136216]=new thumbnail(136216,"12521","My fanastic three. Left to right twins Lewis and Natalie and older sister Lisa taken while enjoying a break at Abersytwyth, Mid Wales. ","Kidsunset 1_thumb.jpg",130,86,15);thumbnails[136218]=new thumbnail(136218,"12521","Andrew and girlfriend Karen. Karen is a reporter on the Mid Wales Journal. Its not very often we get our picture taken together as i'm mostly the other side of the camera!","Copy of me and karen_thumb.jpg",130,147,15);var galleries=new Object();galleries[324323]=new gallery(324323,"5726656,5726501,5726497,5726429,5726425,5726412,5726408,5726405,5726400,5726397","Fuerteventura 2010","gallery",[5726269,5726278,5726280,5726292,5726295,5726301,5726362,5726379,5726397,5726400,5726405,5726408,5726412,5726425,5726429,5726497,5726501,5726656]);galleries[270911]=new gallery(270911,"4713501,4713460,4713447,4713444,4713425,4713370,4713323,4713319,4713313,4713304","Lesley Hepworth's Party","gallery",[4713304,4713313,4713319,4713323,4713370,4713425,4713444,4713447,4713460,4713501]);galleries[324428]=new gallery(324428,"5727623,5727621,5727619,5727618,5727616,5727615,5727608,5727601,5727600,5727596","Luxor 2009","gallery",[5727583,5727585,5727587,5727590,5727595,5727596,5727600,5727601,5727608,5727615,5727616,5727618,5727619,5727621,5727623]);galleries[213387]=new gallery(213387,"3494674,3494670,3494655,3494630","Recent Favourites","gallery",[3494630,3494655,3494670,3494674]);galleries[12516]=new gallery(12516,"136152","News Pictures","gallery",[136146,136147,136148,136149,136150,136152,136153,136154]);galleries[12520]=new gallery(12520,"989099,177033,136214,136213,136212,136210,136209,136206","PR Pictures","gallery",[136206,136209,136210,136212,136213,136214,177033,989099]);galleries[12518]=new gallery(12518,"136201","Sport Pictures","gallery",[136176,136183,136186,136188,136190,136201,184269]);galleries[12519]=new gallery(12519,"136164","Celebrities","gallery",[136155,136156,136158,136159,136161,136164,136167,136169,989092,989104]);galleries[12517]=new gallery(12517,"136134","Feature Pictures","gallery",[136130,136132,136133,136134,136135,136137,136139,136143,136144,177017]);galleries[12521]=new gallery(12521,"136216","Personal Pictures","gallery",[136216,136218]);var imageSets=new Object();imageSets[1]="136201,136154,136137,136130";imageSets[2]="136216,136201,136164,136152,136134";imageSets[3]="5727623,5727621,5727619,5727618,5727616,5727615,5727608,5727601,5727600,5727596,5727595,5727590,5727587,5727585,5727583,5726656,5726501,5726497,5726429,5726425,5726412,5726408,5726405,5726400,5726397,5726379,5726362,5726301,5726295,5726292,5726280,5726278,5726269,5351817,5299384,5299043,5260304,4713501,4713460,4713447,4713444,4713425,4713370,4713323,4713319,4713313,4713304,3494674,3494670,3494655";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/andycompton/images";break}switch(a){case 1:b="http://www1.clikpic.com/andycompton/images";break}switch(a){case 2:b="http://admin.clikpic.com/andycompton/images";break}switch(a){case 24:b="http://tpc15/clikpic/andycompton/images";break}switch(a){case 4:b="http://www.clikchurch.com/andycompton/images";break}switch(a){case 5:b="http://www2.clikpic.com/andycompton/images";break}switch(a){case 22:b="http://tpc5/clikpic/andycompton/images";break}switch(a){case 23:b="http://tpc10/clikpic/andycompton/images";break}switch(a){case 25:b="http://tpc16/clikpic/andycompton/images";break}switch(a){case 15:b="http://www3.clikpic.com/andycompton/images";break}switch(a){case 18:b="http://www4.clikpic.com/andycompton/images";break}switch(a){case 19:b="http://www5.clikpic.com/andycompton/images";break}switch(a){case 31:b="http://www7.clikpic.com/andycompton/images";break}switch(a){case 32:b="http://admin2.clikpic.com/andycompton/images";break}switch(a){case 33:b="http://www8.clikpic.com/andycompton/images";break}switch(a){case 34:b="http://www9.clikpic.com/andycompton/images";break}switch(a){case 35:b="http://admin3.clikpic.com/andycompton/images";break}switch(a){case 37:b="http://admin4.clikpic.com/andycompton/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="Andrew Compton: "+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;resizePhotoInfo();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>"}if(a!=""){a=a+'<div class="spacer"></div>'}return a}function fnGetPaymentInfo(c){var b="";if(c.item_price!==""){b=b+"<p>Order this print:</p>";b=b+'<p class="imageinfo" id="imagePrice"><strong>'+c.purchase_instruction+"</strong> 							"+(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+'<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+'")'})}}};