// default javascript functionality
// this is called by every HTML page (by default)

// pop-up window functionality

	// global pop-up window variable
	var popUpWin=0;

	// function to create a new pop-up window (points to a given variable
	function popUpWindow(URLStr, left, top, width, height)
	{
		if(popUpWin) {
			if(!popUpWin.closed) popUpWin.close();
		}
		popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
		return;
	}

// mouse position detection functionality

	// for non-IE browsers, enable capturing mousemoves
	if (! document.all) document.captureEvents(Event.MOUSEMOVE);
	
	// global variables to contain mouse position data
	var mouseX = -1;
	var mouseY = -1;
	
	// define mousemovement capturing function
	// constantly updates global variables mouseX and mouseY
	// with the current mouse position (within the visible window)
	function getMouseXY (e) {
	
		if (!e) var e = window.event;

		// IE-based mouse position
		if (e.pageX || e.pageY)
		{
			mouseX = e.pageX;
			mouseY = e.pageY;
		}
		// default to NS/Moz-based mouse position
		else if (e.clientX || e.clientY)
		{
			mouseX = e.clientX + document.body.scrollLeft;
			mouseY = e.clientY + document.body.scrollTop;
		}
	
		return true;
	}
	
	// use the following JS inline to begin capturing mousemovements via a given function
	// document.onmousemove = getMouseXY;


