
function switchlayer(Layer_Name){
  var GECKO = document.getElementById? 1:0 ;
  var NS = document.layers? 1:0 ;
  var IE = document.all? 1:0 ;
  if (GECKO){
  	document.getElementById(Layer_Name).style.display= (document.getElementById(Layer_Name).style.display=='block') ? 'none' : 'block';
  } else if (NS){
  	document.layers[Layer_Name].display=(document.layers[Layer_Name].display=='block') ? 'none' : 'block';
  } else if (IE){
  	document.all[Layer_Name].style.display=(document.all[Layer_Name].style.display=='block') ? 'none' : 'block';
  }
}


function switchlayerON(Layer_Name){
  var GECKO = document.getElementById? 1:0 ;
  var NS = document.layers? 1:0 ;
  var IE = document.all? 1:0 ;
  if (GECKO){
  	document.getElementById(Layer_Name).style.display= 'block';
  } else if (NS){
  	document.layers[Layer_Name].display= 'block';
  } else if (IE){
  	document.all[Layer_Name].style.display= 'block';
  }
}


function switchlayerOFF(Layer_Name){
  var GECKO = document.getElementById? 1:0 ;
  var NS = document.layers? 1:0 ;
  var IE = document.all? 1:0 ;
  if (GECKO){
  	document.getElementById(Layer_Name).style.display= 'none' ;
  } else if (NS){
  	document.layers[Layer_Name].display= 'none' ;
  } else if (IE){
  	document.all[Layer_Name].style.display= 'none' ;
  }
}

WinAppearance="toolbar=no,location=no,directories=no,scrollbars=yes,status=no,resizable=yes,copyhistory=no";

function Zoom(url,title,breite,hoehe) { 
	breite += 26;
	hoehe += 44;
	sinnvollehoehe = 900;
	sinnvollehoehe = screen.height-40;
	popup = "popup";

	if(hoehe > sinnvollehoehe) {
		breite += 20;
		popup = "popup2";
		hoehe = sinnvollehoehe;
	}
	url = url+"&hoehe="+hoehe+"&popup="+popup+"&title="+title; 
  var neu = window.open(url,title,WinAppearance+',top=100,width='+breite+',height='+hoehe);
  if (!neu.opener) neu.opener = window;
  neu.focus();
}

function closeWindow() {
	self.close();
}

function email(name, domain,tld) {
	var link = "<a href='mailto:"+name+"@"+domain+"."+tld+"'class='mail' >";
	document.write(link);
}

function emailschliessen() {
	document.write("</a>");
}
