// javascript DHMTL - funktionen// author: alexander stier, comfacts - cuti & stier gbr// datum: 15.06.2001var isNav4 = false;var isNav6 = false;var isGood = false;var lastMenu = new Array(3);var activeMenu = new Array(1);lastMenu[0] = "";activeMenu[0] = "";setmenu="";var clipTop = 0;var clipWidth = 300;var clipBottom = 256;var topper = 123;var lyrheight = 0;var time,amount,theTime,theHeight,DHTML;if (parseInt(navigator.appVersion) >= 4){	if (navigator.appName.indexOf("Netscape") != -1 && parseInt(navigator.appVersion) >= 4 && parseInt(navigator.appVersion) < 5 ) isNav4 = true;	if (navigator.appName.indexOf("Netscape") != -1 && parseInt(navigator.appVersion) >= 5) isNav6 = true;	if (document.all) isGood = true;}if (isNav4 = true){clipTop = 0;clipWidth = 300;clipBottom = 256;topper = 123;lyrheight = 0;}function writeStylesheet(){	if (document.layers) document.write("<link href=\"styles/pc_ns4x.css\" rel=\"stylesheet\" type=\"text/css\">");	if (!document.layers) document.write("<link href=\"styles/pc_ie_ns6.css\" rel=\"stylesheet\" type=\"text/css\">");	return;}	function watching(){  location.reload();  window.onresize = watching;}function writeImage(bild,height,rest){	document.write("<img src='" + bild + "' border='0' height='" + height + "' width='" + (getWidth() - rest) + "'>");}function writeImageHeight(bild,width,rest){	document.write("<img src='" + bild + "' border='0' height='" + (getHeight() - rest) + "' width='" + width + "'>");}function rolloverInDiv(Div,Bild){	if (setmenu != Bild)	{		if (isNav4)		{			with (document.layers[Div].document.images[Bild])			src = (src.indexOf("aus") != -1) ? src.replace(/aus/, "an") : src.replace(/an/, "aus");		}		else		{			rollover(Bild);		}	}}function rollover(Bild){	if (setmenu != Bild)	{		with (document.images[Bild])		src = (src.indexOf("aus") != -1) ? src.replace(/aus/, "an") : src.replace(/an/, "aus");	}}function clickreset(Bild){	if (Bild != setmenu)	{		setmenu_help = setmenu;		setmenu = "";		rollover(setmenu_help);	}}function getHeight(){	var height;	(isGood) ? height = document.all.tags("body")[0].offsetHeight : height = window.innerHeight;	return height;}function getWidth(){	var width;	(isGood) ? width = document.all.tags("body")[0].offsetWidth : width = window.innerWidth;	return width;}function prepLyr(){	DHTML = (document.getElementById || document.all || document.layers)	if (!DHTML) return;	var x = new getObj('example');	if (document.layers)	{		lyrheight = x.style.clip.bottom;		lyrheight += 20;		x.style.clip.top = clipTop;		x.style.clip.left = 0;		x.style.clip.right = clipWidth;		x.style.clip.bottom = clipBottom;	}	else if (document.getElementById || document.all)	{		lyrheight = x.obj.offsetHeight;		x.style.clip = 'rect('+clipTop+' '+clipWidth+' '+clipBottom+' 0)'	}}function scrollayer(layername,amt,tim){	if (!DHTML) return;	thelayer = new getObj(layername);	if (!thelayer) return;	amount = amt;	theTime = tim;	realscroll();}function stopScroll(){	if (time) clearTimeout(time);}function realscroll(){	if (!DHTML) return;	clipTop += amount;	clipBottom += amount;	topper -= amount;	if (clipTop < 0 || clipBottom > lyrheight)	{		clipTop -= amount;		clipBottom -= amount;		topper += amount;		return;	}	if (document.getElementById || document.all)	{		clipstring = 'rect('+clipTop+' '+clipWidth+' '+clipBottom+' 0)'		thelayer.style.clip = clipstring;		thelayer.style.top = topper;	}	else if (document.layers)	{		thelayer.style.clip.top = clipTop;		thelayer.style.clip.bottom = clipBottom;		thelayer.style.top = topper;	}	time = setTimeout('realscroll()',theTime);}function vis(val){	if (!DHTML) return;	var f = new getObj('example');	f.style.visibility = val;}function getObj(name){  if (document.getElementById)  {    this.obj = document.getElementById(name);	this.style = document.getElementById(name).style;  }  else if (document.all)  {    this.obj = document.all[name];	this.style = document.all[name].style;  }  else if (document.layers)  {   	this.obj = document.layers[name];   	this.style = document.layers[name];  }}
