// ### Mouse coords functions ###
document.onmousemove = checkwhere;
if(document.captureEvents) {document.captureEvents(Event.MOUSEMOVE);}
var xCoord =0;
var yCoord =0;

function checkwhere(e) {		
		
		var e = (!e) ? window.event : e;
		if (e.pageX || e.pageY) {
		  xCoord = e.pageX;
		  yCoord = e.pageY;
		}
		else if (e.clientX || e.clientY) {
		  if (document.body.scrollLeft || document.body.scrollTop) {
			 xCoord = e.clientX + document.body.scrollLeft;
			 yCoord = e.clientY + document.body.scrollTop;
		  }
		  else {
			 xCoord = e.clientX + document.documentElement.scrollLeft;
			 yCoord = e.clientY + document.documentElement.scrollTop;
		  }
		}
		
//        self.status = "X= "+ xCoord + "  Y= " + yCoord;
}

function toolTip(strTitle,intZ){
	if(strTitle != '' ){	
		document.getElementById('toolTip').style.top = yCoord+5 +'px';
		document.getElementById('toolTip').style.left = xCoord-155 +'px';
		document.getElementById('toolTip').innerHTML = '<B>' + strTitle;
		document.getElementById('toolTip').style.width = '150px';
		document.getElementById('toolTip').style.display = 'block';
		document.getElementById('toolTip').zIndex = intZ;
	}
}
function closeTips(){
	document.getElementById('toolTip').style.display = 'none';	
}

document.write('<div ID="toolTip" style="position:absolute;width:150px;z-index:5;border: 1px solid #000000;top:-100px;left:-100px;text-align:center;display:none;background-color:#FFFACD;padding:2;">blank</DIV>');