﻿var swfURI = './f/index.swf';
var swfWid = '800';
var swfHei = '237';
var swfBgc = '#ffffff';

if (document.getElementById('movie')) {
	var idMovie = document.getElementById('movie');
	var idCatch = document.getElementById('catch');
	var idQuick = document.getElementById('quick');
	idMovie.style.height = '232px';
	idCatch.style.display = 'none';
	idQuick.style.display = 'none';
}

if (document.getElementById('about')) {
	swfURI = '../f/about.swf';
	swfWid = '240';
	swfHei = '175';
}


var MM_contentVersion = 10;

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]; 
	    }
	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'); //FS hide this from IE4.5 Mac by splitting the tag
	document.write('on error resume next \n');
	document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
	document.write('</SCR' + 'IPT\> \n');
}
if ( MM_FlashCanPlay ) {
	document.write('<object type="application/x-shockwave-flash" data="' + swfURI + '" width="' + swfWid + '" height="' + swfHei + '">');
	document.write('<param name="movie" value="' + swfURI + '" />');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<param name="quality" value="best" />');
	document.write('<param name="bgcolor" value="' + swfBgc + '" />');
	document.write('<param name="scale" value="noScale" />');
	document.write('<param name="salign" value="TL" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="menu" value="false" />');
	document.write('<param name="base" value="." />');
	document.write('<param name="wmode" value="transparent" />');
	document.write('<param name="FlashVars" value="playerMode=embedded" />');
	document.write('</object>');
} else if (!MM_FlashCanPlay && document.getElementById('movie')) {
	document.write('<p id="catch">インプラント治療で無くした歯を取り戻すだけでなく、より美しい歯へ。</p><p id="quick"><a href="./quick/" title="簡単クイック相談">簡単クイック相談</a></p>');
}
/*
else {
	document.write('<p id="lowerPlugin">このコンテンツをご覧いただくにはAdobe Flash Player 8が必要です。お使いのブラウザには最新のFlash Playerがインストールされていません。<a href="http://www.adobe.com/shockwave/download/index.cgi?Lang=Japanese&P5_Language=Japanese&P1_Prod_Version=ShockwaveFlash&Lang=Japanese" target="_blank">Adobeのウェブサイト</a>から最新のフラッシュプレイヤーをインストールした後、このページをリロード(更新)して下さい。</p>');
}
*/
