//document.documentElement.onmousemove=mousemove;
function image(layer)
{
 this.pic = layer;
}
var pic = new Array();
var centerX=430;
var centerY=310;
var picRad=0;
var r = 60;
function mousemove(e)
{
 centerX=e.clientX;
 centerY=e.clientY;
}

function setImage(index,layer)
{
 pic[index]=new image(layer);
}
function setmouse()
{
// document.onmousemove="mousemove()";
 setTimeout("picmove()",1000);
}
function picmove()
{
 picRad = picRad+5;
 if(picRad>360)picRad-=360;
 i=0;
 for(var i=0;i<pic.length;i++)
 {
  pic[i].pic.style.left = centerX+r*Math.sin(parseFloat(picRad+i*60)/360*2*3.14159);
  pic[i].pic.style.top = centerY+r*Math.cos(parseFloat(picRad+i*60)/360*2*3.14159);
//  pic[i].pic.style.left = centerX;
//  pic[i].pic.style.top = centerY;
 }
 setTimeout("picmove()",100);
}

