	// 2003 by Stefan Wild
	
	userAgent = navigator.userAgent.toLowerCase();
	n4 = document.layers;
	ie = (document.all && userAgent.indexOf("mac")<0);
	w3c = document.documentElement;
	dhtml = ((n4 || ie || w3c) &&  userAgent.indexOf("aol")<0);
	
	function Fahrer(name, id, x, y, w, h, delay) {
		this.name = name;
		this.x = x;
		this.y = y;
		this.w = w;
		this.h = h;
		this.posx = x;
		this.posy = y;
		if (this.w > this.x) {
			this.factorx = true;
		}
		else {
			this.factorx = false;
		}
		if (this.h > this.y) {
			this.factory = true;
		}
		else {
			this.factory = false;
		}
		this.stepx = (w - x) / 200;
		this.stepy = (h - y) / 200;
		this.el = n4? document.layers[id] : ie? document.all[id] : document.getElementById(id);
		this.css = n4? this.el : this.el.style;
		this.delay = delay;
		this.fahrt = Fahren;
		this.css.left = this.x;
		this.css.top = this.y;
	}
	
	function Fahren() {
		this.timer = setTimeout(this.name+".fahrt()", this.delay);
		if (((this.posx <= this.w) && this.factorx) || (!(this.posx <= this.w) && !this.factorx)){
			this.posx += this.stepx;
		}
		else {
			this.posx = this.x;
			if (this.x != this.w) {
				this.posy = this.y;
			}
		}

		if (((this.posy <= this.h) && this.factory) || (!(this.posy <= this.h) && !this.factory)) {
			this.posy += this.stepy;
		}
		else {
			this.posy = this.y;
			if (this.y != this.h) {
				this.posx = this.x;
			}
		}

		this.css.left = this.posx;
		this.css.top = this.posy;
	}
	
	function init() {
		if (!dhtml) return;
		fahrer1 = new Fahrer("fahrer1", "test1", 538, -50, 538, 500, 60);
		fahrer2 = new Fahrer("fahrer2", "test2", -27, 283, 950, 283, 55);
		fahrer3 = new Fahrer("fahrer3", "test3", 1030, 92, 0, 341, 70);
		fahrer4 = new Fahrer("fahrer4", "test4", 0, 340, 1030, 91, 75);

		setTimeout("fahrer1.fahrt()", 2000);
		setTimeout("fahrer2.fahrt()", 5000);
		setTimeout("fahrer3.fahrt()", 10000);
		setTimeout("fahrer4.fahrt()", 500);
	}

