var clientURL = location.href;
var refreshment = "";
var swfURL = "http://www.ibjcafe.com/talk/swf/xml/newsbanner2";
var swfName = "topswf";
var swfWidth = 400;
var swfHeight = 40;
var playerURL = "http://sdc.shockwave.com/jp/shockwave/download/alternates/";
var subImageURL = "http://www.ibjcafe.com/talk/swf/no_plug.gif";

document.write("<img width=1 height=1 src='http://www.ibjcafe.com/cgi-bin/n_banner.cgi?");
document.write("url="+document.URL+"'>");

if(navigator.platform == "Win32") {
	if(navigator.appName.charAt(0) == "M"){
		swfURL = swfURL + ".swf";
		playerURL = "http://www.macromedia.com/jp/shockwave/download/frameset.fhtml?Lang=Japanese&P5_Language=Japanese&P1_Prod_Version=ShockwaveFlash&P2_Platform=Win32&P3_Browser_Version=MSIE&Lang=Japanese";
	} else {
		swfURL = swfURL + ".swf";
		playerURL = "http://www.macromedia.com/jp/shockwave/download/frameset.fhtml?Lang=Japanese&P5_Language=Japanese&P1_Prod_Version=ShockwaveFlash&P2_Platform=Win32&P3_Browser_Version=NetscapePre4&Lang=Japanese";
}
	} else if (navigator.platform == "MacPPC") {
	swfURL = swfURL + ".swf";
	playerURL = "http://www.macromedia.com/jp/shockwave/download/frameset.fhtml?Lang=Japanese&P5_Language=Japanese&P1_Prod_Version=ShockwaveFlash&P2_Platform=MacPPC&P3_Browser_Version=NetscapePre4&Lang=Japanese";
} else {
	swfURL = swfURL + ".swf";
	playerURL = "http://sdc.shockwave.com/jp/shockwave/download/alternates/";
}

var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;

if(navigator.appName.charAt(0) == "M") {
	document.write('<!-- URL\'s used in the movie-->');
	document.write('<!-- text used in the movie-->');
	document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" ID=' + swfName + ' WIDTH=' + swfWidth + ' HEIGHT=' + swfHeight + '>');
	document.write('<PARAM NAME=movie VALUE="'+ swfURL + '?dasiy\=' + clientURL + '&lily\=' + refreshment +'"> <PARAM NAME=play VALUE=true> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <PARAM NAME=wmode VALUE=transparent> <EMBED NAME=' + swfName + ' src="' + swfURL + '?dasiy\=' + clientURL + '&lily\=' + refreshment +'" quality=high play=true bgcolor=#FFFFFF  WIDTH=' + swfWidth + ' HEIGHT=' + swfHeight + ' wmode=transparent TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED></OBJECT>');

} else {
	if ( plugin && parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)) >= 5 ) {
		//Check for Flash version 5 or greater in Netscape
		document.write('<!-- URL\'s used in the movie-->');
		document.write('<!-- text used in the movie-->');
		document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" ID=' + swfName + ' WIDTH=' + swfWidth + ' HEIGHT=' + swfHeight + '>');
		document.write('<PARAM NAME=movie VALUE="'+ swfURL + '?dasiy\=' + clientURL + '&lily\=' + refreshment +'"> <PARAM NAME=play VALUE=true> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <PARAM NAME=wmode VALUE=transparent> <EMBED NAME=' + swfName + ' src="' + swfURL + '?dasiy\=' + clientURL + '&lily\=' + refreshment +'" quality=high play=true bgcolor=#FFFFFF  WIDTH=' + swfWidth + ' HEIGHT=' + swfHeight + ' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED></OBJECT>');
	} else {
		document.write('<a href=' + playerURL+ ' target="_blank"><img src="' + subImageURL + '" width=' + swfWidth + ' height=' + swfHeight + ' border="0"></a>');
	}
}
