﻿// File JScript
function ShowNewsTooltip(title,description)
{

    if (title != description) 
    {
    	
	    //var html;
	    //html = title.replace('</','<\/');
        //document.getElementById("td0").innerHTML=title; //html;  
	    //html = description.replace('</','<\/');
        document.getElementById("td1").innerHTML=description; //html; 
    	
        var x;
	    var y;          
	    if (document.all)
          {
		    if (!document.documentElement.scrollLeft)
			    x = document.body.scrollLeft;
		    else
			    x = document.documentElement.scrollLeft;
    		
		    if (!document.documentElement.scrollTop)
			    y = document.body.scrollTop;
		    else
			    y = document.documentElement.scrollTop;
	    }
	    else
	    {
		    x = window.pageXOffset;
            y = window.pageYOffset;
	    }
    	
        //
	    var Popup = document.getElementById("Popup");	
        Popup.style.left = x + event.clientX; 
        Popup.style.top = y + event.clientY + 15;
        Popup.style.display="block";
    } 

 }

function HideNewsTooltip()
{
	var Popup = document.getElementById("Popup");
    //Popup.style.display="none";
    Popup.style.display="none";
}