function CFLerr() {
	return true;
}

var htmlEscape = (function(){
	var map = {"<":"&lt;", ">":"&gt;", "&":"&amp;", "'":"&#39;", "\"":"&quot;", " ":"&nbsp;"};
	var replaceStr = function(s){ return map[s]; };
	return function(str) { return str.replace(/<|>|&|'|"|\s/g, replaceStr); };
})();

var CFLwidth = 335;
var CFLheight = 295;
var CFLswfuri = 'http://i.yimg.jp/images/ks/swf/graph_110119.swf';
var CFLfpver = 9;

var CFLver =0;
var CFLiewin = navigator.userAgent.indexOf('Win') && (document.all);
var CFLflag = false;
var CFLvarflag = false;

var CFLURL = htmlEscape(document.URL);
var hashes = CFLURL.split('#');
var CFLbaseURL = hashes[0];

var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;

function makeFlash(){

	if (plugin) {
		var desc = plugin.description;
		CFLver = eval(desc.substring(desc.indexOf("Flash")+6, desc.indexOf("Flash")+9));
		CFLflag = CFLver >= CFLfpver;
	
	} else if (CFLiewin) {
		document.write('<script language="VBScript"\> \n');
		document.write('on error resume next \n');
		document.write('CFLflag = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & CFLfpver )))\n');
		
	document.write('Function VBGetSwfVer(i) \n');
				document.write('Dim swControl , swVersion \n');
				document.write('swVersion=0 \n');
				document.write('set swControl=CreateObject("ShockwaveFlash.ShockwaveFlash."+CStr(i)) \n');
				document.write('if(IsObject(swControl))then \n');
				document.write('swVersion = swControl.GetVariable("$version") \n');
				document.write('end if \n');
				document.write('VBGetSwfVer=swVersion \n');
	document.write('End Function \n');
	
	document.write('</script\> \n');
		
	
	}
	if ( CFLflag ) {
		document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"');
		document.write(' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0"');
		document.write(' id="aexternal" width="'+ CFLwidth +'" height="'+ CFLheight +'">');
		
		document.write('<param name="movie" value="' + CFLswfuri + '">');
		
		document.write('<param name="flashVars" value="' + CFLVars + '&hurl=' + CFLbaseURL +'">');
		document.write('<param name="wmode" value="opaque">');
		document.write('<param name="loop" value="true">');
		document.write('<param name="quality" value="high">');
		document.write('<param name="allowScriptAccess" value="always">');
		
		document.write('<embed src="' + CFLswfuri + '" loop="true" wmode="opaque" flashVars="' + CFLVars + '&hurl=' + CFLbaseURL + '" allowScriptAccess="always"');

		document.write(' quality="high" swLiveConnect="false"');
		document.write(' width="'+ CFLwidth +'" height="'+ CFLheight +'"');
		document.write(' type="application/x-shockwave-flash"');
		document.write(' pluginspage="http://www.macromedia.com/go/getflashplayer">');
		document.write('</embed>');
		document.write('</object>');
	} else {
		

		
		document.write(CFLaltHTML);
	}

}


