function getCursorPosition(eventObject){
	/*	
	Get the cursor position using the "clientX" and "clientY" property of the "event" object which was passed as an arguement in "eventObject"
	The "clientX" and "clientY" properties refer to a position that is apparently viewable/visible within the window.
	So if a page is scrolled, it DOES NOT take into account that part of the page that is NOT apparently visible.
	Using the "pageX" and "pageY" properties instead, will fix this and will take into account the areas of that page that are NOT apparently visible.
	However, this is not implemented within Internet Explorer.
	*/
	// Check to see if the "eventObject" NOT is available.
	// If this is the case, then assign the "eventObject" the window.event object.
	if(!eventObject) eventObject = window.event;
	// Get the position of the cursor on the screen
	var MouseX = eventObject.clientX;
  	var MouseY = eventObject.clientY;
	// Get the scroll offsets. (i.e. the number of pixels that the page has been scrolled)
	var ScrollOffsetsXY = getScrollXY();
	var ScrollX = ScrollOffsetsXY[0];
	var ScrollY = ScrollOffsetsXY[1];
	// The ACTUAL cursor position is obtained by adding the current position of the cursor (obtained by "clientX/Y") and the scroll offset.
	var cursorTop = (MouseY + ScrollY);
	var cursorLeft = (MouseX + ScrollX);
	// return the cursor top and left positions as an array.
	return [cursorLeft, cursorTop];
}
// End of function "getCursorPosition()"

function getScrollXY() {
	// This function obtains the number of pixels the page has been scrolled.
	// The function returns an array that includes the number of pixels the page has been scrolled.
	var scrOfX = 0, scrOfY = 0;
	if( typeof(window.pageYOffset ) == "number") {
		// Netscape compliant.
		scrOfY = window.pageYOffset;
		scrOfX = window.pageXOffset;
	}
	else if(document.body && (document.body.scrollLeft || document.body.scrollTop)) {
		// DOM compliant.
		scrOfY = document.body.scrollTop;
		scrOfX = document.body.scrollLeft;
	}
	else if(document.documentElement && (document.documentElement.scrollLeft || document.documentElement.scrollTop)) {
		// IE6 standards compliant mode.
		scrOfY = document.documentElement.scrollTop;
		scrOfX = document.documentElement.scrollLeft;
	}
	// End of IF Else If statement.
	// Return the amount of pixels the the page has been scrolled on both axes (x and y) as an array.
	return [scrOfX, scrOfY];
}
// End of function "getScrollXY()"