function showThumbnail(imageSrc) {
	var thumbnail_div = document.getElementById("thumbnail_div");

	thumbnail_div.innerHTML = '<table border=0 cellpadding=0 cellspacing=0 width="110" height="110"><tr><td align="right" valign="middle"><img src="'+imageSrc+'"></td></tr></table>';
	thumbnail_div.style.top = yMousePos-55;
	thumbnail_div.style.visibility = "visible";
}

function hideThumbnail() {
	var thumbnail_div = document.getElementById("thumbnail_div");

	thumbnail_div.style.visibility = "hidden";
}

function captureMousePosition_init() {
	// set up event for onMouseMove

	// Netscape
	if (document.layers) {
		document.captureEvents(Event.MOUSEMOVE);
		document.onmousemove = captureMousePosition;
	}
	// Internet Explorer
	else if (document.all) {
		document.onmousemove = captureMousePosition;
	}
	// Netcsape 6
	else if (document.getElementById) {
		document.onmousemove = captureMousePosition;
	}

	// set up Ajax obiect for main body area	
	ajax = new AjaxObject();
	ajax.onNewData = ajaxOnload;

	// set up Ajax object for header
	header_div = document.getElementById("header_div");
	ajax2 = new AjaxObject(header_div);
	ajax2.onNewData = headerOnload;
}

/////////////////////////
// Mouse Event Handler //
/////////////////////////

xMousePos = 0; // Horizontal position of the mouse on the screen
yMousePos = 0; // Vertical position of the mouse on the screen
xMousePosMax = 0; // Width of the page
yMousePosMax = 0; // Height of the page

function captureMousePosition(e) {
	// Netscape
    if (document.layers) {
        xMousePos = e.pageX;
        yMousePos = e.pageY;
        xMousePosMax = window.innerWidth+window.pageXOffset;
        yMousePosMax = window.innerHeight+window.pageYOffset;
    }
	// Internet Explorer
	else if (document.all) {
        xMousePos = window.event.x+document.body.scrollLeft;
        yMousePos = window.event.y+document.body.scrollTop;
        xMousePosMax = document.body.clientWidth+document.body.scrollLeft;
        yMousePosMax = document.body.clientHeight+document.body.scrollTop;
    }
	// Netcsape 6
	else if (document.getElementById) {
        xMousePos = e.pageX;
        yMousePos = e.pageY;
        xMousePosMax = window.innerWidth+window.pageXOffset;
        yMousePosMax = window.innerHeight+window.pageYOffset;
    }
}

if (window.attachEvent) {
	window.attachEvent("onload", captureMousePosition_init);
}
else {
	window.addEventListener("load", captureMousePosition_init, true);
}

