//#########################################
// © 2002 Ralf H. Schübel / www.ad1.de
// jegliche Änderung am Quellcode dieses Dokumentes 
// und seiner Bestandteile nur mit ausdrücklicher,
// schriftlicher Genehmigung. 
//#########################################

// ################################### //
USA=navigator.userAgent.toUpperCase();
ie4 = ((USA.indexOf("MSIE 4") > 0) || (USA.indexOf("MSIE 5") > 0)  || (USA.indexOf("MSIE 6") > 0)  || (USA.indexOf("MSIE 7") > 0)  || (USA.indexOf("MSIE 8") > 0) && (USA.indexOf("Opera") < 0)) ? 1 : 0
n4 = ((USA.indexOf("MOZILLA/4") >= 0) && (navigator.appName=="Netscape")) ? 1 : 0
n6 = (USA.indexOf("GECKO") > 0) ? 1 : 0
op = (navigator.userAgent.indexOf("OPERA") > 0) ? 1 : 0
dom = 0
if(document.getElementById) dom = 1;

// ################################### //
PLAFO=navigator.platform.toUpperCase().substring(0,3);
//alert(PLAFO+" "+USA)
// ################################### //
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();
// ################################### //
scah = screen.availHeight
scaw = screen.availWidth
sch = screen.height
scw = screen.width
// ################################### //
function reget(){
if(n4){
 me = this.location.href;
 this.location.href = me;
}}
// ################################### //
function prep(pObj,pSrc){
	if(document.images){
		eval(pObj+' = new Image()')
		eval(pObj+'.src = "'+pSrc+'"')
	}
}

prep('i0o','p/willko-o.gif')
prep('i0x','p/willko-x.gif')
prep('i1o','p/welco-o.gif')
prep('i1x','p/welco-x.gif')

if(scw>=1024){
prep('p151','../p/T5ds1.jpg')
prep('p152','../p/T5ds2.jpg')
prep('p153','../p/T5ds3.jpg')

prep('UD1','../p/ud1.jpg')
prep('UD2','../p/ud2.jpg')
prep('UD3','../p/ud3.jpg')
prep('UD4','../p/ud4.jpg')
prep('UD5','../p/ud5.jpg')
prep('UD6','../p/ud6.jpg')
prep('UD7','../p/ud7.jpg')
}

if(scw<1024){
prep('p151','../p640/T5ds1.jpg')
prep('p152','../p640/T5ds2.jpg')
prep('p153','../p640/T5ds3.jpg')

prep('UD1','../p640/ud1.jpg')
prep('UD2','../p640/ud2.jpg')
prep('UD3','../p640/ud3.jpg')
prep('UD4','../p640/ud4.jpg')
prep('UD5','../p640/ud5.jpg')
prep('UD6','../p640/ud6.jpg')
prep('UD7','../p640/ud7.jpg')
}

prep('i10o','p/sto.jpg')
prep('i10x','p/stx.jpg')
prep('i11o','p/T1o.jpg')
prep('i11x','p/T1x.jpg')
prep('i12o','p/T2o.jpg')
prep('i12x','p/T2x.jpg')
prep('i13o','p/T3o.jpg')
prep('i13x','p/T3x.jpg')
prep('i14o','p/T4o.jpg')
prep('i14x','p/T4x.jpg')
prep('i15o','p/T5o.jpg')
prep('i15x','p/T5x.jpg')
prep('i16o','p/T6o.jpg')
prep('i16x','p/T6x.jpg')
prep('i17o','p/T7o.jpg')
prep('i17x','p/T7x.jpg')

go = 0
zeigo = 0
i5 = 0
ino5 = 0
var timex, loc, lco, fime;




