var my_client = new UserClient( ) ;
var flash_version = 10 ;
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 = 8 \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.ie5 && 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.ie5 = (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) ;

}


function prtl_sch_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=7,0,19,0" width="800" height="400">' +
			'<param name="movie" value="flash/top_001.swf">' +
			'<param name="quality" value="high">' +
			'<embed src="flash/top_001.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="800" height="400"></embed>' +
			'</object>'

		) ;
	}
	else {
		document.write
		(

			'<table width="800" height="200" border="0" cellpadding="0" cellspacing="0">' +
			'<tr>' +
			'<td align="center" valign="middle"><table border="0" cellspacing="0" cellpadding="0">' +
			'<tr>' +
			'<td><table border="0" cellspacing="0" cellpadding="0">' +
			'<tr>' +
			'<td><a href="http://www.adobe.com/shockwave/download/download.cgi?P5_Language=Japanese&Lang=Japanese&P1_Prod_Version=ShockwaveFlash&Lang=Japanese&ogn=JP-gntray_dl_getflashplayer_jp" target="_blank"><img src="images/top_fbanner.gif" alt="Get Adobe Flash Player" width="88" height="31" border="0"></a></td>' +
			'<td><img src="images/spacer.gif" width="10" height="1" alt="" /></td>' +
			'<td><span class="text_S">このサイトをご覧頂くには、最新のFlash Player（無償）が必要です。<br>' +
			'<a href="http://www.adobe.com/shockwave/download/download.cgi?P5_Language=Japanese&Lang=Japanese&P1_Prod_Version=ShockwaveFlash&Lang=Japanese&ogn=JP-gntray_dl_getflashplayer_jp" target="_blank">こちら</a>をクリックしてインストールの上、ご覧ください。</span></td>' +
			'</tr>' +
			'</table></td>' +
			'</tr>' +
			'</table></td>' +
			'</tr>' +
			'</table>'

		) ;
	}
}

function prtl_sch_swf2() {
	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=7,0,19,0" width="800" height="400">' +
			'<param name="movie" value="flash/top_002.swf">' +
			'<param name="quality" value="high">' +
			'<embed src="flash/top_002.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="800" height="400"></embed>' +
			'</object>'
		) ;
	}
	else {
		document.write
		(

			'<table width="800" height="200" border="0" cellpadding="0" cellspacing="0">' +
			'<tr>' +
			'<td align="center" valign="middle"><table border="0" cellspacing="0" cellpadding="0">' +
			'<tr>' +
			'<td><table border="0" cellspacing="0" cellpadding="0">' +
			'<tr>' +
			'<td><a href="http://www.adobe.com/shockwave/download/download.cgi?P5_Language=Japanese&Lang=Japanese&P1_Prod_Version=ShockwaveFlash&Lang=Japanese&ogn=JP-gntray_dl_getflashplayer_jp" target="_blank"><img src="images/top_fbanner.gif" alt="Get Adobe Flash Player" width="88" height="31" border="0"></a></td>' +
			'<td><img src="images/spacer.gif" width="10" height="1" alt="" /></td>' +
			'<td><span class="text_S">このサイトをご覧頂くには、最新のFlash Player（無償）が必要です。<br>' +
			'<a href="http://www.adobe.com/shockwave/download/download.cgi?P5_Language=Japanese&Lang=Japanese&P1_Prod_Version=ShockwaveFlash&Lang=Japanese&ogn=JP-gntray_dl_getflashplayer_jp" target="_blank">こちら</a>をクリックしてインストールの上、ご覧ください。</span></td>' +
			'</tr>' +
			'</table></td>' +
			'</tr>' +
			'</table></td>' +
			'</tr>' +
			'</table>'

		) ;
	}
}
