<!--

function verlinken(l){document.location.href=l;}

/////////////////////////////////////////////////////////////////////////////////////////////////////////

function turnon(menuitem) {
	// Navigator 4 ausschließen...
	if (((navigator.appName == 'Netscape' ) && (navigator.appVersion.charAt(0) != "4")) |(navigator.appName != 'Netscape')) {
			document.getElementById(menuitem).style.background='#FFFFFF';
	}
}

function turnoff(menuitem) {
	// Navigator 4 ausschließen...
	if ((( navigator.appName == 'Netscape' ) && (navigator.appVersion.charAt(0) != "4")) | (navigator.appName != 'Netscape')) {
			document.getElementById(menuitem).style.background='#996633';
	}
}

/////////////////////////////////////////////////////////////////////////////////////////////////////////

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

/////////////////////////////////////////////////////////////////////////////////////////////////////////
/*		Dropdown Menu		*/

function Go(x)
{
 if(x == "nothing")
 {
   document.forms[0].reset();
   document.forms[0].elements[0].blur();
   return;
 }
 else
  {
   location.href = x;
   document.forms[0].reset();
   document.forms[0].elements[0].blur();
  }
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////

function openPictureWindow(imageName,imageWidth,imageHeight,alt)
{
	newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight);
	newWindow.document.open();
	newWindow.document.write('<HTML><TITLE>'+alt+'</TITLE><meta name="MSSmartTagsPreventParsing" content="TRUE"><meta http-equiv="imagetoolbar" content="no"><BODY bgcolor="#2b2b2b" LEFTMARGIN="0" TOPMARGIN="0" MARGINHEIGHT="0" MARGINWIDTH="0" onBlur="self.close()">');
	newWindow.document.write('<IMG SRC='+imageName+' WIDTH='+imageWidth+' HEIGHT='+imageHeight+' ALT="'+alt+'">');
	newWindow.document.write('</BODY></HTML>');
	newWindow.document.close();
	newWindow.focus();
}

/////////////////////////////////////////////////////////////////////////////////////////////////////////

function veranstaltungen(n)
{
	var pinfo = window.open(basehref+'popup/popup.php?id='+n,'veranstaltungen','width=450,height=500,toolbar=no,location=no,directories=no,menubar=no,status=no,resizable=no,scrollbars=no');
}

function aktuelles(n)
{
	var pinfo = window.open(basehref+'popup/popup.php?id='+n,'aktuelles','width=450,height=500,toolbar=no,location=no,directories=no,menubar=no,status=no,resizable=no,scrollbars=no');
}

function tipp(n)
{
	var pinfo = window.open(basehref+'popup/produkte.php?id='+n,'tipp','width=650,height=310,toolbar=no,location=no,directories=no,menubar=no,status=no,resizable=no,scrollbars=no');
}

function produkte(n)
{
	var pinfo = window.open(basehref+'popup/produkte.php?id='+n,'tipp','width=650,height=310,toolbar=no,location=no,directories=no,menubar=no,status=no,resizable=no,scrollbars=no');
}

/////////////////////////////////////////////////////////////////////////////////////////////////////////



function galerie()
{
	var pinfo = window.open(basehref+'gallery/index.php','webcam','width=700,height=500,toolbar=no,location=no,directories=no,menubar=no,status=no,resizable=no,scrollbars=no');
}

function kontakt()
{
	var pinfo = window.open(basehref+'popup/kontakt.php','kontakt','width=350,height=500,toolbar=no,location=no,directories=no,menubar=no,status=no,resizable=no,scrollbars=no');
}

function openbig(z)
{
	var pinfo = window.open(basehref+'popup/bilder.php?bild='+z,'bilder','width=440,height=320,toolbar=no,location=no,directories=no,menubar=no,status=no,resizable=no,scrollbars=no');
}


/////////////////////////////////////////////////////////////////////////////////////////////////////////

function pop_up(site,width,height) {
//function pop_up(site) {
	remote = window.open("","remotewin","fullscreen=1,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0");
	//remote.location.href = "remote.html";
	remote.location.href = site;
	remote.resizeTo(width,height);
	remote.moveTo(10,100);
	remote.focus();

	if (remote.opener == null) remote.opener = window;
	remote.opener.name = "opener";
}

//-->