<!--
SmallStars = 30; 
LargeStars = 10;
 
SmallYpos = new Array();
SmallXpos = new Array();
LargeYpos = new Array();
LargeXpos = new Array();
Smallspeed= new Array();
Largespeed= new Array();
aSmallStars = new Array();
aLargeStars = new Array();
ns=(document.layers)?1:0;
if (ns){
for (i = 0; i < SmallStars; i++)
{document.write("<LAYER NAME='sn"+i+"' LEFT=0 TOP=0 BGCOLOR='#FFFFF0' CLIP='0,0,1,1'></LAYER>")}
for (i = 0; i < LargeStars; i++)
{document.write("<LAYER NAME='ln"+i+"' LEFT=0 TOP=0 BGCOLOR='#FFFFFF' CLIP='0,0,2,2'></LAYER>")}
}
else{
document.write('<div style="position:absolute;top:0px;left:0px">');
document.write('<div style="position:relative">');
for (i = 0; i < SmallStars; i++)
{document.write('<div id="si'+i+'" style="position:absolute;top:0;left:0;width:1px;height:1px;background:#fffff0;font-size:1px"></div>');
aSmallStars.push(document.getElementById('si'+i));  
}
document.write('</div>');
document.write('</div>');
document.write('<div style="position:absolute;top:0px;left:0px">');
document.write('<div style="position:relative">');
for (i = 0; i < LargeStars; i++) 
{document.write('<div id="li'+i+'" style="position:absolute;top:0;left:0;width:2px;height:2px;background:#ffffff;font-size:2px"></div>');
aLargeStars.push(document.getElementById('li'+i));  
  }
document.write('</div>');
document.write('</div>');
}
WinHeight=(window.innerHeight)?window.innerHeight:window.document.body.clientHeight;
WinWidth=(window.innerWidth)?window.innerWidth:window.document.body.clientWidth;
//Inital placement!
for (i=0; i < SmallStars; i++) 
 {                                                                
 SmallYpos[i] = Math.round(Math.random()*WinHeight);
 SmallXpos[i] = Math.round(Math.random()*WinWidth);
 Smallspeed[i]= Math.random()*5+1;
}
for (i=0; i < LargeStars; i++) 
 {                                                                
 LargeYpos[i] = Math.round(Math.random()*WinHeight);
 LargeXpos[i] = Math.round(Math.random()*WinWidth);
 Largespeed[i]= Math.random()*10+5;
}
function fly(){
var WinHeight=(window.innerHeight)?window.innerHeight:window.document.body.clientHeight;
var WinWidth=(window.innerWidth)?window.innerWidth:window.document.body.clientWidth;
var hscrll=(window.pageYOffset)?window.pageYOffset:document.body.scrollTop;
var wscrll=(window.pageXOffset)?window.pageXOffset:document.body.scrollLeft;
 
for (i=0; i < LargeStars; i++)
{
 LargeXpos[i]-=Largespeed[i];
 if (LargeXpos[i] >= WinWidth)
 {
   LargeXpos[i] = WinWidth-40;
 }
 if (LargeYpos[i]+hscrll >= WinHeight)
 {
   LargeYpos[i] = WinHeight-40;
 }
 if (LargeXpos[i] < 0)
  {
  LargeXpos[i]=WinWidth-20;
  LargeYpos[i]=Math.round(Math.random()*WinHeight);
  Largespeed[i]=Math.random()*10+5;
  }
 if (ns){
 document.layers['ln'+i].left=LargeXpos[i];
 document.layers['ln'+i].top=LargeYpos[i]+hscrll;
 }
 else{
 aLargeStars[i].style.left=(LargeXpos[i]-10)+'px';
 aLargeStars[i].style.top=(LargeYpos[i]+hscrll-10)+'px';
 }
}
 
for (i=0; i < SmallStars; i++)
{
 SmallXpos[i]-=Smallspeed[i];
 if (SmallXpos[i] > WinWidth)
 {
   SmallXpos[i] = WinWidth-40;
 }
 if (SmallYpos[i] >= WinHeight)
 {
   SmallYpos[i] = WinHeight-40;
 }
 if (SmallXpos[i] < 0)
  {
  SmallXpos[i]=WinWidth-20;
  SmallYpos[i]=Math.round(Math.random()*WinHeight);
  Smallspeed[i]=Math.random()*5+1;
  }
 if (ns){
 document.layers['sn'+i].left=SmallXpos[i];
 document.layers['sn'+i].top=SmallYpos[i]+hscrll;
 }
 else{
 aSmallStars[i].style.left=(SmallXpos[i]-10)+'px';
 aSmallStars[i].style.top=(SmallYpos[i]+hscrll-10)+'px';
 } 
}
setTimeout('fly()',10);
}
//-->
