<!--
//Browsercheck
function fLibBwCheck(){ 
	this.ver=navigator.appVersion;
	this.agent=navigator.userAgent;
	this.dom=document.getElementById?1:0;
	this.opera = this.agent.indexOf("Opera")>-1;
	this.opera5=this.agent.indexOf("Opera 5")>-1;
	this.opera8 = (this.agent.indexOf("Opera 8") != -1 || this.agent.indexOf("Opera/8") != -1);
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera)?1:0; 
	this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera)?1:0;
	this.ie4=(document.all && !this.dom && !this.opera)?1:0;
	this.ie=this.ie4||this.ie5||this.ie6
	this.mac=this.agent.indexOf("Mac")>-1
	this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0; 
	this.ns4=(document.layers && !this.dom)?1:0;
	this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5 || this.opera8)
	return this
}
var bw=new fLibBwCheck()
//Umleitung für Netscape Comunicator 4.x
if (bw.ns4){
//	document.location = "http://www.achtbit.com";
	alert("Der von Ihnen verwendete Browser ist zu veraltet, um diese Seite anzeigen zu können.\n"+
		  "Bitte installieren Sie einen Browser der neueren Generation. Einen sehr guten, kostenlosen Browser finden Sie unter:"+
		  "http://www.getfirefox.com");
}

//If you want it to move faster you can set this lower, it's the timeout:
var speed = 10;
//Maximum height of the scroll-layer
var lhi = 256;

//Sets variables to keep track of what's happening
var loop, timer

//Object constructor
function fMakeObj(pObj,pNest){
    pNest=(!pNest) ? "":'document.'+pNest+'.';
	this.el=bw.dom?document.getElementById(pObj):bw.ie4?document.all[pObj]:bw.ns4?eval(pNest+'document.'+pObj):0;
  	this.css=bw.dom?document.getElementById(pObj).style:bw.ie4?document.all[pObj].style:bw.ns4?eval(pNest+'document.'+pObj):0;
	this.scrollHeight=bw.ns4?this.css.document.height:this.el.offsetHeight;
	this.clipHeight=bw.ns4?this.css.clip.height:this.el.offsetHeight;
	this.up=fGoUp;
	this.down=fGoDown;
	this.moveIt=fMoveIt; 
	this.x=0; 
	this.y=0;
    this.obj = pObj + "Object"
    eval(this.obj + "=this")
    return this
}

function fShowScroller(pNest,pScrlay){
    this.css=bw.dom?document.getElementById(pScrlay).style:bw.ie4?document.all[pScrlay].style:bw.ns4?eval(pNest+'document.'+pScrlay):0;
	if ((pNest.scrollHeight > 0) && (pNest.scrollHeight < lhi)) {
	    this.css.visibility = "hidden";
  	}else{
	    this.css.visibility = "visible";
	}
	return true;
}

// A unit of measure that will be added when setting the position of a layer.
var px = bw.ns4||window.opera?"":"px";

function fMoveIt(x,y){
	this.x = x;
	this.y = y;
	this.css.left = this.x+'px';
	this.css.top = this.y+'px';
}

//Makes the object go up
function fGoDown(pMove){
	if (this.y>-this.scrollHeight+oCont.clipHeight){
		this.moveIt(0,this.y-pMove)
			if (loop) setTimeout(this.obj+".down("+pMove+")",speed)
	}
}
//Makes the object go down
function fGoUp(pMove){
	if (this.y<0){
		this.moveIt(0,this.y-pMove)
		if (loop) setTimeout(this.obj+".up("+pMove+")",speed)
	}
}

//Calls the scrolling functions. Also checks whether the page is loaded or not.
function fScroll(pSpeed){
	if (scrolltextLoaded){
		loop = true;
		if (pSpeed>0) oScroll.down(pSpeed)
		else oScroll.up(pSpeed)
	}
}

//Stops the scrolling (called on mouseout)
function fNoScroll(){
	loop = false;
	if (timer) clearTimeout(timer);
}
//Makes the object
var scrolltextLoaded = false;
function fScrollTextInit(){
	oCont = new fMakeObj('divscroll')
	oScroll = new fMakeObj('divtext','divscroll')
	oScroll.moveIt(0,0)
	oCont.css.visibility = "visible"
	fShowScroller(oScroll,'divscrimg');
	scrolltextLoaded = true;
}

