function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function pop (a){
	if(navigator.appName.substring(0,8)=="Netscape"){
		mini=window.open(a,'Pop','toolbar=0,location=0,directories=0,status=0,menubar=1,menubar=yes, scrollbars=1,resizable=1,copyhistory=0,height=560,width=616,top=0,left=0');
		mini.focus();
	}
	else{
		mini=window.open(a,'Pop','toolbar=0,location=0,directories=0,status=0,menubar=1,menubar=yes, scrollbars=1,resizable=1,copyhistory=0,height=560,width=616,top=0,left=0');
		mini.focus();	
	}
}

function popup (a){
	if(navigator.appName.substring(0,8)=="Netscape"){
		mini=window.open(a,'popup','toolbar=1,location=0,status=0,menubar=0,resizable=yes,scrollbars=1,height=750,width=690,top=0,left=0');
		mini.focus();
	}
	else{
		mini=window.open(a,'popup','toolbar=1,location=0,status=0,menubar=0,resizable=yes,scrollbars=1,height=750,width=690,top=0,left=0');
		mini.focus();
	}
}
function popup2 (a){
	if(navigator.appName.substring(0,8)=="Netscape"){
		mini=window.open(a,'popup2','toolbar=1,location=1,status=1,menubar=1,resizable=yes,scrollbars=1,height=750,width=690,top=0,left=0');
		mini.focus();
	}
	else{
		mini=window.open(a,'popup2','toolbar=1,location=1,status=1,menubar=1,resizable=yes,scrollbars=1,height=750,width=690,top=0,left=0');
		mini.focus();
	}
}
function ticker (a){
	if(navigator.appName.substring(0,8)=="Netscape"){
		mini=window.open(a,'ticker','toolbar=0,location=0,status=0,menubar=1,resizable=1,scrollbars=1,height=368,width=545,top=0,left=0');
		mini.focus();
	}
	else{
		mini=window.open(a,'ticker','toolbar=0,location=0,status=0,menubar=1,resizable=yes,scrollbars=1,height=350,width=562,top=0,left=0');
		mini.focus();
	}
}

function glossar(a){
	if(navigator.appName.substring(0,8)=="Netscape"){
		mini=window.open(a,'Pop','toolbar=0,location=0,status=0,menubar=1,resizable=1,scrollbars=1,height=300,width=380,top=0,left=0');
		mini.focus();
	}
	else{
		mini=window.open(a,'Pop','toolbar=0,location=0,status=0,menubar=1,resizable=yes,scrollbars=yes,height=308,width=380,top=0,left=0');
		mini.focus();
	}
}

function zoom (a){
	if(navigator.appName.substring(0,8)=="Netscape"){
		mini=window.open(a,'Zoom','toolbar=0,location=0,directories=0,status=0,menubar=0,menubar=yes, scrollbars=YES,scrollbars=1,resizable=no,copyhistory=0,height=345,width=565,top=0,left=0');
		mini.focus();
	}
	else{
		mini=window.open(a,'Zoom','toolbar=0,location=0,directories=0,status=0,menubar=0,menubar=yes, scrollbars=YES,scrollbars=1,resizable=no,copyhistory=0,height=340,width=568,top=0,left=0');
		mini.focus();
	}
}

function sitemap (dateiname){
	if(navigator.appName.substring(0,8)=="Netscape"){
		mini=window.open(dateiname,'sitemap','toolbar=yes,location=no,status=no,menubar=yes,resizable=yes,scrollbars=yes,height=520,width=750,top=0,left=0');
    	mini.focus();
	}
	else{
		mini=window.open(dateiname,'sitemap','toolbar=1,location=0,status=0,menubar=1,resizable=yes,scrollbars=1,height=500,width=750,top=0,left=0');
    	mini.focus();
	}
}

function schlagwort (dateiname) {
	schlagw = window.open("","schlagwortwin",'toolbar=0,location=0,status=0,menubar=0,resizable=yes,scrollbars=1,height=520,width=475,top=0,left=0');
	schlagw.location.href = dateiname;
	if (schlagw.opener == null) schlagw.opener = window;
	schlagw.opener.name = "opener";
	}

function makeRemote(dateiname) {
remote = window.open("","remotewin",'toolbar=1,location=0,status=0,menubar=1,resizable=yes,scrollbars=1,height=520,width=475,top=0,left=0');
remote.location.href = dateiname
if (remote.opener == null) remote.opener = window;
remote.opener.name = "opener";
}
function go(url) {
opener.location.href = url;
}

var i=0, sw=screen.width*80/100, sh=screen.height*100/100;
function resize() {
if (navigator.appName == 'Netscape') i=0;
nw = 240 + ((document.closeButton.width > document.articleImage.width) ? document.closeButton.width : document.articleImage.width);
nh = document.articleImage.height + 230 - i;
if(nw>sw) nw = sw;
if(nh>sh) nh = sh;
window.resizeTo(nw, nh);
nx = screen.width/2 - nw/2;
ny = screen.height/2 - nh/2;
window.moveTo(nx, ny);
}

//Script für PullDown Menüs
function surfto(form) {
var myindex=form.select.selectedIndex;
if (form.select.options[myindex].value != "0") {
location=form.select.options[myindex].value;}
}
function surftonav(form) {
    var myindex=form.menue.selectedIndex;
    location=form.menue.options[myindex].value;
}
function surftoquick(form,id) {
    var myindex=form[id].selectedIndex;
	var myurl=form[id].options[myindex].value;
	
	if(myurl.indexOf('__##__')!=-1){
		var tmp_array = myurl.split('__##__');
		myurl = tmp_array[0];
		var mytarget = tmp_array[1];
		//wir brauchen keine unterscheidung zwischen verschiedenen popups,
		//könnten sie aber hier mit hilfe des targets implementieren
		popup2(myurl);
	}else{    
		location=myurl;
	}
}
function surftokategorie(form) {
    var myindex=form.menue.selectedIndex;
    location=form.menue.options[myindex].value;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

//functionen für anfahrtsskizzen
function new_desc(neu)
{
	document.getElementById('desc').innerHTML = ("<img src='"+neu+"' width='145' height='80'>");
	if (document.getElementById('layer1').style.visibility == "hidden")
	{
		document.getElementById('layer1').style.visibility = "visible"; return;
	}
}

function hide_desc()
{
	if (document.getElementById('layer1').style.visibility == "visible")
	{
		document.getElementById('layer1').style.visibility = "hidden"; return;
	}	
}