﻿$(document).ready
(
	function()
	{
		equalHeight($('.item_block .item_text'));
	
		colorTable($('.sitetable tr'));
	}
);


function equalHeight(group) {
	var tallest = 0;
	group.each(function() {
		var thisHeight = $(this).height();
		if(thisHeight > tallest) {
			tallest = thisHeight;
		}
	});
	group.height(tallest);
}


function colorTable(group) 
{
	for(var i = 0; i < group.length; i++)
	{
		$(group[i]).addClass('table_r' + (i % 2))
	}
}
