/* Copyright (C) 2002-2007 by Home of the Brave
   Web http://home.of.the.brave.de
   E-Mail info@brave.de */
/* $Revision: 1.4 $ $Date: 2009/05/27 14:03:22 $ */

/* owner: Simon.Leidig@brave.de */

var FlashDetector = {
	MaxVersion: 10,
	Version:    0
};
if (
	(navigator.userAgent.indexOf('MSIE')                >=  0) &&
	(navigator.userAgent.toLowerCase().indexOf('opera') == -1) &&
	(navigator.appVersion.indexOf('Mac')                == -1)
){
	document.write(
		'<SCRIPT TYPE="text/vbscript" LANGUAGE="VBScript">\n' +
			'on error resume next\n' +
			'For i = FlashDetector.MaxVersion to 0 Step -1\n' +
				'fo = IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash."+CStr(i)))\n' +
				'If fo Then\n' +
					'FlashDetector.Version = i\n' +
					'Exit For\n' +
				'end If\n' +
			'Next\n' +
		'</SCRIPT>'
	);
} else if (
	navigator.mimeTypes &&
	navigator.mimeTypes['application/x-shockwave-flash'] &&
	navigator.mimeTypes['application/x-shockwave-flash'].enabledPlugin
){
	var d = navigator.mimeTypes['application/x-shockwave-flash'].enabledPlugin.description.match(/\d+\.\d+/);
	if (d) FlashDetector.Version = parseInt(d[0]);
}

