
/*
//==============================================================
//
// Autor: Rolf Zurawski
// Letzte Änderung: 28.02.2003
// - 28.02.2003 rzu - Dateierstellung
//
// TODO:
// - 
//
//==============================================================
*/

var ie=document.all
var ns6=document.getElementById&&!document.all
var MyObject;



function SubmitPage(strURL) {
	document.finder.method ="POST";
	document.finder.action = strURL;
	document.finder.submit();
}

//-------------------------------------------------------

function MM_findObj(n, d) { //v4.0
  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 && document.getElementById) x=document.getElementById(n); return x;
} // MM_findObj

//-------------------------------------------------------

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; }
} // MM_showHideLayers()

//-------------------------------------------------------

function formRedirector(object) {
	var URL = object.options[object.selectedIndex].value;
      window.location.href = URL;
}

//-------------------------------------------------------

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; }
  if (!ok) theURL=altURL; if (theURL) window.location=theURL;
}

//-------------------------------------------------------

		function detectingFLASH() {
		  var browser = navigator.userAgent.toLowerCase();
		  flashVersion = 0;	
			// NS3+, Opera3+, IE5+ Mac
			if ( navigator.plugins != null && navigator.plugins.length > 0 ) {
				var flashPlugin = navigator.plugins['Shockwave Flash'];
				if ( typeof flashPlugin == 'object' ) { 
					if ( flashPlugin.description.indexOf('7.') != -1 ) flashVersion = 7;
					else if ( flashPlugin.description.indexOf('6.') != -1 ) flashVersion = 6;
					else if ( flashPlugin.description.indexOf('5.') != -1 ) flashVersion = 5;
					else if ( flashPlugin.description.indexOf('4.') != -1 ) flashVersion = 4;
					else if ( flashPlugin.description.indexOf('3.') != -1 ) flashVersion = 3;
				}
			} // IE4+ Win32 (VBscript)
			else if ( browser.indexOf("msie") != -1 && parseInt(navigator.appVersion) >= 4 && browser.indexOf("win")!= -1 && browser.indexOf("16bit")== -1 ) {
			  document.write('<scr' + 'ipt language="VBScript"\> \n');
				document.write('on error resume next \n');
				document.write('DIM obFlash \n');
				document.write('SET obFlash = CreateObject("ShockwaveFlash.ShockwaveFlash.7") \n');
				document.write('IF IsObject(obFlash) THEN \n');
				document.write('flashVersion = 7 \n');
				document.write('ELSE SET obFlash = CreateObject("ShockwaveFlash.ShockwaveFlash.6") END IF \n');
				document.write('IF flashVersion < 7 and IsObject(obFlash) THEN \n');
				document.write('flashVersion = 6 \n');
				document.write('ELSE SET obFlash = CreateObject("ShockwaveFlash.ShockwaveFlash.5") END IF \n');
				document.write('IF flashVersion < 6 and IsObject(obFlash) THEN \n');
				document.write('flashVersion = 5 \n');
				document.write('ELSE SET obFlash = CreateObject("ShockwaveFlash.ShockwaveFlash.4") END IF \n');
				document.write('IF flashVersion < 5 and IsObject(obFlash) THEN \n');
				document.write('flashVersion = 4 \n');
				document.write('ELSE SET obFlash = CreateObject("ShockwaveFlash.ShockwaveFlash.3") END IF \n');
				document.write('IF flashVersion < 4 and IsObject(obFlash) THEN \n');
				document.write('flashVersion = 3 \n');
				document.write('END IF');
			  document.write('</scr' + 'ipt\> \n');
		  } // no Flash
		  else {
			flashVersion = -1;
		  }
		  
		  
		return flashVersion;
		} 
