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[6625691]=new thumbnail(6625691,"313206","Feature in the Bournemouth Echo , 24th August 2010.   ","echo-24th-Aug-2010_thumb.jpg",130,95,5);thumbnails[5165310]=new thumbnail(5165310,"","Keira with Bonnie at the launch of Obama Music at the Sanctum Soho Hotel.","Keira-and-Bonnie_thumb.jpg",130,173,5);thumbnails[3147454]=new thumbnail(3147454,"293550","'Aishwarya Rai', Acrylic paint on canvas, commission, 2007","aishwaryarai_thumb.jpg",130,175,5);thumbnails[3147464]=new thumbnail(3147464,"293550","'Bhanwar' Acrylic on canvas, commission, 2007","bhanwar_thumb.jpg",130,195,5);thumbnails[3147470]=new thumbnail(3147470,"293550","'Shilpa Shetty' Acrylic paint on canvas, commission, 2007.","shilpashetty_thumb.jpg",130,385,5);thumbnails[3149947]=new thumbnail(3149947,"294580","'Cherie', Typeface (typed portrait) on paper, 2003/4","cherie_thumb.jpg",130,190,5);thumbnails[3150055]=new thumbnail(3150055,"293549","'Pina and Soloman', Commissioned Typeface (typed portrait) on paper, 2007","pinaandsoliman_thumb.jpg",130,280,5);thumbnails[3150061]=new thumbnail(3150061,"294580","'Serge Gainsbourg', Typeface (typed portrait) on paper, 2007.","sergegainsbourg_thumb.jpg",130,153,5);thumbnails[3150070]=new thumbnail(3150070,"294580","'The Three Musketeers', Typeface triptych (typed portraits) on paper, 2005.  Exhibited in solo show 'Have You Been Drinking.....?' at The Orchard Inn, Bristol 2005. ","the3muscateers_thumb.jpg",130,62,5);thumbnails[3150076]=new thumbnail(3150076,"294580","'Times Mag Model' typewriter drawing on paper, 2008.","timesmagmodel_thumb.jpg",130,298,5);thumbnails[3150078]=new thumbnail(3150078,"294580","'Times Luxx Magazine Model', Typeface (typed portrait) on paper, 2008.","timesluxx1_thumb.jpg",130,94,5);thumbnails[3150083]=new thumbnail(3150083,"294582","'Why I Love Bournemouth Pier in Under 100 Words', triptych, typewriter drawings on paper, 2008.  SOLD","KeiraRathboneWhyILoveBournemouthPierInUnder100Words150_thumb.jpg",130,57,5);thumbnails[3226308]=new thumbnail(3226308,"293549","Designed limited edition travel wallets for London Fashion Week event 'On|Off' at the Royal Academy, September 2008.","onofftravelwallets_thumb.jpg",130,87,5);thumbnails[3226440]=new thumbnail(3226440,"294697","This brilliant mention from Elle, by Laurelle Gilbert, Sept 2008.","elle_thumb.jpg",130,127,5);thumbnails[3315153]=new thumbnail(3315153,"294694","Feature in the Echo, 12th Jan 2009","Typewriterartist2_thumb.jpg",130,167,5);thumbnails[3491416]=new thumbnail(3491416,"294580","'Mrs.Jagger', Typeface (typed portrait) on paper, 2008.","bianca_thumb.jpg",130,141,5);thumbnails[3491417]=new thumbnail(3491417,"294580","'Miss. Turlington', Typeface (typed portrait) on paper, 2008.","christy_thumb.jpg",130,180,5);thumbnails[3491499]=new thumbnail(3491499,"294580","'Male Model', Typeface (typed portrait) on paper, 2008.","malemodel1_thumb.jpg",130,179,5);thumbnails[3491509]=new thumbnail(3491509,"294580","'Miss. Moss', Typeface (typed portrait) on paper, 2008.","missmoss20s_thumb.jpg",130,200,5);thumbnails[3491571]=new thumbnail(3491571,"294581","'Windfall (Apple)', Typewriter drawing on paper, 2008.","appleincolour_thumb.jpg",130,252,5);thumbnails[3491578]=new thumbnail(3491578,"294581","'Branches', Typewriter drawing on paper, 2008.","branches_thumb.jpg",130,200,5);thumbnails[3491591]=new thumbnail(3491591,"294581","'Typed Forest', Typewriter drawing on 4 A4 pieces of paper, 2008.","KeiraRathboneTypedForest150_thumb.jpg",130,90,5);thumbnails[3491703]=new thumbnail(3491703,"294694","Feature in the The Mail, January 2009.","mailonline_thumb.jpg",130,277,5);thumbnails[3491740]=new thumbnail(3491740,"294694","Feature in The Sun newspaper, Jan 2009.","sun_thumb.jpg",130,99,5);thumbnails[3491844]=new thumbnail(3491844,"294694","Feature in The Telegraph, Jan 2009.","telegraph_thumb.jpg",130,295,5);thumbnails[3601726]=new thumbnail(3601726,"294694","Hong Kong newspaper article","ODN090117-Typerwriter-Artist_thumb.jpg",130,103,5);thumbnails[4898093]=new thumbnail(4898093,"293549","Bonnie Greer commissioned Keira to produce the artwork for her book Obama Music.","Keira-Rathbones-cover-for-Obama-Music-by-Bonnie-Greer_thumb.jpg",130,178,5);thumbnails[5165272]=new thumbnail(5165272,"293549","Typewriter artwork for the cover of Bonnie Greer's new book 'Obama Music'.","Obama-Music-all-angles_thumb.jpg",130,31,5);thumbnails[5198493]=new thumbnail(5198493,"293549","Commission of Wimborne Minster church, Dorset.  ","Wimborne-Minster_thumb.jpg",130,170,5);thumbnails[5198496]=new thumbnail(5198496,"293550","Hazy Poole Bay, Dorset.  Acrylic and ink on canvas","nursing-home-finished_thumb.jpg",130,220,5);thumbnails[5198499]=new thumbnail(5198499,"293550","Kalk Bay Fishermen, South Africa.  Acrylic and ink on canvas","kalk-bay-fishermen_thumb.jpg",130,98,5);thumbnails[5198505]=new thumbnail(5198505,"293549","The winner of the Poole Writer's Circle poetry competition (Kate Myall with 'Trees in Autumn') had her poem interpreted by Keira into a work of typewriter art.  ","Trees-in-Autumn-interpreted-into-type-by-Keira-Rathbone-July-2009_thumb.jpg",130,258,5);thumbnails[5198509]=new thumbnail(5198509,"293549","Keira was commissioned by Malcolm Middleton to create the cover artwork for his latest album 'Waxing Gibbous'. ","Keira-Rathbone-cover-for-Malcolm-Middleton-Waxing-Gibbous_thumb.jpg",130,130,5);thumbnails[5198523]=new thumbnail(5198523,"293549","Typed portrait of Bonnie Greer, for the back cover of 'Obama Music'.","Keira-Rathbone-Bonnie-Greer-300dpi_thumb.jpg",130,188,5);thumbnails[5198524]=new thumbnail(5198524,"293549","Keira created this typing of a vintage Dansette record player, for the inside flap of 'Obama Music'.","Keira-Rathbone-Dansette-300dpi-_thumb.jpg",130,182,5);thumbnails[5198525]=new thumbnail(5198525,"293549","Keira created this typed musical paper for the Bonnie Greer 'Obama Music' commission.","Keira-Rathbone-Manuscript-300dpi-_thumb.jpg",130,118,5);thumbnails[5224945]=new thumbnail(5224945,"293550","Peacock Painting, under the bar at Bollywood Restaurant, Dorset.  Acrylics, ink and varnish on MDF board.  1 x 2m.","peacock-bar-piece_thumb.jpg",130,45,5);thumbnails[5224957]=new thumbnail(5224957,"293550","Bollywood Restaurant bar, Dorset.  2008","bollywood-bar_thumb.jpg",130,121,5);thumbnails[5224973]=new thumbnail(5224973,"293550","Deewaar, Acyrilcs on canvas, 2007.","DSC_0180_thumb.jpg",130,184,5);thumbnails[5224976]=new thumbnail(5224976,"293550","Geet, Acrylics on canvas, 2007.","geet-painting_thumb.jpg",130,198,5);thumbnails[5224977]=new thumbnail(5224977,"293550","Kahan Kismat Ki, Acrylics on canvas, 2007.","kahan-kismat-ki-painting_thumb.jpg",130,186,5);thumbnails[5224993]=new thumbnail(5224993,"","Keira with The Holloways and Bonnie Greer at the Sanctum Soho Hotel for Bonnie & Keira's collaborative launch of Obama Music, Nov, 2009.","Keira-Holloways-and-Bonnie_thumb.jpg",130,125,5);thumbnails[5225147]=new thumbnail(5225147,"294697","Exhibition featured in the Wessex Muse Magazine.","musearticle_thumb.jpg",130,181,5);thumbnails[5225197]=new thumbnail(5225197,"294697","Wessex Muse Magazine, Feb 2008.","musefeb2008pg1_thumb.jpg",130,180,5);thumbnails[5225199]=new thumbnail(5225199,"294697","Rebekah Roy's Fashion Blog, Sept 2008.","rebekahroyblog_thumb.jpg",130,216,5);thumbnails[5225246]=new thumbnail(5225246,"294694","Article in La Folha, Brazilian newspaper & online.","la-folha-article_thumb.jpg",130,101,5);thumbnails[5225270]=new thumbnail(5225270,"294694","BBC Brasil feature, Jan 2009.","bbc-brasil_thumb.jpg",130,210,5);thumbnails[5225338]=new thumbnail(5225338,"294694","Camden New Journal, Islington Tribune and West End Extra feature Bonnie and Keira's launch night.  Nov 2009. ","Camden-new-journal_thumb.jpg",130,109,5);thumbnails[5226191]=new thumbnail(5226191,"293549","Typing onto leather, customised bag for Knomo's charity auction, LFW Sept 2008.","knomo-bag-on-leather_thumb.jpg",130,170,5);thumbnails[5229453]=new thumbnail(5229453,"294580","One of a series of five Typefaces of Russian children, produced for the 'Love Russia Love Music' concerts at the British Embassy in Moscow, Sept 2009.","russian-child-at-fence_thumb.jpg",130,211,5);thumbnails[5229455]=new thumbnail(5229455,"294580","One of a series of five Typefaces of Russian children, produced for the 'Love Russia Love Music' concerts at the British Embassy in Moscow, Sept 2009.","russian-children_thumb.jpg",130,182,5);thumbnails[5229458]=new thumbnail(5229458,"294580","One of a series of five Typefaces of Russian children, produced for the 'Love Russia Love Music' concerts at the British Embassy in Moscow, Sept 2009.","Russian-child-with-chair-_thumb.jpg",130,211,5);thumbnails[5229464]=new thumbnail(5229464,"294859","Typing created by Keira at live sessions in 'The Library in the Woods', of the Library in the Woods at The End of the Road Festival Sept 2009.","typing-in-the-library-in-the-woods-EOTR-2009_thumb.jpg",130,171,5);thumbnails[5229467]=new thumbnail(5229467,"294859","Moscow Musical Montage - To relate the improvised nature of the 'Love Russia Love Music' concerts, Keira created these observations from the two venues The State Humanitarian Centre and The British Embassy, Moscow Sept 2009. ","Musical-Montage---Love-Russia-Love-Music-concerts_thumb.jpg",130,203,5);thumbnails[5229484]=new thumbnail(5229484,"294582","Hammersmith Bridge Triptych, Nov 2009.","hammersmith-bridge_thumb.jpg",130,49,5);thumbnails[5229530]=new thumbnail(5229530,"294859","Series of four 'Salisbury Impressions', specially created for Painting Vs Printing exhibition at L'Usine, Aug 2009.","Keira-Rathbone-Interesting-Type-of-Window_thumb.jpg",130,130,5);thumbnails[5229533]=new thumbnail(5229533,"294859","Series of four 'Salisbury Impressions', specially created for Painting Vs Printing exhibition at L'Usine, Aug 2009.","Keira-Rathbone-Lovely-Old-Knocker_thumb.jpg",130,130,5);thumbnails[5334947]=new thumbnail(5334947,"294582","Branksome Dean Community Hall in Dorset, typed in November 2009.","branksome-dean-community-hall-typed-nov-dec-2009_thumb.jpg",130,119,5);thumbnails[5528487]=new thumbnail(5528487,"313206","Front cover of the Camden, Islington and West End Review papers, Feb 11th & 12th .","Camden-New-Journal-Feb-11th-2010_thumb.jpg",130,134,5);thumbnails[5528497]=new thumbnail(5528497,"313206","Review in Camden, Islington and West End Review papers.","review-from-the-islington-camden--west-end-newspapers-feb-2010_thumb.jpg",130,33,5);thumbnails[5617872]=new thumbnail(5617872,"293549","Front cover typewriter artwork for Diplomat Magazine March 2010.","diplomat-march-2010_thumb.jpg",130,186,5);thumbnails[6411520]=new thumbnail(6411520,"354220","Detail from 'Windfall#2 Apple' limited edition mini-print number 1 of 4.","detail-from-Windfall-2-Apples_thumb.jpg",130,131,5);thumbnails[6411524]=new thumbnail(6411524,"354220","Detail from 'Live Typing @ Suspension Bridge, Drawing Exhange Bristol 2009' limited edition mini-print number 1 of 4.","detail-from-Suspension-Bridge-Drawing-Exchange-2009_thumb.jpg",130,131,5);thumbnails[6411527]=new thumbnail(6411527,"354220","Detail from 'Why I Love Bournemouth Pier in Under 100 Words' limited edition mini-print number 1 of 4.","detail-from-Why-I-Love-Bournemouth-Pier-in-Under-100-Words_thumb.jpg",130,131,5);thumbnails[6411533]=new thumbnail(6411533,"354220","Detail from 'Gruesome Gargoil from Salisbury Impressions' limited edition mini-print number 1 of 4.","detail-of-Gruesome-Gargoil-from-Salisbury-Impressions_thumb.jpg",130,129,5);thumbnails[6411540]=new thumbnail(6411540,"354220","Detail 2 from 'Miss Moss' limited edition mini-print number 1 of 4.","detail-2-of-Miss-Moss_thumb.jpg",130,131,5);thumbnails[6411542]=new thumbnail(6411542,"354220","Detail from 'Ms.Turlington' limited edition mini-print number 1 of 4.","detail-from-msturlington_thumb.jpg",130,131,5);thumbnails[6411544]=new thumbnail(6411544,"354220","Detail from 'Ms.Jagger' limited edition mini-print number 1 of 4.","detail-from-msJagger_thumb.jpg",130,131,5);thumbnails[6411545]=new thumbnail(6411545,"354220","Detail 1 from 'Miss Moss' limited edition mini-print number 1 of 4.","detail-from-Miss-Moss_thumb.jpg",130,132,5);thumbnails[6411548]=new thumbnail(6411548,"354220","Detail from 'Miss.Christensen' limited edition mini-print number 1 of 4.","detail-of-MsChristensen_thumb.jpg",130,133,5);thumbnails[6422818]=new thumbnail(6422818,"294859","Two Typewriters, diptych (with detail below). 2010.","two-typewriters-plus-a-detail-below_thumb.jpg",130,152,5);thumbnails[6422833]=new thumbnail(6422833,"294859","Cyrillic Banana, (with detail below). 2010","Cyrillic-Banana-with-detail-below_thumb.jpg",130,256,5);thumbnails[6683176]=new thumbnail(6683176,"313206","Metro feature , 6th September 2010.","metro-6th-sept-2010_thumb.jpg",130,69,5);thumbnails[3149988]=new thumbnail(3149988,"294585","Still from 'If You're Interested, Come and Have a Look' film 2005.","coventperformerstyping1_thumb.jpg",130,104,5);thumbnails[3533866]=new thumbnail(3533866,"294585","Live Typing at London Fashion Week event 'On|Off' September 2008.","K-Typing-at-OnOff-by-Char_thumb.jpg",130,87,5);thumbnails[4274074]=new thumbnail(4274074,"294585","Live typewriter art session at an intimate gathering of female performance artists, organised by Klarita Pandolfi from Tate Britain Information Department, Stoke Newington, Weds 8th July 2009. ","bardens-boudoir--8th-july-2009-photographed-by-stephen-mahoney_thumb.jpg",130,173,5);thumbnails[4899163]=new thumbnail(4899163,"294585","Keira Typing at The End of the Road Festival's 'Library in the Woods', Sept 2009.","library-in-the-woods-typing21_thumb.jpg",130,195,5);thumbnails[5229471]=new thumbnail(5229471,"294585","Wimborne Minster commission in progress.","detail-of-wimb-minst-in-typewriter_thumb.jpg",130,173,5);thumbnails[5528526]=new thumbnail(5528526,"294585","Keira typing live the the private view of the Everyman exhibition, 4th Feb 2010.","Keira-Rathbone-Exhibition-_Photo1_By-Daryl-Rita-Osekreh_-4-Feb-2010_thumb.jpg",130,152,5);thumbnails[3147708]=new thumbnail(3147708,"293538","'Cyclamen Pattern' ink on paper, 2007","cyclamen_thumb.jpg",130,133,5);thumbnails[3149337]=new thumbnail(3149337,"293538","'Linear Cyclamen Pattern' ink on paper, 2007","cyclamenlinearpattern_thumb.jpg",130,291,5);thumbnails[3149406]=new thumbnail(3149406,"293538","'Fig Pattern' ink on paper, 2007.","figpattern_thumb.jpg",130,133,5);thumbnails[3149416]=new thumbnail(3149416,"293538","'Forsythia Pattern' ink on paper, 2007.","forsythiapattern_thumb.jpg",130,132,5);thumbnails[3149421]=new thumbnail(3149421,"293538","'Iris Pattern' ink on paper, 2007.","irispattern_thumb.jpg",130,133,5);thumbnails[3149428]=new thumbnail(3149428,"293538","'Leaves Pattern 1', ink on paper, 2007.","pattern1_thumb.jpg",130,132,5);thumbnails[3147178]=new thumbnail(3147178,"293539","'Dear Old Couple', black ink on paper, 2003.","dearoldcouple_thumb.jpg",130,207,5);thumbnails[3147323]=new thumbnail(3147323,"293539","'Strange Couple' Black ink on paper, 2003","drawing1_thumb.jpg",130,186,5);thumbnails[3147329]=new thumbnail(3147329,"293539","'Flower Lady' Black ink on paper, 2003","flowerlady_thumb.jpg",130,206,5);thumbnails[3147337]=new thumbnail(3147337,"293539","'Man 2' Black ink on paper, 2003","man2_thumb.jpg",130,204,5);thumbnails[3147348]=new thumbnail(3147348,"293539","'Man 1' Black ink on paper, 2003","man_thumb.jpg",130,166,5);thumbnails[3147352]=new thumbnail(3147352,"293539","'Dear Old Lady' Black ink on paper, 2003","oldlady_thumb.jpg",130,196,5);var galleries=new Object();galleries[293550]=new gallery(293550,"5224976,5198496","Commissioned Paintings","section351388",[3147454,3147464,3147470,5198496,5198499,5224945,5224957,5224973,5224976,5224977]);galleries[293549]=new gallery(293549,"5617872,4898093","Commissioned Typewriter Art","section351388",[3150055,3226308,4898093,5165272,5198493,5198505,5198509,5198523,5198524,5198525,5226191,5617872]);galleries[354220]=new gallery(354220,"6411548,6411545,6411544,6411542,6411540,6411533,6411527,6411524,6411520","Mini Prints","section422440",[6411520,6411524,6411527,6411533,6411540,6411542,6411544,6411545,6411548]);galleries[294697]=new gallery(294697,"5225199,5225197,5225147,3226440","Press - 2008","section238255",[3226440,5225147,5225197,5225199]);galleries[294694]=new gallery(294694,"3601726","Press - 2009","section238255",[3315153,3491703,3491740,3491844,3601726,5225246,5225270,5225338]);galleries[313206]=new gallery(313206,"6625691","Press - 2010","section238255",[6625691,5528487,5528497,6683176]);galleries[294582]=new gallery(294582,"5229484,3150083","Typewriter Art - Architecture","gallery",[3150083,5229484,5334947]);galleries[294580]=new gallery(294580,"5229458,3491499","Typewriter Art - Human Nature","gallery",[3149947,3150061,3150070,3150076,3150078,3491416,3491417,3491499,3491509,5229453,5229455,5229458]);galleries[294859]=new gallery(294859,"5229467","Typewriter Art - Still Life","gallery",[5229464,5229467,5229530,5229533,6422818,6422833]);galleries[294581]=new gallery(294581,"3491591,3491578","Typewriter Art - The Natural World","gallery",[3491571,3491578,3491591]);galleries[294585]=new gallery(294585,"5528526","Live Typewriter Art - Videos & Stills","gallery",[3149988,3533866,4274074,4899163,5229471,5528526]);galleries[293538]=new gallery(293538,"3149337","Line Drawing - patterns from nature","section347200",[3147708,3149337,3149406,3149416,3149421,3149428]);galleries[293539]=new gallery(293539,"3147352","Line Drawing - People","section347200",[3147178,3147323,3147329,3147337,3147348,3147352]);var imageSets=new Object();imageSets[1]="6683176,6625691,6422818,5617872,5528526,5528487,5165310,4898093";imageSets[2]="6625691,5617872,5528526,5229484,5229467,5229458,5224976,5198496,4898093,3601726,3491591,3491578,3491499,3150083,3149337,3147352";imageSets[3]="3491571";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/KRathbone/images";break}switch(a){case 1:b="http://www1.clikpic.com/KRathbone/images";break}switch(a){case 2:b="http://admin.clikpic.com/KRathbone/images";break}switch(a){case 24:b="http://tpc15/clikpic/KRathbone/images";break}switch(a){case 4:b="http://www.clikchurch.com/KRathbone/images";break}switch(a){case 5:b="http://www2.clikpic.com/KRathbone/images";break}switch(a){case 22:b="http://tpc5/clikpic/KRathbone/images";break}switch(a){case 23:b="http://tpc10/clikpic/KRathbone/images";break}switch(a){case 25:b="http://tpc16/clikpic/KRathbone/images";break}switch(a){case 15:b="http://www3.clikpic.com/KRathbone/images";break}switch(a){case 18:b="http://www4.clikpic.com/KRathbone/images";break}switch(a){case 19:b="http://www5.clikpic.com/KRathbone/images";break}switch(a){case 31:b="http://www7.clikpic.com/KRathbone/images";break}switch(a){case 32:b="http://admin2.clikpic.com/KRathbone/images";break}switch(a){case 33:b="http://www8.clikpic.com/KRathbone/images";break}switch(a){case 34:b="http://www9.clikpic.com/KRathbone/images";break}switch(a){case 35:b="http://admin3.clikpic.com/KRathbone/images";break}switch(a){case 37:b="http://admin4.clikpic.com/KRathbone/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="The Art of Keira Rathbone: "+photos[f].caption;if(photos[f].caption==""){document.getElementById("imageTitle").style.display="none"}else{document.getElementById("imageTitle").style.display="block"}var a=fnGetImageDetails(f);if(a==""){document.getElementById("imageDetails").style.display="none";var c=document.getElementById("infoWrap");var d=document.getElementById("photoInfo");if(photos[f].caption==""){if(c!=null){c.className="empty"}if(d!=null){d.className="empty"}}else{if(c!=null){c.className="noinfo"}if(d!=null){d.className="noinfo"}}}else{document.getElementById("imageDetails").style.display="block";var c=document.getElementById("infoWrap");if(c!=null){c.className="normal"}var d=document.getElementById("photoInfo");if(d!=null){d.className="normal"}}document.getElementById("imageDetails").innerHTML=a;toggleAddToCartConfirm()}else{window.location="photo_"+photos[f].id+".html"}}function toggleAddToCartConfirm(){if($("#paymentConfirm").size()){$("#paymentConfirm").hide();$("#paymentAddButton").unbind().click(function(){form=document.getElementById("paymentForm");option_id=0;if(form.item_option.value){option_id=form.item_option.value}if(addItemToBasket(form.item_number.value,photos,form.site.value,parseInt(form.quantity.value,10),option_id)){if($.browser.msie){$("#paymentConfirm").text("Item added to cart").show()}else{$("#paymentConfirm").text("Item added to cart").fadeIn()}}else{$("#paymentConfirm").text("Item not added - check cookies are enabled in your browser.").fadeIn()}})}}function fnGetImageDetails(b){var a="";if(photos[b].description!=""){a=a+'<p id="imageDescription">'+photos[b].description+"</p>"}if(photos[b].photo_ref!=""){a=a+'<p class="imageinfo" id="imageRef"><strong>Ref: </strong>'+photos[b].photo_ref+"</p>"}if(photos[b].takendate!=""){a=a+'<p class="imageinfo" id="imageDate"><strong>Date: </strong>'+photos[b].takendate+"</p>"}if(photos[b].location!=""){a=a+'<p class="imageinfo" id="imageLocation"><strong>Location: </strong>'+photos[b].location+"</p>"}if(photos[b].photographer!=""){a=a+'<p class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>'+photos[b].photographer+"</p>"}a=a+fnGetPaymentInfo(photos[b]);if(a!=""){a=a+'<div class="spacer"></div>'}return a}function fnGetPaymentInfo(c){var b="";if(c.item_price!==""){b=b+"<p>Buy now using PayPal:</p>";b=b+'<p class="imageinfo" id="imagePrice"><strong>'+c.purchase_instruction+"</strong> 				&pound;"+(c.item_price).toFixed(2)+"</p>";var e=c.purchase_instruction;var d=(c.item_price).toFixed(2);var a=0}else{if(c.payment_groups_id!==""){b=b+"<p>Buy this print online:</p>";b=b+'<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';b=b+'<select class="paymentlink" name="payment_options_id" onchange="updateCartValue(document.forms.paymentForm,this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';b=b+getPaymentOptions(c.payment_groups_id);b=b+"</select>";b=b+"</form>";var a=paymentGroups[c.payment_groups_id].options[0];if(paymentOptions[a]){var e=paymentOptions[a].payment_option;var d=paymentOptions[a].price}}else{}}if(c.item_price!==""||c.payment_groups_id!==""){b=b+'<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm">';b=b+'	<input type="hidden" name="item_option" value="'+a+'">';b=b+'	<input type="hidden" name="site" value="KRATHBONE">';b=b+'	<input type="hidden" name="item_number" value="'+c.id+'">';b=b+'	<input type="hidden" name="quantity" value="1">';b=b+'	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button">';b=b+'	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';b=b+"</form>";b=b+'<div class="clearing">&nbsp;</div>';b=b+'<div id="confirmContainer">';b=b+'<div id="paymentConfirm">Item added to cart</div>';b=b+"</div>";b=b+'<div class="clearing">&nbsp;</div>'}return b}function previous(d,b){var c=d.value;var a=galleries[photos[c].galleries_id].photoIDs;nextImg=getNextId(c,a,1);if(nextImg!=-1){updateImage(nextImg,d,b)}}function showGalleryImage(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+'")'})}}};