function rnd(x)
{
	y=Math.floor(Math.random()*x);
	return y;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_changeProp(objName,x,theProp,theValue) { //v3.0
//alert(objName+" " + x + " " + theProp + " " + theValue);
  var obj = MM_findObj(objName);
  if (obj && (theProp.indexOf("style.")==-1 || obj.style)) eval("obj."+theProp+"='"+theValue+"'");
  if(theValue=='DIV')
  	alert("its a div");
}

	sArray = new Array(100,20,30,400,56,15,200,60);
	clrArray = new Array("#000000","#0A0A0A","#141414","#1E1E1E","#282828",
				       "#323232","#3C3C3C","#464646","#505050","#5A5A5A",
				       "#646464","#6E6E6E","#787878","#828282","#8C8C8C",
				       "#969696","#A0A0A0","#AAAAAA","#B4B4B4","#BEBEBE",
				       "#C8C8C8","#D2D2D2","#DCDCDC","#E6E6E6","#F0F0F0");

	function changeAll() {

		for(i=0;i<9;i++) {
			MM_changeProp('Layer'+(i+1),'','style.left',(rnd(1000)-500)+'px','DIV');
			MM_changeProp('Layer'+(i+1),'','style.top',(rnd(400)-200)+'px','DIV');
			MM_changeProp('span'+(i+1),'','style.fontSize',sArray[rnd(sArray.length)]+'px','SPAN');
			MM_changeProp('span'+(i+1),'','style.color',clrArray[rnd(clrArray.length)],'SPAN');

		}
//		t = setTimeout("changeAll()",100);
	}
	changeAll();