var ChartNumber = 0;

function MedalyseChart(datafile, w, h)
{
    // orig
	/*if (!w) w = '100%';
	if (!h) h = '300px';
	document.write('ChartSnapshotViewer()');
	document.write('<div id="flashcontent'+ChartNumber+'" style="width:'+w+';height:'+h+'"></div>');
	
	var so = new SWFObject("/Assets/ChartSnapshotViewer.swf", "ChartSnapshotViewer"+(ChartNumber), "100%", "100%", "9.0.0");
	so.addVariable("DataSourceURL", datafile);
	so.write("flashcontent"+ChartNumber);
	ChartNumber++;*/

    // LI: méretezést javítani kellett
	if (!w) w = '100%';
	if (!h) h = '300px';
	//document.write('ChartSnapshotViewer()');
	document.write('<center>');     // LI
	document.write('<div id="flashcontent'+ChartNumber+'" style="width:100%;height:100%"></div>');
	document.write('</center>');    // LI
	
	var so = new SWFObject("/Assets/ChartSnapshotViewer.swf", "ChartSnapshotViewer"+(ChartNumber), w, h, "9.0.0");
	so.addVariable("DataSourceURL", datafile);
	so.write("flashcontent"+ChartNumber);
	ChartNumber++;
}

/*function FlashInfo()
{
	document.write('FlashInfo()');
	document.write('<div id="flashcontent'+ChartNumber+'" style="width:159px;height:91px"></div>');
	
	var so = new SWFObject("http://www.adobe.com/swf/software/flash/about/flashAbout_info_small.swf", "FlashInfo"+(ChartNumber), "100%", "100%", "9.0.0");
	so.write("flashcontent"+ChartNumber);
	ChartNumber++;
}

function FlashInfo2()
{
	document.write('FlashInfo2()');
	document.write('<div id="flashcontent'+ChartNumber+'" style="width:159px;height:91px"></div>');
	
	var so = new SWFObject("flashAbout_info_small.swf", "FlashInfo"+(ChartNumber), "100%", "100%", "9.0.0");
	so.write("flashcontent"+ChartNumber);
	ChartNumber++;
}*/