// Dreamweaver MM-Functions
function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

// Flash-Prüfung
function MM_checkPlugin(plgIn, theURL, altURL, autoGo) { //v3.0
  var ok=false; document.MM_returnValue = false;
  with (navigator) 
  if (appName.indexOf('Microsoft')==-1) 
     ok=(plugins && plugins[plgIn]);
  else 
    if (appVersion.indexOf('3.1')==-1) 
    { //not Netscape or Win3.1
       if (plgIn.indexOf("Flash")!=-1 && window.MM_flash!=null) ok=window.MM_flash;
    else if (plgIn.indexOf("Director")!=-1 && window.MM_dir!=null) ok=window.MM_dir;
    else ok=autoGo; }
  return ok;}
//tmtC_NNresizeFix
if (document.layers) {
origWidth = innerWidth;
origHeight = innerHeight;}
function reDo() {
if (innerWidth != origWidth || innerHeight != origHeight)
location.reload();}
if (document.layers) onresize = reDo;
//tmtC_NNresizeFixEnd</script>

with (navigator) if (appName.indexOf('Microsoft')!=-1 && appVersion.indexOf('Mac')==-1) document.write(''+
'<scr'+'ipt language="VBScript">\nOn error resume next\n'+
'MM_dir = (IsObject(CreateObject("SWCtl.SWCtl.1")) Or IsObject(CreateObject("Macromedia.ActiveShockwave.1")))\n'+
'MM_flash = (NOT IsNull(CreateObject("ShockwaveFlash.ShockwaveFlash.6")))\n</scr'+'ipt>');

// Flash Check
var UseFlash = 0;

if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] ) {
	// Check for Flash version 6 or greater in Netscape
	var plugin = navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin;
	if (plugin && parseInt(plugin.description.substring(plugin.description.indexOf(".")-1))>=6)
		UseFlash = 1;} 
else if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && 
	  navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
	// Assume any Windows IE except for Windows 3.1 supports the OBJECT tag
      // 2nd check
	if (MM_checkPlugin('Shockwave Flash','','',false)==true) { UseFlash = 1; } else { UseFlash = 0; };}
// Allow the cookie to override
if (document.cookie && (document.cookie.indexOf("FlashRenderOption=P") >= 0)) {
	UseFlash = 1;} 
else if (document.cookie && (document.cookie.indexOf("FlashRenderOption=I") >= 0)) {
	UseFlash = 0;}

// Ausgabe der Flash-Datei oder des Ersatzbildes
function ShowFlashOrPic(FlashName,BildName,theWidth,theHeight)
{  
 if (UseFlash) 
 { 
  document.write('<OBJECT classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"'); 
  document.write(' codebase="https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" '); 
  document.write(' ID="flashBild" WIDTH="' + theWidth + '" HEIGHT="' + theHeight + '" ALIGN="">'); 
  document.write(' <PARAM NAME=movie VALUE="images/' + FlashName +'"> <PARAM NAME=quality VALUE=high> '); 
  document.write(' <EMBED src="images/' + FlashName + '" quality=high '); 
  document.write(' swLiveConnect=FALSE WIDTH="' + theWidth + '" HEIGHT="' + theHeight + '" NAME="flashBild" ALIGN=""'); 
  document.write('TYPE="application/x-shockwave-flash" PLUGINSPAGE="https://www.macromedia.com/go/getflashplayer">'); 
  document.write(' </EMBED>'); 
  document.write('</OBJECT>'); 
 } 
 else 
 { 
  document.write('<IMG SRC="images/' + BildName + '" WIDTH="' + theWidth + '" HEIGHT="' + theHeight + '" BORDER="0">'); 
 };
};

