//------------------------------------------------------------------------------
// Scripts for regions.finam.ru site!
//------------------------------------------------------------------------------

function setChart(value)
{
	if (current != value) {
	aImages[value].src = activeImages[value];
	aImages[current].src = nactiveImages[current];

	document.chart.src = "http://charts.finam.ru/gi/" + aCharts[value];
	current = value;
}
}

function OnIconHover(name, flag)
{  
   var newImg, path, fileAdd, width, height;
   path='/i/face/'
   
   if (name=="account")		{width=117; height=21;}
   else if (name=="home")	{width=11; height=11;}
   else if (name=="mail")	{width=11; height=8;}
   
   newImg=new Image(width, height);
   if (flag==true) fileAdd="02";                              
   else            fileAdd="01";

   newImg.src=path + name + fileAdd + ".gif"   
   document[name+"Icon"].src=newImg.src;   
}

