var agt=navigator.userAgent.toLowerCase();
var is_major  = parseInt(navigator.appVersion);
var is_minor  = parseFloat(navigator.appVersion);
var is_ie     = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
var is_ie3    = (is_ie && (is_major < 4));
var is_ie4    = (is_ie && (is_major == 4) && (agt.indexOf("msie 4")!=-1) );
var is_ie4up  = (is_ie && (is_major >= 4));
var is_ie5    = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.0")!=-1) );
var is_ie5_5  = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.5") !=-1));
var is_ie5up  = (is_ie && !is_ie3 && !is_ie4);
var is_win    = ( (agt.indexOf("win")!=-1) || (agt.indexOf("16bit")!=-1) );

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_FlashCanPlay5 = MM_PluginVersion >= 5;
	var MM_FlashCanPlay6 = MM_PluginVersion >= 6;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 
   && (navigator.appVersion.indexOf("Win") != -1)) {
	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
	document.write('on error resume next \n');
	document.write('MM_FlashCanPlay5 = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & "5")))\n');
	document.write('MM_FlashCanPlay6 = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & "6")))\n');
	document.write('</SCR' + 'IPT\>');
}

if ( MM_FlashCanPlay5 ) {
    document.write('<OBJECT');
	document.write(' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
	document.write('  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ');
	document.write(' ID="head" WIDTH="787" HEIGHT="600" ALIGN="" wmode=transparent>');
	document.write(' <PARAM NAME=movie VALUE="http://www.peters-muenchen.de/images/bilderbuch.swf">    <PARAM NAME=wmode VALUE=transparent><EMBED '); 
	document.write(' src="http://www.peters-muenchen.de/images/bilderbuch.swf" wmode=transparent');
	document.write(' WIDTH="787" HEIGHT="600" NAME="head" ALIGN="" wmode=transparent');
	document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"><PARAM NAME=wmode VALUE=transparent></EMBED></OBJECT>');
} else {
	document.write('<IMG SRC="http://www.peters-muenchen.de/images/cover.gif" BORDER="0" width="787" height="600">');
}