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[933297]=new thumbnail(933297,"","CHILD OF NATURE<br>\r\n1986","Rozell-72_thumb.jpg",130,123,1);thumbnails[1192224]=new thumbnail(1192224,"","2007 from deep in our heart to the far corners of the universe it is all a divine workshop ","b&white72_thumb.jpg",130,92,1);thumbnails[996938]=new thumbnail(996938,"74781","","haystack721_thumb.jpg",130,173,1);thumbnails[3961820]=new thumbnail(3961820,"240013","","lily_thumb.jpg",130,130,1);thumbnails[1192469]=new thumbnail(1192469,"85676",'Daphne & Apollo <br>\r\nguache 5x4"<br>\r\n1990',"ILLUSdaphne272_thumb.jpg",130,143,1);thumbnails[3961822]=new thumbnail(3961822,"240013","","lily1_thumb.jpg",130,130,1);thumbnails[4411952]=new thumbnail(4411952,"258506","","rocksand_paintings_cornwall_2009_035_5_thumb.jpg",130,152,1);thumbnails[3961824]=new thumbnail(3961824,"240013","","lily2_thumb.jpg",130,130,1);thumbnails[4411953]=new thumbnail(4411953,"258506","","rocksand_paintings_cornwall_2009_050_2_thumb.jpg",130,173,1);thumbnails[3961818]=new thumbnail(3961818,"240013","","daffodil_thumb.jpg",130,130,1);thumbnails[3961817]=new thumbnail(3961817,"240013","","new_work_apri_l09_rose_1_thumb.jpg",130,129,1);thumbnails[4412658]=new thumbnail(4412658,"258506","","rocksand_paintings_cornwall_2009_039_4_thumb.jpg",130,146,1);thumbnails[4412767]=new thumbnail(4412767,"258506","","rocksand_paintings_cornwall_2009_036_1_thumb.jpg",130,144,1);thumbnails[4412773]=new thumbnail(4412773,"258506","","rocksand_paintings_cornwall_2009_042_thumb.jpg",130,98,1);thumbnails[4411954]=new thumbnail(4411954,"258506","","rocksand_paintings_cornwall_2009_040_6_thumb.jpg",130,97,1);thumbnails[913935]=new thumbnail(913935,"70972","'STILL LIFE'. Installation . wooden construction ;4 video screens plinth and bowl of fruit.","stilllife72_thumb.jpg",130,87,1);thumbnails[3752898]=new thumbnail(3752898,"148832","tree bud with seeds ","bud_with_seeds_thumb.jpg",130,158,1);thumbnails[2741025]=new thumbnail(2741025,"74691","","buds_thumb.jpg",130,178,1);thumbnails[995801]=new thumbnail(995801,"74691",'CHESTNUT 3  charcoal on paper 6.10"X 6.10"',"chestnut372_thumb.jpg",130,130,1);thumbnails[996882]=new thumbnail(996882,"70972","EATING:PERFORMANCE<br>\r\n","stilllifeeating_thumb.jpg",130,84,1);thumbnails[996899]=new thumbnail(996899,"70972","","BODIES_thumb.jpg",130,86,1);thumbnails[3682899]=new thumbnail(3682899,"148832","","6th_wild_garlic_and_forsythia_and_leaf_buds_72_thumb.jpg",130,156,1);thumbnails[995824]=new thumbnail(995824,"74691",'CHESTNUT4 8.18"X 8.18" charcoal on paper',"chestnut472_thumb.jpg",130,149,1);thumbnails[996898]=new thumbnail(996898,"70972","","APPLECORE_thumb.jpg",130,89,1);thumbnails[996950]=new thumbnail(996950,"70972","","SLEEPING_thumb.jpg",130,89,1);thumbnails[3682881]=new thumbnail(3682881,"148832","","2nd_4_wild_garlic_thumb.jpg",130,156,1);thumbnails[2264174]=new thumbnail(2264174,"148832","Wild garlic and Forsythia","wild garlic and forsythia  1 web3_thumb.jpg",130,163,1);thumbnails[2272283]=new thumbnail(2272283,"148832","Wild Garlic  <br>\r\noil on canvas ","wild garlic  web2_thumb.jpg",130,156,1);thumbnails[3683042]=new thumbnail(3683042,"148832","","Bluebells_May_72_thumb.jpg",130,156,1);thumbnails[3683043]=new thumbnail(3683043,"148832","","blossom_May_72_thumb.jpg",130,156,1);thumbnails[3682643]=new thumbnail(3682643,"148832","tree buds ","3_buds_thumb.jpg",130,152,1);thumbnails[2319713]=new thumbnail(2319713,"148832","tree bud and other spring phenomena 2008","pink_peace_pril_may_thumb.jpg",130,153,1);thumbnails[1820024]=new thumbnail(1820024,"74691","applebough study 1987","AppleboughRoz_thumb.jpg",130,172,1);thumbnails[1820043]=new thumbnail(1820043,"74691","bramble study 1987","brambleRoz_thumb.jpg",130,172,1);thumbnails[1820048]=new thumbnail(1820048,"74691","cowparsley study1987","cowparsleytop_thumb.jpg",130,172,1);thumbnails[887366]=new thumbnail(887366,"68061","inside a heart .1986. charcoal chalk .linseed oil 7ft x5 ft","heart_thumb.jpg",130,200,1);thumbnails[997259]=new thumbnail(997259,"68061","in the studioLondon 1986","me in studio 1986_thumb.jpg",130,78,1);thumbnails[1031000]=new thumbnail(1031000,"75155","1/12 SEGMENTS OF DARTMOOR PANORAMA BEYOND PHOTOGRAPHY ","PANORAMA1A_thumb.jpg",130,98,1);thumbnails[1031050]=new thumbnail(1031050,"75155","","PANORAMA3_thumb.jpg",130,99,1);thumbnails[1031028]=new thumbnail(1031028,"75155","","PANORAMA 2_thumb.jpg",130,100,1);thumbnails[1010498]=new thumbnail(1010498,"75155",'Dartmoor 2003<br>\r\n(BEYOND GOOD AND EVIL)<br>\r\nOIL ON CANVAS 12"X 30"',"dartmoorlong_thumb.jpg",130,56,1);thumbnails[1030912]=new thumbnail(1030912,"75155",'BRRITISH LANDSCAPE 1 OIL ON CANVAS 12X14"',"BRITISHLANDSCAPE1_thumb.jpg",130,160,1);thumbnails[1052983]=new thumbnail(1052983,"75155","REALLY THERE","really there1_thumb.jpg",130,166,1);thumbnails[1030933]=new thumbnail(1030933,"75155",'STILL THERE OIL ON CANVAS 12X14"',"STILLTHERE_thumb.jpg",130,158,1);thumbnails[1031056]=new thumbnail(1031056,"75155","","PANORAMA- A_thumb.jpg",130,97,1);thumbnails[1116851]=new thumbnail(1116851,"75155","dartmoor pony","050_50horse72small_thumb.jpg",130,176,1);thumbnails[1116852]=new thumbnail(1116852,"75155","white ewe. black lamb. ","051_51b&wewelamb72_thumb.jpg",130,165,1);thumbnails[1116853]=new thumbnail(1116853,"75155","","gorse172_thumb.jpg",130,170,1);thumbnails[1052963]=new thumbnail(1052963,"75155","panorama oil on canvas !x12 panels 6x8 ins ","PANORAMA4_thumb.jpg",130,98,1);thumbnails[1820194]=new thumbnail(1820194,"75155","THE DIVINE WORKSHOP : oil on canvas 100cmx110cm<br>\r\n( MY STUDIO ON DARTMOOR)","work__RA_004_thumb.jpg",130,146,1);thumbnails[914292]=new thumbnail(914292,"74695",'"ROSES"2 oil on canvas 10"x10"',"roses272_thumb.jpg",130,133,1);thumbnails[995737]=new thumbnail(995737,"74695","red roses 1 10x10ins<br>\r\noil on canvas","roses1721_thumb.jpg",130,121,1);thumbnails[2741017]=new thumbnail(2741017,"151513","the studio in July <br>\r\nso much going on in July and August . The studio is so beautiful . flowers and buds and leaves everywhere my spirit reflected everywhere in the studio and outside too","summer landscape studio_thumb.jpg",130,98,1);thumbnails[3752506]=new thumbnail(3752506,"151513","Summer Pallette","Saatchi_application_inc_pos_profile_pic_016_thumb.jpg",130,98,1);thumbnails[2849714]=new thumbnail(2849714,"151513",'summer landscape .<br>\r\nNo1 in series "art and nature',"detail summer landscape_thumb.jpg",130,98,1);thumbnails[2849710]=new thumbnail(2849710,"151513","September 2oo8 think everything is going to be in progress for the forseeable future I may have reached a major watershed my pallette is starting to look more interesting than my paintings","summer landscape detail_thumb.jpg",130,98,1);thumbnails[914046]=new thumbnail(914046,"69615","'SEARCHING FOR CLUES IN THE HEART OF ENGLAND'","roz2_thumb.jpg",130,158,1);thumbnails[4484214]=new thumbnail(4484214,"258509","","long_stones_1_thumb.jpg",130,51,1);thumbnails[4484221]=new thumbnail(4484221,"258509","","long_stones_2_thumb.jpg",130,51,1);thumbnails[4484224]=new thumbnail(4484224,"258509","","long_stones_3_thumb.jpg",130,51,1);thumbnails[4484227]=new thumbnail(4484227,"258509","","long_stones_4_thumb.jpg",130,328,1);thumbnails[4484241]=new thumbnail(4484241,"258509","","long_stones_6_thumb.jpg",130,328,1);thumbnails[997238]=new thumbnail(997238,"74825","NATURE OF THE ARTIST 1991","drift_thumb.jpg",130,185,1);thumbnails[995912]=new thumbnail(995912,"74714",'MALE 1 5.48"X6.98"<br>\r\nink on paper 1997',"NUDEMALE1_thumb.jpg",130,211,1);thumbnails[997241]=new thumbnail(997241,"74825","wood","driftactaul_thumb.jpg",130,213,1);thumbnails[996089]=new thumbnail(996089,"74714",'STANDING MALE FIGURE 6"X9"',"nude malestanding72_thumb.jpg",130,204,1);thumbnails[997243]=new thumbnail(997243,"74825","dog","Ruby_thumb.jpg",130,280,1);thumbnails[3303292]=new thumbnail(3303292,"200966","oil ,marbledust on canvas 10x12 ins","paintings Autumn 004 edited_thumb.jpg",130,177,1);thumbnails[4412740]=new thumbnail(4412740,"258509","","stones_on_gold_3_jpg_thumb.jpg",130,133,1);thumbnails[997244]=new thumbnail(997244,"74825","man","steve_thumb.jpg",130,282,1);thumbnails[4412736]=new thumbnail(4412736,"258509","","stones_on_gold_1_thumb.jpg",130,131,1);thumbnails[996121]=new thumbnail(996121,"74714",'STANDING MALE no.2<br>\r\n  ink on paper<br>\r\n     8"X6"',"STANDINGMALE2_thumb.jpg",130,187,1);thumbnails[3303295]=new thumbnail(3303295,"200966","Autumn 2","paintings Autumn 001edited_thumb.jpg",130,167,1);thumbnails[4412738]=new thumbnail(4412738,"258509","","stones_on_gold_2_jpg_thumb.jpg",130,129,1);thumbnails[3303297]=new thumbnail(3303297,"200966","Autumn 3","paintings Autumn 003 edited_thumb.jpg",130,165,1);thumbnails[3303299]=new thumbnail(3303299,"200966","Autumn 4","paintings Autumn 002 edited_thumb.jpg",130,167,1);thumbnails[3296131]=new thumbnail(3296131,"200962","The winter is a time when I become very internal . This is reflected in the subject matter that I choose to paint . <br>\r\nThis can extend to internal psychological and emotional representations. <br>\r\nAnother aspect of winter  that I tend to express are the  celebrations that we associate with the season","paintings winter 2008 0021_thumb.jpg",130,98,1);thumbnails[3372227]=new thumbnail(3372227,"200962","winter no 1","Miscelaneous 003_thumb.jpg",130,98,1);thumbnails[3372236]=new thumbnail(3372236,"200962","winter no 2","winter 1_thumb.jpg",130,109,1);thumbnails[3296171]=new thumbnail(3296171,"200962","Winter :Still life","paintings winter 2008 003_thumb.jpg",130,98,1);thumbnails[3752780]=new thumbnail(3752780,"74727","","satyr_1_thumb.jpg",130,173,1);thumbnails[3752782]=new thumbnail(3752782,"74727","","satyr_and_pudenda_thumb.jpg",130,173,1);thumbnails[3752805]=new thumbnail(3752805,"74727","","nymph_and_satyre_5-1_thumb.jpg",130,98,1);thumbnails[3752808]=new thumbnail(3752808,"74727","","nymph_and_satyre_etc_005-1_thumb.jpg",130,96,1);thumbnails[3752810]=new thumbnail(3752810,"74727","","nymph_and_satyre_etc_013-1_thumb.jpg",130,173,1);thumbnails[3752812]=new thumbnail(3752812,"74727","","nymph_and_satyr_3-2_thumb.jpg",130,188,1);thumbnails[1030961]=new thumbnail(1030961,"113615",'PASTORAL BRITAIN OIL ON CANVAS 12X14"',"PASTORAL 2_thumb.jpg",130,154,1);thumbnails[1052571]=new thumbnail(1052571,"76962","","HIGH WIRE_thumb.jpg",130,133,1);thumbnails[1052563]=new thumbnail(1052563,"76962","","CIRCUSCANON_thumb.jpg",130,137,1);thumbnails[1052559]=new thumbnail(1052559,"76962","","EXIT THE RING_thumb.jpg",130,126,1);thumbnails[1820092]=new thumbnail(1820092,"113615","tired ewe and newborn lamb ;2003<br>\r\noil on canvas 100cm x110","ewe&lamb_thumb.jpg",130,144,1);thumbnails[1031283]=new thumbnail(1031283,"76962","ITS A BLOODY CIRCUS ;1/100 ANIMATION CELLS","INTO THE RING,BLOOD ON THE SADLE_thumb.jpg",130,123,1);thumbnails[4688637]=new thumbnail(4688637,"80257","design and illustration 1990","fashion_illustration_thumb.jpg",130,203,1);thumbnails[1116900]=new thumbnail(1116900,"85647",'decoration 1  for hand thrown ceramic mugs<br>\r\n"Celebrating Nature "series.',"mug design 2fauns72_thumb.jpg",130,87,1);thumbnails[1116898]=new thumbnail(1116898,"85647",'decoration 2 for hand thrown ceramic  mugs<br>\r\n"Celebrating nature " series 1994',"000_0407mug designfaunhorse72_thumb.jpg",130,87,1);thumbnails[1116895]=new thumbnail(1116895,"85647",'decoration 3 for hand-thrown ceramic mugs<br>\r\n"Celebrating nature" series',"mugdesignhead72_thumb.jpg",130,83,1);thumbnails[1820005]=new thumbnail(1820005,"85647","drawing a rose (mural) ","DRAWING ROSES 2007 72_thumb.jpg",130,98,1);thumbnails[1954287]=new thumbnail(1954287,"81627","Joyful Dancing bowl (diameter 20cm )","joyful dancing bowl_thumb.jpg",130,109,1);thumbnails[1954314]=new thumbnail(1954314,"81627","FREEDOM AND JOY BOWL","freedomand joy bowl_thumb.jpg",130,122,1);thumbnails[1994560]=new thumbnail(1994560,"133873","I love to share my studio and my skills with others and to that end I have devised a way to give tutorials and offer space for those clients who have tutorials on one day per week ","with ev and marion hair_thumb.jpg",130,98,1);var galleries=new Object();galleries[240013]=new gallery(240013,"3961824,3961822,3961820,3961818,3961817","2009","section190704",[3961820,3961822,3961824,3961818,3961817]);galleries[85676]=new gallery(85676,"1192469","BOOK ","section97910",[1192469]);galleries[74781]=new gallery(74781,"996938","Final year 1986","section97910",[996938]);galleries[258506]=new gallery(258506,"4412773,4412767,4412658,4411954,4411953,4411952","WILD SHORE ;WIDE SKY","section312076",[4411952,4411953,4412658,4412767,4412773,4411954]);galleries[74701]=new gallery(74701,"913935","ART COLLEGE","section97910",[]);galleries[74691]=new gallery(74691,"2741025","Botanical  ","section97910",[2741025,995801,995824,1820024,1820043,1820048]);galleries[70972]=new gallery(70972,"913935","GRADUATION 1986","section97910",[913935,996882,996899,996898,996950]);galleries[148832]=new gallery(148832,"2319713,2264174","Spring 2008","section190704",[3752898,3682899,3682881,2264174,2272283,3683042,3683043,3682643,2319713]);galleries[68061]=new gallery(68061,"997259","1986 THE JOURNEY BEGINS IN THE STUDIO AND MY HEART","section97910",[887366,997259]);galleries[75155]=new gallery(75155,"1030933","DARTMOOR","section282219",[1031000,1031050,1031028,1010498,1030912,1052983,1030933,1031056,1116851,1116852,1116853,1052963,1820194]);galleries[74695]=new gallery(74695,"995737","RED ROSES 1987","section97910",[914292,995737]);galleries[151513]=new gallery(151513,"2849710","Summer","section190704",[2741017,3752506,2849714,2849710]);galleries[69615]=new gallery(69615,"914046","1987 Studio in Susssex","section97910",[914046]);galleries[200966]=new gallery(200966,"3303292","Autumn","section190704",[3303292,3303295,3303297,3303299]);galleries[74825]=new gallery(74825,"997238","Beyond Botany :an installation ","section97910",[997238,997241,997243,997244]);galleries[74707]=new gallery(74707,"2741025,997238","NATURE","section97910",[]);galleries[258509]=new gallery(258509,"4484241,4484227,4484224,4484221,4484214,4412740,4412738,4412736","STONES ","section312076",[4484214,4484221,4484224,4484227,4484241,4412740,4412736,4412738]);galleries[74714]=new gallery(74714,"996121,996089,995912","THE HUMAN FIGURE","section97910",[995912,996089,996121]);galleries[258477]=new gallery(258477,"","THE SEA","section190704",[]);galleries[200962]=new gallery(200962,"3372236,3372227,3296171,3296131","winter 2008","section190704",[3296131,3372227,3372236,3296171]);galleries[74727]=new gallery(74727,"3752812,3752810,3752808,3752805,3752782,3752780","EROTIC AVENUE","section97910",[3752780,3752782,3752805,3752808,3752810,3752812]);galleries[76962]=new gallery(76962,"1052571,1052563,1052559,1031283","CIRCUS","section97910",[1052571,1052563,1052559,1031283]);galleries[113615]=new gallery(113615,"1820092","In the wake of William Blake","section282219",[1030961,1820092]);galleries[258519]=new gallery(258519,"","RECONNECTION & RECLAIMATION","section282219",[]);galleries[80257]=new gallery(80257,"4688637","Fashion","section97910",[4688637]);galleries[85647]=new gallery(85647,"1820005,1116900","Decoration/surface/textile design","section97910",[1116900,1116898,1116895,1820005]);galleries[81175]=new gallery(81175,"","DARTMOOR & THE DIVINE WORKSHOPContemporary Landsca","section97910",[]);galleries[81627]=new gallery(81627,"1954287","Ceramics","section97910",[1954287,1954314]);galleries[76961]=new gallery(76961,"1192469","ILLUSTRATION","section97910",[]);galleries[133873]=new gallery(133873,"1994560","THE STUDIO 2008","section97910",[1994560]);var imageSets=new Object();imageSets[1]="1192224,933297";imageSets[2]="3303292,2849710,2741025,2319713,2264174,1994560,1954287,1820092,1820005,1192469,1116900,1030933,997259,997238,995737,913935";imageSets[3]="4688637,4484241,4484227,4484224,4484221,4484214,4412773,4412767,4412740,4412738,4412736,4412658,4411954,4411953,4411952,3961824,3961822,3961820,3961818,3961817,3752898,3752812,3752810,3752808,3752805,3752782,3752780,3752506,3683043,3683042,3682899,3682881,3682643,3372236,3372227,3303299,3303297,3303295,3303292,3296171,3296131,2849714,2849710,2741025,2741017,2319713,2272283,2264174,1994560,1954314";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/annerussell/images";break}switch(a){case 1:b="http://www1.clikpic.com/annerussell/images";break}switch(a){case 2:b="http://admin.clikpic.com/annerussell/images";break}switch(a){case 24:b="http://tpc15/clikpic/annerussell/images";break}switch(a){case 4:b="http://www.clikchurch.com/annerussell/images";break}switch(a){case 5:b="http://www2.clikpic.com/annerussell/images";break}switch(a){case 22:b="http://tpc5/clikpic/annerussell/images";break}switch(a){case 23:b="http://tpc10/clikpic/annerussell/images";break}switch(a){case 25:b="http://tpc16/clikpic/annerussell/images";break}switch(a){case 15:b="http://www3.clikpic.com/annerussell/images";break}switch(a){case 18:b="http://www4.clikpic.com/annerussell/images";break}switch(a){case 19:b="http://www5.clikpic.com/annerussell/images";break}switch(a){case 31:b="http://www7.clikpic.com/annerussell/images";break}switch(a){case 32:b="http://admin2.clikpic.com/annerussell/images";break}switch(a){case 33:b="http://www8.clikpic.com/annerussell/images";break}switch(a){case 34:b="http://www9.clikpic.com/annerussell/images";break}switch(a){case 35:b="http://admin3.clikpic.com/annerussell/images";break}switch(a){case 37:b="http://admin4.clikpic.com/annerussell/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("section282219"!=""){if(backgrounds[imageID].galleries_id!=""){html+='<a href="'+backgrounds[imageID].section_code+"_"+backgrounds[imageID].galleries_id+'.html">'}else{html+='<a href="section282219.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("section282219"!=""){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="ANNE RUSSELL  : "+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+'")'})}}};