/** Get document-info: */
var file = document.URL;    // URL must be capitals
var title = document.title;
//document.writeln("<P>file-URL = '" + file + "'; &nbsp;file.length = " + file.length + "</P>");
//document.writeln("<P>file-title = '" + title + "'; &nbsp;title.length = " + title.length + "</P>");


/** General CSS-Styles: */
document.writeln("<style type='text/css'>");

document.writeln("body			{font-family:arial,helvetica,sans-serif; background-color:#EEEEEE}");
document.writeln("p.info		{margin-left:2em}");
document.writeln("p.info_f		{margin-left:2em; margin-top:-0.5em}");
document.writeln("p.infoadds	{font-style:italic; font-size:90%; text-align:right; margin-top:-1.0em}");
document.writeln(" .sma			{font-family:times,serif; font-style:italic; font-size:85%}");

// Die folgenden font-sizes sind im IE getestet und ok; 
// line-height ~130% ist in IE & Firefox vorteilhaft (wird von Konqu. + IE generell, von Firefox nur außerhalb table angewandt)
// Hier nicht vom unten definierten screenSizeDivide Gebrauch machen, weil die folgenden
// font-sizes explizit auf den Divide-Wert 1152 bezogen sind, var largeScreen etc aber v.a.
// für die Platzierung von Leerzeilen und Abständen gut sind
var standardSize  = 11;	// in pt
var sizeIncrement = 2;
document.writeln("h4 {font-size:" + (standardSize + sizeIncrement) + "pt; font-weight:normal; line-height:130%}");
if (title.indexOf("Startseite") >= 0) {
	standardSize  = 12;
	sizeIncrement = 3;
}
if (screen.width < 1152) standardSize = standardSize-1;
document.writeln("h1 {font-size:" + (standardSize + 3*sizeIncrement) + "pt; font-weight:bold; line-height:150%}");
document.writeln("h2 {font-size:" + (standardSize + 2*sizeIncrement) + "pt; font-weight:bold; line-height:150%}");
document.writeln("h3 {font-size:" + (standardSize +   sizeIncrement) + "pt; font-weight:bold; line-height:150%}");
document.writeln("h5 {font-size:" + standardSize + "pt; font-weight:bold; font-style:italic}");
if (title.indexOf("Startseite") < 0) {
	document.writeln("body {font-size:" + standardSize + "pt; color:maroon}");
	document.writeln("   p {font-size:" + standardSize + "pt; color:maroon}");
	document.writeln("  td {font-size:" + standardSize + "pt; color:maroon}");
	document.writeln("  li {font-size:" + standardSize + "pt; color:maroon}");
	document.writeln("a:link {color:navy}");
	document.writeln("a:visited {color:#AF4111}"); // maroon aufgehellt
} else {
	document.writeln("body {font-size:" + standardSize + "pt");
	document.writeln("   p {font-size:" + standardSize + "pt");
	document.writeln("  td {font-size:" + standardSize + "pt");
	document.writeln("  li {font-size:" + standardSize + "pt");
	document.writeln("a:link {color:#174A10}");	// =! im body-tag angegebene Schriftfarbe
	document.writeln("a:visited {color:#478010}");	// =! link aufgehellt
}
document.writeln("a:hover {font-weight:bold}");

document.writeln("</style>");

/** Get Browser- and Screen-infos: */
var isMSIE = false;
var  largeScreen = false;
var mediumScreen = false;
var  smallScreen = false;
var screenSizeDivide = 1152;

var br_longname = navigator.appVersion;
// '5.0 (X11; en-US)' for Mozilla,
// '5.0 (compatible; Konqueror/3.1; Linux)'; substring(17:26) = 'Konqueror' for Konqueror;
// '4.0 (compatible; MSIE 5.5; Windows 98; Hotbar 4.1.8.0; DT)'; substring(17:26) = 'MSIE 5.5' for Windows IE;
// '4.76 [de] (X11; U; Linux 2.4.0-4GB i686)'; substring(17:26) = '; Linux ' for Netscape 4.76
var br_name = br_longname.substring(17,26); // = 'MSIE 5.5' for Spica-Win98
//document.writeln("br_longname = '" + br_longname + "';  br_name = '" + br_name + "' <BR>");
if (br_name.indexOf("MSIE") >=0) isMSIE = true;
//document.writeln("<p>Bildschirmaufl&ouml;sung: " + screen.width + "&times;" + screen.height + "; Farbtiefe: " + screen.colorDepth + "</p>");
if 	  (screen.width  > screenSizeDivide)  largeScreen = true;
else if (screen.width == screenSizeDivide) mediumScreen = true;
else 													  smallScreen = true;

