function ScrollSlide()
{
 this.steps = 20;
 this.steps_h = 30;
 this.way = 1;
 this.obj = '';

 this.DoStep = function (step)
 {
  step ++
  document.getElementById(this.obj).scrollTop += step * this.way;
  if (this.timeout) clearTimeout(this.timeout);
  if (step < this.steps) this.timeout = setTimeout('scroll.DoStep(' + step + ')', 15)
 }

 this.DoStepH = function (step)
 {
  step ++;
  document.getElementById(this.obj).scrollLeft += step * this.way;
  if (this.timeout) clearTimeout(this.timeout);
  if (step < this.steps_h) this.timeout = setTimeout('scroll.DoStepH(' + step + ')', 15);
  }

  this.goDown = function (block_name)
  {
   this.way = 1;
   this.obj = block_name;
   this.DoStep(1);
  }

  this.goUp = function (block_name)
  {
   this.way = -1;
   this.obj = block_name;
   this.DoStep(1);
    }

  this.goRight = function (block_name)
  {
   this.way = 1;
   this.obj = block_name;
   this.DoStepH(1);
    }

  this.goLeft = function (block_name)
  {
   this.way = -1;
   this.obj = block_name;
   this.DoStepH(1);
  }

  this.goRight2 = function (block_name)
  {
   this.way = 1;
   this.obj = block_name;
   this.DoStepH2(1);
    }

  this.goLeft2 = function (block_name)
  {
   this.way = -1;
   this.obj = block_name;
   this.DoStepH2(1);
  }

 this.DoStepH2 = function (step)
 {
  step++;
  //document.getElementById(this.obj).scrollLeft += step * this.way * 2;
  document.getElementById(this.obj).scrollLeft += this.way * 20;
  if (this.timeout) clearTimeout(this.timeout);
  if (step <= 15) this.timeout = setTimeout('scroll.DoStepH2(' + step + ')', 2);
  }

}