// Menüfunktionen
function fPreloadImages(){
	var d=document;
	if(d.images){
		if(!d.MM_p) d.MM_p=new Array();
		var i, j=d.MM_p.length, a=fPreloadImages.arguments;
		for(i=0; i<a.length; i++){
			if (a[i].indexOf("#")!=0){
				d.MM_p[j]=new Image;
				d.MM_p[j++].src=a[i];
			}
		}
	}
}

function fSwapImgRestore(){
  var img = document.vImg;
  img.src = img.oSrc;
}

function fSwapImage(pID){
	var img = bw.dom?document.getElementById(pID):0;
	document.vImg = img;
	if (!img.oSrc){
		img.oSrc = img.src;
	}
	img.src = img.src.replace('_0.gif','_1.gif');
}

//Submenüs
//var globShowBox = new Array();
function fSelectBox(pID,pHide) {
	var list = bw.dom?document.getElementById("submenue"+pID):0;
	
//	globShowBox[pID] = !globShowBox[pID];
//	if (!globShowBox[pID]){
	if (pHide){
		list.style.visibility = "hidden";
	}else{
		list.style.visibility = "visible";
	}
}

window.selHideBoxTimer = new Array();
var selDHFlag = new Array();
var selStart;

function fClearTimeout(pID) {
	if (selHideBoxTimer["submenue"+pID]){
		clearTimeout(selHideBoxTimer["submenue"+pID]);
	}
	selHideBoxTimer["submenue"+pID] = null;
	selDHFlag["submenue"+pID] = false;
}

function fStartTimeout(pID) {
	selStart = new Date();
	selDHFlag["submenue"+pID] = true;
	selHideBoxTimer["submenue"+pID] = setTimeout("fDoHide("+pID+")", 1000);
}

function fDoHide(pID) {
	if (!selDHFlag["submenue"+pID]){
		return;
	}
	var elapsed = new Date() - selStart;
	var timeout = 1000;
	if (elapsed < timeout) {
		selHideBoxTimer["submenue"+pID] = setTimeout("fDoHide("+pID+")", timeout+100-elapsed);
		return;
	}
	selDHFlag["submenue"+pID] = false;
	fSelectBox(pID,true);
/*	if (globShowBox[pID]){
		fSelectBox(pID);
	}*/
}

// PopUp-Fenster für Zeitstrahl
function fPopPhoto(bildurl,b,h){
	var eigenschaft,sbreite,shoehe,fenster,b,h;
	
	// stellt die Bildschirmabmessungen fest
	// find window size
	if(bw.ns6||bw.ns4) {
		sbreite = innerWidth;
		shoehe = innerHeight;
	}else if(bw.ie) {
		sbreite = document.body.clientWidth;
		shoehe = document.body.clientHeight;
	}
	
	x = (sbreite-b)/2;
	y = (shoehe-h)/2;
	
	eigenschaften="left="+x+",top="+y+",screenX="+x+",screenY="+y+",width="+b+",height="+h+",menubar=no,toolbar=no";
	
	window.open("slide.php?url="+bildurl,"",eigenschaften);
}

function fPopVideo(videourl,b,h){
	var eigenschaft,sbreite,shoehe,fenster,b,h;
	
	// stellt die Bildschirmabmessungen fest
	// find window size
	if(bw.ns6||bw.ns4) {
		sbreite = innerWidth;
		shoehe = innerHeight;
	}else if(bw.ie) {
		sbreite = document.body.clientWidth;
		shoehe = document.body.clientHeight;
	}
	
	x = (sbreite-b)/2;
	y = (shoehe-h)/2;
	
	eigenschaften="left="+x+",top="+y+",screenX="+x+",screenY="+y+",width="+b+",height="+h+",menubar=no,toolbar=no";
	
	window.open(videourl,"",eigenschaften);
}

function fPopText(name,scrollbar,pheight,pwidth)
{
  var breite = pwidth?pwidth:500;
  var height = pheight?pheight:650;
  if (scrollbar == "yes") breite += 19;
  var now = new Date();
  // stellt die Bildschirmabmessungen fest
  // find window size
  if(bw.ns6||bw.ns4) {
	sbreite = innerWidth;
	shoehe = innerHeight;
  }else if(bw.ie) {
	sbreite = document.body.clientWidth;
	shoehe = document.body.clientHeight;
  }
  x = (sbreite-breite)/2;
  y = (shoehe-height)/2;
  
  window.open(name,"popup"+now.getTime(),"toolbar=no,menubar=no,scrollbars="+scrollbar+",resizable=no,left="+x+",top="+y+",screenX="+x+",screenY="+y+",width="+breite+",height="+height);
}

//-->