//#########################################
// © 2004 Ralf H. Schübel / www.ad1.de
// jegliche Änderung am Quellcode dieses Dokumentes
// und seiner Bestandteile nur mit ausdrücklicher,
// schriftlicher Genehmigung.
//#########################################

if(top.frames.length > 0) top.location.href=self.location;

// ################################### //

USA=navigator.userAgent.toUpperCase();
ie4 = (document.all) ? 1 : 0
dom = (document.getElementById) ? 1 : 0
ie4 = (dom) ? 0 : 1
n4 = ((USA.indexOf("MOZILLA/4") >= 0) && (navigator.appName=="Netscape")) ? 1 : 0
n6 = (USA.indexOf("GECKO") > 0) ? 1 : 0
// if(ie4)dom=0; if(ie4)alert(ie4)

// ################################### //
if(!window.wwi && window.innerWidth) {
 window.onresize = reget;
	wwi = wiwi();
	whi = wihi()
}
// ################################### //
function prep(pObj,pSrc){
	if(document.images){
		eval(pObj+' = new Image()')
		eval(pObj+'.src = "'+pSrc+'"')
	}
}
prep("arrx", "../p/gripx.gif")
prep("arro", "../p/gripo.gif")

function mo(jo){
	document.images.arrev.src = eval("arr"+jo).src
}

// ################################### //

jetzt = new Date();
TagInWoche = jetzt.getDay();
var Wochentag = new Array("Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag");
Tag = jetzt.getDate();
then = new Date(2002,8,11,21,0,0);
X = then.getTime();
bisX = X - jetzt.getTime();

// ################################### //

gdly = 444 
sph = "<img src=\"../p/bl.gif\" width=\"1\" height=\"5\" alt=\"\">"
scah = screen.availHeight
scaw = screen.availWidth
go = "no"

wid = 624
hioffs = 20
wwi = 0
whi = 0
dboh = 0
agit = "x"

function wop(dok, we, ho, winame){
	li = (scaw-we)/4
	ob = (scah-ho)/4
	eval("window.open\(\""+dok+"\",\""+winame+"\",\"scrollbars=no,status=no,width="+we+",height="+ho+",left="+li+",top="+ob+"\"\)");
}

// ################################### //



// ################################### //
function wiwi() {
	if (window.innerWidth) return window.innerWidth;
	else if (document.body && document.body.offsetWidth) return document.body.offsetWidth;
	else return 0;
}

function wihi() {
	if (window.innerHeight) return window.innerWidth;
	else if (document.body && document.body.offsetHeight) return document.body.offsetHeight;
	else return 0;
}

function reget(){
	if (wwi !=wiwi() || whi != wihi())
	window.history.go(0);
}

// ###################################### //
function getMouseXY(e) {
	if (ie4) {
		x = event.clientX + document.body.scrollLeft
		y = event.clientY + document.body.scrollTop
		} else {
		x = e.pageX
		y = e.pageY
	}
	if (x < 0){x= 0}
	if (y < 0){y = 0}
	return true
}

// ###################################### //

maytog = 1;

function tog(){
	var to = (menu==1) ? "hidden" : "visible";
	var ot = (menu==1) ? "visible" : "hidden";
	maytog = (menu==1) ? 0 : 1 ;
	for(var i=0; i<10; i++){
		if(dom) document.getElementById("nbg"+i).style.visibility = to;
		if(ie4) document.all["nbg"+i].style.visibility = to;
	}
	for(var i = 1; i < items.length; i++){
		if(dom) document.getElementById("nit"+i).style.visibility = to;
		if(ie4) document.all["nit"+i].style.visibility = to;
	}
	if(dom) document.getElementById("rev").style.visibility = ot;
	if(ie4) document.all["rev"].style.visibility = ot;
	menu = (to=="hidden") ? 0 : 1 ;
}

// ###################################### //

function soontog(){
	if(maytog==1)window.setTimeout("tog()",111);
}

// ###################################### //

function colit(ci){
	if(dom) document.getElementById("sp"+ci).style.color = "#ff8000";
	if(ie4) document.all["sp"+ci].style.color = "#ff8000";
}

function tiloc(ic){
	if(dom) document.getElementById("sp"+ic).style.color = "#ffffff";
	if(ie4) document.all["sp"+ic].style.color = "#ffffff";
}

// ###################################### //


function init() {
	document.onmousemove = mover;
	if (n4 || dom) document.captureEvents(Event.MOUSEMOVE)
	agit = pnr
}

// ###################################### //

// ###################################### //

sckeep = 0

function scsc(){



	if(ie4){
			scY = document.body.scrollTop
			lev = 	parseInt(document.all.redII.style.top)+10
			loffs = scY-lev
			histp = Math.floor((loffs)/4)
			if(dboh>312){	document.all.redII.style.top = (scY>166) ?  lev+histp : 165 }
			document.all.ttp.style.visibility = (scY>166) ? "visible" : "hidden"
	}

	if(dom){
			scY = document.body.scrollTop
			lev = 	parseInt(document.getElementById("redII").style.top)+10
			loffs = scY-lev
			histp = Math.floor((loffs)/4)
			if(dboh>312){	document.getElementById("redII").style.top = (scY>166) ?  lev+histp : 165 }
			document.getElementById("ttp").style.visibility = (scY>166) ? "visible" : "hidden"
	}

	if(n4){
			scY = pageYOffset
			lev = 	parseInt(document.redII.top)+10
			loffs = scY-lev
			histp = Math.floor((loffs)/4)
			if(dboh>312){	document.redII.top = (scY>166) ?  lev+histp : 165 }
			document.redII.document.kodat.document.ttp.visibility = (scY>166) ? "show" : "hide"
	}

	sckeep = scY

}

// ###################################### //

var sag = "";

function ie4click(){
		if (ie4)	{
		void(sag);
		return false;
		}
}

function nclick(e){
		if(n4||n6)	{
			if (e.which==2||e.which==3){
				void(sag);
				return false;
			}
		}
}

if (n4) {
	document.captureEvents(Event.MOUSEDOWN);
	document.onmousedown=nclick;
} else {
	document.onmouseup=nclick;
	document.oncontextmenu=ie4click;
}
document.oncontextmenu=new Function("return false")

// ###################################### //

// ###################################### //

cycle = new Array("c00", "c10", "c11", "c20", "c30", "c40", "c50", "c51", "c52", "c60", "c70", "c80", "c90")

function goon(tw){
/*
if(!n4){
	if(window.name!=1){
	alert("...most Browsers will allow you to use\nthis function also by pressing the \ncursor-(arrow-) keys 'left' or 'right'...")
	window.name = 1
	}
}

if(to==-1&&pnr!=0){
	(n4) ? document.arrow.document.images["arL"].src = arLi.src : document.images["arL"].src = arLi.src
}
if(to==1&&pnr!=0){
	(n4) ? document.arrow.document.images["arR"].src = arLi.src : document.images["arR"].src = arRe.src
}
*/
	go = cyc+tw
	if(go==0)go=(cycle.length-1); if(go==cycle.length)go=1
	this.location.href = ""+cycle[go]+".php";

}

// ###################################### //

function meld(ung, onoff){
	document.getElementById(ung).style.visibility = (onoff == 1) ? "visible" : "hidden";
}

// ###################################### //
