// "cereals" table function in kellogg-gdas.html

function showChart(idNumber) {
	if (document.getElementById) {	
		for (i = 1; i <= 62; i++) {
			if ('gda' + idNumber == 'gda' + i) {
				document.getElementById('gda' + i).style.color = '#000000';
				document.getElementById('gda' + i).style.textDecoration = 'none';
				if (document.images) {
					document.images['gdachart'].src = 'charts/chart' + idNumber + '.gif';
				}
				document.location.href = '#chart';
			}
			else {
				document.getElementById('gda' + i).style.color = '#006699';
				document.getElementById('gda' + i).style.textDecoration = 'underline';
			}
		}
	}
}

function showChart1() {
	document.getElementById('gda1').style.color = '#000000';
	document.getElementById('gda1').style.textDecoration = 'none';
	if (document.images) {
		document.images['gdachart'].src = 'charts/chart1.gif';
	}
}
