add = 0;

positionen = new Array (36, 132, 228, 324, 420, 516, 612);
bewegung = new Array (36, 82, 128, 174, 220, 266, 312);
numpos = new Array (0, 1, 2, 3, 4, 5, 6);

information = new Array ("Hauptseite", "Zahn&auml;rztliche Chirurgie", "Implantologie &amp; Implantatbehandlung", "Dermatologische Chirurgie, Tumorbehandlung", "&Auml;sthetische Operationen", "Die Praxis &sdot; Das Team", "Adresse &sdot; Anfahrtskizze");

function Menuposition (x) {
faktor = x/1000;
	if (isNaN(x)) {} else
for ( i = 0; i <= (positionen.length-1); i++) {
	positionen[i] = Math.floor(positionen[i] * faktor);
	document.getElementById("menu_"+(i+1)).style.display = "inline";
				}
window.setTimeout("verschieben()", 222);
}

function verschieben () {
var proof = 1;
for ( i = 0; i <= (positionen.length-1); i++) {
var j = numpos[i];
	if ( positionen[j] > bewegung[j] ) {
		bewegung[j]++;
		proof = 0; }
		document.getElementById("menu_"+(j+1)).style.left = bewegung[i] + "px";
	}
if ( proof == 0 )
window.setTimeout("verschieben()", 1); else aufhellen();
}

function aufhellen () {
document.getElementById("b" + (numpos[0]+1)).src = "essen-implantatzentrum/Bilder/Menupunkte/hell/" + (numpos[0]+1) + ".gif";
clickcount++;
}

function ordnen (n) {
DieFarbe = Rotfarbe;
mm = n;
var fi;
for (i = 0; i < positionen.length; i++)
	if ( numpos[i] == n ) fi = i;

for ( i = 0; i < fi; i++) {
numpos[fi-i] = numpos[fi-i-1];
	bewegung[fi-i] = bewegung[fi-i-1];
		}

	numpos[0] = n;

for ( i = 0; i <= (positionen.length-1); i++) {
	document.getElementById("b" + (i+1)).src = "essen-implantatzentrum/Bilder/Menupunkte/dunkel/" + (i+1) + ".gif";
		}

untermenu(n);
	verschieben ();
}

function InfoAn (info) {
document.getElementById("erlaeuterung").innerHTML = "<center><h3>" + information[info] + "</h3></center>";
	if (window.innerWidth) {
		if (weite != window.innerWidth) neuladen();
	} else
	if (document.body && document.body.offsetWidth) {
		if (weite != document.body.offsetWidth) neuladen();
	}
}

function InfoAus () {
document.getElementById("erlaeuterung").innerHTML = "";
}

function neuladen () {
top.location = "?value=" + meng;
}
