// js_koenig.js
// Autor: Thomas Maldoner
// Zuletzt modifiziert: 15.01.2001


	
	function open_window(target,name,width,height,posx,posy,windowoptions,init_target) {
		var it, wo, px, py

		it = target;
		wo = "location=no,toolbar=no,status=no,statusbar=no,scrollbars=no,resizable=no,dependent=yes";
		px = py = 20;
		if (typeof posx != "undefined") px = posx;
		if (typeof posy != "undefined") py = posy;
		if ((typeof windowoptions != "undefined") && (windowoptions != "")) wo = windowoptions;
		if (typeof init_target != "undefined") it = init_target;

		if(typeof new_window != "undefined") {
			if(new_window.closed != true) {
				new_window.close();
			}
		}
		new_window = window.open(it,name,"width=" + width + ",height=" + height + "," + wo);
		new_window.moveTo(px,py);
		new_window.location.replace(target);
		new_window.focus();
		return false;
	}

	
	function weiterleiten()
         	{
	  	weiter = open("index1.htm")
	  	weiter.focus();
	  	}




// Überprüfung welches Flash-Plugin
// In Text einbinden

	function WM_pluginDetect(plugindescription, pluginxtension, pluginmime, activeXname){

  	var i,plugin_undetectable=0,detected=0, daPlugin=new Object();
  	if (msie_windows && WM_detect_through_vb){
  	    plugin_undetectable = 0;
 	 } else {
 	     plugin_undetectable = 1;
	  }

 	 if(navigator.plugins) {
 	     numPlugins = navigator.plugins.length;
  	    if (numPlugins > 1) {
		  if (navigator.mimeTypes && navigator.mimeTypes[pluginmime] && navigator.mimeTypes[pluginmime].enabledPlugin && (navigator.mimeTypes[pluginmime].suffixes.indexOf(pluginxtension) != -1)) { // seems like we have it, let's just make sure and check the version (if specified)
		      if ((navigator.appName == 'Netscape') && (navigator.appVersion.indexOf('4.0') != -1)) {
			  for(i in navigator.plugins) {
			      if ((navigator.plugins[i].description.indexOf(plugindescription) != -1) || (i.indexOf(plugindescription) != -1)) {
				  detected=1;
				  break;
			      }
			  }
		      } else {
			  for (i = 0; i < numPlugins; i++) {
			      daPlugin = navigator.plugins[i];
			      if ((daPlugin.description.indexOf(plugindescription) != -1) || (daPlugin.name.indexOf(plugindescription) != -1)) {
				  detected=1;
				  break;
		      	}
			  }
		      }
	      if (navigator.mimeTypes[pluginmime] == null) {
			  detected = 0;
		      }
		  }
		  return detected;
	      } else if((msie_windows == 1) && !plugin_undetectable){
		  return WM_activeXDetect(activeXname);
  	    } else { 		
		  return 0;
 	 	    }
 	 } else {
 	     return 0;
 	 }
	}

	function WM_easyDetect(whichPlugin) {

   	 var isItThere = 0;
  	  if( (whichPlugin == 'flash') || (whichPlugin == 'Flash') ) {
		isItThere = WM_pluginDetect('Flash', 'swf', 'application/x-shockwave-flash', 'ShockwaveFlash.ShockwaveFlash');
  	  } else if( (whichPlugin == 'director') || (whichPlugin == 'Director') ) {
		isItThere = WM_pluginDetect('Shockwave', 'dcr', 'application/x-director', 'SWCtl.SWCtl.1');
  	  } else if( (whichPlugin == 'quicktime') || (whichPlugin == 'Quicktime') || (whichPlugin == 'QuickTime') ) {
		isItThere = WM_pluginDetect('QuickTime', 'mov', 'video/quicktime', '');
 	   } else if( (whichPlugin == 'realaudio') || (whichPlugin == 'Realaudio') || (whichPlugin == 'RealAudio') ) {
		isItThere = (WM_pluginDetect('RealPlayer', 'rpm', 'audio/x-pn-realaudio-plugin', 'RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)')) || (WM_pluginDetect('RealPlayer', 'rpm', 'audio/x-pn-realaudio-plugin','rmocx.RealPlayer G2 Control')) || (WM_pluginDetect('RealPlayer', 'rpm', 'audio/x-pn-realaudio-plugin','RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)')) || (WM_pluginDetect('RealPlayer', 'rpm', 'audio/x-pn-realaudio-plugin','RealVideo.RealVideo(tm) ActiveX Control (32-bit)'))
 	   } else {
 	   }
 	   return isItThere;
	}

	//--> 

