/*
Highcharts JS v2.3.3 (2012-10-04)
Exporting module
(c) 2010-2011 Torstein Hønsi
License: www.highcharts.com/license
*/
!function(){function t(t){for(var e=t.length;e--;)"number"==typeof t[e]&&(t[e]=Math.round(t[e])-.5);return t}var e=Highcharts,o=e.Chart,n=e.addEvent,r=e.removeEvent,i=e.createElement,l=e.discardElement,a=e.css,s=e.merge,p=e.each,c=e.extend,d=Math.max,h=document,u=window,m=void 0!==h.documentElement.ontouchstart,g=e.getOptions();c(g.lang,{downloadPNG:"Download PNG image",downloadJPEG:"Download JPEG image",downloadPDF:"Download PDF document",downloadSVG:"Download SVG vector image",exportButtonTitle:"Export to raster or vector image",printButtonTitle:"Print the chart"}),g.navigation={menuStyle:{border:"1px solid #A0A0A0",background:"#FFFFFF"},menuItemStyle:{padding:"0 5px",background:"none",color:"#303030",fontSize:m?"14px":"11px"},menuItemHoverStyle:{background:"#4572A5",color:"#FFFFFF"},buttonOptions:{align:"right",backgroundColor:{linearGradient:[0,0,0,20],stops:[[.4,"#F7F7F7"],[.6,"#E3E3E3"]]},borderColor:"#B0B0B0",borderRadius:3,borderWidth:1,height:20,hoverBorderColor:"#909090",hoverSymbolFill:"#81A7CF",hoverSymbolStroke:"#4572A5",symbolFill:"#E0E0E0",symbolStroke:"#A0A0A0",symbolX:11.5,symbolY:10.5,verticalAlign:"top",width:24,y:10}},g.exporting={type:"image/png",url:"http://export.highcharts.com/",width:800,buttons:{exportButton:{symbol:"exportIcon",x:-10,symbolFill:"#A8BF77",hoverSymbolFill:"#768F3E",_id:"exportButton",_titleKey:"exportButtonTitle",menuItems:[{textKey:"downloadPNG",onclick:function(){this.exportChart()}},{textKey:"downloadJPEG",onclick:function(){this.exportChart({type:"image/jpeg"})}},{textKey:"downloadPDF",onclick:function(){this.exportChart({type:"application/pdf"})}},{textKey:"downloadSVG",onclick:function(){this.exportChart({type:"image/svg+xml"})}}]},printButton:{symbol:"printIcon",x:-36,symbolFill:"#B5C9DF",hoverSymbolFill:"#779ABF",_id:"printButton",_titleKey:"printButtonTitle",onclick:function(){this.print()}}}},c(o.prototype,{getSVG:function(t){var e,o,n,r=this,a=s(r.options,t);return h.createElementNS||(h.createElementNS=function(t,e){return h.createElement(e)}),t=i("div",null,{position:"absolute",top:"-9999em",width:r.chartWidth+"px",height:r.chartHeight+"px"},h.body),c(a.chart,{renderTo:t,forExport:!0}),a.exporting.enabled=!1,a.chart.plotBackgroundImage=null,a.series=[],p(r.series,function(t){n=s(t.options,{animation:!1,showCheckbox:!1,visible:t.visible}),n.isInternal||(n&&n.marker&&/^url\(/.test(n.marker.symbol)&&(n.marker.symbol="circle"),a.series.push(n))}),e=new Highcharts.Chart(a),p(["xAxis","yAxis"],function(t){p(r[t],function(o,n){var r=e[t][n],i=o.getExtremes(),l=i.userMin,i=i.userMax;(void 0!==l||void 0!==i)&&r.setExtremes(l,i,!0,!1)})}),o=e.container.innerHTML,a=null,e.destroy(),l(t),o=o.replace(/zIndex="[^"]+"/g,"").replace(/isShadow="[^"]+"/g,"").replace(/symbolName="[^"]+"/g,"").replace(/jQuery[0-9]+="[^"]+"/g,"").replace(/isTracker="[^"]+"/g,"").replace(/url\([^#]+#/g,"url(#").replace(/").replace(/ /g," ").replace(//g,"").replace(/
/g,'xlink:href="$1"/>').replace(/id=([^" >]+)/g,'id="$1"').replace(/class=([^" ]+)/g,'class="$1"').replace(/ transform /g," ").replace(/:(path|rect)/g,"$1").replace(/style="([^"]+)"/g,function(t){return t.toLowerCase()}),o=o.replace(/(url\(#highcharts-[0-9]+)"/g,"$1").replace(/"/g,"'"),2===o.match(/ xmlns="/g).length&&(o=o.replace(/xmlns="[^"]+"/,"")),o},exportChart:function(t,e){var o,n=this.getSVG(s(this.options.exporting.chartOptions,e)),t=s(this.options.exporting,t);o=i("form",{method:"post",action:t.url,enctype:"multipart/form-data"},{display:"none"},h.body),p(["filename","type","width","svg"],function(e){i("input",{type:"hidden",name:e,value:{filename:t.filename||"chart",type:t.type,width:t.width,svg:n}[e]},null,o)}),o.submit(),l(o)},print:function(){var t=this,e=t.container,o=[],n=e.parentNode,r=h.body,i=r.childNodes;t.isPrinting||(t.isPrinting=!0,p(i,function(t,e){1===t.nodeType&&(o[e]=t.style.display,t.style.display="none")}),r.appendChild(e),u.print(),setTimeout(function(){n.appendChild(e),p(i,function(t,e){1===t.nodeType&&(t.style.display=o[e])}),t.isPrinting=!1},1e3))},contextMenu:function(t,e,o,r,l,s){var h,u,g=this,x=g.options.navigation,y=x.menuItemStyle,b=g.chartWidth,f=g.chartHeight,v="cache-"+t,k=g[v],w=d(l,s);k||(g[v]=k=i("div",{className:"highcharts-"+t},{position:"absolute",zIndex:1e3,padding:w+"px"},g.container),h=i("div",null,c({MozBoxShadow:"3px 3px 10px #888",WebkitBoxShadow:"3px 3px 10px #888",boxShadow:"3px 3px 10px #888"},x.menuStyle),k),u=function(){a(k,{display:"none"})},n(k,"mouseleave",u),p(e,function(t){if(t){var e=i("div",{onmouseover:function(){a(this,x.menuItemHoverStyle)},onmouseout:function(){a(this,y)},innerHTML:t.text||g.options.lang[t.textKey]},c({cursor:"pointer"},y),h);e[m?"ontouchstart":"onclick"]=function(){u(),t.onclick.apply(g,arguments)},g.exportDivElements.push(e)}}),g.exportDivElements.push(h,k),g.exportMenuWidth=k.offsetWidth,g.exportMenuHeight=k.offsetHeight),t={display:"block"},o+g.exportMenuWidth>b?t.right=b-o-l-w+"px":t.left=o-w+"px",r+s+g.exportMenuHeight>f?t.bottom=f-r-w+"px":t.top=r+s-w+"px",a(k,t)},addButton:function(t){function e(){n.attr(g),o.attr(m)}var o,n,r,i=this,l=i.renderer,a=s(i.options.navigation.buttonOptions,t),p=a.onclick,d=a.menuItems,h=a.width,u=a.height,t=a.borderWidth,m={stroke:a.borderColor},g={stroke:a.symbolStroke,fill:a.symbolFill},x=a.symbolSize||12;i.exportDivElements||(i.exportDivElements=[],i.exportSVGElements=[]),a.enabled!==!1&&(o=l.rect(0,0,h,u,a.borderRadius,t).align(a,!0).attr(c({fill:a.backgroundColor,"stroke-width":t,zIndex:19},m)).add(),r=l.rect(0,0,h,u,0).align(a).attr({id:a._id,fill:"rgba(255, 255, 255, 0.001)",title:i.options.lang[a._titleKey],zIndex:21}).css({cursor:"pointer"}).on("mouseover",function(){n.attr({stroke:a.hoverSymbolStroke,fill:a.hoverSymbolFill}),o.attr({stroke:a.hoverBorderColor})}).on("mouseout",e).on("click",e).add(),d&&(p=function(){e();var t=r.getBBox();i.contextMenu("export-menu",d,t.x,t.y,h,u)}),r.on("click",function(){p.apply(i,arguments)}),n=l.symbol(a.symbol,a.symbolX-x/2,a.symbolY-x/2,x,x).align(a,!0).attr(c(g,{"stroke-width":a.symbolStrokeWidth||1,zIndex:20})).add(),i.exportSVGElements.push(o,r,n))},destroyExport:function(){var t,e;for(t=0;t