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[946676]=new thumbnail(946676,"","Long large bead cluster necklace","largebeadcluster_thumb.jpg",130,98,1);thumbnails[946779]=new thumbnail(946779,"","Small bead cluster necklace","smallbeadpendant1_thumb.JPG",130,98,1);thumbnails[2321238]=new thumbnail(2321238,"","","aliceinworkshop_thumb.JPG",130,86,1);thumbnails[5653960]=new thumbnail(5653960,"","Studio picture","hutwithpinkchairsmall_thumb.jpg",130,98,1);thumbnails[5653962]=new thumbnail(5653962,"","","workshop1_thumb.JPG",130,98,1);thumbnails[520054]=new thumbnail(520054,"","Silver pebble studs with pearls","earring02whtpl1_thumb.jpg",130,98,1);thumbnails[522427]=new thumbnail(522427,"","Silver pebble studs","earring041_thumb.jpg",130,98,1);thumbnails[949618]=new thumbnail(949618,"","Beaded Large Oval pendant necklace","2062041550_ba886304c9_thumb.jpg",130,98,1);thumbnails[518799]=new thumbnail(518799,"","Small pebble pendant on cord","neck09a_thumb.jpg",130,98,1);thumbnails[520010]=new thumbnail(520010,"","Mini link necklace with peridot","neck13per_thumb.JPG",130,86,1);thumbnails[2745144]=new thumbnail(2745144,"172440","Silver beaded bangle ","beadedbangle_thumb.jpg",130,98,1);thumbnails[2745152]=new thumbnail(2745152,"172440","Beaded silver pendant","beadedpendantondoublecord_thumb.jpg",130,98,1);thumbnails[2745156]=new thumbnail(2745156,"172440","Beaded stud with drop","beadedstudwithbeadeddrop_thumb.jpg",130,98,1);thumbnails[2745163]=new thumbnail(2745163,"172440","Continous beaded necklace","continuousbeadednecklace_thumb.jpg",130,173,1);thumbnails[2745166]=new thumbnail(2745166,"172440","Fine beaded ring","finebaededring_thumb.jpg",130,98,1);thumbnails[2745169]=new thumbnail(2745169,"172440","Hoop earring with drop","finebeadedhoopwithsmalldrop_thumb.jpg",130,98,1);thumbnails[2745174]=new thumbnail(2745174,"172440","Fine beaded bracelet","finebeadedbraceletoncord_thumb.jpg",130,98,1);thumbnails[2745182]=new thumbnail(2745182,"172440","Hoop earring with large drop","narrowbeadedhoopwithlargebeadeddrop_thumb.jpg",130,98,1);thumbnails[2745185]=new thumbnail(2745185,"172440","Wide beaded ring","widebeaded_thumb.jpg",130,98,1);thumbnails[2745190]=new thumbnail(2745190,"172440","Wide beaded bracelet","widebeadedbraceletoncord_thumb.jpg",130,98,1);thumbnails[2745191]=new thumbnail(2745191,"172440","Wide beaded hoop with drop","widebeadedhoop+drop_thumb.jpg",130,98,1);thumbnails[3140230]=new thumbnail(3140230,"172440","Wooden beaded bracelet with silver charm","collectionwoodenbrace_thumb.jpg",130,98,1);thumbnails[3140274]=new thumbnail(3140274,"172440","Smokey Quartz and wooden bead necklace","smokeyquartzwood_thumb.jpg",130,173,1);thumbnails[3140277]=new thumbnail(3140277,"172440","Large wooden bead pendant","largewoodenpendant1_thumb.jpg",130,180,1);thumbnails[3140286]=new thumbnail(3140286,"172440","Large wooden bead necklace with silver bead","largewoodenneck21_thumb.jpg",130,173,1);thumbnails[3140313]=new thumbnail(3140313,"172440","Silver beaded earring with wooden bead","beadeder+wood_thumb.jpg",130,103,1);thumbnails[3140318]=new thumbnail(3140318,"172440","Tiny silver beaded stud","beadedstud_thumb.jpg",130,98,1);thumbnails[5985264]=new thumbnail(5985264,"337268","Silver small stud earring with drop","smallstudearringwithlargedrop_thumb.jpg",130,98,1);thumbnails[5985269]=new thumbnail(5985269,"337268","Silver small and large drop earrings","smallandlargedropearring_thumb.jpg",130,98,1);thumbnails[5985274]=new thumbnail(5985274,"337268","Silver long drop earrings","3sectionearrings_thumb.jpg",130,98,1);thumbnails[5985288]=new thumbnail(5985288,"337268","Silver bracelet and tiny tourmaline earrings","braceletandtinystuddropearring_thumb.jpg",130,98,1);thumbnails[5985297]=new thumbnail(5985297,"337268","Tourmaline and silver bracelet","braceletwithtourmalines_thumb.jpg",130,98,1);thumbnails[5985301]=new thumbnail(5985301,"337268","Silver stud earring with Aquamarine ","largestudwithaqua_thumb.jpg",130,98,1);thumbnails[5985311]=new thumbnail(5985311,"337268","Silver star necklace on rubber necklace","staronrubber_thumb.jpg",130,98,1);thumbnails[1535567]=new thumbnail(1535567,"62160","Large silver twisted link necklace on cord","2062045756_6133e9697c_thumb.jpg",130,95,1);thumbnails[801310]=new thumbnail(801310,"62160","","01 large link bangle_thumb.JPG",130,86,1);thumbnails[1159849]=new thumbnail(1159849,"62160","Silver small oval link with Amethyst drops","2096836196_8a9de47a0e_thumb.jpg",130,98,1);thumbnails[801315]=new thumbnail(801315,"62160","","02 small link bracelet_thumb.JPG",130,86,1);thumbnails[1159838]=new thumbnail(1159838,"62160","Silver twisted link earrings with Amethyst beads","2096830932_1f2a6ca3f3_thumb.jpg",130,98,1);thumbnails[801350]=new thumbnail(801350,"62160","Solid drop pendant and earrings","2096837172_3fcc648c9c_thumb.jpg",130,98,1);thumbnails[802578]=new thumbnail(802578,"62160","","05 brooch with bead_thumb.jpg",130,87,1);thumbnails[949612]=new thumbnail(949612,"62160","Silver link necklace with set semi-precious stone","Linknecklace1_thumb.jpg",130,98,1);thumbnails[949628]=new thumbnail(949628,"62160","Silver long lillie necklace with pearl cluster","2096840202_acf5ed0966_thumb.jpg",130,98,1);thumbnails[801354]=new thumbnail(801354,"62160","","linkrings_thumb.JPG",130,173,1);thumbnails[946647]=new thumbnail(946647,"62160","Small oval pendant on fine ball chain","smallovalpendantball_thumb.jpg",130,98,1);thumbnails[517194]=new thumbnail(517194,"40002","9ct link on snake with Flourite briolette","necklace01flo9ct2_thumb.jpg",130,98,1);thumbnails[946608]=new thumbnail(946608,"40002","9ct gold small beaded oval pendant on ball chain","goldballwithoval2_thumb.jpg",130,94,1);thumbnails[518798]=new thumbnail(518798,"40002","Large pebble pendant on cord","neck08a_thumb.jpg",130,98,1);thumbnails[1131412]=new thumbnail(1131412,"40002","Silver oval pebble necklace with set stone","pebble+cz1_thumb.jpg",130,98,1);thumbnails[517254]=new thumbnail(517254,"40002","9ct gold necklace with mini pebble, smokey quartz and pearls","necklace03brw9ct_thumb.JPG",130,86,1);thumbnails[946617]=new thumbnail(946617,"40002","Large silver oval pendant on ball chain","2062041550_ba886304c91_thumb.jpg",130,98,1);thumbnails[947028]=new thumbnail(947028,"40002","Long Silver lillie pendant with pearl cluster","2096840202_acf5ed09661_thumb.jpg",130,98,1);thumbnails[518744]=new thumbnail(518744,"40002","Continuous mini pebble necklace","neck04a_thumb.jpg",130,98,1);thumbnails[522432]=new thumbnail(522432,"40002","Small pebble on cord","neck09a1_thumb.jpg",130,98,1);thumbnails[519971]=new thumbnail(519971,"40002","Silver oval pebble drop necklace","neck12_thumb.jpg",130,86,1);thumbnails[964400]=new thumbnail(964400,"40002","Silver flat pebble with drop on snake","flatpebblependant_thumb.jpg",130,91,1);thumbnails[519973]=new thumbnail(519973,"40002","9ct gold necklace with oval pebble ","neck129ct_thumb.JPG",130,86,1);thumbnails[519865]=new thumbnail(519865,"40002","9ct Gold necklace with flat double looped pebble and Amethyst drop.","unique05_thumb.jpg",130,98,1);thumbnails[521185]=new thumbnail(521185,"40002","9ct snake necklace with flat pebble and pearl","neck119ctbrwpl_thumb.jpg",130,98,1);thumbnails[950646]=new thumbnail(950646,"40002","Long pebble on silver rope chain","2096062973_54515b24ce_thumb.jpg",130,98,1);thumbnails[950660]=new thumbnail(950660,"40002","Silver small link pendant with drop","smalllinkonchain_thumb.jpg",130,96,1);thumbnails[6484007]=new thumbnail(6484007,"62159","Tourmaline stacked rings","18ctyellowwhitetourmalinegrouprings_thumb.jpg",130,98,1);thumbnails[1789084]=new thumbnail(1789084,"62159","18ct white gold ring with 10 diamonds","diamond wave_thumb.JPG",130,98,1);thumbnails[3341209]=new thumbnail(3341209,"62159","18ct gold and Tourmaline ring","tourmalinering3bands_thumb.jpg",130,98,1);thumbnails[2747179]=new thumbnail(2747179,"62159","18ct red gold ring with Ruby and diamonds","rubyanddiamond_thumb.jpg",130,98,1);thumbnails[1646551]=new thumbnail(1646551,"62159","Green Garnet pendant set in 22ct yellow gold","2062028026_777a914fbc_thumb.jpg",130,173,1);thumbnails[516879]=new thumbnail(516879,"62159","2 organic rings, 18ct & silver","ring 01_thumb.jpg",130,101,1);thumbnails[2747261]=new thumbnail(2747261,"62159","Silver, 18ct white and 18ct yellow stacked rings","stacked rings_thumb.JPG",130,98,1);thumbnails[3140298]=new thumbnail(3140298,"62159","Chunky rings","Chunky rings2_thumb.jpg",130,98,1);thumbnails[2747331]=new thumbnail(2747331,"62159","9ct yellow gold mini pebble bracelet","gold pebble bracelet_thumb.JPG",130,173,1);thumbnails[1535261]=new thumbnail(1535261,"62159","Silver cluster rings with semi precious stones","1510887480_c5e0ad66861_thumb.jpg",130,173,1);thumbnails[1535159]=new thumbnail(1535159,"62159","Silver cluster rings","1510769038_a3a2b0a1f3_thumb.jpg",130,173,1);thumbnails[1535043]=new thumbnail(1535043,"62159","Silver chunky wave ring","1510269231_ee5ab09131_thumb.jpg",130,173,1);thumbnails[1535293]=new thumbnail(1535293,"62159","18ct yellow rings","1511011620_50c68a2058_thumb.jpg",130,173,1);thumbnails[1535054]=new thumbnail(1535054,"62159","Silver ring with Moonstone","1511142354_e01575cbe2_thumb.jpg",130,173,1);thumbnails[1535050]=new thumbnail(1535050,"62159","Silver & 18ct yellow Amethyst Ring","1511134438_4966631bba_thumb.jpg",130,184,1);thumbnails[1535268]=new thumbnail(1535268,"62159","18ct yellow gold Emerald ring","1510992114_84c0f9871c_thumb.jpg",130,173,1);thumbnails[801399]=new thumbnail(801399,"62159","3 stone silver ring","jlewisring_thumb.jpg",130,98,1);thumbnails[1535058]=new thumbnail(1535058,"62159","Silver ring with 4 green tourmalines","1510299839_de73536ab1_thumb.jpg",130,130,1);thumbnails[1535299]=new thumbnail(1535299,"62159","Silver ring with Andean Opal","1511150038_577ea05358_thumb.jpg",130,173,1);thumbnails[519884]=new thumbnail(519884,"62159","9ct gold ring with green Tourmaline ","unique08_thumb.jpg",130,98,1);thumbnails[1535297]=new thumbnail(1535297,"62159","Silver ring with Smokey Quartz","1511053368_147f244ee1_thumb.jpg",130,173,1);thumbnails[520830]=new thumbnail(520830,"62159","18ct gold ring with 5 diamonds","unique09_thumb.jpg",130,115,1);thumbnails[801388]=new thumbnail(801388,"62159","Diamond Ring","Picture 051_thumb.jpg",130,100,1);thumbnails[1130893]=new thumbnail(1130893,"62159","8 stone engagement ring and wedding band","8stonering3_thumb.jpg",130,92,1);thumbnails[801407]=new thumbnail(801407,"62159","9ct red gold Ruby ring","LWilliams1_thumb.jpg",130,98,1);thumbnails[519859]=new thumbnail(519859,"62159","9ct gold necklace with Pink Tourmaline and Amethyst briolet","unique04_thumb.jpg",130,98,1);thumbnails[519765]=new thumbnail(519765,"62159","9ct gold necklace with Amethyst and Prehnite","unique02_thumb.jpg",130,98,1);thumbnails[1789085]=new thumbnail(1789085,"62159","Silver and 18ct gold ring with 3 diamonds","julesring2_thumb.jpg",130,97,1);thumbnails[1646552]=new thumbnail(1646552,"38595","Beaded Hoop earrings with drops","2096058455_5770b9662a_thumb.jpg",130,98,1);thumbnails[521178]=new thumbnail(521178,"38595","9ct gold pebble studs with pearls","earring029ctbrwpl_thumb.jpg",130,98,1);thumbnails[974364]=new thumbnail(974364,"38595","9ct gold beaded hoop earring with drop","goldbeadedhoop2_thumb.jpg",130,93,1);thumbnails[530948]=new thumbnail(530948,"38595","9ct gold mini link earrings with pearls","earring069ctbrwpl_thumb.jpg",130,98,1);thumbnails[521184]=new thumbnail(521184,"38595","9ct gold pebble studs","earring049ct_thumb.jpg",130,98,1);thumbnails[531248]=new thumbnail(531248,"38595","Mini link studs with semi precious drop","earring06gar_thumb.jpg",130,98,1);thumbnails[517279]=new thumbnail(517279,"38595","Silver Pebble studs with drop","earring02whtpl2_thumb.jpg",130,98,1);thumbnails[519979]=new thumbnail(519979,"38595","Silver pebble stud earrings","earring04_thumb.jpg",130,98,1);thumbnails[3163801]=new thumbnail(3163801,"40064","Leather travel jewellery box","boxes2_thumb.jpg",130,98,1);thumbnails[520827]=new thumbnail(520827,"40064","Silver pebble cufflinks","cuff01_thumb.jpg",130,98,1);var galleries=new Object();galleries[337268]=new gallery(337268,"5985311,5985301,5985288,5985274,5985264","50's pattern","gallery",[5985264,5985269,5985274,5985288,5985297,5985301,5985311]);galleries[172440]=new gallery(172440,"3140318,3140286,3140277,3140274,3140230,2745190,2745185,2745182,2745174,2745169,2745166,2745156,2745152,2745144","Beaded","gallery",[2745144,2745152,2745156,2745163,2745166,2745169,2745174,2745182,2745185,2745190,2745191,3140230,3140274,3140277,3140286,3140313,3140318]);galleries[62160]=new gallery(62160,"1535567,1159849,1159838,949628,949612,802578,801354,801350,801315,801310","Gallery collection","gallery",[1535567,801310,1159849,801315,1159838,801350,802578,949612,949628,801354,946647]);galleries[40002]=new gallery(40002,"1131412,947028,946608,518798,518744,517254,517194","Necklaces","gallery",[517194,946608,518798,1131412,517254,946617,947028,518744,522432,519971,964400,519973,519865,521185,950646,950660]);galleries[62159]=new gallery(62159,"6484007,3341209,3140298,2747331,2747261,2747179,1646551,1535293,1535268,1535261,1535159,1535058,1535054,1535050,1535043,1130893,519884,516879","Rings & Special Occasion","gallery",[6484007,1789084,3341209,2747179,1646551,516879,2747261,3140298,2747331,1535261,1535159,1535043,1535293,1535054,1535050,1535268,801399,1535058,1535299,519884,1535297,520830,801388,1130893,801407,519859,519765,1789085]);galleries[38595]=new gallery(38595,"1646552,974364,530948","Earrings","gallery",[1646552,521178,974364,530948,521184,531248,517279,519979]);galleries[40064]=new gallery(40064,"3163801","Bracelets & Other","gallery",[3163801,520827]);var imageSets=new Object();imageSets[1]="6484007,5985311,5985301,5985288,5985274,5985264,3341209,3140298,3140286,3140277,3140274,3140230,2747331,2747261,2747179,2745190,2745185,2745182,2745174,2745169,2745166,2745156,2745144,1646551,1535567,1535261,1535159,1535050,1131412,949628,949618,946608,517194,516879";imageSets[2]="6484007,5985311,5985301,5985288,5985274,5985264,3341209,3163801,3140318,3140298,3140286,3140277,3140274,3140230,2747331,2747261,2747179,2745190,2745185,2745182,2745174,2745169,2745166,2745156,2745152,2745144,1646552,1646551,1535567,1535293,1535268,1535261,1535159,1535058,1535054,1535050,1535043,1159849,1159838,1131412,1130893,974364,949628,949618,949612,947028,946676,946608,802578,801354,801350,801315,801310,530948,520054,519884,518798,518744,517254,517194,516879";imageSets[3]="6484007,5985311,5985301,5985297,5985288,5985274,5985269,5985264,5653962,5653960,3341209,3163801,3140318,3140313,3140298,3140286,3140277,3140274,3140230,2747331,2747261,2747179,2745191,2745190,2745185,2745182,2745174,2745169,2745166,2745163,2745156,2745152,2745144,2321238,1789085,1789084,1646552,1646551,1535567,1535299,1535297,1535293,1535268,1535261,1535159,1535058,1535054,1535050,1535043,1159849";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/alicerobson/images";break}switch(a){case 1:b="http://www1.clikpic.com/alicerobson/images";break}switch(a){case 2:b="http://admin.clikpic.com/alicerobson/images";break}switch(a){case 24:b="http://tpc15/clikpic/alicerobson/images";break}switch(a){case 4:b="http://www.clikchurch.com/alicerobson/images";break}switch(a){case 5:b="http://www2.clikpic.com/alicerobson/images";break}switch(a){case 22:b="http://tpc5/clikpic/alicerobson/images";break}switch(a){case 23:b="http://tpc10/clikpic/alicerobson/images";break}switch(a){case 25:b="http://tpc16/clikpic/alicerobson/images";break}switch(a){case 15:b="http://www3.clikpic.com/alicerobson/images";break}switch(a){case 18:b="http://www4.clikpic.com/alicerobson/images";break}switch(a){case 19:b="http://www5.clikpic.com/alicerobson/images";break}switch(a){case 31:b="http://www7.clikpic.com/alicerobson/images";break}switch(a){case 32:b="http://admin2.clikpic.com/alicerobson/images";break}switch(a){case 33:b="http://www8.clikpic.com/alicerobson/images";break}switch(a){case 34:b="http://www9.clikpic.com/alicerobson/images";break}switch(a){case 35:b="http://admin3.clikpic.com/alicerobson/images";break}switch(a){case 37:b="http://admin4.clikpic.com/alicerobson/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="Alice Robson: "+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>To buy this piece 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="alice.meyer@virgin.net">';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="alice.meyer@virgin.net">';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+'")'})}}};