// ################################### //
function imov(ip){
	
	loc = (pnr>=0) ? "document.toto.document.nvg.document." : "document."
	lco = "document.toto.document."
	
	if(ie4||n6) document.images["p"+ip].src = eval("i"+ip+"x.src")
	if(n4) {
		if(ip==10) document.toto.document.STAEHLE.document.images.p10.src = i10x.src
		else	eval(loc+"images.p"+ip+".src = i"+ip+"x.src")
	}
	
	if(go==1){

/*		
		if(ip!=15){
			if(ie4) eval("document.all.TP"+ip+".style.visibility = 'visible'")
			if(n4) eval(lco+"layers.TP"+ip+".visibility = 'show'")
			if(n6) eval("document.getElementById(\"TP"+ip+"\").style.visibility = 'visible'")
		}
		
		if(ip==15){
			if(ie4) eval("document.all.TP"+ip+i5+".style.visibility = 'visible'")
			if(n4) eval(lco+"layers.TP"+ip+i5+".visibility = 'show'")
			if(n6) eval("document.getElementById(\"TP"+ip+i5+"\").style.visibility = 'visible'")
		}
*/		
		
	}
	
}
// ################################### //
function imut(ip){
	pipi = ip-(Math.floor(ip/10)*10)
	
	if(pipi!=init){
		if(ie4||n6) document.images["p"+ip].src = eval("i"+ip+"o.src")
		if(n4) {
			if(ip==10) document.toto.document.STAEHLE.document.images.p10.src = i10o.src
			else	eval(loc+"images.p"+ip+".src = i"+ip+"o.src")
		}
	}
	
	if(ip==0){
		if(ie4||n6) document.images.p0.src = i0o.src
		if(n4)	document.images.p0.src = i0o.src
	}
	
	if(ip==10){
		if(ie4||n6) document.images.p10.src = i10o.src
		if(n4) document.toto.document.STAEHLE.document.images.p10.src = i10o.src
	}
	
	if(go==1){
	/*	
		if(ip!=15){
			if(ie4) eval("document.all.TP"+ip+".style.visibility = 'hidden'")
			if(n4) eval(lco+"layers.TP"+ip+".visibility = 'hide'")
			if(n6) eval("document.getElementById(\"TP"+ip+"\").style.visibility = 'hidden'")
		}
		
		if(ip==15){
			if(ie4) eval("document.all.TP"+ip+i5+".style.visibility = 'hidden'")
			if(n4) eval(lco+"layers.TP"+ip+i5+".visibility = 'hide'")
			if(n6) eval("document.getElementById(\"TP"+ip+i5+"\").style.visibility = 'hidden'")
			if(ino5==0){
				i5++
				if(i5==4) i5 = 0
			}
		}
		*/
	}
}
// ################################### //
function wop(lg){

	weite = (scw>=1024) ? 1016 : 632
	hoehe = (scw>=1024) ? 712 : 426
	Li = Math.floor(((scw-8)-weite)/2)
	Ob = Math.floor(((sch-54)-hoehe)/2)
	// alert(Ob); alert(weite); alert(hoehe); alert(Li)	
	siz = (scw>=1024) ? lg : lg+"640"

	eval("window.open(\""+siz+"/index.html\",\"CNVS\",\"scrollbars=no,toolbars=no,status=no,width="+weite+",height="+hoehe+",left="+Li+",top="+Ob+"\")")
	
}

// ################################### //
function wop2(){
	mvw = 340
	mvh = 320
	Li2 = (scaw-mvw)/2
	Ob2 = (scah-mvh)/2
	
	eval("window.open(\"Quality.html\",\"SCRN\",\"scrollbars=no,toolbars=no,status=no,width="+mvw+",height="+mvh+",left="+Li2+",top="+Ob2+"\")")
}

// ################################### //
function wopimp(){
	impw = 420
	imph = 306
	Li3 = (scaw-impw)/2
	Ob3 = (scah-imph)/2
	
	eval("window.open(\"impressum.html\",\"IMP\",\"scrollbars=yes,toolbars=no,status=no,width="+impw+",height="+imph+",left="+Li3+",top="+Ob3+"\")")
}

// ################################### //
function woprp(){
	rpw = 638
	rph = 468
	Li4 = (scaw-rpw)/2-6
	Ob4 = (scah-rph)/2-8
	
	eval("window.open(\"Quality.html\",\"RP\",\"scrollbars=no,toolbars=no,status=no,width="+rpw+",height="+rph+",left="+Li4+",top="+Ob4+"\")")
}

