var pluginVer = 0;
var plugin = ((navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0);
if (plugin) pluginVer = parseInt(plugin.description.substring(plugin.description.indexOf(".") -1));

function callswf(Obj) {
	var verEmbed = '<embed src="' + Obj.file + '" quality="' + Obj.quality + '" bgcolor=' + Obj.bgcolor + ' width=' + Obj.width + ' height=' + Obj.height + ' type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash?Lang=Japanese&P5_Language=Japanese" name="' + Obj.id + '"><\/embed>';
	document.open();
	if ((navigator.appVersion.indexOf('Mac',0) != -1 && navigator.appVersion.indexOf('MSIE 4.',0) != -1 ) || (navigator.appVersion.indexOf('Mac',0) != -1 && navigator.appVersion.indexOf('MSIE 3.',0) != -1 )) {
		if (plugin && pluginVer >= Obj.version) {
			document.write(verEmbed);
		} else {
			document.write(Obj.imgMap) + '\n';
		}
	} else{
		document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" id=' + Obj.id + ' width=' + Obj.width + ' height=' + Obj.height + ' name="' + Obj.id + '">' + '\n');
		document.write('<param name="movie" value="' + Obj.file + '">');
		document.write('<param name="quality" value="' + Obj.quality + '">');
		document.write('<param name="bgcolor" value="' + Obj.bgcolor + '">');
		//document.write('<param name="wmode" value="' + Obj.wmode + '">');
		document.write('<param name="menu" value="false">');
		document.write('<param name="loop" value="false">');
		if ((navigator.appVersion.indexOf('Win',0) != -1 && navigator.appName.indexOf("Microsoft Internet Explorer",0) != -1) && !(navigator.userAgent.indexOf("Opera",0) != -1)) {
			document.write(Obj.imgMap) + '\n';
		}
		if (plugin && pluginVer >= Obj.version) {
			document.write(verEmbed);
		} else {
			if (!(navigator.appVersion.indexOf('Win',0) != -1 && navigator.appName.indexOf("Microsoft Internet Explorer",0) != -1)) {
				document.write(Obj.imgMap) + '\n';
			}
		}
		document.write('<\/object>');
	}
	document.close();
}