var ar = new Array();	// Array mit Tasten und Logos
var number;		// Anzahl Logos

function logo() {
	var d = 10;	// Sekunden Anzeige einzelnes Logo

	var dt = new Date();
	var n = (dt.getSeconds() + 60 * dt.getMinutes() + 3600 * dt.getHours()) / d;
	n = Math.floor(n % number);
	var s = "logo" + ((n < 10) ? "0" : "") + n + "0";
	if (document.images) {
		if (ar[s]) {
			document.images["logo"].src = ar[s].src;
			document.images["logo"].width = ar[s].width;
			document.images["logo"].height = ar[s].height;
			}	
		}
	window.setTimeout("logo()", d * 1000);	
	}
function switchto(name, on) {
	if (document.images) {
		if (ar[name + on]) {
			document.images[name].src = ar[name + on].src;
			}	
		}	
	}
function hello(arg) {
	if (document.images) {
		window.status = document.title;
		number = 0;
		a = ""
		if (arg) a = arg;
		for (i = 0; i < document.images.length; i++) {
			if (document.images[i].name != "") {
				n = document.images[i].name;
				w = document.images[i].width;
				h = document.images[i].height;
				ar[n + "0"] = new Image(w, h);
				if (n.substr(0, 4) != "logo") {
					ar[n + "0"].src = a + "images/n_" + n + ".gif";
					ar[n + "1"] = new Image(w, h);
					ar[n + "1"].src = a + "images/n_" + n + "1.gif";
					}
				else  {
					if (n != "logo") {
						ar[n + "0"].src = a + "images/" + n + ".gif";
						++number;
						}
					}
				}
			}
		if (number > 0) logo();
		}
	}
		
