/* flash_detect.js  
-------------------
scripted 01.06.2005 by the eyecatcher ag, mnn

Script was tested successfully in the following browser:
   - Mac OS X: Explorer 5.2, Mozilla 1.6, Netscape 7.0, Opera 6.0, Safari 1.2, Firefox 1.0
   - Red Hat Linux 8.0: Firefox 1.0, Mozilla 1.7, Netscape 7.2
   - Win 2k Pro: AOL 9.0, Explorer 5.0, Explorer 5.5, Explorer 6.0, Firefox 1.0, Mozilla 1.75, Netscape 4.78, Netscape 6.2, Netscape 7.2, Opera 7
   - Win 98: Explorer 4.0
   - Win XP: Explorer 6.0, Firefox 1.0, Mozilla 1.7, Netscape 7.2, Opera 8.0
   
Every browser was tested with Flash enabled and Flash disabled.
*/

function flash(){
fversion = 6;

if((fversion<3) || (fversion==null)){
	fversion = 4;
}


var MM_FlashCanPlay = false;
var MM_contentVersion = fversion;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;

if ( plugin ) {
		var words = navigator.plugins["Shockwave Flash"].description.split(" ");
	    for (var i = 0; i < words.length; ++i)
	    {
		if (isNaN(parseInt(words[i])))
		continue;
		var MM_PluginVersion = words[i]; 
	    }
	var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
}
else if (navigator.userAgent && (navigator.userAgent.indexOf("MSIE")>=0) && (navigator.appVersion.indexOf("Win") != -1) && (navigator.userAgent.indexOf("Opera")<0)){
	result = false;
	for(var i = 15; i >= 1 && result != true; i--){
		execScript('on error resume next: result = IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.'+i+'"))','VBScript');
		MM_PluginVersion = i;
	}
	var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
}
if ( MM_FlashCanPlay ) {
	document.location.href = "ifbc.html";
} 
};
