<!--
function changeTdColorOver(thisId, thisColor)
{
	thisCellSecond = document.getElementById("secondTd" + thisId);
	thisCellThird = document.getElementById("thirdTd" + thisId);

	thisCellSecond.style.cursor = 'hand';
	thisCellThird.style.cursor = 'hand';

	thisCellSecond.setAttribute('bgcolor', thisColor, 0);
	thisCellThird.setAttribute('bgcolor', thisColor, 0);
}

function changeTdColorOut(thisId)
{
	thisCellSecond = document.getElementById("secondTd" + thisId);
	thisCellThird = document.getElementById("thirdTd" + thisId);

	thisCellSecond.setAttribute('bgcolor', '#f8f8f0', 0);
	thisCellThird.setAttribute('bgcolor', '#f8f8f0', 0);
}


//---------------------------
// загрузка картинок в память
//---------------------------
function loadIMG(imgName)
{
	this.img = new Image();
	this.img.src = imgName;
	return this;
}


imgPassive = new Array();
imgPassive[1] = new loadIMG(ROOT + '/graph/menu_translation.gif');
imgPassive[2] = new loadIMG(ROOT + '/graph/menu_notarial.gif');
imgPassive[3] = new loadIMG(ROOT + '/graph/menu_legal.gif');
imgPassive[4] = new loadIMG(ROOT + '/graph/menu_legalization.gif');
imgPassive[5] = new loadIMG(ROOT + '/graph/menu_corporate.gif');
imgPassive[6] = new loadIMG(ROOT + '/graph/menu_private.gif');
imgPassive[7] = new loadIMG(ROOT + '/graph/menu_english.gif');
imgPassive[8] = new loadIMG(ROOT + '/graph/menu_collaboration.gif');


imgActive = new Array();
imgActive[1] = new loadIMG(ROOT + '/graph/menu_active_translation.gif');
imgActive[2] = new loadIMG(ROOT + '/graph/menu_active_notarial.gif');
imgActive[3] = new loadIMG(ROOT + '/graph/menu_active_legal.gif');
imgActive[4] = new loadIMG(ROOT + '/graph/menu_active_legalization.gif');
imgActive[5] = new loadIMG(ROOT + '/graph/menu_active_corporate.gif');
imgActive[6] = new loadIMG(ROOT + '/graph/menu_active_private.gif');
imgActive[7] = new loadIMG(ROOT + '/graph/menu_active_english.gif');
imgActive[8] = new loadIMG(ROOT + '/graph/menu_active_collaboration.gif');

//--------------------
// смена картинок
//--------------------
function changeImg(id)
{	
	// делаем пассивными все пункты меню
	for (i = 1; i<imgActive.length; i++)
	{
		if (document.images["menuImg" + i])
		{
			document.images["menuImg" + i].src = imgPassive[i].img.src;
		}
	}

	if (id != 0)		
	{
		document.images["menuImg" + id].src = imgActive[id].img.src;
	}
}

-->
