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