<!--
// ** Popup box hover thingy (c)2005 by Ralph Capper
// ** Free for you to use - but please credit me - www.ralpharama.co.uk
// Start trapping mouse

if (document.layers) document.captureEvents(Event.MOUSEMOVE);
document.onmousemove=mtrack;
var ent; // Our floating div
var posx=0; // Our mouseX
var posy=0; // Our mouseY
var offsetX=-600; // Offset X away from mouse
var offsetY=-100; // Offset Y
var popUp = false; // Is it showing right now??!

// Run upon load
function init() {
// Set up div we will use to hover our text
ent = document.createElement("div");
// Change these to customise your popup
ent.style.color = "#000000";
ent.style.font = "bold medium courier";
ent.style.padding = "1px 1px 1px 1px";
ent.style.background = "#ffcc00";
ent.style.border = "1px solid black";
ent.style.opacity= "1.00";
// Don't, however, change these
ent.style.left = -100;
ent.style.top = -130;
ent.style.position = 'absolute';
ent.innerHTML = '';
ent.style.zIndex = 10;
document.getElementById("thisPage").appendChild(ent);
}
// Keeps mouse x and y in posx and posy

function mtrack(e) {
if (popUp) {
if (!e) var e = window.event;
if (e.pageX || e.pageY) {
posx = e.pageX;
posy = e.pageY;
}
else if (e.clientX || e.clientY) {
posx = e.clientX + document.body.scrollLeft;
posy = e.clientY + document.body.scrollTop;
}
ent.style.left = 3;//posx + offsetX;
ent.style.top = 3;//posy + offsetY;
}
}
// Change floating div to correct text on mouseover

function doText(t, e) {
popUp = true;
ent.innerHTML = t;
}
// Change back to nothing

function doClear() {
popUp = false;
ent.style.left = -510;
ent.style.top = -400;
ent.style.zIndex = 1;
ent.style.width = 460;
ent.style.height = 345;
ent.innerHTML = "";
}
-->