
var Status = new Array;

function show(showId)
{
	Status[showId] = 1;
	if (document.getElementById(showId))
		document.getElementById(showId).style.display = "block";
}

function hide(hideId)
{
	Status[hideId] = 0;
		setTimeout("hide2('"+hideId+"')",250);
}

function hide2(hideId)
{
	eval("obj = document.getElementById('"+hideId+"');");
	if (obj && Status[hideId]==0)
		obj.style.display = 'none';
}

var StatusFon = new Array;

function fShowFon(type)
{
	StatusFon['main'] = 0;
	StatusFon['freska'] = 0;
	StatusFon['zvezdnoe'] = 0;
	StatusFon['lepnina'] = 0;
	StatusFon['stena'] = 0;
	StatusFon['potolok'] = 0;
	StatusFon['shtukatur'] = 0;

	StatusFon[type] = 1;
	setTimeout("fShowFon2('"+type+"')",350);
}	

function fShowFon2(type)
{
	if (StatusFon[type] == 1)
	{
		obj = document.getElementById("t2t");
		obj.className = type;
	}
}	