/*! * clamp.js 0.5.1 * * copyright 2011-2013, joseph schmitt http://joe.sh * released under the wtfpl license * http://sam.zoy.org/wtfpl/ */ (function(){window.$clamp=function(c,d){function s(a,b){n.getcomputedstyle||(n.getcomputedstyle=function(a,b){this.el=a;this.getpropertyvalue=function(b){var c=/(\-([a-z]){1})/g;"float"==b&&(b="stylefloat");c.test(b)&&(b=b.replace(c,function(a,b,c){return c.touppercase()}));return a.currentstyle&&a.currentstyle[b]?a.currentstyle[b]:null};return this});return n.getcomputedstyle(a,null).getpropertyvalue(b)}function t(a){a=a||c.clientheight;var b=u(c);return math.max(math.floor(a/b),0)}function x(a){return u(c)* a}function u(a){var b=s(a,"line-height");"normal"==b&&(b=1.2*parseint(s(a,"font-size")));return parseint(b)}function l(a){if(a.lastchild.children&&0