function showFlash(exe_id,u_code,p_code,size)
{
	var domain = "http://"+document.domain;
	var today = new Date();
	var time = today.getTime();
	//h_my_homeからのpass
	var scale = 1.0;
	if(size=="mini")//埋め込み表示
	{
		scale=400/800;
		if(PlugIn_Detection("Flash")=="true")
		{
			document.write('<embed src="./flash/Player/ADV.swf?' + time + '" FlashVars="U_ID='+u_code+'&P_ID='+p_code+'&EXE_ID='+exe_id+'&DOMAIN='+domain+'&SCALE='+scale+'" width="400" height="300" quality="high" bgcolor="#d4ddcd" type="application/x-shockwave-flash" allowFullScreen="true">');			
		}
		else
		{
			document.write("<table bgcolor='#FFFFFF' width='400' height='300' border='1'><tr><td><center>");
			document.write(" 再生するには Adobe Flash Player が必要です。");
			document.write(" <br>");
			document.write('<a href="http://www.adobe.com/go/getflashplayer" style="color:red">'+"Flash Playerの入手はこちらから"+'</a>');
			document.write("<\/center><\/td><\/tr><\/table>");
		}
	}
	else if(size=="mini2")//埋め込み表示
	{
		scale=0.415;
		if(PlugIn_Detection("Flash")=="true")
		{
			document.write('<embed src="./flash/Player/ADV.swf?' + time + '"FlashVars="U_ID='+u_code+'&P_ID='+p_code+'&EXE_ID='+exe_id+'&DOMAIN='+domain+'&SCALE='+scale+'" width="332" height="248" quality="high" bgcolor="#d4ddcd" type="application/x-shockwave-flash" allowFullScreen="true"></embed>');
		}
		else
		{
			document.write("<table bgcolor='#FFFFFF' width='332' height='248' border='1'><tr><td><center>");
			document.write(" 再生するには Adobe Flash Player が必要です。");
			document.write(" <br>");
			document.write('<a href="http://www.adobe.com/go/getflashplayer" style="color:red">'+"Flash Playerの入手はこちらから"+'</a>');
			document.write("<\/center><\/td><\/tr><\/table>");
		}
	}
	else//通常サイズで表示
	{
		if(PlugIn_Detection("Flash")=="true")
		{
			document.write('<embed src="ADV.swf?' + time + '" FlashVars="U_ID='+u_code+'&P_ID='+p_code+'&EXE_ID='+exe_id+'&DOMAIN='+domain+'&SCALE='+scale+'" width="800" height="600" quality="high" bgcolor="#d4ddcd"  type="application/x-shockwave-flash" allowFullScreen="true"></embed>');
		}
		else
		{
			document.write("<table bgcolor='#FFFFFF' width='800' height='600' border='1'><tr><td><center>");
			document.write(" 再生するには Adobe Flash Player が必要です。");
			document.write(" <br>");
			document.write('<a href="http://www.adobe.com/go/getflashplayer" style="color:red">'+"Flash Playerの入手はこちらから"+'</a>');
			document.write("<\/center><\/td><\/tr><\/table>");
		}
	}
}
function PlugIn_Detection(tartget)
{
//Flash
//Windows Media Player
//Java
//Shockwave
//RealPlayer
//QuickTime
//Acrobat Reader
//SVG Viewer
	var Re="false";
	var agt=navigator.userAgent.toLowerCase();
	var ie  = (agt.indexOf("msie") != -1);
	var ns  = (navigator.appName.indexOf("Netscape") != -1);
	var win = ((agt.indexOf("win")!=-1) || (agt.indexOf("32bit")!=-1));
	var mac = (agt.indexOf("mac")!=-1);

	if (ie && win) {	pluginlist = detectIE("Adobe.SVGCtl","SVG Viewer") + detectIE("SWCtl.SWCtl.1","Shockwave Director") + detectIE("ShockwaveFlash.ShockwaveFlash.1","Shockwave Flash") + detectIE("rmocx.RealPlayer G2 Control.1","RealPlayer") + detectIE("QuickTimeCheckObject.QuickTimeCheck.1","QuickTime") + detectIE("PDF.PdfCtrl.5","Acrobat Reader"); }
	if (ns || !win) {
			nse = ""; for (var i=0;i<navigator.mimeTypes.length;i++) nse += navigator.mimeTypes[i].type.toLowerCase();
			pluginlist = detectNS("image/svg-xml","SVG Viewer") + detectNS("application/x-director","Shockwave Director") + detectNS("application/x-shockwave-flash","Shockwave Flash") + detectNS("audio/x-pn-realaudio-plugin","RealPlayer") + detectNS("video/quicktime","QuickTime")  + detectNS("application/pdf","Acrobat Reader");
	}

	function detectIE(ClassID,name) { result = false; document.write('<SCRIPT LANGUAGE=VBScript>\n on error resume next \n result = IsObject(CreateObject("' + ClassID + '"))</SCRIPT>\n'); if (result) return name+','; else return ''; }
	function detectNS(ClassID,name) { n = ""; if (nse.indexOf(ClassID) != -1) if (navigator.mimeTypes[ClassID].enabledPlugin != null) n = name+","; return n; }

	pluginlist += navigator.javaEnabled() ? "Java," : "";
	if (pluginlist.length > 0) pluginlist = pluginlist.substring(0,pluginlist.length-1);

	//　Microsoft WindowsMediaPlayerのｲﾝｽﾄｰﾙ有無のﾁｪｯｸ（例）   SAMPLE USAGE- detect "Windows Media Player"
	if (pluginlist.indexOf(tartget)!=-1)
	//if (pluginlist.indexOf(tartget)==-1)
	{
		Re="true";
	}
	return Re;
}