//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
// Title : TECHNO-FRONTIER 2006 Library
// Module : Common Library
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//

var MM_contentVersion = 7;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : false;
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_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 enableFlash() {
	return MM_FlashCanPlay;
}



function createPromotionHTML() {
	if (enableFlash()) {
		var path = "promotion/flash.swf";
		var w = 410;
		var h = 200;
		var html = ''
		+ '<object width="' + w + '" height="' + h + '" type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000">'
		+ '<param name="wmode" value="opaque">'
		+ '<param name="movie" value="' + path + '">'
		+ '<embed src="' + path + '" width="' + w + '" height="' + h + '" type="application/x-shockwave-flash" pluginspage="https://www.macromedia.com/go/getflashplayer"></embed>'
		+ '</object>';
		document.write(html);
	} else{
		document.write('<img src="promotion/nonflash.gif" alt="　" width="410" height="200" />');
	}
}


















