document.onmousemove = function(e) {
		var myOP = (navigator.userAgent.indexOf("Opera",0) != -1)?1:0;
		var myIE = document.all;             // IE

		if (myOP){                          // OP?
				myMoveOP(e);
		}else if (myIE){                    // IE?
				myMoveIE();
		}else{
				myMoveOth(e);
		}
}
function myMoveOP(e){ // OPでマウスが動いた
		cur_x = e.pageX;
		cur_y = e.pageY;
}
function myMoveIE(){ // IEでマウスが動いた
		cur_x = window.event.clientX + document.documentElement.scrollLeft;
		cur_y = window.event.clientY + document.documentElement.scrollTop;
}
function myMoveOth(e){ // N4でマウスが動いた
		cur_x = e.pageX;
		cur_y = e.pageY;
}

function showPopup(target, text){
		var myOP = (navigator.userAgent.indexOf("Opera",0) != -1)?1:0;
		var myIE = document.all;             // IE
		var div = null;
		if (myOP){                          // OP?
				div = document.getElementById(target);
		}else if (myIE){                    // IE?
				div = document.all[target];
		}else{
				div = document.getElementById(target);
		}

	if(text){
		text = text.split('\n').join('<br />');
		div.style.display="block";
		div.style.left = cur_x+ 20 +"px";
		div.style.top = cur_y+ 5 +"px";
		div.innerHTML = text; 
	} else {
		div.style.display="none"; 
		div.innerHTML = "";
	}
}

/*
function showPopup(target, text){
	var div = null;
	if(document.all){
		div =document.all(target);
		x = window.event.clientX + document.body.scrollLeft + 20;
		y = window.event.clientY + document.body.scrollTop - 20;
	} else {
		div =document.getElementById(target);
		x = cur_x + 20;
		y = cur_y - 20;
	}
	if(text){
		text = text.split('\n').join('<br />');
		div.style.display="block";
		div.style.left = x +"px";
		div.style.top = y +"px";
		div.innerHTML = text; 
	} else {
		//div.style.display="none"; 
		//div.innerHTML = "";
	}
}

window.onmousemove = function(e) {
	cur_x = e.pageX;
	cur_y = e.pageY;
}
*/

