//================================================================================
// Function 	:	Flash_Info()
// VERSION		:	1.0.0
// LAST UPDATE	:	2005.05.31
// PROPERTY
// 	installed	:	true / false
// 	version		:	0 ->
//================================================================================
function Flash_Info(){
	this.installed = false;
	this.version = 0;
	if(OBInfo.browser=="Opera" && navigator.plugins["Shockwave Flash"]){
		this.installed = true;
		var sp = navigator.plugins["Shockwave Flash"].description.indexOf("Flash");
		var ep = navigator.plugins["Shockwave Flash"].description.lastIndexOf(" ");
		this.version = parseFloat(navigator.plugins["Shockwave Flash"].description.substring(sp+6,ep));
		this.revision = parseFloat(navigator.plugins["Shockwave Flash"].description.substring(sp+12,sp+14));
	}else if(OBInfo.os=="win" && OBInfo.browser=="IE"){
		if(eval(OBInfo.b_version.substr(0,1))<=4){			
			this.installed = false;
		}else{
			tmp_7 = false;
			tmp_6 = false;
			tmp_5 = false;
			tmp_4 = false;
			tmp_3 = false;
			document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n');
			document.write('on error resume next \n');
			document.write('tmp_7 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.7")))\n');
			document.write('tmp_6 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6")))\n');
			document.write('tmp_5 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5")))\n');
			document.write('tmp_4 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4")))\n');
			document.write('tmp_3 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3")))\n');
			document.write('</SCR' + 'IPT\> \n');
			
			if(tmp_3) {
				this.version = 3;
				this.installed = true;
			}
			if(tmp_4) this.version = 4;
			if(tmp_5) this.version = 5;
			if(tmp_6) this.version = 6;
			if(tmp_7) this.version = 7;
			if(this.installed){
				try{
					var sample = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
				}
				catch(e){
				}
				var flashver = sample.FlashVersion();
				this.version = Math.floor(flashver / 0x10000);
				this.revision = 0;
				//window.alert(Math.floor(flashver / 0x10000) + " : " + (flashver % 0x10000));
				// var temp = new MM_FlashInfo();
				// window.alert("Flash player is installed? : " + temp.installed);
				// window.alert("Flash player imprementation is " + temp.implementation);
				// window.alert("Flash player version is " + temp.version + "." + temp.revision);
			}
		}
	}else if(OBInfo.os == "mac"  && OBInfo.browser=="IE"){
		if(OBInfo.b_version.substr(0,1) > 4 && navigator.plugins["Shockwave Flash"]){
			var sp = navigator.plugins["Shockwave Flash"].description.indexOf("Flash");
			var ep = navigator.plugins["Shockwave Flash"].description.lastIndexOf(" ");
			this.version = parseFloat(navigator.plugins["Shockwave Flash"].description.substring(sp+6,ep));
			this.revision = parseFloat(navigator.plugins["Shockwave Flash"].description.substring(sp+12,sp+14));
			if(this.version >= 0){
				this.installed = true;
			}
		}
	}else if(OBInfo.NN && navigator.plugins["Shockwave Flash"]){
		this.installed = true;
		var sp = navigator.plugins["Shockwave Flash"].description.indexOf("Flash");
		var ep = navigator.plugins["Shockwave Flash"].description.lastIndexOf(" ");
		this.version = parseFloat(navigator.plugins["Shockwave Flash"].description.substring(sp+6,ep));
		this.revision = parseFloat(navigator.plugins["Shockwave Flash"].description.substring(sp+12,sp+14));
	}
}
var FlaInfo = new Flash_Info();
//alert(FlaInfo.installed + " " + FlaInfo.version + " : " + FlaInfo.revision);