// ################################### //
function woprp640(){
	rpwII = 480
	rphII = 294
	Li5 = (scaw-rpwII)/2-6
	Ob5 = (scah-rphII)/2-8
	
	eval("window.open(\"Quality.html\",\"RP\",\"scrollbars=no,toolbars=no,status=no,width="+rpwII+",height="+rphII+",left="+Li5+",top="+Ob5+"\")")
}

// ################################### //

var init = 0

function intro(init){

timex = window.setTimeout("goon(init)",3333)
	
}

function 	goon(gt){

	window.clearTimeout(fime)
	if(gt!=5){
		
		if(ie4){
			document.all["TP1"+gt].style.visibility = 'hidden'
			document.all["ctnt"+gt].style.visibility = 'visible'
/**/
			if((gt==1)||(gt==3)||(gt==7)||(gt==6)){
			document.all["cont"+gt].style.zIndex = '111'
			}
			if((gt==2)||(gt==4)||(gt==5)){
			document.all["ctnt"+gt].style.zIndex = '111'
			}

		}

		if(n4){
			document.toto.document.layers["TP1"+gt].visibility = 'hide'
			if((gt==1)||(gt==3)||(gt==7)||(gt==6)){
				document.toto.document["cont"+gt].document.layers["ctnt"+gt].visibility = 'show'
				document.toto.document.layers["cont"+gt].zIndex = '111'
			}
			if((gt==2)||(gt==4)) document.toto.document.layers["ctnt"+gt].visibility = 'show'
		}

		if(n6){
			document.getElementById("TP1"+gt).style.visibility = 'hidden'
			document.getElementById("ctnt"+gt).style.visibility = 'visible'
			if((gt==1)||(gt==3)||(gt==7)||(gt==6)){
			document.getElementById("cont"+gt).style.zIndex = '111'
			}
			if((gt==2)||(gt==4)){
			document.getElementById("ctnt"+gt).style.zIndex = '111'
			}
		}
		
		if((gt==1)||(gt==3)||(gt==7)){
			if(ie4){ document.all.updwn.style.visibility = 'visible'; document.all.dwnup.style.visibility = 'visible'}
			if(n4){ document.toto.document.layers.updwn.visibility = 'show'; document.toto.document.layers.dwnup.visibility = 'show'}
			if(n6){ document.getElementById("updwn").style.visibility = 'visible'; document.getElementById("dwnup").style.visibility = 'visible'}			
		}
	}
	
	if(gt==5){
		if(ie4){
			for(i=0;i<=3;i++)
				eval("document.all.TP15"+i+".style.visibility = 'hidden'");
			document.all["ctnt"+gt].style.visibility = 'visible'
			document.all.ctnt5.style.zIndex = '111' 
		}
		if(n4){
			for(i=0;i<=3;i++)
				eval("document.toto.document.layers.TP15"+i+".visibility = 'hide'");
			document.toto.document["ctnt"+gt].visibility = 'show'
		}
		if(n6){
			for(i=0;i<=3;i++)
			document.getElementById("TP15"+i).style.visibility = 'hidden';
			document.getElementById("ctnt"+gt).style.visibility = 'visible'
			document.getElementById("ctnt"+gt).style.zIndex = '111'
		}
		
	}
	window.clearTimeout(timex)
}


// ################################### //

delay = 1
var stop = 0
halt = 0
Yh = (scw>=1024) ? 44 : 28
o = 0
r = 630
u = 465
l = 0
sti = 0
var RayL

function latein(){
		if(ie4){ document.all.ctnt0.style.visibility = 'visible'; document.all.loading.style.visibility = 'hidden'}
		if(n4){ document.toto.document.layers.ctnt0.visibility = 'show'; document.layers.loading.visibility = 'hide'}
		if(n6){ document.getElementById("ctnt0").style.visibility = 'visible'; document.getElementById("loading").style.visibility = 'hidden'}
}



var coht

