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[2218189]=new thumbnail(2218189,"","","ace small_thumb.JPG",130,129,1);thumbnails[2848642]=new thumbnail(2848642,"177375","Bathers","bathers_1_thumb.JPG",130,104,1);thumbnails[3442792]=new thumbnail(3442792,"252122","Duality","black_hole_in_milky_way_thumb.JPG",130,132,1);thumbnails[3567209]=new thumbnail(3567209,"252122","Uncertain Outcome","uncertain_outcome_i1_thumb.JPG",130,136,1);thumbnails[3763988]=new thumbnail(3763988,"252122","Man Reaching for the Sun","man_reaching_i_thumb.JPG",130,173,1);thumbnails[3806936]=new thumbnail(3806936,"252122","Taste of Mango","juicy_mango_eater_thumb.JPG",130,183,1);thumbnails[3985342]=new thumbnail(3985342,"","","me2_thumb.JPG",130,188,1);thumbnails[4078881]=new thumbnail(4078881,"252122","Latitude","woman_contemplating_thumb.JPG",130,182,1);thumbnails[4140188]=new thumbnail(4140188,"252122","Writer and Painter","poet_and_painter_thumb.JPG",130,121,1);thumbnails[4629607]=new thumbnail(4629607,"252122","Poet and Painter","poet_and_painter_small_thumb.jpg",130,130,1);thumbnails[4708309]=new thumbnail(4708309,"252122","Upside Down Woman (2nd version)","upsidedownwoman_thumb.JPG",130,406,1);thumbnails[4708344]=new thumbnail(4708344,"252122","Thought Experiment I","thought_experiment_colour_thumb.JPG",130,139,1);thumbnails[4796777]=new thumbnail(4796777,"252122","Butterfly Collector","lepidopteristyellow_thumb.JPG",130,143,1);thumbnails[4863144]=new thumbnail(4863144,"252122","The Butterfly Collectors","butterfly_collectors_thumb.JPG",130,105,1);thumbnails[5193344]=new thumbnail(5193344,"252122","Flying Machine","yellow_flying_machine_thumb.JPG",130,184,1);thumbnails[5252696]=new thumbnail(5252696,"252122","Her Garden","her_garden_21_thumb.JPG",130,104,1);thumbnails[5316957]=new thumbnail(5316957,"252122","Thought Experiment II","thought_experiment_21_thumb.JPG",130,135,1);thumbnails[5317218]=new thumbnail(5317218,"252122","Flying Machine II","flying_machine5_thumb.JPG",130,168,1);thumbnails[5414762]=new thumbnail(5414762,"252122","Construction Drawing","construction_thumb.JPG",130,139,1);thumbnails[5463304]=new thumbnail(5463304,"252122","Men Listening to the Start of the Universe","cosmic_background_radiation_thumb.JPG",130,166,1);thumbnails[5540959]=new thumbnail(5540959,"252122","Equation for the Beginning","Equation_for_the_Beginning_1_thumb.JPG",130,110,1);thumbnails[5566234]=new thumbnail(5566234,"252122","Desert","desert2_thumb.JPG",130,91,1);thumbnails[5569304]=new thumbnail(5569304,"252122","The Breath of an Idea","themeeting2_thumb.JPG",130,141,1);thumbnails[6133124]=new thumbnail(6133124,"343576","starbucks coffee cup holder depicting electron - positron interaction","starbucks_thumb.JPG",130,130,1);thumbnails[6133128]=new thumbnail(6133128,"343576","all matter is the same","all_matter_is_the_same_thumb.JPG",130,162,1);thumbnails[6133133]=new thumbnail(6133133,"343576","this tremendous world of interconnecting hierarchies","hierarchy1_thumb.jpg",130,188,1);thumbnails[6133135]=new thumbnail(6133135,"343576",'"there is always the chance of an unexpected result that will shake the world"',"entangle_web_thumb.JPG",130,93,1);thumbnails[6133141]=new thumbnail(6133141,"343576","physicist's notes on paper bag","physicists_notes1_thumb.JPG",130,87,1);thumbnails[6133328]=new thumbnail(6133328,"343576","physicist's window - with notes and equations","window_thumb.JPG",130,173,1);thumbnails[6177307]=new thumbnail(6177307,"343576","a proposal for small reversals of the arrow of time ","a_proposal_2_thumb.JPG",130,100,1);thumbnails[6297748]=new thumbnail(6297748,"343576","even martians would have quantum mechanics","even_martians_thumb.JPG",130,163,1);thumbnails[6301020]=new thumbnail(6301020,"343576","things are not as they seem - solids are mostly empty space and empty space is not empty enough","space_not_empty_enough_thumb.JPG",130,135,1);thumbnails[6301044]=new thumbnail(6301044,"343576","the universal and abstract nature of our scientific theories lets the human scaffolding via which they are constructed be completely removed from the final edifice","edifice_drawing_thumb.JPG",130,186,1);thumbnails[1051553]=new thumbnail(1051553,"","Reading, Saturday Morning.  Roisin McAuley and Richard Lee","reading_thumb.JPG",130,96,1);thumbnails[1051560]=new thumbnail(1051560,"","Annie and Salvador","annie_thumb.JPG",130,307,1);thumbnails[1051583]=new thumbnail(1051583,"","Self","self1_thumb.JPG",130,277,1);thumbnails[2848651]=new thumbnail(2848651,"177375","The Contender II","contender 2_1_thumb.JPG",130,204,1);thumbnails[577286]=new thumbnail(577286,"","Self in the Studio Calm","self oval_thumb.JPG",130,163,1);thumbnails[1969745]=new thumbnail(1969745,"121542","God on our side","Men Fighting 2_thumb.JPG",130,86,1);thumbnails[2235511]=new thumbnail(2235511,"121542","Vacuum energy","waiting_thumb.JPG",130,140,1);thumbnails[2046558]=new thumbnail(2046558,"121542","The go-between","go-between_thumb.JPG",130,88,1);thumbnails[2306025]=new thumbnail(2306025,"121542","First test of the new theory","limelight_thumb.JPG",130,202,1);thumbnails[1635414]=new thumbnail(1635414,"121542","All Winners","all winners_thumb.JPG",130,93,1);thumbnails[2666673]=new thumbnail(2666673,"121542","The fragile reversal of entropy","wisdom II1_thumb.JPG",130,159,1);thumbnails[2666674]=new thumbnail(2666674,"121542","Standing on the shoulders of giants","Wisdom I_thumb.JPG",130,142,1);thumbnails[3457910]=new thumbnail(3457910,"121542","Hope","hope painting_thumb.JPG",130,163,1);thumbnails[3143644]=new thumbnail(3143644,"121542","Archimedes and the golden crown","archimedes_thumb.JPG",130,125,1);thumbnails[2794005]=new thumbnail(2794005,"121542","The equation of everything","equation_of_everything_2_thumb.JPG",130,98,1);thumbnails[2832807]=new thumbnail(2832807,"121542","Circular constant","Woman By Pool Ptg1_thumb.JPG",130,93,1);thumbnails[3187394]=new thumbnail(3187394,"121542","It must be beautiful","her garden_thumb.JPG",130,103,1);thumbnails[1807683]=new thumbnail(1807683,"121542","Men Fighting With Broomsticks About Ladders","broomsticks2_thumb.JPG",130,179,1);thumbnails[1888704]=new thumbnail(1888704,"121542","Face With A View (II)","Face With A View small_thumb.JPG",130,155,1);thumbnails[1843086]=new thumbnail(1843086,"121542","Gasping Woman ","Gasping Woman_thumb.JPG",130,184,1);thumbnails[2177045]=new thumbnail(2177045,"121542","Time","man by canal1_thumb.JPG",130,191,1);thumbnails[2264098]=new thumbnail(2264098,"121542","Woman by Pool","woman by pool_thumb.JPG",130,92,1);thumbnails[1807684]=new thumbnail(1807684,"121542","Hope ","hope 3_thumb.JPG",130,171,1);thumbnails[1874217]=new thumbnail(1874217,"121542","Cafe","cafe_thumb.JPG",130,112,1);thumbnails[3749425]=new thumbnail(3749425,"121542","Seer","seer_small_1_thumb.jpg",130,174,1);thumbnails[2072758]=new thumbnail(2072758,"121542","The Man Who Fell Over Laughing","man_who_fell_thumb.JPG",130,68,1);thumbnails[1874226]=new thumbnail(1874226,"121542","Figure Going to War","figure going to war1_thumb.JPG",130,250,1);thumbnails[2037673]=new thumbnail(2037673,"121542","Figure With Nails","figure_with_nails_thumb.JPG",130,157,1);thumbnails[5074585]=new thumbnail(5074585,"54564","Upside Down Woman - version 1","upside_down_woman_-_cardboard_thumb.JPG",130,358,1);thumbnails[1612670]=new thumbnail(1612670,"54564","Fishing Stories","alpha and beta_thumb.JPG",130,103,1);thumbnails[1612688]=new thumbnail(1612688,"54564","Night Journey","city_thumb.JPG",130,97,1);thumbnails[1661817]=new thumbnail(1661817,"54564","All Winners","all winners 2_thumb.JPG",130,92,1);thumbnails[1266816]=new thumbnail(1266816,"54564","Princess","princess_thumb.JPG",130,102,1);thumbnails[1557699]=new thumbnail(1557699,"54564","Face With A View","face with view_thumb.JPG",130,182,1);thumbnails[1509013]=new thumbnail(1509013,"54564","Mute","mute_thumb.JPG",130,89,1);thumbnails[1557701]=new thumbnail(1557701,"54564","Petrol Night","petrol drawing_thumb.JPG",130,227,1);thumbnails[845036]=new thumbnail(845036,"54564","Captains 3","trail_thumb.JPG",130,92,1);thumbnails[964997]=new thumbnail(964997,"54564","Outsider","outsider_thumb.JPG",130,189,1);thumbnails[964996]=new thumbnail(964996,"54564","Anesthesia","anesthesia drawing_thumb.JPG",130,185,1);thumbnails[932795]=new thumbnail(932795,"54564","Velvet Lounge","Velvet Lounge_thumb.JPG",130,96,1);thumbnails[932792]=new thumbnail(932792,"54564","Flag","Flag_thumb.JPG",130,189,1);thumbnails[932708]=new thumbnail(932708,"54564","Private View","Drift_thumb.JPG",130,175,1);thumbnails[932722]=new thumbnail(932722,"54564","Underneath","underneath3_thumb.JPG",130,174,1);thumbnails[932717]=new thumbnail(932717,"54564","Spilt","Spilt_thumb.JPG",130,95,1);thumbnails[932715]=new thumbnail(932715,"54564","Rain","Rain_thumb.JPG",130,174,1);thumbnails[764325]=new thumbnail(764325,"54564","Patriot","patriot3_thumb.JPG",130,178,1);thumbnails[932713]=new thumbnail(932713,"54564","Monkey","Moonlight Carousel_thumb.JPG",130,190,1);thumbnails[932706]=new thumbnail(932706,"54564","Click Here","Click Here1_thumb.JPG",130,194,1);thumbnails[692873]=new thumbnail(692873,"54564","Contender II","contender 2_thumb.JPG",130,204,1);thumbnails[710370]=new thumbnail(710370,"54564","Badges","badges drawing_thumb.JPG",130,85,1);thumbnails[761496]=new thumbnail(761496,"54564","Bombs","Bombs_thumb.JPG",130,99,1);thumbnails[735204]=new thumbnail(735204,"54564","Red Night Junction","night junction red_thumb.JPG",130,240,1);thumbnails[838940]=new thumbnail(838940,"54564","Captains","lounge 1_thumb.JPG",130,94,1);thumbnails[838959]=new thumbnail(838959,"54564","Captains 2","lounge 2_thumb.JPG",130,92,1);thumbnails[703869]=new thumbnail(703869,"54564","Black Carousel","black carousel_thumb.JPG",130,188,1);thumbnails[838988]=new thumbnail(838988,"54564","Ronan's Chalet","ronan's chalet_thumb.JPG",130,183,1);thumbnails[838987]=new thumbnail(838987,"54564","Bavaria in Spring 2","bavaria2_thumb.JPG",130,94,1);thumbnails[838985]=new thumbnail(838985,"54564","Bavaria in Spring","bavaria_thumb.JPG",130,98,1);thumbnails[1114245]=new thumbnail(1114245,"54564","Allotment","allotment_thumb.JPG",130,92,1);thumbnails[1530292]=new thumbnail(1530292,"54564","Donegal One","donegal1_thumb.JPG",130,94,1);thumbnails[1530293]=new thumbnail(1530293,"54564","Donegal 2","donegal2_thumb.JPG",130,97,1);thumbnails[1530294]=new thumbnail(1530294,"54564","Donegal 3","donegal3_thumb.JPG",130,95,1);thumbnails[735200]=new thumbnail(735200,"54564","Me and Van Gogh","on the road_thumb.JPG",130,169,1);thumbnails[637919]=new thumbnail(637919,"29731","Small Self","small self_thumb.JPG",130,185,1);thumbnails[692858]=new thumbnail(692858,"29731","Blue Carousel","blue roundabout_thumb.JPG",130,184,1);thumbnails[692866]=new thumbnail(692866,"29731","Anesthesia","anesthesia 2_thumb.JPG",130,191,1);thumbnails[692868]=new thumbnail(692868,"29731","Camouflage","camouflage 2_thumb.JPG",130,100,1);thumbnails[692871]=new thumbnail(692871,"29731","Camouflage II","canouflage_thumb.JPG",130,92,1);thumbnails[698138]=new thumbnail(698138,"29731","'Happy Folly'  after Goya","happy folly_thumb.JPG",130,86,1);thumbnails[550614]=new thumbnail(550614,"29731","Red Carousel","roundabout22_thumb.JPG",130,185,1);thumbnails[550615]=new thumbnail(550615,"29731","Self at Night","self_thumb.JPG",130,188,1);thumbnails[361619]=new thumbnail(361619,"29731","Vulnerable Body","pins_thumb.JPG",130,173,1);thumbnails[361592]=new thumbnail(361592,"29731","Contender","contender_thumb.JPG",130,197,1);thumbnails[366778]=new thumbnail(366778,"29731","Dandelion","dandelion21_thumb.JPG",130,191,1);thumbnails[361606]=new thumbnail(361606,"29731","Day Trippers","daytrippers1_thumb.JPG",130,157,1);thumbnails[364013]=new thumbnail(364013,"29731","Hack","hack2_thumb.JPG",130,99,1);thumbnails[474455]=new thumbnail(474455,"29731","Patriot","patriot1_thumb.JPG",130,120,1);thumbnails[364012]=new thumbnail(364012,"29731","Black Roundabout","roundabout11_thumb.JPG",130,209,1);thumbnails[806222]=new thumbnail(806222,"29731","Small Talk","smalltalk5_thumb.JPG",130,162,1);thumbnails[845038]=new thumbnail(845038,"29731","Mirror","mirror_thumb.JPG",130,130,1);thumbnails[845037]=new thumbnail(845037,"29731","Spring","back garden_thumb.JPG",130,178,1);thumbnails[362532]=new thumbnail(362532,"29730","Bathers","bathers_thumb.JPG",130,104,1);thumbnails[362533]=new thumbnail(362533,"29730","Friends","friends_thumb.JPG",130,218,1);thumbnails[362534]=new thumbnail(362534,"29730","Liverpool Street","liverpoolstreet_thumb.JPG",130,102,1);thumbnails[362536]=new thumbnail(362536,"29730","Lollipop Boy","lollipop_thumb.JPG",130,104,1);thumbnails[362538]=new thumbnail(362538,"29730","Monsoon","monsoon_thumb.JPG",130,164,1);thumbnails[362539]=new thumbnail(362539,"29730","Pink Coat","platform_thumb.JPG",130,161,1);thumbnails[362540]=new thumbnail(362540,"29730","Room 21","room21_thumb.JPG",130,92,1);thumbnails[362542]=new thumbnail(362542,"29730","Scribblers","scribblers_thumb.JPG",130,105,1);thumbnails[362544]=new thumbnail(362544,"29730","Cigarette Break","smoker_thumb.JPG",130,98,1);thumbnails[362546]=new thumbnail(362546,"29730","The Story","thestory_thumb.JPG",130,104,1);thumbnails[362548]=new thumbnail(362548,"29730","Viewing Point","viewingpoint_thumb.JPG",130,99,1);thumbnails[362556]=new thumbnail(362556,"29730","Anaesthesia","anaesthesia_thumb.JPG",130,162,1);thumbnails[362561]=new thumbnail(362561,"29730","Day Trippers","daytrippers_thumb.JPG",130,152,1);thumbnails[362572]=new thumbnail(362572,"29730","Strange Dancer","strange dancer_thumb.JPG",130,178,1);thumbnails[374848]=new thumbnail(374848,"29730","My Adulterous Wife, Drawing","adulterous wife drawing_thumb.JPG",130,170,1);thumbnails[362568]=new thumbnail(362568,"29730","Monkey","monkey_thumb.JPG",130,178,1);thumbnails[504562]=new thumbnail(504562,"29730","Crisps","crisps and coffee cup_thumb.jpg",130,92,1);var galleries=new Object();galleries[343576]=new gallery(343576,"6301044,6301020,6297748,6177307,6133328,6133141,6133135,6133133,6133128,6133124","Current","section410513",[6133124,6133128,6133133,6133135,6133141,6133328,6177307,6297748,6301020,6301044]);galleries[177375]=new gallery(177375,"2848651,2848642","The Other Geraldine Cox ","section220568",[2848642,2848651]);galleries[252122]=new gallery(252122,"4629607","Work 2009","section300250",[3442792,3567209,3763988,3806936,4078881,4140188,4629607,4708309,4708344,4796777,4863144,5193344,5252696,5316957,5317218,5414762,5463304,5540959,5566234,5569304]);galleries[121542]=new gallery(121542,"3749425,3457910,3187394,3143644,2832807,2794005,2666674,2666673,2306025,2264098","2008","gallery",[1969745,2235511,2046558,2306025,1635414,2666673,2666674,3457910,3143644,2794005,2832807,3187394,1807683,1888704,1843086,2177045,2264098,1807684,1874217,3749425,2072758,1874226,2037673]);galleries[54564]=new gallery(54564,"5074585,1661817,1612688,1612670,1557701,1557699,1530294,1530293,1530292,1509013","2007","gallery",[5074585,1612670,1612688,1661817,1266816,1557699,1509013,1557701,845036,964997,964996,932795,932792,932708,932722,932717,932715,764325,932713,932706,692873,710370,761496,735204,838940,838959,703869,838988,838987,838985,1114245,1530292,1530293,1530294,735200]);galleries[29731]=new gallery(29731,"845038,845037,806222,698138,692871,692868,692866,692858,637919,550615","2006","gallery",[637919,692858,692866,692868,692871,698138,550614,550615,361619,361592,366778,361606,364013,474455,364012,806222,845038,845037]);galleries[29730]=new gallery(29730,"504562,374848,362572,362568,362561,362556,362548,362546,362544,362542","2004/05","gallery",[362532,362533,362534,362536,362538,362539,362540,362542,362544,362546,362548,362556,362561,362572,374848,362568,504562]);var imageSets=new Object();imageSets[1]="6301044,6301020,6297748,6177307,6133141,6133135,6133133,6133128,6133124";imageSets[2]="4629607,1051583";imageSets[3]="6133141,6133135,6133133,6133128,6133124,5540959";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/geraldinec/images";break}switch(a){case 1:b="http://www1.clikpic.com/geraldinec/images";break}switch(a){case 2:b="http://admin.clikpic.com/geraldinec/images";break}switch(a){case 24:b="http://tpc15/clikpic/geraldinec/images";break}switch(a){case 4:b="http://www.clikchurch.com/geraldinec/images";break}switch(a){case 5:b="http://www2.clikpic.com/geraldinec/images";break}switch(a){case 22:b="http://tpc5/clikpic/geraldinec/images";break}switch(a){case 23:b="http://tpc10/clikpic/geraldinec/images";break}switch(a){case 25:b="http://tpc16/clikpic/geraldinec/images";break}switch(a){case 15:b="http://www3.clikpic.com/geraldinec/images";break}switch(a){case 18:b="http://www4.clikpic.com/geraldinec/images";break}switch(a){case 19:b="http://www5.clikpic.com/geraldinec/images";break}switch(a){case 31:b="http://www7.clikpic.com/geraldinec/images";break}switch(a){case 32:b="http://admin2.clikpic.com/geraldinec/images";break}switch(a){case 33:b="http://www8.clikpic.com/geraldinec/images";break}switch(a){case 34:b="http://www9.clikpic.com/geraldinec/images";break}switch(a){case 35:b="http://admin3.clikpic.com/geraldinec/images";break}switch(a){case 37:b="http://admin4.clikpic.com/geraldinec/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("section410513"!=""){if(backgrounds[imageID].galleries_id!=""){html+='<a href="'+backgrounds[imageID].section_code+"_"+backgrounds[imageID].galleries_id+'.html">'}else{html+='<a href="section410513.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("section410513"!=""){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="Geraldine Cox: "+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>note: </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+'")'})}}};