;(function(){var ResizeSensor=function(element,callback){function EventQueue(){this.q=[];add=function(ev){push(ev);};var i,j;call=function(){for(i=0,j=length;i

'+''+'
'+'
'+'
';appendchild(resizesensor);if(!{fixed:1,absolute:1}[getComputedStyle(element,'position')]){position='relative';} var expand=childnodes[0];var expandChild=childnodes[0];var shrink=childnodes[1];var shrinkChild=childnodes[0];var lastWidth,lastHeight;var reset=function(){width=offsetwidth+10+'px';height=offsetheight+10+'px';scrollleft=scrollwidth;scrolltop=scrollheight;scrollleft=scrollwidth;scrolltop=scrollheight;lastWidth=offsetwidth;lastHeight=offsetheight;};reset();var changed=function(){if(resizedattached){call();}};var addEvent=function(el,name,cb){if(attachevent){attachevent('on'+name,cb);}else{addeventlistener(name,cb);}};var onScroll=function(){if(offsetwidth!=lastWidth||offsetheight!=lastHeight){changed();} reset();};addEvent(expand,'scroll',onScroll);addEvent(shrink,'scroll',onScroll);} var elementType=call(element);var isCollectionTyped=('[object Array]'===elementType||('[object NodeList]'===elementType)||('[object HTMLCollection]'===elementType)||('undefined'!==typeof jQuery&&element instanceof jQuery)||('undefined'!==typeof Elements&&element instanceof Elements));if(isCollectionTyped){var i=0,j=length;for(;i