/*
* Copyright Andrée Hansson, 2009
* Licensed under a MIT license
* http://www.opensource.org/licenses/mit-license.php
*
* Contact: peolanha _AT gmail _DOT com
*          http://andreehansson.se/
*/
(function(a) { a.fn.getCSS = function(c) { var f = function(o) { var l = document.defaultView, p = !l ? o.currentStyle : l.getComputedStyle(o, null), n = {}; for (var m in p) { if (typeof p[m] !== "function") { (+m) ? n[p[m]] = p.getPropertyValue(p[m]) : n[m] = p[m] } } return n }; var e = this.get(0), g = c ? a(c) : a("<" + e.tagName + "/>").html("&nbsp;").appendTo(this.parent()), j = f(g.get(0)), b = f(e), h = {}; for (var d in b) { if (j[d] != b[d] && d !== "cssText") { var k = d.replace(/\-(\w)/g, function(i, l) { return l.toUpperCase() }); h[k] = b[d] } } if (!c) { g.remove() } return h } })(jQuery);