function filterOutLicenseMessage(n){var t=n;try{t=JSON.parse(n.substr(n.indexOf("{")))}catch(i){console.error("Failed to parse JSON response",i)}return t}function updateQueryStringParam(n,t){var e=[location.protocol,"//",location.host,location.pathname].join(""),i=document.location.search,r=n+"="+t,f="?"+r,u;i&&(u=new RegExp("([?&])"+n+"[^&]*"),f=i.match(u)!==null?i.replace(u,"$1"+r):i+"&"+r);window.history.replaceState({},"",e+f)}var RVB={devmode:!1,menuWidth:250,path:"/Content/",rvbcontainer:1586,breakPointXs:480,breakPointSm:768,breakPointMd:992,breakPointLg:1200,nonacceptedbrowsers:{ie:[8,7,6],msie:[8,7,6],chrome:-1,safari:-1,firefox:-1,opera:-1},clicker:function(){return RVB.ismobile()?"tap":"click"},resizeMap:function(){var n=$(".fill-left #tab-map"),t=1935;n.length>0&&(t=$(window).outerWidth()>=RVB.breakPointLg-1?1915-parseInt($(".rvb-container").css("margin-left")):1935,n.css({"padding-left":t}))},headerBackgroundImage:function(){var n=$(window);return function(){var t=n.scrollTop();$(".intro-block .background-image, #video-background").css("transform","translateY("+Math.round(t/2)+"px)");$(".intro-block .background-image, #video-background").css(RVB.prefix+"filter","blur( "+(0+t/100)+"px )")}}},RvbMap,RvbMapCenter;RVB.getPrefix=function(){if(!window.getComputedStyle)return!1;var t=window.getComputedStyle(document.documentElement,""),n=(Array.prototype.slice.call(t).join("").match(/-(moz|webkit|ms)-/)||t.OLink===""&&["","o"])[1],i="WebKit|Moz|MS|O".match(new RegExp("("+n+")","i"))[1];return{dom:i,lowercase:n,css:"-"+n+"-",js:n[0].toUpperCase()+n.substr(1)}};RVB.prefix=RVB.getPrefix().css;RVB.browserCheck=function(){var n,t;if(RVB.tell(navigator.userAgent),navigator.sayswho=function(){var i=navigator.userAgent,t,n=i.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];return/trident/i.test(n[1])?(t=/\brv[ :]+(\d+)/g.exec(i)||[],"IE "+(t[1]||"")):n[1]==="Chrome"&&(t=i.match(/\b(OPR|Edge)\/(\d+)/),t!=null)?t.slice(1).join(" ").replace("OPR","Opera"):(n=n[2]?[n[1],n[2]]:[navigator.appName,navigator.appVersion,"-?"],(t=i.match(/version\/(\d+)/i))!=null&&n.splice(1,1,t[1]),$("html").addClass(n[0].toLowerCase()),$("html").addClass(n[0].toLowerCase()+"-"+n[1]),n)}(),RVB.getCookie("showBrowserAlert").length===0){if(n=RVB.nonacceptedbrowsers[navigator.sayswho[0].toLowerCase()],typeof n=="object")for(t=n.length-1;t>=0;t--)n[t]===parseInt(navigator.sayswho[1],10)&&RVB.showBrowserAlert();typeof n=="number"&&n===parseInt(navigator.sayswho[1],10)&&RVB.showBrowserAlert()}};RVB.showBrowserAlert=function(){var t=$("<a/>",{"class":"tiny button-blue button"}).text("Deze melding niet meer weergeven"),i=$("<a/>",{"class":"tiny button-blue button"}).text("Mijn browser updaten"),n=$("<div/>",{id:"browser-alert"}).append($("<div/>",{"class":"rvb-container"}).append($("<div/>",{"class":"row"}).append($("<div/>",{"class":"col-sm-12"}).append("<h2>Uw browser is verouderd<\/h2><p>Het kan zijn dat de website daardoor niet goed wordt weergegeven. Het is aan te raden uw browser te vernieuwen, of om de website te bezoeken in een andere browser.<\/p>")),$("<div/>",{"class":"row"}).append($("<div/>",{"class":"col-sm-6"}).append(t),$("<div/>",{"class":"col-sm-6"}).append(i))));$("#wrapper").prepend(n);t.on("click",function(){var t=new Date,i;t.setTime(t.getTime()+31536e6);i="expires="+t.toUTCString();document.cookie="showBrowserAlert=off; "+i;n.animate({"margin-top":-n.outerHeight()},{duration:300,specialEasing:{"margin-top":"easeOutQuad"},complete:function(){n.remove()}})})};RVB.getCookie=function(n){for(var r=n+"=",u=document.cookie.split(";"),t,i=0;i<u.length;i++){for(t=u[i];t.charAt(0)==" ";)t=t.substring(1);if(t.indexOf(r)==0)return t.substring(r.length,t.length)}return""};RVB.datePicker=function(){var t=$(".datepicker"),n;t.length>0&&(n=[],t.each(function(){var t=$(this).data("max-date"),i=$(this).data("change-year");$(this).datepicker({monthNames:["Januari","Februari","Maart","April","Mei","Juni","Juli","Augustus","September","Oktober","November","December"],monthNamesShort:["Jan","Feb","Maa","Apr","Mei","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],dayNamesMin:["Zo","Ma","Di","Wo","Do","Vr","Za"],maxDate:t,changeYear:i,dateFormat:"d-m-yy",beforeShow:function(t){$(t).attr("data-theme")&&n.indexOf($(t).attr("data-theme"))===-1&&n.push($(t).attr("data-theme"));for(var i=n.length-1;i>=0;i--)$("#ui-datepicker-div").removeClass(n[i]);$("#ui-datepicker-div").addClass($(t).attr("data-theme"))}})}))};RVB.getDate={getMonth:function(n){return["Januari","Februari","Maart","April","Mei","Juni","Juli","Augustus","September","Oktober","November","December"][n]},getMonthShort:function(n){return["Jan","Feb","Maa","Apr","Mei","Jun","Jul","Aug","Sep","Okt","Nov","Dec"][n]},getWeekDay:function(n){return["Zondag","Maandag","Dinsdag","Woensdag","Donderdag","Vrijdag","Zaterdag"][n]},getWeekDayShort:function(n){return["Zo","Ma","Di","Wo","Do","Vr","Za"][n]}};RVB.dropDownList=function(){var n=$(".dropdown"),t=n.find(".dropdown-list"),i=t.find("li");n.length>0&&i.each(function(){var n=$(this).parent().parent().parent();$(this).on("click",function(t){t.preventDefault();var i=$(this),r=i.index();_dropdown=i.parents(".dropdown");_para=_dropdown.find("p");_select=_dropdown.find("select");_options=_select.find("option");i.hasClass("show-more")?(i.removeClass("show-more"),i.addClass("show-less"),i.parent("ul").find(".collapsed").addClass("expand")):i.hasClass("show-less")?(i.removeClass("show-less"),i.addClass("show-more"),i.parent("ul").find(".collapsed.expand").removeClass("expand")):i.hasClass("show-all")?(_para.html(_para.attr("placeholder")),i.parent("ul").find("li.selected").removeClass("selected"),i.addClass("selected"),n.removeClass("open")):(_para.html(i.html()),i.parent("ul").find("li.selected").removeClass("selected"),i.addClass("selected"),_options.eq(r).prop("selected","selected"),n.removeClass("open"),_select.trigger("change"))})});n.each(function(){var n;$(this).hover(function(){clearTimeout(n);$(this).addClass("open")},function(){var t=$(this);clearTimeout(n);n=setTimeout(function(){t.removeClass("open")},900)})})};RVB.endlessScroll=function(){if(RVB.isOnScreen($("#scrollend"))&&!$("#scrollend").hasClass("loading")){$("#scrollend").addClass("loading");var t=$("#scrollend").attr("data-view"),n=$("#scrollend").attr("data-url"),i=$("#scrollend").siblings("div.clickable-row").length;n+="&offset="+i;RVB.appendView({view:t,url:n,targetEl:$("#scrollend")},function(){var n=$("#scrollend").siblings("div.clickable-row").length;updateQueryStringParam("s",n);$("#scrollend").removeClass("loading")})}};RVB.appendView=function(n,t){$.ajax({type:"GET",url:n.url,dataType:"text",success:function(i){var r=filterOutLicenseMessage(i),u;if(r.results.length===0){$("#scrollend").remove();return}switch(n.view){case"searchResultItemView":case"dogSearchResultItemView":$.each(r.results,function(i,u){var f=RVB[n.view](u);n.targetEl.before(f);setTimeout(function(){f.showMe()},i*100);setTimeout(function(){t&&t()},r.results.length*100)});break;case"tableView":$.each(r.results,function(t,i){var r=RVB[n.view](i.user);n.targetEl.before(r);setTimeout(function(){r.showMe()},t*100)});setTimeout(function(){t&&t()},r.results.length*100);break;case"whiteboxView":u=0;$.each(r.results,function(i,f){var e=RVB[n.view](f.user);n.targetEl.before(e);setTimeout(function(){i===r.results.length-1?(e.showMe(function(){$(".same-height").css("height","auto");$(".same-height>a").css("height","auto");setTimeout(function(){$(".same-height.resizing").each(function(){u=u<$(this).outerHeight()?$(this).outerHeight():u});$(".same-height.resizing").animate({height:u},50).removeClass("resizing")},400)}),t&&t()):e.showMe()},(i+1)*150)});break;case"timelineView":$.each(r.results,function(t,i){var r=RVB[n.view](i.user,t);n.targetEl.before(r);setTimeout(function(){r.showMe()},t*100)});setTimeout(function(){t&&t()},r.results.length*100);break;default:RVB.tell("View not found")}}})};RvbMap=null;RvbMapCenter=null;RVB.loadMaps=function(n){var t,i,f,r,u;$("#"+n).length&&(i=n,f=$(".fill-left #tab-map"),map_options={},map_center={lat:52.3536426,lng:4.8628266},new_center=map_center,map_options={scrollwheel:!1,navigationControl:!1,mapTypeControl:!1,scaleControl:!1,center:new google.maps.LatLng(map_center.lat,map_center.lng),zoom:17,zoomControl:!0,mapTypeId:google.maps.MapTypeId.ROADMAP},RVB.ismobile()&&(map_options.draggable=!1),t=new google.maps.Map(document.getElementById(i),map_options),RvbMap=t,r={lat:52.352285,lng:4.86646},u={lat:52.354097,lng:4.866358},RVB.addMarker(map_center),RVB.addMarker(r),RVB.addMarker(u),google.maps.event.addDomListener(window,"resize",function(){new_center=t.getCenter();google.maps.event.trigger(t,"resize");t.setCenter(new_center)}),google.maps.event.addDomListener(window,"switchtab",function(){new_center=t.getCenter();google.maps.event.trigger(t,"resize");t.setCenter(new_center)}))};RVB.addMarker=function(n){var t=new google.maps.MarkerImage(RVB.path+"img/map-marker.png",new google.maps.Size(30,48),new google.maps.Point(0,0),new google.maps.Point(15,48)),i=new google.maps.MarkerImage(RVB.path+"img/map-marker-shadow.png",new google.maps.Size(1408,48),new google.maps.Point(0,0),new google.maps.Point(15,48)),r=new google.maps.LatLng(n.lat,n.lng),u=new google.maps.Marker({draggable:!1,icon:t,map:RvbMap,position:r,shadow:i,shape:{coord:[20,0,22,1,23,2,25,3,26,4,26,5,27,6,28,7,28,8,29,9,29,10,29,11,29,12,29,13,29,14,29,15,29,16,29,17,29,18,29,19,29,20,28,21,28,22,28,23,27,24,27,25,27,26,26,27,26,28,25,29,25,30,24,31,24,32,23,33,23,34,22,35,22,36,21,37,21,38,20,39,19,40,19,41,18,42,18,43,17,44,16,45,16,46,15,47,14,47,13,46,13,45,12,44,11,43,11,42,10,41,10,40,9,39,8,38,8,37,7,36,7,35,6,34,6,33,5,32,5,31,4,30,4,29,3,28,3,27,2,26,2,25,2,24,1,23,1,22,1,21,0,20,0,19,0,18,0,17,0,16,0,15,0,14,0,13,0,12,0,11,0,10,0,9,1,8,1,7,2,6,3,5,3,4,4,3,6,2,7,1,9,0,20,0],type:"poly"}})};RVB.cookiesEnabled=function(){return RVB.getClientInfo().cookies};RVB.getBrowser=function(){return RVB.getClientInfo().browser};RVB.getBrowserVersion=function(){return RVB.getClientInfo().browserVersion};RVB.onDevice=function(){return RVB.mobile()&&RVB.tablet()};RVB.onMobile=function(){return RVB.getClientInfo().mobile};RVB.onTablet=function(){return RVB.getClientInfo().tablet};RVB.getOS=function(){return RVB.getClientInfo().os};RVB.getOSVersion=function(){return RVB.getClientInfo().osVersion};RVB.getScreenSize=function(){return RVB.getClientInfo().screen};RVB.getClientInfo=function(){var v="unknown",y="",o=window.screen,f,l,w,a,u;o.width&&(width=o.width?o.width:"",height=o.height?o.height:"",y+=""+width+" x "+height);var s=navigator.appVersion,n=navigator.userAgent,r=navigator.appName,t=""+parseFloat(navigator.appVersion),h=parseInt(navigator.appVersion,10),p,i,e;(i=n.indexOf("Opera"))!==-1?(r="Opera",t=n.substring(i+6),(i=n.indexOf("Version"))!==-1&&(t=n.substring(i+8))):(i=n.indexOf("MSIE"))!==-1?(r="Microsoft Internet Explorer",t=n.substring(i+5)):(i=n.indexOf("Chrome"))!==-1?(r="Chrome",t=n.substring(i+7)):(i=n.indexOf("Safari"))!==-1?(r="Safari",t=n.substring(i+7),(i=n.indexOf("Version"))!==-1&&(t=n.substring(i+8))):(i=n.indexOf("Firefox"))!==-1?(r="Firefox",t=n.substring(i+8)):n.indexOf("Trident/")!==-1?(r="Microsoft Internet Explorer",t=n.substring(n.indexOf("rv:")+3)):(p=n.lastIndexOf(" ")+1)<(i=n.lastIndexOf("/"))&&(r=n.substring(p,i),t=n.substring(i+1),r.toLowerCase()===r.toUpperCase()&&(r=navigator.appName));(e=t.indexOf(";"))!==-1&&(t=t.substring(0,e));(e=t.indexOf(" "))!==-1&&(t=t.substring(0,e));(e=t.indexOf(")"))!==-1&&(t=t.substring(0,e));h=parseInt(""+t,10);isNaN(h)&&(t=""+parseFloat(navigator.appVersion),h=parseInt(navigator.appVersion,10));var b=/Mobile|mini|Fennec|Android|iP(hone|od)/.test(s),k=/iPad/.test(s),c=navigator.cookieEnabled?!0:!1;typeof navigator.cookieEnabled!="undefined"||c||(document.cookie="testcookie",c=document.cookie.indexOf("testcookie")!==-1?!0:!1);f=v;l=[{s:"Windows 3.11",r:/Win16/},{s:"Windows 95",r:/(Windows 95|Win95|Windows_95)/},{s:"Windows ME",r:/(Win 9x 4.90|Windows ME)/},{s:"Windows 98",r:/(Windows 98|Win98)/},{s:"Windows CE",r:/Windows CE/},{s:"Windows 2000",r:/(Windows NT 5.0|Windows 2000)/},{s:"Windows XP",r:/(Windows NT 5.1|Windows XP)/},{s:"Windows Server 2003",r:/Windows NT 5.2/},{s:"Windows Vista",r:/Windows NT 6.0/},{s:"Windows 7",r:/(Windows 7|Windows NT 6.1)/},{s:"Windows 8.1",r:/(Windows 8.1|Windows NT 6.3)/},{s:"Windows 8",r:/(Windows 8|Windows NT 6.2)/},{s:"Windows NT 4.0",r:/(Windows NT 4.0|WinNT4.0|WinNT|Windows NT)/},{s:"Windows ME",r:/Windows ME/},{s:"Android",r:/Android/},{s:"Open BSD",r:/OpenBSD/},{s:"Sun OS",r:/SunOS/},{s:"Linux",r:/(Linux|X11)/},{s:"iOS",r:/(iPhone|iPad|iPod)/},{s:"Mac OS X",r:/Mac OS X/},{s:"Mac OS",r:/(MacPPC|MacIntel|Mac_PowerPC|Macintosh)/},{s:"QNX",r:/QNX/},{s:"UNIX",r:/UNIX/},{s:"BeOS",r:/BeOS/},{s:"OS/2",r:/OS\/2/},{s:"Search Bot",r:/(nuhk|Googlebot|Bing Bot|Yammybot|Openbot|Slurp|MSNBot|Ask Jeeves\/Teoma|ia_archiver)/}];for(w in l)if(a=l[w],a.r.test(n)){f=a.s;break}u=v;/Windows/.test(f)&&(u=/Windows (.*)/.exec(f)[1],f="Windows");switch(f){case"Mac OS X":u=/Mac OS X (10[\.\_\d]+)/.exec(n)[1];break;case"Android":u=/Android ([\.\_\d]+)/.exec(n)[1];break;case"iOS":u=/OS (\d+)_(\d+)_?(\d+)?/.exec(s);u=u[1]+"."+u[2]+"."+(u[3]|0)}return{browser:r,browserVersion:t,cookies:c,mobile:b,os:f,osVersion:u,screen:y,tablet:k}};RVB.ismobile=function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)};RVB.navigation={trigger:$(".toggle-menu"),wrapper:$("#wrapper"),mobileMenu:$("#navigation-mobile"),left:0,openToggle:function(n){var t=this;setTimeout(function(){$("#navigation").scrollTop(0)},300);switch(n){case!0:this.trigger.addClass("active");this.left=RVB.menuWidth;this.wrapper.on("click",function(n){n.stopPropagation();t.openToggle()});this.mobileMenu.animate({left:this.left},250);this.wrapper.animate({left:this.left},250);break;case!1:this.trigger.removeClass("active");this.left=0;this.wrapper.off("click");this.mobileMenu.animate({left:this.left},0);this.wrapper.animate({left:RVB.navigation.left},0);break;default:if(this.wrapper.css("left")==="auto"||this.wrapper.css("left")==="0px"){this.trigger.addClass("active");this.left=RVB.menuWidth;this.wrapper.on("click",function(n){n.stopPropagation();t.openToggle()})}else this.trigger.removeClass("active"),this.left=0,this.wrapper.off("click");this.mobileMenu.animate({left:this.left},250);this.wrapper.animate({left:this.left},250)}},liveScroll:function(){var t=$navigation.find(".scroll-wrapper"),h=$navigation.find(".scroll-wrapper > ul:last-child").eq(0),n=$(window),u=0,s=t.offset().top,i=t.outerHeight(),f=t.outerHeight(),e=n.scrollTop()+(n.outerHeight()-u),r=n.scrollTop(),o;return i>n.outerHeight()&&(o=e>i?i-n.outerHeight():r,t.css("margin-top",o*-1)),function(){if(scrollDirection=r-n.scrollTop(),s=t.offset().top,e=n.scrollTop()+(n.outerHeight()-u),r=n.scrollTop(),n.width()>992){if(i>n.outerHeight()){var o=parseInt(t.css("margin-top"),10)+scrollDirection;o>0?t.css("margin-top",0):o<n.outerHeight()-f?t.css("margin-top",n.outerHeight()-f):t.css("margin-top",o)}}else t.css("margin-top",0)}},init:function(){var n=this;this.trigger.on("click",function(t){t.stopPropagation();n.openToggle()});setInterval(function(){parseInt($window.scrollTop(),10)===0&&$navigation.find(".scroll-wrapper").css("margin-top",0)},1e3)}};RVB.isOnscreen=function(n,t,i){var f=$(window),r={},e={},u={},h=!1,o=0,s=0;return t=t==null||typeof t=="undefined"?1:t,i=i==null||typeof i=="undefined"?1:i,u={top:f.scrollTop(),right:f.scrollLeft()+f.width(),bottom:f.scrollTop()+f.height(),left:f.scrollLeft()},o=n.outerHeight(),s=n.outerWidth(),s&&o?(r=n.offset(),r.right=r.left+s,r.bottom=r.top+o,h=!(u.right<r.left||u.left>r.right||u.bottom<r.top||u.top>r.bottom),!h)?!1:(e={top:Math.min(1,(r.bottom-u.top)/o),right:Math.min(1,(u.right-r.left)/s),bottom:Math.min(1,(u.bottom-r.top)/o),left:Math.min(1,(r.right-u.left)/s)},e.left*e.right>=t&&e.top*e.bottom>=i):!1};RVB.setSameHeight=function(n,t){var f=$(n),i=150,r=[],u=0;f.length>1&&$(window).width()>767&&f.each(function(n){var t=$(this),e=n;u===0?(r.push(t),i=t.outerHeight()>i?t.outerHeight():i,t.css("height",i),u=t):u.offset().top===t.offset().top?(r.push(t),i=t.outerHeight()>i?t.outerHeight():i,n+1===f.length&&$.each(r,function(n,u){i=r.length===1?t.outerHeight():i;u.css("height",i)})):($.each(r,function(n,t){i=r.length===1?$(t).outerHeight():i;t.css("height",i)}),r=[t],i=t.outerHeight(),u=t,t.css("height",i))});t&&t()};var searchColumn=$(".search-column"),searchTrigger=searchColumn,searchInput=searchColumn.find('input[type="search"]');RVB.searchColumn=function(){searchTrigger.on("click",function(n){n.preventDefault();searchColumn.hasClass("expanded")||RVB.expandSearch();n.stopPropagation()});$("html, body").on("click",function(){RVB.collapseSearch()})};RVB.expandSearch=function(){searchColumn.addClass("expanded");searchInput.focus();searchInput.on("click",function(n){n.stopPropagation()})};RVB.collapseSearch=function(){searchInput.blur();searchColumn.removeClass("expanded")};RVB.stickySidebar=function(n,t){var u,f;if($(n).length>0){this.$sidebar=$(n).eq(0);this.$sidebarContainer=t||this.$sidebar.parent();var s=parseInt(this.$sidebar.attr("data-margintop"),10)||0,e=this.$sidebar.offset().top,r=this.$sidebarContainer.outerHeight()+this.$sidebarContainer.offset().top-this.$sidebar.outerHeight(),i=0,o=this;return $window.width()<992&&(i=60),this.$sidebarContainer.css({position:"relative"}),u=this.$sidebar.outerWidth(),f=this.$sidebar.offset(),$window.resize(RVB.throttle(function(){u=this.$sidebar.outerWidth();f=this.$sidebar.offset();r=this.$sidebarContainer.outerHeight()+this.$sidebarContainer.offset().top-this.$sidebar.outerHeight();$window.width()<992&&(i=60);this.positionSidebar($window.scrollTop())},200)),this.makefixed=function(n,t){this.$sidebar.css({position:"fixed",width:n,float:"none",left:t.left,top:i,"margin-top":0})},this.makerelative=function(){this.$sidebar.attr("style","")},this.positionSidebar=function(n){n>e-i?n>r?this.$sidebar.css({"margin-top":r-n}):this.makefixed(u,f):this.makerelative()},function(){var n=$window.scrollTop();o.positionSidebar(n)}}return function(){return!1}};RVB.styleguide=function(){var n,t;if($("#wrapper").hasClass("styleguide")){n=window.location.hash;n&&($("body").append($("<div/>",{id:"hashfound"}).css({position:"fixed","z-index":"99999999",top:0,left:0,width:"100%",height:"100%",background:"rgba(84,47,125,0.7)"}).append($("<h2/>").css({color:"white","margin-top":$(window).height()/2-80,"text-align":"center"}).text("Hash found")).append('<div class="loader white"><div class="ball"><\/div><div class="dogg"><\/div><\/div>')),setTimeout(function(){$("#hashfound").fadeOut();RVB.scrollToId(n)},1500));$("a.smoothscroll").click(function(){var n=$(this).attr("href");RVB.scrollToId(n)});$(".button-list button").on("click",function(){console.log($(this).attr("class"));var n=$(this);RVB.toggleTooltip(n,n.attr("class"))});$("#search-icon").on("keyup change",function(){clearTimeout(t);var n=$(this).val();searchValues=n.split(" ");t=setTimeout(function(){for(var r=$(".button-list button"),t,n=r.length-1;n>=0;n--){var i=$(r[n]),e=i.attr("class"),u=!1,f=0;for(t=searchValues.length-1;t>=0;t--)e.indexOf(searchValues[t])>-1?f++:"";searchValues.length===f?u=!0:"";u?i.show():i.hide()}},100)})}};RVB.scrollToId=function(n){$("html, body").animate({scrollTop:$(n).offset().top},500)};RVB.toggleTooltip=function(n,t){t=t.replace(/ /g,"<br>");n.toggleClass("tipshown");n.hasClass("tipshown")?(n.parent().find(".tooltip").remove(),n.append($("<div/>",{"class":"tooltip"}).html("<p><span>Gebruikte classes<\/span><br>"+t+"<\/p>"))):n.find(".tooltip").remove()};RVB.tabs=function(){var n=$(".tabs"),i=$(".tabs-container"),r,t;n.find("a").eq(0).addClass("active");i.find("> div").hide();i.find("> div").eq(0).show();n.length>0&&(r=n.find("a"),r.each(function(){$(this).on("click",function(t){t.preventDefault();var r=$("#"+$(this).attr("data-tab"));n.find(".active").removeClass("active");$(this).addClass("active");i.find("> div").hide();r.show();history.replaceState(null,null,"#"+$(this).data("tab"));r.hasClass("map")&&google.maps.event.trigger(window,"switchtab")})}),location.hash&&(t=$("[data-tab="+location.hash.substr(1)+"]"),t.length>0&&!t.is(".active")&&t.click()))};RVB.tell=function(n){RVB.devmode===!0&&console.log(n)};RVB.dropThumbTemplate=function(n){return $("<span/>",{"class":"drop-thumb"}).append($("<p/>").html(n.name),$("<a/>",{href:"javascript:;","class":"remove-thumb"}))};RVB.searchResultItemView=function(n){var t=$("<div/>",{"class":"row clickable-row collapsed","data-href":n.url}).append($("<div/>",{"class":"col-xs-3"}).append($("<a/>",{href:n.url}).html(n.text)),$("<div/>",{"class":"col-xs-8"}).append($("<p/>").html(n.highlightedText)));return t.showMe=function(){$(this).removeClass("collapsed")},t};RVB.dogSearchResultItemView=function(n){var t=$("<div/>",{"class":"row clickable-row collapsed","data-id":n.id}).append($("<div/>",{"class":"col-lg-2 col-md-2 col-sm-2 col-xs-4"}).html(n.stembook),$("<div/>",{"class":"col-lg-3 col-md-6 col-sm-6 col-xs-8"}).html(n.name),$("<div/>",{"class":"col-lg-1 hidden-xs hidden-sm hidden-md"}).html(n.gender),$("<div/>",{"class":"col-lg-2 hidden-xs hidden-sm hidden-md"}).html(n.birthdate),$("<div/>",{"class":"col-lg-4 col-md-4 col-sm-4 hidden-xs"}).html(n.race));return t.showMe=function(){$(this).removeClass("collapsed")},t};RVB.tableView=function(n){var t=$("<div/>",{"class":"row collapsed"}).append($("<div/>",{"class":"col-xs-3"}).html(n.name.first+" "+n.name.last),$("<div/>",{"class":"col-xs-3"}).html(n.location.street+", "+n.location.city),$("<div/>",{"class":"col-xs-3"}).html(Math.random(.1,20).toFixed(1)+"km"),$("<div/>",{"class":"col-xs-3"}).html(n.email+"<\/br>"+n.cell));return t.showMe=function(){$(this).removeClass("collapsed")},t};RVB.whiteboxView=function(n){var t=new Date(n.registered*1e3),u=t.getDate(),f=RVB.getDate.getMonthShort(t.getMonth()),e=t.getFullYear(),o=u+" "+f+" "+e,i=$("<div/>",{"class":"orange white-box clickable same-height resizing rendering"}).append($("<a/>",{href:"javscript:;"}).html('<p class="date">'+o+"<\/p> \t\t\t\t<h2>"+n.name.first+" "+n.name.last+"<\/h2> \t\t\t\t<p>Locatie: "+n.location.street+" "+n.location.city+'<\/p> \t\t\t\t<button class="btn rounded purple icon-arrow-right"><\/button>')),r=$("<div/>",{"class":"col-sm-4"}).append(i);return r.showMe=function(n){i.removeClass("rendering").addClass("donerendering");n&&n()},r};RVB.timelineView=function(n,t){var i=new Date(n.registered*1e3),r=i.getDate(),f=RVB.getDate.getMonthShort(i.getMonth()),e=i.getFullYear(),h=r+" "+f+" "+e,o=$("<li/>",{"class":"activity"}).append($("<span/>",{"class":"date-day"}).html(r),$("<p/>").html("Nog een activiteit met een ietwat langere titel dan de andere activiteiten. Gewoon. Omdat het kan. "),$("<button/>",{"class":"btn blue"}).html("Button")),s=$("<li/>",{"class":"activity"}).append($("<span/>",{"class":"date-day"}).html(r),$("<p/>").html("Een activiteit en de beschrijving kunnen <br/> ook over meerdere regels worden verspreid.")),u=$("<ul/>",{rel:"maand jaar"}).append($("<li/>",{"class":"title"}).append($("<h3/>").html(f+" "+e)));return u.append(t%2==0?o:s),u.showMe=function(){RVB.showTimeline()},u};RVB.now=Date.now||function(){return(new Date).getTime()};RVB.throttle=function(n,t,i){var u,f,o,r=null,e=0,s;return i||(i={}),s=function(){e=i.leading===!1?0:RVB.now();r=null;o=n.apply(u,f);r||(u=f=null)},function(){var c=RVB.now(),h;return e||i.leading!==!1||(e=c),h=t-(c-e),u=this,f=arguments,h<=0||h>t?(r&&(clearTimeout(r),r=null),e=c,o=n.apply(u,f),r||(u=f=null)):r||i.trailing===!1||(r=setTimeout(s,h)),o}};RVB.debounce=function(n,t,i){var r,u,f,o,e,s=function(){var h=RVB.now()-o;h<t&&h>=0?r=setTimeout(s,t-h):(r=null,i||(e=n.apply(f,u),r||(f=u=null)))};return function(){f=this;u=arguments;o=RVB.now();var h=i&&!r;return r||(r=setTimeout(s,t)),h&&(e=n.apply(f,u),f=u=null),e}};RVB.timeline=function(){};RVB.showTimeline=function(){var i=$(window),r=$(".timeline"),t=r.find("li"),n=!1;t.length>0&&t.each(function(){item=$(this);n=RVB.ismobile()||i.outerWidth()<RVB.breakPointSm?!0:RVB.isOnscreen(item,.1,.1);n&&item.addClass("visible")})};RVB.replaceSVG=function(){$("html").hasClass("no-svg")&&$('img[src*=".svg"]').each(function(){$(this).attr("src",function(){return $(this).attr("src").replace(".svg",".png")})})};RVB.debounce=function(n,t,i){var r;return function(){var u=this,f=arguments,e=function(){r=null;i||n.apply(u,f)},o=i&&!r;clearTimeout(r);r=setTimeout(e,t);o&&n.apply(u,f)}};RVB.isOnScreen=function(n,t,i){var f=$(window),r={},e={},u={},h=!1,o=0,s=0,c=.1,l=.1;return c=t===null||typeof t=="undefined"?.1:t,l=i===null||typeof i=="undefined"?.1:i,u={top:f.scrollTop(),right:f.scrollLeft()+f.width(),bottom:f.scrollTop()+f.height(),left:f.scrollLeft()},o=n.outerHeight(),s=n.outerWidth(),s&&o?(r=n.offset(),r.right=r.left+s,r.bottom=r.top+o,h=!(u.right<r.left||u.left>r.right||u.bottom<r.top||u.top>r.bottom),!h)?!1:(e={top:Math.min(1,(r.bottom-u.top)/o),right:Math.min(1,(u.right-r.left)/s),bottom:Math.min(1,(u.bottom-r.top)/o),left:Math.min(1,(r.right-u.left)/s)},e.left*e.right>=c&&e.top*e.bottom>=l):!1};RVB.initVideo=function(n){var u=RVB.getBrowser()==="Safari"&&RVB.getOS()==="Windows",i;if(RVB.ismobile()||u)$(n).length===1?(i=$(n).attr("data-video-cover"),$(n).attr("style",'background-image: url("'+RVB.path+i+'");background-size:cover;')):$(n).length>1&&$(n).each(function(){$(this).attr("style",'background-image: url("'+RVB.path+$(this).attr("data-video-cover")+'");background-size:cover;')});else if($(n).length>0){var t=$(n),f=t.attr("data-mp4"),e=t.attr("data-ogv"),o=t.attr("data-webm"),r=new $.BigVideo({useFlashForFirefox:!1});r.init();r.show([{type:"video/mp4",src:f},{type:"video/ogg",src:e},{type:"video/webm",src:o}],{doLoop:!0,ambient:!0,container:$(".intro-block")});$("#big-video-wrap").appendTo($(n));videojs("big-video-vid_html5_api").ready(function(){this.play()})}};$(function(){function e(){$(".geheime-mail").html('<a href="&#109;&#097;&#105;&#108;&#116;&#111;:&#105;&#110;&#102;&#111;&#064;&#114;&#097;&#097;&#100;&#118;&#097;&#110;&#098;&#101;&#104;&#101;&#101;&#114;&#046;&#110;&#108;">&#105;&#110;&#102;&#111;&#064;&#114;&#097;&#097;&#100;&#118;&#097;&#110;&#098;&#101;&#104;&#101;&#101;&#114;&#046;&#110;&#108;<\/a>');$(".geheime-nummer").html("T +&#51;&#49;(&#48;)&#50;&#48; - &#54;&#54; &#52;&#52;&#52; &#55;1")}function r(){RVB.resizeMap();RVB.showTimeline();t();n();$.fn.matchHeight._update();i.css("height","auto");$(".same-height>a").css("height","auto");i.matchHeight({byRow:!0,property:"height",remove:!1});RVB.navigation.openToggle(!1)}$window=$(window);$body=$("body");$navigation=$("#navigation");RVB.initVideo(".videojs");RVB.navigation.init();var n=RVB.navigation.liveScroll(),t=RVB.stickySidebar(".sidebar.sticky"),u=RVB.headerBackgroundImage(),i=$(".same-height");window.requestAnimFrame=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(n){window.setTimeout(n,1e3/60)}}(),function f(){requestAnimFrame(f);RVB.showTimeline();RVB.endlessScroll()}();e();$window.resize(RVB.throttle(function(){RVB.devmode&&console.log("Throttle fired");r()},100));$window.load(function(){RVB.browserCheck();RVB.datePicker();RVB.dropDownList();RVB.endlessScroll();RVB.loadMaps("map-canvas");RVB.resizeMap();RVB.searchColumn();RVB.showTimeline();RVB.styleguide();RVB.tabs();t();n();i.matchHeight({byRow:!0,property:"height",remove:!1});r()});$window.scroll(function(){t();n();u()})})