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[3255091]=new thumbnail(3255091,"295121","My, what big teeth you've got!","8t3o5668_thumb.jpg",130,127,15);thumbnails[3255099]=new thumbnail(3255099,"295121","Barbary Macaque - Macaca sylvanus  ","8t3o56712_thumb.jpg",130,195,15);thumbnails[3255101]=new thumbnail(3255101,"","Barbary Macaque - Macaca sylvanus feeding","8t3o5715_thumb.jpg",130,195,15);thumbnails[3255110]=new thumbnail(3255110,"295121","'Ooh Mum, that tastes nasty!'<br>\r\n","8t3o5855_thumb.jpg",130,195,15);thumbnails[3255117]=new thumbnail(3255117,"295121","Mum and Baby<br>\r\n","8t3o5867_thumb.jpg",130,195,15);thumbnails[2280017]=new thumbnail(2280017,"62464","Ostritch - Struthio camelus","55BT0776_thumb.jpg",130,86,15);thumbnails[2280021]=new thumbnail(2280021,"62464","Ostritch - Struthio camelus","55BT0821_thumb.jpg",130,86,15);thumbnails[2280192]=new thumbnail(2280192,"298184","I lean back, I fall over. Simples!","55BT0326-2_thumb.jpg",130,195,15);thumbnails[2280220]=new thumbnail(2280220,"","Yellow Mongoose","55BT0543_thumb.jpg",130,86,15);thumbnails[2280429]=new thumbnail(2280429,"62464","Peacock displaying","55BT0586XL_thumb.jpg",130,87,15);thumbnails[2280469]=new thumbnail(2280469,"","Male Aldabra Tortoise feeding","55BT0725_thumb.jpg",130,86,15);thumbnails[2280532]=new thumbnail(2280532,"","Female Chapmans Zebra - Equus burchellii chapmannii","55BT0744_thumb.jpg",130,195,15);thumbnails[2052216]=new thumbnail(2052216,"62464","Kingfisher with fish","55BT0109web_thumb.jpg",130,110,15);thumbnails[1606642]=new thumbnail(1606642,"298184","Red Squirrel sorting out an itch! ","IMG_7676web_thumb.jpg",130,124,15);thumbnails[1606665]=new thumbnail(1606665,"109456","Herring Gull - Larus argentatus","IMG_8040web_thumb.jpg",130,122,15);thumbnails[1606683]=new thumbnail(1606683,"62464","Song Thrush - Turdus philomelos","IMG_8041web_thumb.jpg",130,81,15);thumbnails[1606711]=new thumbnail(1606711,"109456","Gannet - Sula Bassana","IMG_8064web_thumb.jpg",130,141,15);thumbnails[1606747]=new thumbnail(1606747,"109456","Gannet - Sula Bassana","web_thumb.jpg",130,121,15);thumbnails[1606760]=new thumbnail(1606760,"109456","Gannet - Sula Bassana","IMG_8079web_thumb.jpg",130,85,15);thumbnails[1606772]=new thumbnail(1606772,"109456","Gannet - Sula Bassana","IMG_8173web_thumb.jpg",130,195,15);thumbnails[1606780]=new thumbnail(1606780,"109456","Gannet - Sula bassana","IMG_8125web_thumb.jpg",130,96,15);thumbnails[1606790]=new thumbnail(1606790,"109456","Gannets - Sula bassana","IMG_8073web_thumb.jpg",130,143,15);thumbnails[862760]=new thumbnail(862760,"62464","Blackbird - Turdus merula","IMG_3045thumb_thumb.jpg",130,107,15);thumbnails[2086215]=new thumbnail(2086215,"62464","Chaffinch - Fringilla coelebs","IMG_7614web_thumb.jpg",130,195,15);thumbnails[2086236]=new thumbnail(2086236,"62464","Chaffinch - Fringilla coelebs","IMG_3206cropweb_thumb.jpg",130,81,15);thumbnails[2074693]=new thumbnail(2074693,"109456","Cormorant - Phalacrocorax carbo","IMG_2821web_thumb.jpg",130,81,15);thumbnails[2074712]=new thumbnail(2074712,"109456","Cormorant - Phalacrocorax carbo","IMG_2866web_thumb.jpg",130,80,15);thumbnails[2074740]=new thumbnail(2074740,"109456","Cormorant - Phalacrocorax carbo","IMG_2852web_thumb.jpg",130,85,15);thumbnails[2079326]=new thumbnail(2079326,"62464","Great Tit - Parus Major","IMG_2758web_thumb.jpg",130,182,15);thumbnails[2079352]=new thumbnail(2079352,"109456","Cormorant - Phalacrocorax carbo","IMG_2841aweb_thumb.jpg",130,137,15);thumbnails[836592]=new thumbnail(836592,"62463","Red Kit - Milvus milvus","IMG_2261a-crop_thumb.JPG",130,88,15);thumbnails[836725]=new thumbnail(836725,"62463","Red Kite - Milvus milvus","IMG_2042a-cropthumb_thumb.jpg",130,186,15);thumbnails[2060202]=new thumbnail(2060202,"62463","Red Kite - Milvus milvus","IMG_1760a_thumb.jpg",130,88,15);thumbnails[2060297]=new thumbnail(2060297,"62463","Red Kite - Milvus milvus","IMG_1762a_thumb.jpg",130,99,15);thumbnails[2061056]=new thumbnail(2061056,"62463","Red Kite - Milvus milvus","IMG_2322a_thumb.jpg",130,163,15);thumbnails[2061114]=new thumbnail(2061114,"62463","Red Kite - Milvus milvus","IMG_2336_thumb.jpg",130,155,15);thumbnails[2064393]=new thumbnail(2064393,"62463","Common Buzzard - Buteo buteo","IMG_1852aweb_thumb.jpg",130,121,15);thumbnails[2064424]=new thumbnail(2064424,"62463","Common Buzzard - Buteo buteo","IMG_1868acropthumb_thumb.jpg",130,119,15);thumbnails[836898]=new thumbnail(836898,"62464","Cock Robin","IMG_0924athumb_thumb.jpg",130,137,15);thumbnails[836853]=new thumbnail(836853,"62463","Common Black Hawk - Buteogallus anthracinus","DSCF5487thumb_thumb.jpg",130,121,15);thumbnails[836834]=new thumbnail(836834,"","Barbary Macaque - Macaca sylvanus","DSCF4025thumb_thumb.jpg",130,134,15);thumbnails[836806]=new thumbnail(836806,"295121","Barbary Macaque - Macaca sylvanus","DSCF0805thumb_thumb.jpg",130,173,15);thumbnails[813874]=new thumbnail(813874,"295121","Innocence","DSCF0783_14_thumb.jpg",130,160,15);thumbnails[2086284]=new thumbnail(2086284,"","","IMG_2821_thumb.jpg",130,81,15);thumbnails[865691]=new thumbnail(865691,"66560","Airbus A380 ","IMG_3285thumb_thumb.jpg",130,87,15);thumbnails[865701]=new thumbnail(865701,"66560","Airbus A380 ","IMG_3292web1_thumb.jpg",130,87,15);thumbnails[865698]=new thumbnail(865698,"66560","Airbus A380","IMG_3405thumb_thumb.jpg",130,87,15);thumbnails[865814]=new thumbnail(865814,"66560","Airbus A380","IMG_3381thumb_thumb.jpg",130,87,15);thumbnails[865815]=new thumbnail(865815,"66560","Airbus A380","IMG_3379thumb1_thumb.jpg",130,195,15);thumbnails[865820]=new thumbnail(865820,"66560","'The Old and The Bold'","IMG_3328thumb_thumb.jpg",130,79,15);thumbnails[865826]=new thumbnail(865826,"66560","Airbus A380 taxiing at Filton","IMG_3312thumb_thumb.jpg",130,57,15);thumbnails[865827]=new thumbnail(865827,"66560","Airbus A380","IMG_3374thumb_thumb.jpg",130,214,15);thumbnails[3642057]=new thumbnail(3642057,"295121","Mum where are you?","8t3o5835_thumb.jpg",130,177,15);thumbnails[3630943]=new thumbnail(3630943,"223257","'You lookin' at me?'","55bt1363_thumb.jpg",130,97,15);thumbnails[3641981]=new thumbnail(3641981,"66560","Hawk Trainer over Yeovilton airfield","55BT0915_thumb.jpg",130,79,15);thumbnails[3641926]=new thumbnail(3641926,"223257","Hide and seek","55bt1834_thumb.jpg",130,160,15);thumbnails[3641983]=new thumbnail(3641983,"66560","Royal Navy Hawks display practice","55BT1053_thumb.jpg",130,27,15);thumbnails[3630947]=new thumbnail(3630947,"223257","Grumpy Bears. ","55bt1641_thumb.jpg",130,86,15);thumbnails[3641928]=new thumbnail(3641928,"223257","Messy Eater","55bt1848_thumb.jpg",130,80,15);thumbnails[3641984]=new thumbnail(3641984,"223257","Swampy Bear","55bt2542_thumb.jpg",130,168,15);thumbnails[3642037]=new thumbnail(3642037,"295121","Wos' going on over there then??","8t3o5745_thumb.jpg",130,195,15);thumbnails[3641929]=new thumbnail(3641929,"223257","If I look straight ahead I'll be invisible to the bloke in the hide...","55bt2161_thumb.jpg",130,166,15);thumbnails[3641985]=new thumbnail(3641985,"223257","'Bodari'","55bt2553_thumb.jpg",130,128,15);thumbnails[3641930]=new thumbnail(3641930,"223257","Lunch<br>\r\n<br>\r\n","55bt2164_thumb.jpg",130,199,15);thumbnails[3641986]=new thumbnail(3641986,"223257","'Bodari Bear'","55bt2556_thumb.jpg",130,168,15);thumbnails[3641987]=new thumbnail(3641987,"223257","Daybreak in the Taiga","55bt2591_thumb.jpg",130,255,15);thumbnails[3641931]=new thumbnail(3641931,"223257","Just Chillin'","55bt2215_thumb.jpg",130,92,15);thumbnails[3630950]=new thumbnail(3630950,"","Has he gone yet??","55bt1783_thumb.jpg",130,207,15);thumbnails[3642059]=new thumbnail(3642059,"295121",'"If I keep my eyes shut the fly can\'t see me!"',"DSCF3930_thumb.jpg",130,98,15);thumbnails[3630951]=new thumbnail(3630951,"223257","Has he gone yet???","55bt1812_thumb.jpg",130,212,15);thumbnails[3641933]=new thumbnail(3641933,"223257","Bimbling along","55bt2235_thumb.jpg",130,274,15);thumbnails[3641989]=new thumbnail(3641989,"62464","Woody Woodpecker","img_0199_thumb.jpg",130,188,15);thumbnails[3630953]=new thumbnail(3630953,"295131","Watching You, Watching Me","8t3o7338_thumb.jpg",130,87,15);thumbnails[3641934]=new thumbnail(3641934,"","55bt2253","55bt2253_thumb.jpg",130,182,15);thumbnails[3641935]=new thumbnail(3641935,"223257","Eye-spy Bear","55bt2271_thumb.jpg",130,199,15);thumbnails[3641937]=new thumbnail(3641937,"223257","Tubby Bear","55bt2306_thumb.jpg",130,112,15);thumbnails[3641939]=new thumbnail(3641939,"223257","Bear chewing fish heads","55bt2333_thumb.jpg",130,235,15);thumbnails[3642045]=new thumbnail(3642045,"","DSCF3926","DSCF3926_thumb.jpg",130,98,15);thumbnails[3641999]=new thumbnail(3641999,"223257","'Don't mess with me!'","img_1539_thumb.jpg",130,160,15);thumbnails[3642001]=new thumbnail(3642001,"223257","Ear bashing","img_1590_thumb.jpg",130,161,15);thumbnails[3642002]=new thumbnail(3642002,"223257","Spitting Mad","img_1592_thumb.jpg",130,87,15);thumbnails[3642005]=new thumbnail(3642005,"","It's been a hard day!","img_1685_thumb.jpg",130,80,15);thumbnails[3642007]=new thumbnail(3642007,"62464","Close up Greenfinch","img_1714_thumb.jpg",130,235,15);thumbnails[3642011]=new thumbnail(3642011,"62464","Redstart on a stump","img_2016-2_thumb.jpg",130,180,15);thumbnails[3642012]=new thumbnail(3642012,"","IMG 2645","IMG_2645_thumb.jpg",130,35,15);thumbnails[3642013]=new thumbnail(3642013,"109456","Lift Off!","IMG_2657_thumb.jpg",130,256,15);thumbnails[3642014]=new thumbnail(3642014,"294673","Dark clouds at sunset","IMG_4455_thumb.jpg",130,40,15);thumbnails[3642015]=new thumbnail(3642015,"294673","Blue Sunset","IMG_4461_thumb.jpg",130,34,15);thumbnails[3642016]=new thumbnail(3642016,"294673","Red Sunset","IMG_4547_thumb.jpg",130,25,15);thumbnails[5300747]=new thumbnail(5300747,"298173","Pheeew!","8T3O9037_thumb.jpg",130,172,15);thumbnails[5300748]=new thumbnail(5300748,"298173","Did someone call my name?","8T3O9123_thumb.jpg",130,188,15);thumbnails[5300749]=new thumbnail(5300749,"298173","What?","8T3O9497_thumb.jpg",130,184,15);thumbnails[5300782]=new thumbnail(5300782,"298173","Come on in, the waters lovely...","8T3O9645_thumb.jpg",130,92,15);thumbnails[5300783]=new thumbnail(5300783,"298173","Just playing around","8T3O9765_thumb.jpg",130,99,15);thumbnails[834787]=new thumbnail(834787,"62453","Crested Grebe - Podiceps cristalus","img_2612athumb_thumb.jpg",130,87,15);thumbnails[834814]=new thumbnail(834814,"62453","Crested Grebe - Podiceps cristalus","IMG_2613athumb_thumb.jpg",130,87,15);thumbnails[835017]=new thumbnail(835017,"62453","Crested Grebe - Podiceps cristalus","IMG_2559-a-crop-web_thumb.jpg",130,104,15);thumbnails[2079321]=new thumbnail(2079321,"62453","Mute Swan - Cygnus olor","IMG_2763-2web_thumb.jpg",130,87,15);thumbnails[2079331]=new thumbnail(2079331,"62453","Mute Swan - Cygnus olor","IMG_2768-2web_thumb.jpg",130,87,15);thumbnails[836911]=new thumbnail(836911,"62453","Bittern - Botaurus stellaris","IMG_0848athumb_thumb.jpg",130,136,15);thumbnails[859340]=new thumbnail(859340,"62453","Moorhen - Gallinula chloropus","CRW_5157thumb_thumb.jpg",130,87,15);var galleries=new Object();galleries[66560]=new gallery(66560,"3641983,3641981,865827,865826,865820,865815,865814,865701,865698,865691","Aircraft","gallery",[865691,865701,865698,865814,865815,865820,865826,865827,3641981,3641983]);galleries[223257]=new gallery(223257,"3642002,3642001,3641999,3641987,3641986,3641985,3641984,3641939,3641937,3641935","Bears","gallery",[3630943,3641926,3630947,3641928,3641984,3641929,3641985,3641930,3641986,3641987,3641931,3630951,3641933,3641935,3641937,3641939,3641999,3642001,3642002]);galleries[62464]=new gallery(62464,"3642011,3642007,3641989,2280429,2280021,2280017,2086236,2086215,2079326,2052216","Birds","gallery",[2280017,2280021,2280429,2052216,1606683,862760,2086215,2086236,2079326,836898,3641989,3642007,3642011]);galleries[294673]=new gallery(294673,"3642016,3642015,3642014","Landscape","gallery",[3642014,3642015,3642016]);galleries[62466]=new gallery(62466,"813874","Mammals","gallery",[]);galleries[295121]=new gallery(295121,"813874","Primates","gallery",[3255091,3255099,3255110,3255117,836806,813874,3642057,3642037,3642059]);galleries[62463]=new gallery(62463,"2064424,2064393,2061114,2061056,2060297,2060202,836853,836725,836592","Raptors","gallery",[836592,836725,2060202,2060297,2061056,2061114,2064393,2064424,836853]);galleries[109456]=new gallery(109456,"3642013,2079352,2074740,2074712,2074693,1606790,1606780,1606772,1606760,1606747","Seabirds","gallery",[1606665,1606711,1606747,1606760,1606772,1606780,1606790,2074693,2074712,2074740,2079352,3642013]);galleries[298173]=new gallery(298173,"5300783,5300782,5300749,5300748,5300747","Seals","gallery",[5300747,5300748,5300749,5300782,5300783]);galleries[298184]=new gallery(298184,"2280192,1606642","Small Mammals","gallery",[2280192,1606642]);galleries[295131]=new gallery(295131,"3630953","Wolves","gallery",[3630953]);galleries[62453]=new gallery(62453,"2079331,2079321,859340,836911,835017,834814,834787","Wildfowl","gallery",[834787,834814,835017,2079321,2079331,836911,859340]);var imageSets=new Object();imageSets[1]="813874";imageSets[2]="813874";imageSets[3]="5300783,5300782,5300749,5300748,5300747,3642059,3642057,3642045,3642037,3642016,3642015,3642014,3642013,3642012,3642011,3642007,3642005,3642002,3642001,3641999,3641989,3641987,3641986,3641985,3641984,3641983,3641981,3641939,3641937,3641935,3641934,3641933,3641931,3641930,3641929,3641928,3641926,3630953,3630951,3630950,3630947,3630943,3255117,3255110,3255101,3255099,3255091,2280532,2280469,2280429";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 34:b="http://www9.clikpic.com/bellapoppy/images";break}switch(a){case 1:b="http://www1.clikpic.com/bellapoppy/images";break}switch(a){case 2:b="http://admin.clikpic.com/bellapoppy/images";break}switch(a){case 4:b="http://www.clikchurch.com/bellapoppy/images";break}switch(a){case 5:b="http://www2.clikpic.com/bellapoppy/images";break}switch(a){case 15:b="http://www3.clikpic.com/bellapoppy/images";break}switch(a){case 21:b="http://www6.clikpic.com/bellapoppy/images";break}switch(a){case 18:b="http://www4.clikpic.com/bellapoppy/images";break}switch(a){case 19:b="http://www5.clikpic.com/bellapoppy/images";break}switch(a){case 22:b="http://tpc5/clikpic/bellapoppy/images";break}switch(a){case 23:b="http://tpc10/clikpic/bellapoppy/images";break}switch(a){case 24:b="http://tpc15/clikpic/bellapoppy/images";break}switch(a){case 25:b="http://tpc16/clikpic/bellapoppy/images";break}switch(a){case 31:b="http://www7.clikpic.com/bellapoppy/images";break}switch(a){case 32:b="http://admin2.clikpic.com/bellapoppy/images";break}switch(a){case 33:b="http://www8.clikpic.com/bellapoppy/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="blackdog images: "+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="updateCartValue(document.forms.paymentForm,this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';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">';b=b+'	<input type="hidden" name="item_option" value="'+a+'">';b=b+'	<input type="hidden" name="site" value="BELLAPOPPY">';b=b+'	<input type="hidden" name="item_number" value="'+c.id+'">';b=b+'	<input type="hidden" name="quantity" value="1">';b=b+'	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button">';b=b+'	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';b=b+"</form>";b=b+'<div class="clearing">&nbsp;</div>';b=b+'<div id="confirmContainer">';b=b+'<div id="paymentConfirm">Item added to cart</div>';b=b+"</div>";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+'")'})}}};