var xPos = 60;
  var yPos = 160;
  var step = 3;
  var delay = 50;
  var width = 0;
  var height = 0;
  var offset_x = 300;
  var offset_y = 300;
  var xon = 20;
  var yon = 20;
	
  var point10;
  var xPos2 = 0;
  var yPos2 = 100;
  var step2 = 2;
//  var delay2= 20;
  var offset_x2= 2;
  var offset_y2= 2;
  var xon2= 10;
  var yon2= 10;

  var name = navigator.appName;
  if (name == "Microsoft Internet Explorer") 
   {
   //xPos = document.body.clientWidth;
   //point10.style.right = xPos;
  // point20.style.right = xPos2;
   //yPos = document.body.clientHeight;
  // point10.style.top = yPos;
  // point20.style.top = yPos2;
  }
  else 
  {
   //xPos = window.innerWidth;
   document.point10.pageX = xPos;
   document.point20.pageX = xPos2;
   //yPos = window.innerHeight;
   document.point10.pageY = yPos;
   document.point20.pageY = yPos2;
   document.point10.visibility = "hidden";
   document.point20.visibility = "hidden";
   }

function changePos() 
{
  // move
  if (xon ==0) 
   {
    xPos = xPos - step;
    xPos2 = xPos2 - step2;
   }
  else 
   {
    xPos = xPos + step;
	xPos2 = xPos2 + step2;
   }
  if (yon == 0) 
   {
    yPos = yPos - step;
	yPos2 = yPos2 - step2;
   }
  else 
   {
    yPos = yPos + step;
	yPos2 = yPos2 + step2;
   }
  // get W/H
  if (name == "Microsoft Internet Explorer") 
   {
    width = document.body.clientWidth;
    //offset_x = point10.offsetWidth;
	offset_x2 = point20.offsetWidth;
    height = document.body.clientHeight;
   // offset_y = point10.offsetHeight;
	offset_y2 = point20.offsetHeight;
   }
  else 
   {
    width = window.innerWidth;
   // offset_x = document.point10.clip.width;
	offset_x2 = document.point20.clip.width;
    height = window.innerHeight;
    //offset_y = document.point10.clip.height;
	offset_y2 = document.point20.clip.height;
   }  
  // turn around
  if (xPos < 0) 
   {
    xon = 1;
    xPos = 0;
   }

  if (xPos >= (width - offset_x)) 
   {
    xon = 0;
    xPos = (width - offset_x);
   }

  if (yPos < 60) 
   {
    yon = 1;
    yPos = 60;
   }

  if (yPos >= (height - offset_y)) 
   {
    yon = 0;
    yPos = (height - offset_y);
   }

if (xPos2 < 0) 
   {
    xon2 = 1;
    xPos2 = 0;
   }

  if (xPos2 >= (width - offset_x2)) 
   {
    xon2 = 0;
    xPos2 = (width - offset_x2);
   }

  if (yPos2 < 60) 
   {
    yon2 = 1;
    yPos2 = 60;
   }

  if (yPos2 >= (height - offset_y2)) 
   {
    yon2 = 0;
    yPos2 = (height - offset_y2);
   }
  // scroll
  if (name == "Microsoft Internet Explorer") 
   {
   // point10.style.right = xPos + document.body.scrollLeft;
   // point10.style.top = yPos + document.body.scrollTop;
	point20.style.right = xPos2 + document.body.scrollLeft;
    point20.style.top = yPos2 + document.body.scrollTop;
   }
  else 
   {
	document.point10.pageX = xPos + window.pageXOffset;
    document.point10.pageY = yPos + window.pageYOffset;
	document.point20.pageX = xPos2 + window.pageXOffset;
	document.point20.pageY = yPos2 + window.pageYOffset;
   }
}

function abc()
{
  if (name != "Microsoft Internet Explorer") 
   {
    document.point10.visibility = "visible";
	document.point20.visibility = "visible";
   }
  loopfunc();
}

function loopfunc()
{
  changePos();
  setTimeout('loopfunc()',delay);
}