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[4822025]=new thumbnail(4822025,"275436","Reverb Youth Cafe","R-Logo_thumb.jpg",130,84,18);thumbnails[4822052]=new thumbnail(4822052,"275436","Remix logo","logo-remix_thumb.jpg",130,66,18);thumbnails[4822054]=new thumbnail(4822054,"275436","Inflo logo","Logo_Inflo_1psd_thumb.jpg",130,130,18);thumbnails[4822056]=new thumbnail(4822056,"275436","EBC Logo","ebc_thumb.jpg",130,123,18);thumbnails[4822310]=new thumbnail(4822310,"275436","NPU Logo","NPU_thumb.jpg",130,163,18);thumbnails[4827480]=new thumbnail(4827480,"275718","Corporate artwork","WMemories1_thumb.jpg",130,98,18);thumbnails[4827484]=new thumbnail(4827484,"275718","Greetings cards","Berystede-Hotel2_thumb.jpg",130,98,18);thumbnails[4827497]=new thumbnail(4827497,"275718","Artist Impressions","Woking-Interior-22_thumb.jpg",130,85,18);thumbnails[4827499]=new thumbnail(4827499,"275718","Favourite places","NEWARK-CASTLE1_thumb.jpg",130,103,18);thumbnails[4827505]=new thumbnail(4827505,"275718","Illustrations","IEnglish1_thumb.jpg",130,111,18);thumbnails[4827509]=new thumbnail(4827509,"275718","Sports","Valentino-Montage1_thumb.jpg",130,92,18);thumbnails[4827525]=new thumbnail(4827525,"275718","Portraits","JT-joined1_thumb.jpg",130,104,18);thumbnails[4827544]=new thumbnail(4827544,"275718","Corporate Livery","Boss-Dog-16401_thumb.jpg",130,95,18);thumbnails[4827555]=new thumbnail(4827555,"275730","Commissioning artwork - Houses<br>\r\n<br>\r\n","Barley3_thumb.jpg",130,101,18);thumbnails[4827581]=new thumbnail(4827581,"275730","Commissioning artwork - People","Jamie-Smith-11_thumb.jpg",130,168,18);thumbnails[4827620]=new thumbnail(4827620,"275730","Creating the picture","JT-joined12_thumb.jpg",130,104,18);thumbnails[4827832]=new thumbnail(4827832,"275435","AEA Technology Pride Park, Derby","Design-plan-1_thumb.jpg",130,189,18);thumbnails[4827849]=new thumbnail(4827849,"275435","Oce (UK) Ltd, London HQ","Design-plan-2_thumb.jpg",130,90,18);thumbnails[4827860]=new thumbnail(4827860,"275435","Parim Offices, Chesham","Design-plan-3_thumb.jpg",130,85,18);thumbnails[4827881]=new thumbnail(4827881,"275435","3D view of typical office layout","Design-1_thumb.jpg",130,98,18);thumbnails[4827994]=new thumbnail(4827994,"275435","3D view of 7 person workstation","Design-2_thumb.jpg",130,82,18);thumbnails[4827999]=new thumbnail(4827999,"275435","Cable channel & framework","Design-3_thumb.jpg",130,165,18);thumbnails[4828010]=new thumbnail(4828010,"275435","Cable channel section","Design-4_thumb.jpg",130,87,18);thumbnails[4828325]=new thumbnail(4828325,"","","old-telephone_thumb.jpg",130,175,18);thumbnails[5213795]=new thumbnail(5213795,"275436","Stepping Stones","Stepping_Stones1_thumb.jpg",130,220,18);thumbnails[4816247]=new thumbnail(4816247,"275186","Bogart - outside South Hill Park - Acrylic","Bogey1_thumb.jpg",130,153,18);thumbnails[4816257]=new thumbnail(4816257,"275186",'Eastwood - "Do you feel lucky?" - Acrylic',"Dirty-Harry-_thumb.jpg",130,195,18);thumbnails[4816272]=new thumbnail(4816272,"275186",'McQueen - "Is this Switzerland?" - Acrylic',"McQueen-_thumb.jpg",130,195,18);thumbnails[4816557]=new thumbnail(4816557,"275186","Role Model? - Acrylic","Role-Model-_thumb.jpg",130,96,18);thumbnails[4816562]=new thumbnail(4816562,"275186","Shall we? - Acrylic","Shall-we-_thumb.jpg",130,98,18);thumbnails[4828818]=new thumbnail(4828818,"275186","Arnie - The Ultimate Bouncer - Acrylic","Arnie-21_thumb.jpg",130,174,18);thumbnails[4829137]=new thumbnail(4829137,"275186","Malawi Dancers - Pen & Ink / Digital","Malawi-3_thumb.jpg",130,166,18);thumbnails[4816587]=new thumbnail(4816587,"275189","Cemetery Junction, Reading - Past & Present - Acrylic","Cemet_Junction_1_thumb.jpg",130,75,18);thumbnails[4816614]=new thumbnail(4816614,"275189","Broad Street, Reading - Past & Present - Mixed media","Broad-Street-1_thumb.jpg",130,77,18);thumbnails[4816617]=new thumbnail(4816617,"275189","Cheney - Past & Present - Mixed media","Cheney_thumb.jpg",130,85,18);thumbnails[4816654]=new thumbnail(4816654,"275189","Bracknell High Street West - Past & Present - Mixed media","Bracknell-High-Street_thumb.jpg",130,86,18);thumbnails[4816657]=new thumbnail(4816657,"275189","Bracknell High Street East - Past & Present - Mixed media","Bracknell_HighSt_East_thumb.jpg",130,81,18);thumbnails[4816658]=new thumbnail(4816658,"275189","Berystede Hotel, Ascot - Mixed media<br>\r\n","Berystede-Hotel_thumb.jpg",130,98,18);thumbnails[4816660]=new thumbnail(4816660,"275189","Woking UR Church - Interior lobby - Mixed media","WURC_Interior_thumb.jpg",130,84,18);thumbnails[4816662]=new thumbnail(4816662,"275189","Woking UR Church - New extension - Acrylic","WURC-Ext_thumb.jpg",130,87,18);thumbnails[4816677]=new thumbnail(4816677,"275189","Wellesley House, Crowthorne (elevation) - Mixed media","Wellesley_thumb.jpg",130,63,18);thumbnails[4816682]=new thumbnail(4816682,"275189","Woking UR Church interior 1","Woking-Interior-1_thumb.jpg",130,89,18);thumbnails[4816684]=new thumbnail(4816684,"275189","Woking UR Church 2","Woking-Interior-2_thumb.jpg",130,85,18);thumbnails[5680396]=new thumbnail(5680396,"275189","Ridgmont - Front view<br>\r\n","Ridgmont-Front_thumb.jpg",130,96,18);thumbnails[5680405]=new thumbnail(5680405,"275189","Ridgmont - Rear view","Ridgmont-Rear_thumb.jpg",130,96,18);thumbnails[4816692]=new thumbnail(4816692,"275187","Matchday - Just before kick-off - Acrylic","Matchday-1_thumb.jpg",130,95,18);thumbnails[4816699]=new thumbnail(4816699,"275187","Matchday - Pre match anticipation - Acrylic","MatchDay-2_thumb.jpg",130,96,18);thumbnails[4816704]=new thumbnail(4816704,"275187",'"It\'s all about to kick-off" - Acrylic',"Its-all-about-to-kick-off__thumb.jpg",130,88,18);thumbnails[4816707]=new thumbnail(4816707,"275187","Elm Park - Thanks for the Memories - Mixed media","ElmPark_thumb.jpg",130,87,18);thumbnails[4816708]=new thumbnail(4816708,"275187","Promotion at Last - Acrylic","Promotion_thumb.jpg",130,116,18);thumbnails[4816709]=new thumbnail(4816709,"275187","After 135 years - Acrylic","RFC-135_thumb.jpg",130,94,18);thumbnails[4816711]=new thumbnail(4816711,"275187","Reading Til I Die 1 - Acrylic","RTID_thumb.jpg",130,93,18);thumbnails[4816715]=new thumbnail(4816715,"275187","Reading Til I Die 2 - Acrylic","RTID_1R_thumb.jpg",130,96,18);thumbnails[4816740]=new thumbnail(4816740,"275187",'Valentino Rossi - "The Doctor" - Digital',"Valentino_Montage_thumb.jpg",130,92,18);thumbnails[4816851]=new thumbnail(4816851,"275187","Rooney - The Passion - Acrylic","Rooney---The-Passion1_thumb.jpg",130,171,18);thumbnails[4850096]=new thumbnail(4850096,"275187","Robin Friday - Acrylic","Robin-Friday-A_thumb.jpg",130,184,18);thumbnails[4817139]=new thumbnail(4817139,"275257","House in Crowthorne, Berks","Barley1_thumb.jpg",130,101,18);thumbnails[4817142]=new thumbnail(4817142,"275257","House in Wokingham, Berks","Barlow_thumb.jpg",130,95,18);thumbnails[4817146]=new thumbnail(4817146,"275257","House in Wokingham, Berks","Foulds_thumb.jpg",130,91,18);thumbnails[4817154]=new thumbnail(4817154,"275257","Easthampstead Baptist Church - Past & Present","EBC_A_thumb.jpg",130,92,18);thumbnails[4817210]=new thumbnail(4817210,"275257","Jamie -  Digital","Jamie-Smith-1_thumb.jpg",130,168,18);thumbnails[4817214]=new thumbnail(4817214,"275257","Abs - Acrylic","Abs-Main_WR-jpg_thumb.jpg",130,182,18);thumbnails[4817222]=new thumbnail(4817222,"275257","Joyce & Terry - Acrylic","JT-joined_thumb.jpg",130,104,18);thumbnails[4817223]=new thumbnail(4817223,"275257","Pencil portrait","JK-Scan-_thumb.jpg",130,170,18);thumbnails[4817229]=new thumbnail(4817229,"275257","The Creation of John","JStumbles_thumb.jpg",130,67,18);thumbnails[4817230]=new thumbnail(4817230,"275257","The Thinker (Tobias)","The-Thinker_thumb.jpg",130,178,18);thumbnails[4867772]=new thumbnail(4867772,"275257","Jasper & Tobias","JT-3_thumb.jpg",130,110,18);thumbnails[4816772]=new thumbnail(4816772,"275174","Betjeman's Slough - Friendly bombs! - Digital","Slough-with-Betjeman_thumb.jpg",130,184,18);thumbnails[4816780]=new thumbnail(4816780,"275174","Past & Present footballer - Digital","PP-Footballer12_thumb.jpg",130,217,18);thumbnails[4816804]=new thumbnail(4816804,"275174","Interactive English - Digital","IEnglish_thumb.jpg",130,111,18);thumbnails[4816806]=new thumbnail(4816806,"275174","Modern World History - Digital","MWH_thumb.jpg",130,92,18);thumbnails[4816830]=new thumbnail(4816830,"275174","Cheetah chase - Pen & Ink / Digital","Cheetahs-Best2_thumb.jpg",130,93,18);thumbnails[4816834]=new thumbnail(4816834,"275174","Giraffe's - It takes 2 to Tango - Pen & Ink / Digital","Giraffes-1_thumb.jpg",130,183,18);thumbnails[4816860]=new thumbnail(4816860,"275174","Galapagos - Digital","Galapagos-_thumb.jpg",130,91,18);thumbnails[4816870]=new thumbnail(4816870,"275174","Henny & Car - Acrylic","LouHenny_Car_thumb.jpg",130,101,18);thumbnails[4816873]=new thumbnail(4816873,"275174","Lou & Henny - Acrylic","Lou-Henny_thumb.jpg",130,169,18);thumbnails[4816875]=new thumbnail(4816875,"275174","Go-Kart race - Digital","Go-Kart_thumb.jpg",130,88,18);thumbnails[4816893]=new thumbnail(4816893,"275174","Garden Wildlife Leaflet - Bracknell Forest Council - Acrylic","BFBC---Leaflet_thumb.jpg",130,96,18);thumbnails[4819250]=new thumbnail(4819250,"275174","Elephants","Elephants-1_thumb.jpg",130,93,18);thumbnails[4827464]=new thumbnail(4827464,"275174","Earthquake - Digital","Earthquake_thumb.jpg",130,130,18);thumbnails[4828854]=new thumbnail(4828854,"275174","The English Eccentric - Watercolour","English-Eccentric_thumb.jpg",130,190,18);thumbnails[5147505]=new thumbnail(5147505,"275174","A Kurdish Town - A Vision for the Future","Kurdish---website_thumb.jpg",130,66,18);thumbnails[5191164]=new thumbnail(5191164,"275174","Meercats<br>\r\nDigital","Meercats_1__thumb.jpg",130,183,18);thumbnails[5595505]=new thumbnail(5595505,"275174","Summer Holiday - Mixed media","Summer---website_thumb.jpg",130,62,18);thumbnails[5595514]=new thumbnail(5595514,"275174","Ford Anglia - Digital","Ford-Anglia_website_thumb.jpg",130,130,18);thumbnails[5595607]=new thumbnail(5595607,"275174","Moonlight Garden - Watercolour","MG--website_thumb.jpg",130,106,18);thumbnails[6239442]=new thumbnail(6239442,"275174","Ultimate Driving School","Ultimate-Composition-1a_thumb.jpg",130,92,18);thumbnails[6239493]=new thumbnail(6239493,"275174","Boys shop transformation","Boys_in_shop_thumb.jpg",130,88,18);thumbnails[4816890]=new thumbnail(4816890,"275175","Newark Castle - Mixed media","NEWARK-CASTLE_thumb.jpg",130,103,18);thumbnails[4816891]=new thumbnail(4816891,"275175","St.Michael's Mount - Acrylic","StMichaels-Mount_thumb.jpg",130,89,18);thumbnails[4816899]=new thumbnail(4816899,"275175","Lonely Cityscape - Acrylic","Lonely_thumb.jpg",130,99,18);thumbnails[4816902]=new thumbnail(4816902,"275175","Christmas card - Mixed media","Xmas-_Card_6_thumb.jpg",130,186,18);thumbnails[4816928]=new thumbnail(4816928,"275175",'"The Cottage" - Mixed media',"The-Cottage_thumb.jpg",130,88,18);thumbnails[4816931]=new thumbnail(4816931,"275175",'"At the end of the trail"- Mixed media',"Cottage-3_thumb.jpg",130,89,18);thumbnails[4816932]=new thumbnail(4816932,"275175",'"Farmhouse in Wales" - Mixed media',"Cottage-4_thumb.jpg",130,93,18);thumbnails[4816933]=new thumbnail(4816933,"275175","Duck Barn in South Wales - Mixed media","Duck-Barn_thumb.jpg",130,89,18);thumbnails[5191156]=new thumbnail(5191156,"275175","The Long Walk<br>\r\nAcrylic","The_Long_Walk_a_thumb.jpg",130,98,18);thumbnails[5191160]=new thumbnail(5191160,"275175","Seven Sisters<br>\r\nAcrylic","Seven_Sisters_a_thumb.jpg",130,97,18);thumbnails[5595495]=new thumbnail(5595495,"275175","St.David's Lifeboat - Mixed media","Lifeboat---website_thumb.jpg",130,98,18);thumbnails[5595520]=new thumbnail(5595520,"275175","Riverside - Mixed media","Riverside---website_thumb.jpg",130,97,18);var galleries=new Object();galleries[275730]=new gallery(275730,"4827620,4827581,4827555","Commissions","section331333",[4827555,4827581,4827620]);galleries[275436]=new gallery(275436,"5213795,4822310,4822056,4822054,4822052,4822025","Logos","section330982",[4822025,4822052,4822054,4822056,4822310,5213795]);galleries[275435]=new gallery(275435,"4828010,4827999,4827994,4827881,4827860,4827849,4827832","Office Interiors","section330982",[4827832,4827849,4827860,4827881,4827994,4827999,4828010]);galleries[275718]=new gallery(275718,"4827544,4827525,4827509,4827505,4827499,4827497,4827484,4827480","Services","section331319",[4827480,4827484,4827497,4827499,4827505,4827509,4827525,4827544]);galleries[275186]=new gallery(275186,"4829137,4828818,4816562,4816557,4816272,4816257,4816247","Figurative","gallery",[4816247,4816257,4816272,4816557,4816562,4828818,4829137]);galleries[275189]=new gallery(275189,"5680405,5680396,4816684,4816682,4816677,4816662,4816660,4816658,4816657,4816654","Architectural","gallery",[4816587,4816614,4816617,4816654,4816657,4816658,4816660,4816662,4816677,4816682,4816684,5680396,5680405]);galleries[275187]=new gallery(275187,"4850096,4816851,4816740,4816715,4816711,4816709,4816708,4816707,4816704,4816699","Sports","gallery",[4816692,4816699,4816704,4816707,4816708,4816709,4816711,4816715,4816740,4816851,4850096]);galleries[275257]=new gallery(275257,"4867772,4817230,4817229,4817223,4817222,4817214,4817210,4817154,4817146,4817142","Portraits","gallery",[4817139,4817142,4817146,4817154,4817210,4817214,4817222,4817223,4817229,4817230,4867772]);galleries[275174]=new gallery(275174,"6239493,6239442,5595607,5595514,5595505,5191164,5147505,4828854,4827464,4819250","Illustration","gallery",[4816772,4816780,4816804,4816806,4816830,4816834,4816860,4816870,4816873,4816875,4816893,4819250,4827464,4828854,5147505,5191164,5595505,5595514,5595607,6239442,6239493]);galleries[275175]=new gallery(275175,"5595520,5595495,5191160,5191156,4816933,4816932,4816931,4816928,4816902,4816899","Miscellaneous","gallery",[4816890,4816891,4816899,4816902,4816928,4816931,4816932,4816933,5191156,5191160,5595495,5595520]);var imageSets=new Object();imageSets[1]="6239493,6239442,5680405,5680396,5595607,5595520,5595514,5595505,5595495,5213795,5191164,5191160,5191156,5147505,4867772,4850096,4829137,4828854,4828818,4828325,4828010,4827999,4827994,4827881,4827860,4827849,4827832,4827620,4827581,4827555,4827544,4827525,4827509,4827505,4827499,4827497,4827484,4827480,4827464,4822310,4822056,4822054,4822052,4822025,4819250,4817230,4817229,4817223,4817222,4817214";imageSets[3]="6239493,6239442,5680405,5680396,5595607,5595520,5595514,5595505,5595495,5213795,5191164,5191160,5191156,5147505,4867772,4850096,4829137,4828854,4828818,4828325,4828010,4827999,4827994,4827881,4827860,4827849,4827832,4827620,4827581,4827555,4827544,4827525,4827509,4827505,4827499,4827497,4827484,4827480,4827464,4822310,4822056,4822054,4822052,4822025,4819250,4817230,4817229,4817223,4817222,4817214";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/steveyk/images";break}switch(a){case 1:b="http://www1.clikpic.com/steveyk/images";break}switch(a){case 2:b="http://admin.clikpic.com/steveyk/images";break}switch(a){case 24:b="http://tpc15/clikpic/steveyk/images";break}switch(a){case 4:b="http://www.clikchurch.com/steveyk/images";break}switch(a){case 5:b="http://www2.clikpic.com/steveyk/images";break}switch(a){case 22:b="http://tpc5/clikpic/steveyk/images";break}switch(a){case 23:b="http://tpc10/clikpic/steveyk/images";break}switch(a){case 25:b="http://tpc16/clikpic/steveyk/images";break}switch(a){case 15:b="http://www3.clikpic.com/steveyk/images";break}switch(a){case 18:b="http://www4.clikpic.com/steveyk/images";break}switch(a){case 19:b="http://www5.clikpic.com/steveyk/images";break}switch(a){case 31:b="http://www7.clikpic.com/steveyk/images";break}switch(a){case 32:b="http://admin2.clikpic.com/steveyk/images";break}switch(a){case 33:b="http://www8.clikpic.com/steveyk/images";break}switch(a){case 34:b="http://www9.clikpic.com/steveyk/images";break}switch(a){case 35:b="http://admin3.clikpic.com/steveyk/images";break}switch(a){case 37:b="http://admin4.clikpic.com/steveyk/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="Steve King - Artist & Illustrator: "+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;resizePhotoInfo();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+'")'})}}};