//чтобы при выборе в выпадающем списке карты на нее сделался переход
function gotoMapProject(f) {
	n = f.mapProjectSelector.selectedIndex;
	if (n)
		document.location = f.mapProjectSelector.options[n].value;
}

//показать блок с подсказкой
function showHint() 
{
	$('hintBlock').style.display = 'block';
}

//спрятать блок с подсказкой
function hideHint() {
	$('hintBlock').style.display = 'none';
}

//показывает или прячет блок с подсказкой
function switchHint() 
{
	var hintBlock = $('hintBlock');
	if (hintBlock.style.display == 'block')
	{
		hintBlock.style.display = 'none';
	}
	else
	{
		hintBlock.style.display = 'block';
	}
}



function startAnimation() 
{
	var topText = $('ballon').style.top;	
	var startY = Number( topText.substring(0, topText.length-2) );
		
	var alpha = 0;
	
	function doAnimation()
	{
		alpha += 0.05;
		var sinus = Math.sin(alpha);
		if (sinus>0) sinus = 0;
		
		$('ballon').style.top = (startY + 10*sinus);
				
		setTimeout(doAnimation, 25);
	}
	
	doAnimation();
}


