
  var browserOK = false;
  var pics;


  browserOK = true;
  pics = new Array();

var objCount = 0;
function preload(name, first, second)
{
  if (browserOK)
  {
    pics[objCount] = new Array(3);
    pics[objCount][0] = new Image();
    pics[objCount][0].src = first;
    pics[objCount][1] = new Image();
    pics[objCount][1].src = second;
    pics[objCount][2] = name;
    objCount++;
  }
}

function on(name)
{
  if (browserOK)
  {
    for (i = 0; i < objCount; i++)
    {
      if (document.images[pics[i][2]] != null)
        if (name != pics[i][2])
        {
          document.images[pics[i][2]].src = pics[i][0].src;
        }
          else
          {
            document.images[pics[i][2]].src = pics[i][1].src;
          }
    }
  }
}

function off()
{
  if (browserOK)
  {
    for (i = 0; i < objCount; i++)
    {
      if (document.images[pics[i][2]] != null)
        document.images[pics[i][2]].src = pics[i][0].src;
    }
  }
}

preload("home","http://www.zolotoemesto.ru/int/ichomeoff.gif","http://www.zolotoemesto.ru/int/ichomeon.gif");
preload("mail","http://www.zolotoemesto.ru/int/icmailoff.gif","http://www.zolotoemesto.ru/int/icmailon.gif");
preload("map","http://www.zolotoemesto.ru/int/icmapoff.gif","http://www.zolotoemesto.ru/int/icmapon.gif");
preload("mb1","http://www.zolotoemesto.ru/int/mb1off.gif","http://www.zolotoemesto.ru/int/mb1on.gif");
preload("mb2","http://www.zolotoemesto.ru/int/mb2off.gif","http://www.zolotoemesto.ru/int/mb2on.gif");
preload("mb3","http://www.zolotoemesto.ru/int/mb3off.gif","http://www.zolotoemesto.ru/int/mb3on.gif");
preload("mb4","http://www.zolotoemesto.ru/int/mb4off.gif","http://www.zolotoemesto.ru/int/mb4on.gif");
preload("mb5","http://www.zolotoemesto.ru/int/mb5off.gif","http://www.zolotoemesto.ru/int/mb5on.gif");


function sw(name)
{
  document.getElementById(name).className = "t2";
}
function swo(name)
{
  document.getElementById(name).className= "t0";
}
function gotourl(name)
{
  window.location.href="http://www.zolotoemesto.ru/bank/plan/"+name;
}
function gotour(name)
{
  window.location.href="http://www.zolotoemesto.ru/bank/corp11/plan/"+name;
}
