	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,szorzo)
    {
        
    	if (text == "-" || text == ""){
    		return;
    	}
	var d = document.getElementById("title");
    	//var e = document.getElementById("title");
    	var l = (GetMouseLeft() + 15);
		var t = (GetMouseTop());
	

	    if (l > (GetDocumentWidth() - 220))
	        l = GetDocumentWidth() - 220;
	

adh=document.body.clientHeight;
dh=document.body.scrollHeight;
x=dh%adh;//maradek
x2=dh-x; 
x3=x2/adh; //hányszor van meg az oldalban a valami


/*
x2=t-x;
x3=x2/dh;
x4=(x3*dh)+x2;*/

//k=t+30;
		 d.style.left = l + "px";
		//e.style.left = l + "px";
		
    	if (is_ie) { 
		d.style.top = t + "px";
        	d.innerHTML =text;
	  	//e.style.top = k + "px";
        	//e.innerHTML =text;
	  	} else {
	   	 d.style.top = GetMouseTop() + "px";
        	d.innerHTML = text;
		}
    	d.style.visibility = "visible";
	//e.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);
    }

	 function GetDocumentHeight()
    {
    	if (is_moz)
	        return(document.height);
    	else
	        return(window.screen.height);
    }

    
