var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
var NecessaryVersion = 6;

	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 YourVersion = words[i];
		}
		var YouCanPlay = YourVersion >= NecessaryVersion;
	}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('YouCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & NecessaryVersion)))\n');
		document.write('</SCR' + 'IPT\> \n');
	}

function MailWin(pc) {
var PGMCODE = pc;
		
	Width = 550;
	Height = 520;
	/* Url = "https://wwws.fujitv.co.jp/safe/red_mpl/response/res_form.cgi?bancode=" + PGMCODE + "&flash=" + (Fiash = YouCanPlay ? 1 : 0) + "&type=resprg"; */
	Url = "https://wwws.fujitv.co.jp/safe/red_mpl/response/res_form.cgi?bancode=" + PGMCODE + "&flash=" + (Fiash = YouCanPlay ? 1 : 0) + "&type=resprg";
	WName = "SendM";
	if(document.getElementById){
		ScreenW = "\,left=" + ((screen.width / 2) - (Width / 2));
		ScreenH = "\,top=" + ((screen.height / 2) - (Height / 2));
	}else{
		ScreenW = "";
		ScreenH = "";
	}
	OptionW = "location=no,menubar=no,resizable=yes,scrollbars=yes,status=yes,toolbar=no,fullscreen=no,directories=no,width=" + Width + ",height=" + Height + ScreenH + ScreenW;
	window.open(Url,WName,OptionW);
}

function MailWin_NoPGM(tc) {
var TYPE = tc;
		
	Width = 550;
	Height = 520;
	/* Url = "https://wwws.fujitv.co.jp/safe/red_mpl/response/res_form.cgi?type=" + TYPE + "&flash=" + (Fiash = YouCanPlay ? 1 : 0); */
	Url = "https://wwws.fujitv.co.jp/safe/red_mpl/response/res_form.cgi?type=" + TYPE + "&flash=" + (Fiash = YouCanPlay ? 1 : 0);
	WName = "SendM";
	if(document.getElementById){
		ScreenW = "\,left=" + ((screen.width / 2) - (Width / 2));
		ScreenH = "\,top=" + ((screen.height / 2) - (Height / 2));
	}else{
		ScreenW = "";
		ScreenH = "";
	}
	OptionW = "location=no,menubar=no,resizable=yes,scrollbars=yes,status=yes,toolbar=no,fullscreen=no,directories=no,width=" + Width + ",height=" + Height + ScreenH + ScreenW;
	window.open(Url,WName,OptionW);
}

var ScreenWWON,ScreenHWON,OptionWWON;

function NewwinWON(UrlWON){
	WidthWON = 500;
	HeightWON = 367;
	UrlWON = "https://wwws.fujitv.co.jp/safe/msvcplus/wan_load.html?" + arguments[0];
	if(document.getElementById){
		ScreenWWON = (screen.width / 2) - (WidthWON / 2);
		ScreenHWON = (screen.height / 2) - (HeightWON / 2);
	}else{
		ScreenWWON = 0;
		ScreenHWON = 0;
	}
	OptionWWON = "location=no,menubar=no,resizable=yes,scrollbars=no,status=yes,toolbar=no,fullscreen=no,directories=no,width=" + WidthWON + ",height=" + HeightWON + ",top=" + ScreenHWON + ",left=" + ScreenWWON;
	window.open(UrlWON,"WON",OptionWWON);
}

