var mousex = 0;
var mousey = 0;

function showComment(comment){
	
	document.getElementById("comment").innerHTML = comment;
	document.getElementById("comment").style.visibility = "visible";
	document.getElementById("comment").style.left = mousex+"px";
	document.getElementById("comment").style.top = mousey+"px"
	
	return true;
}

function hideComment(){
	
	document.getElementById("comment").innerHTML = "";
	document.getElementById("comment").style.visibility = "hidden";
	
	return true;
}

function mousePosition(e){
	
	var x = 0, y = 0;
    if( typeof( window.pageYOffset ) == 'number' ) {
        // Netscape
        x = window.pageXOffset;
        y = window.pageYOffset;
    } else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
        // DOM
        x = document.body.scrollLeft;
        y = document.body.scrollTop;
    } else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
        // IE6 standards compliant mode
        x = document.documentElement.scrollLeft;
        y = document.documentElement.scrollTop;
    }
	
	if (navigator.appName.indexOf("Microsoft")!=-1) {
		mousex = event.clientX+x-125;
		mousey = event.clientY+y+10;
	}else{
		mousex = e.pageX-125;
		mousey = e.pageY+10;
	}
	
	return true; 
}
