(function(c){c.dimensions={version:'@VERSION'};c.each(['Height','Width'],function(g,d){c.fn['inner'+d]=function(){if(!this[0])return;var a=d=='Height'?'Top':'Left',f=d=='Height'?'Bottom':'Right';return e(this,d.toLowerCase())+e(this,'padding'+a)+e(this,'padding'+f)};c.fn['outer'+d]=function(a){if(!this[0])return;var f=d=='Height'?'Top':'Left',b=d=='Height'?'Bottom':'Right';a=c.extend({margin:false},a||{});return e(this,d.toLowerCase())+e(this,'border'+f+'Width')+e(this,'border'+b+'Width')+e(this,'padding'+f)+e(this,'padding'+b)+(a.margin?(e(this,'margin'+f)+e(this,'margin'+b)):0)}});c.each(['Left','Top'],function(f,b){c.fn['scroll'+b]=function(a){if(!this[0])return;return a!=undefined?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=0,f=0,b=this[0],g,d,h,i;if(b){h=this.offsetParent();g=this.offset();d=h.offset();g.top-=e(b,'marginTop');g.left-=e(b,'marginLeft');d.top+=e(h,'borderTopWidth');d.left+=e(h,'borderLeftWidth');i={top:g.top-d.top,left:g.left-d.left}}return i},offsetParent:function(){var a=this[0].offsetParent;while(a&&(!/^body|html$/i.test(a.tagName)&&c.css(a,'position')=='static'))a=a.offsetParent;return c(a)}});function e(a,f){return parseInt(c.css(a.jquery?a[0]:a,f))||0}})(jQuery);