
 window.onload = function () {
   start();
 }

function start() {
  movecursor(1);
  movecursor(2);
  movecursor(3);
  movecursor(4);
}

function movecursor(nr) {
  var r1 = Math.floor(Math.random()*800)+200;
  var r2 = Math.floor(Math.random()*650)+100;
  var tid = Math.floor(Math.random()*1200)+500;
  $('#p'+nr).animate({
    left: r1,
    top: r2 
   }, tid, function() { movecursor(nr); });
 }

