function Is(){
var agent		= navigator.userAgent.toLowerCase();
this.major		= parseInt(navigator.appVersion);
this.minor		= parseFloat(navigator.appVersion);
this.dom		= document.getElementById?1:0;
this.k			= (agent.indexOf('konqueror') != -1);
this.ko			= (this.k && Number(agent.substring(agent.indexOf('konqueror') + 10,agent.indexOf('konqueror') + 13)) > 3);
this.ns			= ((agent.indexOf('mozilla') != -1) && ((agent.indexOf('spoofer') == -1) && (agent.indexOf('compatible') == -1)));
this.ns0		= (this.ns && this.major < 5);
this.ns5		= (this.dom && this.ns && this.major == 5);
this.safari		= (agent.indexOf('safari') != -1);
this.ie			= (agent.indexOf('msie') != -1);
this.ie0		= (this.ie && agent.indexOf('msie 5') == -1 && agent.indexOf('msie 6') == -1);
this.ie5		= (this.ie && agent.indexOf('msie 5') != -1);
this.ie6		= (this.ie && agent.indexOf('msie 6') != -1);
this.o			= (agent.indexOf('opera') != -1);
this.op			= (this.o && Number(agent.substring(agent.indexOf('opera') + 6,agent.indexOf('opera') + 9)) > 7);
this.win95		= (agent.indexOf('win') != -1 && agent.indexOf('95') != -1);
this.win98		= (agent.indexOf('win') != -1 && agent.indexOf('98') != -1);
this.winnt		= (agent.indexOf('win') != -1 && agent.indexOf('nt') != -1 && agent.indexOf('4.0') != -1);
this.win2k		= (agent.indexOf('win') != -1 && agent.indexOf('nt') != -1 && agent.indexOf('5.0') != -1);
this.winxp1		= (agent.indexOf('win') != -1 && agent.indexOf('nt') != -1 && agent.indexOf('5.1') != -1);
this.winxp2		= (agent.indexOf('win') != -1 && agent.indexOf('nt') != -1 && agent.indexOf('5.2') != -1);
this.unix		= (agent.indexOf("X11")!= -1);
this.linux		= (agent.indexOf('linux') !=- 1);
this.mac		= (agent.indexOf('mac') != -1 || agent.indexOf('macppc') != -1 || agent.indexOf('mac_powerpc') != -1);
this.badmacie	= (this.mac && this.ie);
this.en			= ((this.safari || this.ns5 || this.ie6 || this.ie5 || this.op) && !this.badmacie);
}
var is = new Is();

if(document.images){
	m = new Array();
	m[1] = new Image();
	m[1].src = "layout/floss1.gif";
	m[2] = new Image();
	m[2].src = "layout/floss2.gif";
	m[3] = new Image();
	m[3].src = "layout/tram1.gif";
	m[4] = new Image();
	m[4].src = "layout/tram2.gif";
	m[5] = new Image();
	m[5].src = "layout/kontakt1.gif";
	m[6] = new Image();
	m[6].src = "layout/kontakt2.gif";
	
	f = new Array();
	f[0] = new Image();
	f[0].src = "layout/f0.gif";
	f[1] = new Image();
	f[1].src = "layout/f1.gif";
	f[2] = new Image();
	f[2].src = "layout/f2.gif";
	f[3] = new Image();
	f[3].src = "layout/f3.gif";
	f[4] = new Image();
	f[4].src = "layout/f4.gif";
	f[5] = new Image();
	f[5].src = "layout/f5.gif";
	f[6] = new Image();
	f[6].src = "layout/f6.gif";
	f[7] = new Image();
	f[7].src = "layout/f7.gif";
	f[8] = new Image();
	f[8].src = "layout/f8.gif";
	f[9] = new Image();
	f[9].src = "layout/f9.gif";
	f[10] = new Image();
	f[10].src = "layout/f10.gif";
	f[11] = new Image();
	f[11].src = "layout/f11.gif";
	f[12] = new Image();
	f[12].src = "layout/f12.gif";
	f[13] = new Image();
	f[13].src = "layout/f13.gif";
	f[14] = new Image();
	f[14].src = "layout/f14.gif";
	f[15] = new Image();
	f[15].src = "layout/f15.gif";
	f[16] = new Image();
	f[16].src = "layout/f16.gif";
	}

function pull(klapp){
if(document.images)document.images.mask.src = f[klapp].src;
}

function roll(icon,klapp){
if(document.images)icon.firstChild.src = m[klapp].src;
}

moses = 0;

function start(e){
wiese = document.getElementsByTagName('A');
for(w = 0 ; w < wiese.length ; w++){
	if(wiese[w].parentNode.parentNode.className == 'intro'){
		grashalm = wiese[w].innerHTML;
		wurzel = document.createTextNode(grashalm );
		wiese[w].parentNode.insertBefore(wurzel, wiese[w]);
		wiese[w].parentNode.removeChild(wiese[w]);
		}
	}
if(self.location.href.toString().indexOf('.html') == -1){
	drops = '<DIV ID="paternoster"><DIV>';
	for(i = 0 ; i < 17 ; i++){
		drops += '<IMG SRC="layout/f' + i + '.gif" ALT="" BORDER="0" HEIGHT="56" WIDTH="244">';
		}
	drops += '</DIV></DIV>';
	document.getElementById('logo').innerHTML = drops + document.getElementById('logo').innerHTML;
	myPater = document.getElementById('paternoster').firstChild;
	moses = 1;
	intro();
	}
}

animator = animatorA = animatorB = 1;

function intro(arg){
if(animatorA < 17){
	if(animator > 80)myPater.style.marginTop = 0 - (animatorA * 56);
	animatorA ++;
	hui = window.setTimeout('intro()',50);
	}
else{
	myPater.style.marginTop = 0;
	if(animatorB <= 3){
		if(animatorB == 1)pull(0);
		if(animator > 80)document.images['m' + animatorB].src = m[animatorB * 2].src;
		animatorB ++;
		hui = window.setTimeout('intro()',250);
		}
	else{
		for(i = 1 ; i < 4 ; i++){
			document.images['m' + i].src = m[(i * 2) - 1].src;
			}
		animatorA = animatorB = 1;
		hui = window.setTimeout('intro()',500);
		}
	}
}

function checkEvt(e){
if(moses == 1){
	if(is.ns){
		animator = e.pageY;
		}
	if(is.ie || is.op){
		animator = window.event.clientY;
		}
	}
}

window.onload = start;
if(document.images && self.location.href.toString().indexOf('.html') == -1)document.onmousemove = checkEvt;