// Archivart// Browser-Check	var agt=navigator.userAgent.toLowerCase();	var is_mac= (agt.indexOf("mac")!=-1);// Note: On IE5, these return 4, so use is_ie5up to detect IE5.    var is_major = parseInt(navigator.appVersion);    var is_minor = parseFloat(navigator.appVersion);// Note: Opera and WebTV spoof Navigator.  We do strict client detection.// If you want to allow spoofing, take out the tests for opera and webtv.    var is_nav  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1)                && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1)                && (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1));    var is_nav2 = (is_nav && (is_major == 2));    var is_nav3 = (is_nav && (is_major == 3));    var is_nav4 = (is_nav && (is_major == 4));    var is_nav4up = (is_nav && (is_major >= 4));    var is_navonly      = (is_nav && ((agt.indexOf(";nav") != -1) ||                          (agt.indexOf("; nav") != -1)) );    var is_nav6 = (is_nav && (is_major == 5));    var is_nav6up = (is_nav && (is_major >= 5));    var is_gecko = (agt.indexOf('gecko') != -1);    var is_ie     = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));    var is_ie3    = (is_ie && (is_major < 4));    var is_ie4    = (is_ie && (is_major == 4) && (agt.indexOf("msie 5")==-1) );    var is_ie4up  = (is_ie && (is_major >= 4));    var is_ie5    = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.0")!=-1) );    var is_ie5_5  = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.5") !=-1));    var is_ie5up  = (is_ie && !is_ie3 && !is_ie4);    var is_ie5_5up =(is_ie && !is_ie3 && !is_ie4 && !is_ie5);function dObj(id) {	if (is_nav6) 	{ 			this.el = document.getElementById(id);		this.img = document.images; 		this.css = this.el.style;	}								else if (is_ie4up) 	{		this.el = document.all[id]; 		this.img = document.images; 		this.css = this.el.style;		this.breite = this.el.offsetWidth;		this.hoehe =  this.el.offsetHeight;}							else if (is_nav4up) {		this.el = document.layers[id]; 		this.img = this.el.document.images; 		this.css = this.el; 		this.breite = this.el.document.width;		this.hoehe = this.el.document.height; }		/**	this.breite = (is_ie4)? this.css.pixelWidth : this.el.offsetWidth	this.hoehe = (is_ie4)? this.css.pixelHeight : this.el.offsetHeight	alert(fensterBreite+"-"+this.css.pixelWidth+" : "+this.el.offsetWidth);       **/          		this.id = id;this.x = (!is_ie4up && !is_nav6up && !is_gecko)? parseInt(this.css.left):this.el.offsetLeft;this.y = (!is_ie4up && !is_nav6up && !is_gecko)? parseInt(this.css.top):this.el.offsetTop;   	this.zIndex = this.css.zIndex;	this.sichtbar = true;	this.gehNach = Obj_gehNach;	this.zeige = Obj_ein;	this.verstecke = Obj_aus;}	function Obj_ein() {   this.css.visibility = "visible";   this.sichtbar = true;}function Obj_aus() {   this.css.visibility = "hidden";   this.sichtbar = false;}function Obj_gehNach(x,y) {   this.css.left = x;   this.css.top = y;   this.x = x;   this.y = y;}var z = 0;var speed = 20;function schiebe() {	for (i=0;i<ebenen.length;i++) {		var distX = ebenen[i].zielx - ebenen[i].x;		var distY = ebenen[i].ziely - ebenen[i].y;		var dist = Math.sqrt(distX*distX + distY*distY);		if (Math.abs(dist) < speed){			ebenen[i].gehNach(ebenen[i].zielx,ebenen[i].ziely);			ebenen[i].status = true;			z+=1;			if (z>ebenen.length)	{				return;}   		}		if (!ebenen[i].status){			ebenen[i].gehNach(ebenen[i].x + (distX/dist)*speed, ebenen[i].y + (distY/dist)*speed);				z=0;		}	}	setTimeout("schiebe()",30);	}
