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[2393804]=new thumbnail(2393804,"156441","singthiscorruptiontome","P1012980_thumb.jpg",130,98,32);thumbnails[2401873]=new thumbnail(2401873,"156441","kissmedeadly","P1013104_thumb.jpg",130,98,32);thumbnails[2402408]=new thumbnail(2402408,"156441","Les esprits sont ensemble","P1013268_thumb.jpg",130,98,32);thumbnails[2402451]=new thumbnail(2402451,"156441","herleadingmen","P1013333_thumb.jpg",130,173,32);thumbnails[2402461]=new thumbnail(2402461,"156441","Tastethewhipnowpleadforme","P1013349_thumb.jpg",130,173,32);thumbnails[2433663]=new thumbnail(2433663,"156441","suitedandbooted","P1012808_thumb.jpg",130,98,32);thumbnails[2434246]=new thumbnail(2434246,"156441","Bringmemysteed","P1013443_thumb.jpg",130,98,32);thumbnails[2434278]=new thumbnail(2434278,"156441","swallowsandamazons","P1013448_thumb.jpg",130,173,32);thumbnails[2434288]=new thumbnail(2434288,"156441","theladyandthehuntsman","P1013484_thumb.jpg",130,173,32);thumbnails[2819870]=new thumbnail(2819870,"156441","redhead in silver fox","elizasilverfoxhairthrow_thumb.jpg",130,173,32);thumbnails[2819933]=new thumbnail(2819933,"156441","You so DO have to watch Dynasty....to have an Attitude<br>\r\n<br>\r\n","elizaclassfox_thumb.jpg",130,173,32);thumbnails[2862956]=new thumbnail(2862956,"156441","Primal connection: Born to Hunt","piccyfix_1222803743_ponygurlpriimal_thumb.jpg",130,173,32);thumbnails[3454668]=new thumbnail(3454668,"211215","twirl 1","twirl1_thumb.jpg",130,98,32);thumbnails[3454687]=new thumbnail(3454687,"211215","twirl3","twirl3_thumb.jpg",130,98,32);thumbnails[3599756]=new thumbnail(3599756,"211215","purple reign","piccyfix_1237414686_pmp_eliza_twirl_3_thumb.jpg",130,190,32);thumbnails[3693229]=new thumbnail(3693229,"225620","Mistress<br>\r\n","P1011663_thumb.JPG",130,173,32);thumbnails[3693242]=new thumbnail(3693242,"225620","Devotion","P1011664_thumb.JPG",130,173,32);thumbnails[3693250]=new thumbnail(3693250,"225620","In bygone days a glimpse of stocking....","P1011659_thumb.JPG",130,173,32);thumbnails[3693254]=new thumbnail(3693254,"225620","Obedience","P1011668_thumb.JPG",130,173,32);thumbnails[3693255]=new thumbnail(3693255,"225620","wild in the country","P1011666_thumb.JPG",130,173,32);thumbnails[3693256]=new thumbnail(3693256,"225620","close up","P1011672_thumb.JPG",130,98,32);thumbnails[3693289]=new thumbnail(3693289,"225625","Submit to the inevitable...","P1011684_thumb.JPG",130,173,32);thumbnails[3693318]=new thumbnail(3693318,"225625","At the feet of the mistress","P1011686_thumb.JPG",130,173,32);thumbnails[3693330]=new thumbnail(3693330,"225625","Achtung baby....","P1011675_thumb.JPG",130,173,32);thumbnails[3693335]=new thumbnail(3693335,"225625","","P1011673_thumb.JPG",130,173,32);thumbnails[4145659]=new thumbnail(4145659,"247806","Forties Finery","IMG_7842resize_thumb.jpg",130,195,32);thumbnails[4145676]=new thumbnail(4145676,"247806","View from the grandstand","P1012276resize_thumb.jpg",130,173,32);thumbnails[4145690]=new thumbnail(4145690,"247806",'A Gentleman bookmaker pays the lady with good grace. "Perfect Stride" at 8/1 thank you Big Jim',"P1012327resize_thumb.jpg",130,98,32);thumbnails[4145730]=new thumbnail(4145730,"247806","Forties chic for Ascot","IMG_7767resize_thumb.jpg",130,195,32);thumbnails[4145733]=new thumbnail(4145733,"247806","Forties femme fatale","IMG_7857resize_thumb.jpg",130,195,32);thumbnails[4313237]=new thumbnail(4313237,"254200","democracy","3717274276_31137bc04f_b_thumb.jpg",130,173,32);thumbnails[4313332]=new thumbnail(4313332,"254200","Getmecoffee","3717334382_e9a155a002_thumb.jpg",130,173,32);thumbnails[4632061]=new thumbnail(4632061,"225620","Winning Post","3867394680_0e2488f077_thumb.jpg",130,173,32);thumbnails[4632110]=new thumbnail(4632110,"225620","Winning formula","3866610555_c8ec560287_thumb.jpg",130,173,32);thumbnails[5645633]=new thumbnail(5645633,"225620","Riding Mistress Jacket with fawn grey green (2 tone dyed)  mink body.<br>\r\nModelled by Eliza C with kind thanks to the Curre and Llangibby Hunt Staff. ( Howick point to point where we sponsor; Monmouthshire)","elizahowick2_thumb.jpg",130,258,32);thumbnails[5645742]=new thumbnail(5645742,"225620","A Good Huntsman has respect for his quarry...","elizahowicknew4_thumb.jpg",130,87,32);thumbnails[2393589]=new thumbnail(2393589,"155271","TheBatshavelefttheBelltower<br>\r\ntheVictimshavebeenBled","bridiesilver_thumb.jpg",130,173,32);thumbnails[2401842]=new thumbnail(2401842,"155271","DaughterofDarkness","P1012989_thumb.jpg",130,98,32);thumbnails[2433690]=new thumbnail(2433690,"155271","thebaronesscommands","P1013429_thumb.jpg",130,98,32);thumbnails[2434291]=new thumbnail(2434291,"155271","rideofthevalkyrie","P1013549_thumb.jpg",130,98,32);thumbnails[2863129]=new thumbnail(2863129,"155271","Hazard Warning","elizaseams_thumb.jpg",130,173,32);thumbnails[2402386]=new thumbnail(2402386,"155271","strangelittlegirl<br>\r\nwhereareyougoing","P1013156_thumb.jpg",130,98,32);thumbnails[2402454]=new thumbnail(2402454,"155271","whiplashgirlchildinthedark","P1013342_thumb.jpg",130,173,32);thumbnails[2402401]=new thumbnail(2402401,"155271","onsnowywhitehorsesletmerideaway","P1013252_thumb.jpg",130,173,32);thumbnails[2402394]=new thumbnail(2402394,"155271","Sanctuary","P1013211_thumb.jpg",130,98,32);thumbnails[2401846]=new thumbnail(2401846,"155271","weaponsofmassdestruction","P1013064_thumb.jpg",130,98,32);thumbnails[2393346]=new thumbnail(2393346,"156552","thespiritoftheage","P1012662_thumb.jpg",130,98,32);thumbnails[2393816]=new thumbnail(2393816,"156552","hugmetight","P1013036_thumb.jpg",130,98,32);thumbnails[2401778]=new thumbnail(2401778,"156552","silhouetteofsin","P1012587_thumb.jpg",130,173,32);thumbnails[2401779]=new thumbnail(2401779,"156552","tiemeupyesbutneverchainmeagain","P1012626_thumb.jpg",130,98,32);thumbnails[2401844]=new thumbnail(2401844,"156552","acurveistheloveliestdistance","P1013059_thumb.jpg",130,98,32);thumbnails[2401866]=new thumbnail(2401866,"156552","talesfromtheriverbank","P1013068_thumb.jpg",130,98,32);thumbnails[2402411]=new thumbnail(2402411,"156552","somethingtobehold","P1013279_thumb.jpg",130,98,32);thumbnails[2402449]=new thumbnail(2402449,"156552","theliontamerandtheratcatcher","P1013305_thumb.jpg",130,173,32);thumbnails[2402467]=new thumbnail(2402467,"156552","thefinedetailofdiscipline","P1013380_thumb.jpg",130,173,32);thumbnails[2433681]=new thumbnail(2433681,"156552","mistressofhounds","P1013405_thumb.jpg",130,173,32);thumbnails[2433752]=new thumbnail(2433752,"156552","jodphurcut","P1013519_thumb.jpg",130,98,32);thumbnails[2434283]=new thumbnail(2434283,"156552","thehoundsoflove","P1013483_thumb.jpg",130,173,32);thumbnails[3203308]=new thumbnail(3203308,"156552","At 'nam; that's Cheltenham  races; spiritual home of the PonyGurl","piccyfix_1229201273_P1010074_thumb.JPG",130,173,32);thumbnails[5166024]=new thumbnail(5166024,"156552","Isobel Thomsett, top UK jumps jockey and one of our clients, models the PonyGurl Couture aviatrix she purchased, with her friend Rachel Griffiths modelling another. ","piccyfix_1259247957_P1019716_thumb.JPG",130,98,32);thumbnails[5166100]=new thumbnail(5166100,"156552","Top NH jockey Isobel Thomsett and friend Rachel Griffiths in our tweed aviatrix jackets. ","piccyfix_1259249213_P1019712_thumb.JPG",130,173,32);thumbnails[2402412]=new thumbnail(2402412,"156552","closetonature","P1013295_thumb.jpg",130,173,32);thumbnails[2402463]=new thumbnail(2402463,"156552","nobleandperverse","P1013369_thumb.jpg",130,173,32);thumbnails[2393620]=new thumbnail(2393620,"156705","needwesaymore?","P1012927_thumb.jpg",130,173,32);thumbnails[2401843]=new thumbnail(2401843,"156705","vampyrhasnofearofdeath","P1013017_thumb.jpg",130,98,32);thumbnails[2401869]=new thumbnail(2401869,"156705","visioninlilac","P1013099_thumb.jpg",130,98,32);thumbnails[2401870]=new thumbnail(2401870,"156705","Venusinbluefurs","P1013103_thumb.jpg",130,98,32);thumbnails[2402396]=new thumbnail(2402396,"156705","thepredatorhuntstheriver","P1013219_thumb.jpg",130,98,32);thumbnails[2433677]=new thumbnail(2433677,"156705","Apredatorsnature","P1012929_thumb.jpg",130,173,32);thumbnails[2433697]=new thumbnail(2433697,"156705","valkyrieinfurs","P1013547_thumb.jpg",130,98,32);thumbnails[2952563]=new thumbnail(2952563,"156705","Sable-fox and mink couture fur","elizaponygurlfoxmink1_thumb.jpg",130,173,32);thumbnails[3193769]=new thumbnail(3193769,"156705","The Grey and the Red","piccyfix_1226109513_P1015261suirrel_thumb.jpg",130,98,32);thumbnails[3193771]=new thumbnail(3193771,"156705","Exhale","piccyfix_1228853857_elizasmokngbluefurpark_thumb.jpg",130,174,32);thumbnails[3373662]=new thumbnail(3373662,"156705","Vogue '79","elizavogue77_thumb.jpg",130,98,32);thumbnails[3376577]=new thumbnail(3376577,"156705","ELIZA C sheathed in black","Eliza Black fur_14 copy_thumb.jpg",130,196,32);thumbnails[3516277]=new thumbnail(3516277,"156705","Suisse miss","elizasuisse_thumb.jpg",130,98,32);thumbnails[3599600]=new thumbnail(3599600,"156705","Black mink and more...","P1010880_thumb.JPG",130,173,32);thumbnails[3693377]=new thumbnail(3693377,"156705","Blue Fox","P1011329_thumb.JPG",130,173,32);thumbnails[3693381]=new thumbnail(3693381,"156705","blue fox","P1011398_thumb.JPG",130,173,32);thumbnails[3921250]=new thumbnail(3921250,"156705","Ranch Mink Forties style","3515816509_f139380bef_thumb.jpg",130,173,32);thumbnails[3921295]=new thumbnail(3921295,"156705","A Legendary coat : Black mink.<br>\r\nThe ultimate weapon in the femme fatale's arsenal.","3516612126_0bd0ddd55d_thumb.jpg",130,173,32);thumbnails[3921304]=new thumbnail(3921304,"156705","Forties style elegance with ranch mink","3516625014_192b45dd3c_thumb.jpg",130,173,32);thumbnails[2402383]=new thumbnail(2402383,"156976","forseverinfromwanda<br>\r\n<br>\r\n<br>\r\nModel Bridie Barnes","P1013142_thumb.jpg",130,98,32);thumbnails[2402390]=new thumbnail(2402390,"156976","severinawaitsyouhere","P1013170_thumb.jpg",130,98,32);thumbnails[2402392]=new thumbnail(2402392,"156976","sheworeblackvelvet<br>\r\nandbluebluefox","P1013188_thumb.jpg",130,173,32);thumbnails[2433652]=new thumbnail(2433652,"156976","aplaceforhersecrets","P1012666_thumb.jpg",130,98,32);thumbnails[2918824]=new thumbnail(2918824,"156976","ForestGurl","elizashroom_thumb.jpg",130,173,32);thumbnails[3126421]=new thumbnail(3126421,"191761","Aviatrix Iniquity","piccyfix_1227558051_P1015779adult_thumb.JPG",130,173,32);thumbnails[3126560]=new thumbnail(3126560,"191761","Never a Frown with Golden Brown","piccyfix_1227559289_P1015656_thumb.JPG",130,173,32);thumbnails[3126592]=new thumbnail(3126592,"191761","Liberty in the Balance","piccyfix_1227560351_P1015740_thumb.JPG",130,173,32);thumbnails[3136382]=new thumbnail(3136382,"191761","Aviatrix in the opium den","piccyfix_1227641181_P1015631_thumb.JPG",130,98,32);thumbnails[3136392]=new thumbnail(3136392,"191761","...Lays me down with my mind she runs...","piccyfix_1227642295_P1015782_thumb.JPG",130,173,32);thumbnails[3327111]=new thumbnail(3327111,"156976","Gloves","webP1010284_thumb.jpg",130,173,32);thumbnails[3376746]=new thumbnail(3376746,"206280","Scandal in a green dress ELIZA C","eliza green_thumb.jpg",130,173,32);thumbnails[3464932]=new thumbnail(3464932,"206280","Bridie Barnes","48ab2a33bd94d_thumb.jpg",130,195,32);thumbnails[3956965]=new thumbnail(3956965,"239686","Shadowland: a tribute to the film noir femme fatale.","noir1_thumb.jpg",130,173,32);thumbnails[3957578]=new thumbnail(3957578,"239686","Let there be Light...","piccyfix_1243284109_P1012109_thumb.JPG",130,147,32);thumbnails[3957876]=new thumbnail(3957876,"239686","Allure","noiresque_thumb.jpg",130,180,32);thumbnails[3957897]=new thumbnail(3957897,"239686","Because the Night","turn_thumb.jpg",130,180,32);thumbnails[3958017]=new thumbnail(3958017,"239686","Blue Fox","smoke_thumb.jpg",130,167,32);var galleries=new Object();galleries[156441]=new gallery(156441,"2402408","Gallery 2 Ladies Wear Conceptual: Colour","gallery",[2393804,2401873,2402408,2402451,2402461,2433663,2434246,2434278,2434288,2819870,2819933,2862956]);galleries[254200]=new gallery(254200,"4313332,4313237","Millinery: Rennovated Vintage Couture Hats","gallery",[4313237,4313332]);galleries[247806]=new gallery(247806,"4145690,4145676","Royal Enclosure Ascot","gallery",[4145659,4145676,4145690,4145730,4145733]);galleries[211215]=new gallery(211215,"3454687","spinwithme","gallery",[3454668,3454687,3599756]);galleries[225620]=new gallery(225620,"5645742,5645633,4632061","The new tweeds","gallery",[3693229,3693242,3693250,3693254,3693255,3693256,4632061,4632110,5645633,5645742]);galleries[225625]=new gallery(225625,"3693335,3693330,3693318,3693289","Velvets","gallery",[3693289,3693318,3693330,3693335]);galleries[155271]=new gallery(155271,"2393589","Gallery 1: LADIES WEAR conceptual black and white ","gallery",[2393589,2401842,2433690,2434291,2863129,2402386,2402454,2402401,2402394,2401846]);galleries[156552]=new gallery(156552,"3203308,2402467","Ladies Tweed: suits jackets skirts","gallery",[2393346,2393816,2401778,2401779,2401844,2401866,2402411,2402449,2402467,2433681,2433752,2434283,3203308,5166024,5166100,2402412,2402463]);galleries[156705]=new gallery(156705,"3376577","Furs","gallery",[2393620,2401843,2401869,2401870,2402396,2433677,2433697,2952563,3193769,3193771,3373662,3376577,3516277,3599600,3693377,3693381,3921250,3921295,3921304]);galleries[156976]=new gallery(156976,"2402392,2402390","Essential Ponygurl Accessories","gallery",[2402383,2402390,2402392,2433652,2918824,3327111]);galleries[191761]=new gallery(191761,"3136392,3136382,3126592,3126560,3126421","German Aviatrix in the Opium Den: warning: Adult i","gallery",[3126421,3126560,3126592,3136382,3136392]);galleries[206280]=new gallery(206280,"3464932,3376746","Our Models","gallery",[3376746,3464932]);galleries[239686]=new gallery(239686,"3958017,3957897,3957876,3957578,3956965","Noiresque","gallery",[3956965,3957578,3957876,3957897,3958017]);var imageSets=new Object();imageSets[1]="5645633,4632061,4313237,4145676,3203308,2393589";imageSets[2]="5645742,5645633,4632061,4145690,4145676,3454687,3376577,3203308,2402467,2402408,2402392,2402390,2393589";imageSets[3]="4632061";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/PonyGurlCouture/images";break}switch(a){case 1:b="http://www1.clikpic.com/PonyGurlCouture/images";break}switch(a){case 2:b="http://admin.clikpic.com/PonyGurlCouture/images";break}switch(a){case 24:b="http://tpc15/clikpic/PonyGurlCouture/images";break}switch(a){case 4:b="http://www.clikchurch.com/PonyGurlCouture/images";break}switch(a){case 5:b="http://www2.clikpic.com/PonyGurlCouture/images";break}switch(a){case 22:b="http://tpc5/clikpic/PonyGurlCouture/images";break}switch(a){case 23:b="http://tpc10/clikpic/PonyGurlCouture/images";break}switch(a){case 25:b="http://tpc16/clikpic/PonyGurlCouture/images";break}switch(a){case 15:b="http://www3.clikpic.com/PonyGurlCouture/images";break}switch(a){case 18:b="http://www4.clikpic.com/PonyGurlCouture/images";break}switch(a){case 19:b="http://www5.clikpic.com/PonyGurlCouture/images";break}switch(a){case 31:b="http://www7.clikpic.com/PonyGurlCouture/images";break}switch(a){case 32:b="http://admin2.clikpic.com/PonyGurlCouture/images";break}switch(a){case 33:b="http://www8.clikpic.com/PonyGurlCouture/images";break}switch(a){case 34:b="http://www9.clikpic.com/PonyGurlCouture/images";break}switch(a){case 35:b="http://admin3.clikpic.com/PonyGurlCouture/images";break}switch(a){case 37:b="http://admin4.clikpic.com/PonyGurlCouture/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="PonyGurl Couture: "+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="david.dent6@btinternet.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="david.dent6@btinternet.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+'")'})}}};