var xpos=0;
var ypos=0;
function setXY(e){
	xpos=((document.all)?event.clientX-15:e.pageX-8);
	var theTop;
	if (document.documentElement && document.documentElement.scrollTop)
		theTop = document.documentElement.scrollTop;
	else if (document.body)
		theTop = document.body.scrollTop
	
	ypos=((document.all)?event.clientY+theTop:e.pageY-2);
}
function showLayer(obj,head,body,width,direction) {
	pL=document.getElementById("messageL");
	if(obj) {
		pL.innerHTML='<table width=\"'+width+'\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\"><tr bgcolor=\"#CCCCCC\"><td class=\"redhead\">'+head+'</td></tr><tr bgcolor=\"#E8E8E8\"><td>'+body+'</td></table>';
		if(direction=='L'){
			pL.style.left = xpos-width+5+'px';
			pL.style.top = ypos+2+'px';
		}
		else{
			pL.style.left = xpos+25+'px';
			pL.style.top = ypos+'px';
		}
	}
	else {
		pL.style.left = -2000+'px';
		pL.style.top  = 0+'px';
	}
}
if(document.layers) document.captureEvents(Event.MOUSEMOVE);
document.onmousemove = setXY;
