var IE = document.all?true:false
if (!IE) document.captureEvents(Event.MOUSEMOVE)
document.onmousemove = getMouseCursorXY;
var tempCursorX = 0
var tempCursorY = 0
var showSterneSwitch = 0

function getMouseCursorXY(e) {
	if (showSterneSwitch == 1) {
		if (IE) { // grab the x-y pos.s if browser is IE
			tempCursorX = event.clientX + document.body.scrollLeft
			tempCursorY = event.clientY + document.body.scrollTop
		} else {  // grab the x-y pos.s if browser is NS
			tempCursorX = e.pageX
			tempCursorY = e.pageY
		}  
		// catch possible negative values in NS4
		if (tempCursorX < 0){tempCursorX = 0}
		if (tempCursorY < 0){tempCursorY = 0}
		
		if (showSterneSwitch == 1) {
			var zauberstabSterneObj = eval(document.getElementById("ZauberstabSterne"));   
			zauberstabSterneObj.style.left = eval(-17 + tempCursorX) + "px";
			zauberstabSterneObj.style.top = eval(-17 + tempCursorY) + "px";
		}
	}

	return true
}

function showSterne() {
	if (IE) {showSterneSwitch = 1;}
}
function hideSterne() {
	showSterneSwitch = 0;
	
	var zauberstabSterneObj = eval(document.getElementById("ZauberstabSterne"));   
	zauberstabSterneObj.style.left = "-300px";
	zauberstabSterneObj.style.top = "-300px";
}
