(function(l,h,e){function p(d){return null!==d&&typeof d===A}function q(){for(var d=arguments,b=d[0],a,c,f=1,i=d.length;fc))b.call(h,g,e),clearInterval(r[f])},a||1)}function u(d, b){for(var b=b.split(m),a=d.className,c,f=b.length,e;f--;)c=b[f],e=RegExp("(\\s|^)"+c+"(\\s|$)"),e.test(d.className)||(a+=m+c);d.className=a}function x(d,b){for(var b=b.split(m),a=d.className,c,e=b.length;e--;)c=b[e],c=RegExp("(\\s|^)"+c+"(\\s|$)","g"),a=a.replace(c,m);d.className=a.replace(/^\s+/,"").replace(/\s+$/,"")}function C(d){var b=e.createElement("style");y.insertBefore(b,y.firstChild);b.styleSheet?b.styleSheet.cssText=d:(d=e.createTextNode(d),b.appendChild(d))}function D(d){var b=e.createElement("c"); b.innerHTML=d;return b.firstChild}function s(){function d(a,b){function d(){o.insertBefore(a,o.firstChild);t(function(){return j.offsetWidth!==a.offsetWidth},function(a){a?(x(g,b+v),u(g,b+E)):(x(g,b+v),u(g,b+F));i&&i(b,a)},f,c.timeout)}2===n?d():t(function(){return 2===n},d,f)}var b=arguments,a,c=s.option(),f=c.pollDelay,i=c.callback,h=/\{f\}/g,m=/\{p\}/g,k,o=g,l=[],w=0,r=b.length;j||(j=D('
BESs
')); n||(g.insertBefore(j,g.firstChild),n=1,0===j.offsetWidth?t(function(){return e.body},function(){o=e.body;o.insertBefore(j,o.firstChild);n=2},f):n=2);for(;w