var my_client = new UserClient( ) ;
var flash_version = 8 ;
var is_installed = false ;

if (my_client.opera && navigator.plugins["Shockwave Flash"]) {
	var sp = navigator.plugins["Shockwave Flash"].description.indexOf("Flash") ;
	var ep = navigator.plugins["Shockwave Flash"].description.lastIndexOf(" ") ;
	var usr_ver = parseFloat(navigator.plugins["Shockwave Flash"].description.substring(sp+6, ep)) ;
	if (usr_ver >= flash_version) {
		var is_installed = true ;
	}
}
else if (my_client.Win && my_client.ie) {
	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n') ;
	document.write('on error resume next \n') ;
	document.write('contentVersion = 6 \n') ;
	document.write('is_installed = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & contentVersion))) \n') ;
	document.write('</SCR' + 'IPT\> \n') ;
	if (my_client.ie4) {
		var is_installed = false ;
	}
}
else if (my_client.Mac && my_client.ie) {
	if (!my_client.ie4 && navigator.plugins["Shockwave Flash"]) {
		var sp = navigator.plugins["Shockwave Flash"].description.indexOf("Flash") ;
		var ep = navigator.plugins["Shockwave Flash"].description.lastIndexOf(" ") ;
		var usr_ver = parseFloat(navigator.plugins["Shockwave Flash"].description.substring(sp+6, ep)) ;
		if (usr_ver >= flash_version) {
			var is_installed = true ;
		}
	}
}
else if (my_client.nn && navigator.plugins["Shockwave Flash"]) {
	var sp = navigator.plugins["Shockwave Flash"].description.indexOf("Flash") ;
	var ep = navigator.plugins["Shockwave Flash"].description.lastIndexOf(" ") ;
	var usr_ver = parseFloat(navigator.plugins["Shockwave Flash"].description.substring(sp+6, ep)) ;
	if (usr_ver >= flash_version) {
		var is_installed = true ;
	}
}

function UserClient( ) {

	this.nav_name = navigator.appName ;
	this.nav_agnt = navigator.userAgent ;
	this.nav_ver = navigator.appVersion ;

	this.Win = (this.nav_agnt.indexOf("Win",0) != -1) ;
	this.Mac = (this.nav_agnt.indexOf("Mac",0) != -1) ;

	this.ie = (this.nav_name == "Microsoft Internet Explorer") ;
	this.ie4 = (this.nav_ver.indexOf('MSIE 4') > 0) ;
	this.nn = (this.nav_name == "Netscape") ;
	this.opera = (this.nav_agnt.indexOf("Opera", 0) != -1) ;
	this.safari = (this.nav_agnt.indexOf("Safari", 0) != -1) ;

}

<!-- MSpatch 対応20060412 start-->
<!-- ポータルスプラッシュ用-->

<!-- index.html--->
function portalsplash_Swf() {
	if (is_installed) {
		document.write (
				'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="950" height="365">' +
				'<param name="movie" value="top.swf" />' +
				'<param name="quality" value="high" />' +
				'<embed src="top.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="950" height="365" bgcolor="#000000" />' +
				'</object>'
		) ;
	}
	else {
		document.write (
				'<img src="img/index/noflash.jpg" width="950" height="365" border=0 alt="このサイトをご覧頂くにはFlash Playerが必要です。Adobe Flash Player ダウンロードセンターにジャンプします" usemap="#Map">' +
				'<map name="Map">' +
				'<area shape="rect"coords="0,0,950,365" href="http://get.adobe.com/jp/flashplayer/" target="_blank" alt="このサイトをご覧頂くにはFlash Playerが必要です。Adobe Flash Player ダウンロードセンターにジャンプします">' +
				'</map>'
		) ;
	}
}
<!-- /index.html--->
			


<!-- MSpatch 対応20060412 end-->