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[6520347]=new thumbnail(6520347,"358668","Altrincham FC v Bolton Wanderers","sporting-action-web1_thumb.jpg",130,87,18);thumbnails[6533312]=new thumbnail(6533312,"358668","Rochdale Town FC v Ashton Town","sport-action-web-photo16_thumb.jpg",130,87,18);thumbnails[6533343]=new thumbnail(6533343,"358668","France v Argentina","sport-action-web-photo36_thumb.jpg",130,195,18);thumbnails[6533367]=new thumbnail(6533367,"358668","Tope Obadeyi, Bolton Wanderers","sporting-action-web3_701E805B-24E8-5EC4-4FB1BDEF2F5C3DBD_thumb.jpg",130,87,18);thumbnails[6520370]=new thumbnail(6520370,"358668","Altrincham FC v Bolton Wanderers","sporting-action-web4_thumb.jpg",130,87,18);thumbnails[6533313]=new thumbnail(6533313,"358668","Lee Crompton, Ashton Town FC","sport-action-web-photo17_thumb.jpg",130,195,18);thumbnails[6533344]=new thumbnail(6533344,"358668","South Korea v Denmark","sport-action-web-photo37_thumb.jpg",130,195,18);thumbnails[6520372]=new thumbnail(6520372,"358668","Ashton Town Pre Season Tour","sporting-action-web6_thumb.jpg",130,87,18);thumbnails[6520374]=new thumbnail(6520374,"358668","Paul Rogers, Ashton Town FC","sporting-action-web7_thumb.jpg",130,87,18);thumbnails[6533314]=new thumbnail(6533314,"358668","Efe Sodje, Bury FC","sport-action-web-photo18_thumb.jpg",130,195,18);thumbnails[6533345]=new thumbnail(6533345,"358668","Danny Ward, Bolton Wanderers","sport-action-web-photo38_thumb.jpg",130,195,18);thumbnails[6533315]=new thumbnail(6533315,"358668","Phil Neville, Everton FC","sport-action-web-photo19_thumb.jpg",130,195,18);thumbnails[6533346]=new thumbnail(6533346,"358668","Adam Bogdan, Bolton Wanderers","sport-action-web-photo39_thumb.jpg",130,195,18);thumbnails[6533316]=new thumbnail(6533316,"358668","Stephen Edwards, Ashton Town FC","sport-action-web-photo20_thumb.jpg",130,87,18);thumbnails[6533347]=new thumbnail(6533347,"358668","Johan Elmander, Bolton Wanderers","sport-action-web-photo40_thumb.jpg",130,195,18);thumbnails[6533317]=new thumbnail(6533317,"358668","Louis Saha scores a headed goal","sport-action-web-photo22_thumb.jpg",130,87,18);thumbnails[6533348]=new thumbnail(6533348,"358668","Sean Davis tackles Gary Jones","sport-action-web-photo41_thumb.jpg",130,87,18);thumbnails[6533318]=new thumbnail(6533318,"358668","Andy Bishop, Bury FC","sport-action-web-photo23_thumb.jpg",130,87,18);thumbnails[6533349]=new thumbnail(6533349,"358668","Johan Elmander, Bolton Wanderers","sport-action-web-photo42_thumb.jpg",130,195,18);thumbnails[6533319]=new thumbnail(6533319,"358668","Damien Plessis, Liverpool FC","sport-action-web-photo24_thumb.jpg",130,87,18);thumbnails[6533350]=new thumbnail(6533350,"358668","Gretar Steinsson, Bolton Wanderers","sport-action-web-photo43_thumb.jpg",130,195,18);thumbnails[6533320]=new thumbnail(6533320,"358668","Celebrating the winning goal","sport-action-web-photo25_thumb.jpg",130,195,18);thumbnails[6533351]=new thumbnail(6533351,"358668","Gretar Steinsson clears the danger","sport-action-web-photo44_thumb.jpg",130,87,18);thumbnails[6533321]=new thumbnail(6533321,"358668","Paul Rogers, Ashton Town FC","sport-action-web-photo26_thumb.jpg",130,87,18);thumbnails[6533352]=new thumbnail(6533352,"358668","Leigh Genesis v Blackburn Rovers","sport-action-web-photo45_thumb.jpg",130,87,18);thumbnails[6533322]=new thumbnail(6533322,"358668","Hong Kong v Austria","sport-action-web-photo27_thumb.jpg",130,87,18);thumbnails[6533353]=new thumbnail(6533353,"358668","Martin Petrov, Bolton Wanderers","sport-action-web-photo46_thumb.jpg",130,87,18);thumbnails[6533323]=new thumbnail(6533323,"358668","France v Argentina","sport-action-web-photo28_thumb.jpg",130,195,18);thumbnails[6533354]=new thumbnail(6533354,"358668","Martin Petrov and Craig Dawson","sport-action-web-photo47_thumb.jpg",130,87,18);thumbnails[6533324]=new thumbnail(6533324,"358668","South Korea v Denmark","sport-action-web-photo29_thumb.jpg",130,195,18);thumbnails[6533355]=new thumbnail(6533355,"358668","Leigh Genesis v Blackburn Rovers","sport-action-web-photo48_thumb.jpg",130,195,18);thumbnails[6533325]=new thumbnail(6533325,"358668","France v Argentina","sport-action-web-photo30_thumb.jpg",130,87,18);thumbnails[6533356]=new thumbnail(6533356,"358668","Craig Dawson and Riga tussle for the ball","sport-action-web-photo49_thumb.jpg",130,195,18);thumbnails[6533326]=new thumbnail(6533326,"358668","Clitheroe FC","sport-action-web-photo31_thumb.jpg",130,87,18);thumbnails[6533357]=new thumbnail(6533357,"358668","Protection, Gretar Steinsson, Bolton Wanderers","sport-action-web-photo50_thumb.jpg",130,195,18);thumbnails[6533327]=new thumbnail(6533327,"358668","New Zealand celebrate goal number 15","sport-action-web-photo32_thumb.jpg",130,87,18);thumbnails[6533358]=new thumbnail(6533358,"358668","Flying Header, Blackburn Rovers","sport-action-web-photo51_thumb.jpg",130,87,18);thumbnails[6533328]=new thumbnail(6533328,"358668","Latvia v Italy","sport-action-web-photo33_thumb.jpg",130,87,18);thumbnails[6533360]=new thumbnail(6533360,"358668","Keepers Ball?","sporting-action-web10_thumb.jpg",130,195,18);thumbnails[6533330]=new thumbnail(6533330,"358668","Mikel Arteta whips in a corner kick","sport-action-web-photo34_thumb.jpg",130,87,18);thumbnails[6533361]=new thumbnail(6533361,"358668","Red card for Lee Green, Ashton Town FC","sporting-action-web11_thumb.jpg",130,195,18);thumbnails[6533331]=new thumbnail(6533331,"358668","South Korea v Denmark","sport-action-web-photo35_thumb.jpg",130,195,18);thumbnails[6533362]=new thumbnail(6533362,"358668","Ouch!","sporting-action-web12_thumb.jpg",130,195,18);thumbnails[6533364]=new thumbnail(6533364,"358668","You're never too old to....","sporting-action-web14_thumb.jpg",130,195,18);thumbnails[6533366]=new thumbnail(6533366,"358668","Towering Header, Ashton Town FC","sporting-action-web2_thumb.jpg",130,195,18);thumbnails[6533369]=new thumbnail(6533369,"358668","Crunching Tackle","sporting-action-web5_thumb.jpg",130,195,18);thumbnails[6533370]=new thumbnail(6533370,"358668","The magic sponge","sporting-action-web8_thumb.jpg",130,195,18);thumbnails[6533371]=new thumbnail(6533371,"358668","Carlo Nash fights for the ball","sporting-action-web9_thumb.jpg",130,195,18);thumbnails[6656356]=new thumbnail(6656356,"358669","Ashton Town FC, 2008-2009 Season","sport-environment-web1_thumb.jpg",130,87,18);thumbnails[6656357]=new thumbnail(6656357,"358669","The People","sporting-environment1_thumb.jpg",130,87,18);thumbnails[6656358]=new thumbnail(6656358,"358669","Ashton Pre Season Tour July 2009","sporting-environment10_thumb.jpg",130,87,18);thumbnails[6656359]=new thumbnail(6656359,"358669","Ashton Town at Night","sporting-environment11_thumb.jpg",130,87,18);thumbnails[6656360]=new thumbnail(6656360,"358669","Ashton Town Pre Season Tour 2009","sporting-environment12_thumb.jpg",130,87,18);thumbnails[6656361]=new thumbnail(6656361,"358669","My Club","sporting-environment14_thumb.jpg",130,195,18);thumbnails[6656362]=new thumbnail(6656362,"358669","Keeping the Peace","sporting-environment15_thumb.jpg",130,195,18);thumbnails[6656363]=new thumbnail(6656363,"358669","Young Fans at Shawbridge","sporting-environment16_thumb.jpg",130,87,18);thumbnails[6656364]=new thumbnail(6656364,"358669","Goal at the Reebok","sporting-environment17_thumb.jpg",130,87,18);thumbnails[6656365]=new thumbnail(6656365,"358669","Deepdale's Past","sporting-environment18_thumb.jpg",130,87,18);thumbnails[6656366]=new thumbnail(6656366,"358669","Pre-Match Fireworks","sporting-environment19_thumb.jpg",130,87,18);thumbnails[6656367]=new thumbnail(6656367,"358669","Craven Cottage","sporting-environment2_thumb.jpg",130,87,18);thumbnails[6656368]=new thumbnail(6656368,"358669","Goodison's Wooden Chairs","sporting-environment20_thumb.jpg",130,87,18);thumbnails[6656369]=new thumbnail(6656369,"358669","Leaving the Reebok","sporting-environment21_thumb.jpg",130,87,18);thumbnails[6656370]=new thumbnail(6656370,"358669","Tucking in at the Blues Grub Tub","sporting-environment22_thumb.jpg",130,87,18);thumbnails[6656371]=new thumbnail(6656371,"358669","Snapshot with the Mascot","sporting-environment24_thumb.jpg",130,87,18);thumbnails[6656372]=new thumbnail(6656372,"358669","Watching the Game","sporting-environment25_thumb.jpg",130,87,18);thumbnails[6656373]=new thumbnail(6656373,"358669","Executive Lounge at Shawbridge","sporting-environment26_thumb.jpg",130,87,18);thumbnails[6656374]=new thumbnail(6656374,"358669","Subs Bench","sporting-environment27_thumb.jpg",130,87,18);thumbnails[6656375]=new thumbnail(6656375,"358669","Programme Sellers at Arsenal","sporting-environment28_thumb.jpg",130,195,18);thumbnails[6656376]=new thumbnail(6656376,"358669","Jubilation","sporting-environment29_thumb.jpg",130,87,18);thumbnails[6656377]=new thumbnail(6656377,"358669","The People's Club","sporting-environment3_thumb.jpg",130,87,18);thumbnails[6656378]=new thumbnail(6656378,"358669","Friendly Bolton Fan","sporting-environment30_thumb.jpg",130,195,18);thumbnails[6656379]=new thumbnail(6656379,"358669","Where's the love?","sporting-environment31_thumb.jpg",130,87,18);thumbnails[6656380]=new thumbnail(6656380,"358669","The Gunners","sporting-environment32_thumb.jpg",130,87,18);thumbnails[6656381]=new thumbnail(6656381,"358669","Shawbridge, Clitheroe FC","sporting-environment33_thumb.jpg",130,87,18);thumbnails[6656382]=new thumbnail(6656382,"358669","Clitheroe FC v Belper","sporting-environment34_thumb.jpg",130,87,18);thumbnails[6656383]=new thumbnail(6656383,"358669","Merch Stand","sporting-environment35_thumb.jpg",130,195,18);thumbnails[6656384]=new thumbnail(6656384,"358669","Vicarage Road, Watford FC","sporting-environment36_thumb.jpg",130,87,18);thumbnails[6656385]=new thumbnail(6656385,"358669","Diouf","sporting-environment37_thumb.jpg",130,87,18);thumbnails[6656386]=new thumbnail(6656386,"358669","George Best Memories","sporting-environment38_thumb.jpg",130,87,18);thumbnails[6656387]=new thumbnail(6656387,"358669","Bloomfield Road, Blackpool FC","sporting-environment39_thumb.jpg",130,87,18);thumbnails[6656388]=new thumbnail(6656388,"358669","Neighbours Washing, Shawbridge","sporting-environment4_thumb.jpg",130,87,18);thumbnails[6656389]=new thumbnail(6656389,"358669","Fire Eating Sarah at Ashton Town","sporting-environment41_thumb.jpg",130,87,18);thumbnails[6656390]=new thumbnail(6656390,"358669","A view from the tower","sporting-environment42_thumb.jpg",130,87,18);thumbnails[6656391]=new thumbnail(6656391,"358669","Denmark v South Korea","sporting-environment43_thumb.jpg",130,87,18);thumbnails[6656392]=new thumbnail(6656392,"358669","Argentina v France","sporting-environment44_thumb.jpg",130,87,18);thumbnails[6656393]=new thumbnail(6656393,"358669","Speed on the Scoreboard","sporting-environment45_thumb.jpg",130,87,18);thumbnails[6656394]=new thumbnail(6656394,"358669","Hong Kong v Austria","sporting-environment47_thumb.jpg",130,195,18);thumbnails[6656395]=new thumbnail(6656395,"358669","Gabrielle Taylor, Miss Ashton Town","sporting-environment48_thumb.jpg",130,87,18);thumbnails[6656396]=new thumbnail(6656396,"358669","Italy v Latvia","sporting-environment49_thumb.jpg",130,87,18);thumbnails[6656397]=new thumbnail(6656397,"358669","Flat Cap","sporting-environment5_thumb.jpg",130,87,18);thumbnails[6656398]=new thumbnail(6656398,"358669","Denmark v South Korea","sporting-environment51_thumb.jpg",130,87,18);thumbnails[6656399]=new thumbnail(6656399,"358669","Leigh Genesis","sporting-environment52_thumb.jpg",130,87,18);thumbnails[6656400]=new thumbnail(6656400,"358669","New Zealand performing 'the hakka'","sporting-environment53_thumb.jpg",130,195,18);thumbnails[6656401]=new thumbnail(6656401,"358669","New Zealand performing 'the hakka'","sporting-environment54_thumb.jpg",130,195,18);thumbnails[6656402]=new thumbnail(6656402,"358669","Matchday Facilities at Chadderton","sporting-environment56_thumb.jpg",130,87,18);thumbnails[6656403]=new thumbnail(6656403,"358669","The Turnstiles","sporting-environment57_thumb.jpg",130,87,18);thumbnails[6656404]=new thumbnail(6656404,"358669","The physio and one man and his dog","sporting-environment58_thumb.jpg",130,87,18);thumbnails[6656405]=new thumbnail(6656405,"358669","Tribute to George Best","sporting-environment6_thumb.jpg",130,87,18);thumbnails[6656406]=new thumbnail(6656406,"358669","Chadderton's spare kit","sporting-environment60_thumb.jpg",130,87,18);thumbnails[6656407]=new thumbnail(6656407,"358669","No Fouling please","sporting-environment61_thumb.jpg",130,87,18);thumbnails[6656408]=new thumbnail(6656408,"358669","","sporting-environment62_thumb.jpg",130,87,18);thumbnails[6656410]=new thumbnail(6656410,"358669","","sporting-environment63_thumb.jpg",130,192,18);thumbnails[6656411]=new thumbnail(6656411,"358669","","sporting-environment7_thumb.jpg",130,87,18);thumbnails[6656412]=new thumbnail(6656412,"358669","","sporting-environment8_thumb.jpg",130,87,18);var galleries=new Object();galleries[358668]=new gallery(358668,"6533367,6533354","Sport In Action","gallery",[6520347,6533312,6533343,6533367,6520370,6533313,6533344,6520372,6520374,6533314,6533345,6533315,6533346,6533316,6533347,6533317,6533348,6533318,6533349,6533319,6533350,6533320,6533351,6533321,6533352,6533322,6533353,6533323,6533354,6533324,6533355,6533325,6533356,6533326,6533357,6533327,6533358,6533328,6533360,6533330,6533361,6533331,6533362,6533364,6533366,6533369,6533370,6533371]);galleries[358669]=new gallery(358669,"6656411,6656396,6656395,6656389,6656379","Sport's Environment","gallery",[6656356,6656357,6656358,6656359,6656360,6656361,6656362,6656363,6656364,6656365,6656366,6656367,6656368,6656369,6656370,6656371,6656372,6656373,6656374,6656375,6656376,6656377,6656378,6656379,6656380,6656381,6656382,6656383,6656384,6656385,6656386,6656387,6656388,6656389,6656390,6656391,6656392,6656393,6656394,6656395,6656396,6656397,6656398,6656399,6656400,6656401,6656402,6656403,6656404,6656405,6656406,6656407,6656408,6656410,6656411,6656412]);galleries[358670]=new gallery(358670,"","Music","gallery",[]);galleries[358671]=new gallery(358671,"","While Traveling I Photographed....","gallery",[]);galleries[358672]=new gallery(358672,"","One Day.....","gallery",[]);galleries[358677]=new gallery(358677,"","Published Work","gallery",[]);var imageSets=new Object();imageSets[1]="6656411,6656401,6656395,6656390,6656389,6656379,6656361,6533367,6533354,6533350";imageSets[2]="6656411,6656396,6656395,6656389,6656379,6533367,6533354";imageSets[3]="6656412,6656411,6656410,6656408,6656407,6656406,6656405,6656404,6656403,6656402,6656401,6656400,6656399,6656398,6656397,6656396,6656395,6656394,6656393,6656392,6656391,6656390,6656389,6656388,6656387,6656386,6656385,6656384,6656383,6656382,6656381,6656380,6656379,6656378,6656377,6656376,6656375,6656374,6656373,6656372,6656371,6656370,6656369,6656368,6656367,6656366,6656365,6656364,6656363,6656362";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/davidgalpin/images";break}switch(a){case 1:b="http://www1.clikpic.com/davidgalpin/images";break}switch(a){case 2:b="http://admin.clikpic.com/davidgalpin/images";break}switch(a){case 24:b="http://tpc15/clikpic/davidgalpin/images";break}switch(a){case 4:b="http://www.clikchurch.com/davidgalpin/images";break}switch(a){case 5:b="http://www2.clikpic.com/davidgalpin/images";break}switch(a){case 22:b="http://tpc5/clikpic/davidgalpin/images";break}switch(a){case 23:b="http://tpc10/clikpic/davidgalpin/images";break}switch(a){case 25:b="http://tpc16/clikpic/davidgalpin/images";break}switch(a){case 15:b="http://www3.clikpic.com/davidgalpin/images";break}switch(a){case 18:b="http://www4.clikpic.com/davidgalpin/images";break}switch(a){case 19:b="http://www5.clikpic.com/davidgalpin/images";break}switch(a){case 31:b="http://www7.clikpic.com/davidgalpin/images";break}switch(a){case 32:b="http://admin2.clikpic.com/davidgalpin/images";break}switch(a){case 33:b="http://www8.clikpic.com/davidgalpin/images";break}switch(a){case 34:b="http://www9.clikpic.com/davidgalpin/images";break}switch(a){case 35:b="http://admin3.clikpic.com/davidgalpin/images";break}switch(a){case 37:b="http://admin4.clikpic.com/davidgalpin/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="David Galpin 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;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(b,a){imageID=randomListVal(galleries[b].featured_images);if(imageID!=0){a.src=thumbnails[imageID].src;a.width=thumbnails[imageID].width;a.height=thumbnails[imageID].height}}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+'")'})}}};