
	// Detect if the browser is IE or not.
	// If it is not IE, we assume that the browser is NS.
	var is_IE_browser = document.all?true:false
	
	// If NS -- that is, !IE -- then set up for mouse capture
	if (!is_IE_browser) document.captureEvents(Event.MOUSEMOVE)
	
	// Set-up to use getMouseXY function onMouseMove
	document.onmousemove = get_current_mouseXY_in_window;
	document.onmouseover = get_current_mouseXY_in_window;
	
	// Temporary variables to hold mouse x-y pos.s
	var current_mouseX_in_window = 0
	var current_mouseY_in_window = 0
	
	// Main function to retrieve mouse x-y pos.s
	function get_current_mouseXY_in_window(e) {
	  if (is_IE_browser) { // grab the x-y pos.s if browser is IE
	    current_mouseX_in_window = event.clientX + document.body.scrollLeft
	    current_mouseY_in_window = event.clientY + document.body.scrollTop
	  } else {  // grab the x-y pos.s if browser is NS
	    current_mouseX_in_window = e.pageX
	    current_mouseY_in_window = e.pageY
	  }  
	  // catch possible negative values in NS4
	  if (current_mouseX_in_window < 0){current_mouseX_in_window = 0}
	  if (current_mouseY_in_window < 0){current_mouseY_in_window = 0}  

	  return true
	}
