code: function() {
              var scrollWidth = (document[COMPAT_MODE] != CSS1_COMPAT || isSafari) ? document.body.scrollWidth : documentElement.scrollWidth,
                  w = Math.max(scrollWidth, Y.Dom.getViewportWidth());
              return w;
          }
docs: Returns the width of the document.
  @method getDocumentWidth
  @return {Int} The width of the actual document (which includes the body and its margin).