document.observe("dom:loaded", function() {
	// on the homepage, where this script is used, there's a 2x2 block of div.excerpt elements.  we want to make
	// sure that adjacent divs are of the same height.  to do so, we'll select them in groups of 2, find the max
	// height, and then set them both to have that height.  
	
	$("posts").select("div.excerpt").inGroupsOf(2).each(function(group) {
		var max_height = group.invoke("getHeight").max()-30;
		group.invoke("setStyle", "height: " + max_height + "px").invoke("addClassName", "extended");
	});
});