function quickfinder_goto()
{
	var wert = document.finder.quickfinder.value;
	
	if(wert == 0)
	{
		document.finder.reset();
	}
	else
	{
		self.location.href = wert;
	}

}


function showbox(boxid)
{
	document.getElementById(boxid).style.display='block';
}

function hidebox(boxid)
{
	document.getElementById(boxid).style.display='none';
}


function browsercheck()
{
	var screenwidth = screen.width;
	var screenheight = screen.height;
	
	if(screenwidth < 1024)
	{
		alert("Diese Internetseite ist optimiert für eine Auflösung von 1024x768 Pixel aufwärts.\nIhre derzeitige Auflösung ist " + screenwidth + "x" + screenheight + " Pixel.\n\nUm eine optimale Darstellung zu erhalten, sollten Sie eine höhere Auflösung wählen.")
	}
}


function popup(url2go,breite,hoehe)
{
	thepopup = window.open(url2go,'thepopup','width=' + breite + ',height=' + hoehe + ',scrollbars=yes,left=50,top=50');
	thepopup.resizeTo(breite+10,hoehe+29);
	thepopup.focus();
}

function popupimg(imgurl,breite,hoehe)
{
	theimgpopup = window.open('','theimgpopup','width=' + breite + ',height=' + hoehe + ',scrollbars=no,left=50,top=50');
	theimgpopup.document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><title>[ GAYKO - Fenster und T&uuml;ren ]</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><link rel="stylesheet" href="/style.css" type="text/css"></head><body leftmargin="7" topmargin="7" marginwidth="7" marginheight="7"><p><img src="' + imgurl + '" border="1"></p><p><a href="javascript:self.close()">Fenster schlie&szlig;en</a></p></body></html>');
	
	theimgpopup.focus();
}


var openLayerSource = 0;
var openLayerTarget = 0;
var closeWindow = false;

function OpenLayer(sourceElement,targetElement){
	if(openLayerSource != 0 && openLayerSource != sourceElement){
		closeWindow = true;
		CloseLayerRun(openLayerSource,openLayerTarget);
	}
	
	var obj = document.getElementById(sourceElement);
	
	if(navigator.appName == "Microsoft Internet Explorer")
	{
		var curleft = 148;
	}
	else
	{
		var curleft = 148;
	}
	
	var curtop = -3;
	
	if(obj.offsetParent)
	{
		while(obj.offsetParent)
		{
			curtop += obj.offsetTop;
			obj = obj.offsetParent;
		}
	}
	else if (obj.y)
	{
		curtop += obj.y;
	}
	
	document.getElementById(targetElement).style.top = curtop;
	document.getElementById(targetElement).style.left = curleft;
	document.getElementById(targetElement).style.visibility = 'visible';
	document.getElementById(sourceElement).style.cursor = 'hand';
	
	openLayerSource = sourceElement;
	openLayerTarget = targetElement;
	closeWindow = false;
}

function CloseLayer(sourceElement,targetElement){
	closeWindow = true;
	
	window.setTimeout("CloseLayerRun('" + sourceElement + "','" + targetElement + "')", 20);
}

function CloseLayerRun(sourceElement,targetElement){
	if(closeWindow == true){
		document.getElementById(targetElement).style.visibility = 'hidden';
		document.getElementById(sourceElement).style.cursor = 'auto';
	}else{
		closeWindow = false;
	}
}

function setCloseToFalse()
{
	closeWindow = false;
}