function customBodyLoad(a){if($("campagneslider")){slideMenu.build("campagneslider",485,10,10)}repositionDiv("Language",100,955,500);repositionDiv("portaltext_19",-230,955,685);repositionDiv("portaltext_20",-50,955,697);repositionDiv("portaltext_21",200,955,705);repositionDiv("portaltext_22",30,955,705)}function customBodyResize(b,a){repositionDiv("Language",100,955,500)}function customBodyScroll(a){}function repositionDiv(b,d,c,a){var e=document.getElementById(b);if(e){if(document.body.offsetWidth>c){e.style.left=Math.round(d+(document.body.offsetWidth/2))+"px"}else{e.style.left=a+"px"}}}function toggleLanguageSelect(){var a=document.getElementById("Language");if(a){if(a.style.display=="none"){a.style.display="block"}else{a.style.display="none"}}}function slideToSlide(a){if(slider){slider.cycle(a)}}function onAfter(){for(var a=1;a<=maxNav;a++){$("nav_"+a).className=""}var b=this.id.replace("content_","");$("nav_"+b).className="current"}function onTxtClick(a,b){if(a.value==b){a.value=""}}function onTxtBlur(a,b){if(a.value.length==0){a.value=b}}function changeSpecialisme(b){var a=new Url();location.href=a.add("specialisme",b.value)}var map;var baseIcon;var directionsPanel;var directions;function subGPoints(d,c){return new GPoint(d.x-c.x,d.y-c.y)}function initializeMap(){if(GBrowserIsCompatible()){map=new GMap2(document.getElementById("map_canvas"));map.addControl(new GLargeMapControl3D());map.addControl(new GMapTypeControl());var a=new GLatLng(52.966243,5.917983);map.setCenter(a,15);directionsPanel=document.getElementById("direction_text");directions=new GDirections(map,directionsPanel);map.enableContinuousZoom();map.enableScrollWheelZoom();GEvent.addListener(map,"zoomend",function(){closeAllInfoWindows()})}}function addToMap(h,d,g,b,c,e,a){var f=new GLatLng(h,d);marker=new PdMarker(new GLatLng(h,d));marker.setTooltip(g);marker.setTitle(g);marker.setAddress(b);marker.setRouteAddress(c);marker.setImage(e);marker.setId(a);GEvent.addListener(marker,"click",function(){closeAllInfoWindows();var m=this.getPoint().lat();var j=this.getPoint().lng();map.savePosition();var i=map.fromLatLngToDivPixel(map.getCenter());var l=map.fromLatLngToDivPixel(this.getPoint());var k=subGPoints(l,i);map.panBy(new GSize(-k.x-100,-k.y+150))});map.addOverlay(marker)}function showAllLocations(){var b=$("locationList");var a=$("locationDetail");if(b){b.style.display=""}if(a){a.style.display="none"}directions.clear()}function openInfoWindow(j,b){closeAllInfoWindows();var d=map.getMarkerById(j);var l=d.getPoint().lat();var m=d.getPoint().lng();var o=map.getZoom();map.savePosition();var a=map.fromLatLngToDivPixel(map.getCenter());var g=map.fromLatLngToDivPixel(d.getPoint());var e=subGPoints(g,a);map.panTo(d.getPoint());d.showDetailWin();var h=$("locationList");var k=$("locationDetail");if(h){h.style.display="none"}if(k){k.style.display=""}for(var c=1;c<=b;c++){var n=$("location_"+c);if(n){n.style.display="none"}}var f=$("location_"+j);if(f){f.style.display=""}}function reposition(){var g;var b=map.getFirstMarker();while(b!=null){if(b.detailOpen){g=b}b=map.getNextMarker()}if(g!=null){g.closeDetailWin();var f=g.getPoint().lat();var c=g.getPoint().lng();map.savePosition();var a=map.fromLatLngToDivPixel(map.getCenter());var e=map.fromLatLngToDivPixel(g.getPoint());var d=subGPoints(e,a);map.panBy(new GSize(-d.x,-d.y));g.showDetailWin()}}function planRoute(a,c){toAddress=c;document.getElementById("toAddress").innerHTML=a;var b=document.getElementById("accordion");var d=document.getElementById("directions");if(b){b.style.display="none"}if(d){d.style.display="block"}}function getDirections(c,b){var a=document.getElementById(b);if(a){directions.load("from: "+a.value+" to: "+c,{locale:"nl_NL"})}}function deleteAllMarkers(){var a=map.getFirstMarker();while(a!=null){a.remove();a=map.getFirstMarker()}}function closeAllInfoWindows(){var a=map.getFirstMarker();while(a!=null){a.closeDetailWin();a=map.getNextMarker()}}function showtext(c){var e=$("portaltext_19");var f=$("portaltext_20");var b=$("portaltext_21");var a=$("portaltext_22");if(e){e.style.display="none"}if(f){f.style.display="none"}if(b){b.style.display="none"}if(a){a.style.display="none"}var d=$("portaltext_"+c);if(d){d.style.display=""}}function gotoSlide(d,c,b){var f=d;for(var e=1;e<=c;e++){var a=$("file_"+b+"_"+e);if(a){a.style.display="none"}}if(f<1){f=c}if(f>c){f=1}var g=$("file_"+b+"_"+f);if(g){g.style.display=""}}function toggleEcard(){var b=$("ecardImage");var d=$("ecardText");var a=$("btnShowText");var c=$("btnShowImage");if(b!=null){if(b.style.display=="none"){b.style.display=""}else{b.style.display="none"}}if(d!=null){if(d.style.display=="none"){d.style.display=""}else{d.style.display="none"}}if(a!=null){if(a.style.display=="none"){a.style.display=""}else{a.style.display="none"}}if(c!=null){if(c.style.display=="none"){c.style.display=""}else{c.style.display="none"}}}var slideMenu=function(){var a,i,h,b,e,c,f,g,d;return{build:function(p,k,l,o,j,n){a=o;i=k;h=l;b=document.getElementById(p);e=b.getElementsByTagName("li");c=e.length;f=b.offsetWidth;k=f/c;d=Math.floor((f-i)/(c-1));var m=0;for(m;m<c;m++){o=e[m];o.style.width=k-1+"px";this.timer(o)}if(j!=null){b.timer=setInterval(function(){slideMenu.slide(e[j-1])},h)}document.getElementById("noborder").style.width=k+"px"},timer:function(j){j.onmouseover=function(){clearInterval(b.timer);b.timer=setInterval(function(){slideMenu.slide(j)},h)}},slide:function(m){var j=parseInt(m.style.width,"10");if(j<i){var p=0;var l=0;for(l;l<c;l++){if(e[l]!=m){var q,k;var n=0;q=e[l];k=parseInt(q.style.width,"10");if(k>d){n=Math.floor((k-d)/a);n=(n>0)?n:1;q.style.width=(k-n)+"px"}p=p+(k-n)}}m.style.width=(f-2-p)+"px";document.getElementById("specs1").style.display="block";document.getElementById("specs2").style.display="block";document.getElementById("specs3").style.display="block"}else{clearInterval(b.timer)}}}}();var supersleight=function(){var d=false,b=true,h="img/default/pixTrans.gif",a=/img\/default\/pixTrans\.gif$/i;var g=function(){if(!isIE6){return}if(d){d=document.getElementById(d)}else{d=document}for(var j=d.all.length-1,k=null;(k=d.all[j]);j--){if(k.currentStyle.backgroundImage.match(/\.png/i)!==null){f(k)}if(k.tagName=="IMG"&&k.src.match(/\.png$/i)!==null){c(k)}if(b&&(k.tagName=="A"||k.tagName=="INPUT")&&k.style.position==""){k.style.position="relative"}}};var f=function(j){var l="scale",i=j.currentStyle.backgroundImage,k=i.substring(5,i.length-2);if(j.currentStyle.backgroundRepeat=="no-repeat"){l="crop"}j.style.filter='progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+k+'", sizingMethod="'+l+'")';j.style.backgroundImage="url("+h+")"};var c=function(i){var j=i.src;i.style.width=i.width+"px";i.style.height=i.height+"px";i.style.filter='progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+j+'", sizingMethod="scale")';i.src=h};var e={init:function(){addEvent(window,"load",g)},limitTo:function(i){d=i},run:function(){g()}};return e}();supersleight.init();function gotoStep4(){ecards.Ecards.rows[0].Text.value($("edtEcards_Ecards_Text_0").value);if(checkFieldLength()){var a=new Url();location.href=a.add("step",4).filter("print")}}function checkFieldLength(){var a=800;var b=$("edtEcards_Ecards_Text_0");if(b.value.length>a){alert("U mag maximaal 800 tekens gebruiken in uw bericht.");b.focus();return false}else{return true}}function textCounter(){var a=800;var b=$("edtEcards_Ecards_Text_0");if(b.value.length>a){b.value=b.value.substring(0,a)}};