function showToolTip(text) {
    var tt = document.getElementById('toolTipDiv');
    tt.style.top = (posy + 22) + "px";
    tt.style.left =  posx + "px";
    tt.innerHTML = unescape(text);
    tt.style.visibility = 'visible';
}
                       
function hideToolTip() {
    document.getElementById('toolTipDiv').style.visibility = 'hidden';
}
                    
var posx = 0;
var posy = 0;
                    
function mouseXY(e) {
	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
			+ document.documentElement.scrollLeft;
		posy = e.clientY + document.body.scrollTop
			+ document.documentElement.scrollTop;
	}
}
                    
// set up mouse movement capture for tool tip placement
document.onmousemove=mouseXY;

// hv popup
var agt   = navigator.userAgent.toLowerCase();
var is_ie = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));

function hideMine(elmnt) {
if( !is_ie ) return;
var a = elmnt.getElementsByTagName("div");
var div = a[0];
elmnt.style.zIndex = 1;
div.style.display = "none";
}

function showMine(elmnt) {
if( !is_ie ) return;
var a = elmnt.getElementsByTagName("div");
var div = a[0];
elmnt.style.zIndex = 100;
div.style.display = "block";
}
