//ABFRAGE NACH FLASH-------------------------------------------------------------------------------------
	var UseFlash = 0;
	if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] ) {
			var plugin = navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin;
			
	if (plugin && parseInt(plugin.description.substring(plugin.description.indexOf(".")-1))>=5)
			UseFlash = 1;
	} 
	else if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && 
	 		navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
	  		UseFlash = 1;
	}
 
//SET VARS---------------------------------------------------------------------------------------------------
var goFlash ;
var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;

//SET GoFLASH
function startFlash(stat){
	goFlash = stat;
	if(stat=='true'){
		window.setTimeout("startFlash('false')",1000);
	}
}

// Bearbeite alle FSCommand-Nachrichten eines Flash-Films
function flashVars_DoFSCommand(command, args) {
   var flashVarsObj = InternetExplorer ? flashVars : document.flashVars;
   	flashVarsObj.SetVariable("open",goFlash);
}

// VBScript für Internet Explorer, um FSCommand-Nachrichten zu empfangen
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && 
   navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
   document.write('&nbsp;<SCRIPT LANGUAGE=VBScript\> \n');
   document.write('on error resume next \n');
   document.write('Sub flashVars_FSCommand(ByVal command, ByVal args)\n');
   document.write('  call flashVars_DoFSCommand(command, args)\n');
   document.write('end sub\n');
   document.write('</SCRIPT\> \n');
}

if (UseFlash) {
	
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=5,0,0,0" width="18" height="18" id="flashVars">');
  	document.write('<param name=movie value="/fileadmin/templates/tuerglocke.swf">');
	document.write('<param name=quality value=high>');
	document.write('<param name=bgcolor value=#FFFFFF>');
	document.write('<PARAM NAME=loop VALUE=true>'); 
	document.write('<PARAM NAME=menu VALUE=false>');
	document.write('<embed width="18" height="18" name="flashVars" src="/fileadmin/templates/tuerglocke.swf" swLiveConnect="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed>');
	document.write('</object>');
}

