var Pages = {
  increment: 470,
  currentPage: 1,
  element: 'pages',
  
  next: function() {
    new Effect.Move(this.element, { x: -this.increment, y: 0, duration: 0.3 });
    this.currentPage++;
  },
  previous: function() {
    new Effect.Move(this.element, { x: this.increment, y: 0, duration: 0.3 });
    this.currentPage--;
  },
  show: function(page) {
    new Effect.Move(this.element, { x: (this.currentPage - page) * this.increment, y: 0, duration: 0.4 });
    this.currentPage = page;
  }
}



var Pages_top = {
  increment: 986,
  currentPage: 1,
  element: 'pages_top',
  
  next: function() {
    new Effect.Move(this.element, { x: -this.increment, y: 0, duration: 0.3 });
    this.currentPage++;
  },
  previous: function() {
    new Effect.Move(this.element, { x: this.increment, y: 0, duration: 0.3 });
    this.currentPage--;
  },
  show: function(page) {
    new Effect.Move(this.element, { x: (this.currentPage - page) * this.increment, y: 0, duration: 0.4 });
    this.currentPage = page;
  }
}