$("ul#home_tabs li").click(function(){$("ul#home_tabs li").removeClass("active");$(this).addClass("active");var a=$(this).find("a").attr("href");$("#home_woningaanbod .home_tab_content").hide();$(a).show();return false});
$(document).ready(function(){$('ul#home_tabs li[class*="active"]').length==0&&$("ul#home_tabs li:first").click();afkappenNieuwsItems();$("img").one("load",function(){alignNieuwsImages()}).each(function(){this.complete&&$(this).load()});$("ul#home_nieuws li").mouseover(function(){$(this).addClass("highlight")}).mouseout(function(){$(this).removeClass("highlight")});$(".nieuws_image_wrap").each(function(){$(this).children().size()<1&&$(this).addClass("geenfoto")})});
function alignNieuwsImages(){frameWidth=$(".nieuws_image_wrap").width();frameHeight=$(".nieuws_image_wrap").height();$(".nieuws_image_wrap img").each(function(){imgWidth=$(this).width();offsetWidth=Math.round((frameWidth-imgWidth)/2);$(this).css("margin-left",offsetWidth+"px")})}
function afkappenNieuwsItems(){$("ul#home_nieuws li").each(function(){var a=$(this).find(".nieuws_titel"),b=$(this).find(".nieuws_kopregel");a=$(this).find(a).height();var c=$(this).find(b).height();totalHeight=a+c;totalHeight>64&&$(this).find(b).height(c-(totalHeight-60)+"px").css("overflow","hidden").css("margin-bottom","20px")})};

