	
	agt=navigator.userAgent.toLowerCase();
	ie=(document.all) ? true:false
	if(ie){
		ie4=(agt.indexOf('msie 4.')!=-1) ? true:false
		ie5=(agt.indexOf('msie 5.')!=-1) ? true:false
		}
	else { ie4=0;ie5=0; }

	ns=(document.layers) ?  true:false
	ns6=(document.getElementById && !document.all) ? true:false
	
	win=( (agt.indexOf("win")!=-1) || (agt.indexOf("16bit")!=-1) )? true:false
	mac=(agt.indexOf("mac")!=-1)? true:false


var pluginspages = new Object();
pluginspages.japanese = "http://www.macromedia.com/jp/shockwave/download/?P1_Prod_Version=ShockwaveFlash&Lang=Japanese";
pluginspages.english = "http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash";

var plugin = ((navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0);
if (plugin) pluginVer = parseInt(plugin.description.substring(plugin.description.indexOf(".") -1));

function detectFlash(Obj) {
document.open();
if (Obj.file != "") {

 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" id=' + Obj.name + ' width=' + Obj.width + ' height=' + Obj.height + ' name="' + Obj.name + '">' + '\n');
 document.write('<param name="movie" value="' + Obj.swf + '">' + '\n');
document.write('<param name="loop" value="'+Obj.loop+'">'+'\n');
document.write('<param name="menu" value="'+Obj.menu+'">'+'\n');
 document.write('<param name="quality" value="' + Obj.quality + '">' + '\n');
 document.write('<param name="bgcolor" value="' + Obj.bgcolor + '">' + '\n');
  document.write('<param name="wmode" value="' + Obj.wmode + '">' + '\n');
  document.write('<param name="allowScriptAccess" value="' + Obj.allow + '">' + '\n');
 document.write('<param name="menu" value="false"' + '>' + '\n');
 if ((win && ie) && !(navigator.userAgent.indexOf("Opera",0) != -1)) {
  document.write(Obj.nonflashsrc ) + '\n';
 }

 if (plugin && pluginVer >= Obj.requiredVer) {

  document.write('<embed src="' + Obj.swf + '" menu="false" quality="' + Obj.quality + '" swLiveConnect="' + Obj.liveconnect + '" bgcolor=' + Obj.bgcolor + '" wmode=' + Obj.wmode + ' width=' + Obj.width + ' height=' + Obj.height + ' type="application/x-shockwave-flash" pluginspage="' + pluginspages[Obj.language] + '" name="' + Obj.name + '"><\/embed><br>' + '\n');

 } else {
	if (!(win && ie)) {
	document.write(Obj.nonflashsrc ) + '\n';

	}
 }
 document.write('<\/object>' + '\n');
}
document.close();
}


