var timer;
var displaytext;
var o = new Object;

function fix(e){
		if (typeof e == 'undefined') {
			e = window.event ? window.event : window.Event;
		}
		return e;
}

function moveEventMove(e) {
		var e = fix(e);
		var x = e.clientX;
		var y = e.clientY + document.documentElement.scrollTop;
		document.getElementById("fdiv").style.left = (x-400) +"px";
		document.getElementById("fdiv").style.top = (y+30)+"px";
}

function showtrail(img) {
    document.onmousemove = moveEventMove;
    if (navigator.userAgent.indexOf("Firefox") == -1) timer = setTimeout("makeVis('"+img+"')",450);
}

function makeVis(img) {
	document.getElementById("fdiv").innerHTML = "<img src='" + img + "' alt='XpressMotion' />";;
	document.getElementById("fdiv").style.display = "block";
	clearTimeout(timer);
}

function hidetrail() {
	document.onmousemove = ''
	document.getElementById("fdiv").style.display = "none";
	clearTimeout(timer);
}