function slup(stp){
		
	window.clearTimeout(RayL)
	steps = stp
	
	
	// window.status=(sti+" "+Yh)
	// steps = 1
	// if(n4) steps = 2
	// if(n6) steps = 3
	//  alert(sti+steps)
	
	if(steps>0){
		steps = (sti<-21) ? steps : (sti<-8) ? 7 : 1
		if	(sti==0) stop = 1
	}
	
	if(steps<0){
		steps = (sti>(21-coht)) ? steps : (sti>(8-coht)) ? -7 : -1
		if	(sti==-coht) stop = 1
	}
	
	
	if(stop==0){

		Yh = Yh+steps
//		o = o-steps
//		u = u-steps
		
		if(ie4){
			document.all["ctnt"+init].style.top = Yh
			
		}
		if(n4){
			document.toto.document["cont"+init].document["ctnt"+init].top = Yh
		}
		if(n6){
			document.getElementById("ctnt"+init).style.top = Yh
		}
		
		sti = sti+steps
		RayL = window.setTimeout("slup(steps)", delay)
		
	}
	
}

function zp(zpid){
	
	if(ie4) document.images.UD.src = eval("UD"+zpid+".src")
	if(n4) document.toto.document.updwn.document.images.UD.src = eval("UD"+zpid+".src")
	
	
}

function pz(){
	stop =1
	window.clearTimeout(RayL)
	if(ie4) document.images.UD.src = UD4.src
	if(n4) document.toto.document.updwn.document.images.UD.src = UD4.src
	
}

// #############################




