Cufon.replace("div.item h1",{hover:!0});Cufon.replace("div.item h2",{hover:!0});Cufon.replace("div.item h3",{hover:!0});Cufon.replace("div.item h4",{hover:!0});Cufon.replace("div.item h5",{hover:!0});Cufon.replace("div.item h6",{hover:!0});Cufon.replace(".catName h2",{hover:!0});Cufon.replace(".aanbod h2",{hover:!0});Cufon.replace(".portalNews h2",{hover:!0});Cufon.replace(".portalAanbod h2",{hover:!0});Cufon.replace(".leftBlok h2",{hover:!0});Cufon.replace(".title",{hover:!0});
Cufon.replace(".portalNews .middle ul li a",{hover:!0});Cufon.replace(".subsiteNews .middle ul li a",{hover:!0});Cufon.replace(".subsiteNews .middle a h2",{hover:!0});Cufon.replace(".subsiteContent h2",{hover:!0});Cufon.replace(".price",{hover:!0});Cufon.replace(".city",{hover:!0});Cufon.replace(".citySpecs h2",{hover:!0});Cufon.replace(".greenBlock h2",{hover:!0});Cufon.replace(".wijkTitle h2",{hover:!0});var focus=!1;function customBodyLoad(){}function customBodyResize(){}
function customBodyScroll(){}function showAnswer(a){JQ.query("#faq_"+a).slideToggle(200);JQ.query("#question_"+a).toggleClass("open")}function toggleFooter(){JQ.query(".toggleDiv").toggle();JQ.query("#toggleButton").toggleClass("open");setCookie("footer.show",JQ.query(".toggleDiv").css("display"))}
function addfilter(a,b,d){var c=new Url,e=c.get(a);b?(e=e&&0<e.length&&d?e+(","+b):b,c=c.add(a,e)):c=c.filter(a);map&&(setCookie("currentZoom",map.getZoom()),setCookie("currentLatitude",map.getCenter().lat()),setCookie("currentLongitude",map.getCenter().lng()));location.href=c;return!1}
function removefilter(a,b){var d=new Url,c=d.get(a),c=(","+c).replace(","+b,""),c=c.substring(1),d=""==c?d.filter(a):d.add(a,c);map&&(setCookie("currentZoom",map.getZoom()),setCookie("currentLatitude",map.getCenter().lat()),setCookie("currentLongitude",map.getCenter().lng()));location.href=d}function gotoTab(a){JQ.query("a[id ^= 'tab_']").removeClass("current");JQ.query("a[id ^= 'tab_"+a+"']").addClass("current");JQ.query("*[id ^= 'content_']").hide();JQ.query("*[id = 'content_"+a+"']").show()}
function fontResize(a,b,d){JQ.query("*[id ^= 'resize_']").removeClass("current");a.className+=" current";resizeFont(a,b,d)}
function sendItem(a){var b=Html.get("divSendItem"+a),d=Html.get("aSend"+a);if(b){for(include("js/default/effects.js");"undefined"==typeof Effect;){setTimeout("sendItem("+a+")",100);return}var c=Html.get("divBookItem"+a);c&&"none"!=c.style.display&&Resources.hideForm(a);"none"==b.style.display?(d&&Html.addClass(d,"active"),closeDiv("divReactItem"+a,"aReact"+a),Effect.SlideDown("divSendItem"+a,{duration:0.3}),b.style.display=""):(d&&Html.removeClass(d,"active"),Effect.SlideUp("divSendItem"+a,{duration:0.3}),
b.style.display="none")}else a=(new Url).remove("msg"),(a=window.open(a.replacePage("sendItem.aspx"),"sendItem","menubar=0,location=0,toolbar=0,scrollbars=0,resizable=0,status=0,width=400,height=290"))&&a.focus()}
function reactItem(a){var b=Html.get("divReactItem"+a),d=Html.get("aReact"+a);if(b){for(include("js/default/effects.js");"undefined"==typeof Effect;){setTimeout("reactItem("+a+")",100);return}var c=Html.get("divBookItem"+a);c&&"none"!=c.style.display&&Resources.hideForm(a);"none"==b.style.display?(d&&Html.addClass(d,"active"),closeDiv("divSendItem"+a,"aSend"+a),Effect.SlideDown("divReactItem"+a,{duration:0.3}),b.style.display=""):(d&&Html.removeClass(d,"active"),Effect.SlideUp("divReactItem"+a,{duration:0.3}),
b.style.display="none")}}function closeDiv(a,b){var d=Html.get(a),c=Html.get(b);d&&"none"!=d.style.display&&Effect.SlideUp(a,{duration:0.3});c&&Html.removeClass(c,"active")}var mc,map,bounds,markers=[];
function initializeMap(a,b,d){new google.maps.LatLng(52.672427,6.035271);var c={zoom:8,disableDefaultUI:a,mapTypeId:google.maps.MapTypeId.ROADMAP};map=new google.maps.Map(document.getElementById("map_canvas"),c);if(a)map.zoomControlOptions={style:google.maps.ZoomControlStyle.SMALL};bounds=new google.maps.LatLngBounds;for(c=0;c<data.markers.length;c++)addMarkerToMap(data.markers[c],a,d);a=[{url:"img/googleMarkerMultiple.png",height:30,width:30,anchor:[0,0],textColor:"#ffffff",textSize:12}];!0==b&&
(mc=new MarkerClusterer(map,markers,{styles:a,maxZoom:18}));map.fitBounds(bounds);zoomChangeBoundsListener=google.maps.event.addListener(map,"bounds_changed",function(){google.maps.event.removeListener(zoomChangeBoundsListener);getCookie("currentZoom");getCookie("currentLatitude");getCookie("currentLongitude");15<this.getZoom()&&this.setZoom(15)})}
function addMarkerToMap(a,b,d){var c=new google.maps.MarkerImage("img/googleMarkerRed.png",new google.maps.Size(22,36),new google.maps.Point(0,0),new google.maps.Point(11,36));4==a.type&&(c=new google.maps.MarkerImage("img/googlemarkerPink.png",new google.maps.Size(22,36),new google.maps.Point(0,0),new google.maps.Point(11,36)));6==a.type&&(c=new google.maps.MarkerImage("img/googlemarkerBlue.png",new google.maps.Size(22,36),new google.maps.Point(0,0),new google.maps.Point(11,36)));7==a.type&&(c=new google.maps.MarkerImage("img/googlemarkerOrange.png",
new google.maps.Size(22,36),new google.maps.Point(0,0),new google.maps.Point(11,36)));b=new google.maps.LatLng(a.latitude,a.longitude);c=new google.maps.Marker({position:b,map:map,icon:c});c.location=a.location;c.type=a.type;c.typeomschrijving=a.typeomschrijving;d&&google.maps.event.addListener(c,"click",function(){openInfoWindow(a)});markers.push(c);bounds.extend(b)}
function toggleType(a){for(var b=0;b<markers.length;b++){var d=markers[b];d.type==a&&d.setVisible(!d.getVisible());JQ.query("#type_link_"+a).toggleClass("current")}}
function openInfoWindow(a){var b='<span class="image" style="background:url('+a.imgUrl+')">';a.direct&&1==a.direct&&(b+='\t<img src="img/directTeHuur.gif" alt="direct te huur" />');b+="</span>";a.street?b+="<h2>"+a.street+" "+a.housenr+"</h2>":a.name&&(b+="<h2>"+a.name+"</h2>");b+='<div class="info">';a.plaats&&(b+="\t<strong>"+a.plaats+"</strong><br />");a.typeomschrijving&&(b+="\t"+a.typeomschrijving+"<br />");a.opleverdatum&&(b+="\t<strong>oplevering</strong>&#160;"+a.opleverdatum+"<br />");a.location&&
(b+='\t<span class="location">'+a.location+"</span><br />");a.price&&(b+='\t<strong>Kale huurprijs&#160;</strong> <span class="price">'+a.price+"</span>");a.prijskk&&(b+='\t<span class="price">'+a.prijskk+"</span>");b+='</div><a href="'+a.link+'" class="details">Details</a>';a=Html.get("objectInfo");JQ.query("#infoWindow").show();a.innerHTML=b}function closeInfoWindow(){JQ.query("#infoWindow").hide()}
function checkStreetView(){var a=new google.maps.LatLng(data.markers[0].latitude,data.markers[0].longitude),b=new google.maps.StreetViewService,d=Html.get("map_buttons");b.getPanoramaByLocation(a,10,function(a,b){d.style.display="OK"!==b?"none":""})}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 planRoute(a){var b=Html.get("fromAddress_"+a).value,a=Html.get("toAddress_"+a).value,d=!0;b&&"vul hier uw adres in"!=b&&(d=!1);d?alert("U heeft uw adres nog niet ingevuld"):window.open("http://maps.google.nl/maps?saddr="+b+"&daddr="+a)}
function filterMarkers(a,b){mc.clearMarkers();for(var d=a.split(","),c=b.split(","),e=[],g=0;g<markers.length;g++){for(var h=!0,k=markers[g],j=!1,f=0;f<d.length;f++)d[f].toLowerCase()==k.location.toLowerCase()&&(j=!0);j||(h=!1);if(h&&0<c.length&&""!=c[0]){j=!1;for(f=0;f<c.length;f++)c[f].toLowerCase()==k.typeomschrijving.toLowerCase()&&(j=!0);j||(h=!1)}markers[g].setVisible(h);h&&e.push(markers[g])}mc.addMarkers(e)}
function changeVoorkeur(a){try{if(null!=a)if(HTTP=new XMLHttpRequest,HTTP.open("GET","misc/specific/postreaction.aspx?action=1&reactienummer="+a+"&random="+rndString(15),!1),HTTP.send(null),200!=HTTP.status){var b=window.open();b&&(b.document.open(),b.document.write(HTTP.responseText),b.document.close())}else{if(""!=HTTP.responseText)return alert(HTTP.responseText),!1;alert("Uw reactie voorkeur is aangepast.")}}catch(d){return!1}return!0}
function deleteReaction(a,b,d){try{if(null!=b&&null!=d)if(HTTP=new XMLHttpRequest,HTTP.open("GET","misc/specific/postreaction.aspx?action=2&leegmeldingnummer="+b+"&reactienummer="+d+"&random="+rndString(15),!1),HTTP.send(null),200!=HTTP.status){var c=window.open();c&&(c.document.open(),c.document.write(HTTP.responseText),c.document.close())}else{if(""!=HTTP.responseText)return alert(HTTP.responseText),!1;var e=new Url("/autoparse.aspx?catID=209"),e=e.add("msg","Uw reactie is verwijderd.");document.location.href=
e}}catch(g){return!1}return!0}
function addReaction(a){try{if(null!=a)if(HTTP=new XMLHttpRequest,HTTP.open("GET","misc/specific/postreaction.aspx?advertentienummer="+a+"&random="+rndString(15),!1),HTTP.send(null),200!=HTTP.status){var b=window.open();b&&(b.document.open(),b.document.write(HTTP.responseText),b.document.close())}else{if(""!=HTTP.responseText)return alert(HTTP.responseText),!1;var d=new Url("mijn-wetland-wonen/reacties?steID=1&catID=209"),d=d.add("msg","Uw reactie is verwerkt. Zorgt u voor een actueel IB 60 formulier!");location.href=
d}}catch(c){return!1}return!0}
function LandChange(a){if(0==a.value())$("NederlandsWoonAdres1").style.display="",$("NederlandsWoonAdres2").style.display="",$("NederlandsWoonAdres3").style.display="",$("NederlandsWoonAdres4").style.display="",$("NederlandsWoonAdres5").style.display="",$("BuitenlandsWoonAdres1").style.display="none",$("BuitenlandsWoonAdres2").style.display="none",$("BuitenlandsWoonAdres3").style.display="none";else if(1==a.value())$("NederlandsWoonAdres1").style.display="none",$("NederlandsWoonAdres2").style.display="none",
$("NederlandsWoonAdres3").style.display="none",$("NederlandsWoonAdres4").style.display="none",$("NederlandsWoonAdres5").style.display="none",$("BuitenlandsWoonAdres1").style.display="",$("BuitenlandsWoonAdres2").style.display="",$("BuitenlandsWoonAdres3").style.display=""}
function CorrLandChange(a){if(0==a.value())$("NederlandsCorrAdres1").style.display="",$("NederlandsCorrAdres2").style.display="",$("NederlandsCorrAdres3").style.display="",$("NederlandsCorrAdres4").style.display="",$("NederlandsCorrAdres5").style.display="",$("BuitenlandsCorrAdres1").style.display="none",$("BuitenlandsCorrAdres2").style.display="none",$("BuitenlandsCorrAdres3").style.display="none";else if(1==a.value())$("NederlandsCorrAdres1").style.display="none",$("NederlandsCorrAdres2").style.display=
"none",$("NederlandsCorrAdres3").style.display="none",$("NederlandsCorrAdres4").style.display="none",$("NederlandsCorrAdres5").style.display="none",$("BuitenlandsCorrAdres1").style.display="",$("BuitenlandsCorrAdres2").style.display="",$("BuitenlandsCorrAdres3").style.display=""}
function CorrespondentieAdresChange(a){0==a.value()?($("CorrAdresCountry").style.display="none",$("NederlandsCorrAdres1").style.display="none",$("NederlandsCorrAdres2").style.display="none",$("NederlandsCorrAdres3").style.display="none",$("NederlandsCorrAdres4").style.display="none",$("NederlandsCorrAdres5").style.display="none",$("BuitenlandsCorrAdres1").style.display="none",$("BuitenlandsCorrAdres2").style.display="none",$("BuitenlandsCorrAdres3").style.display="none"):(a=0,a="3"==(new Url).get("step")?
Profile.Profile.Rows(1).CorrLand.value():Profile.Profile.Rows(0).CorrLand.value(),$("CorrAdresCountry").style.display="",0==a?($("NederlandsCorrAdres1").style.display="",$("NederlandsCorrAdres2").style.display="",$("NederlandsCorrAdres3").style.display="",$("NederlandsCorrAdres4").style.display="",$("NederlandsCorrAdres5").style.display="",$("BuitenlandsCorrAdres1").style.display="none",$("BuitenlandsCorrAdres2").style.display="none",$("BuitenlandsCorrAdres3").style.display="none"):($("NederlandsCorrAdres1").style.display=
"none",$("NederlandsCorrAdres2").style.display="none",$("NederlandsCorrAdres3").style.display="none",$("NederlandsCorrAdres4").style.display="none",$("NederlandsCorrAdres5").style.display="none",$("BuitenlandsCorrAdres1").style.display="",$("BuitenlandsCorrAdres2").style.display="",$("BuitenlandsCorrAdres3").style.display=""))}function gotoPrevStep(a){var b=new Url;3==a&&0==Profile.Profile.Rows(0).AddCoHunter.value()&&(a=1);b=b.add("step",a).filter("msg");location.href=b}
function save1stLogin(){var a=new Url,b=!0,d=Profile.Profile.Rows(0).canSave();checkFields(d,"SofiNumber,EmailAddress,AccountNumber,IncomePlace,Newsletter,TermsAndConditions".split(","))||(b=!1);if(b)a=a.add("action",1).filter("msg"),location.href=a}function gotoStep(a){var b=new Url;if(checkStep(a-1))1==a-1&&0==Profile.Profile.Rows(0).AddCoHunter.value()&&(a=4),b=b.add("step",a).filter("msg"),location.href=b}
function checkStep(a){var b=!0,d=!0,c=!0;focus=!1;if(0==a){var a=["Tenant","SofiNumber","Initials","Lastname","DateOfBirth"],e=Profile.Profile.Rows(0).canSave();checkFields(e,a)||(b=!1)}else 1==a?(a=["Gender"],e=Profile.Profile.Rows(0).canSave(),checkFields(e,a)||(b=!1),a=0==Profile.Profile.Rows(0).Land.value()?["Zipcode","Housenumber","Street"]:["Adresregel1","Adresregel2","Landaanduiding"],checkFields(e,a)||(b=!1),a=["MaritalStatus","Nationality","AccountNumber"],checkFields(e,a)||(b=!1),1==Profile.Profile.Rows(0).CorrespondentieAdres.value()&&
(a=0==Profile.Profile.Rows(0).CorrLand.value()?["CorrZipcode","CorrHousenumber","CorrStreet"]:["CorrAdresregel1","CorrAdresregel2","CorrLandaanduiding"],checkFields(e,a)||(b=!1)),a=["Telephone1"],checkFields(e,a)||(d=!1),a=["Telephone2"],checkFields(e,a)||(c=!1),"U moet minimaal 1 telefoonnummer invullen."==Profile.Profile.Rows(0).Telephone1.message&&"U moet minimaal 1 telefoonnummer invullen."==Profile.Profile.Rows(0).Telephone2.message?(b=!1,Profile.Profile.Rows(0).Telephone1.showError(),Profile.Profile.Rows(0).Telephone2.hideErrors()):
"U moet minimaal 1 telefoonnummer invullen."!=Profile.Profile.Rows(0).Telephone1.message&&"U moet minimaal 1 telefoonnummer invullen."==Profile.Profile.Rows(0).Telephone2.message&&!d?(b=!1,Profile.Profile.Rows(0).Telephone2.hideErrors()):"U moet minimaal 1 telefoonnummer invullen."==Profile.Profile.Rows(0).Telephone1.message&&"U moet minimaal 1 telefoonnummer invullen."!=Profile.Profile.Rows(0).Telephone2.message&&!c?(b=!1,Profile.Profile.Rows(0).Telephone1.hideErrors()):"U moet minimaal 1 telefoonnummer invullen."!=
Profile.Profile.Rows(0).Telephone1.message&&"U moet minimaal 1 telefoonnummer invullen."!=Profile.Profile.Rows(0).Telephone2.message&&!d&&!c?b=!1:(Profile.Profile.Rows(0).Telephone1.hideErrors(),Profile.Profile.Rows(0).Telephone2.hideErrors()),a=["EmailAddress","Income","IncomePlace","AddCoHunter"],checkFields(e,a)||(b=!1)):2==a?(a=["SofiNumber","Initials","Lastname","DateOfBirth"],e=Profile.Profile.Rows(1).canSave(),checkFields(e,a)||(b=!1)):3==a?(a=["Gender"],e=Profile.Profile.Rows(1).canSave(),
checkFields(e,a)||(b=!1),a=0==Profile.Profile.Rows(1).Land.value()?["Zipcode","Housenumber","Street"]:["Adresregel1","Adresregel2","Landaanduiding"],checkFields(e,a)||(b=!1),a=["MaritalStatus","Nationality"],checkFields(e,a)||(b=!1),1==Profile.Profile.Rows(1).CorrespondentieAdres.value()&&(a=0==Profile.Profile.Rows(1).CorrLand.value()?["CorrZipcode","CorrHousenumber"]:["CorrAdresregel1","CorrAdresregel2","CorrLandaanduiding"],checkFields(e,a)||(b=!1)),a=["Telephone1"],checkFields(e,a)||(d=!1),a=["Telephone2"],
checkFields(e,a)||(c=!1),"U moet minimaal 1 telefoonnummer invullen."==Profile.Profile.Rows(1).Telephone1.message&&"U moet minimaal 1 telefoonnummer invullen."==Profile.Profile.Rows(1).Telephone2.message?(b=!0,Profile.Profile.Rows(1).Telephone1.hideErrors(),Profile.Profile.Rows(1).Telephone2.hideErrors()):"U moet minimaal 1 telefoonnummer invullen."!=Profile.Profile.Rows(1).Telephone1.message&&"U moet minimaal 1 telefoonnummer invullen."==Profile.Profile.Rows(1).Telephone2.message&&!d?(b=!1,Profile.Profile.Rows(1).Telephone2.hideErrors()):
"U moet minimaal 1 telefoonnummer invullen."==Profile.Profile.Rows(1).Telephone1.message&&"U moet minimaal 1 telefoonnummer invullen."!=Profile.Profile.Rows(1).Telephone2.message&&!c?(b=!1,Profile.Profile.Rows(1).Telephone1.hideErrors()):"U moet minimaal 1 telefoonnummer invullen."!=Profile.Profile.Rows(1).Telephone1.message&&"U moet minimaal 1 telefoonnummer invullen."!=Profile.Profile.Rows(1).Telephone2.message&&!d&&!c?b=!1:(Profile.Profile.Rows(1).Telephone1.hideErrors(),Profile.Profile.Rows(1).Telephone2.hideErrors()),
a=["Income"],checkFields(e,a)||(b=!1)):4==a?(a=["HouseholdSize","LivingSituation","RegistrationReason"],e=Profile.Registration.Rows(0).canSave(),checkFields(e,a)||(b=!1)):5==a?(a=["Newsletter"],e=Profile.Profile.Rows(0).canSave(),checkFields(e,a)||(b=!1)):6==a&&(a=["TermsAndConditions"],e=Profile.Profile.Rows(0).canSave(),checkFields(e,a)||(b=!1));return b}
function checkFields(a,b){for(var d=!0,c=0;c<a.length;c++)b.contains(a[c].name)&&(d=!1,a[c].message?a[c].showError():a[c].showError("U heeft dit veld nog niet ingevuld."),focus||(a[c].focus(),focus=!0));return d}function checkAccountNumber(a){a=a.toString();if(9==a.length){for(var b=0,d=a.length,c=0;c<a.length;c++)b+=a.charAt(c)*d,d-=1;if(0!=b%11)return!1}return!0}
function checkBSN(a){if(null!=a){var a=a.toString(),b=0;if(isNaN(a)||9!=a.length)return!1;for(i=0;8>i;i++)b+=a.charAt(i)*(9-i);b-=a.charAt(8);if(0!=b%11)return!1}return!0}function isMobilePhone(a){return null!=a&&(a=a.toString(),0<a.length&&"06"==a.substring(0,2))?!1:!0}function checkZipcode(a){return null!=a&&(a=a.toString(),isNaN(a)||4!=a.length)?!1:!0}
function frmPasswordChangeSubmit(a,b){var d=document.getElementById("password1"),c=document.getElementById("password2");if(null==d.value||""==d.value)return alert("Vul een nieuw wachtwoord in."),d.focus(),!1;if(null==c.value||""==c.value)return alert("Vul het nieuwe wachtwoord nogmaals in."),c.focus(),!1;return d.value!=c.value?(alert("De herhaling van het nieuwe wachtwoord is niet gelijk aan nieuwe wachtwoord."),c.focus(),!1):!1==b.returnValue?!1:!0}
function initHelp(){JQ.query(".greyBlock .middle table td span.help").tooltip()}function initHelpAanbod(){JQ.query(".generalItem span.help").tooltip()}function uitschrijven(){var a=document.getElementById("uitschrijfreden").value,b=new Url,b=b.add("action","uitschrijven"),b=b.add("uitschrijfreden",a);location.href=b};

