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[2262339]=new thumbnail(2262339,"116348","","Reeen-8_thumb.jpg",130,87,1);thumbnails[1845558]=new thumbnail(1845558,"116407","","_MG_6033web600w_thumb.jpg",130,87,1);thumbnails[1731330]=new thumbnail(1731330,"116407","","Deelerwoud_0069web600w_thumb.jpg",130,87,1);thumbnails[2262327]=new thumbnail(2262327,"116348","","Reeen-6_thumb.jpg",130,87,1);thumbnails[2262333]=new thumbnail(2262333,"116348","","Reeen-7_thumb.jpg",130,87,1);thumbnails[1773943]=new thumbnail(1773943,"18965","","Bossen Doorwerth november 2007 030_1mastercropweb600w_thumb.jpg",130,87,1);thumbnails[1845437]=new thumbnail(1845437,"48343","","Hoge Venen november 2007 129web600w_thumb.jpg",130,87,1);thumbnails[1845441]=new thumbnail(1845441,"48343","","Hoge Venen november 2007 144cropweb600w_thumb.jpg",130,87,1);thumbnails[1363020]=new thumbnail(1363020,"116407","","Deelerwoud 13 augustus 2007 021cropweb600w_thumb.jpg",130,87,1);thumbnails[2262309]=new thumbnail(2262309,"116348","","Reeen-2_thumb.jpg",130,87,1);thumbnails[2262311]=new thumbnail(2262311,"116348","","Reeen-3_thumb.jpg",130,87,1);thumbnails[2262317]=new thumbnail(2262317,"116348","","Reeen-4_thumb.jpg",130,87,1);thumbnails[2262321]=new thumbnail(2262321,"116348","","Reeen-5_thumb.jpg",130,87,1);thumbnails[1845722]=new thumbnail(1845722,"34352","","lightroombewerking-1728_thumb.jpg",130,87,1);thumbnails[1845740]=new thumbnail(1845740,"34352","","lightroombewerking-1654_thumb.jpg",130,87,1);thumbnails[1845943]=new thumbnail(1845943,"34352","","_MG_0572web600w_thumb.jpg",130,87,1);thumbnails[1845735]=new thumbnail(1845735,"34352","","lightroombewerking-4891_thumb.jpg",130,87,1);thumbnails[1845742]=new thumbnail(1845742,"34352","","lightroombewerking-5278_thumb.jpg",130,87,1);thumbnails[1845923]=new thumbnail(1845923,"34352","","_MG_0094web600w_thumb.jpg",130,87,1);thumbnails[1845728]=new thumbnail(1845728,"34352","","lightroombewerking-2798_thumb.jpg",130,63,1);thumbnails[1845732]=new thumbnail(1845732,"34352","","lightroombewerking-4530_thumb.jpg",130,87,1);thumbnails[1845737]=new thumbnail(1845737,"34352","","lightroombewerking-4513_thumb.jpg",130,87,1);thumbnails[1845915]=new thumbnail(1845915,"34352","","_MG_3700cropweb600w_thumb.jpg",130,87,1);thumbnails[1845931]=new thumbnail(1845931,"34352","","_MG_3694cropweb600w1_thumb.jpg",130,87,1);thumbnails[1773909]=new thumbnail(1773909,"116407","","Bemmelse polder 18 mei 2007 361crop600w_thumb.jpg",130,87,1);thumbnails[1773923]=new thumbnail(1773923,"16113","","Bemmelse polder 18 mei 2007 277cropweb600w_thumb.jpg",130,87,1);thumbnails[1370998]=new thumbnail(1370998,"16113","","Bemmelse polder 29 april 2007 003cropweb600w_thumb.jpg",130,87,1);thumbnails[1371025]=new thumbnail(1371025,"16113","","Bemmelse polder 29 april 2007 069web600w_thumb.jpg",130,87,1);thumbnails[2262303]=new thumbnail(2262303,"116348","","Reeen-1_thumb.jpg",130,87,1);thumbnails[1370990]=new thumbnail(1370990,"16113","","Bemmelse polder 27 maart 2007 016web600w_thumb.jpg",130,87,1);thumbnails[1795334]=new thumbnail(1795334,"16113","","Wylerbergmeer 27 maart 2007 076web600w_thumb.jpg",130,87,1);thumbnails[1370544]=new thumbnail(1370544,"16113","","Texel feb 2007 005web600w_thumb.jpg",130,87,1);thumbnails[1370616]=new thumbnail(1370616,"16113","","Texel feb 2007 344cropweb600w_thumb.jpg",130,87,1);thumbnails[661735]=new thumbnail(661735,"16113","","Ooijpolder 19 december 2006 106web600w_thumb.jpg",130,87,1);thumbnails[661738]=new thumbnail(661738,"16113","","Ooijpolder 19 december 2006 201web600w_thumb.jpg",130,87,1);thumbnails[661739]=new thumbnail(661739,"16113","","Ooijpolder 19 december 2006 321web600w_thumb.jpg",130,87,1);thumbnails[661740]=new thumbnail(661740,"16111","","Ooijpolder 19 december 2006 380web600w_thumb.jpg",130,87,1);thumbnails[633411]=new thumbnail(633411,"116407","","Schuilhut Hoge Veluwe 26 september 2006 110web600w72dpi1_thumb.jpg",130,87,1);thumbnails[1773838]=new thumbnail(1773838,"18965","","Deelerwoud 2 september 2006 002web600w_thumb.jpg",130,87,1);thumbnails[1845989]=new thumbnail(1845989,"34352","","_MG_7784cropweb600w_thumb.jpg",130,87,1);thumbnails[1846035]=new thumbnail(1846035,"34352","","_MG_7652web600w72dpi_thumb.jpg",130,87,1);thumbnails[1846069]=new thumbnail(1846069,"34352","","_MG_7378web600w_thumb.jpg",130,87,1);thumbnails[1846031]=new thumbnail(1846031,"34352","","lightroombewerking-6962_thumb.jpg",130,87,1);thumbnails[1846092]=new thumbnail(1846092,"34352","","_MG_5891web600w_thumb.jpg",130,87,1);thumbnails[429485]=new thumbnail(429485,"34352","","_MG_6731 web600w_thumb.jpg",130,87,1);thumbnails[429739]=new thumbnail(429739,"34352","","_MG_6693 web600w_thumb.jpg",130,87,1);thumbnails[430560]=new thumbnail(430560,"34352","","_MG_6549 web600w_thumb.jpg",130,87,1);thumbnails[430645]=new thumbnail(430645,"34352","","_MG_6742 web600w_thumb.jpg",130,87,1);thumbnails[208294]=new thumbnail(208294,"18965","","Kootwijkerzand 1 april 2006 088 usm_thumb.jpg",130,86,1);thumbnails[180735]=new thumbnail(180735,"18965","","Deelerwoud 4 maart 2006 003 PS no usm_thumb.jpg",130,86,1);thumbnails[180737]=new thumbnail(180737,"18965","","Deelerwoud 4 maart 2006 019 no usm_thumb.jpg",130,86,1);thumbnails[180740]=new thumbnail(180740,"18965","","Deelerwoud 4 maart 2006 045 no usm_thumb.jpg",130,86,1);thumbnails[174712]=new thumbnail(174712,"16111","","H&O vennen 6 augustus 001web600w72dpi_thumb.jpg",130,87,1);thumbnails[174714]=new thumbnail(174714,"16111","","H&O vennen 3 augustus 053 format_thumb.jpg",130,86,1);thumbnails[174719]=new thumbnail(174719,"16111","","Hatertse Vennen 022 format_thumb.jpg",130,86,1);thumbnails[174723]=new thumbnail(174723,"16111","","Hatertse vennen 5 november 2005 009 format_thumb.jpg",130,86,1);thumbnails[174979]=new thumbnail(174979,"16111","","Groenlanden format_thumb.jpg",130,86,1);thumbnails[174983]=new thumbnail(174983,"16111","","Hatertse vennen format_thumb.jpg",130,89,1);thumbnails[175002]=new thumbnail(175002,"16111","","PersingenOoijpolder 2 december 2005 002-01 PS FS format_thumb.jpg",130,98,1);thumbnails[442352]=new thumbnail(442352,"34352","","_MG_5645masterweb600w72dpi_thumb.jpg",130,87,1);thumbnails[442353]=new thumbnail(442353,"34352","","_MG_6112masterweb600w72dpi_thumb.jpg",130,87,1);thumbnails[442355]=new thumbnail(442355,"34352","","_MG_5881masterweb600w72dpi_thumb.jpg",130,87,1);thumbnails[443302]=new thumbnail(443302,"34352","","_MG_5348web600w72dpi_thumb.jpg",130,87,1);thumbnails[1843043]=new thumbnail(1843043,"","","Michel in actie 004cropweb600w_thumb.jpg",130,87,1);thumbnails[459631]=new thumbnail(459631,"34352","","_MG_7543web600w72dpi_thumb.jpg",130,87,1);thumbnails[457161]=new thumbnail(457161,"34352","","_MG_7545web600w72dpi_thumb.jpg",130,87,1);thumbnails[459634]=new thumbnail(459634,"34352","","_MG_7153web600w72dpi_thumb.jpg",130,87,1);thumbnails[457160]=new thumbnail(457160,"34352","","_MG_7138web600w72dpi_thumb.jpg",130,87,1);thumbnails[456656]=new thumbnail(456656,"34352","","_MG_6990web600w72dpi_thumb.jpg",130,87,1);thumbnails[2246308]=new thumbnail(2246308,"116347","","EdelhertenWebsite-18_thumb.jpg",130,195,1);thumbnails[633718]=new thumbnail(633718,"48343","","Hoge Venen 15 oktober 2006 072web600w_thumb.jpg",130,87,1);thumbnails[456661]=new thumbnail(456661,"34352","","_MG_7016web600w72dpi_thumb.jpg",130,87,1);thumbnails[2246306]=new thumbnail(2246306,"116347","","EdelhertenWebsite-14_thumb.jpg",130,195,1);thumbnails[633843]=new thumbnail(633843,"48343","","Hoge Venen 15 oktober 2006 103web600w_thumb.jpg",130,87,1);thumbnails[2246304]=new thumbnail(2246304,"116347","","EdelhertenWebsite-8_thumb.jpg",130,195,1);thumbnails[633701]=new thumbnail(633701,"48343","","_MG_9413web600w_thumb.jpg",130,87,1);thumbnails[2246302]=new thumbnail(2246302,"116347","","EdelhertenWebsite-6_thumb.jpg",130,195,1);thumbnails[633728]=new thumbnail(633728,"48343","","Hoge Venen 15 oktober 2006 090web600w_thumb.jpg",130,87,1);thumbnails[2246300]=new thumbnail(2246300,"116347","","EdelhertenWebsite-22_thumb.jpg",130,87,1);thumbnails[2246294]=new thumbnail(2246294,"116347","","EdelhertenWebsite-19_thumb.jpg",130,87,1);thumbnails[2246297]=new thumbnail(2246297,"116347","","EdelhertenWebsite-20_thumb.jpg",130,89,1);thumbnails[2246299]=new thumbnail(2246299,"116347","","EdelhertenWebsite-21_thumb.jpg",130,87,1);thumbnails[2231059]=new thumbnail(2231059,"116347","","EdelhertenWebsite-16_thumb.jpg",130,87,1);thumbnails[456660]=new thumbnail(456660,"34352","","_MG_7041web600w72dpi_thumb.jpg",130,195,1);thumbnails[2231062]=new thumbnail(2231062,"116347","","EdelhertenWebsite-17_thumb.jpg",130,87,1);thumbnails[633851]=new thumbnail(633851,"48343","","Hoge Venen 15 oktober 2006 030web600w_thumb.jpg",130,195,1);thumbnails[174741]=new thumbnail(174741,"16111","","Heerlijkheid beek format_thumb.jpg",130,195,1);thumbnails[2231053]=new thumbnail(2231053,"116347","","EdelhertenWebsite-13_thumb.jpg",130,87,1);thumbnails[633874]=new thumbnail(633874,"48343","","_MG_4587web600w_thumb.jpg",130,195,1);thumbnails[2231012]=new thumbnail(2231012,"116347","","EdelhertenWebsite-9_thumb.jpg",130,87,1);thumbnails[2231056]=new thumbnail(2231056,"116347","","EdelhertenWebsite-15_thumb.jpg",130,87,1);thumbnails[2230994]=new thumbnail(2230994,"116347","","EdelhertenWebsite-2_thumb.jpg",130,87,1);thumbnails[2230997]=new thumbnail(2230997,"116347","","EdelhertenWebsite-3_thumb.jpg",130,87,1);thumbnails[2231005]=new thumbnail(2231005,"116347","","EdelhertenWebsite-5_thumb.jpg",130,87,1);thumbnails[2231002]=new thumbnail(2231002,"116347","","EdelhertenWebsite-4_thumb.jpg",130,87,1);thumbnails[2231009]=new thumbnail(2231009,"116347","","EdelhertenWebsite-7_thumb.jpg",130,87,1);thumbnails[2231048]=new thumbnail(2231048,"116347","","EdelhertenWebsite-11_thumb.jpg",130,87,1);thumbnails[2231016]=new thumbnail(2231016,"116347","","EdelhertenWebsite-10_thumb.jpg",130,87,1);thumbnails[2230989]=new thumbnail(2230989,"116347","","EdelhertenWebsite-1_thumb.jpg",130,87,1);thumbnails[2231050]=new thumbnail(2231050,"116347","","EdelhertenWebsite-12_thumb.jpg",130,87,1);thumbnails[1845547]=new thumbnail(1845547,"16108","","Millingerwaard 5 juni 2006 050cropweb600w_thumb.jpg",130,87,1);thumbnails[1370299]=new thumbnail(1370299,"16108","","Hatertse Vennen 29 augustus 2007 035web600w_thumb.jpg",130,87,1);thumbnails[1370394]=new thumbnail(1370394,"16108","","Hatertse Vennen 29 augustus 2007 012web600w_thumb.jpg",130,87,1);thumbnails[634434]=new thumbnail(634434,"16108","","H&O vennen 16 juni 2006 030web600w_thumb.jpg",130,87,1);thumbnails[636142]=new thumbnail(636142,"16108","","Millingerwaard 5 juni 2006 026web600w_thumb.jpg",130,87,1);thumbnails[174727]=new thumbnail(174727,"16108","","Hatertse vennen 038web600w_thumb.jpg",130,87,1);thumbnails[174704]=new thumbnail(174704,"16108","","H&O vennen 3 augustus 035cropweb600w_thumb.jpg",130,87,1);thumbnails[1370282]=new thumbnail(1370282,"16108","","Hatertse Vennen 23 augustus 2007 024cropweb600w_thumb.jpg",130,87,1);thumbnails[1370509]=new thumbnail(1370509,"16108","","Hatertse Vennen 23 augustus 2007 015cropweb600w_thumb.jpg",130,87,1);thumbnails[1363059]=new thumbnail(1363059,"16108","","_MG_5064web600w_thumb.jpg",130,195,1);thumbnails[1363027]=new thumbnail(1363027,"16108","","Deelerwoud 19 augustus 2007 032cropweb600w_thumb.jpg",130,195,1);thumbnails[634464]=new thumbnail(634464,"16108","","H&O vennen 17 juni 2006 023web600w_thumb.jpg",130,195,1);thumbnails[634432]=new thumbnail(634432,"16108","","H&O vennen 16 juni 2006 013web600w_thumb.jpg",130,195,1);thumbnails[288432]=new thumbnail(288432,"16108","","Millingerwaard-5-juni-2006-_thumb.jpg",130,195,1);thumbnails[1772397]=new thumbnail(1772397,"16108","","H&O vennen 21 september 2005 070web600h72dpi_thumb.jpg",130,195,1);thumbnails[174708]=new thumbnail(174708,"16108","","H&O vennen 6 augustus 079 format_thumb.jpg",130,195,1);thumbnails[174731]=new thumbnail(174731,"16108","","Millingerwaard 16 augustus 038 format_thumb.jpg",130,195,1);thumbnails[174733]=new thumbnail(174733,"16108","","Millingerwaard 4 september '05 062 format_thumb.jpg",130,195,1);var galleries=new Object();galleries[116347]=new gallery(116347,"2246308,2246306,2246304,2246302,2246300,2246299,2246297,2246294,2231062,2231059","Edelherten","gallery",[2246308,2246306,2246304,2246302,2246300,2246294,2246297,2246299,2231059,2231062,2231053,2231012,2231056,2230994,2230997,2231005,2231002,2231009,2231048,2231016,2230989,2231050]);galleries[48343]=new gallery(48343,"633718","Hoge Venen (B)","gallery",[1845437,1845441,633718,633843,633701,633728,633851,633874]);galleries[34352]=new gallery(34352,"1846035,1845989,1845931,1845923,1845915,1845735,459634,429739,429485","IJsland","gallery",[1845722,1845740,1845943,1845735,1845742,1845923,1845728,1845732,1845737,1845915,1845931,1845989,1846035,1846069,1846031,1846092,429485,429739,430560,430645,442352,442353,442355,443302,459631,457161,459634,457160,456656,456661,456660]);galleries[16111]=new gallery(16111,"174712","Nijmegen e.o.","gallery",[661740,174712,174714,174719,174723,174979,174983,175002,174741]);galleries[116407]=new gallery(116407,"1773909","Overig wild","gallery",[1845558,1731330,1363020,1773909,633411]);galleries[116348]=new gallery(116348,"2262339,2262333,2262327,2262321,2262317,2262311,2262309,2262303","Reeën","gallery",[2262339,2262327,2262333,2262309,2262311,2262317,2262321,2262303]);galleries[18965]=new gallery(18965,"1773943,1773838,208294","Veluwe","gallery",[1773943,1773838,208294,180735,180737,180740]);galleries[16113]=new gallery(16113,"1795334,1773923,1371025,1370998,1370616,661739","Vogels","gallery",[1773923,1370998,1371025,1370990,1795334,1370544,1370616,661735,661738,661739]);galleries[16108]=new gallery(16108,"1370394,636142,634434","Macro","gallery",[1845547,1370299,1370394,634434,636142,174727,174704,1370282,1370509,1363059,1363027,634464,634432,288432,1772397,174708,174731,174733]);var imageSets=new Object();imageSets[1]="1846035,1845915,1845735,1845732,1845722,1843043,1773943,1773923,1773909,1773838,1371025,1370616,1370394,661740,661739,634434,633718,429739,429485,174727,174712";imageSets[2]="1846035,1845989,1845931,1845923,1845915,1845735,1795334,1773943,1773923,1773909,1773838,1371025,1370998,1370616,1370394,661739,636142,634434,633718,459634,429739,429485,208294,174712";imageSets[3]="2262339,2262333,2262327,2262321,2262317,2262311,2262309,2262303,2246308,2246306,2246304,2246302,2246300,2246299,2246297,2246294,2231062,2231059,2231056,2231053,2231050,2231048,2231016,2231012,2231009,2231005,2231002,2230997,2230994,2230989,1846092,1846069,1846035,1846031,1845989,1845943,1845931,1845923,1845915,1845742,1845740,1845737,1845735,1845732,1845728,1845722,1845558,1845547,1845441,1845437";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/michellucas/images";break}switch(a){case 1:b="http://www1.clikpic.com/michellucas/images";break}switch(a){case 2:b="http://admin.clikpic.com/michellucas/images";break}switch(a){case 24:b="http://tpc15/clikpic/michellucas/images";break}switch(a){case 4:b="http://www.clikchurch.com/michellucas/images";break}switch(a){case 5:b="http://www2.clikpic.com/michellucas/images";break}switch(a){case 22:b="http://tpc5/clikpic/michellucas/images";break}switch(a){case 23:b="http://tpc10/clikpic/michellucas/images";break}switch(a){case 25:b="http://tpc16/clikpic/michellucas/images";break}switch(a){case 15:b="http://www3.clikpic.com/michellucas/images";break}switch(a){case 18:b="http://www4.clikpic.com/michellucas/images";break}switch(a){case 19:b="http://www5.clikpic.com/michellucas/images";break}switch(a){case 31:b="http://www7.clikpic.com/michellucas/images";break}switch(a){case 32:b="http://admin2.clikpic.com/michellucas/images";break}switch(a){case 33:b="http://www8.clikpic.com/michellucas/images";break}switch(a){case 34:b="http://www9.clikpic.com/michellucas/images";break}switch(a){case 35:b="http://admin3.clikpic.com/michellucas/images";break}switch(a){case 37:b="http://admin4.clikpic.com/michellucas/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="Michel Lucas - NatuurFotografie: "+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>Datum: </strong>'+photos[b].takendate+"</p>"}if(photos[b].location!=""){a=a+'<p class="imageinfo" id="imageLocation"><strong>Locatie: </strong>'+photos[b].location+"</p>"}if(photos[b].photographer!=""){a=a+'<p class="imageinfo" id="imagePhotographer"><strong>Fotograaf: </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+'")'})}}};