var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
	plugin = parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)) >= 4;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 
   && (navigator.userAgent.indexOf("Windows 95")>=0 || navigator.userAgent.indexOf("Windows 98")>=0 || navigator.userAgent.indexOf("Windows NT")>=0)) {
	document.write('<SCRIPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4")))\n');
	document.write('</SCRIPT\> \n');
}
if ( plugin ) {
	document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
	document.write('  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" ');
	document.write(' ID=index WIDTH=730 HEIGHT=238>');
	document.write(' <PARAM NAME=movie VALUE="images/index.swf"> <PARAM NAME=loop VALUE=false> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFDD99>  '); 
	document.write(' <EMBED src="images/index.swf" loop=false quality=high bgcolor=#FFDD99  ');
	document.write(' swLiveConnect=FALSE WIDTH=730 HEIGHT=238');
	document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">');
	document.write(' </EMBED>');
	document.write(' </OBJECT>');
} else{
	document.write('<IMG SRC="images/index.gif" WIDTH="730" HEIGHT="238" usemap="#indexgif" border="0">');
	document.write('<MAP NAME="indexgif">');
	document.write('<AREA SHAPE="rect" ALT="医院案内" COORDS="60,92,170,227" HREF="html/01.html">');
	document.write('<AREA SHAPE="rect" ALT="診療日カレンダー" COORDS="185,92,295,227" HREF="html/02.html">');
	document.write('<AREA SHAPE="rect" ALT="院長・スタッフ紹介" COORDS="310,92,420,227" HREF="html/03.html">');
	document.write('<AREA SHAPE="rect" ALT="料金表" COORDS="435,92,545,228" HREF="html/04.html">');
	document.write('<AREA SHAPE="rect" ALT="Q&A" COORDS="560,92,670,227" HREF="html/05.html">');
	document.write('</MAP>');
}


