//Folgendes kann angepasst werden
var yourLogo = "TEST";  //Mehr als 2 Zeichen!
var logoFont = "Arial";
var logoColor = "#ffffff";
var xpos = 70;
var ypos = 25;
//ab hier nichts mehr ändern!
var L=0;
var TrigSplit = 0; 360 / L;
ie= new Array()
Sz = new Array()
var logoWidth = 75;
var logoHeight = -30;
var step = 0.03;
var currStep = 0;

function InitLogo(yourLogo){
//Wenn Länge kleiner als 50, Zeichen ergänzen
L=yourLogo.length;
if (L<50) {
	for(i=L;i<49;i++){
	L=L+1;
	yourLogo=yourLogo+' ';}
}
//String trennen
yourLogo = yourLogo.split('');
TrigSplit = 360 / L;
//HTML schreiben.....................................................
document.write('<div id="outer" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i = 0; i < L; i++) {
document.write('<div id="ie'+i+'" style="position:absolute;top:0px;left:0px;'
+'width:10px;height:10px;font-family:'+logoFont+';font-size:12px;'
+'color:'+logoColor+';text-align:center">'+yourLogo[i]+'</div>');
document.write('</div></div>');
}
//Divider in Feld übertrage.....................................................
for (i = 0; i < L; i++) {
	ie[i]=document.getElementById('ie'+i);
	Sz[i]=12;
}	
//Test auf browser (Eigentlich nicht nötig, nur Info)...................
var bname = navigator.userAgent.toLowerCase();
//InternetExplorer
var iex = (bname.indexOf("msie")>-1);
// Netscape Hier kann nicht nur auf mozilla überprüft werden, da andere Browser diese Zeichenkette auch oft angeben
var netscape = (bname.indexOf("mozilla") >=-1 && bname.indexOf("msie")==-1 && bname.indexOf("opera") == -1);
//Hier wird ausgegeben was wir angenommen haben
//if (netscape) { document.write ("Es ist ein Netscape");} 
//if (iex) {document.write ("Es ist ein InternetExplorer!");}

//function Mouse() {
//ypos = event.y;
//xpos = event.x - 5;
//}
//document.onmousemove=Mouse;

}

function animateLogo() {
outer.style.pixelTop = document.body.scrollTop;
for (i = 0; i < L; i++) {
	ie[i].style.top = ypos + logoHeight * Math.sin(currStep + i * TrigSplit * Math.PI / 180);
	ie[i].style.left = xpos + logoWidth * Math.cos(currStep + i * TrigSplit * Math.PI / 180);
	Sz[i] = parseInt(ie[i].style.top) - ypos;
	if (Sz[i] < 5) Sz[i] = 5;
	ie[i].style.fontSize = Sz[i] / 1.7;
}
currStep -= step;
setTimeout('animateLogo()', 20);
}
window.onload = animateLogo;

