(function(c){function d(a,b){return parseInt(c.css(a.jquery?a[0]:a,b))||0}c.dimensions={version:"@VERSION"};c.each(["Height","Width"],function(a,b){c.fn["inner"+b]=function(){if(this[0]){var a=b=="Height"?"Top":"Left",c=b=="Height"?"Bottom":"Right";return d(this,b.toLowerCase())+d(this,"padding"+a)+d(this,"padding"+c)}};c.fn["outer"+b]=function(a){if(this[0]){var e=b=="Height"?"Top":"Left",f=b=="Height"?"Bottom":"Right",a=c.extend({margin:!1},a||{});return d(this,b.toLowerCase())+d(this,"border"+
e+"Width")+d(this,"border"+f+"Width")+d(this,"padding"+e)+d(this,"padding"+f)+(a.margin?d(this,"margin"+e)+d(this,"margin"+f):0)}}});c.each(["Left","Top"],function(a,b){c.fn["scroll"+b]=function(a){return!this[0]?void 0:a!=void 0?this.each(function(){this==window||this==document?window.scrollTo(b=="Left"?a:c(window).scrollLeft(),b=="Top"?a:c(window).scrollTop()):this["scroll"+b]=a}):this[0]==window||this[0]==document?self[b=="Left"?"pageXOffset":"pageYOffset"]||c.boxModel&&document.documentElement["scroll"+
b]||document.body["scroll"+b]:this[0]["scroll"+b]}});c.fn.extend({position:function(){var a=this[0],b,c,e;a&&(e=this.offsetParent(),b=this.offset(),c=e.offset(),b.top-=d(a,"marginTop"),b.left-=d(a,"marginLeft"),c.top+=d(e,"borderTopWidth"),c.left+=d(e,"borderLeftWidth"),b={top:b.top-c.top,left:b.left-c.left});return b},offsetParent:function(){for(var a=this[0].offsetParent;a&&!/^body|html$/i.test(a.tagName)&&c.css(a,"position")=="static";)a=a.offsetParent;return c(a)}})})(jQuery);

