// Flying Bat courtesy of http://feuerhake.unverkaeuflich.net/article/704/cursor-following-flying-bat
var firstevent = -1;
var xcurs=0;
var ycurs=0;
var cursor_timeout = 10;

function updatePosition(e){
   if(firstevent == -1){
      document.getElementById("jack").style.visibility = "visible";
      firstevent = 1;
   };
   if (navigator.appName == 'Netscape'){
      xcurs = e.pageX;
      ycurs = e.pageY;
   }else{
      xcurs = event.clientX;
      ycurs = event.clientY;
   };
}

function showBat(){
   if (cursor_timeout > 5000 ) { 
      return; // Must be turned off?
   }
   document.getElementById("jack").style.left = (xcurs+10) + "px";
   document.getElementById("jack").style.top = (ycurs+2) + "px";
   myTimeout=setTimeout('showBat()',cursor_timeout);
   return;
}


myTimeout=setTimeout('showBat()',cursor_timeout);
document.onmousemove=updatePosition;
