var alt="presse2";
var zaehl = 0;
alt = "";
var kiste="";

function init() 
{
	diminfos();
}


function initalt() 
{
var x, linods, anods;
var xx, y;
	x = document.getElementById("nav-hor");
	linods = x.childNodes;
	for (var i = 0; i < linods.length; i++)
	{
		if (linods[i].nodeName == 'LI')
		{
			anods = linods[i].childNodes;
			for (var ii = 0; ii < anods.length; ii++)
			{
				if (anods[ii].nodeName == 'A')
				{
					anods[ii].href += "&js=ja";
				}
			}
		}
	}
	infos();
	x = document.getElementById("ausblenden");
	x.className = "show";
}

function zeige(name) 
{
var y;
	y = document.getElementById("a_" + name);
	y.className = "obermenuhigh";
	if (zaehl > 0)
	{
		verstecke(alt);
	}
	else
	{
		y = document.getElementById("_start");
		y.className = "hide";
	}
	y = document.getElementById(name);
	y.className = "show";
	alt = name;
	zaehl++;
}

function verstecke(name) 
{
var y;
	y = document.getElementById("a_" + name);
	y.className = "";
	y = document.getElementById(name);
	y.className = "hide";
}

function diminfos() 
{
	var x, hoehe, breite, darhoehe, darbreite, farbe, os, name, browser, sprache, showwin;
	hoehe = screen.height;
	breite = screen.width;
	darhoehe = document.documentElement.clientHeight;
	darbreite = document.body.clientWidth;
	neuhoehe = window.innerHeight;
	farbe = screen.colorDepth;
	os = navigator.platform;
	name = navigator.appName;
	browser = navigator.userAgent;
	sprache = navigator.language;
//	alert (darhoehe);
	if (darhoehe > 100)
	{
//		x = document.getElementById("pdfframe");
//		x.height = darhoehe - 100;
	}
}

function infos() 
{
	var x, hoehe, breite, darhoehe, darbreite, farbe, os, name, browser, sprache, showwin;
	hoehe = screen.height;
	breite = screen.width;
	darhoehe = document.body.clientHeight;
	darbreite = document.body.clientWidth;
	farbe = screen.colorDepth;
	os = navigator.platform;
	name = navigator.appName;
	browser = navigator.userAgent;
	sprache = navigator.language;
	if (darbreite < 800)
	{
		x = document.getElementById("nav-hor");
		x.style.fontSize = '13px';
	}
}

function bewr(bild, pos) {
var x;
var y;
	x = document.getElementById(bild);
	x.style.left = '430px';
	x.style.top = pos;
}

function bewaus(bild) {
var x;
var y;
	x = document.getElementById(bild);
	x.style.left = '-4700px';
}

// ******************** nur Test ********************************************************

function w1() 
{
var x;
var y;
	x = document.getElementById("nav-hor");
	y = document.getElementById("mother");
	x.style.color = "red";
	x.style.fontSize = '200%';
	y.style.width='300px';
}

function w2() 
{
var x;
var y;
	y = document.getElementById("mother");
	x = document.getElementById("mother");
	x.style.color = "black";
	x.style.fontSize = '100%';
	y.style.width="200px";
}

function inix(kasten) {
   if (window.Event) {
      document.captureEvents(Event.MOUSEMOVE);
   }
   document.onmousemove = anix;
   kiste=kasten;
}
function initt(kasten) {
   if (window.Event) {
      document.captureEvents(Event.MOUSEMOVE);
   }
   document.onmousemove = anim;
   kiste=kasten;
}
function setzelinks(n) {
if (document.getElementById) {
      document.getElementById(kiste).style.left =
         n + 111 + "px";
   }
}
function setzeoben(n) {
if (document.getElementById) {
      document.getElementById(kiste).style.top =
         n - 111 + "px";
   }
}
function anim(e) {
   var x = (window.Event) ? e.pageX : event.clientX;
   var y = (window.Event) ? e.pageY : event.clientY;
   setzelinks(x);
   setzeoben(y);
}
function anix(e) {
   setzelinks(-4444);
   setzeoben(-4444);
}
