var flash = {
	getFlashCheck : function () { // fScriptableError :: gecko nincs szkriptelhetĹ� plugin telepĂ­tve
		var sDesc, strCommand;
		this.shockMode = false;  // telepítve van-e
		this.flashVer = 0;       // nagyverzió
		this.rv = 0;             // alverzió
		this.ver = 0;            // együtt
		//this.scriptable = false; // van-e js kapcsolat
		//this.elEmbed;            // gecko Scriptable-hez kell
		//this.timeout;
		//this.interval;
		//this.bAppend = false;
		this.fScriptableError = ( typeof fScriptableError == 'function' ) ? fScriptableError : false;
		if ( browser.isNS || browser.isGecko || browser.isOpera || browser.isKonqueror || browser.isMozilla ) {
			if ( navigator.mimeTypes && 
				 navigator.mimeTypes["application/x-shockwave-flash"] && 
				 navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin && 
				 navigator.plugins && 
				 navigator.plugins["Shockwave Flash"] ) {
				sDesc = navigator.plugins["Shockwave Flash"].description + '';
				this.shockMode = true;
				this.flashVer = parseInt( sDesc.charAt( sDesc.indexOf(".") -1 ) );
				this.rv = sDesc.substr( sDesc.lastIndexOf("r") + 1, sDesc.length );
			};
		}
		else if ( browser.isIE ) { //  && is.win
			strCommand =    'function checkIE( obj ) { ' +
							'	aFlashPlugins = [];' +
							'	for ( i = 2; i < 11; i++ ) {' +
							'		try {' +
							'			aFlashPlugins[i] = new ActiveXObject("ShockwaveFlash.ShockwaveFlash." + i );' +
							'		}' +
							'		catch ( ex ) {};' +
							'	}' +
							'	for ( i = 0; i < aFlashPlugins.length; i++ ) {' +
							'		if ( typeof aFlashPlugins[i] == "object" ) {' +
							'		obj.shockMode = true;' +
							'		obj.flashVer = i;' +
							'		}' +
							'	}' +
							'}';
			eval( strCommand );
			checkIE( this );
		};
		this.ver = parseFloat( this.flashVer + '.' + this.rv );
	}
};
flash.getFlashCheck();

