function testfunc() 
{
alert("self :"+self.innerHeight+"*"+self.innerWidth+"\n"+
      "window :"+screen.height+"*"+screen.width+"\n"+
		"document :"+document.body.clientHeight+"*"+document.body.clientWidth+"\n"+
"element :"+document.documentElement.clientHeight+"*"+document.documentElement.clientWidth
);
}

var ns4up = (document.layers) ? 1 : 0;
var ie4up = (document.all) ? 1 : 0;
ie4up = 1;

if (self.innerHeight)
{
	// all except Explorer
	breite = self.innerWidth;
	hoehe = self.innerHeight;
}
else 
	if (document.documentElement && document.documentElement.clientHeight)
	{
		// Explorer 6 Strict Mode
		breite = document.documentElement.clientWidth
		hoehe = document.documentElement.clientHeight
	}
	else 
		if (document.body)
		{
			// other Explorers
			breite = document.body.clientWidth
			hoehe = document.body.clientHeight
		}

/*document.write("<div id=\"info\">Höhe * Breite : "+hoehe+" * "+breite+"<br>")
//document.write("<font color=#FF0000>Höhe * Breite : "+hoehe+" * "+breite+"</font><br>")
if (ns4up) 
	document.write("ns4up<br>")
	
if (ie4up) 
	document.write("ie4up<br>")
document.write("</div>")
*/

var xm=breite/2
var ym=hoehe/2
var x=new Array()
var y=new Array()
var xs=new Array()
var ys=new Array()
var ss=new Array()

for (i=0; i<31; i++)
{
	if (ns4up) 
		document.write("<layer id=\"st"+i+"\" top=0 left=0\">.<\/layer>\n")
	
	if (ie4up) 
		document.write("<div id='st"+i+"' style=\"position:absolute; top:0px; left:0px\"><\/div>\n")

	x[i]=xm
	y[i]=ym
	xs[i]=Math.random()*6-3
	ys[i]=Math.random()*6-3
	ss[i]=-10+Math.random()*10
}

function sterne()
{
	if (ns4up) 
		sternens()
	
	if (ie4up) 
		sterneie()
}

function sternens()
{
	for (i=0; i<31; i++)
	{
		document.layers["st"+i].left=x[i]+xs[i]
		document.layers["st"+i].top=y[i]+ys[i]
		x[i]=x[i]+xs[i]
		y[i]=y[i]+ys[i]
		xs[i]=xs[i]*1.1
		ys[i]=ys[i]*1.1
		ss[i]=ss[i]+1
			
		if ((ss[i]/10)==(Math.floor(ss[i]/10)))
		{
			document["st"+i].document.write("<font color=#ffffff><font size=+"+(ss[i]/10)+">.")
			document["st"+i].document.close()
 		}
			
		if (x[i]<0 || x[i]>breite) 
			xs[i]=Math.random()*6-3,ys[i]=Math.random()*6-3,x[i]=xm,y[i]=ym,ss[i]=-1
			
		if (y[i]<0 || y[i]>hoehe)
			xs[i]=Math.random()*6-3,ys[i]=Math.random()*6-3,x[i]=xm,y[i]=ym,ss[i]=-1
	}
	setTimeout("sternens()",10)
}

function sterneie() 
{
	for (i=0; i<31; i++)
	{
		document.all["st"+i].style.pixelLeft=x[i]+xs[i]
		document.all["st"+i].style.pixelTop=y[i]+ys[i]
		x[i]=x[i]+xs[i]
		y[i]=y[i]+ys[i]
		xs[i]=xs[i]*1.1
		ys[i]=ys[i]*1.1
		ss[i]=ss[i]+1
 
		if ((ss[i]/10)==(Math.floor(ss[i]/10)))
			document.all["st"+i].innerHTML="<font color=#ffffff><font size=+"+(ss[i]/10)+">."
			
		if (x[i]<0 || x[i]>breite-100) 
			xs[i]=Math.random()*6-3,ys[i]=Math.random()*6-3,x[i]=xm,y[i]=ym,ss[i]=-1
			
		if (y[i]<0 || y[i]>hoehe-100) 
			xs[i]=Math.random()*6-3,ys[i]=Math.random()*6-3,x[i]=xm,y[i]=ym,ss[i]=-1
	}
	setTimeout("sterneie()",10)
}

