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[798064]=new thumbnail(798064,"","Click here to enter shops","100_1825_thumb.jpg",130,87,15);thumbnails[805610]=new thumbnail(805610,"","","fun_106_thumb.jpg",130,173,15);thumbnails[834416]=new thumbnail(834416,"","","fun_113_thumb.jpg",130,173,15);thumbnails[808011]=new thumbnail(808011,"61843","DD1 Lilac & Pink Sripey Doodle Dog","100_2014_thumb.jpg",130,196,15);thumbnails[808016]=new thumbnail(808016,"61843","DD2 Fushia Spotty Doodle Dog","100_2019_thumb.jpg",130,196,15);thumbnails[834322]=new thumbnail(834322,"61843","DD3 Deep Green & Red Spotty Doodle Dog","100_2089_thumb.jpg",130,196,15);thumbnails[808029]=new thumbnail(808029,"61843","DD4 Burnt Orange & Bronze Stripe Doodle Dog","100_2020_thumb.jpg",130,196,15);thumbnails[808035]=new thumbnail(808035,"61843","DD5 Lilac & Purple Spotty Doodle Dog","100_2023_thumb.jpg",130,196,15);thumbnails[798126]=new thumbnail(798126,"61843","DD6 Bronze and Beautiful Doodle Dog","100_1766_thumb.jpg",130,195,15);thumbnails[798122]=new thumbnail(798122,"61843","DD7 Silvery Green Doodle Dog","100_1769_thumb.jpg",130,195,15);thumbnails[834316]=new thumbnail(834316,"61843","DD8 Deep Green & Sherbert Stripe Doodle Dog","100_2085_thumb.jpg",130,196,15);thumbnails[808010]=new thumbnail(808010,"61843","DD9 Red Dotty Doodle Dog","100_2011_thumb.jpg",130,196,15);thumbnails[4754607]=new thumbnail(4754607,"61843","DD10 Big Silver Spotty Doodle Dog","doodlepin_photos_222_014_thumb.jpg",130,173,15);thumbnails[4754612]=new thumbnail(4754612,"61843","DD11 Pale Blue Spotty Doodle Dog","doodlepin_photos_222_004_thumb.jpg",130,173,15);thumbnails[798789]=new thumbnail(798789,"61843","DD12 Delightful Doodle Dogs ","100_1954_thumb.jpg",130,87,15);thumbnails[798992]=new thumbnail(798992,"61849","E1 Lilac Doodlephant","100_1724_thumb.jpg",130,195,15);thumbnails[798084]=new thumbnail(798084,"61849","E2 Pale Pink Doodlephant","100_17141_thumb.jpg",130,195,15);thumbnails[798984]=new thumbnail(798984,"61849","E3 Ruby Red Doodlephant","100_1717_thumb.jpg",130,195,15);thumbnails[798142]=new thumbnail(798142,"61849","E4 Emerald Green & Orange Doodlephant","100_1697_thumb.jpg",130,195,15);thumbnails[798109]=new thumbnail(798109,"61849","E5 Perfectly Purple Doodlephant","100_1701_thumb.jpg",130,195,15);thumbnails[798115]=new thumbnail(798115,"61849","E6 Brown & Bronze Doodlephant","100_1694_thumb.jpg",130,195,15);thumbnails[798990]=new thumbnail(798990,"61849","E7 Fushia Pink Doodlephant","100_1720_thumb.jpg",130,195,15);thumbnails[798995]=new thumbnail(798995,"61849","E8 Mottled Green Doodlephant","100_1727_thumb.jpg",130,195,15);thumbnails[798981]=new thumbnail(798981,"61849","E9 Silver Grey & Lilac Doodlephant","100_1729_thumb.jpg",130,195,15);thumbnails[1084109]=new thumbnail(1084109,"61849","E10 Candy Stripe Doodlephant","100_2544_thumb.jpg",130,196,15);thumbnails[1084123]=new thumbnail(1084123,"61849","E11 Emerald Green & Gold Doodlephant","100_2545_thumb.jpg",130,195,15);thumbnails[1084132]=new thumbnail(1084132,"61849","E12 Avocado & Purple Doodlephant","100_2537_thumb.jpg",130,195,15);thumbnails[1084137]=new thumbnail(1084137,"61849","E13 Pink & Pale Blue Doodlephant","100_2534_thumb.jpg",130,195,15);thumbnails[4754486]=new thumbnail(4754486,"61849","E14 Sea Green Elephant","doodlepin_photos_222_001_thumb.jpg",130,173,15);thumbnails[4754492]=new thumbnail(4754492,"61849","E15 Green Heart Elephant","doodlepin_photos_222_009_thumb.jpg",130,173,15);thumbnails[4754498]=new thumbnail(4754498,"61849","E16 Pink Swirly Elephant","doodlepin_photos_222_013_thumb.jpg",130,173,15);thumbnails[4754501]=new thumbnail(4754501,"61849","E17 Green Elephant to penny scale","doodlepin_photos_222_022_thumb.jpg",130,173,15);thumbnails[4754502]=new thumbnail(4754502,"61849","E18 Stripey Elephant","doodlepin_photos_222_028_thumb.jpg",130,173,15);thumbnails[798798]=new thumbnail(798798,"61849","E19 Happy Herd of Doodlephants","100_1970_thumb.jpg",130,196,15);thumbnails[1083973]=new thumbnail(1083973,"61847","DC1 Burnt Orange Spotty Doodle Cat","100_2507_thumb.jpg",130,196,15);thumbnails[1083985]=new thumbnail(1083985,"61847","DC2 Stripey Cool Doodle Cat","100_2508_thumb.jpg",130,196,15);thumbnails[1083991]=new thumbnail(1083991,"61847","DC3 Pink Spotty Dotty Doodle Cat","100_2510_thumb.jpg",130,196,15);thumbnails[1083994]=new thumbnail(1083994,"61847","DC4 Pale Pink & Fushia Doodle Cat","100_2516_thumb.jpg",130,196,15);thumbnails[1084001]=new thumbnail(1084001,"61847","DC5 Avocado Green Dotty Doodle Cat","100_2513_thumb.jpg",130,196,15);thumbnails[1084018]=new thumbnail(1084018,"61847","DC6 Pale Blue Cool Doodle Cat","100_2511_thumb.jpg",130,196,15);thumbnails[1084012]=new thumbnail(1084012,"61847","DC7 Pale Bronze & Green Doodle Cat","100_2514_thumb.jpg",130,196,15);thumbnails[808041]=new thumbnail(808041,"61847","DC8 Red & Gold Strip Doodle Dog","100_2027_thumb.jpg",130,196,15);thumbnails[1084024]=new thumbnail(1084024,"61847","DC9 Avocado & Bronze Doodle Cat","100_2515_thumb.jpg",130,196,15);thumbnails[808047]=new thumbnail(808047,"61847","DC10 Emerald Green & Gold Spotty Doodle Cat","100_2034_thumb.jpg",130,196,15);thumbnails[808042]=new thumbnail(808042,"61847","DC11 Deep Red Spotty Doodle Cat","100_2030_thumb.jpg",130,196,15);thumbnails[808044]=new thumbnail(808044,"61847","DC12 Scardy Cat in Pale Blue","100_2033_thumb.jpg",130,196,15);thumbnails[4754515]=new thumbnail(4754515,"61847","DC13 Big Spotty Cat","doodlepin_photos_222_003_thumb.jpg",130,173,15);thumbnails[4754518]=new thumbnail(4754518,"61847","DC14 Green Big Spotty Cat to penny scale","doodlepin_photos_222_019_thumb.jpg",130,173,15);thumbnails[4754520]=new thumbnail(4754520,"61847","DC15 Heart Cat","doodlepin_photos_222_037_thumb.jpg",130,173,15);thumbnails[1084027]=new thumbnail(1084027,"61847","DC16 Doodle Cats","100_2525_thumb.jpg",130,196,15);thumbnails[798139]=new thumbnail(798139,"61850","DT1 Lilac Loveheart Doodleoise","100_1705_thumb.jpg",130,195,15);thumbnails[798136]=new thumbnail(798136,"61850","DT2 Purple Dotty Doodleoise","100_1707_thumb.jpg",130,195,15);thumbnails[798141]=new thumbnail(798141,"61850","DT3 Emerald Green & Pink Doodleoise","100_1702_thumb.jpg",130,195,15);thumbnails[798137]=new thumbnail(798137,"61850","DT4 Pink & Stripey Doodleoise","100_1709_thumb.jpg",130,195,15);thumbnails[798140]=new thumbnail(798140,"61850","DT5 Deep Red Loveheart Doodleoise","100_1711_thumb.jpg",130,195,15);thumbnails[798997]=new thumbnail(798997,"61850","DT6 Spotty Bronze Doodleoise","100_1704_thumb.jpg",130,195,15);thumbnails[4754782]=new thumbnail(4754782,"61850","DT7 Spotty Tortoise to penny scale","doodlepin_photos_222_020_thumb.jpg",130,173,15);thumbnails[4754785]=new thumbnail(4754785,"61850","DT8 Love Heart Tortoise","doodlepin_photos_222_031_thumb.jpg",130,173,15);thumbnails[4754787]=new thumbnail(4754787,"61850","DT9 Purple Heart Tortiose","doodlepin_photos_222_024_thumb.jpg",130,173,15);thumbnails[798793]=new thumbnail(798793,"61850","DT10 Dancing Doodleoise!","100_1978_thumb.jpg",130,196,15);thumbnails[834339]=new thumbnail(834339,"61851","DA1 Burnt Orange & Fushia Doodle Daisy","100_2082_thumb.jpg",130,196,15);thumbnails[834346]=new thumbnail(834346,"61851","DA2 Avocado & Fushia Doodle Daisy","100_2081_thumb.jpg",130,196,15);thumbnails[798184]=new thumbnail(798184,"61851","DA3 Shiny Rainbow Doodle Daisy","100_1791_thumb.jpg",130,195,15);thumbnails[798098]=new thumbnail(798098,"61851","DA4 Fuscia Doodle Daisy","100_1776_thumb.jpg",130,195,15);thumbnails[798166]=new thumbnail(798166,"61851","DA5 Emerald Green Doodle Daisy, beautiful as a hat pin","100_1843_thumb.jpg",130,196,15);thumbnails[836597]=new thumbnail(836597,"61851","DA6 Sherbert & Teal Doodle Daisy","100_2083_thumb.jpg",130,196,15);thumbnails[798183]=new thumbnail(798183,"61851","DA7 Lilac & Pink Doodle Daisy","100_1787_thumb.jpg",130,195,15);thumbnails[799008]=new thumbnail(799008,"61851","DA8 Emerald Green Doodle Daisy","100_1786_thumb.jpg",130,195,15);thumbnails[798964]=new thumbnail(798964,"61851","DA9 Deep red gothic Doodle Daisy","100_1925_thumb.jpg",130,196,15);thumbnails[798912]=new thumbnail(798912,"61851","DA10 Milti coloured Doodle Daisy","100_1926_thumb.jpg",130,196,15);thumbnails[1084144]=new thumbnail(1084144,"61851","DA11  Green & Avocado Doodle Daisy","100_2551_thumb.jpg",130,196,15);thumbnails[1084152]=new thumbnail(1084152,"61851","DA12 Ruby Red Doodle Daisy","100_2548_thumb.jpg",130,195,15);thumbnails[1084156]=new thumbnail(1084156,"61851","DA13 Pale Blue Doodle Daisy","100_2547_thumb.jpg",130,196,15);thumbnails[4754522]=new thumbnail(4754522,"61851","DA14 Daisy to penny scale","doodlepin_photos_222_005_thumb.jpg",130,173,15);thumbnails[4754592]=new thumbnail(4754592,"61851","DA15 Golden Daisy","doodlepin_photos_222_026_thumb.jpg",130,173,15);thumbnails[4754586]=new thumbnail(4754586,"61851","DA16 Scarlett Daisy","doodlepin_photos_222_006_thumb.jpg",130,173,15);thumbnails[4754594]=new thumbnail(4754594,"61851","DA17 Sea Green Heart Daisy","doodlepin_photos_222_032_thumb.jpg",130,173,15);thumbnails[4754597]=new thumbnail(4754597,"61851","DA18 Rainbow Daisy","doodlepin_photos_222_034_thumb.jpg",130,173,15);thumbnails[4754599]=new thumbnail(4754599,"61851","DA19 Red and Green should never be seen :o)","doodlepin_photos_222_035_thumb.jpg",130,173,15);thumbnails[4754600]=new thumbnail(4754600,"61851","DA20 All the Reds Heart Daisy","doodlepin_photos_222_036_thumb.jpg",130,173,15);thumbnails[4754601]=new thumbnail(4754601,"61851","DA21 Purple Daisy","doodlepin_photos_222_041_thumb.jpg",130,173,15);thumbnails[4754603]=new thumbnail(4754603,"61851","DA22 Pinky Hearty Daisy","doodlepin_photos_222_040_thumb.jpg",130,173,15);thumbnails[798954]=new thumbnail(798954,"61851","DA23 A Bunch of Doodle Daisies","100_1924_thumb.jpg",130,196,15);thumbnails[834311]=new thumbnail(834311,"63815","DO1 Deep Green & Burnt Orange Doodle Doo","100_2080_thumb.jpg",130,196,15);thumbnails[831172]=new thumbnail(831172,"63815","DO2 Purple & Pink Doodle Doo","100_2065_thumb.jpg",130,196,15);thumbnails[831174]=new thumbnail(831174,"63815","DO3 Bronze & Green Doodle Doo","100_2063_thumb.jpg",130,196,15);thumbnails[834298]=new thumbnail(834298,"63815","DO4 Avocado Green Doodle Doo","100_2067_thumb.jpg",130,196,15);thumbnails[834303]=new thumbnail(834303,"63815","DO5 Deep Red & Pink Heart Doodle Doo","100_2068_thumb.jpg",130,196,15);thumbnails[834300]=new thumbnail(834300,"63815","DO6 Golden Brown Doodle Doo","100_2066_thumb.jpg",130,196,15);thumbnails[834307]=new thumbnail(834307,"63815","DO7 Deep Green With Rainbow Tail Doodle Doo","100_2074_thumb.jpg",130,196,15);thumbnails[834301]=new thumbnail(834301,"63815","DO8 Turquoise & Gold Doodle Doo","100_2064_thumb.jpg",130,196,15);thumbnails[834305]=new thumbnail(834305,"63815","DO9 Sherbert Stripe & Teal Doodle Doo","100_2072_thumb.jpg",130,196,15);thumbnails[834309]=new thumbnail(834309,"63815","DO10 Pink & Lilac Dotty Doodle Doo","100_2070_thumb.jpg",130,196,15);thumbnails[4754640]=new thumbnail(4754640,"63815","DO11 Sea Blue Doodle Doo","doodlepin_photos_222_002_thumb.jpg",130,173,15);thumbnails[4754646]=new thumbnail(4754646,"63815","DO12 Heart and Pink Doodle Doo","doodlepin_photos_222_012_thumb.jpg",130,173,15);thumbnails[4754649]=new thumbnail(4754649,"63815","DO13 Sea Green Doodle Doo to penny scale","doodlepin_photos_222_025_thumb.jpg",130,173,15);thumbnails[4754654]=new thumbnail(4754654,"63815","DO14 Big Spotty Doodle Doo","doodlepin_photos_222_007_thumb.jpg",130,173,15);thumbnails[4754659]=new thumbnail(4754659,"63815","DO15 Bronze Doodle Doo","doodlepin_photos_222_039_thumb.jpg",130,173,15);thumbnails[4754661]=new thumbnail(4754661,"63815","DO16 Lime Green Doodle Doo","doodlepin_photos_222_016_thumb.jpg",130,173,15);thumbnails[4754666]=new thumbnail(4754666,"63815","DO17 Warm Autumn Spotty Doodle Doo","doodlepin_photos_222_038_thumb.jpg",130,173,15);thumbnails[4754664]=new thumbnail(4754664,"63815","DO18 Rich Reds Doodle Doo","doodlepin_photos_222_030_thumb.jpg",130,173,15);thumbnails[831143]=new thumbnail(831143,"63815","DO19 Doodle Doos","100_2091_thumb.jpg",130,196,15);thumbnails[4754833]=new thumbnail(4754833,"272609","DH1 Pink Hearty Heart","doodlepin_photos_222_033_thumb.jpg",130,173,15);thumbnails[4754842]=new thumbnail(4754842,"272609","DH2 Fushcia Pink Swirl Heart","doodlepin_photos_222_027_thumb.jpg",130,173,15);thumbnails[4754849]=new thumbnail(4754849,"272609","DH3 Emerald and Gold Swirl Heart","doodlepin_photos_222_010_thumb.jpg",130,173,15);thumbnails[4754859]=new thumbnail(4754859,"272609","DH4 Sea Green Swirl Doodle Heart to penny scale","doodlepin_photos_222_011_thumb.jpg",130,173,15);var galleries=new Object();galleries[61843]=new gallery(61843,"798789","Dogs","gallery",[808011,808016,834322,808029,808035,798126,798122,834316,808010,4754607,4754612,798789]);galleries[61849]=new gallery(61849,"798798","Elephants","gallery",[798992,798084,798984,798142,798109,798115,798990,798995,798981,1084109,1084123,1084132,1084137,4754486,4754492,4754498,4754501,4754502,798798]);galleries[61847]=new gallery(61847,"1084027","Cats","gallery",[1083973,1083985,1083991,1083994,1084001,1084018,1084012,808041,1084024,808047,808042,808044,4754515,4754518,4754520,1084027]);galleries[61850]=new gallery(61850,"798793","Tortoise","gallery",[798139,798136,798141,798137,798140,798997,4754782,4754785,4754787,798793]);galleries[61851]=new gallery(61851,"798954","Daisies","gallery",[834339,834346,798184,798098,798166,836597,798183,799008,798964,798912,1084144,1084152,1084156,4754522,4754592,4754586,4754594,4754597,4754599,4754600,4754601,4754603,798954]);galleries[63815]=new gallery(63815,"831143","Doos","gallery",[834311,831172,831174,834298,834303,834300,834307,834301,834305,834309,4754640,4754646,4754649,4754654,4754659,4754661,4754666,4754664,831143]);galleries[272609]=new gallery(272609,"4754859,4754849,4754842,4754833","New!! Hearts","gallery",[4754833,4754842,4754849,4754859]);var imageSets=new Object();imageSets[1]="798064";imageSets[2]="1084027,831143,798954,798798,798793,798789";imageSets[3]="4754859,4754849,4754842,4754833,4754787,4754785,4754782,4754666,4754664,4754661,4754659,4754654,4754649,4754646,4754640,4754612,4754607,4754603,4754601,4754600,4754599,4754597,4754594,4754592,4754586,4754522,4754520,4754518,4754515,4754502,4754501,4754498,4754492,4754486,1084156,1084152,1084144,1084137,1084132,1084123,1084109,1084027,1084024,1084018,1084012,1084001,1083994,1083991,1083985,1083973";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/Jilldoodle/images";break}switch(a){case 1:b="http://www1.clikpic.com/Jilldoodle/images";break}switch(a){case 2:b="http://admin.clikpic.com/Jilldoodle/images";break}switch(a){case 24:b="http://tpc15/clikpic/Jilldoodle/images";break}switch(a){case 4:b="http://www.clikchurch.com/Jilldoodle/images";break}switch(a){case 5:b="http://www2.clikpic.com/Jilldoodle/images";break}switch(a){case 22:b="http://tpc5/clikpic/Jilldoodle/images";break}switch(a){case 23:b="http://tpc10/clikpic/Jilldoodle/images";break}switch(a){case 25:b="http://tpc16/clikpic/Jilldoodle/images";break}switch(a){case 15:b="http://www3.clikpic.com/Jilldoodle/images";break}switch(a){case 18:b="http://www4.clikpic.com/Jilldoodle/images";break}switch(a){case 19:b="http://www5.clikpic.com/Jilldoodle/images";break}switch(a){case 31:b="http://www7.clikpic.com/Jilldoodle/images";break}switch(a){case 32:b="http://admin2.clikpic.com/Jilldoodle/images";break}switch(a){case 33:b="http://www8.clikpic.com/Jilldoodle/images";break}switch(a){case 34:b="http://www9.clikpic.com/Jilldoodle/images";break}switch(a){case 35:b="http://admin3.clikpic.com/Jilldoodle/images";break}switch(a){case 37:b="http://admin4.clikpic.com/Jilldoodle/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="Doodle Stuff...Contemporary Jewellery: "+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><strong>Buy this Doodle using Paypal</strong></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="jillbarr@supanet.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="jillbarr@supanet.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+'")'})}}};