//Stars image URL array
sA=new Array (	'images/stars/starb1.gif',
				'images/stars/starb2.gif',
				'images/stars/starg1.gif',
				'images/stars/staro1.gif',
				'images/stars/starg2.gif',
				'images/stars/staro2.gif',
				'images/stars/starb1.gif',
				'images/stars/starb2.gif',
				'images/stars/starg1.gif',
				'images/stars/starg2.gif',
				'images/stars/starg1.gif',
				'images/stars/starg2.gif');

//Numbers of stars
s=20;

//Screen area
yMax=screen.height-20;
xMax=screen.width-20;

//Random generate star layers
for(var i=0; i<s;i++) {	
	t=Math.round(Math.random() * yMax);
	l=Math.round(Math.random() * xMax);
	x=Math.round(Math.random() * (sA.length-1));
	if (document.layers) {
		document.writeln('<layer z-index=1 top=' + t + ' left=' + l + '><img src="' + sA[x]+'" border="0"> </layer>');
	}
	else {
		document.writeln('<div style="position: absolute; z-index: 1; top: ' + t + 'px; left: ' + l + 'px; visibility: visible"><img src="' + sA[x]+'" border="0"></div>');
	}
}