var $ = function(id) { return "string" == typeof id ? document.getElementById(id) : id; }; var Extend = function(destination, source) { for (var property in source) { destination[property] = source[property]; } return destination; } var CurrentStyle = function(element) { return element.currentStyle || document.defaultView.getComputedStyle(element, null); }