//Uhr
function Zeit() {
 var Jetzt = new Date();
 var Tag = Jetzt.getDate();
 var Monat = Jetzt.getMonth() + 1;
 var Jahr = Jetzt.getYear();
 if(Jahr < 999) Jahr += 1900;
 var Vortag  = ((Tag < 10) ? "0" : "");
 var Vormon  = ((Monat < 10) ? ".0" : ".");
 var Datum = Vortag + Tag + Vormon + Monat  + "." + Jahr;
 document.write("" + Datum + "")
}
var ie = ((document.all) && (window.offscreenBuffering)) ? true : false; // IE >= 4.x
var ns = ((document.captureEvents) && (!document.getElementById)) ? true : false; // NN4.x
var mz = ((document.getElementById) && (!document.all) && (document.documentElement)) ? true : false; // NN6/MZ
if (ie || ns ||mz)
{
	function showtime() {
		now = new Date();
		var Stunde = now.getHours();
		var Minute = now.getMinutes();
		var Sekunde = now.getSeconds();
		if(Stunde<10)Stunde="0"+Stunde;
		if(Minute<10)Minute="0"+Minute;
		if(Sekunde<10)Sekunde="0"+Sekunde;
		Zeit=' ' +Stunde+ ':' +Minute+ ':'+Sekunde;
		if(ie || mz) { // IE4+ und NN6
			if (document.all) links = (document.body.clientWidth - 125);
			else links = (window.innerWidth - 125)+'px';
			document.getElementById('uhr').innerHTML = Zeit;
			document.getElementById('uhr').style.left = links;
		} else if(ns) {
			document.uhr.document.open();
			nachrechts = window.innerWidth - 125;
			Zeit = '<span class="Uhr">' + Zeit + '</span>';
			document.uhr.moveTo (nachrechts,20);
			document.uhr.document.write(Zeit);
			document.uhr.document.close();
		}
		window.setTimeout("showtime()",1000);
	}
}
//Ende Uhr
//Anfang Dropdown Menü
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';}
}
//Ende Dropdown Menü
//--------------------------------------------------------Anfang Gästebuchcode---------------------------------------------------
//Hinweise:
//code= Text der in das "eintrag" Feld eingefügt wird
//gaestebuch = Name des Formulars <form name="....">....
//eintrag= Feld in dem die Nachricht eingegeben wird <textarea name="....">......
function insertcode_gaestebuch(code) {
	document.gaestebuch.eintrag.value +=code+"";
	gaestebuch.eintrag.focus();
}
//----------------------------------------------------------Ende Gästebuchcode----------------------------------------------------------
//-----------------------------------------------------------Anfang Neuigkeitformular--------------------------------------------------
function insertcode_neuigkeit(code) {
	document.neuigkeiten.neuigkeit_eintrag.value +=code+"";
	neuigkeiten.neuigkeit_eintrag.focus();
}
//----------------------------------------------------------Ende Gästebuchcode----------------------------------------------------------

