var check = false;

if (navigator.appVersion.indexOf("2.") != -1)
 check = false; 
if ((navigator.appVersion.indexOf("3.") != -1)	&& (navigator.appName.indexOf("Explorer") != -1))
  check = false;
else check = true;

origimage = new Image;
origimage.src = "-index-_files/space.gif";
image1on = new Image;
image1on.src = "-index-_files/text-rus.gif";
image2on = new Image;
image2on.src = "-index-_files/text-eng.gif";

function imageon(name)
{
  document.altimg.src = eval(name + "on.src");
}
function imageoff(name) 
{ 
  document.altimg.src = eval(name + ".src");
}
function on(name)
{
  if (check == true) imageon(name);
}
function off(name)
{ if (check == true){imageoff(name);}}

function high(which2){

theobject=which2

highlighting=setInterval("highlightit(theobject)",20)

}

function low(which2){

clearInterval(highlighting)

which2.filters.alpha.opacity=20

}


function highlightit(cur2)
{
  if (cur2.filters.alpha.opacity < 100)
    cur2.filters.alpha.opacity+=40
  else if (window.highlighting) 
    clearInterval(highlighting);
}

// fade begin
var ie5=(document.getElementById && document.all);
var ns6=(document.getElementById && !document.all);

nPlus = -5;  //the % of fading for each step
speed = 100; //the speed

// You don't have to edit below this line
nOpac = 100;

var index = 3;
function NewFadeImg()
{
  if(document.getElementById)
  {  
    imgs = document.getElementById("img" + index);
    imgs.style.visibility="visible";
	  opacity = nOpac + nPlus;
	  nOpac = opacity;
    
    //if(opacity > 100 || opacity < 0)
    //    nPlus =- nPlus;
    if (opacity > 0)
      setTimeout('NewFadeImg()', speed);
    else
    {
      index--;
      if (document.getElementById("img" + index))
      {
        setTimeout('NewFadeImg()', speed);    
        //imgs.style.filter="alpha(opacity=0)";
        nOpac = 100;
        return;
      }
    }    
      
    if(ie5)
    {
      imgs.style.filter="alpha(opacity=100)";
	    imgs.filters.alpha.opacity = opacity;
    }
    else if(ns6)
    {
      imgs.style.MozOpacity = 0 + '%';
	    imgs.style.MozOpacity = opacity + '%';
    }
  }
}
onload=NewFadeImg;