var swf_version = 7;
var plugin = false;
var str = "";

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)) >= swf_version;
}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)) {
	with(document){
		write('<SCRIPT LANGUAGE=VBScript\> \n');
		write('on error resume next \n');
		write('plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash."&swf_version)))\n');
		write('<\/SCRIPT\> \n');
	}
}

if( plugin ){
	str += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="780" height="170" id="top" align="middle">';
	str += '<param name="allowScriptAccess" value="sameDomain">';
	str += '<param name="movie" value="./images/top/top.swf">';
	str += '<param name="quality" value="high">';
	str += '<param name="bgcolor" value="#ffffff">';
	str += '<embed src="./images/top/top.swf" quality="high" bgcolor="#ffffff" width="780" height="170" name="top" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">';
	str += '</object>';
}else{
	str += '<a href="http://www.adobe.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" target="_blank"><img src="./images/top/flash_banner.jpg" alt="Please Install Flash Player." width="760" height="290"></a>';
}
document.write(str);