rem: var docWidth=-1,bodyWidth=-1,winWidth=-1; var marginRight = parseInt(util.Dom.getStyle(document.body, 'marginRight'), 10); var marginLeft = parseInt(util.Dom.getStyle(document.body, 'marginLeft'), 10);  var mode = document.compatMode;  if (mode || isIE) { switch (mode) { case 'CSS1Compat': docWidth = document.documentElement.clientWidth; bodyWidth = document.body.offsetWidth + marginLeft + marginRight; break;  default: bodyWidth = document.body.clientWidth; docWidth = document.body.scrollWidth; break; } } else { docWidth = document.documentElement.clientWidth; bodyWidth = document.body.offsetWidth + marginLeft + marginRight; }  var w = Math.max(docWidth, bodyWidth); return w; }, 
add: var scrollWidth = (document.compatMode != 'CSS1Compat') ? document.body.scrollWidth : document.documentElement.scrollWidth; var w = Math.max(scrollWidth, Y.Dom.getViewportWidth()); return w; }, 
context:       getDocumentWidth: function() {         var docWidth=-1,bodyWidth=-1,winWidth=-1;         var marginRight = parseInt(util.Dom.getStyle(document.body, 'marginRight'), 10);         var marginLeft = parseInt(util.Dom.getStyle(document.body, 'marginLeft'), 10);         var mode = document.compatMode;         if (mode || isIE) { // (IE, Gecko, Opera)            switch (mode) {               case 'CSS1Compat': // Standards mode                  docWidth = document.documentElement.clientWidth;                  bodyWidth = document.body.offsetWidth + marginLeft + marginRight;                  break;               default: // Quirks                  bodyWidth = document.body.clientWidth;                  docWidth = document.body.scrollWidth;                  break;            }         } else { // Safari            docWidth = document.documentElement.clientWidth;            bodyWidth = document.body.offsetWidth + marginLeft + marginRight;         }         var w = Math.max(docWidth, bodyWidth);         return w;      },
meta: 4707	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4707/50c3492c4c3c825dbd3401e134a19ed46799c456/dom.js/clean/www/resources/yui/dom/dom.js