/* Javascript */

function changeSportMenuStatus(id)
{
	var menu = document.getElementById(id);
	var img = menu.getElementsByTagName('IMG');
	img = img[0];
	if (menu.rel=='open')
	{
		img.src='/i/arrow_down.gif';
		menu.rel='close';
		document.getElementById(id+"_menu").style.display = 'none';
	}
	else 
	{
		img.src='/i/arrow_up.gif';
		menu.rel='open';
		document.getElementById(id+"_menu").style.display = 'block';
	}
	recalculateRightBoxHeight();
}

function recalculateRightBoxHeight()
{
	var lftBox = $("#left_menu").get(0);
	var rgtBox = $("#right_box").get(0);

	if (parseInt(lftBox.offsetHeight) > parseInt(rgtBox.offsetHeight))
	{
		rgtBox.style.height = parseInt(lftBox.offsetHeight) + 'px';
	}
}

$(window).load(function () { recalculateRightBoxHeight(); }); 