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[3474929]=new thumbnail(3474929,"212540","Bedouin family in the Lebanese mountains","Bedouin family_thumb.jpg",130,86,15);thumbnails[3474933]=new thumbnail(3474933,"212540","Vending on Beirut's Corniche","BeiCo020_thumb.jpg",130,86,15);thumbnails[3474937]=new thumbnail(3474937,"212540","Rainbow over Beirut","BeiMi033_thumb.jpg",130,86,15);thumbnails[3479895]=new thumbnail(3479895,"212540","Bird of Paradise flower in a Lebanese garden","Bird of Paradise flower_thumb.jpg",130,86,15);thumbnails[3479897]=new thumbnail(3479897,"212540","Fishing boats at Byblos","Fishing boats at Byblos_thumb.jpg",130,86,15);thumbnails[3479899]=new thumbnail(3479899,"212540","Fishing port near Beirut","Fishing port near Beirut_thumb.jpg",130,86,15);thumbnails[3479900]=new thumbnail(3479900,"212540","Street vendors during public demonstrations in Beirut","Independence demonstrations_thumb.jpg",130,86,15);thumbnails[3479901]=new thumbnail(3479901,"212540","Sarcophagi in Tyre","Sarcophagi in Tyre_thumb.jpg",130,86,15);thumbnails[3479903]=new thumbnail(3479903,"212540","Ruined railway in the Beka'a Valley","Railway ruins_thumb.jpg",130,86,15);thumbnails[3479904]=new thumbnail(3479904,"212540","The Al Amine mosque in Beirut","Al Amine mosque in Beirut_thumb.jpg",130,196,15);thumbnails[3479905]=new thumbnail(3479905,"212540","Construction work in Beirut","Reconstruction work in Downtown Beirut_thumb.jpg",130,196,15);thumbnails[3479906]=new thumbnail(3479906,"212540","Bedouin children in the Lebanese mountains","Bedouin children in northern Lebanon_thumb.jpg",130,196,15);thumbnails[3479907]=new thumbnail(3479907,"212540","Fields of Black Iris in the Lebanese mountains","Black Iris in the Lebanese mountains_thumb.jpg",130,196,15);thumbnails[3479908]=new thumbnail(3479908,"212540","Jounieh Bay from Harissa","Lebanese coast from Harissa_thumb.jpg",130,196,15);thumbnails[3479911]=new thumbnail(3479911,"212540","War memorial near Beirut","War memorial near Beirut_thumb.jpg",130,196,15);thumbnails[3479914]=new thumbnail(3479914,"212826","Panoramic view of Aleppo from the Citadel","Aleppo panoramic_thumb.jpg",130,86,15);thumbnails[3479915]=new thumbnail(3479915,"212826","Hardware in a souq in Aleppo","Aleppo souq_thumb.jpg",130,86,15);thumbnails[3479916]=new thumbnail(3479916,"212826",'Herding sheep through one of Syria\'s "Dead Cities"',"Dead cities_thumb.jpg",130,86,15);thumbnails[3479917]=new thumbnail(3479917,"212826","St Simeon's column in northern Syria","St Simeon's column_thumb.jpg",130,86,15);thumbnails[3479918]=new thumbnail(3479918,"212826","The fortress at Crac des Chevaliers","Crac des Chevaliers_thumb.jpg",130,196,15);thumbnails[3479919]=new thumbnail(3479919,"212826","One of the ancient waterwheels at Hama","Hama waterwheel_thumb.jpg",130,196,15);thumbnails[3479920]=new thumbnail(3479920,"212826","Lanterns in a souq in Aleppo","Lanterns in Aleppo_thumb.jpg",130,196,15);thumbnails[3492940]=new thumbnail(3492940,"","","ChrisPictureBWweb_thumb.jpg",130,203,15);thumbnails[3493012]=new thumbnail(3493012,"213587","Street kids in a Cairo suburb","EgCai022_thumb.jpg",130,86,15);thumbnails[3493049]=new thumbnail(3493049,"213587","Diners on a Nile cruise","EgCai045_thumb.jpg",130,86,15);thumbnails[3493054]=new thumbnail(3493054,"213587","A Cairo traffic jam and feluccas on the Nile","EgCai082_thumb.jpg",130,86,15);thumbnails[3493058]=new thumbnail(3493058,"213587","Feluccas moored on the Nile next to The Four Seasons hotel","EgNil019_thumb.jpg",130,196,15);thumbnails[3493062]=new thumbnail(3493062,"213587","Bows of a Nile felucca","EgNil032_thumb.jpg",130,86,15);thumbnails[3493065]=new thumbnail(3493065,"213587","Locomotive in the Cairo Railway museum","EgRai016_thumb.jpg",130,86,15);thumbnails[3517720]=new thumbnail(3517720,"215254","The beach and fortifications at Budva","E13-02-3_thumb.jpg",130,92,15);thumbnails[3517721]=new thumbnail(3517721,"215254","Fishing port at Budva","E13-02-11_thumb.jpg",130,92,15);thumbnails[3517722]=new thumbnail(3517722,"215254","Sveti Stefan","E14-02-7_thumb.jpg",130,92,15);thumbnails[3517723]=new thumbnail(3517723,"215254","Moated city at Kotor","E14-02-15_thumb.jpg",130,184,15);thumbnails[3517724]=new thumbnail(3517724,"215254","St Tryphon's cathedral in Kotor","E15-02-1_thumb.jpg",130,184,15);thumbnails[3517725]=new thumbnail(3517725,"215254","Kotor bay","E15-02-7_thumb.jpg",130,93,15);thumbnails[3517728]=new thumbnail(3517728,"215254","Fishing boat in Budva harbour","E13_02_15_thumb.jpg",130,184,15);thumbnails[3517729]=new thumbnail(3517729,"215254","The moat at Kotor","E14_02_13_thumb.jpg",130,184,15);thumbnails[3540158]=new thumbnail(3540158,"216747","Park in Berat","Berat-park_thumb.jpg",130,184,15);thumbnails[3540159]=new thumbnail(3540159,"216747","The new cathedral in Korca","New-cathedral-in-Korca_thumb.jpg",130,92,15);thumbnails[3540160]=new thumbnail(3540160,"216747","Mosque in Kruja","Mosque-in-Kruja_thumb.jpg",130,183,15);thumbnails[3540162]=new thumbnail(3540162,"216747","Shops in the bazaar in Kruja","The-bazaar-in-Kruja_thumb.jpg",130,92,15);thumbnails[3540168]=new thumbnail(3540168,"216747","Roadside market near Elbasan","Roadside-market-near-Elbasan_thumb.jpg",130,92,15);thumbnails[3540169]=new thumbnail(3540169,"216747","Roadside shrine in the mountains of central Albania","Roadside-shrine_thumb.jpg",130,91,15);thumbnails[3540175]=new thumbnail(3540175,"216747","Derelict submarines near Vlora","Submarines-at-Vlora_thumb.jpg",130,88,15);thumbnails[3540176]=new thumbnail(3540176,"216747","On top of the Llogara Pass","On-top-of-the-Llogara-Pass_thumb.jpg",130,92,15);thumbnails[3540178]=new thumbnail(3540178,"216747","Service in the Orthodox cathedral in Tirana","Orthodox-cathedral-in-Tirana_thumb.jpg",130,184,15);thumbnails[3540179]=new thumbnail(3540179,"216747","Bektashi tekke in a Tirana suburb","Bektashi-tekke-in-Tirana_thumb.jpg",130,92,15);thumbnails[3540181]=new thumbnail(3540181,"216747","Central Tirana at night","Tirana-by-night_thumb.jpg",130,185,15);thumbnails[3540182]=new thumbnail(3540182,"216747","Skenderbeg Square in Tirana","Skenderbeg-Square-in-Tirana_thumb.jpg",130,92,15);thumbnails[5521521]=new thumbnail(5521521,"312772","Blue Mountains","Blue_Mountains_thumb.jpg",130,197,15);thumbnails[5521522]=new thumbnail(5521522,"312772","Darling Harbour","Darling_Harbour_thumb.jpg",130,193,15);thumbnails[5521523]=new thumbnail(5521523,"312772","DidgereeDoos in Cairns","DidgereeDoos_in_Cairns_thumb.jpg",130,186,15);thumbnails[5521524]=new thumbnail(5521524,"312772","Giraffe and Opera House","Giraffe_and_Opera_House_thumb.jpg",130,196,15);thumbnails[5521525]=new thumbnail(5521525,"312772","Harbour Bridge","Harbour_Bridge_thumb.jpg",130,91,15);thumbnails[5521526]=new thumbnail(5521526,"312772","Kings Cross in Sydney","Kings_Cross_in_Sydney_thumb.jpg",130,89,15);thumbnails[5521527]=new thumbnail(5521527,"312772","Port Douglas in Queensland","Port_Douglas_in_Queensland_thumb.jpg",130,196,15);thumbnails[5521528]=new thumbnail(5521528,"312772","Sydney Harbour musician","Sydney_Harbour_musician_thumb.jpg",130,86,15);thumbnails[5521529]=new thumbnail(5521529,"312772","Taronga Zoo and Harbour Bridge","Taronga_Zoo_and_Harbour_Bridge_thumb.jpg",130,86,15);thumbnails[5521530]=new thumbnail(5521530,"312772","Zoo and Opera House","Taronga_Zoo_and_Opera_House_thumb.jpg",130,100,15);thumbnails[5521533]=new thumbnail(5521533,"312773","Chobe National Park","Chobe_National_Park_thumb.jpg",130,86,15);thumbnails[5521534]=new thumbnail(5521534,"312773","Kasane Tourist Office","Kasane_Tourist_Office_thumb.jpg",130,98,15);thumbnails[5521535]=new thumbnail(5521535,"312773","Okavango Delta serpentine","Okavango_Delta_serpentine_thumb.jpg",130,192,15);thumbnails[5521536]=new thumbnail(5521536,"312773","Okavango Delta","Okavango_Delta_thumb.jpg",130,86,15);thumbnails[5521537]=new thumbnail(5521537,"312773","On safari","On_safari_thumb.jpg",130,86,15);thumbnails[5521538]=new thumbnail(5521538,"312773","Suburban dwelling in Maun","Suburb_of_Maun_thumb.jpg",130,86,15);thumbnails[5340335]=new thumbnail(5340335,"293094","Snow in Ledbury January 2010","Ledbury_snow_in_January_2010_thumb.jpg",130,196,15);thumbnails[5190755]=new thumbnail(5190755,"293094","Alms houses and clock tower in Ledbury","Alms_houses_and_clock_tower_in_Ledbury_thumb.jpg",130,86,15);thumbnails[5190756]=new thumbnail(5190756,"293094","Castle Green in Hereford","Castle_Green_Hereford_thumb.jpg",130,65,15);thumbnails[5190757]=new thumbnail(5190757,"293094","Hereford Cathedral","Hereford_Cathedral_thumb.jpg",130,86,15);thumbnails[5190758]=new thumbnail(5190758,"293094","Strawberries at Ross-on-wye","Strawberries_at_Ross-on-Wye_thumb.jpg",130,86,15);thumbnails[5190759]=new thumbnail(5190759,"293094","The Pavilion cafe in Leominster","The_Pavilion_cafe_in_Leominster_thumb.jpg",130,86,15);thumbnails[5190761]=new thumbnail(5190761,"293094","Detail from Hereford's Victoria Bridge","Victoria_Bridge_in_Hereford_thumb.jpg",130,86,15);thumbnails[5190762]=new thumbnail(5190762,"293094","Autumn at How Caple","Autumn_at_How_Caple_thumb.jpg",130,196,15);thumbnails[5190763]=new thumbnail(5190763,"293094","Bicycles in Hereford","Bicycles_in_Hereford_thumb.jpg",130,196,15);thumbnails[5190764]=new thumbnail(5190764,"293094","Fishing lodge on the River Wye","Fishing_lodge_on_the_River_Wye_thumb.jpg",130,196,15);thumbnails[5190765]=new thumbnail(5190765,"293094","Pub at Pembridge","Pembridge_thumb.jpg",130,196,15);thumbnails[5190766]=new thumbnail(5190766,"293094","Summer refreshments in Eardisland","Summer_refreshments_in_Eardisland_thumb.jpg",130,196,15);thumbnails[5190767]=new thumbnail(5190767,"293094","Welcome to Ledbury","Welcome_to_Ledbury_thumb.jpg",130,196,15);thumbnails[5190768]=new thumbnail(5190768,"293094","Wood carving in Hereford","Wood_carving_in_Hereford_thumb.jpg",130,196,15);thumbnails[3474866]=new thumbnail(3474866,"211066","Business activities","Defender_thumb.jpg",130,195,15);thumbnails[3479871]=new thumbnail(3479871,"211066","Staff events","Post Office Staff_thumb.jpg",130,87,15);thumbnails[3479872]=new thumbnail(3479872,"211066","Theatrical photography","Crowns of Cradley_thumb.jpg",130,195,15);thumbnails[3491108]=new thumbnail(3491108,"211066","Product photography","Croquet_thumb.jpg",130,87,15);thumbnails[3491109]=new thumbnail(3491109,"211066","Photography for promotional material","Hat Shop_thumb.jpg",130,195,15);thumbnails[3491130]=new thumbnail(3491130,"211066","Editorial","Air Ambulance_thumb.jpg",130,87,15);thumbnails[3491131]=new thumbnail(3491131,"211066","Civic events","HMS Ledbury_thumb.jpg",130,87,15);thumbnails[3491132]=new thumbnail(3491132,"211066","Public events and shows","Eve28-93_thumb.jpg",130,196,15);thumbnails[3990201]=new thumbnail(3990201,"211066","Formal Portraits","One_thumb.jpg",130,200,15);thumbnails[3990204]=new thumbnail(3990204,"211066","Publicity Portraits","Two_thumb.jpg",130,95,15);thumbnails[3990205]=new thumbnail(3990205,"211066","Informal Portraits","Three_thumb.jpg",130,192,15);thumbnails[5340326]=new thumbnail(5340326,"211066","Corporate Events","Corporate_Events_thumb.jpg",130,196,15);thumbnails[5340324]=new thumbnail(5340324,"211066","Business Presentations","Business_Presentations_thumb.jpg",130,62,15);thumbnails[3474888]=new thumbnail(3474888,"211067","Albanian shipwreck","Anchorman_thumb.jpg",130,92,15);thumbnails[3474896]=new thumbnail(3474896,"211067","Fishmonger's Wares","Fishmonger's-Shop_thumb.jpg",130,178,15);thumbnails[3474897]=new thumbnail(3474897,"211067","Junk Shop","Junk-Shop_thumb.jpg",130,184,15);thumbnails[3474899]=new thumbnail(3474899,"211067","Yatton","Yatton_thumb.jpg",130,69,15);thumbnails[3474900]=new thumbnail(3474900,"211067","Towards May Hill","Towards May Hill_thumb.jpg",130,44,15);thumbnails[3474904]=new thumbnail(3474904,"211067","Palmyra Tombs","Palmyra-tombs-1_thumb.jpg",130,92,15);thumbnails[3474905]=new thumbnail(3474905,"211067","Doctor's Balcony","Doctor's-balcony,-Beirut_thumb.jpg",130,92,15);thumbnails[3474908]=new thumbnail(3474908,"211067","Dalmatian Ropes","B8-01-4_thumb.jpg",130,199,15);var galleries=new Object();galleries[216747]=new gallery(216747,"3540182,3540181,3540179,3540178,3540176,3540175,3540169,3540168,3540162,3540160","Albania","gallery",[3540158,3540159,3540160,3540162,3540168,3540169,3540175,3540176,3540178,3540179,3540181,3540182]);galleries[312772]=new gallery(312772,"5521530,5521529,5521528,5521527,5521526,5521525,5521524,5521523,5521522,5521521","Australia","gallery",[5521521,5521522,5521523,5521524,5521525,5521526,5521527,5521528,5521529,5521530]);galleries[312773]=new gallery(312773,"5521538,5521537,5521536,5521535,5521534,5521533","Botswana","gallery",[5521533,5521534,5521535,5521536,5521537,5521538]);galleries[213587]=new gallery(213587,"3493065,3493062,3493058,3493054,3493049,3493012","Egypt","gallery",[3493012,3493049,3493054,3493058,3493062,3493065]);galleries[212540]=new gallery(212540,"3479911,3479908,3479907,3479906,3479905,3479904,3479903,3479901,3479900,3479899","Lebanon","gallery",[3474929,3474933,3474937,3479895,3479897,3479899,3479900,3479901,3479903,3479904,3479905,3479906,3479907,3479908,3479911]);galleries[215254]=new gallery(215254,"3517729,3517728,3517725,3517724,3517723,3517722,3517721,3517720","Montenegro","gallery",[3517720,3517721,3517722,3517723,3517724,3517725,3517728,3517729]);galleries[212826]=new gallery(212826,"3479920,3479919,3479918,3479917,3479916,3479915,3479914","Syria","gallery",[3479914,3479915,3479916,3479917,3479918,3479919,3479920]);galleries[293094]=new gallery(293094,"5340335,5190768,5190767,5190766,5190765,5190764,5190763,5190762,5190761,5190759","Editorial photography","gallery",[5340335,5190755,5190756,5190757,5190758,5190759,5190761,5190762,5190763,5190764,5190765,5190766,5190767,5190768]);galleries[212825]=new gallery(212825,"5521538,5521537,5521536,5521535,5521534,5521533,5521530,5521529,5521528,5521527","Travel","gallery",[]);galleries[211066]=new gallery(211066,"5340326,5340324,3990205,3990204,3990201,3491132,3491131,3491130,3491109,3491108","Commercial photography","gallery",[3474866,3479871,3479872,3491108,3491109,3491130,3491131,3491132,3990201,3990204,3990205,5340326,5340324]);galleries[211067]=new gallery(211067,"3474908,3474905,3474904,3474900,3474899,3474897,3474896,3474888","Limited edition prints","gallery",[3474888,3474896,3474897,3474899,3474900,3474904,3474905,3474908]);var imageSets=new Object();imageSets[1]="3492940";imageSets[3]="5521538,5521537,5521536,5521535,5521534,5521533,5521530,5521529,5521528,5521527,5521526,5521525,5521524,5521523,5521522,5521521,5340335,5340326,5340324,5190768,5190767,5190766,5190765,5190764,5190763,5190762,5190761,5190759,5190758,5190757,5190756,5190755,3990205,3990204,3990201,3540182,3540181,3540179,3540178,3540176,3540175,3540169,3540168,3540162,3540160,3540159,3540158,3517729,3517728,3517725";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/chrispoole/images";break}switch(a){case 1:b="http://www1.clikpic.com/chrispoole/images";break}switch(a){case 2:b="http://admin.clikpic.com/chrispoole/images";break}switch(a){case 24:b="http://tpc15/clikpic/chrispoole/images";break}switch(a){case 4:b="http://www.clikchurch.com/chrispoole/images";break}switch(a){case 5:b="http://www2.clikpic.com/chrispoole/images";break}switch(a){case 22:b="http://tpc5/clikpic/chrispoole/images";break}switch(a){case 23:b="http://tpc10/clikpic/chrispoole/images";break}switch(a){case 25:b="http://tpc16/clikpic/chrispoole/images";break}switch(a){case 15:b="http://www3.clikpic.com/chrispoole/images";break}switch(a){case 18:b="http://www4.clikpic.com/chrispoole/images";break}switch(a){case 19:b="http://www5.clikpic.com/chrispoole/images";break}switch(a){case 31:b="http://www7.clikpic.com/chrispoole/images";break}switch(a){case 32:b="http://admin2.clikpic.com/chrispoole/images";break}switch(a){case 33:b="http://www8.clikpic.com/chrispoole/images";break}switch(a){case 34:b="http://www9.clikpic.com/chrispoole/images";break}switch(a){case 35:b="http://admin3.clikpic.com/chrispoole/images";break}switch(a){case 37:b="http://admin4.clikpic.com/chrispoole/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="Chris Poole Images: "+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+'")'})}}};