/**
 * Show the verkeer popup.
 *
 * @param url
 */
function showVerkeerPopup(url) {
    popupWindow = window.open(url, "CobouwVerkeer", "location=0,status=0,scrollbars=0,resizable=1,width=750,height=550");
    popupWindow.focus();
}

/**
 * Show the verkeer popup.
 *
 * @param url
 */
function showWeerPopup(url) {
    popupWindow = window.open(url, "CobouwWeer", "location=0,status=0,scrollbars=0,resizable=1,width=650,height=460");
    popupWindow.focus();
}

/**
 * make each item pointed to by the selector dom elements the same (maximum) height.
 */
function equalizeHeight (selector) {
	var maxHeight = 0
	selector.each(function(){
		maxHeight = Math.max($(this).height(),maxHeight)    
	})
	selector.height(maxHeight);
}

$(document).ready(function() {
	// cobouw subscription ads.
	equalizeHeight($('.pink-box'));
	equalizeHeight($('.pink-box .bouwberichten-title'));
	equalizeHeight($('.pink-box .bouwberichten-checks'));
	equalizeHeight($('.pink-box .bouwberichten-bottom-text'));
});


