/*
 *  Copyright 2003, Peter Rowntree. All Rights Reserved.
 */
 
//requires /wr/common/images.js
//requires /wr/common/png.js

var g_timerID1=null;

function doLoad()
{
   preloadRollImages('png','f','a','g','gr','na','sh','wn');
   //preloadSingleImages('png','mapspiral9');
   PNGInit();
   //jump(0);
   //g_timerID1=setTimeout("doTimerTask1()",100);
}

function jump(i)
{
   var newTop=Math.floor(Math.random()*400);
   var newLeft=Math.floor(Math.random()*600);
   var hopper=document.getElementById("hopper"+i);
   var imgOb=document.getElementById("over"+i);
   hopper.style.top=newTop+"px";
   hopper.style.left=newLeft+"px";
   imgOb.onmouseout();
   //alert(newTop+" "+newLeft);
}

function doTimerTask1()
{
    if(g_timerID1 != null)
    {
      clearTimeout(g_timerID1);
      g_timerID1=null;
    }
    //jump(Math.floor(Math.random()*.99999));
    jump(1);
    g_timerID1=setTimeout("doTimerTask1()",1000);
}
