function wClock()
{
	// (c) 2003 Frank Werner <www.WeSoft.de>
	// <body onLoad="wClock();">
	// <p id="wClock">.</p>


	var w = new Array("Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag");
	var m = new Array("Januar", "Februar", "M&auml;rz", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember");
	var now = new Date();

	document.getElementById('wClock').firstChild.nodeValue = w[Number(now.getDay())] + ", " + String(now.getDate()) + ". " + m[Number(now.getMonth())] + " " + String(now.getYear() + ((now.getYear() < 1900) ? 1900 : 0)) + "  " + ((now.getHours() < 10) ? "0" : "") + now.getHours() + ((now.getMinutes() < 10) ? ":0" : ":") + now.getMinutes() + ((now.getSeconds() < 10) ? ":0" : ":") + now.getSeconds();

	setTimeout("wClock()", 100);
}

function wFuzzyClock(schwaben)
{
	// (c) 2003 Frank Werner <www.WeSoft.de>

	var fuzzyClockString = "Es ";
	var numbers = new Array("eins","zwei","drei","vier","f&uuml;nf","sechs","sieben","acht","neun","zehn","elf","zw&ouml;lf");
	var now = new Date();
	var hour = now.getHours();
	var minute = now.getMinutes();

	if (minute % 5 == 0)
	{
		fuzzyClockString += "ist";
		if (now.getSeconds() == 0)
		{
			fuzzyClockString += " genau";
		}
	}
	else if (minute < 3 || minute == 31 || minute == 32)
	{
		fuzzyClockString += "ist kurz nach";
		minute = parseInt(minute/5) * 5;
	}
	else if (minute > 57 || minute == 28 || minute == 29)
	{
		fuzzyClockString += "ist kurz vor";
		minute = (parseInt(minute/5)+1) * 5;
	}
	else if ((minute % 5) < 3)
	{
		fuzzyClockString += "war gerade";
		minute = parseInt(minute/5) * 5;
	}
	else
	{
		fuzzyClockString += "ist gleich";
		minute = (parseInt(minute/5)+1) * 5;
	}

	// Minutenangabe
	if (minute==15 && schwaben==1)
	{
		fuzzyClockString += " viertel";
		hour ++;
	}
	else if (minute==45 && schwaben==1)
	{
		fuzzyClockString += " dreiviertel";
		hour ++;
	}
	else if (minute==5)
	{
		fuzzyClockString += " f&uuml;nf nach";
	}
	else if (minute==10)
	{
		fuzzyClockString += " zehn nach";
	}
	else if (minute==15)
	{
		fuzzyClockString += " viertel nach";
	}
	else if (minute==20)
	{
		fuzzyClockString += " zwanzig nach";
	}
	else if (minute==25)
	{
		fuzzyClockString += " f&uuml;nf vor halb";
		hour ++;;
	}
	else if (minute==30)
	{
		fuzzyClockString += " halb";
		hour ++;
	}
	else if (minute==35)
	{
		fuzzyClockString += " f&uuml;nf nach halb";
		hour ++;
	}
	else if (minute==40)
	{
		fuzzyClockString += " zwanzig vor";
		hour ++;
	}
	else if (minute==45)
	{
		fuzzyClockString += " viertel vor";
		hour ++;
	}
	else if (minute==50)
	{
		fuzzyClockString += " zehn vor";
		hour ++;
	}
	else if (minute==55)
	{
		fuzzyClockString += " f&uuml;nf vor";
		hour ++;
	}
	else if (minute==60)
	{
		hour ++;
	}

	if (hour > 12)
	{
		hour -= 12;
	}

	// Stundenangabe
	if (hour==0)
	{
		fuzzyClockString += " " + numbers[11];
	}
	else if (hour==1 && minute==0)
	{
		fuzzyClockString += " ein";
	}
	else
	{
		fuzzyClockString += " " + numbers[hour-1];
	}

	if (minute==0)
	{
		fuzzyClockString += " Uhr";
	}

	document.write(fuzzyClockString + ".");
}

function wLastModified()
{
	// (c) 2003 Frank Werner <www.WeSoft.de>

	var w = new Array("Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag");
	var m = new Array("Januar", "Februar", "M&auml;rz", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember");
	var moddate = new Date(document.lastModified);

	document.write("<font color=#c0c0c0 size=2>&copy; 2003 <a class='foot' href='mailto:Frank@WeSoft.de'>Frank Werner</a> [Diese Seite wurde am " + w[Number(moddate.getDay())] + ", " + moddate.getDate() + ". " + m[Number(moddate.getMonth())] + " " + String((moddate.getYear() + ((moddate.getYear() < 1900) ? 1900 : 0))) + " um " + ((moddate.getHours() < 10) ? "0" : "") + moddate.getHours() + ((moddate.getMinutes() < 10) ? ":0" : ":") + moddate.getMinutes() + " aktualisiert]</font>");
}

function wPictureWindow(picture, title, width, height)
{
	win = window.open("", "pictureWindow", "status=no, toolbar=no, personalbar=no, scrollbars=no, menubar=no, resizeable=no, width=" + String(width+20) + ", height=" + String(height+75));
	win.document.write ("<html><head><title>" + title + "</title>");
	win.document.write ("<link rel=stylesheet type='text/css' href='../wesoft.css'></head>");
	win.document.write ("<body bgcolor='#f0f0f0' style='font-family:arial,sans-serif;' onload='focus()'>");
	win.document.write ("<table align='center' border=0 cellpadding='0' cellspacing='1'>");
	win.document.write ("<tr><td align='center'><img src=" + picture + "></td></tr>");
	win.document.write ("<tr><td align='left'><font size=2 color=#c0c0c0>&copy; 2003 <a class='foot' href='mailto:Frank@WeSoft.de'>Frank Werner</a> </font></td></tr>");
	win.document.write ("<tr><td style='text-align:center'><form><input type='button' value='Fenster schliessen' style='font-family:Verdana,Arial;font-size:10px' onClick='self.close()'></form></td></tr>");
	win.document.write ("</table></body></html>");
	win.document.close();
}

