//Flash v8 Plugin-Test - ShockMode 0:1
var ShockMode = 0;
//Check Mozilla
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if (plugin&& parseInt(plugin.description.substring(plugin.description.indexOf(".")-2)) >= 8){ShockMode = 1;}
else if ((navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0)&& (navigator.userAgent.indexOf("Windows 95")>=0 || navigator.userAgent.indexOf("Windows 98")>=0 || navigator.userAgent.indexOf("Windows NT")>=0)){
	//IE
	document.write('<scr' + 'ipt language="VBScript"> \n');
	document.write('on error resume next \n');
	document.write('ShockMode = (Isobject(Createobject("ShockwaveFlash.ShockwaveFlash.8")))\n');
	document.write('<\/scr' + 'ipt>\n');
}





function setFlash(myfile,breite,hoehe){
	var myObj = '';
	if (ShockMode) {
		myObj  = '	<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+breite+'" height="'+hoehe+'" id="image_flash" align="middle">';
		myObj += '		<param name="allowScriptAccess" value="sameDomain" />';
		myObj += '		<param name="movie" value="'+myfile+'" />';
		myObj += '		<param name="menu" value="false" />';
		myObj += '		<param name="quality" value="high" />';
		myObj += '		<param name="scale" value="exactfit" />';
		myObj += '		<param name="wmode" value="transparent" />';
		myObj += '		<param name="bgcolor" value="#d1e2f3" />';
		myObj += '<embed src="'+myfile+'" menu="false" quality="high" scale="exactfit" wmode="transparent" bgcolor="#d1e2f3" width="'+breite+'" height="'+hoehe+'" name="image_flash" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
		myObj += '</object>';
	} else {
		myObj = '';
	}
	document.write(myObj);
}
