var currentScript = 
	(function(e){return e.nodeName.toLowerCase() == 'script' ?
		e : arguments.callee(e.lastChild)})(document);

/* flash plug-in check ----------------------- */

var MM_FlashCanPlay = false;
var MM_contentVersion = 8;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
	var words = navigator.plugins["Shockwave Flash"].description.split(" ");
	for (var i = 0; i < words.length; ++i)
	{
		if (isNaN(parseInt(words[i])))
				continue;
		var MM_PluginVersion = words[i];
	}
	MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.appVersion.indexOf("Win") != -1)) {
	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
	document.write('<\/SCR' + 'IPT\> \n');
}


function writeSWF(pSWF, pIMG, pWidth, pHeight, pFlashVars, pWmode) {
	if (MM_FlashCanPlay) {
		if (!pWmode) pWmode = "window";
		var toWrite = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.adobe.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="swfWidth" height="swfHeight"><param name="allowScriptAccess" value="always" /><param name="wmode" value="swfWmode" /><param name="movie" value="swfName" /><param name="quality" value="high" /><param name="FlashVars" value="FlashVarsValue"><embed src="swfName" width="swfWidth" height="swfHeight" quality="high" wmode="swfWmode" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" flashvars="FlashVarsValue" /></object>';
		toWrite = toWrite.replace("swfName", pSWF);
		toWrite = toWrite.replace("swfName", pSWF);
		toWrite = toWrite.replace("swfWidth", pWidth);
		toWrite = toWrite.replace("swfWidth", pWidth);
		toWrite = toWrite.replace("swfHeight", pHeight);
		toWrite = toWrite.replace("swfHeight", pHeight);
		toWrite = toWrite.replace("FlashVarsValue", pFlashVars);
		toWrite = toWrite.replace("FlashVarsValue", pFlashVars);
		toWrite = toWrite.replace("swfWmode", pWmode);
		toWrite = toWrite.replace("swfWmode", pWmode);
	} else {
		//alert(pIMG);
		if (pIMG == "") return;
		var toWrite = '<img src="imgPath" width="imgWidth" height="imgHeight" alt="Flashが再生できません。" border=0>';
		toWrite = toWrite.replace("imgPath", pIMG);
		toWrite = toWrite.replace("imgWidth", pWidth);
		toWrite = toWrite.replace("imgWidth", pWidth);
	}
	//alert(toWrite);
	document.write(toWrite);
};
fv = currentScript.getAttribute("p");

writeSWF("http://www.suntory.co.jp/softdrink/natchan/blogparts09/blogparts09.swf","",177,280,"p=" + fv);




