Cufon.replace("h2.flash");function customBodyLoad(a){repositionDiv("textSize",208,955,685);repositionDiv("quickSearch",218,955,697);repositionDiv("quickSearchPortal",225,955,705);a=(new Url).get("folder");if(a!=null){document.getElementById("fldID_105").value=unescape(a);document.getElementById("fldID_105").disabled=true}}function customBodyResize(a,b){repositionDiv("textSize",208,955,685);repositionDiv("quickSearch",218,955,697);repositionDiv("quickSearchPortal",225,955,705)}
function customBodyScroll(a){}function closeDirections(){var a=document.getElementById("accordion"),b=document.getElementById("directions");if(a)a.style.display="block";if(b)b.style.display="none";directions.clear()}var map,baseIcon,directionsPanel,directions,toAddress;
function initializeMap(){if(GBrowserIsCompatible()){initBaseIcon();map=new GMap2(document.getElementById("map_canvas"));map.addControl(new GLargeMapControl3D);map.addControl(new GMapTypeControl);map.setCenter(new GLatLng(52.1390488,5.0396849),10);directionsPanel=document.getElementById("direction_text");directions=new GDirections(map,directionsPanel);GEvent.addListener(directions,"error",handleErrors);GEvent.addListener(map,"zoomend",function(){reposition()})}}
function planRoute(a,b){toAddress=b;document.getElementById("toAddress").innerHTML=a;a=document.getElementById("accordion");b=document.getElementById("directions");if(a)a.style.display="none";if(b)b.style.display="block"}function getDirections(){var a=document.getElementById("fromAddress");a&&directions.load("from: "+a.value+" to: "+toAddress,{locale:"nl_NL"})}
function handleErrors(){if(directions.getStatus().code==G_GEO_UNKNOWN_ADDRESS)alert("No corresponding geographic location could be found for one of the specified addresses. This may be due to the fact that the address is relatively new, or it may be incorrect.\nError code: "+directions.getStatus().code);else if(directions.getStatus().code==G_GEO_SERVER_ERROR)alert("A geocoding or directions request could not be successfully processed, yet the exact reason for the failure is not known.\n Error code: "+
directions.getStatus().code);else if(directions.getStatus().code==G_GEO_MISSING_QUERY)alert("The HTTP q parameter was either missing or had no value. For geocoder requests, this means that an empty address was specified as input. For directions requests, this means that no query was specified in the input.\n Error code: "+directions.getStatus().code);else if(directions.getStatus().code==G_GEO_BAD_KEY)alert("The given key is either invalid or does not match the domain for which it was given. \n Error code: "+
directions.getStatus().code);else directions.getStatus().code==G_GEO_BAD_REQUEST?alert("A directions request could not be successfully parsed.\n Error code: "+directions.getStatus().code):alert("An unknown error occurred.")}
function initBaseIcon(){baseIcon=new GIcon;baseIcon.image="http://www.opendeuren.com/img/googleMap.png";baseIcon.shadow="http://www.opendeuren.com/img/googleMapShadow.png";baseIcon.iconSize=new GSize(52,68);baseIcon.shadowSize=new GSize(92,68);baseIcon.iconAnchor=new GPoint(26,68);baseIcon.infoWindowAnchor=new GPoint(0,0)}function subGPoints(a,b){return new GPoint(a.x-b.x,a.y-b.y)}
function addToMap(a,b,c,d,f,e,h,i){var k=new GLatLng(a,b);marker=new PdMarker(new GLatLng(a,b));marker.setTooltip(c);marker.setTitle(c);marker.setAddress(d);marker.setRouteAddress(f);marker.setDescription(e);marker.setImage(h);marker.setId(i);GEvent.addListener(marker,"click",function(){closeAllInfoWindows();var g=this.getPoint().lat();g=this.getPoint().lng();map.savePosition();g=map.fromLatLngToDivPixel(map.getCenter());var j=map.fromLatLngToDivPixel(this.getPoint());g=subGPoints(j,g);map.panBy(new GSize(-g.x-
100,-g.y+150))});map.addOverlay(marker)}var moveEndEvent;function openInfoWindow(a){closeAllInfoWindows();a=map.getMarkerById(a);var b=a.getPoint().lat();b=a.getPoint().lng();b=map.getZoom();map.savePosition();b=map.fromLatLngToDivPixel(map.getCenter());var c=map.fromLatLngToDivPixel(a.getPoint());b=subGPoints(c,b);map.panTo(a.getPoint());a.showDetailWin()}
function reposition(){for(var a,b=map.getFirstMarker();b!=null;){if(b.detailOpen)a=b;b=map.getNextMarker()}if(a!=null){a.closeDetailWin();b=a.getPoint().lat();b=a.getPoint().lng();map.savePosition();b=map.fromLatLngToDivPixel(map.getCenter());var c=map.fromLatLngToDivPixel(a.getPoint());b=subGPoints(c,b);map.panBy(new GSize(-b.x,-b.y));a.showDetailWin()}}function deleteAllMarkers(){for(var a=map.getFirstMarker();a!=null;){a.remove();a=map.getFirstMarker()}}
function closeAllInfoWindows(){for(var a=map.getFirstMarker();a!=null;){a.closeDetailWin();a=map.getNextMarker()}}
function toggleAccordion(a,b,c){var d=0,f=a+""+b;if(document.getElementById(f).style.display=="none"){for(var e=1;e<=c;e++)document.getElementById(a+e)&&document.getElementById(a+e).style.display==""&&d++;if(d==0)d=1;if(d==1){for(e=1;e<=c;e++)if(document.getElementById(a+e)){if(document.getElementById(a+"title"+e))document.getElementById(a+"title"+e).className="sliderTitleGreen";document.getElementById(a+e).style.display==""&&Effect.BlindUp(a+e,{duration:0.3})}if(document.getElementById(a+"title"+
b))document.getElementById(a+"title"+b).className="sliderTitleBlack";Effect.BlindDown(f,{duration:0.3})}}}function hideAll(a,b,c){for(var d=0;d<=b;d++)if(d!=c){if(document.getElementById(a+""+d))document.getElementById(a+""+d).style.display="none"}else if(document.getElementById(a+"title"+d))document.getElementById(a+"title"+d).className="sliderTitleBlack"}function toggleTextSize(){var a=document.getElementById("textSize");if(a)a.style.display=a.style.display=="none"?"block":"none"}
function toggleQuickSearchPortal(){var a=document.getElementById("quickSearchPortal");if(a)a.style.display=a.style.display=="none"?"block":"none"}function toggleQuickSearch(){var a=document.getElementById("quickSearch");if(a)a.style.display=a.style.display=="none"?"block":"none"}function repositionDiv(a,b,c,d){if(a=document.getElementById(a))a.style.left=document.body.offsetWidth>c?Math.round(b+document.body.offsetWidth/2)+"px":d+"px"}var ecardSend=null;
function showEcardSend(a,b){var c=new Url;c=c.replacePage("misc/sendEcard.aspx").add("catID",a).add("fleID",b);if(ecardSend==null)ecardSend=new TLightBox("divEcardSend");ecardSend.getHtml(c)&&ecardSend.show()}
function saveEcard(){var a=new Url;a=a.add("action","save");var b=ecards.Ecards.Rows(0).fields;if(b.FromName.FValue==null)alert("U moet nog uw eigen naam invullen");else if(b.FromEmail.FValue==null)alert("U moet nog uw E-mail adres invullen");else if(b.ToName.FValue==null)alert("U moet nog de naam invullen van de persoon naar wie je ecard wil sturem");else if(b.ToEmail.FValue==null)alert("U bent een email adres vergeten");else if(b.Message.FValue==null)alert("U heeft nog geen bericht ingevuld");else location.href=
a}var ecardShow=null;function showEcardShow(){if(ecardShow==null)ecardShow=new TLightBox("divShowEcard");ecardShow!=null&&setTimeout("ecardShow.show()",10)}function showOrderForm(){var a=document.getElementById("orderform");if(a)a.style.display="block"}function fillHiddenFields(a,b,c){var d=document.getElementById("fldID_121");if(d)d.value=a;if(a=document.getElementById("fldID_122"))a.value=b;if(b=document.getElementById("fldID_123"))b.value=c}
function submitQuickSearch(){var a=document.getElementById("edtCseID"),b="";if(a){a.value="";for(var c=2;c<5;c++){var d=document.getElementById("chk_"+c);if(d)if(d.checked)b+=b.length>0?", "+d.value:d.value}if(b.length>0)a.value=b}(a=document.getElementById("searchForm"))&&frmSearchSubmit(a,event)&&a.submit()}
function changeCheck(a){if(a.id=="chk_1"&&a.checked){document.getElementById("chk_2").checked=false;document.getElementById("chk_3").checked=false;document.getElementById("chk_4").checked=false}else if((a.id=="chk_2"||a.id=="chk_3"||a.id=="chk_4")&&a.checked)document.getElementById("chk_1").checked=false}
function answer(a,b,c,d){var f=$(a+"_"+b),e=$("A_"+b),h=$("B_"+b),i=$("C_"+b);b=$("D_"+b);c=$("answer_"+c);if(e)e.style.backgroundImage="url('img/bgTestAnswerGrey.gif')";if(h)h.style.backgroundImage="url('img/bgTestAnswerGrey.gif')";if(i)i.style.backgroundImage="url('img/bgTestAnswerGrey.gif')";if(b)b.style.backgroundImage="url('img/bgTestAnswerGrey.gif')";if(f)f.style.backgroundImage="url('img/bgTestAnswerGreen.gif')";if(c)c.value=a;a=true;for(f=1;f<=d;f++)if(e=$("answer_"+f))if(e.value.length==
0)a=false;if(a)if(d=$("submit"))d.style.display=""};

