$(function() {

	var h = 0;

	$(this).find("tbody > tr:lt(8)").each(function(index, tr) {
		h += $(this).height();
	})

	$.tableScroller("div.resultgrid > table", h);
	$.equalHeights($("div.resultcontainer").height() + $("div.resultcontainer").offset().top);

	$("div.resultgrid input:checkbox").click(function() {
		var c = $("div.resultgrid input:checked").length;
		if (c > 2) {
			$("div.resultgrid input:checkbox:not(:checked)").attr("disabled","disabled");
		} else {
			$("div.resultgrid input:checkbox:not(:checked)").removeAttr("disabled");
		}
	});

});