
document.write('<div id="SternenAni" style="position:absolute; width:775px; height:85px; z-index:1; overflow:hidden;" class="universum">');

SmallStars = 30; 
LargeStars = 10;
SmallYpos = new Array();
SmallXpos = new Array();
LargeYpos = new Array();
LargeXpos = new Array();
Smallspeed= new Array();
Largespeed= new Array();

for (i = 0; i < SmallStars; i++) {
document.write('<div id="si'+i+'" style="position:absolute;top:0;left:0;width:1px;height:1px; font-size:1px" class="stars"></div>');
}
for (i = 0; i < LargeStars; i++) {
document.write('<div id="li'+i+'" style="position:absolute;top:0;left:0;width:2px;height:2px; font-size:2px" class="stars"></div>');
   }
   
WinHeight =85;
WinWidth = 775;

for (i = 0; i < SmallStars; i++) {
SmallYpos[i] = Math.round(Math.random() * WinHeight);
SmallXpos[i] = Math.round(Math.random() * WinWidth);
Smallspeed[i]= Math.random() * 2 + 0,5;
}
for (i = 0; i < LargeStars; i++) {
LargeYpos[i] = Math.round(Math.random() * WinHeight);
LargeXpos[i] = Math.round(Math.random() * WinWidth);
Largespeed[i] = Math.random() * 2,5 + 1,75;
}

function fly() {
WinHeight = 85;
WinWidth = 775;
hscrll = document.body.scrollTop;
wscrll = document.body.scrollLeft;

for (i = 0; i < LargeStars; i++) {
LargeXpos[i] -= Largespeed[i];
if (LargeXpos[i] < -10) {
LargeXpos[i] = WinWidth;
LargeYpos[i] = Math.round(Math.random() * WinHeight);
Largespeed[i] = Math.random() * 2,5 + 1,75;
}

document.getElementById("li"+i).style.left = LargeXpos[i]+"px";
document.getElementById("li"+i).style.top = LargeYpos[i] + hscrll+"px";

}

for (i = 0; i < SmallStars; i++) {
SmallXpos[i] -= Smallspeed[i];
if (SmallXpos[i] < -10) {
SmallXpos[i] = WinWidth;
SmallYpos[i] = Math.round(Math.random()*WinHeight);
Smallspeed[i] = Math.random() * 2,5 + 0,5;
}

document.getElementById("si"+i).style.left = SmallXpos[i]+"px";
document.getElementById("si"+i).style.top = SmallYpos[i]+hscrll+"px";
 
}

setTimeout('fly()', 10);

}

document.write('</div>');