jQuery.ResolveUrl=function(b){var a="";if(document.getElementsByTagName("base")[0].href.split("/")[2].toLowerCase()=="localhost")a="/"+document.getElementsByTagName("base")[0].href.split("/")[3];return b.replace("~",a)};function popupWindow(b,a,c){style="height="+c+",width="+a+", status=no, toolbar=no, menubar=no, location=no, scrollbars=yes, resizable=no";a=(a=document.getElementsByTagName("base")[0])&&b.substring(0,1)!="/"?a.href:"";open(a+b,"_blank",style)}var inlogButton=$("#inloggen");
function showLoginMenu(){inlogButton.css({bottom:"0px"})}function openLoginMenu(){inlogButton.animate({bottom:"0px"},700,"easeOutCubic")}function closeLoginMenu(){height=inlogButton.css("height");inlogButton.animate({bottom:"-"+height},700,"easeOutCubic")}function setUpButtons(){$(".button").each(function(){makeButton($(this),"left","mid","right")})}
function makeButton(b,a,c,e){c&&$(b).wrapInner($("<span>").attr("class",c));a&&$(b).prepend($("<span>").attr("class",a));e&&$(b).append($("<span>").attr("class",e))}function showSubMenu(){$(this).css({"background-position":"right top"}).animate({height:"57px"},50,function(){$(this).find("ul.menulistpart").stop(true,true).slideDown(500,"easeOutCirc")})}
function hideSubMenu(){$(this).find("ul.menulistpart").stop(true,true).slideUp(300,"easeInCirc",function(){$(this).parent().animate({height:"37px"},50).css({"background-position":"left top"})})}var doelgroepen=$("#doelgroepen div");doelgroepen.hoverIntent({over:showSubMenu,out:hideSubMenu,timeout:200,interval:50,sensitivity:11});var hulp=$(".hulp");hulp.tipTip({maxWidth:"175px",edgeOffset:7,defaultPosition:"bottom",delay:100,keepAlive:false});var inlogmenuKnop=$(".inlogmenu_knop");
inlogmenuKnop.tipTip({edgeOffset:5,defaultPosition:"top",delay:100,keepAlive:false});function popup(b){$("#"+b).modal({close:true,overlayClose:true,minWidth:520,onShow:function(a){$(a.container).css("height","auto")}});$(".closePopup").click(function(){$.modal.close()})}
$(document).ready(function(){function b(e){var d=$(".locatie span").eq(e).children("a"),f=d.text(),g=d.width();d.text("...").css("width","10px");d.mouseover(function(){$(this).text(f).stop(false,false).filter(":not(:animated)").animate({width:g+"px"},600)}).mouseout(function(){$(this).stop(true,true).animate({width:"10px"},600,function(){d.text("...")})})}setUpButtons();$("#inloggen_tab.nietingelogd").toggle(function(){openLoginMenu()},function(){closeLoginMenu()});var a=Math.floor(Math.random()*
8+1);$("#headerImage").hide().css("background-image","url(/Domein/Img/illustratie"+a+".jpg)").fadeIn(700);$('.locatie:contains("Kopen met Koopgarant")').size()>0&&$("#content_wrap").prepend($("<div>").attr("id","koopgarant_logo"));a=$(".locatie");if(a.width()>"480"){var c=a.find("span");width_1=c.eq(1).find("a").width();width_2=c.eq(2).find("a").width();if(width_2>=width_1){b(2);a.width()>"480"&&b(1)}else{b(1);a.width()>"480"&&b(2)}}});

