var utils=function(){function toArray(a){var c,b=[];if(isHighVersion)b=[].slice.call(a);else for(c=0;c=3&&(c=setCss),2===b&&"object"==typeof a[1]&&(c=setGroupCss),c.apply(null,a)}function offset(a){for(var b=a.offsetLeft,c=a.offsetTop,d=a.offsetParent;d&&d!==document.body;)/MSIE 8/i.test(navigator.userAgent)||(b+=d.clientLeft,c+=d.clientTop),b+=d.offsetLeft,c+=d.offsetTop,d=d.offsetParent;return{left:b,top:c}}function win(a,b){return"undefined"!=typeof b?(document.documentElement[a]=b,document.body[a]=b,void 0):document.documentElement[a]||document.body[a]}function prev(a){if(isHighVersion)return a.previousElementSibling;for(var b=a.previousSibling;b&&1!==b.nodeType;)b=b.previousSibling;return b}function next(a){if(isHighVersion)return a.nextElementSibling;for(var b=a.nextSibling;b&&1!==b.nodeType;)b=b.nextSibling;return b}function prevAll(a){for(var b=[],c=a.previousSibling;c;)1===c.nodeType&&b.unshift(c),c=c.previousSibling;return b}function nextAll(a){for(var b=[],c=a.nextSibling;c;)1===c.nodeType&&b.push(c),c=c.nextSibling;return b}function siblings(a){return prevAll(a).concat(nextAll(a))}function index(a){return prevAll(a).length}function firstChild(a){if(isHighVersion)return a.firstElementChild;for(var b=a.firstChild;b&&1!==b.nodeType;)b=b.nextSibling;return b}function lastChild(a){if(isHighVersion)return a.lastElementChild;for(var b=a.lastChild;b&&1!==b.nodeType;)b=b.previousSibling;return b}function children(a,b){var e,f,c=[],d=a.childNodes;for(e=0;e