if(typeof(screen)=="object" && screen.width && screen.height && screen.availWidth && screen.availHeight && self.moveTo)
{
  w = Math.min(screen.width, Math.abs(screen.availWidth));
  h = Math.min(screen.height, Math.abs(screen.availHeight));

  self.moveTo(0, 0);

  if(self.outerWidth && self.outerHeight)
  {
    self.outerWidth = w;
    self.outerHeight = h;
  }
  else if(self.resizeTo) self.resizeTo(w, h);
}

