function ChangeImg_ (id_, path1, path2)
{
  document.getElementById(id_).src = path1;
  if (path2)
  {
    document.getElementById(id_+'_a').href = path2;
  }
}

function sel_ (ob, id_, id1_)
{
  if (ob.id !== 'menu2') ob.id = 'menu2';
  document.getElementById(id_).style.visibility = '';
  document.getElementById(id1_).style.color = '#ffffff';
}

function sel1_ (ob, id1, path)
{
  if (ob.id !== 'menu4') ob.id = 'menu4';
  document.getElementById (id1).src = path;
}

function down_ (id)
{
  if (document.getElementById (id).style.display == 'none')
    {
      document.getElementById (id).style.display = '';
    }
  else
    {
      document.getElementById (id).style.display = 'none'
    }
}

function unsel_ (ob, id_, id1_)
{
  if (id_ == '11221122')
  {
    if (ob.id !== 'menu1') ob.id = 'menu1';
    document.getElementById(id_).style.visibility = 'hidden';
    document.getElementById(id1_).style.color = '#000000';
  }
  else
  if (document.getElementById(id_+'_2').style.display == 'none')
  {
    if (ob.id !== 'menu1') ob.id = 'menu1';
    document.getElementById(id_).style.visibility = 'hidden';
    document.getElementById(id1_).style.color = '#000000';
  }
}

function unsel1_ (ob, id1, path)
{
  if (ob.id !== 'menu3') ob.id = 'menu3';
  document.getElementById (id1).src = path;
}

function rePic(elem)
{
	var temp = document.images[elem];
	if (temp.filters[0].opacity > temp.filters[0].finishOpacity)
	{
		temp.filters[0].opacity -= 5;
	}
	else
	{
		temp.filters[0].opacity += 5;
	}
	if (temp.filters[0].opacity != temp.filters[0].finishOpacity) setTimeout("rePic(\"" + elem + "\")",20);
}

function onRest(elem)
{
  //alert ("OK");
  if (elem.filters) if (elem.filters.length)
  if (elem.filters.length)
  {
		elem.filters[0].finishOpacity = 100;
		setTimeout("rePic(\"" + elem.name + "\")",20);
	}
}

function offRest(elem)
{
  //alert ("NO");
  if (elem.filters) if (elem.filters.length)
	{
		elem.filters[0].finishOpacity = 40;
		setTimeout("rePic(\"" + elem.name + "\")",20);
	}
	
}


