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[6089590]=new thumbnail(6089590,"279427","","SDE_cropped_thumb.jpg",130,95,18);thumbnails[355021]=new thumbnail(355021,"29296","The Memory of Water #1<br>\r\n41x41cm<br>\r\n[SOLD/Private Collection]<br>\r\n","The Memory of Water 1 cropped1.jpg",130,131,18);thumbnails[355024]=new thumbnail(355024,"29391","Untitled","Equilibrium1.jpg",130,211,18);thumbnails[355026]=new thumbnail(355026,"29412","The Secret Soul of Things","The Secret Soul of Things1.jpg",130,104,18);thumbnails[355029]=new thumbnail(355029,"47301","Looking for Leeuwenhoek<br>\r\n44x60cm  framed  £900<br>\r\n","Looking for Leeuwenhoek1.jpg",130,96,18);thumbnails[355284]=new thumbnail(355284,"29391","Untitled","Ink on Paper water-damaged1.jpg",130,173,18);thumbnails[356081]=new thumbnail(356081,"29296","The Memory of Water #2 [detail]<br>\r\n25x25cm<br>\r\n","The Memory of Water 2 cropped1.jpg",130,131,18);thumbnails[356085]=new thumbnail(356085,"29296","The Memory of Water #5 <br>\r\n30x30cm<br>\r\n","The memory of Water 5 cropped1.jpg",130,130,18);thumbnails[356337]=new thumbnail(356337,"58203","We Are Mostly Water<br>\r\n","We Are Mostly Water1.jpg",130,39,18);thumbnails[356534]=new thumbnail(356534,"29412","Cutting Edge","Cutting Edge1.jpg",130,98,18);thumbnails[356535]=new thumbnail(356535,"29299","The Critique of Pure Reason","Shadows 11.jpg",130,265,18);thumbnails[356567]=new thumbnail(356567,"29391","Untitled<br>\r\noil stick on paper","Untitled oil stick on paper 21.jpg",130,154,18);thumbnails[356569]=new thumbnail(356569,"29391","Untitled <br>\r\noil stick on paper","Untitled oil stick on paper 31.jpg",130,200,18);thumbnails[356573]=new thumbnail(356573,"29391","Untitled<br>\r\noil stick on paper","Untitled oil stick on paper1.jpg",130,194,18);thumbnails[356585]=new thumbnail(356585,"29391","Untitled<br>\r\nink on paper","sketch1.jpg",130,173,18);thumbnails[356589]=new thumbnail(356589,"29391","Untitled<br>\r\nink on paper","Untitled ink on paper 21.jpg",130,222,18);thumbnails[356798]=new thumbnail(356798,"29391","The Lovers<br>\r\nink on paper","lovers sketch1.jpg",130,181,18);thumbnails[356842]=new thumbnail(356842,"29299","Intersection #1","Intersection 11.jpg",130,63,18);thumbnails[356857]=new thumbnail(356857,"29392","H","H1.jpg",130,187,18);thumbnails[356859]=new thumbnail(356859,"29392","Mother and Daughter","Helena breastfeeding1.jpg",130,177,18);thumbnails[356861]=new thumbnail(356861,"29299","Wind Carving #1 Nassau Bahamas 06","Wind Carving 11.jpg",130,126,18);thumbnails[356864]=new thumbnail(356864,"150651","Poster for 'PS' gig London [circa late 70s]","Poster graphic1.jpg",130,194,18);thumbnails[356902]=new thumbnail(356902,"29412","Adrift","wood stone wood1.jpg",130,145,18);thumbnails[357143]=new thumbnail(357143,"29513","I was born and raised in a town by the sea, and throughout my life, wherever I've lived - England, Spain, California - I've been drawn to the coast, to the water's edge.  The fascination is bitter-sweet.  Some of my earliest and happiest memories are of Brighton beach, where I used to spend whole summers wading through the shallows and exploring the briny rock pools at Black Rock with my brother Stephen and kid sister Charlotte.  But it is also the place where Stephen's young life would be cut short.","deia shoreline3.jpg",130,62,18);thumbnails[357482]=new thumbnail(357482,"29513","So I'm drawn to the coast, to the water's edge. And it was whilst living in Muleta Mallorca where the mountains meet the sea, and the terrace of my remote retreat - El Niu de L'oronella [the Nest of the Sea Swallows]overlooked the rugged Deia headland, that I began the two years of research and experimentaion that would evolve organically into the creation of the Codagraph.  though these works are not autobiographical, they are, undeniably imbued with my life experience and sense of wonder at the world, and I hope, radiate some of the spirit and energy that inspired them.","hand drawing dirac1.jpg",130,62,18);thumbnails[357631]=new thumbnail(357631,"29513","The Codagraphs, an original hybrid form evolved as I began to fuse drawing, sculpture, photography, printmaking and digital processing.  A coda in music is a passage which brings a movement or piece to a conclusion; I feel this is analogous to the structured process I apply to the creation of these works, the penultimate printmaking stage in particular","Dirac Sketch bw1.jpg",130,62,18);thumbnails[357658]=new thumbnail(357658,"29513","Throughout the entire process - it can take weeks or even months to complete a single work - the initial inspiration or concept is guiding the creative process: I begin with a sketch rendered in ink or charcoal - which will act as a spur for the creation of a piece of land-art or raw sculpture, often made with found objects [a broken watch; a hub cap; a pipe; a solar panel] and natural materials such as stones polished by the sea; animal bones; shells; driftwood; abandoned birds nests; tree bark etc.","SDE Painting Dirac bw1.jpg",130,188,18);thumbnails[357763]=new thumbnail(357763,"29513","As the three dimensional piece evolves - I sometimes use paint or even pyrography to achieve the effect I'm after - I then photograph it from multiple angles, using natural light, often focusing on a defining texture or surface.  When this stage feels complete, I feed both the original sketches and the negatives of the photographs into my computer.","cutting twigs.JPG",130,62,18);thumbnails[357792]=new thumbnail(357792,"29513","With the image transformed into binary code, I then push the movement and abstraction of the digital form further towards the idea that existed in my mind's eye, carefully adjusting the colours, tones, light play and saturation.<br>\r\n<br>\r\nOnce I feel that I've successfully captured the essence and spirit of my initial idea, I then print onto fine art paper or board, and having gone full circle, return the work to my easel to add final details [with this piece for example I painted Paul Dirac's Field Equation on the reverse of the codagraph; echoing his theme that some things are not visible to us even though we know they exist.","Photographing Dirac bw1.jpg",130,62,18);thumbnails[357798]=new thumbnail(357798,"29513","At this juncture, all of the component parts, the land-art, sculptures, negatives and digital files are destroyed thereby ensuring that each final piece only exists as a single, original, signed codagraph.  I then take a low resolution digital photograph for archive purposes [such as those that appear on this website] ","Creating Dirac PC bw1.jpg",130,62,18);thumbnails[357807]=new thumbnail(357807,"29513",'When a plaque commemorating the life and work of the British Nobel Prize winning physicist Paul Dirac was unveiled at Westminster Abbey in 1995, Lucasian Professor Stehen Hawking summed up Dirac\'s contribution to science:<br>\r\n<br>\r\n"...Dirac has done more than anyone this century with the exception of Einstein, to advance physics and change our picture of the universe..."',"printing dirac1.jpg",130,62,18);thumbnails[357813]=new thumbnail(357813,"29513","In 1928 Dirac combined the theories of quantum mechanics and special relativity.  The resulting Dirac Equation was able to explain the mysterious magnetic and spin properties of the electron.  two years later, he formulated a theoretical model of the vacuum as an infinite sea of particles possessing negative energy; this became known as the Dirac Sea.<br>\r\n<br>\r\nThe title At the Shore of the Dirac Sea is intended to invoke the idea of a literal ocean, deep and uncharted, its waves lapping at the shore where Dirac stood.","dirac printed1.jpg",130,201,18);thumbnails[357827]=new thumbnail(357827,"29513","The ovoid, or egg shape - a powerful symbol of new life and rebirth in many ancient cultures can be readily identified in the codagraph, but returning to the oceanic analogy, I was also drawn to the Syngnathidae family, in particular the seahorse, and their strange, mysterious, foetal like forms, as a touchstone for giving shape to the birth of Dirac's visionary ideas.","rendering dirac eq on codagraph1.jpg",130,62,18);thumbnails[359995]=new thumbnail(359995,"47300","Ichthys Variation #ii<br>\r\n","Untitled-13.jpg",130,189,18);thumbnails[360120]=new thumbnail(360120,"47301","For Emilie du Chatelet<br>\r\n72x82cm<br>\r\n[On loan - P. Michell Cloisters Barristers<br>\r\n","Emilie1.jpg",130,146,18);thumbnails[360121]=new thumbnail(360121,"47301","The Presence of Occam's Razor in the Case of Albert E.<br>\r\n47x53cm<br>\r\n<br>\r\n[SOLD/Private Collection]","Occams1.jpg",130,144,18);thumbnails[360122]=new thumbnail(360122,"47301","PKS [Pythagoras Kepler System]<br>\r\n70x70cm  framed  £1400<br>\r\n","PKS revised1.jpg",130,130,18);thumbnails[360242]=new thumbnail(360242,"29392","Eight<br>\r\n","Eight Ink on Paper1.jpg",130,132,18);thumbnails[360322]=new thumbnail(360322,"47536","Transcendence #1","T 11.jpg",130,230,18);thumbnails[360323]=new thumbnail(360323,"47536","Transcendence #2","T 21.jpg",130,260,18);thumbnails[360324]=new thumbnail(360324,"47536","Transcendence #3","T 31.jpg",130,260,18);thumbnails[360325]=new thumbnail(360325,"47536","Transcendence #4","T 41.jpg",130,228,18);thumbnails[360327]=new thumbnail(360327,"47536","Transcendence #5","T 51.jpg",130,260,18);thumbnails[474259]=new thumbnail(474259,"47301","Podkletnov's Pipe<br>\r\n50x50cm [donated/private collection]<br>\r\n","Podkletnov's Pipe1.jpg",130,130,18);thumbnails[482741]=new thumbnail(482741,"47301","Schauberger's Spiral<br>\r\n51x51cm  framed  £900<br>\r\n","Schauberger's Spiral1.jpg",130,130,18);thumbnails[618115]=new thumbnail(618115,"47536","Artesian Spring<br>\r\n20x42cm  unframed  £125  [Somerset Velvet paper]<br>\r\n<br>\r\n3 of 5 remaining","Artesian Spring1.jpg",130,273,18);thumbnails[618811]=new thumbnail(618811,"47300","Ichthys #i<br>\r\n","Ichthys1.jpg",130,189,18);thumbnails[618816]=new thumbnail(618816,"47536","Floating Stones #1<br>\r\n36x40cm  unframed  £175<br>\r\n[4 of 5 remaining]<br>\r\n","Floating1.jpg",130,144,18);thumbnails[621080]=new thumbnail(621080,"47302","Kindle<br>\r\n16x38cm  framed  £350<br>\r\n","Untitled-15.jpg",130,307,18);thumbnails[621565]=new thumbnail(621565,"47536","Floating Stones #ii<br>\r\n48x60cm  unframed  £200<br>\r\n4 of 5 remaining","Floating21.jpg",130,163,18);thumbnails[652246]=new thumbnail(652246,"47301","Laternentrager: Harvest in the Torsion Field<br>\r\n36x40cm<br>\r\n[SOLD/Private Collection]","Laternentrager Harvest in the Torsion Field1.jpg",130,117,18);thumbnails[653088]=new thumbnail(653088,"29296","The Memory of Water #7  <br>\r\n25 x 25cm  [Private Collection]","memory1.jpg",130,131,18);thumbnails[654229]=new thumbnail(654229,"47301","Spontaneous Symmetry Breaking<br>\r\n32x32cm<br>\r\n[SOLD/Private Collection]","Spontaneous Symmetry Breaking1.jpg",130,135,18);thumbnails[657407]=new thumbnail(657407,"47302","GAIA<br>\r\n25x35cm<br>\r\n[SOLD / Private Collection: J. Brooke Barnett]<br>\r\n","Gaia o61.jpg",130,182,18);thumbnails[657861]=new thumbnail(657861,"47300","Ichthys #v<br>\r\nPrivate Collection<br>\r\nPrincess Azamat Guirey","Ick1.jpg",130,188,18);thumbnails[713128]=new thumbnail(713128,"47301","At the Shore of the Dirac Sea<br>\r\n65x90cm<br>\r\n[collection of the artist]","At the Shore of the Dirac Sea3.jpg",130,183,18);thumbnails[713130]=new thumbnail(713130,"","For Emilie du Chatelet<br>\r\n[on loan - P Michell Cloisters Barristers]","Emilie3.jpg",130,146,18);thumbnails[730830]=new thumbnail(730830,"47301","After Leibniz [detail]<br>\r\n70x90cm  framed  £1200<br>\r\n","After Leibniz [detail]1.jpg",130,175,18);thumbnails[754056]=new thumbnail(754056,"58203","Water/Birth","Water Birth1.jpg",130,147,18);thumbnails[754062]=new thumbnail(754062,"58203","Time & Tide","Time&Tide1.jpg",130,130,18);thumbnails[808447]=new thumbnail(808447,"","","Three Graces Study1.jpg",130,68,18);thumbnails[808449]=new thumbnail(808449,"62674","The Three Graces - Study for a site specific sculpture","Three Graces Study3.jpg",130,68,18);thumbnails[808472]=new thumbnail(808472,"62674","'Film' themed illuminated banner - Walton on Thames","Film Banner3.jpg",130,200,18);thumbnails[808498]=new thumbnail(808498,"62674","'Film' Banner 'Ext. Day'<br>\r\ndetail","Film banner 'day'1.jpg",115,600,18);thumbnails[810348]=new thumbnail(810348,"62674","'Film' banner 'Ext. Night'<br>\r\ndetail","FILM BANNER 'NIGHT'1.jpg",115,600,18);thumbnails[1609483]=new thumbnail(1609483,"47536","Untitled 06","New Home Page1.jpg",130,73,18);thumbnails[2222873]=new thumbnail(2222873,"29299","Tony O'Malley [May 2008]","tony bans bw 2_thumb.jpg",130,173,18);thumbnails[2222917]=new thumbnail(2222917,"29299","The Future Isn't What It Used To Be","The Future Isn't What it Used To Be_thumb.jpg",130,173,18);thumbnails[2222976]=new thumbnail(2222976,"","","Future cropped_thumb.jpg",130,50,18);thumbnails[2230544]=new thumbnail(2230544,"29299","untitled","T&F1_thumb.jpg",130,173,18);thumbnails[2230645]=new thumbnail(2230645,"29299","Two Bicycles Beijing 06 ","Two Bicycles Beijing_thumb.jpg",130,97,18);thumbnails[2231067]=new thumbnail(2231067,"","'After Hours' 606 Club, Chelsea 07","606 After Hours_thumb.JPG",130,77,18);thumbnails[2411481]=new thumbnail(2411481,"150651","","T photo flyer_thumb.jpg",130,150,18);thumbnails[2767843]=new thumbnail(2767843,"58203","seCERNment","seCERNment_thumb.JPG",130,143,18);thumbnails[3034725]=new thumbnail(3034725,"47536","'Flight'<br>\r\n21.5x30cm   <br>\r\n£125 unframed","Flight_thumb.jpg",130,92,18);thumbnails[3422637]=new thumbnail(3422637,"","","Listening Eye #20 revised_thumb.jpg",130,62,2);thumbnails[3423465]=new thumbnail(3423465,"47536","The Listening Eye [No.9 from a series of 20] ","Eye9plus_thumb.jpg",130,90,18);thumbnails[3555749]=new thumbnail(3555749,"47536","Koan","koan_final_thumb.jpg",130,178,18);thumbnails[3555807]=new thumbnail(3555807,"47536","Faith Has Been Broken, Tears Must Be Cried","faith_has_been_broken_thumb.jpg",130,98,18);thumbnails[3555813]=new thumbnail(3555813,"47536","The Moment of Patient Stillness","The_Moment_of_Patient_Stillness_thumb.jpg",130,124,18);thumbnails[3708004]=new thumbnail(3708004,"47536","The Listening Eye #3","Listening_Eye_3_web_thumb.jpg",130,178,18);thumbnails[4903279]=new thumbnail(4903279,"279427","Portrait of SDE by Millie Eden [Dorset 2005]","SDE_Portrait_1_thumb.jpg",130,171,18);thumbnails[4903541]=new thumbnail(4903541,"279427","SDE Codagraphs exhibited in Beijing, by invitation of the Tsinghua Academy of Arts. [Beijing, China 2006]","Me_Beijing_thumb.JPG",130,81,18);thumbnails[5074921]=new thumbnail(5074921,"47301","Die Glocke ","Die_Glocke_thumb.jpg",130,195,18);thumbnails[5074935]=new thumbnail(5074935,"47301","Looking for Leeuwenhoek II [44 x 60cm framed: £900]","Looking_for_Leeuwenhoek_ii__thumb.jpg",130,96,18);thumbnails[5265663]=new thumbnail(5265663,"150651","","ROAD_CD_FINAL_thumb.jpg",130,130,18);thumbnails[5265711]=new thumbnail(5265711,"150651","","ROAD_album_cover_by_SDE_thumb.jpg",130,130,18);var galleries=new Object();galleries[47301]=new gallery(47301,"5074935,5074921,730830,713128,654229,652246,482741,474259,360122,360121","Codagraphs #1","gallery",[355029,360120,360121,360122,474259,482741,652246,654229,713128,730830,5074921,5074935]);galleries[47302]=new gallery(47302,"657407,621080","Codagraphs #2","gallery",[621080,657407]);galleries[47300]=new gallery(47300,"657861,618811,359995","Codagraphs #3","gallery",[359995,618811,657861]);galleries[29412]=new gallery(29412,"356902,356534,355026","Constructions & Found Objects","gallery",[355026,356534,356902]);galleries[58203]=new gallery(58203,"2767843,754062,754056,356337","Digital / Telematic","gallery",[356337,754056,754062,2767843]);galleries[29392]=new gallery(29392,"360242,356859,356857","Drawings","gallery",[356857,356859,360242]);galleries[29391]=new gallery(29391,"356798,356589,356585,356573,356569,356567,355284,355024","Early Works","gallery",[355024,355284,356567,356569,356573,356585,356589,356798]);galleries[150651]=new gallery(150651,"5265711,5265663,2411481,356864","Graphics","gallery",[356864,2411481,5265663,5265711]);galleries[47536]=new gallery(47536,"3708004,3555813,3555807,3555749,3423465,3034725,1609483,621565,618816,618115","Limited Edition Prints","gallery",[360322,360323,360324,360325,360327,618115,618816,621565,1609483,3034725,3423465,3555749,3555807,3555813,3708004]);galleries[29296]=new gallery(29296,"653088,356085,356081,355021","Paintings","gallery",[355021,356081,356085,653088]);galleries[29513]=new gallery(29513,"357827,357813,357807,357798,357792,357763,357658,357631,357482,357143","Photo Essay","gallery",[357143,357482,357631,357658,357763,357792,357798,357807,357813,357827]);galleries[29299]=new gallery(29299,"2230645,2230544,2222917,2222873,356861,356842,356535","Photographs","gallery",[356535,356842,356861,2222873,2222917,2230544,2230645]);galleries[62674]=new gallery(62674,"810348,808498,808472,808449","Public ","gallery",[808449,808472,808498,810348]);galleries[279427]=new gallery(279427,"6089590,4903541,4903279","SDE ","gallery",[6089590,4903279,4903541]);var imageSets=new Object();imageSets[1]="6089590";imageSets[3]="6089590,5265711,5265663,5074935,5074921,4903541,4903279,3708004,3555813,3555807,3555749,3423465,3422637,3034725,2767843,2411481,2231067,2230645,2230544,2222976,2222917,2222873,1609483,810348,808498,808472,808449,808447,754062,754056,730830,713130,713128,657861,657407,654229,653088,652246,621565,621080,618816,618811,618115,482741,474259,360327,360325,360324,360323,360322";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/scripse/images";break}switch(a){case 1:b="http://www1.clikpic.com/scripse/images";break}switch(a){case 2:b="http://admin.clikpic.com/scripse/images";break}switch(a){case 24:b="http://tpc15/clikpic/scripse/images";break}switch(a){case 4:b="http://www.clikchurch.com/scripse/images";break}switch(a){case 5:b="http://www2.clikpic.com/scripse/images";break}switch(a){case 22:b="http://tpc5/clikpic/scripse/images";break}switch(a){case 23:b="http://tpc10/clikpic/scripse/images";break}switch(a){case 25:b="http://tpc16/clikpic/scripse/images";break}switch(a){case 15:b="http://www3.clikpic.com/scripse/images";break}switch(a){case 18:b="http://www4.clikpic.com/scripse/images";break}switch(a){case 19:b="http://www5.clikpic.com/scripse/images";break}switch(a){case 31:b="http://www7.clikpic.com/scripse/images";break}switch(a){case 32:b="http://admin2.clikpic.com/scripse/images";break}switch(a){case 33:b="http://www8.clikpic.com/scripse/images";break}switch(a){case 34:b="http://www9.clikpic.com/scripse/images";break}switch(a){case 35:b="http://admin3.clikpic.com/scripse/images";break}switch(a){case 37:b="http://admin4.clikpic.com/scripse/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="Simon David Eden   MA Dist. [RCA]   : "+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>"}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> 							"+(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+'<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+'")'})}}};