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[1466612]=new thumbnail(1466612,"268569","Shoreditch","Shoreditch_gouache_36x30cm_thumb.jpg",130,148,1);thumbnails[1834039]=new thumbnail(1834039,"268569","Times past Hibernia Wharf","Times past hibernia L_thumb.jpg",130,160,1);thumbnails[3680858]=new thumbnail(3680858,"","O2 and Square Sun","O2_and_Square_sun_thumb.jpg",69,160,1);thumbnails[3681551]=new thumbnail(3681551,"268569","St Pauls Sunset","StPaulssunset_thumb.jpg",130,102,1);thumbnails[4662137]=new thumbnail(4662137,"268569","View from Canary Wharf","1009view_from_CW_pen_thumb.jpg",130,89,1);thumbnails[4662246]=new thumbnail(4662246,"268569","Docklands View","balllimore_Docklands_gouache_thumb.jpg",113,160,1);thumbnails[4662356]=new thumbnail(4662356,"268569","Blue Spectrum, City of London","Blue_City_Spectrum_17_x_25_cms_acrylic_on_paper_thumb.jpg",130,76,1);thumbnails[4662364]=new thumbnail(4662364,"268569","Cranes East London","cranes_original_100_x_100_cms_acrylic_on_canvas_thumb.jpg",130,130,1);thumbnails[4662402]=new thumbnail(4662402,"268569","London and the Thames","GoldThamesLondon_acrylic_76cmsq_thumb.jpg",130,130,1);thumbnails[4662431]=new thumbnail(4662431,"268569","The City from the Isle of Dogs","Canary_Wharf_and_the_City_watercolour_30_x_22_ins_thumb.jpg",130,88,1);thumbnails[4662483]=new thumbnail(4662483,"268569","Victoria Dock","Victoria_Dock_thumb.jpg",130,130,1);thumbnails[4826288]=new thumbnail(4826288,"","Artist&Illustrator cover","Artistillustratorwriteup-1_thumb.jpg",122,160,1);thumbnails[1466081]=new thumbnail(1466081,"268569","Thames Timeline","Thames_Time_Line1_thumb.jpg",130,130,1);thumbnails[3669466]=new thumbnail(3669466,"268569","City of London Bridges","city_of_london_bridges_100x50_cms_thumb.jpg",80,160,1);thumbnails[1463907]=new thumbnail(1463907,"268569","Canary Wharf and Plane","2_Canary_Wharf_and_Plane_Gillian_Burrows_thumb.jpg",130,130,1);thumbnails[3539282]=new thumbnail(3539282,"268569","2012 London Olympic map","2012mapLondon_thumb.jpg",130,130,1);thumbnails[3681535]=new thumbnail(3681535,"","Essex River Scene","Essex_River_Scene_thumb.jpg",130,86,1);thumbnails[3680780]=new thumbnail(3680780,"268569","London Lines","London_24x24cms_thumb.jpg",130,130,1);thumbnails[3681525]=new thumbnail(3681525,"268569","St Pauls Ludgate","St_Pauls_Ludgate_thumb.jpg",113,160,1);thumbnails[1466523]=new thumbnail(1466523,"","Canary Wharf and City","SMALLcanarywharf&city.jpg",130,98,1);thumbnails[1471858]=new thumbnail(1471858,"","Docklands","Docklandss.jpg",70,140,1);thumbnails[3729503]=new thumbnail(3729503,"268569","Oranges and Lemons City churches","OrangesLemons_thumb.jpg",130,130,1);thumbnails[1469513]=new thumbnail(1469513,"","City of London panoramic","The City of Londonsml.jpg",130,51,1);thumbnails[1465738]=new thumbnail(1465738,"","London Profile 2","smalllondonprofiles2.jpg",130,130,1);thumbnails[1469486]=new thumbnail(1469486,"","London Skyline","London skyline sml.jpg",130,65,1);thumbnails[1464547]=new thumbnail(1464547,"","Royal Docks","smallRoyal docks.jpg",130,130,1);thumbnails[1469495]=new thumbnail(1469495,"","London Thames","smallthameslondon.jpg",130,130,1);thumbnails[4219156]=new thumbnail(4219156,"","Greenwich and the Discovery Ship","Greenwich_thumb.jpg",130,130,1);thumbnails[1469503]=new thumbnail(1469503,"268569","Royal Docks collage","Royal Docks Collage 3.jpg",65,130,1);thumbnails[4662413]=new thumbnail(4662413,"268569","The Royal Docks","the_Royal_Docks_thumb.jpg",130,130,1);thumbnails[4659939]=new thumbnail(4659939,"268569","02 and Square Sun","02_and_sun_thumb.jpg",81,160,1);thumbnails[4782407]=new thumbnail(4782407,"268569","Canary Wharf in Yellow Light","Canary_Wharf_in_yellow_light_thumb.jpg",130,93,1);thumbnails[4782396]=new thumbnail(4782396,"268569","Pura demolishing E14","Pura_Demolishing_E14_thumb.jpg",130,90,1);thumbnails[4782439]=new thumbnail(4782439,"268569","View of London from the Thames","View_of_London_from_the_Thames_thumb.jpg",130,107,1);thumbnails[4782674]=new thumbnail(4782674,"268569","Evening View of the City of London","Evening_View_of_the_City_of_London_thumb.jpg",130,107,1);thumbnails[3680919]=new thumbnail(3680919,"101143","East London","Eastlondon__thumb.jpg",130,108,1);thumbnails[1464007]=new thumbnail(1464007,"101143","Fish Square","large_fishsquare1.jpg",130,130,1);thumbnails[3680790]=new thumbnail(3680790,"101143","Docklands","Docklands_thumb.jpg",130,130,1);thumbnails[1465766]=new thumbnail(1465766,"101143","International City Centre","smallcitycentre61x61cms.jpg",130,130,1);thumbnails[1469477]=new thumbnail(1469477,"101143"," London City","City of London 100 x 100 cms sml.jpg",130,130,1);thumbnails[1466713]=new thumbnail(1466713,"101143","Dubai","1Dubai.jpg",130,130,1);thumbnails[3719272]=new thumbnail(3719272,"101143","London Tryptic","trypticLondon1_thumb.jpg",99,160,1);thumbnails[4659920]=new thumbnail(4659920,"101143","Square Fish","_small_fish_thumb.jpg",130,130,1);thumbnails[1466557]=new thumbnail(1466557,"101143","New York","smallnewyork76x76cms.jpg",130,130,1);thumbnails[1465932]=new thumbnail(1465932,"101144","San Fransisco Golden Gate Bridge","SMALLsanfransisco28x40cms.jpg",130,98,1);thumbnails[1469468]=new thumbnail(1469468,"101144","Egyptian Symbols","l Egypptian symbols sml.jpg",130,102,1);thumbnails[1469479]=new thumbnail(1469479,"101144","Hawaii Shoreline","Hawaii 2 sml.jpg",130,90,1);thumbnails[1469481]=new thumbnail(1469481,"101144","Hawaii Sunset","lHawaii sunset sml.jpg",130,92,1);thumbnails[1469484]=new thumbnail(1469484,"101144","Nile Journey to Assan","Journey to Assan sml.jpg",130,90,1);thumbnails[1469496]=new thumbnail(1469496,"101144","Misty Vista greenwich park","misty greenwich park .jpg",130,99,1);thumbnails[1469498]=new thumbnail(1469498,"101144","pacific tiny island","Pacific tiny island sml.jpg",130,92,1);thumbnails[1469500]=new thumbnail(1469500,"101144","Paris","Paris gouache smls.jpg",130,98,1);thumbnails[1469508]=new thumbnail(1469508,"101144","Erith","smlThamesErith.jpg",130,102,1);thumbnails[3681538]=new thumbnail(3681538,"101144","Scottish Loch","Scottishloch_thumb.jpg",130,97,1);thumbnails[3681548]=new thumbnail(3681548,"101144","Pinn Mill Suffolk","Pinn_Mill_Suffolk_thumb.jpg",130,91,1);thumbnails[1465938]=new thumbnail(1465938,"101144","Tokyo","smallTokyo .jpg",130,98,1);thumbnails[1466643]=new thumbnail(1466643,"101144","Hong Kong","smallhongkong18x26cms.jpg",130,98,1);thumbnails[4908340]=new thumbnail(4908340,"123377","Shoreditch","Shoreditch_gouache_36x30cm1_thumb.jpg",130,148,1);thumbnails[2416936]=new thumbnail(2416936,"123377","Thames Timeline","HFC thamestimeline large_thumb.jpg",130,132,1);thumbnails[3669088]=new thumbnail(3669088,"123377","Day and Night Docklands","daynightdocklands_thumb.jpg",130,130,1);thumbnails[3669189]=new thumbnail(3669189,"123377"," The Discovery Greenwich","Greenwich_copy_thumb.jpg",130,130,1);thumbnails[3669247]=new thumbnail(3669247,"123377","Docklands and the world","Docklands_and_the_World_thumb.jpg",130,130,1);thumbnails[2416944]=new thumbnail(2416944,"123377","Canary Wharf and Plane","HFCPlane CW large_thumb.jpg",130,130,1);thumbnails[3669502]=new thumbnail(3669502,"123377","Thames London","Thames_Timeline1_thumb.jpg",130,130,1);thumbnails[4219148]=new thumbnail(4219148,"123377","City of London tryptich ","City_of_London_tryptich_thumb.jpg",130,130,1);thumbnails[4662725]=new thumbnail(4662725,"123377","DOCKLANDS","Canary_Wharf_and_TBW_61_x_61cmssq_thumb.jpg",130,130,1);thumbnails[4219163]=new thumbnail(4219163,"123377","London Profiles","London_Profiles_thumb.jpg",130,130,1);thumbnails[4223900]=new thumbnail(4223900,"123377","Great Britian","britian_flattened_thumb.jpg",130,130,1);thumbnails[4662738]=new thumbnail(4662738,"123377","Docklands layers","Dockland_Layers_acrylic_on_canvas_76cms_square_thumb.jpg",130,132,1);thumbnails[4662740]=new thumbnail(4662740,"123377","Lincoln's Inn, the City of London","Lincolns_Inn_11_thumb.jpg",130,130,1);thumbnails[4662742]=new thumbnail(4662742,"123377","St Pauls","st_pauls_14_x_14_ins_thumb.jpg",130,130,1);thumbnails[1469485]=new thumbnail(1469485,"123377","London Eye","London Eye sml.jpg",130,92,1);thumbnails[1469471]=new thumbnail(1469471,"123377","Blue Spectrum","Blue-Spectrum sml.jpg",103,140,1);thumbnails[1833160]=new thumbnail(1833160,"123325","Rotherhythe river front","Rotherhythe river front_thumb.jpg",130,160,1);thumbnails[1833896]=new thumbnail(1833896,"123325","Crown Wharf","Crown Wharf_thumb.jpg",130,160,1);thumbnails[1833920]=new thumbnail(1833920,"123325","Endeavour at Greenwich","Endeavour greenwich L_thumb.jpg",130,160,1);thumbnails[1833992]=new thumbnail(1833992,"123325","Old view Prospect of Whitby","Prospect of whitby view l_thumb.jpg",130,160,1);thumbnails[1834006]=new thumbnail(1834006,"123325","St saviours Wharf","St Saviours Wharf L_thumb.jpg",130,160,1);thumbnails[1834037]=new thumbnail(1834037,"123325","Thames Estuary ","Thames estuary l_thumb.jpg",130,128,1);thumbnails[1834038]=new thumbnail(1834038,"123325","The Thames at Erith","The Thames Erith l_thumb.jpg",130,128,1);thumbnails[1835618]=new thumbnail(1835618,"123449","J.Rothschild Assurance","J_RothschildAssurance,com_thumb.jpg",130,86,1);thumbnails[1835622]=new thumbnail(1835622,"123449","Cow parade at Canary Wharf","cowatcanarywharffornewwave_thumb.jpg",130,90,1);thumbnails[1835626]=new thumbnail(1835626,"123449","London City Airport reception","LondonCityAirport_thumb.jpg",130,101,1);thumbnails[1835629]=new thumbnail(1835629,"123449","Maclay Murray Splens","maclay ms_thumb.jpg",74,76,1);thumbnails[1835630]=new thumbnail(1835630,"123449","Curve Menu, Marriott Hotel Docklands","Marriott menu_thumb.jpg",101,131,1);thumbnails[1835638]=new thumbnail(1835638,"123449","London Marriott Docklands mural","marriott mural_thumb.jpg",130,73,1);thumbnails[1835641]=new thumbnail(1835641,"123449","Reg Logo","reg logo_thumb.jpg",66,65,1);thumbnails[1835645]=new thumbnail(1835645,"123449","Tower Hamlets Town Hall Mural","TowerHamletsmuralExtrct_thumb.jpg",130,84,1);thumbnails[1835767]=new thumbnail(1835767,"123449","London Mural 1 Berwin Leighton Paisner","BLP mural 1_thumb.jpg",130,34,1);thumbnails[1835768]=new thumbnail(1835768,"123449","Mural 2 Berwin Leighton Paisner","BLP mural 2_thumb.jpg",130,34,1);thumbnails[1835769]=new thumbnail(1835769,"123449","Mural 3 Berwin Leighton Paisner","BLP mural 3_thumb.jpg",130,33,1);thumbnails[1835771]=new thumbnail(1835771,"123449","Mural 4 Berwin Leighton Paisner","BLP mural 4_thumb.jpg",130,43,1);thumbnails[2404505]=new thumbnail(2404505,"123449","A. Education andMulticulture in Tower Hamlets, Mile End Hospital, East London","A large_thumb.jpg",130,129,1);thumbnails[2404982]=new thumbnail(2404982,"123449","Microscope Tryptych, Mile end Hospital","Telescope tryptic large_thumb.jpg",130,160,1);thumbnails[2405032]=new thumbnail(2405032,"123449","Double Helix Tryptych, Education Unit Mile End Hospital","Double helix tryptic large_thumb.jpg",130,160,1);thumbnails[2408373]=new thumbnail(2408373,"123449","Emmeline (Emily) Pankhurst watercolour Houses of Parliament","Emmeline Pankhurst large_thumb.jpg",130,160,1);thumbnails[2432538]=new thumbnail(2432538,"123449","Multiculture and Education ","B people and learning 1500 x 1500 mmL_thumb.jpg",130,130,1);thumbnails[2453400]=new thumbnail(2453400,"123449","Tower Hamlets Street Markets","Tower Hamlets Street Markets l_thumb.jpg",130,96,1);thumbnails[2476308]=new thumbnail(2476308,"123449","Orchard Place murals 1","Orchard Place murals L_thumb.jpg",130,98,1);thumbnails[2476314]=new thumbnail(2476314,"123449","Orchard Place Murals 2","Orchard Place murals 2L_thumb.jpg",130,156,1);thumbnails[2476317]=new thumbnail(2476317,"123449","Orchard Place Murals 3","Orchard Place murals 3L_thumb.jpg",130,156,1);thumbnails[3224638]=new thumbnail(3224638,"123449","The Education and Training Centre Mile End Hospital","mile end_thumb.jpg",90,140,1);thumbnails[3224657]=new thumbnail(3224657,"123449","Mile End Hospital painting","Mile End Hospital_thumb.jpg",90,140,1);thumbnails[3224665]=new thumbnail(3224665,"123449","The Borough of Tower Hamlets","Tower Hamlets_thumb.jpg",90,140,1);thumbnails[4601641]=new thumbnail(4601641,"123449","Torbay","David_B_painting_for_the_DKB_Suite_web_thumb.jpg",130,84,1);thumbnails[4671083]=new thumbnail(4671083,"123449","Logo 69 Ltd commission","Logo_69_Ltd_thumb.jpg",130,118,1);thumbnails[1585757]=new thumbnail(1585757,"108406",'A Picture of East London<br>\r\nA documentary film about this exciting and vibrant modern area. Visit <a href="http://www.wharf.tv" target="_blank">http://www.wharf.tv</a> for details. You can purchase the DVD from the wharf.tv site<br>\r\n',"DVD cover small.jpg",119,160,1);var galleries=new Object();galleries[268569]=new gallery(268569,"1463907","Barbican Library Exh Oct 2009","section135094",[1466612,1834039,3681551,4662137,4662246,4662356,4662364,4662402,4662431,4662483,1466081,3669466,1463907,3539282,3680780,3681525,3729503,1469503,4662413,4659939,4782407,4782396,4782439,4782674]);galleries[101143]=new gallery(101143,"1466557","Acrylic on canvas","section135094",[3680919,1464007,3680790,1465766,1469477,1466713,3719272,4659920,1466557]);galleries[101144]=new gallery(101144,"1465938","Gouache & watercolours","section135094",[1465932,1469468,1469479,1469481,1469484,1469496,1469498,1469500,1469508,3681538,3681548,1465938,1466643]);galleries[123377]=new gallery(123377,"4908340,4662742,4662740,4662738,4662725,4223900,4219163,4219148,3669502,3669247","2010 London & Docklands prints ","section135094",[4908340,2416936,3669088,3669189,3669247,2416944,3669502,4219148,4662725,4219163,4223900,4662738,4662740,4662742,1469485,1469471]);galleries[123325]=new gallery(123325,"1833920","1982-1998 Docklands  ","section135094",[1833160,1833896,1833920,1833992,1834006,1834037,1834038]);galleries[123449]=new gallery(123449,"4671083,4601641,3224665,3224657,3224638,2476317,2476314,2476308,2453400,2432538","Commissions","section198015",[1835618,1835622,1835626,1835629,1835630,1835638,1835641,1835645,1835767,1835768,1835769,1835771,2404505,2404982,2405032,2408373,2432538,2453400,2476308,2476314,2476317,3224638,3224657,3224665,4601641,4671083]);galleries[108406]=new gallery(108406,"1585757","A Picture of East London","section135094",[1585757]);var imageSets=new Object();imageSets[1]="3729503,3719272,3669088,3539282,3224665,3224657,3224638,2476317,2453400,2432538,2416936,2405032,2404982,2404505,1833920,1833160,1471858,1469513,1469495,1469486,1469471,1466643,1466612,1466557,1465932,1465738,1464547,1464007,1463907";imageSets[2]="1833920,1466557,1465938,1463907";imageSets[3]="4908340,4826288,4782674,4782439,4782407,4782396,4671083,4662742,4662740,4662738,4662725,4662483,4662431,4662413,4662402,4662364,4662356,4662246,4662137,4659939,4659920,4601641,4223900,4219163,4219156,4219148,3729503,3719272,3681551,3681548,3681538,3681535,3681525,3680919,3680858,3680790,3680780,3669502,3669466,3669247,3669189,3669088,3539282,3224665,3224657,3224638,2476317,2476314,2476308,2453400";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/artistgb/images";break}switch(a){case 1:b="http://www1.clikpic.com/artistgb/images";break}switch(a){case 2:b="http://admin.clikpic.com/artistgb/images";break}switch(a){case 24:b="http://tpc15/clikpic/artistgb/images";break}switch(a){case 4:b="http://www.clikchurch.com/artistgb/images";break}switch(a){case 5:b="http://www2.clikpic.com/artistgb/images";break}switch(a){case 22:b="http://tpc5/clikpic/artistgb/images";break}switch(a){case 23:b="http://tpc10/clikpic/artistgb/images";break}switch(a){case 25:b="http://tpc16/clikpic/artistgb/images";break}switch(a){case 15:b="http://www3.clikpic.com/artistgb/images";break}switch(a){case 18:b="http://www4.clikpic.com/artistgb/images";break}switch(a){case 19:b="http://www5.clikpic.com/artistgb/images";break}switch(a){case 31:b="http://www7.clikpic.com/artistgb/images";break}switch(a){case 32:b="http://admin2.clikpic.com/artistgb/images";break}switch(a){case 33:b="http://www8.clikpic.com/artistgb/images";break}switch(a){case 34:b="http://www9.clikpic.com/artistgb/images";break}switch(a){case 35:b="http://admin3.clikpic.com/artistgb/images";break}switch(a){case 37:b="http://admin4.clikpic.com/artistgb/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("section135094"!=""){if(backgrounds[imageID].galleries_id!=""){html+='<a href="'+backgrounds[imageID].section_code+"_"+backgrounds[imageID].galleries_id+'.html">'}else{html+='<a href="section135094.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("section135094"!=""){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="Gillian Burrows artist: "+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>Artist </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 original or 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="ARTISTGB">';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(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+'")'})}}};