function customBodyLoad(a){repositionDiv("language",357,955,705)}function customBodyResize(a,b){repositionDiv("language",357,955,705)}function customBodyScroll(a){}var currMenu=null;
function hideMenu(a,b){if(typeof b=="undefined")b=false;var c;a=typeof a=="number"?a:typeof a=="string"?parseInt(a):parseInt(String(a.id).substr(1));if(c=Html.get("div"+a))if(b){currMenu=null;c.style.display="none";c.style.zIndex=100}else{clearTimeout(c.menuTimer);c.menuTimer=setTimeout('hideMenu("'+a+'", true);',250)}}function stopHideMenu(a){a=typeof a=="number"?a:typeof a=="string"?parseInt(a):parseInt(String(a.id).substr(1));(a=Html.get("div"+a))&&clearTimeout(a.menuTimer)}
function showMenu(a){a=parseInt(String(a.id).substr(1));var b=Html.get("div"+a);if(b&&a!=currMenu){if(typeof b.gotMouseOver=="undefined"){b.gotMouseOver=true;mouseOver(b,a)}currMenu!=null&&hideMenu(currMenu,true);currMenu=a;b.style.display="";b.style.zIndex=101}}function mouseOver(a,b){addEvent(a,"mouseover","stopHideMenu("+b+");");addEvent(a,"mouseout","hideMenu("+b+");")}
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"}function onAfter(){for(var a=1;a<=maxNav;a++)$("tab_"+a).className="";a=this.id.replace("item_","");$("tab_"+a).className="current"}function mouseOverDoelgroep(a,b){slider&&slider.cycle(b);slider.cycle("pause");for(b=1;b<=maxNav;b++)$("tab_"+b).className="";a.className="current"}function mouseOutDoelgroep(){slider.cycle("resume")}
function showFront(a){var b=$("ecardFront"),c=$("ecardBack");if(b&&c){b.style.display="";c.style.display="none"}if(b=$("linkBack"))b.className="";a.className="current"}function showBack(a){var b=$("ecardFront"),c=$("ecardBack");if(b&&c){b.style.display="none";c.style.display=""}a.className="current";if(a=$("linkFront"))a.className=""}
function defaultValue(a,b){JQ.query(document).ready(function(){if($(a).value=="")$(a).value=b;JQ.query("#"+a).focus(function(){if($(a).value==b)$(a).value=""});JQ.query("#"+a).blur(function(){if($(a).value=="")$(a).value=b})})}
function checkRecaptcha(){if(document.getElementById("recaptcha_challenge_field")){var a=document.getElementById("recaptcha_challenge_field").value,b=document.getElementById("recaptcha_response_field").value,c=new Url("misc/checkRecaptcha.aspx");if(!a||!b)return false;c=c.add("challenge",a);c=c.add("response",b);return c.request()=="true"}else return true}
function checkAfspraak(){if(!$("birthdate").value){alert("U heeft nog geen geboortedatum ingevuld");$("birthdate").focus();return false}if(!$("patientnummer").value){alert("U heeft nog geen patientnummer ingevuld");$("patientnummer").focus();return false}if(!$("registratiecode").value){alert("U heeft nog geen registratiecode ingevuld");$("registratiecode").focus();return false}if(!checkRecaptcha()){alert("De ingevulde controle tekst is niet correct.");document.getElementById("recaptcha_response_field").focus();
return false}$("btnAfspraak").style.display="none";$("loader").style.display="";document.frmAfspraakMaken.submit()}function burn(){candles.tpl_13.rows[0].tdt_45.value($("edtCandles_tpl_13_tdt_45_0").value);for(var a=candles.tpl_13.current().canSave(),b=true,c=0;c<a.length;c++){b=false;a[c].message?a[c].showError():a[c].showError("U heeft dit veld nog niet ingevuld.")}if(b){a=new Url;a=a.add("action",1);location.href=a}}
function checkFieldLength(){return $("edtCandles_tpl_13_tdt_45_0").value.length>220?false:true}function textCounter(){var a=$("edtCandles_tpl_13_tdt_45_0");if(a.value.length>220)a.value=a.value.substring(0,220)}var map,locations=[];function getMapImage(a){var b="iconMapZiekenhuis.png";if(a==5)b="iconMapBuitenkliniek.png";else if(a==6)b="iconMapPrikpost.png";return new google.maps.MarkerImage("img/"+b+"",new google.maps.Size(25,32),new google.maps.Point(0,0),new google.maps.Point(0,32))}
function initializeMap(){var a={zoom:10,center:new google.maps.LatLng(52.34274,5.615129),disableDefaultUI:true,mapTypeId:google.maps.MapTypeId.ROADMAP};locationmap=new google.maps.Map(document.getElementById("map_canvas"),a);a=new google.maps.MarkerImage("img/iconShadow.png",new google.maps.Size(31,38),new google.maps.Point(0,0),new google.maps.Point(0,32));if(locations)for(var b=0;b<locations.length;b++){var c=getMapImage(locations[b].type);addLocationToMap(locations[b],c,a)}toggleLocations(true,
4,false);toggleLocations(false,5,false);toggleLocations(false,6,false)}function toggleLocations(a,b,c){for(var d=0;d<locations.length;d++)locations[d].type==b&&locations[d].marker.setVisible(a);c&&closeInfoWindow()}function addLocationToMap(a,b,c){var d=new google.maps.LatLng(a.latitude,a.longitude);b=new google.maps.Marker({position:d,map:locationmap,shadow:c,icon:b,title:a.name});a.marker=b;google.maps.event.addListener(b,"click",function(){openInfoWindow(a)})}
function openInfoWindow(a){var b=new google.maps.LatLng(a.latitude,a.longitude);locationmap.setCenter(b);JQ.query("div[id ^= 'location_']").css("display","none");JQ.query("div[id = 'location_"+a.ID+"']").css("display","")}function openInfoWindowByID(a){for(var b=0;b<locations.length;b++){var c=locations[b];c.ID==a&&openInfoWindow(c)}}function closeInfoWindow(){JQ.query("div[id ^= 'location_']").css("display","none")};

