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[56322]=new thumbnail(56322,"5603","","Tania Dexters_thumb.jpg",130,86,18);thumbnails[78566]=new thumbnail(78566,"5604","Belle","Belle 0721_thumb.jpg",130,194,18);thumbnails[78582]=new thumbnail(78582,"5604","Joyce","Joyce2998_thumb.jpg",130,194,18);thumbnails[78613]=new thumbnail(78613,"5604","","Thiary 069_thumb.jpg",130,194,18);thumbnails[78616]=new thumbnail(78616,"5604","","Kids8426_thumb.jpg",130,196,18);thumbnails[78617]=new thumbnail(78617,"5604","","Kids8469_thumb.jpg",130,196,18);thumbnails[78692]=new thumbnail(78692,"5605","Bruges","Brugge 8566_thumb.jpg",130,195,18);thumbnails[78693]=new thumbnail(78693,"5605","Brussels","Brussels 6205_thumb.jpg",130,196,18);thumbnails[78695]=new thumbnail(78695,"5605","Leuven","Leuven 3893_thumb.jpg",130,195,18);thumbnails[78699]=new thumbnail(78699,"5605","Flanders","Mussels 0818_thumb.jpg",130,89,18);thumbnails[78707]=new thumbnail(78707,"5605","New York","NY230_thumb.jpg",130,195,18);thumbnails[78717]=new thumbnail(78717,"5605","New York","NY432_thumb.jpg",130,195,18);thumbnails[78726]=new thumbnail(78726,"5605","New York","NY4831_thumb.jpg",130,87,18);thumbnails[78873]=new thumbnail(78873,"7481","","Bart 010_thumb.jpg",130,87,18);thumbnails[78874]=new thumbnail(78874,"7481","","Bart 021_thumb.jpg",130,194,18);thumbnails[78878]=new thumbnail(78878,"7481","Debby","Debby 9717_thumb.jpg",130,196,18);thumbnails[78890]=new thumbnail(78890,"7481","Pfaff wedding","Lindsy046_thumb.jpg",130,84,18);thumbnails[78891]=new thumbnail(78891,"7481","Pfaff wedding","Lindsy089_thumb.jpg",130,195,18);thumbnails[78892]=new thumbnail(78892,"7481","Pfaff wedding","Lindsy096_thumb.jpg",130,190,18);thumbnails[78900]=new thumbnail(78900,"7481","Moh","Mo 03_thumb.jpg",130,87,18);thumbnails[78904]=new thumbnail(78904,"7481","Pope Louis","Pope Louis 022_thumb.jpg",130,87,18);thumbnails[78906]=new thumbnail(78906,"7481","Sam & Kelly","Sam&Kelly 5142_thumb.jpg",130,86,18);thumbnails[78912]=new thumbnail(78912,"7481","Sven & Dustin","Sven6259_thumb.jpg",130,196,18);thumbnails[78914]=new thumbnail(78914,"7481","Veronique","Veronique 078_thumb.jpg",130,194,18);thumbnails[78915]=new thumbnail(78915,"7481","Vicky","Vicky 1412_thumb.jpg",130,196,18);thumbnails[78917]=new thumbnail(78917,"7481","","Wedding 7060 bw2_thumb.jpg",130,194,18);thumbnails[78947]=new thumbnail(78947,"343299","Paul & Pascale","Jambers 76_thumb.jpg",130,194,18);thumbnails[78959]=new thumbnail(78959,"5603","Niels","Niels 791_thumb.jpg",130,195,18);thumbnails[78960]=new thumbnail(78960,"5603","Pascale","Pascale 1575_thumb.jpg",130,195,18);thumbnails[78962]=new thumbnail(78962,"5603","Pol","Paul014_thumb.jpg",130,195,18);thumbnails[78986]=new thumbnail(78986,"5606","Croatia","Kroatia 042_thumb.jpg",130,76,18);thumbnails[78988]=new thumbnail(78988,"5606","Leuven","Leuven 1148 _thumb.jpg",130,194,18);thumbnails[78991]=new thumbnail(78991,"5606","Norway","Norway 112_thumb.jpg",130,87,18);thumbnails[78994]=new thumbnail(78994,"5606","Norway","Norway 2714_thumb.jpg",130,197,18);thumbnails[78996]=new thumbnail(78996,"5606","Québec","Québec 6788_thumb.jpg",130,86,18);thumbnails[78997]=new thumbnail(78997,"5606","Flanders","Sky 6016_1_thumb.jpg",130,194,18);thumbnails[130739]=new thumbnail(130739,"5603","Herr Seele","Seele 5774_thumb.jpg",130,86,18);thumbnails[130742]=new thumbnail(130742,"5603","Herr Seele","Seele 5794_thumb.jpg",130,86,18);thumbnails[130751]=new thumbnail(130751,"5604","Ellen","Ellen 1603_thumb.jpg",130,196,18);thumbnails[130755]=new thumbnail(130755,"5604","Ellen","Ellen 1767_thumb.jpg",130,196,18);thumbnails[130757]=new thumbnail(130757,"5604","Ellen","Ellen 1836_thumb.jpg",130,196,18);thumbnails[130759]=new thumbnail(130759,"5604","Ellen","Ellen 1712_thumb.jpg",130,86,18);thumbnails[130762]=new thumbnail(130762,"5604","Veronique","Veronique 1813_thumb.jpg",130,196,18);thumbnails[225896]=new thumbnail(225896,"5603","Sabine en Lars","Sabine922_thumb.jpg",130,196,18);thumbnails[225897]=new thumbnail(225897,"5603","Sabine en Lars","Sabine943_thumb.jpg",130,162,18);thumbnails[225898]=new thumbnail(225898,"5603","Sabine en Lars","Sabine958_thumb.jpg",130,175,18);thumbnails[6120104]=new thumbnail(6120104,"343018","Antwerp Boerentoren","Lomo_-_Boerentoren_thumb.jpg",130,130,18);thumbnails[6124342]=new thumbnail(6124342,"343018","Paris Père Lachaise 3","Lomo_-_Genua_3_thumb.jpg",130,128,18);thumbnails[6125834]=new thumbnail(6125834,"343018","Antwerp Groenplaats","Lomo_-_Antwerp_Groenplaats_thumb.jpg",130,132,18);thumbnails[6125850]=new thumbnail(6125850,"343018","South Carolina Amelia Island 2","Lomo_-_Florida_Amelia_Island__2_thumb.jpg",130,127,18);thumbnails[6125852]=new thumbnail(6125852,"343018","Georgia USA","Lomo_-_Georgia_2_thumb.jpg",130,130,18);thumbnails[6125853]=new thumbnail(6125853,"343018","Georgia Augusta","Lomo_-_Georgia_Augusta_thumb.jpg",130,129,18);thumbnails[6125854]=new thumbnail(6125854,"343018","Isabelle en Stijn","Lomo_-_Isabelle_en_Stijn_thumb.jpg",130,112,18);thumbnails[6125855]=new thumbnail(6125855,"343018","L'epicerie de Cirque 1","Lomo_-_Lepicerie_de_Cirque_1_thumb.jpg",130,129,18);thumbnails[6125857]=new thumbnail(6125857,"343018","Paris 1","Lomo_-_Paris_1_thumb.jpg",130,126,18);thumbnails[6125867]=new thumbnail(6125867,"343018","Paris Notre-Dame","Lomo_-_Paris_Notre-Dame_thumb.jpg",130,126,18);thumbnails[6125871]=new thumbnail(6125871,"343018","South Carolina Georgetown 1","Lomo_-_South_Carolina_Georgetown_1_thumb.jpg",130,132,18);thumbnails[6125873]=new thumbnail(6125873,"343018","South Carolina Georgetown 3","Lomo_-_South_Carolina_Georgetown_3_thumb.jpg",130,131,18);thumbnails[6125893]=new thumbnail(6125893,"5604","Isabelle A","Isabelle2528_thumb.jpg",130,196,18);thumbnails[6125894]=new thumbnail(6125894,"343299","Zohra","Zohra7020_thumb.jpg",130,196,18);thumbnails[6125896]=new thumbnail(6125896,"5604","Zohra ","Zohra7068_thumb.jpg",130,196,18);thumbnails[6125918]=new thumbnail(6125918,"5606","Normandy","Normandy_2251_thumb.jpg",130,196,18);thumbnails[6125969]=new thumbnail(6125969,"343299","Peter","Peter_thumb.jpg",130,86,18);thumbnails[6126827]=new thumbnail(6126827,"343299","Herr Seele","Seele_0322_thumb.jpg",130,87,18);thumbnails[6126832]=new thumbnail(6126832,"5603","Herr Seele","Seele_335_thumb.jpg",130,194,18);thumbnails[6126903]=new thumbnail(6126903,"5606","Netherlands Sky","Sky_3243_thumb.jpg",130,87,18);thumbnails[6126940]=new thumbnail(6126940,"5603","Canada Lake Louise","Canada166_thumb.jpg",130,87,18);thumbnails[6131229]=new thumbnail(6131229,"343018","Antwerp L'epicerie du Cirque 2","Lomo_-_Lepicerie_du_Cirque_21_thumb.jpg",130,58,18);thumbnails[6131487]=new thumbnail(6131487,"343018","","Lomo_-_South_Carolina_Georgetown_51_thumb.jpg",130,64,18);thumbnails[6131645]=new thumbnail(6131645,"343018","Paris 2","Lomo_-_Paris_2_thumb.jpg",130,128,18);thumbnails[6131685]=new thumbnail(6131685,"5606","Leuven - Vaartkom","Lomo_-_Leuven_thumb.jpg",130,28,18);thumbnails[6132073]=new thumbnail(6132073,"5604","Astrid","Astrid_9151_thumb.jpg",130,86,18);thumbnails[6132858]=new thumbnail(6132858,"343018","","Lomo_-_Paris_Notre-Dame_2_thumb.jpg",130,131,18);thumbnails[78634]=new thumbnail(78634,"5368","Amsterdam","Amsterdam 2249_thumb.jpg",130,195,18);thumbnails[78640]=new thumbnail(78640,"5368","Bordeaux","Bordeaux167_thumb.jpg",130,195,18);thumbnails[78641]=new thumbnail(78641,"5368","Brussels","Brussels 888_thumb.jpg",130,194,18);thumbnails[78644]=new thumbnail(78644,"5368","Canada","Canada135_thumb.jpg",130,195,18);thumbnails[78649]=new thumbnail(78649,"5368","Domenican","Domenican 176_thumb.jpg",130,194,18);thumbnails[78657]=new thumbnail(78657,"5368","Croatia","Kroatia 281_thumb.jpg",130,215,18);thumbnails[78668]=new thumbnail(78668,"5368","Norway","Norway 2432_thumb.jpg",130,195,18);thumbnails[78672]=new thumbnail(78672,"5368","New York","NY417_thumb.jpg",130,174,18);thumbnails[78673]=new thumbnail(78673,"5368","New York","NY436_thumb.jpg",130,195,18);thumbnails[78679]=new thumbnail(78679,"5368","Saas Fee","SaasFee112_thumb.jpg",130,195,18);thumbnails[78681]=new thumbnail(78681,"5368","Scotland","Scotland 5776_thumb.jpg",130,196,18);thumbnails[6125948]=new thumbnail(6125948,"5368","Tunesia","Tunesia_thumb.jpg",130,86,18);thumbnails[6126822]=new thumbnail(6126822,"5368","UK Bath","Bath58791_thumb.jpg",130,87,18);thumbnails[6126870]=new thumbnail(6126870,"5368","Greece Olympia","Greece_5813_thumb.jpg",130,87,18);thumbnails[6131690]=new thumbnail(6131690,"5368","Bulgaria","Bulgari_thumb.jpg",130,101,18);thumbnails[6131691]=new thumbnail(6131691,"5368","Bulgaria","Bulgari1_thumb.jpg",130,101,18);thumbnails[6132074]=new thumbnail(6132074,"5368","New York","New_York_thumb.jpg",130,87,18);var galleries=new Object();galleries[5604]=new gallery(5604,"6132073,6125896,6125893,130762,130759,130757,130755,130751,78617,78616","fashion","gallery",[78566,78582,78613,78616,78617,130751,130755,130757,130759,130762,6125893,6125896,6132073]);galleries[5606]=new gallery(5606,"78991","landscapes","gallery",[78986,78988,78991,78994,78996,78997,6125918,6126903,6131685]);galleries[343018]=new gallery(343018,"6132858,6131645,6131487,6131229,6125873,6125871,6125867,6125857,6125855,6125854","Lomography","gallery",[6120104,6124342,6125834,6125850,6125852,6125853,6125854,6125855,6125857,6125867,6125871,6125873,6131229,6131487,6131645,6132858]);galleries[5603]=new gallery(5603,"6126940,6126832,225898,225897,225896,130742,130739,78962,78960,78959","People","gallery",[56322,78959,78960,78962,130739,130742,225896,225897,225898,6126832,6126940]);galleries[343299]=new gallery(343299,"6126827,6125969,6125894,78947","Portrait","gallery",[78947,6125894,6125969,6126827]);galleries[7481]=new gallery(7481,"78906","social","gallery",[78873,78874,78878,78890,78891,78892,78900,78904,78906,78912,78914,78915,78917]);galleries[5605]=new gallery(5605,"78726,78717,78707,78699,78695,78693,78692","street","gallery",[78692,78693,78695,78699,78707,78717,78726]);galleries[5368]=new gallery(5368,"78657","travel","gallery",[78634,78640,78641,78644,78649,78657,78668,78672,78673,78679,78681,6125948,6126822,6126870,6131690,6131691,6132074]);var imageSets=new Object();imageSets[1]="6120104";imageSets[2]="78991,78906,78657";imageSets[3]="6132858,6132074,6132073,6131691,6131690,6131685,6131645,6131487,6131229,6126940,6126903,6126870,6126832,6126827,6126822,6125969,6125948,6125918,6125896,6125894,6125893,6125873,6125871,6125867,6125857,6125855,6125854,6125853,6125852,6125850,6125834,6124342,6120104,225898,225897,225896,130762,130759,130757,130755,130751,130742,130739,78997,78996,78994,78991,78988,78986,78962";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/DieterBacquaert/images";break}switch(a){case 1:b="http://www1.clikpic.com/DieterBacquaert/images";break}switch(a){case 2:b="http://admin.clikpic.com/DieterBacquaert/images";break}switch(a){case 24:b="http://tpc15/clikpic/DieterBacquaert/images";break}switch(a){case 4:b="http://www.clikchurch.com/DieterBacquaert/images";break}switch(a){case 5:b="http://www2.clikpic.com/DieterBacquaert/images";break}switch(a){case 22:b="http://tpc5/clikpic/DieterBacquaert/images";break}switch(a){case 23:b="http://tpc10/clikpic/DieterBacquaert/images";break}switch(a){case 25:b="http://tpc16/clikpic/DieterBacquaert/images";break}switch(a){case 15:b="http://www3.clikpic.com/DieterBacquaert/images";break}switch(a){case 18:b="http://www4.clikpic.com/DieterBacquaert/images";break}switch(a){case 19:b="http://www5.clikpic.com/DieterBacquaert/images";break}switch(a){case 31:b="http://www7.clikpic.com/DieterBacquaert/images";break}switch(a){case 32:b="http://admin2.clikpic.com/DieterBacquaert/images";break}switch(a){case 33:b="http://www8.clikpic.com/DieterBacquaert/images";break}switch(a){case 34:b="http://www9.clikpic.com/DieterBacquaert/images";break}switch(a){case 35:b="http://admin3.clikpic.com/DieterBacquaert/images";break}switch(a){case 37:b="http://admin4.clikpic.com/DieterBacquaert/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="Dieter Bacquaert 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 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+'")'})}}};