var MM_contentVersion = 6;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
//not win
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];
	}
	var MM_FlashPlay = MM_PluginVersion >= MM_contentVersion;
//win
} else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE") >= 0
	&& (navigator.appVersion.indexOf("Win") != -1)) {
	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //IE4.5 Mac
	document.write('on error resume next \n');
	document.write('MM_FlashPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
	document.write('</SCR' + 'IPT\> \n');
}


function swf_show(id, swf, width, height, img, alt, url, target, name, bgcolor, align, quality, allowScriptAccess){

/*
●id
広告管理で必要なため、一般のページでは必要ございません。
なので空を""渡してください。
●swf
swfファイルへのパス
●width
swfファイルの幅
●height
swfファイルの高さ
●img
flashプレイヤーがインストールされていないときの代替画像のパス
●alt
上記のaltタグ
●url
上記の場合のリンク先URL。
移動したくない場合は、記述しないでよいです。
また、"banner"という名前では入力しないでください。
広告表示の時に使用しております。
xxx_bannerだったら大丈夫です。
●target
リンク先のターゲットです。_topや_blankなどを入力。
入力しないでも大丈夫です。
●name
Flashのname属性です。
●bgcolor
背景色
●align
位置
●quality
クオリティー
●allowScriptAccess
読み込むドメインの許可

*/


	if (MM_FlashPlay) {
		if(target == ""){
			target = "_top";
		}

		if(name == ""){
			name="flash";
		}

		if(bgcolor == ""){
			bgcolor = "ffffff";
		}

		if(align == ""){
			align = "middle";
		}

		if(quality == ""){
			quality = "high";
		}

		if(allowScriptAccess == ""){
			allowScriptAccess = "sameDomain";
		}

		document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,65,0" width="'+width+'" height="'+height+'" id="'+name+'" align="'+align+'">');
		document.write('<param name="movie" value="'+swf+'">');
		document.write('<param name="quality" value="'+quality+'">');
		document.write('<param name="bgcolor" value="#'+bgcolor+'">');
		document.write('<param name="allowScriptAccess" value="'+allowScriptAccess+'">');
		document.write('<param name="wmode" value="transparent">');
		document.write('<embed src="'+swf+'" quality="'+quality+'" bgcolor="#'+bgcolor+'" width="' + width + '" height="'+height+'" name="'+name+'" align="'+align+'" allowScriptAccess="'+allowScriptAccess+'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="transparent">');
		document.write('</object>');
	} else {
		if(url == "banner"){
			document.write('<a href="/click2.cfm?I='+id+'" target="'+target+'"><img src="'+ img +'" border=0 alt="'+alt+'"></a>');
		} else if(url != ""){
			document.write('<a href="/click2.cfm?I='+id+'&L='+url+'" target="'+target+'"><img src="'+ img +'" border=0 alt="'+alt+'"></a>');
		} else {
			document.write('<img src="'+ img +'" border=0 alt="'+alt+'">');
		}
	}
}
