	var EnableMoveCommentWindow = false;
    var clientPC = navigator.userAgent.toLowerCase();
    var clientVer = parseInt(navigator.appVersion);
    var is_ie = ((clientPC.indexOf("msie") != -1) && (clientPC.indexOf("mac") == -1));
    var is_moz = ((clientPC.indexOf("mozilla") != -1) && (is_ie == false));

    var pageoffset = window.pageYOffset;


    var MOUSE_POS_X = 0;
    var MOUSE_POS_Y = 0;

    if (is_ie) {
        document.onmousemove=GetMousePos;
    } else {
        window.onmousemove=GetMousePos;
    }

	function MoveCommentWindow(){
		EnableMoveCommentWindow = true;
	}
	
	function StopCommentWindow(){
		EnableMoveCommentWindow = false;
	}

    function GetMousePos(evnt) {
        MOUSE_POS_X = (is_moz)?evnt.pageX:event.x;
        MOUSE_POS_Y = (is_moz)?evnt.pageY - pageoffset:event.y;
		if (EnableMoveCommentWindow){
			var CommentWindow = document.getElementById('commentWindow');

			CommentWindow.style.top = MOUSE_POS_Y - 10;
			CommentWindow.style.left = MOUSE_POS_X - 160;

		}
        return(true);
    }

    function GetMouseLeft() {
        var ie_scroll = 0;
        if (is_ie) {
            if (typeof(document.documentElement.scrollLeft) == "number")
                ie_scroll = document.documentElement.scrollLeft;
            else if (typeof(document.body.scrollLeft) == "number")
                ie_scroll = document.body.scrollLeft;
        }
        return(MOUSE_POS_X + ie_scroll);
    }

    function GetMouseTop() {
        var ie_scroll = 0;
        if (is_ie) {
            if (typeof(document.documentElement.scrollTop) == "number")
                ie_scroll = document.documentElement.scrollTop;
            else if (typeof(document.body.scrollTop) == "number")
                ie_scroll = document.body.scrollTop;
        }
        return(MOUSE_POS_Y + ie_scroll);
    }

    function ShowTitle(text)
    {
        
    	if (text == "-" || text == ""){
    		return;
    	}
	    var d = document.getElementById("title");
    	var l = (GetMouseLeft() + 15);

	    if (l > (GetDocumentWidth() - 220))
	        l = GetDocumentWidth() - 220;
	
    	d.style.top = (GetMouseTop() + 10) + "px";
        d.style.left = l + "px";
    
    	d.innerHTML = text;
    	d.style.visibility = "visible";
    }
    
    function HideTitle()
    {
    	var d = document.getElementById("title");
	    d.style.visibility = "hidden";
    }
    
    function GetDocumentWidth()
    {
    	if (is_moz)
	        return(document.width);
    	else
	        return(window.screen.width);
    }

    
