// JavaScript Document
function stars(){
	h=document.body.offsetHeight
	maxh=h-100 //leave room for a big star
		//alert(h)
	nrstars=Math.floor(h/100)
	
	ihtml1="";
	ihtml2="";
	y1last=0
	y2last=0
	for(i=1; i<=nrstars; i++){
		s1=Math.random()
		s2=Math.random()
		scale1=s1*s1*s2 //smaller stars favoured
		scale2=s2*s2*s1
		y1=y1last + Math.floor(Math.random()*100)
		y2=y2last + Math.floor(Math.random()*100)
		if(i==1){y1=0; y2=0}
		w1=10+Math.floor(scale1*150)
		h1=10+Math.floor(scale1*150)
		w2=10+Math.floor(scale2*150)
		h2=10+Math.floor(scale2*150)
		y1last=y1+h1
		y2last=y2+h2
		x1=Math.floor(Math.random()*(190-w1))
		x2=Math.floor(Math.random()*(190-w2))
		star1='<img src="i/star160.gif" style="position:absolute; left:' + x1 +'px; top:' + y1 +'px; width:' + w1 +'px; height:' +h1 +'px ">\n'
		star2='<img src="i/star160.gif" style="position:absolute; left:' + x2 +'px; top:' + y2 +'px; width:' + w2 +'px; height:' +h2 +'px ">\n'
		ihtml1+=star1
		ihtml2+=star2						
	
	}
	//alert(ihtml)
	pos1=document.getElementById("stars1")
	pos2=document.getElementById("stars2")
	pos1.innerHTML=ihtml1
	pos2.innerHTML=ihtml2;
}
