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[5288709]=new thumbnail(5288709,"","Sue the T. rex ","chicago_sue_copy_thumb.jpg",130,87,15);thumbnails[5308283]=new thumbnail(5308283,"104036","Blue Spotted Stingray","bss_5_thumb.jpg",130,87,15);thumbnails[5312586]=new thumbnail(5312586,"104036","Sea Anemone","CRW_8167_thumb.jpg",130,87,15);thumbnails[5308284]=new thumbnail(5308284,"104036","Clownfish ","Clownfish_02_thumb.jpg",130,87,15);thumbnails[5308285]=new thumbnail(5308285,"104036","Scorpionfish ","Scorpionfish_03_thumb.jpg",130,87,15);thumbnails[5308286]=new thumbnail(5308286,"104036","Turtle ","Turtle_02_thumb.jpg",130,87,15);thumbnails[5308427]=new thumbnail(5308427,"104036","Bigeyes ","Bigeyes_02_thumb.jpg",130,87,15);thumbnails[5308469]=new thumbnail(5308469,"104036","Wreck ","Wreck_2_thumb.jpg",130,87,15);thumbnails[5313455]=new thumbnail(5313455,"","","London_HDR_17_thumb.jpg",130,87,15);thumbnails[5308428]=new thumbnail(5308428,"104036","Goby ","Goby_01_thumb.jpg",130,87,15);thumbnails[5308429]=new thumbnail(5308429,"104036","Moray","Moray_010_thumb.jpg",130,87,15);thumbnails[5308430]=new thumbnail(5308430,"104036","Napoleonfish ","Napoleonfish_01_thumb.jpg",130,87,15);thumbnails[5308431]=new thumbnail(5308431,"104036","Oceanic Whitetip Reef Shark","Oceanic_Whitetip_shark_thumb.jpg",130,87,15);thumbnails[5308449]=new thumbnail(5308449,"104036","","fisk_no_name_01_thumb.jpg",130,87,15);thumbnails[5308450]=new thumbnail(5308450,"104036","Greasy Grouper ","Greasy_Grouper_03_thumb.jpg",130,87,15);thumbnails[5308451]=new thumbnail(5308451,"104036","Lionfish ","Lionfish_01_thumb.jpg",130,87,15);thumbnails[5308452]=new thumbnail(5308452,"104036","Moray ","Moray_05_thumb.jpg",130,87,15);thumbnails[5308453]=new thumbnail(5308453,"104036","Bluestripe Snapper ","School_-_Bluestripe_Snapper_03_thumb.jpg",130,87,15);thumbnails[5313482]=new thumbnail(5313482,"","Saint Paul's Cathedral ","Saint_Pauls_Cathedral_3_thumb.jpg",130,87,15);thumbnails[5308465]=new thumbnail(5308465,"104036","Sea Anemone","andershollenbo_macro_thumb.jpg",130,87,15);thumbnails[5308466]=new thumbnail(5308466,"104036","BW Wreck","BW_wreck_thumb.jpg",130,87,15);thumbnails[5308467]=new thumbnail(5308467,"104036","Sea Anemone","IMG_1340_copy_filtered_thumb.jpg",130,87,15);thumbnails[5308468]=new thumbnail(5308468,"104036","Won First Prize","IMG_5388_copy_filtered_thumb.jpg",130,87,15);thumbnails[5308481]=new thumbnail(5308481,"104036","Giant Clam ","Giant_Clam_08_thumb.jpg",130,87,15);thumbnails[5308482]=new thumbnail(5308482,"104036","Hawkfish ","Hawkfish_01_thumb.jpg",130,87,15);thumbnails[5308483]=new thumbnail(5308483,"104036","","IMG_1342_copy_thumb.jpg",130,87,15);thumbnails[5308484]=new thumbnail(5308484,"104036","Moray ","Moray_09_thumb.jpg",130,87,15);thumbnails[5308485]=new thumbnail(5308485,"104036","Net Fire Coral ","Net_Fire-coral_01_thumb.jpg",130,87,15);thumbnails[5313516]=new thumbnail(5313516,"","london Eye","london_Eye_thumb.jpg",130,195,15);thumbnails[5313385]=new thumbnail(5313385,"297524","Lloyd's of London ","Lloyds_of_London_02_thumb.jpg",130,87,15);thumbnails[5313420]=new thumbnail(5313420,"297524","30 St Mary Axe ","30_St_Mary_Axe_24_thumb.jpg",130,87,15);thumbnails[5313451]=new thumbnail(5313451,"297524","HMS Belfast Warship","HMS_Belfast_Warship_thumb.jpg",130,87,15);thumbnails[5313386]=new thumbnail(5313386,"297524","Lloyd's of London","Lloyds_of_London_thumb.jpg",130,87,15);thumbnails[5313421]=new thumbnail(5313421,"297524","4 More London Riverside","4_More_London_Riverside_thumb.jpg",130,87,15);thumbnails[5313452]=new thumbnail(5313452,"297524","Houses Of Parliament","Houses_Of_Parliament_thumb.jpg",130,87,15);thumbnails[5313387]=new thumbnail(5313387,"297524","Piccadilly Circus","Piccadilly_Circus_thumb.jpg",130,87,15);thumbnails[5313422]=new thumbnail(5313422,"297524","Buckingham Palace","Buckingham_Palace_thumb.jpg",130,87,15);thumbnails[5313453]=new thumbnail(5313453,"297524","Leadenhall Market","Leadenhall_Market_thumb.jpg",130,87,15);thumbnails[5313388]=new thumbnail(5313388,"297524","The Eye","The_Eye_thumb.jpg",130,87,15);thumbnails[5313423]=new thumbnail(5313423,"297524","City Hall ","City_Hall_London_thumb.jpg",130,87,15);thumbnails[5313454]=new thumbnail(5313454,"297524","Darth Vader's helmet","London_HDR_11_thumb.jpg",130,87,15);thumbnails[5313389]=new thumbnail(5313389,"297524","Tower Bridge","Tower_Bridge_thumb.jpg",130,87,15);thumbnails[5313424]=new thumbnail(5313424,"297524","The Scoop","The_Scoop_thumb.jpg",130,87,15);thumbnails[5313476]=new thumbnail(5313476,"297524","london Eye ","london_Eye_14_thumb.jpg",130,69,15);thumbnails[5313478]=new thumbnail(5313478,"297524","london Eye ","london_Eye_27_thumb.jpg",130,87,15);thumbnails[5313480]=new thumbnail(5313480,"297524","Parliament","Parliament_thumb.jpg",130,87,15);thumbnails[5313481]=new thumbnail(5313481,"297524","Saint Paul's Cathedral","Saint_Pauls_Cathedral_thumb.jpg",130,87,15);thumbnails[5313503]=new thumbnail(5313503,"297524","30 St Mary Axe","30_St_Mary_Axe_thumb.jpg",130,195,15);thumbnails[5313504]=new thumbnail(5313504,"297524","Big Ben","Big_Ben_thumb.jpg",130,195,15);thumbnails[5313505]=new thumbnail(5313505,"297524","Crowded Streets on Westminster Bridge ","Crowded_Streets_thumb.jpg",130,195,15);thumbnails[5313506]=new thumbnail(5313506,"297524","Innocents","Innocents_thumb.jpg",130,195,15);thumbnails[5313508]=new thumbnail(5313508,"297524","Lloyd's of London ","Lloyds_of_London_01_thumb.jpg",130,195,15);thumbnails[5313515]=new thumbnail(5313515,"297524","london Eye ","london_Eye_6_thumb.jpg",130,195,15);thumbnails[5308140]=new thumbnail(5308140,"297530","Prag tyn cathedral","Prag_tyn_cathedral_thumb.jpg",130,87,15);thumbnails[5308155]=new thumbnail(5308155,"297530","The Dancing House","The_Dancing_House_thumb.jpg",130,87,15);thumbnails[5308137]=new thumbnail(5308137,"297530","Charles Bridge","Charles_Bridge_thumb.jpg",130,72,15);thumbnails[5308138]=new thumbnail(5308138,"297530","Electric Trams","Electric_Trams_thumb.jpg",130,74,15);thumbnails[5308136]=new thumbnail(5308136,"297530","Under Charles Bridge ","Charles_Bridge_1_thumb.jpg",130,87,15);thumbnails[5308139]=new thumbnail(5308139,"297530","Prague city","Prague_city_thumb.jpg",130,87,15);thumbnails[5308154]=new thumbnail(5308154,"297530","Prague Television Tower","Prague_Television_Tower_thumb.jpg",130,87,15);thumbnails[5308153]=new thumbnail(5308153,"297530","Prague Television Tower ","Prague_Television_Tower_1_thumb.jpg",130,195,15);thumbnails[5317886]=new thumbnail(5317886,"297686","Valdemars Castle","Valdemars_Slot_thumb.jpg",130,87,15);thumbnails[5317885]=new thumbnail(5317885,"297686","Maersk Mc-Kinney ","The_Maersk_Mc-Kinney_Moller_Institute_thumb.jpg",130,87,15);thumbnails[5299565]=new thumbnail(5299565,"297525","Lake Michigan ","chicago-2444_-3_-2_copy_thumb.jpg",130,87,15);thumbnails[5299685]=new thumbnail(5299685,"297525","Lake Michigan Skyline","Lake_Michigan_Skyline_thumb.jpg",130,87,15);thumbnails[5299702]=new thumbnail(5299702,"297525","Chicago River","chicago-2017-2__-3_copy_thumb.jpg",130,86,15);thumbnails[5299703]=new thumbnail(5299703,"297525","Skyscraper","chicago-2900_-2_-3_copy_thumb.jpg",130,87,15);thumbnails[5299704]=new thumbnail(5299704,"297525","Chicago skyline","chicago_skyline_thumb.jpg",130,87,15);thumbnails[5299705]=new thumbnail(5299705,"297525","The Chicago Loop","EPV0005-4_copy01_thumb.jpg",130,85,15);thumbnails[5299701]=new thumbnail(5299701,"297525","Chicago River","Chicago-1-3_-2__-4_copy_thumb.jpg",130,87,15);thumbnails[5307735]=new thumbnail(5307735,"297525","Willis Tower<br>\r\n","chicago-1979-2__-3_copy_thumb.jpg",130,87,15);thumbnails[5307797]=new thumbnail(5307797,"297525","Sea Dog","chicago-1736-3__-2_copy_thumb.jpg",130,87,15);thumbnails[5307736]=new thumbnail(5307736,"297525","Marina City","chicago-tru_copy_thumb.jpg",130,87,15);thumbnails[5307734]=new thumbnail(5307734,"297525","Marina City","chicago-1191-3_-2__copy1_thumb.jpg",130,87,15);thumbnails[5307836]=new thumbnail(5307836,"297525","600 North Lake Shore Drive","chicago-2433_-2_-3r_copy_thumb.jpg",130,195,15);thumbnails[5307837]=new thumbnail(5307837,"297525","Willis Tower ","Chicago-473-2__-3_copy_thumb.jpg",130,195,15);thumbnails[5307838]=new thumbnail(5307838,"297525","Wrigley Building ","chicago-658-3_-2__copy_thumb.jpg",130,195,15);thumbnails[5307839]=new thumbnail(5307839,"297525","John Hancock Center","chicago-801-2__-3_copy_thumb.jpg",130,195,15);thumbnails[5299803]=new thumbnail(5299803,"297525","John Hancock Center","chicago-2436-Edit-2_-3__copy_thumb.jpg",130,195,15);thumbnails[5299804]=new thumbnail(5299804,"297525","Marina City ","chicago_01_thumb.jpg",130,195,15);thumbnails[5315795]=new thumbnail(5315795,"297525","Lake Michigan Fun","Lake_Michigan_Fun_thumb.jpg",130,74,15);thumbnails[5867801]=new thumbnail(5867801,"297526","Times Square","Times_Square_thumb.jpg",130,87,15);thumbnails[5867680]=new thumbnail(5867680,"297526","Brooklyn Bridge","Brooklyn_Bridge_thumb.jpg",130,82,15);thumbnails[5867792]=new thumbnail(5867792,"297526","Divided World","nyc-Divided_World_thumb.jpg",130,94,15);thumbnails[5867682]=new thumbnail(5867682,"297526","Columbus Circle","Columbus_Circle_thumb.jpg",130,87,15);thumbnails[5867794]=new thumbnail(5867794,"297526","","NYC_HDR_16_thumb.jpg",130,87,15);thumbnails[5867683]=new thumbnail(5867683,"297526","Flatiron Building","Flatiron_Building_thumb.jpg",130,78,15);thumbnails[5867795]=new thumbnail(5867795,"297526","Sherman Monument<br>\r\n","NYC_HDR_22_thumb.jpg",130,87,15);thumbnails[5867684]=new thumbnail(5867684,"297526","Squad Cars","nyc-4940-3_-2__copy_thumb.jpg",130,87,15);thumbnails[5867796]=new thumbnail(5867796,"297526","Pier A","NYC_HDR_24_thumb.jpg",130,78,15);thumbnails[5867685]=new thumbnail(5867685,"297526","NYC ","NYC_HDR_12_thumb.jpg",130,59,15);thumbnails[5867797]=new thumbnail(5867797,"297526","Statue of Atlas","Rockefeller_Center_Statue_of_Atlas_thumb.jpg",130,87,15);thumbnails[5867798]=new thumbnail(5867798,"297526","Rush Hour","Rush_Hour_thumb.jpg",130,87,15);thumbnails[5867799]=new thumbnail(5867799,"297526","Statue of Liberty","Statue_of_Liberty_thumb.jpg",130,87,15);thumbnails[5867800]=new thumbnail(5867800,"297526","The Wall Street Bull","The_Wall_Street_Bull_thumb.jpg",130,87,15);thumbnails[5311004]=new thumbnail(5311004,"297521","The Las Vegas Strip","The_Las_Vegas_Strip_thumb.jpg",130,87,15);thumbnails[5308006]=new thumbnail(5308006,"297521","Artist's Palette","Artists_Palette_thumb.jpg",130,87,15);thumbnails[5308007]=new thumbnail(5308007,"297521","Death Valley National Park","Death_Valley_National_Park_thumb.jpg",130,76,15);thumbnails[5308008]=new thumbnail(5308008,"297521","Lake Mead  at Hoover Dam","Lake_Mead__at_Hoover_Dam_thumb.jpg",130,87,15);thumbnails[5308009]=new thumbnail(5308009,"297521","The Artist's Drive","The_Artists_Drive_thumb.jpg",130,76,15);thumbnails[5308010]=new thumbnail(5308010,"297521","Zabriskie Point","Zabriskie_Point_thumb.jpg",130,67,15);thumbnails[5308019]=new thumbnail(5308019,"297521","Fashion Show Mall Roof","Fashion_Show_Mall_Roof_thumb.jpg",130,87,15);thumbnails[5308020]=new thumbnail(5308020,"297521","Hoover Dam Builders Monument","Hoover_Dam_Builders_Monument_thumb.jpg",130,195,15);thumbnails[5308021]=new thumbnail(5308021,"297521","Hotel Paris","Hotel_Paris_thumb.jpg",130,87,15);thumbnails[5308022]=new thumbnail(5308022,"297521","Stratosphere Tower","Stratosphere_Tower_thumb.jpg",130,195,15);thumbnails[5308024]=new thumbnail(5308024,"297521","The Forum Shops","The_Forum_Shops_thumb.jpg",130,195,15);thumbnails[5308063]=new thumbnail(5308063,"297521","The Fountains at Bellagio","The_Fountains_at_Bellagio_thumb.jpg",130,195,15);var galleries=new Object();galleries[104036]=new gallery(104036,"5312586,5308485,5308484,5308483,5308482,5308481,5308469,5308468,5308467,5308466","Underwater ","gallery",[5308283,5312586,5308284,5308285,5308286,5308427,5308469,5308428,5308429,5308430,5308431,5308449,5308450,5308451,5308452,5308453,5308465,5308466,5308467,5308468,5308481,5308482,5308483,5308484,5308485]);galleries[297524]=new gallery(297524,"5313515,5313508,5313506,5313505,5313504,5313503,5313481,5313480,5313478,5313476","London ","gallery",[5313385,5313420,5313451,5313386,5313421,5313452,5313387,5313422,5313453,5313388,5313423,5313454,5313389,5313424,5313476,5313478,5313480,5313481,5313503,5313504,5313505,5313506,5313508,5313515]);galleries[104076]=new gallery(104076,"","Travel","gallery",[]);galleries[297530]=new gallery(297530,"5308155,5308154,5308153,5308140,5308139,5308138,5308137,5308136","Prague","gallery",[5308140,5308155,5308137,5308138,5308136,5308139,5308154,5308153]);galleries[297686]=new gallery(297686,"5317886,5317885","Denmark","gallery",[5317886,5317885]);galleries[297525]=new gallery(297525,"5315795,5307839,5307838,5307837,5307836,5307797,5307736,5307735,5307734,5299804","Chicago","gallery",[5299565,5299685,5299702,5299703,5299704,5299705,5299701,5307735,5307797,5307736,5307734,5307836,5307837,5307838,5307839,5299803,5299804,5315795]);galleries[297526]=new gallery(297526,"5867801,5867800,5867799,5867798,5867797,5867796,5867795,5867794,5867792,5867685","New York","gallery",[5867801,5867680,5867792,5867682,5867794,5867683,5867795,5867684,5867796,5867685,5867797,5867798,5867799,5867800]);galleries[191452]=new gallery(191452,"5867801,5867800,5867799,5867798,5867797,5867796,5867795,5867794,5867792,5867685","HDR","gallery",[]);galleries[297521]=new gallery(297521,"5311004,5308063,5308024,5308022,5308021,5308020,5308019,5308010,5308009,5308008","Nevada ","gallery",[5311004,5308006,5308007,5308008,5308009,5308010,5308019,5308020,5308021,5308022,5308024,5308063]);var imageSets=new Object();imageSets[1]="5299705,5299704,5299703,5299702,5299701,5299685,5299565,5288709";imageSets[3]="5288709";imageSets[233835]="5312586,5308485,5308484,5308483,5308482,5308481,5308469,5308468,5308467,5308466,5308465,5308453,5308452,5308451,5308450,5308449,5308431,5308430,5308429,5308428,5308427,5308286,5308285,5308284,5308283";imageSets[233836]="5313516,5313515,5313508,5313506,5313505,5313504,5313503,5313482,5313481,5313480,5313478,5313476,5313455,5313454,5313453,5313452,5313451,5313424,5313423,5313422,5313421,5313420,5313389,5313388,5313387,5313386,5313385";imageSets[233837]="5311004,5308063,5308024,5308022,5308021,5308020,5308019,5308010,5308009,5308008,5308007,5308006";imageSets[233840]="5867801,5867800,5867799,5867798,5867797,5867796,5867795,5867794,5867792,5867685,5867684,5867683,5867682,5867680";imageSets[233839]="5308155,5308154,5308153,5308140,5308139,5308138,5308137,5308136";imageSets[233842]="5317886,5317885";imageSets[233838]="5315795,5307839,5307838,5307837,5307836,5307797,5307736,5307735,5307734,5299804,5299803,5299705,5299704,5299703,5299702,5299701,5299685,5299565";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/sandel/images";break}switch(a){case 1:b="http://www1.clikpic.com/sandel/images";break}switch(a){case 2:b="http://admin.clikpic.com/sandel/images";break}switch(a){case 24:b="http://tpc15/clikpic/sandel/images";break}switch(a){case 4:b="http://www.clikchurch.com/sandel/images";break}switch(a){case 5:b="http://www2.clikpic.com/sandel/images";break}switch(a){case 22:b="http://tpc5/clikpic/sandel/images";break}switch(a){case 23:b="http://tpc10/clikpic/sandel/images";break}switch(a){case 25:b="http://tpc16/clikpic/sandel/images";break}switch(a){case 15:b="http://www3.clikpic.com/sandel/images";break}switch(a){case 18:b="http://www4.clikpic.com/sandel/images";break}switch(a){case 19:b="http://www5.clikpic.com/sandel/images";break}switch(a){case 31:b="http://www7.clikpic.com/sandel/images";break}switch(a){case 32:b="http://admin2.clikpic.com/sandel/images";break}switch(a){case 33:b="http://www8.clikpic.com/sandel/images";break}switch(a){case 34:b="http://www9.clikpic.com/sandel/images";break}switch(a){case 35:b="http://admin3.clikpic.com/sandel/images";break}switch(a){case 37:b="http://admin4.clikpic.com/sandel/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="ANDERS HOLLENBO'S PHOTOGRAPHY: "+photos[f].caption;if(photos[f].caption==""){document.getElementById("imageTitle").style.display="none"}else{document.getElementById("imageTitle").style.display="block"}var a=fnGetImageDetails(f);if(a==""){document.getElementById("imageDetails").style.display="none";var c=document.getElementById("infoWrap");var d=document.getElementById("photoInfo");if(photos[f].caption==""){if(c!=null){c.className="empty"}if(d!=null){d.className="empty"}}else{if(c!=null){c.className="noinfo"}if(d!=null){d.className="noinfo"}}}else{document.getElementById("imageDetails").style.display="block";var c=document.getElementById("infoWrap");if(c!=null){c.className="normal"}var d=document.getElementById("photoInfo");if(d!=null){d.className="normal"}}document.getElementById("imageDetails").innerHTML=a;resizePhotoInfo();toggleAddToCartConfirm()}else{window.location="photo_"+photos[f].id+".html"}}function toggleAddToCartConfirm(){if($("#paymentConfirm").size()){$("#paymentConfirm").hide();$("#paymentAddButton").unbind().click(function(){form=document.getElementById("paymentForm");option_id=0;if(form.item_option.value){option_id=form.item_option.value}if(addItemToBasket(form.item_number.value,photos,form.site.value,parseInt(form.quantity.value,10),option_id)){if($.browser.msie){$("#paymentConfirm").text("Item added to cart").show()}else{$("#paymentConfirm").text("Item added to cart").fadeIn()}}else{$("#paymentConfirm").text("Item not added - check cookies are enabled in your browser.").fadeIn()}})}}function fnGetImageDetails(b){var a="";if(photos[b].description!=""){a=a+'<p id="imageDescription">'+photos[b].description+"</p>"}if(photos[b].photo_ref!=""){a=a+'<p class="imageinfo" id="imageRef"><strong>Ref: </strong>'+photos[b].photo_ref+"</p>"}if(photos[b].takendate!=""){a=a+'<p class="imageinfo" id="imageDate"><strong>Date: </strong>'+photos[b].takendate+"</p>"}if(photos[b].location!=""){a=a+'<p class="imageinfo" id="imageLocation"><strong>Location: </strong>'+photos[b].location+"</p>"}if(photos[b].photographer!=""){a=a+'<p class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>'+photos[b].photographer+"</p>"}if(a!=""){a=a+'<div class="spacer"></div>'}return a}function fnGetPaymentInfo(c){var b="";if(c.item_price!==""){b=b+"<p>Order this print:</p>";b=b+'<p class="imageinfo" id="imagePrice"><strong>'+c.purchase_instruction+"</strong> 							"+(c.item_price).toFixed(2)+"</p>";var e=c.purchase_instruction;var d=(c.item_price).toFixed(2);var a=0}else{if(c.payment_groups_id!==""){b=b+"<p>Buy this print online:</p>";b=b+'<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';b=b+'<select class="paymentlink" name="payment_options_id" onchange="updateItemValues(document.forms.paymentForm,this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';b=b+getPaymentOptions(c.payment_groups_id);b=b+"</select>";b=b+"</form>";var a=paymentGroups[c.payment_groups_id].options[0];if(paymentOptions[a]){var e=paymentOptions[a].payment_option;var d=paymentOptions[a].price}}else{}}if(c.item_price!==""||c.payment_groups_id!==""){b=b+'<div class="clearing">&nbsp;</div>'}return b}function previous(d,b){var c=d.value;var a=galleries[photos[c].galleries_id].photoIDs;nextImg=getNextId(c,a,1);if(nextImg!=-1){updateImage(nextImg,d,b)}}function showGalleryImage(c,b){imageID=randomListVal(galleries[c].featured_images);if(imageID!=0){b.src=thumbnails[imageID].src;b.width=thumbnails[imageID].width;b.height=thumbnails[imageID].height;if(b.width<130){var e=$("img#gallery"+c);e.parents(".thumbWrap").width(b.width);var a=e.siblings("h3").size()==1?e.siblings("h3"):e.parent(".thumbWrap").siblings("h3");var f=parseInt(a.css("padding-left"))+parseInt(a.css("padding-right"));var d=parseInt(a.css("border-left-width"))+parseInt(a.css("border-right-width"));a.width(e.outerWidth(true)-f-d)}}}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+'")'})}}};