// Do stuff when DOM is ready
$(document).ready(function(){
	// Justify teaser groups
	$(".teaser-group").justifyTeaserGroup();
	$(window).resize(function(){
		$(".teaser-group").justifyTeaserGroup(); 
	});
	
	// Finds all pageintro modules with two or more .module-contents in them and makes tabbed modules ot uf them
	if (typeof jQuery.fn.makeTabbedModule !== "undefined") {
		jQuery('.m-pageintro').each(function() {
			if(jQuery(this).children('.m-c').length > 1) {
				jQuery(this).makeTabbedModule();
			}
		});
	}
});