function scroll_dw()
{
  if (this.page<this.pages)
  {
    new Effect.Move($(this.obj), { x: 0, y: this.pixel });
    thix.page = thix.page + 1;
  }  
}

function scroll_up()
{
  if (this.page>1)
  {
    new Effect.Move($(this.obj), { x: 0, y: this.pixel });
    thix.page = thix.page - 1;
  }  
}

function Scroll(pages, pixel, obj)
{
  this.pages=pages;
  this.pixel=pixel;
  this.obj=obj;
  this.page = 1;
  this.up=scroll_up;
  this.dw=scroll_dw;
}
function Scroll_runter()
{
  new Effect.Move($('pudi), { x: 0, y: 480});
}
