function selectFC(tab, xml, color, width, height, special)
{
	var so = new SWFObject("fc2.swf?dataUrl=fc2samples%2F" + xml + "%2Exml","graph",width?width:"455",height?height:"360","8","#" + (color?color:"FFFFFF"));
	so.addParam("scale", "noscale");
	so.addParam("salign", "lt");
	so.addParam("allowScriptAccess", "sameDomain");
	so.write("grapharea");
	
	var area = document.getElementById("grapharea");
	area.style.width = width?width:"455";
	area.style.height = height?height:"360";
	
	var i = 1;
	while (area = document.getElementById("tab" + i))
	{
		area.className = tab == i?("selected" + (special?"special":"")):"";
		i++;
	}
}
function showChart(path, color, width, height)
{
	window.open("sample.html?data=" + path + "&color=" + (color?color:"FFFFFF") + "&width=" + (width?width:"700") + 
		"&height=" + (height?height:"500"), "_blank", "menubar=no,scrollbars=no,resizable=no, width=" + (width?width:"700") + ", height=" + (height?height:"500"));
	return false;
}
function startYoutube()
{
	var o = document.getElementById("youtube");
	if (o) o.innerHTML = '<object width="425" height="350"> <param name="movie" value="http://www.youtube.com/v/cGfx8LBf2Jo&autoplay=1"> </param> <embed src="http://www.youtube.com/v/cGfx8LBf2Jo&autoplay=1" type="application/x-shockwave-flash" width="425" height="350"> </embed> </object>';
}