function valueFormatter(d,b){d=d.toString();if(d.length<=3){return d}var a=d.length%3;var c=(a>0?(d.substring(0,a)):"");for(i=0;i<Math.floor(d.length/3);i++){if((a==0)&&(i==0)){c+=d.substring(a+3*i,a+3*i+3)}else{c+="."+d.substring(a+3*i,a+3*i+3)}}return c}function dateFormatter(f,c){var b=new Date(f);var e=b.getUTCDate();if(e.toString().length==1){e="0"+e}var a=b.getUTCMonth()+1;if(a.toString().length==1){a="0"+a}return e+"."+a+"."+b.getUTCFullYear()}function showTooltip(a,c,b){$('<div id="tooltip">'+b+"</div>").css({top:c+5,left:a+5,opacity:0.8}).appendTo("body").fadeIn(200)}function plotDatehover(c,e,b){if(b){if(previousPoint!=b.datapoint){previousPoint=b.datapoint;$("#tooltip").remove();var a=dateFormatter(b.datapoint[0]);var d=valueFormatter(b.datapoint[1]);showTooltip(b.pageX,b.pageY,$.i18n._(" %s at %s: %s",[b.series.label,a,d]))}}else{$("#tooltip").remove();previousPoint=null}}function plotGamedayhover(b,c,a){if(a&&a.datapoint[0]!=0){if(previousPoint!=a.datapoint){previousPoint=a.datapoint;$("#tooltip").remove();showTooltip(a.pageX,a.pageY,$.i18n._(" %s at matchday %s: %s points",[a.series.label,a.datapoint[0],a.datapoint[1]]))}}else{$("#tooltip").remove();previousPoint=null}}var previousPoint=null;function initCharts(b,a){b.bind("plothover",a)}var chartOptions_100d={lines:{show:true},colors:["#fffff","#0000ff"],grid:{color:"#ffffff",backgroundColor:"#55703E",clickable:true,hoverable:true,borderWidth:1},legend:{show:true,backgroundColor:"#226622",backgroundOpacity:0.6},xaxis:{mode:"time",timeformat:"%d.%m.%y",tickSize:[14,"day"],tickFormatter:dateFormatter},yaxis:{tickFormatter:valueFormatter}};var chartOptions_365d={lines:{show:true},colors:["#fffff","#0000ff"],grid:{color:"#ffffff",backgroundColor:"#55703E",clickable:true,hoverable:true,borderWidth:1},legend:{show:true,backgroundColor:"#226622",backgroundOpacity:0.6},xaxis:{mode:"time",timeformat:"%d.%m.%y",tickSize:[2,"month"],tickFormatter:dateFormatter},yaxis:{tickFormatter:valueFormatter}};var clubchartOptions={lines:{show:true},colors:["#fffff","#0000ff"],grid:{color:"#ffffff",backgroundColor:"#55703E",clickable:true,hoverable:true,borderWidth:1},legend:{show:true,backgroundColor:"#226622",backgroundOpacity:0.6},xaxis:{mode:"time",timeformat:"%d.%m.%y",tickSize:[7,"day"],tickFormatter:dateFormatter},yaxis:{tickFormatter:valueFormatter}};var clubcompchartOptions={lines:{show:true},colors:["#fffff","#0000ff","#ff0000","#00ff00","#00ffff","#ffff00","#ff00ff","#ff8000","#ff0080","#0080ff","#8000ff","#80ff00","#00ff80","#808080","#aaaaaa","#ffaaaa","#aaaaff","#aaffaa"],grid:{color:"#ffffff",backgroundColor:"#55703E",clickable:true,hoverable:true,borderWidth:1},legend:{show:true,backgroundColor:"#226622",backgroundOpacity:0.6,container:$("#legendDiv")},xaxis:{mode:"time",timeformat:"%d.%m.%y",tickSize:[14,"day"],tickFormatter:dateFormatter},yaxis:{tickFormatter:valueFormatter}};var clubpointschartOptions={lines:{show:true},colors:["#fffff","#0000ff","#ff0000","#00ff00","#00ffff","#ffff00","#ff00ff","#ff8000","#ff0080","#0080ff","#8000ff","#80ff00","#00ff80","#808080","#aaaaaa","#ffaaaa","#aaaaff","#aaffaa"],grid:{color:"#ffffff",backgroundColor:"#55703E",clickable:true,hoverable:true,borderWidth:1},legend:{show:true,backgroundColor:"#226622",backgroundOpacity:0.6,container:$("#legendDiv")},xaxis:{tickSize:4}};