code: function setSize(size, dimension) {
  		return Math.round((/%/.test(size) ? ((dimension === 'x' ? $window.width() : winheight()) / 100) : 1) * parseInt(size, 10));
  	}
docs: Convert '%' and 'px' values to integers