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[1209372]=new thumbnail(1209372,"85531","Stilt Woman","Stilt_woman_thumb.jpg",130,90,18);thumbnails[1191557]=new thumbnail(1191557,"85531","Afro Dancer.","afrodancer_thumb.jpg",130,193,18);thumbnails[1191810]=new thumbnail(1191810,"85531","Bus Station Cafe","Busstationcafe_thumb.jpg",130,80,18);thumbnails[1191846]=new thumbnail(1191846,"85531","Man with Jesus Statue","manjesusstatue_thumb.jpg",130,166,18);thumbnails[1191875]=new thumbnail(1191875,"85531","Man with Heritage Dolls","Manheritagedolls_thumb.jpg",130,195,18);thumbnails[1191971]=new thumbnail(1191971,"85531","Traffic Warden and Rhino ","Trafficwarden+rhino_thumb.jpg",130,106,18);thumbnails[1191979]=new thumbnail(1191979,"85531","The Pigeon Feeder","Pigeonfeeder_thumb.jpg",130,172,18);thumbnails[1192050]=new thumbnail(1192050,"85531","Lost Tourists","Lost_Tourists_thumb.jpg",130,82,18);thumbnails[1192089]=new thumbnail(1192089,"85531","Wren, Remembrance Sunday, Milsom Street","Wren_ Milsom_Street_thumb.jpg",130,193,18);thumbnails[1209337]=new thumbnail(1209337,"85531","Bath Abbey Doors(Poppy Seller)","AbbeyDoors_thumb.jpg",130,203,18);thumbnails[1209396]=new thumbnail(1209396,"85531","Christmas, Bath Pump Room","Pump_Room_ Xmas_thumb.jpg",130,193,18);thumbnails[5262388]=new thumbnail(5262388,"85531","Christmas, Upper Borough Walls","UpperBoroughWallsDec05_thumb.jpg",130,196,18);thumbnails[1191904]=new thumbnail(1191904,"85555","Night Bus, Manvers Street","Manversstreetbus_thumb.jpg",130,68,18);thumbnails[1191929]=new thumbnail(1191929,"85555","Night Bus 2","Nightbus2_thumb.jpg",130,86,18);thumbnails[1196011]=new thumbnail(1196011,"85555","Night Bus 3 (James Street West)","NightBus3_thumb.jpg",130,77,18);thumbnails[1196019]=new thumbnail(1196019,"85555","Night Bus 4 (The Saint)","NightBus4saint1_thumb.jpg",130,86,18);thumbnails[1196026]=new thumbnail(1196026,"85555","Night Bus 5 (Kingswood)","NightBus5Kingswood_thumb.jpg",130,87,18);thumbnails[1212360]=new thumbnail(1212360,"85555","Night Bus 6 (Head)","Night_Bus7_Head_thumb.jpg",130,90,18);thumbnails[1212368]=new thumbnail(1212368,"85555","Night Bus 7 (the mobile phone)","Night_Bus_6_mobile_phone_thumb.jpg",130,188,18);thumbnails[1196039]=new thumbnail(1196039,"85555","Bus Picture (The Listener)","Bus_listener_upd_thumb.jpg",130,89,18);thumbnails[1196044]=new thumbnail(1196044,"85555","Bus Picture 2 (Sleeper)","BusSleeper_thumb.jpg",130,89,18);thumbnails[1196051]=new thumbnail(1196051,"85555","Bus Picture 3.(Waiting at Bath Bus Station) ","PortraitBusStation_thumb.jpg",130,84,18);thumbnails[5369376]=new thumbnail(5369376,"85555","Bus Picture 4: Top Deck, Odd Down","bus_breath_copy_rsze_thumb.jpg",130,85,18);thumbnails[5423531]=new thumbnail(5423531,"85555","Bus Picture 5","Busportrait_thumb.jpg",130,195,18);thumbnails[5423544]=new thumbnail(5423544,"85555","Bus Picture 6 ","Bus_5_4_03_thumb.jpg",130,85,18);thumbnails[5423895]=new thumbnail(5423895,"85555","Bus Picture 7","busgirl-919A_thumb.jpg",130,91,18);thumbnails[1196152]=new thumbnail(1196152,"85556","Radstock Gala Girls","Galagirls1_thumb.jpg",130,91,18);thumbnails[1196154]=new thumbnail(1196154,"85556","Radstock Gala, Children's Band","Gala_Kids_3_band_upd_thumb.jpg",130,87,18);thumbnails[1196156]=new thumbnail(1196156,"85556","Radstock Gala (Traction Engine Driver)","tractionenginedriver_thumb.jpg",130,173,18);thumbnails[1196159]=new thumbnail(1196159,"85556","Radstock Gala (Man with Painted Face)","painted_face_man_upd_thumb.jpg",130,88,18);thumbnails[1196162]=new thumbnail(1196162,"85556","Radstock Gala (Face Masks)","Gala_Face_Masks_upd_thumb.jpg",130,87,18);thumbnails[1196167]=new thumbnail(1196167,"85556","Radstock Gala (The Trumpeter)","Trumpeter_thumb.jpg",130,193,18);thumbnails[1196178]=new thumbnail(1196178,"85556","Radstock Gala (2 Boys in Procession)","Gala_Kids_1_upd_thumb.jpg",130,87,18);thumbnails[1196190]=new thumbnail(1196190,"85556","Radstock Gala (The Fred Wedlock Set)","FredWedGala_thumb.jpg",130,188,18);thumbnails[1196195]=new thumbnail(1196195,"85556","Radstock Gala (Clearing Up)","GalaKids2strawgame_thumb.jpg",130,89,18);thumbnails[1191990]=new thumbnail(1191990,"85553","Woman with Bags","woman_with_bags_upd_thumb.jpg",130,184,18);thumbnails[1192026]=new thumbnail(1192026,"85553","Tourist Family","Tourist_family_upd2_thumb.jpg",130,86,18);thumbnails[1192039]=new thumbnail(1192039,"85553","Harmonica Man","Harmonica_Man_upd_thumb.jpg",130,191,18);thumbnails[1237917]=new thumbnail(1237917,"85553","Zen Hussy Sax Player","Saxplayerupd2_thumb.jpg",130,226,18);thumbnails[1257215]=new thumbnail(1257215,"85553","Tour Guide","Tour_Guide_portrait_thumb.jpg",130,191,18);thumbnails[1209434]=new thumbnail(1209434,"85553","Green Jacket","5511Agreenjacket_thumb.jpg",130,188,18);thumbnails[1209449]=new thumbnail(1209449,"85553","Yellow Shirt","913Agirl_yellowshirt_thumb.jpg",130,193,18);thumbnails[1341497]=new thumbnail(1341497,"85553","Limbo dancer, Union Street","0382_limbo_dancer_union_st_thumb.jpg",130,96,18);thumbnails[1209460]=new thumbnail(1209460,"85553","Woman with a water bottle","5718waterbottle_thumb.jpg",130,197,18);thumbnails[1213527]=new thumbnail(1213527,"85553","The man in the hat","5_55_18A Man in Hat_thumb.jpg",130,184,18);thumbnails[1213608]=new thumbnail(1213608,"85553","Young Girl and older woman, Stall Street.","6_20_28A_benchgirl_thumb.jpg",130,178,18);thumbnails[5495653]=new thumbnail(5495653,"85553","White Statue","white-statue-96_websize_thumb.jpg",130,176,18);thumbnails[1329098]=new thumbnail(1329098,"85553","Blue cardigan ","Blue_Cardigan_4_11_adj2_thumb.jpg",130,172,18);thumbnails[5496528]=new thumbnail(5496528,"85553","Red Dress","red_shirt_6_68_910A_websize_thumb.jpg",130,85,18);thumbnails[1247831]=new thumbnail(1247831,"88978","Union Street Conga","929_conga_upd_thumb.jpg",130,83,18);thumbnails[1247862]=new thumbnail(1247862,"88978","Florida","5_40_14A_Union_St_Florida_thumb.jpg",130,85,18);thumbnails[1247902]=new thumbnail(1247902,"88978","York Street Market(the breeze)","5_18_33_Market_York_St_thumb.jpg",130,94,18);thumbnails[1247920]=new thumbnail(1247920,"88978","Abbey Churchyard (Silent Preacher)","916A_Abbey_Churchyard_Preacher_thumb.jpg",130,85,18);thumbnails[1247957]=new thumbnail(1247957,"88978","Three Ices","5_53_7A_Bench_3_ices_thumb.jpg",130,95,18);thumbnails[1248102]=new thumbnail(1248102,"88978","Two Women Chatting","Two_women_chatting_thumb.jpg",130,87,18);thumbnails[1248144]=new thumbnail(1248144,"88978","The Break","935A_Bus_Driver_Bath_thumb.jpg",130,199,18);thumbnails[1248170]=new thumbnail(1248170,"88978","Floyds","6_14_36A_Floyds_Radstock_thumb.jpg",130,188,18);thumbnails[1248245]=new thumbnail(1248245,"88978","Girl with wings","923_Young_girl_with_wings_Stall St_Bath_thumb.jpg",130,195,18);thumbnails[5266916]=new thumbnail(5266916,"88978","Pedestrians, Stall Street","_6_17_05_Stall_St_thumb.jpg",130,84,18);thumbnails[5275799]=new thumbnail(5275799,"88978","Girl carrying a dog, Westgate Street. ","girlwithdog_5_17_5Aed_thumb.jpg",130,168,18);thumbnails[5275851]=new thumbnail(5275851,"88978","The lapdog","lapdog_4_42_7_thumb.jpg",130,85,18);thumbnails[5369410]=new thumbnail(5369410,"88978","Oriental Girls, Stall Street, 1998","Chinese-Girls-98_1164rsze_thumb.jpg",130,177,18);thumbnails[5423542]=new thumbnail(5423542,"88978","Man with Bubble gun, Stall Street.","Bubbleblower-5-12-18A_thumb.jpg",130,77,18);thumbnails[5423547]=new thumbnail(5423547,"88978","Bath Spa ","Spa-roof_thumb.jpg",130,87,18);thumbnails[5492420]=new thumbnail(5492420,"88978","Woman in a Rain hood, man passing by.","rain_hood-6-8-37_thumb.jpg",130,165,18);thumbnails[5492435]=new thumbnail(5492435,"88978","Bath, Westgate Street: 2003","kidsinstreet_6-6-9_thumb.jpg",130,89,18);thumbnails[5494767]=new thumbnail(5494767,"88978","The Water Statue, Bath","Woman-and-water-statue_webe_thumb.jpg",130,198,18);thumbnails[5495660]=new thumbnail(5495660,"88978","Pigeon Feeder, Lower Borough Walls.","Pigeon_Feeder_headless_webs_thumb.jpg",130,84,18);thumbnails[5495949]=new thumbnail(5495949,"88978","A Queue","queue_websize_thumb.jpg",130,85,18);thumbnails[5496543]=new thumbnail(5496543,"88978","Westgate Street Roman","togaman_2_25A_websize2_thumb.jpg",130,79,18);thumbnails[2567647]=new thumbnail(2567647,"93635","Parade Gardens, Bath","Parade_gdns_Pola_copy_edited_rsze2_thumb.jpg",130,82,18);thumbnails[5299997]=new thumbnail(5299997,"93635","Haydon Allotments","Haydonallotment_ed3_thumb.jpg",130,85,18);thumbnails[5303475]=new thumbnail(5303475,"93635","Summer landscape near Priston ","Pristonfield_ed_thumb.jpg",130,86,18);thumbnails[5302872]=new thumbnail(5302872,"93635","Farmborough Round Hill","Farmborough_Roundhill_ed_thumb.jpg",130,86,18);thumbnails[5303492]=new thumbnail(5303492,"93635","Winter landscape near Wellow","Wellowroad-snow_ed_thumb.jpg",130,84,18);thumbnails[5302877]=new thumbnail(5302877,"93635","Tree at Dusk, Peasedown","sunsettree_thumb.jpg",130,198,18);thumbnails[5303503]=new thumbnail(5303503,"93635","Welton Vale ","Weltonfield_ed_thumb.jpg",130,87,18);thumbnails[5302949]=new thumbnail(5302949,"93635","Pony in mist with sunrise: Fosseway, Peasedown","Fosseway-horsemist_ed2_thumb.jpg",130,198,18);thumbnails[5303514]=new thumbnail(5303514,"93635","Field at dusk; Writhlington","mudfield_ed_thumb.jpg",130,86,18);thumbnails[5302926]=new thumbnail(5302926,"93635","Herring Gull","Gull_ed_thumb.jpg",130,196,18);thumbnails[5303518]=new thumbnail(5303518,"93635","Landscape with sheepcote, Compton Dando","Compton-sheep_ed_thumb.jpg",130,84,18);thumbnails[5302970]=new thumbnail(5302970,"93635","Haydon Batch, Crystal Grazing","Crystal_grazing_ed_thumb.jpg",130,86,18);thumbnails[5303524]=new thumbnail(5303524,"93635","Cornfield","Cornfield_ed_thumb.jpg",130,93,18);thumbnails[5302987]=new thumbnail(5302987,"93635","Horse walking: Dunkerton","Hosewalking_ed_thumb.jpg",130,86,18);thumbnails[5303538]=new thumbnail(5303538,"93635","Tumulus on the Fosseway: Radstock","Fosseway_tumulus_thumb.jpg",130,91,18);thumbnails[5303015]=new thumbnail(5303015,"93635","Wick Farm, Compton Dando","Compton_Dando_ed_thumb.jpg",130,87,18);thumbnails[5303547]=new thumbnail(5303547,"93635","A field with sheep near Combe Hay","Wellowsheep_ed_thumb.jpg",130,81,18);thumbnails[5303002]=new thumbnail(5303002,"93635","Horses in Fog: Haydon","Haydonhorse_ed3webv_thumb.jpg",130,85,18);thumbnails[5494717]=new thumbnail(5494717,"93635","Pendine, South Wales","Laugharne5_webed_thumb.jpg",130,87,18);thumbnails[5495704]=new thumbnail(5495704,"93635","Wave Breaking","8A-Wave-Study-5_websize_thumb.jpg",130,195,18);thumbnails[1329128]=new thumbnail(1329128,"93635","In the Duomo Museum, Florence ","Duomo_Museum_Florence_thumb.jpg",130,89,18);thumbnails[1329180]=new thumbnail(1329180,"93635","Santa Maria del Carmine, Florence","Sta_Maria_del_Carmine_thumb.jpg",130,88,18);thumbnails[1329141]=new thumbnail(1329141,"93635","Pazzi Chapel, Florence","Pazzi_Chapel_Florence_2_thumb.jpg",130,192,18);thumbnails[5495880]=new thumbnail(5495880,"93635","Temple Meads","Shop-Temple-Meads_websize_e_thumb.jpg",130,86,18);thumbnails[1329186]=new thumbnail(1329186,"93635","still life 1,Milsom Street ","Star_models_6_comp_thumb.jpg",130,85,18);thumbnails[1329194]=new thumbnail(1329194,"93635","still life 2, Radstock","936E_star_models_2_thumb.jpg",130,85,18);thumbnails[1329206]=new thumbnail(1329206,"93635","still life 3 Stall Street","Star_model_1_thumb.jpg",130,194,18);thumbnails[5518738]=new thumbnail(5518738,"93635","Still Life 4: Radstock ","Star_Model_4_thumb.jpg",130,194,18);thumbnails[5518796]=new thumbnail(5518796,"93635","Still Life 5: Glasgow","Star_ModeI_5ed_thumb.jpg",130,198,18);thumbnails[5303551]=new thumbnail(5303551,"93635","Still Life 6:The Corridor, Bath ","Corridor-statues_ed_thumb.jpg",130,199,18);var galleries=new Object();galleries[85531]=new gallery(85531,"1209337,1192089,1191557","Bath Streetlife","gallery",[1209372,1191557,1191810,1191846,1191875,1191971,1191979,1192050,1192089,1209337,1209396,5262388]);galleries[85555]=new gallery(85555,"1212368","On Buses","gallery",[1191904,1191929,1196011,1196019,1196026,1212360,1212368,1196039,1196044,1196051,5369376,5423531,5423544,5423895]);galleries[85556]=new gallery(85556,"1196167,1196156","Radstock Gala","gallery",[1196152,1196154,1196156,1196159,1196162,1196167,1196178,1196190,1196195]);galleries[85553]=new gallery(85553,"1191990","Portraits","gallery",[1191990,1192026,1192039,1237917,1257215,1209434,1209449,1341497,1209460,1213527,1213608,5495653,1329098,5496528]);galleries[88978]=new gallery(88978,"1248245,1248170,1248144","Streetlife (Colour)","gallery",[1247831,1247862,1247902,1247920,1247957,1248102,1248144,1248170,1248245,5266916,5275799,5275851,5369410,5423542,5423547,5492420,5492435,5494767,5495660,5495949,5496543]);galleries[93635]=new gallery(93635,"5302926","Other Things","gallery",[2567647,5299997,5303475,5302872,5303492,5302877,5303503,5302949,5303514,5302926,5303518,5302970,5303524,5302987,5303538,5303015,5303547,5303002,5494717,5495704,1329128,1329180,1329141,5495880,1329186,1329194,1329206,5518738,5518796,5303551]);var imageSets=new Object();imageSets[1]="5518796,5518738,5496543,5496528,5495949,5495880,5495704,5495660,5495653,5494767,5494717,5492435,5492420,5423895,5423547,5423544,5423542,5423531,5369410,5369376,5303551,5303538,5303514,5303503,5303015,5302987,5302970,5302949,5302926,5302872,5299997,5275851,5275799,5266916,5262388,2567647,1341497,1329186,1329141,1329128,1329098,1248245,1248170,1248102,1247957,1247902,1247862,1247831,1237917,1213608,1212360,1209460,1209449,1209434,1209372,1196195,1196178,1196167,1196162,1196159,1196156,1196152,1196051,1196044,1196039,1196026,1196019,1192089,1192050,1192026,1191990,1191979,1191929,1191904,1191875,1191810,1191557";imageSets[2]="5302926,1248245,1248170,1248144,1212368,1209337,1196167,1196156,1192089,1191990,1191557";imageSets[3]="5518796,5518738,5496543,5496528,5495949,5495880,5495704,5495660,5495653,5494767,5494717,5492435,5492420,5423895,5423547,5423544,5423542,5423531,5369410,5369376,5303551,5303547,5303538,5303524,5303518,5303514,5303503,5303492,5303475,5303015,5303002,5302987,5302970,5302949,5302926,5302877,5302872,5299997,5275851,5275799,5266916,5262388,2567647,1341497,1329206,1329194,1329186,1329180,1329141,1329128";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/pauleff/images";break}switch(a){case 1:b="http://www1.clikpic.com/pauleff/images";break}switch(a){case 2:b="http://admin.clikpic.com/pauleff/images";break}switch(a){case 24:b="http://tpc15/clikpic/pauleff/images";break}switch(a){case 4:b="http://www.clikchurch.com/pauleff/images";break}switch(a){case 5:b="http://www2.clikpic.com/pauleff/images";break}switch(a){case 22:b="http://tpc5/clikpic/pauleff/images";break}switch(a){case 23:b="http://tpc10/clikpic/pauleff/images";break}switch(a){case 25:b="http://tpc16/clikpic/pauleff/images";break}switch(a){case 15:b="http://www3.clikpic.com/pauleff/images";break}switch(a){case 18:b="http://www4.clikpic.com/pauleff/images";break}switch(a){case 19:b="http://www5.clikpic.com/pauleff/images";break}switch(a){case 31:b="http://www7.clikpic.com/pauleff/images";break}switch(a){case 32:b="http://admin2.clikpic.com/pauleff/images";break}switch(a){case 33:b="http://www8.clikpic.com/pauleff/images";break}switch(a){case 34:b="http://www9.clikpic.com/pauleff/images";break}switch(a){case 35:b="http://admin3.clikpic.com/pauleff/images";break}switch(a){case 37:b="http://admin4.clikpic.com/pauleff/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="'+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="Paul Francis Photographs: "+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+'")'})}}};