// #############################
function zei(ge){

		if(ie4){
			document.all.ctnt0.style.zIndex = '11'
			document.all.cont1.style.zIndex = '11'
			document.all.ctnt2.style.zIndex = '11'
			document.all.cont3.style.zIndex = '11'
			document.all.ctnt4.style.zIndex = '11'
			document.all.ctnt5.style.zIndex = '11'
			document.all.cont6.style.zIndex = '11'
			document.all.cont7.style.zIndex = '11'
		}


if(zeigo==1){

	if(init!=ge){
		
		window.clearTimeout(timex)
		window.clearTimeout(fime)
		
		if(init!=5){
			if(ie4) document.all["TP1"+init].style.visibility = 'hidden'
			if(n4)	document.toto.document.layers["TP1"+init].visibility = 'hide'
			if(n6) document.getElementById("TP1"+init).style.visibility = 'hidden'			
			}


		if(n4){
			document.toto.document.layers.cont1.zIndex = '11'
			document.toto.document.layers.cont3.zIndex = '11'
			document.toto.document.layers.cont6.zIndex = '11'
			document.toto.document.layers.cont7.zIndex = '11'
		}

		if(n6){
			document.getElementById("cont1").style.zIndex = '11'
			document.getElementById("ctnt2").style.zIndex = '11'
			document.getElementById("cont3").style.zIndex = '11'
			document.getElementById("ctnt4").style.zIndex = '11'
			document.getElementById("ctnt5").style.zIndex = '11'
			document.getElementById("cont6").style.zIndex = '11'
			document.getElementById("cont7").style.zIndex = '11'
		}
		
		if(init==5){
			for(i=0;i<=3;i++){
				if(ie4) eval("document.all.TP15"+i+".style.visibility = 'hidden'")
				if(n4) document.toto.document["TP15"+i].visibility = 'hide'
			}
		}
		
		if(init==6){
			if(ie4) document.all.RP.innerHTML = ""
			if(n4){ 
/*
						document.toto.document.RP.document.open()
						document.toto.document.RP.document.write("")
						document.toto.document.RP.document.close()
*/		
	}
		}
		



		if((ge==1)||(ge==3)||(ge==7)){
			sti = 0
			steps = 0
			Yh = (scw>=1024) ? 44 : 28
			if(scw>=1024){
				if(ie4) coht = (document.all["ctnt"+ge].offsetHeight - 435)  // 435 = clipper-30
				if(n4) coht = (document.toto.document["cont"+ge].document["ctnt"+ge].clip.bottom -435)
				if(n6) coht = (document.getElementById('ctnt'+ge).offsetHeight) - 435
				if(ie4) document.all["ctnt"+ge].style.top = 44
				if(n4) document.toto.document["cont"+ge].document["ctnt"+ge].top = 44	
				if(n6) document.getElementById("ctnt"+ge).style.top = 44
			}
			if(scw<1024){
				if(ie4) coht = (document.all["ctnt"+ge].offsetHeight - 256)
				if(n4) coht = (document.toto.document["cont"+ge].document["ctnt"+ge].clip.bottom - 256)
				if(n6) coht = (document.getElementById('ctnt'+ge).offsetHeight) - 256
				if(ie4) document.all["ctnt"+ge].style.top = 28
				if(n4) document.toto.document["cont"+ge].document["ctnt"+ge].top = 28	
				if(n6) document.getElementById("ctnt"+ge).style.top = 28
			}
//	window.status=(sti+" - "+coht+" - "+(coht+sti))
		}
		
		
		if(ie4){	document.all.updwn.style.visibility = 'hidden'; document.all.dwnup.style.visibility = 'hidden'}
		if(n4){ document.toto.document.layers.updwn.visibility = 'hide'; document.toto.document.layers.dwnup.visibility = 'hide'}
			if(n6){ document.getElementById("updwn").style.visibility = 'hidden'; document.getElementById("dwnup").style.visibility = 'hidden'}
		
		
		if(ie4)	document.all["ctnt"+init].style.visibility = 'hidden'
		if(n4){
			if((init==1)||(init==3)||(init==7)||(init==6)) document.toto.document["cont"+init].document.layers["ctnt"+init].visibility = 'hide'
			if((init==0)||(init==2)||(init==4)||(init==5)) document.toto.document.layers["ctnt"+init].visibility = 'hide'
		}
		if(n6) document.getElementById("ctnt"+init).style.visibility = 'hidden'
		
		
		if(ge==5){
			for(i=0;i<=3;i++){
				if(ie4) eval("document.all.TP15"+i+".style.visibility = 'hidden'")
			}
			ino5 = 1
			i5 = -1
			five()
		}
		
		if(init!=0){
			if(ie4||n6) document.images["p1"+init].src = eval("i1"+init+"o.src")
			if(n4) {
				if(init==10) document.toto.document.STAEHLE.document.images.p10.src = i10o.src
				else	eval(loc+"images.p1"+init+".src = i1"+init+"o.src")
			}
		}
		
		if(ge!=5){
			ino5 = 0
			if(ie4) eval("document.all.TP1"+ge+".style.visibility = 'visible'")
			if(n4) eval(lco+"layers[\"TP1\"+"+ge+"].visibility = 'show'")
			if(n6) eval("document.getElementById(\"TP1"+ge+"\").style.visibility = 'visible'")
		}
		
		init = ge
		
		if(init!=5)intro(ge)
		
		go = 0
		pnr = ge
		
	}
	
}
}

// #############################



function five(){
	i5++
	if(i5==4) goon(5)
	if(i5<4){
		if(ie4) eval("document.all.TP15"+i5+".style.visibility = 'visible'")
		if(n4) eval(lco+"layers.TP15"+i5+".visibility = 'show'")
		if(n6) eval("document.getElementById(\"TP15"+i5+"\").style.visibility = 'visible'")
		fime = window.setTimeout("five()",1111)
		
		
	}
	
	
	
}



function reporter(){

rpt = ""
rpt+= "ctnt0 z-Index = " + document.all.ctnt0.style.zIndex +"\n" 
rpt+= "cont1 z-Index = " + document.all.cont1.style.zIndex +"\n" 
rpt+= "ctnt2 z-Index = " + document.all.ctnt2.style.zIndex +"\n" 
rpt+= "cont3 z-Index = " + document.all.cont3.style.zIndex +"\n" 
rpt+= "ctnt4 z-Index = " + document.all.ctnt4.style.zIndex +"\n" 
rpt+= "ctnt5 z-Index = " + document.all.ctnt5.style.zIndex +"\n" 
rpt+= "cont6 z-Index = " + document.all.cont6.style.zIndex +"\n"
rpt+= "cont7 z-Index = " + document.all.cont7.style.zIndex +"\n"


alert(rpt)

}
