rem: getViewportDimensions: function() { var d = new MochiKit.DOM.Dimensions();  var w = MochiKit.DOM._window; var b = MochiKit.DOM._document.body;  if (w.innerWidth) { d.w = w.innerWidth; d.h = w.innerHeight; } else if (b.parentElement.clientWidth) { d.w = b.parentElement.clientWidth; d.h = b.parentElement.clientHeight; } else if (b && b.clientWidth) { d.w = b.clientWidth; d.h = b.clientHeight; } return d; }, 
add: },getViewportDimensions:function(){ var d=new MochiKit.DOM.Dimensions(); var w=MochiKit.DOM._window; var b=MochiKit.DOM._document.body; if(w.innerWidth){ d.w=w.innerWidth; d.h=w.innerHeight; }else{ if(b.parentElement.clientWidth){ d.w=b.parentElement.clientWidth; d.h=b.parentElement.clientHeight; }else{ if(b&&b.clientWidth){ d.w=b.clientWidth; d.h=b.clientHeight; } } } return d; },elementDimensions:function(elem){ 
context:     getViewportDimensions: function() {        var d = new MochiKit.DOM.Dimensions();        var w = MochiKit.DOM._window;        var b = MochiKit.DOM._document.body;        if (w.innerWidth) {            d.w = w.innerWidth;            d.h = w.innerHeight;        } else if (b.parentElement.clientWidth) {            d.w = b.parentElement.clientWidth;            d.h = b.parentElement.clientHeight;        } else if (b && b.clientWidth) {            d.w = b.clientWidth;            d.h = b.clientHeight;        }        return d;    },
meta: 8607	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8607/ad067b3f5d648d6df90ec6fb2b79f0027612a307/MochiKit.js/buggy/trunk/lib/MochiKit.js