function show_block(id) {
	if (document.getElementById(id).style.display == 'block')
		{
		document.getElementById(id).style.display = 'none';
		show ='show';
		}
	else
		{
		document.getElementById(id).style.display = 'block';
		show ='hide';
		}
}

function search_focus (id) {
	if(id.value=='Ищем') {id.value=''; id.className='sel'}
}

var img=false;
/********** Show block **********/
function show(id, img) {
	if (document.getElementById(id).style.display == 'block')
	{
		document.getElementById(id).style.display = 'none';
		if (img)
			{
			document.getElementById(img).src = "buttons/" + img + ".jpg";
			document.getElementById(img).style.height= '32px';
			}
	}
	else
	{
		document.getElementById(id).style.display = 'block';
		if (img)
			{
			document.getElementById(img).src = "buttons/" + img + "_c.jpg";
			document.getElementById(img).style.height= '40px';
			}
	}
}

function show_vac(id, img) {
	if (document.getElementById(id).style.display == 'block')
	{
		document.getElementById(id).style.display = 'none';
		if (img)
			{
			document.getElementById(img).src = "images/arrow_right.gif";
			}
	}
	else
	{
		document.getElementById(id).style.display = 'block';
		if (img)
			{
			document.getElementById(img).src = "images/arrow_down.gif";
			}
	}
}

function show_inform(id) {
	for (i=1; i<=3; i++)
	document.getElementById('inform'+i).style.display = 'none';
	
	document.getElementById(id).style.display = 'block';
}