var tdata;
var graftitle = 'Hodnota podílového listu';

Highcharts.setOptions({
	lang: {
		months: ['Leden', 'Únor', 'Březen', 'Duben', 'Květen', 'Červen', 
			'Červenec', 'Srpen', 'Září', 'Říjen', 'Listopad', 'Prosinec'],
		weekdays: ['Neděle', 'Pondělí', 'Úterý', 'Středa', 'Čtvrtek', 'Pátek', 'Sobota'],
		decimalPoint: ',',
		rangeSelectorZoom: 'Období',
		rangeSelectorFrom: 'Od',
		rangeSelectorTo: 'do',
		loading: 'Probíhá aktualizace grafu...'
	},
	chart: {
		renderTo: 'grafcontainer',
		backgroundColor: '#fdfdfd',
		style: {
			fontFamily: 'Arial, Helvetica, sans-serif'
		}
	},
	navigator : {
		outlineColor: '#B1B1B1'
	},
	rangeSelector: {
		selected: 3,
		buttonTheme: {
			labelStyle: {
				"class": 'rangelabel'
			},
			width: 50,
			height: 24,
			fill: { 
				linearGradient: [0, 0, 0, 1],
				stops: [
					[0, '#FFF'],
					[1, '#E1EBF6']
				]
			},
			stroke: '#D5E4F2',
			style: {
				fontSize: '14px',
				color: '#607999'
			},
			states: {
				hover: {
					fill: { 
						linearGradient: [0, 0, 0, 1],
						stops: [
							[0, '#F8FAFB'],
							[1, '#EEF2F8']
						]
					},
					stroke: '#CAD7E7',
					style: {
						fontSize: '14px',
						color: '#607999'
					}
				},
				select: {
					fill: { 
						linearGradient: [0, 0, 0, 1],
						stops: [
							[0, '#C2D4EB'],
							[1, '#DEEBFB']
						]
					},
					stroke: '#CAD7E7',
					style: {
						fontSize: '14px',
						color: '#607999'
					}
				}
			}
		},
		buttons: [{
			type: 'month',
			count: 1,
			text: '1 měs.'
		}, {
			type: 'month',
			count: 3,
			text: '3 měs.'
		}, {
			type: 'month',
			count: 6,
			text: '6 měs.'
		}, {
			type: 'year',
			count: 1,
			text: '1 rok'
		}, {
			type: 'year',
			count: 3,
			text: '3 roky'
		}, {
			type: 'year',
			count: 5,
			text: '5 let'
		}]
	},
	xAxis: {
		dateTimeLabelFormats: {
			second: '%H:%M:%S',
			minute: '%H:%M',
			hour: '%H:%M',
			day: '%d.%m.',
			week: '%d.%m.',
			month: '%m/%y',
			year: '%Y'
		},
		maxZoom: 14 * 24 * 3600000 // fourteen days
	},
	colors: ['#607999','#a5c02a','#f89112']
});
