function open_window(url,weite,hoehe){ // zum Fenster öffnen
	win2 = window.open(url,'','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width='+ weite + ',height=' + hoehe);
}
function open_shop(url){ // zum Fenster öffnen
	win2 = window.open(url,'','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=800,height=600');
}
function open_window_zoom(url){ // zum Fenster öffnen
	win2 = window.open(url,'','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=480,height=350');
}
function open_newsletter(url){ // zum Fenster öffnen
	win2 = window.open(url,'','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=400,height=350');
}
function open_druck(url){ // zum Fenster öffnen
	win2 = window.open(url,'','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=750,height=590');
}
function open_spiel(url){ // zum Fenster öffnen
	win2 = window.open(url,'','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=932,height=602');
}
function open_galerie(){ // zum Fenster öffnen
	win2 = window.open('galerie.php','','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=780,height=600');
}
function galerie(url){ // zum Fenster öffnen
	win2 = window.open(url,'','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=780,height=600');
}
// Flash Detection
var UseFlash = 0;
if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] ) {
	// Check for Flash version 5 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
	UseFlash = 1;
}
	
function flasher(film,weite,hoehe,alt_bild,alt_text){
	if ( UseFlash ) {
		// Use Flash player  // hier bitte farben etc noch anpassen
		document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
		document.write(' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"');
		document.write(' ID=std_header WIDTH=' + weite + ' HEIGHT=' + hoehe +'>');
		document.write('<PARAM NAME=movie VALUE="' + film + '.swf"><PARAM NAME=quality VALUE=high>');
		document.write('<EMBED src="' + film + '.swf" quality=high ');
		document.write(' swLiveConnect=FALSE WIDTH=' + weite + ' HEIGHT=' + hoehe);
		document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">');
		document.write('</EMBED>');
		document.write('</OBJECT>');
	} 
	else if (!(navigator.appName && navigator.appName.indexOf("Netscape")>=0 && navigator.appVersion.indexOf("2.")>=0)) {
		// Netscape 2 will display the IMG tag below so don't write an extra one
		document.write('<IMG SRC="images/' + alt_bild +'" alt="' + alt_text + '" title="' + alt_text + '" BORDER=0 usemap="#Map">');
	}
}
function checkform(){
	var theForm=eval("document.kontakt");
	var strAlert="";
// Name:
	if (strAlert=="" && (typeof theForm.name.value == "undefined" || theForm.name.value =="" || theForm.name.length<1))
		strAlert="name";
// Telefon:
	if (strAlert=="" && (typeof theForm.telefon.value == "undefined" || theForm.telefon.value =="" || theForm.telefon.length<1))
		strAlert="telefon";
// Anliegen:
	if (strAlert=="" && (typeof theForm.anliegen.value == "undefined" || theForm.anliegen.value =="" || theForm.anliegen.length<2))
		strAlert="anliegen";
	// Jetzt Fehlerausgabe:
	if (strAlert != ""){
		switch (strAlert)
			{			
			case "name":
				alert("Bitte Namen eintragen!");
				theForm.name.focus();
				break;
			case "telefon":
				alert("Bitte Telefonnummer eintragen!");
				theForm.telefon.focus();
				break;
			case "anliegen":
				alert("Bitte Anliegen eintragen!");
				theForm.anliegen.focus();
				break;				
			}
		return false;
	}
	else
		return true;
}


