function each([ 'Height', 'Width'], function(i, name){$.fn[ 'inner'+name]=function(){if(!this[0]) return;var torl=name== 'Height'? 'Top': 'Left', borr=name== 'Height'? 'Bottom': 'Right';return this.is(':visible')?this[0]['client'+name]:num(this, name.toLowerCase())+num(this, 'padding'+torl)+num(this, 'padding'+borr);};$.fn[ 'outer'+name]=function(options){if(!this[0]) return;var torl=name== 'Height'? 'Top': 'Left', borr=name== 'Height'? 'Bottom': 'Right';options=$.extend({margin:false}, options||{});var val=this.is(':visible')?this[0]['offset'+name]:+num(this, 'border'+torl+ 'Width')+num(this, 'border'+borr+ 'Width')+num(this, 'padding'+torl)+num(this, 'padding'+borr);return val+(options.margin?(num(this, 'margin'+torl)+num(this, 'margin'+borr)):0);};})