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[4926897]=new thumbnail(4926897,"","Gunmetal & Gold Xmas Tree","Gunmetal__Gold_xmas_thumb.jpg",130,130,18);thumbnails[4926914]=new thumbnail(4926914,"","Silver & Red Xmas Tree","Silver__Red_xmas_thumb.jpg",130,130,18);thumbnails[4934843]=new thumbnail(4934843,"","Sunset","Summer_thumb.jpg",130,130,18);thumbnails[5624241]=new thumbnail(5624241,"","Liz James","Liz_thumb.jpg",130,228,18);thumbnails[5941662]=new thumbnail(5941662,"","The Studio","Liz_James_studio_thumb.jpg",130,98,18);thumbnails[4920987]=new thumbnail(4920987,"329408","Morning Sunrise","Dark_sunset_thumb.jpg",130,130,18);thumbnails[4920997]=new thumbnail(4920997,"329408","Summer Sky","Oil_summer_sky_thumb.jpg",130,130,18);thumbnails[5854488]=new thumbnail(5854488,"329408","Sufffolk Dawn","Suffolk_Dawn_thumb.jpg",130,103,18);thumbnails[5854542]=new thumbnail(5854542,"329408","Aldeburgh","Aldeburgh_thumb.jpg",130,263,18);thumbnails[5854551]=new thumbnail(5854551,"329408","Advancing Storm","Approaching_storm_thumb.jpg",130,38,18);thumbnails[5854587]=new thumbnail(5854587,"329408","Brancaster","Brancaster_thumb.jpg",130,245,18);thumbnails[5854595]=new thumbnail(5854595,"329408","Cadmium Sky","Cadmium_Sky_thumb.jpg",130,130,18);thumbnails[5854628]=new thumbnail(5854628,"329408","Daybreak","Daybreak_thumb.jpg",130,188,18);thumbnails[5854684]=new thumbnail(5854684,"329408","Felixtrio","Felixtrio_thumb.jpg",130,36,18);thumbnails[5854692]=new thumbnail(5854692,"329408","Glisten I","Glisten_1_thumb.jpg",130,252,18);thumbnails[5854701]=new thumbnail(5854701,"329408","Misty Dawn","Misty_Dawn_thumb.jpg",130,130,18);thumbnails[5854709]=new thumbnail(5854709,"329408","Woodland Mist","Misty_forest_thumb.jpg",130,184,18);thumbnails[5854715]=new thumbnail(5854715,"329408","Orange Glow","Orange_Glow_thumb.jpg",130,130,18);thumbnails[5854778]=new thumbnail(5854778,"329408","Pebble Beach","Pebble_beach_thumb.jpg",130,262,18);thumbnails[5854781]=new thumbnail(5854781,"329408","Poppy Field I","Poppy_field_1_thumb.jpg",130,183,18);thumbnails[5854784]=new thumbnail(5854784,"329408","Poppy Field II","Poppy_field_2_thumb.jpg",130,180,18);thumbnails[5854854]=new thumbnail(5854854,"329408","Russet Leaves","Russet_Leaves_thumb.jpg",130,189,18);thumbnails[5855143]=new thumbnail(5855143,"329408","Sheringham II","Sheringham2_thumb.jpg",130,130,18);thumbnails[5855155]=new thumbnail(5855155,"329408","Sheringham III","Sheringham3_thumb.jpg",130,130,18);thumbnails[5855157]=new thumbnail(5855157,"329408","Sheringham IV","Sheringham4_thumb.jpg",130,130,18);thumbnails[5855246]=new thumbnail(5855246,"329408","Rapeseed V","Rapeseed5_thumb.jpg",130,182,18);thumbnails[5855263]=new thumbnail(5855263,"329408","Rapeseed VI","Rapeseed6_thumb.jpg",130,181,18);thumbnails[5855271]=new thumbnail(5855271,"329408","Thetford","Thetford_thumb.jpg",130,190,18);thumbnails[5855317]=new thumbnail(5855317,"329408","Twilight Tree","Twilight_Tree_thumb.jpg",130,189,18);thumbnails[5855327]=new thumbnail(5855327,"329408","Wintry Wicken","Wintry_Wicken_thumb.jpg",130,264,18);thumbnails[5941745]=new thumbnail(5941745,"329408","Almost Gone","IMG_0729_thumb.jpg",130,130,18);thumbnails[5941758]=new thumbnail(5941758,"329408","Almost Gone II","IMG_0728_thumb.jpg",130,130,18);thumbnails[4914961]=new thumbnail(4914961,"279819","Estuary","01_05_092_thumb.jpg",130,256,18);thumbnails[4914963]=new thumbnail(4914963,"279819","Jade Sea","IMG_0196_thumb.jpg",130,267,18);thumbnails[4919281]=new thumbnail(4919281,"279819","Dusk","Dusk_thumb.jpg",130,123,18);thumbnails[4919291]=new thumbnail(4919291,"279819","Indigo Sea","Indigo_Sea_thumb.jpg",130,125,18);thumbnails[4919301]=new thumbnail(4919301,"279819","Sunlight","Sunlight_thumb.jpg",130,124,18);thumbnails[4919334]=new thumbnail(4919334,"279819","Four Seas","Four_Seas_thumb.jpg",130,183,18);thumbnails[4919338]=new thumbnail(4919338,"279819","Four Sunsets","Four_Sunsets_thumb.jpg",130,173,18);thumbnails[4919620]=new thumbnail(4919620,"279819","Aqua","Aqua_thumb.jpg",130,304,18);thumbnails[4919642]=new thumbnail(4919642,"279819","Aqua II","Aqua_21_thumb.jpg",130,320,18);thumbnails[4919994]=new thumbnail(4919994,"279819","Norfolk Storm","Norfolk_Storm_1A_thumb.jpg",130,281,18);thumbnails[4920425]=new thumbnail(4920425,"279819","Autumn Leaves I","Autumn_leaves_11_thumb.jpg",130,204,18);thumbnails[4920430]=new thumbnail(4920430,"279819","Autumn Leaves II","Autumn_leaves_2_thumb.jpg",130,204,18);thumbnails[4920550]=new thumbnail(4920550,"279819","Autumn Tree III","Autumn_tree_3_thumb.jpg",130,198,18);thumbnails[4920579]=new thumbnail(4920579,"279819","Avenue of Trees","Avenue_of_trees_thumb.jpg",130,90,18);thumbnails[4920580]=new thumbnail(4920580,"279819","Distant Forest","Distant_Forest_thumb.jpg",130,87,18);thumbnails[4920828]=new thumbnail(4920828,"279819","Holkham Bay - small","small_holkham_bay1_thumb.jpg",130,130,18);thumbnails[4920835]=new thumbnail(4920835,"279819","Indigo Sea & Shore","indigo_seaShore1_thumb.jpg",130,130,18);thumbnails[4920912]=new thumbnail(4920912,"279819","Tide I","Tide_1_thumb.jpg",130,58,18);thumbnails[4920914]=new thumbnail(4920914,"279819","Sunset","Sunset_thumb.jpg",130,261,18);thumbnails[4920991]=new thumbnail(4920991,"279819","Dazzle","Shimmer2_thumb.jpg",130,130,18);thumbnails[4920994]=new thumbnail(4920994,"279819","River Journey","River_journey_thumb.jpg",130,130,18);thumbnails[4921078]=new thumbnail(4921078,"279819","Starry Night","Starry_Sky_thumb.jpg",130,215,18);thumbnails[4921080]=new thumbnail(4921080,"279819","Shimmer I","Shimmer_framed_thumb.jpg",130,188,18);thumbnails[4921081]=new thumbnail(4921081,"279819","Shimmer II","Shimmer_unframed_thumb.jpg",130,183,18);thumbnails[4921086]=new thumbnail(4921086,"279819","Undulating Wave","Undulating_wave_new_pic_thumb.jpg",130,217,18);thumbnails[4921096]=new thumbnail(4921096,"279819","Splash II","Splash2_new_pic_thumb.jpg",130,439,18);thumbnails[4926921]=new thumbnail(4926921,"279819","Blue Horizon","Blue_horizon_thumb.jpg",130,39,18);thumbnails[4927085]=new thumbnail(4927085,"279819","Indigo and Red","Indigo__red_thumb.jpg",130,38,18);thumbnails[4934875]=new thumbnail(4934875,"279819","Train Window II","Train_window_2_thumb.jpg",130,130,18);thumbnails[4934883]=new thumbnail(4934883,"279819","Train Window III","Train_window_3_thumb.jpg",130,130,18);thumbnails[4935668]=new thumbnail(4935668,"279819","Old Tree II","Square_tree_2_thumb.jpg",130,131,18);thumbnails[4935676]=new thumbnail(4935676,"279819","Old Tree III","Square_tree_31_thumb.jpg",130,128,18);thumbnails[4915775]=new thumbnail(4915775,"279826","Wave","Wave_updated_thumb.jpg",130,528,18);thumbnails[4919286]=new thumbnail(4919286,"279826","Calm Sea","Calm_sea_thumb.jpg",130,129,18);thumbnails[4919300]=new thumbnail(4919300,"279826","Retreating Wave","Retreating_wave_thumb.jpg",130,126,18);thumbnails[4921002]=new thumbnail(4921002,"279826","Holkham Bay","Holkham_bay_new_pic_thumb.jpg",130,130,18);thumbnails[4939394]=new thumbnail(4939394,"279826","River Diptych","River_diptych_thumb.jpg",130,172,18);thumbnails[4941908]=new thumbnail(4941908,"279961","Private Client - Buckinghamshire","Ultramarine_Comm_thumb.jpg",130,241,18);thumbnails[4920380]=new thumbnail(4920380,"279961","Insolvency Practitioners - Norwich","Commission_painting1_thumb.jpg",130,149,18);thumbnails[4915691]=new thumbnail(4915691,"279961","Private Client - Bury St Edmunds","storm_thumb.jpg",130,68,18);thumbnails[4920817]=new thumbnail(4920817,"279961","Private Client - Bury St Edmunds","Calm_1_thumb.jpg",130,67,18);thumbnails[4939359]=new thumbnail(4939359,"279961","Private Client - Norwich","Sunset_commission_thumb.jpg",130,45,18);thumbnails[4914965]=new thumbnail(4914965,"280348","Splash","Splash_thumb.jpg",130,259,18);thumbnails[4915617]=new thumbnail(4915617,"280348","Autumn Sunset","Autumn_sunset1_thumb.jpg",130,167,18);thumbnails[4915650]=new thumbnail(4915650,"280348","Golden Sunset","Golden_Sunset1_thumb.jpg",130,164,18);thumbnails[4915705]=new thumbnail(4915705,"280348","Sea Triptych","E_James1_thumb.jpg",130,122,18);thumbnails[4919330]=new thumbnail(4919330,"280348","Four Landscapes","4_landscapes_thumb.jpg",130,180,18);thumbnails[4919343]=new thumbnail(4919343,"280348","Shimmer III","eaj-pic-044-lo-uc_thumb.jpg",130,130,18);thumbnails[4920460]=new thumbnail(4920460,"280348","Autumn Tree II","Autumn_tree_1_thumb.jpg",130,186,18);thumbnails[4920659]=new thumbnail(4920659,"280348","Lakeside","Trees_by_the_lake12_thumb.jpg",130,93,18);thumbnails[4920664]=new thumbnail(4920664,"280348","Winter Fields","Winter_fields_12_thumb.jpg",130,89,18);thumbnails[4920913]=new thumbnail(4920913,"280348","Sunrise 2","Sunrise_2_thumb.jpg",130,261,18);thumbnails[4926522]=new thumbnail(4926522,"280348","Crashing Wave","04_05_09_SOS_Blackthorpe_Barn_09_thumb.jpg",130,256,18);thumbnails[4927093]=new thumbnail(4927093,"280348","River Journey Triptych","River_journey2_thumb.jpg",130,25,18);thumbnails[4934146]=new thumbnail(4934146,"280348","Winter Sky","Winter_sky12_thumb.jpg",130,130,18);thumbnails[4934901]=new thumbnail(4934901,"280348","Winter Sunlight","Winter_sunlight_through_clouds_SOS_Blackthorpe_Barn_09_thumb.jpg",130,130,18);thumbnails[4934926]=new thumbnail(4934926,"280348","Summer Sky","Sky_2_24_021_thumb.jpg",130,130,18);thumbnails[4936319]=new thumbnail(4936319,"280348","Lapping Wave","eaj-pic-022-lo-uc_thumb.jpg",130,96,18);thumbnails[4936612]=new thumbnail(4936612,"280348","Autumn Tree I","eaj-pic-036-lo-uc_thumb.jpg",130,207,18);thumbnails[4936854]=new thumbnail(4936854,"280348","Wild Tree","eaj-pic-tree_thumb.jpg",130,128,18);thumbnails[4941969]=new thumbnail(4941969,"280348","Tidal","Tidal_sold_thumb.jpg",130,68,18);thumbnails[5854696]=new thumbnail(5854696,"280348","Glisten II","Glisten2_thumb.jpg",130,262,18);thumbnails[5855096]=new thumbnail(5855096,"280348","Sheringham I","Sheringham1_thumb.jpg",130,130,18);thumbnails[5855314]=new thumbnail(5855314,"280348","Twilight Broad","Twilight_Broad_thumb.jpg",130,40,18);thumbnails[5855324]=new thumbnail(5855324,"280348","Vermillion Sunset","Vermillion_Sunset_thumb.jpg",130,130,18);thumbnails[4941867]=new thumbnail(4941867,"279827","Medium Size Cards","Card_selection_medium_thumb.jpg",130,79,18);thumbnails[4941883]=new thumbnail(4941883,"279827","Tall Cards","Card_selection_tall_thumb.jpg",130,112,18);thumbnails[5856203]=new thumbnail(5856203,"279827","Fridge Magnets","DSC00423_thumb.JPG",130,98,18);thumbnails[5557436]=new thumbnail(5557436,"315174","Horizon Light 1","Horizon_light_1_thumb.jpg",130,130,18);thumbnails[5557437]=new thumbnail(5557437,"315174","Horizon Light 2","Horizon_light_2_thumb.jpg",130,130,18);thumbnails[5557442]=new thumbnail(5557442,"315174","Horizon Light 3","Horizon_light_3_thumb.jpg",130,130,18);thumbnails[5557444]=new thumbnail(5557444,"315174","Horizon Light 4","Horizon_light_4_thumb.jpg",130,130,18);thumbnails[5557488]=new thumbnail(5557488,"315174",'Laser "Horizon" Installation',"Copy_1_of_IMG_0023_thumb.jpg",130,87,18);thumbnails[5557489]=new thumbnail(5557489,"315174",'Laser "Horizon" Installation',"Copy_1_of_IMG_0143_thumb.jpg",130,87,18);thumbnails[5557496]=new thumbnail(5557496,"315174",'Laser "Horizon" Installation',"Copy_1_of_IMG_0026_thumb.jpg",130,87,18);thumbnails[5557583]=new thumbnail(5557583,"315174",'Laser "Horizon" Installation',"Copy_1_of_IMG_0146_thumb.jpg",130,87,18);var galleries=new Object();galleries[329408]=new gallery(329408,"5855327,5854854,5854587,5854542,5854488","2010 COLLECTION","gallery",[4920987,4920997,5854488,5854542,5854551,5854587,5854595,5854628,5854684,5854692,5854701,5854709,5854715,5854778,5854781,5854784,5854854,5855143,5855155,5855157,5855246,5855263,5855271,5855317,5855327,5941745,5941758]);galleries[279819]=new gallery(279819,"4919281","Watercolours","gallery",[4914961,4914963,4919281,4919291,4919301,4919334,4919338,4919620,4919642,4919994,4920425,4920430,4920550,4920579,4920580,4920828,4920835,4920912,4920914,4920991,4920994,4921078,4921080,4921081,4921086,4921096,4926921,4927085,4934875,4934883,4935668,4935676]);galleries[279826]=new gallery(279826,"4939394,4921002,4919300,4919286,4915775","Acrylics","gallery",[4915775,4919286,4919300,4921002,4939394]);galleries[279961]=new gallery(279961,"4920380","Commissioned Work","gallery",[4941908,4920380,4915691,4920817,4939359]);galleries[280348]=new gallery(280348,"5854696,4919330,4915650","Previously Sold Work","gallery",[4914965,4915617,4915650,4915705,4919330,4919343,4920460,4920659,4920664,4920913,4926522,4927093,4934146,4934901,4934926,4936319,4936612,4936854,4941969,5854696,5855096,5855314,5855324]);galleries[279827]=new gallery(279827,"5856203,4941867","Bits & Pieces","gallery",[4941867,4941883,5856203]);galleries[315174]=new gallery(315174,"5557442","MA Fine Art","gallery",[5557436,5557437,5557442,5557444,5557488,5557489,5557496,5557583]);var imageSets=new Object();imageSets[1]="5855314,5855271,5855246,5854781,5854628,5854551,4939359,4920580,4920380,4919301,4915691";imageSets[2]="5856203,5855327,5854854,5854696,5854587,5854542,5854488,5557442,4941867,4920380,4919330,4919281,4915650";imageSets[3]="4915650";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/lizjames/images";break}switch(a){case 1:b="http://www1.clikpic.com/lizjames/images";break}switch(a){case 2:b="http://admin.clikpic.com/lizjames/images";break}switch(a){case 24:b="http://tpc15/clikpic/lizjames/images";break}switch(a){case 4:b="http://www.clikchurch.com/lizjames/images";break}switch(a){case 5:b="http://www2.clikpic.com/lizjames/images";break}switch(a){case 22:b="http://tpc5/clikpic/lizjames/images";break}switch(a){case 23:b="http://tpc10/clikpic/lizjames/images";break}switch(a){case 25:b="http://tpc16/clikpic/lizjames/images";break}switch(a){case 15:b="http://www3.clikpic.com/lizjames/images";break}switch(a){case 18:b="http://www4.clikpic.com/lizjames/images";break}switch(a){case 19:b="http://www5.clikpic.com/lizjames/images";break}switch(a){case 31:b="http://www7.clikpic.com/lizjames/images";break}switch(a){case 32:b="http://admin2.clikpic.com/lizjames/images";break}switch(a){case 33:b="http://www8.clikpic.com/lizjames/images";break}switch(a){case 34:b="http://www9.clikpic.com/lizjames/images";break}switch(a){case 35:b="http://admin3.clikpic.com/lizjames/images";break}switch(a){case 37:b="http://admin4.clikpic.com/lizjames/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="Elizabeth James: "+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>Price </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>Size </strong>'+photos[b].location+"</p>"}if(photos[b].photographer!=""){a=a+'<p class="imageinfo" id="imagePhotographer"><strong>  </strong>'+photos[b].photographer+"</p>"}if(a!=""){a=a+'<div class="spacer"></div>'}return a}function fnGetPaymentInfo(c){var b="";if(c.item_price!==""){b=b+"<p>Order this print:</p>";b=b+'<p class="imageinfo" id="imagePrice"><strong>'+c.purchase_instruction+"</strong> 				&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="art@elizabeth-james.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="art@elizabeth-james.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(b,a){imageID=randomListVal(galleries[b].featured_images);if(imageID!=0){a.src=thumbnails[imageID].src;a.width=thumbnails[imageID].width;a.height=thumbnails[imageID].height}}function showGalleries(a){if(!basic){temp="";for(i=0;i<galleries.length;i++){if(galleries[i].id!=a){if(temp!=""){temp=temp+" | "}temp=temp+'<a href="gallery_'+galleries[i].id+'.html">'+galleries[i].title+"</a>"}}document.all.galleryLinks.innerHTML="Other galleries: "+temp}}function resizePhotoInfo(n){var b=$.extend({centre:false},n||{});var d=3;$("div#photoPanelOuter").height("auto");$("div#infoWrap").width(200);$("div#photoDetail").css("width","auto");var h=$("div#maincolContent").width();var j=$("div#photoWrap").outerWidth(true);var m=$("div#infoWrap").outerWidth(true);var k=$("div#photoWrap").outerHeight();var f=$("div#infoWrap").outerHeight();var c=$("div#infoWrap").hasClass("empty");floatDrop=0;var g=j;if(!c){if(h<(j+m)){floatDrop=1}if(!floatDrop){var a=$("div#infoWrap").innerWidth();$("div#infoWrap").width(a+(h-j-m-d));m=$("div#infoWrap").outerWidth(true);g=j+m;if(k>f){var e=$("div#photoPanelOuter").height();$("div#photoPanelOuter").height(e+(k-f));var f=$("div#infoWrap").outerHeight()}}else{var l=$("div#photoWrap").outerWidth();$("div#infoWrap").width(l)}}if(b.centre){$("div#photoDetail").width(g);$("div#photoDetail").css("margin-left","auto");$("div#photoDetail").css("margin-right","auto")}else{$("div#photoDetail").css("margin-left","0");$("div#photoDetail").css("margin-right","0")}}function getArrayPos(c,b){for(var a=0;a<c.length;a++){if(c[a]==b){return a}}return -1}function changeBgImg(a,e){var c=randomListVal(imageSets[e]);var d=backgrounds[c].src;var b=$(a);if(b.size()>0){if(/\bimg$/.test(a)){b.attr({src:d})}else{b.css({"background-image":'url("'+d+'")'})}}};