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

if (navigator.appVersion.indexOf("MSIE 5", 0) != -1 || navigator.appVersion.indexOf("MSIE 6", 0) != -1){
	supported = 1;}
if (navigator.appName == "Netscape" && parseInt(navigator.appVersion) >= 5){
	supported = 1;}
if (navigator.appName == "Konqueror" && parseInt(navigator.appVersion) >= 5){
	supported = 1;}

function updatePosition(e){
if(firstevent == -1 && supported != -1){
	document.getElementById("ratcursor").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 (supported != -1) {
	document.getElementById("ratcursor").style.left = (xcurs+10) + "px";
	document.getElementById("ratcursor").style.top = (ycurs+2) + "px";
};

myTimeout=setTimeout('showBat()',10);
return;
}

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