/************************************************************
floatimg.js Beta 0.02
2006.7.18
*************************************************************/
 function moveLAYER(layName,x,y){
    if(document.layers)document.layers[layName].moveTo(x,y)  //NN
    if(document.all)document.all(layName).style.pixelLeft=x  //IE
    if(document.all)document.all(layName).style.pixelTop=y   //IE
 }
 X = 0;                //スタートX
 Y = 0;                //スタートY
 limitLeft = 0;        //
 limitRight = 800;        //
 limitTop = 0;        //
 limitBottom = 530;        //
 speedX = 1;        //X
 speedY = 1;        //X
 dirX = 1;                //X (1/-1)
 dirY = 1;                //Y (1/-1)
 function flyingImage(){
  dX = Math.random()* speedX * dirX;        //X
  dY = Math.random()* speedY * dirY;        //Y
  X += dX;
  Y += dY;
  moveLAYER('img01',X,Y)
  if( X < limitLeft )   { dirX =  1 };        //
  if( X > limitRight )  { dirX = -1 };        //
  if( Y < limitTop )    { dirY =  1 };        //
  if( Y > limitBottom ) { dirY = -1 };        //
 }