function open_window_galerie(url){ // zum Fenster öffnen
	if (screen.width == "800"){fensterhoehe = 570;scroller=1;}
	else {fensterhoehe = 700;scroller=0;}
	win2 = window.open(url,'','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=' + scroller + ',resizable=0,width=650,height=' + fensterhoehe);
}
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_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_window_zoomprodukte(url){ // zum Fenster öffnen
	win2 = window.open(url,'','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=500,height=400');
}
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_shop(url){ // zum Fenster öffnen
	win2 = window.open(url,'','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=720,height=550');
}

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))>=5)
		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(){
	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=5,0,0,0"');
		document.write(' ID=std_header WIDTH=558 HEIGHT=140>');
		document.write('<PARAM NAME=movie VALUE="logo.swf"><PARAM NAME=quality VALUE=high><PARAM NAME=bgcolor VALUE=#333366>');
		document.write('<EMBED src="logo.swf" quality=high bgcolor=#333366 ');
		document.write(' swLiveConnect=FALSE WIDTH=558 HEIGHT=140');
		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/logo_links.jpg" HEIGHT=140 BORDER=0>');
	}
}
function wechsel(nummer){
	if (nummer == 0){document.karte.src = "images/detail_karte.gif";}
	if (nummer == 1){document.karte.src = "images/karte.gif";}
}
function checkform()
	{
	var theForm=eval("document.register");
	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<3))
		strAlert="telefon";		
// Anliegen:
	if (strAlert=="" && (typeof theForm.anliegen.value == "undefined" || theForm.anliegen.value =="" || theForm.anliegen.length<2))
		strAlert="anliegen";
// info:
	if (strAlert=="" && (typeof theForm.info.value == "undefined" || theForm.info.value =="" || theForm.info.length<1))
		strAlert="info";
	// Jetzt Fehlerausgabe:
	if (strAlert != "")
		{
		switch (strAlert)
			{			
			case "name":
				alert("Bitte geben Sie Ihren Namen ein!");
				theForm.name.focus();
				break;
			case "telefon":
				alert("Bitte geben Sie eine Telefonnummer an!"); 				
				theForm.telefon.focus();
				break;	
			case "anliegen":
				alert("Bitte geben Sie Ihr Anliegen ein!");
				theForm.anliegen.focus();
				break;				
			case "info":
				alert("Bitte geben Sie uns noch die Zusatzinfo\nwoher Sie unsere Seite kennen!");
				theForm.info.focus();
				break;
			}
		return false;
		}
	else
		return true;
	}

function checkform2()
	{
	var theForm=eval("document.register");
	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<3))
		strAlert="telefon";		
// betreff:
	if (strAlert=="" && (typeof theForm.betreff.value == "undefined" || theForm.betreff.value =="bitte wählen" || theForm.betreff.length<1))
		strAlert="betreff";
// Anliegen:
	if (strAlert=="" && (typeof theForm.anliegen.value == "undefined" || theForm.anliegen.value =="" || theForm.anliegen.length<2))
		strAlert="anliegen";
// info:
	if (strAlert=="" && (typeof theForm.info.value == "undefined" || theForm.info.value =="" || theForm.info.length<1))
		strAlert="info";
	// Jetzt Fehlerausgabe:
	if (strAlert != "")
		{
		switch (strAlert)
			{			
			case "name":
				alert("Bitte geben Sie Ihren Namen ein!");
				break;
			case "telefon":
				alert("Bitte geben Sie eine Telefonnummer an!"); 				
				break;	
			case "anliegen":
				alert("Bitte geben Sie Ihr Anliegen ein!");
				break;				
			case "info":
				alert("Bitte geben Sie uns noch die Zusatzinfo,\nwoher Sie unsere Seite kennen!");
				break;
			case "betreff":
				alert("Bitte wählen Sie einen Betreff aus!");
				break;
			}
		return false;
		}
	else
		return true;
	}

function check_newsletter_form(){
	 var re_email = /^([_a-zA-Z0-9-]+)(\.[_a-zA-Z0-9-]+)*@([a-zA-Z0-9-]+\.)+([a-zA-Z]{2,3})$/;
	 var email = document.send_newsletter.email.value;
	 var checked = true;
	 if ((re_email.test(email))==false || email.length==0) {
	    alert("Ihre eMail-Adresse ist falsch!");
	    checked = false;
	    }
	 return checked;
} /* end function */