the outer height in pixels of an object, including borders, padding, and margin dom.getOuterHeight = function(o) { if (defined(o.offsetHeight)) { return o.offsetHeight; } return null; }; // Resolve an item, an array of items, or an object of items dom.resolve = function() { var results = new Array(); var i,j,o; for (var i=0; i>>=4; } while(hex.length<6) { hex='0'+hex; } return "#" + hex; }; // Convert hyphen style names like border-width to camel case like borderWidth css.hyphen2camel = function(property) { if (!defined(property) || property==null) { return null; } if (property.indexOf("-")<0) { return property; } var str = ""; var c = null; var l = property.length; for (var i=0; i