/* Highcharts JS v2.3.3 (2012-10-04) MooTools adapter (c) 2010-2011 Torstein Hønsi License: www.highcharts.com/license */ !function(){var t=window,e=document,n=t.MooTools.version.substring(0,3),r="1.2"===n||"1.1"===n,a=r||"1.3"===n,o=t.$extend||function(){return Object.append.apply(Object,arguments)};t.HighchartsAdapter={init:function(t){var e=Fx.prototype,n=e.start,r=Fx.Morph.prototype,a=r.compute;e.start=function(e){var r=this.element;return e.d&&(this.paths=t.init(r,r.d,this.toD)),n.apply(this,arguments),this},r.compute=function(e,n,r){var o=this.paths;return o?(this.element.attr("d",t.step(o[0],o[1],r,this.toD)),void 0):a.apply(this,arguments)}},adapterRun:function(t,e){return"width"===e||"height"===e?parseInt($(t).getStyle(e),10):void 0},getScript:function(t,n){var r=e.getElementsByTagName("head")[0],a=e.createElement("script");a.type="text/javascript",a.src=t,a.onload=n,r.appendChild(a)},animate:function(e,n,r){var a=e.attr,i=r&&r.complete;a&&!e.setStyle&&(e.getStyle=e.attr,e.setStyle=function(){var t=arguments;e.attr.call(e,t[0],t[1][0])},e.$family=function(){return!0}),t.HighchartsAdapter.stop(e),r=new Fx.Morph(a?e:$(e),o({transition:Fx.Transitions.Quad.easeInOut},r)),a&&(r.element=e),n.d&&(r.toD=n.d),i&&r.addEvent("complete",i),r.start(n),e.fx=r},each:function(t,e){return r?$each(t,e):Array.each(t,e)},map:function(t,e){return t.map(e)},grep:function(t,e){return t.filter(e)},inArray:function(t,e,n){return e.indexOf(t,n)},merge:function(){var t=arguments,e=[{}],n=t.length;if(r)t=$merge.apply(null,t);else{for(;n--;)"boolean"!=typeof t[n]&&(e[n+1]=t[n]);t=Object.merge.apply(Object,e)}return t},offset:function(t){return t=$(t).getOffsets(),{left:t.x,top:t.y}},extendWithEvents:function(t){t.addEvent||(t.nodeName?$(t):o(t,new Events))},addEvent:function(e,n,r){"string"==typeof n&&("unload"===n&&(n="beforeunload"),t.HighchartsAdapter.extendWithEvents(e),e.addEvent(n,r))},removeEvent:function(e,n,r){"string"!=typeof e&&(t.HighchartsAdapter.extendWithEvents(e),n?("unload"===n&&(n="beforeunload"),r?e.removeEvent(n,r):e.removeEvents&&e.removeEvents(n)):e.removeEvents())},fireEvent:function(t,e,n,r){e={type:e,target:t},e=a?new Event(e):new DOMEvent(e),e=o(e,n),e.preventDefault=function(){r=null},t.fireEvent&&t.fireEvent(e.type,e),r&&r(e)},washMouseEvent:function(t){return t.event||t},stop:function(t){t.fx&&t.fx.cancel()}}}();