// Page class
function Page()
  {
  // Properties

  // Methods
  this.Height = function()
    {
    var Height = window.innerHeight;
    Height = (isNaN(Height) ? document.body.clientHeight : Height) - 4;
    return Height;
    }

  this.Width = function()
    {
    var Width = window.innerWidth;
    Width = (isNaN(Width) ? document.body.clientWidth : Width) - 4;
    return Width;    
    }    
    
  this.Top = function()
    {
    var Top = window.pageYOffset;
    Top = (isNaN(Top) ? document.body.scrollTop: Top);
    return Top;
    }
		
  this.Left = function()
    {
    var Left = window.pageXOffset;
    Left = (isNaN(Left) ? document.body.scrollLeft: Left);
    return Left;
    }	
  }
  
