var ns6=document.getElementById&&!document.all?1:0

if (document.layers || ns6)		//KOMPATIBLE FIREFOX VERSION
{
	document.write('<div id="mover" style="position:absolute;visibility:visible;left:0px;top:0px;width:0px;height:0px"></div>');
	var mouseoffset=[20,0]
	var trailimage=["", 0, 0]
	var x = 0;
	var y = 0;
	
	function loadpic(picpath, width, height)
	{
	trailimage=[picpath, width, height]
	mouseoffset=[20,-(height/2)]
	
	document.getElementById("mover").innerHTML='<img id="mbild" src="'+trailimage[0]+'" border="0" width="'+trailimage[1]+'px" height="'+trailimage[2]+'px" style="position:absolute;left:'+x+'px;top:'+y+'px;">';
	document.onmousemove=followmouse
	}
	
	function truebody(){
	return (!window.opera && document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
	}
	
	function hidepic(){
	document.onmousemove=""
	document.getElementById("mbild").style.visibility="hidden";
	}
	
	function followmouse(e){
		x = (document.layers || ns6) ? e.pageX : document.body.scrollLeft+event.clientX
		y = (document.layers || ns6) ? e.pageY : document.body.scrollTop+event.clientY
		x+=mouseoffset[0];
		y+=mouseoffset[1];
		
		document.getElementById("mbild").style.left=x
		document.getElementById("mbild").style.top=y
	}
}
else		// IE VERSION
{
	document.write('<div id="mover"></div>');

	var mouseoffset=[20,0]
	var trailimage=["", 0, 0]
	
	function loadpic(picpath, width, height)
	{
	var trailimage=[picpath, width, height]
	mouseoffset=[20,-(height/2)]
	
	document.getElementById("mover").innerHTML='<div id="trailimageid" style="position:absolute;visibility:hidden;left:0px;top:0px;width:0px;height:0px"><img src="'+trailimage[0]+'" border="0" width="'+trailimage[1]+'px" height="'+trailimage[2]+'px"></div>';
	
	document.onmousemove=followmouse
	}
	
	function getdiv(){
	return document.getElementById("trailimageid");
	}
	
	function getpic(){
	return document.getElementById("trailimageid").style;
	}
	
	function truebody(){
	return (!window.opera && document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
	}
	
	function hidepic(){
	getdiv().innerHTML=""
	document.onmousemove=""
	getpic().visibility="hidden"
	}
	
	function followmouse(e){
	var xcoord=mouseoffset[0]
	var ycoord=mouseoffset[1]
	xcoord+=truebody().scrollLeft+event.clientX
	ycoord+=truebody().scrollTop+event.clientY
	
	getpic().visibility="visible"
	getpic().left=xcoord+"px"
	getpic().top=ycoord+"px"
	}
}