

	var cactive=Array();

	function forb(item, cont)
	{
		if(cactive[item] && (cont == 4))
		{
			return;
		}

		if(!cactive[item])
		{
			cactive[item]=true;
		}

		if(cont < 1)
		{
			cactive[item]=false;
			return;
		}

		GO('ic-' + item).style.background='rgb(217,219,223)';

		setTimeout('forbrep(' + item + ', ' + --cont + ')', 100);
	}



	function forbrep(item, cont)
	{
		GO('ic-' + item).style.background='rgb(227,229,233)';

		setTimeout('forb(' + item + ', ' + --cont + ')', 100);
	}




	function Hia(idm, out)
	{
		if(out)
		{
			CCO('mashn-' + idm, 40);
		}
		else
		{
			CCO('mashn-' + idm, 99);
		}
	}


	function ImgNew(i_url, i_width, i_height)
	{
		if(i_height > (screen.height - 150))
		{
			i_width+=20;
		}

		window.open('/images.php?image=' + i_url, '_blank', 'width=' + i_width + ',height=' + i_height + ',scrollbars=1,resizable=yes');
	}



/*
	var menu_actual;

	function Menu(mid, mtype)
	{
		//GetObject('testik').value=GetObject('testik').value + "\n" + 'true';

		if(menu_actual)
		{
			CCS('menu-' + menu_actual, 'background', (mtype != 2) ? 'rgb(198,205,211)' : 'rgb(208,215,221)');
			menu_actual=false;
		}
		else
		{
			menu_actual=mid;
			CCS('menu-' + menu_actual, 'background', 'rgb(197,237,253)');
		}
	}
*/

/*
	var menu_actual;
	var menu_next;

	function Menu(mid, mtype)
	{
		al('run Menu [' + mid + ' - ' + mtype + ']');

		if(mid && menu_actual && (menu_actual != mid))
		{
			alert('abc');
		}

		if(menu_actual)
		{
			al(' Menu - actual');

			if(menu_next)
			{
				al('  Menu - actual - to false ['+ menu_next + ']');
				menu_next=false;
			}
			else
			{
				al('  Menu - actual - timeout');
				setTimeout("Menu_Run('" + menu_actual + "', '" + ((mtype != 2) ? 'rgb(198,205,211)' : 'rgb(208,215,221)') + "'); menu_run=0;", 2000);
				menu_actual=false;
			}
		}
		else
		{
			menu_actual=mid;
			al(' Menu - actual - define');
			CCS('menu-' + menu_actual, 'background', 'white');
		}
	}



	function Menu_Run(mid, color)
	{
		if(mid == menu_actual)
		{
			al('TIMEOUT - to true');
			menu_next=true;
		}
		else
		{
			al('TIMEOUT - background');
			CCS('menu-' + mid, 'background', color);
		}
	}



	function al(msg)
	{
		GetObject('mess').value=msg + "\n" + GetObject('mess').value;



	}
*/

/*
	function Menu(mtype, mid)
	{
		if(out)
		{
			//setTimeout("CCS('menu-" + mid + "', 'background', '" + ((mtype == 1) ? 'rgb(198,205,211)' : 'rgb(208,215,221)') + "');", 100);
			CCS('menu-' + mid, 'background', ((mtype == 1) ? 'rgb(198,205,211)' : 'rgb(208,215,221)'));
		}
		else
		{
			//alert('x');
			CCS('menu-' + mid, 'background', 'blue');
		}
	}

				//setTimeout("CCS('menu-" + menu_actual + "', 'background', '" + ((mtype != 2) ? 'rgb(198,205,211)' : 'rgb(208,215,221)') + "'); menu_run=0;", 2000);
			//menu_run=menu_actual;
			//CCS('menu-' + menu_actual, 'background', ((mtype != 2) ? 'rgb(198,205,211)' : 'rgb(208,215,221)'));

*/